openpond 0.0.36 → 0.0.37

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 (131) hide show
  1. package/README.md +4 -0
  2. package/dist/chunks/{app-layer-4AA4YYGK.js → app-layer-LF2HK2B2.js} +6 -3
  3. package/dist/chunks/{apps-V2JTB5MD.js → apps-ZMCMQZKX.js} +16 -12
  4. package/dist/chunks/{chunk-NVTC3XOA.js → chunk-2WMGA5FE.js} +8 -10
  5. package/dist/chunks/{chunk-6L5WJF7T.js → chunk-35PPAOWD.js} +2 -2
  6. package/dist/chunks/chunk-3VURZQHA.js +864 -0
  7. package/dist/chunks/{chunk-3DOOLZZM.js → chunk-43YI36NA.js} +1 -1
  8. package/dist/chunks/{chunk-JAS6QZ2W.js → chunk-A3CJUBA7.js} +1 -1
  9. package/dist/chunks/{chunk-NWVIUBJ3.js → chunk-BWA3COR4.js} +573 -1204
  10. package/dist/chunks/{chunk-G6WW2656.js → chunk-HLCTINEP.js} +1 -1
  11. package/dist/chunks/{chunk-65BVQIHR.js → chunk-IATK3CIP.js} +6 -6
  12. package/dist/chunks/{chunk-MSX2J653.js → chunk-ICLLW5QD.js} +1 -1
  13. package/dist/chunks/chunk-KSRWKXRB.js +12 -0
  14. package/dist/chunks/{chunk-GALAW74P.js → chunk-KT2BB4AR.js} +30 -11
  15. package/dist/chunks/{chunk-NWQTF6O4.js → chunk-LNKYEHIJ.js} +28 -3
  16. package/dist/chunks/{chunk-7IPF4X3K.js → chunk-MHBQWGCL.js} +1003 -56
  17. package/dist/chunks/chunk-MUMPWI4O.js +92 -0
  18. package/dist/chunks/{chunk-CJSD5ADV.js → chunk-N6E6YSTP.js} +2 -2
  19. package/dist/chunks/{chunk-TYYR7KWY.js → chunk-PGET7EZF.js} +7 -5
  20. package/dist/chunks/chunk-T4QXKU5Y.js +1 -0
  21. package/dist/chunks/{chunk-YLULZMWE.js → chunk-VFL2JVBZ.js} +48 -121
  22. package/dist/chunks/{chunk-MJT7EW5Q.js → chunk-WL76II47.js} +1 -1
  23. package/dist/chunks/{chunk-3JJBNVNX.js → chunk-WTA33KQQ.js} +23 -19
  24. package/dist/chunks/{chunk-LHYK6QO2.js → chunk-XEJ7XXUQ.js} +1 -0
  25. package/dist/chunks/{chunk-YRFQKUZD.js → chunk-ZPL4GZML.js} +88 -3
  26. package/dist/chunks/chunk-ZZ4ECDTP.js +668 -0
  27. package/dist/chunks/{cli-RJHEE4FA.js → cli-5NFIDCRL.js} +5 -5
  28. package/dist/chunks/cli-AS3DZ7XB.js +23 -0
  29. package/dist/chunks/{core-commands-CQSPCVC4.js → core-commands-7223BEQL.js} +7 -4
  30. package/dist/chunks/{extend-4MZ75SHV.js → extend-6N5S5KA5.js} +18 -13
  31. package/dist/chunks/extension-FJSVCG2Q.js +121 -0
  32. package/dist/chunks/{harness-YVZU42S7.js → harness-OMJXIGEW.js} +6 -3
  33. package/dist/chunks/{help-6SULYXVS.js → help-YPPROIS7.js} +2 -1
  34. package/dist/chunks/{opchat-XGS4AXHA.js → opchat-K7IYFPX6.js} +12 -7
  35. package/dist/chunks/{organizations-4GFQ3NT2.js → organizations-W3FMAWQ4.js} +8 -5
  36. package/dist/chunks/{profile-VWMBIHIE.js → profile-N4B3F7M7.js} +11 -8
  37. package/dist/chunks/{project-agent-SQ6ODALG.js → project-agent-NA6SGU25.js} +10 -7
  38. package/dist/chunks/{sandbox-command-34S2V7BN.js → sandbox-command-AKCFJKKN.js} +7 -4
  39. package/dist/chunks/{sandbox-template-VP5HMGQI.js → sandbox-template-5NKTAXCL.js} +11 -7
  40. package/dist/chunks/{src-X3R3XIJT.js → src-SCS4KKP4.js} +1997 -1247
  41. package/dist/chunks/{src-YHUMH6W6.js → src-XAVSQTVR.js} +3 -3
  42. package/dist/chunks/{teams-bot-EIVRNO5S.js → teams-bot-557NZC73.js} +6 -3
  43. package/dist/chunks/{workspaces-2N52V3BI.js → workspaces-S2H75XQB.js} +6 -2
  44. package/dist/cli.js +14 -11
  45. package/dist/index.js +27 -9
  46. package/dist/profile/local-profile-types.d.ts +1 -0
  47. package/dist/profile/profile-skills.d.ts +2 -0
  48. package/dist/web/assets/{AppDialog-j4N-gIi3.js → AppDialog-y6krB0MJ.js} +1 -1
  49. package/dist/web/assets/{AppsView-YiK3pqNb.js → AppsView-4F6oLktr.js} +1 -1
  50. package/dist/web/assets/{BrowserSidebar-BWFLEQ8j.js → BrowserSidebar-C0MHQaaD.js} +1 -1
  51. package/dist/web/assets/{CloudWorkView-3sS_1bhN.js → CloudWorkView-DwFIZoXy.js} +1 -1
  52. package/dist/web/assets/{CommandMenu-B11OrTCq.js → CommandMenu-CYGFrMZi.js} +1 -1
  53. package/dist/web/assets/{CommunityView-DXyXTWhP.js → CommunityView-C6n89YXz.js} +1 -1
  54. package/dist/web/assets/{ComposerCreateImproveStrip-3NoRiJJq.js → ComposerCreateImproveStrip-C3RwXC3_.js} +1 -1
  55. package/dist/web/assets/{GetStartedView-CPV5lgVH.js → GetStartedView-fwD0ZXo9.js} +1 -1
  56. package/dist/web/assets/LabSkillSidebar-BSuc-NJr.js +1 -0
  57. package/dist/web/assets/LabSkillSidebar-CVxtS9pd.css +1 -0
  58. package/dist/web/assets/LabsRoute-BrJkBNig.css +1 -0
  59. package/dist/web/assets/LabsRoute-D2y8dSsT.js +3 -0
  60. package/dist/web/assets/MainChatThread-Dj_Ry6WQ.js +2 -0
  61. package/dist/web/assets/{MakeAgentTutorialLearningPanel-C6F-kJQd.js → MakeAgentTutorialLearningPanel-Bz2VDaRe.js} +2 -2
  62. package/dist/web/assets/{MarkdownText-CkVkr3P1.js → MarkdownText-B6Nu_0Fz.js} +4 -4
  63. package/dist/web/assets/Messages-CH2wfv2a.js +10 -0
  64. package/dist/web/assets/NativeSkillSidebar-4iUfgwqO.js +1 -0
  65. package/dist/web/assets/{NewProjectDialog-DBMhkTvD.js → NewProjectDialog-8M5-6-h-.js} +1 -1
  66. package/dist/web/assets/{PostTrainingLearningPanel-B1Rp7iIL.js → PostTrainingLearningPanel-CdG5KHZs.js} +2 -2
  67. package/dist/web/assets/{PostTrainingStatusPill-BGZ9h5eW.js → PostTrainingStatusPill-COZ4qISQ.js} +1 -1
  68. package/dist/web/assets/{ProfileSettingsSection-2NOHEz2b.js → ProfileSettingsSection-Bo7dybgW.js} +1 -1
  69. package/dist/web/assets/RightChatPanelStack-Di8zoHJI.js +1 -0
  70. package/dist/web/assets/{SettingsView-uHhQnazW.css → SettingsView-BcYyY66X.css} +1 -1
  71. package/dist/web/assets/SettingsView-CAaKdDHt.js +6 -0
  72. package/dist/web/assets/{TeamChatView-qVscSedQ.js → TeamChatView-CzQYFBap.js} +2 -2
  73. package/dist/web/assets/{TerminalOverlay-Bkw7XqMy.js → TerminalOverlay-B56XmI-k.js} +1 -1
  74. package/dist/web/assets/{TrainingCreationPanel-COg1wvw8.js → TrainingCreationPanel-C_ntWAAP.js} +1 -1
  75. package/dist/web/assets/{TrainingDraftPanel-BNK2znmI.js → TrainingDraftPanel-3hJIxLNn.js} +1 -1
  76. package/dist/web/assets/{UsageSettingsSection-CUxBaohC.js → UsageSettingsSection-r3CqRm6Q.js} +1 -1
  77. package/dist/web/assets/WorkspaceDiffPanel-By8PWUuE.js +14 -0
  78. package/dist/web/assets/{WorkspaceEnvironmentMenu-C0-mH7oF.js → WorkspaceEnvironmentMenu-7wmC-spz.js} +1 -1
  79. package/dist/web/assets/{WorkspaceGitDialogs-VvC2px0X.js → WorkspaceGitDialogs-Hn--lsRh.js} +1 -1
  80. package/dist/web/assets/{WorkspaceMonacoEditor-CUIwoHv1.js → WorkspaceMonacoEditor-CHd22UcG.js} +3 -3
  81. package/dist/web/assets/{activity-BhqHgkfJ.js → activity-Dp5V58om.js} +1 -1
  82. package/dist/web/assets/{boxes-BpqUKFIm.js → boxes-DE7WJaEv.js} +1 -1
  83. package/dist/web/assets/{chevron-up-BTn9DVRP.js → chevron-up-BWx8gGab.js} +1 -1
  84. package/dist/web/assets/{circle-x-B9Qa8o5a.js → circle-x-DnmOfZIg.js} +1 -1
  85. package/dist/web/assets/{copy-BsYs6wBI.js → copy-BjWvaXLC.js} +1 -1
  86. package/dist/web/assets/{create-pipeline-request-vxgKoAvv.js → create-pipeline-request-C4V6-lWN.js} +1 -1
  87. package/dist/web/assets/{credit-card-BCePAwMI.js → credit-card-Bjg0Zaw5.js} +1 -1
  88. package/dist/web/assets/{cssMode-mw8RI2fR.js → cssMode-KFDYjM8T.js} +1 -1
  89. package/dist/web/assets/file-BrC1KjAS.js +1 -0
  90. package/dist/web/assets/{git-branch-C7qQYFIs.js → git-branch-DTeeARsp.js} +1 -1
  91. package/dist/web/assets/{git-commit-horizontal-CbX4pTOA.js → git-commit-horizontal-C8UFKlXy.js} +1 -1
  92. package/dist/web/assets/{htmlMode-Cc4Czh_M.js → htmlMode-NbLN3n6Q.js} +1 -1
  93. package/dist/web/assets/index-BcZetaeD.css +1 -0
  94. package/dist/web/assets/index-DQalqxbw.js +177 -0
  95. package/dist/web/assets/index-DYxF_d9i.js +1 -0
  96. package/dist/web/assets/{info-BNGbwgtq.js → info-BXBpMeVU.js} +1 -1
  97. package/dist/web/assets/{jsonMode-CbqbqGVz.js → jsonMode-Bl3r4LM_.js} +1 -1
  98. package/dist/web/assets/{lspLanguageFeatures-DKiKr5tH.js → lspLanguageFeatures-DH22w5XD.js} +1 -1
  99. package/dist/web/assets/{make-agent-tutorial-KKauJpB9.js → make-agent-tutorial-CAnTPFCK.js} +1 -1
  100. package/dist/web/assets/{monaco.contribution-D_-wu578.js → monaco.contribution-C0BsxYAz.js} +2 -2
  101. package/dist/web/assets/{monaco.contribution-CdUAX47Q.js → monaco.contribution-CzpXjm9j.js} +2 -2
  102. package/dist/web/assets/{monaco.contribution-Dxc4IxFM.js → monaco.contribution-DK-g-i00.js} +2 -2
  103. package/dist/web/assets/{monaco.contribution-CNgwz_pw.js → monaco.contribution-iAurj7TQ.js} +2 -2
  104. package/dist/web/assets/{monitor-CNdx_GTg.js → monitor-Ba2FFblh.js} +1 -1
  105. package/dist/web/assets/{play-BLRANWaV.js → play-2NDQ4-7K.js} +1 -1
  106. package/dist/web/assets/{python-DYgDMu2R.js → python-CQ0TmUW9.js} +1 -1
  107. package/dist/web/assets/{refresh-cw-BFjjwYNf.js → refresh-cw-CyermMsy.js} +1 -1
  108. package/dist/web/assets/{reply-D012cuZl.js → reply-BSExNLHM.js} +1 -1
  109. package/dist/web/assets/{rotate-cw-CTfjlR4G.js → rotate-cw-DJ-zYG9E.js} +1 -1
  110. package/dist/web/assets/{save-B1zYlRyN.js → save-Bij3cc3Q.js} +1 -1
  111. package/dist/web/assets/{toggleHighContrast-D9XFH7EA.js → toggleHighContrast-CxALivAH.js} +1 -1
  112. package/dist/web/assets/{tsMode-BU-tuKsY.js → tsMode-vH4lMS7h.js} +1 -1
  113. package/dist/web/assets/{upload-DU_81jvL.js → upload-DbJfEI3G.js} +1 -1
  114. package/dist/web/assets/{wifi-off-TPsBnbGW.js → wifi-off-BnVFBG28.js} +1 -1
  115. package/dist/web/assets/{workers-NhWySRdT.js → workers-CBihj7z6.js} +1 -1
  116. package/dist/web/assets/{yaml-DWXa_3ZL.js → yaml-Bhkoq1sy.js} +1 -1
  117. package/dist/web/index.html +2 -2
  118. package/docs/command-reference.md +15 -0
  119. package/package.json +1 -1
  120. package/dist/chunks/cli-4JA3SIDE.js +0 -19
  121. package/dist/web/assets/LabsRoute-B_nsEZXy.js +0 -3
  122. package/dist/web/assets/LabsRoute-dNN-odU0.css +0 -1
  123. package/dist/web/assets/MainChatThread-Dg7p3R2O.js +0 -2
  124. package/dist/web/assets/Messages-C7uHGoFw.js +0 -10
  125. package/dist/web/assets/NativeSkillSidebar-BPpoHjEW.js +0 -1
  126. package/dist/web/assets/RightChatPanelStack-CLK7_zKe.js +0 -1
  127. package/dist/web/assets/SettingsView-BAqea_KX.js +0 -6
  128. package/dist/web/assets/WorkspaceDiffPanel-qfFj8IRq.js +0 -14
  129. package/dist/web/assets/index-9tbdqUau.css +0 -1
  130. package/dist/web/assets/index-B_3z_lxq.js +0 -1
  131. package/dist/web/assets/index-Cr_RZ7GD.js +0 -177
