@intent-hq/web 2.372.2 → 2.372.4

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.
Files changed (146) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CYyfRGPT.js → -JM4IO5s.js} +1 -1
  3. package/web/app/immutable/chunks/{O-dTT9_6.js → 0x9fwj6X.js} +1 -1
  4. package/web/app/immutable/chunks/{DqfSttpc.js → 1cfvZqIL.js} +1 -1
  5. package/web/app/immutable/chunks/{OfToEAub.js → 4V5RPZv7.js} +1 -1
  6. package/web/app/immutable/chunks/{D-usBtmP.js → 6s1pPvLx.js} +4 -4
  7. package/web/app/immutable/chunks/{CAG8YIXN.js → 8kN6wMYA.js} +1 -1
  8. package/web/app/immutable/chunks/{2XoFwLeT.js → B0rlWqYd.js} +1 -1
  9. package/web/app/immutable/chunks/{CajUAX8N.js → B62l45Uf.js} +2 -2
  10. package/web/app/immutable/chunks/{BApUcPKR.js → B7-7bZi9.js} +1 -1
  11. package/web/app/immutable/chunks/{vQ3XSTvm.js → B70PGGIw.js} +1 -1
  12. package/web/app/immutable/chunks/{BOD8_Ffh.js → BBFSGGQF.js} +1 -1
  13. package/web/app/immutable/chunks/{1mJrE3jk.js → BDARQpEZ.js} +1 -1
  14. package/web/app/immutable/chunks/{f50N8hQo.js → BEUFwM79.js} +1 -1
  15. package/web/app/immutable/chunks/{D0xQDzbV.js → BGPjhZRB.js} +1 -1
  16. package/web/app/immutable/chunks/{DHpb0iQY.js → BGTJWNfe.js} +1 -1
  17. package/web/app/immutable/chunks/{BpSBXUuJ.js → BGdVu4MB.js} +2 -2
  18. package/web/app/immutable/chunks/{DsFpAZo7.js → BHINa8Ry.js} +2 -2
  19. package/web/app/immutable/chunks/{Z4Jzxw8B.js → BIHiol8V.js} +1 -1
  20. package/web/app/immutable/chunks/{DE_K0DMt.js → BIoeY2kf.js} +3 -3
  21. package/web/app/immutable/chunks/{CQy8trug.js → BJyEBl3g.js} +1 -1
  22. package/web/app/immutable/chunks/{m11ohSMf.js → BO2BotXa.js} +1 -1
  23. package/web/app/immutable/chunks/{ZJOyleCJ.js → BPE9rssu.js} +3 -3
  24. package/web/app/immutable/chunks/{BuQN2T0g.js → BTTV-GiU.js} +2 -2
  25. package/web/app/immutable/chunks/{CQR1o7um.js → BTtsrh4I.js} +2 -2
  26. package/web/app/immutable/chunks/{NPKMdhKA.js → BTwXmxv4.js} +2 -2
  27. package/web/app/immutable/chunks/{BesmUwoU.js → Ba0RqSDe.js} +1 -1
  28. package/web/app/immutable/chunks/{RwJyhbRN.js → BcI2Qs88.js} +1 -1
  29. package/web/app/immutable/chunks/{DFQ6yCR1.js → BlCrzIC_.js} +13 -13
  30. package/web/app/immutable/chunks/{DadrYnVI.js → BlEjgaTq.js} +1 -1
  31. package/web/app/immutable/chunks/{B89v0U4a.js → BlT-PlLX.js} +3 -3
  32. package/web/app/immutable/chunks/{CsleiD5D.js → BmpDBFC8.js} +1 -1
  33. package/web/app/immutable/chunks/{DC0oh9YH.js → Bng2Wjmd.js} +1 -1
  34. package/web/app/immutable/chunks/{CrL6DZCQ.js → BoVvYfWW.js} +1 -1
  35. package/web/app/immutable/chunks/{BehvUfjM.js → BoqgKStq.js} +1 -1
  36. package/web/app/immutable/chunks/{BZQZwdGm.js → BqwlUVV2.js} +1 -1
  37. package/web/app/immutable/chunks/{CtZeiR9i.js → BtmPL5YS.js} +1 -1
  38. package/web/app/immutable/chunks/{eGqXrC9g.js → BuJuLth3.js} +1 -1
  39. package/web/app/immutable/chunks/{Ds6NYQhM.js → BukcKDm8.js} +1 -1
  40. package/web/app/immutable/chunks/{BrFkQr4z.js → Byis73mI.js} +1 -1
  41. package/web/app/immutable/chunks/{BIkmNkpw.js → C0QlGAGX.js} +1 -1
  42. package/web/app/immutable/chunks/{CnzZSXm6.js → C0pO6HUL.js} +1 -1
  43. package/web/app/immutable/chunks/{vlM04DTZ.js → C8EZa-xD.js} +1 -1
  44. package/web/app/immutable/chunks/{CBHdapAk.js → CACF-3uP.js} +1 -1
  45. package/web/app/immutable/chunks/{ulO2uazy.js → CDypb-9r.js} +1 -1
  46. package/web/app/immutable/chunks/{CMAV3UUk.js → CE4gPfvG.js} +1 -1
  47. package/web/app/immutable/chunks/{BPwzpRKZ.js → CEEa3RhU.js} +1 -1
  48. package/web/app/immutable/chunks/{Di4F3rxF.js → CEwqW-JV.js} +1 -1
  49. package/web/app/immutable/chunks/{DY06SZsl.js → CGn7nYWV.js} +1 -1
  50. package/web/app/immutable/chunks/{BDThAQjj.js → CHpIe7_H.js} +1 -1
  51. package/web/app/immutable/chunks/{BHtMcien.js → CIZP3oBY.js} +1 -1
  52. package/web/app/immutable/chunks/{B6l-Kttu.js → CJ-lCrFi.js} +1 -1
  53. package/web/app/immutable/chunks/{CjYF1At4.js → CMFcg3RE.js} +1 -1
  54. package/web/app/immutable/chunks/{DdJj628K.js → CNefgEA2.js} +1 -1
  55. package/web/app/immutable/chunks/{Qh1eK2X9.js → CRHarGqr.js} +1 -1
  56. package/web/app/immutable/chunks/{D82C3bhe.js → CSfWCx1k.js} +1 -1
  57. package/web/app/immutable/chunks/{DCO02E6M.js → CSr8o6qm.js} +1 -1
  58. package/web/app/immutable/chunks/{BTi_uPkP.js → CVnLEltT.js} +2 -2
  59. package/web/app/immutable/chunks/{DyaBo2y6.js → CWm_YxN-.js} +1 -1
  60. package/web/app/immutable/chunks/{ftVcR4tQ.js → CYUq_fja.js} +1 -1
  61. package/web/app/immutable/chunks/{vE2E6sS8.js → CZ7G19nC.js} +1 -1
  62. package/web/app/immutable/chunks/{BoefNJ5Q.js → CbbK8WaD.js} +1 -1
  63. package/web/app/immutable/chunks/{BbobBw8S.js → Cd2ZM5fn.js} +1 -1
  64. package/web/app/immutable/chunks/{B0kpU9fA.js → ChADavMb.js} +2 -2
  65. package/web/app/immutable/chunks/{Cv2q5gkL.js → CjJYMl8M.js} +1 -1
  66. package/web/app/immutable/chunks/{CL1PbmdJ.js → CjoZjg16.js} +1 -1
  67. package/web/app/immutable/chunks/Ck2JBj0W.js +3 -0
  68. package/web/app/immutable/chunks/{CtKyfVB_.js → CnjuQpEd.js} +1 -1
  69. package/web/app/immutable/chunks/{C79sRXBG.js → CpGAJSr-.js} +1 -1
  70. package/web/app/immutable/chunks/{CIJY2gxU.js → Cqsgf1DM.js} +1 -1
  71. package/web/app/immutable/chunks/{DLmLA9DN.js → CrrouvLD.js} +1 -1
  72. package/web/app/immutable/chunks/{9DRLCqFH.js → Csqgcuja.js} +1 -1
  73. package/web/app/immutable/chunks/{Dkvzw9dt.js → Cub6NZJQ.js} +1 -1
  74. package/web/app/immutable/chunks/{DSIsc1Ss.js → Cuij5UQt.js} +1 -1
  75. package/web/app/immutable/chunks/{A-qdlPO9.js → CvPNqaI1.js} +1 -1
  76. package/web/app/immutable/chunks/{BWDjljS8.js → CxNWBXR-.js} +3 -3
  77. package/web/app/immutable/chunks/{5Z6V3HtS.js → D0Rl0jWy.js} +3 -3
  78. package/web/app/immutable/chunks/{BQNpzQlP.js → D1B_DGCd.js} +1 -1
  79. package/web/app/immutable/chunks/{B2NZzPt-.js → D1gQR6EA.js} +1 -1
  80. package/web/app/immutable/chunks/{CrBBYf3_.js → D2akGP2t.js} +1 -1
  81. package/web/app/immutable/chunks/{wDPUZWBZ.js → D69enMvZ.js} +1 -1
  82. package/web/app/immutable/chunks/{Dge5ZGj2.js → D6nqIgl8.js} +1 -1
  83. package/web/app/immutable/chunks/{Df3mQZLv.js → D72FFXC3.js} +3 -3
  84. package/web/app/immutable/chunks/{BEWjMMmw.js → D9N7PGtO.js} +3 -3
  85. package/web/app/immutable/chunks/{DOOplL0N.js → DA_CqgBx.js} +2 -2
  86. package/web/app/immutable/chunks/{fth1noPu.js → DB4YPFuG.js} +1 -1
  87. package/web/app/immutable/chunks/{CZDluI6H.js → DCdZE6Zv.js} +1 -1
  88. package/web/app/immutable/chunks/{D1wNvwqn.js → DE0oDk53.js} +1 -1
  89. package/web/app/immutable/chunks/{Bpb7JDWq.js → DE9J1g7V.js} +1 -1
  90. package/web/app/immutable/chunks/{R-aBLidW.js → DEsEAjIo.js} +3 -3
  91. package/web/app/immutable/chunks/{DCzChru-.js → DJbcK1vm.js} +1 -1
  92. package/web/app/immutable/chunks/{Oweeyv1v.js → DL9oF9R-.js} +1 -1
  93. package/web/app/immutable/chunks/{DQewNXDh.js → DOOWwNKc.js} +1 -1
  94. package/web/app/immutable/chunks/{CKK0Gz-a.js → DRX7fFc0.js} +2 -2
  95. package/web/app/immutable/chunks/{lCSqh71Z.js → DYb2Jx_H.js} +1 -1
  96. package/web/app/immutable/chunks/{yLWVsiXj.js → DZXtm4_Y.js} +1 -1
  97. package/web/app/immutable/chunks/{zROLTv2m.js → DcPlD4Yk.js} +1 -1
  98. package/web/app/immutable/chunks/{Bxb8LI6C.js → DfC089Aj.js} +1 -1
  99. package/web/app/immutable/chunks/{Ixhw1ROs.js → DfybFhnX.js} +1 -1
  100. package/web/app/immutable/chunks/{B5PU_SZw.js → Dl1bhT5L.js} +1 -1
  101. package/web/app/immutable/chunks/{lFTk8wpi.js → Dp1LDv4x.js} +1 -1
  102. package/web/app/immutable/chunks/{55NQjm3t.js → DskDJYfd.js} +1 -1
  103. package/web/app/immutable/chunks/{B418rdhJ.js → DtDGJeDZ.js} +1 -1
  104. package/web/app/immutable/chunks/{CNsgRr0G.js → DthXaxFc.js} +1 -1
  105. package/web/app/immutable/chunks/{OusZ11tk.js → DwIiGflF.js} +1 -1
  106. package/web/app/immutable/chunks/{B9STQthu.js → DyZwlsjA.js} +1 -1
  107. package/web/app/immutable/chunks/{CPj4SFCC.js → EYYp06eB.js} +1 -1
  108. package/web/app/immutable/chunks/{oaGKgX0i.js → Fg5V-_KH.js} +1 -1
  109. package/web/app/immutable/chunks/{BPW7kjsh.js → Id9rbUde.js} +1 -1
  110. package/web/app/immutable/chunks/{BpWCMu3u.js → JHEpx9qH.js} +1 -1
  111. package/web/app/immutable/chunks/{B9Y57c7j.js → NDFzzX6j.js} +6 -6
  112. package/web/app/immutable/chunks/{BTcBtO7l.js → OKyJRSao.js} +1 -1
  113. package/web/app/immutable/chunks/{ahq3r4Wz.js → PAnofhoS.js} +1 -1
  114. package/web/app/immutable/chunks/{LbiCax8N.js → RLm3umLY.js} +1 -1
  115. package/web/app/immutable/chunks/{EwMtkE4R.js → RNLMbZ9C.js} +4 -4
  116. package/web/app/immutable/chunks/{BIn5egRU.js → TWIpzPb0.js} +1 -1
  117. package/web/app/immutable/chunks/{C-y2Lv4J.js → ZVjzo5B6.js} +1 -1
  118. package/web/app/immutable/chunks/{DsnmJyUD.js → _q3XqkyK.js} +1 -1
  119. package/web/app/immutable/chunks/{CR5ZxoLH.js → b2N6VSvj.js} +1 -1
  120. package/web/app/immutable/chunks/{CwB9Am9z.js → f_7_jVTC.js} +3 -3
  121. package/web/app/immutable/chunks/{D9-KwDth.js → gprpeC7D.js} +1 -1
  122. package/web/app/immutable/chunks/{xs1C7KnJ.js → p9pVDf-Y.js} +1 -1
  123. package/web/app/immutable/chunks/{B0lZCUS6.js → pjjCtVad.js} +1 -1
  124. package/web/app/immutable/chunks/{uA3ZM6fH.js → pnLCy_6A.js} +1 -1
  125. package/web/app/immutable/chunks/{CRBVaIXN.js → qc5YRWua.js} +1 -1
  126. package/web/app/immutable/chunks/{2YKrLT6f.js → xHTS7_DQ.js} +1 -1
  127. package/web/app/immutable/entry/{app.-hRXZvoO.js → app.Bn2XrulZ.js} +2 -2
  128. package/web/app/immutable/entry/start.DdzwOLyS.js +1 -0
  129. package/web/app/immutable/nodes/{0.Bf92A2SS.js → 0.BCyk8Eor.js} +1 -1
  130. package/web/app/immutable/nodes/{1.BWS1uOkH.js → 1.D2GMUxe6.js} +1 -1
  131. package/web/app/immutable/nodes/{10.xvB45P-Z.js → 10.CqLjvueR.js} +4 -4
  132. package/web/app/immutable/nodes/{11.CWt_UL31.js → 11.DjHiLQV_.js} +1 -1
  133. package/web/app/immutable/nodes/{15.BFkam5BT.js → 15.DBgLfjTo.js} +1 -1
  134. package/web/app/immutable/nodes/{19.DASGyMmu.js → 19.C65aoXG7.js} +2 -2
  135. package/web/app/immutable/nodes/{2.BLp65UB0.js → 2.DyILpfUv.js} +4 -4
  136. package/web/app/immutable/nodes/{3.sLYNU_z5.js → 3.BUXW6SHm.js} +1 -1
  137. package/web/app/immutable/nodes/{4.CYsqPvqR.js → 4.IOdsbvEy.js} +1 -1
  138. package/web/app/immutable/nodes/{5.BDPUNvGt.js → 5.CdjllGpy.js} +1 -1
  139. package/web/app/immutable/nodes/{6.Cmp_rej6.js → 6.B9bgqfmM.js} +1 -1
  140. package/web/app/immutable/nodes/{7.BeJ_Zasr.js → 7.CJeEPi1x.js} +1 -1
  141. package/web/app/immutable/nodes/{8.CTerGGp8.js → 8.CoXwlNYv.js} +1 -1
  142. package/web/app/immutable/nodes/{9.D8TUAlXi.js → 9.B7TZvLdB.js} +4 -4
  143. package/web/app/version.json +1 -1
  144. package/web/index.html +9 -9
  145. package/web/app/immutable/chunks/Qqd9dQHZ.js +0 -3
  146. package/web/app/immutable/entry/start.C3r7ji-v.js +0 -1
