@intent-hq/web 2.310.0 → 2.310.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{BCfzoYfU.js → -SL67XKV.js} +1 -1
- package/web/app/immutable/chunks/{C10ooCp1.js → 351KaJp_.js} +1 -1
- package/web/app/immutable/chunks/{9H8XjRUA.js → 7Iuyw4Ow.js} +1 -1
- package/web/app/immutable/chunks/{B7YFRmY9.js → 7KTbkf4W.js} +2 -2
- package/web/app/immutable/chunks/{CJRXWUIB.js → 9ySBq1wF.js} +1 -1
- package/web/app/immutable/chunks/{u7rudBWt.js → B0X6Qy4e.js} +1 -1
- package/web/app/immutable/chunks/{B-AmXRdp.js → B20hJMKp.js} +2 -2
- package/web/app/immutable/chunks/{COamqMg3.js → B2safKX4.js} +1 -1
- package/web/app/immutable/chunks/{BhPGdKCS.js → B4dTn6xv.js} +1 -1
- package/web/app/immutable/chunks/{DR8edmqz.js → B8QrskMI.js} +1 -1
- package/web/app/immutable/chunks/{DDfFKaoN.js → B9r0JXjW.js} +1 -1
- package/web/app/immutable/chunks/{CjUOGaIe.js → BBTS8ZOM.js} +3 -3
- package/web/app/immutable/chunks/{B7d6B8i2.js → BCO4VeSA.js} +1 -1
- package/web/app/immutable/chunks/{DO_qdDGF.js → BCm8Gasf.js} +1 -1
- package/web/app/immutable/chunks/{CTI6K_Uf.js → BEdJCn-8.js} +1 -1
- package/web/app/immutable/chunks/{CQSBplf3.js → BEhoKnQT.js} +1 -1
- package/web/app/immutable/chunks/{BdluP0Re.js → BGBb6fI-.js} +1 -1
- package/web/app/immutable/chunks/{Bj5SHeCl.js → BGLkcG6I.js} +2 -2
- package/web/app/immutable/chunks/{BN912nIE.js → BGQ3htf5.js} +1 -1
- package/web/app/immutable/chunks/{DE2cS7Gk.js → BIxkRFIj.js} +2 -2
- package/web/app/immutable/chunks/{C0oSivDJ.js → BKGPkCRs.js} +1 -1
- package/web/app/immutable/chunks/{Jj6giUQG.js → BKLEAopb.js} +1 -1
- package/web/app/immutable/chunks/{ojOCNOao.js → BKSgn5w-.js} +1 -1
- package/web/app/immutable/chunks/{DyHBOL0Q.js → BKY64haD.js} +6 -6
- package/web/app/immutable/chunks/{BreeoU2c.js → BNg3GOxL.js} +2 -2
- package/web/app/immutable/chunks/{BGS2SWF9.js → BOXqfDS_.js} +1 -1
- package/web/app/immutable/chunks/{BFcpLy2V.js → BP_ooGOd.js} +1 -1
- package/web/app/immutable/chunks/{DKQ9ngHk.js → BQApP15C.js} +1 -1
- package/web/app/immutable/chunks/{Cyhorubq.js → BS6cE8e9.js} +1 -1
- package/web/app/immutable/chunks/{CqslOMwD.js → BTXk2yGf.js} +1 -1
- package/web/app/immutable/chunks/{_otPiQOz.js → BUSwtV99.js} +1 -1
- package/web/app/immutable/chunks/{xq16NT3q.js → BV7dztYI.js} +1 -1
- package/web/app/immutable/chunks/{gMys6NxR.js → BV9p4X5I.js} +6 -6
- package/web/app/immutable/chunks/{B-2EcDun.js → BVrOGXf1.js} +1 -1
- package/web/app/immutable/chunks/{41W03kYB.js → BZoKWA-r.js} +1 -1
- package/web/app/immutable/chunks/{CCJs9cZU.js → B_D0NLtg.js} +1 -1
- package/web/app/immutable/chunks/{g3iFlZMW.js → BbiXTFqz.js} +1 -1
- package/web/app/immutable/chunks/{9jrhCQLH.js → Bfkn2BGM.js} +1 -1
- package/web/app/immutable/chunks/{PUlhNAJH.js → BgmKjqUX.js} +1 -1
- package/web/app/immutable/chunks/{dxICYcDB.js → Bhcwd2SW.js} +4 -4
- package/web/app/immutable/chunks/{Bz-Yc7Wl.js → Bk7xBWHf.js} +1 -1
- package/web/app/immutable/chunks/{DZpxiGBS.js → BmDskjjc.js} +1 -1
- package/web/app/immutable/chunks/{CnsnqDQd.js → BoiNnj2h.js} +1 -1
- package/web/app/immutable/chunks/{D7jRh74W.js → BrVvVCxw.js} +1 -1
- package/web/app/immutable/chunks/{3xT4xHCc.js → BsP5G0Fo.js} +1 -1
- package/web/app/immutable/chunks/{DRr3RJL8.js → BtHVXttl.js} +1 -1
- package/web/app/immutable/chunks/{CoIY5b-q.js → ByGsJxdn.js} +1 -1
- package/web/app/immutable/chunks/ByM2DIOs.js +1 -0
- package/web/app/immutable/chunks/{70PyZUYg.js → ByzYvvQp.js} +1 -1
- package/web/app/immutable/chunks/{CSNcNZAr.js → Bz0SnIMO.js} +1 -1
- package/web/app/immutable/chunks/{CS85fbWZ.js → C-Mmob1s.js} +1 -1
- package/web/app/immutable/chunks/{KljALMT3.js → C0DDaBnV.js} +1 -1
- package/web/app/immutable/chunks/{CJNlKuUY.js → C0Yks_oS.js} +1 -1
- package/web/app/immutable/chunks/{CqBIsc3j.js → C1IwSyrV.js} +1 -1
- package/web/app/immutable/chunks/{CaSAI0VT.js → C7oH1dbI.js} +1 -1
- package/web/app/immutable/chunks/{Cbh5ofn-.js → C8CCN24q.js} +1 -1
- package/web/app/immutable/chunks/{BLOlf2p9.js → C9gL5x04.js} +1 -1
- package/web/app/immutable/chunks/{DF1EzKEK.js → C9nyJoiB.js} +1 -1
- package/web/app/immutable/chunks/{W2kuqRhi.js → CBHPIqXg.js} +1 -1
- package/web/app/immutable/chunks/{Br8EhifD.js → CBV2Z_QZ.js} +1 -1
- package/web/app/immutable/chunks/{C_YR_yV-.js → CCIGQjYf.js} +1 -1
- package/web/app/immutable/chunks/{DfF0sVRg.js → CDHds8o_.js} +1 -1
- package/web/app/immutable/chunks/{2t50lsua.js → CEdLQlJ6.js} +1 -1
- package/web/app/immutable/chunks/{Cg-2uoaY.js → CHH2PtZ7.js} +1 -1
- package/web/app/immutable/chunks/{BzAchneh.js → CHIHAnR-.js} +1 -1
- package/web/app/immutable/chunks/{Dqn0Ivcg.js → CHj2oCmD.js} +1 -1
- package/web/app/immutable/chunks/{iYpMWPUv.js → CIXNMjfT.js} +1 -1
- package/web/app/immutable/chunks/{BQqlXz7Q.js → CKFDW9cI.js} +1 -1
- package/web/app/immutable/chunks/{DsJW9cbJ.js → CKQlE_M1.js} +1 -1
- package/web/app/immutable/chunks/{CDACoTI2.js → CPvhRhlk.js} +1 -1
- package/web/app/immutable/chunks/{DXIbhld5.js → CQe4IdgR.js} +1 -1
- package/web/app/immutable/chunks/{50gvEURs.js → CQf-fH5v.js} +1 -1
- package/web/app/immutable/chunks/{Cj_j-lXn.js → CSBhPNbN.js} +1 -1
- package/web/app/immutable/chunks/{CXVxtSkJ.js → CSLTsum9.js} +1 -1
- package/web/app/immutable/chunks/{CnCQnNEp.js → CSbiiZpm.js} +7 -7
- package/web/app/immutable/chunks/{DcI5wCZ5.js → CToDhNW4.js} +1 -1
- package/web/app/immutable/chunks/{CGizsEXq.js → CUvX4uDB.js} +1 -1
- package/web/app/immutable/chunks/{NdkVneBF.js → CWyh7Yhz.js} +1 -1
- package/web/app/immutable/chunks/{DvZBb8H_.js → CYFK9YEX.js} +1 -1
- package/web/app/immutable/chunks/{K10ifhfc.js → CcGF51wP.js} +1 -1
- package/web/app/immutable/chunks/{CaNdc6nO.js → Cd5vVJw4.js} +1 -1
- package/web/app/immutable/chunks/{CMcFXsiy.js → CeEeQIAV.js} +1 -1
- package/web/app/immutable/chunks/{Z1IVvFmx.js → CgAIOmc3.js} +1 -1
- package/web/app/immutable/chunks/{B6EdH0gk.js → CgjSMAIJ.js} +1 -1
- package/web/app/immutable/chunks/{CPm7NntQ.js → Ck7B90Kr.js} +1 -1
- package/web/app/immutable/chunks/{d1jIpATl.js → CkAILno9.js} +1 -1
- package/web/app/immutable/chunks/{D9ytGf5e.js → CkawHIFZ.js} +1 -1
- package/web/app/immutable/chunks/{DNmtQDpd.js → ClXr1b-t.js} +1 -1
- package/web/app/immutable/chunks/{BZmA3QXk.js → CmWBRPmR.js} +1 -1
- package/web/app/immutable/chunks/{C3OhkOVO.js → Cmo-9vFV.js} +1 -1
- package/web/app/immutable/chunks/{BpsqLTOp.js → CnmCWFKQ.js} +1 -1
- package/web/app/immutable/chunks/{zeRt85dY.js → CnszEr0a.js} +1 -1
- package/web/app/immutable/chunks/{C519ihU9.js → CoFCa7Mb.js} +1 -1
- package/web/app/immutable/chunks/{C0f7EiIR.js → CoeuT-m3.js} +1 -1
- package/web/app/immutable/chunks/{C1rjgyNe.js → Coy9jSf1.js} +1 -1
- package/web/app/immutable/chunks/{DPpctSbu.js → CrcLvVto.js} +1 -1
- package/web/app/immutable/chunks/{BibcbnTP.js → CsASRGy9.js} +1 -1
- package/web/app/immutable/chunks/{D4n7ImP1.js → CsYRAdgB.js} +1 -1
- package/web/app/immutable/chunks/{PDuKM1t5.js → Cs_Q6mos.js} +1 -1
- package/web/app/immutable/chunks/{kqGPx169.js → CsnLwu9F.js} +1 -1
- package/web/app/immutable/chunks/{CwpRQv-w.js → CuYeKLE8.js} +1 -1
- package/web/app/immutable/chunks/{CjdtUG_a.js → Cuozo7M1.js} +1 -1
- package/web/app/immutable/chunks/{CZZvWnXg.js → CwH3s3Sg.js} +1 -1
- package/web/app/immutable/chunks/{BgmOiuVG.js → CxRm1vYn.js} +6 -6
- package/web/app/immutable/chunks/{DFCDnAax.js → D-9LH0ah.js} +1 -1
- package/web/app/immutable/chunks/{CZT_wjvA.js → D-o9b0Cd.js} +1 -1
- package/web/app/immutable/chunks/{kOoRis7L.js → D04E4MVv.js} +1 -1
- package/web/app/immutable/chunks/{DUYSWpmE.js → D1QKDDLH.js} +1 -1
- package/web/app/immutable/chunks/{BPG20H4B.js → D411lQkp.js} +1 -1
- package/web/app/immutable/chunks/{eCj-hB88.js → D61DwhDw.js} +1 -1
- package/web/app/immutable/chunks/{DvPohY9Y.js → D81gRUjY.js} +1 -1
- package/web/app/immutable/chunks/{CbMdHBoe.js → DBAJPVI_.js} +1 -1
- package/web/app/immutable/chunks/{Divbj3b8.js → DBt8jmEX.js} +1 -1
- package/web/app/immutable/chunks/{BKTwjZpB.js → DCeW9_0X.js} +2 -2
- package/web/app/immutable/chunks/{BDchM60p.js → DD-T_Om0.js} +1 -1
- package/web/app/immutable/chunks/{DGaGjBKU.js → DEOiJZFa.js} +1 -1
- package/web/app/immutable/chunks/{b7kGm9Ly.js → DHW4IXFj.js} +1 -1
- package/web/app/immutable/chunks/{DOXLMb3q.js → DJ0w8Oax.js} +1 -1
- package/web/app/immutable/chunks/{CAM1CwRY.js → DJ52BT20.js} +1 -1
- package/web/app/immutable/chunks/{GX9YV5ly.js → DK1048Bw.js} +1 -1
- package/web/app/immutable/chunks/{Da48jYxu.js → DLm51UIm.js} +1 -1
- package/web/app/immutable/chunks/{DyPRCICU.js → DMGAuSgb.js} +4 -4
- package/web/app/immutable/chunks/{B2O-zJJK.js → DOHtPCK9.js} +1 -1
- package/web/app/immutable/chunks/{C_sPSbma.js → DOVnLHFz.js} +1 -1
- package/web/app/immutable/chunks/{B2RUMnVi.js → DQEBW0YT.js} +1 -1
- package/web/app/immutable/chunks/{B_EqlvEE.js → DQulsXJ7.js} +1 -1
- package/web/app/immutable/chunks/{CGMhstmi.js → DRMT9vvq.js} +1 -1
- package/web/app/immutable/chunks/{BZJTxW0W.js → DUkegami.js} +1 -1
- package/web/app/immutable/chunks/{DfEETRjs.js → DXOCO_oS.js} +1 -1
- package/web/app/immutable/chunks/{C7_3LSl8.js → DZ0nrC9W.js} +1 -1
- package/web/app/immutable/chunks/{swAYnpK6.js → D_9AVJm5.js} +1 -1
- package/web/app/immutable/chunks/{Bbi-Ieb_.js → DaEQgqyy.js} +1 -1
- package/web/app/immutable/chunks/{xFj9RuQx.js → DdAxykhC.js} +1 -1
- package/web/app/immutable/chunks/{BDEqpi1y.js → DeRneTJF.js} +1 -1
- package/web/app/immutable/chunks/{wihFHGRA.js → DeopB2f-.js} +1 -1
- package/web/app/immutable/chunks/{BeFewn7K.js → DevHtnbn.js} +1 -1
- package/web/app/immutable/chunks/{DtFtH7jZ.js → Df6EnPla.js} +1 -1
- package/web/app/immutable/chunks/{VtMTQAXA.js → DfMKUxMU.js} +1 -1
- package/web/app/immutable/chunks/{DhbOsIE5.js → DhdMM_zt.js} +3 -3
- package/web/app/immutable/chunks/{D2b3DtCR.js → DjEB6QMF.js} +1 -1
- package/web/app/immutable/chunks/{v70CwcHz.js → DkH3yb1j.js} +1 -1
- package/web/app/immutable/chunks/{Bs-gIQLt.js → Doxgswr3.js} +1 -1
- package/web/app/immutable/chunks/{NChdTnqQ.js → Drg52kVf.js} +1 -1
- package/web/app/immutable/chunks/{D1SkvgLK.js → Dt53cexP.js} +1 -1
- package/web/app/immutable/chunks/{zkqMQ7Ph.js → Dx6eBL0x.js} +1 -1
- package/web/app/immutable/chunks/{DWztuYd2.js → DxlwMmI8.js} +1 -1
- package/web/app/immutable/chunks/{BCWCSGn-.js → DzvQOT8_.js} +1 -1
- package/web/app/immutable/chunks/{DUVw4Tv2.js → EZw3rvya.js} +4 -4
- package/web/app/immutable/chunks/{BriIY-V6.js → HP7Asd0t.js} +1 -1
- package/web/app/immutable/chunks/{4jLfrK-n.js → HzpfURmp.js} +1 -1
- package/web/app/immutable/chunks/{CUuCn5ps.js → PJfe_iA1.js} +1 -1
- package/web/app/immutable/chunks/{BDuevalq.js → PXMyYXQv.js} +1 -1
- package/web/app/immutable/chunks/{CKRb139P.js → Qi3HrsAm.js} +1 -1
- package/web/app/immutable/chunks/{BANQT5xk.js → R7gFhaG_.js} +1 -1
- package/web/app/immutable/chunks/{DmUq9QE3.js → S1FanOB0.js} +1 -1
- package/web/app/immutable/chunks/{SJdoTqK2.js → Si43_nYW.js} +1 -1
- package/web/app/immutable/chunks/{CHx78N0-.js → SuMU9B9i.js} +1 -1
- package/web/app/immutable/chunks/{tBYaHQw_.js → TQIai6Ne.js} +1 -1
- package/web/app/immutable/chunks/{C7T4LQE1.js → UaGv-ChR.js} +1 -1
- package/web/app/immutable/chunks/{DqvIKmgg.js → _F3xl3RI.js} +1 -1
- package/web/app/immutable/chunks/{DYy64AXn.js → _MGNV7ZN.js} +1 -1
- package/web/app/immutable/chunks/{BwBhkp82.js → _lZu5Dth.js} +1 -1
- package/web/app/immutable/chunks/{BoTxE-Dg.js → dtB9lR1B.js} +1 -1
- package/web/app/immutable/chunks/{BMvGDYIO.js → ejL3HmTG.js} +3 -3
- package/web/app/immutable/chunks/{D8xJeFNR.js → fULl8IO9.js} +1 -1
- package/web/app/immutable/chunks/{CYhtIPW_.js → gzjZWAx8.js} +1 -1
- package/web/app/immutable/chunks/{I1Pwq7BS.js → hqSEunOk.js} +1 -1
- package/web/app/immutable/chunks/{CjKEz27r.js → j0ThtFJc.js} +1 -1
- package/web/app/immutable/chunks/{DdRfFUWu.js → nGCCQCpO.js} +1 -1
- package/web/app/immutable/chunks/{BpJz1MvJ.js → o-kBqlaj.js} +1 -1
- package/web/app/immutable/chunks/{D6XiPT-X.js → opO2fBQB.js} +1 -1
- package/web/app/immutable/chunks/{Br2I_00T.js → pdFamTTi.js} +1 -1
- package/web/app/immutable/chunks/{CBvSxWdG.js → phowbgF-.js} +1 -1
- package/web/app/immutable/chunks/{BVxirgV2.js → qMHHnffV.js} +1 -1
- package/web/app/immutable/chunks/{D6QUdzQ1.js → qOCErwrn.js} +1 -1
- package/web/app/immutable/chunks/{B6F4Lh4e.js → r1_PrlQL.js} +1 -1
- package/web/app/immutable/chunks/{BKpC4hzB.js → rEI8JpP3.js} +1 -1
- package/web/app/immutable/chunks/{DXaxEP8U.js → s5P9UVzf.js} +1 -1
- package/web/app/immutable/chunks/{Citosjx7.js → sIHUXgeh.js} +1 -1
- package/web/app/immutable/chunks/{BmhnS69e.js → t3bi-ExW.js} +2 -2
- package/web/app/immutable/chunks/{DEg_be2d.js → t9id1Dgw.js} +1 -1
- package/web/app/immutable/chunks/{CCiSNRYo.js → xMirTl3q.js} +1 -1
- package/web/app/immutable/chunks/{BPlpnhzH.js → zXW6V5sa.js} +1 -1
- package/web/app/immutable/entry/{app.CYN435_6.js → app.DlF41taB.js} +2 -2
- package/web/app/immutable/entry/start.CCtO40vu.js +1 -0
- package/web/app/immutable/nodes/{0.Dns3lFCs.js → 0.BLjNhnkb.js} +1 -1
- package/web/app/immutable/nodes/{1.Cd7O-58t.js → 1.DaghOy3j.js} +1 -1
- package/web/app/immutable/nodes/{10.BhPCwuSS.js → 10.CbV_flkh.js} +1 -1
- package/web/app/immutable/nodes/{14.CbX9Og6B.js → 14.N_oC1pv5.js} +1 -1
- package/web/app/immutable/nodes/{16.DYSTj8m0.js → 16.Cn0uYbJe.js} +2 -2
- package/web/app/immutable/nodes/{2.n7fSSeCW.js → 2.CMERPJYK.js} +3 -3
- package/web/app/immutable/nodes/{3.CfhffOh-.js → 3.Dk5w9XeG.js} +1 -1
- package/web/app/immutable/nodes/{4.DNZDs0vZ.js → 4.CvLiKH0B.js} +1 -1
- package/web/app/immutable/nodes/{5.DooL0KdY.js → 5.BL5oLCOi.js} +1 -1
- package/web/app/immutable/nodes/{6.pzplS1TY.js → 6.DiKzgiKt.js} +1 -1
- package/web/app/immutable/nodes/{7.CRhweboS.js → 7.CM-hNW3A.js} +1 -1
- package/web/app/immutable/nodes/{8.CuuXIPiR.js → 8.BThIGSQR.js} +2 -2
- package/web/app/immutable/nodes/{9.hhdT3UPw.js → 9.D70tN3NX.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/BmKF0wck.js +0 -1
- package/web/app/immutable/entry/start.Cuiv1qlw.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as I,bq as s,a_ as G,by as z,br as O,b as N,bu as K,bs as U}from"./7rNOGHzs.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as P,bA as W,W as S,bn as M,c9 as B,aA as n,aB as E,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./CQ4a5a4v.js";import{c as L,f as k}from"./DmsDslNo.js";import{b as Y}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./DSjRkndX.js";import{Hq as ne,rM as oe,bk as ie}from"./CRwmdgt6.js";import{aY as de}from"./
|
|
1
|
+
import{t as I,bq as s,a_ as G,by as z,br as O,b as N,bu as K,bs as U}from"./7rNOGHzs.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as P,bA as W,W as S,bn as M,c9 as B,aA as n,aB as E,ca as T,a7 as Z,ay as $}from"./B8o4lNgr.js";import{s as q}from"./CQ4a5a4v.js";import{c as L,f as k}from"./DmsDslNo.js";import{b as Y}from"./D2g8BuR1.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./D2AmAQEr.js";import{C as se}from"./DSjRkndX.js";import{Hq as ne,rM as oe,bk as ie}from"./CRwmdgt6.js";import{aY as de}from"./EZw3rvya.js";import{m as ce}from"./DY0zw3Os.js";import{bH as le}from"./CB-g50lR.js";import{M as ue}from"./lfJ8pseq.js";const fe=Symbol("card-group"),ve=()=>V(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=E('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=E("<div><!> <!></div>");function he(o,e){if(new.target)return I({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=O(e,me);const m=ve(),w=B(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=D(p(()=>v()??y+1));te(d);const C=D(d+1);var j={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>k("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(w)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?k("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var H=R(h);{var F=t=>{var _=be(),Q=R(_);q(Q,b),W(_),S(t,_)};G(H,t=>{b()&&t(F)})}var J=X(H,2);return q(J,()=>r()??P),W(h),Y(h,t=>i(t),()=>i()),S(o,h),M(j)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=E("<div><!></div>");function Se(o,e){if(new.target)return I({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=O(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>k("type-body min-w-0",a()?"p-0":k(se,"py-4 first:pt-4"),c())]);var b=R(l);return q(b,()=>u()??P),W(l),Y(l,r=>i(r),()=>i()),S(o,l),M(f)}function Ee(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=B(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function ke(o,e){if(new.target)return I({component:ke,...o});A(e,!0);const i=()=>K(l,"$connected$",a),c=()=>K(b,"$slot$",a),[a,u]=U();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Z(),m=$(g);{var w=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};G(m,d=>{i()&&c()!==null&&d(w)})}S(o,g);var y=M(r);return u(),y}export{he as C,ke as W,Se as a,Ee as r};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as Mt,bq as ae,_ as Ar,a_ as re,by as Ut,bu as be,bs as Zt,b as jt,bo as d}from"./7rNOGHzs.js";import{bs as Et,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as Lt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ge,b$ as et,b_ as F,bO as g,bS as p,bl as S,aB as k,bj as Vr,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Wr,br as Br}from"./B8o4lNgr.js";import{E as mr,F as Or}from"./DCaHy20k.js";import{s as rt,l as yt,k as or,h as Pt}from"./DmsDslNo.js";import{c as St}from"./CiENRH6A.js";import{b as _r}from"./D2g8BuR1.js";import{Hq as V,n5 as hr,uI as wr,uH as br,JF as Hr,JG as qr,eu as Jr,ev as Xr,J4 as ir,lg as Ht,AM as nr,rp as sr,nt as Kr,yo as Yr,a9 as lr,HW as Gr,Ib as Zr,mH as Qr,iA as ea,n7 as ta,u7 as ra,yL as aa,J3 as oa}from"./CRwmdgt6.js";import{g as ia}from"./CoSk1zgY.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./BAEcHnha.js";import{by as va,bL as pa,dl as ga}from"./KQTrHxko.js";import{w as cr,d as ma}from"./7TuwH0wv.js";import{f as _a}from"./CPQdU3ZA.js";import{n as Jt}from"./lfJ8pseq.js";import{f as Ce,ax as ha}from"./Bgegixo2.js";import"./CQ4a5a4v.js";import{F as Qe,ab as wa,at as ba,aX as xa,b1 as Tt,co as ya,cp as Pa,bk as $a,cN as ka,c5 as Ia}from"./CFejQM6t.js";import{g as Fa,i as Ca,w as ur}from"./DSjRkndX.js";import{c as Sa}from"./ChTqQfQN.js";import"./D-cnPaTJ.js";import{V as Da}from"./gMys6NxR.js";import{i as Xt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Yt,p as Ma}from"./KbdMwrlk.js";import{M as Ua}from"./dxICYcDB.js";import{t as Kt,u as xr}from"./DzMmhJrp.js";import"./DFHyIdsA.js";import"./Ck-Ax5yG.js";import{M as Dt}from"./yI5lBaQ8.js";import{V as ja}from"./CZERqHN7.js";import{bN as Ea,b4 as La}from"./tBYaHQw_.js";import{ak as za}from"./DUVw4Tv2.js";const yr=V.createSelector((Y,x)=>hr(Y.pdfPreview.previews,x));var Aa=k('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Va=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Gt(Y,x){if(new.target)return Mt({component:Gt,...Y});Et(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Zt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Fe=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),N=O(1),B=O(1),se=O(!0),E=O(!1),Le=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(Le)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const L=crypto.randomUUID();return V.dispatch(wr(Se,L,l,y,...Fe()?[{gitRootId:Fe()}]:[])),()=>{V.dispatch(br(Se,L))}}),ke(()=>{const l=Ie()?.url;let y=!1,L;if(u(Q,null),u(Le,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:X}=await Ar(async()=>{const{loadPdfDocument:he}=await import("./BqoyBPEG.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;L=X(l);const le=await L.promise;y||u(Q,le)}catch(X){if(y)return;u(Le,X instanceof Error&&X.name==="PasswordException"?"password":X instanceof Error&&X.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,L?.destroy()}}),ke(()=>{const l=e(Q),y=e(qe),L=e(N),X=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const K=(_e.get(U)??1)-1;K?_e.set(U,K):(_e.delete(U),U.cleanup()),U=void 0};return u(E,!0),(async()=>{try{if(U=await l.getPage(L),_e.set(U,(_e.get(U)??0)+1),le){de();return}const K=U.getViewport({scale:X}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(K.width*K.height)));y.width=Math.ceil(K.width*ee),y.height=Math.ceil(K.height*ee),y.style.width=`${K.width}px`,y.style.height=`${K.height}px`,he=U.render({canvas:y,viewport:K,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(Le,"invalid")}finally{le||u(E,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Fe()},set gitRootId(l){Fe(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Va(),c=R(o);{var M=l=>{{const y=X=>{Ge();var le=et();F(()=>g(le,e(De))),s(X,le)};let L=i(()=>d.ui_combobox_retry_label());Fa(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(L)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Aa(),L=ue(y),X=R(L);{let ge=i(()=>e(N)<=1);Ce(X,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(X,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Ce(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Ce(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var K=p(de,2),ee=S(K,!0),ot=p(K,2);{let ge=i(()=>e(B)>=3);Ce(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(L);var it=p(L,2),Je=R(it);let Ze;_r(Je,ge=>u(qe,ge),()=>e(qe)),P(it),F((ge,Pe,Xe)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(E)),rt(Je,"aria-label",Xe),Ze=yt(Je,"",Ze,{visibility:e(E)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Kt(e(N)),total:Kt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Kt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(Y,o);var ze=Lt(We);return ie(),ze}const Na=V.createSelector((Y,x)=>hr(Y.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(Y,x){if(new.target)return Mt({component:Pr,...Y});Et(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Zt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Fe=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,E=!1;Vr(()=>{E=!0,V.dispatch(Hr(Q))});function Le(){if(E||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),V.dispatch(qr(Q,m.hostname,m.toString()))}function Ne(m){if(E)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&Le()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Fe()},set allowDownload(m){Fe(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=qa(),We=R(De);{var o=m=>{var w=Oa(),ze=R(w),l=S(ze,!0),y=p(ze,2);{var L=U=>{var de=Wa(),K=S(de,!0);F(ee=>g(K,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},X=U=>{var de=Ba(),K=S(de,!0);F(ee=>g(K,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(N)?U(L):U(X,-1)})}var le=p(y,2);{var he=U=>{Ce(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,K)=>{Ge();var ee=et();F(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Fe()&&U(he)})}P(w),F(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),ze=S(w,!0);F(l=>{rt(w,"src",Ie()?.url??$()),g(ze,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Le()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(Y,De);var M=Lt(ye);return ie(),M}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Xa=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ya=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ga=k("<!> ",1),Za=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(Y,x){if(new.target)return Mt({component:Rt,...Y});Et(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Ce(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Ce(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ge(2),F(()=>g(h,e(Le))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Fe=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},N=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),E=O(0);const Le=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function ze(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(We,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(E),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},L=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},X=()=>{if(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=L(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},K=()=>{u(E,(e(E)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():X(),t.download=e(B),t.click()},ot=async()=>{try{const t=X(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
|
|
1
|
+
import{t as Mt,bq as ae,_ as Ar,a_ as re,by as Ut,bu as be,bs as Zt,b as jt,bo as d}from"./7rNOGHzs.js";import{bs as Et,ca as ke,aD as e,bH as u,a5 as R,bA as P,W as s,bn as Lt,bV as O,c9 as i,aA as oe,c6 as Ot,ay as ue,be as Ge,b$ as et,b_ as F,bO as g,bS as p,bl as S,aB as k,bj as Vr,aw as tt,ai as Nr,c5 as pr,a as gr,a7 as je,aj as vt,cd as Wr,br as Br}from"./B8o4lNgr.js";import{E as mr,F as Or}from"./DCaHy20k.js";import{s as rt,l as yt,k as or,h as Pt}from"./DmsDslNo.js";import{c as St}from"./CiENRH6A.js";import{b as _r}from"./D2g8BuR1.js";import{Hq as V,n5 as hr,uI as wr,uH as br,JF as Hr,JG as qr,eu as Jr,ev as Xr,J4 as ir,lg as Ht,AM as nr,rp as sr,nt as Kr,yo as Yr,a9 as lr,HW as Gr,Ib as Zr,mH as Qr,iA as ea,n7 as ta,u7 as ra,yL as aa,J3 as oa}from"./CRwmdgt6.js";import{g as ia}from"./CoSk1zgY.js";import{a as na,g as sa,i as la,c as da,h as ca,d as ua,e as dr,f as fa,b as qt}from"./BAEcHnha.js";import{by as va,bL as pa,dl as ga}from"./KQTrHxko.js";import{w as cr,d as ma}from"./7TuwH0wv.js";import{f as _a}from"./CPQdU3ZA.js";import{n as Jt}from"./lfJ8pseq.js";import{f as Ce,ax as ha}from"./Bgegixo2.js";import"./CQ4a5a4v.js";import{F as Qe,ab as wa,at as ba,aX as xa,b1 as Tt,co as ya,cp as Pa,bk as $a,cN as ka,c5 as Ia}from"./CFejQM6t.js";import{g as Fa,i as Ca,w as ur}from"./DSjRkndX.js";import{c as Sa}from"./ChTqQfQN.js";import"./D-cnPaTJ.js";import{V as Da}from"./BV9p4X5I.js";import{i as Xt,b as Ta,a as Ra}from"./H2jLkRRS.js";import{C as Yt,p as Ma}from"./KbdMwrlk.js";import{M as Ua}from"./Bhcwd2SW.js";import{t as Kt,u as xr}from"./DzMmhJrp.js";import"./DFHyIdsA.js";import"./Ck-Ax5yG.js";import{M as Dt}from"./yI5lBaQ8.js";import{V as ja}from"./CZERqHN7.js";import{bN as Ea,b4 as La}from"./TQIai6Ne.js";import{ak as za}from"./EZw3rvya.js";const yr=V.createSelector((Y,x)=>hr(Y.pdfPreview.previews,x));var Aa=k('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),Va=k('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function Gt(Y,x){if(new.target)return Mt({component:Gt,...Y});Et(x,!0);const Ie=()=>be(xe,"$preview",at),[at,ie]=Zt();let $=ae(x,"workspaceId",7),ne=ae(x,"filePath",7),Fe=ae(x,"gitRootId",7);const Se=crypto.randomUUID(),xe=yr(Se),_e=new WeakMap;let Q=O(null),qe=O(void 0),N=O(1),B=O(1),se=O(!0),E=O(!1),Le=O(null),Ne=O(0);const ye=i(()=>Ie()?.error??e(Le)),De=i(()=>e(ye)==="missing"?d.file_pdf_missing_error():e(ye)==="large"?d.file_pdf_large_error():e(ye)==="invalid"?d.file_pdf_invalid_error():e(ye)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());ke(()=>{const l=$(),y=ne();e(Ne);const L=crypto.randomUUID();return V.dispatch(wr(Se,L,l,y,...Fe()?[{gitRootId:Fe()}]:[])),()=>{V.dispatch(br(Se,L))}}),ke(()=>{const l=Ie()?.url;let y=!1,L;if(u(Q,null),u(Le,null),u(se,!0),u(N,1),u(B,1),!!l)return(async()=>{try{const{loadPdfDocument:X}=await Ar(async()=>{const{loadPdfDocument:he}=await import("./BqoyBPEG.js");return{loadPdfDocument:he}},[],import.meta.url);if(y)return;L=X(l);const le=await L.promise;y||u(Q,le)}catch(X){if(y)return;u(Le,X instanceof Error&&X.name==="PasswordException"?"password":X instanceof Error&&X.name==="InvalidPDFException"?"invalid":"load",!0)}finally{y||u(se,!1)}})(),()=>{y=!0,L?.destroy()}}),ke(()=>{const l=e(Q),y=e(qe),L=e(N),X=e(B);if(!l||!y)return;let le=!1,he,U;const de=()=>{if(!U)return;const K=(_e.get(U)??1)-1;K?_e.set(U,K):(_e.delete(U),U.cleanup()),U=void 0};return u(E,!0),(async()=>{try{if(U=await l.getPage(L),_e.set(U,(_e.get(U)??0)+1),le){de();return}const K=U.getViewport({scale:X}),ee=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(K.width*K.height)));y.width=Math.ceil(K.width*ee),y.height=Math.ceil(K.height*ee),y.style.width=`${K.width}px`,y.style.height=`${K.height}px`,he=U.render({canvas:y,viewport:K,transform:[ee,0,0,ee,0,0]}),await he.promise}catch{le||u(Le,"invalid")}finally{le||u(E,!1)}})(),()=>{le=!0,he?.cancel(),he?he.promise.then(de,de):de()}});var We={get workspaceId(){return $()},set workspaceId(l){$(l),oe()},get filePath(){return ne()},set filePath(l){ne(l),oe()},get gitRootId(){return Fe()},set gitRootId(l){Fe(l),oe()},$set:Ut,$on:(l,y)=>jt(x,l,y)},o=Va(),c=R(o);{var M=l=>{{const y=X=>{Ge();var le=et();F(()=>g(le,e(De))),s(X,le)};let L=i(()=>d.ui_combobox_retry_label());Fa(l,{onRetry:()=>Ot(Ne),get retryLabel(){return e(L)},class:"m-auto",message:y,$$slots:{message:!0}})}},m=l=>{{let y=i(()=>d.file_pdf_loading_label());Ca(l,{get label(){return e(y)},count:1,class:"p-4"})}},w=l=>{var y=Aa(),L=ue(y),X=R(L);{let ge=i(()=>e(N)<=1);Ce(X,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N,-1),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.file_pdf_previous_label()]),s(Pe,$e)},$$slots:{default:!0}})}var le=p(X,2),he=S(le,!0),U=p(le,2);{let ge=i(()=>e(N)>=e(Q).numPages);Ce(U,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>Ot(N),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.file_pdf_next_label()]),s(Pe,$e)},$$slots:{default:!0}})}var de=p(U,2);{let ge=i(()=>e(B)<=.25);Ce(de,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.max(.25,e(B)-.25),!0),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}var K=p(de,2),ee=S(K,!0),ot=p(K,2);{let ge=i(()=>e(B)>=3);Ce(ot,{variant:"ghost",size:"compact",get disabled(){return e(ge)},onclick:()=>u(B,Math.min(3,e(B)+.25),!0),children:(Pe,Xe)=>{Ge();var $e=et();F(fe=>g($e,fe),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Pe,$e)},$$slots:{default:!0}})}P(L);var it=p(L,2),Je=R(it);let Ze;_r(Je,ge=>u(qe,ge),()=>e(qe)),P(it),F((ge,Pe,Xe)=>{g(he,ge),g(ee,Pe),rt(it,"aria-busy",e(E)),rt(Je,"aria-label",Xe),Ze=yt(Je,"",Ze,{visibility:e(E)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:Kt(e(N)),total:Kt(e(Q).numPages)}),()=>xr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:ne(),page:Kt(e(N))})]),s(l,y)};re(c,l=>{e(ye)?l(M):e(se)||Ie()?.status==="loading"?l(m,1):e(Q)&&l(w,2)})}P(o),s(Y,o);var ze=Lt(We);return ie(),ze}const Na=V.createSelector((Y,x)=>hr(Y.videoPreview.previews,x));var Wa=k('<p role="status"> </p>'),Ba=k('<p role="alert"> </p>'),Oa=k('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),Ha=k('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),qa=k('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Pr(Y,x){if(new.target)return Mt({component:Pr,...Y});Et(x,!0);const Ie=()=>be(qe,"$preview",at),[at,ie]=Zt();let $=ae(x,"sourceUrl",7),ne=ae(x,"fileName",7),Fe=ae(x,"allowDownload",7),Se=ae(x,"downloading",7),xe=ae(x,"onDownload",7),_e=O(null);const Q=crypto.randomUUID(),qe=Na(Q),N=i(()=>Ie()?.status==="loading"),B=i(()=>e(_e)??Ie()?.error);let se=!1,E=!1;Vr(()=>{E=!0,V.dispatch(Hr(Q))});function Le(){if(E||e(N))return;const m=$().startsWith("workspace-file://")?new URL($()):null;if(se||!m||!m.pathname.toLowerCase().endsWith(".mp4")){u(_e,"unsupported");return}se=!0,m.searchParams.set("preview","h264"),V.dispatch(qr(Q,m.hostname,m.toString()))}function Ne(m){if(E)return;const w=m.currentTarget.error?.code;w===2?u(_e,"network"):w!==1&&Le()}var ye={get sourceUrl(){return $()},set sourceUrl(m){$(m),oe()},get fileName(){return ne()},set fileName(m){ne(m),oe()},get allowDownload(){return Fe()},set allowDownload(m){Fe(m),oe()},get downloading(){return Se()},set downloading(m){Se(m),oe()},get onDownload(){return xe()},set onDownload(m){xe(m),oe()},$set:Ut,$on:(m,w)=>jt(x,m,w)},De=qa(),We=R(De);{var o=m=>{var w=Oa(),ze=R(w),l=S(ze,!0),y=p(ze,2);{var L=U=>{var de=Wa(),K=S(de,!0);F(ee=>g(K,ee),[()=>d.editor_fileViewer_videoPreparing_label()]),s(U,de)},X=U=>{var de=Ba(),K=S(de,!0);F(ee=>g(K,ee),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(U,de)};re(y,U=>{e(N)?U(L):U(X,-1)})}var le=p(y,2);{var he=U=>{Ce(U,{variant:"secondary",size:"sm",get onclick(){return xe()},get disabled(){return Se()},children:(de,K)=>{Ge();var ee=et();F(ot=>g(ee,ot),[()=>d.layout_fileTab_downloadFile_label()]),s(de,ee)},$$slots:{default:!0}})};re(le,U=>{Fe()&&U(he)})}P(w),F(()=>g(l,ne())),s(m,w)},c=m=>{var w=Ha(),ze=S(w,!0);F(l=>{rt(w,"src",Ie()?.url??$()),g(ze,l)},[()=>d.editor_fileViewer_videoUnsupported_label()]),tt("error",w,Ne),tt("loadedmetadata",w,l=>{l.currentTarget.videoWidth===0&&Le()}),s(m,w)};re(We,m=>{e(B)||e(N)?m(o):m(c,-1)})}P(De),s(Y,De);var M=Lt(ye);return ie(),M}var Ja=k('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Xa=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ka=k('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),Ya=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),Ga=k("<!> ",1),Za=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),Qa=k('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),eo=k('<td class="border border-border px-2 py-1 text-xs"> </td>'),to=k("<tr></tr>"),ro=k('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),ao=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),oo=k('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),io=k('<div class="h-full flex flex-col"><!></div>');function Rt(Y,x){if(new.target)return Mt({component:Rt,...Y});Et(x,!0);const Ie=t=>{var a=Ja(),f=ue(a);{let D=i(()=>d.editor_fileViewer_zoomOut_tooltip());Ce(f,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:de,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return ya},size:"sm"})},$$slots:{default:!0}})}var _=p(f,2),h=S(_,!0),j=p(_,2);{let D=i(()=>d.editor_fileViewer_zoomIn_tooltip());Ce(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:U,get title(){return e(D)},children:(T,H)=>{Qe(T,{get icon(){return Pa},size:"sm"})},$$slots:{default:!0}})}Ge(2),F(()=>g(h,e(Le))),s(t,a)},at=Sa("FileViewer");let ie=ae(x,"filePath",7),$=ae(x,"fileContent",7,""),ne=ae(x,"sourceUrl",7),Fe=ae(x,"language",7),Se=ae(x,"isBinary",7),xe=ae(x,"allowDownload",7,!0),_e=ae(x,"onDownload",7),Q=ae(x,"downloading",7,!1);const qe=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},N=i(()=>qe(ie())),B=i(()=>ie().split("/").pop()||d.editor_fileViewer_unknown_fallback());let se=O(100),E=O(0);const Le=i(()=>xr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let Ne=O(!1),ye=O(0),De=O(0),We=O(0),o=O(0),c=O(!1),M=null;function m(){const t=M;M=null,u(c,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function w(t){if(t.button!==0||!t.isPrimary||M)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),M={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},u(c,!0),t.preventDefault()}function ze(t){if(!(!M||t.pointerId!==M.pointerId)){if((t.buttons&1)===0){m();return}u(We,M.viewport.scrollLeft,!0),u(o,M.viewport.scrollTop,!0),u(ye,e(ye)+(t.clientX-M.x)),u(De,e(De)+(t.clientY-M.y)),M.x=t.clientX,M.y=t.clientY}}function l(t){t.pointerId===M?.pointerId&&m()}ke(()=>{ie(),ne(),e(se),e(E),u(We,0),u(o,0)}),ke(()=>(ie(),ne(),pr(()=>{m(),u(ye,0),u(De,0)}),m));const y=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},L=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},X=()=>{if(ne())return ne();if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():Se()?`data:${y(ie())};base64,${$()}`:`data:${y(ie())};base64,${$()}`;if($()instanceof ArrayBuffer){const a=new Uint8Array($()).reduce((_,h)=>_+String.fromCharCode(h),""),f=btoa(a);return`data:${y(ie())};base64,${f}`}return""},le=()=>{if(ne())return ne();const t=L(ie());if(!t)return"";if(typeof $()=="string")return $().startsWith("data:")||$().startsWith("http")?$():`data:${t};base64,${$()}`;const a=new Uint8Array($()),f=[],_=32768;for(let h=0;h<a.length;h+=_)f.push(String.fromCharCode(...a.subarray(h,h+_)));return`data:${t};base64,${btoa(f.join(""))}`},he=()=>{const t=typeof $()=="string"?new TextEncoder().encode($()):new Uint8Array($()),a=[],f=32768;for(let _=0;_<t.length;_+=f)a.push(String.fromCharCode(...t.subarray(_,_+f)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},U=()=>{u(se,Math.min(e(se)+25,500),!0)},de=()=>{u(se,Math.max(e(se)-25,25),!0)},K=()=>{u(E,(e(E)+90)%360)},ee=()=>{if(!xe()||Q())return;if(_e()){_e()();return}const t=document.createElement("a");t.href=e(N)==="video"?le():e(N)==="svg"?he():X(),t.download=e(B),t.click()},ot=async()=>{try{const t=X(),a=new Image;a.crossOrigin="anonymous";const f=await new Promise((_,h)=>{a.onload=()=>{const j=document.createElement("canvas");j.width=a.naturalWidth,j.height=a.naturalHeight;const D=j.getContext("2d");if(!D){h(new Error("Failed to get canvas context"));return}D.drawImage(a,0,0),j.toBlob(T=>{T?_(T):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),u(Ne,!0),setTimeout(()=>u(Ne,!1),2e3)}catch(t){at.error("Failed to copy image:",t)}},it=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},Je=t=>t.split(`
|
|
2
2
|
`).map(f=>f.split(",").map(_=>_.trim()));var Ze={get filePath(){return ie()},set filePath(t){ie(t),oe()},get fileContent(){return $()},set fileContent(t=""){$(t),oe()},get sourceUrl(){return ne()},set sourceUrl(t){ne(t),oe()},get language(){return Fe()},set language(t){Fe(t),oe()},get isBinary(){return Se()},set isBinary(t){Se(t),oe()},get allowDownload(){return xe()},set allowDownload(t=!0){xe(t),oe()},get onDownload(){return _e()},set onDownload(t){_e(t),oe()},get downloading(){return Q()},set downloading(t=!1){Q(t),oe()},$set:Ut,$on:(t,a)=>jt(x,t,a)},ge=io();tt("blur",gr,m);var Pe=R(ge);{var Xe=t=>{var a=Xa(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let te=i(()=>d.editor_fileViewer_rotate_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:K,get title(){return e(te)},children:(we,Te)=>{Qe(we,{get icon(){return wa},size:"sm"})},$$slots:{default:!0}})}var j=p(h,4);{let te=i(()=>d.editor_fileViewer_copyImage_tooltip());Ce(j,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ot,get title(){return e(te)},children:(we,Te)=>{var Ee=je(),Be=ue(Ee);{var At=Ke=>{Qe(Ke,{get icon(){return ba},size:"sm",class:"text-green-500"})},pt=Ke=>{Qe(Ke,{get icon(){return xa},size:"sm"})};re(Be,Ke=>{e(Ne)?Ke(At):Ke(pt,-1)})}s(we,Ee)},$$slots:{default:!0}})}var D=p(j,2);{let te=i(()=>!xe()||Q()),we=i(()=>d.editor_fileViewer_download_tooltip());Ce(D,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(te)},get title(){return e(we)},children:(Te,Ee)=>{Qe(Te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var T=p(D,2),H=S(T,!0);P(f);var z=p(f,2),G=S(z);P(a),F(te=>{g(H,e(B)),or(z,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(z,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(G,"src",te),rt(G,"alt",e(B)),yt(G,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(E)??""}deg); transition: transform 0.2s;`)},[()=>X()]),vt("pointerdown",z,w),vt("pointermove",z,ze),vt("pointerup",z,l),tt("pointercancel",z,l),tt("lostpointercapture",z,l),s(t,a)},$e=t=>{var a=Ka(),f=R(a),_=R(f);Ie(_);var h=p(_,2);{let z=i(()=>!xe()||Q()),G=i(()=>d.editor_fileViewer_download_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ee,get disabled(){return e(z)},get title(){return e(G)},children:(te,we)=>{Qe(te,{get icon(){return Tt},size:"sm"})},$$slots:{default:!0}})}var j=p(h,2),D=S(j,!0);P(f);var T=p(f,2),H=S(T);P(a),F(z=>{g(D,e(B)),or(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(c)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),yt(T,`--pan-scroll-x: ${e(We)??""}px; --pan-scroll-y: ${e(o)??""}px;`),rt(H,"src",z),rt(H,"alt",e(B)),yt(H,`translate: ${e(ye)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>he()]),vt("pointerdown",T,w),vt("pointermove",T,ze),vt("pointerup",T,l),tt("pointercancel",T,l),tt("lostpointercapture",T,l),s(t,a)},fe=t=>{const a=i(le);var f=je(),_=ue(f);mr(_,()=>ie()+e(a),h=>{Pr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return xe()},get downloading(){return Q()},onDownload:ee})}),s(t,f)},nt=t=>{var a=Ya(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=R(h),D=p(j);P(h),P(a),F((T,H)=>{g(_,e(B)),rt(j,"src",T),g(D,` ${H??""}`)},[()=>X(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,a)},$t=t=>{var a=Za(),f=p(R(a),2),_=S(f,!0),h=p(f,2);{let j=i(()=>!xe()||Q());Ce(h,{size:"sm",variant:"secondary",onclick:ee,get disabled(){return e(j)},children:(D,T)=>{var H=Ga(),z=ue(H);Qe(z,{get icon(){return Tt},size:"sm",class:"mr-2"});var G=p(z);F(te=>g(G,` ${te??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(D,H)},$$slots:{default:!0}})}P(a),F(j=>g(_,j),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,a)},ct=t=>{{let a=i(()=>it($().toString()));Yt(t,{get value(){return e(a)},language:"json",get fileName(){return ie()},lineNumbers:!0,readOnly:!0})}},ut=t=>{const a=i(()=>Je($().toString()));var f=ro(),_=R(f),h=R(_),j=R(h);Pt(j,23,()=>e(a)[0]||[],(T,H)=>`header-${H}-${T}`,(T,H)=>{var z=Qa(),G=S(z,!0);F(()=>g(G,e(H))),s(T,z)}),P(j),P(h);var D=p(h);Pt(D,23,()=>e(a).slice(1),(T,H)=>`row-${H}`,(T,H,z)=>{var G=to();Pt(G,23,()=>e(H),(te,we)=>`cell-${e(z)}-${we}`,(te,we)=>{var Te=eo(),Ee=S(Te,!0);F(()=>g(Ee,e(we))),s(te,Te)}),P(G),s(T,G)}),P(D),P(_),P(f),s(t,f)},kt=t=>{var a=ao(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),F(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_archive_label()]),s(t,a)},zt=t=>{var a=oo(),f=p(R(a),2),_=S(f,!0),h=p(f,2),j=S(h,!0);P(a),F(D=>{g(_,e(B)),g(j,D)},[()=>d.editor_fileViewer_binary_label()]),s(t,a)},It=t=>{{let a=i(()=>$().toString());Yt(t,{get value(){return e(a)},get language(){return Fe()},get fileName(){return ie()},lineNumbers:!0,highlightActiveLine:!0})}};re(Pe,t=>{e(N)==="image"?t(Xe):e(N)==="svg"?t($e,1):e(N)==="video"?t(fe,2):e(N)==="audio"?t(nt,3):e(N)==="pdf"?t($t,4):e(N)==="json"?t(ct,5):e(N)==="csv"?t(ut,6):e(N)==="archive"?t(kt,7):e(N)==="binary"?t(zt,8):t(It,-1)})}return P(ge),s(Y,ge),Lt(Ze)}Nr(["pointerdown","pointermove","pointerup"]);const no=/access denied|permission denied|outside (?:the )?workspace/i,so=/file not found|no such file or directory/i;function lo(Y){return no.test(Y)?"access-denied":Y===d.files_read_notFound_error()||so.test(Y)?"not-found":"generic"}function co(Y){switch(Y){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var uo=k("<!> <!>",1),fo=k("<!> <!> <!>",1),vo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),fr=k('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),po=k('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),vr=k('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),go=k('<div class="flex items-center gap-3"><!> <!></div>'),mo=k('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),_o=k('<p class="text-xs"> </p>'),ho=k("<li><!></li>"),wo=k('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),bo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),xo=k('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),yo=k('<div class="h-full overflow-auto p-4"><!></div>');function Po(Y,x){if(new.target)return Mt({component:Po,...Y});Et(x,!0);const Ie=()=>be($e,"$workspace",E),at=()=>be(X,"$fileContentStore",E),ie=()=>be(le,"$fileLoadingStore",E),$=()=>be(he,"$fileSavingStore",E),ne=()=>be(U,"$fileErrorStore",E),Fe=()=>be(de,"$fileNotFoundCandidatesStore",E),Se=()=>be(K,"$isFileBinaryStore",E),xe=()=>be(ee,"$isFileDirtyStore",E),_e=()=>be(ot,"$fileLastUpdatedStore",E),Q=()=>be(it,"$ftChanges$",E),qe=()=>be(Xe,"$gutterRead$",E),N=()=>be(De,"$lineWrapping",E),B=()=>be(We,"$diffIndicators",E),se=()=>be(ge,"$rootMediaPreview",E),[E,Le]=Zt(),Ne=r=>{var n=uo(),I=ue(n);{var C=pe=>{var Ae=je(),Oe=ue(Ae);St(Oe,()=>Dt,(ft,_t)=>{_t(ft,{get icon(){return $a},get label(){return e(_)},disabled:!0})}),s(pe,Ae)};re(I,pe=>{!e(te)&&!e(l)&&!e(t)&&pe(C)})}var ve=p(I,2);{var Re=pe=>{{let Ae=i(()=>!e(Ft)||!e(z)),Oe=i(()=>!e(l)&&(!e(Ft)||!e(z)));ja(pe,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Ft)},get previewEnabled(){return e(z)},onTogglePreview:()=>u(z,!e(z)),get showWrap(){return e(Ae)},get wrapEnabled(){return N()},onToggleWrap:()=>V.dispatch(Zr()),get showDiff(){return e(Oe)},get diffEnabled(){return B()},onToggleDiff:()=>V.dispatch(Gr())})}};re(ve,pe=>{o().filePath&&!e(te)&&!e(t)&&pe(Re)})}s(r,n)},ye=r=>{var n=je(),I=ue(n);{var C=ve=>{var Re=fo(),pe=ue(Re);{var Ae=Ve=>{var Ye=je(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_goToChanges_tooltip());St(lt,()=>Dt,(wt,bt)=>{bt(wt,{get icon(){return Ia},get label(){return e(ht)},onclick:Tr})})}s(Ve,Ye)};re(pe,Ve=>{e(kr)&&Ve(Ae)})}var Oe=p(pe,2);{var ft=Ve=>{var Ye=je(),lt=ue(Ye);{let ht=i(()=>d.layout_fileTab_downloadFile_label()),wt=i(()=>!e(gt)||e(st));St(lt,()=>Dt,(bt,Nt)=>{Nt(bt,{get icon(){return Tt},get label(){return e(ht)},onclick:Ct,get disabled(){return e(wt)}})})}s(Ve,Ye)};re(Oe,Ve=>{e(Be)&&Ve(ft)})}var _t=p(Oe,2);{let Ve=i(()=>d.layout_fileTab_deleteFile_tooltip());St(_t,()=>Dt,(Ye,lt)=>{lt(Ye,{get icon(){return ka},get label(){return e(Ve)},onclick:Rr,destructive:!0})})}s(ve,Re)};re(I,ve=>{o().filePath&&!e(te)&&!e(l)&&ve(C)})}s(r,n)},De=Ea(),We=La();let o=ae(x,"tab",7),c=ae(x,"workspaceId",7),M=ae(x,"isActive",7),m=ae(x,"isPanelFocused",7);ke(()=>{const r=c();if(!(!M()||!r||e(w)))return V.dispatch(Jr(r,"files")),()=>V.dispatch(Xr(r,"files"))});const w=i(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),ze=i(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),l=i(()=>!!e(w)),y=i(()=>o().filePath?_a(o().filePath,e(w)):o().filePath),L=Wr(e(y));ke(()=>{L.set(e(y))});const X=na(c(),L),le=sa(c(),L),he=la(c(),L),U=da(c(),L),de=ca(c(),L),K=ua(c(),L),ee=dr(c(),L),ot=fa(c(),L),it=va(c()),Je=ia(),Ze=crypto.randomUUID(),ge=yr(Ze),Pe=`file-gutter:${crypto.randomUUID()}`,Xe=pa(c(),Pe),$e=ga(c()),fe=i(()=>Ie()?.worktreePath||Ie()?.repositoryPath||Ie()?.path||null),nt=i(at),$t=i(ie),ct=i($),ut=i(ne),kt=i(()=>e(ut)?lo(e(ut)):"generic"),zt=5,It=i(()=>(Fe()??[]).slice(0,zt)),t=i(Se),a=i(xe),f=i(_e),_=i(()=>e(ct)?d.ui_saveIndicator_saving_tooltip():e(a)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let h=O(null),j=O(Br([])),D=O(null),T=O(void 0),H=O(void 0),z=O(!0);ke(()=>{const r=o().data?.line,n=o().data?.jumpTimestamp;!r||n!==void 0&&n===e(H)||(u(H,n,!0),u(T,{line:r},!0),u(z,!1))});const G=i(()=>e(w)?cr(o().filePath,e(ze)):null),te=i(()=>e(w)?!e(G):!!(o().filePath&&(Ta(o().filePath)||e(fe)&&Ra(o().filePath,e(fe))))),we=i(()=>o().filePath&&e(fe)?Xt(o().filePath)?o().filePath:`${e(fe)}/${o().filePath}`:null),Te=i(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),Ee=i(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Be=i(()=>c()&&/^[A-Za-z0-9._-]+$/.test(c())?cr(o().filePath,e(fe)):null),At=i(()=>!e(w)&&e(Be)?e(Be).split("/").slice(0,-1).join("/"):void 0),pt=i(()=>e(Te)||e(Ee)?e(Be):null),Ke=i(()=>e(w)&&e(Ee)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);ke(()=>{if(!M()||!e(w)||!e(G)||!e(Ke))return;const r=crypto.randomUUID();return V.dispatch(wr(Ze,r,c(),e(G),{gitRootId:e(w),mimeType:e(Ke)})),()=>V.dispatch(br(Ze,r))});let st=O(!1);const gt=i(()=>!!e(Be)&&!e($t)&&(!e(Ee)||e(D)===e(Be))),Qt=i(()=>e(D)&&c()?`workspace-file://${c()}/${e(D).split("/").map(encodeURIComponent).join("/")}`:null),Vt=i(()=>o().filePath?ta(o().filePath):"plaintext"),Ft=i(()=>e(Vt)==="markdown");ke(()=>{if(!M()||e(Te)||e(w))return;const r=e(pt),n=o().filePath,I=c(),C=o().id;if(u(D,null),!r||!n||!I)return;let ve=!1;const Re=()=>!ve&&c()===I&&o().id===C&&o().filePath===n;return(async()=>{let pe=!1;try{pe=(await ha("file.stat",{workspaceId:I,path:r}))?.isFile===!0}catch{}if(!Re())return;if(pe){u(D,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){u(D,r,!0);return}const{candidates:Ae,truncated:Oe}=await Da(I,r);if(Re()){if(!Oe&&Ae.length===1){V.dispatch(ir(I,n,Ae[0],C));return}u(D,r,!0)}})(),()=>{ve=!0}});function $r(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const mt=i(()=>e(l)||!o().filePath?null:Q().find(r=>$r(r,o().filePath))??null),kr=i(()=>!!e(mt));ke(()=>{if(e(l))return;const r=c(),n=o().filePath,I=e(fe);return()=>{if(!r||!n)return;const C=qt.select(V.state,r,n);if(C?.kind!=="editable-text")return;const ve=Ht(C.localContent),Re=dr.select(V.state,r,n),pe=Xt(n)?n:I?`${I}/${n}`:null;Re&&pe&&V.dispatch(nr(r,n,pe,ve))}}),ke(()=>{const r=o().filePath,n=e(we),I=c();if(!M())return;const C=!e(w)&&!!r&&Xt(r)&&!e(fe);r&&I&&!e(te)&&!e(Ee)&&!e(Te)&&!C&&(e(w)&&e(G)&&e(y)?V.dispatch(sr(I,e(y),n??r,{gitRoot:{id:e(w),relativePath:e(G)}})):V.dispatch(sr(I,r,n??r)))});function Ir(){return e(nt)??""}function Fr(r){e(l)||e(t)||!o().filePath||!c()||!e(we)||V.dispatch(oa(c(),o().filePath,Ht(r)))}function Cr(){if(e(l)||e(t)||!o().filePath||!e(we)||e(nt)===null||e(ct))return;const r=qt.select(V.state,c(),o().filePath);r?.kind==="editable-text"&&V.dispatch(nr(c(),o().filePath,e(we),Ht(r.localContent)))}function Sr(r){const n=o().filePath;!n||!c()||(V.dispatch(aa(c(),n)),V.dispatch(ir(c(),n,r,o().id)))}ke(()=>{const r=o().filePath,n=e(mt);if(!r||!n){u(j,[],!0);return}if(!M())return;const I=c(),C=crypto.randomUUID();return V.dispatch(Kr(I,Pe,C,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{V.dispatch(Yr(I,Pe,C))}}),ke(()=>{const r=qe(),n=r?.result?.kind==="diffs"?r.result.chunks:[],I=n.find(C=>C.file===o().filePath)??n[0];u(j,I?Ma(I.chunks.map(C=>({oldStart:C.oldStart,oldLines:C.oldLines,newStart:C.newStart,newLines:C.newLines,lines:C.lines.map(ve=>(ve.type===lr.Addition?"+":ve.type===lr.Deletion?"-":" ")+ve.content)}))):[],!0)});function Dr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),I=Re=>Or(r,za(Re),n);if(I("editor.save")){r.preventDefault(),e(a)&&!e(ct)&&Cr();return}const C=I("editor.undo")?"undo":I("editor.redo")?"redo":I("editor.toggle-task-list")?"toggle-task-list":I("editor.copy")?"copy":I("editor.select-all")?"select-all":null;if(!C||e(l)&&C!=="copy"&&C!=="select-all")return;C!=="toggle-task-list"&&e(h)?.runShortcut(C)&&r.preventDefault()}function Tr(r){if(!o().filePath||!e(mt))return;const n=r?.metaKey||r?.ctrlKey||!1,C=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;V.dispatch(ra(c(),e(mt),{filePath:o().filePath,changeId:e(mt).id,openInAdjacentPanel:n,sourcePanelId:C}))}async function Ct(){const r=e(Be);if(!(e(l)||!r||!c()||!e(gt)||e(st))){u(st,!0);try{const n=await ma(c(),r,e(fe));!n?.success&&!n?.canceled&&Jt.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{Jt.error(d.layout_fileTab_downloadFailed_error())}finally{u(st,!1)}}}function Rr(){const r=e(we);if(e(l)||!o().filePath||!c()||!r)return;const n=Qr(qt.select(V.state,c(),o().filePath));if(!n){Jt.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}V.dispatch(ea(c(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:n}))}ke(()=>{if(!Je||!M())return;const r={isDirty:!e(l)&&e(a),isSaving:!e(l)&&e(ct)};pr(()=>{Je.registerActions({display:Ne,actions:ye}),Je.registerState(r)})});var Mr={get tab(){return o()},set tab(r){o(r),oe()},get workspaceId(){return c()},set workspaceId(r){c(r),oe()},get isActive(){return M()},set isActive(r){M(r),oe()},get isPanelFocused(){return m()},set isPanelFocused(r){m(r),oe()},$set:Ut,$on:(r,n)=>jt(x,r,n)},er=je();tt("keydown",gr,r=>M()&&Dr(r));var Ur=ue(er);{var jr=r=>{var n=je(),I=ue(n);mr(I,()=>o().filePath,C=>{var ve=je(),Re=ue(ve);{var pe=b=>{var v=vo(),A=R(v),q=S(A,!0),W=p(A,2),Me=S(W,!0);P(v),F(Z=>{g(q,Z),g(Me,o().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(b,v)},Ae=b=>{var v=je(),A=ue(v);{var q=W=>{Gt(W,{get workspaceId(){return c()},get filePath(){return e(G)},get gitRootId(){return e(w)}})};re(A,W=>{M()&&W(q)})}s(b,v)},Oe=b=>{var v=je(),A=ue(v);{var q=Z=>{var J=fr(),ce=R(J),Ue=S(ce,!0);P(J),F(me=>g(Ue,me),[()=>d.layout_fileTab_errorLoading_label()]),s(Z,J)},W=Z=>{Rt(Z,{get filePath(){return o().filePath},get sourceUrl(){return se().url},allowDownload:!1})},Me=Z=>{var J=po(),ce=R(J),Ue=S(ce,!0);P(J),F(me=>g(Ue,me),[()=>d.layout_fileTab_preparing_label()]),s(Z,J)};re(A,Z=>{se()?.error?Z(q):se()?.url?Z(W,1):Z(Me,-1)})}s(b,v)},ft=b=>{var v=je(),A=ue(v);{var q=W=>{Gt(W,{get workspaceId(){return c()},get filePath(){return e(pt)}})};re(A,W=>{M()&&W(q)})}s(b,v)},_t=b=>{var v=fr(),A=R(v),q=S(A,!0);P(v),F(W=>g(q,W),[()=>d.file_pdf_load_error()]),s(b,v)},Ve=b=>{{let v=i(()=>e(D)??o().filePath),A=i(()=>!e(l)&&e(gt));Rt(b,{get filePath(){return e(v)},get sourceUrl(){return e(Qt)},onDownload:Ct,get allowDownload(){return e(A)},get downloading(){return e(st)}})}},Ye=b=>{var v=vr(),A=R(v),q=S(A,!0);P(v),F(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)},lt=b=>{var v=mo(),A=R(v);Pt(A,20,()=>[...Array(20).keys()],q=>q,(q,W)=>{var Me=go(),Z=R(Me);ur(Z,{class:"h-3 w-8 shrink-0"});var J=p(Z,2);ur(J,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),P(Me),s(q,Me)}),P(A),P(v),s(b,v)},ht=b=>{var v=bo(),A=R(v),q=S(A,!0),W=p(A,2),Me=S(W,!0),Z=p(W,2);{var J=me=>{var He=_o(),dt=S(He,!0);F(()=>g(dt,e(ut))),s(me,He)};re(Z,me=>{e(kt)==="generic"&&me(J)})}var ce=p(Z,2);{var Ue=me=>{var He=wo(),dt=ue(He),Wt=S(dt,!0),tr=p(dt,2);Pt(tr,20,()=>e(It),xt=>xt,(xt,rr)=>{var Bt=ho(),Lr=R(Bt);Ce(Lr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Sr(rr),children:(zr,$o)=>{Ge();var ar=et();F(()=>g(ar,rr)),s(zr,ar)},$$slots:{default:!0}}),P(Bt),s(xt,Bt)}),P(tr),F(xt=>g(Wt,xt),[()=>d.layout_fileTab_didYouMean_label()]),s(me,He)};re(ce,me=>{e(It).length>0&&me(Ue)})}P(v),F(me=>{g(q,me),g(Me,o().filePath)},[()=>co(e(kt))]),s(b,v)},wt=b=>{var v=xo(),A=R(v),q=S(A,!0),W=p(A,2),Me=S(W,!0),Z=p(W,2);{var J=ce=>{{let Ue=i(()=>!e(gt)||e(st));Ce(ce,{variant:"secondary",size:"sm",onclick:Ct,get disabled(){return e(Ue)},children:(me,He)=>{Ge();var dt=et();F(Wt=>g(dt,Wt),[()=>d.layout_fileTab_downloadFile_label()]),s(me,dt)},$$slots:{default:!0}})}};re(Z,ce=>{!e(l)&&e(Be)&&ce(J)})}P(v),F(ce=>{g(q,ce),g(Me,o().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(b,v)},bt=b=>{const v=i(()=>o().filePath?.toLowerCase().endsWith(".svg"));var A=je(),q=ue(A);{var W=J=>{{let ce=i(()=>o().filePath||""),Ue=i(()=>!e(l)&&e(gt));Rt(J,{get filePath(){return e(ce)},get fileContent(){return e(nt)},get language(){return e(Vt)},get isBinary(){return e(t)},onDownload:Ct,get allowDownload(){return e(Ue)},get downloading(){return e(st)}})}},Me=J=>{var ce=yo(),Ue=R(ce);Ua(Ue,{get content(){return e(nt)},get workspaceId(){return c()},get relativeMediaBase(){return e(At)},renderRichFencesAsCode:!0,renderDiagrams:!0}),P(ce),s(J,ce)},Z=J=>{var ce=Ir,Ue=Fr;{let me=i(()=>B()?e(j):[]);_r(Yt(J,{get value(){return ce()},set value(He){Ue(He)},get language(){return e(Vt)},get readOnly(){return e(l)},get fileName(){return o().filePath},get workspaceId(){return c()},get filePath(){return o().filePath},get lineWrapping(){return N()},get lineChanges(){return e(me)},get jumpTo(){return e(T)},get externalContentVersion(){return e(f)},get isPanelFocused(){return m()}}),He=>u(h,He,!0),()=>e(h))}};re(q,J=>{e(v)?J(W):e(Ft)&&e(z)?J(Me,1):J(Z,-1)})}s(b,A)},Nt=b=>{var v=vr(),A=R(v),q=S(A,!0);P(v),F(W=>g(q,W),[()=>d.layout_fileTab_preparing_label()]),s(b,v)};re(Re,b=>{e(te)?b(pe):e(w)&&e(Te)&&e(G)?b(Ae,1):e(w)&&e(Ee)?b(Oe,2):e(Te)&&e(pt)?b(ft,3):e(Te)?b(_t,4):e(Qt)?b(Ve,5):e(Ee)?b(Ye,6):e($t)?b(lt,7):e(ut)?b(ht,8):e(t)?b(wt,9):e(nt)!==null?b(bt,10):b(Nt,-1)})}s(C,ve)}),s(r,n)};re(Ur,r=>{o().filePath&&r(jr)})}s(Y,er);var Er=Lt(Mr);return Le(),Er}export{Po as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hq as s,hY as a,lw as S,n5 as f,lJ as m}from"./CRwmdgt6.js";import{B as O}from"./
|
|
1
|
+
import{Hq as s,hY as a,lw as S,n5 as f,lJ as m}from"./CRwmdgt6.js";import{B as O}from"./DUkegami.js";import{dt as d,aT as k,dB as b}from"./KQTrHxko.js";const v=s.createSelector((t,e)=>{if(k.select(t,e)&&b.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),y=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),B=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),E=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),M=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),z=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),A=s.createSelector((t,e)=>i(t,e).initialized),D=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),J=s.createSelector((t,e)=>i(t,e).detectionOperation),L=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),P=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),q=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),H=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),T=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),U=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{q as selectAllWorkspaceScriptEntries,T as selectCanDeleteScript,l as selectCanReadScriptDefinition,y as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,J as selectScriptDetectionOperation,W as selectScriptEntries,U as selectScriptListPageState,B as selectScriptOutput,z as selectScriptOutputStreamReady,M as selectScriptOutputViewerWorkspaceIds,H as selectScriptReadJournal,E as selectScriptRetainedOutput,x as selectScriptRuntime,L as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,D as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,P as selectWorkspaceScriptRuntime,A as selectWorkspaceScriptsInitialized};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BkB_HJT3.js","/app/immutable/chunks/CzrrO9Ap.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/7rNOGHzs.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BkB_HJT3.js","/app/immutable/chunks/CzrrO9Ap.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/7rNOGHzs.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.BLjNhnkb.js","/app/immutable/chunks/CQ4a5a4v.js","/app/immutable/chunks/DCaHy20k.js","/app/immutable/chunks/BC58BzQw.js","/app/immutable/chunks/CRwmdgt6.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/i-jR1dYx.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/DsfzfmK9.js","/app/immutable/chunks/C_n9DeKj.js","/app/immutable/chunks/DCeW9_0X.js","/app/immutable/assets/0.SCSR4RoZ.css","/app/immutable/nodes/1.DaghOy3j.js","/app/immutable/chunks/BKY64haD.js","/app/immutable/chunks/BmDskjjc.js","/app/immutable/chunks/CFejQM6t.js","/app/immutable/chunks/CiENRH6A.js","/app/immutable/chunks/DmsDslNo.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bgegixo2.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CMERPJYK.js","/app/immutable/chunks/BLiTWssf.js","/app/immutable/chunks/DzMmhJrp.js","/app/immutable/chunks/KQTrHxko.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B0X6Qy4e.js","/app/immutable/chunks/BV7dztYI.js","/app/immutable/chunks/C0Yks_oS.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DNen9YXB.js","/app/immutable/chunks/D8dE5NKO.js","/app/immutable/chunks/BV9p4X5I.js","/app/immutable/chunks/D4jXWSLn.js","/app/immutable/chunks/yAjP_kdp.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/TQIai6Ne.js","/app/immutable/chunks/DUkegami.js","/app/immutable/chunks/BkBdyRjM.js","/app/immutable/chunks/CB-g50lR.js","/app/immutable/chunks/CPQdU3ZA.js","/app/immutable/chunks/D-cnPaTJ.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/BBTS8ZOM.js","/app/immutable/chunks/Cw4or5mV.js","/app/immutable/chunks/B4dTn6xv.js","/app/immutable/chunks/lfJ8pseq.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BmW_s-QS.js","/app/immutable/chunks/DjEB6QMF.js","/app/immutable/chunks/DhdMM_zt.js","/app/immutable/chunks/C-Mmob1s.js","/app/immutable/chunks/DNyXtEGk.js","/app/immutable/chunks/Dkz23CVV.js","/app/immutable/chunks/7KTbkf4W.js","/app/immutable/chunks/DbAK3Zju.js","/app/immutable/chunks/CKEqC8_B.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/DgCN_wW3.js","/app/immutable/chunks/CpW6JN4X.js","/app/immutable/chunks/DQ5DxPhl.js","/app/immutable/chunks/zXW6V5sa.js","/app/immutable/chunks/DCj0DpxQ.js","/app/immutable/chunks/0IF8_goK.js","/app/immutable/chunks/Bsx9Pv1n.js","/app/immutable/chunks/BaQ9zUUl.js","/app/immutable/chunks/r1_PrlQL.js","/app/immutable/chunks/C8fuDCKP.js","/app/immutable/chunks/D9Fc-3ll.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/BAEcHnha.js","/app/immutable/chunks/DrVWo6Zc.js","/app/immutable/chunks/CC6TxnfE.js","/app/immutable/chunks/DBIwerkr.js","/app/immutable/chunks/Cqzl755B.js","/app/immutable/chunks/CiPGfArf.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DlodKoXT.js","/app/immutable/chunks/t3bi-ExW.js","/app/immutable/chunks/DsNWmyox.js","/app/immutable/chunks/DZX-XWnb.js","/app/immutable/chunks/DSjRkndX.js","/app/immutable/chunks/Ck-Ax5yG.js","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DFHyIdsA.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BCaDoF8Y.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/B_D0NLtg.js","/app/immutable/chunks/D_HyLmUa.js","/app/immutable/chunks/DLm51UIm.js","/app/immutable/chunks/CCIGQjYf.js","/app/immutable/chunks/BEEw15VH.js","/app/immutable/chunks/EZw3rvya.js","/app/immutable/chunks/BGspgxWf.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DaEQgqyy.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/DyWs7mb2.js","/app/immutable/chunks/B2KJmqK3.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/t9id1Dgw.js","/app/immutable/chunks/DY0zw3Os.js","/app/immutable/chunks/DMGAuSgb.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/CuLyvgLV.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/BsP5G0Fo.js","/app/immutable/chunks/Bze28KHz.js","/app/immutable/chunks/Bhcwd2SW.js","/app/immutable/assets/accessibility.Cjws-1uy.css","/app/immutable/chunks/lnxqnOgz.js","/app/immutable/chunks/D8SVxzqF.js","/app/immutable/chunks/Ce5cxhLH.js","/app/immutable/chunks/C3hWtekV.js","/app/immutable/chunks/C8YkhSPO.js","/app/immutable/chunks/tejPAyPL.js","/app/immutable/chunks/DQulsXJ7.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.CtMzQVzR.css","/app/immutable/nodes/3.Dk5w9XeG.js","/app/immutable/nodes/4.CvLiKH0B.js","/app/immutable/nodes/5.BL5oLCOi.js","/app/immutable/chunks/BIxkRFIj.js","/app/immutable/chunks/yI5lBaQ8.js","/app/immutable/chunks/CoSk1zgY.js","/app/immutable/chunks/BCm8Gasf.js","/app/immutable/chunks/DeopB2f-.js","/app/immutable/chunks/_F3xl3RI.js","/app/immutable/chunks/BGLkcG6I.js","/app/immutable/chunks/D411lQkp.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/Bvonx6Ga.js","/app/immutable/assets/AgentCard.4uIFUDRc.css","/app/immutable/chunks/Bfkn2BGM.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.DedsXg_i.css","/app/immutable/chunks/D0kePBGE.js","/app/immutable/chunks/BUSwtV99.js","/app/immutable/chunks/B9r0JXjW.js","/app/immutable/chunks/ejL3HmTG.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/DQEBW0YT.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/CeEeQIAV.js","/app/immutable/chunks/CoZ28bOB.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/CxRm1vYn.js","/app/immutable/assets/DiagramPresentation.fimBl1wP.css","/app/immutable/chunks/BEJX9KVN.js","/app/immutable/chunks/BNg3GOxL.js","/app/immutable/chunks/B20hJMKp.js","/app/immutable/chunks/B2TNVk3c.js","/app/immutable/chunks/CoeuT-m3.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/CPvhRhlk.js","/app/immutable/chunks/DevHtnbn.js","/app/immutable/chunks/qMHHnffV.js","/app/immutable/chunks/jTWJRtu0.js","/app/immutable/assets/conversation-turns.Cw6qSz_q.css","/app/immutable/chunks/Cbh6qiPn.js","/app/immutable/chunks/Cuozo7M1.js","/app/immutable/chunks/DECwqQGV.js","/app/immutable/chunks/DfFhXLzK.js","/app/immutable/assets/ChatPanel.CbI83JII.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.DiKzgiKt.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.CM-hNW3A.js","/app/immutable/chunks/C0DDaBnV.js","/app/immutable/nodes/8.BThIGSQR.js","/app/immutable/chunks/dtB9lR1B.js","/app/immutable/chunks/Bsxt04FP.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/assets/dock-tokens.CevytPYC.css","/app/immutable/nodes/9.D70tN3NX.js","/app/immutable/chunks/KbdMwrlk.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/C7oH1dbI.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/DD7cmhl0.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/Cek5DjPu.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/7TuwH0wv.js","/app/immutable/chunks/kGq2lNI3.js","/app/immutable/chunks/DRMT9vvq.js","/app/immutable/assets/9.QLJOd4KT.css","/app/immutable/nodes/10.CbV_flkh.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.KWpg1Ynz.js","/app/immutable/nodes/12.DO2P43-f.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.D9j9ABbl.js","/app/immutable/chunks/Fyu8ATDD.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14.N_oC1pv5.js","/app/immutable/chunks/DS67_f3Q.js","/app/immutable/assets/14.BlmY1boZ.css","/app/immutable/nodes/15.BE1I24Rm.js","/app/immutable/assets/15.COfTIH7u.css","/app/immutable/nodes/16.Cn0uYbJe.js","/app/immutable/assets/16.Cznk2DRv.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{_ as a,bo as X,t as lt,bq as g,a_ as w,by as dt,b as pt,c as gt}from"../chunks/7rNOGHzs.js";import{l as k}from"../chunks/BJzHxIyr.js";import{s as ft}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as bt,bk as Tt,aD as c,bH as F,c0 as ht,ay as b,bS as It,W as m,bn as At,bV as U,aA as f,a7 as I,c9 as L,a5 as Ot,bA as Rt,aB as Z,b$ as Pt,b_ as Dt,bO as yt}from"../chunks/B8o4lNgr.js";import{c as S}from"../chunks/CiENRH6A.js";import{b as V}from"../chunks/D2g8BuR1.js";const Lt=async()=>{window.location.pathname.startsWith("/sandbox")||await a(()=>import("../chunks/BkB_HJT3.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},St=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function Vt(t){return t instanceof Error&&t.name==="TypeError"&&St.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const q=500,xt=8,wt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",o=t.slice(0,t.length-e.length),n=o.indexOf("://"),i=o.slice(0,n),s=o.slice(n+3).split("#")[0].split("?")[0],u=s.indexOf("/"),l=u===-1?s:s.slice(0,u),d=l.slice(l.lastIndexOf("@")+1),p=u===-1?"":s.slice(u);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function x(t){const e=t.replace(wt,Ct);return e.length>q?`${e.slice(0,q)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
|
|
3
3
|
`).slice(0,xt).map(x).join(`
|
|
4
|
-
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.
|
|
4
|
+
`)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.BLjNhnkb.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,2,14,15,16,17,18,19]),import.meta.url),()=>a(()=>import("../nodes/1.DaghOy3j.js"),__vite__mapDeps([20,4,5,21,22,23,24,7,25,3,26,27,28,8,1,2,29]),import.meta.url),()=>a(()=>import("../nodes/2.CMERPJYK.js"),__vite__mapDeps([30,4,5,7,31,10,11,12,13,2,3,8,23,24,25,26,32,33,34,27,28,1,29,17,21,35,18,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,16,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,15,107,108,109,110,111,112,113,114,115,116,117,118,119,22,120,121,122,123,124,125,126,127,128,129,9,130,131,132]),import.meta.url),()=>a(()=>import("../nodes/3.Dk5w9XeG.js"),__vite__mapDeps([133,4,5,32,25,3,26,7,21,22,23,24,27,28,8,1,2,29,37,38,36,39,33,10,11,12,13,34,17,40,18,35]),import.meta.url),()=>a(()=>import("../nodes/4.CvLiKH0B.js"),__vite__mapDeps([134,4,5,7,9,8,3,42,10,11,12,13,2,33,23,24,25,26,34,27,28,1,29,17,32,43,38,44,45,40,46,47,48,18,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88]),import.meta.url),()=>a(()=>import("../nodes/5.BL5oLCOi.js"),__vite__mapDeps([135,4,5,58,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,65,122,62,63,123,115,71,150,151,152,127,153,154,155,156,82,157,158,159,160,161,162,163,164,165,22,166,167,168,169,61,170,171,103,172,130,131,173,174,175,176,177,178,114,76,109,70,179,180,125,120,181]),import.meta.url),()=>a(()=>import("../nodes/6.DiKzgiKt.js"),__vite__mapDeps([182,4,5,25,3,26,28,33,2,10,11,12,13,7,8,23,24,34,27,1,29,17,32,38,22,21,44,45,43,40,153,154,56,51,57,58,59,106,46,47,48,18,49,50,52,93,94,92,67,68,69,95,91,96,97,98,77,90,99,37,36,39,35,100,15,107,89,108,62,63,141,137,140,142,143,144,64,74,145,121,146,155,127,156,82,157,158,159,160,161,122,123,162,163,164,165,65,115,71,166,167,168,169,171,78,41,183]),import.meta.url),()=>a(()=>import("../nodes/7.CM-hNW3A.js"),__vite__mapDeps([184,4,5,58,96,185,18,12,35,11,10,13,2,3,7,8,56,25,26,27,28,24,1,29,32,51,57,23,59,97,150]),import.meta.url),()=>a(()=>import("../nodes/8.BThIGSQR.js"),__vite__mapDeps([186,4,5,8,3,25,26,24,28,27,7,1,2,29,67,94,92,32,23,57,68,69,95,93,91,10,11,12,13,49,50,40,33,34,17,45,51,52,58,96,97,98,126,102,60,90,77,56,59,99,38,47,48,43,18,37,21,36,39,35,100,22,54,187,66,44,63,188,145,143,166,120,147,118,81,103,73,70,185,176,177,107,79,85,189,71,111,190,191]),import.meta.url),()=>a(()=>import("../nodes/9.D70tN3NX.js"),__vite__mapDeps([192,4,5,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,58,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,22,116,117,53,54,112,84,85,86,87,88,113,76,119,175,41,127,124,65,73,193,129,194,195,188,75,196,105,187,103,79,197,198,80,199,200,201,172,202,203,109,177,125,204]),import.meta.url),()=>a(()=>import("../nodes/10.CbV_flkh.js"),__vite__mapDeps([205,4,5,36,21,25,3,26,24,10,11,12,13,2,7,8,23,28,124,92,32,67,27,1,29,99,56,51,57,58,59,89,77,173,125,91,197,198,80,33,34,17,193,129,87,88,86,48,43,38,39,194,82,201,81,206]),import.meta.url),()=>a(()=>import("../nodes/11.KWpg1Ynz.js"),__vite__mapDeps([207,4,5,58,96,23,24,7,25,3,26]),import.meta.url),()=>a(()=>import("../nodes/12.DO2P43-f.js"),__vite__mapDeps([208,4,5,8,3,27,7,25,26,28,24,1,2,29,23,97,150,209]),import.meta.url),()=>a(()=>import("../nodes/13.D9j9ABbl.js"),__vite__mapDeps([210,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,211,11,110,127,92,32,67,94,23,57,68,69,95,107,58,96,212]),import.meta.url),()=>a(()=>import("../nodes/14.N_oC1pv5.js"),__vite__mapDeps([213,4,5,49,10,11,12,13,2,3,7,8,50,40,33,23,24,25,26,34,27,28,1,29,17,32,45,51,52,97,150,42,43,38,44,46,47,48,18,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88,161,90,91,92,93,94,95,96,98,99,100,106,15,107,89,108,122,123,162,101,111,170,153,154,141,137,140,142,143,144,145,121,146,155,127,156,157,158,159,160,163,164,165,22,115,166,167,168,169,171,103,172,130,131,173,174,211,214,215,191]),import.meta.url),()=>a(()=>import("../nodes/15.BE1I24Rm.js"),__vite__mapDeps([216,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,32,13,127,214,48,43,38,217]),import.meta.url),()=>a(()=>import("../nodes/16.Cn0uYbJe.js"),__vite__mapDeps([218,4,5,48,8,3,43,38,23,24,7,25,26,27,28,1,2,29,10,11,12,13,32,121,64,33,34,17,49,50,40,45,51,52,115,71,83,93,94,92,67,57,68,69,95,91,58,96,97,98,102,60,79,37,21,36,39,18,35,219]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock":[14],"/hud":[16,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,s as r}from"../chunks/BKY64haD.js";export{o as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/7rNOGHzs.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as E,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as R}from"../chunks/CQ4a5a4v.js";import{x as ie,I as C,E as ae}from"../chunks/DCaHy20k.js";import{w as ce}from"../chunks/BC58BzQw.js";import{Hq as ue}from"../chunks/CRwmdgt6.js";import{initAppStore as de}from"../chunks/i-jR1dYx.js";import{F as le,D as fe}from"../chunks/C_n9DeKj.js";import{i as me}from"../chunks/
|
|
1
|
+
import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/7rNOGHzs.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as E,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as R}from"../chunks/CQ4a5a4v.js";import{x as ie,I as C,E as ae}from"../chunks/DCaHy20k.js";import{w as ce}from"../chunks/BC58BzQw.js";import{Hq as ue}from"../chunks/CRwmdgt6.js";import{initAppStore as de}from"../chunks/i-jR1dYx.js";import{F as le,D as fe}from"../chunks/C_n9DeKj.js";import{i as me}from"../chunks/DCeW9_0X.js";const pe=!1,we=!1,ve=!0,Me=Object.freeze(Object.defineProperty({__proto__:null,csr:ve,prerender:we,ssr:pe},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){const f=de(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const V=3,j=4,be=100;let y=null;function S(e){const t=Date.now();y!==null&&y.direction===e&&t-y.at<be||(y={direction:e,at:t},e==="back"?history.back():history.forward())}function he(){return document.querySelector("webview:hover")!==null}function Ee(e){e!=="back"&&e!=="forward"||he()||S(e)}function q(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function U(e){q(e)||(e.button===V?(e.preventDefault(),S("back")):e.button===j&&(e.preventDefault(),S("forward")))}function F(e){q(e)||(e.button===V||e.button===j)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",U,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",U,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function Ae(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function Y(e,t){if(new.target)return L({component:Y,...e});P(t,!0);const r=()=>Z(m,"$resolvedLocale$",f),[f,p]=ee();let s=O(t,"children",7);const l=ge(ue,{startSagas:()=>[]},void 0);re(l);const m=le(),v=fe();se(()=>{const n=!me()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},D=()=>c(!1),H=()=>c(!0),z=v.subscribe(_=>{d=_,a()}),M=window.electronAPI,k=ie();let A;a(),n&&(k?A=M?.on?.("window:focus",c):(window.addEventListener("blur",D),window.addEventListener("focus",H)));const J=Ae(document.documentElement),Q=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const X=ye(window),B=window.electronAPI?.on?.(C.APP.HISTORY_NAVIGATE,Ee);return()=>{z(),J.destroy(),A?M.offById("window:focus",A):n&&!k&&(window.removeEventListener("blur",D),window.removeEventListener("focus",H)),document.documentElement.removeAttribute("data-window-blurred"),Q(),X(),B&&window.electronAPI.offById(C.APP.HISTORY_NAVIGATE,B)}});var u={get children(){return s()},set children(n){s(n),$()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);R(d,()=>s()??W),E(n,o)}),E(e,w);var i=T(u);return p(),i}const x="/dev-console";function _e(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Se(e){return e===G||e.startsWith(`${G}/`)}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(_e(window.location.pathname)||Se(window.location.pathname));var p={get children(){return r()},set children(u){r(u),$()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);R(g,()=>r()??W),E(u,w)},v=u=>{Y(u,{get children(){return r()}})};te(l,u=>{f?u(m):u(v,-1)})}return E(e,s),T(p)}var Le=new Set(["$$slots","$$events","$$legacy","children"]);function Oe(e,t){if(new.target)return L({component:Oe,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Le);var p={get children(){return r()},set children(s){r(s),$()},$set:I,$on:(s,l)=>N(t,s,l)};return K(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);R(v,()=>r()??W),E(s,m)},$$slots:{default:!0}})),T(p)}export{Oe as component,Me as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as W,a_ as P,by as A,b as D,bo as p,bt as R,br as U}from"../chunks/7rNOGHzs.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/
|
|
1
|
+
import{t as W,a_ as P,by as A,b as D,bo as p,bt as R,br as U}from"../chunks/7rNOGHzs.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/BKY64haD.js";import{p as b}from"../chunks/BmDskjjc.js";import{F as te,cO as ae}from"../chunks/CFejQM6t.js";import{f as se}from"../chunks/Bgegixo2.js";var oe=T('<p class="text-sm text-subtle"> </p>'),le=T('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(l,o){if(new.target)return W({component:q,...l});E(o,!0);let c=h(()=>b.error),r=h(()=>b.status),v=h(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(i,n)=>D(o,i,n)},j=X(),G=Y(j);{var H=i=>{var n=le(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),u=$(d,!0);k(y=>m(u,y),[()=>p.error_page_status_label({status:e(r)})]),_(t,d)};P(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var O=f(w,2),Q=a(O);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var u=ee();k(y=>m(u,y),[()=>p.error_page_reload_button()]),_(t,u)},$$slots:{default:!0}}),s(O),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>p.error_page_title(),()=>e(c)?.message||p.error_page_unexpected_fallback()]),_(i,n)};P(G,i=>{e(v)||i(H)})}return _(l,j),N(g)}var ie=new Set(["$$slots","$$events","$$legacy"]);function ne(l,o){if(new.target)return W({component:ne,...l});E(o,!0);let c=U(o,ie);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(l,R(()=>c)),N(r)}export{ne as component};
|