@intent-hq/web 2.381.1 → 2.383.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/0.BmwjvpSF.css +1 -0
- package/web/app/immutable/chunks/{rlD8zTU3.js → -K3ARgq0.js} +1 -1
- package/web/app/immutable/chunks/{3XnvT-Kd.js → 0HRWclfL.js} +1 -1
- package/web/app/immutable/chunks/{BT90ga2C.js → 1WR8MecL.js} +3 -3
- package/web/app/immutable/chunks/{DB7oVHuD.js → 1mf839wD.js} +1 -1
- package/web/app/immutable/chunks/{BJZ-AKM7.js → 3xK9OOJy.js} +1 -1
- package/web/app/immutable/chunks/{DY591siF.js → 4BrIaRe_.js} +1 -1
- package/web/app/immutable/chunks/{BsQIXjo5.js → 518Fef2L.js} +1 -1
- package/web/app/immutable/chunks/{xqiJuTcv.js → 6-uYidyP.js} +3 -3
- package/web/app/immutable/chunks/{USTHbXMy.js → 68Tuqjp3.js} +1 -1
- package/web/app/immutable/chunks/{BLQTrVGe.js → 6Bqipt1r.js} +1 -1
- package/web/app/immutable/chunks/{kR4OBGp8.js → 7UPrdiE9.js} +1 -1
- package/web/app/immutable/chunks/{CpdYwtoi.js → 8r75D0ru.js} +1 -1
- package/web/app/immutable/chunks/{X9YPou2Z.js → 9bukzQMK.js} +1 -1
- package/web/app/immutable/chunks/{BLNFLvET.js → 9gSjzhYc.js} +1 -1
- package/web/app/immutable/chunks/A9niI_uA.js +1 -0
- package/web/app/immutable/chunks/{jVDPtQ_B.js → AlEhxd2n.js} +1 -1
- package/web/app/immutable/chunks/{DKdhqmQ1.js → B-ef1MlI.js} +1 -1
- package/web/app/immutable/chunks/{DfgbnmD4.js → B2Ym4lhl.js} +1 -1
- package/web/app/immutable/chunks/{CrgJRVM7.js → B2f9w8eB.js} +1 -1
- package/web/app/immutable/chunks/{slJf1fOP.js → B2kb4xeF.js} +1 -1
- package/web/app/immutable/chunks/{Xo-qyHto.js → B2nCyo89.js} +1 -1
- package/web/app/immutable/chunks/{Bgbd1ReH.js → B3Bfek34.js} +1 -1
- package/web/app/immutable/chunks/{UxmdIyM3.js → B4SiDSWP.js} +1 -1
- package/web/app/immutable/chunks/{BLsG1dF4.js → B4WuQori.js} +1 -1
- package/web/app/immutable/chunks/{JYrw96gg.js → B4xSB_Hx.js} +1 -1
- package/web/app/immutable/chunks/{DVvIWU27.js → B5M0SkuR.js} +1 -1
- package/web/app/immutable/chunks/{Bj3DquZA.js → B6S6VNu7.js} +1 -1
- package/web/app/immutable/chunks/{Dp0abKpi.js → B6STvYyK.js} +1 -1
- package/web/app/immutable/chunks/{DXdISsBM.js → B8-Q1tED.js} +1 -1
- package/web/app/immutable/chunks/{sTf2KW7l.js → B9oKJyXc.js} +1 -1
- package/web/app/immutable/chunks/{BLWXcpbp.js → BA-rwlhs.js} +1 -1
- package/web/app/immutable/chunks/{Cvrwd8gY.js → BAKPnd3w.js} +1 -1
- package/web/app/immutable/chunks/{HhPY-joW.js → BAOaoX22.js} +1 -1
- package/web/app/immutable/chunks/{DR9or2eV.js → BE6Cp7Qp.js} +1 -1
- package/web/app/immutable/chunks/{DquvKa_v.js → BETzmOvF.js} +1 -1
- package/web/app/immutable/chunks/{BYlWQ5uL.js → BFEzojY2.js} +1 -1
- package/web/app/immutable/chunks/{ajSGSfsK.js → BFIcslMA.js} +2 -2
- package/web/app/immutable/chunks/{Bp1r8JRc.js → BFeEPayU.js} +1 -1
- package/web/app/immutable/chunks/{CzR1YU-6.js → BG9tvqwj.js} +1 -1
- package/web/app/immutable/chunks/{CKJKyFn1.js → BGTRTFMR.js} +1 -1
- package/web/app/immutable/chunks/BIVeXMBl.js +1 -0
- package/web/app/immutable/chunks/{BQPwOHEP.js → BJWt3PU_.js} +1 -1
- package/web/app/immutable/chunks/{CzLuqZqF.js → BJ_CKcUH.js} +1 -1
- package/web/app/immutable/chunks/{Bq_p_Ems.js → BO_DS0RP.js} +1 -1
- package/web/app/immutable/chunks/{9V11pA6D.js → BP3Sccje.js} +1 -1
- package/web/app/immutable/chunks/{BpCFoetp.js → BP4Hm_tD.js} +2 -2
- package/web/app/immutable/chunks/{I8y42gEP.js → BP5uGGO_.js} +1 -1
- package/web/app/immutable/chunks/{B980ED3o.js → BPL5Fo2b.js} +1 -1
- package/web/app/immutable/chunks/{UeBqzVae.js → BSKFIBj2.js} +1 -1
- package/web/app/immutable/chunks/{CniyTwSy.js → BSKf8bnG.js} +1 -1
- package/web/app/immutable/chunks/{CKZotIw1.js → BTrqJIJZ.js} +1 -1
- package/web/app/immutable/chunks/{hP6WjVR_.js → BUGeL7WE.js} +1 -1
- package/web/app/immutable/chunks/{DXrfRfkt.js → BUQUek8g.js} +1 -1
- package/web/app/immutable/chunks/{H3A5gXqL.js → BURZJh0r.js} +1 -1
- package/web/app/immutable/chunks/{D6JftAWR.js → BWGnuS1v.js} +1 -1
- package/web/app/immutable/chunks/{B_uN9rMf.js → BWYuMy_r.js} +1 -1
- package/web/app/immutable/chunks/{9JSrE4qA.js → BX-0SVP7.js} +1 -1
- package/web/app/immutable/chunks/{BSsARSCL.js → BX-LCSle.js} +1 -1
- package/web/app/immutable/chunks/{Ctra6UYY.js → BYq9VtBF.js} +1 -1
- package/web/app/immutable/chunks/{Cz_w-Ywk.js → B_LcgbLl.js} +1 -1
- package/web/app/immutable/chunks/{knotK2ne.js → Ba8ctcpl.js} +1 -1
- package/web/app/immutable/chunks/{E8rxDAT1.js → BaujsV9k.js} +1 -1
- package/web/app/immutable/chunks/{BLscL4Oc.js → BcpfdNy8.js} +1 -1
- package/web/app/immutable/chunks/{D0qSwFDo.js → BeNn_MBw.js} +1 -1
- package/web/app/immutable/chunks/{BVy9T_0R.js → BeOwB_6G.js} +1 -1
- package/web/app/immutable/chunks/{DC7d3jq1.js → BfojStRz.js} +1 -1
- package/web/app/immutable/chunks/{DB3Bmw2z.js → BfvZe-kN.js} +6 -6
- package/web/app/immutable/chunks/{D2YsfEw1.js → Bir0Y4gf.js} +2 -2
- package/web/app/immutable/chunks/{CzqO4uZr.js → BlDljC9y.js} +1 -1
- package/web/app/immutable/chunks/{KkEpTlxU.js → BmTMWrby.js} +1 -1
- package/web/app/immutable/chunks/{CGj6Uov1.js → BmUPAQa9.js} +1 -1
- package/web/app/immutable/chunks/{C2g3Lo3C.js → Bn880vDO.js} +1 -1
- package/web/app/immutable/chunks/{Cf8aoN1C.js → Bs2WE18g.js} +1 -1
- package/web/app/immutable/chunks/{1s9RpAop.js → Bs9K_x5H.js} +1 -1
- package/web/app/immutable/chunks/{CyjFr4Uj.js → BsN2abqQ.js} +1 -1
- package/web/app/immutable/chunks/{RaqCYvDN.js → Bsh6nUhU.js} +1 -1
- package/web/app/immutable/chunks/{BaZj7GlE.js → BsrrIQeo.js} +1 -1
- package/web/app/immutable/chunks/{0vwP6aoY.js → BtTA7CNV.js} +1 -1
- package/web/app/immutable/chunks/{D52zd84i.js → Bty1UglO.js} +1 -1
- package/web/app/immutable/chunks/{DlstVUk2.js → Bu7LYnzn.js} +1 -1
- package/web/app/immutable/chunks/{ChaE0Y8J.js → Bvi-fRGz.js} +1 -1
- package/web/app/immutable/chunks/{BkBSmJUq.js → BwG2vfja.js} +1 -1
- package/web/app/immutable/chunks/{C2dHQtwl.js → BxEf7uwl.js} +1 -1
- package/web/app/immutable/chunks/{CtZ1IYsK.js → BxJ6X-Sl.js} +1 -1
- package/web/app/immutable/chunks/{D6CLCSlZ.js → BypvqIQM.js} +1 -1
- package/web/app/immutable/chunks/{CB6Z_HaZ.js → Bz7R1ahj.js} +4 -4
- package/web/app/immutable/chunks/{B6bO9EJF.js → C0I_aIej.js} +2 -2
- package/web/app/immutable/chunks/C0QTy0Sy.js +1 -0
- package/web/app/immutable/chunks/{28TA1ENQ.js → C1EvfTg-.js} +1 -1
- package/web/app/immutable/chunks/{CUFtLdNE.js → C45U06qp.js} +1 -1
- package/web/app/immutable/chunks/{AD36Gg-c.js → C4JXGtw1.js} +1 -1
- package/web/app/immutable/chunks/{DyaiD9SI.js → C4JbSg3f.js} +1 -1
- package/web/app/immutable/chunks/{D9gwBpya.js → C4QKwtCH.js} +1 -1
- package/web/app/immutable/chunks/{CsChyIko.js → C5yhcKTW.js} +1 -1
- package/web/app/immutable/chunks/{D2ucd7-d.js → C6mS8uZB.js} +1 -1
- package/web/app/immutable/chunks/{gpDHnGWw.js → C7LIHk5_.js} +1 -1
- package/web/app/immutable/chunks/{AgrSZR3a.js → C8HkqBCb.js} +1 -1
- package/web/app/immutable/chunks/{ZP6gzzK7.js → C8y9EItt.js} +1 -1
- package/web/app/immutable/chunks/{B4rSPxtK.js → CAgnBDaV.js} +3 -3
- package/web/app/immutable/chunks/{CP-_1bDH.js → CAvYeStH.js} +1 -1
- package/web/app/immutable/chunks/{BsgE1xt5.js → CCqqosml.js} +1 -1
- package/web/app/immutable/chunks/{CnCrlmvG.js → CDK_hSiv.js} +1 -1
- package/web/app/immutable/chunks/{CoK_zZhC.js → CDjpuJh0.js} +1 -1
- package/web/app/immutable/chunks/{CRsl30lG.js → CE7VCun2.js} +3 -3
- package/web/app/immutable/chunks/{ZYFxZ-3Z.js → CE7dsja4.js} +1 -1
- package/web/app/immutable/chunks/{hALpfjsp.js → CEgeN2ws.js} +1 -1
- package/web/app/immutable/chunks/{B4CIsRmR.js → CFny5dMa.js} +1 -1
- package/web/app/immutable/chunks/{-38fvEUf.js → CFvBUo4R.js} +3 -3
- package/web/app/immutable/chunks/{D1o5arZx.js → CHLX1QZz.js} +1 -1
- package/web/app/immutable/chunks/{g4HdeOyY.js → CJ4Z96pe.js} +1 -1
- package/web/app/immutable/chunks/{BEm2fXhQ.js → CMrw-y4l.js} +13 -13
- package/web/app/immutable/chunks/{CJrYHCFr.js → CMu-09q3.js} +1 -1
- package/web/app/immutable/chunks/{BWJ3Ll2m.js → CNAgTnv2.js} +1 -1
- package/web/app/immutable/chunks/{DB1dtbA3.js → CO5zWp8I.js} +1 -1
- package/web/app/immutable/chunks/{D4x27t3J.js → COhRCR9P.js} +2 -2
- package/web/app/immutable/chunks/CPQ-kfy2.js +1 -0
- package/web/app/immutable/chunks/{DCYhtokL.js → CPTZJWC9.js} +1 -1
- package/web/app/immutable/chunks/{-kDxv2do.js → CRZZ_hOy.js} +1 -1
- package/web/app/immutable/chunks/CRs9zG2A.js +1 -0
- package/web/app/immutable/chunks/{ChDGxCqG.js → CSRYV6LQ.js} +1 -1
- package/web/app/immutable/chunks/{BLLwaxf_.js → CSVgdt55.js} +1 -1
- package/web/app/immutable/chunks/{BVCuuPr4.js → CU5jKGma.js} +1 -1
- package/web/app/immutable/chunks/{Dcys5Bs9.js → CUkDMZwP.js} +1 -1
- package/web/app/immutable/chunks/{8PuV5ymR.js → CXS2Ba3S.js} +1 -1
- package/web/app/immutable/chunks/{BzjWLlGO.js → CY4fyoCV.js} +1 -1
- package/web/app/immutable/chunks/{B_8LEprc.js → CYtPXqgK.js} +1 -1
- package/web/app/immutable/chunks/C_1hI7HP.js +1 -0
- package/web/app/immutable/chunks/{D23FNw3u.js → C_78iNNC.js} +1 -1
- package/web/app/immutable/chunks/{TFS2YmzU.js → C_KuQ05a.js} +1 -1
- package/web/app/immutable/chunks/{AfLmLM1t.js → CbqxWBi7.js} +1 -1
- package/web/app/immutable/chunks/{CD3IL4AL.js → Cf4fmkfL.js} +1 -1
- package/web/app/immutable/chunks/{BUeOnhAk.js → ChTVnFH2.js} +1 -1
- package/web/app/immutable/chunks/{hUT_i5Of.js → CiMmbOsB.js} +1 -1
- package/web/app/immutable/chunks/{MkXmO5mC.js → CjTo2K46.js} +1 -1
- package/web/app/immutable/chunks/{CfNCBmxL.js → CkA2ItLw.js} +1 -1
- package/web/app/immutable/chunks/{C6qkTCJb.js → Cmq0pZIQ.js} +2 -2
- package/web/app/immutable/chunks/{DkPChqhY.js → CmrjfWYI.js} +1 -1
- package/web/app/immutable/chunks/{BOKKr5p4.js → Co4vj0dC.js} +1 -1
- package/web/app/immutable/chunks/{DckZnmoo.js → Cqa6LF3b.js} +1 -1
- package/web/app/immutable/chunks/CqcqWJoa.js +1 -0
- package/web/app/immutable/chunks/CrD0jtXE.js +1 -0
- package/web/app/immutable/chunks/{D7ivqtWn.js → CrkMZYjb.js} +1 -1
- package/web/app/immutable/chunks/{gWgQT-YB.js → Cs2lHsyA.js} +1 -1
- package/web/app/immutable/chunks/{Cgkbg4M-.js → Csc9ETIC.js} +1 -1
- package/web/app/immutable/chunks/{CfnphW7T.js → CtNkh9GR.js} +1 -1
- package/web/app/immutable/chunks/{BuBupv2q.js → Ct_q9q1G.js} +1 -1
- package/web/app/immutable/chunks/{C62h6h6n.js → Ctbo6mXV.js} +1 -1
- package/web/app/immutable/chunks/{nvUE_ize.js → CuW3cq2w.js} +1 -1
- package/web/app/immutable/chunks/{Bsz-lZyy.js → CuewocoW.js} +1 -1
- package/web/app/immutable/chunks/{Bv-NFhbk.js → CxOmNieJ.js} +1 -1
- package/web/app/immutable/chunks/D-zjf2Af.js +1 -0
- package/web/app/immutable/chunks/{CQm33fWh.js → D37getya.js} +1 -1
- package/web/app/immutable/chunks/{8k-S4TgT.js → D3O8Vtuw.js} +1 -1
- package/web/app/immutable/chunks/{CzjLJAvm.js → D3p_bZm7.js} +1 -1
- package/web/app/immutable/chunks/{Bm4rkyWb.js → D51XIZYq.js} +1 -1
- package/web/app/immutable/chunks/{Dhh8ebG4.js → D5tDp1i8.js} +1 -1
- package/web/app/immutable/chunks/{DnHw1VUT.js → D5xMHmv3.js} +1 -1
- package/web/app/immutable/chunks/{lMHzRxIi.js → D6dlPeEM.js} +1 -1
- package/web/app/immutable/chunks/{XYL7cKn8.js → D73nBZuu.js} +1 -1
- package/web/app/immutable/chunks/{BTXNTren.js → D8ohaX19.js} +1 -1
- package/web/app/immutable/chunks/{C7CLfLlz.js → D9XKwVJX.js} +3 -3
- package/web/app/immutable/chunks/{Dt46PcSf.js → DA5opfEp.js} +1 -1
- package/web/app/immutable/chunks/{CW4mCrDo.js → DB7RVYiL.js} +1 -1
- package/web/app/immutable/chunks/{D86Nkl0p.js → DC8keNAk.js} +1 -1
- package/web/app/immutable/chunks/DCK8dPAL.js +1 -0
- package/web/app/immutable/chunks/{CWzES__t.js → DCRuihKm.js} +2 -2
- package/web/app/immutable/chunks/{vFkcanNO.js → DE7dSDHO.js} +1 -1
- package/web/app/immutable/chunks/DEVX5wOm.js +2 -0
- package/web/app/immutable/chunks/{Be_KPn6B.js → DF2_1gr9.js} +1 -1
- package/web/app/immutable/chunks/{CxfgkyeR.js → DFcppVBl.js} +1 -1
- package/web/app/immutable/chunks/{qgFvgidh.js → DGa13zF2.js} +1 -1
- package/web/app/immutable/chunks/{CFQZwmQL.js → DIFhl0he.js} +1 -1
- package/web/app/immutable/chunks/{C81BxYgH.js → DIG1mTAN.js} +2 -2
- package/web/app/immutable/chunks/{DxUAR435.js → DIKTPgAK.js} +1 -1
- package/web/app/immutable/chunks/{CmfV8NZB.js → DK-ttWlY.js} +1 -1
- package/web/app/immutable/chunks/{B3dKFpC0.js → DKHY8q_S.js} +1 -1
- package/web/app/immutable/chunks/{DJvjiyr0.js → DLbcryNV.js} +1 -1
- package/web/app/immutable/chunks/{C4w1ocT0.js → DLwWVKiF.js} +1 -1
- package/web/app/immutable/chunks/{CIzhESxA.js → DMDFfHqn.js} +3 -3
- package/web/app/immutable/chunks/{BFly3ws-.js → DMQmPhTl.js} +1 -1
- package/web/app/immutable/chunks/{DPCx8xD6.js → DN6OUhsP.js} +1 -1
- package/web/app/immutable/chunks/{4gpsTQgm.js → DO19lrhU.js} +1 -1
- package/web/app/immutable/chunks/{BOnuoCKB.js → DOEI9gYY.js} +1 -1
- package/web/app/immutable/chunks/{CRUti2QR.js → DPA45OJk.js} +1 -1
- package/web/app/immutable/chunks/{CKr5-Hg3.js → DPYlDye0.js} +1 -1
- package/web/app/immutable/chunks/{B54UFMTd.js → DQ_mNIfK.js} +1 -1
- package/web/app/immutable/chunks/{DhnxjslI.js → DR4Kh2SL.js} +1 -1
- package/web/app/immutable/chunks/{Btz1TKUZ.js → DSbNJBwA.js} +1 -1
- package/web/app/immutable/chunks/{B7VggIw3.js → DTuql3Rj.js} +1 -1
- package/web/app/immutable/chunks/{DMxvL2pq.js → DUIwUF5m.js} +1 -1
- package/web/app/immutable/chunks/{inhLOPTf.js → DVROSXw1.js} +1 -1
- package/web/app/immutable/chunks/{CHJt826g.js → DWWC1JsA.js} +1 -1
- package/web/app/immutable/chunks/{Br6yAYVA.js → DWiU4388.js} +1 -1
- package/web/app/immutable/chunks/{CgpdD1It.js → DX-Wrapd.js} +1 -1
- package/web/app/immutable/chunks/{CQuPTgh8.js → DXBEIeJu.js} +1 -1
- package/web/app/immutable/chunks/{DhyB8cWp.js → DY0qeQe8.js} +1 -1
- package/web/app/immutable/chunks/{IOg1fqVg.js → D_Xpj-6r.js} +1 -1
- package/web/app/immutable/chunks/{B3AvPO6N.js → D_ovLyyd.js} +1 -1
- package/web/app/immutable/chunks/{DNA4L5Jp.js → Db3Wob9h.js} +1 -1
- package/web/app/immutable/chunks/{YE1OS8p7.js → DdXBqrnq.js} +1 -1
- package/web/app/immutable/chunks/{DILbaYr6.js → DeHvIzqj.js} +2 -2
- package/web/app/immutable/chunks/{D-5-znQa.js → Dfg3lB2h.js} +1 -1
- package/web/app/immutable/chunks/{yrTkKoBE.js → Djp7mdlG.js} +1 -1
- package/web/app/immutable/chunks/{C1XDNSjC.js → DjxLojU4.js} +1 -1
- package/web/app/immutable/chunks/{BYbQHOnI.js → DlJZrxef.js} +2 -2
- package/web/app/immutable/chunks/{CzHEtjeZ.js → DliHiH6M.js} +4 -4
- package/web/app/immutable/chunks/{BfUxKqM2.js → Dlk4BhFg.js} +1 -1
- package/web/app/immutable/chunks/{BHq6uyQn.js → DlliJA4a.js} +3 -3
- package/web/app/immutable/chunks/{BRdcQc7W.js → DnJ4jlPB.js} +1 -1
- package/web/app/immutable/chunks/{DKodLYG2.js → DpHn84BV.js} +1 -1
- package/web/app/immutable/chunks/{Cyhzjl1i.js → DpMOdl0E.js} +1 -1
- package/web/app/immutable/chunks/{DYLppqi3.js → DpyfxjgC.js} +1 -1
- package/web/app/immutable/chunks/{CTcVaot6.js → Dqdvt4Zr.js} +1 -1
- package/web/app/immutable/chunks/{BVEUKKxL.js → DrIA1Azf.js} +1 -1
- package/web/app/immutable/chunks/{OMC6eTGJ.js → DrxfcnSy.js} +1 -1
- package/web/app/immutable/chunks/{bDc4vYO6.js → DsGUBv3k.js} +1 -1
- package/web/app/immutable/chunks/{D366u1LV.js → Dsr4GELp.js} +1 -1
- package/web/app/immutable/chunks/DtF9DVpp.js +1 -0
- package/web/app/immutable/chunks/{Cwtu6VYt.js → DvSURWC2.js} +4 -4
- package/web/app/immutable/chunks/{WdrvDKDu.js → DvUGkiYP.js} +1 -1
- package/web/app/immutable/chunks/{CV2UmF1c.js → DvYUfzNR.js} +1 -1
- package/web/app/immutable/chunks/{fXL9w3mE.js → Dw8wIAFi.js} +1 -1
- package/web/app/immutable/chunks/{a_kJM7V2.js → DwL1A1su.js} +1 -1
- package/web/app/immutable/chunks/{4nji41bN.js → DzWZGIya.js} +1 -1
- package/web/app/immutable/chunks/{2D4U7uPQ.js → EK6zOAHM.js} +1 -1
- package/web/app/immutable/chunks/{yF7QjJ_G.js → FzlZUztb.js} +1 -1
- package/web/app/immutable/chunks/{BPvvII1k.js → IQ13JH5A.js} +1 -1
- package/web/app/immutable/chunks/{DY4WElxT.js → J8_M56d9.js} +1 -1
- package/web/app/immutable/chunks/{H-xSbRy8.js → KHteWVFN.js} +1 -1
- package/web/app/immutable/chunks/{DhaMRyeZ.js → KYuLFpkq.js} +1 -1
- package/web/app/immutable/chunks/{DhClgUfO.js → L4HdMFBq.js} +1 -1
- package/web/app/immutable/chunks/{j9OUTvTs.js → L7j-Q29w.js} +1 -1
- package/web/app/immutable/chunks/{ByHhzwUN.js → L_tYoUCb.js} +1 -1
- package/web/app/immutable/chunks/{GZSCGAOr.js → M5Dwuu-X.js} +1 -1
- package/web/app/immutable/chunks/{l7z39TjX.js → No1eCFy3.js} +1 -1
- package/web/app/immutable/chunks/{DVrV2vUr.js → OFhgRaUm.js} +1 -1
- package/web/app/immutable/chunks/{BU7_DTqK.js → OtomGvb3.js} +1 -1
- package/web/app/immutable/chunks/{Dben3Vvx.js → PIgqsYsQ.js} +1 -1
- package/web/app/immutable/chunks/{CUDnr_3L.js → PO_5m99x.js} +1 -1
- package/web/app/immutable/chunks/{CBw6a9pd.js → QeBH-DWE.js} +1 -1
- package/web/app/immutable/chunks/{DuvW08Hb.js → RFsxwSsB.js} +1 -1
- package/web/app/immutable/chunks/{e7p1l6GD.js → S845NCb3.js} +1 -1
- package/web/app/immutable/chunks/{oYYFJMSc.js → S8ugWfAx.js} +1 -1
- package/web/app/immutable/chunks/{BQ64OnCJ.js → U9jJmfYa.js} +1 -1
- package/web/app/immutable/chunks/{D43zGYhv.js → U_OQY9n3.js} +1 -1
- package/web/app/immutable/chunks/{Cz7GhlNv.js → UhL0ohiG.js} +1 -1
- package/web/app/immutable/chunks/{DBVO-l07.js → W2WLehNu.js} +1 -1
- package/web/app/immutable/chunks/{BOsxbVPk.js → XCWZeNYo.js} +1 -1
- package/web/app/immutable/chunks/{BkXh63u1.js → Y5Ky10uA.js} +1 -1
- package/web/app/immutable/chunks/{CzVoIrDK.js → _SYFiE9N.js} +1 -1
- package/web/app/immutable/chunks/{Dnn3SS66.js → a3TFelkn.js} +1 -1
- package/web/app/immutable/chunks/baWz1QxB.js +19 -0
- package/web/app/immutable/chunks/{BdqQb89H.js → bhKPSdq4.js} +1 -1
- package/web/app/immutable/chunks/{BM6PvXts.js → c5QZsH9t.js} +1 -1
- package/web/app/immutable/chunks/{CJiiUUa9.js → cebxNJuC.js} +4 -4
- package/web/app/immutable/chunks/{CK_3Sd-p.js → chjnSxvZ.js} +1 -1
- package/web/app/immutable/chunks/{BqImHrtW.js → duDdSCAT.js} +1 -1
- package/web/app/immutable/chunks/{DmCQ-SmI.js → eElW3aeh.js} +1 -1
- package/web/app/immutable/chunks/{BfWybjMv.js → eQVXRlbn.js} +1 -1
- package/web/app/immutable/chunks/{toxSFGnz.js → eTsHzcIE.js} +3 -3
- package/web/app/immutable/chunks/{D7eOxNs7.js → ebbVP0tp.js} +1 -1
- package/web/app/immutable/chunks/{vTqsHLsg.js → f24VwgrA.js} +1 -1
- package/web/app/immutable/chunks/{jPkbSYRO.js → fiz8N_zQ.js} +1 -1
- package/web/app/immutable/chunks/{CY84Iq8-.js → hHMYoFyG.js} +1 -1
- package/web/app/immutable/chunks/{Dp30WbTf.js → haN7a3Sc.js} +1 -1
- package/web/app/immutable/chunks/{BzHupLIV.js → hb4NYXGo.js} +1 -1
- package/web/app/immutable/chunks/{B6QMsHdz.js → jcl0zObl.js} +2 -2
- package/web/app/immutable/chunks/{Bv4WoH6n.js → jn4zbMQy.js} +1 -1
- package/web/app/immutable/chunks/k0JmlCVk.js +2 -0
- package/web/app/immutable/chunks/{BRQE3Dlo.js → kS6Z7jzP.js} +1 -1
- package/web/app/immutable/chunks/{DYeLRr67.js → kjxbkPQZ.js} +1 -1
- package/web/app/immutable/chunks/{BqvIfFJz.js → lJeex2Gh.js} +1 -1
- package/web/app/immutable/chunks/{CU1be4rw.js → lVh2oAeQ.js} +1 -1
- package/web/app/immutable/chunks/{CY700US_.js → lwlI9u_5.js} +1 -1
- package/web/app/immutable/chunks/{0UjerFq2.js → nXfD7jHz.js} +2 -2
- package/web/app/immutable/chunks/{yD1qfwqe.js → ozVAo4aX.js} +1 -1
- package/web/app/immutable/chunks/{DI8QKtVI.js → p9X2tUBM.js} +1 -1
- package/web/app/immutable/chunks/{DjuGqsic.js → pYQh_Bw_.js} +1 -1
- package/web/app/immutable/chunks/{HM9LwZU0.js → puJFvQs5.js} +1 -1
- package/web/app/immutable/chunks/{usTkJVfb.js → pwJelZzH.js} +1 -1
- package/web/app/immutable/chunks/{DtNzpjBe.js → sdV4t8T0.js} +1 -1
- package/web/app/immutable/chunks/{BSk8D9GU.js → tZyAiGvb.js} +1 -1
- package/web/app/immutable/chunks/{DmuzFYIt.js → tr-2J8Mf.js} +1 -1
- package/web/app/immutable/chunks/{ycYrIJUe.js → ujhgjK1k.js} +1 -1
- package/web/app/immutable/chunks/{DcAxjOOO.js → v0ybYtGc.js} +1 -1
- package/web/app/immutable/chunks/{CnjoHxxj.js → viB2mzAd.js} +1 -1
- package/web/app/immutable/chunks/{DMS7qNz0.js → wIMcEpgB.js} +1 -1
- package/web/app/immutable/chunks/{B4bWz8TE.js → wUSGg9l9.js} +1 -1
- package/web/app/immutable/chunks/{C8dtRdbV.js → wl2qP2wF.js} +1 -1
- package/web/app/immutable/chunks/{Ujg0_O3U.js → yFcbscNn.js} +1 -1
- package/web/app/immutable/entry/app.PfV9Bd5g.js +4 -0
- package/web/app/immutable/entry/start.kviRYMjm.js +1 -0
- package/web/app/immutable/nodes/{0.D0qyvy-O.js → 0.N3QFhxpx.js} +1 -1
- package/web/app/immutable/nodes/{1.LQky-UK3.js → 1.Cuki-Q-c.js} +1 -1
- package/web/app/immutable/nodes/{10.Nhiduazn.js → 10.CzZBTiyD.js} +5 -5
- package/web/app/immutable/nodes/{11.DREbA2mH.js → 11.Cc53X5P2.js} +1 -1
- package/web/app/immutable/nodes/{12.DefTUxQP.js → 12.BpXDHhXi.js} +1 -1
- package/web/app/immutable/nodes/{13.BsGZPTKz.js → 13.CCKyw-_o.js} +1 -1
- package/web/app/immutable/nodes/{14.Dp_7Oh7e.js → 14.BD92xFv4.js} +3 -3
- package/web/app/immutable/nodes/{15.nRgFCYhv.js → 15.D2GMHiSb.js} +1 -1
- package/web/app/immutable/nodes/{16.rPw1YP79.js → 16.CVCm-nfj.js} +1 -1
- package/web/app/immutable/nodes/{17.DtGDCNtL.js → 17.CjKvJw8X.js} +1 -1
- package/web/app/immutable/nodes/{18.B0SMSp_6.js → 18.DDY8Eqsn.js} +1 -1
- package/web/app/immutable/nodes/{19.CsA9jU7R.js → 19.DvFJngD4.js} +2 -2
- package/web/app/immutable/nodes/2.B94-26jU.js +13 -0
- package/web/app/immutable/nodes/{20.D8ySW9zx.js → 20.CLsq1QLL.js} +1 -1
- package/web/app/immutable/nodes/{3.C-U8wBjc.js → 3.D7lbuuWp.js} +1 -1
- package/web/app/immutable/nodes/{4.DpFtuYyp.js → 4.YSZzuDIT.js} +1 -1
- package/web/app/immutable/nodes/5.ymicNL_Y.js +1 -0
- package/web/app/immutable/nodes/{6.CJXz9NV9.js → 6.CtS0PFqR.js} +1 -1
- package/web/app/immutable/nodes/{7.CwETavlw.js → 7.BVAyauMB.js} +1 -1
- package/web/app/immutable/nodes/{8.BvZJcCeO.js → 8.CHlBOO6u.js} +1 -1
- package/web/app/immutable/nodes/9.CNAqB0x1.js +14 -0
- package/web/app/immutable/workers/html-file-preview.worker-BfFljPK-.js +1 -0
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/assets/0.0X62H1ck.css +0 -1
- package/web/app/immutable/chunks/2mW3EYuj.js +0 -2
- package/web/app/immutable/chunks/3Mdoz-0Q.js +0 -1
- package/web/app/immutable/chunks/4Z3UfkCT.js +0 -19
- package/web/app/immutable/chunks/B99V9IVM.js +0 -1
- package/web/app/immutable/chunks/BOfUqw1E.js +0 -1
- package/web/app/immutable/chunks/BbxnpQro.js +0 -2
- package/web/app/immutable/chunks/BzqLLx6k.js +0 -1
- package/web/app/immutable/chunks/Cu02Aeaa.js +0 -1
- package/web/app/immutable/chunks/Cy2YclRs.js +0 -1
- package/web/app/immutable/chunks/D7WlKDTE.js +0 -1
- package/web/app/immutable/chunks/DHAYseFs.js +0 -1
- package/web/app/immutable/chunks/SfUr14xu.js +0 -1
- package/web/app/immutable/chunks/jELUCNms.js +0 -1
- package/web/app/immutable/chunks/lMUR9XnN.js +0 -1
- package/web/app/immutable/entry/app.BLa4aj6Q.js +0 -4
- package/web/app/immutable/entry/start.bo1Az5Sh.js +0 -1
- package/web/app/immutable/nodes/2.BmzudLkh.js +0 -13
- package/web/app/immutable/nodes/5.DFB1aYNI.js +0 -1
- package/web/app/immutable/nodes/9.CJeInbIt.js +0 -12
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z as V,n as j,aA as J,ax as X,aI as z,w as Y,b as Z}from"./
|
|
1
|
+
import{Z as V,n as j,aA as J,ax as X,aI as z,w as Y,b as Z}from"./BaujsV9k.js";import{Jv as l,nX as m,nY as C,JE as q,br as O,a3 as $,nK as _,rP as P,sb as ee,kq as te,s9 as W,JZ as M,ru as ne,fU as K,rQ as F,a5 as se,bp as oe,m as ie}from"./tr-2J8Mf.js";import{m as x,a0 as re,l as ae}from"./DKHY8q_S.js";import{g as U}from"./DypB-Dwi.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!V(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const L=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function E(e,t){return e===null||t!==null&&t>e?t:e}async function Ee(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:E(o,t?.latest??null),newestId:s};if(o!==null)return{latest:E(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function D(e,t){return e!=null&&e<=t&&e>t-L}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-L}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function De(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},U(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),qe=l.createSelector(e=>C(e.workspace.workspaces)),Pe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?q(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Ue=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Le=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return C(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Qe=l.createSelector(e=>{const t=Object.fromEntries($.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Ve=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||h(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?_(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&P(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),Je=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!h(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=_(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,r=n?J.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":X.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function Q(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function h(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=Z(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
|
|
2
2
|
`)?Y(t)||null:t:null}}}function v(e,t){const n=w(e),s=new Map(n.map(r=>[r.id,I(t,r)]));return ye(n,me(s)).map(({info:r,depth:d,parentAgentId:c})=>{const o=t.agentSessions?.byAgentId[r.id],a=Q(r,o),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(r.id)??I(t,r),f=Array.isArray(o?.waitingForAgentIds)?o.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:r.id,name:r.name,bucket:u,lastActivityTs:r.lastActivity??null,line:Ie(z.select(t,r.id)),parentAgentId:c,depth:d,treePrefix:"",topLevel:K(a)==="topLevel",isBackground:ne(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:o?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(o?.waitingOnHooks)&&o.waitingOnHooks.length>0||Array.isArray(o?.waitingOnPrMonitors)&&o.waitingOnPrMonitors.length>0||Array.isArray(o?.waitingOnScriptMonitors)&&o.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function we(e){const t=new Set;for(const i of e)for(const r of i.waitingForAgentIds)t.add(r);const n=i=>y.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,r)=>{if(n(i))return!0;for(let d=r+1;d<e.length&&!(e[d].depth<=i.depth);d++)if(n(e[d]))return!0;return!1}).map((i,r,d)=>{if(i.depth===0)return{...i,treePrefix:""};let c=!0;for(let o=r+1;o<d.length&&!(d[o].depth<i.depth);o++)if(d[o].depth===i.depth){c=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(c?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=re.select(e);return S.select(e).map(s=>{const i=String(s.id),r=n.indexOf(i),d=t[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null),c=v(s,e),o=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,u=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:o,attention:d,isUnread:d===se,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:he(e,o,c),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:r===-1?null:r,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Ae,tokens:a?q(a):0,agents:we(c)}})}),R=4;function be(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||K(Q(n,s))!=="topLevel"?!1:!h(e,n.id)}const ve=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const i=String(s.id),r=new Map,d=(f,p)=>{const A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},o=w(s).filter(f=>be(e,i,f));for(const f of o){const p=I(e,f);p.bucket==="failed"?d("failed",f.name):p.hasQuestion?d("question",f.name):p.attentionKind==="blocker"?d("blocker",f.name):p.attentionKind==="discussion"&&d("discussion",f.name),p.isRunning&&d("running",f.name)}const a=b(s);a==="failed"&&!r.has("failed")&&r.set("failed",[]),a==="blocked"&&!r.has("blocker")&&r.set("blocker",[]),a==="wait"&&!r.has("question")&&!r.has("blocker")&&!r.has("discussion")&&r.set("needs_input",[]);const u=n[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null);u==="review_required"&&r.set("review",[]),u==="unread"&&r.set("unread",[]),s.activity==="agent_running"&&!r.has("running")&&r.set("running",[]);const g=oe.flatMap(f=>{const p=r.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>R;t[i]={agentCount:o.length,categories:g,visibleCategories:k?g.slice(0,R-1):g,hiddenCategoryCount:k?g.length-(R-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let i=!1;for(const c of v(s,e))c.topLevel&&!c.isBackground&&!h(e,c.id)&&(c.bucket==="failed"||c.attentionKind!==null||c.hasQuestion)&&(n+=1,i=!0);const r=t[String(s.id)],d=r!==void 0&&P(r.attention);d&&(n+=1),G.has(b(s))&&!i&&!d&&(n+=1)}return n});function Te(e,t,n,s){const i=s.slice().sort((o,a)=>a.createdAt-o.createdAt);for(const o of i){const u=e.agentSessions?.byAgentId[o.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const r=e.workspaceNotes?.byWorkspaceId[t]?.notes,d=r?m(r,n):void 0,c=d?.content||d?.contentPreview;return typeof c=="string"&&c.trim().length>0?c:null}const Xe=l.createSelector((e,t)=>{const n=B.select(e).find(a=>a.workspaceId===t);if(!n)return null;const s=m(e.workspace.workspaces,t),i=s?v(s,e):[],r=new Map(i.map(a=>[a.id,a])),d=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},c=e.workspaceTasks?.byWorkspaceId[t],o=c?C(c.tasks).filter(a=>a.status!=="cancelled").map(a=>{const u=Object.values(d[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:u.map(g=>r.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?Te(e,t,a.id,u):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:o,activeAgents:i.filter(a=>y.has(a.bucket)),idleAgents:i.filter(a=>!y.has(a.bucket))}}),Oe=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Me(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Re=3,ze=l.createSelector((e,t="recent")=>{const n=B.select(e),s=ve.select(e),i=new Map(S.select(e).map(c=>[String(c.id),c])),r={action:[],unread:[],active:[]};for(const c of n){const o=i.get(c.workspaceId);if(!o||o.id===ie)continue;const a=e.hud.dockConversationAtByWorkspaceId[c.workspaceId];if(!D(a,e.hud.dockRecencyNow)&&!fe(a,e.hud.dockRecencyNow))continue;const u=s[c.workspaceId],g=u?.categories??[],k=g.some(T=>Oe.has(T.category)),f=c.isUnread,p=g.some(T=>T.category==="running"),A=k?"action":f?"unread":"active";r[A].push({workspace:o,badgeKind:Me(u),priorityGroup:A,isUnread:f,isRunning:p,isWaiting:c.isWaiting})}return[...r.action,...r.unread,...r.active].sort((c,o)=>e.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]||String(c.workspace.id).localeCompare(String(o.workspace.id))).filter((c,o)=>{const a=o<Re||D(e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)],e.hud.dockRecencyNow);return t==="older"?!a:a})}),Ye=l.createSelector(e=>e.hud.dockPlacement),Ze=l.createSelector(e=>e.hud.dockPlacementError),$e=l.createSelector(e=>e.hud.dockFocusRequest),et=l.createSelector(e=>e.hud.dockCloseRequest),tt=l.createSelector(e=>e.hud.dockDragStartResult),nt=l.createSelector(e=>e.hud.dockResizeStartResult),st=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),ot=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?m(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,i=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(r=>r.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!i&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===U(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{qe as A,Ve as B,ve as C,et as a,tt as b,ot as c,$e as d,st as e,Ye as f,Ze as g,Ne as h,de as i,nt as j,ze as k,Le as l,Qe as m,je as n,Ke as o,Fe as p,Je as q,De as r,Ee as s,Ue as t,He as u,xe as v,Ge as w,Xe as x,Pe as y,B as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./3Mdoz-0Q.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./CB6Z_HaZ.js";import{B as Ft,D as Kt}from"./BQPwOHEP.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
|
|
1
|
+
var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./C0QTy0Sy.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./Bz7R1ahj.js";import{B as Ft,D as Kt}from"./BJWt3PU_.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as ze,bo as r,bw as De,b as He,bm as v2,bs as C2,bq as m2}from"./3Mdoz-0Q.js";import{bs as Ae,a7 as L,ay as C,W as n,bn as Me,aA as a,aD as i,bS as z,c9 as _,bf as te,a5 as X,bA as J,b_ as P,aB as p,bl as Ne,bO as Ee,aC as b2}from"./3SdAC2_C.js";import{i as m}from"./BdqQb89H.js";import{s as re}from"./BOfUqw1E.js";import{c as M}from"./Dcys5Bs9.js";import{e as Z,g as h2,f as K,c as ae,b as _2,s as B}from"./kR4OBGp8.js";import{aC as p2,cT as x2,aB as w2,bG as k2,F as Re,d3 as y2}from"./BQ64OnCJ.js";import{af as L2,ak as O2,al as T2,a1 as z2,ai as D2,aj as H2,f as A2}from"./yF7QjJ_G.js";import"./CWzES__t.js";import{f as M2}from"./KkEpTlxU.js";import{c as Z2}from"./UxmdIyM3.js";var P2=p('<h4 class="type-body font-medium"> </h4>'),B2=p('<div class="flex items-start gap-2"><!> <!></div>'),W2=p("<p> </p>"),I2=p('<div class="type-caption"><!></div>'),S2=p("<div><!></div>"),F2=p("<div></div>"),N2=p('<div class="relative"><!> <div><!> <!> <!></div> <!></div> <!>',1),E2=p("<!><!>",1);function R2(x,t){if(new.target)return ze({component:R2,...x});Ae(t,!0);let l=r(t,"title",7,""),f=r(t,"description",7,""),b=r(t,"content",7),c=r(t,"side",7,"top"),d=r(t,"align",7,"center"),O=r(t,"sideOffset",7,8),W=r(t,"alignOffset",7,0),D=r(t,"delayDuration",7,200),u=r(t,"disableHoverableContent",7,!1),I=r(t,"disableCloseOnTriggerClick",7,!1),v=r(t,"disabled",7,!1),w=r(t,"open",15,!1),se=r(t,"onOpenChange",7),oe=r(t,"class",7,""),ne=r(t,"contentClass",7,""),ie=r(t,"contentContainerClass",7,""),le=r(t,"showArrow",7,!0),ce=r(t,"showClose",7,!1),de=r(t,"onClose",7),ge=r(t,"variant",7,"default"),fe=r(t,"maxWidth",7,"20rem"),S=r(t,"interactive",7,!1),ue=r(t,"disableAnimation",7,!1),Q=r(t,"children",7),U=r(t,"trigger",7),ve=r(t,"icon",7),V=r(t,"footer",7),Ce=r(t,"iconClass",7,""),me=r(t,"footerClass",7,""),be=r(t,"descriptionClass",7,""),he=r(t,"onclick",7);const je={default:{bg:"bg-popover",text:"text-popover-foreground",border:"",icon:null,iconColor:""},info:{bg:"bg-popover",text:"text-info",border:"border border-info/40",icon:k2,iconColor:"text-info"},success:{bg:"bg-popover",text:"text-success",border:"border border-success/40",icon:w2,iconColor:"text-success"},warning:{bg:"bg-popover",text:"text-warning-ink",border:"border border-warning/40",icon:x2,iconColor:"text-warning-ink"},error:{bg:"bg-danger",text:"text-danger-background",border:"border border-danger/40",icon:p2,iconColor:"text-danger-background"},custom:{bg:"",text:"",border:"",icon:null,iconColor:""}},F=_(()=>je[ge()]),_e=_(()=>ve()||i(F).icon),qe=_(()=>Z("overlay-surface z-(--layer-tooltip)",!ue()&&"tooltip-motion",i(F).bg,i(F).text,i(F).border,ne()));function Ge(e){w(e),se()?.(e)}function Xe(){w(!1),de()?.()}var Je={get title(){return l()},set title(e=""){l(e),a()},get description(){return f()},set description(e=""){f(e),a()},get content(){return b()},set content(e){b(e),a()},get side(){return c()},set side(e="top"){c(e),a()},get align(){return d()},set align(e="center"){d(e),a()},get sideOffset(){return O()},set sideOffset(e=8){O(e),a()},get alignOffset(){return W()},set alignOffset(e=0){W(e),a()},get delayDuration(){return D()},set delayDuration(e=200){D(e),a()},get disableHoverableContent(){return u()},set disableHoverableContent(e=!1){u(e),a()},get disableCloseOnTriggerClick(){return I()},set disableCloseOnTriggerClick(e=!1){I(e),a()},get disabled(){return v()},set disabled(e=!1){v(e),a()},get open(){return w()},set open(e=!1){w(e),a()},get onOpenChange(){return se()},set onOpenChange(e){se(e),a()},get class(){return oe()},set class(e=""){oe(e),a()},get contentClass(){return ne()},set contentClass(e=""){ne(e),a()},get contentContainerClass(){return ie()},set contentContainerClass(e=""){ie(e),a()},get showArrow(){return le()},set showArrow(e=!0){le(e),a()},get showClose(){return ce()},set showClose(e=!1){ce(e),a()},get onClose(){return de()},set onClose(e){de(e),a()},get variant(){return ge()},set variant(e="default"){ge(e),a()},get maxWidth(){return fe()},set maxWidth(e="20rem"){fe(e),a()},get interactive(){return S()},set interactive(e=!1){S(e),a()},get disableAnimation(){return ue()},set disableAnimation(e=!1){ue(e),a()},get children(){return Q()},set children(e){Q(e),a()},get trigger(){return U()},set trigger(e){U(e),a()},get icon(){return ve()},set icon(e){ve(e),a()},get footer(){return V()},set footer(e){V(e),a()},get iconClass(){return Ce()},set iconClass(e=""){Ce(e),a()},get footerClass(){return me()},set footerClass(e=""){me(e),a()},get descriptionClass(){return be()},set descriptionClass(e=""){be(e),a()},get onclick(){return he()},set onclick(e){he(e),a()},$set:De,$on:(e,pe)=>He(t,e,pe)},Ze=L(),Ke=C(Ze);{let e=_(()=>S()?0:D());M(Ke,()=>H2,(pe,Qe)=>{Qe(pe,{get delayDuration(){return i(e)},children:(Ue,Q2)=>{var Pe=L(),Ve=C(Pe);{let Ye=_(()=>S()?0:D()),$e=_(()=>!S()&&u());M(Ve,()=>L2,(e2,t2)=>{t2(e2,{onOpenChange:Ge,get delayDuration(){return i(Ye)},get disableHoverableContent(){return i($e)},get disableCloseOnTriggerClick(){return I()},get open(){return w()},set open(xe){w(xe)},children:(xe,U2)=>{var Be=E2(),We=C(Be);{const N=(E,R)=>{let we=()=>(R?.()).props;T2(E,{get triggerProps(){return we()},children:(ke,s2)=>{var j=L(),ye=C(j);{var Le=k=>{var H=L(),A=C(H);re(A,()=>U()??te),n(k,H)},Oe=k=>{var H=L(),A=C(H);re(A,()=>Q()??te),n(k,H)};m(ye,k=>{U()?k(Le):Q()&&k(Oe,1)})}n(ke,j)},$$slots:{default:!0}})};let Y=_(()=>Z("inline-flex",oe()));M(We,()=>O2,(E,R)=>{R(E,{get class(){return i(Y)},get disabled(){return v()},get onclick(){return he()},"data-tooltip-trigger":!0,child:N,$$slots:{child:!0}})})}var r2=z(We);{var a2=N=>{var Y=L(),E=C(Y);M(E,()=>z2,(R,we)=>{we(R,{children:(ke,s2)=>{var j=L(),ye=C(j);M(ye,()=>D2,(Le,Oe)=>{Oe(Le,{role:"tooltip",get side(){return c()},get align(){return d()},get sideOffset(){return O()},get alignOffset(){return W()},get class(){return i(qe)},"data-tooltip-content":!0,"data-overlay-surface":!0,onFocusOutside:()=>{},children:(k,H)=>{var A=N2(),$=C(A),Ie=X($);{var o2=s=>{{let o=_(()=>v2.ui_tooltipRich_close_ariaLabel());A2(s,{variant:"ghost",size:"icon-compact",onclick:Xe,class:"absolute -right-1 -top-1 size-5 rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground motion-reduce:transition-none",get"aria-label"(){return i(o)},children:(g,y)=>{Re(g,{get icon(){return y2},size:"xs",class:"w-3 h-3"})},$$slots:{default:!0}})}};m(Ie,s=>{ce()&&s(o2)})}var ee=z(Ie,2),Se=X(ee);{var n2=s=>{var o=B2(),g=X(o);{var y=h=>{{let T=_(()=>Z("w-4 h-4 mt-0.5 flex-shrink-0",i(F).iconColor,Ce()));Re(h,{get icon(){return i(_e)},size:"1x",get class(){return i(T)}})}};m(g,h=>{i(_e)&&h(y)})}var q=z(g,2);{var G=h=>{var T=P2(),Te=Ne(T,!0);P(()=>Ee(Te,l())),n(h,T)};m(q,h=>{l()&&h(G)})}J(o),n(s,o)};m(Se,s=>{(l()||i(_e))&&s(n2)})}var Fe=z(Se,2);{var i2=s=>{var o=W2(),g=Ne(o,!0);P(y=>{K(o,1,y),Ee(g,f())},[()=>ae(Z("type-body opacity-90",be()))]),n(s,o)};m(Fe,s=>{f()&&s(i2)})}var l2=z(Fe,2);{var c2=s=>{var o=I2(),g=X(o);re(g,()=>b()??te),J(o),n(s,o)};m(l2,s=>{b()&&s(c2)})}J(ee);var d2=z(ee,2);{var g2=s=>{var o=S2(),g=X(o);re(g,()=>V()??te),J(o),P(y=>K(o,1,y),[()=>ae(Z("px-3 py-2",me()))]),n(s,o)};m(d2,s=>{V()&&s(g2)})}J($);var f2=z($,2);{var u2=s=>{var o=L(),g=C(o);{const y=(q,G)=>{let h=()=>(G?.()).props;var T=F2();_2(T,Te=>({class:Te,...h()}),[()=>Z("z-50 bg-border","data-[side=top]:w-px data-[side=top]:h-2","data-[side=bottom]:w-px data-[side=bottom]:h-2","data-[side=left]:h-px data-[side=left]:w-2","data-[side=right]:h-px data-[side=right]:w-2")]),n(q,T)};M(g,()=>M2,(q,G)=>{G(q,{child:y,$$slots:{child:!0}})})}n(s,o)};m(f2,s=>{le()&&s(u2)})}P(()=>{h2($,`max-width: ${fe()??""};`),K(ee,1,`px-3 py-2 space-y-1 ${ie()??""}`)}),n(k,A)},$$slots:{default:!0}})}),n(ke,j)},$$slots:{default:!0}})}),n(N,Y)};m(r2,N=>{!v()&&(l()||f()||b())&&N(a2)})}n(xe,Be)},$$slots:{default:!0}})})}n(Ue,Pe)},$$slots:{default:!0}})})}return n(x,Ze),Me(Je)}const j2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23222326'%20width='200'%20height='200'%20viewBox='0%200%20100%20100'%3e%3cpath%20d='M1.22541%2061.5228c-.2225-.9485.90748-1.5459%201.59638-.857L39.3342%2097.1782c.6889.6889.0915%201.8189-.857%201.5964C20.0515%2094.4522%205.54779%2079.9485%201.22541%2061.5228ZM.00189135%2046.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503%2099.7085c.2007.2007.4773.3075.7606.2896%202.3692-.1476%204.6938-.46%206.9624-.9259.7645-.157%201.0301-1.0963.4782-1.6481L2.57595%2039.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915%202.2686-.77832%204.5932-.92588465%206.9624ZM4.21093%2029.7054c-.16649.3738-.08169.8106.20765%201.1l64.77602%2064.776c.2894.2894.7262.3742%201.1.2077%201.7861-.7956%203.5171-1.6927%205.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566%2024.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132%201.6684-1.88843%203.3994-2.68399%205.1855ZM12.6587%2018.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795%206.45931%2035.1114%200%2049.9519%200%2077.5927%200%20100%2022.4073%20100%2050.0481c0%2014.8405-6.4593%2028.1724-16.7199%2037.3375-.3903.3487-.984.3258-1.3542-.0443L12.6587%2018.074Z'%20/%3e%3c/svg%3e",q2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23fff'%20width='200'%20height='200'%20viewBox='0%200%20100%20100'%3e%3cpath%20d='M1.22541%2061.5228c-.2225-.9485.90748-1.5459%201.59638-.857L39.3342%2097.1782c.6889.6889.0915%201.8189-.857%201.5964C20.0515%2094.4522%205.54779%2079.9485%201.22541%2061.5228ZM.00189135%2046.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503%2099.7085c.2007.2007.4773.3075.7606.2896%202.3692-.1476%204.6938-.46%206.9624-.9259.7645-.157%201.0301-1.0963.4782-1.6481L2.57595%2039.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915%202.2686-.77832%204.5932-.92588465%206.9624ZM4.21093%2029.7054c-.16649.3738-.08169.8106.20765%201.1l64.77602%2064.776c.2894.2894.7262.3742%201.1.2077%201.7861-.7956%203.5171-1.6927%205.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566%2024.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132%201.6684-1.88843%203.3994-2.68399%205.1855ZM12.6587%2018.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795%206.45931%2035.1114%200%2049.9519%200%2077.5927%200%20100%2022.4073%20100%2050.0481c0%2014.8405-6.4593%2028.1724-16.7199%2037.3375-.3903.3487-.984.3258-1.3542-.0443L12.6587%2018.074Z'%20/%3e%3c/svg%3e";var G2=p("<img/>");function X2(x,t){if(new.target)return ze({component:X2,...x});Ae(t,!0);const l=()=>C2(O,"$isDarkTheme",f),[f,b]=m2();let c=r(t,"size",7,16),d=r(t,"class",7,"");const O=Z2(),W="Linear";var D={get size(){return c()},set size(v=16){c(v),a()},get class(){return d()},set class(v=""){d(v),a()},$set:De,$on:(v,w)=>He(t,v,w)},u=G2();B(u,"alt",W),P(()=>{B(u,"src",l()?q2:j2),B(u,"width",c()),B(u,"height",c()),K(u,1,ae(d()))}),n(x,u);var I=Me(D);return b(),I}var J2=b2('<svg viewBox="0 0 278 245" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M160.822 12.5546C158.514 8.72421 155.255 5.5554 151.361 3.35567C147.467 1.15594 143.071 0 138.599 0C134.127 0 129.731 1.15594 125.838 3.35567C121.944 5.5554 118.685 8.72421 116.377 12.5546L79.8216 75.1657C107.749 89.1085 131.543 110.114 148.841 136.096C166.14 162.078 176.341 192.133 178.433 223.277H152.766C150.679 196.581 141.656 170.892 126.592 148.754C111.528 126.616 90.9439 108.795 66.8771 97.0546L33.0438 155.555C46.5734 161.622 58.3603 170.994 67.3207 182.809C76.281 194.623 82.1272 208.501 84.3216 223.166H25.3771C24.6781 223.116 24.0023 222.894 23.4108 222.518C22.8193 222.142 22.3306 221.625 21.9889 221.013C21.6471 220.401 21.463 219.714 21.4532 219.013C21.4434 218.312 21.6082 217.62 21.9327 216.999L38.266 189.221C32.7323 184.604 26.408 181.028 19.5994 178.666L3.43269 206.444C1.74966 209.33 0.657047 212.523 0.218326 215.835C-0.220395 219.148 0.00352239 222.515 0.877069 225.74C1.75062 228.966 3.25638 231.985 5.30688 234.624C7.35738 237.262 9.91174 239.467 12.8216 241.11C16.6554 243.27 20.9767 244.418 25.3771 244.444H106.099C107.599 225.944 104.295 207.371 96.5084 190.522C88.7219 173.674 76.7165 159.123 61.6549 148.277L74.4882 126.055C93.4962 139.11 108.771 156.896 118.806 177.657C128.841 198.419 133.289 221.438 131.71 244.444H200.099C201.692 209.593 194.11 174.936 178.112 143.934C162.114 112.932 138.26 86.6713 108.933 67.7769L134.877 23.3324C135.455 22.3638 136.393 21.6627 137.485 21.3818C138.578 21.1008 139.737 21.2628 140.71 21.8324C143.655 23.4435 253.433 214.999 255.488 217.221C255.85 217.871 256.035 218.604 256.022 219.347C256.01 220.091 255.802 220.818 255.418 221.455C255.035 222.092 254.49 222.616 253.839 222.975C253.188 223.334 252.454 223.515 251.71 223.499H225.266C225.599 230.573 225.599 237.629 225.266 244.666H251.822C255.194 244.688 258.537 244.041 261.657 242.762C264.777 241.484 267.613 239.599 270 237.217C272.387 234.835 274.278 232.003 275.563 228.886C276.849 225.768 277.503 222.427 277.488 219.055C277.492 214.601 276.302 210.227 274.044 206.388L160.822 12.5546Z"></path></svg>');function K2(x,t){if(new.target)return ze({component:K2,...x});Ae(t,!0);let l=r(t,"size",7,16),f=r(t,"class",7,"");var b={get size(){return l()},set size(d=16){l(d),a()},get class(){return f()},set class(d=""){f(d),a()},$set:De,$on:(d,O)=>He(t,d,O)},c=J2();return P(()=>{B(c,"width",l()),B(c,"height",l()),K(c,0,ae(f()))}),n(x,c),Me(b)}export{X2 as L,K2 as S,R2 as T};
|
|
1
|
+
import{t as ze,bo as r,bw as De,b as He,bm as v2,bs as C2,bq as m2}from"./C0QTy0Sy.js";import{bs as Ae,a7 as L,ay as C,W as n,bn as Me,aA as a,aD as i,bS as z,c9 as _,bf as te,a5 as X,bA as J,b_ as P,aB as p,bl as Ne,bO as Ee,aC as b2}from"./3SdAC2_C.js";import{i as m}from"./bhKPSdq4.js";import{t as re}from"./CrD0jtXE.js";import{c as M}from"./CUkDMZwP.js";import{e as Z,g as h2,f as K,c as ae,b as _2,s as B}from"./7UPrdiE9.js";import{aC as p2,cT as x2,aB as w2,bG as k2,F as Re,d3 as y2}from"./U9jJmfYa.js";import{af as L2,ak as O2,al as T2,a1 as z2,ai as D2,aj as H2,f as A2}from"./FzlZUztb.js";import"./DCRuihKm.js";import{f as M2}from"./BmTMWrby.js";import{c as Z2}from"./B4SiDSWP.js";var P2=p('<h4 class="type-body font-medium"> </h4>'),B2=p('<div class="flex items-start gap-2"><!> <!></div>'),W2=p("<p> </p>"),I2=p('<div class="type-caption"><!></div>'),S2=p("<div><!></div>"),F2=p("<div></div>"),N2=p('<div class="relative"><!> <div><!> <!> <!></div> <!></div> <!>',1),E2=p("<!><!>",1);function R2(x,t){if(new.target)return ze({component:R2,...x});Ae(t,!0);let l=r(t,"title",7,""),f=r(t,"description",7,""),b=r(t,"content",7),c=r(t,"side",7,"top"),d=r(t,"align",7,"center"),O=r(t,"sideOffset",7,8),W=r(t,"alignOffset",7,0),D=r(t,"delayDuration",7,200),u=r(t,"disableHoverableContent",7,!1),I=r(t,"disableCloseOnTriggerClick",7,!1),v=r(t,"disabled",7,!1),w=r(t,"open",15,!1),se=r(t,"onOpenChange",7),oe=r(t,"class",7,""),ne=r(t,"contentClass",7,""),ie=r(t,"contentContainerClass",7,""),le=r(t,"showArrow",7,!0),ce=r(t,"showClose",7,!1),de=r(t,"onClose",7),ge=r(t,"variant",7,"default"),fe=r(t,"maxWidth",7,"20rem"),S=r(t,"interactive",7,!1),ue=r(t,"disableAnimation",7,!1),Q=r(t,"children",7),U=r(t,"trigger",7),ve=r(t,"icon",7),V=r(t,"footer",7),Ce=r(t,"iconClass",7,""),me=r(t,"footerClass",7,""),be=r(t,"descriptionClass",7,""),he=r(t,"onclick",7);const je={default:{bg:"bg-popover",text:"text-popover-foreground",border:"",icon:null,iconColor:""},info:{bg:"bg-popover",text:"text-info",border:"border border-info/40",icon:k2,iconColor:"text-info"},success:{bg:"bg-popover",text:"text-success",border:"border border-success/40",icon:w2,iconColor:"text-success"},warning:{bg:"bg-popover",text:"text-warning-ink",border:"border border-warning/40",icon:x2,iconColor:"text-warning-ink"},error:{bg:"bg-danger",text:"text-danger-background",border:"border border-danger/40",icon:p2,iconColor:"text-danger-background"},custom:{bg:"",text:"",border:"",icon:null,iconColor:""}},F=_(()=>je[ge()]),_e=_(()=>ve()||i(F).icon),qe=_(()=>Z("overlay-surface z-(--layer-tooltip)",!ue()&&"tooltip-motion",i(F).bg,i(F).text,i(F).border,ne()));function Ge(e){w(e),se()?.(e)}function Xe(){w(!1),de()?.()}var Je={get title(){return l()},set title(e=""){l(e),a()},get description(){return f()},set description(e=""){f(e),a()},get content(){return b()},set content(e){b(e),a()},get side(){return c()},set side(e="top"){c(e),a()},get align(){return d()},set align(e="center"){d(e),a()},get sideOffset(){return O()},set sideOffset(e=8){O(e),a()},get alignOffset(){return W()},set alignOffset(e=0){W(e),a()},get delayDuration(){return D()},set delayDuration(e=200){D(e),a()},get disableHoverableContent(){return u()},set disableHoverableContent(e=!1){u(e),a()},get disableCloseOnTriggerClick(){return I()},set disableCloseOnTriggerClick(e=!1){I(e),a()},get disabled(){return v()},set disabled(e=!1){v(e),a()},get open(){return w()},set open(e=!1){w(e),a()},get onOpenChange(){return se()},set onOpenChange(e){se(e),a()},get class(){return oe()},set class(e=""){oe(e),a()},get contentClass(){return ne()},set contentClass(e=""){ne(e),a()},get contentContainerClass(){return ie()},set contentContainerClass(e=""){ie(e),a()},get showArrow(){return le()},set showArrow(e=!0){le(e),a()},get showClose(){return ce()},set showClose(e=!1){ce(e),a()},get onClose(){return de()},set onClose(e){de(e),a()},get variant(){return ge()},set variant(e="default"){ge(e),a()},get maxWidth(){return fe()},set maxWidth(e="20rem"){fe(e),a()},get interactive(){return S()},set interactive(e=!1){S(e),a()},get disableAnimation(){return ue()},set disableAnimation(e=!1){ue(e),a()},get children(){return Q()},set children(e){Q(e),a()},get trigger(){return U()},set trigger(e){U(e),a()},get icon(){return ve()},set icon(e){ve(e),a()},get footer(){return V()},set footer(e){V(e),a()},get iconClass(){return Ce()},set iconClass(e=""){Ce(e),a()},get footerClass(){return me()},set footerClass(e=""){me(e),a()},get descriptionClass(){return be()},set descriptionClass(e=""){be(e),a()},get onclick(){return he()},set onclick(e){he(e),a()},$set:De,$on:(e,pe)=>He(t,e,pe)},Ze=L(),Ke=C(Ze);{let e=_(()=>S()?0:D());M(Ke,()=>H2,(pe,Qe)=>{Qe(pe,{get delayDuration(){return i(e)},children:(Ue,Q2)=>{var Pe=L(),Ve=C(Pe);{let Ye=_(()=>S()?0:D()),$e=_(()=>!S()&&u());M(Ve,()=>L2,(e2,t2)=>{t2(e2,{onOpenChange:Ge,get delayDuration(){return i(Ye)},get disableHoverableContent(){return i($e)},get disableCloseOnTriggerClick(){return I()},get open(){return w()},set open(xe){w(xe)},children:(xe,U2)=>{var Be=E2(),We=C(Be);{const N=(E,R)=>{let we=()=>(R?.()).props;T2(E,{get triggerProps(){return we()},children:(ke,s2)=>{var j=L(),ye=C(j);{var Le=k=>{var H=L(),A=C(H);re(A,()=>U()??te),n(k,H)},Oe=k=>{var H=L(),A=C(H);re(A,()=>Q()??te),n(k,H)};m(ye,k=>{U()?k(Le):Q()&&k(Oe,1)})}n(ke,j)},$$slots:{default:!0}})};let Y=_(()=>Z("inline-flex",oe()));M(We,()=>O2,(E,R)=>{R(E,{get class(){return i(Y)},get disabled(){return v()},get onclick(){return he()},"data-tooltip-trigger":!0,child:N,$$slots:{child:!0}})})}var r2=z(We);{var a2=N=>{var Y=L(),E=C(Y);M(E,()=>z2,(R,we)=>{we(R,{children:(ke,s2)=>{var j=L(),ye=C(j);M(ye,()=>D2,(Le,Oe)=>{Oe(Le,{role:"tooltip",get side(){return c()},get align(){return d()},get sideOffset(){return O()},get alignOffset(){return W()},get class(){return i(qe)},"data-tooltip-content":!0,"data-overlay-surface":!0,onFocusOutside:()=>{},children:(k,H)=>{var A=N2(),$=C(A),Ie=X($);{var o2=s=>{{let o=_(()=>v2.ui_tooltipRich_close_ariaLabel());A2(s,{variant:"ghost",size:"icon-compact",onclick:Xe,class:"absolute -right-1 -top-1 size-5 rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground motion-reduce:transition-none",get"aria-label"(){return i(o)},children:(g,y)=>{Re(g,{get icon(){return y2},size:"xs",class:"w-3 h-3"})},$$slots:{default:!0}})}};m(Ie,s=>{ce()&&s(o2)})}var ee=z(Ie,2),Se=X(ee);{var n2=s=>{var o=B2(),g=X(o);{var y=h=>{{let T=_(()=>Z("w-4 h-4 mt-0.5 flex-shrink-0",i(F).iconColor,Ce()));Re(h,{get icon(){return i(_e)},size:"1x",get class(){return i(T)}})}};m(g,h=>{i(_e)&&h(y)})}var q=z(g,2);{var G=h=>{var T=P2(),Te=Ne(T,!0);P(()=>Ee(Te,l())),n(h,T)};m(q,h=>{l()&&h(G)})}J(o),n(s,o)};m(Se,s=>{(l()||i(_e))&&s(n2)})}var Fe=z(Se,2);{var i2=s=>{var o=W2(),g=Ne(o,!0);P(y=>{K(o,1,y),Ee(g,f())},[()=>ae(Z("type-body opacity-90",be()))]),n(s,o)};m(Fe,s=>{f()&&s(i2)})}var l2=z(Fe,2);{var c2=s=>{var o=I2(),g=X(o);re(g,()=>b()??te),J(o),n(s,o)};m(l2,s=>{b()&&s(c2)})}J(ee);var d2=z(ee,2);{var g2=s=>{var o=S2(),g=X(o);re(g,()=>V()??te),J(o),P(y=>K(o,1,y),[()=>ae(Z("px-3 py-2",me()))]),n(s,o)};m(d2,s=>{V()&&s(g2)})}J($);var f2=z($,2);{var u2=s=>{var o=L(),g=C(o);{const y=(q,G)=>{let h=()=>(G?.()).props;var T=F2();_2(T,Te=>({class:Te,...h()}),[()=>Z("z-50 bg-border","data-[side=top]:w-px data-[side=top]:h-2","data-[side=bottom]:w-px data-[side=bottom]:h-2","data-[side=left]:h-px data-[side=left]:w-2","data-[side=right]:h-px data-[side=right]:w-2")]),n(q,T)};M(g,()=>M2,(q,G)=>{G(q,{child:y,$$slots:{child:!0}})})}n(s,o)};m(f2,s=>{le()&&s(u2)})}P(()=>{h2($,`max-width: ${fe()??""};`),K(ee,1,`px-3 py-2 space-y-1 ${ie()??""}`)}),n(k,A)},$$slots:{default:!0}})}),n(ke,j)},$$slots:{default:!0}})}),n(N,Y)};m(r2,N=>{!v()&&(l()||f()||b())&&N(a2)})}n(xe,Be)},$$slots:{default:!0}})})}n(Ue,Pe)},$$slots:{default:!0}})})}return n(x,Ze),Me(Je)}const j2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23222326'%20width='200'%20height='200'%20viewBox='0%200%20100%20100'%3e%3cpath%20d='M1.22541%2061.5228c-.2225-.9485.90748-1.5459%201.59638-.857L39.3342%2097.1782c.6889.6889.0915%201.8189-.857%201.5964C20.0515%2094.4522%205.54779%2079.9485%201.22541%2061.5228ZM.00189135%2046.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503%2099.7085c.2007.2007.4773.3075.7606.2896%202.3692-.1476%204.6938-.46%206.9624-.9259.7645-.157%201.0301-1.0963.4782-1.6481L2.57595%2039.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915%202.2686-.77832%204.5932-.92588465%206.9624ZM4.21093%2029.7054c-.16649.3738-.08169.8106.20765%201.1l64.77602%2064.776c.2894.2894.7262.3742%201.1.2077%201.7861-.7956%203.5171-1.6927%205.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566%2024.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132%201.6684-1.88843%203.3994-2.68399%205.1855ZM12.6587%2018.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795%206.45931%2035.1114%200%2049.9519%200%2077.5927%200%20100%2022.4073%20100%2050.0481c0%2014.8405-6.4593%2028.1724-16.7199%2037.3375-.3903.3487-.984.3258-1.3542-.0443L12.6587%2018.074Z'%20/%3e%3c/svg%3e",q2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23fff'%20width='200'%20height='200'%20viewBox='0%200%20100%20100'%3e%3cpath%20d='M1.22541%2061.5228c-.2225-.9485.90748-1.5459%201.59638-.857L39.3342%2097.1782c.6889.6889.0915%201.8189-.857%201.5964C20.0515%2094.4522%205.54779%2079.9485%201.22541%2061.5228ZM.00189135%2046.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503%2099.7085c.2007.2007.4773.3075.7606.2896%202.3692-.1476%204.6938-.46%206.9624-.9259.7645-.157%201.0301-1.0963.4782-1.6481L2.57595%2039.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915%202.2686-.77832%204.5932-.92588465%206.9624ZM4.21093%2029.7054c-.16649.3738-.08169.8106.20765%201.1l64.77602%2064.776c.2894.2894.7262.3742%201.1.2077%201.7861-.7956%203.5171-1.6927%205.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566%2024.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132%201.6684-1.88843%203.3994-2.68399%205.1855ZM12.6587%2018.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795%206.45931%2035.1114%200%2049.9519%200%2077.5927%200%20100%2022.4073%20100%2050.0481c0%2014.8405-6.4593%2028.1724-16.7199%2037.3375-.3903.3487-.984.3258-1.3542-.0443L12.6587%2018.074Z'%20/%3e%3c/svg%3e";var G2=p("<img/>");function X2(x,t){if(new.target)return ze({component:X2,...x});Ae(t,!0);const l=()=>C2(O,"$isDarkTheme",f),[f,b]=m2();let c=r(t,"size",7,16),d=r(t,"class",7,"");const O=Z2(),W="Linear";var D={get size(){return c()},set size(v=16){c(v),a()},get class(){return d()},set class(v=""){d(v),a()},$set:De,$on:(v,w)=>He(t,v,w)},u=G2();B(u,"alt",W),P(()=>{B(u,"src",l()?q2:j2),B(u,"width",c()),B(u,"height",c()),K(u,1,ae(d()))}),n(x,u);var I=Me(D);return b(),I}var J2=b2('<svg viewBox="0 0 278 245" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M160.822 12.5546C158.514 8.72421 155.255 5.5554 151.361 3.35567C147.467 1.15594 143.071 0 138.599 0C134.127 0 129.731 1.15594 125.838 3.35567C121.944 5.5554 118.685 8.72421 116.377 12.5546L79.8216 75.1657C107.749 89.1085 131.543 110.114 148.841 136.096C166.14 162.078 176.341 192.133 178.433 223.277H152.766C150.679 196.581 141.656 170.892 126.592 148.754C111.528 126.616 90.9439 108.795 66.8771 97.0546L33.0438 155.555C46.5734 161.622 58.3603 170.994 67.3207 182.809C76.281 194.623 82.1272 208.501 84.3216 223.166H25.3771C24.6781 223.116 24.0023 222.894 23.4108 222.518C22.8193 222.142 22.3306 221.625 21.9889 221.013C21.6471 220.401 21.463 219.714 21.4532 219.013C21.4434 218.312 21.6082 217.62 21.9327 216.999L38.266 189.221C32.7323 184.604 26.408 181.028 19.5994 178.666L3.43269 206.444C1.74966 209.33 0.657047 212.523 0.218326 215.835C-0.220395 219.148 0.00352239 222.515 0.877069 225.74C1.75062 228.966 3.25638 231.985 5.30688 234.624C7.35738 237.262 9.91174 239.467 12.8216 241.11C16.6554 243.27 20.9767 244.418 25.3771 244.444H106.099C107.599 225.944 104.295 207.371 96.5084 190.522C88.7219 173.674 76.7165 159.123 61.6549 148.277L74.4882 126.055C93.4962 139.11 108.771 156.896 118.806 177.657C128.841 198.419 133.289 221.438 131.71 244.444H200.099C201.692 209.593 194.11 174.936 178.112 143.934C162.114 112.932 138.26 86.6713 108.933 67.7769L134.877 23.3324C135.455 22.3638 136.393 21.6627 137.485 21.3818C138.578 21.1008 139.737 21.2628 140.71 21.8324C143.655 23.4435 253.433 214.999 255.488 217.221C255.85 217.871 256.035 218.604 256.022 219.347C256.01 220.091 255.802 220.818 255.418 221.455C255.035 222.092 254.49 222.616 253.839 222.975C253.188 223.334 252.454 223.515 251.71 223.499H225.266C225.599 230.573 225.599 237.629 225.266 244.666H251.822C255.194 244.688 258.537 244.041 261.657 242.762C264.777 241.484 267.613 239.599 270 237.217C272.387 234.835 274.278 232.003 275.563 228.886C276.849 225.768 277.503 222.427 277.488 219.055C277.492 214.601 276.302 210.227 274.044 206.388L160.822 12.5546Z"></path></svg>');function K2(x,t){if(new.target)return ze({component:K2,...x});Ae(t,!0);let l=r(t,"size",7,16),f=r(t,"class",7,"");var b={get size(){return l()},set size(d=16){l(d),a()},get class(){return f()},set class(d=""){f(d),a()},$set:De,$on:(d,O)=>He(t,d,O)},c=J2();return P(()=>{B(c,"width",l()),B(c,"height",l()),K(c,0,ae(f()))}),n(x,c),Me(b)}export{X2 as L,K2 as S,R2 as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as d}from"./
|
|
1
|
+
import{h as d}from"./CE7dsja4.js";import{bm as t}from"./C0QTy0Sy.js";import{Jv as n,nX as m,pd as _}from"./tr-2J8Mf.js";import{c5 as h,a_ as g}from"./BaujsV9k.js";import{R as H}from"./eElW3aeh.js";import{w as f,m as w,e as b}from"./BxEf7uwl.js";function u(e){return e.lastBackupAt?d(e.lastBackupAt):""}function k(e){if(e.starting)return t.workspaceHome_starting_label();if(e.state==="moving")return t.workspaceHome_banner_moving();if(e.unknownState)return t.workspaceHome_banner_detachedNoBackup({name:e.name});const o=u(e);return o?t.workspaceHome_banner_detached({name:e.name,time:o}):t.workspaceHome_banner_detachedNoBackup({name:e.name})}function A(e){return e?.unavailable?k(e):null}function y(e){if(e.banner==="detached"||e.banner==="moving")return k(e);if(e.banner!=="backupWarning")return"";const o=u(e);return o?t.workspaceHome_banner_backupWarning({name:e.name,time:o}):t.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function R(e){switch(e.setup?.phase){case"preparing":case"runningSetup":return t.workspaceHome_opening_title({name:e.name});case"openFailed":return t.workspaceHome_openFailed_title({name:e.name});case"setupFailed":return t.remoteAgent_notice_setupFailed_title({machine:e.name});default:return""}}function N(e){const o=e.setup;switch(o?.phase){case"preparing":return t.remoteAgent_status_preparingCheckout();case"runningSetup":return t.remoteAgent_status_runningSetup();case"openFailed":return t.workspaceHome_openFailed_hint({name:e.name});case"setupFailed":return o.exitCode!==null?t.workspaceHome_setupFailed_exitCode({code:String(o.exitCode)}):o.timedOut?t.workspaceHome_setupFailed_timeout():t.workspaceHome_setupFailed_generic();default:return null}}function D(e){const o=e.setup,r=o?.phase==="openFailed"||o?.phase==="setupFailed"?o.error:null;return r&&r.replace(/^[a-z][a-z0-9-]*:\s*/,"").trim()||null}function E(e){return e==="detached"?t.workspaceHome_marker_detached():t.workspaceHome_marker_moving()}function C(e){const o=u(e);return o?t.workspaceHome_header_lastBackup({time:o}):null}function V(e){if(!e.moveWarning)return null;const o=u(e);return o?t.workspaceHome_moveDialog_warning({name:e.name,time:o}):t.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function q(e){switch(e.code){case"forbidden":return t.workspaceHome_moveError_forbidden();case"homes-unsupported":return t.workspaceHome_moveError_homesUnsupported();case"home-moving":return t.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return t.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return t.workspaceHome_moveError_updateRequired();default:return t.workspaceHome_moveError_failed({message:e.message})}}const i=new WeakMap,S=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o),a=r?.home;if(!a)return null;const s=i.get(a);if(s)return s;const c=f(r);return c&&i.set(a,c),c}),L=n.createSelector((e,o)=>w(m(e.workspace.workspaces,o),!h.select(e,o))),F=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o)?.home;return r?.setup?.state==="failed"?_(r.homeId,r.setup.finishedAt):""}),U=n.createSelector((e,o)=>{const r=S.select(e,o);if(r?.banner!=="setupFailed")return r;const a=F.select(e,o);if(!a||!e.workspaceHome.dismissedSetupFailures[a])return r;const s=p.get(r);if(s)return s;const c={...r,banner:null};return p.set(r,c),c}),p=new WeakMap,z=n.createSelector((e,o)=>{const r=e.workspaceHome.setupOutputs[o],a=m(e.workspace.workspaces,o)?.home?.homeId;return r&&r.homeId===a?r:null}),I=n.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),J=n.createSelector(e=>e.workspaceHome.dialogWorkspaceId),K=n.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),j=n.createSelector(e=>e.workspaceHome.moveFailure),W=[],l=new Map,P=n.createSelector((e,o)=>{if(!o)return W;const r=b({agents:g.select(e,o),machineRows:H.select(e)}),a=JSON.stringify(r),s=l.get(o);return s?.key===a?s.options:(l.set(o,{key:a,options:r}),r)}),X=n.createSelector((e,o)=>m(e.workspace.workspaces,o)!==void 0);export{C as a,E as b,V as c,D as d,A as e,N as f,R as g,y as h,k as i,F as j,z as k,I as l,q as m,J as n,j as o,P as p,K as q,U as r,L as s,S as t,X as u};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var ut=e=>{throw TypeError(e)};var rn=(e,t,n)=>t.has(e)||ut("Cannot "+n);var k=(e,t,n)=>(rn(e,t,"read from private field"),n?n.call(e):t.get(e)),j=(e,t,n)=>t.has(e)?ut("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{ao as R,cd as We,bk as dt,bV as U,aD as N,bH as C,c0 as Se,bX as on,bP as an,c5 as sn}from"./3SdAC2_C.js";const Pt=!0;class Xe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ze{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ee extends Error{constructor(t,n,o){super(o),this.status=t,this.text=n}}new URL("sveltekit-internal://");function cn(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ln(e){return e.split("%25").map(decodeURI).join("%25")}function fn(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function
|
|
1
|
+
var ut=e=>{throw TypeError(e)};var rn=(e,t,n)=>t.has(e)||ut("Cannot "+n);var k=(e,t,n)=>(rn(e,t,"read from private field"),n?n.call(e):t.get(e)),j=(e,t,n)=>t.has(e)?ut("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{ao as R,cd as We,bk as dt,bV as U,aD as N,bH as C,c0 as Se,bX as on,bP as an,c5 as sn}from"./3SdAC2_C.js";const Pt=!0;class Xe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ze{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ee extends Error{constructor(t,n,o){super(o),this.status=t,this.text=n}}new URL("sveltekit-internal://");function cn(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ln(e){return e.split("%25").map(decodeURI).join("%25")}function fn(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Me({href:e}){return e.split("#")[0]}function V(){}function un(...e){let t=5381;for(const n of e)if(typeof n=="string"){let o=n.length;for(;o;)t=t*33^n.charCodeAt(--o)}else if(ArrayBuffer.isView(n)){const o=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=o.length;for(;r;)t=t*33^o[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function dn(e){const t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}let hn=0;const ht=window.fetch;if(R&&Pt){let e=!1;(async()=>{e=new Error().stack.includes("check_stack_trace")})(),window.fetch=(n,o)=>{const r=n instanceof Request?n.url:n.toString(),i=new Error().stack.split(`
|
|
2
2
|
`),a=i.findIndex(g=>g.includes("load@")||g.includes("at load")),s=i.slice(0,a+2).join(`
|
|
3
|
-
`),c=e?s.includes("src/runtime/client/client.js"):hn,f=o?.__sveltekit_fetch__;return c&&!f&&console.warn(`Loading ${r} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`),(n instanceof Request?n.method:o?.method||"GET")!=="GET"&&Q.delete(Oe(n)),ht(n,o)}}else window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Q.delete(Oe(e)),ht(e,t));const Q=new Map;function pn(e,t){const n=Oe(e,t),o=document.querySelector(n);if(o?.textContent){o.remove();let{body:r,...i}=JSON.parse(o.textContent);o.getAttribute("data-b64")!==null&&(r=dn(r));const s=o.getAttribute("data-ttl");return s&&Q.set(n,{body:r,init:i,ttl:1e3*Number(s)}),Promise.resolve(new Response(r,i))}return R?It(e,t):window.fetch(e,t)}function gn(e,t,n){if(Q.size>0){const o=Oe(e,n),r=Q.get(o);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);Q.delete(o)}}return R?It(t,n):window.fetch(t,n)}function It(e,t){const n={...t};return Object.defineProperty(n,"__sveltekit_fetch__",{value:!0,writable:!0,configurable:!0}),window.fetch(e,n)}function Oe(e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),o+=`[data-hash="${un(...r)}"]`}return o}const _n=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,yn=/^\/\((?:[^)]+)\)$/;function mn(e){const t=[];return{pattern:e==="/"||yn.test(e)?/^\/$/:new RegExp(`^${vn(e).map(o=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const a=o.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return
|
|
4
|
-
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function
|
|
5
|
-
`);!r||(!r[0].includes("https:")&&!r[0].includes("http:")&&(r=r.slice(1)),r[2]?.includes("node_modules"))||(e=!0,console.warn("Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead."))},n=history.pushState;history.pushState=(...r)=>(t(),n.apply(history,r));const o=history.replaceState;history.replaceState=(...r)=>(t(),o.apply(history,r))}const
|
|
3
|
+
`),c=e?s.includes("src/runtime/client/client.js"):hn,f=o?.__sveltekit_fetch__;return c&&!f&&console.warn(`Loading ${r} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`),(n instanceof Request?n.method:o?.method||"GET")!=="GET"&&Q.delete(Oe(n)),ht(n,o)}}else window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Q.delete(Oe(e)),ht(e,t));const Q=new Map;function pn(e,t){const n=Oe(e,t),o=document.querySelector(n);if(o?.textContent){o.remove();let{body:r,...i}=JSON.parse(o.textContent);o.getAttribute("data-b64")!==null&&(r=dn(r));const s=o.getAttribute("data-ttl");return s&&Q.set(n,{body:r,init:i,ttl:1e3*Number(s)}),Promise.resolve(new Response(r,i))}return R?It(e,t):window.fetch(e,t)}function gn(e,t,n){if(Q.size>0){const o=Oe(e,n),r=Q.get(o);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);Q.delete(o)}}return R?It(t,n):window.fetch(t,n)}function It(e,t){const n={...t};return Object.defineProperty(n,"__sveltekit_fetch__",{value:!0,writable:!0,configurable:!0}),window.fetch(e,n)}function Oe(e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),o+=`[data-hash="${un(...r)}"]`}return o}const _n=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,yn=/^\/\((?:[^)]+)\)$/;function mn(e){const t=[];return{pattern:e==="/"||yn.test(e)?/^\/$/:new RegExp(`^${vn(e).map(o=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const a=o.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ve(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ve(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const u=_n.exec(c),[,g,d,h,p]=u;return t.push({name:h,matcher:p,optional:!!g,rest:!!d,chained:d?f===1&&a[0]==="":!1}),d?"([^]*?)":g?"([^/]*)?":"([^/]+?)"}return Ve(c)}).join("")}).join("")}/?$`),params:t}}function wn(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function vn(e){return e.slice(1).split("/").filter(wn)}function bn(e,t,n){const o={},r=e.slice(1),i=r.filter(s=>s!==void 0);let a=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=r[s-a];if(c.chained&&c.rest&&a&&(f=r.slice(s-a,s+1).filter(u=>u).join("/"),a=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||n[c.matcher](f)){o[c.name]=f;const u=t[s+1],g=r[s+1];u&&!u.rest&&u.optional&&g&&c.chained&&(a=0),!u&&!g&&Object.keys(o).length===i.length&&(a=0);continue}if(c.optional&&c.chained){a++;continue}return}if(!a)return o}function Ve(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function kn({nodes:e,server_loads:t,dictionary:n,matchers:o}){const r=new Set(t);return Object.entries(n).map(([s,[c,f,u]])=>{const{pattern:g,params:d}=mn(s),h={id:s,exec:p=>{const m=g.exec(p);if(m)return bn(m,d,o)},errors:[1,...u||[]].map(p=>e[p]),layouts:[0,...f||[]].map(a),leaf:i(c)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function a(s){return s===void 0?s:[r.has(s),e[s]]}}function xt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function pt(e,t,n=JSON.stringify){const o=n(t);try{sessionStorage[e]=o}catch{}}const I=globalThis.__sveltekit_1qzl0pf?.base??"",Sn=globalThis.__sveltekit_1qzl0pf?.assets??I??"",En="1795485152157",jt="sveltekit:snapshot",Ut="sveltekit:scroll",Qe="sveltekit:states",Nt="sveltekit:pageurl",G="sveltekit:history",ne="sveltekit:navigation",Y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},je=location.origin;function Ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function J(){return{x:pageXOffset,y:pageYOffset}}const gt=new WeakSet,_t={"preload-code":["","off","false","tap","hover","viewport","eager"],"preload-data":["","off","false","tap","hover"],keepfocus:["","true","off","false"],noscroll:["","true","off","false"],reload:["","true","off","false"],replacestate:["","true","off","false"]};function X(e,t){const n=e.getAttribute(`data-sveltekit-${t}`);return R&&On(e,t,n),n}function On(e,t,n){n!==null&&!gt.has(e)&&!_t[t].includes(n)&&(console.error(`Unexpected value for ${t} — should be one of ${_t[t].map(o=>JSON.stringify(o)).join(", ")}`,e),gt.add(e))}const yt={...Y,"":Y.hover};function Ct(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Dt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ct(e)}}function He(e,t,n){let o;try{if(o=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&o.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";o.hash=`#${s}${o.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!o||!!r||Ne(o,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=o?.origin===je&&e.hasAttribute("download");return{url:o,external:i,target:r,download:a}}function $e(e){let t=null,n=null,o=null,r=null,i=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=X(s,"preload-code")),r===null&&(r=X(s,"preload-data")),t===null&&(t=X(s,"keepfocus")),n===null&&(n=X(s,"noscroll")),i===null&&(i=X(s,"reload")),a===null&&(a=X(s,"replacestate")),s=Ct(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:yt[o??"off"],preload_data:yt[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function mt(e){const t=We(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function i(a){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&a(s=c)})}return{notify:o,set:r,subscribe:i}}const Bt={v:V};function $n(){const{set:e,subscribe:t}=We(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${Sn}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==En;return a&&(e(!0),Bt.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function Ne(e,t,n){return e.origin!==je||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Cr(e){}const qt=-1,wt=-2,An=-3,Rn=-4,Tn=-5,Mt=-6,Ln=-7,Pn=2**32-1,In=Pn-1;class H extends Error{constructor(t,n,o,r){super(t),this.name="DevalueError",this.path=n.join(""),this.value=o,this.root=r}}const xn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jn(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===xn}function Un(e){return Object.prototype.toString.call(e).slice(8,-1)}function Nn(e){return typeof Buffer<"u"&&Buffer.isBuffer(e)}function Cn(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
|
|
4
|
+
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function q(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const i=e[r],a=Cn(i);a&&(t+=e.slice(n,r)+a,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}function Dn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}const Bn=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function vt(e){return Bn.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function qn(e){return!(!Number.isInteger(e)||e<0||e>In)}function Mn(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<48||n>57)return!1}return qn(+e)}function Vn(e){for(var t=e.length-1;t>=0&&!Mn(e[t]);t--);return t+1}function zn(e){const t=Object.keys(e);return t.length=Vn(t),t}function Fn(e){return new Uint8Array(e).toBase64()}function Hn(e){return Buffer.from(e).toString("base64")}function Yn(e){const t=new Uint8Array(e);let n="";const o=32768;for(let r=0;r<t.length;r+=o){const i=t.subarray(r,r+o);n+=String.fromCharCode.apply(null,i)}return btoa(n)}const Gn=typeof Uint8Array.fromBase64=="function",Kn=typeof process=="object"&&process.versions?.node!==void 0,Jn=Gn?Fn:Kn?Hn:Yn;function Wn(e,t){return e}const Xn=Object.freeze({kind:"not-plain"}),Zn=Object.freeze({kind:"symbol-keys"}),Qn={identify:e=>e,typeOf:e=>e===null?"null":typeof e,toPrimitive:e=>e,tagOf:e=>Un(e),isThenable:e=>typeof e.then=="function",toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?"":e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>(Nn(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>zn(e),shapeOf:e=>jn(e)?Dn(e).length>0?Zn:{kind:Object.getPrototypeOf(e)===null?"null-proto":"plain",keys:Object.keys(e)}:Xn,get:(e,t)=>e[t]},er=Object.freeze(Qn);Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;typeof SharedArrayBuffer>"u"||Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get;function tr(e,t,n){const o=nr(!1,e);return typeof o=="string"?o:`[${o.join(",")}]`}function nr(e,t,n,o){const r=Wn(er),i=[],a=new Map,s=[],c=[];let f=0;function u(d,h){const p=r.typeOf(d);if(p==="undefined")return qt;let m;if(p==="number"){if(m=r.toPrimitive(d),Number.isNaN(m))return An;if(m===1/0)return Rn;if(m===-1/0)return Tn;if(m===0&&1/m<0)return Mt}const _=r.identify(d);if(a.has(_))return a.get(_);h??=f++,a.set(_,h);for(const{key:b,fn:E}of s){const T=E(d);if(T)return i[h]=`["${b}",${u(T)}]`,h}if(p==="function")throw new H("Cannot stringify a function",c,d,t);if(p==="symbol")throw new H("Cannot stringify a Symbol primitive",c,d,t);let l="";if(p!=="object")l=bt(p==="number"?m:r.toPrimitive(d));else{if(r.isThenable(d))throw new H("Cannot stringify a Promise or thenable — use stringifyAsync instead",c,d,t);{const b=r.tagOf(d);switch(b){case"Number":case"String":case"Boolean":case"BigInt":l=`["Object",${u(r.unbox(d))}]`;break;case"Date":l=`["Date","${r.toISOString(d)}"]`;break;case"URL":l=`["URL",${q(r.toStringValue(d))}]`;break;case"URLSearchParams":l=`["URLSearchParams",${q(r.toStringValue(d))}]`;break;case"RegExp":const{source:E,flags:T}=r.regExpInfo(d);l=T?`["RegExp",${q(E)},"${T}"]`:`["RegExp",${q(E)}]`;break;case"Array":{let y=!1;const $=r.lengthOf(d);l="[";for(let w=0;w<$;w+=1)if(w>0&&(l+=","),r.hasOwn(d,w))c.push(`[${w}]`),l+=u(r.get(d,w)),c.pop();else if(y)l+=wt;else{const x=r.indicesOf(d),W=x.length,B=String($).length,re=($-W)*3,nn=4+B+W*(B+1);if(re>nn){l="["+Ln+","+$;for(let Be=0;Be<x.length;Be++){const qe=x[Be];c.push(`[${qe}]`),l+=","+qe+","+u(r.get(d,qe)),c.pop()}break}else y=!0,l+=wt}l+="]";break}case"Set":l='["Set"';for(const y of r.valuesOf(d))l+=`,${u(y)}`;l+="]";break;case"Map":l='["Map"';for(const[y,$]of r.entriesOf(d)){const w=r.typeOf(y),x=w!=="object"&&w!=="function"&&w!=="symbol";c.push(`.get(${x?bt(r.toPrimitive(y)):"..."})`),l+=`,${u(y)},${u($)}`,c.pop()}l+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const y=r.viewInfo(d);l='["'+b+'",'+u(y.buffer),y.byteLength!==y.bufferByteLength&&(l+=`,${y.byteOffset},${y.length}`),l+="]";break}case"DataView":{const y=r.viewInfo(d);l='["'+b+'",'+u(y.buffer),y.byteLength!==y.bufferByteLength&&(l+=`,${y.byteOffset},${y.byteLength}`),l+="]";break}case"ArrayBuffer":{l=`["ArrayBuffer","${Jn(r.toArrayBuffer(d))}"]`;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":l=`["${b}",${q(r.toStringValue(d))}]`;break;default:{const y=r.shapeOf(d);if(y.kind==="not-plain")throw new H("Cannot stringify arbitrary non-POJOs",c,d,t);if(y.kind==="symbol-keys")throw new H("Cannot stringify POJOs with symbolic keys",c,d,t);if(y.kind==="null-proto"){l='["null"';for(const $ of y.keys){if($==="__proto__")throw new H("Cannot stringify objects with __proto__ keys",c,d,t);c.push(vt($)),l+=`,${q($)},${u(r.get(d,$))}`,c.pop()}l+="]"}else{l="{";let $=!1;for(const w of y.keys){if(w==="__proto__")throw new H("Cannot stringify objects with __proto__ keys",c,d,t);$&&(l+=","),$=!0,c.push(vt(w)),l+=`${q(w)}:${u(r.get(d,w))}`,c.pop()}l+="}"}}}}}return i[h]=l,h}const g=u(t);return g<0?`${g}`:i}function bt(e){const t=typeof e;return t==="string"?q(e):e===void 0?qt.toString():e===0&&1/e<0?Mt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function rr(e){function t(n,o){if(n)for(const r in n){if(r[0]==="_"||e.has(r))continue;const i=[...e.values()],a=or(r,o?.slice(o.lastIndexOf(".")))??`valid exports are ${i.join(", ")}, or anything with a '_' prefix`;throw new Error(`Invalid export '${r}'${o?` in ${o}`:""} (${a})`)}}return t}function or(e,t=".js"){const n=[];if(et.has(e)&&n.push(`+layout${t}`),Vt.has(e)&&n.push(`+page${t}`),zt.has(e)&&n.push(`+layout.server${t}`),ar.has(e)&&n.push(`+page.server${t}`),sr.has(e)&&n.push(`+server${t}`),n.length>0)return`'${e}' is a valid export in ${n.slice(0,-1).join(", ")}${n.length>1?" or ":""}${n.at(-1)}`}const et=new Set(["load","prerender","csr","ssr","trailingSlash","config"]),Vt=new Set([...et,"entries"]),zt=new Set([...et]),ar=new Set([...zt,"actions","entries"]),sr=new Set(["GET","POST","PATCH","PUT","DELETE","OPTIONS","HEAD","fallback","prerender","trailingSlash","config","entries"]),ir=rr(Vt);function cr(e){return e.filter(t=>t!=null)}function be(e,t){return e+"/"+t}function tt(e){return e instanceof Xe||e instanceof Ee?e.status:500}function lr(e){return e instanceof Ee?e.text:"Internal Error"}let A,se,ze;const fr=dt.toString().includes("$$")||/function \w+\(\) \{\}/.test(dt.toString()),kt="a:";var ue,de,he,pe,ge,_e,ye,me,Rt,we,Tt,ve,Lt;fr?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(kt)},se={current:null},ze={current:!1}):(A=new(Rt=class{constructor(){j(this,ue,U({}));j(this,de,U(null));j(this,he,U(null));j(this,pe,U({}));j(this,ge,U({id:null}));j(this,_e,U({}));j(this,ye,U(-1));j(this,me,U(new URL(kt)))}get data(){return N(k(this,ue))}set data(t){C(k(this,ue),t)}get form(){return N(k(this,de))}set form(t){C(k(this,de),t)}get error(){return N(k(this,he))}set error(t){C(k(this,he),t)}get params(){return N(k(this,pe))}set params(t){C(k(this,pe),t)}get route(){return N(k(this,ge))}set route(t){C(k(this,ge),t)}get state(){return N(k(this,_e))}set state(t){C(k(this,_e),t)}get status(){return N(k(this,ye))}set status(t){C(k(this,ye),t)}get url(){return N(k(this,me))}set url(t){C(k(this,me),t)}},ue=new WeakMap,de=new WeakMap,he=new WeakMap,pe=new WeakMap,ge=new WeakMap,_e=new WeakMap,ye=new WeakMap,me=new WeakMap,Rt),se=new(Tt=class{constructor(){j(this,we,U(null))}get current(){return N(k(this,we))}set current(t){C(k(this,we),t)}},we=new WeakMap,Tt),ze=new(Lt=class{constructor(){j(this,ve,U(!1))}get current(){return N(k(this,ve))}set current(t){C(k(this,ve),t)}},ve=new WeakMap,Lt),Bt.v=()=>ze.current=!0);function Ft(e){Object.assign(A,e)}const{onMount:ur}=on,dr=sn??(e=>e()),hr=new Set(["icon","shortcut icon","apple-touch-icon"]);let oe=null;const F=xt(Ut)??{},ie=xt(jt)??{};if(R&&Pt){let e=!1;const t=()=>{if(e)return;let r=new Error().stack?.split(`
|
|
5
|
+
`);!r||(!r[0].includes("https:")&&!r[0].includes("http:")&&(r=r.slice(1)),r[2]?.includes("node_modules"))||(e=!0,console.warn("Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead."))},n=history.pushState;history.pushState=(...r)=>(t(),n.apply(history,r));const o=history.replaceState;history.replaceState=(...r)=>(t(),o.apply(history,r))}const z={url:mt({}),page:mt({}),navigating:We(null),updated:$n()};function nt(e){F[e]=J()}function pr(e,t){let n=e+1;for(;F[n];)delete F[n],n+=1;for(n=t+1;ie[n];)delete ie[n],n+=1}function ce(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(V)}async function Ht(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}let rt,Ye,Ae,D,Ge,S;const Re=[],Te=[];let P=null;function Le(){P?.fork?.then(e=>e?.discard()),P=null,Z={element:void 0,href:void 0}}const ke=new Map,ot=new Set,gr=new Set,ee=new Set;let v={branch:[],error:null,url:null},Yt=!1,le=!1,St=!0,fe=!1,ae=!1,Gt=!1,at=!1,st,O,L,M;const Pe=new Set,Et=new Map,Ot=new Map;async function Mr(e,t,n){if(R&&t===document.body&&console.warn(`Placing %sveltekit.body% directly inside <body> is not recommended, as your app may break for users who have certain browser extensions installed.
|
|
6
6
|
|
|
7
7
|
Consider wrapping it in an element:
|
|
8
8
|
|
|
9
9
|
<div style="display: contents">
|
|
10
10
|
%sveltekit.body%
|
|
11
|
-
</div>`),globalThis.__sveltekit_15vuu1o.data){const{q:i={},p:a={},l:s={},f:c={}}=globalThis.__sveltekit_15vuu1o.data;for(const f in i)i[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in a)a[f]}document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),rt=kn(e),D=document.documentElement,Ge=t,Ye=e.nodes[0],Ae=e.nodes[1],Ye(),Ae(),O=history.state?.[G],L=history.state?.[ne],O||(O=L=Date.now(),history.replaceState({...history.state,[G]:O,[ne]:L},""));const o=z[O];function r(){o&&(history.scrollRestoration="manual",scrollTo(o.x,o.y))}n?(r(),await Pr(Ge,n)):(await te({type:"enter",url:Ue(S.hash?jr(new URL(location.href)):location.href),replace_state:!0}),r()),Lr()}function _r(){Re.length=0,at=!1}function Kt(e){Te.some(t=>t?.snapshot)&&(ie[e]=Te.map(t=>t?.snapshot?.capture()))}function Jt(e){ie[e]?.forEach((t,n)=>{Te[n]?.snapshot?.restore(t)})}function $t(){nt(O),pt(Ut,z),Kt(L),pt(jt,ie)}async function Wt(e,t,n,o){let r,i;t.invalidateAll&&Le(),await te({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:o,accept:()=>{if(t.invalidateAll){at=!0,r=new Set;for(const[a,s]of Et)for(const[c,f]of s)f.resource?.reset(),r.add(be(a,c));i=new Set;for(const[a,s]of Ot)for(const c of s.keys())i.add(be(a,c))}t.invalidate&&t.invalidate.forEach(Rr)}}),t.invalidateAll&&Se().then(Se).then(()=>{for(const[a,s]of Et)for(const[c,{resource:f}]of s)r?.has(be(a,c))&&f.start();for(const[a,s]of Ot)for(const[c,{resource:f}]of s)i?.has(be(a,c))&&f.reconnect()})}async function At(e){if(e.id!==P?.id){Le();const t={};Pe.add(t),P={id:e.id,token:t,promise:Zt({...e,preload:t}).then(n=>(Pe.delete(t),n.type==="loaded"&&n.state.error&&Le(),n)),fork:null}}return P.promise}async function ze(e){const t=(await Ce(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Xt(e,t,n){const o={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};if(v={...e.state,nav:o},zt(e.props.page),st=new S.root({target:t,props:{...e.props,stores:F,components:Te},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const r={from:null,to:{...o,scroll:z[O]??J()},willUnload:!1,type:"enter",complete:Promise.resolve()};ee.forEach(i=>i(r))}Jt(L),le=!0}async function Ie({url:e,params:t,branch:n,errors:o,status:r,error:i,route:a,form:s}){let c="never";if(I&&(e.pathname===I||e.pathname===I+"/"))c="always";else for(const p of n)p?.slash!==void 0&&(c=p.slash);e.pathname=cn(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:a},props:{constructors:cr(n).map(p=>p.node.component),page:De(A)}};s!==void 0&&(f.props.form=s);let u={},g=!A,d=0;for(let p=0;p<Math.max(n.length,v.branch.length);p+=1){const m=n[p],_=v.branch[p];m?.data!==_?.data&&(g=!0),m&&(u={...u,...m.data},g&&(f.props[`data_${d}`]=u),d+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||s!==void 0&&s!==A.form||g)&&(f.props.page={error:i,params:t,route:{id:a?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:g?u:A.data}),f}async function it({loader:e,parent:t,url:n,params:o,route:r,server_data_node:i}){let a=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(R&&(ir(c.universal),c.universal&&S.hash)){const f=Object.keys(c.universal).filter(u=>u!=="load");if(f.length>0)throw new Error(`Page options are ignored when \`router.type === 'hash'\` (${r.id} has ${f.filter(u=>u!=="load").map(u=>`'${u}'`).join(", ")})`)}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:a,uses:s}:null,data:a??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function yr(e,t,n){let o=e instanceof Request?e.url:e;const r=new URL(o,n);r.origin===n.origin&&(o=r.href.slice(n.origin.length));const i=le?gn(o,r.href,t):pn(o,t);return{resolved:r,promise:i}}function mr(e,t,n,o,r,i){if(at)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const a of r.search_params)if(o.has(a))return!0;for(const a of r.params)if(i[a]!==v.params[a])return!0;for(const a of r.dependencies)if(Re.some(s=>s(new URL(a))))return!0;return!1}function ct(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function wr(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const o of n){const r=e.searchParams.getAll(o),i=t.searchParams.getAll(o);r.every(a=>i.includes(a))&&i.every(a=>r.includes(a))&&n.delete(o)}return n}function vr({error:e,url:t,route:n,params:o}){return{type:"loaded",state:{error:e,url:t,route:n,params:o,branch:[]},props:{page:De(A),constructors:[]}}}async function Zt({id:e,invalidating:t,url:n,params:o,route:r,preload:i}){if(P?.id===e)return Pe.delete(P.token),P.promise;const{errors:a,layouts:s,leaf:c}=r,f=[...s,c];a.forEach(_=>_?.().catch(q)),f.forEach(_=>_?.[1]().catch(q));const u=v.url?e!==xe(v.url):!1,g=v.route?r.id!==v.route.id:!1,d=wr(v.url,n);let h=!1;const p=f.map(async(_,l)=>{if(!_)return;const b=v.branch[l];return _[1]===b?.loader&&!mr(h,g,u,d,b.universal?.uses,o)?b:(h=!0,it({loader:_[1],url:n,params:o,route:r,parent:async()=>{const T={};for(let y=0;y<l;y+=1)Object.assign(T,(await p[y])?.data);return T},server_data_node:ct(_[0]?{type:"skip"}:null,_[0]?b?.server:void 0)}))});for(const _ of p)_.catch(q);const m=[];for(let _=0;_<f.length;_+=1)if(f[_])try{m.push(await p[_])}catch(l){if(l instanceof Ze)return{type:"redirect",location:l.location};if(i&&Pe.has(i))return vr({error:await K(l,{params:o,url:n,route:{id:r.id}}),url:n,params:o,route:r});let b=tt(l),E;if(l instanceof Xe)E=l.body;else{if(await F.updated.check())return await Ht(),await ce(n);E=await K(l,{params:o,url:n,route:{id:r.id}})}const T=await br(_,m,a);return T?Ie({url:n,params:o,branch:m.slice(0,T.idx).concat(T.node),errors:a,status:b,error:E,route:r}):await Ke(n,{id:r.id},E,b)}else m.push(void 0);return Ie({url:n,params:o,branch:m,errors:a,status:200,error:null,route:r,form:t?void 0:null})}async function br(e,t,n){for(;e--;)if(n[e]){let o=e;for(;!t[o];)o-=1;try{return{idx:o+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function lt({status:e,error:t,url:n,route:o}){const r={};let i=null;try{const a=await it({loader:Ye,url:n,params:r,route:o,parent:()=>Promise.resolve({}),server_data_node:ct(i)}),s={node:await Ae(),loader:Ae,universal:null,server:null,data:null};return Ie({url:n,params:r,branch:[a,s],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof Ze){await Wt(new URL(a.location,location.href),{},0);return}const s=await S.get_error_template(),c=await K(a,{url:n,params:r,route:o}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=s({status:e,message:f}),g=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(g.head),document.head),document.documentElement.replaceChild(document.adoptNode(g.body),document.body),a}}async function kr(e){const t=e.href;if(ke.has(t))return ke.get(t);let n;try{const o=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,a)=>yr(i,a,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();ke.set(t,o),n=await o}catch(o){if(ke.delete(t),R){console.error(o);debugger}return}return n}async function Ce(e,t){if(e&&!Ne(e,I,S.hash)){const n=await kr(e);if(!n)return;const o=Sr(n);for(const r of rt){const i=r.exec(o);if(i)return{id:xe(e),invalidating:t,route:r,params:fn(i),url:e}}}}function Sr(e){return ln(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qt({url:e,type:t,intent:n,delta:o,event:r,scroll:i}){let a=!1;const s=ft(v,n,e,t,i??null);o!==void 0&&(s.navigation.delta=o),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return fe||ot.forEach(f=>f(c)),a?null:s}async function te({type:e,url:t,popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a={},redirect_count:s=0,nav_token:c={},accept:f=q,block:u=q,event:g}){const d=V;V=c;const h=await Ce(t,!1),p=e==="enter"?ft(v,h,t,e):Qt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:g});if(!p){u(),V===c&&(V=d);return}const m=O,_=L;f(),fe=!0,le&&p.navigation.type!=="enter"&&F.navigating.set(se.current=p.navigation);let l=h&&await Zt(h);if(!l)if(Ne(t,I,S.hash))if(R&&S.hash)l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname} (did you forget the hash?)`),{url:t,params:{},route:{id:null}}),404,i);else return await ce(t,i);else l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i);if(t=h?.url||t,V!==c){p.reject(new Error("navigation aborted"));return}if(!l)return;if(l.type==="redirect"){if(s<20){await te({type:e,url:new URL(l.location,t),popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}if(l=await lt({status:500,error:await K(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!l)return}else if(l.props.page.status>=400&&await F.updated.check())return await Ht(),await ce(t,i);if(_r(),nt(m),Kt(_),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),a=n?n.state:a,!n){const w=i?0:1,x={[G]:O+=w,[ne]:L+=w,[Qe]:a};(i?history.replaceState:history.pushState).call(history,x,"",t),i||pr(O,L)}const b=h&&P?.id===h.id?P.fork:null;P?.fork&&!b?Le():(P=null,Z={element:void 0,href:void 0}),l.props.page.state=a;let E;if(le){const w=(await Promise.all(Array.from(gr,B=>B(p.navigation)))).filter(B=>typeof B=="function");if(w.length>0){let B=function(){w.forEach(re=>{ee.delete(re)})};w.push(B),w.forEach(re=>{ee.add(re)})}const x=p.navigation.to;v={...l.state,nav:{params:x.params,route:x.route,url:x.url}},l.props.page&&(l.props.page.url=t),!o&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const W=b&&await b;W?E=W.commit():(oe=null,st.$set(l.props),oe&&Object.assign(l.props.page,oe),zt(l.props.page),E=an?.()),Gt=!0}else await Xt(l,Ge,!1);const{activeElement:T}=document;if(await E,await Se(),await Se(),V!==c){p.reject(new Error("navigation aborted"));return}l.props.page&&oe&&Object.assign(l.props.page,oe);let y=null;if(St){const w=n?n.scroll:r?J():null;w?scrollTo(w.x,w.y):(y=t.hash&&document.getElementById(tn(t)))?y.scrollIntoView():scrollTo(0,0)}const $=document.activeElement!==T&&document.activeElement!==document.body;!o&&!$&&xr(t,!y),St=!0,fe=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=J()),ee.forEach(w=>w(p.navigation)),e==="popstate"&&Jt(L),F.navigating.set(se.current=null)}async function Ke(e,t,n,o,r){if(e.origin===je&&e.pathname===location.pathname&&!Yt)return await lt({status:o,error:n,url:e,route:t});if(R&&o!==404){console.error("An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)");debugger}return await ce(e,r)}let Z={element:void 0,href:void 0};function Er(){let e,t;D.addEventListener("mousemove",a=>{const s=a.target;clearTimeout(e),e=setTimeout(()=>{r(s,Y.hover)},20)});function n(a){a.defaultPrevented||r(a.composedPath()[0],Y.tap)}D.addEventListener("mousedown",n),D.addEventListener("touchstart",n,{passive:!0});const o=new IntersectionObserver(a=>{for(const s of a)s.isIntersecting&&(ze(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function r(a,s){const c=Dt(a,D),f=c===Z.element&&c?.href===Z.href&&s>=t;if(!c||f)return;const{url:u,external:g,download:d}=He(c,I,S.hash);if(g||d)return;const h=$e(c),p=u&&xe(v.url)===xe(u);if(!(h.reload||p))if(s<=h.preload_data){Z={element:c,href:c.href},t=Y.tap;const m=await Ce(u,!1);if(!m)return;R?At(m).then(_=>{_.type==="loaded"&&_.state.error&&console.warn(`Preloading data for ${m.url.pathname} failed with the following error: ${_.state.error.message}
|
|
12
|
-
If this error is transient, you can ignore it. Otherwise, consider disabling preloading for this route. This route was preloaded due to a data-sveltekit-preload-data attribute. See https://svelte.dev/docs/kit/link-options for more info`)}):At(m)}else s<=h.preload_code&&(Z={element:c,href:c.href},t=s,
|
|
11
|
+
</div>`),globalThis.__sveltekit_1qzl0pf.data){const{q:i={},p:a={},l:s={},f:c={}}=globalThis.__sveltekit_1qzl0pf.data;for(const f in i)i[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in a)a[f]}document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),rt=kn(e),D=document.documentElement,Ge=t,Ye=e.nodes[0],Ae=e.nodes[1],Ye(),Ae(),O=history.state?.[G],L=history.state?.[ne],O||(O=L=Date.now(),history.replaceState({...history.state,[G]:O,[ne]:L},""));const o=F[O];function r(){o&&(history.scrollRestoration="manual",scrollTo(o.x,o.y))}n?(r(),await Pr(Ge,n)):(await te({type:"enter",url:Ue(S.hash?jr(new URL(location.href)):location.href),replace_state:!0}),r()),Lr()}function _r(){Re.length=0,at=!1}function Kt(e){Te.some(t=>t?.snapshot)&&(ie[e]=Te.map(t=>t?.snapshot?.capture()))}function Jt(e){ie[e]?.forEach((t,n)=>{Te[n]?.snapshot?.restore(t)})}function $t(){nt(O),pt(Ut,F),Kt(L),pt(jt,ie)}async function Wt(e,t,n,o){let r,i;t.invalidateAll&&Le(),await te({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:o,accept:()=>{if(t.invalidateAll){at=!0,r=new Set;for(const[a,s]of Et)for(const[c,f]of s)f.resource?.reset(),r.add(be(a,c));i=new Set;for(const[a,s]of Ot)for(const c of s.keys())i.add(be(a,c))}t.invalidate&&t.invalidate.forEach(Rr)}}),t.invalidateAll&&Se().then(Se).then(()=>{for(const[a,s]of Et)for(const[c,{resource:f}]of s)r?.has(be(a,c))&&f.start();for(const[a,s]of Ot)for(const[c,{resource:f}]of s)i?.has(be(a,c))&&f.reconnect()})}async function At(e){if(e.id!==P?.id){Le();const t={};Pe.add(t),P={id:e.id,token:t,promise:Zt({...e,preload:t}).then(n=>(Pe.delete(t),n.type==="loaded"&&n.state.error&&Le(),n)),fork:null}}return P.promise}async function Fe(e){const t=(await Ce(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Xt(e,t,n){const o={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};if(v={...e.state,nav:o},Ft(e.props.page),st=new S.root({target:t,props:{...e.props,stores:z,components:Te},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const r={from:null,to:{...o,scroll:F[O]??J()},willUnload:!1,type:"enter",complete:Promise.resolve()};ee.forEach(i=>i(r))}Jt(L),le=!0}async function Ie({url:e,params:t,branch:n,errors:o,status:r,error:i,route:a,form:s}){let c="never";if(I&&(e.pathname===I||e.pathname===I+"/"))c="always";else for(const p of n)p?.slash!==void 0&&(c=p.slash);e.pathname=cn(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:a},props:{constructors:cr(n).map(p=>p.node.component),page:De(A)}};s!==void 0&&(f.props.form=s);let u={},g=!A,d=0;for(let p=0;p<Math.max(n.length,v.branch.length);p+=1){const m=n[p],_=v.branch[p];m?.data!==_?.data&&(g=!0),m&&(u={...u,...m.data},g&&(f.props[`data_${d}`]=u),d+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||s!==void 0&&s!==A.form||g)&&(f.props.page={error:i,params:t,route:{id:a?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:g?u:A.data}),f}async function it({loader:e,parent:t,url:n,params:o,route:r,server_data_node:i}){let a=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(R&&(ir(c.universal),c.universal&&S.hash)){const f=Object.keys(c.universal).filter(u=>u!=="load");if(f.length>0)throw new Error(`Page options are ignored when \`router.type === 'hash'\` (${r.id} has ${f.filter(u=>u!=="load").map(u=>`'${u}'`).join(", ")})`)}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:a,uses:s}:null,data:a??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function yr(e,t,n){let o=e instanceof Request?e.url:e;const r=new URL(o,n);r.origin===n.origin&&(o=r.href.slice(n.origin.length));const i=le?gn(o,r.href,t):pn(o,t);return{resolved:r,promise:i}}function mr(e,t,n,o,r,i){if(at)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const a of r.search_params)if(o.has(a))return!0;for(const a of r.params)if(i[a]!==v.params[a])return!0;for(const a of r.dependencies)if(Re.some(s=>s(new URL(a))))return!0;return!1}function ct(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function wr(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const o of n){const r=e.searchParams.getAll(o),i=t.searchParams.getAll(o);r.every(a=>i.includes(a))&&i.every(a=>r.includes(a))&&n.delete(o)}return n}function vr({error:e,url:t,route:n,params:o}){return{type:"loaded",state:{error:e,url:t,route:n,params:o,branch:[]},props:{page:De(A),constructors:[]}}}async function Zt({id:e,invalidating:t,url:n,params:o,route:r,preload:i}){if(P?.id===e)return Pe.delete(P.token),P.promise;const{errors:a,layouts:s,leaf:c}=r,f=[...s,c];a.forEach(_=>_?.().catch(V)),f.forEach(_=>_?.[1]().catch(V));const u=v.url?e!==xe(v.url):!1,g=v.route?r.id!==v.route.id:!1,d=wr(v.url,n);let h=!1;const p=f.map(async(_,l)=>{if(!_)return;const b=v.branch[l];return _[1]===b?.loader&&!mr(h,g,u,d,b.universal?.uses,o)?b:(h=!0,it({loader:_[1],url:n,params:o,route:r,parent:async()=>{const T={};for(let y=0;y<l;y+=1)Object.assign(T,(await p[y])?.data);return T},server_data_node:ct(_[0]?{type:"skip"}:null,_[0]?b?.server:void 0)}))});for(const _ of p)_.catch(V);const m=[];for(let _=0;_<f.length;_+=1)if(f[_])try{m.push(await p[_])}catch(l){if(l instanceof Ze)return{type:"redirect",location:l.location};if(i&&Pe.has(i))return vr({error:await K(l,{params:o,url:n,route:{id:r.id}}),url:n,params:o,route:r});let b=tt(l),E;if(l instanceof Xe)E=l.body;else{if(await z.updated.check())return await Ht(),await ce(n);E=await K(l,{params:o,url:n,route:{id:r.id}})}const T=await br(_,m,a);return T?Ie({url:n,params:o,branch:m.slice(0,T.idx).concat(T.node),errors:a,status:b,error:E,route:r}):await Ke(n,{id:r.id},E,b)}else m.push(void 0);return Ie({url:n,params:o,branch:m,errors:a,status:200,error:null,route:r,form:t?void 0:null})}async function br(e,t,n){for(;e--;)if(n[e]){let o=e;for(;!t[o];)o-=1;try{return{idx:o+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function lt({status:e,error:t,url:n,route:o}){const r={};let i=null;try{const a=await it({loader:Ye,url:n,params:r,route:o,parent:()=>Promise.resolve({}),server_data_node:ct(i)}),s={node:await Ae(),loader:Ae,universal:null,server:null,data:null};return Ie({url:n,params:r,branch:[a,s],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof Ze){await Wt(new URL(a.location,location.href),{},0);return}const s=await S.get_error_template(),c=await K(a,{url:n,params:r,route:o}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=s({status:e,message:f}),g=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(g.head),document.head),document.documentElement.replaceChild(document.adoptNode(g.body),document.body),a}}async function kr(e){const t=e.href;if(ke.has(t))return ke.get(t);let n;try{const o=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,a)=>yr(i,a,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();ke.set(t,o),n=await o}catch(o){if(ke.delete(t),R){console.error(o);debugger}return}return n}async function Ce(e,t){if(e&&!Ne(e,I,S.hash)){const n=await kr(e);if(!n)return;const o=Sr(n);for(const r of rt){const i=r.exec(o);if(i)return{id:xe(e),invalidating:t,route:r,params:fn(i),url:e}}}}function Sr(e){return ln(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qt({url:e,type:t,intent:n,delta:o,event:r,scroll:i}){let a=!1;const s=ft(v,n,e,t,i??null);o!==void 0&&(s.navigation.delta=o),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return fe||ot.forEach(f=>f(c)),a?null:s}async function te({type:e,url:t,popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a={},redirect_count:s=0,nav_token:c={},accept:f=V,block:u=V,event:g}){const d=M;M=c;const h=await Ce(t,!1),p=e==="enter"?ft(v,h,t,e):Qt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:g});if(!p){u(),M===c&&(M=d);return}const m=O,_=L;f(),fe=!0,le&&p.navigation.type!=="enter"&&z.navigating.set(se.current=p.navigation);let l=h&&await Zt(h);if(!l)if(Ne(t,I,S.hash))if(R&&S.hash)l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname} (did you forget the hash?)`),{url:t,params:{},route:{id:null}}),404,i);else return await ce(t,i);else l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i);if(t=h?.url||t,M!==c){p.reject(new Error("navigation aborted"));return}if(!l)return;if(l.type==="redirect"){if(s<20){await te({type:e,url:new URL(l.location,t),popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}if(l=await lt({status:500,error:await K(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!l)return}else if(l.props.page.status>=400&&await z.updated.check())return await Ht(),await ce(t,i);if(_r(),nt(m),Kt(_),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),a=n?n.state:a,!n){const w=i?0:1,x={[G]:O+=w,[ne]:L+=w,[Qe]:a};(i?history.replaceState:history.pushState).call(history,x,"",t),i||pr(O,L)}const b=h&&P?.id===h.id?P.fork:null;P?.fork&&!b?Le():(P=null,Z={element:void 0,href:void 0}),l.props.page.state=a;let E;if(le){const w=(await Promise.all(Array.from(gr,B=>B(p.navigation)))).filter(B=>typeof B=="function");if(w.length>0){let B=function(){w.forEach(re=>{ee.delete(re)})};w.push(B),w.forEach(re=>{ee.add(re)})}const x=p.navigation.to;v={...l.state,nav:{params:x.params,route:x.route,url:x.url}},l.props.page&&(l.props.page.url=t),!o&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const W=b&&await b;W?E=W.commit():(oe=null,st.$set(l.props),oe&&Object.assign(l.props.page,oe),Ft(l.props.page),E=an?.()),Gt=!0}else await Xt(l,Ge,!1);const{activeElement:T}=document;if(await E,await Se(),await Se(),M!==c){p.reject(new Error("navigation aborted"));return}l.props.page&&oe&&Object.assign(l.props.page,oe);let y=null;if(St){const w=n?n.scroll:r?J():null;w?scrollTo(w.x,w.y):(y=t.hash&&document.getElementById(tn(t)))?y.scrollIntoView():scrollTo(0,0)}const $=document.activeElement!==T&&document.activeElement!==document.body;!o&&!$&&xr(t,!y),St=!0,fe=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=J()),ee.forEach(w=>w(p.navigation)),e==="popstate"&&Jt(L),z.navigating.set(se.current=null)}async function Ke(e,t,n,o,r){if(e.origin===je&&e.pathname===location.pathname&&!Yt)return await lt({status:o,error:n,url:e,route:t});if(R&&o!==404){console.error("An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)");debugger}return await ce(e,r)}let Z={element:void 0,href:void 0};function Er(){let e,t;D.addEventListener("mousemove",a=>{const s=a.target;clearTimeout(e),e=setTimeout(()=>{r(s,Y.hover)},20)});function n(a){a.defaultPrevented||r(a.composedPath()[0],Y.tap)}D.addEventListener("mousedown",n),D.addEventListener("touchstart",n,{passive:!0});const o=new IntersectionObserver(a=>{for(const s of a)s.isIntersecting&&(Fe(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function r(a,s){const c=Dt(a,D),f=c===Z.element&&c?.href===Z.href&&s>=t;if(!c||f)return;const{url:u,external:g,download:d}=He(c,I,S.hash);if(g||d)return;const h=$e(c),p=u&&xe(v.url)===xe(u);if(!(h.reload||p))if(s<=h.preload_data){Z={element:c,href:c.href},t=Y.tap;const m=await Ce(u,!1);if(!m)return;R?At(m).then(_=>{_.type==="loaded"&&_.state.error&&console.warn(`Preloading data for ${m.url.pathname} failed with the following error: ${_.state.error.message}
|
|
12
|
+
If this error is transient, you can ignore it. Otherwise, consider disabling preloading for this route. This route was preloaded due to a data-sveltekit-preload-data attribute. See https://svelte.dev/docs/kit/link-options for more info`)}):At(m)}else s<=h.preload_code&&(Z={element:c,href:c.href},t=s,Fe(u))}function i(){o.disconnect();for(const a of D.querySelectorAll("a")){const{url:s,external:c,download:f}=He(a,I,S.hash);if(c||f)continue;const u=$e(a);u.reload||(u.preload_code===Y.viewport&&o.observe(a),u.preload_code===Y.eager&&Fe(s))}}ee.add(i),i()}function K(e,t){if(e instanceof Xe)return e.body;R&&console.warn("The next HMR update will cause the page to reload");const n=tt(e),o=lr(e);return S.hooks.handleError({error:e,event:t,status:n,message:o})??{message:o}}function en(e,t){ur(()=>(e.add(t),()=>{e.delete(t)}))}function Or(e){en(ee,e)}function $r(e){en(ot,e)}function Ar(e,t={}){return e=new URL(Ue(e)),e.origin!==je?Promise.reject(new Error(R?`Cannot use \`goto\` with an external URL. Use \`window.location = "${e}"\` instead`:"goto: invalid URL")):Wt(e,t,0)}function Rr(e){if(typeof e=="function")Re.push(e);else{const{href:t}=new URL(e,location.href);Re.push(n=>n.href===t)}}function Tr(e,t){if(R){if(!le)throw new Error("Cannot call replaceState(...) before router is initialized");try{tr(t)}catch(o){throw new Error(`Could not serialize state${o.path}`,{cause:o})}}const n={[G]:O,[ne]:L,[Nt]:A.url.href,[Qe]:t};history.replaceState(n,"",Ue(e)),A.state=t,st.$set({page:dr(()=>De(A))})}function Lr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if($t(),!fe){const o=ft(v,void 0,null,"leave"),r={...o.navigation,cancel:()=>{n=!0,o.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&$t()}),navigator.connection?.saveData||Er(),D.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Dt(t.composedPath()[0],D);if(!n)return;const{url:o,external:r,target:i,download:a}=He(n,I,S.hash);if(!o)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=$e(n);if(!(n instanceof SVGAElement)&&o.protocol!==location.protocol&&!(o.protocol==="https:"||o.protocol==="http:")||a)return;const[f,u]=(S.hash?o.hash.replace(/^#/,""):o.href).split("#"),g=f===Me(location);if(r||s.reload&&(!g||!u)){Qt({url:o,type:"link",event:t})?fe=!0:t.preventDefault();return}if(u!==void 0&&g){const[,d]=v.url.href.split("#");if(d===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(ae=!0,nt(O),e(o),!s.replace_state)return;ae=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await te({type:"link",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href,event:t})}),D.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),o=t.submitter;if((o?.formTarget||n.target)==="_blank"||(o?.formMethod||n.method)!=="get")return;const a=new URL(o?.hasAttribute("formaction")&&o?.formAction||n.action);if(Ne(a,I,!1))return;const s=t.target,c=$e(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,o);a.search=new URLSearchParams(f).toString(),te({type:"form",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Je){if(t.state?.[G]){const n=t.state[G];if(M={},n===O)return;const o=F[n],r=t.state[Qe]??{},i=new URL(t.state[Nt]??location.href),a=t.state[ne],s=v.url?Me(location)===Me(v.url):!1;if(a===L&&(Gt||s)){r!==A.state&&(A.state=r),e(i),F[O]=J(),o&&scrollTo(o.x,o.y),O=n;return}const f=n-O;await te({type:"popstate",url:i,popped:{state:r,scroll:o,delta:f},accept:()=>{O=n,L=a},block:()=>{history.go(-f)},nav_token:M,event:t})}else if(!ae){const n=new URL(location.href);e(n),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{ae&&(ae=!1,history.replaceState({...history.state,[G]:++O,[ne]:L},"",location.href))});for(const t of document.querySelectorAll("link"))hr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&z.navigating.set(se.current=null)});function e(t){v.url=A.url=t,z.page.set(De(A)),z.page.notify()}}async function Pr(e,{status:t=200,error:n,node_ids:o,params:r,route:i,server_route:a,data:s,form:c}){Yt=!0;const f=new URL(location.href);let u;({params:r={},route:i={id:null}}=await Ce(f,!1)||{}),u=rt.find(({id:h})=>h===i.id);let g,d=!0;try{const h=o.map(async(m,_)=>{const l=s[_];return l?.uses&&(l.uses=Ir(l.uses)),it({loader:S.nodes[m],url:f,params:r,route:i,parent:async()=>{const b={};for(let E=0;E<_;E+=1)Object.assign(b,(await h[E]).data);return b},server_data_node:ct(l)})}),p=await Promise.all(h);if(u){const m=u.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}g=await Ie({url:f,params:r,branch:p,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(h){if(h instanceof Ze)return await ce(new URL(h.location,location.href));g=await lt({status:tt(h),error:await K(h,{url:f,params:r,route:i}),url:f,route:i}),e.textContent="",d=!1}g&&(g.props.page&&(g.props.page.state={}),await Xt(g,e,d))}function Ir(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Je=!1;function xr(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const o=tn(e);if(o&&document.getElementById(o)){const{x:i,y:a}=J();setTimeout(()=>{const s=history.state;Je=!0,location.replace(new URL(`#${o}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,a),Je=!1})}else{const i=document.body,a=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),a!==null?i.setAttribute("tabindex",a):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let a=0;a<r.rangeCount;a+=1)i.push(r.getRangeAt(a));setTimeout(()=>{if(r.rangeCount===i.length){for(let a=0;a<r.rangeCount;a+=1){const s=i[a],c=r.getRangeAt(a);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function ft(e,t,n,o,r=null){let i,a;const s=new Promise((f,u)=>{i=f,a=u});return s.catch(V),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:J()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:r},willUnload:!t,type:o,complete:s},fulfil:i,reject:a}}function De(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function jr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function tn(e){let t;if(S.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}if(R){const e=console.warn;console.warn=function(...n){n.length===1&&/<(Layout|Page|Error)(_[\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(n[0])||e(...n)}}const Vr=Object.freeze(Object.defineProperty({__proto__:null,afterNavigate:Or,beforeNavigate:$r,goto:Ar,replaceState:Tr},Symbol.toStringTag,{value:"Module"}));export{Or as a,$r as b,Pt as c,z as d,Ar as g,Cr as l,Vr as n,A as p,Tr as r,Mr as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{t as Yt,bo as J,bw as te,bs as M,bq as ee,b as re,bm as n,_ as se}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DA5opfEp.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/EK6zOAHM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as Yt,bo as J,bw as te,bs as M,bq as ee,b as re,bm as n,_ as se}from"./C0QTy0Sy.js";import{bo as ae,bs as ne,ca as C,bH as N,c5 as yt,aD as F,bj as ie,a5 as O,bS as p,bA as D,b_ as x,W as f,bn as oe,cd as lt,bV as kt,c9 as Z,aA as G,bl as R,bO as h,ay as wt,aB as y}from"./3SdAC2_C.js";import{i as I}from"./bhKPSdq4.js";import{f as St,g as le,s as ce}from"./7UPrdiE9.js";import{b as ue}from"./Dn334wJv.js";import{b as de}from"./D3yXvqwY.js";import{Jv as m,D1 as pe,CT as me,CS as fe,Jp as _e,CE as ve,iz as be,iZ as ge}from"./tr-2J8Mf.js";import{d as xe,T as he,D as ye,L as ke,o as we}from"./6-uYidyP.js";import{F as ct,d3 as Se,cb as $e,c$ as Ae}from"./U9jJmfYa.js";import{f as $t}from"./FzlZUztb.js";import{m as rt}from"./BmTMWrby.js";import"./DCRuihKm.js";import"./CrD0jtXE.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import{r as Ce}from"./ozVAo4aX.js";import{selectScriptById as ut,selectScriptRuntime as Fe,selectScriptOutput as At,selectScriptRetainedOutput as Oe,selectCanDeleteScript as Ct}from"./BAOaoX22.js";import{g as De}from"./L_tYoUCb.js";import{c4 as Re,d$ as Ie,dC as Ft}from"./BaujsV9k.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import"./lJeex2Gh.js";import{e as Le}from"./f24VwgrA.js";import{v as Ot}from"./p9X2tUBM.js";var Dt=y("<!> ",1),Te=y('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Ee=y('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),qe=y('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Be=y('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Pe=y('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),ze=y('<code class="text-muted-foreground font-mono text-xs"> </code>'),Me=y('<span class="sr-only"> </span>'),We=y('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!> <!></div></div>'),je=y('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Ue(_,c){const j=ae();if(new.target)return Yt({component:Ue,..._});ne(c,!0);const L=()=>M(zt,"$outputAuthority",T),u=()=>M(Tt,"$runtime$",T),v=()=>M(Et,"$output$",T),S=()=>M(Pt,"$codeFontFamilyCSS",T),W=()=>M(qt,"$retainedOutput$",T),Rt=()=>M(Bt,"$hidesAgentLifecycleActions$",T),dt=()=>M(Lt,"$script$",T),[T,It]=ee();let $=J(c,"scriptId",7),b=J(c,"workspaceId",7),st=J(c,"class",7,""),at=J(c,"runDisabled",7,!1),E=J(c,"runDisabledReason",7,null);const pt=Z(()=>at()||E()!==null),q=lt(""),U=lt(""),mt=lt("");let nt=kt(!1);C(()=>q.set(b())),C(()=>U.set($()));let B,i=null,H=null,Q=null,V=null,P=null,X=null;const Lt=ut(q,U),Tt=Fe(q,U),Et=At(q,U),qt=Oe(q,U,mt),Bt=Re(q),Pt=De(),zt=Ie(q),ft=crypto.randomUUID();C(()=>{const t=b();return $(),()=>{t&&m.dispatch(pe(t,ft))}}),C(()=>{const t=b(),e=$(),a=L(),s=u();if(!a||!t||!e)return;s.status,s.startedAt;const l=crypto.randomUUID();return mt.set(l),N(nt,yt(()=>v().chunks.length===0),!0),m.dispatch(me(t,e,l)),()=>m.dispatch(fe(t,e,l))});let Y=kt(0);const Mt=Z(()=>u().status==="exited"&&u().exitCode!=null&&u().exitCode!==0&&u().exitCode<128);function Wt(){if(!B||i)return;V=new he(B);const t=V.getCurrentTheme();i=new ye({allowProposedApi:!0,fontFamily:S(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),i.attachCustomKeyEventHandler(a=>{const s=a.metaKey||a.ctrlKey;return!(s&&a.key==="`"||s&&a.key==="j"||s&&a.key==="k")}),H=new we,i.loadAddon(H);const e=new ke((a,s)=>{try{const l=new URL(s);l.hostname==="localhost"||l.hostname==="127.0.0.1"?Ce(s).then(g=>{se(async()=>{const{getPanelLayoutManager:k}=await import("./DA5opfEp.js").then(A=>A.p);return{getPanelLayoutManager:k}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:k})=>{k(b()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(s,"_blank")}catch{window.open(s,"_blank")}});i.loadAddon(e),i.open(B),V.applyTheme(i),X=requestAnimationFrame(()=>{X=null,H?.fit()}),Q=new ResizeObserver(()=>{H?.fit()}),Q.observe(B),jt()}function jt(){if(!i)return;const t=At.select(m.state,b(),$());t.chunks.length>0&&i.write(t.chunks.map(e=>e.text).join("")),N(Y,t.dropped+t.chunks.length)}function _t(){P!==null&&(cancelAnimationFrame(P),P=null),X!==null&&(cancelAnimationFrame(X),X=null),Q?.disconnect(),Q=null,V?.dispose(),V=null;const t=i;i=null,H=null,N(Y,0),t&&xe(t)}C(()=>{const t=v(),e=yt(()=>F(Y)),a=t.dropped+t.chunks.length;if(!i||a<=e)return;const s=Math.max(e-t.dropped,0);i.write(t.chunks.slice(s).map(l=>l.text).join("")),N(Y,a)}),C(()=>{const t=S();i&&i.options.fontFamily!==t&&(i.options.fontFamily=t)});function Ut(){F(pt)||m.dispatch(_e(b(),$()))}function Ht(){if(!b()){rt.error(n.terminal_scriptOutput_noWorkspace_error());return}m.dispatch(be(b(),$(),W()?.text,ft))}C(()=>{u().status==="idle"&&v().chunks.length===0&&_t()}),C(()=>{!(u().status==="idle"&&v().chunks.length===0)&&B&&!i&&(P!==null&&cancelAnimationFrame(P),P=requestAnimationFrame(()=>{P=null,Wt()}))}),ie(()=>{_t()});var Vt={get scriptId(){return $()},set scriptId(t){$(t),G()},get workspaceId(){return b()},set workspaceId(t){b(t),G()},get class(){return st()},set class(t=""){st(t),G()},get runDisabled(){return at()},set runDisabled(t=!1){at(t),G()},get runDisabledReason(){return E()},set runDisabledReason(t=null){E(t),G()},$set:te,$on:(t,e)=>re(c,t,e)},tt=je(),vt=O(tt);{var Xt=t=>{var e=Te(),a=O(e),s=O(a),l=O(s);ct(l,{get icon(){return Se},size:"xs"}),D(s);var g=p(s,2),k=R(g,!0);D(a);var A=p(a,2);{var d=r=>{$t(r,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Ht,children:(o,w)=>{var z=Dt(),K=wt(z);ct(K,{get icon(){return Ae},size:"sm",class:"mr-1.5"});var et=p(K);x(ot=>h(et,` ${ot??""}`),[()=>n.terminal_scriptOutput_askAiToFix_label()]),f(o,z)},$$slots:{default:!0}})};I(A,r=>{Rt()||r(d)})}D(e),x(r=>h(k,r),[()=>n.terminal_scriptOutput_buildFailed_label({exitCode:u().exitCode??0})]),f(t,e)};I(vt,t=>{F(Mt)&&t(Xt)})}var bt=p(vt,2);{var Kt=t=>{var e=Be(),a=O(e),s=R(a,!0),l=p(a,2),g=R(l,!0),k=p(l,2);{var A=r=>{var o=Ee();let w;var z=R(o,!0);x(()=>{w=le(o,"",w,{"font-family":S()}),h(z,W().text)}),f(r,o)},d=r=>{var o=qe(),w=R(o,!0);x(z=>h(w,z),[()=>W().status==="loading"?n.terminal_scriptOutput_retainedLoading_label():n.terminal_scriptOutput_retainedUnavailable_label()]),f(r,o)};I(k,r=>{W().status==="available"?r(A):r(d,-1)})}D(e),x((r,o)=>{h(s,r),h(g,o)},[()=>n.terminal_scriptOutput_retained_label(),()=>n.terminal_scriptOutput_retained_description()]),de("open","toggle",e,r=>N(nt,r),()=>F(nt)),f(t,e)};I(bt,t=>{W()&&t(Kt)})}var gt=p(bt,2);{var Jt=t=>{var e=Pe(),a=R(e,!0);x(s=>h(a,s),[()=>n.terminal_scriptOutput_live_label()]),f(t,e)};I(gt,t=>{v().chunks.length>0&&W()&&t(Jt)})}var xt=p(gt,2);{var Nt=t=>{var e=We(),a=O(e),s=p(O(a),2);{var l=d=>{var r=ze(),o=R(r,!0);x(w=>h(o,w),[()=>ve(dt())]),f(d,r)};I(s,d=>{dt()&&d(l)})}var g=p(s,2);{let d=Z(()=>E()??void 0),r=Z(()=>n.terminal_scriptOutput_run_label()),o=Z(()=>E()?j:void 0);$t(g,{variant:"ghost",size:"xs",get disabled(){return F(pt)},get tooltip(){return F(d)},get"aria-label"(){return F(r)},get"aria-describedby"(){return F(o)},onclick:Ut,class:"text-muted-foreground hover:text-foreground",children:(w,z)=>{var K=Dt(),et=wt(K);ct(et,{get icon(){return $e},class:"h-3 w-3 mr-1"});var ot=p(et);x(Qt=>h(ot,` ${Qt??""}`),[()=>n.terminal_scriptOutput_run_label()]),f(w,K)},$$slots:{default:!0}})}var k=p(g,2);{var A=d=>{var r=Me(),o=R(r,!0);x(()=>{ce(r,"id",j),h(o,E())}),f(d,r)};I(k,d=>{E()&&d(A)})}D(a),D(e),f(t,e)};I(xt,t=>{u().status==="idle"&&v().chunks.length===0&&t(Nt)})}var it=p(xt,2);let ht;var Zt=O(it);ue(Zt,t=>B=t,()=>B),D(it),D(tt),x(()=>{St(tt,1,`script-output-viewer ${st()??""}`,"svelte-115p4sl"),ht=St(it,1,"flex-1 relative overflow-hidden",null,ht,{hidden:u().status==="idle"&&v().chunks.length===0})}),f(_,tt);var Gt=oe(Vt);return It(),Gt}async function fr(_,c,j){const L=ut.select(m.state,_,c);if(!L||!j()||!Ct.select(m.state,_,c))return;const u=Ot(L.runtime?.status),v=Ft.select(m.state,_);if(!v){rt.error(n.workspace_client_accessChanged_error());return}if(!await Le({title:n.scripts_delete_title({name:L.name}),description:u?n.scripts_delete_running_description():n.scripts_delete_description(),confirmLabel:n.scripts_delete_label(),destructive:!0}))return;if(v!==Ft.select(m.state,_)){rt.error(n.workspace_client_accessChanged_error());return}const S=ut.select(m.state,_,c);if(!j()||!S||S.createdAt!==L.createdAt||S.name!==L.name||!u&&Ot(S.runtime?.status)||!Ct.select(m.state,_,c)){rt.error(n.scripts_delete_changed_error());return}m.dispatch(ge(_,c,n.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Ue as S,fr as c};
|