@intent-hq/web 2.361.1 → 2.361.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/-5BGDZDk.js +32 -0
- package/web/app/immutable/chunks/{Ccaz1_yi.js → -HqAs4SX.js} +1 -1
- package/web/app/immutable/chunks/{CfrI0flQ.js → -kGF-zOh.js} +1 -1
- package/web/app/immutable/chunks/{CEX--Xsn.js → 0PJnSjrq.js} +2 -2
- package/web/app/immutable/chunks/{B9t82so5.js → 2wJjyVNk.js} +2 -2
- package/web/app/immutable/chunks/{DW6bFMyN.js → 6XxQdgFC.js} +1 -1
- package/web/app/immutable/chunks/{IF38I4hJ.js → 9b_Os5fY.js} +1 -1
- package/web/app/immutable/chunks/{BIbN5V8o.js → 9n20zLe0.js} +1 -1
- package/web/app/immutable/chunks/{DlZbnYcc.js → B0Zr6q55.js} +1 -1
- package/web/app/immutable/chunks/{j9e5aB7O.js → B2IYt4Eb.js} +1 -1
- package/web/app/immutable/chunks/{ChdfugfS.js → B4M3z6rE.js} +1 -1
- package/web/app/immutable/chunks/{BzTKzuhn.js → B5oNMyyY.js} +1 -1
- package/web/app/immutable/chunks/{DOjUJ8i8.js → B61qyrBq.js} +1 -1
- package/web/app/immutable/chunks/{QNDivBsM.js → B8p2cYc_.js} +1 -1
- package/web/app/immutable/chunks/{CigwWVbR.js → B9WaAaiK.js} +1 -1
- package/web/app/immutable/chunks/{BTYFFiiL.js → BA6gfA7a.js} +1 -1
- package/web/app/immutable/chunks/{BTli9eoV.js → BA8yVm-p.js} +1 -1
- package/web/app/immutable/chunks/{D478BUHq.js → BC8in_Uv.js} +1 -1
- package/web/app/immutable/chunks/{CM4RKAei.js → BCfq8Fz_.js} +1 -1
- package/web/app/immutable/chunks/{BSEFatJl.js → BD7zp6rB.js} +1 -1
- package/web/app/immutable/chunks/{WJw0rC-g.js → BDJ7r_mr.js} +1 -1
- package/web/app/immutable/chunks/{D39Rrj4Y.js → BDk-prCr.js} +1 -1
- package/web/app/immutable/chunks/{wuYAM5lX.js → BFfD2hCV.js} +1 -1
- package/web/app/immutable/chunks/{Dg8d6CfG.js → BN7DTISb.js} +1 -1
- package/web/app/immutable/chunks/{CVFwlr2Z.js → BPG9IRUj.js} +1 -1
- package/web/app/immutable/chunks/{D_duQWml.js → BPsUIxHc.js} +1 -1
- package/web/app/immutable/chunks/{DhFCUcs_.js → BQQo4uEb.js} +1 -1
- package/web/app/immutable/chunks/{DxNx74qV.js → BRMpz8OI.js} +1 -1
- package/web/app/immutable/chunks/{C9vs7bl5.js → BWUH3HmG.js} +1 -1
- package/web/app/immutable/chunks/{CGyzoULR.js → BX7U0hos.js} +2 -2
- package/web/app/immutable/chunks/{8C8OyL-H.js → BXV9Yk-8.js} +1 -1
- package/web/app/immutable/chunks/{BAyBEEFm.js → BZgSCYyO.js} +1 -1
- package/web/app/immutable/chunks/{CIDE3x9D.js → BZp1yALL.js} +1 -1
- package/web/app/immutable/chunks/{BpOARSV2.js → B_VZNBPj.js} +2 -2
- package/web/app/immutable/chunks/BaGrEyO7.js +1 -0
- package/web/app/immutable/chunks/{LbgKUbsl.js → BbUJvzh9.js} +3 -3
- package/web/app/immutable/chunks/BbV7MtxC.js +1 -0
- package/web/app/immutable/chunks/BcLoDKLg.js +2 -0
- package/web/app/immutable/chunks/{C1d-f55y.js → BdJDtk-i.js} +1 -1
- package/web/app/immutable/chunks/BeF36lmB.js +3 -0
- package/web/app/immutable/chunks/BjEuTkmJ.js +2 -0
- package/web/app/immutable/chunks/{BTl8ihCX.js → BlL4snZb.js} +1 -1
- package/web/app/immutable/chunks/{CuGN_Lgy.js → Bm01ytIS.js} +1 -1
- package/web/app/immutable/chunks/{BqUUWX71.js → BmYxgQYl.js} +1 -1
- package/web/app/immutable/chunks/{DnxaSjad.js → Br2374tC.js} +1 -1
- package/web/app/immutable/chunks/{B1ScYY03.js → BrNYPcY3.js} +4 -4
- package/web/app/immutable/chunks/{P-joxIX5.js → BuqbrxB1.js} +1 -1
- package/web/app/immutable/chunks/{B_tHbtUI.js → BwKqt4sw.js} +1 -1
- package/web/app/immutable/chunks/{Bmmvebpd.js → Byrb39B5.js} +1 -1
- package/web/app/immutable/chunks/{Oa6WXH6c.js → C-pqKaCQ.js} +4 -4
- package/web/app/immutable/chunks/{DfPFNZRA.js → C0Be7Tc_.js} +1 -1
- package/web/app/immutable/chunks/{BM1o8cfq.js → C4WAGAfI.js} +1 -1
- package/web/app/immutable/chunks/{Bx9jZIih.js → C6jHCE8G.js} +4 -4
- package/web/app/immutable/chunks/{CY0JcuWq.js → CAi2riH4.js} +1 -1
- package/web/app/immutable/chunks/{LOqiMc_U.js → CHFWhULQ.js} +1 -1
- package/web/app/immutable/chunks/{DSEn8hom.js → CI9dMB_b.js} +2 -2
- package/web/app/immutable/chunks/{q3oLC86w.js → CIrv4K8l.js} +1 -1
- package/web/app/immutable/chunks/{DaHbZjgp.js → CK3bnTgZ.js} +1 -1
- package/web/app/immutable/chunks/{DzGon3k8.js → CNDY58le.js} +6 -6
- package/web/app/immutable/chunks/{BShQ2LRb.js → CNIxi0ch.js} +1 -1
- package/web/app/immutable/chunks/{R1d5Y9eD.js → CP5zM-2z.js} +1 -1
- package/web/app/immutable/chunks/CPk-Lh5Y.js +1 -0
- package/web/app/immutable/chunks/{DU2T1Vdb.js → CPzeiVDF.js} +1 -1
- package/web/app/immutable/chunks/{BCReWepB.js → CRxUemhR.js} +1 -1
- package/web/app/immutable/chunks/{NAsYJxQg.js → CRynRlXQ.js} +1 -1
- package/web/app/immutable/chunks/{p1enVnf-.js → CSWdbNcY.js} +3 -3
- package/web/app/immutable/chunks/{BG8JSmc7.js → CTU9yjO5.js} +1 -1
- package/web/app/immutable/chunks/{dxPehZVa.js → CWVUBnHm.js} +2 -2
- package/web/app/immutable/chunks/CX5tClKW.js +4 -0
- package/web/app/immutable/chunks/{DtIte6Mn.js → CY8ea6Mz.js} +47 -47
- package/web/app/immutable/chunks/{DxOUk2oJ.js → C_5bSDGn.js} +3 -3
- package/web/app/immutable/chunks/{CWv2hgO9.js → C_gwhAv1.js} +1 -1
- package/web/app/immutable/chunks/{CvPVdUUZ.js → CaOJIXi2.js} +1 -1
- package/web/app/immutable/chunks/{DHQj_UCz.js → CaculjlW.js} +1 -1
- package/web/app/immutable/chunks/{DUCIVWu4.js → CbLPH1Om.js} +5 -5
- package/web/app/immutable/chunks/{Dg9xZYld.js → CcTYYBo3.js} +1 -1
- package/web/app/immutable/chunks/{Cnly_zgc.js → CiTbcBZ_.js} +1 -1
- package/web/app/immutable/chunks/{CD6wiERl.js → Ck96vbIn.js} +2 -2
- package/web/app/immutable/chunks/{CU9Jo2EB.js → CkoKtsiL.js} +1 -1
- package/web/app/immutable/chunks/{Wz08guGa.js → Cl9ySU-o.js} +1 -1
- package/web/app/immutable/chunks/{DPfWnZYT.js → ClV-2Tgv.js} +1 -1
- package/web/app/immutable/chunks/{BXId-8a9.js → Clj6cYni.js} +1 -1
- package/web/app/immutable/chunks/{LWmvlIUb.js → CniyFe5S.js} +1 -1
- package/web/app/immutable/chunks/{DgcVHfLT.js → CplYX6wM.js} +1 -1
- package/web/app/immutable/chunks/{Mq-KWmnJ.js → CrU71cWX.js} +1 -1
- package/web/app/immutable/chunks/CtJsKX7p.js +3 -0
- package/web/app/immutable/chunks/{DwHEsGP4.js → CvCk2zex.js} +1 -1
- package/web/app/immutable/chunks/{i9Ai-esv.js → Cy8IOKwI.js} +1 -1
- package/web/app/immutable/chunks/{CcZqxMtd.js → Cyj5BnLo.js} +1 -1
- package/web/app/immutable/chunks/{CuHcMIuh.js → D-xbpOd2.js} +1 -1
- package/web/app/immutable/chunks/{DP_4YjFn.js → D1Vat_ZV.js} +1 -1
- package/web/app/immutable/chunks/{Dr8wZpId.js → D1Wd78Sv.js} +1 -1
- package/web/app/immutable/chunks/{DMHNxEyN.js → D3w04cnk.js} +1 -1
- package/web/app/immutable/chunks/{DKAPPU9s.js → D4aqkbtK.js} +4 -4
- package/web/app/immutable/chunks/{HtczSd2T.js → D6DFaBwR.js} +1 -1
- package/web/app/immutable/chunks/{BpL3mTkL.js → D6YJZGmY.js} +1 -1
- package/web/app/immutable/chunks/{DL8IL3dP.js → D8uhGa69.js} +1 -1
- package/web/app/immutable/chunks/{PRiKArA2.js → D9NfptXn.js} +2 -2
- package/web/app/immutable/chunks/{i-66Uv-K.js → DDJAluQE.js} +8 -8
- package/web/app/immutable/chunks/{BJ3gWX43.js → DEfsd-IM.js} +2 -2
- package/web/app/immutable/chunks/{CzEsFefN.js → DEiYC7jA.js} +1 -1
- package/web/app/immutable/chunks/{_iJcPN5_.js → DFF9Hi9i.js} +3 -3
- package/web/app/immutable/chunks/{CwzEnqS-.js → DFNcX1C0.js} +1 -1
- package/web/app/immutable/chunks/{HzX2dyQQ.js → DFYGtkP8.js} +1 -1
- package/web/app/immutable/chunks/{BdcgINI4.js → DLtObTR3.js} +1 -1
- package/web/app/immutable/chunks/{CGa_N4XN.js → DN_KP1eV.js} +1 -1
- package/web/app/immutable/chunks/{DDJJ0r24.js → DOT4zZfJ.js} +1 -1
- package/web/app/immutable/chunks/{D6d4xhu_.js → DPb0TtQV.js} +1 -1
- package/web/app/immutable/chunks/{CDfNySzn.js → DPn3lPe4.js} +6 -6
- package/web/app/immutable/chunks/{D3110at5.js → DVuhBCLV.js} +1 -1
- package/web/app/immutable/chunks/{fUWZZKuh.js → DW97_Hl4.js} +3 -3
- package/web/app/immutable/chunks/{iDIfJ3iV.js → DWAdterl.js} +1 -1
- package/web/app/immutable/chunks/{Bh3GosDM.js → DXQV6z-q.js} +1 -1
- package/web/app/immutable/chunks/{BffM0X9l.js → DXZSO_Pq.js} +1 -1
- package/web/app/immutable/chunks/{CD3p1vYG.js → DYQPit--.js} +1 -1
- package/web/app/immutable/chunks/{DXXjnBc_.js → DbaAc_-Q.js} +1 -1
- package/web/app/immutable/chunks/{BCKdYbDN.js → DjOZegwv.js} +2 -2
- package/web/app/immutable/chunks/{BrYKR-SG.js → DjVOU0sF.js} +2 -2
- package/web/app/immutable/chunks/{DB-v9jra.js → DjXnrfed.js} +1 -1
- package/web/app/immutable/chunks/{CTRz9TAp.js → DjYh06U7.js} +1 -1
- package/web/app/immutable/chunks/{Dd5fSdFI.js → DlrcSqxf.js} +1 -1
- package/web/app/immutable/chunks/{C0w-ozGP.js → Dm-oOl0S.js} +2 -2
- package/web/app/immutable/chunks/{CbvpJoHZ.js → DmVQU-Au.js} +1 -1
- package/web/app/immutable/chunks/{sLpI8Vr2.js → DuAq2d-z.js} +1 -1
- package/web/app/immutable/chunks/{DPVE_K_W.js → DvFk8gJm.js} +1 -1
- package/web/app/immutable/chunks/{ye2FbJ5D.js → F-reQTNB.js} +2 -2
- package/web/app/immutable/chunks/{BQKRBk9B.js → KEUh5hD5.js} +1 -1
- package/web/app/immutable/chunks/{BAL5XTLB.js → KGxZpRD9.js} +1 -1
- package/web/app/immutable/chunks/R437Q8zA.js +1 -0
- package/web/app/immutable/chunks/{BTpJekrR.js → RgHRltXX.js} +1 -1
- package/web/app/immutable/chunks/{jbEf1eyu.js → SLOyQ3jf.js} +1 -1
- package/web/app/immutable/chunks/{g5Oev8-0.js → U3T1b0A0.js} +6 -6
- package/web/app/immutable/chunks/{CubYUWh2.js → U_l2ralE.js} +6 -6
- package/web/app/immutable/chunks/{BrQ0wqQy.js → XQIQgSrx.js} +1 -1
- package/web/app/immutable/chunks/{CK1KGIDF.js → ZRRp1hhY.js} +2 -2
- package/web/app/immutable/chunks/{Cn2kUD4R.js → a3nqHBzJ.js} +1 -1
- package/web/app/immutable/chunks/{DjcKhQp4.js → bPNHL4zz.js} +1 -1
- package/web/app/immutable/chunks/{C7Y9ew7Z.js → bXhYFuj1.js} +1 -1
- package/web/app/immutable/chunks/{DYUOfSUt.js → bbt-Xoef.js} +7 -7
- package/web/app/immutable/chunks/{DGzlSz-8.js → bwHjDwdJ.js} +1 -1
- package/web/app/immutable/chunks/{ZWDSGAzi.js → cGac-dAI.js} +1 -1
- package/web/app/immutable/chunks/{BVV3fM7W.js → eq9tvf9b.js} +1 -1
- package/web/app/immutable/chunks/{9JxkPVF4.js → gddqvxSN.js} +1 -1
- package/web/app/immutable/chunks/{CNrMRWtA.js → iJ9AQT8V.js} +2 -2
- package/web/app/immutable/chunks/{CtoSWfC3.js → oaLXPqeM.js} +1 -1
- package/web/app/immutable/chunks/{BSQOiuf7.js → rTvMsiiT.js} +1 -1
- package/web/app/immutable/chunks/{CkuFMgpI.js → sr1p2voA.js} +1 -1
- package/web/app/immutable/chunks/{C_RGTtXj.js → t63qkPWO.js} +3 -3
- package/web/app/immutable/chunks/{BYx2Y144.js → tQrId4UU.js} +1 -1
- package/web/app/immutable/chunks/xCRj0TCH.js +176 -0
- package/web/app/immutable/chunks/{T_1hfFnC.js → xUNvQVfC.js} +2 -2
- package/web/app/immutable/chunks/y2YthUTc.js +1 -0
- package/web/app/immutable/chunks/{Dxv3G1Mb.js → yetPhaeQ.js} +1 -1
- package/web/app/immutable/entry/{app.0rhGzEA-.js → app.DAdpRY1S.js} +2 -2
- package/web/app/immutable/entry/start.C3GynpgH.js +1 -0
- package/web/app/immutable/nodes/{0.7iTMX8MP.js → 0.DQlRpqsp.js} +1 -1
- package/web/app/immutable/nodes/{1.BwagR4s9.js → 1.C5UPpIV8.js} +1 -1
- package/web/app/immutable/nodes/{10.DuZeAxuV.js → 10.q4ZZkPo0.js} +16 -16
- package/web/app/immutable/nodes/{11.D7qyNhVk.js → 11.Bzf2tPWN.js} +4 -4
- package/web/app/immutable/nodes/{15.De8ZpDZ1.js → 15.DLDKAp8B.js} +1 -1
- package/web/app/immutable/nodes/{19.Df09vK0B.js → 19.BYPJywV2.js} +2 -2
- package/web/app/immutable/nodes/{2.Dlt4LRYB.js → 2.ByiO--8z.js} +12 -12
- package/web/app/immutable/nodes/{20.tmuZaULh.js → 20.BztXJVwA.js} +1 -1
- package/web/app/immutable/nodes/{3.PjliZTHk.js → 3.lFs0YjGZ.js} +1 -1
- package/web/app/immutable/nodes/{4.OFyddHWG.js → 4.e6azWsLT.js} +1 -1
- package/web/app/immutable/nodes/{5.C7naJyKP.js → 5.Bq1EvpM9.js} +1 -1
- package/web/app/immutable/nodes/{6.k4q9sApB.js → 6.Bs908U_Q.js} +1 -1
- package/web/app/immutable/nodes/{7.C4plvmUt.js → 7.kb8QHtK2.js} +1 -1
- package/web/app/immutable/nodes/{8.tv1szX_U.js → 8.CQyVjnar.js} +1 -1
- package/web/app/immutable/nodes/{9.gOkUPoOT.js → 9.CfGq7FRR.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/BEyxbMng.js +0 -18
- package/web/app/immutable/chunks/BPvTHi1E.js +0 -190
- package/web/app/immutable/chunks/ByIgBfs_.js +0 -1
- package/web/app/immutable/chunks/CeFme0q3.js +0 -1
- package/web/app/immutable/chunks/Ct4BiqZH.js +0 -2
- package/web/app/immutable/chunks/D9WrKwE8.js +0 -1
- package/web/app/immutable/chunks/DJ5x8cvc.js +0 -1
- package/web/app/immutable/chunks/DbaZdUr0.js +0 -1
- package/web/app/immutable/chunks/Pyx0yui4.js +0 -4
- package/web/app/immutable/chunks/m2KtwqZj.js +0 -3
- package/web/app/immutable/chunks/tm_HKw3E.js +0 -2
- package/web/app/immutable/chunks/yAiwGS7g.js +0 -3
- package/web/app/immutable/entry/start.piZarN4f.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as v,t as Dt,bo as y,bw as Bt,b as Ft,bp as nf,bs as ht,bq as ga,br as Bo,b6 as Ol,bj as af,b9 as sf,bi as of,ba as lf,bf as cf,a$ as df,b3 as uf,bh as pf,bk as ff,a_ as gf,b8 as vf,b7 as mf,b1 as hf,be as bf,bl as yf,bu as Dl,bd as _f,b5 as xf,b4 as wf,b2 as kf,bc as Sf,bb as If,bg as Cf,b0 as Ef,_ as Pf}from"./AeC4KVgG.js";import{bI as Af,bj as eo,aG as Tf,bs as zt,aD as e,a5 as I,bS as m,bA as w,W as u,bn as Ht,c9 as d,aA as _,a7 as Et,ay as We,be as lr,b$ as Ot,aC as Ha,bl as N,b_ as k,bO as x,aB as S,bo as Ns,ca as It,bH as T,bV as ge,br as Gr,bk as to,c0 as ca,ai as es,cd as Ss,aw as Rn,a as Rf,aj as Rr,c7 as Mf,c6 as Bl,c5 as Mn,bf as Io,bz as Ed}from"./CJxGDkBm.js";import{i as D}from"./k2awEenT.js";import{k as Es}from"./HftJbvyF.js";import{h as Nf,e as Un,I as ro,g as Nt,i as Tr,o as Lf,p as Of,f as Df,s as Bf}from"./CswzK9Go.js";import{s as un}from"./Dp2nUoTL.js";import{c as Qr}from"./ZcoUa9Jg.js";import{n as Ci}from"./DsyH2ZOJ.js";import{b as Ff,s as $,g as Nn,e as Sn,c as ir,f as pt}from"./DrHJ7oPv.js";import{b as fr}from"./NtFyWdpR.js";import{
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BcLoDKLg.js","/app/immutable/chunks/AeC4KVgG.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BkzMrEqG.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/Bd1FsnP3.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Dp2nUoTL.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DWPd-rzt.js","/app/immutable/chunks/SLOyQ3jf.js","/app/immutable/chunks/BbV7MtxC.js","/app/immutable/chunks/k2awEenT.js","/app/immutable/chunks/DrHJ7oPv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DJM6amHV.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/CswzK9Go.js","/app/immutable/chunks/jhNNYE0v.js","/app/immutable/chunks/Cwla-sl1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/ZcoUa9Jg.js","/app/immutable/chunks/HftJbvyF.js","/app/immutable/chunks/DWUO9rBe.js","/app/immutable/chunks/BNODdf6r.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/Ci7mS1ie.js","/app/immutable/chunks/DsyH2ZOJ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/-5BGDZDk.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dz2z231n.js","/app/immutable/chunks/CbSeeP7P.js","/app/immutable/chunks/DTWXK3Yd.js","/app/immutable/chunks/F-reQTNB.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CWVUBnHm.js","/app/immutable/chunks/DwQfkcIA.js","/app/immutable/chunks/CAYSf4zc.js","/app/immutable/chunks/CZ-8NDq0.js","/app/immutable/chunks/CP5zM-2z.js","/app/immutable/chunks/B5aYN90J.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as v,t as Dt,bo as y,bw as Bt,b as Ft,bp as nf,bs as ht,bq as ga,br as Bo,b6 as Ol,bj as af,b9 as sf,bi as of,ba as lf,bf as cf,a$ as df,b3 as uf,bh as pf,bk as ff,a_ as gf,b8 as vf,b7 as mf,b1 as hf,be as bf,bl as yf,bu as Dl,bd as _f,b5 as xf,b4 as wf,b2 as kf,bc as Sf,bb as If,bg as Cf,b0 as Ef,_ as Pf}from"./AeC4KVgG.js";import{bI as Af,bj as eo,aG as Tf,bs as zt,aD as e,a5 as I,bS as m,bA as w,W as u,bn as Ht,c9 as d,aA as _,a7 as Et,ay as We,be as lr,b$ as Ot,aC as Ha,bl as N,b_ as k,bO as x,aB as S,bo as Ns,ca as It,bH as T,bV as ge,br as Gr,bk as to,c0 as ca,ai as es,cd as Ss,aw as Rn,a as Rf,aj as Rr,c7 as Mf,c6 as Bl,c5 as Mn,bf as Io,bz as Ed}from"./CJxGDkBm.js";import{i as D}from"./k2awEenT.js";import{k as Es}from"./HftJbvyF.js";import{h as Nf,e as Un,I as ro,g as Nt,i as Tr,o as Lf,p as Of,f as Df,s as Bf}from"./CswzK9Go.js";import{s as un}from"./Dp2nUoTL.js";import{c as Qr}from"./ZcoUa9Jg.js";import{n as Ci}from"./DsyH2ZOJ.js";import{b as Ff,s as $,g as Nn,e as Sn,c as ir,f as pt}from"./DrHJ7oPv.js";import{b as fr}from"./NtFyWdpR.js";import{p as Pd,bG as Ad,cX as Td,dS as zf,dE as Hf,aI as jf,cG as Wf,ac as Uf,d1 as qf,dD as Ks,aN as Fo,ce as Vf,R as Kf,b as Gf,a9 as Fl,d7 as Jf,c2 as Yf,X as Xf,dz as Zf,a3 as Qf,dJ as $f,aq as eg,c_ as tg,aE as rg,n as ng,H as ag}from"./-5BGDZDk.js";import{c as sg}from"./D-62MVd3.js";import{m as da,w as og,C as Rd,c as ig,R as lg}from"./BbV7MtxC.js";import{f as xt,ah as ws,aa as cg,ae as Ei}from"./DJM6amHV.js";import{F as dg}from"./jhNNYE0v.js";import{B as ug,s as pg,t as fg}from"./t63qkPWO.js";import{F as At,bi as Pi,bN as gg,ap as vg,aR as mg,cP as hg,bm as rl,bD as bg,aH as Md,aM as nl,d2 as Co,ac as Ai,cr as yg,cg as _g,cm as al,cJ as sl,bu as xg,e as wg,c2 as zl,cc as kg,cp as Sg,c_ as Nd,bX as Hl,b9 as si,bf as Ws,aG as Ig,aA as Ti,av as Ld,bd as Od,bE as Cg,B as Eg,bx as Pg,a1 as Dd,b4 as Ag,a7 as Bd,ck as Tg,am as Fd,cR as zd,cN as jl,at as Hd,aL as Wl,cz as Rg,cY as Mg,cS as Ng,aK as Lg,b0 as Og,bQ as jd,bo as Dg,ao as ol,c8 as Ul,az as Bg,aa as Fg,a8 as zg}from"./Ci7mS1ie.js";import{c as Wd}from"./ChTqQfQN.js";import{g as Hg}from"./BNODdf6r.js";import{IX as Lt,bT as jg,sg as ql,sR as Wg,JN as Ug,JT as qg,i as Ud,IA as qd,nJ as Vd,nZ as Kd,nY as Gd,nC as zo,ql as il,yo as Vg,vq as yo,uJ as Ri,vs as Kg,nr as Jd,J0 as Gg,tx as Jg,oN as Yd,rB as ll,m8 as Vl,a5 as Kl,r5 as Yg,r1 as Xg,r6 as Zg,qZ as Qg,r3 as $g,vg as ev,A$ as Xd,B3 as Zd,n_ as Gl,bl as Mi,Hj as tv,Iw as rv,hg as Jl,hf as nv,nU as av,wr as sv,ws as ov,wq as Yl,B_ as ia,cy as Qd,cm as iv,xp as lv,d7 as cv,de as dv,B9 as uv}from"./BkzMrEqG.js";import{v as pv,k as fv,E as gv,l as vv,V as mv,I as hv,R as bv,q as yv,n as _v,A as Xl,s as xv,m as wv,W as kv,o as $d,S as eu,i as Sv,g as Zl,f as Iv,e as Cv,j as Ev,h as Pv,c as Ql,r as Av}from"./C-pqKaCQ.js";import{ay as Tv,aE as Rv,g as Mv,n as Nv,aH as Lv,K as Ov,M as Dv,O as Bv,at as Fv,aA as zv,av as Hv}from"./CWVUBnHm.js";import{e as jv,d as Wv,l as Ni,bE as Uv,A as qv,bD as Vv,bA as Kv,ah as $l,bC as Gv,bd as Li,aq as Jv,j as Yv,b3 as Xv,p as ec,z as Zv,K as tc}from"./SLOyQ3jf.js";import{ck as Qv,cm as $v,cl as em,b3 as tm,b1 as rm,b2 as nm,a4 as am,am as go,al as sm,cV as om,aB as rc,aJ as im,ak as lm,C as cm,i as dm,E as _o,cW as um,aY as nc,c$ as pm,ah as fm,a9 as gm,r as vm,p as mm,aG as hm,d2 as bm,cM as ym,cF as _m,R as xm,cw as wm,bU as km}from"./bXhYFuj1.js";import{I as Is}from"./MTWQwZlS.js";import"./DFNGHAci.js";import{e as ac,l as sc,M as tu,m as Oi,w as us}from"./Dm-oOl0S.js";import"./CbKCvejK.js";import{b as ru}from"./pQ6eXYk4.js";import"./yuYlEyw7.js";import{H as Sm}from"./DZGQ9Nrs.js";import{t as Gs}from"./DAsc1V4f.js";import{b as Im}from"./DpqAXGKG.js";import{b as oc}from"./8gFeUK_j.js";import{p as cl,b as Cm,a as Em,M as Pm}from"./-6dzlBdM.js";import{a as Am}from"./Bw3fY4XA.js";import{P as Tm}from"./G2FM8dd1.js";import{C as Di}from"./DgAGr3pN.js";import"./BX7U0hos.js";import{G as Rm,M as Mm,R as Nm}from"./B8UOKciv.js";import{d as Lm,c as Om}from"./BhbsmIxG.js";import{O as Dm}from"./BBjKvnMF.js";import{aQ as Bm,aY as Fm,aB as zm,b0 as Hm,aO as jm,aU as Wm,a7 as Ps,b3 as ic,aK as Um,aR as qm,aX as dl,aS as ul,W as oi,aq as Vm,X as Km,a_ as Gm,aJ as Jm,aT as Ym,aW as Xm,b6 as Zm,b4 as Qm,ay as nu,p as $m,n as eh,aV as th,_ as rh,ao as nh,aD as ah,z as sh,aC as oh,a8 as ih}from"./DW97_Hl4.js";import{s as Bi}from"./a3nqHBzJ.js";import{e as lc}from"./CP82XwtW.js";import{M as lh}from"./B-AWjR8f.js";import{M as ch}from"./CkHTSBAH.js";import{M as dh}from"./Dw2MHUvL.js";import{M as uh}from"./TM3R3t4N.js";import{s as ph,a as fh}from"./BsieX9dN.js";import{u as pl,w as gh,v as Ho,I as vh,A as cc,e as As,d as Ta,J as dc,c as mh,f as hh,g as uc,i as bh,b as yh,o as au,j as _h,q as Fi,r as xh,O as wh,x as kh,k as su,S as Sh,N as Ih,p as Ch,n as pc,z as Eh,s as Ph}from"./DFF9Hi9i.js";import{o as fc,T as ii,a as Ah}from"./B_VZNBPj.js";import{O as Th,x as Rh,i as Mh,g as Nh,T as Lh,d as Oh}from"./CD7PpB6R.js";import{D as Js}from"./DPb0TtQV.js";import{l as nr,e as Dh,f as gc,m as vc}from"./DWUO9rBe.js";import{A as Ys}from"./gJtrDJPm.js";import"./Hy_004pB.js";import{h as ou}from"./BigcqNWS.js";import{C as ua}from"./BWUH3HmG.js";import{M as Bh}from"./BrNYPcY3.js";/* empty css */import{g as fl}from"./Cn0ug0UZ.js";import{h as zi}from"./BcLoDKLg.js";import{f as mc,d as Fh}from"./DvFk8gJm.js";import{c as xo}from"./BaGrEyO7.js";import{handleIntentLink as zh}from"./Ck96vbIn.js";import{a as hc}from"./D0H3cACA.js";import{t as Hi}from"./D2MmXC4A.js";import{b as Hh,a as jh,d as Wh,I as Uh}from"./DjXnrfed.js";import{s as qh,a as Vh,M as iu}from"./BbUJvzh9.js";import{b as Kh,k as Gh}from"./CZ-8NDq0.js";import{m as Jh}from"./PVXvIyE8.js";import{S as _s}from"./F1SvNoTt.js";import{A as lu,d as Yh}from"./BgE8ilqL.js";import{showAssistantContent as Xh}from"./ZRRp1hhY.js";import{o as Eo,c as Zh,n as Qh}from"./9b_Os5fY.js";import{p as $h}from"./CcTYYBo3.js";import{H as eb}from"./CCnGCUBh.js";import{d as tb,c as rb,r as nb,g as ab,w as Us,e as sb,W as ob,b as ib}from"./CtJsKX7p.js";import{A as bc}from"./CvCk2zex.js";import{K as lb}from"./CkCQ3HCp.js";import{m as cb}from"./BOXv-Vsz.js";import{h as vo}from"./CEi_-imE.js";import{i as cu}from"./CbSeeP7P.js";import{I as db,z as ub}from"./DWPd-rzt.js";import{g as pb,e as fb,f as gb,h as vb}from"./B5aYN90J.js";import{T as li}from"./Ddz3uR-r.js";import"./usPlb0Rd.js";import{S as za}from"./BfeuGyqq.js";import{M as mb,L as hb,W as bb,I as yb}from"./CP5zM-2z.js";import{S as Xs,a as ji,T as du,U as Wi,K as _b,A as xb,P as wb,N as kb,j as Sb,R as yc,V as Ib}from"./KEUh5hD5.js";import{D as Cb}from"./_x2gPTtU.js";import{a as Eb}from"./htPg4Hk-.js";import{a as Pb}from"./BdWqymET.js";import{p as Ab}from"./D1Wd78Sv.js";const Tb="intent:inline-visual-draft";function EE(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -294,7 +294,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
294
294
|
`,j0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],xi=96,ld=2e4,W0=480,hp=512,U0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function q0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const p=(C,F={})=>{window.parent.postMessage({channel:r,type:C,...F},"*")};let i=s?.state??null,f=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const F=JSON.parse(JSON.stringify(C));return i=F.state,f=F,g||(g=!0,requestAnimationFrame(()=>{g=!1,f&&p("snapshot",{snapshot:f}),f=null})),!0}catch{return!1}}})});let O=!1,b=-1,h=innerHeight,A=Number.NaN,M=0,B=0;const z=()=>{if(O=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const F=innerHeight,q=C-F;if(F>h+1&&q>1&&Math.abs(q-A)<=1?M+=1:(F!==h||q<=1)&&(M=0),h=F,A=q,!B&&M>=3){B=Math.max(a,F);const J="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(J),p("layout",{message:J})}B&&(C=Math.min(C,B)),C!==b&&(b=C,p("resize",{height:C}))},R=()=>{O||(O=!0,requestAnimationFrame(z))},P=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const F=document.documentElement;F.classList.toggle("dark",C.dark),F.style.colorScheme=C.dark?"dark":"light";const q=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof q=="string"&&q.length<512&&F.style.setProperty("--inline-html-root-font-size",q);for(const J of Object.keys(t.variables)){if(J==="--inline-html-root-font-size")continue;const Y=C.variables[J];typeof Y=="string"&&Y.length<512&&F.style.setProperty(J,Y)}R()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&P(C.data.theme)});const H=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const F=Y=>{const we=getComputedStyle(Y);if(Y!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(we.overflowY)||/^(hidden|clip)$/.test(we.overflowY))return!1;const se=Y.scrollHeight-Y.clientHeight;return se>1&&(C.deltaY<0?Y.scrollTop>1:Y.scrollTop<se-1)};if(C.composedPath().some(Y=>Y instanceof Element&&F(Y))||document.scrollingElement&&F(document.scrollingElement))return;const q=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,J=Math.max(-n,Math.min(n,C.deltaY*q));Number.isFinite(J)&&(C.preventDefault(),l({deltaY:J}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",H),window.addEventListener("wheel",H,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&p("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const F=C.reason;p("error",{message:String(F instanceof Error?F.message:F).slice(0,300)})}),window.addEventListener("click",C=>{const F=C.target instanceof Element?C.target.closest("a, area"):null;if(!F)return;(F.getAttribute("href")??F.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),P(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(R).observe(document.body),new MutationObserver(R).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",R),document.addEventListener("load",R,!0),document.fonts.ready.then(R),p("ready"),R()},{once:!0})}function V0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=p=>{const i=p.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",p=>{const i=p.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(p.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(p.source!==o.contentWindow||p.origin!=="null")){if(i.type==="scroll-port"&&!c&&p.ports.length===1){c=p.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function K0(r,t,n,a,s,o,c,l){const p=document.implementation.createHTMLDocument(""),i=p.createElement("template");i.innerHTML=n,p.body.append(i.content);const f=J=>{J.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Y=>Y.remove()),J.querySelectorAll("template").forEach(Y=>f(Y.content)),J.querySelectorAll("a, area").forEach(Y=>{for(const we of["href","xlink:href"])Y.getAttribute(we)?.startsWith("#")||Y.removeAttribute(we);Y.removeAttribute("target"),Y.removeAttribute("ping"),Y.removeAttribute("download")})};f(p);const g=J=>JSON.stringify(J).replace(/</g,"\\u003c"),O=p.createElement("meta");O.httpEquiv="Content-Security-Policy",O.content=r.csp;const b=p.createElement("meta");b.setAttribute("charset","utf-8");const h=p.createElement("style"),A=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
295
295
|
font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${A}${r.styles}`;const M=p.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);M.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,p.head.prepend(O,b,h,M);const z=`<!doctype html>${p.documentElement.outerHTML}`,R=document.implementation.createHTMLDocument(""),P=R.createElement("meta");P.httpEquiv="Content-Security-Policy",P.content=r.csp.replace("frame-src 'none'","frame-src about:");const H=R.createElement("meta");H.setAttribute("charset","utf-8");const C=R.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const F=R.createElement("script"),q=g([a,z,o,r.maxScrollDelta]);return F.textContent=`(${r.shell})(...${q}, (${r.validate}));`,R.head.prepend(P,H,C,F),`<!doctype html>${R.documentElement.outerHTML}`}const G0=()=>({csp:U0,styles:H0,maxScrollDelta:hp,lockHeight:W0,bridge:q0.toString(),shell:V0.toString(),validate:ll.toString()});function J0(r,t,n,a,s=null,o=""){return K0(G0(),ll,r,t,n,a,s,o)}function cd(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(j0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function Y0(r,t,n,a,s=null){return J0(r,t,n,a,s,z0)}var X0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),Z0=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),Q0=S('<p class="sr-only" role="status"> </p>'),$0=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),ek=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),tk=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),rk=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),nk=S('<span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 whitespace-normal text-pretty"> </span>',1),ak=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),sk=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),ok=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),ik=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),lk=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),ck=S("<!> <!>",1),dk=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><!> <!> <div class="relative min-w-0"><!> <!></div> <div class="flex min-w-0 items-center justify-between gap-2 px-4 pt-1 pb-3" data-inline-visual-actions=""><!> <!></div> <!></div>');function bp(r,t){if(new.target)return Dt({component:bp,...r});zt(t,!0);const n=720,a=1e4;let s=y(t,"source",7),o=y(t,"isStreaming",7,!1),c=y(t,"isComplete",7,!0),l=y(t,"record",7),p=y(t,"storageStatus",7,"ready"),i=y(t,"onRecordChange",7),f=y(t,"onUseConfiguration",7),g=y(t,"onExport",7),O=y(t,"onRetry",7),b=y(t,"storageError",7),h=y(t,"exportStatus",7),A=y(t,"exportPath",7),M=y(t,"exportError",7),B,z=ge(void 0),R=ge(!1),P=ge(!1),H=ge(0),C=ge(""),F=ge(""),q=ge(!1),J=ge(""),Y=ge(Gr(xi)),we=ge(n),se=ge(""),me=ge(Vl()),ce=ge(void 0),Te=ge(void 0),oe,Me=ge(void 0),ae=ge(!1);const Q=d(()=>l()??e(me)),Se=d(()=>e(Te)!==void 0&&e(ce)!==void 0&&!Jh(e(Te),e(ce).inputs)),_e=d(()=>p()!=="loading"&&(p()!=="error"||!!e(Q).current)),ve=d(()=>!o()&&c()&&!!s().trim()&&e(_e)),He=d(()=>Math.min(ld,Math.max(xi,e(Y)))),Ze=d(()=>o()||p()==="loading"?"loading":c()?s().trim()?e(J)?"error":e(q)?"ready":"loading":"empty":"incomplete"),ie=d(()=>o()||p()==="loading"||e(ve)&&!e(q)&&!e(J)),Z=d(()=>Yh([{id:"source",label:e(P)?sf():of()},{id:"reload",label:lf(),disabled:!e(ve)},{id:"save",label:cf(),when:!!(e(ce)&&e(ve)),disabled:!e(q)||!!e(J)||e(Q).scenarios.length>=Kl,group:"configuration"},{id:"compare",label:df(),when:!!(e(ce)&&e(ve)&&e(Q).scenarios.length),group:"configuration"},{id:"export",label:uf(),when:!!(e(ce)&&e(ve)&&g()),disabled:!e(q)||h()==="saving",group:"configuration"}]));function Je(ne){ne==="source"?T(P,!e(P)):ne==="reload"?T(H,e(H)+1):ne==="save"?G():ne==="compare"?T(ae,!e(ae)):ne==="export"&&g()?.({...e(Q),current:e(ce)??null})}function V(ne){const Ee={...ne,current:e(ce)??ne.current};T(me,Ee),i()?.(Ee)}function G(){const ne=e(ce);!ne||e(Q).scenarios.length>=Kl||(V({...e(Q),scenarios:[...e(Q).scenarios,{id:crypto.randomUUID(),name:pf({number:vc(e(Q).scenarios.length+1)}),snapshot:structuredClone(ne)}]}),T(ae,!0))}function U(ne,Ee){const rt=Ee.trim().slice(0,120);rt&&V({...e(Q),scenarios:e(Q).scenarios.map(ot=>ot.id===ne?{...ot,name:rt}:ot)})}function de(ne){const Ee=structuredClone(ne);T(ce,Ee),T(Me,Ee),V({...e(Q),current:Ee}),T(H,e(H)+1)}function xe(ne){return typeof ne=="number"?vc(ne):typeof ne=="string"?ne:JSON.stringify(ne)}function Be(){!e(z)?.contentWindow||!e(F)||e(z).contentWindow.postMessage({channel:e(F),type:"theme",theme:cd(B)},"*")}function X(ne){let Ee=B.parentElement;for(;Ee;){const rt=getComputedStyle(Ee),ot=Ee.scrollHeight-Ee.clientHeight;if(/^(auto|scroll|overlay)$/.test(rt.overflowY)&&ot>1){if(ne<0?Ee.scrollTop>0:Ee.scrollTop<ot){Ee.dispatchEvent(new WheelEvent("wheel",{deltaY:ne,bubbles:!0})),Ee.scrollTop+=ne;return}if(/^(contain|none)$/.test(rt.overscrollBehaviorY))return}Ee=Ee.parentElement}window.scrollBy({top:ne,behavior:"instant"})}It(()=>{if(!e(R))return;const ne=s(),Ee=e(ve);e(H),Mn(()=>{oe!==ne&&(T(me,Vl()),T(ce,void 0),T(Te,void 0),T(ae,!1),T(Me,void 0),oe=ne),T(q,!1),T(J,""),T(se,""),T(Y,xi,!0),T(F,crypto.randomUUID(),!0),T(C,Ee?Y0(ne,e(F),cd(B),Ol(),e(Me)??e(ce)??e(Q).current):"",!0),T(Me,void 0)})}),It(()=>{if(!e(C)||e(q)||e(J))return;const ne=setTimeout(()=>{T(J,af(),!0)},a);return()=>clearTimeout(ne)}),to(()=>{T(R,!0);const ne=_t=>{if(_t.source!==e(z)?.contentWindow||_t.origin!=="null")return;const tt=_t.data;if(!(!tt||typeof tt!="object"||tt.channel!==e(F))){if(tt.type==="bootstrap"){e(z)?.contentWindow?.postMessage({channel:e(F),type:"initialize",documentHtml:e(C)},"*");return}if(tt.type==="resize"&&typeof tt.height=="number"&&Number.isFinite(tt.height)&&tt.height>=0)T(Y,Math.min(ld,Math.ceil(tt.height)),!0);else if(tt.type==="ready")T(q,!0),Be();else if(tt.type==="error"&&typeof tt.message=="string")T(J,tt.message.slice(0,300),!0);else if(tt.type==="layout"&&typeof tt.message=="string")T(se,tt.message.slice(0,300),!0);else if(tt.type==="snapshot"&&e(ve)&&ll(tt.snapshot)){const St=tt.snapshot;T(Te,e(Te)??structuredClone(St.inputs)),T(ce,St),V({...e(Q),current:St})}else tt.type==="wheel"&&e(q)&&e(ve)&&!e(P)&&!e(ie)&&typeof tt.deltaY=="number"&&Number.isFinite(tt.deltaY)&&tt.deltaY!==0&&Math.abs(tt.deltaY)<=hp&&X(tt.deltaY)}},Ee=()=>{T(we,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},rt=new MutationObserver(Be);rt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const ot=window.matchMedia("(prefers-color-scheme: dark)");return ot.addEventListener("change",Be),window.addEventListener("message",ne),window.addEventListener("resize",Ee),Ee(),()=>{rt.disconnect(),ot.removeEventListener("change",Be),window.removeEventListener("message",ne),window.removeEventListener("resize",Ee)}});var ke={get source(){return s()},set source(ne){s(ne),_()},get isStreaming(){return o()},set isStreaming(ne=!1){o(ne),_()},get isComplete(){return c()},set isComplete(ne=!0){c(ne),_()},get record(){return l()},set record(ne){l(ne),_()},get storageStatus(){return p()},set storageStatus(ne="ready"){p(ne),_()},get onRecordChange(){return i()},set onRecordChange(ne){i(ne),_()},get onUseConfiguration(){return f()},set onUseConfiguration(ne){f(ne),_()},get onExport(){return g()},set onExport(ne){g(ne),_()},get onRetry(){return O()},set onRetry(ne){O(ne),_()},get storageError(){return b()},set storageError(ne){b(ne),_()},get exportStatus(){return h()},set exportStatus(ne){h(ne),_()},get exportPath(){return A()},set exportPath(ne){A(ne),_()},get exportError(){return M()},set exportError(ne){M(ne),_()},$set:Bt,$on:(ne,Ee)=>Ft(t,ne,Ee)},Ce=dk(),nt=I(Ce);{var Ie=ne=>{var Ee=Z0(),rt=We(Ee),ot=I(rt),_t=N(ot,!0),tt=m(ot,2);{var St=Tt=>{xt(Tt,{variant:"ghost",size:"sm",get onclick(){return O()},children:(Gt,tr)=>{lr();var qt=Ot();k(Re=>x(qt,Re),[()=>_f()]),u(Gt,qt)},$$slots:{default:!0}})};D(tt,Tt=>{O()&&Tt(St)})}w(rt);var kt=m(rt,2);{var bt=Tt=>{var Gt=X0(),tr=N(Gt,!0);k(()=>x(tr,b())),u(Tt,Gt)};D(kt,Tt=>{b()&&Tt(bt)})}k(Tt=>x(_t,Tt),[()=>ff()]),u(ne,Ee)};D(nt,ne=>{p()==="error"&&ne(Ie)})}var Pe=m(nt,2);{var K=ne=>{var Ee=Q0(),rt=N(Ee,!0);k(ot=>x(rt,ot),[()=>o()?gf():vf()]),u(ne,Ee)},he=ne=>{var Ee=$0(),rt=N(Ee,!0);k(ot=>x(rt,ot),[()=>c()?hf():mf()]),u(ne,Ee)},le=ne=>{var Ee=ek(),rt=I(Ee),ot=N(rt,!0),_t=m(rt,2),tt=N(_t,!0);w(Ee),k(St=>{x(ot,St),x(tt,e(J))},[()=>bf()]),u(ne,Ee)};D(Pe,ne=>{e(ie)?ne(K):e(ve)?e(J)&&ne(le,2):ne(he,1)})}var L=m(Pe,2),W=I(L);{var pe=ne=>{var Ee=Et(),rt=We(Ee);Es(rt,()=>e(F),ot=>{var _t=tk();let tt,St;fr(_t,kt=>T(z,kt),()=>e(z)),k(kt=>{$(_t,"title",kt),$(_t,"src",`/inline-html-sandbox.html#${e(F)}`),tt=pt(_t,1,"block w-full border-0 svelte-1kkow1d",null,tt,{"preview-hidden":e(P)||!e(q)}),$(_t,"aria-hidden",e(P)||!e(q)),St=Nn(_t,"",St,{height:`${e(He)}px`})},[()=>Ol()]),u(ot,_t)}),u(ne,Ee)};D(W,ne=>{e(ve)&&e(C)&&ne(pe)})}var Ue=m(W,2);{var Le=ne=>{ua(ne,{get code(){return s()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(we)}})},qe=ne=>{var Ee=rk(),rt=I(Ee),ot=I(rt);_s(ot,{class:"h-4 w-32 max-w-1/2"});var _t=m(ot,2);_s(_t,{class:"h-3 w-2/3"}),w(rt);var tt=m(rt,2);_s(tt,{class:"aspect-video max-h-60 w-full rounded-lg"});var St=m(tt,2),kt=I(St);_s(kt,{class:"h-3 w-16"});var bt=m(kt,2);_s(bt,{class:"h-2 min-w-0 flex-1"});var Tt=m(bt,2);_s(Tt,{class:"h-3 w-10"}),w(St),w(Ee),u(ne,Ee)};D(Ue,ne=>{e(P)?ne(Le):e(ie)&&ne(qe,1)})}w(L);var Ge=m(L,2),dt=I(Ge);{var gt=ne=>{{let Ee=d(()=>!e(q)||!!e(J));xt(ne,{variant:"plain",size:"sm",wrapContent:!1,get class(){return`${Fi} ${xh} h-auto min-w-0 shrink justify-start rounded-sm border border-transparent px-1.5 py-0.5 text-left hover:text-foreground`},style:"gap: var(--operational-leading-gap)","data-typography-role":"body",get disabled(){return e(Ee)},onclick:()=>e(ce)&&f()(e(ce)),children:(rt,ot)=>{var _t=nk(),tt=We(_t),St=I(tt);At(St,{get icon(){return Dd},size:16,get class(){return Ta}}),w(tt);var kt=m(tt,2),bt=N(kt,!0);k(Tt=>{pt(tt,1,`${As??""} mt-px self-start`,"svelte-1kkow1d"),x(bt,Tt)},[()=>yf()]),u(rt,_t)},$$slots:{default:!0}})}};D(dt,ne=>{e(ce)&&e(Se)&&e(ve)&&f()&&!e(P)&&ne(gt)})}var Ct=m(dt,2);{const ne=(rt,ot)=>{let _t=()=>(ot?.()).props;{let tt=d(()=>Dl());xt(rt,Bo(_t,{variant:"ghost",size:"icon-sm",class:"ml-auto text-muted-foreground",get"aria-label"(){return e(tt)},children:(St,kt)=>{At(St,{get icon(){return Ag},size:16})},$$slots:{default:!0}}))}};let Ee=d(()=>Dl());lu(Ct,{get actions(){return e(Z)},get ariaLabel(){return e(Ee)},align:"end",side:"top",onAction:Je,trigger:ne,$$slots:{trigger:!0}})}w(Ge);var Ut=m(Ge,2);{var wt=ne=>{var Ee=ck(),rt=We(Ee);{var ot=St=>{var kt=ak(),bt=I(kt),Tt=m(bt);{var Gt=tr=>{var qt=Ot();k(()=>x(qt,M())),u(tr,qt)};D(Tt,tr=>{h()==="error"&&M()&&tr(Gt)})}w(kt),k(tr=>x(bt,`${tr??""} `),[()=>h()==="saving"?xf():h()==="saved"?wf({path:A()??""}):kf()]),u(St,kt)};D(rt,St=>{h()&&St(ot)})}var _t=m(rt,2);{var tt=St=>{var kt=lk(),bt=I(kt),Tt=I(bt),Gt=I(Tt),tr=I(Gt),qt=N(tr,!0),Re=m(tr),ue=N(Re,!0),Ye=m(Re);Nt(Ye,17,()=>e(Q).scenarios,et=>et.id,(et,Ne)=>{var te=sk(),fe=I(te);{let ze=d(()=>Cf());Is(fe,{get value(){return e(Ne).name},get"aria-label"(){return e(ze)},maxlength:120,onblur:Fe=>{Fe.currentTarget.value.trim()||(Fe.currentTarget.value=e(Ne).name),U(e(Ne).id,Fe.currentTarget.value)},onkeydown:Fe=>{Fe.key==="Enter"&&Fe.currentTarget.blur(),Fe.key==="Escape"&&(Fe.currentTarget.value=e(Ne).name,Fe.currentTarget.blur())}})}var re=m(fe,2),Oe=I(re);xt(Oe,{variant:"ghost",size:"sm",onclick:()=>de(e(Ne).snapshot),children:(ze,Fe)=>{lr();var Ve=Ot();k(Xe=>x(Ve,Xe),[()=>Sf()]),u(ze,Ve)},$$slots:{default:!0}});var be=m(Oe,2);xt(be,{variant:"ghost",size:"sm",onclick:()=>V({...e(Q),scenarios:e(Q).scenarios.filter(ze=>ze.id!==e(Ne).id)}),children:(ze,Fe)=>{lr();var Ve=Ot();k(Xe=>x(Ve,Xe),[()=>If()]),u(ze,Ve)},$$slots:{default:!0}}),w(re),w(te),u(et,te)}),w(Gt),w(Tt);var it=m(Tt);Nt(it,20,()=>["inputs","results"],Tr,(et,Ne)=>{const te=d(()=>Ne),fe=d(()=>Array.from(new Set([...Object.keys(e(ce)[e(te)]),...e(Q).scenarios.flatMap(be=>Object.keys(be.snapshot[e(te)]))])));var re=Et(),Oe=We(re);Nt(Oe,16,()=>e(fe),be=>be,(be,ze)=>{var Fe=ik(),Ve=I(Fe),Xe=N(Ve,!0),je=m(Ve);Nt(je,17,()=>[e(ce),...e(Q).scenarios.map($e=>$e.snapshot)],Tr,($e,De)=>{var Qe=ok(),ut=N(Qe,!0);k(st=>x(ut,st),[()=>Object.hasOwn(e(De)[e(te)],ze)?xe(e(De)[e(te)][ze]):"—"]),u($e,Qe)}),w(Fe),k(()=>x(Xe,ze)),u(be,Fe)}),u(et,re)}),w(it),w(bt),w(kt),k(et=>{x(qt,e(ce).title),x(ue,et)},[()=>Ef()]),u(St,kt)};D(_t,St=>{e(ae)&&e(Q).scenarios.length&&St(tt)})}u(ne,Ee)};D(Ut,ne=>{e(ce)&&e(ve)&&ne(wt)})}return w(Ce),fr(Ce,ne=>B=ne,()=>B),k(()=>{$(Ce,"data-inline-html-status",e(Ze)),$(Ce,"data-inline-html-layout",e(se)?"viewport-locked":void 0),$(Ce,"aria-busy",e(ie))}),u(r,Ce),Ht(ke)}var uk=S('<div class="w-full min-w-0"><!></div>');function pk(r,t){if(new.target)return Dt({component:pk,...r});zt(t,!0);const n=()=>ht(e(b),"$agent$",s),a=()=>ht(e(B),"$entry$",s),[s,o]=ga();let c=y(t,"block",7),l=y(t,"role",7),p=y(t,"workspaceId",7),i=y(t,"agentId",7),f=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),O=ge(void 0);const b=d(()=>Fo(i()??"")),h=d(()=>l()==="assistant"&&p()&&i()&&f()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Yd(n())?{workspaceId:p(),agentId:i(),messageId:f(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),A=d(()=>!!(p()&&i()&&f()&&c().metadata?.fenceClosed&&!n())),M=d(()=>e(h)?$g(e(h)):""),B=d(()=>jm(e(M)));It(()=>{e(h)&&Lt.dispatch(Yg(e(h)))});function z(J){!p()||!i()||n()?.retiredAt||e(O)?.dispatchEvent(new CustomEvent(Tb,{bubbles:!0,detail:{workspaceId:p(),agentId:i(),snapshot:J}}))}var R={get block(){return c()},set block(J){c(J),_()},get role(){return l()},set role(J){l(J),_()},get workspaceId(){return p()},set workspaceId(J){p(J),_()},get agentId(){return i()},set agentId(J){i(J),_()},get messageId(){return f()},set messageId(J){f(J),_()},get contentBlockKey(){return g()},set contentBlockKey(J=""){g(J),_()},$set:Bt,$on:(J,Y)=>Ft(t,J,Y)},P=Et(),H=We(P);{var C=J=>{var Y=uk(),we=I(Y);{let se=d(()=>c().metadata?.isStreaming??!1),me=d(()=>c().metadata?.fenceClosed??!1),ce=d(()=>a()?.record),Te=d(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),oe=d(()=>a()?.error),Me=d(()=>e(h)?Ze=>Lt.dispatch(Qg(e(M),Ze)):void 0),ae=d(()=>p()&&i()&&n()&&!n().retiredAt?z:void 0),Q=d(()=>e(h)?()=>Lt.dispatch(Zg(e(M))):void 0),Se=d(()=>e(h)?Ze=>Lt.dispatch(Xg(e(M),crypto.randomUUID(),Ze)):void 0),_e=d(()=>a()?.export?.status),ve=d(()=>a()?.export?.path),He=d(()=>a()?.export?.error);bp(we,{get source(){return c().content},get isStreaming(){return e(se)},get isComplete(){return e(me)},get record(){return e(ce)},get storageStatus(){return e(Te)},get storageError(){return e(oe)},get onRecordChange(){return e(Me)},get onUseConfiguration(){return e(ae)},get onRetry(){return e(Q)},get onExport(){return e(Se)},get exportStatus(){return e(_e)},get exportPath(){return e(ve)},get exportError(){return e(He)}})}w(Y),fr(Y,se=>T(O,se),()=>e(O)),u(J,Y)},F=J=>{ua(J,{get code(){return c().content},language:"html"})};D(H,J=>{l()==="assistant"?J(C):J(F,-1)})}u(r,P);var q=Ht(R);return o(),q}var fk=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function gk(r,t){if(new.target)return Dt({component:gk,...r});zt(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:Bt,$on:(c,l)=>Ft(t,c,l)},s=fk(),o=N(s,!0);return k(()=>x(o,n())),u(r,s),Ht(a)}var vk=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),mk=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),hk=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),bk=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),yk=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function _k(r,t){if(new.target)return Dt({component:_k,...r});zt(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Bt,$on:(b,h)=>Ft(t,b,h)},s=yk(),o=I(s),c=I(o);At(c,{get icon(){return Nd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),p=N(l,!0);w(o);var i=m(o,2);Nt(i,21,n,b=>b.name+b.command,(b,h)=>{var A=bk(),M=I(A),B=I(M),z=I(B),R=N(z,!0),P=m(z,2);{var H=we=>{var se=vk(),me=N(se,!0);k(ce=>x(me,ce),[()=>v.chat_detectedScripts_service_badge()]),u(we,se)},C=we=>{var se=mk(),me=N(se,!0);k(ce=>x(me,ce),[()=>v.chat_detectedScripts_command_badge()]),u(we,se)};D(P,we=>{e(h).mode==="service"?we(H):we(C,-1)})}var F=m(P,2);{var q=we=>{var se=hk(),me=N(se,!0);k(()=>x(me,e(h).category)),u(we,se)};D(F,we=>{e(h).category&&e(h).category!=="other"&&we(q)})}w(B);var J=m(B,2),Y=N(J,!0);w(M),w(A),k(()=>{x(R,e(h).name),x(Y,e(h).command)}),u(b,A)}),w(i);var f=m(i,2),g=I(f),O=N(g,!0);return w(f),w(s),k((b,h)=>{x(p,b),x(O,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:nr(n().length)}):v.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,s),Ht(a)}function xk(r,t){if(new.target)return Dt({component:xk,...r});zt(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),da.success(v.chat_diffViewer_applied_toast())}function p(){c()?.(),da.info(v.chat_diffViewer_rejected_toast())}const i=d(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:p}),g});var f={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:Bt,$on:(g,O)=>Ft(t,g,O)};{let g=d(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());Js(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Ht(f)}var wk=Ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),dd=Ha("<circle></circle>"),kk=Ha('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),Sk=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function So(r,t){if(new.target)return Dt({component:So,...r});zt(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=d(()=>s()/2),l=d(()=>e(c)),p=d(()=>e(c)),i=d(()=>s()*.12),f=d(()=>e(c)-e(i)/2),g=d(()=>e(c)*.35),O=d(()=>2*Math.PI*e(g)),b=d(()=>Math.max(0,Math.min(1,a()))*e(O));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let A=d(()=>h[n()]||"currentColor");var M={get phase(){return n()},set phase(se){n(se),_()},get progress(){return a()},set progress(se=0){a(se),_()},get size(){return s()},set size(se=16){s(se),_()},get class(){return o()},set class(se=""){o(se),_()},$set:Bt,$on:(se,me)=>Ft(t,se,me)},B=Sk(),z=I(B),R=I(z),P=m(R);{var H=se=>{},C=se=>{var me=wk();k(()=>{$(me,"cx",e(l)),$(me,"cy",e(p)),$(me,"r",e(g)*.8),$(me,"stroke",e(A)),$(me,"stroke-width",e(g)*1.5),$(me,"stroke-dasharray",`${e(b)??""} ${e(O)??""}`),$(me,"stroke-dashoffset",e(O)*.25),$(me,"transform",`rotate(-90 ${e(l)??""} ${e(p)??""})`)}),u(se,me)},F=se=>{var me=dd();k(()=>{$(me,"cx",e(l)),$(me,"cy",e(p)),$(me,"r",e(f)*.6),$(me,"fill",e(A))}),u(se,me)},q=se=>{var me=dd();k(()=>{$(me,"cx",e(l)),$(me,"cy",e(p)),$(me,"r",e(f)),$(me,"fill",e(A))}),u(se,me)};D(P,se=>{n()==="planning"?se(H):n()==="building"?se(C,1):n()==="reviewing"?se(F,2):n()==="shipped"&&se(q,3)})}w(z);var J=m(z,2);{var Y=se=>{},we=se=>{var me=kk();k(()=>$(me,"width",s()*.5)),u(se,me)};D(J,se=>{n()==="reviewing"?se(Y):n()==="shipped"&&se(we,1)})}return w(B),k(()=>{$(z,"width",s()),$(z,"height",s()),$(z,"viewBox",`0 0 ${s()??""} ${s()??""}`),pt(z,0,ir(o())),$(R,"cx",e(l)),$(R,"cy",e(p)),$(R,"r",e(f)),$(R,"stroke",e(A)),$(R,"stroke-width",e(i))}),u(r,B),Ht(M)}var ud=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),Ik=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),pd=S('<span class="text-ui text-subtle truncate"> </span>'),fd=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),gd=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),Ck=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),Ek=S('<span class="text-ui text-subtle pl-4"> </span>'),Pk=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),Ak=S('<div class="text-ui text-subtle"> </div>'),Tk=S("<!> <!> <!> <!>",1),Rk=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),Mk=S('<div class="rounded-[0.5px]"></div>');function yp(r,t){if(new.target)return Dt({component:yp,...r});zt(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),p=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let f=d(()=>{const{completed:P,inProgress:H,notStarted:C,total:F}=n();if(F===0)return[];const q=[...Array(P).fill("completed"),...Array(H).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return q.length<=s()?q:q.slice(q.length-s())}),g=d(()=>a().filter(P=>P.status==="complete")),O=d(()=>a().filter(P=>P.status==="in_progress"||P.status==="review_required")),b=d(()=>a().filter(P=>P.status!=="complete"&&P.status!=="in_progress"&&P.status!=="review_required"&&P.status!=="cancelled")),h=d(()=>a().filter(P=>P.status==="cancelled")),A=d(()=>a().length>0);var M={get stats(){return n()},set stats(P){n(P),_()},get tasks(){return a()},set tasks(P=[]){a(P),_()},get maxBars(){return s()},set maxBars(P=20){s(P),_()},get barWidth(){return o()},set barWidth(P="1px"){o(P),_()},get barHeight(){return c()},set barHeight(P="16px"){c(P),_()},get gap(){return l()},set gap(P="1px"){l(P),_()},get class(){return p()},set class(P){p(P),_()},$set:Bt,$on:(P,H)=>Ft(t,P,H)},B=Et(),z=We(B);{var R=P=>{Ei(P,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var F=Rk(),q=I(F),J=I(q),Y=N(J,!0),we=m(J,2),se=I(we);{var me=Se=>{var _e=ud(),ve=I(_e);Nn(ve,"",{},{"background-color":"#22c55e"});var He=m(ve);w(_e),k(()=>x(He,` ${n().completed??""}`)),u(Se,_e)};D(se,Se=>{n().completed>0&&Se(me)})}var ce=m(se,2);{var Te=Se=>{var _e=ud(),ve=I(_e);Nn(ve,"",{},{"background-color":"#4F7BF7"});var He=m(ve);w(_e),k(()=>x(He,` ${n().inProgress??""}`)),u(Se,_e)};D(ce,Se=>{n().inProgress>0&&Se(Te)})}var oe=m(ce,2);{var Me=Se=>{var _e=Ik(),ve=m(I(_e));w(_e),k(()=>x(ve,` ${n().notStarted??""}`)),u(Se,_e)};D(oe,Se=>{n().notStarted>0&&Se(Me)})}w(we),w(q);var ae=m(q,2);{var Q=Se=>{var _e=Tk(),ve=We(_e);Nt(ve,17,()=>e(O),Tr,(V,G)=>{var U=gd(),de=I(U),xe=I(de);ii(xe,{get status(){return e(G).status},size:14}),w(de);var Be=m(de,2),X=I(Be),ke=N(X,!0),Ce=m(X,2);{var nt=Ie=>{var Pe=fd(),K=I(Pe);{let L=d(()=>e(G).agentState||"idle");bc(K,{get agentId(){return e(G).agentId},get state(){return e(L)},size:12,get specialist(){return e(G).agentSpecialist}})}var he=m(K,2);{var le=L=>{var W=pd(),pe=N(W,!0);k(()=>x(pe,e(G).agentName)),u(L,W)};D(he,L=>{e(G).agentName&&L(le)})}w(Pe),u(Ie,Pe)};D(Ce,Ie=>{e(G).agentId&&Ie(nt)})}w(Be),w(U),k(()=>x(ke,e(G).title)),u(V,U)});var He=m(ve,2);Nt(He,17,()=>e(b),Tr,(V,G)=>{var U=gd(),de=I(U),xe=I(de);ii(xe,{get status(){return e(G).status},size:14}),w(de);var Be=m(de,2),X=I(Be),ke=N(X,!0),Ce=m(X,2);{var nt=Ie=>{var Pe=fd(),K=I(Pe);{let L=d(()=>e(G).agentState||"idle");bc(K,{get agentId(){return e(G).agentId},get state(){return e(L)},size:12,get specialist(){return e(G).agentSpecialist}})}var he=m(K,2);{var le=L=>{var W=pd(),pe=N(W,!0);k(()=>x(pe,e(G).agentName)),u(L,W)};D(he,L=>{e(G).agentName&&L(le)})}w(Pe),u(Ie,Pe)};D(Ce,Ie=>{e(G).agentId&&Ie(nt)})}w(Be),w(U),k(()=>x(ke,e(G).title)),u(V,U)});var Ze=m(He,2);{var ie=V=>{var G=Pk(),U=I(G);Nt(U,17,()=>e(g).slice(0,3),Tr,(Be,X)=>{var ke=Ck(),Ce=I(ke),nt=I(Ce);ii(nt,{status:"complete",size:12}),w(Ce);var Ie=m(Ce,2),Pe=N(Ie,!0);w(ke),k(()=>x(Pe,e(X).title)),u(Be,ke)});var de=m(U,2);{var xe=Be=>{var X=Ek(),ke=N(X,!0);k(Ce=>x(ke,Ce),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:nr(e(g).length-3)})]),u(Be,X)};D(de,Be=>{e(g).length>3&&Be(xe)})}w(G),u(V,G)};D(Ze,V=>{e(g).length>0&&V(ie)})}var Z=m(Ze,2);{var Je=V=>{var G=Ak(),U=N(G,!0);k(de=>x(U,de),[()=>v.workspace_taskProgressBar_cancelled_label({count:nr(e(h).length)})]),u(V,G)};D(Z,V=>{e(h).length>0&&V(Je)})}u(Se,_e)};D(ae,Se=>{e(A)&&Se(Q)})}w(F),k(Se=>x(Y,Se),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(C,F)},children:(C,F)=>{{let q=d(()=>Sn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",p())),J=d(()=>`gap: ${l()}`),Y=d(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));xt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(q)},get style(){return e(J)},get"aria-label"(){return e(Y)},"data-task-progress-trigger":!0,children:(we,se)=>{var me=Et(),ce=We(me);Nt(ce,17,()=>e(f),Tr,(Te,oe)=>{var Me=Mk();let ae;k(()=>ae=Nn(Me,"",ae,{width:o(),height:c(),"background-color":i[e(oe)]})),u(Te,Me)}),u(we,me)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(z,P=>{n().total>0&&P(R)})}return u(r,B),Ht(M)}function Cl(r,t){if(new.target)return Dt({component:Cl,...r});zt(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const p=d(()=>kv(n(),c(),a()));var i={get items(){return n()},set items(f){n(f),_()},get ariaLabel(){return a()},set ariaLabel(f){a(f),_()},get open(){return s()},set open(f=!1){s(f),_()},get orientation(){return o()},set orientation(f="vertical"){o(f),_()},get selection(){return c()},set selection(f){c(f),_()},get class(){return l()},set class(f=""){l(f),_()},$set:Bt,$on:(f,g)=>Ft(t,f,g)};return lu(r,{get actions(){return e(p)},align:"end",get ariaLabel(){return a()},onAction:g=>wv(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,O)=>{let b=()=>(O?.()).props;xt(g,Bo(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,A)=>{lb(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Ht(i)}var Nk=S('<span class="contents"><!></span>'),Lk=S("<!> <!>",1);function _p(r,t){if(new.target)return Dt({component:_p,...r});zt(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=d(()=>Hg(a()));let o=ge(null);It(()=>{e(o)&&e(o).workspaceId!==n()&&T(o,null)});function c(h){const A=$d(h);A&&T(o,{...A,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();T(o,{x:A.left,y:A.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function p(){T(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Bt,$on:(h,A)=>Ft(t,h,A)},f=Lk(),g=We(f);{let h=d(()=>v.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),A=d(()=>v.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),M=d(()=>e(o)!==null);xt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(A)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(M)},children:(B,z)=>{var R=Nk(),P=I(R);ig(P,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(R),u(B,R)},$$slots:{default:!0}})}var O=m(g,2);{var b=h=>{{let A=d(()=>e(o)?.x??0),M=d(()=>e(o)?.y??0),B=d(()=>e(o)?.returnFocus),z=d(()=>v.workspace_card_assignMicroKey_label()),R=d(()=>tb(n(),p));eu(h,{get x(){return e(A)},get y(){return e(M)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(z)},get items(){return e(R)},onClickOutside:p})}};D(O,h=>{e(o)&&h(b)})}return u(r,f),Ht(i)}var Ok=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),Dk=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),Bk=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),Fk=S('<span data-workspace-card-pr-item=""><!></span>'),zk=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),Hk=S('<span data-workspace-card-time=""><!></span>'),jk=S('<span aria-hidden="true"><!></span>'),Wk=S("<div><!> <!> <!> <!></div>"),Uk=S('<div data-workspace-card-hover-surface=""><!></div>'),qk=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),Vk=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),Kk=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),Gk=S('<div class="text-sm font-semibold truncate"> </div>'),vd=S('<span class="truncate"> </span>'),Jk=S('<span class="text-muted-foreground">·</span>'),Yk=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Xk=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Zk=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Qk=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),$k=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),e2=S('<div class="flex items-center text-ui"><span> </span></div>'),t2=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),r2=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),n2=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),a2=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function xp(r,t){if(new.target)return Dt({component:xp,...r});zt(t,!0);const n=()=>ht(He,"$prMonitors$",c),a=()=>ht(Ze,"$microConnected$",c),s=()=>ht(Z,"$hidesOwnerActions$",c),o=()=>ht(ie,"$workspaceKeySlot$",c),[c,l]=ga();let p=y(t,"workspace",7),i=y(t,"phase",7),f=y(t,"stats",7),g=y(t,"variant",7,"compact"),O=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),A=y(t,"isWaiting",7),M=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),z=y(t,"hasSpec",7,!1),R=y(t,"isAgentRunning",7,!1),P=y(t,"agentDigest",7),H=y(t,"trailingLabel",7),C=y(t,"title",7),F=y(t,"repoName",7),q=y(t,"branch",7),J=y(t,"onClick",7),Y=y(t,"onAction",7),we=y(t,"onTogglePin",7),se=y(t,"onMarkAsRead",7),me=y(t,"onOpenInNewWindow",7),ce=y(t,"onHover",7),Te=y(t,"highlighted",7,!1),oe=y(t,"selected",7,!1),Me=y(t,"highlightId",7),ae=y(t,"suppressHover",7,!1),Q=y(t,"isolateHoverReveal",7,!1),Se=y(t,"class",7),_e=y(t,"actions",7);const ve=Ss("");It(()=>{ve.set(p()?.id??"")});const He=Jf(ve),Ze=cb(),ie=Lv(ve),Z=Yf(ve),Je=d(()=>nb(p()??{})),V=d(()=>ab(e(Je)));let G=d(()=>p()?$h.url.pathname===`/workspace/${p().id}`:!1),U=d(()=>p()?`workspace-hover-card-${p().id}`:void 0),de=ge(!1),xe=ge(null),Be=ge(null);It(()=>{if(!e(Be))return;const ee=vo(e(Be),{id:Me()});return()=>ee.destroy()});let X=ge(null),ke=ge(null),Ce=ge(null),nt=ge(0),Ie=ge(0),Pe=d(()=>e(nt)+(e(Ie)>0?e(Ie)+4:0));function K(){const ee=e(X),ft=e(Ce);T(nt,ee?Math.max(0,ee.scrollWidth-ee.clientWidth):0,!0),T(Ie,ee&&ft&&ft.getClientRects().length>0?Math.max(0,ee.getBoundingClientRect().right-ft.getBoundingClientRect().left):0,!0)}It(()=>{const ee=e(X),ft=e(ke),Vt=e(Ce);if(!ee||!ft||(K(),typeof ResizeObserver>"u"))return;const Yt=new ResizeObserver(K);return Yt.observe(ee),Yt.observe(ft),Vt&&Yt.observe(Vt),()=>Yt.disconnect()});let he=null,le=null,L=!1,W=!1,pe=!1,Ue=!1,Le=!1,qe=!1,Ge=ge(!1),dt=!1,gt=null,Ct=ge(null),Ut=null,wt;function ne(){he!==null&&(clearTimeout(he),he=null)}function Ee(){le!==null&&(clearTimeout(le),le=null),Ut?.(),Ut=null}function rt(){Ee(),T(Ge,!0),T(de,!0),!Le&&(Le=!0,Us.notifyOpened())}function ot(){Ee(),clearTimeout(wt),T(Ge,!1),T(de,!1),W=!1,Ue=!1,Le&&(Le=!1,Us.notifyClosed())}function _t(){return L||W||pe||Ue}function tt(){if(!e(de)){ot();return}Ee(),le=setTimeout(()=>{le=null,_t()||ot()},ob),Ut=Us.deferClose(ot)}function St(){W=!0,Ee()}function kt(){W=!1,!pe&&!Ue&&tt()}function bt(){Ue=!0,clearTimeout(wt),Ee()}function Tt(ee){const ft=ee.relatedTarget instanceof Node?ee.relatedTarget:null;if(ft&&fe()?.contains(ft)||(Ue=!1,ft&&e(xe)?.contains(ft)))return;if(ft){!L&&!W&&ot();return}const Vt=ee.target;clearTimeout(wt),wt=setTimeout(()=>{const Yt=document.activeElement,_r=fe()?.contains(Yt)||e(xe)?.contains(Yt);Yt&&Yt!==Vt&&_r||!L&&!W&&ot()},0)}function Gt(){gt!==null&&clearTimeout(gt),dt=!0,gt=setTimeout(()=>{dt=!1,gt=null},0)}function tr(ee){const ft=ee.target,Vt=fe();ft instanceof Node&&Vt?.contains(ft)||ee.type==="scroll"&&e(xe)&&ft instanceof Node&&!ft.contains(e(xe))||(ee.type==="pointerdown"&&Gt(),ne(),ot())}It(()=>{if(e(Ge))return window.addEventListener("pointerdown",tr,!0),window.addEventListener("scroll",tr,!0),()=>{window.removeEventListener("pointerdown",tr,!0),window.removeEventListener("scroll",tr,!0)}});function qt(ee){if(ee.key!=="Escape")return;const ft=ee.target;ft instanceof Node&&fe()?.contains(ft)||(ee.preventDefault(),ee.stopPropagation(),qe=pe,ne(),ot())}It(()=>{if(e(de))return window.addEventListener("keydown",qt,!0),()=>window.removeEventListener("keydown",qt,!0)});const Re=d(()=>p()?Zf.select(Lt.state,p().id):null),ue=d(()=>e(Re)?e(Re):p()?.activePullRequest?p().activePullRequest:!p()?.prStatus||p().prNumber==null?null:{id:`legacy-pr-${p().prNumber}`,number:p().prNumber,url:p().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:p().prStatus,createdAt:p().updatedAt,updatedAt:p().updatedAt}),Ye=d(()=>Xf(p())),it=d(()=>{if(!p()||e(Ye))return[];const ee=p(),ft=ee.repositoryOwner&&ee.repositoryName?`${ee.repositoryOwner}/${ee.repositoryName}`:void 0;return Sv({workspacePRs:ee.pullRequests,activePR:e(ue),monitors:n(),workspaceRepo:ft,buildPrUrl:(Vt,Yt)=>mm(Vt,ee.repositoryOwner,ee.repositoryName,Yt),getDisplayTitle:Vt=>Vt.title})}),et=d(()=>e(it)[0]);function Ne(ee){const ft=ee.resource?.repository.provider==="gitlab"?`${ee.repo} !${ee.number}`:ee.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:ee.repo,number:ee.number}):v.workspace_card_prBadge_label({number:` #${ee.number}`});return[Qf(ft,ee),ee.title,ee.details].filter(Boolean).join(`
|
|
296
296
|
`)}function te(ee){ee.key==="Enter"&&J()?.(ee)}function fe(){return e(U)?document.getElementById(e(U)):null}function re(){return Array.from(fe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Oe(){const ee=e(xe)?.querySelector("[data-workspace-card-trigger]"),ft=fe();if(!ee||!ft)return null;const Vt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!ft.contains(_r)),Yt=Vt.indexOf(ee);return Yt>=0?Vt[Yt+1]:null}function be(ee){qe=!!e(xe)?.contains(ee),ot(),ee.focus({preventScroll:!0})}function ze(){const ee=e(xe)?.querySelector("[data-workspace-card-trigger]");ee&&be(ee)}async function Fe(ee){if(ee.key==="Escape"&&e(de)){ee.preventDefault(),ee.stopPropagation(),ot();return}ee.key!=="ArrowDown"||ae()||!p()||(ee.preventDefault(),ee.stopPropagation(),T(Ge,!0),T(de,!0),await ca(),re()[0]?.focus({preventScroll:!0}))}function Ve(ee){const ft=re(),Vt=ee.key==="Tab"&&ee.shiftKey&&ee.currentTarget===ft[0],_r=ee.key==="Tab"&&!ee.shiftKey&&ee.currentTarget===ft.at(-1)?Oe():null;ee.key!=="Escape"&&!Vt&&!_r||(ee.preventDefault(),ee.stopPropagation(),_r?be(_r):ze())}function Xe(){L=!0,Ee(),Us.settleDeferredCloses(),K(),ce()?.(),p()&&!ae()&&!pe&&(ne(),T(Ge,!0),he=setTimeout(()=>{he=null,rt()},Us.currentOpenDelay))}function je(){L=!1,ne(),!pe&&!Ue&&tt()}function $e(){pe=!0,ne(),Ee(),!qe&&(dt||p()&&!ae()&&(T(Ge,!0),T(de,!0)))}function De(ee){const ft=ee.relatedTarget instanceof Node?ee.relatedTarget:null;ft&&e(xe)?.contains(ft)||(qe=!1,pe=!1,!(ft&&fe()?.contains(ft))&&!L&&!W&&ot())}It(()=>{ae()&&(ne(),Ee(),ot())});let Qe=ge(null),ut=ge(!1),st;It(()=>{const ee=p()?.id;st!==ee&&(st=ee,T(ut,!1)),e(Qe)&&e(Qe).workspaceId!==p()?.id&&Mt()});function lt(ee){if(!p())return;const ft=$d(ee);if(ft){if(T(ut,!1),vt().length===0){T(Qe,null);return}T(Qe,{...ft,returnFocus:ee.target instanceof HTMLElement?ee.target.closest("button")??e(xe)?.querySelector("button")??null:null,workspaceId:p().id},!0)}}function Mt(){T(Qe,null),T(ut,!1)}It(()=>{e(ut)&&T(Qe,null)}),eo(()=>{ne(),Ee(),gt!==null&&(clearTimeout(gt),gt=null),ot()});function vt(){if(!p())return[];const ee=[];return me()&&ee.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:Bd,onClick:()=>{me()?.(),Mt()}}),ee.push(...sb(p().id,{connected:a(),onClose:Mt})),s()||(e(Ye)||ee.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Tg,onClick:()=>{Lt.dispatch(ev({workspaceId:p().id,workspaceTitle:p().title})),Mt()}}),ee.push({id:"archive",label:v.workspace_card_archive_label(),icon:Fd,onClick:()=>{Lt.dispatch(Xd(p().id)),Mt()}}),ee.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:zd,destructive:!0,onClick:()=>{Lt.dispatch(Zd(p().id)),Mt()}})),ee}let jt=d(()=>R()&&P()?P():i()?.subtitle??""),Xt=d(()=>f()&&f().tasks.total>0?f().tasks.completed/f().tasks.total:0),Qt=d(()=>!!f()&&(f().tasks.total>0||f().files.changed>0||f().commits.total>0||f().pr.hasOpen||f().pr.hasMerged)),cr=d(()=>e(Ye)?void 0:q()),Hr=d(()=>!f()||e(Ye)?"":f().pr.hasMerged?v.workspace_card_prMerged_label({number:f().pr.number??""}):f().pr.hasOpen?v.workspace_card_prOpen_label({number:f().pr.number?`#${f().pr.number}`:""}):""),ln=d(()=>i()?.phase==="planning"?R()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:z()||(f()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const $r={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var mr={get workspace(){return p()},set workspace(ee){p(ee),_()},get phase(){return i()},set phase(ee){i(ee),_()},get stats(){return f()},set stats(ee){f(ee),_()},get variant(){return g()},set variant(ee="compact"){g(ee),_()},get showTime(){return O()},set showTime(ee=!0){O(ee),_()},get isRunning(){return b()},set isRunning(ee=!1){b(ee),_()},get isUnread(){return h()},set isUnread(ee=!1){h(ee),_()},get isWaiting(){return A()},set isWaiting(ee){A(ee),_()},get isPinned(){return M()},set isPinned(ee=!1){M(ee),_()},get streamingAgentIds(){return B()},set streamingAgentIds(ee=[]){B(ee),_()},get hasSpec(){return z()},set hasSpec(ee=!1){z(ee),_()},get isAgentRunning(){return R()},set isAgentRunning(ee=!1){R(ee),_()},get agentDigest(){return P()},set agentDigest(ee){P(ee),_()},get trailingLabel(){return H()},set trailingLabel(ee){H(ee),_()},get title(){return C()},set title(ee){C(ee),_()},get repoName(){return F()},set repoName(ee){F(ee),_()},get branch(){return q()},set branch(ee){q(ee),_()},get onClick(){return J()},set onClick(ee){J(ee),_()},get onAction(){return Y()},set onAction(ee){Y(ee),_()},get onTogglePin(){return we()},set onTogglePin(ee){we(ee),_()},get onMarkAsRead(){return se()},set onMarkAsRead(ee){se(ee),_()},get onOpenInNewWindow(){return me()},set onOpenInNewWindow(ee){me(ee),_()},get onHover(){return ce()},set onHover(ee){ce(ee),_()},get highlighted(){return Te()},set highlighted(ee=!1){Te(ee),_()},get selected(){return oe()},set selected(ee=!1){oe(ee),_()},get highlightId(){return Me()},set highlightId(ee){Me(ee),_()},get suppressHover(){return ae()},set suppressHover(ee=!1){ae(ee),_()},get isolateHoverReveal(){return Q()},set isolateHoverReveal(ee=!1){Q(ee),_()},get class(){return Se()},set class(ee){Se(ee),_()},get actions(){return _e()},set actions(ee){_e(ee),_()},$set:Bt,$on:(ee,ft)=>Ft(t,ee,ft)},qn=Et(),ea=We(qn);{var Vn=ee=>{var ft=qk(),Vt=We(ft);let Yt;var _r=I(Vt);{let mt=d(()=>p().title||v.workspace_links_untitled_label()),Rt=d(()=>`workspace-status-state-${p().id}${M()?` workspace-pinned-state-${p().id}`:""}${e(de)?` ${e(U)}`:""}`),ar=d(()=>e(G)?"page":void 0);xt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(mt)},get"aria-describedby"(){return e(Rt)},get"aria-current"(){return e(ar)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:hr=>{hr.stopPropagation(),J()?.(hr)}})}var Kn=m(_r,2),Jr=I(Kn);{var Gn=mt=>{var Rt=Ok(),ar=I(Rt);{var hr=wr=>{_p(wr,{get workspaceId(){return p().id},get slot(){return o()}})};D(ar,wr=>{o()!==null&&wr(hr)})}w(Rt),u(mt,Rt)};D(Jr,mt=>{a()&&mt(Gn)})}var pn=m(Jr,2);Ei(pn,{get content(){return e(V).tooltip},side:"bottom",sideOffset:4,children:(mt,Rt)=>{rb(mt,{get status(){return e(Je)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Jn=m(pn,2),ta=N(Jn,!0);w(Kn);var jr=m(Kn,2),en=I(jr),rr=I(en),Wr=I(rr),fn=N(Wr,!0);fr(Wr,mt=>T(ke,mt),()=>e(ke)),w(rr),fr(rr,mt=>T(X,mt),()=>e(X));var xr=m(rr,2);{var Or=mt=>{var Rt=Dk(),ar=We(Rt),hr=I(ar);At(hr,{get icon(){return jl},size:"xs"}),w(ar);var wr=m(ar,2),Dr=N(wr,!0);k(yn=>{pt(ar,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
297
|
-
${we()?Te()?"opacity-0":ae()?"":Q()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),$(wr,"id",`workspace-pinned-state-${p().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(mt,Rt)};D(xr,mt=>{M()&&mt(Or)})}w(en);var gn=m(en,2);{var va=mt=>{var Rt=Bk(),ar=N(Rt,!0);k(()=>x(ar,H())),u(mt,Rt)};D(gn,mt=>{H()&&mt(va)})}var tn=m(gn,2);{var Yr=mt=>{const Rt=d(()=>e(et));var ar=zk(),hr=I(ar);{let wr=d(()=>Ne(e(Rt)));Ei(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=Et(),Dn=We(ra);{var Cr=cn=>{{let Er=d(()=>Ne(e(Rt)));xt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Rt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Rt).identity},get"data-pr-status"(){return e(Rt).status},onclick:nn=>{nn.stopPropagation();const Ra=p().id;Pf(async()=>{const{handleLink:Yn}=await import("./
|
|
297
|
+
${we()?Te()?"opacity-0":ae()?"":Q()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),$(wr,"id",`workspace-pinned-state-${p().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(mt,Rt)};D(xr,mt=>{M()&&mt(Or)})}w(en);var gn=m(en,2);{var va=mt=>{var Rt=Bk(),ar=N(Rt,!0);k(()=>x(ar,H())),u(mt,Rt)};D(gn,mt=>{H()&&mt(va)})}var tn=m(gn,2);{var Yr=mt=>{const Rt=d(()=>e(et));var ar=zk(),hr=I(ar);{let wr=d(()=>Ne(e(Rt)));Ei(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=Et(),Dn=We(ra);{var Cr=cn=>{{let Er=d(()=>Ne(e(Rt)));xt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Rt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Rt).identity},get"data-pr-status"(){return e(Rt).status},onclick:nn=>{nn.stopPropagation();const Ra=p().id;Pf(async()=>{const{handleLink:Yn}=await import("./BcLoDKLg.js").then(vn=>vn.l);return{handleLink:Yn}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Rt).url,{workspaceId:Ra,event:nn}))},children:(nn,Ra)=>{At(nn,{get icon(){return e(Rt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Fk(),nn=I(Er);At(nn,{get icon(){return e(Rt).statusIcon},size:14}),w(Er),k(Ra=>{pt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Rt).foregroundClass??""}`,"svelte-1ct56pd"),$(Er,"aria-label",Ra),$(Er,"data-pr-identity",e(Rt).identity),$(Er,"data-pr-status",e(Rt).status)},[()=>Ne(e(Rt))]),u(cn,Er)};D(Dn,cn=>{e(Rt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),k(wr=>$(ar,"aria-label",wr),[()=>e(Rt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(mt,ar)};D(tn,mt=>{e(et)&&mt(Yr)})}var Mr=m(tn,2);{var xa=mt=>{var Rt=Hk(),ar=I(Rt);{var hr=Dr=>{{let yn=d(()=>Gl(p()));lg(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>Gl(p())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Rt),k(()=>pt(Rt,1,`wc-secondary shrink-0 ${_e()||we()||h()&&se()?Te()?"opacity-0":ae()?"":Q()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(mt,Rt)};D(Mr,mt=>{O()&&mt(xa)})}w(jr);var rs=m(jr,2);{var ns=mt=>{var Rt=Wk(),ar=I(Rt);{var hr=Cr=>{{let Cn=d(()=>M()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>M()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>M()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());xt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
298
298
|
${e(Cn)??""}`},onclick:nn=>{nn.stopPropagation(),we()?.(nn)},get"aria-label"(){return e(cn)},get title(){return e(Er)},children:(nn,Ra)=>{var Yn=jk(),vn=I(Yn);At(vn,{get icon(){return jl},size:"xs"}),w(Yn),u(nn,Yn)},$$slots:{default:!0}})}};D(ar,Cr=>{we()&&Cr(hr)})}var wr=m(ar,2);{var Dr=Cr=>{{let Cn=d(()=>v.workspace_card_markAsRead_label()),cn=d(()=>v.workspace_card_markAsRead_label());xt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Er=>{Er.stopPropagation(),se()?.(Er)},get"aria-label"(){return e(Cn)},get title(){return e(cn)},children:(Er,nn)=>{At(Er,{get icon(){return Hd},size:"xs"})},$$slots:{default:!0}})}};D(wr,Cr=>{h()&&se()&&Cr(Dr)})}var yn=m(wr,2);un(yn,()=>_e()??Io);var ra=m(yn,2);{var Dn=Cr=>{{let Cn=d(vt),cn=d(()=>v.workspace_progressCard_actions_ariaLabel());Cl(Cr,{get items(){return e(Cn)},get ariaLabel(){return e(cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ut)},set open(Er){T(ut,Er,!0)}})}};D(ra,Cr=>{me()&&Cr(Dn)})}w(Rt),fr(Rt,Cr=>T(Ce,Cr),()=>e(Ce)),k(()=>pt(Rt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
299
299
|
${Q()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
300
300
|
${Te()?"opacity-100":ae()?"opacity-0":Q()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(mt,Rt)};D(rs,mt=>{(_e()||me()||we()||h()&&se())&&mt(ns)})}w(Vt),fr(Vt,mt=>T(xe,mt),()=>e(xe)),Un(Vt,(mt,Rt)=>vo?.(mt,Rt),()=>({id:Me()}));var Xr=m(Vt,2);{var rn=mt=>{eb(mt,{get id(){return e(U)},get anchor(){return`--workspace-list-${p().id??""}`},position:"right",get anchorElement(){return e(xe)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:St,onmouseleave:kt,onfocusin:bt,onfocusout:Tt,children:(Rt,ar)=>{var hr=Uk(),wr=I(hr);ib(wr,{get workspace(){return p()},get activeAgentIds(){return B()},onkeydown:Ve}),w(hr),fr(hr,Dr=>T(Ct,Dr),()=>e(Ct)),Rn("pointerenter",hr,St),Rn("pointerleave",hr,kt),Rr("focusin",hr,bt),Rr("focusout",hr,Tt),u(Rt,hr)},$$slots:{default:!0}})};D(Xr,mt=>{e(de)&&!ae()&&mt(rn)})}var On=m(Xr,2);{var kr=mt=>{const Rt=d(vt);var ar=Et(),hr=We(ar);{var wr=Dr=>{{let yn=d(()=>e(Qe)?.x??0),ra=d(()=>e(Qe)?.y??0),Dn=d(()=>e(Qe)?.returnFocus),Cr=d(()=>v.workspace_progressCard_actions_ariaLabel());eu(Dr,{get x(){return e(yn)},get y(){return e(ra)},get returnFocus(){return e(Dn)},get ariaLabel(){return e(Cr)},get items(){return e(Rt)},onClickOutside:Mt})}};D(hr,Dr=>{e(Rt).length>0&&Dr(wr)})}u(mt,ar)};D(On,mt=>{e(Qe)&&mt(kr)})}k((mt,Rt,ar)=>{pt(Vt,1,mt,"svelte-1ct56pd"),$(Vt,"data-pinned",M()),$(Vt,"data-highlight-id",Me()),Yt=Nn(Vt,"",Yt,{"anchor-name":`--workspace-list-${p().id??""}`}),$(Jn,"id",`workspace-status-state-${p().id??""}`),x(ta,e(V).accessibleName),pt(rr,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as D,bo as d,bw as P,b}from"./AeC4KVgG.js";import{bs as S,a7 as A,ay as C,W as M,bn as x,aA as m,aD as i,c9 as l}from"./CJxGDkBm.js";import{i as z}from"./k2awEenT.js";import{D as f,M as B}from"./
|
|
1
|
+
import{t as D,bo as d,bw as P,b}from"./AeC4KVgG.js";import{bs as S,a7 as A,ay as C,W as M,bn as x,aA as m,aD as i,c9 as l}from"./CJxGDkBm.js";import{i as z}from"./k2awEenT.js";import{D as f,M as B}from"./BrNYPcY3.js";import{S as N,p as W}from"./D1Wd78Sv.js";import{N as $}from"./bXhYFuj1.js";import{IX as j,vq as E,bl as J}from"./BkzMrEqG.js";import{h as K}from"./BcLoDKLg.js";import{a9 as O}from"./-5BGDZDk.js";function R(c,s){if(new.target)return D({component:R,...c});S(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new $,p=l(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
|
|
2
2
|
${t()}
|
|
3
3
|
\`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return W(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?j.dispatch(E(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:J(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:P,$on:(e,r)=>b(s,e,r)},u=A(),y=C(u);{var I=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{B(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},h=e=>{f(e,{kind:"custom",children:(r,n)=>{{let v=l(()=>i(p)?.diagram??null),_=l(()=>i(p)?.error);N(r,{get diagram(){return i(v)},get source(){return t()},get sourceError(){return i(_)},onBindingClick:k})}},$$slots:{default:!0}})};z(y,e=>{o()==="mermaid"?e(I):e(h,-1)})}return M(c,u),x(w)}export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as K,e as ke,aK as oe,bM as le,bL as ie,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as G,aA as A,aB as B,bl as Q,be as de,b$ as ce,bO as R}from"./CJxGDkBm.js";import{t as ge,bo as M,bw as be,bs as U,bq as Ee,b as ye,bm as z}from"./AeC4KVgG.js";import{i as re}from"./k2awEenT.js";import{c as ue}from"./ZcoUa9Jg.js";import{s as Le}from"./DrHJ7oPv.js";import{t as Y}from"./ooYvYQ5v.js";import{f as fe}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{k as De}from"./HftJbvyF.js";import{s as We}from"./Dp2nUoTL.js";import{IX as ve,tG as Se,p4 as Re}from"./BkzMrEqG.js";import{s as ze,W as Ne}from"./
|
|
1
|
+
import{aR as K,e as ke,aK as oe,bM as le,bL as ie,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as G,aA as A,aB as B,bl as Q,be as de,b$ as ce,bO as R}from"./CJxGDkBm.js";import{t as ge,bo as M,bw as be,bs as U,bq as Ee,b as ye,bm as z}from"./AeC4KVgG.js";import{i as re}from"./k2awEenT.js";import{c as ue}from"./ZcoUa9Jg.js";import{s as Le}from"./DrHJ7oPv.js";import{t as Y}from"./ooYvYQ5v.js";import{f as fe}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{k as De}from"./HftJbvyF.js";import{s as We}from"./Dp2nUoTL.js";import{IX as ve,tG as Se,p4 as Re}from"./BkzMrEqG.js";import{s as ze,W as Ne}from"./CK3bnTgZ.js";import{i as Oe,n as Be,d as je}from"./ClV-2Tgv.js";import{t as qe,s as Ve,l as Ge,u as Xe}from"./DbaAc_-Q.js";function yt(l,n){let e=null,u=K;var v;if(K){e=Me;for(var s=Pe(document.head);s!==null&&(s.nodeType!==ke||s.data!==l);)s=oe(s);if(s===null)le(!1);else{var p=oe(s);s.remove(),ie(p)}}K||(v=document.head.appendChild(Ie()));try{Ce(()=>{var i=Te(()=>n(v));i.f|=Ae,K||(i.nodes===null?i.nodes={start:v,end:v,a:null,t:null}:i.nodes.end=v)})}finally{u&&(le(!0),ie(e))}}const we=3e4,Je=3;function X(l){return l.type==="browser"&&typeof l.ownerAgentId=="string"&&l.ownerAgentId.length>0}function wt(l,n,e,u,v){return l?Ue(new Map,n,e,u,v):new Map}const Ke={ttlMs:we,maxInactiveTabs:Je};function Qe(l={}){return{...Ke,...l}}function ht(l,n){if(l.size!==n.size)return!1;for(const[e,u]of l)if(n.get(e)!==u)return!1;return!0}function Ue(l,n,e,u,v){const{ttlMs:s,maxInactiveTabs:p}=Qe(v),i=new Set(n.map(a=>a.id)),d=new Set(n.filter(a=>a.type==="browser").map(a=>a.id)),m=new Set(n.filter(X).map(a=>a.id)),c=new Map;for(const[a,k]of l)i.has(a)&&c.set(a,k);e&&i.has(e)&&c.set(e,u);for(const a of m)c.has(a)||c.set(a,u);for(const[a,k]of c)a!==e&&!d.has(a)&&u-k>=s&&c.delete(a);const g=Array.from(c.entries()).filter(([a])=>a!==e&&!d.has(a)).sort(([,a],[,k])=>a-k);for(;g.length>p;){const a=g.shift();a&&c.delete(a[0])}return c}function xt(l,n,e,u=we,v=[]){const s=new Set(v.filter(i=>i.type==="browser").map(i=>i.id));let p=null;for(const[i,d]of l){if(i===n||s.has(i))continue;const m=Math.max(0,u-(e-d));p=p===null?m:Math.min(p,m)}return p}var Ye=B('<div class="absolute inset-0 z-10 overflow-hidden bg-background"><!></div>'),Ze=B('<div class="relative flex h-full min-h-0 w-full flex-col" data-workspace-home-panel-gate=""><div class="flex min-h-0 w-full flex-1 flex-col"><!></div> <!></div>');function he(l,n){if(new.target)return ge({component:he,...l});pe(n,!0);const e=()=>U(a,"$view$",p),u=()=>U(J,"$loaded$",p),v=()=>U(k,"$canMove$",p),s=()=>U(W,"$waiting$",p),[p,i]=Ee();let d=M(n,"workspaceId",7),m=M(n,"children",7),c=M(n,"clock",23,()=>Date.now);const g=$e(ae(()=>d()));me(()=>{g.set(d())});const a=qe(g),k=Ve(g),W=Ge(g),J=Xe(g),S=G(e);let P=O(Fe(Oe)),j=O(!1);ze({markContentLoaded:()=>{y(j,!0)}}),He(()=>{const o={workspaceId:d(),loaded:u(),unavailable:r(S)?.unavailable===!0,contentLoaded:r(j),now:c()()},f=Be(ae(()=>r(P)),o);f.generation!==ae(()=>r(P)).generation&&y(j,!1),y(P,f,!0)});var te={get workspaceId(){return d()},set workspaceId(o){d(o),A()},get children(){return m()},set children(o){m(o),A()},get clock(){return c()},set clock(o=Date.now){c(o),A()},$set:be,$on:(o,f)=>ye(n,o,f)},q=Ze(),t=L(q),h=L(t);De(h,()=>r(P).generation,o=>{var f=Z(),I=ee(f);We(I,m),w(o,f)}),D(t);var $=V(t,2);{var C=o=>{var f=Ye(),I=L(f);Ne(I,{get view(){return r(S)},get canMove(){return v()},get waiting(){return s()},onWait:()=>ve.dispatch(Re(d())),onMove:()=>ve.dispatch(Se(d()))}),D(f),w(o,f)};re($,o=>{r(S)?.unavailable&&o(C)})}D(q),N(()=>t.inert=r(S)?.unavailable?!0:void 0),w(l,q);var F=_e(te);return i(),F}var et=B('<div class="flex h-full flex-col items-center justify-center gap-3 text-subtle"><p> </p> <!></div>'),tt=B('<div class="flex h-full w-full items-center justify-center" role="status"><div class="size-5 animate-pulse rounded-full bg-muted motion-reduce:animate-none"></div></div>'),at=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p> <!></div></div>'),rt=B('<div class="panel-content-renderer h-full w-full overflow-hidden svelte-1ed760w"><!></div>');function nt(l,n){if(new.target)return ge({component:nt,...l});pe(n,!0);let e=M(n,"tab",7),u=M(n,"workspaceId",7),v=M(n,"layoutId",7),s=M(n,"isActive",7,!0),p=M(n,"isPanelFocused",7,!1),i=M(n,"onFocus",7),d=O(0),m=O(null),c=O(void 0),g=O(!1);const a=G(()=>(r(d),Y.get(e().type))),k=G(()=>(r(d),Y.getLoadedComponent(e().type))),W=G(()=>r(m)===e().type&&r(c)?r(c):s()||X(e())?r(k):void 0);me(()=>{const t=e().type,$=s()||X(e()),C=r(d),F=r(a),o=r(k);let f=!1;if((!F||r(m)!==t)&&(y(m,null),y(c,void 0),y(g,!1)),!(!F||!$)){if(o){y(m,t,!0),y(c,o,!0);return}if(!(r(m)===t&&r(c)))return y(g,!1),Y.loadComponent(t).then(I=>{f||!s()&&!X(e())||e().type!==t||r(d)!==C||(y(m,t,!0),y(c,I,!0))},()=>{f||!s()&&!X(e())||e().type!==t||r(d)!==C||y(g,!0)}),()=>{f=!0}}});function J(){Y.resetComponentLoad(e().type),y(d,r(d)+1)}var S={get tab(){return e()},set tab(t){e(t),A()},get workspaceId(){return u()},set workspaceId(t){u(t),A()},get layoutId(){return v()},set layoutId(t){v(t),A()},get isActive(){return s()},set isActive(t=!0){s(t),A()},get isPanelFocused(){return p()},set isPanelFocused(t=!1){p(t),A()},get onFocus(){return i()},set onFocus(t){i(t),A()},$set:be,$on:(t,h)=>ye(n,t,h)},P=rt(),j=L(P);{var te=t=>{var h=Z(),$=ee(h);{var C=_=>{he(_,{get workspaceId(){return u()},children:(b,x)=>{var T=Z(),H=ee(T);ue(H,()=>r(W),(E,ne)=>{ne(E,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(b,T)},$$slots:{default:!0}})},F=G(()=>r(W)&&je(e())),o=_=>{var b=Z(),x=ee(b);ue(x,()=>r(W),(T,H)=>{H(T,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return i()}})}),w(_,b)},f=_=>{var b=et(),x=L(b),T=Q(x,!0),H=V(x,2);fe(H,{variant:"outline",size:"sm",onclick:J,children:(E,ne)=>{de();var se=ce();N(xe=>R(se,xe),[()=>z.ui_errorToast_retry_label()]),w(E,se)},$$slots:{default:!0}}),D(b),N(E=>R(T,E),[()=>z.error_boundary_title()]),w(_,b)},I=_=>{var b=tt();N(x=>Le(b,"aria-label",x),[()=>z.workspace_hoverCard_loading_label()]),w(_,b)};re($,_=>{r(F)?_(C):r(W)?_(o,1):s()&&r(g)?_(f,2):s()&&_(I,3)})}w(t,h)},q=t=>{var h=at(),$=L(h),C=L($),F=Q(C,!0),o=V(C,2),f=Q(o,!0),I=V(o,2),_=Q(I,!0),b=V(I,2);fe(b,{class:"mt-4",variant:"outline",size:"sm",onclick:J,children:(x,T)=>{de();var H=ce();N(E=>R(H,E),[()=>z.ui_errorToast_retry_label()]),w(x,H)},$$slots:{default:!0}}),D($),D(h),N((x,T)=>{R(F,e().title),R(f,x),R(_,T)},[()=>z.layout_panelContent_typeLabel({type:e().type}),()=>z.layout_panelContent_notImplemented_label()]),w(t,h)};re(j,t=>{r(a)?t(te):t(q,-1)})}return D(P),w(l,P),_e(S)}export{Je as M,we as P,he as W,nt as a,ht as b,xt as g,yt as h,wt as i,Ue as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as xe}from"./LOqiMc_U.js";import{p as be}from"./DhFCUcs_.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./B1ScYY03.js";import{p as ze}from"./CfNfee-Y.js";import{f as O,o as Q}from"./CzEsFefN.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
1
|
+
import{s as xe}from"./CHFWhULQ.js";import{p as be}from"./BQQo4uEb.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./BrNYPcY3.js";import{p as ze}from"./CfNfee-Y.js";import{f as O,o as Q}from"./DEiYC7jA.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${s.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${s.sectionStrokeWidth};
|