@@ -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-CUIwoHv1.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-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
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-CUIwoHv1.js";import"./toggleHighContrast-D9XFH7EA.js";import{c as K}from"./workers-NhWySRdT.js";import{typescriptDefaults as M}from"./monaco.contribution-CdUAX47Q.js";import"./index-Cr_RZ7GD.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-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,`
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-Cr_RZ7GD.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-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 +1 @@
1
- import{d as a}from"./index-Cr_RZ7GD.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-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 +1 @@
1
- import{j7 as c}from"./WorkspaceMonacoEditor-CUIwoHv1.js";import"./toggleHighContrast-D9XFH7EA.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-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 +1 @@
1
- import{l as e}from"./WorkspaceMonacoEditor-CUIwoHv1.js";import"./toggleHighContrast-D9XFH7EA.js";import"./index-Cr_RZ7GD.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-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};
@@ -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-Cr_RZ7GD.js"></script>
11
- <link rel="stylesheet" crossorigin href="./assets/index-9tbdqUau.css">
10
+ <script type="module" crossorigin src="./assets/index-DQalqxbw.js"></script>
11
+ <link rel="stylesheet" crossorigin href="./assets/index-BcZetaeD.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="root"></div>
@@ -177,6 +177,21 @@ Usage:
177
177
  Options:
178
178
  --cwd <string>
179
179
  ```
