@intent-hq/web 2.283.0 → 2.284.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/{CsGRm74m.js → --3ZEJ9J.js} +1 -1
- package/web/app/immutable/chunks/{C6UIN6U-.js → 03ESLWB1.js} +1 -1
- package/web/app/immutable/chunks/{86I704nb.js → 0XyrKsuA.js} +1 -1
- package/web/app/immutable/chunks/{CqnYcuvr.js → 1rwbAxiY.js} +1 -1
- package/web/app/immutable/chunks/{BMFwrOH1.js → 1wcS2GHA.js} +1 -1
- package/web/app/immutable/chunks/{CvLXNZbW.js → 32YnGblO.js} +1 -1
- package/web/app/immutable/chunks/{5guZ9l7C.js → 4kHCfKWR.js} +1 -1
- package/web/app/immutable/chunks/{CMI5HTNV.js → 580ALcE7.js} +1 -1
- package/web/app/immutable/chunks/{JWpKjkZt.js → 5BmKVYc1.js} +4 -4
- package/web/app/immutable/chunks/{B4NuLgfc.js → 5ZpW5rVB.js} +1 -1
- package/web/app/immutable/chunks/{BuYGacYC.js → 7IZupueL.js} +44 -44
- package/web/app/immutable/chunks/{DwufXbAm.js → 8n4ougjP.js} +1 -1
- package/web/app/immutable/chunks/{D0ubTGV_.js → 8puonPwK.js} +1 -1
- package/web/app/immutable/chunks/{DVch_AcI.js → B-kQ0Vz5.js} +1 -1
- package/web/app/immutable/chunks/{BlxovLoL.js → B0w4Cxo_.js} +1 -1
- package/web/app/immutable/chunks/{Be5Pyj-G.js → B1EuyQvk.js} +1 -1
- package/web/app/immutable/chunks/{DjvHPE3r.js → B1P0TORE.js} +1 -1
- package/web/app/immutable/chunks/{BSoHy997.js → B1s7HAuZ.js} +1 -1
- package/web/app/immutable/chunks/{Dvf5hKr0.js → B3G2wO_D.js} +1 -1
- package/web/app/immutable/chunks/{DGTcJSfI.js → B4VDa7RO.js} +1 -1
- package/web/app/immutable/chunks/{CDUZ_0Sw.js → B5HPrVzu.js} +1 -1
- package/web/app/immutable/chunks/{RykEwldd.js → B5KLQb3J.js} +1 -1
- package/web/app/immutable/chunks/{Bjat9loC.js → B7R5ywXv.js} +1 -1
- package/web/app/immutable/chunks/{DSMbTvmu.js → B8LfMxTf.js} +1 -1
- package/web/app/immutable/chunks/{DEAKghGX.js → B8xgoeqo.js} +1 -1
- package/web/app/immutable/chunks/{C85s-gi8.js → B96HYSUr.js} +1 -1
- package/web/app/immutable/chunks/{BQkOKtmR.js → B9YdV5Lr.js} +1 -1
- package/web/app/immutable/chunks/{QEFaNqbo.js → BAuomW3Q.js} +1 -1
- package/web/app/immutable/chunks/{Cnak6su6.js → BAyTpaq3.js} +1 -1
- package/web/app/immutable/chunks/{CMU9ws3e.js → BCHni7By.js} +1 -1
- package/web/app/immutable/chunks/{Bme6a8ON.js → BCkgwkHF.js} +1 -1
- package/web/app/immutable/chunks/{DKhnmIhc.js → BE5jLkkZ.js} +1 -1
- package/web/app/immutable/chunks/{BcIZ6c0f.js → BE6av5p4.js} +1 -1
- package/web/app/immutable/chunks/{CmTb9opo.js → BEQXbC7q.js} +1 -1
- package/web/app/immutable/chunks/{B122KxZy.js → BFDD1pyQ.js} +1 -1
- package/web/app/immutable/chunks/{yZjABy7c.js → BHdVwar2.js} +1 -1
- package/web/app/immutable/chunks/{UFs8wmaf.js → BIkNHTNp.js} +1 -1
- package/web/app/immutable/chunks/{DSad0YxQ.js → BJ5sH6i3.js} +1 -1
- package/web/app/immutable/chunks/{CNnCGYha.js → BJwGOB8K.js} +1 -1
- package/web/app/immutable/chunks/{wqHUaR0E.js → BKAQdyqG.js} +1 -1
- package/web/app/immutable/chunks/{DOWY58Gk.js → BKYBbIMC.js} +1 -1
- package/web/app/immutable/chunks/{DzF66VDn.js → BLEfessf.js} +1 -1
- package/web/app/immutable/chunks/{PwM42XJW.js → BLjf4WQt.js} +1 -1
- package/web/app/immutable/chunks/{BdS003Kb.js → BLjxHwvZ.js} +1 -1
- package/web/app/immutable/chunks/{BFnOOmhf.js → BMBobKUo.js} +2 -2
- package/web/app/immutable/chunks/{j32IuKtD.js → BNfbL3_i.js} +1 -1
- package/web/app/immutable/chunks/{CI86PNUZ.js → BOIoayZB.js} +1 -1
- package/web/app/immutable/chunks/{DlmTHr8T.js → BOV2-YtX.js} +1 -1
- package/web/app/immutable/chunks/{DWsGxz2C.js → BPQohPc9.js} +1 -1
- package/web/app/immutable/chunks/{B5Kd4cOY.js → BQ-Vdhjp.js} +1 -1
- package/web/app/immutable/chunks/{Dr6lXyco.js → BQqtq_EY.js} +4 -4
- package/web/app/immutable/chunks/BQu3cSOx.js +1 -0
- package/web/app/immutable/chunks/{DMbXrJli.js → BRk6sSrF.js} +1 -1
- package/web/app/immutable/chunks/{ZJCzYVmw.js → BS6Z2wWv.js} +1 -1
- package/web/app/immutable/chunks/{DaMaCbrW.js → BSIOWZWq.js} +1 -1
- package/web/app/immutable/chunks/{gYd6zuXF.js → BSLrzoVf.js} +1 -1
- package/web/app/immutable/chunks/{cpbf9St3.js → BUtQhKox.js} +1 -1
- package/web/app/immutable/chunks/{Bl1nIYdr.js → BXwgWEmz.js} +1 -1
- package/web/app/immutable/chunks/{cCabUQP6.js → BYB7SynS.js} +2 -2
- package/web/app/immutable/chunks/{D-U5rcFa.js → BYhzE2Id.js} +1 -1
- package/web/app/immutable/chunks/{BSt_qcPC.js → BYvXj8cv.js} +1 -1
- package/web/app/immutable/chunks/{B8ZK3-zF.js → BZjntufp.js} +1 -1
- package/web/app/immutable/chunks/{B241tUXW.js → B_BtFokc.js} +1 -1
- package/web/app/immutable/chunks/{UF5lygT0.js → BcemBG1g.js} +4 -4
- package/web/app/immutable/chunks/{NyRx-5qE.js → BfCf1CX7.js} +3 -3
- package/web/app/immutable/chunks/{g3KZ-aok.js → BghJZEqX.js} +1 -1
- package/web/app/immutable/chunks/{BzSa9-IF.js → Bhov0MTz.js} +1 -1
- package/web/app/immutable/chunks/{DeSJTI_U.js → Bir-_mB8.js} +1 -1
- package/web/app/immutable/chunks/{VzlQnrws.js → Bj2uvmt-.js} +1 -1
- package/web/app/immutable/chunks/{VLmrqzTE.js → Bj6-QOR3.js} +1 -1
- package/web/app/immutable/chunks/{C8gv124k.js → BjO6mATN.js} +1 -1
- package/web/app/immutable/chunks/{DueTjjFx.js → BlhXsK8K.js} +1 -1
- package/web/app/immutable/chunks/{DHZ4JjoJ.js → Blhl4Kzo.js} +1 -1
- package/web/app/immutable/chunks/{CzT5E1qm.js → BlobiUVj.js} +1 -1
- package/web/app/immutable/chunks/{DMl_gv4g.js → BmY5L1Op.js} +1 -1
- package/web/app/immutable/chunks/{2UHo-lr0.js → BmeKmSN1.js} +1 -1
- package/web/app/immutable/chunks/{DikRK37J.js → Bmnp4Cni.js} +6 -6
- package/web/app/immutable/chunks/{BbGMZxWy.js → BnZq-I73.js} +2 -2
- package/web/app/immutable/chunks/{CcikvcoO.js → BoffG-0C.js} +1 -1
- package/web/app/immutable/chunks/{BLfSGdog.js → BoyajzxN.js} +1 -1
- package/web/app/immutable/chunks/{BlEVobud.js → BqSjWCdR.js} +1 -1
- package/web/app/immutable/chunks/{jN_7w48e.js → BrXpFLv_.js} +1 -1
- package/web/app/immutable/chunks/{C4oKInMh.js → BrvhC6GL.js} +1 -1
- package/web/app/immutable/chunks/{DBkSv110.js → BuSZooEw.js} +1 -1
- package/web/app/immutable/chunks/{CHb28ISq.js → BvuznwRa.js} +1 -1
- package/web/app/immutable/chunks/{BBl02EyB.js → BxFP5cPu.js} +1 -1
- package/web/app/immutable/chunks/{D71IW4i3.js → BxUDfZfX.js} +1 -1
- package/web/app/immutable/chunks/{DXKXi4fU.js → Byp8PswU.js} +1 -1
- package/web/app/immutable/chunks/{DA1BdbaM.js → C-AxUu93.js} +1 -1
- package/web/app/immutable/chunks/{B1ZGt7sC.js → C-tRLOED.js} +1 -1
- package/web/app/immutable/chunks/C1FIrZNw.js +184 -0
- package/web/app/immutable/chunks/{itPVrVkG.js → C1GRqLCq.js} +1 -1
- package/web/app/immutable/chunks/{P0y5VMqy.js → C2kpUgbe.js} +1 -1
- package/web/app/immutable/chunks/{X8KOCQId.js → C51KzdSG.js} +1 -1
- package/web/app/immutable/chunks/{BqgmbqM-.js → C6LRlrtG.js} +1 -1
- package/web/app/immutable/chunks/{D98MGnzl.js → C6Lk-C_n.js} +1 -1
- package/web/app/immutable/chunks/{DLshetD4.js → C6NP7Wkf.js} +1 -1
- package/web/app/immutable/chunks/{CaR7O_Ka.js → C83cffhG.js} +1 -1
- package/web/app/immutable/chunks/{BycWLeDe.js → C8yAGnZY.js} +1 -1
- package/web/app/immutable/chunks/{inj-bBZM.js → CAS7It7T.js} +1 -1
- package/web/app/immutable/chunks/{vlhkmmpx.js → CBF5TBJQ.js} +1 -1
- package/web/app/immutable/chunks/{Sqmoz5pv.js → CCU5YAgB.js} +1 -1
- package/web/app/immutable/chunks/{BaUre9ae.js → CCzzpn5X.js} +1 -1
- package/web/app/immutable/chunks/{J6ix93M3.js → CEZnJlwn.js} +1 -1
- package/web/app/immutable/chunks/{C-TcncuL.js → CEd0rr6P.js} +1 -1
- package/web/app/immutable/chunks/{U7JWtGAy.js → CEkEURUB.js} +1 -1
- package/web/app/immutable/chunks/{BxuhDHqB.js → CG5J-qd_.js} +1 -1
- package/web/app/immutable/chunks/{C81WcoAM.js → CHK5bSfe.js} +1 -1
- package/web/app/immutable/chunks/{Cc-44AXb.js → CHSBtC7Q.js} +1 -1
- package/web/app/immutable/chunks/{B3yw5iey.js → CJaPqUNh.js} +1 -1
- package/web/app/immutable/chunks/{D2kpmACf.js → CJuSN2hh.js} +1 -1
- package/web/app/immutable/chunks/{Fbmia90H.js → CLCaT9pi.js} +3 -3
- package/web/app/immutable/chunks/{3SbVPCw7.js → CLDGr3DL.js} +1 -1
- package/web/app/immutable/chunks/{Bt6bgoI-.js → CMqMo1Af.js} +1 -1
- package/web/app/immutable/chunks/{BQ1YF879.js → CNzOZ9MW.js} +1 -1
- package/web/app/immutable/chunks/{DX5DxI8W.js → CQMmROUx.js} +2 -2
- package/web/app/immutable/chunks/{CBWgmFBu.js → CQTIadOp.js} +1 -1
- package/web/app/immutable/chunks/{BeYVLVXM.js → CRQOCmwo.js} +7 -7
- package/web/app/immutable/chunks/{C723Veio.js → CRqiQDbX.js} +1 -1
- package/web/app/immutable/chunks/{Bw0IeVy1.js → CS1d84Cn.js} +1 -1
- package/web/app/immutable/chunks/{DdwwnwEU.js → CTthB0JK.js} +1 -1
- package/web/app/immutable/chunks/{BTxRR5tz.js → CVBBsS8i.js} +1 -1
- package/web/app/immutable/chunks/{DRHN1_Cd.js → CW2_8Qo8.js} +1 -1
- package/web/app/immutable/chunks/{D3cS8a_B.js → CWMWrTe0.js} +1 -1
- package/web/app/immutable/chunks/{CbGnxjOM.js → CX6Z33tv.js} +1 -1
- package/web/app/immutable/chunks/{B1ELYeiC.js → CX89Aogf.js} +1 -1
- package/web/app/immutable/chunks/{BMafDnH1.js → CXruy7R4.js} +1 -1
- package/web/app/immutable/chunks/{CeXEIZ_X.js → CXu6aWOL.js} +1 -1
- package/web/app/immutable/chunks/{CqJYE2BI.js → CYvdhBss.js} +1 -1
- package/web/app/immutable/chunks/{PJDGiarN.js → CZ1Jg-sG.js} +1 -1
- package/web/app/immutable/chunks/{C8chCNZC.js → CZFoI5QY.js} +2 -2
- package/web/app/immutable/chunks/{DpSTAF6f.js → C_fEvnNK.js} +1 -1
- package/web/app/immutable/chunks/{BsHwyYum.js → CajYOO74.js} +1 -1
- package/web/app/immutable/chunks/{BG8_YibP.js → CbNazQqj.js} +1 -1
- package/web/app/immutable/chunks/{Bcoxg00q.js → Cci8BWX_.js} +3 -3
- package/web/app/immutable/chunks/{CeH1-IFA.js → Ccj-b14I.js} +1 -1
- package/web/app/immutable/chunks/{Dzpx8dBT.js → CclADFoZ.js} +2 -2
- package/web/app/immutable/chunks/{BrnKg8z1.js → CeMTgCB3.js} +2 -2
- package/web/app/immutable/chunks/{D_PPEYyI.js → CfgPxwA4.js} +1 -1
- package/web/app/immutable/chunks/{CcEiTh-4.js → ChYWsi4Z.js} +1 -1
- package/web/app/immutable/chunks/{DWjmi9tH.js → CiB1yTSc.js} +3 -3
- package/web/app/immutable/chunks/{CptC_Uum.js → CnuSxcLR.js} +1 -1
- package/web/app/immutable/chunks/{DN-WSfNU.js → CoEKpjkL.js} +1 -1
- package/web/app/immutable/chunks/{DcKxGpqI.js → CoQLGQdj.js} +1 -1
- package/web/app/immutable/chunks/{AdAUM0KU.js → Cp9AnykR.js} +1 -1
- package/web/app/immutable/chunks/{Z8sIHDod.js → CqyYuyXE.js} +1 -1
- package/web/app/immutable/chunks/{C9TPtINb.js → CrPyrftw.js} +3 -3
- package/web/app/immutable/chunks/{Dt0exTZ5.js → CsP-2ecL.js} +1 -1
- package/web/app/immutable/chunks/{D76C-Lub.js → CtwCGSFA.js} +1 -1
- package/web/app/immutable/chunks/{DnsWe2Zg.js → CwYn_cZy.js} +1 -1
- package/web/app/immutable/chunks/{Cr8elldh.js → CxDLMfRf.js} +1 -1
- package/web/app/immutable/chunks/{DhUVW_9Y.js → CyBNkEuV.js} +1 -1
- package/web/app/immutable/chunks/{Djk4k1SJ.js → CyO8AnLs.js} +1 -1
- package/web/app/immutable/chunks/{y8Xlt_QT.js → CzTIJ9gY.js} +1 -1
- package/web/app/immutable/chunks/{BHUG3Di8.js → CzfXsXYz.js} +1 -1
- package/web/app/immutable/chunks/{ClnUtlN_.js → D-aPtTCv.js} +1 -1
- package/web/app/immutable/chunks/{DLRsFOmD.js → D0GCGQZA.js} +1 -1
- package/web/app/immutable/chunks/{Bh14bdXE.js → D0pR1-a6.js} +1 -1
- package/web/app/immutable/chunks/{6WATeGSz.js → D2hiI0dA.js} +1 -1
- package/web/app/immutable/chunks/D4Lumjru.js +1 -0
- package/web/app/immutable/chunks/D4MoKNoK.js +1 -0
- package/web/app/immutable/chunks/{dGE6HMYD.js → D5bYJMaB.js} +1 -1
- package/web/app/immutable/chunks/{3HhYuBQ5.js → D5jqrM_N.js} +1 -1
- package/web/app/immutable/chunks/{0kUsCNYC.js → D6CS23-9.js} +1 -1
- package/web/app/immutable/chunks/{C95TwfNO.js → D6K58w6v.js} +3 -3
- package/web/app/immutable/chunks/{C1Yon3Fs.js → D7ht9fTY.js} +1 -1
- package/web/app/immutable/chunks/{Ci0ScEWC.js → D805RV1I.js} +1 -1
- package/web/app/immutable/chunks/{D6EjWtzp.js → D8GxmJaV.js} +1 -1
- package/web/app/immutable/chunks/{Br7_wSvp.js → D8_OuTD3.js} +1 -1
- package/web/app/immutable/chunks/{Cb1CevU3.js → D8a6fWF_.js} +1 -1
- package/web/app/immutable/chunks/{BkTViBTC.js → D9ZfYqMq.js} +1 -1
- package/web/app/immutable/chunks/{DIgbsss0.js → DAY2MDvD.js} +1 -1
- package/web/app/immutable/chunks/{C_XVzDtJ.js → DBmzovBA.js} +1 -1
- package/web/app/immutable/chunks/DC38WcVm.js +1 -0
- package/web/app/immutable/chunks/{BKUFkB2Z.js → DDhakcOb.js} +1 -1
- package/web/app/immutable/chunks/{8PEQ8hLc.js → DDi4fKeR.js} +1 -1
- package/web/app/immutable/chunks/{BxiiO4Iw.js → DG8rkBW-.js} +1 -1
- package/web/app/immutable/chunks/{CxHgNIPx.js → DHBpY1EK.js} +1 -1
- package/web/app/immutable/chunks/{CPbL2cqN.js → DI5O_gLl.js} +1 -1
- package/web/app/immutable/chunks/{DiLRxk1W.js → DI7pTzx5.js} +1 -1
- package/web/app/immutable/chunks/{wESj32Mw.js → DIvWSFnj.js} +1 -1
- package/web/app/immutable/chunks/{BjU1p5sL.js → DKwy0FDy.js} +1 -1
- package/web/app/immutable/chunks/{DJly-gFW.js → DL5rLLvU.js} +1 -1
- package/web/app/immutable/chunks/{Et5QnGoZ.js → DO0tFr72.js} +1 -1
- package/web/app/immutable/chunks/{CtSELtkL.js → DOE_TCNp.js} +1 -1
- package/web/app/immutable/chunks/{CzI05dO6.js → DOdMtNpo.js} +1 -1
- package/web/app/immutable/chunks/{DeDjUs04.js → DPd_IJJ7.js} +1 -1
- package/web/app/immutable/chunks/{B_2t4zDu.js → DPfdnkfB.js} +1 -1
- package/web/app/immutable/chunks/{BpPk83wC.js → DPvthnru.js} +1 -1
- package/web/app/immutable/chunks/{Ba4COzVc.js → DQOyHGtr.js} +1 -1
- package/web/app/immutable/chunks/{PhuO6dVo.js → DQ_zmHT9.js} +2 -2
- package/web/app/immutable/chunks/{BdMtzsOL.js → DR1QbPSk.js} +1 -1
- package/web/app/immutable/chunks/{DlKkI_if.js → DR4RT4VO.js} +1 -1
- package/web/app/immutable/chunks/{DF6AYPg_.js → DRYCjR4c.js} +1 -1
- package/web/app/immutable/chunks/{DLZWsh5d.js → DSJT83nX.js} +1 -1
- package/web/app/immutable/chunks/{C7Y7Xcjq.js → DVwKfMN5.js} +1 -1
- package/web/app/immutable/chunks/{CFzvK5D6.js → DWW4w6Jk.js} +1 -1
- package/web/app/immutable/chunks/{CbaotZDu.js → DZ-8K7hK.js} +1 -1
- package/web/app/immutable/chunks/{Bo3xcJTH.js → DZpe54cf.js} +1 -1
- package/web/app/immutable/chunks/{JCCFqsAd.js → D_mcoMIN.js} +1 -1
- package/web/app/immutable/chunks/{BOK7tZ0u.js → DbdgMxO8.js} +1 -1
- package/web/app/immutable/chunks/{JhrIJH4k.js → DcoQTetB.js} +1 -1
- package/web/app/immutable/chunks/{BxQ4u3F0.js → Dd_avILP.js} +1 -1
- package/web/app/immutable/chunks/{Cyx56VLF.js → DditQ6Dc.js} +1 -1
- package/web/app/immutable/chunks/{CiJsLr2J.js → De4WWpS0.js} +1 -1
- package/web/app/immutable/chunks/{-cKrxpnw.js → DeJ360tt.js} +1 -1
- package/web/app/immutable/chunks/{FDVvdcz2.js → DgFojmqv.js} +3 -3
- package/web/app/immutable/chunks/{N_3EVFPG.js → Di6XfBOT.js} +1 -1
- package/web/app/immutable/chunks/{DSpny-f5.js → DjVrYm-R.js} +1 -1
- package/web/app/immutable/chunks/{15pYd3N2.js → Djthn66V.js} +2 -2
- package/web/app/immutable/chunks/{DcUrbytI.js → Dk3JYfn4.js} +1 -1
- package/web/app/immutable/chunks/{zCyqAg-B.js → DkJafW99.js} +1 -1
- package/web/app/immutable/chunks/{O93N6pq0.js → Dkj8SIBR.js} +1 -1
- package/web/app/immutable/chunks/{Cnz7jMnR.js → DmVYXUKU.js} +1 -1
- package/web/app/immutable/chunks/{DheEnqqs.js → Dmip1qZq.js} +1 -1
- package/web/app/immutable/chunks/{NHQHo6R8.js → DoBcYmem.js} +51 -51
- package/web/app/immutable/chunks/{DLNq3Dzg.js → DpiQDkOO.js} +1 -1
- package/web/app/immutable/chunks/{BLKmUQ7j.js → DpyM727L.js} +1 -1
- package/web/app/immutable/chunks/{BQniiLor.js → DqUTyEPN.js} +1 -1
- package/web/app/immutable/chunks/{BGWyYsdo.js → Dq_FaIX5.js} +1 -1
- package/web/app/immutable/chunks/{CjNKHPKC.js → Ds-TYeKV.js} +2 -2
- package/web/app/immutable/chunks/{BEJg4Sbf.js → Ds7can9q.js} +1 -1
- package/web/app/immutable/chunks/DsYKN9zh.js +1 -0
- package/web/app/immutable/chunks/{CQS12qgy.js → DwbzbVQ3.js} +1 -1
- package/web/app/immutable/chunks/{CpTvuo0c.js → Dwola7mR.js} +1 -1
- package/web/app/immutable/chunks/{Clzmvd7M.js → DwwMc3td.js} +1 -1
- package/web/app/immutable/chunks/{DsEsCHJ8.js → DxyRwm0L.js} +1 -1
- package/web/app/immutable/chunks/{CtrmC64x.js → DyQA18KQ.js} +1 -1
- package/web/app/immutable/chunks/{Cc3IoHk5.js → DyaiTi8A.js} +2 -2
- package/web/app/immutable/chunks/{DvIWu0bM.js → DzMB8eQW.js} +1 -1
- package/web/app/immutable/chunks/{DnGYdVeC.js → Dzk1FZ-5.js} +1 -1
- package/web/app/immutable/chunks/{ytSsfHOi.js → EPni7PhH.js} +1 -1
- package/web/app/immutable/chunks/{BLdRIYgd.js → FcnPtqUv.js} +1 -1
- package/web/app/immutable/chunks/{BRiTnHjR.js → GJVVHDkb.js} +1 -1
- package/web/app/immutable/chunks/{bG4sEGuX.js → H_dyzYix.js} +1 -1
- package/web/app/immutable/chunks/{OtBI4VRo.js → HfuFYz2u.js} +1 -1
- package/web/app/immutable/chunks/{B8eIPDu7.js → IrWlayTZ.js} +1 -1
- package/web/app/immutable/chunks/{Z5jotNHL.js → J2ZKQ-lu.js} +1 -1
- package/web/app/immutable/chunks/{E5HQjq_O.js → JqZ92YB_.js} +1 -1
- package/web/app/immutable/chunks/{CONx2grg.js → Jyr4akMd.js} +1 -1
- package/web/app/immutable/chunks/{DehyflGo.js → LFOlphb5.js} +1 -1
- package/web/app/immutable/chunks/{DO3zoQaK.js → LOxI5KoQ.js} +1 -1
- package/web/app/immutable/chunks/{D8EZluP_.js → LoyMyTg_.js} +1 -1
- package/web/app/immutable/chunks/{8xUKp1ov.js → NfelpfPi.js} +1 -1
- package/web/app/immutable/chunks/{Dq-W9mGx.js → OX_6myWb.js} +3 -3
- package/web/app/immutable/chunks/{CJmNIYA9.js → RAzXpC6i.js} +1 -1
- package/web/app/immutable/chunks/{PQ1Aq9aw.js → Ri_Gwy-5.js} +1 -1
- package/web/app/immutable/chunks/{B45Lzffx.js → S9ot6IO_.js} +1 -1
- package/web/app/immutable/chunks/Sk9pLJI5.js +6 -0
- package/web/app/immutable/chunks/{DoxEq2_M.js → Tpzyol5T.js} +2 -2
- package/web/app/immutable/chunks/{cZgi-_WA.js → U9YbfUz9.js} +1 -1
- package/web/app/immutable/chunks/{KLMKvNSD.js → WVYGrHqE.js} +1 -1
- package/web/app/immutable/chunks/{BAR22MDD.js → WZHg24tN.js} +1 -1
- package/web/app/immutable/chunks/{mxfq8-qS.js → Y4N0iJyK.js} +1 -1
- package/web/app/immutable/chunks/{Dq6jwHZ6.js → ZYYtufHC.js} +1 -1
- package/web/app/immutable/chunks/{WwLuvBZd.js → _cj4xlwz.js} +1 -1
- package/web/app/immutable/chunks/{Bar8ZAyw.js → aVNMqNTp.js} +1 -1
- package/web/app/immutable/chunks/{z8qxf2tv.js → bin8Us0N.js} +1 -1
- package/web/app/immutable/chunks/{B6f4X6Cq.js → bjlKIwQF.js} +1 -1
- package/web/app/immutable/chunks/{DCVW2Y_h.js → cesw6DqW.js} +1 -1
- package/web/app/immutable/chunks/{XM2hxWVx.js → cfTDb37Y.js} +1 -1
- package/web/app/immutable/chunks/{CE-1ma0H.js → dimBDqRX.js} +1 -1
- package/web/app/immutable/chunks/{De5CT8ah.js → fJdmRaXe.js} +1 -1
- package/web/app/immutable/chunks/{Byw2XPN_.js → fxR7QMV8.js} +1 -1
- package/web/app/immutable/chunks/{CelyhwOb.js → gNzz3jGE.js} +1 -1
- package/web/app/immutable/chunks/{Bh5viRl2.js → goXBWNik.js} +1 -1
- package/web/app/immutable/chunks/{Buyr-7cI.js → i_sqIi_B.js} +1 -1
- package/web/app/immutable/chunks/{DU0lunxS.js → k5qVf45I.js} +1 -1
- package/web/app/immutable/chunks/{24W0Bn2s.js → kjKGIJZ6.js} +1 -1
- package/web/app/immutable/chunks/{DfwITmIi.js → lKWYFdqV.js} +1 -1
- package/web/app/immutable/chunks/{B-fzbhlo.js → lLF0vfI3.js} +1 -1
- package/web/app/immutable/chunks/{CuaTp0m1.js → lflImyZ6.js} +2 -2
- package/web/app/immutable/chunks/{Bd9QEf8t.js → mf6N49ed.js} +1 -1
- package/web/app/immutable/chunks/{kYkRNrrI.js → oCNF8vh8.js} +1 -1
- package/web/app/immutable/chunks/{BWShw5FX.js → oPjZ8e3L.js} +1 -1
- package/web/app/immutable/chunks/{tLKcAW4W.js → oU2ii1bq.js} +1 -1
- package/web/app/immutable/chunks/{C1itrH63.js → pIvHob4a.js} +1 -1
- package/web/app/immutable/chunks/{ClyMCKaV.js → pl6-mRrC.js} +1 -1
- package/web/app/immutable/chunks/{CDTxQX_O.js → qb0bPcr5.js} +1 -1
- package/web/app/immutable/chunks/{C__5IrZC.js → rL78ODLZ.js} +3 -3
- package/web/app/immutable/chunks/{Bx-glu6w.js → syg_Gxp6.js} +1 -1
- package/web/app/immutable/chunks/v3KbAU5c.js +3 -0
- package/web/app/immutable/chunks/{DFBOrRiy.js → vICHfDZm.js} +1 -1
- package/web/app/immutable/chunks/{woMOP93x.js → wXtCM_sb.js} +1 -1
- package/web/app/immutable/entry/{app.DvoVvHKR.js → app.Cn1_ubOc.js} +3 -3
- package/web/app/immutable/entry/start.7mFy7hlx.js +1 -0
- package/web/app/immutable/nodes/{0.CUhABBgA.js → 0.wKUTDWdz.js} +1 -1
- package/web/app/immutable/nodes/{1.D60NQVeb.js → 1.DxJUaPzW.js} +1 -1
- package/web/app/immutable/nodes/{10.C1M6IFRf.js → 10.eeMW9oGM.js} +1 -1
- package/web/app/immutable/nodes/{11.CIL0R940.js → 11.DzMcYtgT.js} +1 -1
- package/web/app/immutable/nodes/{12.B3DoWG9l.js → 12.BS7aI1vv.js} +1 -1
- package/web/app/immutable/nodes/{13.DIkr4OJs.js → 13.Dj6DavrI.js} +3 -3
- package/web/app/immutable/nodes/{14.BnWbXEMM.js → 14.DMbmYykJ.js} +2 -2
- package/web/app/immutable/nodes/{15.CWOWBkmh.js → 15.BWo3i95L.js} +1 -1
- package/web/app/immutable/nodes/{16.DRycmOMe.js → 16.D7z1ouJw.js} +2 -2
- package/web/app/immutable/nodes/{2.BnNXzTi0.js → 2.BHOa4yl6.js} +4 -4
- package/web/app/immutable/nodes/{3.B1Qb3sEW.js → 3.DLeJMfu1.js} +1 -1
- package/web/app/immutable/nodes/{4.TFhi0XIx.js → 4.BEPpJpXB.js} +1 -1
- package/web/app/immutable/nodes/{5.BGgJOCw5.js → 5.Cb4CR-KH.js} +2 -2
- package/web/app/immutable/nodes/{6.CCZIKTds.js → 6.Bko4vkVy.js} +1 -1
- package/web/app/immutable/nodes/{7.CXxgyB8T.js → 7.z66lh95v.js} +1 -1
- package/web/app/immutable/nodes/{8.Dcka7hLW.js → 8.Cykwxl0x.js} +4 -4
- package/web/app/immutable/nodes/{9.DemnlG5Y.js → 9.Bm3FCmVg.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/BNADo1Q7.js +0 -1
- package/web/app/immutable/chunks/CKKsJ8BG.js +0 -1
- package/web/app/immutable/chunks/DEI12D8u.js +0 -1
- package/web/app/immutable/chunks/DS2ohrPS.js +0 -1
- package/web/app/immutable/chunks/DeiP0erP.js +0 -3
- package/web/app/immutable/chunks/DpPiqmjZ.js +0 -184
- package/web/app/immutable/chunks/DwhTx6cH.js +0 -1
- package/web/app/immutable/chunks/plw0uyc9.js +0 -6
- package/web/app/immutable/entry/start.CiTIdCqa.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G2 as d,q1 as b,FQ as S}from"./
|
|
1
|
+
import{G2 as d,q1 as b,FQ as S}from"./C51KzdSG.js";import{F as A,aX as _}from"./C_fEvnNK.js";import{bs as k}from"./dimBDqRX.js";import{bl as y,bh as w}from"./BfCf1CX7.js";import{bo as n}from"./D4MoKNoK.js";import{t as P}from"./C8yAGnZY.js";const G=d.createSelector(e=>e.backgroundAgentSettings.defaultModel),L=d.createSelector(e=>e.backgroundAgentSettings.typeOverrides),z=d.createSelector((e,t)=>!!(e.backgroundAgentSettings.typeOverrides[t]||e.backgroundAgentSettings.typeReasoningEffortOverrides[t])),F=d.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=d.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),j=d.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function q(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const O=d.createSelector(e=>{const t=new Map,i=(s,c)=>{const g=t.get(s)??new Set;g.add(c),t.set(s,g)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),g=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>g&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:g,path:c}):g?n.settings_providers_inUseSource_label({reason:l,source:g}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
|
|
2
2
|
`)]))});d.createSelector((e,t)=>O.select(e)[t]??null);const U=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],K=U.map(({id:e})=>e);export{K as T,U as a,F as b,j as c,L as d,W as e,z as f,O as g,q as i,R as r,G as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as c}from"./
|
|
1
|
+
import{g as c}from"./CiB1yTSc.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function s(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{s as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G2 as t,sa as u}from"./
|
|
1
|
+
import{G2 as t,sa as u}from"./C51KzdSG.js";import{cC as h}from"./dimBDqRX.js";import{bo as r}from"./D4MoKNoK.js";let A=1,a=null;const s=[],i=new Set;function l(){for(const e of i)e(a)}function S(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function o(e){s.push({...e,id:A++,returnFocus:S()}),a||(a=s.shift()??null,l())}function p(e){return new Promise(n=>o({kind:"confirm",options:e,resolve:n}))}function _(e){return new Promise(n=>o({kind:"prompt",options:e,resolve:n}))}function f(e){return i.add(e),e(a),()=>i.delete(e)}function m(e,n){if(!a||a.id!==e)return;const c=a;a=s.shift()??null,c.resolve(n),c.returnFocus?.focus(),l()}const L=t.createSelector(e=>h.select(e)?.capabilities.gitlabCheckout===!0),I=t.createSelector(e=>e.gitlabAuth.host),C=t.createSelector(e=>e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host),E=t.createSelector(e=>u(e.gitlabAuth.instanceBaseUrl??e.gitlabAuth.host)??""),G=t.createSelector(e=>e.gitlabAuth.isCancelling),y=t.createSelector(e=>e.gitlabAuth.cancelOutcome),T=t.createSelector(e=>e.gitlabAuth.isConfigured),U=t.createSelector(e=>e.gitlabAuth.isAuthenticating),v=t.createSelector(e=>e.gitlabAuth.deviceFlow),N=t.createSelector(e=>e.gitlabAuth.deviceGrantSupported),O=t.createSelector(e=>e.gitlabAuth.user),R=t.createSelector(e=>e.gitlabAuth.error);t.createSelector(e=>e.gitlabAuth.method);const D=t.createSelector(e=>e.gitlabAuth.statusReady===!0),H={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},q=[{value:"assigned",get label(){return r.linearAuth_filter_assigned_label()},get description(){return r.linearAuth_filter_assigned_description()}},{value:"created",get label(){return r.linearAuth_filter_created_label()},get description(){return r.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return r.linearAuth_filter_subscribed_label()},get description(){return r.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return r.linearAuth_filter_team_label()},get description(){return r.linearAuth_filter_team_description()}},{value:"all",get label(){return r.linearAuth_filter_all_label()},get description(){return r.linearAuth_filter_all_description()}}],w=t.createSelector(e=>e.linearAuth.operation),F=t.createSelector((e,n)=>e.linearAuth.operation?.consumerId===n?e.linearAuth.operation:null),k=t.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),P=t.createSelector(e=>e.linearAuth.isAuthenticated),x=t.createSelector(e=>e.linearAuth.requiresDaemonAuth),z=t.createSelector(e=>e.linearAuth.isAuthenticating),B=t.createSelector(e=>e.linearAuth.error),M=t.createSelector(e=>e.sentryAuth.operation),j=t.createSelector((e,n)=>e.sentryAuth.operation?.consumerId===n?e.sentryAuth.operation:null),W=t.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),X=t.createSelector(e=>e.sentryAuth.isAuthenticated),Y=t.createSelector(e=>e.sentryAuth.organization),J=t.createSelector(e=>e.sentryAuth.isConnecting),K=t.createSelector(e=>e.sentryAuth.error),Q="npx not found — install Node.js (with npm) to use Claude Code";export{X as A,J as B,Q as C,W as D,Y as E,m as F,f as G,H as L,q as a,v as b,p as c,N as d,R as e,I as f,E as g,U as h,G as i,T as j,C as k,O as l,L as m,D as n,F as o,_ as p,w as q,B as r,y as s,P as t,z as u,k as v,x as w,j as x,M as y,K as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./X8KOCQId.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./CE-1ma0H.js";import{bo as re}from"./DEI12D8u.js";import{t as Je}from"./BycWLeDe.js";import{M as t1,v as yr,w as wr}from"./plw0uyc9.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./OtBI4VRo.js";import{D as bs,b5 as i1,bl as s1}from"./NyRx-5qE.js";import{p as o1}from"./BQkOKtmR.js";import{b as l1}from"./N_3EVFPG.js";import{i as Ge}from"./BKUFkB2Z.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./FDVvdcz2.js";import{i as ys}from"./DvIWu0bM.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./DpSTAF6f.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
|
|
1
|
+
var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./C51KzdSG.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./dimBDqRX.js";import{bo as re}from"./D4MoKNoK.js";import{t as Je}from"./C8yAGnZY.js";import{M as t1,v as yr,w as wr}from"./Sk9pLJI5.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./HfuFYz2u.js";import{D as bs,b5 as i1,bl as s1}from"./BfCf1CX7.js";import{p as o1}from"./B9YdV5Lr.js";import{b as l1}from"./Di6XfBOT.js";import{i as Ge}from"./DDhakcOb.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./DgFojmqv.js";import{i as ys}from"./DzMB8eQW.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./C_fEvnNK.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
|
|
2
2
|
`)}function e5(t,e){return e.has(t??"manual")}function t5(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const xl=500;function r5(t,e=xl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function n5(t,e,r=xl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function a5(t){if(t.hiddenCount<=0)return"";const e=Je(t.shown),r=Je(t.shown+t.hiddenCount);return t.hiddenCount===1?re.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):re.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:Je(t.hiddenCount)})}function A1(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Oa(t){return t.startsWith("@")?t.slice(1):t}function T1(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Oa(String(a));const i=[r,e,n.trim()].map(Oa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?Bu(s).path:void 0}function E1(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function M1(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=A1(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=T1(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=E1(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Oa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function i5(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dr=mi();function Sl(t){Dr=t}var Er={exec:()=>null};function Ur(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function le(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ve.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var C1=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ur(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}>`))},z1=/^(?:[ \t]*(?:\n|$))+/,I1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,R1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,D1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Al=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tl=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),N1=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),fi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,L1=/^[^\n]+/,gi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O1=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P1=le(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,pi).getRegex(),Ln="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_1=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vi).replace("tag",Ln).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),El=t=>le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),$1=El(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),B1=El(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),q1=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B1).getRegex(),bi={blockquote:q1,code:I1,def:O1,fences:R1,heading:D1,hr:$0,html:_1,lheading:Tl,list:P1,newline:z1,paragraph:$1,table:Er,text:L1},xs=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),F1={...bi,lheading:N1,table:xs,paragraph:le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex()},H1={...bi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(fi).replace("hr",$0).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",Tl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ml=/^( {2,}|\\)\n(?!\s*$)/,G1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ut=/[\p{P}\p{S}]/u,s0=/[\s\p{P}\p{S}]/u,B0=/[^\s\p{P}\p{S}]/u,j1=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,s0).getRegex(),V1=/[\p{Pi}\p{Ps}"']/u,Cl=/(?!~)[\p{P}\p{S}]/u,X1=/(?!~)[\s\p{P}\p{S}]/u,Y1=/(?:[^\s\p{P}\p{S}]|~)/u,K1=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",C1?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z1=le(zl,"u").replace(/punct/g,Ut).getRegex(),Q1=le(zl,"u").replace(/punct/g,Cl).getRegex(),J1=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,eh=le(J1,"u").replace(/openQuote/g,V1).replace(/punct/g,Ut).getRegex(),Il="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",th=le(Il,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),rh=le(Il,"gu").replace(/notPunctSpace/g,Y1).replace(/punctSpace/g,X1).replace(/punct/g,Cl).getRegex(),nh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ah=le(nh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),ih=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),sh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",oh=le(sh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),lh=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ut).getRegex(),ch="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",uh=le(ch,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),hh=le(/\\(punct)/,"gu").replace(/punct/g,Ut).getRegex(),dh=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),mh=le(vi).replace("(?:-->|$)","-->").getRegex(),ph=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",mh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fh=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Mn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rl=le(/^!?\[(label)\]\[(ref)\]/).replace("label",Mn).replace("ref",gi).getRegex(),Dl=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",gi).getRegex(),gh=le("reflink|nolink(?!\\()","g").replace("reflink",Rl).replace("nolink",Dl).getRegex(),Ss=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yi={_backpedal:Er,anyPunctuation:hh,autolink:dh,blockSkip:K1,br:Ml,code:W1,del:Er,delLDelim:Er,delRDelim:Er,emStrongLDelim:Z1,emStrongRDelimAst:th,emStrongRDelimUnd:ih,escape:U1,link:fh,nolink:Dl,punctuation:j1,reflink:Rl,reflinkSearch:gh,tag:ph,text:G1,url:Er},vh={...yi,emStrongLDelim:eh,emStrongRDelimAst:ah,emStrongRDelimUnd:oh,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",Mn).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mn).getRegex()},Pa={...yi,emStrongRDelimAst:rh,emStrongLDelim:Q1,delLDelim:lh,delRDelim:uh,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ss).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:le(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ss).getRegex()},bh={...Pa,br:le(Ml).replace("{2,}","*").getRegex(),text:le(Pa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mn={normal:bi,gfm:F1,pedantic:H1},g0={normal:yi,gfm:Pa,breaks:bh,pedantic:vh},yh={"&":"&","<":"<",">":">",'"':""","'":"'"},As=t=>yh[t];function zt(t,e){if(e){if(Ve.escapeTest.test(t))return t.replace(Ve.escapeReplace,As)}else if(Ve.escapeTestNoEncode.test(t))return t.replace(Ve.escapeReplaceNoEncode,As);return t}function Ts(t){try{t=encodeURI(t).replace(Ve.percentDecode,"%")}catch{return null}return t}function Es(t,e){let r=t.replace(Ve.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ve.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ve.slashPipe,"|");return n}function Qt(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Ms(t){let e=t.split(`
|
|
4
4
|
`),r=e.length-1;for(;r>=0&&Ve.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
|
|
@@ -467,4 +467,4 @@ ${JSON.stringify(J,null,2)}
|
|
|
467
467
|
`),de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:C.length,preservedAnchors:r}),C}typeof window<"u"&&(window.__clearMarkdownCache=Z4);const Jo={major:15,minor:3},Gc="workspace-create:initializeGit",uf="~/Documents",el="~/Developer";function hf(t){return bl(t,Jo.major,Jo.minor)}function g5(t){return t.some(e=>!Uu(e))}function v5(t){return t.rememberedChoice!==null?t.rememberedChoice:t.hasGitWorkspace||t.githubConnected||t.gitlabConnected||t.githubFailed||t.gitlabFailed?!0:!t.workspacesLoaded||!t.githubSettled||!t.gitlabSettled?null:!1}function b5(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function y5(t){try{const e=t?.getItem(Gc);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function w5(t,e){try{t?.setItem(Gc,String(e))}catch{}}function k5(t,e){return t&&t!==el?t:e?uf:el}function df(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function x5(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&df(n,e))):[]}function S5(t){const e=t.contextLinks?.filter(r=>r.kind!=="pr");return{title:t.title??"",repositoryPath:t.repositoryPath,plainFolder:!0,...e&&e.length>0?{contextLinks:e}:{},...t.linearIssue?{linearIssue:t.linearIssue}:{},...t.sentryIssue?{sentryIssue:t.sentryIssue}:{},...t.initialAgent?{initialAgent:t.initialAgent}:{}}}function A5(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function T5(t){return t.labsEnabled&&hf(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function E5(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}function mf(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=mf({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?a1(r.replace(/\.git\/?$/,""),e):null}function jc(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function M5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jc(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function C5(t){return t.type==="local"&&t.path?t.path:void 0}const pf=["/.clones/","/.repo-cache/"];function z5(t){const e=t.replaceAll("\\","/");return pf.some(r=>e.includes(r))}function I5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ff(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function R5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ff(r)}}function D5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jc(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}function gf({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(bs)?bs:null;return s===null||!i(s)?null:s}const N5=E.createSelector(t=>t.workspaceInitializer.hydrated),L5=E.createSelector(t=>t.workspaceInitializer.compactFormState),O5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),P5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),_5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),$5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),B5=E.createSelector(t=>we(t.workspaceInitializer.recentRepos)),q5=E.createSelector((t,e)=>Te(t.workspaceInitializer.recentRepoRefreshes,e)),F5=E.createSelector((t,e)=>Te(t.workspaceInitializer.directoryStatusChecks,e)),H5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),U5=E.createSelector(t=>we(t.workspaceInitializer.remoteSetups)),W5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),G5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),j5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),V5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),X5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),Y5=E.createSelector((t,e)=>({restore:Te(t.workspaceInitializer.draftRestores,e),clear:Te(t.workspaceInitializer.draftClears,e)})),K5=E.createSelector((t,e,r)=>{const n=Te(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),Z5=E.createSelector((t,e)=>Te(t.workspaceInitializer.initializationOutcomes,e)),Q5=E.createSelector((t,e)=>Te(t.workspaceInitializer.initializationResumes,e)),J5=E.createSelector(t=>gf({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:s1.select(t),orchestratorId:i1.select(t)?.id??null})),vf=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=lr.select(t);return e&&r&&Wu.select(t)?JSON.stringify([r,e]):null}),e3=E.createSelector(t=>{const e=vf.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Ot=E.createSelector(t=>fl.select(t)?lr.select(t):null),bf=E.createSelector(t=>{const e=_0.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),t3=E.createSelector(t=>we(t.workspace.workspaces).map(e=>String(e.id))),r3=E.createSelector((t,e,r=De)=>{const n=Ot.select(t),a=Te(t.workspace.workspaces,t0(e)),i=li(t.workspaceDiscussion,e,r);return n&&t.workspaceDiscussion.context===n&&a&&t.workspaceDiscussion.workspaceIds.includes(e)&&i?{context:n,workspaceId:e,conversationId:r,epoch:i.epoch}:null}),Gn=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!o1.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=bf.select(t);if(r)return r===e;try{const[n,a]=JSON.parse(e),i=t.principal.boundPrincipalId??t.principal.snapshot?.principal.id;return n===t.connections.windowBackendId&&(i==null||i===a)}catch{return!1}}),Rt=E.createSelector((t,e,r=De)=>{if(!Te(t.workspace.workspaces,t0(e))||!Gn.select(t))return un;const a=li(t.workspaceDiscussion,e,r)??un;return r!==De&&r!==Ht&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:un.messages,pending:un.pending}:a}),yf=E.createSelector((t,e,r=De)=>Rt.select(t,e,r).authorized?we(Rt.select(t,e,r).messages):[]),n3=E.createSelector((t,e,r=De)=>Rt.select(t,e,r).authorized?we(Rt.select(t,e,r).pending):[]),wf=E.createSelector((t,e,r=De)=>{const n=Te(t.workspace.workspaces,t0(e)),a=Rt.select(t,e,r);return!!Ot.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===De||(r===Ht?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),a3=E.createSelector(t=>t.workspaceDiscussion.requestedIds),i3=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!li(t.workspaceDiscussion,r,n)})),Vc=E.createSelector((t,e)=>Yc.select(t)===!0&&!!Ot.select(t)&&!!gl.select(t,e)),kf=E.createSelector((t,e)=>Vc.select(t,e)&&!Xc.select(t)),G0=E.createSelector((t,e)=>Gn.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??fs:fs),s3=E.createSelector((t,e)=>we(G0.select(t,e).conversations)),o3=E.createSelector((t,e)=>{if(Gn.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,De])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=G0.select(t,e);return!!Te(r.conversations,De)||r.status!=="ready"||r.hasMore}),l3=E.createSelector((t,e)=>{const r=Gn.select(t)?t.workspaceDiscussion.recipients[e]??gs:gs,n=Rt.select(t,e,Ht).recipientPrincipalIds;return{status:r.status,query:r.query,members:we(r.members),selectedMembers:we(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>Rt.select(t,e,Ht).createdConversationId);const c3=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),u3=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),h3=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),xf=E.createSelector(t=>{const e=_0.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),d3=E.createSelector((t,e,r=De)=>{const n=Rt.select(t,e,r),a=t.workspaceDiscussion.owner,i=xf.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=yf.select(t,e,r).filter(c=>c.sequence>s&&(c.author.agentId!==void 0||c.author.principalId!==i));return{count:o.length,firstSequence:o[0]?.sequence??null}}),Xc=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),j0=E.createSelector((t,e,r=De)=>(r!==Ht||kf.select(t,e))&&wf.select(t,e,r)&&!Xc.select(t)&&!Mf.select(t,e,r)),m3=E.createSelector((t,e)=>Gu.select(t)&&ju.select(t,e)),p3=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),f3=E.createSelector((t,e,r=De)=>r!==Ht&&t.workspaceDiscussion.messageActionsSupported===!0&&j0.select(t,e,r)),g3=E.createSelector((t,e,r=De)=>{const n=Rt.select(t,e,r);return n.replyToMessageId&&n.authorized?Te(n.messages,n.replyToMessageId)??null:null}),Sf=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),Af=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.agentActivitySupported:null),v3=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),b3=E.createSelector((t,e,r=De)=>r!==Ht&&Cf.select(t,e,r)&&Af.select(t)===!0&&j0.select(t,e,r)),y3=E.createSelector((t,e,r=De)=>we(Rt.select(t,e,r).agentControls).map(n=>n.key)),w3=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.reactionsSupported:null),Yc=E.createSelector(t=>t.workspaceDiscussion.context===Ot.select(t)?t.workspaceDiscussion.managementSupported:null),Tf=E.createSelector((t,e)=>Ot.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??vs:vs),Ef=E.createSelector((t,e,r=De)=>{const n=gl.select(t,e);return Vc.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&Te(G0.select(t,e).conversations,r)?.kind==="workspace"}),k3=E.createSelector((t,e,r=De)=>Ef.select(t,e,r)&&Vu.select(t,e)),x3=E.createSelector((t,e,r)=>{const n=Tf.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),Mf=E.createSelector((t,e,r=De)=>{const n=Te(G0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),Cf=E.createSelector((t,e,r=De)=>Sf.select(t)===!0&&j0.select(t,e,r)&&(r===De||Yc.select(t)===!0&&(r===Ht||Te(G0.select(t,e).conversations,r)?.kind==="workspace"))),S3=E.createSelector(t=>t.presence.profileRevision),A3=E.createSelector(t=>t.presence.windowVisible),T3=E.createSelector(t=>t.presence.captureDrawingActive),zf=E.createSelector(t=>fl.select(t)?lr.select(t):null),Kc=t=>{const e=zf.select(t);return e!==null&&t.presence.context===e},E3=E.createSelector(t=>l1.select(t).filter(e=>!!Te(t.workspace.workspaces,t0(e)))),Kr=[],Zr=[],tl=[],If=(t,e)=>{const r=t.rosters[e];return r?we(r):Kr},Lr=(t,e)=>{const r=Te(t.workspace.workspaces,t0(e));return Kc(t)&&r&&(r.memberCount??1)>1?r:void 0},M3=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Lr(t,e))return tl;const n=t.presence.members[e];return n?we(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):tl}),Fi=(t,e)=>({principalId:t.principalId,login:t.login,displayName:t.displayName,avatarUrl:t.avatarUrl,...t.identity?{identity:t.identity}:{},...t.hostRole?{hostRole:t.hostRole}:{},...e}),Rf=t=>t.some(e=>e.online&&!e.self),Dn=t=>t.owner?0:t.online?1:2,Zc=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Lr(t,e))return Zr;const n=t.presence.members[e];if(!n)return Zr;const a=t.presence.rosters[e],i=we(n).filter(s=>s.principalId!==r).map(s=>{const o=a?Te(a,s.principalId):void 0,c=o?{...s,...o}:s;return Fi(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(h=>h.workspaceId===e)??!1,self:!1})}).sort((s,o)=>Dn(s)-Dn(o));return i.length>0?i:Zr}),C3=E.createSelector((t,e)=>{const r=_0.select(t)?.capabilities.hostMembership;return Zc.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),Df=E.createSelector((t,e)=>{if(!Lr(t,e))return Zr;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?we(r):[])a.set(s.principalId,s);for(const s of n?we(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=_0.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),z3=E.createSelector((t,e)=>{const r=Zc.select(t,e),n=t.presence.ownPrincipalId,a=Df.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=Lr(t,e);return[Fi(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),I3=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=Lr(t,e);if(n===null||!a)return Zr;const i=If(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>Fi(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>Dn(s)-Dn(o));return Rf(i)?i:Zr}),R3=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return Kr;const i=new Set;for(const s of Object.keys(n)){const o=n[s];o.expired||o.agentId!==r||s===t.presence.ownTypingSource||Te(a,o.principalId)&&i.add(o.principalId)}return i.size===0?Kr:we(a).filter(s=>i.has(s.principalId))}),Nf=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&Kc(t)&&Lr(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==Ht&&j0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),Lf=E.createSelector(t=>{const e=Nf.select(t);return e?pl(e,t.presence.discussionComposerConversationId):null}),D3=E.createSelector((t,e,r=De)=>{if(r!==De&&!j0.select(t,e,r)||!Lr(t,e)||t.presence.ownPrincipalId===null)return Kr;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return Kr;const i=new Set(Object.entries(n).filter(([s,o])=>!o.expired&&o.conversationId===r&&s!==t.presence.ownTypingSource&&o.principalId!==t.presence.ownPrincipalId).map(([,s])=>s.principalId));return i.size?we(a).filter(s=>i.has(s.principalId)):Kr}),N3=E.createSelector(t=>t.presence.liveDiscussionTyping),Of=E.createSelector(t=>{if(!t.presence.windowVisible)return{focus:[],typing:null};const e=t.tabState.currentTabId;if(!e)return{focus:[],typing:null};const r=[{workspaceId:e}],n=t.panelLayout.byWorkspaceId[e]?.panels??{};for(const i of Object.keys(n).sort()){const s=n[i],o=s.activeTabId?s.tabs.find(c=>c.id===s.activeTabId):void 0;o&&(o.type==="agent"&&o.agentId?r.push({workspaceId:e,agentId:o.agentId}):o.type==="note"&&o.noteId&&r.push({workspaceId:e,noteId:o.noteId}))}const a=t.presence.ownDiscussionTyping;return{focus:r,typing:t.presence.ownTyping,...a&&pl(a.workspaceId,a.conversationId)===Lf.select(t)?{discussionTyping:a}:{}}}),L3=E.createSelector(t=>JSON.stringify(Of.select(t))),O3=E.createSelector(t=>t.presence.liveTyping),P3=E.createSelector(t=>t.presence.ownPrincipalId),_3=E.createSelector(t=>{const e=[];for(const r of Object.keys(t.tabState.openTabs)){if(t.tabState.openTabs[r]!==!0)continue;const n=Te(t.workspace.workspaces,t0(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let or=null;function $3(t){const e={};return or={token:e,onCancel:t},e}function B3(t){return or?.token===t}function q3(t){or?.token===t&&(or=null)}function F3(){return or!==null}function H3(){if(or===null)return!1;const{onCancel:t}=or;return or=null,t(),!0}const ut={IS_AUTHENTICATED:"github-auth:is-authenticated",GET_USER:"github-auth:get-user",START_AUTH:"github-auth:start",POLL_FOR_TOKEN:"github-auth:poll",CANCEL_AUTH:"github-auth:cancel",LOGOUT:"github-auth:logout",GET_AUTH_STATE:"github-auth:get-auth-state",GET_STATUS:"github-auth:get-status",LIST_REPOS:"github-auth:list-repos",SEARCH_REPOS:"github-auth:search-repos",SEARCH_USERS:"github-auth:search-users"},U3={async isAuthenticated(t){try{return await Ge(ut.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await Ge(ut.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await Ge(ut.START_AUTH,t):await Ge(ut.START_AUTH)},async checkAuthComplete(){return await Ge(ut.POLL_FOR_TOKEN)},async cancelAuth(t){return t?Ge(ut.CANCEL_AUTH,t):Ge(ut.CANCEL_AUTH)},async logout(){return Ge(ut.LOGOUT)},async getAuthState(t){try{return await Ge(ut.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await Ge(ut.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await Ge(ut.LIST_REPOS,{page:t,...e===void 0?{}:{workspaceId:e}});if(!r.success)throw new Error(r.error||"Repository discovery failed");return r.data??[]},async searchRepos(t,e){try{return await Ge(ut.SEARCH_REPOS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}},async searchUsers(t,e){try{return await Ge(ut.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class Pf{constructor(){ie(this,"metrics",new Map);ie(this,"completedMetrics",[]);ie(this,"maxCompletedMetrics",100)}start(e,r){oa.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!oa.get("showPerformanceMetrics"))return null;const r=this.metrics.get(e);return r?(r.endTime=performance.now(),r.duration=r.endTime-r.startTime,this.metrics.delete(e),this.completedMetrics.push(r),this.completedMetrics.length>this.maxCompletedMetrics&&this.completedMetrics.shift(),oa.get("logStateChanges")&&rl.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):(rl.warn(`Performance metric "${e}" was not started`),null)}async measure(e,r,n){this.start(e,n);try{const a=await r();return this.end(e),a}catch(a){throw this.end(e),a}}getMetrics(){return[...this.completedMetrics]}clear(){this.metrics.clear(),this.completedMetrics=[]}}const W3=new Pf,rl=new r0("Performance"),nl=t=>{t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296};class _f{constructor(e){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:r,separator:n,dictionaries:a,style:i,seed:s}=e;this.dictionaries=a,this.separator=n,this.length=r,this.style=i,this.seed=s}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
|
|
468
468
|
Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let e=this.seed;return this.dictionaries.slice(0,this.length).reduce((r,n)=>{let a;e?(a=(s=>{if(typeof s=="string"){const o=s.split("").map(h=>h.charCodeAt(0)).reduce((h,m)=>h+m,1),c=Math.floor(Number(o));return nl(c)}return nl(s)})(e),e=4294967296*a):a=Math.random();let i=n[Math.floor(a*n.length)]||"";if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[s,...o]=i.split("");i=s.toUpperCase()+o.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return r?`${r}${this.separator}${i}`:`${i}`},"")}}const al={separator:"_",dictionaries:[]},$f=t=>{const e=[...t&&t.dictionaries||al.dictionaries],r={...al,...t,length:t&&t.length||e.length,dictionaries:e};if(!t||!t.dictionaries||!t.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new _f(r).generate()};var Bf=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],qf=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];const Qc=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,Jc=/^[a-z]{2,15}$/,eu=Bf.filter(t=>Jc.test(t)),tu=qf.filter(t=>Jc.test(t));function G3(){return $f({dictionaries:[eu,tu],separator:"-",style:"lowerCase",length:2})}function j3(t,e){return`${t}-${e}`}function Ff(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const il=new Set(eu),sl=new Set(tu),Hf=new Set;function V3(t){return!t||typeof t!="string"?!1:Qc.test(t)||/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)?!0:/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(t)}function X3(t){if(!t||typeof t!="string")return!1;if(Hf.has(t))return!0;if(Qc.test(t)){const n=Ff(t).split("-");if(n.length===2){const[a,i]=n;if(il.has(a)&&sl.has(i))return!0}}if(/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)){const r=t.split("-");if(r.length===3){const[n,a]=r;if(il.has(n)&&sl.has(a))return!0}}return!1}const Uf=c1("ContextAPI");function Y3(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function ol(t,e,r){return Uf.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await i0("file.placeAttachment",{workspaceId:t,fileName:e,...r.data!==void 0?{data:r.data}:{},...r.sourcePath!==void 0?{sourcePath:r.sourcePath}:{},...r.mimeType!==void 0&&r.mimeType!==""?{mimeType:r.mimeType}:{},...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{},...r.rawScreenshot!==void 0?{rawScreenshot:r.rawScreenshot}:{}})}async function Wf(t,e,r,n,a={}){return await i0("file.attachmentUpload.begin",{workspaceId:t,fileName:e,sizeBytes:r,sha256:n,...a.mimeType!==void 0&&a.mimeType!==""?{mimeType:a.mimeType}:{},...a.idempotencyKey!==void 0?{idempotencyKey:a.idempotencyKey}:{},...a.rawScreenshot!==void 0?{rawScreenshot:a.rawScreenshot}:{}})}const ru=300*1e3;async function Gf(t,e,r,n){return await i0("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:ru})}async function jf(t,e){return await i0("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:ru})}async function Vf(t,e){return await i0("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function Xf(t){const e=typeof t=="string"?{attachmentId:t}:t.attachmentId!==void 0?{workspaceId:t.workspaceId,attachmentId:t.attachmentId}:{workspaceId:t.workspaceId,idempotencyKey:t.idempotencyKey};return await i0("file.getAttachmentInfo",e)}async function K3(t,e,r){return await Ge("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const nu=25*1024*1024,ll=1024*1024*1024,Yf=16*1024*1024,au="attachment upload cancelled";function Kf(t,e){return e?.aborted===!0||t instanceof Error&&t.message===au}function En(t){if(t?.aborted)throw new Error(au)}function Zf(){return!Xu.select(E.state)}function Qf(t){return bl(t,9,13)}function iu(){return Qf(E.state?.daemonHealth?.stats?.protocolVersion)}function Z3(t){if(iu())return t??crypto.randomUUID()}function su(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function Jf(t){return su(t)&&/already committed/i.test(String(t.message??""))}function e2(t){return{ok:!0,path:t.path,fileName:t.fileName,size:t.size,attachmentId:t.attachmentId,...t.mimeType!==void 0?{mimeType:t.mimeType}:{},uploadedAt:t.uploadedAt,replayed:!0,...t.rawScreenshot!==void 0?{rawScreenshot:t.rawScreenshot}:{}}}async function oi(t,e,r=Xf){try{return e2(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function ou(t,e,r){return e!==void 0&&!su(t)&&!Kf(t,r)}async function cl(t,e,r,n,a=()=>!0){try{return it(a),await n()}catch(i){if(it(a),ou(i,e,r)){const s=await oi(t,e);if(s)return s}throw i}}const lu="file:read returned an unexpected response",Hi="file:read failed";function Ui(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(lu);if(!t.success||t.data===void 0)throw new Error(t.error?.message??Hi);return t.data}async function t2(t){const e=await Ge("file:read",{path:t,encoding:"base64",maxSize:nu,truncateIfLarge:!1}),r=Ui(e);if(r.content===void 0)throw new Error(e.error?.message??Hi);return r.content}async function cu(t,e,r){const n=await Ge("file:read-chunk",{path:t,offset:e,length:r});return Ui(n)}async function r2(t){const{size:e}=await cu(t,0,1);return e}async function n2(t){const e=await Ge("file:hash",{path:t});return Ui(e).sha256}const a2=new Set(["Internal error","Backend request failed",lu,Hi]);async function Q3(t,e,r,n,a,i=()=>!0){it(i);const s=iu()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!Zf())return cl(t,s,a,()=>ol(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await r2(r.sourcePath);if(it(i),c>ll)throw new Error(re.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(ll/(1024*1024*1024))}));if(c>nu)return i2(t,e,{...r,idempotencyKey:s},c,n,a,i);const h=await t2(r.sourcePath);return it(i),En(a),cl(t,s,a,()=>ol(t,e,{data:h,mimeType:r.mimeType,...o}),i)}async function i2(t,e,r,n,a,i,s=()=>!0){it(s);const o=await n2(r.sourcePath);it(s),En(i);let c,h;try{({uploadId:c,maxChunkBytes:h}=await Wf(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(it(s),r.idempotencyKey!==void 0&&Jf(w)){const S=await oi(t,r.idempotencyKey);if(S)return S}throw w}const m=Math.min(Yf,h),f=Math.ceil(n/m);let g=!1;try{for(let w=0;w<f;w++){it(s),En(i);const{content:S}=await cu(r.sourcePath,w*m,m);it(s),await Gf(c,w,S,t),it(s),a?.((w+1)/f)}return En(i),it(s),g=!0,await jf(c,t)}catch(w){if(it(s),g&&ou(w,r.idempotencyKey,i)){const S=await oi(t,r.idempotencyKey);if(S)return S}throw it(s),await Vf(c,t).catch(()=>{}),w}}function J3(t){if(!t||typeof t!="object")return;const e=t.data;if(e&&typeof e=="object"){const n=e.detail;if(typeof n=="string"&&n.trim().length>0)return n.trim()}const r=t.message;if(typeof r=="string"&&r.trim().length>0&&!a2.has(r.trim()))return r.trim()}function it(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function uu(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function e6(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(uu(t))}const s2={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","image/heif":"heif","image/jxl":"jxl"};function t6(t,e){const r=s2[uu(t)]??"bin";return`${e}.${r}`}let o2=0;const Wi=new WeakSet;function r6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=Na.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++o2}`;let i=!1;const s=()=>{try{return E.dispatch===e&&E.state.connections.windowBackendId===r}catch{return!1}},o=()=>s()&&E.state.workspace.deletionTokens[t.id]===a,c=()=>s()&&lr.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:Na.select(E.state,t.id)===n),h={workspaceId:t.id,current:c,terminal(){return!i||!o()||lr.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(m=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(Du(t.id,a)),m&&e(Nu(t.id)),i=!0,c())},restore(){c()&&(e(Da(t.id,a)),e(Ru(t)))},expire(){o()&&e(Da(t.id,a))}};return Wi.add(h),h}function ul(t,e){return Wi.has(t)&&t.workspaceId===e&&t.current()}function l2(t,e){return Wi.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function n6(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=E.state.workspace.deletionTokens[t];return()=>{try{n&&E.dispatch===e&&E.state.connections.windowBackendId===r&&e(Da(t,n))}catch{}}}function Sr(t,e){const r=()=>t===void 0?Yu.select(E.state)?lr.select(E.state):null:e?Ku.select(E.state,t,e):Na.select(E.state,t),n=E.dispatch,a=r();return()=>{try{return E.dispatch===n&&a!==null&&a===r()}catch{return!1}}}const nt=()=>({ok:!1,error:re.workspace_client_accessChanged_error()}),nr=new r0("WorkspaceClient"),c2=100;function x0(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class u2{constructor(){ie(this,"pendingRequests",new Map);ie(this,"cache",new Map);ie(this,"CACHE_TTL",5e3);ie(this,"mutationCounter",0)}getCacheKey(e,r){return`${e}:${JSON.stringify(r||{})}`}pruneExpiredCacheEntries(e=Date.now()){for(const[r,n]of this.cache)e-n.timestamp>=this.CACHE_TTL&&this.cache.delete(r)}setCacheEntry(e,r){for(this.pruneExpiredCacheEntries(),this.cache.delete(e),this.cache.set(e,{data:r,timestamp:Date.now()});this.cache.size>c2;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==yr.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===yr.LIST?JSON.stringify([E.state.connections.windowBackendId,lr.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return nr.debug(`[WorkspaceClient] Reusing pending request for ${e}`),i;if(this.shouldCacheResponse(e)){const o=this.cache.get(a);if(o&&Date.now()-o.timestamp<this.CACHE_TTL)return nr.debug(`[WorkspaceClient] Using cached response for ${e}`),{ok:!0,data:o.data};o&&this.cache.delete(a)}const s=(async()=>{if(typeof window<"u"&&window.electronAPI){let o=r;if(r!==void 0)try{o=JSON.parse(JSON.stringify(r))}catch(m){if(nr.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:m,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[f,g]of Object.entries(r))try{JSON.stringify(g)}catch{nr.error(`[WorkspaceClient] Non-serializable field: ${f}`,{type:typeof g,constructor:g?.constructor?.name})}throw new Error(`Data serialization failed: ${m instanceof Error?m.message:"Unknown error"}`)}const c=await ys(e,o),h=this.normalizeResponse(c);return h.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,h.data),h}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return nr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}clearCache(e){if(this.mutationCounter++,e){for(const[r]of this.cache)r.includes(e)&&this.cache.delete(r);for(const[r]of this.pendingRequests)r.includes(e)&&this.pendingRequests.delete(r)}else this.cache.clear(),this.pendingRequests.clear()}normalizeResponse(e){return e==null?{ok:!1,error:"No response received"}:"ok"in e?e.ok?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:"success"in e?e.success?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:{ok:!1,error:"Invalid response format"}}async list(e){const r=await this.invoke(yr.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(x0)}:{ok:!0,data:r.data.map(x0),complete:!0}:r}async create(e){const r=e.initialAgent;nr.info(`[WorkspaceClient] create called: title=${e.title}, hasInitialAgent=${!!r}, specialist=${r?.specialist}, model=${r?.model}, keys=${r?Object.keys(r).join(","):"none"}`);const n=Sr();if(!n())return nt();const a=await wr.workspaces.create(e);if(!n())return nt();if(nr.info("[WorkspaceClient] create result",{success:a.success,scope:e.scope,initialAgentId:a.success?a.initialAgent?.id:void 0,error:a.success?void 0:a.error}),a.success&&a.workspace)return this.clearCache(),{ok:!0,data:{workspace:x0(a.workspace),initialAgent:a.initialAgent,...a.proposalOrigin?{proposalOrigin:a.proposalOrigin}:{}}};const i=a.error||re.workspace_client_createFailed_error();return a.errorCode?{ok:!1,error:i,errorCode:a.errorCode,...a.launchFailure?{launchFailure:a.launchFailure}:{}}:{ok:!1,error:i}}async open(e){const r=await this.invoke(yr.OPEN,{id:e});return r.ok?{ok:!0,data:x0(r.data)}:r}async update(e){const r=Sr(e.id,Object.keys(e));if(!r())return nt();const n=await wr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:x0(n.workspace)}):{ok:!1,error:n.error||re.workspace_client_updateFailed_error()}:nt()}async delete(e,r,n){const a=n?()=>ul(n,e):Sr(e);if(!a())return{...nt(),obsolete:!0};const i=await wr.workspaces.delete(e,r);return!a()&&!(n&&l2(n,e))?{...nt(),obsolete:!0}:i.success?(this.clearCache(e),this.clearCache(),i.scheduled&&i.deleteAt?{ok:!0,data:{scheduled:!0,deleteAt:i.deleteAt}}:{ok:!0,data:void 0}):{ok:!1,error:i.error||re.workspace_client_deleteFailed_error()}}async cancelDelete(e,r){const n=r?()=>ul(r,e):Sr(e);if(!n())return{...nt(),obsolete:!0};const a=await wr.workspaces.cancelDelete(e);return n()?a.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:{cancelled:a.cancelled===!0}}):{ok:!1,error:a.error||re.workspace_client_cancelDeleteFailed_error()}:{...nt(),obsolete:!0}}async archive(e){const r=Sr(e);if(!r())return nt();const n=await wr.workspaces.archive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||re.workspace_client_archiveFailed_error()}:nt()}async unarchive(e){const r=Sr(e);if(!r())return nt();const n=await wr.workspaces.unarchive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||re.workspace_client_unarchiveFailed_error()}:nt()}async retire(e){const r=Sr(e);if(!r())return nt();const n=await wr.workspaces.retire(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:n.workspace}):{ok:!1,error:n.error||re.workspace_ops_purgeFailed_error(),...n.errorCode?{errorCode:n.errorCode}:{}}:nt()}async invokeFresh(e,r){try{if(typeof window<"u"&&window.electronAPI){const n=await ys(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return nr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(yr.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(yr.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(yr.GET_TASKS,{workspaceId:e})}}const a6=new u2;function hl(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function dl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function hu(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||Lu(t)),a=e.map(x=>hl(x,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(we(t.seeds).flatMap(x=>hn(x,t.scope.principalId))),s=we(t.submissions).filter(x=>!i.has(x.id)),o=new Set(e.flatMap(x=>hn(x,t.scope.principalId))),c=we(t.processing).filter(x=>!hn(x,t.scope.principalId).some(C=>o.has(C))),h=s.filter(x=>x.destination==="conversation");if(!r)return{conversation:h,processing:c,queue:a};for(const x of we(t.seeds)){const C=a.findIndex(Y=>Y.confirmedId===x.id),U=hl(x,!0),K=hn(x,t.scope.principalId);U.contributions=we(t.submissions).filter(Y=>K.includes(Y.id)),C>=0?(U.confirmed=a[C].confirmed,a[C]=U):(U.confirmedId=void 0,U.confirmed=void 0,a.push(U))}const m=e.filter(x=>x.mergeEligible===!0),f=!n&&m.length===1&&m[0].author?.principalId===t.scope.principalId&&m[0].submissionIds?.length&&!m[0].recoverySources?m[0].id:void 0;let g=f?a.find(x=>x.confirmedId===f):void 0;for(const x of s.filter(C=>C.destination==="queue")){const C=g&&dl(g)&&dl(x)?g:void 0;if(C)C.content=[C.content,x.content].filter(Boolean).join(`
|
|
469
469
|
|
|
470
|
-
`),C.imageBlocks.push(...x.imageBlocks??[]),C.fileBlocks.push(...x.fileBlocks??[]),C.contextItems.push(...x.contextItems??[]),C.contributions.push(x),C.blocksMutations=!0,g=C;else{const U={key:x.id,content:x.content,imageBlocks:[...x.imageBlocks??[]],fileBlocks:[...x.fileBlocks??[]],contextItems:[...x.contextItems??[]],contributions:[x],blocksMutations:!0};a.push(U),n||(g=U)}}const w=new Map(we(t.submissions).map((x,C)=>[x.id,C])),S=x=>Math.min(...x.contributions.map(C=>w.get(C.id)??1/0)),M=a.filter(x=>!x.confirmedId).sort((x,C)=>S(x)-S(C));let I=0;for(let x=0;x<a.length;x+=1)a[x].confirmedId||(a[x]=M[I++]);return{conversation:h,processing:c,queue:a}}function h2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const jn=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!Ou(r.scope,e)||Zu.select(t,e.workspaceId)!==e.participation||_0.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),d2=E.createSelector((t,e)=>hu(jn.select(t,e),Nn.select(t,e.agentId,e.workspaceId))),i6=E.createSelector(t=>t.pendingSubmissions),s6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&(!!Te(r.operations,e.id)||!!Te(r.submissions,e.id))}),m2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?d2.select(t,n):hu(void 0,Nn.select(t,e,r))}),o6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&Te(r.operations,e.id)?.observed===!0}),l6=E.createSelector((t,e,r,n)=>h2(m2.select(t,e,r).queue,n));function Gi(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?jn.select(t,n):void 0;return a?[...we(a.submissions),...we(a.processing),...we(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>h1({metadata:i.messageMetadata}).includes(r)):!1}function p2(t,e,r,n=!1){const a=Qu.select(t,e),i=Nn.select(t,e),s=t.agentSessions?.byAgentId[e],o=ui(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??ci.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,m=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,f=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,g=m?n||yl(r,m.messageId)||wl(i,m.messageId)?null:m:u1(f,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!g||Gi(t,e,g.messageId)||kl(s?.metadata,g.messageId)?null:g}function f2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>d1(e)!==null)}function c6(t,e,r){if(p2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=ui(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||Gi(t,e,a.messageId)||kl(n?.metadata,a.messageId)||yl(r,a.messageId))return!1;const i=Nn.select(t,e);if(wl(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??ci.select(t,e,a.messageId);if(s)return!f2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function u6(t,e){const r=ui(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||Gi(t,e,r.messageId)||ci.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const g2=E.createSelector(t=>t.permission.requests),v2=E.createSelector(t=>we(g2.select(t))),b2=E.createSelector((t,e)=>v2.select(t).filter(r=>r.sessionId===e)),h6=E.createSelector((t,e)=>b2.select(t,e).length),d6=E.createSelector(t=>{const e=lr.select(t);if(!e||!Ju.select(t,t.connections.windowBackendId))return null;const r=we(t.workspace.workspaces).filter(n=>vl.select(t,n.id)!==null).map(n=>n.id).sort();return JSON.stringify([e,r])}),m6=E.createSelector(t=>JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(e=>{if(!e.workspaceId)return[];const r=vl.select(t,e.workspaceId);return[[e.id,e.workspaceId,r,e1.select(t,e.workspaceId)]]}).sort((e,r)=>e[0].localeCompare(r[0])))),p6=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?Te(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function f6(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function g6(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const v6=E.createSelector(t=>t.uiLayout.lineWrapping),b6=E.createSelector(t=>t.uiLayout.foldUnchanged),y6=E.createSelector(t=>t.uiLayout.diffSideBySide),w6=E.createSelector(t=>t.uiLayout.diffIndicators),k6=E.createSelector(t=>t.uiLayout.sidebarWidth),x6=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),S6=E.createSelector(t=>t.uiLayout.sidebarCollapsed),A6=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:Pu[r]}),T6=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),E6=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),M6=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),C6=E.createSelector(t=>t.uiLayout.sidebarSide),z6=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),I6=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0);E.createSelector((t,e)=>t.uiLayout.collapsiblePanelCollapsed[e]);export{F3 as $,Ff as A,J3 as B,ke as C,x4 as D,i5 as E,a5 as F,ut as G,G3 as H,Xf as I,$2 as J,R5 as K,q2 as L,nu as M,A4 as N,J2 as O,F2 as P,mf as Q,M5 as R,C5 as S,jc as T,Yf as U,d5 as V,U2 as W,H2 as X,I5 as Y,Nl as Z,U3 as _,Vf as a,
|
|
470
|
+
`),C.imageBlocks.push(...x.imageBlocks??[]),C.fileBlocks.push(...x.fileBlocks??[]),C.contextItems.push(...x.contextItems??[]),C.contributions.push(x),C.blocksMutations=!0,g=C;else{const U={key:x.id,content:x.content,imageBlocks:[...x.imageBlocks??[]],fileBlocks:[...x.fileBlocks??[]],contextItems:[...x.contextItems??[]],contributions:[x],blocksMutations:!0};a.push(U),n||(g=U)}}const w=new Map(we(t.submissions).map((x,C)=>[x.id,C])),S=x=>Math.min(...x.contributions.map(C=>w.get(C.id)??1/0)),M=a.filter(x=>!x.confirmedId).sort((x,C)=>S(x)-S(C));let I=0;for(let x=0;x<a.length;x+=1)a[x].confirmedId||(a[x]=M[I++]);return{conversation:h,processing:c,queue:a}}function h2(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const jn=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!Ou(r.scope,e)||Zu.select(t,e.workspaceId)!==e.participation||_0.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),d2=E.createSelector((t,e)=>hu(jn.select(t,e),Nn.select(t,e.agentId,e.workspaceId))),i6=E.createSelector(t=>t.pendingSubmissions),s6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&(!!Te(r.operations,e.id)||!!Te(r.submissions,e.id))}),m2=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?d2.select(t,n):hu(void 0,Nn.select(t,e,r))}),o6=E.createSelector((t,e)=>{const r=jn.select(t,e.scope);return!!r&&Te(r.operations,e.id)?.observed===!0}),l6=E.createSelector((t,e,r,n)=>h2(m2.select(t,e,r).queue,n));function Gi(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?jn.select(t,n):void 0;return a?[...we(a.submissions),...we(a.processing),...we(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>h1({metadata:i.messageMetadata}).includes(r)):!1}function p2(t,e,r,n=!1){const a=Qu.select(t,e),i=Nn.select(t,e),s=t.agentSessions?.byAgentId[e],o=ui(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??ci.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,m=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,f=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,g=m?n||yl(r,m.messageId)||wl(i,m.messageId)?null:m:u1(f,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!g||Gi(t,e,g.messageId)||kl(s?.metadata,g.messageId)?null:g}function f2(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>d1(e)!==null)}function c6(t,e,r){if(p2(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=ui(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||Gi(t,e,a.messageId)||kl(n?.metadata,a.messageId)||yl(r,a.messageId))return!1;const i=Nn.select(t,e);if(wl(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??ci.select(t,e,a.messageId);if(s)return!f2(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function u6(t,e){const r=ui(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||Gi(t,e,r.messageId)||ci.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const g2=E.createSelector(t=>t.permission.requests),v2=E.createSelector(t=>we(g2.select(t))),b2=E.createSelector((t,e)=>v2.select(t).filter(r=>r.sessionId===e)),h6=E.createSelector((t,e)=>b2.select(t,e).length),d6=E.createSelector(t=>{const e=lr.select(t);if(!e||!Ju.select(t,t.connections.windowBackendId))return null;const r=we(t.workspace.workspaces).filter(n=>vl.select(t,n.id)!==null).map(n=>n.id).sort();return JSON.stringify([e,r])}),m6=E.createSelector(t=>JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(e=>{if(!e.workspaceId)return[];const r=vl.select(t,e.workspaceId);return[[e.id,e.workspaceId,r,e1.select(t,e.workspaceId)]]}).sort((e,r)=>e[0].localeCompare(r[0])))),p6=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?Te(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function f6(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function g6(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const v6=E.createSelector(t=>t.uiLayout.lineWrapping),b6=E.createSelector(t=>t.uiLayout.foldUnchanged),y6=E.createSelector(t=>t.uiLayout.diffSideBySide),w6=E.createSelector(t=>t.uiLayout.diffIndicators),k6=E.createSelector(t=>t.uiLayout.sidebarWidth),x6=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),S6=E.createSelector(t=>t.uiLayout.sidebarCollapsed),A6=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:Pu[r]}),T6=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),E6=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),M6=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),C6=E.createSelector(t=>t.uiLayout.sidebarSide),z6=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),I6=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0);E.createSelector((t,e)=>t.uiLayout.collapsiblePanelCollapsed[e]);export{F3 as $,Ff as A,J3 as B,ke as C,x4 as D,i5 as E,a5 as F,ut as G,G3 as H,Xf as I,$2 as J,R5 as K,q2 as L,nu as M,A4 as N,J2 as O,F2 as P,mf as Q,M5 as R,C5 as S,jc as T,Yf as U,d5 as V,U2 as W,H2 as X,I5 as Y,Nl as Z,U3 as _,Vf as a,xf as a$,Y3 as a0,g5 as a1,t6 as a2,c5 as a3,l5 as a4,Ip as a5,e5 as a6,Jf as a7,z5 as a8,G2 as a9,W3 as aA,ol as aB,Q3 as aC,x1 as aD,f5 as aE,p5 as aF,hu as aG,Wm as aH,Pi as aI,h2 as aJ,M1 as aK,y5 as aL,oi as aM,v5 as aN,Dp as aO,I0 as aP,Q2 as aQ,p6 as aR,I3 as aS,m2 as aT,R3 as aU,L5 as aV,w6 as aW,y6 as aX,Af as aY,y3 as aZ,Sf as a_,V2 as aa,j2 as ab,f6 as ac,T5 as ad,ks as ae,Kf as af,Zf as ag,e6 as ah,B3 as ai,V3 as aj,zp as ak,X3 as al,Z2 as am,r5 as an,n5 as ao,g6 as ap,K2 as aq,u5 as ar,D5 as as,la as at,Z3 as au,E5 as av,k5 as aw,Cc as ax,Oc as ay,h5 as az,X2 as b,C6 as b$,b3 as b0,kf as b1,k3 as b2,m3 as b3,f3 as b4,Ef as b5,j0 as b6,Cf as b7,c3 as b8,Ot as b9,b6 as bA,S6 as bB,v6 as bC,J5 as bD,Of as bE,L3 as bF,A6 as bG,h6 as bH,jn as bI,i6 as bJ,m6 as bK,d6 as bL,v2 as bM,g2 as bN,T3 as bO,zf as bP,N3 as bQ,O3 as bR,_3 as bS,P3 as bT,S3 as bU,A3 as bV,E3 as bW,l6 as bX,z6 as bY,I6 as bZ,x6 as b_,s3 as ba,o3 as bb,G0 as bc,u3 as bd,Tf as be,x3 as bf,Yc as bg,p3 as bh,yf as bi,bf as bj,n3 as bk,v3 as bl,w3 as bm,Mf as bn,wf as bo,h3 as bp,l3 as bq,g3 as br,a3 as bs,Xc as bt,r3 as bu,D3 as bv,Lf as bw,i3 as bx,d3 as by,t3 as bz,j3 as c,k6 as c0,E6 as c1,T6 as c2,s6 as c3,o6 as c4,M6 as c5,Rt as c6,K5 as c7,Z5 as c8,Q5 as c9,_2 as cA,hf as cB,t5 as cC,hi as cD,m5 as cE,o5 as cF,Bi as cG,a6 as cH,Fo as cI,x5 as cJ,w5 as cK,yt as cL,G5 as ca,V5 as cb,_5 as cc,$5 as cd,F5 as ce,H5 as cf,Y5 as cg,e3 as ch,vf as ci,N5 as cj,P5 as ck,W5 as cl,O5 as cm,X5 as cn,q5 as co,B5 as cp,j5 as cq,U5 as cr,M3 as cs,Df as ct,z3 as cu,C3 as cv,Gf as cw,ou as cx,b5 as cy,Ih as cz,it as d,Wf as e,$3 as f,S5 as g,W2 as h,H3 as i,uu as j,n6 as k,r6 as l,A5 as m,jf as n,Y2 as o,B2 as p,jm as q,Pc as r,oa as s,B4 as t,c6 as u,u6 as v,p2 as w,K3 as x,q3 as y,J4 as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{bo as t}from"./
|
|
1
|
+
import{bo as t}from"./D4MoKNoK.js";function p(a,e){if(!e)return a;const s=({not_started:t.tiptap_taskStatus_notStarted_label,todo:t.tiptap_taskStatus_notStarted_label,waiting:t.tiptap_taskStatus_waiting_label,discussion_needed:t.tiptap_taskStatus_discussionNeeded_label,blocked:t.tiptap_taskStatus_blocked_label,in_progress:t.tiptap_taskStatus_inProgress_label,"in-progress":t.tiptap_taskStatus_inProgress_label,review_required:t.tiptap_taskStatus_reviewRequired_label,complete:t.tiptap_taskStatus_complete_label,done:t.tiptap_taskStatus_complete_label,cancelled:t.tiptap_taskStatus_cancelled_label}[e]??t.tiptap_taskStatus_unknown_label)();return`${a}
|
|
2
2
|
${t.tiptap_taskStatus_status_tooltip({status:s})}`}export{p as g};
|