openpond 0.0.37 → 0.0.38

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 (121) hide show
  1. package/README.md +0 -3
  2. package/dist/api/types.d.ts +0 -50
  3. package/dist/api.d.ts +2 -8
  4. package/dist/chunks/{app-layer-LF2HK2B2.js → app-layer-DPUJRNO2.js} +4 -4
  5. package/dist/chunks/{apps-ZMCMQZKX.js → apps-AKBI6AS7.js} +4 -124
  6. package/dist/chunks/{chunk-ZZ4ECDTP.js → chunk-275WCETC.js} +2 -2
  7. package/dist/chunks/{chunk-LNKYEHIJ.js → chunk-AHNFNWUN.js} +1 -1
  8. package/dist/chunks/{chunk-WTA33KQQ.js → chunk-AHPQTEIJ.js} +4 -4
  9. package/dist/chunks/{chunk-3VURZQHA.js → chunk-FWLOFUPU.js} +2 -2
  10. package/dist/chunks/{chunk-A3CJUBA7.js → chunk-GB6VUZUA.js} +1 -1
  11. package/dist/chunks/{chunk-2WMGA5FE.js → chunk-GDZYDLEL.js} +1 -1
  12. package/dist/chunks/{chunk-WL76II47.js → chunk-HS2AGRDV.js} +1 -1
  13. package/dist/chunks/{chunk-N6E6YSTP.js → chunk-JWF37O5E.js} +1 -1
  14. package/dist/chunks/{chunk-MHBQWGCL.js → chunk-LZZM3IHS.js} +1 -33
  15. package/dist/chunks/{chunk-PGET7EZF.js → chunk-MPGSHXGF.js} +3 -3
  16. package/dist/chunks/{chunk-ICLLW5QD.js → chunk-QRM7XMAO.js} +5 -36
  17. package/dist/chunks/{chunk-IATK3CIP.js → chunk-SLMP353Q.js} +3 -3
  18. package/dist/chunks/{chunk-KT2BB4AR.js → chunk-V35STJF4.js} +2 -2
  19. package/dist/chunks/{chunk-VFL2JVBZ.js → chunk-XCATKTK3.js} +37 -52
  20. package/dist/chunks/{chunk-ZPL4GZML.js → chunk-XERQHYBO.js} +1 -24
  21. package/dist/chunks/{chunk-35PPAOWD.js → chunk-YTJL6XPU.js} +2 -2
  22. package/dist/chunks/{chunk-BWA3COR4.js → chunk-ZI4GDAUB.js} +0 -13
  23. package/dist/chunks/{cli-AS3DZ7XB.js → cli-2KBVNDRY.js} +6 -6
  24. package/dist/chunks/{cli-5NFIDCRL.js → cli-7BKDWFNU.js} +4 -4
  25. package/dist/chunks/{core-commands-7223BEQL.js → core-commands-YN4RMWA3.js} +5 -5
  26. package/dist/chunks/{extend-6N5S5KA5.js → extend-REGNTBK3.js} +9 -9
  27. package/dist/chunks/{extension-FJSVCG2Q.js → extension-7K77DAVL.js} +5 -5
  28. package/dist/chunks/{harness-OMJXIGEW.js → harness-BHQRMXJR.js} +4 -4
  29. package/dist/chunks/{help-YPPROIS7.js → help-VREQNA4I.js} +1 -1
  30. package/dist/chunks/{opchat-K7IYFPX6.js → opchat-D63YTNSX.js} +4 -4
  31. package/dist/chunks/{organizations-W3FMAWQ4.js → organizations-I46KG7TC.js} +5 -5
  32. package/dist/chunks/{profile-N4B3F7M7.js → profile-WKZJHEPG.js} +8 -8
  33. package/dist/chunks/{project-agent-NA6SGU25.js → project-agent-ZUC3YMCT.js} +7 -7
  34. package/dist/chunks/{sandbox-command-AKCFJKKN.js → sandbox-command-AAOPFTI5.js} +5 -5
  35. package/dist/chunks/{sandbox-template-5NKTAXCL.js → sandbox-template-GKNVR4C5.js} +6 -6
  36. package/dist/chunks/{src-SCS4KKP4.js → src-MWDIK56B.js} +6 -6
  37. package/dist/chunks/{src-XAVSQTVR.js → src-RPW5TOPI.js} +2 -2
  38. package/dist/chunks/{teams-bot-557NZC73.js → teams-bot-PSL3ZO6Z.js} +4 -4
  39. package/dist/chunks/{workspaces-S2H75XQB.js → workspaces-BPXC2DHT.js} +2 -2
  40. package/dist/cli.js +10 -10
  41. package/dist/client-types.d.ts +1 -9
  42. package/dist/client.d.ts +3 -3
  43. package/dist/index.js +0 -46
  44. package/dist/web/assets/{AppDialog-y6krB0MJ.js → AppDialog-DrwJb_wG.js} +1 -1
  45. package/dist/web/assets/{AppsView-4F6oLktr.js → AppsView-DPagLMsc.js} +1 -1
  46. package/dist/web/assets/{BrowserSidebar-C0MHQaaD.js → BrowserSidebar-DMn2V8RV.js} +1 -1
  47. package/dist/web/assets/{CloudWorkView-DwFIZoXy.js → CloudWorkView-Cl_7mM3c.js} +1 -1
  48. package/dist/web/assets/{CommandMenu-CYGFrMZi.js → CommandMenu-CHMQLez_.js} +1 -1
  49. package/dist/web/assets/{CommunityView-C6n89YXz.js → CommunityView-DcHVDUk0.js} +1 -1
  50. package/dist/web/assets/{ComposerCreateImproveStrip-C3RwXC3_.js → ComposerCreateImproveStrip-BZ3Dgzmo.js} +1 -1
  51. package/dist/web/assets/{GetStartedView-fwD0ZXo9.js → GetStartedView-DTRotFqz.js} +1 -1
  52. package/dist/web/assets/{LabSkillSidebar-BSuc-NJr.js → LabSkillSidebar-D-PqFe1T.js} +1 -1
  53. package/dist/web/assets/{LabsRoute-D2y8dSsT.js → LabsRoute-Dew1BwK5.js} +1 -1
  54. package/dist/web/assets/MainChatThread-BaPxxzrw.js +2 -0
  55. package/dist/web/assets/{MakeAgentTutorialLearningPanel-Bz2VDaRe.js → MakeAgentTutorialLearningPanel-CBsfnONQ.js} +2 -2
  56. package/dist/web/assets/{MarkdownText-B6Nu_0Fz.js → MarkdownText-DGLfAM_Z.js} +2 -2
  57. package/dist/web/assets/Messages-CIX9uTjX.js +10 -0
  58. package/dist/web/assets/{NativeSkillSidebar-4iUfgwqO.js → NativeSkillSidebar-AP_uHn6g.js} +1 -1
  59. package/dist/web/assets/{NewProjectDialog-8M5-6-h-.js → NewProjectDialog-C6lHkafU.js} +1 -1
  60. package/dist/web/assets/{PostTrainingLearningPanel-CdG5KHZs.js → PostTrainingLearningPanel-CZEgPc8O.js} +2 -2
  61. package/dist/web/assets/{PostTrainingStatusPill-COZ4qISQ.js → PostTrainingStatusPill-CeEpwUDB.js} +1 -1
  62. package/dist/web/assets/{ProfileSettingsSection-Bo7dybgW.js → ProfileSettingsSection-EumMLlEp.js} +1 -1
  63. package/dist/web/assets/RightChatPanelStack-MXBcx3zO.js +1 -0
  64. package/dist/web/assets/SettingsView-Caljbns2.css +1 -0
  65. package/dist/web/assets/SettingsView-DyURG_Uh.js +6 -0
  66. package/dist/web/assets/{TeamChatView-CzQYFBap.js → TeamChatView-D3v6aqJ3.js} +2 -2
  67. package/dist/web/assets/{TerminalOverlay-B56XmI-k.js → TerminalOverlay-BKl0p8pa.js} +1 -1
  68. package/dist/web/assets/{TrainingCreationPanel-C_ntWAAP.js → TrainingCreationPanel-CfZQTuT5.js} +1 -1
  69. package/dist/web/assets/{TrainingDraftPanel-3hJIxLNn.js → TrainingDraftPanel-DslRPSDW.js} +1 -1
  70. package/dist/web/assets/{UsageSettingsSection-r3CqRm6Q.js → UsageSettingsSection-zDAwzTGl.js} +1 -1
  71. package/dist/web/assets/{WorkspaceDiffPanel-By8PWUuE.js → WorkspaceDiffPanel-C_MZPPlL.js} +3 -3
  72. package/dist/web/assets/{WorkspaceEnvironmentMenu-7wmC-spz.js → WorkspaceEnvironmentMenu-BUAnn80j.js} +1 -1
  73. package/dist/web/assets/{WorkspaceGitDialogs-Hn--lsRh.js → WorkspaceGitDialogs-Drbf4ujA.js} +1 -1
  74. package/dist/web/assets/{WorkspaceMonacoEditor-CHd22UcG.js → WorkspaceMonacoEditor-DPGcG8fy.js} +3 -3
  75. package/dist/web/assets/{activity-Dp5V58om.js → activity-Dnr3jqb3.js} +1 -1
  76. package/dist/web/assets/{boxes-DE7WJaEv.js → boxes-BinC8UPn.js} +1 -1
  77. package/dist/web/assets/{chevron-up-BWx8gGab.js → chevron-up-Bjp_-_Cb.js} +1 -1
  78. package/dist/web/assets/{circle-x-DnmOfZIg.js → circle-x-ubnvEYuE.js} +1 -1
  79. package/dist/web/assets/{copy-BjWvaXLC.js → copy-B_ZCCUMz.js} +1 -1
  80. package/dist/web/assets/{create-pipeline-request-C4V6-lWN.js → create-pipeline-request-D6uLUxe9.js} +3 -3
  81. package/dist/web/assets/{cssMode-KFDYjM8T.js → cssMode-CKN9CcfG.js} +1 -1
  82. package/dist/web/assets/{file-BrC1KjAS.js → file-8HAMlTmQ.js} +1 -1
  83. package/dist/web/assets/{git-branch-DTeeARsp.js → git-branch-l2Zih3Bv.js} +1 -1
  84. package/dist/web/assets/{git-commit-horizontal-C8UFKlXy.js → git-commit-horizontal-Bxi8YPep.js} +1 -1
  85. package/dist/web/assets/{htmlMode-NbLN3n6Q.js → htmlMode-CeUcNhBZ.js} +1 -1
  86. package/dist/web/assets/{index-BcZetaeD.css → index-BMFyOFRU.css} +1 -1
  87. package/dist/web/assets/index-BzwcDzbT.js +1 -0
  88. package/dist/web/assets/{index-DQalqxbw.js → index-KoQSSt_f.js} +50 -50
  89. package/dist/web/assets/{info-BXBpMeVU.js → info-JTbDQxHx.js} +1 -1
  90. package/dist/web/assets/{jsonMode-Bl3r4LM_.js → jsonMode-97z0Yz9u.js} +1 -1
  91. package/dist/web/assets/{lspLanguageFeatures-DH22w5XD.js → lspLanguageFeatures-D4Tp-JmI.js} +1 -1
  92. package/dist/web/assets/{make-agent-tutorial-CAnTPFCK.js → make-agent-tutorial-D6nBCgv-.js} +1 -1
  93. package/dist/web/assets/{monaco.contribution-DK-g-i00.js → monaco.contribution-B3j6oown.js} +2 -2
  94. package/dist/web/assets/{monaco.contribution-iAurj7TQ.js → monaco.contribution-BXHxPPWL.js} +2 -2
  95. package/dist/web/assets/{monaco.contribution-C0BsxYAz.js → monaco.contribution-C2P5zIzh.js} +2 -2
  96. package/dist/web/assets/{monaco.contribution-CzpXjm9j.js → monaco.contribution-C8c6OtGi.js} +2 -2
  97. package/dist/web/assets/{monitor-Ba2FFblh.js → monitor-kzHtxHnA.js} +1 -1
  98. package/dist/web/assets/{play-2NDQ4-7K.js → play-C-37dnR1.js} +1 -1
  99. package/dist/web/assets/{python-CQ0TmUW9.js → python-CGpDXY7_.js} +1 -1
  100. package/dist/web/assets/{refresh-cw-CyermMsy.js → refresh-cw-BAaaPCXl.js} +1 -1
  101. package/dist/web/assets/{reply-BSExNLHM.js → reply-9rehU13k.js} +1 -1
  102. package/dist/web/assets/{rotate-cw-DJ-zYG9E.js → rotate-cw-C1Z_Xs23.js} +1 -1
  103. package/dist/web/assets/{save-Bij3cc3Q.js → save-Cvxs3XyC.js} +1 -1
  104. package/dist/web/assets/{toggleHighContrast-CxALivAH.js → toggleHighContrast-CD42jH4g.js} +1 -1
  105. package/dist/web/assets/{tsMode-vH4lMS7h.js → tsMode-ZROIxEjv.js} +1 -1
  106. package/dist/web/assets/{upload-DbJfEI3G.js → upload-DvCSGERK.js} +1 -1
  107. package/dist/web/assets/{wifi-off-BnVFBG28.js → wifi-off-BIb94PkS.js} +1 -1
  108. package/dist/web/assets/{workers-CBihj7z6.js → workers-oYqbrVYG.js} +1 -1
  109. package/dist/web/assets/{yaml-Bhkoq1sy.js → yaml-WqBjNgOO.js} +1 -1
  110. package/dist/web/index.html +2 -2
  111. package/docs/command-reference.md +1 -1
  112. package/package.json +1 -1
  113. package/dist/web/assets/MainChatThread-Dj_Ry6WQ.js +0 -2
  114. package/dist/web/assets/Messages-CH2wfv2a.js +0 -10
  115. package/dist/web/assets/RightChatPanelStack-Di8zoHJI.js +0 -1
  116. package/dist/web/assets/SettingsView-BcYyY66X.css +0 -1
  117. package/dist/web/assets/SettingsView-CAaKdDHt.js +0 -6
  118. package/dist/web/assets/credit-card-Bjg0Zaw5.js +0 -1
  119. package/dist/web/assets/index-DYxF_d9i.js +0 -1
  120. package/dist/web/tokens/eth.svg +0 -1
  121. package/dist/web/tokens/usdc.svg +0 -1