180
+ ## extension
181
+
182
+ ```text
183
+ Usage:
184
+ openpond extension <add|preview|list|inspect|update|remove> [owner/repo]
185
+ openpond extension add <owner/repo> [--ref <branch|tag|sha>] [--json]
186
+ openpond extension update <owner/repo> [--ref <branch|tag|sha>] [--json]
187
+ openpond extension update --all [--json]
188
+ openpond extension remove <owner/repo> [--json]
189
+
190
+ Options:
191
+ --all
192
+ --json
193
+ --ref <string>
194
+ ```
180
195
  ## profiles
181
196
 
182
197
  ```text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "openpondReleaseVersioned": true,
5
5
  "license": "MIT",
6
6
  "description": "OpenPond CLI and local harness",
@@ -1,19 +0,0 @@
1
- import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import {
3
- createLocalGoal,
4
- printGoalHelp,
5
- runGoalCommand
6
- } from "./chunk-TYYR7KWY.js";
7
- import "./chunk-G6WW2656.js";
8
- import "./chunk-YRFQKUZD.js";
9
- import "./chunk-LHYK6QO2.js";
10
- import "./chunk-WYDVQOBL.js";
11
- import "./chunk-NWVIUBJ3.js";
12
- import "./chunk-NVTC3XOA.js";
13
- import "./chunk-YLULZMWE.js";
14
- import "./chunk-UACZUFIA.js";
15
- export {
16
- createLocalGoal,
17
- printGoalHelp,
18
- runGoalCommand
19
- };