@@ -1,4 +1,4 @@
1
- var Cl=Object.defineProperty;var Ml=(r,t,a)=>t in r?Cl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var ma=(r,t,a)=>Ml(r,typeof t!="symbol"?t+"":t,a);import{t as St,bo as g,bw as Tt,b as Ct,bm as u,bq as Ha,bs as cr,br as Al,bp as mn}from"./ClpAEjbe.js";import{ai as Ja,bs as Mt,ca as ar,aD as e,bH as H,ay as ve,bS as C,a7 as kt,W as d,a5 as W,bA as O,bn as At,c9 as n,bV as _e,aA as m,b_ as $,aj as Mr,aB as x,be as vr,b$ as Wr,bO as Y,bf as rr,c0 as ba,bl as le,bj as Wa,c6 as Pl,bo as On,br as Xr,am as $a,ax as Oa,bk as Jn,aw as gn,bz as es,cb as ds,c5 as Dn,aC as Sr,cd as uo,bv as Rl}from"./CJxGDkBm.js";import{i as D}from"./wmcYjLAa.js";import{g as Ar,e as ua,p as cs,i as Za,I as El,h as Zs,X as ii,o as Nl}from"./BwASeArv.js";import{n as Ut,l as En,c as Qa,g as rn,s as hs,k as ts,S as Ll}from"./oXpJ1LFx.js";import{s as ee,f as Fe,g as pn,c as xt,e as tr,b as vn,p as $l,S as Ol,C as ql}from"./CnGVh7I3.js";import{b as sa}from"./NtFyWdpR.js";import{f as st,ae as Qs,a_ as Dl}from"./BVi5KkOP.js";import{J as Bl,O as Fl,Q as _s}from"./CPDV_dyu.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import"./Qt_rZNko.js";import{k as li,s as Ra}from"./WSVFXKpL.js";import{F as Ot,a4 as $s,bg as ya,cK as us,au as di,aZ as ci,aK as Wl,c9 as zl,a6 as rs,aN as Hl,cN as Ul,cM as jl,a3 as fs,aC as as,aw as Xs,I as fo,aj as Vl,bu as Kl,aS as Gl,aX as Zl,bJ as Ql,ao as Xl,cC as Yl,aP as go,c0 as ys,aI as Bn,cW as Jl,cb as ed,bn as td,b as rd,cp as ad,ag as nd,ba as bs,cr as _n,cF as sd}from"./CtJxHvGv.js";import{C as ui,A as od,o as id}from"./B06RKBOm.js";import{b as ws,V as mo}from"./BxAKyA2J.js";import{A as fi,I as ld,R as dd,q as cd}from"./5Z6V3HtS.js";import{bZ as gi,j as Hn,a6 as Os,am as ns,F as ud,av as Un,aP as fd,aS as po}from"./Bxb8LI6C.js";import{t as an,o as gd}from"./DAsc1V4f.js";import{ce as jn,aN as Nn,c$ as mi,d1 as za,c3 as gs,q as md,cU as pi,c_ as ms,cZ as vi,cX as hi,n as Pa,al as pd,am as vd,aI as hd,z as _d,V as yd,a3 as vo,D as _i,e0 as bd,aE as wd,ak as xd,r as kd,C as xs,ag as Id,U as yn,d$ as Sd,ab as Td,k as ho,u as Cd,Z as Md,v as Ad,i as Pd,g as ks,f as _o,a0 as Rd,$ as Ed,a9 as Nd,x as yi,y as bi,l as wi,j as Ld,s as $d,a as Od,d2 as qd,ae as Dd,L as Bd,F as Fd,a2 as yo}from"./D9Ykl3eH.js";import{Jq as yt,oY as Wd,tN as Vn,nN as bo,vG as xi,vI as ki,r_ as zd,yE as ss,uZ as Ii,nI as Si,bq as Kn,yF as Hd,qw as Ud,th as jd,vz as Ti,nH as Vd,mM as Kd,m as Gd,z6 as Zd,z3 as Qd,z5 as Xd}from"./CpP1PKzF.js";import{a3 as Yd,y as Is,a1 as Jd,O as Ss,W as ec,$ as tc,k as rc,p as bn,P as cn,q as ac,G as nc,v as sc,t as oc,M as Ts,K as ic,z as lc,L as dc,_ as Sn,U as Fn,N as wo,n as xo,E as cc,c as Cs,F as ko,B as uc,w as Io,J as Tn,Q as fc,H as gc,j as mc,R as pc,T as vc,A as hc,g as _c,b as yc,D as bc,f as wc,e as xc,a as kc,C as Ic,i as Sc,d as qs,V as Ci,a4 as Tc,u as Cc,l as Mc}from"./R-aBLidW.js";import{i as Ac,e as Pc}from"./CTV49dzf.js";import{g as Ms}from"./B5aYN90J.js";import{M as wn,C as Cn}from"./DE_K0DMt.js";import{C as So}from"./CTsZeMVP.js";import"./OusZ11tk.js";import{P as Rc}from"./BApUcPKR.js";import"./DvfG7QDh.js";import{c as Mi}from"./ChTqQfQN.js";import{S as Ec}from"./CPj4SFCC.js";import{D as To,M as Nc}from"./D-usBtmP.js";import{b as Lc,s as Ya,c as os}from"./RwJyhbRN.js";import{O as Gn,y as As,E as Ps,B as Rs,N as $c,m as Oc,l as qc,k as Dc,d as Ln,C as Co,f as Bc,e as Fc,g as Wc}from"./CNsgRr0G.js";import{a as Ai,s as Mo}from"./BsieX9dN.js";import{f as zc}from"./BdWqymET.js";import{c as na}from"./DjAHTP5R.js";import{a as Hc,k as Pi,h as Ys,q as Ri,l as Ir}from"./By588DV1.js";import{P as Uc}from"./B5wwCKYG.js";import{r as Es,q as Ns,B as Ao,i as jc}from"./BoefNJ5Q.js";import{R as Ei,C as ps,m as Vc,h as Kc,g as Gc,i as Po,P as Zc}from"./C1zxTHwk.js";import"./BeYVt6Wg.js";import{c as Qc,s as Xc}from"./ZJOyleCJ.js";import{h as An}from"./CQR1o7um.js";import{b as Yc,a as Ni}from"./DyaBo2y6.js";import{P as Li}from"./uD6eQoK5.js";import{B as Jc}from"./BlXZA0dT.js";import{o as $i,r as eu,e as tu}from"./DLmLA9DN.js";import{o as Oi}from"./BuQN2T0g.js";import{A as Zn,b as qi}from"./Dd5ei__B.js";import{g as Js}from"./G-nrQJwO.js";import{a as ru,M as au}from"./BejTxFyR.js";import{t as Nr}from"./D2MmXC4A.js";import{c as xn}from"./DSqSJXGX.js";import{A as nu}from"./BQgCURYe.js";import{f as su,d as ou}from"./oaGKgX0i.js";import{a9 as iu,N as lu,Y as du,K as Ro,X as cu,v as uu}from"./BWDjljS8.js";import{a as fu}from"./CC7to1B5.js";import{k as gu}from"./Xh71Wbuh.js";import{S as mu}from"./CxEy75pV.js";import{u as pu,a as vu,c as Eo,S as hu}from"./DJfJ5NWH.js";import{T as Ds}from"./Cfkb8WUl.js";import"./D_G_nxUe.js";import{g as _u}from"./MZe3NxQe.js";import{a as yu}from"./R9aYbjet.js";import{b as bu}from"./B5fQcqb-.js";import{b as No}from"./DfTSMq0b.js";import{ah as Fa,n as wu}from"./b89lNINv.js";import{x as xu}from"./BxKppgO5.js";import{c as ku}from"./B9Y57c7j.js";import{r as Lo}from"./B2NZzPt-.js";function Iu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof l!="string"||!l||typeof c!="string"||!c||f!=="finished"&&f!=="ttl-expired"&&f!=="output-match"&&f!=="line-count")return null;const y=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f,...f==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function Su(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Tu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,l=iu(r)&&r.author?.principalId!==null&&o===t;return{edit:l,remove:l||t===a||s,sendNow:(l||s)&&!Di(r)}}function kn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Di(r){return Su(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function $o(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),l=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!l&&!o&&!Di(r)}const F_="pl-3.5! pr-2!";var Cu=x('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Oo=x('<span class="attachment-status svelte-d8pwpf"> </span>'),Mu=x('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Au=x("<!><span> </span>",1),Pu=x('<img alt="" draggable="false"/>'),Ru=x('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Eu=x('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),Nu=x('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Lu=x('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),$u=x("<!> <!> <!>",1),Ou=x('<img draggable="false" class="svelte-d8pwpf"/>'),qu=x('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Du=x('<div class="media-viewer svelte-d8pwpf"><!></div>'),Bu=x("<!> <!>",1);function Fu(r,t){if(new.target)return St({component:Fu,...r});Mt(t,!0);const a=(P,ye=rr,ce=rr)=>{var T=Cu(),ge=W(T);st(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return l()},get"aria-label"(){return ce()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return ce()},onclick:()=>L(ye()),children:(Me,$e)=>{ws(Me,{glyph:"x"})},$$slots:{default:!0}}),O(T),d(P,T)};let s=g(t,"items",7),o=g(t,"labels",7),l=g(t,"disabled",7,!1),c=g(t,"onMarkUp",7),f=g(t,"onEdit",7),y=g(t,"onRemove",7),v=g(t,"onRetry",7),I=g(t,"onCopy",7),N=g(t,"onMenu",7);const q=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],X=n(()=>[...s()].sort((P,ye)=>q(P)-q(ye)));let k=_e(null),E=_e(!1),se=_e(null),G=null;const R=n(()=>s().find(P=>P.id===e(se)));ar(()=>{(!e(R)||e(R).kind==="image"&&!U(e(R)))&&H(E,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function B(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ne(P,ye){if(!(l()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&f()){f()(P.id);return}G=ye,H(se,P.id,!0),H(E,!0)}}async function L(P){l()||(e(se)===P&&H(E,!1),y()(P),await ba(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const ye=s().find(ce=>ce.id===P);l()||!ye||!U(ye)||(H(E,!1),f()?f()(P):c()(P))}function te(P,ye){P.key!=="Delete"||l()||(P.preventDefault(),P.stopPropagation(),L(ye))}function S(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function J(P,ye){const ce=Bl()?P.metaKey:P.ctrlKey,T=P.key.toLowerCase();if(ce&&!P.shiftKey&&!P.altKey&&(T==="c"||T==="x")){if(!I()||!S(ye)||(P.preventDefault(),P.stopPropagation(),T==="x"&&l()))return;I()(ye.id,T==="x");return}te(P,ye.id)}function oe(P,ye){!N()||!S(ye)||(P.preventDefault(),N()(ye.id))}var ke={get items(){return s()},set items(P){s(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return l()},set disabled(P=!1){l(P),m()},get onMarkUp(){return c()},set onMarkUp(P){c(P),m()},get onEdit(){return f()},set onEdit(P){f(P),m()},get onRemove(){return y()},set onRemove(P){y(P),m()},get onRetry(){return v()},set onRetry(P){v(P),m()},get onCopy(){return I()},set onCopy(P){I(P),m()},get onMenu(){return N()},set onMenu(P){N(P),m()},$set:Tt,$on:(P,ye)=>Ct(t,P,ye)},ue=Bu(),Ce=ve(ue);{var De=P=>{var ye=Lu();Ar(ye,21,()=>e(X),ce=>ce.id,(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Ie=>{var M=Mu(),Z=W(M);{let V=n(()=>l()||e(T).status==="placing");fi(Z,{get id(){return e(T).id},get name(){return e(T).file.name},get type(){return e(T).file.imageMimeType},get imageData(){return e(T).file.imageData},get imageMimeType(){return e(T).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(V)},get placementStatus(){return e(T).status},get placementError(){return e(T).error}})}var re=C(Z,2);{var ie=V=>{var Re=Oo(),We=le(Re,!0);$(()=>{ee(Re,"data-failed",e(T).status==="failed"||void 0),ee(Re,"role",e(T).status==="failed"?"alert":"status"),ee(Re,"title",e(T).error),Y(We,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(V,Re)};D(re,V=>{e(T).status&&V(ie)})}var b=C(re,2),be=W(b);{var Ne=V=>{st(V,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Re,We)=>{Ot(Re,{get icon(){return $s},size:16})},$$slots:{default:!0}})};D(be,V=>{e(T).status==="failed"&&v()&&V(Ne)})}var A=C(be,2);{let V=n(()=>u.chat_attachmentPreview_remove_ariaLabel({name:e(T).file.name}));a(A,()=>e(T).id,()=>e(V))}O(b),O(M),$(()=>ee(M,"data-attachment-id",e(T).id)),Mr("keydown",M,V=>J(V,e(T))),Mr("contextmenu",M,V=>oe(V,e(T))),Ut(1,M,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,M,()=>Qa,()=>({tier:"fast"})),d(Ie,M)},Pe=Ie=>{const M=n(()=>e(T).kind==="image"&&!U(e(T))&&e(T).status!=="failed");var Z=Nu(),re=W(Z);{var ie=me=>{st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(T).name},get disabled(){return l()},onkeydown:Oe=>te(Oe,e(T).id),children:(Oe,Se)=>{var Be=Au(),ae=ve(Be);Ot(ae,{get icon(){return ya},size:20});var Ge=C(ae),dt=le(Ge,!0);$(()=>Y(dt,e(T).name)),d(Oe,Be)},$$slots:{default:!0}})},b=me=>{{let Oe=n(()=>B(e(T))),Se=n(()=>l()||e(T).kind==="clip"&&(e(T).recording||!e(T).url));st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(Se)},onkeydown:Be=>J(Be,e(T)),onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{var Ge=kt(),dt=ve(Ge);{var sr=Le=>{var lt=Pu();$(()=>ee(lt,"src",e(T).url)),d(Le,lt)},Gt=Le=>{var lt=Eu(),qt=C(W(lt)),Je=le(qt,!0),qe=C(qt);{var bt=j=>{var h=Ru(),he=le(h,!0);$(()=>Y(he,e(T).summary)),d(j,h)};D(qe,j=>{e(T).summary&&j(bt)})}O(lt),$(()=>Y(Je,e(T).duration)),d(Le,lt)};D(dt,Le=>{e(T).kind==="image"?Le(sr):Le(Gt,-1)})}d(Be,Ge)},$$slots:{default:!0}})}},be=n(()=>e(T).kind!=="image"||U(e(T)));D(re,me=>{e(T).kind==="file"?me(ie):e(be)&&me(b,1)})}var Ne=C(re,2);{var A=me=>{var Oe=Oo(),Se=le(Oe,!0);$(()=>{ee(Oe,"data-failed",e(T).status==="failed"||void 0),ee(Oe,"role",e(T).status==="failed"?"alert":"status"),ee(Oe,"title",e(T).error),Y(Se,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(me,Oe)};D(Ne,me=>{(e(T).status||e(M))&&me(A)})}var V=C(Ne,2),Re=W(V);{var We=me=>{st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Oe,Se)=>{Ot(Oe,{get icon(){return $s},size:16})},$$slots:{default:!0}})},et=me=>{{let Oe=n(()=>f()?o().edit:o().markUp),Se=n(()=>f()?o().edit:o().markUp);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:()=>F(e(T).id),children:(Be,ae)=>{ws(Be,{glyph:"pencil"})},$$slots:{default:!0}})}},Ke=n(()=>U(e(T))),Bt=me=>{{let Oe=n(()=>f()?o().edit:o().play),Se=n(()=>f()?o().edit:o().play);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{{let Ge=n(()=>f()?"pencil":"play");ws(Be,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};D(Re,me=>{e(T).status==="failed"&&v()?me(We):e(Ke)?me(et,1):e(T).kind==="clip"&&!e(T).recording&&e(T).url&&me(Bt,2)})}var we=C(Re,2);a(we,()=>e(T).id,()=>o().remove),O(V),O(Z),$(()=>{ee(Z,"data-kind",e(T).kind),ee(Z,"data-attachment-id",e(T).id),ee(Z,"aria-busy",e(M)||void 0)}),Mr("contextmenu",Z,me=>oe(me,e(T))),Ut(1,Z,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,Z,()=>Qa,()=>({tier:"fast"})),d(Ie,Z)};D(Me,Ie=>{e(T).kind==="image"&&e(T).file?Ie($e):Ie(Pe,-1)})}d(ce,ge)}),O(ye),sa(ye,ce=>H(k,ce),()=>e(k)),$(()=>ee(ye,"aria-label",o().attachments)),d(P,ye)};D(Ce,P=>{e(X).length&&P(De)})}var at=C(Ce,2);{const P=ce=>{var T=kt(),ge=ve(T);{var Me=$e=>{var Pe=$u(),Ie=ve(Pe);{var M=b=>{st(b,{variant:"primary",get disabled(){return l()},onclick:()=>e(R)&&F(e(R).id),children:(be,Ne)=>{vr();var A=Wr();$(()=>Y(A,o().markUp)),d(be,A)},$$slots:{default:!0}})},Z=n(()=>U(e(R)));D(Ie,b=>{e(Z)&&b(M)})}var re=C(Ie,2);st(re,{variant:"secondary",get disabled(){return l()},onclick:()=>e(R)&&L(e(R).id),children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().remove)),d(b,Ne)},$$slots:{default:!0}});var ie=C(re,2);st(ie,{variant:"ghost-light",onclick:()=>{H(E,!1)},children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().done)),d(b,Ne)},$$slots:{default:!0}}),d($e,Pe)};D(ge,$e=>{e(R)&&e(R).kind!=="file"&&$e(Me)})}d(ce,T)};let ye=n(()=>e(R)?B(e(R)):o().attachments);ui(at,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:ce=>{ce.preventDefault(),G?.isConnected?G.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(E)},set open(ce){H(E,ce,!0)},footer:P,children:(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Pe=>{var Ie=Du(),M=W(Ie);{var Z=b=>{var be=Ou();$(Ne=>{ee(be,"src",e(R).url),ee(be,"alt",Ne)},[()=>B(e(R))]),d(b,be)},re=n(()=>e(R).kind==="image"&&U(e(R))),ie=b=>{var be=qu();$(Ne=>{ee(be,"src",e(R).url),ee(be,"aria-label",Ne)},[()=>B(e(R))]),d(b,be)};D(M,b=>{e(re)?b(Z):e(R).kind==="clip"&&e(R).url&&b(ie,1)})}O(Ie),d(Pe,Ie)};D(Me,Pe=>{e(R)&&e(R).kind!=="file"&&Pe($e)})}d(ce,ge)},$$slots:{footer:!0,default:!0}})}return d(r,ue),At(ke)}Ja(["keydown","contextmenu"]);var Wu=x("<!> ",1),zu=x('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Bi(r,t){if(new.target)return St({component:Bi,...r});Mt(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),l=g(t,"onUseScript",7),c=_e(!1);function f(){navigator.clipboard.writeText(o()),H(c,!0),setTimeout(()=>{H(c,!1)},2e3)}function y(){l()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(S){a(S),m()},get description(){return s()},set description(S){s(S),m()},get content(){return o()},set content(S){o(S),m()},get onUseScript(){return l()},set onUseScript(S){l(S),m()},$set:Tt,$on:(S,J)=>Ct(t,S,J)},I=zu(),N=W(I),q=W(N),X=W(q),k=W(X);Ot(k,{get icon(){return us},size:"sm"}),O(X);var E=C(X,2),se=le(E,!0);O(q);var G=C(q,2),R=W(G);st(R,{variant:"ghost-light",size:"sm",onclick:f,class:"h-7 px-2",children:(S,J)=>{var oe=Wu(),ke=ve(oe);{let Ce=n(()=>e(c)?di:ci);Ot(ke,{get icon(){return e(Ce)},class:"mr-1"})}var ue=C(ke);$(Ce=>Y(ue,` ${Ce??""}`),[()=>e(c)?u.chat_shared_copied_label():u.chat_shared_copy_label()]),d(S,oe)},$$slots:{default:!0}});var U=C(R,2);{var B=S=>{st(S,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(J,oe)=>{vr();var ke=Wr();$(ue=>Y(ke,ue),[()=>u.chat_setupScriptCard_useScript_label()]),d(J,ke)},$$slots:{default:!0}})};D(U,S=>{l()&&S(B)})}O(G),O(N);var ne=C(N,2),L=le(ne,!0),F=C(ne,2),te=le(F,!0);return O(I),$(()=>{Y(se,a()),Y(L,s()),Y(te,o())}),d(r,I),At(v)}const kr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Hu{constructor(){ma(this,"buffer","");ma(this,"currentToolName",null);ma(this,"currentToolId",null);ma(this,"lastToolId",null);ma(this,"currentToolParams",[]);ma(this,"currentToolResultContent",[]);ma(this,"inToolResult",!1);ma(this,"inCodeBlock",!1);ma(this,"codeBlockLanguage","");ma(this,"codeBlockContent","");ma(this,"characterBuffer","");ma(this,"inCharacterMode",!1);ma(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const f=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),y=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
1
+ var Cl=Object.defineProperty;var Ml=(r,t,a)=>t in r?Cl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var ma=(r,t,a)=>Ml(r,typeof t!="symbol"?t+"":t,a);import{t as St,bo as g,bw as Tt,b as Ct,bm as u,bq as Ha,bs as cr,br as Al,bp as mn}from"./ClpAEjbe.js";import{ai as Ja,bs as Mt,ca as ar,aD as e,bH as H,ay as ve,bS as C,a7 as kt,W as d,a5 as W,bA as O,bn as At,c9 as n,bV as _e,aA as m,b_ as $,aj as Mr,aB as x,be as vr,b$ as Wr,bO as Y,bf as rr,c0 as ba,bl as le,bj as Wa,c6 as Pl,bo as On,br as Xr,am as $a,ax as Oa,bk as Jn,aw as gn,bz as es,cb as ds,c5 as Dn,aC as Sr,cd as uo,bv as Rl}from"./CJxGDkBm.js";import{i as D}from"./wmcYjLAa.js";import{g as Ar,e as ua,p as cs,i as Za,I as El,h as Zs,X as ii,o as Nl}from"./BwASeArv.js";import{n as Ut,l as En,c as Qa,g as rn,s as hs,k as ts,S as Ll}from"./oXpJ1LFx.js";import{s as ee,f as Fe,g as pn,c as xt,e as tr,b as vn,p as $l,S as Ol,C as ql}from"./CnGVh7I3.js";import{b as sa}from"./NtFyWdpR.js";import{f as st,ae as Qs,a_ as Dl}from"./BVi5KkOP.js";import{J as Bl,O as Fl,Q as _s}from"./CPDV_dyu.js";import"./Gb7Ohwuc.js";import"./BYiyLeZ4.js";import"./Qt_rZNko.js";import{k as li,s as Ra}from"./WSVFXKpL.js";import{F as Ot,a4 as $s,bg as ya,cK as us,au as di,aZ as ci,aK as Wl,c9 as zl,a6 as rs,aN as Hl,cN as Ul,cM as jl,a3 as fs,aC as as,aw as Xs,I as fo,aj as Vl,bu as Kl,aS as Gl,aX as Zl,bJ as Ql,ao as Xl,cC as Yl,aP as go,c0 as ys,aI as Bn,cW as Jl,cb as ed,bn as td,b as rd,cp as ad,ag as nd,ba as bs,cr as _n,cF as sd}from"./CtJxHvGv.js";import{C as ui,A as od,o as id}from"./B06RKBOm.js";import{b as ws,V as mo}from"./BxAKyA2J.js";import{A as fi,I as ld,R as dd,q as cd}from"./D0Rl0jWy.js";import{bZ as gi,j as Hn,a6 as Os,am as ns,F as ud,av as Un,aP as fd,aS as po}from"./DfC089Aj.js";import{t as an,o as gd}from"./DAsc1V4f.js";import{ce as jn,aN as Nn,c$ as mi,d1 as za,c3 as gs,q as md,cU as pi,c_ as ms,cZ as vi,cX as hi,n as Pa,al as pd,am as vd,aI as hd,z as _d,V as yd,a3 as vo,D as _i,e0 as bd,aE as wd,ak as xd,r as kd,C as xs,ag as Id,U as yn,d$ as Sd,ab as Td,k as ho,u as Cd,Z as Md,v as Ad,i as Pd,g as ks,f as _o,a0 as Rd,$ as Ed,a9 as Nd,x as yi,y as bi,l as wi,j as Ld,s as $d,a as Od,d2 as qd,ae as Dd,L as Bd,F as Fd,a2 as yo}from"./D9Ykl3eH.js";import{Jq as yt,oY as Wd,tN as Vn,nN as bo,vG as xi,vI as ki,r_ as zd,yE as ss,uZ as Ii,nI as Si,bq as Kn,yF as Hd,qw as Ud,th as jd,vz as Ti,nH as Vd,mM as Kd,m as Gd,z6 as Zd,z3 as Qd,z5 as Xd}from"./CpP1PKzF.js";import{a3 as Yd,y as Is,a1 as Jd,O as Ss,W as ec,$ as tc,k as rc,p as bn,P as cn,q as ac,G as nc,v as sc,t as oc,M as Ts,K as ic,z as lc,L as dc,_ as Sn,U as Fn,N as wo,n as xo,E as cc,c as Cs,F as ko,B as uc,w as Io,J as Tn,Q as fc,H as gc,j as mc,R as pc,T as vc,A as hc,g as _c,b as yc,D as bc,f as wc,e as xc,a as kc,C as Ic,i as Sc,d as qs,V as Ci,a4 as Tc,u as Cc,l as Mc}from"./DEsEAjIo.js";import{i as Ac,e as Pc}from"./CTV49dzf.js";import{g as Ms}from"./B5aYN90J.js";import{M as wn,C as Cn}from"./BIoeY2kf.js";import{C as So}from"./CTsZeMVP.js";import"./DwIiGflF.js";import{P as Rc}from"./B7-7bZi9.js";import"./DvfG7QDh.js";import{c as Mi}from"./ChTqQfQN.js";import{S as Ec}from"./EYYp06eB.js";import{D as To,M as Nc}from"./6s1pPvLx.js";import{b as Lc,s as Ya,c as os}from"./BcI2Qs88.js";import{O as Gn,y as As,E as Ps,B as Rs,N as $c,m as Oc,l as qc,k as Dc,d as Ln,C as Co,f as Bc,e as Fc,g as Wc}from"./DthXaxFc.js";import{a as Ai,s as Mo}from"./BsieX9dN.js";import{f as zc}from"./BdWqymET.js";import{c as na}from"./DjAHTP5R.js";import{a as Hc,k as Pi,h as Ys,q as Ri,l as Ir}from"./By588DV1.js";import{P as Uc}from"./B5wwCKYG.js";import{r as Es,q as Ns,B as Ao,i as jc}from"./CbbK8WaD.js";import{R as Ei,C as ps,m as Vc,h as Kc,g as Gc,i as Po,P as Zc}from"./C1zxTHwk.js";import"./BeYVt6Wg.js";import{c as Qc,s as Xc}from"./BPE9rssu.js";import{h as An}from"./BTtsrh4I.js";import{b as Yc,a as Ni}from"./CWm_YxN-.js";import{P as Li}from"./uD6eQoK5.js";import{B as Jc}from"./BlXZA0dT.js";import{o as $i,r as eu,e as tu}from"./CrrouvLD.js";import{o as Oi}from"./BTTV-GiU.js";import{A as Zn,b as qi}from"./Dd5ei__B.js";import{g as Js}from"./G-nrQJwO.js";import{a as ru,M as au}from"./BejTxFyR.js";import{t as Nr}from"./D2MmXC4A.js";import{c as xn}from"./DSqSJXGX.js";import{A as nu}from"./BQgCURYe.js";import{f as su,d as ou}from"./Fg5V-_KH.js";import{a9 as iu,N as lu,Y as du,K as Ro,X as cu,v as uu}from"./CxNWBXR-.js";import{a as fu}from"./CC7to1B5.js";import{k as gu}from"./Xh71Wbuh.js";import{S as mu}from"./CxEy75pV.js";import{u as pu,a as vu,c as Eo,S as hu}from"./DJfJ5NWH.js";import{T as Ds}from"./Cfkb8WUl.js";import"./D_G_nxUe.js";import{g as _u}from"./MZe3NxQe.js";import{a as yu}from"./R9aYbjet.js";import{b as bu}from"./B5fQcqb-.js";import{b as No}from"./DfTSMq0b.js";import{ah as Fa,n as wu}from"./b89lNINv.js";import{x as xu}from"./BxKppgO5.js";import{c as ku}from"./NDFzzX6j.js";import{r as Lo}from"./D1gQR6EA.js";function Iu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof l!="string"||!l||typeof c!="string"||!c||f!=="finished"&&f!=="ttl-expired"&&f!=="output-match"&&f!=="line-count")return null;const y=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:l,workspaceId:c,reason:f,...f==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function Su(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Tu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,l=iu(r)&&r.author?.principalId!==null&&o===t;return{edit:l,remove:l||t===a||s,sendNow:(l||s)&&!Di(r)}}function kn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Di(r){return Su(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function $o(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),l=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!l&&!o&&!Di(r)}const F_="pl-3.5! pr-2!";var Cu=x('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),Oo=x('<span class="attachment-status svelte-d8pwpf"> </span>'),Mu=x('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Au=x("<!><span> </span>",1),Pu=x('<img alt="" draggable="false"/>'),Ru=x('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),Eu=x('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),Nu=x('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),Lu=x('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),$u=x("<!> <!> <!>",1),Ou=x('<img draggable="false" class="svelte-d8pwpf"/>'),qu=x('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),Du=x('<div class="media-viewer svelte-d8pwpf"><!></div>'),Bu=x("<!> <!>",1);function Fu(r,t){if(new.target)return St({component:Fu,...r});Mt(t,!0);const a=(P,ye=rr,ce=rr)=>{var T=Cu(),ge=W(T);st(ge,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return l()},get"aria-label"(){return ce()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return ce()},onclick:()=>L(ye()),children:(Me,$e)=>{ws(Me,{glyph:"x"})},$$slots:{default:!0}}),O(T),d(P,T)};let s=g(t,"items",7),o=g(t,"labels",7),l=g(t,"disabled",7,!1),c=g(t,"onMarkUp",7),f=g(t,"onEdit",7),y=g(t,"onRemove",7),v=g(t,"onRetry",7),I=g(t,"onCopy",7),N=g(t,"onMenu",7);const q=P=>P.owner==="attachment"?2:{image:0,clip:1,file:2}[P.kind],X=n(()=>[...s()].sort((P,ye)=>q(P)-q(ye)));let k=_e(null),E=_e(!1),se=_e(null),G=null;const R=n(()=>s().find(P=>P.id===e(se)));ar(()=>{(!e(R)||e(R).kind==="image"&&!U(e(R)))&&H(E,!1)});function U(P){return P.kind==="image"&&P.status!=="placing"&&P.status!=="failed"&&P.url.trim().length>0}function B(P){return P.kind==="image"?o().image(P.markCount):P.kind==="clip"?P.summary?`${o().clip(P.duration)} ${P.summary}`:o().clip(P.duration):P.name}function ne(P,ye){if(!(l()||P.kind==="file"||P.kind==="image"&&!U(P)||P.kind==="clip"&&(!P.url||P.recording))){if((P.kind==="clip"||P.kind==="image")&&f()){f()(P.id);return}G=ye,H(se,P.id,!0),H(E,!0)}}async function L(P){l()||(e(se)===P&&H(E,!1),y()(P),await ba(),(!document.activeElement||document.activeElement===document.body)&&e(k)?.querySelector("button:not(:disabled)")?.focus())}function F(P){const ye=s().find(ce=>ce.id===P);l()||!ye||!U(ye)||(H(E,!1),f()?f()(P):c()(P))}function te(P,ye){P.key!=="Delete"||l()||(P.preventDefault(),P.stopPropagation(),L(ye))}function S(P){return P.status==="placing"||P.status==="failed"?!1:P.kind==="image"?!!P.file||U(P):P.kind==="clip"&&!P.recording&&!!P.url}function J(P,ye){const ce=Bl()?P.metaKey:P.ctrlKey,T=P.key.toLowerCase();if(ce&&!P.shiftKey&&!P.altKey&&(T==="c"||T==="x")){if(!I()||!S(ye)||(P.preventDefault(),P.stopPropagation(),T==="x"&&l()))return;I()(ye.id,T==="x");return}te(P,ye.id)}function oe(P,ye){!N()||!S(ye)||(P.preventDefault(),N()(ye.id))}var ke={get items(){return s()},set items(P){s(P),m()},get labels(){return o()},set labels(P){o(P),m()},get disabled(){return l()},set disabled(P=!1){l(P),m()},get onMarkUp(){return c()},set onMarkUp(P){c(P),m()},get onEdit(){return f()},set onEdit(P){f(P),m()},get onRemove(){return y()},set onRemove(P){y(P),m()},get onRetry(){return v()},set onRetry(P){v(P),m()},get onCopy(){return I()},set onCopy(P){I(P),m()},get onMenu(){return N()},set onMenu(P){N(P),m()},$set:Tt,$on:(P,ye)=>Ct(t,P,ye)},ue=Bu(),Ce=ve(ue);{var De=P=>{var ye=Lu();Ar(ye,21,()=>e(X),ce=>ce.id,(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Ie=>{var M=Mu(),Z=W(M);{let V=n(()=>l()||e(T).status==="placing");fi(Z,{get id(){return e(T).id},get name(){return e(T).file.name},get type(){return e(T).file.imageMimeType},get imageData(){return e(T).file.imageData},get imageMimeType(){return e(T).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(V)},get placementStatus(){return e(T).status},get placementError(){return e(T).error}})}var re=C(Z,2);{var ie=V=>{var Re=Oo(),We=le(Re,!0);$(()=>{ee(Re,"data-failed",e(T).status==="failed"||void 0),ee(Re,"role",e(T).status==="failed"?"alert":"status"),ee(Re,"title",e(T).error),Y(We,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(V,Re)};D(re,V=>{e(T).status&&V(ie)})}var b=C(re,2),be=W(b);{var Ne=V=>{st(V,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Re,We)=>{Ot(Re,{get icon(){return $s},size:16})},$$slots:{default:!0}})};D(be,V=>{e(T).status==="failed"&&v()&&V(Ne)})}var A=C(be,2);{let V=n(()=>u.chat_attachmentPreview_remove_ariaLabel({name:e(T).file.name}));a(A,()=>e(T).id,()=>e(V))}O(b),O(M),$(()=>ee(M,"data-attachment-id",e(T).id)),Mr("keydown",M,V=>J(V,e(T))),Mr("contextmenu",M,V=>oe(V,e(T))),Ut(1,M,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,M,()=>Qa,()=>({tier:"fast"})),d(Ie,M)},Pe=Ie=>{const M=n(()=>e(T).kind==="image"&&!U(e(T))&&e(T).status!=="failed");var Z=Nu(),re=W(Z);{var ie=me=>{st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(T).name},get disabled(){return l()},onkeydown:Oe=>te(Oe,e(T).id),children:(Oe,Se)=>{var Be=Au(),ae=ve(Be);Ot(ae,{get icon(){return ya},size:20});var Ge=C(ae),dt=le(Ge,!0);$(()=>Y(dt,e(T).name)),d(Oe,Be)},$$slots:{default:!0}})},b=me=>{{let Oe=n(()=>B(e(T))),Se=n(()=>l()||e(T).kind==="clip"&&(e(T).recording||!e(T).url));st(me,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e(Oe)},get disabled(){return e(Se)},onkeydown:Be=>J(Be,e(T)),onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{var Ge=kt(),dt=ve(Ge);{var sr=Le=>{var lt=Pu();$(()=>ee(lt,"src",e(T).url)),d(Le,lt)},Gt=Le=>{var lt=Eu(),qt=C(W(lt)),Je=le(qt,!0),qe=C(qt);{var bt=j=>{var h=Ru(),he=le(h,!0);$(()=>Y(he,e(T).summary)),d(j,h)};D(qe,j=>{e(T).summary&&j(bt)})}O(lt),$(()=>Y(Je,e(T).duration)),d(Le,lt)};D(dt,Le=>{e(T).kind==="image"?Le(sr):Le(Gt,-1)})}d(Be,Ge)},$$slots:{default:!0}})}},be=n(()=>e(T).kind!=="image"||U(e(T)));D(re,me=>{e(T).kind==="file"?me(ie):e(be)&&me(b,1)})}var Ne=C(re,2);{var A=me=>{var Oe=Oo(),Se=le(Oe,!0);$(()=>{ee(Oe,"data-failed",e(T).status==="failed"||void 0),ee(Oe,"role",e(T).status==="failed"?"alert":"status"),ee(Oe,"title",e(T).error),Y(Se,e(T).status==="failed"?e(T).error??o().attachmentFailed:o().attachmentPending)}),d(me,Oe)};D(Ne,me=>{(e(T).status||e(M))&&me(A)})}var V=C(Ne,2),Re=W(V);{var We=me=>{st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(T).id),children:(Oe,Se)=>{Ot(Oe,{get icon(){return $s},size:16})},$$slots:{default:!0}})},et=me=>{{let Oe=n(()=>f()?o().edit:o().markUp),Se=n(()=>f()?o().edit:o().markUp);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:()=>F(e(T).id),children:(Be,ae)=>{ws(Be,{glyph:"pencil"})},$$slots:{default:!0}})}},Ke=n(()=>U(e(T))),Bt=me=>{{let Oe=n(()=>f()?o().edit:o().play),Se=n(()=>f()?o().edit:o().play);st(me,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return l()},get"aria-label"(){return e(Oe)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Se)},onclick:Be=>{Be.currentTarget instanceof HTMLElement&&ne(e(T),Be.currentTarget)},children:(Be,ae)=>{{let Ge=n(()=>f()?"pencil":"play");ws(Be,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};D(Re,me=>{e(T).status==="failed"&&v()?me(We):e(Ke)?me(et,1):e(T).kind==="clip"&&!e(T).recording&&e(T).url&&me(Bt,2)})}var we=C(Re,2);a(we,()=>e(T).id,()=>o().remove),O(V),O(Z),$(()=>{ee(Z,"data-kind",e(T).kind),ee(Z,"data-attachment-id",e(T).id),ee(Z,"aria-busy",e(M)||void 0)}),Mr("contextmenu",Z,me=>oe(me,e(T))),Ut(1,Z,()=>En,()=>({tier:"fast",y:3,scale:.98})),Ut(2,Z,()=>Qa,()=>({tier:"fast"})),d(Ie,Z)};D(Me,Ie=>{e(T).kind==="image"&&e(T).file?Ie($e):Ie(Pe,-1)})}d(ce,ge)}),O(ye),sa(ye,ce=>H(k,ce),()=>e(k)),$(()=>ee(ye,"aria-label",o().attachments)),d(P,ye)};D(Ce,P=>{e(X).length&&P(De)})}var at=C(Ce,2);{const P=ce=>{var T=kt(),ge=ve(T);{var Me=$e=>{var Pe=$u(),Ie=ve(Pe);{var M=b=>{st(b,{variant:"primary",get disabled(){return l()},onclick:()=>e(R)&&F(e(R).id),children:(be,Ne)=>{vr();var A=Wr();$(()=>Y(A,o().markUp)),d(be,A)},$$slots:{default:!0}})},Z=n(()=>U(e(R)));D(Ie,b=>{e(Z)&&b(M)})}var re=C(Ie,2);st(re,{variant:"secondary",get disabled(){return l()},onclick:()=>e(R)&&L(e(R).id),children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().remove)),d(b,Ne)},$$slots:{default:!0}});var ie=C(re,2);st(ie,{variant:"ghost-light",onclick:()=>{H(E,!1)},children:(b,be)=>{vr();var Ne=Wr();$(()=>Y(Ne,o().done)),d(b,Ne)},$$slots:{default:!0}}),d($e,Pe)};D(ge,$e=>{e(R)&&e(R).kind!=="file"&&$e(Me)})}d(ce,T)};let ye=n(()=>e(R)?B(e(R)):o().attachments);ui(at,{get title(){return e(ye)},size:"wide",showCloseButton:!1,onCloseAutoFocus:ce=>{ce.preventDefault(),G?.isConnected?G.focus():e(k)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(E)},set open(ce){H(E,ce,!0)},footer:P,children:(ce,T)=>{var ge=kt(),Me=ve(ge);{var $e=Pe=>{var Ie=Du(),M=W(Ie);{var Z=b=>{var be=Ou();$(Ne=>{ee(be,"src",e(R).url),ee(be,"alt",Ne)},[()=>B(e(R))]),d(b,be)},re=n(()=>e(R).kind==="image"&&U(e(R))),ie=b=>{var be=qu();$(Ne=>{ee(be,"src",e(R).url),ee(be,"aria-label",Ne)},[()=>B(e(R))]),d(b,be)};D(M,b=>{e(re)?b(Z):e(R).kind==="clip"&&e(R).url&&b(ie,1)})}O(Ie),d(Pe,Ie)};D(Me,Pe=>{e(R)&&e(R).kind!=="file"&&Pe($e)})}d(ce,ge)},$$slots:{footer:!0,default:!0}})}return d(r,ue),At(ke)}Ja(["keydown","contextmenu"]);var Wu=x("<!> ",1),zu=x('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Bi(r,t){if(new.target)return St({component:Bi,...r});Mt(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),l=g(t,"onUseScript",7),c=_e(!1);function f(){navigator.clipboard.writeText(o()),H(c,!0),setTimeout(()=>{H(c,!1)},2e3)}function y(){l()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(S){a(S),m()},get description(){return s()},set description(S){s(S),m()},get content(){return o()},set content(S){o(S),m()},get onUseScript(){return l()},set onUseScript(S){l(S),m()},$set:Tt,$on:(S,J)=>Ct(t,S,J)},I=zu(),N=W(I),q=W(N),X=W(q),k=W(X);Ot(k,{get icon(){return us},size:"sm"}),O(X);var E=C(X,2),se=le(E,!0);O(q);var G=C(q,2),R=W(G);st(R,{variant:"ghost-light",size:"sm",onclick:f,class:"h-7 px-2",children:(S,J)=>{var oe=Wu(),ke=ve(oe);{let Ce=n(()=>e(c)?di:ci);Ot(ke,{get icon(){return e(Ce)},class:"mr-1"})}var ue=C(ke);$(Ce=>Y(ue,` ${Ce??""}`),[()=>e(c)?u.chat_shared_copied_label():u.chat_shared_copy_label()]),d(S,oe)},$$slots:{default:!0}});var U=C(R,2);{var B=S=>{st(S,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(J,oe)=>{vr();var ke=Wr();$(ue=>Y(ke,ue),[()=>u.chat_setupScriptCard_useScript_label()]),d(J,ke)},$$slots:{default:!0}})};D(U,S=>{l()&&S(B)})}O(G),O(N);var ne=C(N,2),L=le(ne,!0),F=C(ne,2),te=le(F,!0);return O(I),$(()=>{Y(se,a()),Y(L,s()),Y(te,o())}),d(r,I),At(v)}const kr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class Hu{constructor(){ma(this,"buffer","");ma(this,"currentToolName",null);ma(this,"currentToolId",null);ma(this,"lastToolId",null);ma(this,"currentToolParams",[]);ma(this,"currentToolResultContent",[]);ma(this,"inToolResult",!1);ma(this,"inCodeBlock",!1);ma(this,"codeBlockLanguage","");ma(this,"codeBlockContent","");ma(this,"characterBuffer","");ma(this,"inCharacterMode",!1);ma(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const f=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),y=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
2
2
  `);o.push({type:"tool_result",content:y,metadata:{toolId:this.currentToolId,isError:f}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const l=t.indexOf("🤖"),c=t.substring(l+2);if(this.inCharacterMode=!0,this.characterBuffer="",c&&c.trim()&&c!==`
3
3
  `){const f=c.replace(/^\n/,"");f&&(this.characterBuffer=f)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
4
4
  `)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`