@@ -1,4 +1,4 @@
1
- import{a as x,A as lt,C as E,I as fe,D as fa,b as Pe,g as Vw,M as V,c as U,d as bi,e as S,r as oe,f as pi,h as p,i as KL,j as we,R as J,S as G,k as ut,m as mi,n as ce,o as Q,p as D,q as M,K as He,s as A,t as T,u as qe,v as y,w as Y,O as Qi,x as Ve,P as H,y as Jg,z as Fd,B as Oi,F as Bw,G as xn,H as ag,J as an,L as Va,N as Gl,Q as et,U as ge,T as Uw,$ as F,V as re,W as se,X as ye,Y as X,Z as ze,_ as pa,a0 as k,a1 as Yf,a2 as zw,a3 as GL,a4 as Be,a5 as ZL,a6 as Wd,a7 as It,a8 as z,a9 as Is,aa as $,ab as Ps,ac as XL,ad as nt,ae as Qf,af as YL,ag as $w,ah as Re,ai as lg,aj as QL,ak as cv,al as hv,am as ie,an as JL,ao as Ke,ap as uv,aq as eD,ar as Ct,as as dg,at as Fn,au as Ko,av as ma,aw as Le,ax as tD,ay as pt,az as cg,aA as ht,aB as Go,aC as iD,aD as Wn,aE as ef,aF as Jf,aG as hg,aH as Qe,aI as gv,aJ as _a,aK as nD,aL as mt,aM as _i,aN as Ge,aO as ki,aP as sD,aQ as oD,aR as fv,aS as Hn,aT as jw,aU as Ut,aV as Gc,aW as rD,aX as aD,aY as Kb,aZ as $e,a_ as Ln,a$ as $t,b0 as ee,b1 as Cn,b2 as lD,b3 as nn,b4 as Ht,b5 as pv,b6 as Zl,b7 as va,b8 as qw,b9 as mv,ba as je,bb as q,bc as Hd,bd as Zo,be as tf,bf as Me,bg as ep,bh as Kw,bi as dD,bj as _v,bk as be,bl as vv,bm as ba,bn as ug,bo as cD,bp as Gw,bq as Xl,br as Xo,bs as Yl,bt as gg,bu as bv,bv as Cv,bw as ae,bx as Ci,by as hr,bz as hD,bA as Oc,bB as Sv,bC as uD,bD as Zc,bE as wv,bF as Ca,bG as Si,bH as Vn,bI as te,bJ as Sa,bK as Zw,bL as fg,bM as wa,bN as P,bO as K,bP as Ql,bQ as ve,bR as Jl,bS as Xc,bT as Ba,bU as tp,bV as Xw,bW as gD,bX as fD,bY as pD,bZ as Vd,b_ as Vt,b$ as xs,c0 as At,c1 as Ms,c2 as mD,c3 as _e,c4 as Fr,c5 as Gb,c6 as Bd,c7 as Yw,c8 as W,c9 as Wr,ca as _D,cb as ai,cc as ur,cd as Ji,ce as wi,cf as vD,cg as Qw,ch as Zb,ci as nf,cj as bD,ck as rt,cl as Jw,cm as CD,cn as ey,co as Ud,cp as SD,cq as Yc,cr as yv,cs as yi,ct as wD,cu as yD,cv as Ls,cw as Iv,cx as ID,cy as Xb,cz as Yb,cA as xD,cB as Hr,cC as ty,cD as LD,cE as DD,cF as Rn,cG as ED,cH as RD,cI as sn,cJ as xv,cK as Lv,cL as xt,cM as ks,cN as ed,cO as iy,cP as Zt,cQ as Ua,cR as za,cS as ND,cT as TD,cU as PD,cV as ny,cW as Ac,cX as Qb,cY as MD,cZ as Lt,c_ as Dv,c$ as sy,d0 as Ze,d1 as Ev,d2 as Rv,d3 as kD,d4 as OD,d5 as Jb,d6 as AD,d7 as zd,d8 as ip,d9 as Yo,da as We,db as Ds,dc as FD,dd as en,de as hi,df as Ft,dg as eC,dh as $a,di as Nn,dj as on,dk as WD,dl as Jt,dm as ya,dn as pg,dp as oy,dq as HD,dr as VD,ds as Nv,dt as BD,du as td,dv as UD,dw as zD,dx as Qc,dy as ry,dz as tC,dA as $D,dB as jD,dC as qD,dD as Tv,dE as ay,dF as ly,dG as dy,dH as cy,dI as KD,dJ as GD,dK as hy,dL as uy,dM as ZD,dN as mg,dO as XD,dP as YD,dQ as Te,dR as Pv,dS as Mv,dT as QD,dU as Zs,dV as iC,dW as JD,dX as e1,dY as t1,dZ as i1,d_ as n1,d$ as s1,e0 as o1,e1 as nC,e2 as gy,e3 as ft,e4 as sc,e5 as r1,e6 as kv,e7 as a1,e8 as l1,e9 as d1,ea as c1,eb as h1,ec as Ue,ed as vt,ee as u1,ef as Tn,eg as g1,eh as sC,ei as St,ej as _g,ek as ja,el as np,em as f1,en as p1,eo as oC,ep as sp,eq as m1,er as _1,es as v1,et as b1,eu as vg,ev as bg,ew as fy,ex as py,ey as C1,ez as rC,eA as S1,eB as qa,eC as w1,eD as gl,eE as Ov,eF as aC,eG as id,eH as Jc,eI as y1,eJ as I1,eK as my,eL as x1,eM as L1,eN as xl,eO as st,eP as Ll,eQ as Ia,eR as oc,eS as _y,eT as sf,eU as vy,eV as by,eW as D1,eX as E1,eY as Fc,eZ as Cy,e_ as R1,e$ as N1,f0 as T1,f1 as P1,f2 as Yr,f3 as of,f4 as M1,f5 as k1,f6 as O1,f7 as lC,f8 as dC,f9 as cC,fa as Fe,fb as A1,fc as F1,fd as Xi,fe as tn,ff as W1,fg as Qn,fh as H1,fi as Sy,fj as bt,fk as nd,fl as Dn,fm as V1,fn as B1,fo as U1,fp as z1,fq as op,fr as wy,fs as Bt,ft as Ye,fu as xa,fv as yy,fw as sd,fx as $1,fy as Vr,fz as Av,fA as j1,fB as q1,fC as K1,fD as G1,fE as Z1,fF as tl,fG as hC,fH as X1,fI as Y1,fJ as Q1,fK as J1,fL as En,fM as Iy,fN as eE,fO as od,fP as uC,fQ as tE,fR as iE,fS as nE,fT as xy,fU as sE,fV as oE,fW as Ly,fX as eh,fY as rE,fZ as gC,f_ as vn,f$ as fC,g0 as Qt,g1 as Ie,g2 as pC,g3 as Fv,g4 as aE,g5 as lE,g6 as dE,g7 as Cg,g8 as cE,g9 as rp,ga as Dy,gb as Ey,gc as hE,gd as uE,ge as gE,gf as fE,gg as pE,gh as mE,gi as _E,gj as vE,gk as Ry,gl as bE,gm as th,gn as Os,go as Ny,gp as CE,gq as Ty,gr as SE,gs as Py,gt as My,gu as wE,gv as mC,gw as ky,gx as _C,gy as yE,gz as rf,gA as vC,gB as IE,gC as xE,gD as LE,gE as Ka,gF as ap,gG as Ga,gH as Oy,gI as DE,gJ as Ay,gK as Fy,gL as EE,gM as Wy,gN as Hy,gO as Vy,gP as RE,gQ as gi,gR as NE,gS as eo,gT as Br,gU as rc,gV as By,gW as Uy,gX as TE,gY as PE,gZ as Sn,g_ as ME,g$ as bC,h0 as kE,h1 as zy,h2 as La,h3 as OE,h4 as AE,h5 as $y,h6 as FE,h7 as jy,h8 as CC,h9 as Dl,ha as WE,hb as Sg,hc as HE,hd as wg,he as yg,hf as Ig,hg as xg,hh as qy,hi as VE,hj as BE,hk as UE,hl as zE,hm as SC,hn as wC,ho as yC,hp as lp,hq as $E,hr as jE,hs as qE,ht as IC,hu as KE,hv as GE,hw as $d,hx as ZE,hy as XE,hz as Ky,hA as il,hB as YE,hC as QE,hD as Wc,hE as JE,hF as eR,hG as tR,hH as Wv,hI as Hv,hJ as iR,hK as nR,hL as sR,hM as oR,hN as Gy,hO as Lg,hP as rR,hQ as ih,hR as rs,hS as aR,hT as lR,hU as dR,hV as cR,hW as hR,hX as uR,hY as xC,hZ as Vv,h_ as dp,h$ as gR,i0 as fR,i1 as pR,i2 as mR,i3 as Bv,i4 as Zy,i5 as LC,i6 as DC,i7 as _R,i8 as vR,i9 as EC,ia as af,ib as bR,ic as CR,id as SR,ie as lf,ig as Xy,ih as Yy,ii as Qy,ij as Jy,ik as Pn,il as eI,im as Uv,io as RC,ip as wR,iq as tI,ir as yR,is as IR,it as Dg,iu as gr,iv as Eg,iw as jd,ix as xR,iy as Rg,iz as LR,iA as DR,iB as ER,iC as RR,iD as iI,iE as nl,iF as NR,iG as TR,iH as PR,iI as MR,iJ as qd,iK as kR,iL as nI,iM as sI,iN as oI,iO as cp,iP as OR,iQ as AR,iR as FR,iS as WR,iT as hp,iU as HR,iV as VR,iW as BR,iX as UR,iY as zR,iZ as $R,i_ as jR,i$ as qR,j0 as rI,j1 as KR,j2 as GR,j3 as ZR,j4 as NC,j5 as XR,j6 as YR}from"./WorkspaceMonacoEditor-CHd22UcG.js";class QR extends lt{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:x(85,"Toggle Collapse Unchanged Regions"),icon:U.map,toggled:E.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:E.has("isInDiffEditor"),menu:{when:E.has("isInDiffEditor"),id:V.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class aI extends lt{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:x(86,"Toggle Show Moved Code Blocks"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class lI extends lt{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:x(87,"Toggle Use Inline View When Space Is Limited"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const Kd=x(88,"Diff Editor");class JR extends bi{constructor(){super({id:"diffEditor.switchSide",title:x(89,"Switch Side"),icon:U.arrowSwap,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,i){const n=fr(e);if(n instanceof fa){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class e0 extends bi{constructor(){super({id:"diffEditor.exitCompareMove",title:x(90,"Exit Compare Move"),icon:U.close,precondition:S.comparingMovedCode,f1:!1,category:Kd,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.exitCompareMove()}}class t0 extends bi{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:x(91,"Collapse All Unchanged Regions"),icon:U.fold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.collapseAllUnchangedRegions()}}class i0 extends bi{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:x(92,"Show All Unchanged Regions"),icon:U.unfold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.showAllUnchangedRegions()}}class up extends lt{constructor(){super({id:"diffEditor.revert",title:x(93,"Revert"),f1:!0,category:Kd,precondition:E.has("isInDiffEditor")})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){const t=fr(e);t instanceof fa&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){const i=n0(e,t.originalUri,t.modifiedUri);i instanceof fa&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const dI=x(94,"Accessible Diff Viewer"),mu=class mu extends lt{constructor(){super({id:mu.id,title:x(95,"Go to Next Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerNext()}};mu.id="editor.action.accessibleDiffViewer.next";let rd=mu;const _u=class _u extends lt{constructor(){super({id:_u.id,title:x(96,"Go to Previous Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerPrev()}};_u.id="editor.action.accessibleDiffViewer.prev";let nh=_u;function n0(a,e,t){return a.get(Pe).listDiffEditors().find(s=>{const o=s.getModifiedEditor(),r=s.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&r&&r.getModel()?.uri.toString()===e.toString()})||null}function fr(a){const t=a.get(Pe).listDiffEditors(),i=Vw();if(i){for(const n of t)if(n.getContainerDomNode().contains(i))return n}return null}oe(QR);oe(aI);oe(lI);pi.appendMenuItem(V.EditorTitle,{command:{id:new lI().desc.id,title:p(119,"Use Inline View When Space Is Limited"),toggled:E.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:E.has("isInDiffEditor")},order:11,group:"1_diff",when:E.and(S.diffEditorRenderSideBySideInlineBreakpointReached,E.has("isInDiffEditor"))});pi.appendMenuItem(V.EditorTitle,{command:{id:new aI().desc.id,title:p(120,"Show Moved Code Blocks"),icon:U.move,toggled:KL.create("config.diffEditor.experimental.showMoves",!0),precondition:E.has("isInDiffEditor")},order:10,group:"1_diff",when:E.has("isInDiffEditor")});oe(up);for(const a of[{icon:U.arrowRight,key:S.diffEditorInlineMode.toNegated()},{icon:U.discard,key:S.diffEditorInlineMode}])pi.appendMenuItem(V.DiffEditorHunkToolbar,{command:{id:new up().desc.id,title:p(121,"Revert Block"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"}),pi.appendMenuItem(V.DiffEditorSelectionToolbar,{command:{id:new up().desc.id,title:p(122,"Revert Selection"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"});oe(JR);oe(e0);oe(t0);oe(i0);pi.appendMenuItem(V.EditorTitle,{command:{id:rd.id,title:p(123,"Open Accessible Diff Viewer"),precondition:E.has("isInDiffEditor")},order:10,group:"2_diff",when:E.and(S.accessibleDiffViewerVisible.negate(),E.has("isInDiffEditor"))});we.registerCommandAlias("editor.action.diffReview.next",rd.id);oe(rd);we.registerCommandAlias("editor.action.diffReview.prev",nh.id);oe(nh);var s0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},o0=function(a,e){return function(t,i){e(t,i,a)}},gp;const Ng=new J("selectionAnchorSet",!1);var ro;let Es=(ro=class{static get(e){return e.getContribution(gp.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ng.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(G.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ut().appendText(p(798,"Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),mi(p(799,"Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(G.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},gp=ro,ro.ID="editor.contrib.selectionAnchorController",ro);Es=gp=s0([o0(1,ce)],Es);class r0 extends M{constructor(){super({id:"editor.action.setSelectionAnchor",label:x(800,"Set Selection Anchor"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2080),weight:100}})}async run(e,t){Es.get(t)?.setSelectionAnchor()}}class a0 extends M{constructor(){super({id:"editor.action.goToSelectionAnchor",label:x(801,"Go to Selection Anchor"),precondition:Ng})}async run(e,t){Es.get(t)?.goToSelectionAnchor()}}class l0 extends M{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:x(802,"Select from Anchor to Cursor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2089),weight:100}})}async run(e,t){Es.get(t)?.selectFromAnchorToCursor()}}class d0 extends M{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:x(803,"Cancel Selection Anchor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:9,weight:100}})}async run(e,t){Es.get(t)?.cancelSelectionAnchor()}}Q(Es.ID,Es,4);D(r0);D(a0);D(l0);D(d0);const c0=A("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p(804,"Overview ruler marker color for matching brackets."));class h0 extends M{constructor(){super({id:"editor.action.jumpToBracket",label:x(806,"Go to Bracket"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:3165,weight:100}})}run(e,t){Qo.get(t)?.jumpToBracket()}}class u0 extends M{constructor(){super({id:"editor.action.selectToBracket",label:x(807,"Select to Bracket"),precondition:void 0,metadata:{description:x(808,"Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let n=!0;i&&i.selectBrackets===!1&&(n=!1),Qo.get(t)?.selectToBracket(n)}}class g0 extends M{constructor(){super({id:"editor.action.removeBrackets",label:x(809,"Remove Brackets"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:2561,weight:100},canTriggerInlineEdits:!0})}run(e,t){Qo.get(t)?.removeBrackets(this.id)}}class f0{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Kn=class Kn extends T{static get(e){return e.getContribution(Kn.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new qe(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(80),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(80)&&(this._matchBrackets=this._editor.getOption(80),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let o=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?o=s[1].getStartPosition():s[1].containsPosition(n)&&(o=s[0].getStartPosition());else{const r=e.bracketPairs.findEnclosingBrackets(n);if(r)o=r[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(o=l.range.getStartPosition())}}return o?new G(o.lineNumber,o.column,o.lineNumber,o.column):new G(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let o=t.bracketPairs.matchBracket(s);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(s),!o)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(o=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let r=null,l=null;if(o){o.sort(y.compareRangesUsingStarts);const[d,c]=o;if(r=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=r;r=l,l=h}}r&&l&&i.push(new G(r.lineNumber,r.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let o=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[o++]=g.getStartPosition())}s.length>1&&s.sort(H.compare);const r=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;d<c&&n[d].position.isBefore(g);)d++;if(d<c&&n[d].position.equals(g))r[l++]=n[d];else{let f=t.bracketPairs.matchBracket(g,20),m=Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),m=Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),r[l++]=new f0(g,f,m)}}this._lastBracketsData=r,this._lastVersionId=i}};Kn.ID="editor.contrib.bracketMatchingController",Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Y.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Ve(c0),position:Qi.Center}}),Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Y.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Qo=Kn;Q(Qo.ID,Qo,1);D(u0);D(h0);D(g0);pi.appendMenuItem(V.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p(805,"Go to &&Bracket")},order:2});class p0{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new y(i,n-1,i,n),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,s,i,s),r)}else{const o=new y(i,s,i,s+1),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,n,i,n),r)}}computeCursorState(e,t){return this._isMovingLeft?new G(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new G(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class cI extends M{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new p0(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class m0 extends cI{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:x(810,"Move Selected Text Left"),precondition:S.writable})}}class _0 extends cI{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:x(811,"Move Selected Text Right"),precondition:S.writable})}}D(m0);D(_0);class v0 extends M{constructor(){super({id:"editor.action.transposeLetters",label:x(812,"Transpose Letters"),precondition:S.writable,kbOpts:{kbExpr:S.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const o of s){if(!o.isEmpty())continue;const r=o.startLineNumber,l=o.startColumn,d=i.getLineMaxColumn(r);if(r===1&&(l===1||l===2&&d===2))continue;const c=l===d?o.getPosition():Jg.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),h=Jg.leftPosition(i,c),u=Jg.leftPosition(i,h),g=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,c)),m=y.fromPositions(u,c);n.push(new Fd(m,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}D(v0);const b0=Oi("productService");function zv(a,e){return{id:e,asString:async()=>a,asFile:()=>{},value:typeof a=="string"?a:void 0}}function C0(a,e,t,i){const n={id:ag(),name:a,uri:e,data:t};return{id:i,asString:async()=>"",asFile:()=>n,value:void 0}}class hI{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return xn.some(this,([i,n])=>n.asFile())&&t.push("files"),uI(sh(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return sh(e)}}function sh(a){return a.toLowerCase()}function TC(a,e){return uI(sh(a),e.map(sh))}function uI(a,e){if(a==="*/*")return e.length>0;if(e.includes(a))return!0;const t=a.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(o=>o.startsWith(n+"/")):!1}const Tg=Object.freeze({create:a=>Bw(a.map(e=>e.toString())).join(`\r
1
+ import{a as x,A as lt,C as E,I as fe,D as fa,b as Pe,g as Vw,M as V,c as U,d as bi,e as S,r as oe,f as pi,h as p,i as KL,j as we,R as J,S as G,k as ut,m as mi,n as ce,o as Q,p as D,q as M,K as He,s as A,t as T,u as qe,v as y,w as Y,O as Qi,x as Ve,P as H,y as Jg,z as Fd,B as Oi,F as Bw,G as xn,H as ag,J as an,L as Va,N as Gl,Q as et,U as ge,T as Uw,$ as F,V as re,W as se,X as ye,Y as X,Z as ze,_ as pa,a0 as k,a1 as Yf,a2 as zw,a3 as GL,a4 as Be,a5 as ZL,a6 as Wd,a7 as It,a8 as z,a9 as Is,aa as $,ab as Ps,ac as XL,ad as nt,ae as Qf,af as YL,ag as $w,ah as Re,ai as lg,aj as QL,ak as cv,al as hv,am as ie,an as JL,ao as Ke,ap as uv,aq as eD,ar as Ct,as as dg,at as Fn,au as Ko,av as ma,aw as Le,ax as tD,ay as pt,az as cg,aA as ht,aB as Go,aC as iD,aD as Wn,aE as ef,aF as Jf,aG as hg,aH as Qe,aI as gv,aJ as _a,aK as nD,aL as mt,aM as _i,aN as Ge,aO as ki,aP as sD,aQ as oD,aR as fv,aS as Hn,aT as jw,aU as Ut,aV as Gc,aW as rD,aX as aD,aY as Kb,aZ as $e,a_ as Ln,a$ as $t,b0 as ee,b1 as Cn,b2 as lD,b3 as nn,b4 as Ht,b5 as pv,b6 as Zl,b7 as va,b8 as qw,b9 as mv,ba as je,bb as q,bc as Hd,bd as Zo,be as tf,bf as Me,bg as ep,bh as Kw,bi as dD,bj as _v,bk as be,bl as vv,bm as ba,bn as ug,bo as cD,bp as Gw,bq as Xl,br as Xo,bs as Yl,bt as gg,bu as bv,bv as Cv,bw as ae,bx as Ci,by as hr,bz as hD,bA as Oc,bB as Sv,bC as uD,bD as Zc,bE as wv,bF as Ca,bG as Si,bH as Vn,bI as te,bJ as Sa,bK as Zw,bL as fg,bM as wa,bN as P,bO as K,bP as Ql,bQ as ve,bR as Jl,bS as Xc,bT as Ba,bU as tp,bV as Xw,bW as gD,bX as fD,bY as pD,bZ as Vd,b_ as Vt,b$ as xs,c0 as At,c1 as Ms,c2 as mD,c3 as _e,c4 as Fr,c5 as Gb,c6 as Bd,c7 as Yw,c8 as W,c9 as Wr,ca as _D,cb as ai,cc as ur,cd as Ji,ce as wi,cf as vD,cg as Qw,ch as Zb,ci as nf,cj as bD,ck as rt,cl as Jw,cm as CD,cn as ey,co as Ud,cp as SD,cq as Yc,cr as yv,cs as yi,ct as wD,cu as yD,cv as Ls,cw as Iv,cx as ID,cy as Xb,cz as Yb,cA as xD,cB as Hr,cC as ty,cD as LD,cE as DD,cF as Rn,cG as ED,cH as RD,cI as sn,cJ as xv,cK as Lv,cL as xt,cM as ks,cN as ed,cO as iy,cP as Zt,cQ as Ua,cR as za,cS as ND,cT as TD,cU as PD,cV as ny,cW as Ac,cX as Qb,cY as MD,cZ as Lt,c_ as Dv,c$ as sy,d0 as Ze,d1 as Ev,d2 as Rv,d3 as kD,d4 as OD,d5 as Jb,d6 as AD,d7 as zd,d8 as ip,d9 as Yo,da as We,db as Ds,dc as FD,dd as en,de as hi,df as Ft,dg as eC,dh as $a,di as Nn,dj as on,dk as WD,dl as Jt,dm as ya,dn as pg,dp as oy,dq as HD,dr as VD,ds as Nv,dt as BD,du as td,dv as UD,dw as zD,dx as Qc,dy as ry,dz as tC,dA as $D,dB as jD,dC as qD,dD as Tv,dE as ay,dF as ly,dG as dy,dH as cy,dI as KD,dJ as GD,dK as hy,dL as uy,dM as ZD,dN as mg,dO as XD,dP as YD,dQ as Te,dR as Pv,dS as Mv,dT as QD,dU as Zs,dV as iC,dW as JD,dX as e1,dY as t1,dZ as i1,d_ as n1,d$ as s1,e0 as o1,e1 as nC,e2 as gy,e3 as ft,e4 as sc,e5 as r1,e6 as kv,e7 as a1,e8 as l1,e9 as d1,ea as c1,eb as h1,ec as Ue,ed as vt,ee as u1,ef as Tn,eg as g1,eh as sC,ei as St,ej as _g,ek as ja,el as np,em as f1,en as p1,eo as oC,ep as sp,eq as m1,er as _1,es as v1,et as b1,eu as vg,ev as bg,ew as fy,ex as py,ey as C1,ez as rC,eA as S1,eB as qa,eC as w1,eD as gl,eE as Ov,eF as aC,eG as id,eH as Jc,eI as y1,eJ as I1,eK as my,eL as x1,eM as L1,eN as xl,eO as st,eP as Ll,eQ as Ia,eR as oc,eS as _y,eT as sf,eU as vy,eV as by,eW as D1,eX as E1,eY as Fc,eZ as Cy,e_ as R1,e$ as N1,f0 as T1,f1 as P1,f2 as Yr,f3 as of,f4 as M1,f5 as k1,f6 as O1,f7 as lC,f8 as dC,f9 as cC,fa as Fe,fb as A1,fc as F1,fd as Xi,fe as tn,ff as W1,fg as Qn,fh as H1,fi as Sy,fj as bt,fk as nd,fl as Dn,fm as V1,fn as B1,fo as U1,fp as z1,fq as op,fr as wy,fs as Bt,ft as Ye,fu as xa,fv as yy,fw as sd,fx as $1,fy as Vr,fz as Av,fA as j1,fB as q1,fC as K1,fD as G1,fE as Z1,fF as tl,fG as hC,fH as X1,fI as Y1,fJ as Q1,fK as J1,fL as En,fM as Iy,fN as eE,fO as od,fP as uC,fQ as tE,fR as iE,fS as nE,fT as xy,fU as sE,fV as oE,fW as Ly,fX as eh,fY as rE,fZ as gC,f_ as vn,f$ as fC,g0 as Qt,g1 as Ie,g2 as pC,g3 as Fv,g4 as aE,g5 as lE,g6 as dE,g7 as Cg,g8 as cE,g9 as rp,ga as Dy,gb as Ey,gc as hE,gd as uE,ge as gE,gf as fE,gg as pE,gh as mE,gi as _E,gj as vE,gk as Ry,gl as bE,gm as th,gn as Os,go as Ny,gp as CE,gq as Ty,gr as SE,gs as Py,gt as My,gu as wE,gv as mC,gw as ky,gx as _C,gy as yE,gz as rf,gA as vC,gB as IE,gC as xE,gD as LE,gE as Ka,gF as ap,gG as Ga,gH as Oy,gI as DE,gJ as Ay,gK as Fy,gL as EE,gM as Wy,gN as Hy,gO as Vy,gP as RE,gQ as gi,gR as NE,gS as eo,gT as Br,gU as rc,gV as By,gW as Uy,gX as TE,gY as PE,gZ as Sn,g_ as ME,g$ as bC,h0 as kE,h1 as zy,h2 as La,h3 as OE,h4 as AE,h5 as $y,h6 as FE,h7 as jy,h8 as CC,h9 as Dl,ha as WE,hb as Sg,hc as HE,hd as wg,he as yg,hf as Ig,hg as xg,hh as qy,hi as VE,hj as BE,hk as UE,hl as zE,hm as SC,hn as wC,ho as yC,hp as lp,hq as $E,hr as jE,hs as qE,ht as IC,hu as KE,hv as GE,hw as $d,hx as ZE,hy as XE,hz as Ky,hA as il,hB as YE,hC as QE,hD as Wc,hE as JE,hF as eR,hG as tR,hH as Wv,hI as Hv,hJ as iR,hK as nR,hL as sR,hM as oR,hN as Gy,hO as Lg,hP as rR,hQ as ih,hR as rs,hS as aR,hT as lR,hU as dR,hV as cR,hW as hR,hX as uR,hY as xC,hZ as Vv,h_ as dp,h$ as gR,i0 as fR,i1 as pR,i2 as mR,i3 as Bv,i4 as Zy,i5 as LC,i6 as DC,i7 as _R,i8 as vR,i9 as EC,ia as af,ib as bR,ic as CR,id as SR,ie as lf,ig as Xy,ih as Yy,ii as Qy,ij as Jy,ik as Pn,il as eI,im as Uv,io as RC,ip as wR,iq as tI,ir as yR,is as IR,it as Dg,iu as gr,iv as Eg,iw as jd,ix as xR,iy as Rg,iz as LR,iA as DR,iB as ER,iC as RR,iD as iI,iE as nl,iF as NR,iG as TR,iH as PR,iI as MR,iJ as qd,iK as kR,iL as nI,iM as sI,iN as oI,iO as cp,iP as OR,iQ as AR,iR as FR,iS as WR,iT as hp,iU as HR,iV as VR,iW as BR,iX as UR,iY as zR,iZ as $R,i_ as jR,i$ as qR,j0 as rI,j1 as KR,j2 as GR,j3 as ZR,j4 as NC,j5 as XR,j6 as YR}from"./WorkspaceMonacoEditor-DPGcG8fy.js";class QR extends lt{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:x(85,"Toggle Collapse Unchanged Regions"),icon:U.map,toggled:E.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:E.has("isInDiffEditor"),menu:{when:E.has("isInDiffEditor"),id:V.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class aI extends lt{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:x(86,"Toggle Show Moved Code Blocks"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class lI extends lt{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:x(87,"Toggle Use Inline View When Space Is Limited"),precondition:E.has("isInDiffEditor")})}run(e,...t){const i=e.get(fe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const Kd=x(88,"Diff Editor");class JR extends bi{constructor(){super({id:"diffEditor.switchSide",title:x(89,"Switch Side"),icon:U.arrowSwap,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,i){const n=fr(e);if(n instanceof fa){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class e0 extends bi{constructor(){super({id:"diffEditor.exitCompareMove",title:x(90,"Exit Compare Move"),icon:U.close,precondition:S.comparingMovedCode,f1:!1,category:Kd,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.exitCompareMove()}}class t0 extends bi{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:x(91,"Collapse All Unchanged Regions"),icon:U.fold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.collapseAllUnchangedRegions()}}class i0 extends bi{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:x(92,"Show All Unchanged Regions"),icon:U.unfold,precondition:E.has("isInDiffEditor"),f1:!0,category:Kd})}runEditorCommand(e,t,...i){const n=fr(e);n instanceof fa&&n.showAllUnchangedRegions()}}class up extends lt{constructor(){super({id:"diffEditor.revert",title:x(93,"Revert"),f1:!0,category:Kd,precondition:E.has("isInDiffEditor")})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){const t=fr(e);t instanceof fa&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){const i=n0(e,t.originalUri,t.modifiedUri);i instanceof fa&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const dI=x(94,"Accessible Diff Viewer"),mu=class mu extends lt{constructor(){super({id:mu.id,title:x(95,"Go to Next Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerNext()}};mu.id="editor.action.accessibleDiffViewer.next";let rd=mu;const _u=class _u extends lt{constructor(){super({id:_u.id,title:x(96,"Go to Previous Difference"),category:dI,precondition:E.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){fr(e)?.accessibleDiffViewerPrev()}};_u.id="editor.action.accessibleDiffViewer.prev";let nh=_u;function n0(a,e,t){return a.get(Pe).listDiffEditors().find(s=>{const o=s.getModifiedEditor(),r=s.getOriginalEditor();return o&&o.getModel()?.uri.toString()===t.toString()&&r&&r.getModel()?.uri.toString()===e.toString()})||null}function fr(a){const t=a.get(Pe).listDiffEditors(),i=Vw();if(i){for(const n of t)if(n.getContainerDomNode().contains(i))return n}return null}oe(QR);oe(aI);oe(lI);pi.appendMenuItem(V.EditorTitle,{command:{id:new lI().desc.id,title:p(119,"Use Inline View When Space Is Limited"),toggled:E.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:E.has("isInDiffEditor")},order:11,group:"1_diff",when:E.and(S.diffEditorRenderSideBySideInlineBreakpointReached,E.has("isInDiffEditor"))});pi.appendMenuItem(V.EditorTitle,{command:{id:new aI().desc.id,title:p(120,"Show Moved Code Blocks"),icon:U.move,toggled:KL.create("config.diffEditor.experimental.showMoves",!0),precondition:E.has("isInDiffEditor")},order:10,group:"1_diff",when:E.has("isInDiffEditor")});oe(up);for(const a of[{icon:U.arrowRight,key:S.diffEditorInlineMode.toNegated()},{icon:U.discard,key:S.diffEditorInlineMode}])pi.appendMenuItem(V.DiffEditorHunkToolbar,{command:{id:new up().desc.id,title:p(121,"Revert Block"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"}),pi.appendMenuItem(V.DiffEditorSelectionToolbar,{command:{id:new up().desc.id,title:p(122,"Revert Selection"),icon:a.icon},when:E.and(S.diffEditorModifiedWritable,a.key),order:5,group:"primary"});oe(JR);oe(e0);oe(t0);oe(i0);pi.appendMenuItem(V.EditorTitle,{command:{id:rd.id,title:p(123,"Open Accessible Diff Viewer"),precondition:E.has("isInDiffEditor")},order:10,group:"2_diff",when:E.and(S.accessibleDiffViewerVisible.negate(),E.has("isInDiffEditor"))});we.registerCommandAlias("editor.action.diffReview.next",rd.id);oe(rd);we.registerCommandAlias("editor.action.diffReview.prev",nh.id);oe(nh);var s0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},o0=function(a,e){return function(t,i){e(t,i,a)}},gp;const Ng=new J("selectionAnchorSet",!1);var ro;let Es=(ro=class{static get(e){return e.getContribution(gp.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ng.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(G.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ut().appendText(p(798,"Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),mi(p(799,"Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(G.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},gp=ro,ro.ID="editor.contrib.selectionAnchorController",ro);Es=gp=s0([o0(1,ce)],Es);class r0 extends M{constructor(){super({id:"editor.action.setSelectionAnchor",label:x(800,"Set Selection Anchor"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2080),weight:100}})}async run(e,t){Es.get(t)?.setSelectionAnchor()}}class a0 extends M{constructor(){super({id:"editor.action.goToSelectionAnchor",label:x(801,"Go to Selection Anchor"),precondition:Ng})}async run(e,t){Es.get(t)?.goToSelectionAnchor()}}class l0 extends M{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:x(802,"Select from Anchor to Cursor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:He(2089,2089),weight:100}})}async run(e,t){Es.get(t)?.selectFromAnchorToCursor()}}class d0 extends M{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:x(803,"Cancel Selection Anchor"),precondition:Ng,kbOpts:{kbExpr:S.editorTextFocus,primary:9,weight:100}})}async run(e,t){Es.get(t)?.cancelSelectionAnchor()}}Q(Es.ID,Es,4);D(r0);D(a0);D(l0);D(d0);const c0=A("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p(804,"Overview ruler marker color for matching brackets."));class h0 extends M{constructor(){super({id:"editor.action.jumpToBracket",label:x(806,"Go to Bracket"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:3165,weight:100}})}run(e,t){Qo.get(t)?.jumpToBracket()}}class u0 extends M{constructor(){super({id:"editor.action.selectToBracket",label:x(807,"Select to Bracket"),precondition:void 0,metadata:{description:x(808,"Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){let n=!0;i&&i.selectBrackets===!1&&(n=!1),Qo.get(t)?.selectToBracket(n)}}class g0 extends M{constructor(){super({id:"editor.action.removeBrackets",label:x(809,"Remove Brackets"),precondition:void 0,kbOpts:{kbExpr:S.editorTextFocus,primary:2561,weight:100},canTriggerInlineEdits:!0})}run(e,t){Qo.get(t)?.removeBrackets(this.id)}}class f0{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Kn=class Kn extends T{static get(e){return e.getContribution(Kn.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new qe(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(80),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(80)&&(this._matchBrackets=this._editor.getOption(80),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let o=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?o=s[1].getStartPosition():s[1].containsPosition(n)&&(o=s[0].getStartPosition());else{const r=e.bracketPairs.findEnclosingBrackets(n);if(r)o=r[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(o=l.range.getStartPosition())}}return o?new G(o.lineNumber,o.column,o.lineNumber,o.column):new G(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let o=t.bracketPairs.matchBracket(s);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(s),!o)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(o=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let r=null,l=null;if(o){o.sort(y.compareRangesUsingStarts);const[d,c]=o;if(r=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=r;r=l,l=h}}r&&l&&i.push(new G(r.lineNumber,r.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let o=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[o++]=g.getStartPosition())}s.length>1&&s.sort(H.compare);const r=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;d<c&&n[d].position.isBefore(g);)d++;if(d<c&&n[d].position.equals(g))r[l++]=n[d];else{let f=t.bracketPairs.matchBracket(g,20),m=Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),m=Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),r[l++]=new f0(g,f,m)}}this._lastBracketsData=r,this._lastVersionId=i}};Kn.ID="editor.contrib.bracketMatchingController",Kn._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Y.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Ve(c0),position:Qi.Center}}),Kn._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Y.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let Qo=Kn;Q(Qo.ID,Qo,1);D(u0);D(h0);D(g0);pi.appendMenuItem(V.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:p(805,"Go to &&Bracket")},order:2});class p0{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const o=new y(i,n-1,i,n),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,s,i,s),r)}else{const o=new y(i,s,i,s+1),r=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new y(i,n,i,n),r)}}computeCursorState(e,t){return this._isMovingLeft?new G(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new G(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class cI extends M{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new p0(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class m0 extends cI{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:x(810,"Move Selected Text Left"),precondition:S.writable})}}class _0 extends cI{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:x(811,"Move Selected Text Right"),precondition:S.writable})}}D(m0);D(_0);class v0 extends M{constructor(){super({id:"editor.action.transposeLetters",label:x(812,"Transpose Letters"),precondition:S.writable,kbOpts:{kbExpr:S.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const o of s){if(!o.isEmpty())continue;const r=o.startLineNumber,l=o.startColumn,d=i.getLineMaxColumn(r);if(r===1&&(l===1||l===2&&d===2))continue;const c=l===d?o.getPosition():Jg.rightPosition(i,o.getPosition().lineNumber,o.getPosition().column),h=Jg.leftPosition(i,c),u=Jg.leftPosition(i,h),g=i.getValueInRange(y.fromPositions(u,h)),f=i.getValueInRange(y.fromPositions(h,c)),m=y.fromPositions(u,c);n.push(new Fd(m,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}D(v0);const b0=Oi("productService");function zv(a,e){return{id:e,asString:async()=>a,asFile:()=>{},value:typeof a=="string"?a:void 0}}function C0(a,e,t,i){const n={id:ag(),name:a,uri:e,data:t};return{id:i,asString:async()=>"",asFile:()=>n,value:void 0}}class hI{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return xn.some(this,([i,n])=>n.asFile())&&t.push("files"),uI(sh(e),t)}get(e){return this._entries.get(this.toKey(e))?.[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return sh(e)}}function sh(a){return a.toLowerCase()}function TC(a,e){return uI(sh(a),e.map(sh))}function uI(a,e){if(a==="*/*")return e.length>0;if(e.includes(a))return!0;const t=a.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(o=>o.startsWith(n+"/")):!1}const Tg=Object.freeze({create:a=>Bw(a.map(e=>e.toString())).join(`\r
2
2
  `),split:a=>a.split(`\r
3
3
  `),parse:a=>Tg.split(a).filter(e=>!e.startsWith("#"))}),Vi=class Vi{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Vi.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new Vi((this.value?[this.value,...e]:e).join(Vi.sep))}};Vi.sep=".",Vi.None=new Vi("@@none@@"),Vi.Empty=new Vi("");let xe=Vi;const PC={EDITORS:"CodeEditors",FILES:"CodeFiles"};class S0{}const w0={DragAndDropContribution:"workbench.contributions.dragAndDrop"};an.add(w0.DragAndDropContribution,new S0);const $l=class $l{constructor(){}static getInstance(){return $l.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};$l.INSTANCE=new $l;let fp=$l;function gI(a){if(Va&&typeof globalThis.vscode?.webUtils?.getPathForFile=="function")return globalThis.vscode?.webUtils?.getPathForFile(a)}function fI(a){const e=new hI;for(const t of a.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,zv(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,y0(n))}}return e}function y0(a){const e=gI(a),t=e?ge.parse(e):void 0;return C0(a.name,t,async()=>new Uint8Array(await a.arrayBuffer()))}const I0=Object.freeze([PC.EDITORS,PC.FILES,Gl.RESOURCES,Gl.INTERNAL_URI_LIST]);function pI(a,e=!1){const t=fI(a),i=t.get(Gl.INTERNAL_URI_LIST);if(i)t.replace(et.uriList,i);else if(e||!t.has(et.uriList)){const n=[];for(const s of a.items){const o=s.getAsFile();if(o){const r=gI(o);try{r?n.push(ge.file(r).toString()):n.push(ge.parse(o.name,!0).toString())}catch{}}}n.length&&t.replace(et.uriList,zv(Tg.create(n)))}for(const n of I0)t.delete(n);return t}var x0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L0=function(a,e){return function(t,i){e(t,i,a)}};const D0=Y.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:Uw,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),vu=class vu extends T{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=F(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=F("span.icon");this.domNode.append(t),t.classList.add(...re.asClassNameArray(U.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(75);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(61)||n.hasChanged(75))&&i()})),this._register(se(this.domNode,ye.CLICK,n=>{this.delegate.cancel()}))}getId(){return vu.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};vu.baseId="editor.widget.inlineProgressWidget";let pp=vu,oh=class extends T{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new ze),this._currentWidget=this._register(new ze),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,n,s){const o=this._operationIdPool++;this._currentOperation=o,this.clear(),this._showPromise.value=pa(()=>{const r=y.fromPositions(e);this._currentDecorations.set([{range:r,options:D0}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(pp,this.id,this._editor,r,t,n))},s??this._showDelay);try{return await i}finally{this._currentOperation===o&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};oh=x0([L0(2,X)],oh);var E0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},MC=function(a,e){return function(t,i){e(t,i,a)}},Hc,ls;let Et=(ls=class{static get(e){return e.getContribution(Hc.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new ze,this._messageListeners=new k,this._mouseOverMessage=!1,this._editor=e,this._visible=Hc.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){if(mi(Yf(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),Yf(e)){const n=this._messageListeners.add(zw(e,{actionHandler:(s,o)=>{this.closeMessage(),GL(this._openerService,s,o.isTrusted)}}));this._messageWidget.value=new df(this._editor,t,n.element)}else this._messageWidget.value=new df(this._editor,t,e);this._messageListeners.add(Be.debounce(this._editor.onDidBlurEditorText,(n,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&ZL(Vw(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(se(this._messageWidget.value.getDomNode(),ye.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(se(this._messageWidget.value.getDomNode(),ye.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new y(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(df.fadeOut(this._messageWidget.value))}},Hc=ls,ls.ID="editor.contrib.messageController",ls.MESSAGE_VISIBLE=new J("messageVisible",!1,p(1287,"Whether the editor is currently showing an inline message")),ls);Et=Hc=E0([MC(1,ce),MC(2,Wd)],Et);const R0=It.bindToContribution(Et.get);z(new R0({id:"leaveEditorMessage",precondition:Et.MESSAGE_VISIBLE,handler:a=>a.closeMessage(),kbOpts:{weight:130,primary:9}}));let df=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const o=document.createElement("div");typeof n=="string"?(o.classList.add("message"),o.textContent=n):(n.classList.add("message"),o.appendChild(n)),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Q(Et.ID,Et,4);var $v=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ad=function(a,e){return function(t,i){e(t,i,a)}};class jv{constructor(e){this.copyMimeTypes=[],this.kind=e,this.providedDropEditKinds=[this.kind],this.providedPasteEditKinds=[this.kind]}async provideDocumentPasteEdits(e,t,i,n,s){const o=await this.getEdit(i,s);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,n){const s=await this.getEdit(i,n);if(s)return{edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}],dispose(){}}}}const bu=class bu extends jv{constructor(){super(xe.Empty.append("text","plain")),this.id=bu.id,this.dropMimeTypes=[et.text],this.pasteMimeTypes=[et.text]}async getEdit(e,t){const i=e.get(et.text);if(!i||e.has(et.uriList))return;const n=await i.asString();return{handledMimeType:et.text,title:p(926,"Insert Plain Text"),insertText:n,kind:this.kind}}};bu.id="text";let Jo=bu;class mI extends jv{constructor(){super(xe.Empty.append("uri","path","absolute")),this.dropMimeTypes=[et.uriList],this.pasteMimeTypes=[et.uriList]}async getEdit(e,t){const i=await _I(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map(({uri:r,originalText:l})=>r.scheme===nt.file?r.fsPath:(n++,l)).join(" ");let o;return n>0?o=i.length>1?p(927,"Insert Uris"):p(928,"Insert Uri"):o=i.length>1?p(929,"Insert Paths"):p(930,"Insert Path"),{handledMimeType:et.uriList,insertText:s,title:o,kind:this.kind}}}let rh=class extends jv{constructor(e){super(xe.Empty.append("uri","path","relative")),this._workspaceContextService=e,this.dropMimeTypes=[et.uriList],this.pasteMimeTypes=[et.uriList]}async getEdit(e,t){const i=await _I(e);if(!i.length||t.isCancellationRequested)return;const n=Ps(i.map(({uri:s})=>{const o=this._workspaceContextService.getWorkspaceFolder(s);return o?XL(o.uri,s):void 0}));if(n.length)return{handledMimeType:et.uriList,insertText:n.join(" "),title:i.length>1?p(931,"Insert Relative Paths"):p(932,"Insert Relative Path"),kind:this.kind}}};rh=$v([ad(0,Is)],rh);class N0{constructor(){this.kind=new xe("html"),this.providedPasteEditKinds=[this.kind],this.copyMimeTypes=[],this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:et.text}]}async provideDocumentPasteEdits(e,t,i,n,s){if(n.triggerKind!==Qf.PasteAs&&!n.only?.contains(this.kind))return;const r=await i.get("text/html")?.asString();if(!(!r||s.isCancellationRequested))return{dispose(){},edits:[{insertText:r,yieldTo:this._yieldTo,title:p(933,"Insert HTML"),kind:this.kind}]}}}async function _I(a){const e=a.get(et.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of Tg.parse(t))try{i.push({uri:ge.parse(n),originalText:n})}catch{}return i}const to={scheme:"*",hasAccessToAllModels:!0};let mp=class extends T{constructor(e,t){super(),this._register(e.documentDropEditProvider.register(to,new Jo)),this._register(e.documentDropEditProvider.register(to,new mI)),this._register(e.documentDropEditProvider.register(to,new rh(t)))}};mp=$v([ad(0,$),ad(1,Is)],mp);let _p=class extends T{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register(to,new Jo)),this._register(e.documentPasteEditProvider.register(to,new mI)),this._register(e.documentPasteEditProvider.register(to,new rh(t))),this._register(e.documentPasteEditProvider.register(to,new N0))}};_p=$v([ad(0,$),ad(1,Is)],_p);const si=class si{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=si._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(si.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(si.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(si.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(si.isVariableCharacter(i)||si.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof si._table[i]>"u"&&!si.isDigitCharacter(i)&&!si.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}};si._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let vp=si;class Za{constructor(){this._children=[]}appendChild(e){return e instanceof gt&&this._children[this._children.length-1]instanceof gt?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,(function o(r,l){for(const d of r)d.parent=l,o(d.children,d)})(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof Gd)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class gt extends Za{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new gt(this.value)}}class vI extends Za{}class Xt extends vI{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Xa?this._children[0]:void 0}clone(){const e=new Xt(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Xa extends Za{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof gt&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Xa;return this.options.forEach(e.appendChild,e),e}}class qv extends Za{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Ei&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Ei){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new qv;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Ei extends Za{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Ei(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class ld extends vI{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new gt(t)],!0):!1}clone(){const e=new ld(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function kC(a,e){const t=[...a];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class Gd extends Za{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Xt&&(e.push(i),t=!t||t.index<i.index?i:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk(n=>n===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return kC([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Xt&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof ld&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new Gd;return this._children=this.children.map(t=>t.clone()),e}walk(e){kC(this.children,e)}}class er{constructor(){this._scanner=new vp,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new Gd;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Xt&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const o=(l,d)=>{const c=n.get(l.index);if(!c)return;const h=new Xt(l.index);h.transform=l.transform;for(const u of c){const g=u.clone();h.appendChild(g),g instanceof Xt&&n.has(g.index)&&!d.has(g.index)&&(d.add(g.index),o(g,d),d.delete(g.index))}t.replace(l,[h])},r=new Set;for(const l of s)o(l,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Xt(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new gt(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Xt(Number(t)):new ld(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Xt(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new gt("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const o=new Xa;for(;;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(o),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new gt(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new ld(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new gt("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new qv;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new gt(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Ei(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Ei(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Ei(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Ei(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Ei(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const o=this._until(4);if(o)return e.appendChild(new Ei(Number(n),void 0,s,o)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Ei(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new gt(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function bI(a,e,t){return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:t.additionalEdit?.edits??[]}:{edits:[...e.map(i=>new YL(a,{range:i,text:typeof t.insertText=="string"?er.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...t.additionalEdit?.edits??[]]}}function CI(a){function e(o,r){return"mimeType"in o?o.mimeType===r.handledMimeType:!!r.kind&&o.kind.contains(r.kind)}const t=new Map;for(const o of a)for(const r of o.yieldTo??[])for(const l of a)if(l!==o&&e(r,l)){let d=t.get(o);d||(d=[],t.set(o,d)),d.push(l)}if(!t.size)return Array.from(a);const i=new Set,n=[];function s(o){if(!o.length)return[];const r=o[0];if(n.includes(r))return console.warn("Yield to cycle detected",r),o;if(i.has(r))return s(o.slice(1));let l=[];const d=t.get(r);return d&&(n.push(r),l=s(d),n.pop()),i.add(r),[...l,r,...s(o.slice(1))]}return s(Array.from(a))}function cf(a,e){return e&&(a.stack||a.stacktrace)?p(29,"{0}: {1}",AC(a),OC(a.stack)||OC(a.stacktrace)):AC(a)}function OC(a){return Array.isArray(a)?a.join(`
4
4
  `):a}function AC(a){return a.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${a.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof a.code=="string"&&typeof a.errno=="number"&&typeof a.syscall=="string"?p(30,"A system error occurred ({0})",a.message):a.message||p(31,"An unknown error occurred. Please consult the log for more details.")}function ah(a=null,e=!1){if(!a)return p(32,"An unknown error occurred. Please consult the log for more details.");if(Array.isArray(a)){const t=Ps(a),i=ah(t[0],e);return t.length>1?p(33,"{0} ({1} errors in total)",i,t.length):i}if($w(a))return a;if(a.detail){const t=a.detail;if(t.error)return cf(t.error,e);if(t.exception)return cf(t.exception,e)}return a.stack?cf(a,e):a.message?a.message:p(34,"An unknown error occurred. Please consult the log for more details.")}var SI=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Vc=function(a,e){return function(t,i){e(t,i,a)}};const wI="acceptSelectedCodeAction",yI="previewSelectedCodeAction";class T0{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.group?.title??e.label??""}disposeTemplate(e){}}class P0{get templateId(){return"separator"}renderTemplate(e){e.classList.add("separator");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){i.text.textContent=e.label??""}disposeTemplate(e){}}let bp=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=document.createElement("span");n.className="description",e.append(n);const s=new cv(e,hv);return{container:e,icon:t,text:i,description:n,keybinding:s}}renderElement(e,t,i){if(e.group?.icon?(i.icon.className=re.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=ie(e.group.icon.color.id))):(i.icon.className=re.asClassName(U.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;JL(!e.hideIcon,i.icon),i.text.textContent=lh(e.label),e.keybinding?(i.description.textContent=e.keybinding.getLabel(),i.description.style.display="inline",i.description.style.letterSpacing="0.5px"):e.description?(i.description.textContent=lh(e.description),i.description.style.display="inline"):(i.description.textContent="",i.description.style.display="none");const n=this._keybindingService.lookupKeybinding(wI)?.getLabel(),s=this._keybindingService.lookupKeybinding(yI)?.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.tooltip?i.container.title=e.tooltip:e.disabled?i.container.title=e.label:n&&s?this._supportsPreview&&e.canPreview?i.container.title=p(1653,"{0} to Apply, {1} to Preview",n,s):i.container.title=p(1654,"{0} to Apply",n):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};bp=SI([Vc(1,Re)],bp);class M0 extends UIEvent{constructor(){super("acceptSelectedAction")}}class FC extends UIEvent{constructor(){super("previewSelectedAction")}}function k0(a){if(a.kind==="action")return a.label}let Cp=class extends T{constructor(e,t,i,n,s,o,r,l){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=r,this._layoutService=l,this._actionLineHeight=28,this._headerLineHeight=28,this._separatorLineHeight=8,this.cts=this._register(new Ke),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const d={getHeight:c=>{switch(c.kind){case"header":return this._headerLineHeight;case"separator":return this._separatorLineHeight;default:return this._actionLineHeight}},getTemplateId:c=>c.kind};this._list=this._register(new uv(e,this.domNode,d,[new bp(t,this._keybindingService),new T0,new P0],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:k0},accessibilityProvider:{getAriaLabel:c=>{if(c.kind==="action"){let h=c.label?lh(c?.label):"";return c.description&&(h=h+", "+lh(c.description)),c.disabled&&(h=p(1655,"{0}, Disabled Reason: {1}",h,c.disabled)),h}return null},getWidgetAriaLabel:()=>p(1656,"Action Widget"),getRole:c=>{switch(c.kind){case"action":return"option";case"separator":return"separator";default:return"separator"}},getWidgetRole:()=>"listbox",...s}})),this._list.style(eD),this._register(this._list.onMouseClick(c=>this.onListClick(c))),this._register(this._list.onMouseOver(c=>this.onListHover(c))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(c=>this.onListSelection(c))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(c=>c.kind==="header").length,i=this._allMenuItems.filter(c=>c.kind==="separator").length,o=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight+i*this._separatorLineHeight-i*this._actionLineHeight;this._list.layout(o);let r=e;if(this._allMenuItems.length>=50)r=380;else{const c=this._allMenuItems.map((h,u)=>{const g=this.domNode.ownerDocument.getElementById(this._list.getElementID(u));if(g){g.style.width="auto";const f=g.getBoundingClientRect().width;return g.style.width="",f}return 0});r=Math.max(...c,e)}const d=Math.min(o,this._layoutService.getContainer(Ct(this.domNode)).clientHeight*.7);return this._list.layout(d,r),this.domNode.style.height=`${d}px`,this._list.domFocus(),r}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new FC:new M0;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof FC):this._list.setSelection([])}onFocus(){const e=this._list.getFocus();if(e.length===0)return;const t=e[0],i=this._list.element(t);this._delegate.onFocus?.(i.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&t.kind==="action"){const i=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=i?i.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Cp=SI([Vc(5,lg),Vc(6,Re),Vc(7,QL)],Cp);function lh(a){return a.replace(/\r\n|\r|\n/g," ")}var O0=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},hf=function(a,e){return function(t,i){e(t,i,a)}};A("actionBar.toggledBackground",dg,p(1657,"Background color for toggled action items in action bar."));const tr={Visible:new J("codeActionMenuVisible",!1,p(1658,"Whether the action widget list is visible"))},As=Oi("actionWidgetService");let ir=class extends T{get isVisible(){return tr.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new ze)}show(e,t,i,n,s,o,r,l){const d=tr.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Cp,e,t,i,n,l);this._contextViewService.showContextView({getAnchor:()=>s,render:h=>(d.set(!0),this._renderWidget(h,c,r??[])),onHide:h=>{d.reset(),this._onWidgetClosed(h)}},o,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,i){const n=document.createElement("div");if(n.classList.add("action-widget"),e.appendChild(n),this._list.value=t,this._list.value)n.appendChild(this._list.value.domNode);else throw new Error("List has no value");const s=new k,o=document.createElement("div"),r=e.appendChild(o);r.classList.add("context-view-block"),s.add(se(r,ye.MOUSE_DOWN,g=>g.stopPropagation()));const l=document.createElement("div"),d=e.appendChild(l);d.classList.add("context-view-pointerBlock"),s.add(se(d,ye.POINTER_MOVE,()=>d.remove())),s.add(se(d,ye.MOUSE_DOWN,()=>d.remove()));let c=0;if(i.length){const g=this._createActionBar(".action-widget-action-bar",i);g&&(n.appendChild(g.getContainer().parentElement),s.add(g),c=g.getContainer().offsetWidth)}const h=this._list.value?.layout(c);n.style.width=`${h}px`;const u=s.add(Ko(e));return s.add(u.onDidBlur(()=>this.hide(!0))),s}_createActionBar(e,t){if(!t.length)return;const i=F(e),n=new ma(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){this._list.value?.hide(e)}};ir=O0([hf(0,lg),hf(1,ce),hf(2,X)],ir);Fn(As,ir,1);const Zd=1100;oe(class extends lt{constructor(){super({id:"hideCodeActionWidget",title:x(1659,"Hide action widget"),precondition:tr.Visible,keybinding:{weight:Zd,primary:9,secondary:[1033]}})}run(a){a.get(As).hide(!0)}});oe(class extends lt{constructor(){super({id:"selectPrevCodeAction",title:x(1660,"Select previous action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(a){const e=a.get(As);e instanceof ir&&e.focusPrevious()}});oe(class extends lt{constructor(){super({id:"selectNextCodeAction",title:x(1661,"Select next action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(a){const e=a.get(As);e instanceof ir&&e.focusNext()}});oe(class extends lt{constructor(){super({id:wI,title:x(1662,"Accept selected action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:3,secondary:[2137]}})}run(a){const e=a.get(As);e instanceof ir&&e.acceptSelected()}});oe(class extends lt{constructor(){super({id:yI,title:x(1663,"Preview selected action"),precondition:tr.Visible,keybinding:{weight:Zd,primary:2051}})}run(a){const e=a.get(As);e instanceof ir&&e.acceptSelected(!0)}});var II=function(a,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,e,t,i);else for(var r=a.length-1;r>=0;r--)(o=a[r])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Qr=function(a,e){return function(t,i){e(t,i,a)}},Sp,ao;let wp=(ao=class extends T{constructor(e,t,i,n,s,o,r,l,d,c,h){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=o,this.onSelectNewEdit=r,this.additionalActions=l,this._keybindingService=c,this._actionWidgetService=h,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(d),this.visibleContext.set(!0),this._register(Le(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Le((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(u=>{this.dispose()})),this._register(Be.runAndSubscribe(c.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){const e=this._keybindingService.lookupKeybinding(this.showCommand.id)?.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=F(".post-edit-widget"),this.button=this._register(new tD(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(se(this.domNode,ye.CLICK,()=>this.showSelector()))}getId(){return Sp.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){const e=pt(this.button.element),t={x:e.left+e.width,y:e.top+e.height};this._actionWidgetService.show("postEditWidget",!1,this.edits.allEdits.map((i,n)=>({kind:"action",item:i,label:i.title,disabled:!1,canPreview:!1,group:{title:"",icon:re.fromId(n===this.edits.activeEditIndex?U.check.id:U.blank.id)}})),{onHide:()=>{this.editor.focus()},onSelect:i=>{this._actionWidgetService.hide(!1);const n=this.edits.allEdits.findIndex(s=>s===i);if(n!==this.edits.activeEditIndex)return this.onSelectNewEdit(n)}},t,this.editor.getDomNode()??void 0,this.additionalActions)}},Sp=ao,ao.baseId="editor.widget.postEditWidget",ao);wp=Sp=II([Qr(8,ce),Qr(9,Re),Qr(10,As)],wp);let dh=class extends T{constructor(e,t,i,n,s,o,r,l){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._getAdditionalActions=s,this._instantiationService=o,this._bulkEditService=r,this._notificationService=l,this._currentWidget=this._register(new ze),this._register(Be.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,s){if(!e.length||!this._editor.hasModel())return;const o=this._editor.getModel(),r=t.allEdits.at(t.activeEditIndex);if(!r)return;const l=async v=>{const C=this._editor.getModel();C&&(await C.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:v,allEdits:t.allEdits},i,n,s))},d=(v,C)=>{Wn(v)||(this._notificationService.error(C),i&&this.show(e[0],t,l))},c=new Go(this._editor,3,void 0,s);let h;try{h=await iD(n(r,c.token),c.token)}catch(v){return d(v,p(937,`Error resolving edit '{0}':
@@ -1,4 +1,4 @@
1
- import{j7 as w,j8 as F,j9 as P,ja as v,l as f,jb as O}from"./WorkspaceMonacoEditor-CHd22UcG.js";import"./toggleHighContrast-CxALivAH.js";import{c as K}from"./workers-CBihj7z6.js";import{typescriptDefaults as M}from"./monaco.contribution-CzpXjm9j.js";import"./index-DQalqxbw.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL(""+new URL("ts.worker-BH9nVgjN.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class V extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
1
+ import{j7 as w,j8 as F,j9 as P,ja as v,l as f,jb as O}from"./WorkspaceMonacoEditor-DPGcG8fy.js";import"./toggleHighContrast-CD42jH4g.js";import{c as K}from"./workers-oYqbrVYG.js";import{typescriptDefaults as M}from"./monaco.contribution-C8c6OtGi.js";import"./index-KoQSSt_f.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL(""+new URL("ts.worker-BH9nVgjN.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class V extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
2
2
  `),code:t.code.toString(),tags:u,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const o=[];return t.forEach(i=>{let l=e;if(i.file&&(l=this._libFiles.getOrCreateModel(i.file.fileName)),!l)return;const p=i.start||0,n=i.length||1,{lineNumber:r,column:u}=l.getPositionAt(p),{lineNumber:d,column:g}=l.getPositionAt(p+n);o.push({resource:l.uri,startLineNumber:r,startColumn:u,endLineNumber:d,endColumn:g,message:A(i.messageText,`
3
3
  `)})}),o}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return v.Error;case 3:return v.Info;case 0:return v.Warning;case 2:return v.Hint}return v.Info}}class C extends y{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,o,i){const l=e.getWordUntilPosition(t),p=new O(t.lineNumber,l.startColumn,t.lineNumber,l.endColumn),n=e.uri,r=e.getOffsetAt(t),u=await this._worker(n);if(e.isDisposed())return;const d=await u.getCompletionsAtPosition(n.toString(),r);return!d||e.isDisposed()?void 0:{suggestions:d.entries.map(b=>{let h=p;if(b.replacementSpan){const x=e.getPositionAt(b.replacementSpan.start),D=e.getPositionAt(b.replacementSpan.start+b.replacementSpan.length);h=new O(x.lineNumber,x.column,D.lineNumber,D.column)}const k=[];return b.kindModifiers!==void 0&&b.kindModifiers.indexOf("deprecated")!==-1&&k.push(f.CompletionItemTag.Deprecated),{uri:n,position:t,offset:r,range:h,label:b.name,insertText:b.name,sortText:b.sortText,kind:C.convertKind(b.kind),tags:k}})}}async resolveCompletionItem(e,t){const o=e,i=o.uri,l=o.position,p=o.offset,r=await(await this._worker(i)).getCompletionEntryDetails(i.toString(),p,o.label);return r?{uri:i,position:l,label:r.name,kind:C.convertKind(r.kind),detail:_(r.displayParts),documentation:{value:C.createDocumentationString(r)}}:o}static convertKind(e){switch(e){case a.primitiveType:case a.keyword:return f.CompletionItemKind.Keyword;case a.variable:case a.localVariable:return f.CompletionItemKind.Variable;case a.memberVariable:case a.memberGetAccessor:case a.memberSetAccessor:return f.CompletionItemKind.Field;case a.function:case a.memberFunction:case a.constructSignature:case a.callSignature:case a.indexSignature:return f.CompletionItemKind.Function;case a.enum:return f.CompletionItemKind.Enum;case a.module:return f.CompletionItemKind.Module;case a.class:return f.CompletionItemKind.Class;case a.interface:return f.CompletionItemKind.Interface;case a.warning:return f.CompletionItemKind.File}return f.CompletionItemKind.Property}static createDocumentationString(e){let t=_(e.documentation);if(e.tags)for(const o of e.tags)t+=`
4
4
 
@@ -1 +1 @@
1
- import{d as a}from"./index-DQalqxbw.js";const o=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],e=a("upload",o);export{e as U};
1
+ import{d as a}from"./index-KoQSSt_f.js";const o=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],e=a("upload",o);export{e as U};
@@ -1 +1 @@
1
- import{d as a}from"./index-DQalqxbw.js";const e=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],d=a("bell",e);const t=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],k=a("scroll-text",t);const h=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],c=a("wifi-off",h);export{d as B,k as S,c as W};
1
+ import{d as a}from"./index-KoQSSt_f.js";const e=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],d=a("bell",e);const t=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],k=a("scroll-text",t);const h=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],c=a("wifi-off",h);export{d as B,k as S,c as W};
@@ -1 +1 @@
1
- import{j7 as c}from"./WorkspaceMonacoEditor-CHd22UcG.js";import"./toggleHighContrast-CxALivAH.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function u(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{u as c};
1
+ import{j7 as c}from"./WorkspaceMonacoEditor-DPGcG8fy.js";import"./toggleHighContrast-CD42jH4g.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function u(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{u as c};
@@ -1 +1 @@
1
- import{l as e}from"./WorkspaceMonacoEditor-CHd22UcG.js";import"./toggleHighContrast-CxALivAH.js";import"./index-DQalqxbw.js";const r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},l={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{r as conf,l as language};
1
+ import{l as e}from"./WorkspaceMonacoEditor-DPGcG8fy.js";import"./toggleHighContrast-CD42jH4g.js";import"./index-KoQSSt_f.js";const r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},l={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{r as conf,l as language};
@@ -7,8 +7,8 @@
7
7
  <link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png" />
8
8
  <link rel="apple-touch-icon" href="./openpond-icon.png" />
9
9
  <title>OpenPond App</title>
10
- <script type="module" crossorigin src="./assets/index-DQalqxbw.js"></script>
11
- <link rel="stylesheet" crossorigin href="./assets/index-BcZetaeD.css">
10
+ <script type="module" crossorigin src="./assets/index-KoQSSt_f.js"></script>
11
+ <link rel="stylesheet" crossorigin href="./assets/index-BMFyOFRU.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="root"></div>
@@ -691,7 +691,7 @@ Options:
691
691
 
692
692
  ```text
693
693
  Usage:
694
- openpond apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|store events|trade-facts|agent create|positions tx> [args]
694
+ openpond apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|agent create> [args]
695
695
 
696
696
  Options:
697
697
  --app-id <string>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "openpondReleaseVersioned": true,
5
5
  "license": "MIT",
6
6
  "description": "OpenPond CLI and local harness",
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./TrainingCreationPanel-C_ntWAAP.js","./index-DQalqxbw.js","./index-BcZetaeD.css","./training-BN8CALIc.css"])))=>i.map(i=>d[i]);
2
- import{j as i,r as s,ag as _}from"./index-DQalqxbw.js";import{T as f,M as T}from"./Messages-CH2wfv2a.js";import"./chevron-up-BWx8gGab.js";import"./copy-BjWvaXLC.js";import"./credit-card-Bjg0Zaw5.js";import"./MarkdownText-B6Nu_0Fz.js";import"./circle-x-DnmOfZIg.js";import"./git-branch-DTeeARsp.js";import"./play-2NDQ4-7K.js";const R=s.lazy(()=>_(()=>import("./TrainingCreationPanel-C_ntWAAP.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>({default:e.TrainingStatusReceipt})));function I({accountBaseUrl:e,activeWorkspaceAppId:r,billingOrganizationSlug:o,billingTeamId:n,connection:p,creation:a,onOpenBrowserLink:m,onOpenFileInSidebar:l,onOpenProfileSettings:c,onOpenSession:d,onScroll:h,preparingInitialScroll:u,rows:g,threadRef:x,workspaceRootPath:j}){return i.jsxs("section",{className:`chat-thread${u?" initial-scroll-pending":""}`,"aria-label":"Conversation",ref:x,onScroll:h,children:[g.map(t=>t.type==="thinking"?i.jsx(f,{},t.id):i.jsx(T,{activeWorkspaceAppId:r,accountBaseUrl:e,billingOrganizationSlug:o,billingTeamId:n,connection:p,message:t.message,onOpenFileInSidebar:l,onOpenBrowserLink:m,onOpenProfileSettings:c,onOpenSession:d,workspaceRootPath:j,showFooter:t.showFooter},t.id)),a?i.jsx(s.Suspense,{fallback:null,children:i.jsx(R,{creation:a})}):null]})}export{I as MainChatThread};
@@ -1,10 +0,0 @@
1
- import{r as u,n as ee,bM as k,bN as Ce,j as n,T as ye,a0 as $e,Z as x,bO as Ne,bP as U,at as I,bQ as Se,Y as te,t as we,ar as Ae,bE as T,v as ke,a as Me,bR as Ie,$ as ne,S as Te,aK as E,an as ze,aC as Re,bS as _e,bT as Ue,a7 as Pe,bU as Ee,E as Fe}from"./index-DQalqxbw.js";import{C as se}from"./chevron-up-BWx8gGab.js";import{C as Le}from"./copy-BjWvaXLC.js";import{C as B}from"./credit-card-Bjg0Zaw5.js";import{I as ae,a as ie,u as Be,M as P,r as Oe}from"./MarkdownText-B6Nu_0Fz.js";import{C as qe,a as We}from"./circle-x-DnmOfZIg.js";import{G as Ge}from"./git-branch-DTeeARsp.js";import{P as Ke}from"./play-2NDQ4-7K.js";function De(e){const t=Ze(e);if(t)return t;const s=He();let a="";const i=[],l=[],r=[];for(const h of e){if(!a&&h.label&&(a=h.label),ht(l,h.label),mt(r,h),h.kind==="command"&&h.content){Ye(s,Qe(h.content));continue}Xe(s,h)||ut(i,h.label)}const c=[...st(s),...l,...r],d=s.runCount>0?ot(s.runCount):"",o=xt(i),m=dt(c,d)||o||a||"Ran command";return{kind:ct(s,d),text:m}}function Ve(e){const t=re(e);if(t.length===0||t.some(le))return null;const s=t[0];if(s==="cat"){const a=j(t.slice(1));return a.length>0?`Read ${S(a)}`:"Read standard input"}return s==="sed"?bt(t):s==="rg"?vt(t):null}function He(){return{approvals:0,controlCount:0,editCount:0,goalContextUpdates:0,imageCount:0,listedFiles:0,readFileCount:0,readFiles:new Set,reasoningCount:0,runCount:0,searchedCode:0,subagentStatuses:new Map,testsOrChecks:0,turnInterruptions:0,webSearches:0}}function Ze(e){if(e.length===0)return null;const t=e.map(l=>l.subagentMessage).filter(l=>!!l);if(t.length===0||t.length!==e.length)return null;if(t.length===1){const l=t[0];return{kind:"subagent",text:`${l.direction==="received"?"Child Message Received":"Child Message Sent"}: ${l.summary}`}}const s=t.filter(l=>l.direction==="received").length,a=t.length-s,i=[s>0?O(s,"received"):null,a>0?O(a,"sent"):null].filter(l=>!!l);return{kind:"subagent",text:N(M(i))}}function O(e,t){return e===1?`child message ${t}`:`${e} child messages ${t}`}function Ye(e,t){e.editCount+=t.editCount??0,e.listedFiles+=t.listedFiles??0,e.searchedCode+=t.searchedCode??0,e.testsOrChecks+=t.testsOrChecks??0;for(const s of t.readFiles??[])e.readFiles.add(s);t.readFiles?.length&&(e.readFileCount+=t.readFiles.length),t.countedAsRun&&(e.runCount+=1)}function Xe(e,t){const s=t.label.toLowerCase();if(t.controlKind)return e.controlCount+=1,t.controlKind==="goal_context"&&(e.goalContextUpdates+=1),t.controlKind==="turn_aborted"&&(e.turnInterruptions+=1),!0;if(s==="reasoning")return e.reasoningCount+=1,!0;if(s.includes("approval"))return e.approvals+=1,!0;if(s.includes("subagent"))return rt(e,t,a(s)),!0;if(s.includes("image"))return e.imageCount+=1,!0;function a(i){return i.includes("failed")?"failed":i.includes("blocked")?"blocked":i.includes("stale")?"stale":i.includes("needs revision")?"needs revision":i.includes("archived")?"archived":i.includes("accepted")?"accepted":i.includes("submitted")?"submitted":i.includes("completed")?"completed":"running"}return s.includes("web")?(e.webSearches+=1,!0):/\b(searching|searched)\b/.test(s)?(e.searchedCode+=1,!0):/\b(listing|listed)\b/.test(s)?(e.listedFiles+=1,!0):/\b(reading|read)\b/.test(s)?(e.readFileCount+=1,!0):/\b(editing|edited|writing|wrote|deleting|deleted|moving|moved|uploading|uploaded|creating|created)\b/.test(s)?(e.editCount+=1,!0):!1}function Qe(e){const t=re(e);if(t.length===0||t.some(le))return{countedAsRun:!0};const s=Je(t);if(!s)return{countedAsRun:!0};const[a,i]=s;if(a==="apply_patch")return{countedAsRun:!1,editCount:1};if(["rm","mv","cp","mkdir","touch"].includes(a))return{countedAsRun:!1,editCount:1};if(et(a,i)||tt(a))return{countedAsRun:!1,testsOrChecks:1};if(a==="rg")return i.includes("--files")?{countedAsRun:!1,listedFiles:1}:{countedAsRun:!1,searchedCode:1};if(["grep","ag"].includes(a))return{countedAsRun:!1,searchedCode:1};if(a==="git"&&i[0]==="grep")return{countedAsRun:!1,searchedCode:1};if(["ls","find","tree","fd"].includes(a))return{countedAsRun:!1,listedFiles:1};const l=nt(a,i);return l.length>0?{countedAsRun:!1,readFiles:l}:{countedAsRun:!0}}function Je(e){let t=0;for(;/^[A-Za-z_][A-Za-z0-9_]*=.*/.test(e[t]??"");)t+=1;const s=e[t];if(!s)return null;if(s==="bunx"||s==="npx"){const a=e[t+1];return a?[a,e.slice(t+2)]:[s,[]]}return[s,e.slice(t+1)]}function et(e,t){if(!["bun","npm","pnpm","yarn"].includes(e))return!1;const s=t.join(" ").toLowerCase();return/\b(test|typecheck|check|lint|vitest|jest|playwright|tsc)\b/.test(s)}function tt(e){return["eslint","jest","playwright","prettier","tsc","vitest"].includes(e)}function nt(e,t){if(e==="cat"||e==="nl"||e==="head"||e==="tail"||e==="wc")return R(j(t));if(e==="sed"){const s=t.findIndex(a=>a!=="-n"&&!a.startsWith("--"));return R(s>=0?j(t.slice(s+1)):[])}return e==="awk"||e==="jq"?R(j(t.slice(1))):[]}function R(e){return e.filter(t=>!(!t||t==="."||t==="-"||/^\d+$/.test(t)))}function st(e){const t=[],s=it(e);s&&t.push(s),e.editCount>0&&t.push("made edits");const a=e.readFiles.size||e.readFileCount;return a>0&&t.push(W("read",a,"file")),e.searchedCode>0&&t.push("searched code"),e.listedFiles>0&&t.push("listed files"),e.testsOrChecks>0&&t.push(e.testsOrChecks===1?"ran checks":`ran ${e.testsOrChecks} checks`),e.webSearches>0&&t.push("searched web"),e.imageCount>0&&t.push(W("read",e.imageCount,"image")),e.reasoningCount>0&&t.length===0&&t.push("thought through the request"),e.approvals>0&&t.push("requested approval"),t.push(...at(e)),t}function at(e){const t=[];e.goalContextUpdates===1&&t.push("goal context updated"),e.goalContextUpdates>1&&t.push(`${e.goalContextUpdates} goal context updates`),e.turnInterruptions===1&&t.push("turn interrupted"),e.turnInterruptions>1&&t.push(`${e.turnInterruptions} turns interrupted`);const s=e.controlCount-e.goalContextUpdates-e.turnInterruptions;return s===1&&t.push("context updated"),s>1&&t.push(`${s} context updates`),t}function it(e){const t=lt(e);return t.failed>0?p(t.failed,"failed"):t.blocked>0?p(t.blocked,"blocked"):t.stale>0?p(t.stale,"stale"):t["needs revision"]>0?p(t["needs revision"],"needs revision"):t.submitted>0?p(t.submitted,"submitted"):t.running>0&&t.completed===0&&t.accepted===0?p(t.running,"running"):t.accepted>0?p(t.accepted,"accepted"):t.completed>0?p(t.completed,"completed"):t.archived>0?p(t.archived,"archived"):null}function rt(e,t,s){const a=t.openSession?.sessionId??(t.content.trim()||t.id),i=e.subagentStatuses.get(a);(!i||q(s)>q(i))&&e.subagentStatuses.set(a,s)}function lt(e){const t={accepted:0,archived:0,blocked:0,completed:0,failed:0,"needs revision":0,running:0,stale:0,submitted:0};for(const s of e.subagentStatuses.values())t[s]+=1;return t}function q(e){return e==="running"?1:e==="submitted"?2:e==="accepted"||e==="completed"||e==="archived"?3:e==="needs revision"?4:e==="blocked"?5:e==="stale"?6:7}function p(e,t){return e===1?`subagent ${t}`:`${e} subagents ${t}`}function ct(e,t){const s=[];return e.subagentStatuses.size>0&&s.push("subagent"),e.editCount>0&&s.push("edit"),(e.readFiles.size>0||e.readFileCount>0)&&s.push("read"),e.searchedCode>0&&s.push("search"),e.listedFiles>0&&s.push("list"),e.webSearches>0&&s.push("web"),e.imageCount>0&&s.push("image"),e.reasoningCount>0&&s.push("reasoning"),e.approvals>0&&s.push("approval"),e.controlCount>0&&s.push("control"),(e.testsOrChecks>0||t)&&s.push("command"),s[0]??"command"}function ot(e){return e===1?"ran a command":`ran ${e} commands`}function W(e,t,s){return t===1?`${e} a ${s}`:`${e} ${t} ${s}s`}function dt(e,t){return e.length===0?t?N(t):"":t?`${N(M(e))}, ${t}`:N(M(e))}function ut(e,t){const s=t.trim();s&&(e.includes(s)||e.push(s))}function ht(e,t){const s=ft(t);!s||e.includes(s)||e.push(s)}function mt(e,t){const s=t.receipt;if(!s)return;const a=`${s.status} receipt ${gt(s.id)} ${pt(s.totalUsd)}`;e.includes(a)||e.push(a)}function ft(e){switch(e.trim().toLowerCase()){case"applied locally":return"applied locally";case"apply locally failed":return"apply locally failed";case"exported sandbox patch":return"exported patch";case"patch export failed":return"patch export failed";case"preserved sandbox source":return"preserved sandbox source";case"preserve failed":return"preserve failed";case"stopped sandbox":return"stopped sandbox";case"sandbox stop failed":return"sandbox stop failed";default:return null}}function pt(e){const t=e.trim();return t.startsWith("$")?t:`$${t}`}function gt(e){const t=e.trim();return t.length<=14?t:`${t.slice(0,6)}...${t.slice(-4)}`}function xt(e){return e.length===0?"":N(M(e.map(jt)))}function jt(e){return e&&`${e[0].toLowerCase()}${e.slice(1)}`}function M(e){return e.length===0?"":e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`}function N(e){return e&&`${e[0].toUpperCase()}${e.slice(1)}`}function bt(e){const t=e.findIndex((l,r)=>r>0&&l!=="-n"&&!l.startsWith("--")),s=t>=0?e[t]??"":"",a=t>=0?j(e.slice(t+1)):[],i=/^(\d+)(?:,(\d+))?p$/.exec(s);if(i){const l=i[1],r=i[2],c=r?`lines ${l}-${r}`:`line ${l}`;return a.length>0?`Read ${c} of ${S(a)}`:`Read ${c}`}return a.length>0?`Read ${S(a)} with sed`:"Run sed"}function vt(e){const t=e.slice(1);if(t.includes("--files")){const l=j(t.filter(r=>r!=="--files"));return l.length>0?`List files matching ${S(l)}`:"List files"}const s=j(t),a=s[0],i=s.slice(1);return a?i.length>0?`Search for ${G(a)} in ${S(i)}`:`Search for ${G(a)}`:"Search files"}function re(e){return(e.match(/"([^"\\]|\\.)*"|'[^']*'|[^\s]+/g)??[]).map(s=>Ct(s)).filter(Boolean)}function Ct(e){return e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}function le(e){return["|","&&","||",";",">",">>","<","(",")"].includes(e)}function j(e){const t=[];for(let s=0;s<e.length;s+=1){const a=e[s];if(!a.startsWith("-")){t.push(a);continue}yt(a)&&s+1<e.length&&(s+=1)}return t}function yt(e){return["-e","-f","-g","--glob","--type","-t","--context","-C","-A","-B","-m","-n","-c"].includes(e)}function S(e){return e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e[0]} and ${e.length-1} more`}function G(e){return`"${e}"`}const C=new Map,$t=15e3;function Nt(e,t){const s=St(e),[a,i]=u.useState(()=>s.getUrl(t));return u.useEffect(()=>{let l=!1;return i(s.getUrl(t)),s.loadUrl(t).then(r=>{l||i(r)}),()=>{l=!0}},[t,s]),a}function St(e){const[,t]=u.useState(0),s=u.useCallback(i=>!e||!i?null:K(D(e,i)),[e]),a=u.useCallback(async i=>{if(!e||!i)return null;const l=D(e,i),r=K(l);if(r)return r;const c=C.get(l);if(c?.state==="loading")return c.promise;const d=ee.signChatAttachmentImageUrl(e,i).then(o=>(C.set(l,{state:"ready",url:o.url,expiresAt:o.expiresAt}),t(m=>m+1),o.url)).catch(()=>(C.delete(l),t(o=>o+1),null));return C.set(l,{state:"loading",promise:d}),d},[e]);return u.useMemo(()=>({getUrl:s,loadUrl:a}),[s,a])}function K(e){const t=C.get(e);return t?.state!=="ready"?null:t.expiresAt<=Date.now()+$t?(C.delete(e),null):t.url}function D(e,t){return[e.serverUrl,e.token,t.sessionId,t.turnId,t.attachmentId,t.storageName,t.contentType].join("\0")}function wt({actionRun:e,onOpenBrowserLink:t,onOpenFileInSidebar:s,workspaceRootPath:a=null}){const i=It(e.status),l=Tt(e);return n.jsxs("div",{className:`action-run-card ${e.status}`,children:[n.jsxs("div",{className:"action-run-header",children:[n.jsx("span",{className:"action-run-status",title:e.status,children:n.jsx(i,{size:15})}),n.jsxs("div",{className:"action-run-title",children:[n.jsx("strong",{children:e.title}),n.jsx("span",{children:e.actionName})]})]}),l.length>0&&n.jsx("div",{className:"action-run-meta","aria-label":"Action run metadata",children:l.map(r=>n.jsxs("span",{className:"action-run-chip",children:[r.icon,n.jsx("span",{children:r.label}),n.jsx("code",{children:r.value})]},r.label))}),e.responseText&&n.jsx("p",{className:"action-run-response",children:e.responseText}),e.refs.length>0&&n.jsx("div",{className:"action-run-ref-list","aria-label":"Action run references",children:e.refs.slice(0,8).map(r=>n.jsx(Mt,{refItem:r,onOpenBrowserLink:t,onOpenFileInSidebar:s,workspaceRootPath:a},r.id))}),e.childCalls.length>0&&n.jsx("div",{className:"action-run-child-list","aria-label":"Child implementation calls",children:e.childCalls.map(r=>n.jsxs("div",{className:`action-run-child ${r.status}`,children:[n.jsx("span",{children:r.label}),n.jsx("small",{children:r.status}),r.detail&&n.jsx("code",{children:r.detail})]},r.id))})]})}function V(e){return e.implementationType==="openpond-profile-action"}function At(e){const t=e.agentName??e.agentId;return e.actionName.endsWith(".chat")?k({actionId:e.actionName,label:e.title,name:t}):t?k({actionId:e.actionName,name:t}):e.title&&!Ce(e.title)?k({actionId:e.actionName,label:e.title}):k({actionId:e.actionName})}function kt(e){return e.status==="failed"?`${e.title} failed.`:e.status==="completed"?`${e.title} completed.`:e.status==="pending"?`${e.title} is pending.`:`${e.title} is running...`}function Mt({refItem:e,onOpenBrowserLink:t,onOpenFileInSidebar:s,workspaceRootPath:a}){const i=s?Ne(e.target,{workspaceRootPath:a}):null,l=zt(e.target)&&t,r=!!(i&&s);return n.jsxs("div",{className:`action-run-ref ${e.kind}`,children:[n.jsx("span",{children:e.label}),n.jsx("code",{children:e.target}),l&&n.jsx("button",{type:"button",title:`Open ${e.target}`,"aria-label":`Open ${e.label}`,onClick:()=>t(e.target,{newTab:!0}),children:n.jsx(U,{size:13})}),r&&n.jsx("button",{type:"button",title:`Open ${e.target}`,"aria-label":`Open ${e.label}`,onClick:()=>{i&&s&&s(i.path)},children:n.jsx(U,{size:13})})]})}function It(e){return e==="completed"?ye:e==="failed"?qe:We}function Tt(e){const t=[];return e.implementationType&&t.push({label:"Type",value:e.implementationType,icon:n.jsx($e,{size:12})}),e.runId&&t.push({label:"Run",value:e.runId,icon:n.jsx(x,{size:12})}),e.sandboxId&&t.push({label:"Sandbox",value:e.sandboxId,icon:n.jsx(x,{size:12})}),e.sourceRef&&t.push({label:"Source",value:e.sourceRef,icon:n.jsx(Ge,{size:12})}),e.manifestHash&&t.push({label:"Manifest",value:e.manifestHash,icon:n.jsx(x,{size:12})}),t}function zt(e){return/^https?:\/\//i.test(e)}const y=new Map,Rt=15e3;function _t(e,t){const s=Ut(e),[a,i]=u.useState(()=>s.getUrl(t));return u.useEffect(()=>{let l=!1;return i(s.getUrl(t)),s.loadUrl(t).then(r=>{l||i(r)}),()=>{l=!0}},[t,s]),a}function Ut(e){const[,t]=u.useState(0),s=u.useCallback(i=>!e||!i?null:H(Z(e,i)),[e]),a=u.useCallback(async i=>{if(!e||!i)return null;const l=Z(e,i),r=H(l);if(r)return r;const c=y.get(l);if(c?.state==="loading")return c.promise;const d=ee.signLocalVideoUrl(e,{path:i}).then(o=>(y.set(l,{state:"ready",url:o.url,expiresAt:o.expiresAt}),t(m=>m+1),o.url)).catch(()=>(y.delete(l),t(o=>o+1),null));return y.set(l,{state:"loading",promise:d}),d},[e]);return u.useMemo(()=>({getUrl:s,loadUrl:a}),[s,a])}function H(e){const t=y.get(e);return t?.state!=="ready"?null:t.expiresAt<=Date.now()+Rt?(y.delete(e),null):t.url}function Z(e,t){return`${e.serverUrl}\0${e.token}\0${t}`}const Y=5;function Pt(e,t,s){const a=t==="running",i=s??(a&&e.length<=Y);return i?{expanded:i,hiddenCount:0,visibleActivities:e}:a&&e.length>Y?{expanded:i,hiddenCount:Math.max(0,e.length-1),visibleActivities:e.slice(-1)}:{expanded:i,hiddenCount:e.length,visibleActivities:[]}}function Et(e,t){if(!e||!t)return null;const s=Date.parse(t)-Date.parse(e);if(!Number.isFinite(s)||s<1e3)return null;const a=Math.round(s/1e3);if(a<60)return`${a}s`;const i=Math.floor(a/60),l=a%60;if(i<60)return l>0?`${i}m ${l}s`:`${i}m`;const r=Math.floor(i/60),c=i%60;return c>0?`${r}h ${c}m`:`${r}h`}const _=5,Ft=4,ce=5,Lt=280;function Bt({activeWorkspaceAppId:e,connection:t,message:s,onOpenBrowserLink:a,onOpenFileInSidebar:i,onOpenSession:l,workspaceRootPath:r}){const[c,d]=u.useState(null),[o,m]=u.useState(null),h=s.activities??[],g=u.useMemo(()=>De(h),[h]),f=u.useMemo(()=>Pt(h,s.traceState,c),[h,c,s.traceState]),w=h.find(v=>v.imagePreview)?.imagePreview??null,b=s.deliverables??[],A=F(o,t,e),$=s.traceState==="running",z=s.traceState==="failed"||s.traceState==="interrupted",be=Et(s.traceStartedAt,s.traceCompletedAt),ve=Zt(g.text,s.traceState),L=rn(h);return h.length>0&&h.every(v=>v.subagentMessage)?n.jsx(Kt,{activities:h}):n.jsxs("article",{className:`activity-group work-trace ${$?"running":"settled"}`,children:[n.jsxs("div",{className:"activity-summary-row",children:[n.jsxs("button",{type:"button","aria-expanded":f.expanded,className:`activity-summary ${z?"danger":""} ${$?"working":""}`,onClick:()=>d(!f.expanded),children:[w?n.jsx(en,{activeWorkspaceAppId:e,connection:t,image:w}):n.jsx(tn,{kind:g.kind}),n.jsx(Ht,{duration:be,summary:ve}),n.jsx(I,{className:`activity-summary-toggle ${f.expanded?"expanded":""}`,size:14})]}),L.length>0&&l?n.jsx(sn,{onOpenSession:l,onShowAll:()=>d(!0),sessions:L}):null]}),b.length>0?n.jsx(qt,{artifacts:b,connection:t,onOpenFileInSidebar:i}):null,$&&f.hiddenCount>0?n.jsxs("button",{type:"button",className:"work-trace-earlier-toggle",onClick:()=>d(!0),children:["Show earlier work (",f.hiddenCount,")"]}):null,f.visibleActivities.length>0?n.jsx("div",{className:"activity-details",children:f.visibleActivities.map(v=>n.jsx(Ot,{activeWorkspaceAppId:e,activity:v,connection:t,onOpenBrowserLink:a,onOpenFileInSidebar:i,onOpenImage:m,onOpenSession:l,workspaceRootPath:r},v.id))}):null,n.jsx(ae,{open:!!A,src:A,title:o?.path??"",onClose:()=>m(null)})]})}function Ot({activeWorkspaceAppId:e,activity:t,connection:s,onOpenBrowserLink:a,onOpenFileInSidebar:i,onOpenImage:l,onOpenSession:r,workspaceRootPath:c}){const d=F(t.imagePreview??null,s,e);return t.subagentMessage?n.jsx(de,{activity:t}):n.jsxs("div",{className:`activity-detail-row ${t.controlKind==="turn_aborted"?"danger":""}`,children:[n.jsx("span",{children:t.label}),n.jsxs("div",{className:"activity-detail-main",children:[t.content&&(t.kind==="command"?n.jsx(Yt,{className:"activity-detail-command",command:t.content}):t.kind==="reasoning"?n.jsx("div",{className:"work-trace-reasoning",children:n.jsx(P,{activeWorkspaceAppId:e,connection:s,content:t.content,onOpenBrowserLink:a,onOpenFileInSidebar:i,workspaceRootPath:c})}):on(t.content)?n.jsx("pre",{className:"activity-detail-output",children:t.content}):n.jsx("code",{children:t.content})),t.detail&&n.jsx("pre",{className:"activity-detail-output",children:Qt(t.detail)}),t.meta&&n.jsx("small",{className:"activity-detail-meta",children:t.meta}),t.imagePreview&&d&&n.jsx("button",{type:"button",className:"activity-image-preview",title:`Open ${t.imagePreview.path}`,onClick:()=>l(t.imagePreview??null),children:n.jsx("img",{alt:Se(t.imagePreview.path),decoding:"async",loading:"lazy",src:d})}),t.openSession&&r?n.jsx(ue,{className:"activity-subagent-detail-avatar",openSession:t.openSession,onOpenSession:r}):null]})]},t.id)}function qt({artifacts:e,connection:t,onOpenFileInSidebar:s}){return n.jsx("div",{className:"activity-artifact-list",children:e.map(a=>a.contentType.startsWith("video/")?n.jsx(Gt,{artifact:a,connection:t,onOpenFileInSidebar:s},a.path):a.contentType.startsWith("image/")?n.jsx(Wt,{artifact:a,connection:t},a.path):n.jsxs("div",{className:"activity-artifact",title:a.path,children:[n.jsx(x,{"aria-hidden":!0,size:14}),n.jsxs("span",{children:[n.jsx("strong",{children:a.title}),n.jsx("code",{children:a.path})]}),n.jsx("small",{children:a.sizeBytes==null?a.contentType:oe(a.sizeBytes)})]},a.path))})}function Wt({artifact:e,connection:t}){const[s,a]=u.useState(!1),i=ie(t,e.path);return n.jsxs("div",{className:"activity-artifact-image",title:e.path,children:[n.jsx("button",{type:"button",disabled:!i,onClick:()=>a(!0),title:`Open ${e.title}`,children:i?n.jsx("img",{alt:e.title,decoding:"async",loading:"lazy",src:i}):n.jsx(T,{"aria-hidden":!0,size:20})}),n.jsx("strong",{children:e.title}),n.jsx(ae,{open:s&&!!i,src:i,title:e.title,onClose:()=>a(!1)})]})}function Gt({artifact:e,connection:t,onOpenFileInSidebar:s}){const a=u.useRef(null),[i,l]=u.useState(!1),r=_t(t,e.path),c=()=>{const d=a.current;d&&d.play().then(()=>l(!0)).catch(()=>{})};return n.jsxs("div",{className:"activity-artifact-video",title:e.path,children:[n.jsxs("div",{className:"activity-artifact-video-stage",children:[r?n.jsx("video",{controls:!0,onPlay:()=>l(!0),preload:"metadata",ref:a,src:r}):n.jsx("div",{className:"activity-artifact-video-loading",children:"Preparing video…"}),r&&!i?n.jsx("button",{type:"button",className:"activity-artifact-video-play",onClick:c,"aria-label":`Play ${e.title}`,children:n.jsx(Ke,{"aria-hidden":!0,fill:"currentColor",size:22})}):null]}),n.jsxs("div",{className:"activity-artifact-video-footer",children:[n.jsxs("button",{type:"button",className:"activity-artifact-video-file",onClick:()=>{Oe(e.path)},title:`Show ${e.path} in its folder`,children:[n.jsx(we,{"aria-hidden":!0,size:13}),n.jsxs("span",{children:[n.jsx("strong",{children:e.title}),n.jsx("code",{children:e.path})]}),n.jsx("small",{children:e.sizeBytes==null?e.contentType:oe(e.sizeBytes)})]}),s?n.jsxs("button",{type:"button",className:"activity-artifact-video-sidebar",onClick:()=>s(e.path),title:"Open video in sidebar",children:[n.jsx(Ae,{"aria-hidden":!0,size:13}),"Open in sidebar"]}):null]})]})}function oe(e){return e<1024?`${e} B`:e<1024**2?`${(e/1024).toFixed(1)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(1)} GB`}function de({activity:e}){const[t,s]=u.useState(!1),a=e.subagentMessage;if(!a)return null;const i=`${me(a.roleId??e.openSession?.roleId)} subagent`,l=a.direction==="received"?`${i} update`:`Message to ${i.toLowerCase()}`,r=a.modelRef?.modelId?`${l} · ${a.modelRef.modelId}`:l,c=Dt(a),d=Vt(a.body);return n.jsx("div",{className:`activity-child-message ${a.direction}`,children:n.jsxs("div",{className:"activity-child-message-card",children:[n.jsxs("div",{className:"activity-child-message-header",children:[n.jsxs("span",{className:"activity-child-message-title",children:[n.jsx(te,{"aria-hidden":!0,size:14}),n.jsx("strong",{title:r,children:r})]}),n.jsx("small",{children:a.kind.replace(/_/g," ")})]}),n.jsx("p",{className:d&&!t?"collapsed":void 0,style:{"--subagent-message-visible-lines":ce},children:a.body}),d?n.jsx("button",{type:"button",className:"activity-child-message-toggle","aria-expanded":t,onClick:()=>s(o=>!o),children:t?"Show less":"Show more"}):null,n.jsxs("details",{className:"activity-child-message-details",children:[n.jsx("summary",{children:"Message details"}),n.jsx("div",{className:"activity-child-message-facts","aria-label":"Child message metadata",children:c.map(o=>n.jsxs("span",{children:[n.jsx("small",{children:o.label}),n.jsx("code",{title:o.value,children:o.value})]},o.label))})]}),a.refs?.length?n.jsx("div",{className:"activity-child-message-refs","aria-label":"Child message references",children:a.refs.map(o=>n.jsxs("span",{children:[o.kind,":",o.id," (",o.label,")"]},`${o.kind}:${o.id}`))}):null]})},e.id)}function Kt({activities:e}){const t=e[0]?.subagentMessage?.direction??"received";return n.jsx("article",{className:`activity-child-message-group ${t}`,children:e.map(s=>n.jsx(de,{activity:s},s.id))})}function Dt(e){return[{label:"Message",value:e.messageId},{label:"Kind",value:e.kind},{label:"From",value:e.fromRunId},e.roleId?{label:"Role",value:e.roleId}:null,e.modelRef?{label:"Model",value:`${e.modelRef.providerId}/${e.modelRef.modelId}`}:null,e.childSessionId?{label:"Child",value:e.childSessionId}:null,e.parentGoalId?{label:"Goal",value:e.parentGoalId}:null,e.toRunId?{label:"To run",value:e.toRunId}:null,e.toRole?{label:"To role",value:e.toRole}:null,e.deliveryStatus?{label:"Delivery",value:e.deliveryStatus}:null,e.wakeReason?{label:"Wake",value:e.wakeReason}:null,e.createdAt?{label:"Created",value:e.createdAt}:null].filter(t=>!!t)}function Vt(e){return e.length>Lt||e.split(/\r?\n/).length>ce}function Ht({duration:e,summary:t}){return n.jsxs("span",{className:"activity-summary-text",children:[n.jsx("span",{children:t}),e?n.jsx("small",{children:e}):null]})}function Zt(e,t){return t==="running"?e==="Thought through the request"?"Working…":`Working… · ${e}`:t==="failed"?`Failed · ${e}`:t==="interrupted"?`Interrupted · ${e}`:e}function Yt({className:e,command:t}){const s=Ve(t)??t;return n.jsx("code",{className:`${e} shell-command-code`,title:t,children:s===t?Xt(t):s})}function Xt(e){return Jt(e).map((t,s)=>n.jsx("span",{className:`shell-token ${t.kind}`,children:t.text},`${s}-${t.text}`))}function Qt(e){const t=e.replace(/\r\n/g,`
2
- `).trimEnd(),s=t.split(`
3
- `);if(s.length<=_)return t;const a=s.length-_;return`${s.slice(0,_).join(`
4
- `)}
5
- ... ${a} ${a===1?"line":"lines"} omitted`}function Jt(e){const t=e.match(/"[^"]*"|'[^']*'|&&|\|\||[|;&()<>]|\s+|[^\s|;&()<>]+/g)??[e];let s=!0;return t.map(a=>/^\s+$/.test(a)?{kind:"plain",text:a}:/^(?:&&|\|\||[|;&()<>])$/.test(a)?(s=a!==")"&&a!==">",{kind:"operator",text:a}):/^(['"]).*\1$/.test(a)?{kind:"string",text:a}:/^[A-Za-z_][A-Za-z0-9_]*=.*/.test(a)?{kind:"variable",text:a}:s?(s=!1,{kind:"command",text:a}):/^-{1,2}[\w-]/.test(a)?{kind:"flag",text:a}:/^(?:\.{0,2}\/|~\/|[\w.-]+\/)/.test(a)?{kind:"path",text:a}:{kind:"plain",text:a})}function en({activeWorkspaceAppId:e,connection:t,image:s}){const a=F(s,t,e);return a?n.jsx("img",{"aria-hidden":!0,className:"activity-summary-image",decoding:"async",loading:"lazy",src:a,alt:""}):null}function tn({kind:e}){const t=nn(e);return n.jsx(t,{"aria-hidden":!0,className:`activity-summary-kind-icon ${e}`,size:14})}function nn(e){return e==="approval"||e==="control"?ke:e==="edit"?Me:e==="image"?T:e==="list"?Ie:e==="read"?x:e==="reasoning"?ne:e==="search"?Te:e==="subagent"?te:e==="web"?E:ze}function sn({onOpenSession:e,onShowAll:t,sessions:s}){const a=s.slice(0,Ft),i=Math.max(0,s.length-a.length),l=s.map(he).join(", ");return n.jsxs("div",{"aria-label":`Subagent conversations: ${l}`,className:"activity-subagent-avatar-group",title:`Subagent conversations: ${l}`,children:[a.map(r=>n.jsx(ue,{openSession:r,onOpenSession:e},r.sessionId)),i>0?n.jsxs("button",{type:"button","aria-label":`Show ${i} more subagent conversation${i===1?"":"s"}`,className:"activity-subagent-avatar activity-subagent-avatar-count",onClick:t,title:`Show ${i} more subagent conversation${i===1?"":"s"}`,children:["+",i]}):null]})}function ue({className:e="",onOpenSession:t,openSession:s}){const a=fe(s.roleId),i=ln(s.status),l=`Open ${he(s)} conversation`;return n.jsx("button",{type:"button","aria-label":l,className:`activity-subagent-avatar ${e}`,"data-role":a,"data-status":i,onClick:()=>t(s.sessionId),title:l,children:n.jsx(an,{roleId:a})})}function an({roleId:e}){return e==="coding"?n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("path",{d:"M9.4 7.2 4.8 12l4.6 4.8"}),n.jsx("path",{d:"m14.6 7.2 4.6 4.8-4.6 4.8"}),n.jsx("path",{d:"m12.9 5.7-1.8 12.6"})]}):e==="research"?n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("circle",{cx:"10.8",cy:"10.8",r:"5.2"}),n.jsx("path",{d:"m15 15 4 4"}),n.jsx("path",{d:"M8.6 10.8h4.4"}),n.jsx("path",{d:"M10.8 8.6v4.4"})]}):e==="review"?n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("path",{d:"M7 4.8h7.2L18 8.6v10.6H7z"}),n.jsx("path",{d:"M14 4.8v4h4"}),n.jsx("path",{d:"m8.9 14.2 2 2 4.3-4.7"})]}):e==="test"?n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("path",{d:"M9.2 4.8h5.6"}),n.jsx("path",{d:"M10.4 4.8v5.4l-4 6.8a1.8 1.8 0 0 0 1.6 2.7h8a1.8 1.8 0 0 0 1.6-2.7l-4-6.8V4.8"}),n.jsx("path",{d:"M8.2 15.8h7.6"})]}):e==="docs"?n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("path",{d:"M7 4.8h7.2L18 8.6v10.6H7z"}),n.jsx("path",{d:"M14 4.8v4h4"}),n.jsx("path",{d:"M9.2 11.4h5.6"}),n.jsx("path",{d:"M9.2 14.2h5.6"}),n.jsx("path",{d:"M9.2 17h3.4"})]}):e==="planner"?n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("circle",{cx:"7.2",cy:"7.2",r:"2.1"}),n.jsx("circle",{cx:"16.8",cy:"7.2",r:"2.1"}),n.jsx("circle",{cx:"12",cy:"16.8",r:"2.1"}),n.jsx("path",{d:"M9 8.2h6"}),n.jsx("path",{d:"m8.5 9 2.4 5.4"}),n.jsx("path",{d:"m15.5 9-2.4 5.4"})]}):e==="summarizer"?n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("path",{d:"M7 6.8h10"}),n.jsx("path",{d:"M7 10.4h8.2"}),n.jsx("path",{d:"M7 14h6.2"}),n.jsx("path",{d:"M7 17.6h4.2"})]}):n.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"activity-subagent-avatar-svg",children:[n.jsx("circle",{cx:"12",cy:"8.2",r:"3.2"}),n.jsx("path",{d:"M6.5 19.2c.6-3 2.5-5 5.5-5s4.9 2 5.5 5"}),n.jsx("path",{d:"M5.2 11.8h2"}),n.jsx("path",{d:"M16.8 11.8h2"})]})}function rn(e){const t=new Map;for(const s of e){const a=s.openSession;a&&t.set(a.sessionId,{...t.get(a.sessionId),...a})}return[...t.values()].reverse()}function he(e){const t=`${me(e.roleId)} subagent`,s=e.status?.replace(/_/g," ").trim();return s?`${t} (${s})`:t}function me(e){return fe(e).split(/[-_]+/).filter(Boolean).map(s=>s.slice(0,1).toUpperCase()+s.slice(1)).join(" ")||"Subagent"}function fe(e){const t=e?.trim().toLowerCase()||"subagent";return/^[a-z][a-z0-9_-]*$/.test(t)?t:"subagent"}function ln(e){const t=e?.trim().toLowerCase()||"unknown";return/^[a-z][a-z0-9_-]*$/.test(t)?t:"unknown"}function F(e,t,s){const a=e&&cn(e.path)?e.path:null,i=e?.appId??s,l=ie(t,a),r=Be(t,a?null:i,a?null:e?.path);return a?l:r}function cn(e){return/^file:\/\//i.test(e)||/^\//.test(e)||/^[A-Za-z]:[\\/]/.test(e)}function on(e){return e.includes(`
6
- `)||e.length>160}function dn({summary:e,onOpenFileInSidebar:t}){const[s,a]=u.useState(null),i=`${e.filesChanged} ${e.filesChanged===1?"file":"files"} changed`,l=e.files.reduce((r,c)=>{const d=pe(c);return{additions:r.additions+d.additions,deletions:r.deletions+d.deletions}},{additions:0,deletions:0});return n.jsxs("div",{className:"change-summary-card",children:[n.jsxs("div",{className:"change-summary-header",children:[n.jsx("span",{children:i}),n.jsxs("span",{className:"change-summary-counts",children:[n.jsxs("span",{className:"diff-addition",children:["+",l.additions]}),n.jsxs("span",{className:"diff-deletion",children:["-",l.deletions]})]})]}),n.jsx("div",{className:"change-summary-files",children:e.files.map(r=>n.jsx(un,{file:r,onOpenFileInSidebar:t,open:s===r.path,onToggle:()=>a(c=>c===r.path?null:r.path)},r.path))})]})}function un({file:e,onOpenFileInSidebar:t,open:s,onToggle:a}){const i=pe(e),l=ge(e.patch);return n.jsxs("div",{className:"change-summary-file",children:[n.jsxs("div",{className:"change-summary-file-trigger",children:[n.jsx("button",{type:"button",className:"change-summary-file-toggle",onClick:a,children:n.jsx("span",{children:e.path})}),n.jsxs("span",{className:"change-summary-counts",children:[n.jsxs("span",{className:"diff-addition",children:["+",i.additions]}),n.jsxs("span",{className:"diff-deletion",children:["-",i.deletions]})]}),t&&n.jsx("button",{type:"button",className:"change-summary-open-file",title:"Open in sidebar","aria-label":`Open ${e.path} in sidebar`,onClick:()=>t(e.path),children:n.jsx(U,{size:14})}),n.jsx("button",{type:"button",className:"change-summary-expand-file",title:s?"Hide patch":"Show patch","aria-label":s?`Hide ${e.path} patch`:`Show ${e.path} patch`,onClick:a,children:n.jsx(I,{className:s?"expanded":"",size:14})})]}),s&&l&&n.jsx("div",{className:"change-summary-patch-unavailable",children:"Patch is no longer available for this workspace path."}),s&&e.patch&&!l&&n.jsx("pre",{className:"change-summary-patch",children:n.jsx("code",{children:e.patch})})]})}function pe(e){if((e.status==="added"||e.status==="untracked")&&e.additions===0&&e.content)return{additions:hn(e.content),deletions:0};if(e.additions>0||e.deletions>0||!e.patch||ge(e.patch))return{additions:e.additions,deletions:e.deletions};const t=mn(e.patch);return t.additions>0||t.deletions>0?t:{additions:e.additions,deletions:e.deletions}}function hn(e){const t=e.endsWith(`
7
- `)?e.slice(0,-1):e;return t?t.split(`
8
- `).length:0}function ge(e){return/^error: Could not access /m.test(e)}function mn(e){let t=0,s=0;for(const a of e.split(`
9
- `))a.startsWith("+++")||a.startsWith("---")||(a.startsWith("+")&&(t+=1),a.startsWith("-")&&(s+=1));return{additions:t,deletions:s}}function fn({run:e}){const t=e.plan,s=e.questions.find(c=>c.status==="pending")??null,a=Re(t?.metadata),l=e.target.kind==="agent"?null:e.sourceRefs[0]??t?.sourcePlan[0]?.path??null,r=e.checkRefs.length||t?.checks.length||0;return n.jsxs("section",{className:"chat-create-receipt","aria-label":"Create or improve status",children:[n.jsxs("div",{className:"chat-create-receipt-heading",children:[n.jsx(x,{size:14}),n.jsx("span",{children:pn(e)}),n.jsx("small",{children:e.target.kind})]}),n.jsx("p",{children:gn(e,t?.summary??null,s?.prompt??null)}),a||l||r?n.jsxs("div",{className:"chat-create-receipt-facts",children:[a?n.jsx("span",{title:a.detail,children:a.label}):null,l?n.jsx("span",{title:l,children:l}):null,r?n.jsxs("span",{children:[r," Evals"]}):null]}):null]})}function pn(e){const t=e.target.kind==="agent";return e.state==="awaiting_questions"?"Question ready":e.state==="awaiting_plan_approval"?"Plan ready":e.state==="applying_source"?t?"Saving Agent":"Applying source":e.state==="running_checks"?"Running Evals":e.state==="evaluating"?t?"Checking Agent":"Evaluating candidate":e.state==="awaiting_promotion"?t?"Update ready":"Candidate ready":e.state==="opening_pull_request"?"Opening review":e.state==="pull_request_open"?"Review open":e.state==="reconciling_release"?t?"Applying update":"Merging change":e.state==="released"?t?"Agent updated":"Released":e.state==="rejected"?t?"Current Agent kept":"Rejected":e.state==="ready"||e.state==="ready_local"?t?"Agent ready":"Workproduct ready":e.state==="published_hosted"?"Published":e.state==="cancelled"?"Cancelled":e.state==="blocked"?"Blocked":e.state==="failed"?"Failed":e.operation==="improve"?"Planning improvement":"Planning creation"}function gn(e,t,s){return e.state==="awaiting_questions"&&s?s:t||(e.blockedReason?e.blockedReason:e.state==="ready"||e.state==="ready_local"?e.target.kind==="agent"?"The Agent and its actions are ready to use.":"The candidate and its Evals are ready.":e.state==="awaiting_promotion"?e.target.kind==="agent"?"The updated Agent passed its Evals. Apply the update or keep the current version.":"The candidate has been committed and evaluated. Merge or reject it.":e.state==="pull_request_open"&&e.releaseOutcome.pullRequest?e.target.kind==="agent"?"The Agent update review is waiting to finish or close.":"The external review is waiting for merge or closure.":e.state==="released"?e.target.kind==="agent"?"The Agent update is saved and its Evals passed.":"The change merged and the active Profile passed its post-merge Evals.":e.state==="rejected"?e.blockedReason??(e.target.kind==="agent"?"The Agent update was not applied.":"The candidate was rejected."):`Preparing work for ${e.objective}.`)}const X=5;function xn({prompt:e}){const[t,s]=u.useState(!1),a=u.useMemo(()=>t?e.items:e.items.slice(0,X),[t,e.items]),i=Math.max(0,e.items.length-a.length),l=e.totalEvidenceCount||e.items.length;return n.jsxs("div",{className:"insights-run-prompt-card",children:[n.jsxs("div",{className:"insights-run-prompt-heading",children:[n.jsx("span",{className:"insights-run-prompt-icon","aria-hidden":"true",children:n.jsx(ne,{size:15})}),n.jsxs("div",{children:[n.jsx("strong",{children:"Insights scan"}),n.jsx("span",{children:bn(e,l)})]})]}),a.length>0?n.jsx("div",{className:"insights-run-evidence-list",children:a.map((r,c)=>n.jsx(jn,{item:r},`${r.evidenceSource}:${r.evidenceKey}:${c}`))}):n.jsx("p",{className:"insights-run-empty",children:"No evidence items were included."}),e.items.length>X?n.jsxs("button",{type:"button",className:"insights-run-show-more",onClick:()=>s(r=>!r),children:[n.jsx("span",{children:t?"Show less":`Show ${i} more`}),t?n.jsx(se,{size:13}):n.jsx(I,{size:13})]}):null]})}function jn({item:e}){const t=e.title??Q(e.evidenceSource),s=e.summary??e.evidenceKey,a=e.createPipelineState??e.type??e.severity;return n.jsxs("div",{className:"insights-run-evidence-row",children:[n.jsxs("div",{children:[n.jsx("strong",{children:t}),n.jsx("span",{children:s})]}),n.jsxs("div",{className:"insights-run-evidence-meta",children:[n.jsx("span",{children:Q(e.evidenceSource)}),a?n.jsx("span",{children:a}):null]})]})}function bn(e,t){const s=[e.trigger?`${e.trigger} run`:"run",`${t} evidence item${t===1?"":"s"}`];return e.eventCount!==null&&s.push(`${e.eventCount} events`),e.truncated&&s.push("JSON truncated"),s.join(" · ")}function Q(e){switch(e){case"create_edit":return"Create/Improve";case"stuck_turn":return"Stuck turn";case"tool_failure":return"Tool failure";case"abandoned_goal":return"Abandoned goal";case"user_correction":return"Correction";case"unresolved_conversation":return"Unresolved";case"usage_anomaly":return"Usage";default:return e||"Evidence"}}const qn=u.memo(function({activeWorkspaceAppId:t=null,accountBaseUrl:s=null,billingOrganizationSlug:a=null,billingTeamId:i=null,connection:l=null,message:r,onOpenBrowserLink:c,onOpenFileInSidebar:d,onOpenProfileSettings:o,onOpenSession:m,showFooter:h=!1,workspaceRootPath:g=null}){if(r.role==="status_divider")return n.jsx(zn,{message:r});if(r.role==="activity_group")return n.jsx(Bt,{activeWorkspaceAppId:t,connection:l,message:r,onOpenBrowserLink:c,onOpenFileInSidebar:d,onOpenSession:m,workspaceRootPath:g});if(r.role==="error")return r.errorKind==="opchat_quota_exceeded"?n.jsx("article",{className:"message-row assistant",children:n.jsx(An,{accountBaseUrl:s,billingOrganizationSlug:a,billingTeamId:i,onOpenBrowserLink:c})}):n.jsx("article",{className:"message-row assistant",children:n.jsx("div",{className:"assistant-message error-message",children:r.content??""})});if(r.role==="user"){const A=!!r.attachments?.length,$=!!r.attachments?.some(z=>z.kind==="image");return n.jsx("article",{className:"message-row user",children:n.jsxs("div",{className:`user-message ${r.insightsRunPrompt?"insights-run-message":""} ${A?"has-attachments":""} ${$?"has-image-attachments":""}`,children:[r.attachments?.length?n.jsx(Mn,{attachments:r.attachments,connection:l}):null,r.insightsRunPrompt?n.jsx(xn,{prompt:r.insightsRunPrompt}):null,r.content?n.jsx(vn,{content:r.content}):null]})})}const f=_e(r.timestamp),w=Ue(r.timestamp),b=r.actionRun&&V(r.actionRun)?At(r.actionRun):null;return n.jsxs("article",{className:"message-row assistant",children:[r.content?n.jsx("div",{className:"assistant-message",children:n.jsx(P,{activeWorkspaceAppId:t,connection:l,content:r.content,onOpenBrowserLink:c,onOpenFileInSidebar:d,workspaceRootPath:g})}):null,r.sources?.length?n.jsx($n,{sources:r.sources,onOpenBrowserLink:c}):null,r.actionRun&&V(r.actionRun)?n.jsxs("div",{className:`assistant-message action-run-profile-message ${r.actionRun.status}`,children:[n.jsx(P,{activeWorkspaceAppId:t,connection:l,content:r.actionRun.responseText??kt(r.actionRun),onOpenBrowserLink:c,onOpenFileInSidebar:d,workspaceRootPath:g}),b?n.jsx("div",{className:"action-run-agent-label",children:o?n.jsx("button",{type:"button",className:"action-run-agent-link",onClick:o,children:b}):n.jsx("span",{children:b})}):null]}):r.actionRun?n.jsx(wt,{actionRun:r.actionRun,onOpenBrowserLink:c,onOpenFileInSidebar:d,workspaceRootPath:g}):null,r.changeSummary&&n.jsx(dn,{summary:r.changeSummary,onOpenFileInSidebar:d}),r.createImproveRun?n.jsx(fn,{run:r.createImproveRun}):null,h&&n.jsxs("div",{className:"assistant-message-footer",children:[f&&n.jsx("time",{className:"message-timestamp",dateTime:r.timestamp,title:w,children:f}),n.jsx("button",{type:"button",className:"message-copy-button",title:"Copy message","aria-label":"Copy assistant message",disabled:!r.content,onClick:()=>{r.content&&Pe(r.content)},children:n.jsx(Le,{size:14})})]})]})},Cn),J=10;function vn({content:e}){const t=u.useMemo(()=>e.split(/\r?\n/),[e]),[s,a]=u.useState(!1),i=t.length>J,l=i&&!s?t.slice(0,J).join(`
10
- `):e;return n.jsxs("div",{className:`user-message-content-wrap ${i?"collapsible":""}`,children:[n.jsx("div",{className:"user-message-content",children:l}),i?n.jsxs("button",{type:"button",className:"user-message-show-more","aria-expanded":s,onClick:()=>a(r=>!r),children:[s?n.jsx(se,{size:14}):n.jsx(I,{size:14}),n.jsx("span",{children:s?"Show less":"Show more"})]}):null]})}function Cn(e,t){return e.activeWorkspaceAppId===t.activeWorkspaceAppId&&e.accountBaseUrl===t.accountBaseUrl&&e.billingOrganizationSlug===t.billingOrganizationSlug&&e.billingTeamId===t.billingTeamId&&e.connection===t.connection&&e.onOpenBrowserLink===t.onOpenBrowserLink&&e.onOpenFileInSidebar===t.onOpenFileInSidebar&&e.onOpenProfileSettings===t.onOpenProfileSettings&&e.onOpenSession===t.onOpenSession&&e.showFooter===t.showFooter&&e.workspaceRootPath===t.workspaceRootPath&&yn(e.message,t.message)}function yn(e,t){return e===t?!0:e.id===t.id&&e.role===t.role&&e.content===t.content&&e.timestamp===t.timestamp&&e.turnId===t.turnId&&e.statusKind===t.statusKind&&e.statusState===t.statusState&&e.statusTone===t.statusTone&&e.errorKind===t.errorKind&&kn(e.attachments,t.attachments)&&e.activities===t.activities&&e.sources===t.sources&&e.actionRun===t.actionRun&&e.insightsRunPrompt===t.insightsRunPrompt&&e.changeSummary===t.changeSummary&&e.createImproveRun===t.createImproveRun}function $n({sources:e,onOpenBrowserLink:t}){return n.jsxs("div",{className:"assistant-sources","aria-label":"Sources",children:[n.jsxs("span",{className:"assistant-sources-label",children:[n.jsx(E,{size:13}),n.jsx("span",{children:"Sources"})]}),e.map(s=>n.jsx(Nn,{source:s,onOpenBrowserLink:t},`${s.id}:${s.url}`))]})}function Nn({source:e,onOpenBrowserLink:t}){const s=wn(e),a=[e.title,xe(e.url)].filter(Boolean).join(" - "),i=n.jsxs(n.Fragment,{children:[n.jsx(Sn,{source:e}),n.jsx("span",{children:s})]});return t?n.jsx("button",{type:"button",className:"assistant-source-pill",title:a||s,"aria-label":`Open source ${s}`,onClick:()=>t(e.url,{newTab:!0}),children:i}):n.jsx("a",{className:"assistant-source-pill",href:e.url,target:"_blank",rel:"noreferrer",title:a||s,"aria-label":`Open source ${s}`,children:i})}function Sn({source:e}){const[t,s]=u.useState(!1);return!e.faviconUrl||t?n.jsx(E,{className:"assistant-source-fallback-icon",size:13}):n.jsx("img",{alt:"","aria-hidden":"true",className:"assistant-source-favicon",decoding:"async",loading:"lazy",src:e.faviconUrl,onError:()=>s(!0)})}function wn(e){return e.sourceName?.trim()||xe(e.url)||e.title}function xe(e){try{return new URL(e).hostname.replace(/^www\./i,"")}catch{return null}}function An({accountBaseUrl:e,billingOrganizationSlug:t,billingTeamId:s,onOpenBrowserLink:a}){const i=Ee({accountBaseUrl:e,organizationSlug:t,teamId:s}),l=n.jsxs(n.Fragment,{children:[n.jsx(B,{size:15}),n.jsx("span",{children:"Add credits"}),n.jsx(Fe,{size:13})]});return n.jsxs("div",{className:"assistant-message quota-error-card",role:"alert",children:[n.jsx("div",{className:"quota-error-card-icon",children:n.jsx(B,{size:17})}),n.jsxs("div",{className:"quota-error-card-body",children:[n.jsx("strong",{children:"OpenPond Chat allowance reached"}),n.jsx("p",{children:"You have reached your OpChat token allowance for this period. Add credits or wait for the allowance to reset."}),a?n.jsx("button",{type:"button",className:"quota-error-card-action",onClick:()=>a(i,{newTab:!0}),children:l}):n.jsx("a",{className:"quota-error-card-action",href:i,target:"_blank",rel:"noreferrer",children:l})]})]})}function kn(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let s=0;s<e.length;s+=1){const a=e[s],i=t[s];if(a.id!==i.id||a.kind!==i.kind||a.name!==i.name||a.mediaType!==i.mediaType||a.sizeBytes!==i.sizeBytes||a.imagePreview?.sessionId!==i.imagePreview?.sessionId||a.imagePreview?.turnId!==i.imagePreview?.turnId||a.imagePreview?.attachmentId!==i.imagePreview?.attachmentId||a.imagePreview?.storageName!==i.imagePreview?.storageName||a.imagePreview?.contentType!==i.imagePreview?.contentType)return!1}return!0}function Mn({attachments:e,connection:t}){return n.jsx("div",{className:"user-message-attachments","aria-label":"Attached files",children:e.map(s=>n.jsx(In,{attachment:s,connection:t},s.id))})}function In({attachment:e,connection:t}){if(e.kind==="image"&&e.imagePreview)return n.jsx(Tn,{attachment:e,connection:t});const s=e.kind==="image"?T:x;return n.jsxs("span",{className:"user-message-attachment",title:e.name,children:[n.jsx(s,{size:13}),n.jsx("span",{children:e.name}),n.jsx("small",{children:je(e.sizeBytes)})]})}function Tn({attachment:e,connection:t}){const s=Nt(t,e.imagePreview);return n.jsxs("figure",{className:`user-message-image-attachment ${s?"ready":"loading"}`,title:e.name,children:[n.jsx("div",{className:"user-message-image-frame",children:s?n.jsx("img",{alt:e.name,decoding:"async",loading:"lazy",src:s}):n.jsx(T,{size:24})}),n.jsxs("figcaption",{children:[n.jsx("span",{children:e.name}),n.jsx("small",{children:je(e.sizeBytes)})]})]})}function je(e){if(e<1024)return`${e} B`;const t=["KB","MB","GB"];let s=e/1024;for(const a of t){if(s<1024)return`${s.toFixed(s>=10?0:1)} ${a}`;s/=1024}return`${s.toFixed(0)} TB`}const Wn=u.memo(function(){return n.jsx("article",{className:"activity-group thinking-row","aria-live":"polite",children:n.jsx("div",{className:"activity-summary thinking-summary",role:"status",children:n.jsx("span",{children:"Thinking..."})})})});function zn({message:e}){const t=e.statusTone??"info",s=e.statusState??"idle";return n.jsx("article",{className:`status-divider ${t} ${s}`,"aria-live":t==="danger"?"assertive":"polite",children:n.jsx("span",{children:e.content??""})})}export{qn as M,Wn as T};
@@ -1 +0,0 @@
1
- import{r,bG as de,bH as le,bI as ue,j as i,bJ as he,bK as fe,bL as me,t as re,X as pe,k as ge,M as be}from"./index-DQalqxbw.js";import{T as ke,M as ve}from"./Messages-CH2wfv2a.js";import"./chevron-up-BWx8gGab.js";import"./copy-BjWvaXLC.js";import"./credit-card-Bjg0Zaw5.js";import"./MarkdownText-B6Nu_0Fz.js";import"./circle-x-DnmOfZIg.js";import"./git-branch-DTeeARsp.js";import"./play-2NDQ4-7K.js";function xe({panel:e,createImproveActions:k,initialScrollState:f,codexPermissionMode:T,codexReasoningEffort:P,openPondCommandAccessMode:v,connection:x,connectedAppMentions:M,mentionApps:N,codexPersonalSkills:E,profileSkills:D,projectTarget:B,providerSettings:L,accountBaseUrl:S,billingOrganizationSlug:$,billingTeamId:F,showToast:H,workspaceTarget:K,onCodexPermissionModeChange:z,onCodexReasoningEffortChange:w,onOpenPondCommandAccessModeChange:O,onModelChange:V,onOpenFileInSidebar:q,onOpenProfileSettings:W,onOpenSession:G,onProviderChange:J,onProviderSetupOpen:X,onPromptChange:Q,onScrollStateChange:U,onProjectTargetChange:Y,onResolveApproval:Z,onShowBrowserPanel:y,onStop:_,onSubmit:ee,onWorkspaceTargetChange:te}){const m=r.useRef(null),p=r.useRef(f?.stickyToBottom??!0),R=r.useRef(!1),g=e.running&&!e.pendingApproval&&de(e.messages),ie=r.useMemo(()=>e.createImproveRun?{...k,run:e.createImproveRun}:null,[k,e.createImproveRun]),u=r.useMemo(()=>le(e.messages,{showThinkingIndicator:g}),[e.messages,g]),l=e.messages.at(-1),se=[e.id,e.sessionId??"draft",u.length,l?.id??"",l?.content?.length??0,l?.timestamp??"",g?"thinking":""].join(":");r.useLayoutEffect(()=>{const n=m.current;if(n){if(!R.current){R.current=!0,n.scrollTop=f?.stickyToBottom?n.scrollHeight:f?.scrollTop??0;return}p.current&&(n.scrollTop=n.scrollHeight)}},[se,f]);const j=r.useCallback((n,d)=>{const A=e.sessionId??`side-chat:${e.id}`;ue({conversationId:A,href:n,explicitFile:d?.explicitFile,newTab:d?.newTab}).then(C=>{C&&y()})},[y,e.id,e.sessionId]);return i.jsxs("section",{className:`right-chat-pane ${e.pendingApproval?"has-approval":""}`,id:`right-chat-panel-${e.id}`,role:"tabpanel","aria-labelledby":`right-chat-tab-${e.id}`,children:[i.jsx("div",{className:"chat-thread right-chat-thread",ref:m,onScroll:n=>{const d=n.currentTarget;p.current=d.scrollHeight-d.scrollTop-d.clientHeight<=72,U({scrollTop:d.scrollTop,stickyToBottom:p.current})},children:u.map(n=>n.type==="thinking"?i.jsx(ke,{},n.id):i.jsx(ve,{activeWorkspaceAppId:e.activeWorkspaceAppId,accountBaseUrl:S,billingOrganizationSlug:$,billingTeamId:F,connection:x,message:n.message,onOpenBrowserLink:j,onOpenFileInSidebar:q,onOpenProfileSettings:W,onOpenSession:G,workspaceRootPath:e.workspaceRootPath,showFooter:n.showFooter},n.id))}),i.jsxs("div",{className:`composer-stack dock right-chat-composer ${e.pendingApproval?"has-approval":""}`,children:[i.jsx(he,{approval:e.pendingApproval,onResolve:Z}),i.jsx(fe,{mode:"dock",prompt:e.prompt,mentionApps:N,connectedAppMentions:M,profileSkills:e.provider==="codex"?E:D,selectedMentionAppId:null,contextWindowStatus:e.contextWindowStatus,goalRuntime:e.goalRuntime,createImproveRuntime:ie,busy:e.running,running:e.running,submissionScopeKey:e.sessionId??e.id,steerAutoDispatchBlocked:e.steerAutoDispatchBlocked,steerAutoDispatchReady:e.steerAutoDispatchReady,showProjectFooter:!1,connection:x,providerSettings:L,provider:e.provider,model:e.model,projectTarget:B,actionCatalog:[],workspaceTarget:K,codexPermissionMode:T,codexReasoningEffort:P,openPondCommandAccessMode:e.provider==="codex"?v:e.session?.openPondCommandAccessMode??v,onProviderChange:J,onProviderSetupOpen:X,onProjectTargetChange:Y,onWorkspaceTargetChange:te,onModelChange:V,onCodexPermissionModeChange:z,onCodexReasoningEffortChange:w,onOpenPondCommandAccessModeChange:O,onPromptChange:Q,onMentionAppSelect:void 0,showToast:H,onSubmit:ee,onStop:_})]})]})}function Me({panels:e,createImproveActions:k,busy:f,codexPermissionMode:T,codexReasoningEffort:P,openPondCommandAccessMode:v,connection:x,connectedAppMentions:M,mentionApps:N,codexPersonalSkills:E,profileSkills:D,projectTarget:B,providerSettings:L,accountBaseUrl:S,billingOrganizationSlug:$,billingTeamId:F,showToast:H,workspaceTarget:K,onAddChat:z,onActivatePanel:w,onClosePanel:O,onCodexPermissionModeChange:V,onCodexReasoningEffortChange:q,onOpenPondCommandAccessModeChange:W,onModelChange:G,onOpenFileInSidebar:J,onOpenProfileSettings:X,onOpenSession:Q,onProviderChange:U,onProviderSetupOpen:Y,onPromptChange:Z,onScrollStateChange:y,onProjectTargetChange:_,onResolveApproval:ee,onResizeStart:te,onSelectFiles:m,onShowBrowserPanel:p,onStop:R,onSubmit:g,onWorkspaceTargetChange:ie}){const[u,l]=r.useState(!1),[se,j]=r.useState(()=>me(e)?.id??null),n=r.useRef(null),d=r.useRef(new Map),A=r.useRef(new Set(e.map(t=>t.id))),C=r.useRef(new Map(e.map(t=>[t.id,t.activationVersion]))),c=e.find(t=>t.id===se)??e.at(-1)??null;r.useEffect(()=>{const t=A.current,a=C.current;let o=null,h=null;for(const s of e)t.has(s.id)||(o=s),t.has(s.id)&&s.activationVersion>(a.get(s.id)??0)&&(h=s);A.current=new Set(e.map(s=>s.id)),C.current=new Map(e.map(s=>[s.id,s.activationVersion])),j(s=>h?h.id:o?o.id:s&&e.some(I=>I.id===s)?s:e.at(-1)?.id??null)},[e]),r.useEffect(()=>{if(!u)return;function t(o){n.current?.contains(o.target)||l(!1)}function a(o){o.key==="Escape"&&l(!1)}return document.addEventListener("pointerdown",t),document.addEventListener("keydown",a),()=>{document.removeEventListener("pointerdown",t),document.removeEventListener("keydown",a)}},[u]);const b=r.useCallback((t,a=!1)=>{j(t),w(t),a&&window.requestAnimationFrame(()=>d.current.get(t)?.focus())},[w]),oe=r.useCallback((t=!1)=>{m(),t&&window.requestAnimationFrame(()=>{document.getElementById("right-sidebar-files-tab")?.focus()})},[m]),ne=r.useCallback((t,a)=>{const o=e.findIndex(ce=>ce.id===a);if(o<0)return;const h=o+1;let s=null;if(t.key==="ArrowRight"&&(s=(h+1)%(e.length+1)),t.key==="ArrowLeft"&&(s=(h-1+e.length+1)%(e.length+1)),t.key==="Home"&&(s=0),t.key==="End"&&(s=e.length),s===null)return;if(t.preventDefault(),s===0){oe(!0);return}const I=e[s-1];I&&b(I.id,!0)},[e,oe,b]),ae=r.useCallback(t=>{if(!["ArrowRight","ArrowLeft","Home","End"].includes(t.key)||(t.preventDefault(),t.key==="Home"))return;const a=t.key==="ArrowLeft"||t.key==="End"?e.at(-1):e[0];a&&b(a.id,!0)},[e,b]);return i.jsxs("aside",{className:"workspace-diff-panel right-chat-panel-stack","aria-label":"Side chats",children:[i.jsx("div",{className:"workspace-diff-resize-handle",role:"separator","aria-orientation":"vertical","aria-label":"Resize side chat panel",onPointerDown:te}),i.jsx("div",{className:"workspace-diff-topbar right-chat-topbar",children:i.jsxs("div",{className:"workspace-diff-tabs",role:"tablist","aria-label":"Right sidebar views",children:[i.jsxs("button",{type:"button",className:"workspace-diff-tab",role:"tab",id:"right-sidebar-files-tab","aria-controls":"right-sidebar-files-panel","aria-selected":!1,tabIndex:-1,onClick:()=>oe(!1),onKeyDown:ae,children:[i.jsx(re,{size:14}),i.jsx("span",{children:"Files"})]}),e.map(t=>{const a=t.id===c?.id;return i.jsxs("div",{className:`workspace-diff-tab right-chat-tab ${a?"active":""}`,children:[i.jsx("button",{type:"button",className:"workspace-diff-tab-main",role:"tab",id:`right-chat-tab-${t.id}`,"aria-controls":`right-chat-panel-${t.id}`,"aria-selected":a,tabIndex:a?0:-1,title:t.title,ref:o=>{o?d.current.set(t.id,o):d.current.delete(t.id)},onClick:()=>b(t.id),onKeyDown:o=>ne(o,t.id),children:i.jsx("span",{children:t.title})}),i.jsx("button",{type:"button",className:"workspace-diff-tab-close",title:`Close ${t.title}`,"aria-label":`Close ${t.title}`,onClick:o=>{o.stopPropagation(),O(t.id)},children:i.jsx(pe,{size:12})})]},t.id)}),i.jsxs("div",{className:"workspace-diff-add-anchor",ref:n,children:[i.jsx("button",{type:"button",className:`workspace-diff-add-tab ${u?"active":""}`,title:"Add to right sidebar","aria-label":"Add to right sidebar","aria-haspopup":"menu","aria-expanded":u,onClick:()=>l(t=>!t),children:i.jsx(ge,{size:15})}),u?i.jsxs("div",{className:"workspace-diff-add-menu right-chat-add-popover",role:"menu",children:[i.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{l(!1),z()},children:[i.jsx(be,{size:13}),i.jsx("span",{children:"New task"})]}),i.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{l(!1),m()},children:[i.jsx(re,{size:13}),i.jsx("span",{children:"Files"})]})]}):null]})]})}),i.jsx("div",{className:"right-chat-stack-body panes-1",children:c?i.jsx(xe,{busy:f,createImproveActions:k,codexPermissionMode:T,codexReasoningEffort:P,openPondCommandAccessMode:v,connection:x,connectedAppMentions:M,mentionApps:N,codexPersonalSkills:E,profileSkills:D,panel:c,initialScrollState:{scrollTop:c.scrollTop,stickyToBottom:c.stickyToBottom},projectTarget:B,providerSettings:L,accountBaseUrl:S,billingOrganizationSlug:$,billingTeamId:F,showToast:H,workspaceTarget:K,onCodexPermissionModeChange:V,onCodexReasoningEffortChange:q,onOpenPondCommandAccessModeChange:t=>W(t,c.session),onModelChange:t=>G(c.id,t),onOpenFileInSidebar:J,onOpenProfileSettings:X,onOpenSession:Q,onProviderChange:t=>U(c.id,t),onProviderSetupOpen:Y,onPromptChange:t=>Z(c.id,t),onScrollStateChange:t=>y(c.id,t),onProjectTargetChange:_,onResolveApproval:ee,onShowBrowserPanel:p,onStop:()=>R(c.sessionId),onSubmit:(t,a,o,h)=>g(c.id,t,a,o,h),onWorkspaceTargetChange:ie},c.id):null})]})}export{Me as RightChatPanelStack};
@@ -1 +0,0 @@
1
- .remote-access-summary{align-items:flex-start}.remote-access-summary .account-summary-actions{flex-wrap:wrap}.remote-access-icon,.remote-access-peer-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:17px;background:#ffffff12;color:#9d9d9d}.remote-access-icon.configured{background:#3aa3ff21;color:#77bdff}.remote-access-icon.online{background:#50c87821;color:#8ddfa8}.remote-access-link-heading{align-items:center}.remote-access-link-heading>div{display:grid;gap:3px;min-width:0}.remote-access-link-heading span,.remote-access-link-heading small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remote-access-value-row{align-items:flex-start}.remote-access-value-row div{gap:6px}.remote-access-value-row strong.flash{animation:remote-access-title-flash 1.5s ease-out}.remote-access-value-row code{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dcdcdc;font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.remote-access-peer-row{grid-template-columns:38px minmax(0,1fr) auto auto}.remote-access-environment{display:grid}.remote-access-environment-row{display:grid;min-height:62px;border-bottom:1px solid rgba(255,255,255,.06)}.remote-access-environment-row:last-child{border-bottom:0}.remote-access-environment-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.remote-access-environment-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.remote-access-environment-cell{display:grid;align-content:center;gap:5px;min-width:0;padding:12px 16px;border-right:1px solid rgba(255,255,255,.06)}.remote-access-environment-cell:last-child{border-right:0}.remote-access-environment-cell strong,.remote-access-environment-cell span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remote-access-environment-cell strong{color:#f6f6f6;font-size:13px;font-weight:550}.remote-access-environment-cell span{color:#9b9b9b;font-size:12px}.remote-access-peer-dot{width:11px;height:11px;justify-self:center;border-radius:999px;background:#555}.remote-access-peer-dot.online{background:#58d68d;box-shadow:0 0 0 4px #58d68d1f}.remote-access-config{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#181818}.remote-access-config pre{max-height:260px;margin:0;overflow:auto;background:#0f0f0f;color:#dcdcdc;padding:14px 16px;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;white-space:pre}@keyframes remote-access-title-flash{0%,to{color:#f6f6f6;text-shadow:none}18%,55%{color:#ffbc8f;text-shadow:0 0 12px rgba(255,156,86,.35)}}@media(max-width:720px){.remote-access-environment-row.three,.remote-access-environment-row.two{grid-template-columns:1fr}.remote-access-environment-cell{min-height:56px;border-right:0;border-bottom:1px solid rgba(255,255,255,.06)}.remote-access-environment-cell:last-child{border-bottom:0}}.compute-settings{gap:16px}.compute-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.compute-title-row h1{margin:0}.dataset-storage-intro{max-width:680px;margin:7px 0 0;color:#999;font-size:13px;line-height:1.5}.dataset-storage-list{min-width:0}.dataset-storage-row small.dataset-storage-error{color:#df8e8e}.compute-summary-main{grid-template-columns:minmax(0,1fr)}.compute-device-default{padding-top:0}.model-storage-picker{display:grid;gap:6px;max-width:640px;padding:14px 16px 16px}.model-storage-label{color:#9b9b9b;font-size:12px;white-space:nowrap}.model-storage-control-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:8px}.model-storage-select{width:100%;min-width:0;height:36px;border:1px solid rgba(255,255,255,.08);border-radius:8px;outline:0;appearance:none;background:linear-gradient(45deg,transparent 50%,#9b9b9b 50%) calc(100% - 16px) 50% / 5px 5px no-repeat,linear-gradient(135deg,#9b9b9b 50%,transparent 50%) calc(100% - 11px) 50% / 5px 5px no-repeat,#101010;color:var(--text);padding:0 32px 0 10px;font-size:13px}.model-storage-select:focus{border-color:#06b6d480}.model-storage-add{width:36px;height:36px}.model-storage-dialog{width:min(520px,calc(100vw - 34px))}.model-storage-dialog-note{border:1px solid rgba(143,200,255,.16);border-radius:9px;background:#8fc8ff12;color:#b4cae0;padding:9px 10px;font-size:12px;line-height:1.45}.compute-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 16px;border-top:1px solid var(--border)}.compute-row:first-of-type{border-top:0}.compute-row>div{display:grid;gap:4px;min-width:0}.compute-row strong{color:#f1f1f1;font-size:13px;font-weight:570}.compute-row small{overflow-wrap:anywhere;color:#9b9b9b;font-size:12px}.compute-row>span{flex:0 0 auto;color:#b7b7b7;font-size:12px}.compute-diagnostics{border:1px solid var(--border);border-radius:12px;color:#b7b7b7;padding:12px 14px;font-size:12px}.compute-diagnostics summary{color:#dedede;cursor:pointer}.compute-diagnostics ul{margin:10px 0 0;padding-left:18px}.compute-heading-actions{display:flex;align-items:center;gap:8px}.compute-download-row{display:grid;gap:10px;padding:13px 16px;border-top:1px solid var(--border)}.compute-download-row>div{display:grid;gap:4px}.compute-download-row strong{color:#f1f1f1;font-size:13px}.compute-download-row small{overflow-wrap:anywhere;color:#9b9b9b;font-size:12px}.compute-download-row progress{width:100%;height:5px;accent-color:var(--cyan)}@media(max-width:720px){.compute-row{align-items:flex-start;flex-direction:column;gap:7px}}.notification-settings-card{overflow:hidden}.notification-mode-list{display:grid}.notification-mode-option{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:11px;min-height:66px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;cursor:pointer}.notification-mode-option:last-child{border-bottom:0}.notification-mode-option:hover{background:#ffffff09}.notification-mode-option.selected{background:#3aa3ff13}.notification-mode-option input{width:15px;height:15px;margin:2px 0 0;accent-color:#3aa3ff}.notification-mode-option>span,.notification-thread-copy{display:grid;min-width:0;gap:4px}.notification-mode-option strong,.notification-thread-copy strong{color:#f4f4f4;font-size:13px;font-weight:560}.notification-mode-option small,.notification-thread-copy small{color:#9b9b9b;font-size:12px;line-height:1.4}.notification-thread-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:66px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.06)}.notification-thread-row:last-of-type{border-bottom:0}.notification-thread-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#3aa3ff1c;color:#8fc8ff}.notification-thread-icon.muted{background:#ffffff0f;color:#929292}.notification-settings-error{padding:11px 16px;border-top:1px solid rgba(255,98,98,.2);background:#ff626212;color:#ffb0b0;font-size:12px}@media(max-width:760px){.notification-thread-row{grid-template-columns:32px minmax(0,1fr)}.notification-thread-row>.settings-secondary{grid-column:2;justify-self:start}}.wallet-view{display:grid;gap:18px;width:min(920px,calc(100% - 96px));min-width:0;justify-self:center}.wallet-credit-card{display:grid;gap:28px;width:min(520px,100%);min-height:258px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#202322;color:#f7f7f7;padding:20px;box-shadow:0 18px 48px #00000047}.wallet-card-top,.wallet-card-bottom,.wallet-panel-header,.wallet-address-row,.wallet-asset-row{display:flex;align-items:center}.wallet-card-top,.wallet-panel-header,.wallet-address-row,.wallet-asset-row{justify-content:space-between;gap:14px}.wallet-card-brand{display:inline-flex;align-items:center;gap:8px;color:#d7f0df;font-size:13px;font-weight:650}.wallet-card-balance{display:grid;gap:5px}.wallet-card-balance span,.wallet-card-bottom span,.wallet-panel-header span,.wallet-card-address span,.wallet-address-row span,.wallet-asset-row span{color:#9b9b9b;font-size:12px}.wallet-card-balance strong{color:#f9f9f9;font-size:32px;font-weight:600;letter-spacing:0}.wallet-card-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,auto);align-items:end;gap:18px}.wallet-card-bottom>div,.wallet-panel-header div,.wallet-asset-row>div:not(.wallet-asset-identity){display:grid;gap:4px;min-width:0}.wallet-address-row>div{display:grid;gap:4px;min-width:0;width:100%}.wallet-card-bottom strong,.wallet-panel-header strong,.wallet-asset-row strong{min-width:0;overflow:hidden;color:#f3f3f3;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:550}.wallet-card-products{justify-items:end;text-align:right}.wallet-card-products strong{max-width:220px}.wallet-content-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);align-items:start;gap:14px}.wallet-side-stack{display:grid;gap:14px;min-width:0}.wallet-panel{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:#181818}.wallet-panel-header{min-height:62px;padding:14px 16px;border-bottom:1px solid var(--border)}.wallet-address-list,.wallet-asset-list{display:grid}.wallet-address-row,.wallet-asset-row{min-height:64px;padding:13px 16px;border-bottom:1px solid rgba(255,255,255,.06)}.wallet-address-row{justify-content:stretch}.wallet-address-row:last-child,.wallet-asset-row:last-child{border-bottom:0}.wallet-card-address{display:grid;gap:6px;margin-top:12px}.wallet-card-address>div{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%}.wallet-card-address code{display:block;min-width:0;flex:0 1 auto;overflow:hidden;color:#e8e8e8;text-overflow:ellipsis;white-space:nowrap;filter:blur(5px);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;transition:filter .14s ease;-webkit-user-select:none;user-select:none}.wallet-card-address:hover code,.wallet-card-address:focus-within code{filter:blur(0);-webkit-user-select:text;user-select:text}.wallet-card-address.empty code{color:#777;filter:none;font-family:inherit;-webkit-user-select:auto;user-select:auto}.wallet-address-row code{display:block;min-width:0;flex:1 1 auto;overflow:hidden;color:#e8e8e8;text-overflow:ellipsis;white-space:nowrap;filter:blur(5px);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;transition:filter .14s ease;-webkit-user-select:none;user-select:none}.wallet-address-line{display:flex;align-items:center;gap:6px;min-width:0;width:100%}.wallet-address-row:hover code,.wallet-address-row:focus-within code{filter:blur(0);-webkit-user-select:text;user-select:text}.wallet-address-row.empty code{color:#777;filter:none;font-family:inherit;-webkit-user-select:auto;user-select:auto}.wallet-copy-button{display:inline-grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border:0;border-radius:8px;background:#252525;color:#a8a8a8;padding:0}.wallet-copy-button.ghost{background:transparent;color:#c7c7c7}.wallet-copy-button:hover:not(:disabled),.wallet-copy-button:focus-visible{outline:0;background:#303030;color:var(--text)}.wallet-copy-button.ghost:hover:not(:disabled),.wallet-copy-button.ghost:focus-visible{background:#ffffff14}.wallet-copy-button:disabled{opacity:.42}.wallet-asset-row>span{flex:0 0 auto;color:#8ddfa8}.wallet-asset-row.empty{justify-content:flex-start}.wallet-asset-values{display:grid;justify-items:end;gap:4px;min-width:120px;text-align:right}.wallet-asset-values strong{max-width:180px}.wallet-asset-values span{color:#8ddfa8}.wallet-asset-identity{display:inline-flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto;overflow:hidden;white-space:nowrap}.wallet-asset-identity strong{color:#f3f3f3;font-size:14px;font-weight:550;overflow:hidden;text-overflow:ellipsis}.wallet-asset-identity>span:not(.wallet-token-fallback){flex:0 0 auto;color:#9b9b9b;font-size:12px;font-weight:450}.wallet-asset-identity img,.wallet-token-fallback{width:24px;height:24px;flex:0 0 24px;border-radius:999px}.wallet-token-fallback{display:inline-grid;place-items:center;background:#2a2d2c;color:#d7f0df;font-size:11px;font-weight:650}.skills-settings{max-width:980px}.skills-settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.skills-settings-header h1{margin-bottom:8px}.skills-settings-header p{max-width:680px;margin:0;color:var(--muted);font-size:13px;line-height:1.55}.github-extensions-heading{align-items:center}.github-extensions-heading-actions,.github-extension-row-actions{display:flex;align-items:center;gap:8px}.github-extension-add{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.75fr) minmax(150px,.55fr) auto;align-items:end;gap:12px;padding:16px;border-bottom:1px solid rgba(255,255,255,.06)}.github-extension-add-copy,.github-extension-add label,.github-extension-preview>div{display:grid;gap:5px}.github-extension-add-copy strong,.github-extension-preview strong{font-size:13px}.github-extension-add-copy span,.github-extension-add label>span,.github-extension-preview span{color:var(--muted);font-size:11px;line-height:1.45}.github-extension-add input{width:100%;height:34px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:#0000002e;color:var(--text);padding:0 10px;outline:none}.github-extension-add input:focus{border-color:#22d3ee73}.github-extension-message{padding:10px 16px;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px}.github-extension-message.error{color:#fca5a5;background:#f871710f}.github-extension-preview{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(240px,1fr) auto;align-items:center;gap:16px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.06);background:#22d3ee09}.github-extension-preview-skills{display:flex!important;flex-direction:row;flex-wrap:wrap;gap:6px!important}.github-extension-preview-skills>span{border-radius:999px;background:#ffffff0f;padding:4px 7px}.github-extension-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:76px;border-bottom:1px solid rgba(255,255,255,.06)}.github-extension-row:last-child{border-bottom:0}.github-extension-open{display:grid;grid-template-columns:34px minmax(220px,1.2fr) minmax(180px,.8fr) auto 16px;align-items:center;gap:12px;min-width:0;min-height:76px;border:0;background:transparent;color:var(--text);padding:12px 0 12px 16px;text-align:left}.github-extension-open:hover,.github-extension-open:focus-visible{background:#ffffff0b}.github-extension-open:focus-visible{outline:1px solid rgba(34,211,238,.46);outline-offset:-1px}.github-extension-open:disabled{cursor:default;opacity:.64}.github-extension-row-actions{padding-right:16px}.github-extension-row-actions .danger:hover:not(:disabled){color:#fca5a5;background:#f8717117}.native-skills-list{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:#ffffff05}.personal-skill-row{cursor:default}.personal-skill-row:hover{background:transparent}.skills-settings-empty{padding:18px 16px;color:var(--muted);font-size:12px}.native-skill-row{display:grid;grid-template-columns:34px minmax(220px,1.2fr) minmax(180px,.8fr) auto 16px;align-items:center;gap:12px;width:100%;min-height:72px;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:var(--text);padding:12px 16px;text-align:left}.native-skill-row:last-child{border-bottom:0}.native-skill-row:hover,.native-skill-row:focus-visible{background:#ffffff0b}.native-skill-row:focus-visible{outline:1px solid rgba(34,211,238,.46);outline-offset:-1px}.native-skill-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#22d3ee17;color:#67e8f9}.native-skill-identity,.native-skill-provider{display:grid;gap:4px;min-width:0}.native-skill-identity strong,.native-skill-provider strong,.native-skill-identity span,.native-skill-provider span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.native-skill-identity strong{font-size:13px;font-weight:620}.native-skill-identity span,.native-skill-provider span{color:var(--muted);font-size:11px}.native-skill-provider strong{color:#d8d8d8;font-size:12px;font-weight:560}.native-skill-provider span{font-family:var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace)}.native-skill-status{border-radius:999px;background:#4ade8017;color:#86efac;padding:5px 8px;font-size:10px;font-weight:650;white-space:nowrap}.native-skill-status.invalid{background:#f8717117;color:#fca5a5}.native-skill-row>svg{color:#737373}@media(max-width:760px){.skills-settings-header{flex-direction:column;gap:12px}.native-skill-row{grid-template-columns:34px minmax(0,1fr) 16px}.github-extension-add{grid-template-columns:1fr;align-items:stretch}.github-extension-preview{grid-template-columns:1fr}.github-extension-row{grid-template-columns:minmax(0,1fr) auto}.github-extension-open{grid-template-columns:34px minmax(0,1fr) 16px}.github-extension-open .native-skill-provider,.github-extension-open .native-skill-status,.native-skill-provider,.native-skill-status{display:none}}