@field/cascade 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/dist/assets/{CodeEditor-BLpahZw6.js → CodeEditor-D-N0C2jT.js} +4 -4
- package/dist/assets/{CodePanel-BqYKqBMH.js → CodePanel-EN411mp5.js} +2 -2
- package/dist/assets/{CustomNodeDialog-CYr9y7dG.js → CustomNodeDialog-6z2n27VV.js} +1 -1
- package/dist/assets/OpenGraphDialog-CsMNY3C6.css +1 -0
- package/dist/assets/OpenGraphDialog-fMZjzIR3.js +1 -0
- package/dist/assets/{ProjectSettings-CnYfrkKh.js → ProjectSettings-BQ8PGNqo.js} +1 -1
- package/dist/assets/{SettingsDialog-mSS6KUyS.js → SettingsDialog-IbYLm8Bx.js} +1 -1
- package/dist/assets/{VersionHistoryDialog-DZuwNG6s.js → VersionHistoryDialog-Bgh-q5Jg.js} +1 -1
- package/dist/assets/{core-BOGrwBxU.js → core-DlkL34JF.js} +1 -1
- package/dist/assets/{cssMode-0Z3pyDOW.js → cssMode-DaSSFZYi.js} +1 -1
- package/dist/assets/definitions-CQBdsJYJ.js +1 -0
- package/dist/assets/{editor.api-D-_7pnnj.js → editor.api-CHUMRaMm.js} +1 -1
- package/dist/assets/{freemarker2-DE0JRkF7.js → freemarker2-DQ604q2A.js} +1 -1
- package/dist/assets/geo-DcmMAcqM.js +1 -0
- package/dist/assets/{handlebars-B_Shirzj.js → handlebars-09pcWz8x.js} +1 -1
- package/dist/assets/{html-DI5Qj4gd.js → html-DtIKrZiD.js} +1 -1
- package/dist/assets/{htmlMode-CkHZy0mE.js → htmlMode-DgJ_4m1_.js} +1 -1
- package/dist/assets/{image-B6RU2frM.js → image-CtUE4_I-.js} +1 -1
- package/dist/assets/{index-DTyzl6YV.js → index-CnylT98t.js} +19 -19
- package/dist/assets/{javascript-zxQfbzS_.js → javascript-kbIBYYGo.js} +1 -1
- package/dist/assets/{jsonMode-DSQ0uLqA.js → jsonMode-DblCG64t.js} +1 -1
- package/dist/assets/{liquid-0zs2oOuA.js → liquid-D-qdTGhQ.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-7VWaq5lc.js → lspLanguageFeatures-Bc6azcFQ.js} +1 -1
- package/dist/assets/math-CY11tkoN.js +1 -0
- package/dist/assets/{mdx-BFKlF5Xh.js → mdx-TXg4xsyD.js} +1 -1
- package/dist/assets/pop-Dr5-ARqQ.js +1 -0
- package/dist/assets/{python-BgexpWZh.js → python-C4SGyXJW.js} +1 -1
- package/dist/assets/{razor-E1kWyvkT.js → razor-BZ-lEgY9.js} +1 -1
- package/dist/assets/{tsMode-CTmJLLW5.js → tsMode-BoaO1D7x.js} +1 -1
- package/dist/assets/{typescript-BheZLRDM.js → typescript-D87dYk9k.js} +1 -1
- package/dist/assets/{workers-KIoho05H.js → workers-ZrST7klJ.js} +1 -1
- package/dist/assets/{xml-DaVLg9zI.js → xml-DT6r4F7G.js} +1 -1
- package/dist/assets/{yaml-D6XGTfOj.js → yaml-DxmQ8XYb.js} +1 -1
- package/dist/cli/index.js +3289 -11436
- package/dist/index.html +1 -1
- package/dist/runtime/builtins/geo/definitions.d.ts +153 -0
- package/dist/runtime/builtins/geo/definitions.js +75 -0
- package/dist/runtime/builtins/geo/index.d.ts +3 -1
- package/dist/runtime/builtins/geo/index.js +4 -1
- package/dist/runtime/geometry/index.d.ts +1 -0
- package/dist/runtime/geometry/index.js +1 -0
- package/dist/runtime/geometry/rects.d.ts +88 -0
- package/dist/runtime/geometry/rects.js +68 -0
- package/doc/NODE_REFERENCE.md +26 -1
- package/package.json +1 -1
- package/dist/assets/definitions-Cckh442l.js +0 -1
- package/dist/assets/geo-DcAVygkw.js +0 -1
- package/dist/assets/math-BA6juJD7.js +0 -1
- package/dist/assets/pop-Bkzzmp57.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/tsMode-
|
|
2
|
-
import{$ as e,Dt as t,Et as n,G as r,I as i,L as a,O as o,Q as s,Tt as c,U as l,V as u,W as d,X as f,Z as p,_t as m,a as h,at as g,b as _,ct as v,d as y,et as b,ft as x,i as S,it as C,l as w,n as T,nt as E,o as D,ot as O,p as k,q as A,r as ee,rt as te,st as ne,t as re,tt as j,ut as ie,v as ae,vt as M,wt as N,x as oe,z as se}from"./legacy-CAj2_7QE.js";import{a as ce,d as P,n as le,o as F}from"./nodeTypeUtils-BDJsc2Ks.js";import{G as ue,H as de,J as fe,L as pe,U as me,W as he,a as ge,k as _e,q as ve,r as ye,t as be}from"./index-DTyzl6YV.js";import{$ as xe,$a as Se,$c as Ce,$d as I,$i as we,$l as Te,$n as Ee,$o as De,$r as Oe,$s as ke,$t as Ae,$u as je,A as Me,Aa as Ne,Ac as Pe,Ad as Fe,Ai as Ie,Al as Le,An as Re,Ao as ze,Ar as Be,As as Ve,At as He,Au as Ue,B as We,Ba as L,Bc as Ge,Bd as Ke,Bi as qe,Bl as Je,Bn as Ye,Bo as Xe,Br as Ze,Bs as Qe,Bt as $e,Bu as et,C as tt,Ca as nt,Cc as rt,Cd as it,Ci as at,Cl as ot,Cn as st,Co as ct,Cr as lt,Cs as ut,Ct as dt,Cu as ft,D as R,Da as pt,Dc as mt,Dd as ht,Di as gt,Dl as _t,Dn as vt,Do as yt,Dr as bt,Ds as xt,Dt as St,Du as Ct,E as wt,Ea as Tt,Ec as Et,Ed as z,Ei as Dt,El as Ot,En as kt,Eo as At,Er as jt,Es as Mt,Et as Nt,Eu as Pt,F as Ft,Fa as It,Fc as Lt,Fd as Rt,Fi as zt,Fl as Bt,Fn as Vt,Fo as Ht,Fr as Ut,Fs as Wt,Ft as Gt,Fu as B,G as Kt,Ga as qt,Gc as Jt,Gd as Yt,Gi as Xt,Gl as Zt,Gn as V,Go as Qt,Gr as $t,Gs as en,Gt as tn,Gu as nn,H as rn,Ha as an,Hc as on,Hd as sn,Hi as cn,Hl as ln,Hn as un,Ho as dn,Hr as fn,Hs as pn,Ht as mn,Hu as hn,I as gn,Ia as _n,Ic as vn,Id as yn,Ii as bn,Il as xn,In as Sn,Io as Cn,Ir as wn,Is as Tn,It as En,Iu as Dn,J as H,Ja as On,Jc as kn,Jd as An,Ji as jn,Jl as Mn,Jn as Nn,Jo as Pn,Jr as Fn,Js as In,Jt as Ln,Ju as Rn,K as zn,Ka as Bn,Kc as Vn,Kd as Hn,Ki as Un,Kl as Wn,Kn as Gn,Ko as Kn,Kr as qn,Ks as Jn,Kt as Yn,Ku as Xn,L as Zn,La as Qn,Lc as $n,Ld as er,Li as tr,Ll as nr,Ln as rr,Lo as ir,Lr as ar,Ls as or,Lt as sr,Lu as cr,M as lr,Ma as ur,Mc as dr,Md as fr,Mi as pr,Ml as mr,Mn as hr,Mo as gr,Mr as _r,Ms as vr,Mt as yr,Mu as br,N as xr,Na as Sr,Nc as Cr,Nd as wr,Ni as Tr,Nl as Er,Nn as Dr,No as Or,Nr as kr,Ns as Ar,Nt as jr,Nu as Mr,O as Nr,Oa as Pr,Oc as Fr,Od as Ir,Oi as Lr,Ol as Rr,On as zr,Oo as Br,Or as Vr,Os as Hr,Ot as Ur,Ou as Wr,P as Gr,Pa as Kr,Pc as qr,Pd as Jr,Pi as Yr,Pl as Xr,Pn as Zr,Po as Qr,Pr as $r,Ps as ei,Pt as ti,Pu as ni,Q as ri,Qa as ii,Qc as ai,Qd as oi,Qi as si,Ql as ci,Qn as li,Qo as ui,Qr as di,Qs as fi,Qt as pi,Qu as mi,R as hi,Ra as gi,Rc as _i,Rd as vi,Ri as yi,Rl as bi,Rn as xi,Ro as Si,Rr as Ci,Rs as wi,Rt as Ti,Ru as Ei,S as Di,Sa as Oi,Sc as ki,Sd as Ai,Si as ji,Sl as Mi,Sn as Ni,So as Pi,Sr as Fi,Ss as Ii,St as Li,Su as Ri,T as zi,Ta as Bi,Tc as Vi,Td as U,Ti as Hi,Tl as Ui,Tn as Wi,To as Gi,Tr as Ki,Ts as qi,Tt as Ji,Tu as Yi,U as Xi,Ua as Zi,Uc as Qi,Ud as $i,Ui as ea,Ul as ta,Un as na,Uo as ra,Ur as ia,Us as aa,Ut as oa,Uu as sa,Va as ca,Vc as la,Vd as ua,Vi as da,Vl as fa,Vn as pa,Vo as ma,Vr as ha,Vs as ga,Vt as _a,Vu as va,W as ya,Wa as ba,Wc as xa,Wd as Sa,Wi as Ca,Wl as wa,Wn as Ta,Wo as Ea,Wr as Da,Ws as Oa,Wt as ka,Wu as Aa,X as ja,Xa as Ma,Xc as Na,Xd as Pa,Xi as Fa,Xl as Ia,Xn as La,Xo as Ra,Xr as za,Xs as Ba,Xt as Va,Xu as Ha,Y as Ua,Ya as Wa,Yc as Ga,Yd as Ka,Yi as qa,Yl as Ja,Yn as Ya,Yo as Xa,Yr as Za,Ys as Qa,Yt as $a,Z as eo,Za as to,Zc as no,Zd as ro,Zi as W,Zl as io,Zn as ao,Zo as oo,Zr as G,Zs as so,Zt as co,Zu as lo,_ as uo,_a as fo,_c as po,_d as mo,_i as ho,_l as go,_n as _o,_o as vo,_r as yo,_s as bo,_t as xo,_u as So,a as Co,aa as wo,ac as To,ad as Eo,af as Do,ai as Oo,al as ko,an as Ao,ao as jo,ar as Mo,as as No,at as Po,au as Fo,b as K,ba as q,bc as Io,bd as Lo,bi as Ro,bl as zo,bn as Bo,bo as Vo,br as Ho,bs as Uo,bt as Wo,bu as Go,c as Ko,ca as qo,cc as Jo,cd as Yo,cf as Xo,ci as Zo,cl as Qo,cn as $o,co as es,cr as ts,cs as ns,ct as rs,cu as is,d as as,da as os,dc as ss,dd as cs,df as ls,di as us,dl as ds,dn as fs,do as ps,dr as ms,ds as hs,dt as gs,du as _s,ea as vs,ec as ys,ed as bs,ef as xs,ei as Ss,el as Cs,en as ws,eo as Ts,er as Es,es as Ds,et as Os,eu as ks,f as As,fa as js,fc as Ms,fd as Ns,ff as Ps,fi as Fs,fl as Is,fn as Ls,fo as Rs,fr as zs,fs as Bs,ft as Vs,fu as Hs,g as Us,ga as Ws,gc as Gs,gd as Ks,gi as qs,gl as Js,gn as Ys,go as Xs,gr as Zs,gs as Qs,gt as $s,gu as ec,h as tc,ha as nc,hc as rc,hd as ic,hi as ac,hl as oc,hn as sc,ho as cc,hr as lc,hs as uc,ht as dc,hu as fc,i as pc,ia as mc,ic as hc,id as gc,if as _c,ii as vc,il as yc,in as bc,io as xc,ir as Sc,is as Cc,it as wc,iu as Tc,j as Ec,ja as Dc,jc as Oc,jd as kc,ji as Ac,jl as jc,jn as Mc,jo as Nc,jr as Pc,js as Fc,jt as Ic,ju as Lc,k as Rc,ka as zc,kc as Bc,kd as Vc,ki as Hc,kl as Uc,kn as Wc,ko as Gc,kr as Kc,ks as qc,kt as Jc,ku as Yc,l as Xc,la as Zc,lc as Qc,ld as $c,lf as el,li as tl,ll as nl,ln as rl,lo as il,lr as al,ls as ol,lt as sl,lu as cl,m as ll,ma as ul,mc as dl,md as fl,mi as pl,ml,mn as hl,mo as gl,mr as _l,ms as vl,mt as yl,mu as bl,n as xl,na as Sl,nc as Cl,nd as wl,nf as Tl,ni as El,nl as Dl,nn as Ol,no as kl,nr as Al,ns as jl,nt as Ml,nu as Nl,o as Pl,oa as Fl,oc as Il,od as Ll,of as Rl,oi as zl,ol as Bl,on as Vl,oo as Hl,or as Ul,os as Wl,ot as Gl,ou as Kl,p as ql,pa as Jl,pc as Yl,pd as Xl,pf as Zl,pi as Ql,pl as $l,pn as eu,po as tu,pr as nu,ps as ru,pt as iu,pu as au,q as ou,qa as su,qc as cu,qd as lu,qi as uu,ql as du,qn as fu,qo as pu,qr as mu,qs as hu,qt as gu,qu as _u,r as vu,ra as yu,rc as bu,rd as xu,rf as Su,ri as Cu,rl as wu,rn as Tu,ro as Eu,rr as Du,rs as Ou,rt as ku,ru as Au,sa as ju,sc as Mu,sd as Nu,sf as Pu,si as Fu,sl as Iu,sn as Lu,so as Ru,sr as zu,ss as Bu,st as Vu,su as Hu,t as Uu,ta as Wu,tc as Gu,td as Ku,tf as qu,ti as Ju,tl as Yu,tn as Xu,to as Zu,tr as Qu,ts as $u,tt as ed,tu as td,u as nd,ua as rd,uc as id,ud as ad,uf as od,ui as sd,ul as cd,un as ld,uo as ud,ur as dd,us as fd,ut as pd,uu as md,v as hd,va as gd,vc as _d,vd as J,vi as vd,vl as yd,vn as bd,vo as xd,vr as Sd,vs as Cd,vt as wd,vu as Td,w as Ed,wa as Dd,wc as Od,wd as kd,wi as Ad,wl as jd,wn as Md,wo as Nd,wr as Pd,ws as Fd,wt as Id,wu as Ld,x as Rd,xa as zd,xc as Bd,xd as Vd,xi as Hd,xl as Ud,xn as Wd,xo as Gd,xr as Kd,xs as qd,xt as Jd,xu as Yd,y as Xd,ya as Zd,yc as Qd,yd as $d,yi as ef,yl as tf,yn as nf,yo as rf,yr as af,ys as of,yt as sf,yu as cf,z as lf,za as uf,zc as df,zd as ff,zi as pf,zl as mf,zn as hf,zo as gf,zr as _f,zs as vf,zt as yf,zu as bf}from"./editor.api-D-_7pnnj.js";var xf=Object.create,Sf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,wf=Object.getOwnPropertyNames,Tf=Object.getPrototypeOf,Ef=Object.prototype.hasOwnProperty,Df=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Of=(e,t)=>{let n={};for(var r in e)Sf(n,r,{get:e[r],enumerable:!0});return t||Sf(n,Symbol.toStringTag,{value:`Module`}),n},kf=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=wf(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ef.call(e,s)&&s!==n&&Sf(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Cf(t,s))||r.enumerable});return e},Af=(e,t,n)=>(n=e==null?{}:xf(Tf(e)),kf(t||!e||!e.__esModule||!Ef.call(e,`default`)?Sf(n,`default`,{value:e,enumerable:!0}):n,e)),jf=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),Mf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Nf(e,t){let n=h(t,Mf),r=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]];fe(e,D({name:`lock`},()=>n,{get iconNode(){return r}}))}var Pf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ff(e,t){let n=h(t,Pf),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}],[`path`,{d:`M12 7v5l4 2`}]];fe(e,D({name:`rotate-ccw-clock`},()=>n,{get iconNode(){return r}}))}var If=class extends Tn{constructor(){super({id:`diffEditor.toggleCollapseUnchangedRegions`,title:z(101,`Toggle Collapse Unchanged Regions`),icon:Mr.map,toggled:hu.has(`config.diffEditor.hideUnchangedRegions.enabled`),precondition:hu.has(`isInDiffEditor`),menu:{when:hu.has(`isInDiffEditor`),id:wi.EditorTitle,order:22,group:`navigation`}})}run(e,...t){let n=e.get(Ou),r=!n.getValue(`diffEditor.hideUnchangedRegions.enabled`);n.updateValue(`diffEditor.hideUnchangedRegions.enabled`,r)}},Lf=class extends Tn{constructor(){super({id:`diffEditor.toggleShowMovedCodeBlocks`,title:z(102,`Toggle Show Moved Code Blocks`),precondition:hu.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(Ou),r=!n.getValue(`diffEditor.experimental.showMoves`);n.updateValue(`diffEditor.experimental.showMoves`,r)}},Rf=class extends Tn{constructor(){super({id:`diffEditor.toggleUseInlineViewWhenSpaceIsLimited`,title:z(103,`Toggle Use Inline View When Space Is Limited`),precondition:hu.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(Ou),r=!n.getValue(`diffEditor.useInlineViewWhenSpaceIsLimited`);n.updateValue(`diffEditor.useInlineViewWhenSpaceIsLimited`,r)}},zf=z(104,`Diff Editor`),Bf=class extends Bu{constructor(){super({id:`diffEditor.switchSide`,title:z(105,`Switch Side`),icon:Mr.arrowSwap,precondition:hu.has(`isInDiffEditor`),f1:!0,category:zf})}runEditorCommand(e,t,n){let r=Yf(e);if(r instanceof K){if(n&&n.dryRun)return{destinationSelection:r.mapToOtherSide().destinationSelection};r.switchSide()}}},Vf=class extends Bu{constructor(){super({id:`diffEditor.exitCompareMove`,title:z(106,`Exit Compare Move`),icon:Mr.close,precondition:G.comparingMovedCode,f1:!1,category:zf,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...n){let r=Yf(e);r instanceof K&&r.exitCompareMove()}},Hf=class extends Bu{constructor(){super({id:`diffEditor.collapseAllUnchangedRegions`,title:z(107,`Collapse All Unchanged Regions`),icon:Mr.fold,precondition:hu.has(`isInDiffEditor`),f1:!0,category:zf})}runEditorCommand(e,t,...n){let r=Yf(e);r instanceof K&&r.collapseAllUnchangedRegions()}},Uf=class extends Bu{constructor(){super({id:`diffEditor.showAllUnchangedRegions`,title:z(108,`Show All Unchanged Regions`),icon:Mr.unfold,precondition:hu.has(`isInDiffEditor`),f1:!0,category:zf})}runEditorCommand(e,t,...n){let r=Yf(e);r instanceof K&&r.showAllUnchangedRegions()}},Wf=class extends Tn{constructor(){super({id:`diffEditor.revert`,title:z(109,`Revert`),f1:!0,category:zf,precondition:hu.has(`isInDiffEditor`)})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){let t=Yf(e);t instanceof K&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){let n=Jf(e,t.originalUri,t.modifiedUri);n instanceof K&&n.revertRangeMappings(t.mapping.innerChanges??[])}},Gf=z(110,`Accessible Diff Viewer`),Kf=class e extends Tn{static{this.id=`editor.action.accessibleDiffViewer.next`}constructor(){super({id:e.id,title:z(111,`Go to Next Difference`),category:Gf,precondition:hu.has(`isInDiffEditor`),keybinding:{primary:65,weight:100},f1:!0})}run(e){Yf(e)?.accessibleDiffViewerNext()}},qf=class e extends Tn{static{this.id=`editor.action.accessibleDiffViewer.prev`}constructor(){super({id:e.id,title:z(112,`Go to Previous Difference`),category:Gf,precondition:hu.has(`isInDiffEditor`),keybinding:{primary:1089,weight:100},f1:!0})}run(e){Yf(e)?.accessibleDiffViewerPrev()}};function Jf(e,t,n){return e.get(To).listDiffEditors().find(e=>{let r=e.getModifiedEditor(),i=e.getOriginalEditor();return r&&r.getModel()?.uri.toString()===n.toString()&&i&&i.getModel()?.uri.toString()===t.toString()})||null}function Yf(e){let t=e.get(To).listDiffEditors(),n=rt();if(n){for(let e of t)if(e.getContainerDomNode().contains(n))return e}return null}aa(If),aa(Lf),aa(Rf),Qe.appendMenuItem(wi.EditorTitle,{command:{id:new Rf().desc.id,title:U(135,`Use Inline View When Space Is Limited`),toggled:hu.has(`config.diffEditor.useInlineViewWhenSpaceIsLimited`),precondition:hu.has(`isInDiffEditor`)},order:11,group:`1_diff`,when:hu.and(G.diffEditorRenderSideBySideInlineBreakpointReached,hu.has(`isInDiffEditor`))}),Qe.appendMenuItem(wi.EditorTitle,{command:{id:new Lf().desc.id,title:U(136,`Show Moved Code Blocks`),icon:Mr.move,toggled:Jn.create(`config.diffEditor.experimental.showMoves`,!0),precondition:hu.has(`isInDiffEditor`)},order:10,group:`1_diff`,when:hu.has(`isInDiffEditor`)}),aa(Wf);for(let e of[{icon:Mr.arrowRight,key:G.diffEditorInlineMode.toNegated()},{icon:Mr.discard,key:G.diffEditorInlineMode}])Qe.appendMenuItem(wi.DiffEditorHunkToolbar,{command:{id:new Wf().desc.id,title:U(137,`Revert Block`),icon:e.icon},when:hu.and(G.diffEditorModifiedWritable,e.key),order:5,group:`primary`}),Qe.appendMenuItem(wi.DiffEditorSelectionToolbar,{command:{id:new Wf().desc.id,title:U(138,`Revert Selection`),icon:e.icon},when:hu.and(G.diffEditorModifiedWritable,e.key),order:5,group:`primary`});aa(Bf),aa(Vf),aa(Hf),aa(Uf),Qe.appendMenuItem(wi.EditorTitle,{command:{id:Kf.id,title:U(139,`Open Accessible Diff Viewer`),precondition:hu.has(`isInDiffEditor`)},order:10,group:`2_diff`,when:hu.and(G.accessibleDiffViewerVisible.negate(),hu.has(`isInDiffEditor`))}),Ba.registerCommandAlias(`editor.action.diffReview.next`,Kf.id),aa(Kf),Ba.registerCommandAlias(`editor.action.diffReview.prev`,qf.id),aa(qf);var Xf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zf=function(e,t){return function(n,r){t(n,r,e)}},Qf,$f=new Qa(`selectionAnchorSet`,!1),ep=class{static{Qf=this}static{this.ID=`editor.contrib.selectionAnchorController`}static get(e){return e.getContribution(Qf.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=$f.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ni.fromPositions(e,e),{description:`selection-anchor`,stickiness:1,hoverMessage:new hf().appendText(U(834,`Selection Anchor`)),className:`selection-anchor`})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Ts(U(835,`Anchor set at {0}:{1}`,e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(ni.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};ep=Qf=Xf([Zf(1,In)],ep);var tp=class extends Wl{constructor(){super({id:`editor.action.setSelectionAnchor`,label:z(836,`Set Selection Anchor`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:va(2089,2080),weight:100}})}async run(e,t){ep.get(t)?.setSelectionAnchor()}},np=class extends Wl{constructor(){super({id:`editor.action.goToSelectionAnchor`,label:z(837,`Go to Selection Anchor`),precondition:$f})}async run(e,t){ep.get(t)?.goToSelectionAnchor()}},rp=class extends Wl{constructor(){super({id:`editor.action.selectFromAnchorToCursor`,label:z(838,`Select from Anchor to Cursor`),precondition:$f,kbOpts:{kbExpr:G.editorTextFocus,primary:va(2089,2089),weight:100}})}async run(e,t){ep.get(t)?.selectFromAnchorToCursor()}},ip=class extends Wl{constructor(){super({id:`editor.action.cancelSelectionAnchor`,label:z(839,`Cancel Selection Anchor`),precondition:$f,kbOpts:{kbExpr:G.editorTextFocus,primary:9,weight:100}})}async run(e,t){ep.get(t)?.cancelSelectionAnchor()}};ru(ep.ID,ep,4),hs(tp),hs(np),hs(rp),hs(ip);var ap=Zi(`editorOverviewRuler.bracketMatchForeground`,`#A0A0A0`,U(840,`Overview ruler marker color for matching brackets.`)),op=class extends Wl{constructor(){super({id:`editor.action.jumpToBracket`,label:z(842,`Go to Bracket`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:3165,weight:100}})}run(e,t){up.get(t)?.jumpToBracket()}},sp=class extends Wl{constructor(){super({id:`editor.action.selectToBracket`,label:z(843,`Select to Bracket`),precondition:void 0,metadata:{description:z(844,`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,n){let r=!0;n&&n.selectBrackets===!1&&(r=!1),up.get(t)?.selectToBracket(r)}},cp=class extends Wl{constructor(){super({id:`editor.action.removeBrackets`,label:z(845,`Remove Brackets`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:2561,weight:100},canTriggerInlineEdits:!0})}run(e,t){up.get(t)?.removeBrackets(this.id)}},lp=class{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}},up=class e extends Eo{static{this.ID=`editor.contrib.bracketMatchingController`}static get(t){return t.getContribution(e.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mr(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(80),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{this._matchBrackets!==`never`&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.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;let e=this._editor.getModel(),t=this._editor.getSelections().map(t=>{let n=t.getStartPosition(),r=e.bracketPairs.matchBracket(n),i=null;if(r)r[0].containsPosition(n)&&!r[1].containsPosition(n)?i=r[1].getStartPosition():r[1].containsPosition(n)&&(i=r[0].getStartPosition());else{let t=e.bracketPairs.findEnclosingBrackets(n);if(t)i=t[1].getStartPosition();else{let t=e.bracketPairs.findNextBracket(n);t&&t.range&&(i=t.range.getStartPosition())}}return i?new ni(i.lineNumber,i.column,i.lineNumber,i.column):new ni(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(r=>{let i=r.getStartPosition(),a=t.bracketPairs.matchBracket(i);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(i),!a)){let e=t.bracketPairs.findNextBracket(i);e&&e.range&&(a=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,s=null;if(a){a.sort(B.compareRangesUsingStarts);let[t,n]=a;if(o=e?t.getStartPosition():t.getEndPosition(),s=e?n.getEndPosition():n.getStartPosition(),n.containsPosition(i)){let e=o;o=s,s=e}}o&&s&&n.push(new ni(o.lineNumber,o.column,s.lineNumber,s.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(n=>{let r=n.getPosition(),i=t.bracketPairs.matchBracket(r);i||=t.bracketPairs.findEnclosingBrackets(r),i&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:i[0],text:``},{range:i[1],text:``}]),this._editor.pushUndoStop())})}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=nu.register({description:`bracket-match-overview`,stickiness:1,className:`bracket-match`,inlineClassName:`bracket-match-inline`,overviewRuler:{color:Za(ap),position:ra.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=nu.register({description:`bracket-match-no-overview`,stickiness:1,className:`bracket-match`,inlineClassName:`bracket-match-inline`})}_updateBrackets(){if(this._matchBrackets===`never`)return;this._recomputeBrackets();let e=[],t=0;for(let n of this._lastBracketsData){let r=n.brackets;r&&(e[t++]={range:r[0],options:n.options},e[t++]={range:r[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getSelections();if(t.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let n=this._editor.getModel(),r=n.getVersionId(),i=[];this._lastVersionId===r&&(i=this._lastBracketsData);let a=[],o=0;for(let e=0,n=t.length;e<n;e++){let n=t[e];n.isEmpty()&&(a[o++]=n.getStartPosition())}a.length>1&&a.sort(Dn.compare);let s=[],c=0,l=0,u=i.length;for(let t=0,r=a.length;t<r;t++){let r=a[t];for(;l<u&&i[l].position.isBefore(r);)l++;if(l<u&&i[l].position.equals(r))s[c++]=i[l];else{let t=n.bracketPairs.matchBracket(r,20),i=e._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!t&&this._matchBrackets===`always`&&(t=n.bracketPairs.findEnclosingBrackets(r,20),i=e._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),s[c++]=new lp(r,t,i)}}this._lastBracketsData=s,this._lastVersionId=r}};ru(up.ID,up,1),hs(sp),hs(op),hs(cp),Qe.appendMenuItem(wi.MenubarGoMenu,{group:`5_infile_nav`,command:{id:`editor.action.jumpToBracket`,title:U(841,`Go to &&Bracket`)},order:2}),Fn((e,t)=>{let n=e.getColor(Da);n&&t.addRule(`.monaco-editor .bracket-match-inline { color: ${n} !important; }`)});var dp=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let n=this._selection.startLineNumber,r=this._selection.startColumn,i=this._selection.endColumn;if(!(this._isMovingLeft&&r===1)&&!(!this._isMovingLeft&&i===e.getLineMaxColumn(n))){if(this._isMovingLeft){let a=new B(n,r-1,n,r),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new B(n,i,n,i),o)}else{let a=new B(n,i,n,i+1),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new B(n,r,n,r),o)}}}computeCursorState(e,t){return this._isMovingLeft?new ni(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ni(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}},fp=class extends Wl{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],r=t.getSelections();for(let e of r)n.push(new dp(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},pp=class extends fp{constructor(){super(!0,{id:`editor.action.moveCarretLeftAction`,label:z(846,`Move Selected Text Left`),precondition:G.writable})}},mp=class extends fp{constructor(){super(!1,{id:`editor.action.moveCarretRightAction`,label:z(847,`Move Selected Text Right`),precondition:G.writable})}};hs(pp),hs(mp),hs(class extends Wl{constructor(){super({id:`editor.action.transposeLetters`,label:z(848,`Transpose Letters`),precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=[],i=t.getSelections();for(let e of i){if(!e.isEmpty())continue;let t=e.startLineNumber,i=e.startColumn,a=n.getLineMaxColumn(t);if(t===1&&(i===1||i===2&&a===2))continue;let o=i===a?e.getPosition():Zo.rightPosition(n,e.getPosition().lineNumber,e.getPosition().column),s=Zo.leftPosition(n,o),c=Zo.leftPosition(n,s),l=n.getValueInRange(B.fromPositions(c,s)),u=n.getValueInRange(B.fromPositions(s,o)),d=B.fromPositions(c,o);r.push(new tl(d,u+l))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}});var hp=class e{static{this.sep=`.`}static{this.None=new e(`@@none@@`)}static{this.Empty=new e(``)}constructor(e){this.value=e}equals(e){return this.value===e.value}contains(t){return this.equals(t)||this.value===``||t.value.startsWith(this.value+e.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...t){return new e((this.value?[this.value,...t]:t).join(e.sep))}},gp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_p=function(e,t){return function(n,r){t(n,r,e)}},vp=nu.register({description:`inline-progress-widget`,stickiness:1,showIfCollapsed:!0,after:{content:`\xA0`,inlineClassName:`inline-editor-progress-decoration`,inlineClassNameAffectsLetterSpacing:!0}}),yp=class e extends Eo{static{this.baseId=`editor.widget.inlineProgressWidget`}constructor(e,t,n,r,i){super(),this.typeId=e,this.editor=t,this.range=n,this.delegate=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(r),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=id(`.inline-progress-widget`),this.domNode.role=`button`,this.domNode.title=e;let t=id(`span.icon`);this.domNode.append(t),t.classList.add(...fi.asClassNameArray(Mr.loading),`codicon-modifier-spin`);let n=()=>{let e=this.editor.getOption(75);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};n(),this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(61)||e.hasChanged(75))&&n()})),this._register(po(this.domNode,Yl.CLICK,e=>{this.delegate.cancel()}))}getId(){return e.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)}},bp=class extends Eo{constructor(e,t,n){super(),this.id=e,this._editor=t,this._instantiationService=n,this._showDelay=500,this._showPromise=this._register(new Nu),this._currentWidget=this._register(new Nu),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,n,r,i){let a=this._operationIdPool++;this._currentOperation=a,this.clear(),this._showPromise.value=xn(()=>{let n=B.fromPositions(e);this._currentDecorations.set([{range:n,options:vp}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(yp,this.id,this._editor,n,t,r))},i??this._showDelay);try{return await n}finally{this._currentOperation===a&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};bp=gp([_p(2,Il)],bp);var xp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sp=function(e,t){return function(n,r){t(n,r,e)}},Cp,wp=class{static{Cp=this}static{this.ID=`editor.contrib.messageController`}static{this.MESSAGE_VISIBLE=new Qa(`messageVisible`,!1,U(1333,`Whether the editor is currently showing an inline message`))}static get(e){return e.getContribution(Cp.ID)}constructor(e,t,n){this._openerService=n,this._messageWidget=new Nu,this._messageListeners=new Ll,this._mouseOverMessage=!1,this._editor=e,this._visible=Cp.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){if(Ts(un(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),un(e)){let n=this._messageListeners.add(Zr(e,{actionHandler:(e,t)=>{this.closeMessage(),Mc(this._openerService,e,t.isTrusted)}}));this._messageWidget.value=new Ep(this._editor,t,n.element)}else this._messageWidget.value=new Ep(this._editor,t,e);this._messageListeners.add(Ku.debounce(this._editor.onDidBlurEditorText,(e,t)=>t,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&vn(rt(),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(po(this._messageWidget.value.getDomNode(),Yl.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(po(this._messageWidget.value.getDomNode(),Yl.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let n;this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(n?n.containsPosition(e.target.position)||this.closeMessage():n=new B(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Ep.fadeOut(this._messageWidget.value))}};wp=Cp=xp([Sp(1,In),Sp(2,hr)],wp);var Tp=ns.bindToContribution(wp.get);Bs(new Tp({id:`leaveEditorMessage`,precondition:wp.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));var Ep=class{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener(`animationend`,t)},n=setTimeout(t,110);return e.getDomNode().addEventListener(`animationend`,t),e.getDomNode().classList.add(`fadeOut`),{dispose:t}}constructor(e,{lineNumber:t,column:n},r){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement(`div`),this._domNode.classList.add(`monaco-editor-overlaymessage`),this._domNode.style.marginLeft=`-6px`;let i=document.createElement(`div`);i.classList.add(`anchor`,`top`),this._domNode.appendChild(i);let a=document.createElement(`div`);typeof r==`string`?(a.classList.add(`message`),a.textContent=r):(r.classList.add(`message`),a.appendChild(r)),this._domNode.appendChild(a);let o=document.createElement(`div`);o.classList.add(`anchor`,`below`),this._domNode.appendChild(o),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)}};ru(wp.ID,wp,4);var Dp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Op=function(e,t){return function(n,r){t(n,r,e)}},kp=class{constructor(e){this.copyMimeTypes=[],this.kind=e,this.providedDropEditKinds=[this.kind],this.providedPasteEditKinds=[this.kind]}async provideDocumentPasteEdits(e,t,n,r,i){let a=await this.getEdit(n,i);if(a)return{edits:[{insertText:a.insertText,title:a.title,kind:a.kind,handledMimeType:a.handledMimeType,yieldTo:a.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,n,r){let i=await this.getEdit(n,r);if(i)return{edits:[{insertText:i.insertText,title:i.title,kind:i.kind,handledMimeType:i.handledMimeType,yieldTo:i.yieldTo}],dispose(){}}}},Ap=class e extends kp{static{this.id=`text`}constructor(){super(hp.Empty.append(`text`,`plain`)),this.id=e.id,this.dropMimeTypes=[Ds.text],this.pasteMimeTypes=[Ds.text]}async getEdit(e,t){let n=e.get(Ds.text);if(!n||e.has(Ds.uriList))return;let r=await n.asString();return{handledMimeType:Ds.text,title:U(965,`Insert Plain Text`),insertText:r,kind:this.kind}}},jp=class extends kp{constructor(){super(hp.Empty.append(`uri`,`path`,`absolute`)),this.dropMimeTypes=[Ds.uriList],this.pasteMimeTypes=[Ds.uriList]}async getEdit(e,t){let n=await Pp(e);if(!n.length||t.isCancellationRequested)return;let r=0,i=n.map(({uri:e,originalText:t})=>e.scheme===Ot.file?e.fsPath:(r++,t)).join(` `),a;return a=r>0?n.length>1?U(966,`Insert Uris`):U(967,`Insert Uri`):n.length>1?U(968,`Insert Paths`):U(969,`Insert Path`),{handledMimeType:Ds.uriList,insertText:i,title:a,kind:this.kind}}},Mp=class extends kp{constructor(e){super(hp.Empty.append(`uri`,`path`,`relative`)),this._workspaceContextService=e,this.dropMimeTypes=[Ds.uriList],this.pasteMimeTypes=[Ds.uriList]}async getEdit(e,t){let n=await Pp(e);if(!n.length||t.isCancellationRequested)return;let r=qu(n.map(({uri:e})=>{let t=this._workspaceContextService.getWorkspaceFolder(e);return t?Fc(t.uri,e):void 0}));if(r.length)return{handledMimeType:Ds.uriList,insertText:r.join(` `),title:n.length>1?U(970,`Insert Relative Paths`):U(971,`Insert Relative Path`),kind:this.kind}}};Mp=Dp([Op(0,gs)],Mp);var Np=class{constructor(){this.kind=new hp(`html`),this.providedPasteEditKinds=[this.kind],this.copyMimeTypes=[],this.pasteMimeTypes=[`text/html`],this._yieldTo=[{mimeType:Ds.text}]}async provideDocumentPasteEdits(e,t,n,r,i){if(r.triggerKind!==So.PasteAs&&!r.only?.contains(this.kind))return;let a=await n.get(`text/html`)?.asString();if(!(!a||i.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:U(972,`Insert HTML`),kind:this.kind}]}}};async function Pp(e){let t=e.get(Ds.uriList);if(!t)return[];let n=await t.asString(),r=[];for(let e of ef.parse(n))try{r.push({uri:cr.parse(e),originalText:e})}catch{}return r}var Fp={scheme:`*`,hasAccessToAllModels:!0},Ip=class extends Eo{constructor(e,t){super(),this._register(e.documentDropEditProvider.register(Fp,new Ap)),this._register(e.documentDropEditProvider.register(Fp,new jp)),this._register(e.documentDropEditProvider.register(Fp,new Mp(t)))}};Ip=Dp([Op(0,gl),Op(1,gs)],Ip);var Lp=class extends Eo{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register(Fp,new Ap)),this._register(e.documentPasteEditProvider.register(Fp,new jp)),this._register(e.documentPasteEditProvider.register(Fp,new Mp(t))),this._register(e.documentPasteEditProvider.register(Fp,new Np))}};Lp=Dp([Op(0,gl),Op(1,gs)],Lp);var Rp=class e{constructor(){this.value=``,this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}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};let t=this.pos,n=0,r=this.value.charCodeAt(t),i;if(i=e._table[r],typeof i==`number`)return this.pos+=1,{type:i,pos:t,len:1};if(e.isDigitCharacter(r)){i=8;do n+=1,r=this.value.charCodeAt(t+n);while(e.isDigitCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}if(e.isVariableCharacter(r)){i=9;do r=this.value.charCodeAt(t+ ++n);while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}i=10;do n+=1,r=this.value.charCodeAt(t+n);while(!isNaN(r)&&e._table[r]===void 0&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}},zp=class{constructor(){this._children=[]}appendChild(e){return e instanceof Bp&&this._children[this._children.length-1]instanceof Bp?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:n}=e,r=n.children.indexOf(e),i=n.children.slice(0);i.splice(r,1,...t),n._children=i,(function e(t,n){for(let r of t)r.parent=n,e(r.children,r)})(t,n)}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 Jp)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),``)}len(){return 0}},Bp=class e extends zp{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new e(this.value)}},Vp=class extends zp{},Hp=class e extends Vp{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:+(e.index>t.index)}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Up?this._children[0]:void 0}clone(){let t=new e(this.index);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(e=>e.clone()),t}},Up=class e extends zp{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Bp&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let t=new e;return this.options.forEach(t.appendChild,t),t}},Wp=class e extends zp{constructor(){super(...arguments),this.regexp=RegExp(``)}resolve(e){let t=this,n=!1,r=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(e=>e instanceof Gp&&!!e.elseValue)&&(r=this._replace([])),r}_replace(e){let t=``;for(let n of this._children)if(n instanceof Gp){let r=e[n.index]||``;r=n.resolve(r),t+=r}else t+=n.toString();return t}toString(){return``}clone(){let t=new e;return t.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?`i`:``)+(this.regexp.global?`g`:``)),t._children=this.children.map(e=>e.clone()),t}},Gp=class e extends zp{constructor(e,t,n,r){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=r}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):``:this.shorthandName===`kebabcase`?e?this._toKebabCase(e):``:this.shorthandName===`snakecase`?e?this._toSnakeCase(e):``:e&&typeof this.ifValue==`string`?this.ifValue:!e&&typeof this.elseValue==`string`?this.elseValue:e||``}_toKebabCase(e){if(!e.match(/[\p{L}0-9]+/gu))return e;if(!e.match(/[\p{L}0-9]/u))return e.trim().toLowerCase().replace(/^_+|_+$/g,``).replace(/[\s_]+/g,`-`);let t=e.trim().replace(/^_+|_+$/g,``),n=t.match(/\p{Lu}{2,}(?=\p{Lu}\p{Ll}+[0-9]*|[\s_-]|$)|\p{Lu}?\p{Ll}+[0-9]*|\p{Lu}(?=\p{Lu}\p{Ll})|\p{Lu}(?=[\s_-]|$)|[0-9]+/gu);return n?n.map(e=>e.toLowerCase()).join(`-`):t.split(/[\s_-]+/).filter(e=>e.length>0).map(e=>e.toLowerCase()).join(`-`)}_toPascalCase(e){let t=e.match(/[\p{L}0-9]+/gu);return t?t.map(e=>e.charAt(0).toUpperCase()+e.substr(1)).join(``):e}_toCamelCase(e){let t=e.match(/[\p{L}0-9]+/gu);return t?t.map((e,t)=>t===0?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1)).join(``):e}_toSnakeCase(e){return e.replace(/(\p{Ll})(\p{Lu})/gu,`$1_$2`).replace(/[\s\-]+/g,`_`).toLowerCase()}clone(){return new e(this.index,this.shorthandName,this.ifValue,this.elseValue)}},Kp=class e extends Vp{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 Bp(t)],!0)}clone(){let t=new e(this.name);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(e=>e.clone()),t}};function qp(e,t){let n=[...e];for(;n.length>0;){let e=n.shift();if(!t(e))break;n.unshift(...e.children)}}var Jp=class e extends zp{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(n){return n instanceof Hp&&(e.push(n),t=!t||t.index<n.index?n:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){let{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(r=>r===e?(n=!0,!1):(t+=r.len(),!0)),n?t:-1}fullLen(e){let t=0;return qp([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;for(;n;)n instanceof Hp&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Kp&&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(){let t=new e;return t._children=this.children.map(e=>e.clone()),t}walk(e){qp(this.children,e)}},Yp=class{constructor(){this._scanner=new Rp,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,n){let r=new Jp;return this.parseFragment(e,r),this.ensureFinalTabstop(r,n??!1,t??!1),r}parseFragment(e,t){let n=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let r=new Map,i=[];t.walk(e=>(e instanceof Hp&&(e.isFinalTabstop?r.set(0,void 0):!r.has(e.index)&&e.children.length>0?r.set(e.index,e.children):i.push(e)),!0));let a=(e,n)=>{let i=r.get(e.index);if(!i)return;let o=new Hp(e.index);o.transform=e.transform;for(let e of i){let t=e.clone();o.appendChild(t),t instanceof Hp&&r.has(t.index)&&!n.has(t.index)&&(n.add(t.index),a(t,n),n.delete(t.index))}t.replace(e,[o])},o=new Set;for(let e of i)a(e,o);return t.children.slice(n)}ensureFinalTabstop(e,t,n){(t||n&&e.placeholders.length>0)&&(e.placeholders.find(e=>e.index===0)||e.appendChild(new Hp(0)))}_accept(e,t){if(e===void 0||this._token.type===e){let e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let e=this._scanner.next();if(e.type!==0&&e.type!==4&&e.type!==5)return!1}this._token=this._scanner.next()}let n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,`$1`);return this._token=this._scanner.next(),n}_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 Bp(t)),!0):!1}_parseTabstopOrVariableName(e){let t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Hp(Number(t)):new Kp(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);let r=new Hp(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Bp("${"+t+`:`)),r.children.forEach(e.appendChild,e),!0}else if(r.index>0&&this._accept(7)){let t=new Up;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(t),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}else if(this._accept(6))return this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1);else if(this._accept(4))return e.appendChild(r),!0;else return this._backTo(n)}_parseChoiceElement(e){let t=this._token,n=[];for(;this._token.type!==2&&this._token.type!==7;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;n.push(e)}return n.length===0?(this._backTo(t),!1):(e.appendChild(new Bp(n.join(``))),!0)}_parseComplexVariable(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);let r=new Kp(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Bp("${"+t+`:`)),r.children.forEach(e.appendChild,e),!0}else if(this._accept(6))return this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1);else if(this._accept(4))return e.appendChild(r),!0;else return this._backTo(n)}_parseTransform(e){let t=new Wp,n=``,r=``;for(;!this._accept(6);){let e;if(e=this._accept(5,!0)){e=this._accept(6,!0)||e,n+=e;continue}if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let e;if(e=this._accept(5,!0)){e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new Bp(e));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(n,r)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let r=this._accept(8,!0);if(!r)return this._backTo(t),!1;if(!n||this._accept(4))return e.appendChild(new Gp(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let n=this._accept(9,!0);return!n||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Gp(Number(r),n)),!0)}if(this._accept(11)){let t=this._until(4);if(t)return e.appendChild(new Gp(Number(r),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new Gp(Number(r),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let n=this._until(4);if(n)return e.appendChild(new Gp(Number(r),void 0,t,n)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new Gp(Number(r),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14&&(e.appendChild(new Bp(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}};function Xp(e,t,n){return(typeof n.insertText==`string`?n.insertText===``:n.insertText.snippet===``)?{edits:n.additionalEdit?.edits??[]}:{edits:[...t.map(t=>new sl(e,{range:t,text:typeof n.insertText==`string`?Yp.escape(n.insertText)+`$0`:n.insertText.snippet,insertAsSnippet:!0})),...n.additionalEdit?.edits??[]]}}function Zp(e){function t(e,t){return`mimeType`in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}let n=new Map;for(let r of e)for(let i of r.yieldTo??[])for(let a of e)if(a!==r&&t(i,a)){let e=n.get(r);e||(e=[],n.set(r,e)),e.push(a)}if(!n.size)return Array.from(e);let r=new Set,i=[];function a(e){if(!e.length)return[];let t=e[0];if(i.includes(t))return console.warn(`Yield to cycle detected`,t),e;if(r.has(t))return a(e.slice(1));let o=[],s=n.get(t);return s&&(i.push(t),o=a(s),i.pop()),r.add(t),[...o,t,...a(e.slice(1))]}return a(Array.from(e))}function Qp(e,t){return t&&(e.stack||e.stacktrace)?U(33,`{0}: {1}`,em(e),$p(e.stack)||$p(e.stacktrace)):em(e)}function $p(e){return Array.isArray(e)?e.join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/tsMode-BoaO1D7x.js","assets/editor.api-CHUMRaMm.js","assets/index-CnylT98t.js","assets/legacy-CAj2_7QE.js","assets/index-client-BoJgsN9M.js","assets/nodeTypeUtils-BDJsc2Ks.js","assets/index-ilgbOu6G.css","assets/editor-1FQrmyyI.css","assets/workers-ZrST7klJ.js","assets/freemarker2-DQ604q2A.js","assets/handlebars-09pcWz8x.js","assets/html-DtIKrZiD.js","assets/javascript-kbIBYYGo.js","assets/typescript-D87dYk9k.js","assets/liquid-D-qdTGhQ.js","assets/mdx-TXg4xsyD.js","assets/python-C4SGyXJW.js","assets/razor-BZ-lEgY9.js","assets/xml-DT6r4F7G.js","assets/yaml-DxmQ8XYb.js","assets/cssMode-DaSSFZYi.js","assets/lspLanguageFeatures-Bc6azcFQ.js","assets/htmlMode-DgJ_4m1_.js","assets/jsonMode-DblCG64t.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,Dt as t,Et as n,G as r,I as i,L as a,O as o,Q as s,Tt as c,U as l,V as u,W as d,X as f,Z as p,_t as m,a as h,at as g,b as _,ct as v,d as y,et as b,ft as x,i as S,it as C,l as w,n as T,nt as E,o as D,ot as O,p as k,q as A,r as ee,rt as te,st as ne,t as re,tt as j,ut as ie,v as ae,vt as M,wt as N,x as oe,z as se}from"./legacy-CAj2_7QE.js";import{a as ce,d as P,n as le,o as F}from"./nodeTypeUtils-BDJsc2Ks.js";import{G as ue,H as de,J as fe,L as pe,U as me,W as he,a as ge,k as _e,q as ve,r as ye,t as be}from"./index-CnylT98t.js";import{$ as xe,$a as Se,$c as Ce,$d as I,$i as we,$l as Te,$n as Ee,$o as De,$r as Oe,$s as ke,$t as Ae,$u as je,A as Me,Aa as Ne,Ac as Pe,Ad as Fe,Ai as Ie,Al as Le,An as Re,Ao as ze,Ar as Be,As as Ve,At as He,Au as Ue,B as We,Ba as L,Bc as Ge,Bd as Ke,Bi as qe,Bl as Je,Bn as Ye,Bo as Xe,Br as Ze,Bs as Qe,Bt as $e,Bu as et,C as tt,Ca as nt,Cc as rt,Cd as it,Ci as at,Cl as ot,Cn as st,Co as ct,Cr as lt,Cs as ut,Ct as dt,Cu as ft,D as R,Da as pt,Dc as mt,Dd as ht,Di as gt,Dl as _t,Dn as vt,Do as yt,Dr as bt,Ds as xt,Dt as St,Du as Ct,E as wt,Ea as Tt,Ec as Et,Ed as z,Ei as Dt,El as Ot,En as kt,Eo as At,Er as jt,Es as Mt,Et as Nt,Eu as Pt,F as Ft,Fa as It,Fc as Lt,Fd as Rt,Fi as zt,Fl as Bt,Fn as Vt,Fo as Ht,Fr as Ut,Fs as Wt,Ft as Gt,Fu as B,G as Kt,Ga as qt,Gc as Jt,Gd as Yt,Gi as Xt,Gl as Zt,Gn as V,Go as Qt,Gr as $t,Gs as en,Gt as tn,Gu as nn,H as rn,Ha as an,Hc as on,Hd as sn,Hi as cn,Hl as ln,Hn as un,Ho as dn,Hr as fn,Hs as pn,Ht as mn,Hu as hn,I as gn,Ia as _n,Ic as vn,Id as yn,Ii as bn,Il as xn,In as Sn,Io as Cn,Ir as wn,Is as Tn,It as En,Iu as Dn,J as H,Ja as On,Jc as kn,Jd as An,Ji as jn,Jl as Mn,Jn as Nn,Jo as Pn,Jr as Fn,Js as In,Jt as Ln,Ju as Rn,K as zn,Ka as Bn,Kc as Vn,Kd as Hn,Ki as Un,Kl as Wn,Kn as Gn,Ko as Kn,Kr as qn,Ks as Jn,Kt as Yn,Ku as Xn,L as Zn,La as Qn,Lc as $n,Ld as er,Li as tr,Ll as nr,Ln as rr,Lo as ir,Lr as ar,Ls as or,Lt as sr,Lu as cr,M as lr,Ma as ur,Mc as dr,Md as fr,Mi as pr,Ml as mr,Mn as hr,Mo as gr,Mr as _r,Ms as vr,Mt as yr,Mu as br,N as xr,Na as Sr,Nc as Cr,Nd as wr,Ni as Tr,Nl as Er,Nn as Dr,No as Or,Nr as kr,Ns as Ar,Nt as jr,Nu as Mr,O as Nr,Oa as Pr,Oc as Fr,Od as Ir,Oi as Lr,Ol as Rr,On as zr,Oo as Br,Or as Vr,Os as Hr,Ot as Ur,Ou as Wr,P as Gr,Pa as Kr,Pc as qr,Pd as Jr,Pi as Yr,Pl as Xr,Pn as Zr,Po as Qr,Pr as $r,Ps as ei,Pt as ti,Pu as ni,Q as ri,Qa as ii,Qc as ai,Qd as oi,Qi as si,Ql as ci,Qn as li,Qo as ui,Qr as di,Qs as fi,Qt as pi,Qu as mi,R as hi,Ra as gi,Rc as _i,Rd as vi,Ri as yi,Rl as bi,Rn as xi,Ro as Si,Rr as Ci,Rs as wi,Rt as Ti,Ru as Ei,S as Di,Sa as Oi,Sc as ki,Sd as Ai,Si as ji,Sl as Mi,Sn as Ni,So as Pi,Sr as Fi,Ss as Ii,St as Li,Su as Ri,T as zi,Ta as Bi,Tc as Vi,Td as U,Ti as Hi,Tl as Ui,Tn as Wi,To as Gi,Tr as Ki,Ts as qi,Tt as Ji,Tu as Yi,U as Xi,Ua as Zi,Uc as Qi,Ud as $i,Ui as ea,Ul as ta,Un as na,Uo as ra,Ur as ia,Us as aa,Ut as oa,Uu as sa,Va as ca,Vc as la,Vd as ua,Vi as da,Vl as fa,Vn as pa,Vo as ma,Vr as ha,Vs as ga,Vt as _a,Vu as va,W as ya,Wa as ba,Wc as xa,Wd as Sa,Wi as Ca,Wl as wa,Wn as Ta,Wo as Ea,Wr as Da,Ws as Oa,Wt as ka,Wu as Aa,X as ja,Xa as Ma,Xc as Na,Xd as Pa,Xi as Fa,Xl as Ia,Xn as La,Xo as Ra,Xr as za,Xs as Ba,Xt as Va,Xu as Ha,Y as Ua,Ya as Wa,Yc as Ga,Yd as Ka,Yi as qa,Yl as Ja,Yn as Ya,Yo as Xa,Yr as Za,Ys as Qa,Yt as $a,Z as eo,Za as to,Zc as no,Zd as ro,Zi as W,Zl as io,Zn as ao,Zo as oo,Zr as G,Zs as so,Zt as co,Zu as lo,_ as uo,_a as fo,_c as po,_d as mo,_i as ho,_l as go,_n as _o,_o as vo,_r as yo,_s as bo,_t as xo,_u as So,a as Co,aa as wo,ac as To,ad as Eo,af as Do,ai as Oo,al as ko,an as Ao,ao as jo,ar as Mo,as as No,at as Po,au as Fo,b as K,ba as q,bc as Io,bd as Lo,bi as Ro,bl as zo,bn as Bo,bo as Vo,br as Ho,bs as Uo,bt as Wo,bu as Go,c as Ko,ca as qo,cc as Jo,cd as Yo,cf as Xo,ci as Zo,cl as Qo,cn as $o,co as es,cr as ts,cs as ns,ct as rs,cu as is,d as as,da as os,dc as ss,dd as cs,df as ls,di as us,dl as ds,dn as fs,do as ps,dr as ms,ds as hs,dt as gs,du as _s,ea as vs,ec as ys,ed as bs,ef as xs,ei as Ss,el as Cs,en as ws,eo as Ts,er as Es,es as Ds,et as Os,eu as ks,f as As,fa as js,fc as Ms,fd as Ns,ff as Ps,fi as Fs,fl as Is,fn as Ls,fo as Rs,fr as zs,fs as Bs,ft as Vs,fu as Hs,g as Us,ga as Ws,gc as Gs,gd as Ks,gi as qs,gl as Js,gn as Ys,go as Xs,gr as Zs,gs as Qs,gt as $s,gu as ec,h as tc,ha as nc,hc as rc,hd as ic,hi as ac,hl as oc,hn as sc,ho as cc,hr as lc,hs as uc,ht as dc,hu as fc,i as pc,ia as mc,ic as hc,id as gc,if as _c,ii as vc,il as yc,in as bc,io as xc,ir as Sc,is as Cc,it as wc,iu as Tc,j as Ec,ja as Dc,jc as Oc,jd as kc,ji as Ac,jl as jc,jn as Mc,jo as Nc,jr as Pc,js as Fc,jt as Ic,ju as Lc,k as Rc,ka as zc,kc as Bc,kd as Vc,ki as Hc,kl as Uc,kn as Wc,ko as Gc,kr as Kc,ks as qc,kt as Jc,ku as Yc,l as Xc,la as Zc,lc as Qc,ld as $c,lf as el,li as tl,ll as nl,ln as rl,lo as il,lr as al,ls as ol,lt as sl,lu as cl,m as ll,ma as ul,mc as dl,md as fl,mi as pl,ml,mn as hl,mo as gl,mr as _l,ms as vl,mt as yl,mu as bl,n as xl,na as Sl,nc as Cl,nd as wl,nf as Tl,ni as El,nl as Dl,nn as Ol,no as kl,nr as Al,ns as jl,nt as Ml,nu as Nl,o as Pl,oa as Fl,oc as Il,od as Ll,of as Rl,oi as zl,ol as Bl,on as Vl,oo as Hl,or as Ul,os as Wl,ot as Gl,ou as Kl,p as ql,pa as Jl,pc as Yl,pd as Xl,pf as Zl,pi as Ql,pl as $l,pn as eu,po as tu,pr as nu,ps as ru,pt as iu,pu as au,q as ou,qa as su,qc as cu,qd as lu,qi as uu,ql as du,qn as fu,qo as pu,qr as mu,qs as hu,qt as gu,qu as _u,r as vu,ra as yu,rc as bu,rd as xu,rf as Su,ri as Cu,rl as wu,rn as Tu,ro as Eu,rr as Du,rs as Ou,rt as ku,ru as Au,sa as ju,sc as Mu,sd as Nu,sf as Pu,si as Fu,sl as Iu,sn as Lu,so as Ru,sr as zu,ss as Bu,st as Vu,su as Hu,t as Uu,ta as Wu,tc as Gu,td as Ku,tf as qu,ti as Ju,tl as Yu,tn as Xu,to as Zu,tr as Qu,ts as $u,tt as ed,tu as td,u as nd,ua as rd,uc as id,ud as ad,uf as od,ui as sd,ul as cd,un as ld,uo as ud,ur as dd,us as fd,ut as pd,uu as md,v as hd,va as gd,vc as _d,vd as J,vi as vd,vl as yd,vn as bd,vo as xd,vr as Sd,vs as Cd,vt as wd,vu as Td,w as Ed,wa as Dd,wc as Od,wd as kd,wi as Ad,wl as jd,wn as Md,wo as Nd,wr as Pd,ws as Fd,wt as Id,wu as Ld,x as Rd,xa as zd,xc as Bd,xd as Vd,xi as Hd,xl as Ud,xn as Wd,xo as Gd,xr as Kd,xs as qd,xt as Jd,xu as Yd,y as Xd,ya as Zd,yc as Qd,yd as $d,yi as ef,yl as tf,yn as nf,yo as rf,yr as af,ys as of,yt as sf,yu as cf,z as lf,za as uf,zc as df,zd as ff,zi as pf,zl as mf,zn as hf,zo as gf,zr as _f,zs as vf,zt as yf,zu as bf}from"./editor.api-CHUMRaMm.js";var xf=Object.create,Sf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,wf=Object.getOwnPropertyNames,Tf=Object.getPrototypeOf,Ef=Object.prototype.hasOwnProperty,Df=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Of=(e,t)=>{let n={};for(var r in e)Sf(n,r,{get:e[r],enumerable:!0});return t||Sf(n,Symbol.toStringTag,{value:`Module`}),n},kf=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=wf(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ef.call(e,s)&&s!==n&&Sf(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Cf(t,s))||r.enumerable});return e},Af=(e,t,n)=>(n=e==null?{}:xf(Tf(e)),kf(t||!e||!e.__esModule||!Ef.call(e,`default`)?Sf(n,`default`,{value:e,enumerable:!0}):n,e)),jf=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),Mf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Nf(e,t){let n=h(t,Mf),r=[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`}]];fe(e,D({name:`lock`},()=>n,{get iconNode(){return r}}))}var Pf=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ff(e,t){let n=h(t,Pf),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}],[`path`,{d:`M12 7v5l4 2`}]];fe(e,D({name:`rotate-ccw-clock`},()=>n,{get iconNode(){return r}}))}var If=class extends Tn{constructor(){super({id:`diffEditor.toggleCollapseUnchangedRegions`,title:z(101,`Toggle Collapse Unchanged Regions`),icon:Mr.map,toggled:hu.has(`config.diffEditor.hideUnchangedRegions.enabled`),precondition:hu.has(`isInDiffEditor`),menu:{when:hu.has(`isInDiffEditor`),id:wi.EditorTitle,order:22,group:`navigation`}})}run(e,...t){let n=e.get(Ou),r=!n.getValue(`diffEditor.hideUnchangedRegions.enabled`);n.updateValue(`diffEditor.hideUnchangedRegions.enabled`,r)}},Lf=class extends Tn{constructor(){super({id:`diffEditor.toggleShowMovedCodeBlocks`,title:z(102,`Toggle Show Moved Code Blocks`),precondition:hu.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(Ou),r=!n.getValue(`diffEditor.experimental.showMoves`);n.updateValue(`diffEditor.experimental.showMoves`,r)}},Rf=class extends Tn{constructor(){super({id:`diffEditor.toggleUseInlineViewWhenSpaceIsLimited`,title:z(103,`Toggle Use Inline View When Space Is Limited`),precondition:hu.has(`isInDiffEditor`)})}run(e,...t){let n=e.get(Ou),r=!n.getValue(`diffEditor.useInlineViewWhenSpaceIsLimited`);n.updateValue(`diffEditor.useInlineViewWhenSpaceIsLimited`,r)}},zf=z(104,`Diff Editor`),Bf=class extends Bu{constructor(){super({id:`diffEditor.switchSide`,title:z(105,`Switch Side`),icon:Mr.arrowSwap,precondition:hu.has(`isInDiffEditor`),f1:!0,category:zf})}runEditorCommand(e,t,n){let r=Yf(e);if(r instanceof K){if(n&&n.dryRun)return{destinationSelection:r.mapToOtherSide().destinationSelection};r.switchSide()}}},Vf=class extends Bu{constructor(){super({id:`diffEditor.exitCompareMove`,title:z(106,`Exit Compare Move`),icon:Mr.close,precondition:G.comparingMovedCode,f1:!1,category:zf,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...n){let r=Yf(e);r instanceof K&&r.exitCompareMove()}},Hf=class extends Bu{constructor(){super({id:`diffEditor.collapseAllUnchangedRegions`,title:z(107,`Collapse All Unchanged Regions`),icon:Mr.fold,precondition:hu.has(`isInDiffEditor`),f1:!0,category:zf})}runEditorCommand(e,t,...n){let r=Yf(e);r instanceof K&&r.collapseAllUnchangedRegions()}},Uf=class extends Bu{constructor(){super({id:`diffEditor.showAllUnchangedRegions`,title:z(108,`Show All Unchanged Regions`),icon:Mr.unfold,precondition:hu.has(`isInDiffEditor`),f1:!0,category:zf})}runEditorCommand(e,t,...n){let r=Yf(e);r instanceof K&&r.showAllUnchangedRegions()}},Wf=class extends Tn{constructor(){super({id:`diffEditor.revert`,title:z(109,`Revert`),f1:!0,category:zf,precondition:hu.has(`isInDiffEditor`)})}run(e,t){return t?this.runViaToolbarContext(e,t):this.runViaCursorOrSelection(e)}runViaCursorOrSelection(e){let t=Yf(e);t instanceof K&&t.revertFocusedRangeMappings()}runViaToolbarContext(e,t){let n=Jf(e,t.originalUri,t.modifiedUri);n instanceof K&&n.revertRangeMappings(t.mapping.innerChanges??[])}},Gf=z(110,`Accessible Diff Viewer`),Kf=class e extends Tn{static{this.id=`editor.action.accessibleDiffViewer.next`}constructor(){super({id:e.id,title:z(111,`Go to Next Difference`),category:Gf,precondition:hu.has(`isInDiffEditor`),keybinding:{primary:65,weight:100},f1:!0})}run(e){Yf(e)?.accessibleDiffViewerNext()}},qf=class e extends Tn{static{this.id=`editor.action.accessibleDiffViewer.prev`}constructor(){super({id:e.id,title:z(112,`Go to Previous Difference`),category:Gf,precondition:hu.has(`isInDiffEditor`),keybinding:{primary:1089,weight:100},f1:!0})}run(e){Yf(e)?.accessibleDiffViewerPrev()}};function Jf(e,t,n){return e.get(To).listDiffEditors().find(e=>{let r=e.getModifiedEditor(),i=e.getOriginalEditor();return r&&r.getModel()?.uri.toString()===n.toString()&&i&&i.getModel()?.uri.toString()===t.toString()})||null}function Yf(e){let t=e.get(To).listDiffEditors(),n=rt();if(n){for(let e of t)if(e.getContainerDomNode().contains(n))return e}return null}aa(If),aa(Lf),aa(Rf),Qe.appendMenuItem(wi.EditorTitle,{command:{id:new Rf().desc.id,title:U(135,`Use Inline View When Space Is Limited`),toggled:hu.has(`config.diffEditor.useInlineViewWhenSpaceIsLimited`),precondition:hu.has(`isInDiffEditor`)},order:11,group:`1_diff`,when:hu.and(G.diffEditorRenderSideBySideInlineBreakpointReached,hu.has(`isInDiffEditor`))}),Qe.appendMenuItem(wi.EditorTitle,{command:{id:new Lf().desc.id,title:U(136,`Show Moved Code Blocks`),icon:Mr.move,toggled:Jn.create(`config.diffEditor.experimental.showMoves`,!0),precondition:hu.has(`isInDiffEditor`)},order:10,group:`1_diff`,when:hu.has(`isInDiffEditor`)}),aa(Wf);for(let e of[{icon:Mr.arrowRight,key:G.diffEditorInlineMode.toNegated()},{icon:Mr.discard,key:G.diffEditorInlineMode}])Qe.appendMenuItem(wi.DiffEditorHunkToolbar,{command:{id:new Wf().desc.id,title:U(137,`Revert Block`),icon:e.icon},when:hu.and(G.diffEditorModifiedWritable,e.key),order:5,group:`primary`}),Qe.appendMenuItem(wi.DiffEditorSelectionToolbar,{command:{id:new Wf().desc.id,title:U(138,`Revert Selection`),icon:e.icon},when:hu.and(G.diffEditorModifiedWritable,e.key),order:5,group:`primary`});aa(Bf),aa(Vf),aa(Hf),aa(Uf),Qe.appendMenuItem(wi.EditorTitle,{command:{id:Kf.id,title:U(139,`Open Accessible Diff Viewer`),precondition:hu.has(`isInDiffEditor`)},order:10,group:`2_diff`,when:hu.and(G.accessibleDiffViewerVisible.negate(),hu.has(`isInDiffEditor`))}),Ba.registerCommandAlias(`editor.action.diffReview.next`,Kf.id),aa(Kf),Ba.registerCommandAlias(`editor.action.diffReview.prev`,qf.id),aa(qf);var Xf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zf=function(e,t){return function(n,r){t(n,r,e)}},Qf,$f=new Qa(`selectionAnchorSet`,!1),ep=class{static{Qf=this}static{this.ID=`editor.contrib.selectionAnchorController`}static get(e){return e.getContribution(Qf.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=$f.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(ni.fromPositions(e,e),{description:`selection-anchor`,stickiness:1,hoverMessage:new hf().appendText(U(834,`Selection Anchor`)),className:`selection-anchor`})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Ts(U(835,`Anchor set at {0}:{1}`,e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(ni.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};ep=Qf=Xf([Zf(1,In)],ep);var tp=class extends Wl{constructor(){super({id:`editor.action.setSelectionAnchor`,label:z(836,`Set Selection Anchor`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:va(2089,2080),weight:100}})}async run(e,t){ep.get(t)?.setSelectionAnchor()}},np=class extends Wl{constructor(){super({id:`editor.action.goToSelectionAnchor`,label:z(837,`Go to Selection Anchor`),precondition:$f})}async run(e,t){ep.get(t)?.goToSelectionAnchor()}},rp=class extends Wl{constructor(){super({id:`editor.action.selectFromAnchorToCursor`,label:z(838,`Select from Anchor to Cursor`),precondition:$f,kbOpts:{kbExpr:G.editorTextFocus,primary:va(2089,2089),weight:100}})}async run(e,t){ep.get(t)?.selectFromAnchorToCursor()}},ip=class extends Wl{constructor(){super({id:`editor.action.cancelSelectionAnchor`,label:z(839,`Cancel Selection Anchor`),precondition:$f,kbOpts:{kbExpr:G.editorTextFocus,primary:9,weight:100}})}async run(e,t){ep.get(t)?.cancelSelectionAnchor()}};ru(ep.ID,ep,4),hs(tp),hs(np),hs(rp),hs(ip);var ap=Zi(`editorOverviewRuler.bracketMatchForeground`,`#A0A0A0`,U(840,`Overview ruler marker color for matching brackets.`)),op=class extends Wl{constructor(){super({id:`editor.action.jumpToBracket`,label:z(842,`Go to Bracket`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:3165,weight:100}})}run(e,t){up.get(t)?.jumpToBracket()}},sp=class extends Wl{constructor(){super({id:`editor.action.selectToBracket`,label:z(843,`Select to Bracket`),precondition:void 0,metadata:{description:z(844,`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,n){let r=!0;n&&n.selectBrackets===!1&&(r=!1),up.get(t)?.selectToBracket(r)}},cp=class extends Wl{constructor(){super({id:`editor.action.removeBrackets`,label:z(845,`Remove Brackets`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:2561,weight:100},canTriggerInlineEdits:!0})}run(e,t){up.get(t)?.removeBrackets(this.id)}},lp=class{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}},up=class e extends Eo{static{this.ID=`editor.contrib.bracketMatchingController`}static get(t){return t.getContribution(e.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new mr(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(80),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{this._matchBrackets!==`never`&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.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;let e=this._editor.getModel(),t=this._editor.getSelections().map(t=>{let n=t.getStartPosition(),r=e.bracketPairs.matchBracket(n),i=null;if(r)r[0].containsPosition(n)&&!r[1].containsPosition(n)?i=r[1].getStartPosition():r[1].containsPosition(n)&&(i=r[0].getStartPosition());else{let t=e.bracketPairs.findEnclosingBrackets(n);if(t)i=t[1].getStartPosition();else{let t=e.bracketPairs.findNextBracket(n);t&&t.range&&(i=t.range.getStartPosition())}}return i?new ni(i.lineNumber,i.column,i.lineNumber,i.column):new ni(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(r=>{let i=r.getStartPosition(),a=t.bracketPairs.matchBracket(i);if(!a&&(a=t.bracketPairs.findEnclosingBrackets(i),!a)){let e=t.bracketPairs.findNextBracket(i);e&&e.range&&(a=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let o=null,s=null;if(a){a.sort(B.compareRangesUsingStarts);let[t,n]=a;if(o=e?t.getStartPosition():t.getEndPosition(),s=e?n.getEndPosition():n.getStartPosition(),n.containsPosition(i)){let e=o;o=s,s=e}}o&&s&&n.push(new ni(o.lineNumber,o.column,s.lineNumber,s.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(n=>{let r=n.getPosition(),i=t.bracketPairs.matchBracket(r);i||=t.bracketPairs.findEnclosingBrackets(r),i&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:i[0],text:``},{range:i[1],text:``}]),this._editor.pushUndoStop())})}static{this._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=nu.register({description:`bracket-match-overview`,stickiness:1,className:`bracket-match`,inlineClassName:`bracket-match-inline`,overviewRuler:{color:Za(ap),position:ra.Center}})}static{this._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=nu.register({description:`bracket-match-no-overview`,stickiness:1,className:`bracket-match`,inlineClassName:`bracket-match-inline`})}_updateBrackets(){if(this._matchBrackets===`never`)return;this._recomputeBrackets();let e=[],t=0;for(let n of this._lastBracketsData){let r=n.brackets;r&&(e[t++]={range:r[0],options:n.options},e[t++]={range:r[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getSelections();if(t.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let n=this._editor.getModel(),r=n.getVersionId(),i=[];this._lastVersionId===r&&(i=this._lastBracketsData);let a=[],o=0;for(let e=0,n=t.length;e<n;e++){let n=t[e];n.isEmpty()&&(a[o++]=n.getStartPosition())}a.length>1&&a.sort(Dn.compare);let s=[],c=0,l=0,u=i.length;for(let t=0,r=a.length;t<r;t++){let r=a[t];for(;l<u&&i[l].position.isBefore(r);)l++;if(l<u&&i[l].position.equals(r))s[c++]=i[l];else{let t=n.bracketPairs.matchBracket(r,20),i=e._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!t&&this._matchBrackets===`always`&&(t=n.bracketPairs.findEnclosingBrackets(r,20),i=e._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),s[c++]=new lp(r,t,i)}}this._lastBracketsData=s,this._lastVersionId=r}};ru(up.ID,up,1),hs(sp),hs(op),hs(cp),Qe.appendMenuItem(wi.MenubarGoMenu,{group:`5_infile_nav`,command:{id:`editor.action.jumpToBracket`,title:U(841,`Go to &&Bracket`)},order:2}),Fn((e,t)=>{let n=e.getColor(Da);n&&t.addRule(`.monaco-editor .bracket-match-inline { color: ${n} !important; }`)});var dp=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let n=this._selection.startLineNumber,r=this._selection.startColumn,i=this._selection.endColumn;if(!(this._isMovingLeft&&r===1)&&!(!this._isMovingLeft&&i===e.getLineMaxColumn(n))){if(this._isMovingLeft){let a=new B(n,r-1,n,r),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new B(n,i,n,i),o)}else{let a=new B(n,i,n,i+1),o=e.getValueInRange(a);t.addEditOperation(a,null),t.addEditOperation(new B(n,r,n,r),o)}}}computeCursorState(e,t){return this._isMovingLeft?new ni(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new ni(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}},fp=class extends Wl{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],r=t.getSelections();for(let e of r)n.push(new dp(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},pp=class extends fp{constructor(){super(!0,{id:`editor.action.moveCarretLeftAction`,label:z(846,`Move Selected Text Left`),precondition:G.writable})}},mp=class extends fp{constructor(){super(!1,{id:`editor.action.moveCarretRightAction`,label:z(847,`Move Selected Text Right`),precondition:G.writable})}};hs(pp),hs(mp),hs(class extends Wl{constructor(){super({id:`editor.action.transposeLetters`,label:z(848,`Transpose Letters`),precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=[],i=t.getSelections();for(let e of i){if(!e.isEmpty())continue;let t=e.startLineNumber,i=e.startColumn,a=n.getLineMaxColumn(t);if(t===1&&(i===1||i===2&&a===2))continue;let o=i===a?e.getPosition():Zo.rightPosition(n,e.getPosition().lineNumber,e.getPosition().column),s=Zo.leftPosition(n,o),c=Zo.leftPosition(n,s),l=n.getValueInRange(B.fromPositions(c,s)),u=n.getValueInRange(B.fromPositions(s,o)),d=B.fromPositions(c,o);r.push(new tl(d,u+l))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}});var hp=class e{static{this.sep=`.`}static{this.None=new e(`@@none@@`)}static{this.Empty=new e(``)}constructor(e){this.value=e}equals(e){return this.value===e.value}contains(t){return this.equals(t)||this.value===``||t.value.startsWith(this.value+e.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...t){return new e((this.value?[this.value,...t]:t).join(e.sep))}},gp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_p=function(e,t){return function(n,r){t(n,r,e)}},vp=nu.register({description:`inline-progress-widget`,stickiness:1,showIfCollapsed:!0,after:{content:`\xA0`,inlineClassName:`inline-editor-progress-decoration`,inlineClassNameAffectsLetterSpacing:!0}}),yp=class e extends Eo{static{this.baseId=`editor.widget.inlineProgressWidget`}constructor(e,t,n,r,i){super(),this.typeId=e,this.editor=t,this.range=n,this.delegate=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(r),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=id(`.inline-progress-widget`),this.domNode.role=`button`,this.domNode.title=e;let t=id(`span.icon`);this.domNode.append(t),t.classList.add(...fi.asClassNameArray(Mr.loading),`codicon-modifier-spin`);let n=()=>{let e=this.editor.getOption(75);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};n(),this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(61)||e.hasChanged(75))&&n()})),this._register(po(this.domNode,Yl.CLICK,e=>{this.delegate.cancel()}))}getId(){return e.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)}},bp=class extends Eo{constructor(e,t,n){super(),this.id=e,this._editor=t,this._instantiationService=n,this._showDelay=500,this._showPromise=this._register(new Nu),this._currentWidget=this._register(new Nu),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,n,r,i){let a=this._operationIdPool++;this._currentOperation=a,this.clear(),this._showPromise.value=xn(()=>{let n=B.fromPositions(e);this._currentDecorations.set([{range:n,options:vp}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(yp,this.id,this._editor,n,t,r))},i??this._showDelay);try{return await n}finally{this._currentOperation===a&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};bp=gp([_p(2,Il)],bp);var xp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sp=function(e,t){return function(n,r){t(n,r,e)}},Cp,wp=class{static{Cp=this}static{this.ID=`editor.contrib.messageController`}static{this.MESSAGE_VISIBLE=new Qa(`messageVisible`,!1,U(1333,`Whether the editor is currently showing an inline message`))}static get(e){return e.getContribution(Cp.ID)}constructor(e,t,n){this._openerService=n,this._messageWidget=new Nu,this._messageListeners=new Ll,this._mouseOverMessage=!1,this._editor=e,this._visible=Cp.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){if(Ts(un(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),un(e)){let n=this._messageListeners.add(Zr(e,{actionHandler:(e,t)=>{this.closeMessage(),Mc(this._openerService,e,t.isTrusted)}}));this._messageWidget.value=new Ep(this._editor,t,n.element)}else this._messageWidget.value=new Ep(this._editor,t,e);this._messageListeners.add(Ku.debounce(this._editor.onDidBlurEditorText,(e,t)=>t,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&vn(rt(),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(po(this._messageWidget.value.getDomNode(),Yl.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(po(this._messageWidget.value.getDomNode(),Yl.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let n;this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(n?n.containsPosition(e.target.position)||this.closeMessage():n=new B(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Ep.fadeOut(this._messageWidget.value))}};wp=Cp=xp([Sp(1,In),Sp(2,hr)],wp);var Tp=ns.bindToContribution(wp.get);Bs(new Tp({id:`leaveEditorMessage`,precondition:wp.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));var Ep=class{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener(`animationend`,t)},n=setTimeout(t,110);return e.getDomNode().addEventListener(`animationend`,t),e.getDomNode().classList.add(`fadeOut`),{dispose:t}}constructor(e,{lineNumber:t,column:n},r){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement(`div`),this._domNode.classList.add(`monaco-editor-overlaymessage`),this._domNode.style.marginLeft=`-6px`;let i=document.createElement(`div`);i.classList.add(`anchor`,`top`),this._domNode.appendChild(i);let a=document.createElement(`div`);typeof r==`string`?(a.classList.add(`message`),a.textContent=r):(r.classList.add(`message`),a.appendChild(r)),this._domNode.appendChild(a);let o=document.createElement(`div`);o.classList.add(`anchor`,`below`),this._domNode.appendChild(o),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)}};ru(wp.ID,wp,4);var Dp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Op=function(e,t){return function(n,r){t(n,r,e)}},kp=class{constructor(e){this.copyMimeTypes=[],this.kind=e,this.providedDropEditKinds=[this.kind],this.providedPasteEditKinds=[this.kind]}async provideDocumentPasteEdits(e,t,n,r,i){let a=await this.getEdit(n,i);if(a)return{edits:[{insertText:a.insertText,title:a.title,kind:a.kind,handledMimeType:a.handledMimeType,yieldTo:a.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,n,r){let i=await this.getEdit(n,r);if(i)return{edits:[{insertText:i.insertText,title:i.title,kind:i.kind,handledMimeType:i.handledMimeType,yieldTo:i.yieldTo}],dispose(){}}}},Ap=class e extends kp{static{this.id=`text`}constructor(){super(hp.Empty.append(`text`,`plain`)),this.id=e.id,this.dropMimeTypes=[Ds.text],this.pasteMimeTypes=[Ds.text]}async getEdit(e,t){let n=e.get(Ds.text);if(!n||e.has(Ds.uriList))return;let r=await n.asString();return{handledMimeType:Ds.text,title:U(965,`Insert Plain Text`),insertText:r,kind:this.kind}}},jp=class extends kp{constructor(){super(hp.Empty.append(`uri`,`path`,`absolute`)),this.dropMimeTypes=[Ds.uriList],this.pasteMimeTypes=[Ds.uriList]}async getEdit(e,t){let n=await Pp(e);if(!n.length||t.isCancellationRequested)return;let r=0,i=n.map(({uri:e,originalText:t})=>e.scheme===Ot.file?e.fsPath:(r++,t)).join(` `),a;return a=r>0?n.length>1?U(966,`Insert Uris`):U(967,`Insert Uri`):n.length>1?U(968,`Insert Paths`):U(969,`Insert Path`),{handledMimeType:Ds.uriList,insertText:i,title:a,kind:this.kind}}},Mp=class extends kp{constructor(e){super(hp.Empty.append(`uri`,`path`,`relative`)),this._workspaceContextService=e,this.dropMimeTypes=[Ds.uriList],this.pasteMimeTypes=[Ds.uriList]}async getEdit(e,t){let n=await Pp(e);if(!n.length||t.isCancellationRequested)return;let r=qu(n.map(({uri:e})=>{let t=this._workspaceContextService.getWorkspaceFolder(e);return t?Fc(t.uri,e):void 0}));if(r.length)return{handledMimeType:Ds.uriList,insertText:r.join(` `),title:n.length>1?U(970,`Insert Relative Paths`):U(971,`Insert Relative Path`),kind:this.kind}}};Mp=Dp([Op(0,gs)],Mp);var Np=class{constructor(){this.kind=new hp(`html`),this.providedPasteEditKinds=[this.kind],this.copyMimeTypes=[],this.pasteMimeTypes=[`text/html`],this._yieldTo=[{mimeType:Ds.text}]}async provideDocumentPasteEdits(e,t,n,r,i){if(r.triggerKind!==So.PasteAs&&!r.only?.contains(this.kind))return;let a=await n.get(`text/html`)?.asString();if(!(!a||i.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:U(972,`Insert HTML`),kind:this.kind}]}}};async function Pp(e){let t=e.get(Ds.uriList);if(!t)return[];let n=await t.asString(),r=[];for(let e of ef.parse(n))try{r.push({uri:cr.parse(e),originalText:e})}catch{}return r}var Fp={scheme:`*`,hasAccessToAllModels:!0},Ip=class extends Eo{constructor(e,t){super(),this._register(e.documentDropEditProvider.register(Fp,new Ap)),this._register(e.documentDropEditProvider.register(Fp,new jp)),this._register(e.documentDropEditProvider.register(Fp,new Mp(t)))}};Ip=Dp([Op(0,gl),Op(1,gs)],Ip);var Lp=class extends Eo{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register(Fp,new Ap)),this._register(e.documentPasteEditProvider.register(Fp,new jp)),this._register(e.documentPasteEditProvider.register(Fp,new Mp(t))),this._register(e.documentPasteEditProvider.register(Fp,new Np))}};Lp=Dp([Op(0,gl),Op(1,gs)],Lp);var Rp=class e{constructor(){this.value=``,this.pos=0}static{this._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13}}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};let t=this.pos,n=0,r=this.value.charCodeAt(t),i;if(i=e._table[r],typeof i==`number`)return this.pos+=1,{type:i,pos:t,len:1};if(e.isDigitCharacter(r)){i=8;do n+=1,r=this.value.charCodeAt(t+n);while(e.isDigitCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}if(e.isVariableCharacter(r)){i=9;do r=this.value.charCodeAt(t+ ++n);while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}i=10;do n+=1,r=this.value.charCodeAt(t+n);while(!isNaN(r)&&e._table[r]===void 0&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=n,{type:i,pos:t,len:n}}},zp=class{constructor(){this._children=[]}appendChild(e){return e instanceof Bp&&this._children[this._children.length-1]instanceof Bp?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:n}=e,r=n.children.indexOf(e),i=n.children.slice(0);i.splice(r,1,...t),n._children=i,(function e(t,n){for(let r of t)r.parent=n,e(r.children,r)})(t,n)}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 Jp)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),``)}len(){return 0}},Bp=class e extends zp{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new e(this.value)}},Vp=class extends zp{},Hp=class e extends Vp{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:+(e.index>t.index)}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Up?this._children[0]:void 0}clone(){let t=new e(this.index);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(e=>e.clone()),t}},Up=class e extends zp{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Bp&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let t=new e;return this.options.forEach(t.appendChild,t),t}},Wp=class e extends zp{constructor(){super(...arguments),this.regexp=RegExp(``)}resolve(e){let t=this,n=!1,r=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(e=>e instanceof Gp&&!!e.elseValue)&&(r=this._replace([])),r}_replace(e){let t=``;for(let n of this._children)if(n instanceof Gp){let r=e[n.index]||``;r=n.resolve(r),t+=r}else t+=n.toString();return t}toString(){return``}clone(){let t=new e;return t.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?`i`:``)+(this.regexp.global?`g`:``)),t._children=this.children.map(e=>e.clone()),t}},Gp=class e extends zp{constructor(e,t,n,r){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=r}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):``:this.shorthandName===`kebabcase`?e?this._toKebabCase(e):``:this.shorthandName===`snakecase`?e?this._toSnakeCase(e):``:e&&typeof this.ifValue==`string`?this.ifValue:!e&&typeof this.elseValue==`string`?this.elseValue:e||``}_toKebabCase(e){if(!e.match(/[\p{L}0-9]+/gu))return e;if(!e.match(/[\p{L}0-9]/u))return e.trim().toLowerCase().replace(/^_+|_+$/g,``).replace(/[\s_]+/g,`-`);let t=e.trim().replace(/^_+|_+$/g,``),n=t.match(/\p{Lu}{2,}(?=\p{Lu}\p{Ll}+[0-9]*|[\s_-]|$)|\p{Lu}?\p{Ll}+[0-9]*|\p{Lu}(?=\p{Lu}\p{Ll})|\p{Lu}(?=[\s_-]|$)|[0-9]+/gu);return n?n.map(e=>e.toLowerCase()).join(`-`):t.split(/[\s_-]+/).filter(e=>e.length>0).map(e=>e.toLowerCase()).join(`-`)}_toPascalCase(e){let t=e.match(/[\p{L}0-9]+/gu);return t?t.map(e=>e.charAt(0).toUpperCase()+e.substr(1)).join(``):e}_toCamelCase(e){let t=e.match(/[\p{L}0-9]+/gu);return t?t.map((e,t)=>t===0?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1)).join(``):e}_toSnakeCase(e){return e.replace(/(\p{Ll})(\p{Lu})/gu,`$1_$2`).replace(/[\s\-]+/g,`_`).toLowerCase()}clone(){return new e(this.index,this.shorthandName,this.ifValue,this.elseValue)}},Kp=class e extends Vp{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 Bp(t)],!0)}clone(){let t=new e(this.name);return this.transform&&(t.transform=this.transform.clone()),t._children=this.children.map(e=>e.clone()),t}};function qp(e,t){let n=[...e];for(;n.length>0;){let e=n.shift();if(!t(e))break;n.unshift(...e.children)}}var Jp=class e extends zp{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(n){return n instanceof Hp&&(e.push(n),t=!t||t.index<n.index?n:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){let{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(r=>r===e?(n=!0,!1):(t+=r.len(),!0)),n?t:-1}fullLen(e){let t=0;return qp([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;for(;n;)n instanceof Hp&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Kp&&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(){let t=new e;return t._children=this.children.map(e=>e.clone()),t}walk(e){qp(this.children,e)}},Yp=class{constructor(){this._scanner=new Rp,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,n){let r=new Jp;return this.parseFragment(e,r),this.ensureFinalTabstop(r,n??!1,t??!1),r}parseFragment(e,t){let n=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let r=new Map,i=[];t.walk(e=>(e instanceof Hp&&(e.isFinalTabstop?r.set(0,void 0):!r.has(e.index)&&e.children.length>0?r.set(e.index,e.children):i.push(e)),!0));let a=(e,n)=>{let i=r.get(e.index);if(!i)return;let o=new Hp(e.index);o.transform=e.transform;for(let e of i){let t=e.clone();o.appendChild(t),t instanceof Hp&&r.has(t.index)&&!n.has(t.index)&&(n.add(t.index),a(t,n),n.delete(t.index))}t.replace(e,[o])},o=new Set;for(let e of i)a(e,o);return t.children.slice(n)}ensureFinalTabstop(e,t,n){(t||n&&e.placeholders.length>0)&&(e.placeholders.find(e=>e.index===0)||e.appendChild(new Hp(0)))}_accept(e,t){if(e===void 0||this._token.type===e){let e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let e=this._scanner.next();if(e.type!==0&&e.type!==4&&e.type!==5)return!1}this._token=this._scanner.next()}let n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,`$1`);return this._token=this._scanner.next(),n}_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 Bp(t)),!0):!1}_parseTabstopOrVariableName(e){let t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Hp(Number(t)):new Kp(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);let r=new Hp(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Bp("${"+t+`:`)),r.children.forEach(e.appendChild,e),!0}else if(r.index>0&&this._accept(7)){let t=new Up;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(t),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}else if(this._accept(6))return this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1);else if(this._accept(4))return e.appendChild(r),!0;else return this._backTo(n)}_parseChoiceElement(e){let t=this._token,n=[];for(;this._token.type!==2&&this._token.type!==7;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;n.push(e)}return n.length===0?(this._backTo(t),!1):(e.appendChild(new Bp(n.join(``))),!0)}_parseComplexVariable(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);let r=new Kp(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new Bp("${"+t+`:`)),r.children.forEach(e.appendChild,e),!0}else if(this._accept(6))return this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1);else if(this._accept(4))return e.appendChild(r),!0;else return this._backTo(n)}_parseTransform(e){let t=new Wp,n=``,r=``;for(;!this._accept(6);){let e;if(e=this._accept(5,!0)){e=this._accept(6,!0)||e,n+=e;continue}if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let e;if(e=this._accept(5,!0)){e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new Bp(e));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(n,r)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let r=this._accept(8,!0);if(!r)return this._backTo(t),!1;if(!n||this._accept(4))return e.appendChild(new Gp(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let n=this._accept(9,!0);return!n||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Gp(Number(r),n)),!0)}if(this._accept(11)){let t=this._until(4);if(t)return e.appendChild(new Gp(Number(r),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new Gp(Number(r),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let n=this._until(4);if(n)return e.appendChild(new Gp(Number(r),void 0,t,n)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new Gp(Number(r),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14&&(e.appendChild(new Bp(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}};function Xp(e,t,n){return(typeof n.insertText==`string`?n.insertText===``:n.insertText.snippet===``)?{edits:n.additionalEdit?.edits??[]}:{edits:[...t.map(t=>new sl(e,{range:t,text:typeof n.insertText==`string`?Yp.escape(n.insertText)+`$0`:n.insertText.snippet,insertAsSnippet:!0})),...n.additionalEdit?.edits??[]]}}function Zp(e){function t(e,t){return`mimeType`in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}let n=new Map;for(let r of e)for(let i of r.yieldTo??[])for(let a of e)if(a!==r&&t(i,a)){let e=n.get(r);e||(e=[],n.set(r,e)),e.push(a)}if(!n.size)return Array.from(e);let r=new Set,i=[];function a(e){if(!e.length)return[];let t=e[0];if(i.includes(t))return console.warn(`Yield to cycle detected`,t),e;if(r.has(t))return a(e.slice(1));let o=[],s=n.get(t);return s&&(i.push(t),o=a(s),i.pop()),r.add(t),[...o,t,...a(e.slice(1))]}return a(Array.from(e))}function Qp(e,t){return t&&(e.stack||e.stacktrace)?U(33,`{0}: {1}`,em(e),$p(e.stack)||$p(e.stacktrace)):em(e)}function $p(e){return Array.isArray(e)?e.join(`
|
|
3
3
|
`):e}function em(e){return e.code===`ERR_UNC_HOST_NOT_ALLOWED`?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof e.code==`string`&&typeof e.errno==`number`&&typeof e.syscall==`string`?U(34,`A system error occurred ({0})`,e.message):e.message||U(35,`An unknown error occurred. Please consult the log for more details.`)}function tm(e=null,t=!1){if(!e)return U(36,`An unknown error occurred. Please consult the log for more details.`);if(Array.isArray(e)){let n=qu(e),r=tm(n[0],t);return n.length>1?U(37,`{0} ({1} errors in total)`,r,n.length):r}if(er(e))return e;if(e.detail){let n=e.detail;if(n.error)return Qp(n.error,t);if(n.exception)return Qp(n.exception,t)}return e.stack?Qp(e,t):e.message?e.message:U(38,`An unknown error occurred. Please consult the log for more details.`)}var nm=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rm=function(e,t){return function(n,r){t(n,r,e)}},im,am=`acceptSelectedCodeAction`,om=`previewSelectedCodeAction`,sm=class{get templateId(){return`header`}renderTemplate(e){e.classList.add(`group-header`);let t=document.createElement(`span`);return e.append(t),{container:e,text:t}}renderElement(e,t,n){n.text.textContent=e.group?.title??e.label??``}disposeTemplate(e){}},cm=class{get templateId(){return`separator`}renderTemplate(e){e.classList.add(`separator`);let t=document.createElement(`span`);return e.append(t),{container:e,text:t}}renderElement(e,t,n){n.text.textContent=e.label??``}disposeTemplate(e){}},lm=class{get templateId(){return`action`}constructor(e,t,n,r,i,a,o,s,c){this._supportsPreview=e,this._onRemoveItem=t,this._onShowSubmenu=n,this._hasAnySubmenuActions=r,this._groupTitleByIndex=i,this._linkHandler=a,this._hideDefaultKeybindingTooltip=o,this._keybindingService=s,this._openerService=c}renderTemplate(e){e.classList.add(this.templateId);let t=document.createElement(`div`);t.className=`icon`,e.append(t);let n=document.createElement(`span`);n.className=`title`,e.append(n);let r=document.createElement(`span`);r.className=`action-item-badge`,e.append(r);let i=document.createElement(`span`);i.className=`description`,e.append(i);let a=document.createElement(`span`);a.className=`group-title`,e.append(a);let o=document.createElement(`span`);o.className=`detail`,e.append(o);let s=new ya(e,ic),c=document.createElement(`div`);c.className=`action-list-item-toolbar`,e.append(c);let l=document.createElement(`div`);return l.className=`action-list-submenu-indicator`,e.append(l),{container:e,icon:t,text:n,detail:o,badge:r,description:i,groupTitle:a,keybinding:s,toolbar:c,submenuIndicator:l,elementDisposables:new Ll}}renderElement(e,t,n){if(n.elementDisposables.clear(),e.group?.icon?(n.icon.className=fi.asClassName(e.group.icon),e.group.icon.color&&(n.icon.style.color=L(e.group.icon.color.id))):(n.icon.className=fi.asClassName(Mr.lightBulb),n.icon.style.color=`var(--vscode-editorLightBulb-foreground)`),!e.item||!e.label)return;if(Qi(!e.hideIcon,n.icon),e.isSectionToggle){let t=e.group?.icon===Mr.chevronDown;n.container.setAttribute(`aria-expanded`,String(t))}else n.container.removeAttribute(`aria-expanded`);if(n.previousClassName&&n.container.classList.remove(n.previousClassName),n.container.classList.toggle(`action-list-custom`,!!e.className),e.className&&n.container.classList.add(e.className),n.previousClassName=e.className,n.text.textContent=hm(e.label),e.badge?(n.badge.textContent=e.badge,n.badge.style.display=``):(n.badge.textContent=``,n.badge.style.display=`none`),e.keybinding)n.description.textContent=e.keybinding.getLabel(),n.description.style.display=`inline`,n.description.style.letterSpacing=`0.5px`;else if(e.description){if(Bd(n.description),typeof e.description==`string`)n.description.textContent=hm(e.description);else{let t=Zr(e.description,{actionHandler:t=>{let n=cr.parse(t);this._linkHandler?this._linkHandler(n,e):this._openerService.open(n,{allowCommands:!0})}});n.elementDisposables.add(t),n.description.appendChild(t.element)}n.description.style.display=`inline`}else n.description.textContent=``,n.description.style.display=`none`;let r=this._groupTitleByIndex.get(t);r?(n.groupTitle.textContent=r,n.groupTitle.style.display=``):(n.groupTitle.textContent=``,n.groupTitle.style.display=`none`),e.detail?(n.detail.textContent=hm(e.detail),n.detail.style.display=``):(n.detail.textContent=``,n.detail.style.display=`none`);let i=this._keybindingService.lookupKeybinding(am)?.getLabel(),a=this._keybindingService.lookupKeybinding(om)?.getLabel();n.container.classList.toggle(`option-disabled`,!!e.disabled),e.hover===void 0?e.tooltip?n.container.title=e.tooltip:e.disabled?n.container.title=e.label:this._hideDefaultKeybindingTooltip?n.container.title=``:i&&a?this._supportsPreview&&e.canPreview?n.container.title=U(1705,`{0} to Apply, {1} to Preview`,i,a):n.container.title=U(1706,`{0} to Apply`,i):n.container.title=``:n.container.title=``,Bd(n.toolbar);let o=[...e.toolbarActions??[]];if(e.onRemove&&o.push(Cl({id:`actionList.remove`,label:U(1707,`Remove`),class:fi.asClassName(Mr.close),run:async()=>{await e.onRemove(),this._onRemoveItem?.(e)}})),n.container.classList.toggle(`has-toolbar`,o.length>0),o.length>0){let e=new _a(n.toolbar);n.elementDisposables.add(e),e.push(o,{icon:!0,label:!1})}e.submenuActions?.length&&!e.hover?.content?(n.submenuIndicator.className=`action-list-submenu-indicator has-submenu `+fi.asClassName(Mr.chevronRight),n.submenuIndicator.style.display=``,n.submenuIndicator.style.visibility=``,n.elementDisposables.add(po(n.submenuIndicator,Yl.CLICK,t=>{t.stopPropagation(),this._onShowSubmenu?.(e)}))):this._hasAnySubmenuActions?(n.submenuIndicator.className=`action-list-submenu-indicator`,n.submenuIndicator.style.display=``,n.submenuIndicator.style.visibility=`hidden`):(n.submenuIndicator.className=`action-list-submenu-indicator`,n.submenuIndicator.style.display=`none`)}disposeTemplate(e){e.keybinding.dispose(),e.elementDisposables.dispose()}};lm=nm([rm(7,Be),rm(8,hr)],lm);var um=class extends UIEvent{constructor(){super(`acceptSelectedAction`)}},dm=class extends UIEvent{constructor(){super(`previewSelectedAction`)}};function fm(e){if(e.kind===`action`)return e.label}var pm=im=class extends Eo{constructor(e,t,n,r,i,a,o,s,c){if(super(),this._supportsPreview=t,this._delegate=r,this._options=a,this._keybindingService=o,this._openerService=s,this._instantiationService=c,this._headerLineHeight=24,this._separatorLineHeight=8,this.cts=this._register(new Aa),this._submenuDisposables=this._register(new Ll),this._collapsedSections=new Set,this._filterText=``,this._suppressHover=!1,this._hasLaidOut=!1,this._filterCts=this._register(new Nu),this._groupTitleByIndex=new Map,this._onDidRequestLayout=this._register(new bs),this.onDidRequestLayout=this._onDidRequestLayout.event,this.domNode=document.createElement(`div`),this.domNode.classList.add(`actionList`),this._options?.inlineDescription&&this.domNode.classList.add(`inline-description`),this._options?.className){let e=this._options.className.split(/\s+/).filter(e=>e.length>0);e.length>0&&this.domNode.classList.add(...e)}if(this._actionLineHeight=24,this._submenuContainer=document.createElement(`div`),this._submenuContainer.className=`action-list-submenu-panel action-widget`,this._submenuContainer.style.display=`none`,this._submenuContainer.tabIndex=-1,this.domNode.append(this._submenuContainer),this._register(po(this._submenuContainer,`mouseenter`,()=>{this._cancelSubmenuHide()})),this._register(po(this._submenuContainer,`mouseleave`,()=>{this._scheduleSubmenuHide()})),this._register(Ns(()=>{this._cancelSubmenuHide(),this._cancelSubmenuShow()})),this._options?.collapsedByDefault)for(let e of this._options.collapsedByDefault)this._collapsedSections.add(e);let l={getHeight:e=>this._getItemHeight(e),getTemplateId:e=>e.kind},u=(this._options?.reserveSubmenuSpace??!0)&&n.some(e=>!!e.submenuActions?.length&&!e.hover?.content);if(this._list=this._register(new Xu(e,this.domNode,l,[new lm(this._supportsPreview,e=>this._removeItem(e),e=>this._showSubmenuForItem(e),u,this._groupTitleByIndex,this._options?.linkHandler,this._options?.hideDefaultKeybindingTooltip??!1,this._keybindingService,this._openerService),new sm,new cm],{keyboardSupport:!1,typeNavigationEnabled:!this._options?.showFilter,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:fm},accessibilityProvider:{getAriaLabel:e=>{if(e.kind===`action`){let t=e.label?hm(e?.label):``;if(e.detail&&(t=t+`, `+hm(e.detail)),e.ariaDescription)t=t+`, `+hm(e.ariaDescription);else if(e.description){let n=typeof e.description==`string`?e.description:e.description.value;t=t+`, `+hm(n)}if(e.hover?.content&&!e.ariaDescription&&!e.description){let n=e.hover.content,r=typeof n==`string`?n:un(n)?n.value:$n(n)?n.textContent??void 0:void 0;r&&(!e.detail||hm(e.detail)!==hm(r))&&(t=t+`, `+hm(r))}return e.group?.title&&(t=t+`, `+e.group.title),e.disabled&&(t=U(1708,`{0}, Disabled Reason: {1}`,t,e.disabled)),e.submenuActions?.length&&(t=U(1709,`{0}, use right arrow to access options`,t)),t}return null},getWidgetAriaLabel:()=>U(1710,`Action Widget`),getRole:e=>{switch(e.kind){case`action`:return`option`;case`separator`:return`separator`;default:return`separator`}},getWidgetRole:()=>`listbox`,...i}})),this._list.style(Va),this._register(this._list.onMouseClick(e=>this.onListClick(e))),this._register(this._list.onMouseOver(e=>this.onListHover(e))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(e=>this.onListSelection(e))),this._allMenuItems=[...n],this._options?.showFilter||this._options?.secondaryHeading){this._filterContainer=document.createElement(`div`),this._filterContainer.className=`action-list-filter`;let e=Io(this._filterContainer,id(`.action-list-filter-row`));if(this._options?.showFilter){this._filterInput=document.createElement(`input`),this._filterInput.type=`text`,this._filterInput.className=`action-list-filter-input`,this._filterInput.placeholder=this._options?.filterPlaceholder??U(1711,`Search...`),this._filterInput.setAttribute(`aria-label`,U(1712,`Filter items`)),e.appendChild(this._filterInput);let t=this._options?.filterActions??[];if(t.length>0){let n=Io(e,id(`.action-list-filter-actions`));this._register(new _a(n)).push(t,{icon:!0,label:!1})}this._register(po(this._filterInput,`input`,()=>{this._filterText=this._filterInput.value,this._applyOrUpdateFilter()}))}if(this._options?.secondaryHeading){let t=Io(e,id(`.action-list-filter-label`));t.textContent=this._options.secondaryHeading}}if(this._options?.footerText&&(this._footerContainer=document.createElement(`div`),this._footerContainer.className=`action-list-footer`,this._footerContainer.textContent=this._options.footerText),this._options?.headerText){if(this._headerContainer=document.createElement(`div`),this._headerContainer.className=`action-list-header`,this._options.headerIcon){let e=Io(this._headerContainer,id(`span.action-list-header-icon`));e.classList.add(...fi.asClassNameArray(this._options.headerIcon)),e.setAttribute(`aria-hidden`,`true`)}let e=Io(this._headerContainer,id(`span.action-list-header-text`));e.textContent=this._options.headerText}this._applyFilter(),this._list.length&&this._focusCheckedOrFirst(),this._register(po(this.domNode,`keydown`,e=>{if(e.key===`ArrowRight`){let t=this._list.getFocus();if(t.length>0){let n=this._list.element(t[0]);if(n?.submenuActions?.length){Ms.stop(e,!0);let r=this._getRowElement(t[0]);r&&(this._showSubmenuForElement(n,r),this._currentSubmenuWidget?.focus())}}}})),this._filterInput&&this._register(po(this.domNode,`keydown`,e=>{this._filterInput&&!Lt(this._filterInput)&&e.key.length===1&&e.key!==` `&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this._filterInput.focus(),this._filterInput.value=e.key,this._filterText=e.key,this._applyOrUpdateFilter(),e.preventDefault(),e.stopPropagation())}))}_toggleSection(e){this._collapsedSections.has(e)?this._collapsedSections.delete(e):this._collapsedSections.add(e),this._options?.onDidToggleSection?.(e,this._collapsedSections.has(e)),this._applyFilter()}_applyOrUpdateFilter(){if(!this._delegate.onFilter){this._applyFilter();return}let e=this._filterText;this._filterCts.value?.cancel();let t=new Aa;this._filterCts.value=t,this._delegate.onFilter(e,t.token).then(e=>{t.token.isCancellationRequested||(this._allMenuItems=[...e],this._applyFilter(!0))}).catch(()=>{})}_applyFilter(e=!1,t=!0){let n=e?``:this._filterText.toLowerCase(),r=!e&&n.length>0,i=[],a=this._list.getFocus(),o;if(a.length>0&&(o=this._list.element(a[0])),r){let e,t=[],r=!1,a=()=>{e&&r&&i.push(e),i.push(...t),e=void 0,t=[],r=!1},o=e=>{let t=(e.label??``).toLowerCase(),r=typeof e.description==`string`?e.description:e.description?.value??``;return t.includes(n)||r.toLowerCase().includes(n)};for(let n of this._allMenuItems)if(n.kind!==`header`){if(n.kind===`separator`){a(),e=n.label?n:void 0;continue}if(n.showAlways){t.push(n);continue}n.isSectionToggle||o(n)&&(r=!0,t.push(n))}a()}else for(let e of this._allMenuItems){if(e.kind===`header`){i.push(e);continue}if(e.kind===`separator`){if(e.section&&this._collapsedSections.has(e.section))continue;i.push(e);continue}if(e.isSectionToggle&&e.section){let t=this._collapsedSections.has(e.section);i.push({...e,group:{...e.group,icon:t?Mr.chevronRight:Mr.chevronDown}});continue}e.section&&this._collapsedSections.has(e.section)||i.push(e)}let s=[],c=!1;for(let e=0;e<i.length;e++)s[e]=c,i[e].kind===`action`&&(c=!0);let l=[],u=!1;for(let e=i.length-1;e>=0;e--){if(i[e].kind===`action`){u=!0;continue}i[e].kind===`separator`&&(l[e]=u,u=!1)}for(let e=i.length-1;e>=0;e--){let t=i[e];if(t.kind!==`separator`)continue;let n=l[e],r=!t.label&&!s[e];(!n||r)&&i.splice(e,1)}this._options?.showGroupTitleOnFirstItem&&this._recomputeGroupTitles(i);let d=this._filterInput&&Lt(this._filterInput);if(this._list.splice(0,this._list.length,i),t&&this._onDidRequestLayout.fire(),d)this._filterInput?.focus(),this._focusCheckedOrFirst();else if(this._hasLaidOut&&o){let e=o.item?.id;if(e){for(let t=0;t<this._list.length;t++)if(this._list.element(t).item?.id===e){this._list.setFocus([t]),this._list.reveal(t),this._list.domFocus();break}}}}get filterContainer(){return this._filterContainer}get footerContainer(){return this._footerContainer}get headerContainer(){return this._headerContainer}get filterInput(){return this._filterInput}focusCondition(e){return!e.disabled&&e.kind===`action`}focus(){if(this._filterInput&&this._options?.focusFilterOnOpen){this._filterInput.focus(),this._focusCheckedOrFirst();return}this._list.domFocus(),this._focusCheckedOrFirst()}clearFocus(){this._list.setFocus([])}getFocusedElement(){let e=this._list.getFocus();if(e.length>0)return this._list.element(e[0])}_focusCheckedOrFirst(){this._suppressHover=!0;try{for(let e=0;e<this._list.length;e++){let t=this._list.element(e);if(t.kind===`action`&&t.item?.checked){this._list.setFocus([e]),this._list.reveal(e);return}}this._list.focusFirst(void 0,this.focusCondition);let e=this._list.getFocus();e.length>0&&this._list.reveal(e[0])}finally{this._suppressHover=!1}}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._filterCts.value?.cancel(),this._filterCts.clear(),this._hideSubmenu()}clearFilter(){return this._filterInput&&this._filterText?(this._filterInput.value=``,this._filterText=``,this._applyOrUpdateFilter(),!0):!1}get hasDynamicHeight(){return this._options?.showFilter?!0:this._allMenuItems.some(e=>e.isSectionToggle)}get lineHeight(){return this._actionLineHeight}_getItemHeight(e){switch(e.kind){case`header`:return this._headerLineHeight;case`separator`:return e.label?this._actionLineHeight:this._separatorLineHeight;default:return e.detail?this._options?.detailItemHeight??48:this._actionLineHeight}}computeFullHeight(){let e=0;for(let t of this._allMenuItems)e+=this._getItemHeight(t);return e}computeListHeight(){let e=this._list.length,t=0;for(let n=0;n<e;n++){let e=this._list.element(n);t+=this._getItemHeight(e)}return t}layout(e,t){this._hasLaidOut=!0,this._list.layout(e,t),this.domNode.style.height=`${e}px`,this._filterContainer&&this._filterContainer.parentElement&&this._filterContainer.parentElement.insertBefore(this._filterContainer,this.domNode)}computeMaxWidth(e){let t=this._list.length,n=Math.max(e,this._options?.minWidth??0),r=this._options?.maxWidth??1/0,i=Math.max(r,n),a=e=>Math.min(Math.max(e,n),i),o=n,s=this._allMenuItems.length;if(s>=50)return a(380);if(s>t){let e=[];for(let n=0;n<t;n++)e.push(this._list.element(n));let n=[...this._allMenuItems];this._list.splice(0,t,n);let r=0;for(let e of n)r+=this._getItemHeight(e);this._list.layout(r);let i=[];for(let e=0;e<n.length;e++){let t=this._getRowElement(e);if(t){t.style.width=`auto`;let r=t.getBoundingClientRect().width;t.style.width=``,i.push(r+this._computeToolbarWidth(n[e]))}}return o=a(Math.max(...i)),this._list.splice(0,n.length,e),o}let c=[];for(let e=0;e<t;e++){let t=this._getRowElement(e);if(t){t.style.width=`auto`;let n=t.getBoundingClientRect().width;t.style.width=``,c.push(n+this._computeToolbarWidth(this._list.element(e)))}}return a(Math.max(...c))}focusPrevious(){if(this._filterInput&&Lt(this._filterInput)){this._list.domFocus();let e=this._list.getFocus();if(e.length>0){this._list.focusPrevious(1,!1,void 0,this.focusCondition);let t=this._list.getFocus();t.length>0&&t[0]>=e[0]?this._filterInput.focus():t.length>0&&this._list.reveal(t[0])}else{this._list.focusLast(void 0,this.focusCondition);let e=this._list.getFocus();e.length>0&&this._list.reveal(e[0])}return}let e=this._list.getFocus();this._list.focusPrevious(1,!0,void 0,this.focusCondition);let t=this._list.getFocus();if(t.length>0){if(this._filterInput&&e.length>0&&t[0]>e[0]){this._list.setFocus([]),this._filterInput.focus();return}this._list.reveal(t[0])}}focusNext(){if(this._filterInput&&Lt(this._filterInput)){if(this._list.domFocus(),this._list.getFocus().length>0){this._list.focusNext(1,!1,void 0,this.focusCondition);let e=this._list.getFocus();e.length>0&&this._list.reveal(e[0])}else{this._list.focusFirst(void 0,this.focusCondition);let e=this._list.getFocus();e.length>0&&this._list.reveal(e[0])}return}let e=this._list.getFocus();this._list.focusNext(1,!0,void 0,this.focusCondition);let t=this._list.getFocus();if(t.length>0){if(this._filterInput&&e.length>0&&t[0]<e[0]){this._list.setFocus([]),this._filterInput.focus();return}this._list.reveal(t[0])}}collapseFocusedSection(){let e=this._getFocusedSection();e&&!this._collapsedSections.has(e)&&this._toggleSection(e)}expandFocusedSection(){let e=this._getFocusedSection();e&&this._collapsedSections.has(e)&&this._toggleSection(e)}toggleFocusedSection(){let e=this._list.getFocus();if(e.length===0)return!1;let t=this._list.element(e[0]);return t.isSectionToggle&&t.section?(this._toggleSection(t.section),!0):!1}_getFocusedSection(){let e=this._list.getFocus();if(e.length===0)return;let t=this._list.element(e[0]);return t.isSectionToggle&&t.section,t.section}acceptSelected(e){let t=this._list.getFocus();if(t.length===0)return;let n=t[0],r=this._list.element(n);if(!this.focusCondition(r))return;let i=e?new dm:new um;this._list.setSelection([n],i)}onListSelection(e){if(!e.elements.length)return;let t=e.elements[0];if(t.isSectionToggle&&t.section){this._list.setSelection([]);let e=t.section;queueMicrotask(()=>{this._toggleSection(e)});return}if(_i(e.browserEvent)){let t=e.browserEvent.target;if($n(t)&&(t.closest(`.action-list-item-toolbar`)||t.closest(`.action-list-submenu-indicator`))){this._list.setSelection([]);return}}if(t.item&&this.focusCondition(t)){let n=e.browserEvent instanceof dm;this._delegate.onSelect(t.item,n&&this._supportsPreview)}else this._list.setSelection([])}onFocus(){let e=this._list.getFocus();if(e.length===0)return;let t=e[0],n=this._list.element(t);this._delegate.onFocus?.(n.item),this._suppressHover||this._showHoverForElement(n,t)}_removeItem(e){let t=this._allMenuItems.indexOf(e);t>=0&&(this._allMenuItems.splice(t,1),this._applyFilter())}_recomputeGroupTitles(e){this._groupTitleByIndex.clear();let t=new Set;for(let n=0;n<e.length;n++){let r=e[n];r.kind===`action`&&r.group?.title&&!t.has(r.group.title)&&(t.add(r.group.title),this._groupTitleByIndex.set(n,r.group.title))}}_computeToolbarWidth(e){let t=e.toolbarActions?.length??0;return e.onRemove&&t++,t===0?0:t*22+6}_getRowElement(e){return this.domNode.ownerDocument.getElementById(this._list.getElementID(e))}_showHoverForElement(e,t){if(this._currentSubmenuElement===e)return;let n=!!e.hover?.content,r=!!e.submenuActions?.length;if(n||r){let n=this._getRowElement(t);n&&this._showSubmenuForElement(e,n);return}this._hideSubmenu()}_showSubmenuForItem(e){let t=this._list.indexOf(e);if(t>=0){let n=this._getRowElement(t);n&&this._showSubmenuForElement(e,n)}}_showSubmenuForElement(e,t){if(this._currentSubmenuElement===e)return;this._submenuDisposables.clear(),this._currentSubmenuElement=e,this._clearSubmenuContainer();let n,r=e.hover?.content;if(r){if($n(r))n=r,e.hover?.disposable&&this._register(e.hover.disposable);else{let t=typeof r==`string`?new hf(r):r,i=this._options?.linkHandler,a=Zr(t,{actionHandler:t=>{let n=cr.parse(t);i?i(n,e):this._openerService.open(n,{allowCommands:!0})}});this._submenuDisposables.add(a),n=a.element}n.classList.add(`action-list-submenu-hover-header`),e.submenuActions?.length&&n.classList.add(`has-submenu`),this._submenuContainer.appendChild(n)}let i=!!e.submenuActions?.length;this._submenuContainer.style.display=``,this._submenuContainer.style.position=`absolute`,this._submenuContainer.removeAttribute(`role`);let a=t.getBoundingClientRect(),o=this.domNode.getBoundingClientRect(),s=dr(this.domNode),c=0,l=n?n.offsetWidth:0;if(i){let t=[],n=e.submenuActions.filter(e=>e instanceof Gu).filter(e=>e.actions.length>0);for(let e=0;e<n.length;e++){let r=n[e];r.label&&t.push({kind:`header`,group:{title:r.label},label:r.label});for(let e=0;e<r.actions.length;e++){let n=r.actions[e],i=n,a=i.icon??fi.fromId(n.checked?Mr.check.id:Mr.blank.id),o=i.hoverContent;t.push({item:n,kind:`action`,label:n.label,description:n.tooltip||void 0,group:{title:``,icon:a},hideIcon:!1,hover:o?{content:o}:{},onRemove:i.onRemove})}e<n.length-1&&t.push({kind:`separator`,label:``})}for(let n of e.submenuActions)if(!(n instanceof Gu)){let e=n;t.push({item:n,kind:`action`,label:n.label,description:n.tooltip||void 0,group:{title:``},hideIcon:!1,hover:{},onRemove:e.onRemove})}let r=this._submenuDisposables.add(this._instantiationService.createInstance(im,`submenu`,!1,t,{onHide:()=>{},onSelect:e=>{e.run();let t=this._currentSubmenuElement?.item;this._hideSubmenu(),t&&this._delegate.onSelect(t),this.hide()}},void 0,void 0));this._submenuContainer.appendChild(r.domNode),this._currentSubmenuWidget=r,r.clearFocus(),c=r.computeListHeight(),r.layout(c);let i=r.computeMaxWidth(0);l=Math.max(l,i),r.layout(c,l),r.domNode.style.width=`${l}px`,this._submenuDisposables.add(po(r.domNode,`keydown`,e=>{if(e.key===`ArrowLeft`||e.key===`Escape`)Ms.stop(e,!0),this._hideSubmenu(),this._list.domFocus();else if(e.key===`Enter`){Ms.stop(e,!0);let t=r.getFocusedElement();if(t?.item){t.item.run();let e=this._currentSubmenuElement?.item;this._hideSubmenu(),e&&this._delegate.onSelect(e),this.hide()}}else e.key===`ArrowDown`?(Ms.stop(e,!0),r.focusNext()):e.key===`ArrowUp`&&(Ms.stop(e,!0),r.focusPrevious())}))}let u=s.innerWidth-a.right,d=o.left,f=l+10;u>=f||u>=d?this._submenuContainer.style.left=`${o.right-o.left+4}px`:this._submenuContainer.style.left=`${-f-4}px`;let p=n?n.offsetHeight:0,m=c+p,h=s.innerHeight,g=a.height,_=a.top-o.top+(g-m)/2,v=o.top+_+m;v>h&&(_-=v-h+8),o.top+_<0&&(_=-o.top),this._submenuContainer.style.top=`${_}px`}_hideSubmenu(){this._cancelSubmenuHide(),this._cancelSubmenuShow(),this._submenuDisposables.clear(),this._currentSubmenuWidget=void 0,this._currentSubmenuElement=void 0,this._clearSubmenuContainer(),this._submenuContainer.style.display=`none`}_clearSubmenuContainer(){this._submenuContainer.contains(rt())&&this._list.domFocus(),Bd(this._submenuContainer)}_scheduleSubmenuHide(){this._cancelSubmenuHide(),this._submenuHideTimeout=setTimeout(()=>{this._hideSubmenu()},300)}_cancelSubmenuHide(){this._submenuHideTimeout!==void 0&&(clearTimeout(this._submenuHideTimeout),this._submenuHideTimeout=void 0)}_scheduleSubmenuShow(e,t){this._cancelSubmenuShow(),this._submenuShowTimeout=setTimeout(()=>{this._submenuShowTimeout=void 0;let n=typeof t==`number`?this._getRowElement(t):null;n&&this._showSubmenuForElement(e,n)},500)}_cancelSubmenuShow(){this._submenuShowTimeout!==void 0&&(clearTimeout(this._submenuShowTimeout),this._submenuShowTimeout=void 0)}async onListHover(e){let t=e.element;if(t&&t.item&&this.focusCondition(t)){if($n(e.browserEvent.target)&&e.browserEvent.target.closest(`.action-list-item-toolbar`)!==null){t.submenuActions?.length||this._cancelSubmenuShow(),this._list.setFocus([]);return}let n=!!(t.submenuActions?.length||t.hover?.content);if(n&&(this._suppressHover=!0),this._list.setFocus(typeof e.index==`number`?[e.index]:[]),n&&(this._suppressHover=!1),n){this._currentSubmenuElement===t?(this._cancelSubmenuHide(),this._cancelSubmenuShow()):(this._hideSubmenu(),this._scheduleSubmenuShow(t,e.index));return}if(this._currentSubmenuElement===t?this._cancelSubmenuHide():(this._cancelSubmenuShow(),this._hideSubmenu()),this._delegate.onHover&&!t.disabled&&t.kind===`action`&&this._currentSubmenuElement!==t){let n=await this._delegate.onHover(t.item,this.cts.token),r=n?n.canPreview:void 0;r!==t.canPreview&&(t.canPreview=r,typeof e.index==`number`&&(this._list.splice(e.index,1,[t]),this._list.setFocus([e.index])))}}else t&&t.hover?.content&&typeof e.index==`number`&&(this._currentSubmenuElement===t?(this._cancelSubmenuHide(),this._cancelSubmenuShow()):(this._hideSubmenu(),this._scheduleSubmenuShow(t,e.index)))}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};pm=im=nm([rm(6,Be),rm(7,hr),rm(8,Il)],pm);var mm=class extends Eo{get domNode(){return this._widget.domNode}get filterContainer(){return this._widget.filterContainer}get footerContainer(){return this._widget.footerContainer}get headerContainer(){return this._widget.headerContainer}get filterInput(){return this._widget.filterInput}get anchorPosition(){if(this._showAbove!==void 0)return+!!this._showAbove}constructor(e,t,n,r,i,a,o,s,c,l){super(),this._contextViewService=s,this._layoutService=c,this._lastMinWidth=0,this._hasLaidOut=!1,this._anchor=o,this._widget=this._register(l.createInstance(pm,e,t,n,r,i,a)),this._register(this._widget.onDidRequestLayout(()=>{this._hasLaidOut&&(this.layout(this._lastMinWidth),this._contextViewService.layout())}))}focus(){this._widget.focus()}hide(e){this._widget.hide(e),this._contextViewService.hideContextView()}clearFilter(){return this._widget.clearFilter()}focusPrevious(){this._widget.focusPrevious()}focusNext(){this._widget.focusNext()}collapseFocusedSection(){this._widget.collapseFocusedSection()}expandFocusedSection(){this._widget.expandFocusedSection()}toggleFocusedSection(){return this._widget.toggleFocusedSection()}acceptSelected(e){this._widget.acceptSelected(e)}hasDynamicHeight(){return this._widget.hasDynamicHeight}computeActionWidgetVerticalChromeHeight(){let e=this.domNode.parentElement?.closest(`.action-widget`);if(!e)return 0;let t=dr(e).getComputedStyle(e),n=e=>Number.parseFloat(e)||0;return n(t.paddingTop)+n(t.paddingBottom)+n(t.borderTopWidth)+n(t.borderBottomWidth)}computeHeight(){let e=this._widget.computeListHeight(),t=this._widget.filterContainer?36:0,n=this._widget.footerContainer?32:0,r=this._widget.headerContainer?this._widget.headerContainer.offsetHeight||36:0,i=t+n+r,a=dr(this.domNode),o;if(this.hasDynamicHeight()){let e=a.innerHeight,t=Wc(this._anchor),n=t.top-a.pageYOffset,r=e-n-t.height-30,s=n;if(this._showAbove===void 0){let e=i+this._widget.computeFullHeight();this._showAbove=e>r&&s>r}o=Math.max(0,(this._showAbove?s:r)-this.computeActionWidgetVerticalChromeHeight())}else{let e=this._layoutService.getContainer(a).clientHeight,t=this.domNode.getBoundingClientRect().top;o=t>0?e-t-10:e*.7}let s=Math.floor(a.innerHeight*.6),c=this._widget.lineHeight,l=Math.min(Math.max(o,c*3+i),s);return Math.min(e+i,l)-i}layout(e){this._hasLaidOut=!0,this._lastMinWidth=e;let t=this.computeHeight();this._widget.layout(t);let n=this._widget.computeMaxWidth(e);return this._cachedMaxWidth=n,this._widget.layout(t,this._cachedMaxWidth),this._cachedMaxWidth}};mm=nm([rm(7,Ul),rm(8,zr),rm(9,Il)],mm);function hm(e){return e.replace(/\r\n|\r|\n/g,` `)}var gm=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_m=function(e,t){return function(n,r){t(n,r,e)}};Zi(`actionBar.toggledBackground`,ea,U(1713,`Background color for toggled action items in action bar.`));var vm={Visible:new Qa(`codeActionMenuVisible`,!1,U(1714,`Whether the action widget list is visible`)),FilterFocused:new Qa(`codeActionMenuFilterFocused`,!1,U(1715,`Whether the action widget filter input is focused`))},ym=Mu(`actionWidgetService`),bm=class extends Eo{get isVisible(){return vm.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,n){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=n,this._list=this._register(new Nu)}show(e,t,n,r,i,a,o,s,c){let l=vm.Visible.bindTo(this._contextKeyService),u=this._instantiationService.createInstance(mm,e,t,n,r,s,c,i);this._contextViewService.showContextView({getAnchor:()=>i,render:e=>(l.set(!0),this._renderWidget(e,u,o??[])),onHide:e=>{l.reset(),this._onWidgetClosed(e)},get anchorPosition(){return u.anchorPosition}},a,!1)}acceptSelected(e){this._list.value?.acceptSelected(e)}focusPrevious(){this._list?.value?.focusPrevious()}focusNext(){this._list?.value?.focusNext()}collapseSection(){this._list?.value?.collapseFocusedSection()}expandSection(){this._list?.value?.expandFocusedSection()}toggleSection(){return this._list?.value?.toggleFocusedSection()??!1}clearFilter(){return this._list?.value?.clearFilter()??!1}hide(e){this._list.value?.hide(e),this._list.clear()}_renderWidget(e,t,n){let r=document.createElement(`div`);if(r.classList.add(`action-widget`),e.appendChild(r),this._list.value=t,this._list.value)this._list.value.headerContainer&&r.appendChild(this._list.value.headerContainer),this._list.value.filterContainer&&r.appendChild(this._list.value.filterContainer),r.appendChild(this._list.value.domNode),this._list.value.footerContainer&&r.appendChild(this._list.value.footerContainer);else throw Error(`List has no value`);let i=new Ll,a=this._list.value.headerContainer;a&&i.add(Gs(a,e=>e.preventDefault()));let o=document.createElement(`div`),s=e.appendChild(o);s.classList.add(`context-view-block`),i.add(Gs(s,e=>e.stopPropagation()));let c=document.createElement(`div`),l=e.appendChild(c);l.classList.add(`context-view-pointerBlock`),i.add(po(l,Yl.POINTER_MOVE,()=>l.remove())),i.add(Gs(l,()=>l.remove()));let u=0;if(n.length){let e=this._createActionBar(`.action-widget-action-bar`,n);e&&(r.appendChild(e.getContainer().parentElement),i.add(e),u=e.getContainer().offsetWidth)}let d=this._list.value?.layout(u);r.style.width=`${d}px`,this._list.value?.focus();let f=vm.FilterFocused.bindTo(this._contextKeyService);if(i.add({dispose:()=>f.reset()}),this._list.value?.filterInput){let e=this._list.value.filterInput;i.add(po(e,`focus`,()=>f.set(!0))),i.add(po(e,`blur`,()=>f.set(!1)))}let p=i.add(Vn(e));return i.add(p.onDidBlur(()=>{let e=rt();e?.closest(`.action-widget-hover`)||e?.closest(`.action-list-submenu-panel`)||this.hide(!0)})),i}_createActionBar(e,t){if(!t.length)return;let n=id(e),r=new _a(n);return r.push(t,{icon:!1,label:!0}),r}_onWidgetClosed(e){this._list.value?.hide(e)}};bm=gm([_m(0,Ul),_m(1,In),_m(2,Il)],bm),$u(ym,bm,1);var xm=1100;aa(class extends Tn{constructor(){super({id:`hideCodeActionWidget`,title:z(1716,`Hide action widget`),precondition:vm.Visible,keybinding:{weight:xm,primary:9,secondary:[1033]}})}run(e){e.get(ym).hide(!0)}}),aa(class extends Tn{constructor(){super({id:`clearFilterCodeActionWidget`,title:z(1717,`Clear action widget filter`),precondition:hu.and(vm.Visible,vm.FilterFocused),keybinding:{weight:1101,primary:9}})}run(e){let t=e.get(ym);t instanceof bm&&(t.clearFilter()||t.hide(!0))}}),aa(class extends Tn{constructor(){super({id:`selectPrevCodeAction`,title:z(1718,`Select previous action`),precondition:vm.Visible,keybinding:{weight:xm,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){let t=e.get(ym);t instanceof bm&&t.focusPrevious()}}),aa(class extends Tn{constructor(){super({id:`selectNextCodeAction`,title:z(1719,`Select next action`),precondition:vm.Visible,keybinding:{weight:xm,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){let t=e.get(ym);t instanceof bm&&t.focusNext()}}),aa(class extends Tn{constructor(){super({id:`collapseSectionCodeAction`,title:z(1720,`Collapse section`),precondition:hu.and(vm.Visible,vm.FilterFocused.negate()),keybinding:{weight:xm,primary:15}})}run(e){let t=e.get(ym);t instanceof bm&&t.collapseSection()}}),aa(class extends Tn{constructor(){super({id:`expandSectionCodeAction`,title:z(1721,`Expand section`),precondition:hu.and(vm.Visible,vm.FilterFocused.negate()),keybinding:{weight:xm,primary:17}})}run(e){let t=e.get(ym);t instanceof bm&&t.expandSection()}}),aa(class extends Tn{constructor(){super({id:`toggleSectionCodeAction`,title:z(1722,`Toggle section`),precondition:hu.and(vm.Visible,vm.FilterFocused.negate()),keybinding:{weight:xm,primary:10}})}run(e){let t=e.get(ym);t instanceof bm&&(t.toggleSection()||t.acceptSelected())}}),aa(class extends Tn{constructor(){super({id:am,title:z(1723,`Accept selected action`),precondition:vm.Visible,keybinding:{weight:xm,primary:3,secondary:[2137]}})}run(e){let t=e.get(ym);t instanceof bm&&t.acceptSelected()}}),aa(class extends Tn{constructor(){super({id:om,title:z(1724,`Preview selected action`),precondition:vm.Visible,keybinding:{weight:xm,primary:2051}})}run(e){let t=e.get(ym);t instanceof bm&&t.acceptSelected(!0)}});var Sm=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cm=function(e,t){return function(n,r){t(n,r,e)}},wm,Tm=class extends Eo{static{wm=this}static{this.baseId=`editor.widget.postEditWidget`}constructor(e,t,n,r,i,a,o,s,c,l,u){super(),this.typeId=e,this.editor=t,this.showCommand=r,this.range=i,this.edits=a,this.onSelectNewEdit=o,this.additionalActions=s,this._keybindingService=l,this._actionWidgetService=u,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=n.bindTo(c),this.visibleContext.set(!0),this._register(Ns(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Ns((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(e=>{this.dispose()})),this._register(Ku.runAndSubscribe(l.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){this.button.element.title=this._keybindingService.appendKeybinding(this.showCommand.label,this.showCommand.id)}create(){this.domNode=id(`.post-edit-widget`),this.button=this._register(new Ua(this.domNode,{supportIcons:!0})),this.button.label=`$(insert)`,this._register(po(this.domNode,Yl.CLICK,()=>this.showSelector()))}getId(){return wm.baseId+`.`+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){let e=mt(this.button.element),t={x:e.left+e.width,y:e.top+e.height};this._actionWidgetService.show(`postEditWidget`,!1,this.edits.allEdits.map((e,t)=>({kind:`action`,item:e,label:e.title,disabled:!1,canPreview:!1,group:{title:``,icon:fi.fromId(t===this.edits.activeEditIndex?Mr.check.id:Mr.blank.id)}})),{onHide:()=>{this.editor.focus()},onSelect:e=>{this._actionWidgetService.hide(!1);let t=this.edits.allEdits.findIndex(t=>t===e);if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}},t,this.editor.getDomNode()??void 0,this.additionalActions)}};Tm=wm=Sm([Cm(8,In),Cm(9,Be),Cm(10,ym)],Tm);var Em=class extends Eo{constructor(e,t,n,r,i,a,o,s){super(),this._id=e,this._editor=t,this._visibleContext=n,this._showCommand=r,this._getAdditionalActions=i,this._instantiationService=a,this._bulkEditService=o,this._notificationService=s,this._currentWidget=this._register(new Nu),this._register(Ku.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,n,r,i){if(!e.length||!this._editor.hasModel())return;let a=this._editor.getModel(),o=t.allEdits.at(t.activeEditIndex);if(!o)return;let s=async a=>{let o=this._editor.getModel();o&&(await o.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:a,allEdits:t.allEdits},n,r,i))},c=(r,i)=>{lu(r)||(this._notificationService.error(i),n&&this.show(e[0],t,s))},l=new tc(this._editor,3,void 0,i),u;try{u=await mf(r(o,l.token),l.token)}catch(e){return c(e,U(976,`Error resolving edit '{0}':
|
|
4
4
|
{1}`,o.title,tm(e)))}finally{l.dispose()}if(i.isCancellationRequested)return;let d=Xp(a.uri,e,u),f=e[0],p=a.deltaDecorations([],[{range:f,options:{description:`paste-line-suffix`,stickiness:0}}]);this._editor.focus();let m,h;try{m=await this._bulkEditService.apply(d,{editor:this._editor,token:i}),h=a.getDecorationRange(p[0])}catch(e){return c(e,U(977,`Error applying edit '{0}':
|
|
5
5
|
{1}`,o.title,tm(e)))}finally{a.deltaDecorations(p,[])}i.isCancellationRequested||n&&m.isApplied&&t.allEdits.length>1&&this.show(h??f,t,s)}show(e,t,n){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(Tm,this._id,this._editor,this._visibleContext,this._showCommand,e,t,n,this._getAdditionalActions()))}clear(){this._currentWidget.clear()}tryShowSelector(){this._currentWidget.value?.showSelector()}};Em=Sm([Cm(5,Il),Cm(6,rs),Cm(7,Ut)],Em);var Dm=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Om=function(e,t){return function(n,r){t(n,r,e)}},km,Am=`editor.changePasteType`,jm=`editor.pasteAs.preferences`,Mm=new Qa(`pasteWidgetVisible`,!1,U(956,`Whether the paste widget is showing`)),Nm=`application/vnd.code.copymetadata`,Pm=class extends Eo{static{km=this}static{this.ID=`editor.contrib.copyPasteActionController`}static get(e){return e.getContribution(km.ID)}constructor(e,t,n,r,i,a,o,s,c,l){super(),this._logService=n,this._bulkEditService=r,this._clipboardService=i,this._commandService=a,this._configService=o,this._languageFeaturesService=s,this._quickInputService=c,this._progressService=l,this._editor=e,this._register(e.onWillCopy(e=>this.handleCopy(e))),this._register(e.onWillCut(e=>this.handleCopy(e))),this._register(e.onWillPaste(e=>this.handlePaste(e))),this._pasteProgressManager=this._register(new bp(`pasteIntoEditor`,e,t)),this._postPasteWidgetManager=this._register(t.createInstance(Em,`pasteIntoEditor`,e,Mm,{id:Am,label:U(957,`Show paste options...`)},()=>km._configureDefaultAction?[km._configureDefaultAction]:[]))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}async pasteAs(e){this._logService.trace(`CopyPasteController.pasteAs`),this._editor.focus();try{this._logService.trace(`Before calling editor.action.clipboardPasteAction`),this._pasteAsActionContext={preferred:e},await this._commandService.executeCommand(`editor.action.clipboardPasteAction`)}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(97).enabled}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){if(this._logService.trace(`CopyPasteController#handleCopy`),!this._editor.hasTextFocus()||(this._clipboardService.clearInternalState?.(),!this.isPasteAsEnabled()))return;let t=this._editor.getModel(),n=this._editor._getViewModel(),r=this._editor.getSelections();if(!t||!n||!r?.length)return;let i={multicursorText:e.dataToCopy.multicursorText??null,pasteOnNewLine:e.dataToCopy.isFromEmptySelection,mode:null},a=this._languageFeaturesService.documentPasteEditProvider.ordered(t).filter(e=>!!e.prepareDocumentPaste);if(!a.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:i});return}let o=new Ro,s=a.flatMap(e=>e.copyMimeTypes??[]),c=Ad();this.setCopyMetadata(e.clipboardData,{id:c,providerCopyMimeTypes:s,defaultPastePayload:i});let l=a.map(n=>({providerMimeTypes:n.copyMimeTypes,operation:Bt(r=>n.prepareDocumentPaste(t,e.dataToCopy.sourceRanges,o,r).catch(e=>{console.error(e)}))}));km._currentCopyOperation?.operations.forEach(e=>e.operation.cancel()),km._currentCopyOperation={handle:c,operations:l}}async handlePaste(e){if(this._logService.trace(`CopyPasteController#handlePaste for id : `,e.metadata?.id),!this._editor.hasTextFocus())return;let t=e.toExternalVSDataTransfer();if(!t)return;t.delete(Nm),wp.get(this._editor)?.closeMessage(),this._currentPasteOperation?.cancel(),this._currentPasteOperation=void 0;let n=this._editor.getModel(),r=this._editor.getSelections();if(!r?.length||!n||this._editor.getOption(104)||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;let i=this.fetchCopyMetadata(e);this._logService.trace(`CopyPasteController#handlePaste with metadata : `,i?.id,` and text.length : `,e.clipboardData.getData(`text/plain`).length);let a=Array.from(e.clipboardData.files).map(e=>e.type),o=[...e.clipboardData.types,...a,...i?.providerCopyMimeTypes??[],Ds.uriList],s=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(e=>{let t=this._pasteAsActionContext?.preferred;return t&&!this.providerMatchesPreference(e,t)?!1:e.pasteMimeTypes?.some(e=>ji(e,o))});if(!s.length){this._pasteAsActionContext?.preferred&&(this.showPasteAsNoEditMessage(r,this._pasteAsActionContext.preferred),e.setHandled());return}e.setHandled(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,s,r,t,i):this.doPasteInline(s,r,t,i,e.browserEvent)}showPasteAsNoEditMessage(e,t){let n=`only`in t?t.only.value:`preferences`in t?t.preferences.length?t.preferences.map(e=>e.value).join(`, `):U(958,`empty`):t.providerId;wp.get(this._editor)?.showMessage(U(959,`No paste edits for '{0}' found`,n),e[0].getStartPosition())}doPasteInline(e,t,n,r,i){this._logService.trace(`CopyPasteController#doPasteInline`);let a=this._editor;if(!a.hasModel())return;let o=new tc(a,3,void 0),s=Bt(async a=>{let c=this._editor;if(!c.hasModel())return;let l=c.getModel(),u=new Ll,d=u.add(new Aa(a));u.add(o.token.onCancellationRequested(()=>d.cancel()));let f=d.token;try{if(await this.mergeInDataFromCopy(e,n,r,f),f.isCancellationRequested)return;let a=e.filter(e=>this.isSupportedPasteProvider(e,n));if(!a.length||a.length===1&&a[0]instanceof Ap)return this.applyDefaultPasteHandler(n,r,f,i);let o={triggerKind:So.Automatic},s=await this.getPasteEdits(a,n,l,t,o,f);if(u.add(s),f.isCancellationRequested)return;if(s.edits.length===1&&s.edits[0].provider instanceof Ap)return this.applyDefaultPasteHandler(n,r,f,i);if(s.edits.length){let e=c.getOption(97).showPasteSelector===`afterPaste`;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:this.getInitialActiveEditIndex(l,s.edits),allEdits:s.edits},e,async(e,n)=>{if(!e.provider.resolveDocumentPasteEdit)return e;let r=e.provider.resolveDocumentPasteEdit(e,n),i=new Le,a=await this._pasteProgressManager.showWhile(t[0].getEndPosition(),U(960,`Resolving paste edit for '{0}'. Click to cancel`,e.title),bi(Promise.race([i.p,r]),n),{cancel:()=>i.cancel()},0);return a&&(e.insertText=a.insertText,e.additionalEdit=a.additionalEdit),e},f)}await this.applyDefaultPasteHandler(n,r,f,i)}finally{u.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}});this._pasteProgressManager.showWhile(t[0].getEndPosition(),U(961,`Running paste handlers. Click to cancel and do basic paste`),s,{cancel:async()=>{s.cancel(),!o.token.isCancellationRequested&&await this.applyDefaultPasteHandler(n,r,o.token,i)}}).finally(()=>{o.dispose()}),this._currentPasteOperation=s}showPasteAsPick(e,t,n,r,i){this._logService.trace(`CopyPasteController#showPasteAsPick`);let a=Bt(async o=>{let s=this._editor;if(!s.hasModel())return;let c=s.getModel(),l=new Ll,u=l.add(new tc(s,3,void 0,o));try{if(await this.mergeInDataFromCopy(t,r,i,u.token),u.token.isCancellationRequested)return;let a=t.filter(t=>this.isSupportedPasteProvider(t,r,e));e&&(a=a.filter(t=>this.providerMatchesPreference(t,e)));let o={triggerKind:So.PasteAs,only:e&&`only`in e?e.only:void 0},s=l.add(await this.getPasteEdits(a,r,c,n,o,u.token));if(u.token.isCancellationRequested)return;if(e&&(s={edits:s.edits.filter(t=>`only`in e?e.only.contains(t.kind):`preferences`in e?e.preferences.some(e=>e.contains(t.kind)):e.providerId===t.provider.id),dispose:s.dispose}),!s.edits.length){e&&this.showPasteAsNoEditMessage(n,e);return}let d;if(e)d=s.edits.at(0);else{let e={id:`editor.pasteAs.default`,label:U(962,`Configure default paste action`),edit:void 0},t=await this._quickInputService.pick([...s.edits.map(e=>({label:e.title,description:e.kind?.value,edit:e})),...km._configureDefaultAction?[ff({type:`separator`}),{label:km._configureDefaultAction.label,edit:void 0}]:[]],{placeHolder:U(963,`Select Paste Action`)});if(t===e){km._configureDefaultAction?.run();return}d=t?.edit}if(!d)return;let f=Xp(c.uri,n,d);await this._bulkEditService.apply(f,{editor:this._editor})}finally{l.dispose(),this._currentPasteOperation===a&&(this._currentPasteOperation=void 0)}});this._progressService.withProgress({location:10,title:U(964,`Running paste handlers`)},()=>a)}setCopyMetadata(e,t){this._logService.trace(`CopyPasteController#setCopyMetadata new id : `,t.id),e.setData(Nm,JSON.stringify(t))}fetchCopyMetadata(e){this._logService.trace(`CopyPasteController#fetchCopyMetadata`);let t=e.clipboardData.getData(Nm);if(t)try{return JSON.parse(t)}catch{return}if(e.metadata)return{defaultPastePayload:{mode:e.metadata.mode,multicursorText:e.metadata.multicursorText??null,pasteOnNewLine:!!e.metadata.isFromEmptySelection}}}async mergeInDataFromCopy(e,t,n,r){if(this._logService.trace(`CopyPasteController#mergeInDataFromCopy with metadata : `,n?.id),n?.id&&km._currentCopyOperation?.handle===n.id){let n=km._currentCopyOperation.operations.filter(t=>e.some(e=>e.pasteMimeTypes.some(e=>ji(e,t.providerMimeTypes)))).map(e=>e.operation),i=await Promise.all(n);if(r.isCancellationRequested)return;for(let e of i.reverse())if(e)for(let[n,r]of e)t.replace(n,r)}if(!t.has(Ds.uriList)){let e=await this._clipboardService.readResources();if(r.isCancellationRequested)return;e.length&&t.append(Ds.uriList,Hd(ef.create(e)))}}async getPasteEdits(e,t,n,r,i,a){let o=new Ll,s=await bi(Promise.all(e.map(async e=>{try{let s=await e.provideDocumentPasteEdits?.(n,r,t,i,a);return s&&o.add(s),s?.edits?.map(t=>({...t,provider:e}))}catch(e){lu(e)||console.error(e);return}})),a);return{edits:Zp(qu(s??[]).flat().filter(e=>!i.only||i.only.contains(e.kind))),dispose:()=>o.dispose()}}async applyDefaultPasteHandler(e,t,n,r){let i=await(e.get(Ds.text)??e.get(`text`))?.asString()??``;if(n.isCancellationRequested)return;let a={clipboardEvent:r,text:i,pasteOnNewLine:t?.defaultPastePayload.pasteOnNewLine??!1,multicursorText:t?.defaultPastePayload.multicursorText??null,mode:null};this._logService.trace(`CopyPasteController#applyDefaultPasteHandler for id : `,t?.id),this._editor.trigger(`keyboard`,`paste`,a)}isSupportedPasteProvider(e,t,n){return e.pasteMimeTypes?.some(e=>t.matches(e))?!n||this.providerMatchesPreference(e,n):!1}providerMatchesPreference(e,t){return`only`in t?e.providedPasteEditKinds.some(e=>t.only.contains(e)):`preferences`in t?e.providedPasteEditKinds.some(e=>t.preferences.some(t=>t.contains(e))):e.id===t.providerId}getInitialActiveEditIndex(e,t){let n=this._configService.getValue(jm,{resource:e.uri});for(let e of Array.isArray(n)?n:[]){let n=new hp(e),r=t.findIndex(e=>n.contains(e.kind));if(r>=0)return r}return 0}};Pm=km=Dm([Om(1,Il),Om(2,Cd),Om(3,rs),Om(4,rl),Om(5,so),Om(6,Ou),Om(7,gl),Om(8,st),Om(9,wd)],Pm);var Fm=`9_cutcopypaste`,Im=Lo||document.queryCommandSupported(`cut`),Lm=Lo||document.queryCommandSupported(`copy`),Rm=navigator.clipboard===void 0||wa?document.queryCommandSupported(`paste`):!0;function zm(e){return e.register(),e}var Bm=Im?zm(new ol({id:`editor.action.clipboardCutAction`,precondition:void 0,kbOpts:Lo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:wi.MenubarEditMenu,group:`2_ccp`,title:U(849,`Cu&&t`),order:1},{menuId:wi.EditorContext,group:Fm,title:U(850,`Cut`),when:G.writable,order:1},{menuId:wi.CommandPalette,group:``,title:U(851,`Cut`),order:1},{menuId:wi.SimpleEditorContext,group:Fm,title:U(852,`Cut`),when:G.writable,order:1}]})):void 0,Vm=Lm?zm(new ol({id:`editor.action.clipboardCopyAction`,precondition:void 0,kbOpts:Lo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:wi.MenubarEditMenu,group:`2_ccp`,title:U(853,`&&Copy`),order:2},{menuId:wi.EditorContext,group:Fm,title:U(854,`Copy`),order:2},{menuId:wi.CommandPalette,group:``,title:U(855,`Copy`),order:1},{menuId:wi.SimpleEditorContext,group:Fm,title:U(856,`Copy`),order:2}]})):void 0;Qe.appendMenuItem(wi.MenubarEditMenu,{submenu:wi.MenubarCopy,title:z(861,`Copy As`),group:`2_ccp`,order:3}),Qe.appendMenuItem(wi.EditorContext,{submenu:wi.EditorContextCopy,title:z(862,`Copy As`),group:Fm,order:3}),Qe.appendMenuItem(wi.EditorContext,{submenu:wi.EditorContextShare,title:z(863,`Share`),group:`11_share`,order:-1,when:hu.and(hu.notEquals(`resourceScheme`,`output`),G.editorTextFocus)}),Qe.appendMenuItem(wi.ExplorerContext,{submenu:wi.ExplorerContextShare,title:z(864,`Share`),group:`11_share`,order:-1});var Hm=Rm?zm(new ol({id:`editor.action.clipboardPasteAction`,precondition:void 0,kbOpts:Lo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:wi.MenubarEditMenu,group:`2_ccp`,title:U(857,`&&Paste`),order:4},{menuId:wi.EditorContext,group:Fm,title:U(858,`Paste`),when:G.writable,order:4},{menuId:wi.CommandPalette,group:``,title:U(859,`Paste`),order:1},{menuId:wi.SimpleEditorContext,group:Fm,title:U(860,`Paste`),when:G.writable,order:4}]})):void 0,Um=class extends Wl{constructor(){super({id:`editor.action.clipboardCopyWithSyntaxHighlightingAction`,label:z(865,`Copy with Syntax Highlighting`),precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,weight:100}})}run(e,t){let n=e.get(Cd),r=e.get(rl);n.trace(`ExecCommandCopyWithSyntaxHighlightingAction#run`),t.hasModel()&&(!t.getOption(45)&&t.getSelection().isEmpty()||(pl.forceCopyWithSyntaxHighlighting=!0,t.focus(),n.trace(`ExecCommandCopyWithSyntaxHighlightingAction (before execCommand copy)`),Wm(t,r),n.trace(`ExecCommandCopyWithSyntaxHighlightingAction (after execCommand copy)`),pl.forceCopyWithSyntaxHighlighting=!1))}};function Wm(e,t){if(pl.electronBugWorkaroundCopyEventHasFired=!1,e.getContainerDomNode().ownerDocument.execCommand(`copy`),Lo&&pl.electronBugWorkaroundCopyEventHasFired===!1){let{dataToCopy:n}=qs(e._getViewModel(),void 0,wa);t.writeText(n.text)}}function Gm(e,t){e&&(e.addImplementation(1e4,`code-editor`,(e,n)=>{let r=e.get(Cd),i=e.get(rl);r.trace(`registerExecCommandImpl (addImplementation code-editor for : `,t,`)`);let a=e.get(To).getFocusedCodeEditor();if(a&&a.hasTextFocus()&&a.hasModel()){let e=a.getOption(45),n=a.getSelection();return n&&n.isEmpty()&&!e||(a.getOption(170)&&t===`cut`?(Km(a),r.trace(`registerExecCommandImpl (before execCommand copy)`),Wm(a,i),a.trigger(void 0,`cut`,void 0),r.trace(`registerExecCommandImpl (after execCommand copy)`)):(Km(a),r.trace(`registerExecCommandImpl (before execCommand `+t+`)`),t===`copy`?Wm(a,i):a.getContainerDomNode().ownerDocument.execCommand(t),r.trace(`registerExecCommandImpl (after execCommand `+t+`)`))),!0}return!1}),e.addImplementation(0,`generic-dom`,(e,n)=>{let r=e.get(Cd);return r.trace(`registerExecCommandImpl (addImplementation generic-dom for : `,t,`)`),r.trace(`registerExecCommandImpl (before execCommand `+t+`)`),ki().execCommand(t),r.trace(`registerExecCommandImpl (after execCommand `+t+`)`),!0}))}function Km(e){if(e.getOption(170)){let t=Kc.get(e.getId());t&&t.handleWillCopy()}}Gm(Bm,`cut`),Gm(Vm,`copy`),Hm&&(Hm.addImplementation(1e4,`code-editor`,(e,t)=>{let n=e.get(Cd);n.trace(`registerExecCommandImpl (addImplementation code-editor for : paste)`);let r=e.get(To),i=e.get(rl),a=r.getFocusedCodeEditor();if(a&&a.hasModel()&&a.hasTextFocus()){if(a.getOption(170)){let e=Kc.get(a.getId());e&&e.handleWillPaste()}n.trace(`registerExecCommandImpl (before triggerPaste)`);let e=i.triggerPaste(Od().vscodeWindowId);return e?(n.trace(`registerExecCommandImpl (triggerPaste defined)`),e.then(async()=>(n.trace(`registerExecCommandImpl (after triggerPaste)`),Pm.get(a)?.finishedPaste()??Promise.resolve()))):(n.trace(`registerExecCommandImpl (triggerPaste undefined)`),!Vd||(n.trace(`registerExecCommandImpl (Paste handling on web)`),(async()=>{let e=await i.readText();if(e!==``){let t=ac.INSTANCE.get(e),r=!1,i=null,o=null;t&&(r=a.getOption(45)&&!!t.isFromEmptySelection,i=t.multicursorText===void 0?null:t.multicursorText,o=t.mode),n.trace(`registerExecCommandImpl (clipboardText.length : `,e.length,` id : `,t?.id,`)`),a.trigger(`keyboard`,`paste`,{text:e,pasteOnNewLine:r,multicursorText:i,mode:o})}})()))}return!1}),Hm.addImplementation(0,`generic-dom`,(e,t)=>(e.get(Cd).trace(`registerExecCommandImpl (addImplementation generic-dom for : paste)`),e.get(rl).triggerPaste(Od().vscodeWindowId)??!1))),Lm&&hs(Um);var qm=new class{constructor(){this.QuickFix=new hp(`quickfix`),this.Refactor=new hp(`refactor`),this.RefactorExtract=this.Refactor.append(`extract`),this.RefactorInline=this.Refactor.append(`inline`),this.RefactorMove=this.Refactor.append(`move`),this.RefactorRewrite=this.Refactor.append(`rewrite`),this.Notebook=new hp(`notebook`),this.Source=new hp(`source`),this.SourceOrganizeImports=this.Source.append(`organizeImports`),this.SourceFixAll=this.Source.append(`fixAll`),this.SurroundWith=this.Refactor.append(`surround`)}},Jm;(function(e){e.Refactor=`refactor`,e.RefactorPreview=`refactor preview`,e.Lightbulb=`lightbulb`,e.Default=`other (default)`,e.SourceAction=`source action`,e.QuickFix=`quick fix action`,e.FixAll=`fix all`,e.OrganizeImports=`organize imports`,e.AutoFix=`auto fix`,e.QuickFixHover=`quick fix hover window`,e.OnSave=`save participants`,e.ProblemsView=`problems view`})(Jm||={});function Ym(e,t){return!(e.include&&!e.include.intersects(t)||e.excludes&&e.excludes.some(n=>Zm(t,n,e.include))||!e.includeSourceActions&&qm.Source.contains(t))}function Xm(e,t){let n=t.kind?new hp(t.kind):void 0;return!(e.include&&(!n||!e.include.contains(n))||e.excludes&&n&&e.excludes.some(t=>Zm(n,t,e.include))||!e.includeSourceActions&&n&&qm.Source.contains(n)||e.onlyIncludePreferredActions&&!t.isPreferred)}function Zm(e,t,n){return!(!t.contains(e)||n&&t.contains(n))}var Qm=class e{static fromUser(t,n){return!t||typeof t!=`object`?new e(n.kind,n.apply,!1):new e(e.getKindFromUser(t,n.kind),e.getApplyFromUser(t,n.apply),e.getPreferredUser(t))}static getApplyFromUser(e,t){switch(typeof e.apply==`string`?e.apply.toLowerCase():``){case`first`:return`first`;case`never`:return`never`;case`ifsingle`:return`ifSingle`;default:return t}}static getKindFromUser(e,t){return typeof e.kind==`string`?new hp(e.kind):t}static getPreferredUser(e){return typeof e.preferred==`boolean`&&e.preferred}constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}},$m=class{constructor(e,t,n){this.action=e,this.provider=t,this.highlightRange=n}async resolve(e){if(this.provider?.resolveCodeAction&&!this.action.edit){let t;try{t=await this.provider.resolveCodeAction(this.action,e)}catch(e){Ka(e)}t&&(this.action.edit=t.edit)}return this}},eh=`editor.action.codeAction`,th=`editor.action.quickFix`,nh=`editor.action.autoFix`,rh=`editor.action.refactor`,ih=`editor.action.sourceAction`,ah=`editor.action.organizeImports`,oh=`editor.action.fixAll`,sh=1e3,ch=class e extends Eo{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:t},{action:n}){return t.isAI&&!n.isAI?1:!t.isAI&&n.isAI?-1:Xo(t.diagnostics)?Xo(n.diagnostics)?e.codeActionsPreferredComparator(t,n):-1:Xo(n.diagnostics)?1:e.codeActionsPreferredComparator(t,n)}constructor(t,n,r){super(),this.documentation=n,this._register(r),this.allActions=[...t].sort(e.codeActionsComparator),this.validActions=this.allActions.filter(({action:e})=>!e.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&qm.QuickFix.contains(new hp(e.kind))&&!!e.isPreferred)}get hasAIFix(){return this.validActions.some(({action:e})=>!!e.isAI)}get allAIFixes(){return this.validActions.every(({action:e})=>!!e.isAI)}},lh={actions:[],documentation:void 0};async function uh(e,t,n,r,i,a){let o=r.filter||{},s={...o,excludes:[...o.excludes||[],qm.Notebook]},c={only:o.include?.value,trigger:r.type},l=new Us(t,a),u=dh(e,t,r.type===2?s:o),d=new Ll,f=u.map(async e=>{let r=setTimeout(()=>i.report(e),1250);try{let r=await e.provideCodeActions(t,n,c,l.token);if(l.token.isCancellationRequested)return r?.dispose(),lh;r&&d.add(r);let i=(r?.actions||[]).filter(e=>e&&Xm(o,e)),a=ph(e,i,o.include);return{actions:i.map(t=>new $m(t,e)),documentation:a}}catch(e){if(lu(e))throw e;return Ka(e),lh}finally{clearTimeout(r)}}),p=e.onDidChange(()=>{let n=e.all(t);Do(n,u)||l.cancel()});try{let n=await Promise.all(f),i=n.map(e=>e.actions).flat(),a=new ch(i,[...qu(n.map(e=>e.documentation)),...fh(e,t,r,i)],d);return d.add(a),a}catch(e){throw d.dispose(),e}finally{p.dispose(),l.dispose()}}function dh(e,t,n){return e.all(t).filter(e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some(e=>Ym(n,new hp(e))))}function*fh(e,t,n,r){if(t&&r.length)for(let i of e.all(t))i._getAdditionalMenuItems&&(yield*i._getAdditionalMenuItems?.({trigger:n.type,only:n.filter?.include?.value},r.map(e=>e.action)))}function ph(e,t,n){if(!e.documentation)return;let r=e.documentation.map(e=>({kind:new hp(e.kind),command:e.command}));if(n){let e;for(let t of r)t.kind.contains(n)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return e?.command}for(let e of t)if(e.kind){for(let t of r)if(t.kind.contains(new hp(e.kind)))return t.command}}var mh;(function(e){e.OnSave=`onSave`,e.FromProblemsView=`fromProblemsView`,e.FromCodeActions=`fromCodeActions`,e.FromAILightbulb=`fromAILightbulb`,e.FromProblemsHover=`fromProblemsHover`})(mh||={});async function hh(e,t,n,r,i=sa.None){let a=e.get(rs),o=e.get(so),s=e.get(Wt),c=e.get(Ut),l=e.get(fs);if(s.publicLog2(`codeAction.applyCodeAction`,{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:n}),l.playSignal(ld.codeActionTriggered),await t.resolve(i),!i.isCancellationRequested&&!(t.action.edit?.edits.length&&!(await a.apply(t.action.edit,{editor:r?.editor,label:t.action.title,quotableLabel:t.action.title,code:`undoredo.codeAction`,respectAutoSaveConfig:n!==mh.OnSave,showPreview:r?.preview,reason:Ki.codeAction({kind:t.action.kind,providerId:Pt.fromExtensionId(t.provider?.extensionId)})})).isApplied)){if(t.action.command)try{await o.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(e){let t=gh(e);c.error(typeof t==`string`?t:U(866,`An unknown error occurred while applying the code action`))}setTimeout(()=>l.playSignal(ld.codeActionApplied),sh)}}function gh(e){if(typeof e==`string`)return e;if(e instanceof Error&&typeof e.message==`string`)return e.message}Ba.registerCommand(`_executeCodeActionProvider`,async function(e,t,n,r,i){if(!(t instanceof cr))throw Hn();let{codeActionProvider:a}=e.get(gl),o=e.get(hc).getModel(t);if(!o)throw Hn();let s=ni.isISelection(n)?ni.liftSelection(n):B.isIRange(n)?o.validateRange(n):void 0;if(!s)throw Hn();let c=typeof r==`string`?new hp(r):void 0,l=await uh(a,o,s,{type:1,triggerAction:Jm.Default,filter:{includeSourceActions:!0,include:c}},sf.None,sa.None),u=[],d=Math.min(l.validActions.length,typeof i==`number`?i:0);for(let e=0;e<d;e++)u.push(l.validActions[e].resolve(sa.None));try{return await Promise.all(u),l.validActions.map(e=>e.action)}finally{setTimeout(()=>l.dispose(),100)}});var _h=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vh=function(e,t){return function(n,r){t(n,r,e)}},yh,bh=class{static{yh=this}static{this.codeActionCommands=[rh,eh,ih,ah,oh]}constructor(e){this.keybindingService=e}getResolver(){let e=new _s(()=>this.keybindingService.getKeybindings().filter(e=>yh.codeActionCommands.indexOf(e.command)>=0).filter(e=>e.resolvedKeybinding).map(e=>{let t=e.commandArgs;return e.command===`editor.action.organizeImports`?t={kind:qm.SourceOrganizeImports.value}:e.command===`editor.action.fixAll`&&(t={kind:qm.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...Qm.fromUser(t,{kind:hp.None,apply:`never`})}}));return t=>{if(t.kind)return this.bestKeybindingForCodeAction(t,e.value)?.resolvedKeybinding}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;let n=new hp(e.kind);return t.filter(e=>e.kind.contains(n)).filter(t=>!t.preferred||e.isPreferred).reduceRight((e,t)=>e?e.kind.contains(t.kind)?t:e:t,void 0)}};bh=yh=_h([vh(0,Be)],bh),Zi(`symbolIcon.arrayForeground`,gi,U(1547,`The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.booleanForeground`,gi,U(1548,`The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.classForeground`,{dark:`#EE9D28`,light:`#D67E00`,hcDark:`#EE9D28`,hcLight:`#D67E00`},U(1549,`The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.colorForeground`,gi,U(1550,`The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.constantForeground`,gi,U(1551,`The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.constructorForeground`,{dark:`#B180D7`,light:`#652D90`,hcDark:`#B180D7`,hcLight:`#652D90`},U(1552,`The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.enumeratorForeground`,{dark:`#EE9D28`,light:`#D67E00`,hcDark:`#EE9D28`,hcLight:`#D67E00`},U(1553,`The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.enumeratorMemberForeground`,{dark:`#75BEFF`,light:`#007ACC`,hcDark:`#75BEFF`,hcLight:`#007ACC`},U(1554,`The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.eventForeground`,{dark:`#EE9D28`,light:`#D67E00`,hcDark:`#EE9D28`,hcLight:`#D67E00`},U(1555,`The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.fieldForeground`,{dark:`#75BEFF`,light:`#007ACC`,hcDark:`#75BEFF`,hcLight:`#007ACC`},U(1556,`The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.fileForeground`,gi,U(1557,`The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.folderForeground`,gi,U(1558,`The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.functionForeground`,{dark:`#B180D7`,light:`#652D90`,hcDark:`#B180D7`,hcLight:`#652D90`},U(1559,`The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.interfaceForeground`,{dark:`#75BEFF`,light:`#007ACC`,hcDark:`#75BEFF`,hcLight:`#007ACC`},U(1560,`The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.keyForeground`,gi,U(1561,`The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.keywordForeground`,gi,U(1562,`The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.methodForeground`,{dark:`#B180D7`,light:`#652D90`,hcDark:`#B180D7`,hcLight:`#652D90`},U(1563,`The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.moduleForeground`,gi,U(1564,`The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.namespaceForeground`,gi,U(1565,`The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.nullForeground`,gi,U(1566,`The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.numberForeground`,gi,U(1567,`The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.objectForeground`,gi,U(1568,`The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.operatorForeground`,gi,U(1569,`The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.packageForeground`,gi,U(1570,`The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.propertyForeground`,gi,U(1571,`The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.referenceForeground`,gi,U(1572,`The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.snippetForeground`,gi,U(1573,`The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.stringForeground`,gi,U(1574,`The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.structForeground`,gi,U(1575,`The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.textForeground`,gi,U(1576,`The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.typeParameterForeground`,gi,U(1577,`The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.unitForeground`,gi,U(1578,`The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`)),Zi(`symbolIcon.variableForeground`,{dark:`#75BEFF`,light:`#007ACC`,hcDark:`#75BEFF`,hcLight:`#007ACC`},U(1579,`The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget.`));var xh=Object.freeze({kind:hp.Empty,title:U(902,`More Actions...`)}),Sh=Object.freeze([{kind:qm.QuickFix,title:U(903,`Quick Fix`)},{kind:qm.RefactorExtract,title:U(904,`Extract`),icon:Mr.wrench},{kind:qm.RefactorInline,title:U(905,`Inline`),icon:Mr.wrench},{kind:qm.RefactorRewrite,title:U(906,`Rewrite`),icon:Mr.wrench},{kind:qm.RefactorMove,title:U(907,`Move`),icon:Mr.wrench},{kind:qm.SurroundWith,title:U(908,`Surround With`),icon:Mr.surroundWith},{kind:qm.Source,title:U(909,`Source Action`),icon:Mr.symbolFile},xh]);function Ch(e,t,n){if(!t)return e.map(e=>({kind:`action`,item:e,group:xh,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!e.action.edit?.edits.length}));let r=Sh.map(e=>({group:e,actions:[]}));for(let t of e){let e=t.action.kind?new hp(t.action.kind):hp.None;for(let n of r)if(n.group.kind.contains(e)){n.actions.push(t);break}}let i=[];for(let e of r)if(e.actions.length){i.push({kind:`header`,group:e.group});for(let t of e.actions){let r=e.group;i.push({kind:`action`,item:t,group:t.action.isAI?{title:r.title,kind:r.kind,icon:Mr.sparkle}:r,label:t.action.title,disabled:!!t.action.disabled,keybinding:n(t.action)})}}return i}var wh=new Qa(`supportedCodeAction`,``),Th=class extends Eo{constructor(e,t,n,r=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=r,this._autoTriggerTimer=this._register(new Er),this.ignoreLightbulbOff=!1,this._register(this._markerService.onMarkerChanged(e=>this._onMarkerChanges(e))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(e=>Hr(e,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Jm.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getSelection();if(e.type===1)return t;let n=this._editor.getOption(73).enabled;if(!(n===Rn.Off&&!this.ignoreLightbulbOff)){if(n===Rn.Off||n===Rn.On)return t;if(n===Rn.OnCode){if(!t.isEmpty())return t;let e=this._editor.getModel(),{lineNumber:n,column:r}=t.getPosition(),i=e.getLineContent(n);if(i.length===0)return;if(r===1){if(/\s/.test(i[0]))return}else if(r===e.getLineMaxColumn(n)){if(/\s/.test(i[i.length-1]))return}else if(/\s/.test(i[r-2])&&/\s/.test(i[r-1]))return}return t}}},Eh;(function(e){e.Empty={type:0};class t{constructor(e,t,n){this.trigger=e,this.position=t,this._cancellablePromise=n,this.type=1,this.actions=n.catch(e=>{if(lu(e))return Dh;throw e})}cancel(){this._cancellablePromise.cancel()}}e.Triggered=t})(Eh||={});var Dh=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1}),Oh=class extends Eo{constructor(e,t,n,r,i,a){super(),this._editor=e,this._registry=t,this._markerService=n,this._progressService=i,this._configurationService=a,this._codeActionOracle=this._register(new Nu),this._state=Eh.Empty,this._onDidChangeState=this._register(new bs),this.onDidChangeState=this._onDidChangeState.event,this.codeActionsDisposable=this._register(new Nu),this._disposed=!1,this._ignoreLightbulbOff=!1,this._supportedCodeActions=wh.bindTo(r),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(73)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(Eh.Empty,!0))}_settingEnabledNearbyQuickfixes(){let e=this._editor?.getModel();return this._configurationService?this._configurationService.getValue(`editor.codeActionWidget.includeNearbyQuickFixes`,{resource:e?.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(Eh.Empty);let e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(104)){let t=this._registry.all(e).flatMap(e=>e.providedCodeActionKinds??[]);this._supportedCodeActions.set(t.join(` `));let n=new Th(this._editor,this._markerService,t=>{if(!t){this.setState(Eh.Empty);return}let n=t.selection.getStartPosition(),r=Bt(async n=>{if(this._settingEnabledNearbyQuickfixes()&&t.trigger.type===1&&(t.trigger.triggerAction===Jm.QuickFix||t.trigger.filter?.include?.contains(qm.QuickFix))){let r=await uh(this._registry,e,t.selection,t.trigger,sf.None,n);this.codeActionsDisposable.value=r;let i=[...r.allActions];if(n.isCancellationRequested)return r.dispose(),Dh;let a=r.validActions?.some(e=>e.action.kind&&qm.QuickFix.contains(new hp(e.action.kind))&&!e.action.isAI),o=this._markerService.read({resource:e.uri});if(a){for(let e of r.validActions)e.action.command?.arguments?.some(e=>typeof e==`string`&&e.includes(`_typescript.applyFixAllCodeAction`))&&(e.action.diagnostics=[...o.filter(e=>e.relatedInformation)]);return{validActions:r.validActions,allActions:i,documentation:r.documentation,hasAutoFix:r.hasAutoFix,hasAIFix:r.hasAIFix,allAIFixes:r.allAIFixes,dispose:()=>{this.codeActionsDisposable.value=r}}}if(!a&&o.length>0){let a=t.selection.getPosition(),s=a,c=Number.MAX_VALUE,l=[...r.validActions];for(let u of o){let d=u.endColumn,f=u.endLineNumber,p=u.startLineNumber;if(f===a.lineNumber||p===a.lineNumber){s=new Dn(f,d);let u={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:t.trigger.filter?.include?t.trigger.filter?.include:qm.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:t.trigger.context?.notAvailableMessage||``,position:s}},p=new ni(s.lineNumber,s.column,s.lineNumber,s.column),m=await uh(this._registry,e,p,u,sf.None,n);if(n.isCancellationRequested)return m.dispose(),Dh;if(m.validActions.length!==0){for(let e of m.validActions)e.action.command?.arguments?.some(e=>typeof e==`string`&&e.includes(`_typescript.applyFixAllCodeAction`))&&(e.action.diagnostics=[...o.filter(e=>e.relatedInformation)]);r.allActions.length===0&&i.push(...m.allActions),Math.abs(a.column-d)<c?l.unshift(...m.validActions):l.push(...m.validActions)}c=Math.abs(a.column-d)}}let u=l.filter((e,t,n)=>n.findIndex(t=>t.action.title===e.action.title)===t);return u.sort((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0),{validActions:u,allActions:i,documentation:r.documentation,hasAutoFix:r.hasAutoFix,hasAIFix:r.hasAIFix,allAIFixes:r.allAIFixes,dispose:()=>{this.codeActionsDisposable.value=r}}}}if(t.trigger.type===1){let r=await uh(this._registry,e,t.selection,t.trigger,sf.None,n);return this.codeActionsDisposable.value=r,r}let r=await uh(this._registry,e,t.selection,t.trigger,sf.None,n);return this.codeActionsDisposable.value=r,r});t.trigger.type===1&&this._progressService?.showWhile(r,250);let i=new Eh.Triggered(t.trigger,n,r),a=!1;this._state.type===1&&(a=this._state.trigger.type===1&&i.type===1&&i.trigger.type===2&&this._state.position!==i.position),a?setTimeout(()=>{this.setState(i)},500):this.setState(i)},void 0);n.ignoreLightbulbOff=this._ignoreLightbulbOff,this._codeActionOracle.value=n,this._codeActionOracle.value.trigger({type:2,triggerAction:Jm.Default})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value?.trigger(e),this.codeActionsDisposable.dispose()}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}},kh=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ah=function(e,t){return function(n,r){t(n,r,e)}},jh,Mh=rn(`gutter-lightbulb`,Mr.lightBulb,U(910,`Icon which spawns code actions menu from the gutter when there is no space in the editor.`)),Nh=rn(`gutter-lightbulb-auto-fix`,Mr.lightbulbAutofix,U(911,`Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.`)),Ph=rn(`gutter-lightbulb-sparkle`,Mr.lightbulbSparkle,U(912,`Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.`)),Fh=rn(`gutter-lightbulb-aifix-auto-fix`,Mr.lightbulbSparkleAutofix,U(913,`Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.`)),Ih=rn(`gutter-lightbulb-sparkle-filled`,Mr.sparkleFilled,U(914,`Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.`)),Lh;(function(e){e.Hidden={type:0};class t{constructor(e,t,n,r){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=r,this.type=1}}e.Showing=t})(Lh||={});function Rh(e,t,n,r,i=!1){if(e.validActions.length<=0)return;let a,o=!1;e.allAIFixes?(a=i?Ih:Mr.sparkleFilled,e.validActions.length===1&&(o=!0)):a=e.hasAutoFix?e.hasAIFix?i?Fh:Mr.lightbulbSparkleAutofix:i?Nh:Mr.lightbulbAutofix:e.hasAIFix?i?Ph:Mr.lightbulbSparkle:i?Mh:Mr.lightBulb;let s;return s=o?U(915,`Run: {0}`,e.validActions[0].action.title):e.hasAutoFix&&n?U(916,`Show Code Actions. Preferred Quick Fix Available ({0})`,n):!e.hasAutoFix&&r?U(917,`Show Code Actions ({0})`,r):U(918,`Show Code Actions`),{actions:e,trigger:t,icon:a,autoRun:o,title:s,isGutter:i}}var zh=class extends Eo{static{jh=this}static{this.GUTTER_DECORATION=nu.register({description:`codicon-gutter-lightbulb-decoration`,glyphMarginClassName:fi.asClassName(Mr.lightBulb),glyphMargin:{position:ma.Left},stickiness:1})}static{this.ID=`editor.contrib.lightbulbWidget`}static{this._posPref=[0]}static _computeLightBulbInfo(e,t,n,r){if(e.type===1)return Rh(e.actions,e.trigger,n,r,t)}constructor(e,t){super(),this._editor=e,this._keybindingService=t,this.onlyWithEmptySelection=!1,this._onClick=this._register(new bs),this.onClick=this._onClick.event,this._state=wu(this,Lh.Hidden),this._gutterState=wu(this,Lh.Hidden),this._combinedInfo=cd(this,e=>{let t=this._gutterState.read(e);if(t.type===1)return jh._computeLightBulbInfo(t,!0,this._preferredKbLabel.read(e),this._quickFixKbLabel.read(e));let n=this._state.read(e);if(n.type===1)return jh._computeLightBulbInfo(n,!1,this._preferredKbLabel.read(e),this._quickFixKbLabel.read(e))}),this._iconClasses=[],this.lightbulbClasses=[`codicon-`+Mh.id,`codicon-`+Fh.id,`codicon-`+Nh.id,`codicon-`+Ph.id,`codicon-`+Ih.id],this._preferredKbLabel=wu(this,void 0),this._quickFixKbLabel=wu(this,void 0),this.gutterDecoration=jh.GUTTER_DECORATION,this._domNode=id(`div.lightBulbWidget`),this._domNode.role=`listbox`,this._register(Ac.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(e=>{let t=this._editor.getModel(),n=this._state.get();(n.type!==1||!t||n.editorPosition.lineNumber>=t.getLineCount())&&this.hide();let r=this._gutterState.get();(r.type!==1||!t||r.editorPosition.lineNumber>=t.getLineCount())&&this.gutterHide()})),this._register(_d(this._domNode,e=>{let t=this._state.get();if(t.type!==1)return;this._editor.focus(),e.preventDefault();let{top:n,height:r}=mt(this._domNode),i=this._editor.getOption(75),a=Math.floor(i/3);t.widgetPosition.position!==null&&t.widgetPosition.position.lineNumber<t.editorPosition.lineNumber&&(a+=i),this._onClick.fire({x:e.posx,y:n+r+a,actions:t.actions,trigger:t.trigger})})),this._register(po(this._domNode,`mouseenter`,e=>{(e.buttons&1)==1&&this.hide()})),this._register(Ku.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,()=>{this._preferredKbLabel.set(this._keybindingService.lookupKeybinding(`editor.action.autoFix`)?.getLabel()??void 0,void 0),this._quickFixKbLabel.set(this._keybindingService.lookupKeybinding(`editor.action.quickFix`)?.getLabel()??void 0,void 0)})),this._register(Iu(e=>{let t=this._combinedInfo.read(e);this._updateLightBulbTitleAndIcon(t),this._updateGutterDecorationOptions(t)})),this._register(this._editor.onMouseDown(async e=>{if(!e.target.element||!this.lightbulbClasses.some(t=>e.target.element&&e.target.element.classList.contains(t)))return;let t=this._gutterState.get();if(t.type!==1)return;this._editor.focus();let{top:n,height:r}=mt(e.target.element),i=this._editor.getOption(75),a=Math.floor(i/3);t.widgetPosition.position!==null&&t.widgetPosition.position.lineNumber<t.editorPosition.lineNumber&&(a+=i),this._onClick.fire({x:e.event.posx,y:n+r+a,actions:t.actions,trigger:t.trigger})}))}dispose(){super.dispose(),this._editor.removeContentWidget(this),this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID)}getId(){return`LightBulbWidget`}getDomNode(){return this._domNode}getPosition(){let e=this._state.get();return e.type===1?e.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0||this.onlyWithEmptySelection&&!this._editor.getSelection()?.isEmpty()||!this._editor.hasTextFocus()||this._editor.getOptions().get(73).enabled===Rn.Off)return this.gutterHide(),this.hide();let r=this._editor.getModel();if(!r)return this.gutterHide(),this.hide();let{lineNumber:i,column:a}=r.validatePosition(n),o=r.getOptions().tabSize,s=this._editor.getOptions().get(59),c=r.getLineContent(i),l=ia(c,o),u=s.spaceWidth*l>22,d=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1),f=this._editor.getLineDecorations(i),p=!1;if(f)for(let e of f){let t=e.options.glyphMarginClassName;if(t&&!this.lightbulbClasses.some(e=>t.includes(e))){p=!0;break}}let m=i,h=1;if(!u){let o=e=>{let t=r.getLineContent(e);return/^\s*$|^\s+/.test(t)||t.length<=h};if(i>1&&!d(i-1)){let a=i===r.getLineCount(),s=i>1&&o(i-1),c=!a&&o(i+1),l=o(i),u=!c&&!s;if(!c&&!s&&!p)return this._gutterState.set(new Lh.Showing(e,t,n,{position:{lineNumber:m,column:h},preference:jh._posPref}),void 0),this.renderGutterLightbub(),this.hide();s||a||s&&!l?--m:(c||u&&l)&&(m+=1)}else if(i===1&&(i===r.getLineCount()||!o(i+1)&&!o(i))){if(this._gutterState.set(new Lh.Showing(e,t,n,{position:{lineNumber:m,column:h},preference:jh._posPref}),void 0),p)this.gutterHide();else return this.renderGutterLightbub(),this.hide()}else if(i<r.getLineCount()&&!d(i+1))m+=1;else if(a*s.spaceWidth<22)return this.hide();h=/^\S\s*$/.test(r.getLineContent(m))?2:1}this._state.set(new Lh.Showing(e,t,n,{position:{lineNumber:m,column:h},preference:jh._posPref}),void 0),this._gutterDecorationID&&(this._removeGutterDecoration(this._gutterDecorationID),this.gutterHide());let g=e.validActions,_=e.validActions[0].action.kind;if(g.length!==1||!_){this._editor.layoutContentWidget(this);return}this._editor.layoutContentWidget(this)}hide(){this._state.get()!==Lh.Hidden&&(this._state.set(Lh.Hidden,void 0),this._editor.layoutContentWidget(this))}gutterHide(){this._gutterState.get()!==Lh.Hidden&&(this._gutterDecorationID&&this._removeGutterDecoration(this._gutterDecorationID),this._gutterState.set(Lh.Hidden,void 0))}_updateLightBulbTitleAndIcon(e){this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],!(!e||e.isGutter)&&(this._domNode.title=e.title,this._iconClasses=fi.asClassNameArray(e.icon),this._domNode.classList.add(...this._iconClasses))}_updateGutterDecorationOptions(e){!e||!e.isGutter||(this.gutterDecoration=nu.register({description:`codicon-gutter-lightbulb-decoration`,glyphMarginClassName:fi.asClassName(e.icon),glyphMargin:{position:ma.Left},stickiness:1}))}renderGutterLightbub(){let e=this._editor.getSelection();e&&(this._gutterDecorationID===void 0?this._addGutterDecoration(e.startLineNumber):this._updateGutterDecoration(this._gutterDecorationID,e.startLineNumber))}_addGutterDecoration(e){this._editor.changeDecorations(t=>{this._gutterDecorationID=t.addDecoration(new B(e,0,e,0),this.gutterDecoration)})}_removeGutterDecoration(e){this._editor.changeDecorations(t=>{t.removeDecoration(e),this._gutterDecorationID=void 0})}_updateGutterDecoration(e,t){this._editor.changeDecorations(n=>{n.changeDecoration(e,new B(t,0,t,0)),n.changeDecorationOptions(e,this.gutterDecoration)})}};zh=jh=kh([Ah(1,Be)],zh);var Bh=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vh=function(e,t){return function(n,r){t(n,r,e)}},Hh,Uh=`quickfix-edit-highlight`,Wh=class extends Eo{static{Hh=this}static{this.ID=`editor.contrib.codeActionController`}static get(e){return e.getContribution(Hh.ID)}constructor(e,t,n,r,i,a,o,s,c,l,u,d){super(),this._commandService=o,this._configurationService=s,this._actionWidgetService=c,this._instantiationService=l,this._progressService=u,this._keybindingService=d,this._activeCodeActions=this._register(new Nu),this._showDisabled=!1,this._disposed=!1,this._onlyLightBulbWithEmptySelection=!1,this._lightBulbInfoObs=wu(this,void 0),this._preferredKbLabel=wu(this,void 0),this._quickFixKbLabel=wu(this,void 0),this._editor=e,this._model=this._register(new Oh(this._editor,i.codeActionProvider,t,n,a,s)),this._register(this._model.onDidChangeState(e=>this.update(e))),this._register(Ku.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,()=>{this._preferredKbLabel.set(this._keybindingService.lookupKeybinding(`editor.action.autoFix`)?.getLabel()??void 0,void 0),this._quickFixKbLabel.set(this._keybindingService.lookupKeybinding(`editor.action.quickFix`)?.getLabel()??void 0,void 0)})),this._lightBulbWidget=new _s(()=>{let e=this._editor.getContribution(zh.ID);return e&&(this._register(e.onClick(e=>this.showCodeActionsFromLightbulb(e.actions,e))),e.onlyWithEmptySelection=this._onlyLightBulbWithEmptySelection),e}),this._resolver=r.createInstance(bh),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&e.validActions.length===1){let t=e.validActions[0],n=t.action.command;n&&n.id===`inlineChat.start`&&n.arguments&&n.arguments.length>=1&&n.arguments[0]&&(n.arguments[0]={...n.arguments[0],autoSend:!1}),await this.applyCodeAction(t,!1,!1,mh.FromAILightbulb);return}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,n){return this.showCodeActionList(t,n,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,n,r){if(!this._editor.hasModel())return;wp.get(this._editor)?.closeMessage();let i=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:n,autoApply:r,context:{notAvailableMessage:e,position:i}})}_trigger(e){return this._model.trigger(e)}async applyCodeAction(e,t,n,r){let i=this._progressService.show(!0,500);try{await this._instantiationService.invokeFunction(hh,e,r,{preview:n,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Jm.QuickFix,filter:{}}),i.done()}}hideLightBulbWidget(){this._lightBulbWidget.rawValue?.hide(),this._lightBulbWidget.rawValue?.gutterHide()}async update(e){if(e.type!==1){this.hideLightBulbWidget(),this._lightBulbInfoObs.set(void 0,void 0);return}let t;try{t=await e.actions}catch(e){An(e);return}if(!this._disposed&&this._editor.getSelection()?.startLineNumber===e.position.lineNumber){if(this._lightBulbWidget.value?.update(t,e.trigger,e.position),this._lightBulbInfoObs.set(Rh(t,e.trigger,this._preferredKbLabel.get(),this._quickFixKbLabel.get()),void 0),e.trigger.type===1){if(e.trigger.filter?.include){let n=this.tryGetValidActionToApply(e.trigger,t);if(n){try{this.hideLightBulbWidget(),await this.applyCodeAction(n,!1,!1,mh.FromCodeActions)}finally{t.dispose()}return}if(e.trigger.context){let n=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,t);if(n&&n.action.disabled){wp.get(this._editor)?.showMessage(n.action.disabled,e.trigger.context.position),t.dispose();return}}}let n=!!e.trigger.filter?.include;if(e.trigger.context&&(!t.allActions.length||!n&&!t.validActions.length)){wp.get(this._editor)?.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=t,t.dispose();return}this._activeCodeActions.value=t,this.showCodeActionList(t,this.toCoords(e.position),{includeDisabledActions:n,fromLightbulb:!1})}else this._actionWidgetService.isVisible?t.dispose():this._activeCodeActions.value=t}}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply===`first`&&t.validActions.length===0||e.autoApply===`ifSingle`&&t.allActions.length===1))return t.allActions.find(({action:e})=>e.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply===`first`&&t.validActions.length>0||e.autoApply===`ifSingle`&&t.validActions.length===1))return t.validActions[0]}static{this.DECORATION=nu.register({description:`quickfix-highlight`,className:Uh})}async showCodeActionList(e,t,n){let r=this._editor.createDecorationsCollection(),i=this._editor.getDomNode();if(!i)return;let a=n.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!a.length)return;let o=Dn.isIPosition(t)?this.toCoords(t):t;this._actionWidgetService.show(`codeActionWidget`,!0,Ch(a,this._shouldShowHeaders(),this._resolver.getResolver()),{onSelect:async(e,t)=>{this.applyCodeAction(e,!0,!!t,n.fromLightbulb?mh.FromAILightbulb:mh.FromCodeActions),this._actionWidgetService.hide(!1),r.clear()},onHide:e=>{this._editor?.focus(),r.clear()},onHover:async(e,t)=>{if(t.isCancellationRequested)return;let n=!1,r=e.action.kind;if(r){let e=new hp(r);n=[qm.RefactorExtract,qm.RefactorInline,qm.RefactorRewrite,qm.RefactorMove,qm.Source].some(t=>t.contains(e))}return{canPreview:n||!!e.action.edit?.edits.length}},onFocus:e=>{if(e&&e.action){let t=e.action.ranges,n=e.action.diagnostics;if(r.clear(),t&&t.length>0){let e=n&&n?.length>1?n.map(e=>({range:e,options:Hh.DECORATION})):t.map(e=>({range:e,options:Hh.DECORATION}));r.set(e)}else if(n&&n.length>0){let e=n.map(e=>({range:e,options:Hh.DECORATION}));r.set(e);let t=n[0];if(t.startLineNumber&&t.startColumn){let e=this._editor.getModel()?.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn})?.word;Zu(U(899,`Context: {0} at line {1} and column {2}.`,e,t.startLineNumber,t.startColumn))}}}else r.clear()}},o,i,this._getActionBarActions(e,t,n))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();let t=this._editor.getScrolledVisiblePosition(e),n=mt(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}}_shouldShowHeaders(){let e=this._editor?.getModel();return this._configurationService.getValue(`editor.codeActionWidget.showHeaders`,{resource:e?.uri})}_getActionBarActions(e,t,n){if(n.fromLightbulb)return[];let r=e.documentation.map(e=>({id:e.id,label:e.title,tooltip:e.tooltip??``,class:void 0,enabled:!0,run:()=>this._commandService.executeCommand(e.id,...e.arguments??[])}));return n.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&r.push(this._showDisabled?{id:`hideMoreActions`,label:U(900,`Hide Disabled`),enabled:!0,tooltip:``,class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,n))}:{id:`showMoreActions`,label:U(901,`Show Disabled`),enabled:!0,tooltip:``,class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,n))}),r}};Wh=Hh=Bh([Vh(1,Jd),Vh(2,In),Vh(3,Il),Vh(4,gl),Vh(5,xo),Vh(6,so),Vh(7,Ou),Vh(8,ym),Vh(9,Il),Vh(10,xo),Vh(11,Be)],Wh),Fn((e,t)=>{((e,n)=>{n&&t.addRule(`.monaco-editor ${e} { background-color: ${n}; }`)})(`.quickfix-edit-highlight`,e.getColor(qo));let n=e.getColor(Zc);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${zt(e.type)?`dotted`:`solid`} ${n}; box-sizing: border-box; }`)});function Gh(e){return hu.regex(wh.keys()[0],RegExp(`(\\s|^)`+ci(e.value)+`\\b`))}var Kh={type:`object`,defaultSnippets:[{body:{kind:``}}],properties:{kind:{type:`string`,description:U(867,`Kind of the code action to run.`)},apply:{type:`string`,description:U(868,`Controls when the returned actions are applied.`),default:`ifSingle`,enum:[`first`,`ifSingle`,`never`],enumDescriptions:[U(869,`Always apply the first returned code action.`),U(870,`Apply the first returned code action if it is the only one.`),U(871,`Do not apply the returned code actions.`)]},preferred:{type:`boolean`,default:!1,description:U(872,`Controls if only preferred code actions should be returned.`)}}};function qh(e,t,n,r,i=Jm.Default){e.hasModel()&&Wh.get(e)?.manualTriggerAtCurrentPosition(t,i,n,r)}var Jh=class extends Bu{constructor(){super({id:th,title:z(889,`Quick Fix...`),precondition:hu.and(G.writable,G.hasCodeActionsProvider),icon:Mr.lightBulb,f1:!0,keybinding:{when:G.textInputFocus,primary:2137,weight:100},menu:{id:wi.InlineChatEditorAffordance,group:`1_quickfix`,order:0,when:hu.and(G.writable,G.hasCodeActionsProvider)}})}runEditorCommand(e,t){return qh(t,U(873,`No code actions available`),void 0,void 0,Jm.QuickFix)}},Yh=class extends ns{constructor(){super({id:eh,precondition:hu.and(G.writable,G.hasCodeActionsProvider),metadata:{description:`Trigger a code action`,args:[{name:`args`,schema:Kh}]}})}runEditorCommand(e,t,n){let r=Qm.fromUser(n,{kind:hp.Empty,apply:`ifSingle`});return qh(t,typeof n?.kind==`string`?r.preferred?U(874,`No preferred code actions for '{0}' available`,n.kind):U(875,`No code actions for '{0}' available`,n.kind):r.preferred?U(876,`No preferred code actions available`):U(877,`No code actions available`),{include:r.kind,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}},Xh=class extends Wl{constructor(){super({id:rh,label:z(890,`Refactor...`),precondition:hu.and(G.writable,G.hasCodeActionsProvider),kbOpts:{kbExpr:G.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:`1_modification`,order:2,when:hu.and(G.writable,Gh(qm.Refactor))},metadata:{description:`Refactor...`,args:[{name:`args`,schema:Kh}]}})}run(e,t,n){let r=Qm.fromUser(n,{kind:qm.Refactor,apply:`never`});return qh(t,typeof n?.kind==`string`?r.preferred?U(878,`No preferred refactorings for '{0}' available`,n.kind):U(879,`No refactorings for '{0}' available`,n.kind):r.preferred?U(880,`No preferred refactorings available`):U(881,`No refactorings available`),{include:qm.Refactor.contains(r.kind)?r.kind:hp.None,onlyIncludePreferredActions:r.preferred},r.apply,Jm.Refactor)}},Zh=class extends Wl{constructor(){super({id:ih,label:z(891,`Source Action...`),precondition:hu.and(G.writable,G.hasCodeActionsProvider),contextMenuOpts:{group:`1_modification`,order:2.1,when:hu.and(G.writable,Gh(qm.Source))},metadata:{description:`Source Action...`,args:[{name:`args`,schema:Kh}]}})}run(e,t,n){let r=Qm.fromUser(n,{kind:qm.Source,apply:`never`});return qh(t,typeof n?.kind==`string`?r.preferred?U(882,`No preferred source actions for '{0}' available`,n.kind):U(883,`No source actions for '{0}' available`,n.kind):r.preferred?U(884,`No preferred source actions available`):U(885,`No source actions available`),{include:qm.Source.contains(r.kind)?r.kind:hp.None,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply,Jm.SourceAction)}},Qh=class extends Wl{constructor(){super({id:ah,label:z(892,`Organize Imports`),precondition:hu.and(G.writable,Gh(qm.SourceOrganizeImports)),kbOpts:{kbExpr:G.textInputFocus,primary:1581,weight:100},metadata:{description:z(893,`Organize imports in the current file. Also called 'Optimize Imports' by some tools`)}})}run(e,t){return qh(t,U(886,`No organize imports action available`),{include:qm.SourceOrganizeImports,includeSourceActions:!0},`ifSingle`,Jm.OrganizeImports)}},$h=class extends Wl{constructor(){super({id:oh,label:z(894,`Fix All`),precondition:hu.and(G.writable,Gh(qm.SourceFixAll))})}run(e,t){return qh(t,U(887,`No fix all action available`),{include:qm.SourceFixAll,includeSourceActions:!0},`ifSingle`,Jm.FixAll)}},eg=class extends Wl{constructor(){super({id:nh,label:z(895,`Auto Fix...`),precondition:hu.and(G.writable,Gh(qm.QuickFix)),kbOpts:{kbExpr:G.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return qh(t,U(888,`No auto fixes available`),{include:qm.QuickFix,onlyIncludePreferredActions:!0},`ifSingle`,Jm.AutoFix)}};ru(Wh.ID,Wh,3),ru(zh.ID,zh,4),aa(Jh),hs(Xh),hs(Zh),hs(Qh),hs(eg),hs($h),Bs(new Yh),en.as(ui.Configuration).registerConfiguration({...Gl,properties:{"editor.codeActionWidget.showHeaders":{type:`boolean`,scope:6,description:U(896,`Enable/disable showing group headers in the Code Action menu.`),default:!0}}}),en.as(ui.Configuration).registerConfiguration({...Gl,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:`boolean`,scope:6,description:U(897,`Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic.`),default:!0}}}),en.as(ui.Configuration).registerConfiguration({...Gl,properties:{"editor.codeActions.triggerOnFocusChange":{type:`boolean`,scope:6,markdownDescription:U(898,`Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.`,"`#editor.codeActionsOnSave#`","`#files.autoSave#`","`afterDelay`","`always`"),default:!1}}});var tg=class e{constructor(){this.lenses=[]}static{this.Empty=new e}dispose(){this._store?.dispose()}get isDisposed(){return this._store?.isDisposed??!1}add(e,t){cs(e)&&(this._store??=new Ll,this._store.add(e));for(let n of e.lenses)this.lenses.push({symbol:n,provider:t})}};async function ng(e,t,n){let r=e.ordered(t),i=new Map,a=new tg,o=r.map(async(e,r)=>{i.set(e,r);try{let r=await Promise.resolve(e.provideCodeLenses(t,n));r&&a.add(r,e)}catch(e){Ka(e)}});return await Promise.all(o),n.isCancellationRequested?(a.dispose(),tg.Empty):(a.lenses=a.lenses.sort((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.get(e.provider)<i.get(t.provider)?-1:i.get(e.provider)>i.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:+(e.symbol.range.startColumn>t.symbol.range.startColumn)),a)}Ba.registerCommand(`_executeCodeLensProvider`,function(e,...t){let[n,r]=t;kc(cr.isUri(n)),kc(typeof r==`number`||!r);let{codeLensProvider:i}=e.get(gl),a=e.get(hc).getModel(n);if(!a)throw Hn();let o=[],s=new Ll;return ng(i,a,sa.None).then(e=>{s.add(e);let t=[];for(let n of e.lenses)r==null||n.symbol.command?o.push(n.symbol):r-->0&&n.provider.resolveCodeLens&&t.push(Promise.resolve(n.provider.resolveCodeLens(a,n.symbol,sa.None)).then(e=>o.push(e||n.symbol)));return Promise.all(t)}).then(()=>o).finally(()=>{setTimeout(()=>s.dispose(),100)})});var rg=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ig=function(e,t){return function(n,r){t(n,r,e)}},ag=Mu(`ICodeLensCache`),og=class{constructor(e,t){this.lineCount=e,this.data=t}},sg=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw Error(`not supported`)}},this._cache=new Ar(20,.75),on(au,()=>e.remove(`codelens/cache`,1));let t=`codelens/cache2`,n=e.get(t,1,`{}`);this._deserialize(n);let r=Ku.filter(e.onWillSaveState,e=>e.reason===Ni.SHUTDOWN);Ku.once(r)(n=>{e.store(t,this._serialize(),1,1)})}put(e,t){let n=t.lenses.map(e=>({range:e.symbol.range,command:e.symbol.command&&{id:``,title:e.symbol.command?.title}})),r=new tg;r.add({lenses:n},this._fakeProvider);let i=new og(e.getLineCount(),r);this._cache.set(e.uri.toString(),i)}get(e){let t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){let e=Object.create(null);for(let[t,n]of this._cache){let r=new Set;for(let e of n.data.lenses)r.add(e.symbol.range.startLineNumber);e[t]={lineCount:n.lineCount,lines:[...r.values()]}}return JSON.stringify(e)}_deserialize(e){try{let t=JSON.parse(e);for(let e in t){let n=t[e],r=[];for(let e of n.lines)r.push({range:new B(e,1,e,11)});let i=new tg;i.add({lenses:r},this._fakeProvider),this._cache.set(e,new og(n.lineCount,i))}}catch{}}};sg=rg([ig(0,Wd)],sg),$u(ag,sg,1);var cg=class{constructor(e,t,n){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=n,this.suppressMouseDown=!0,this.domNode=document.createElement(`div`)}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute(`monaco-visible-view-zone`)}},lg=class e{static{this._idPool=0}constructor(t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=t,this._id=`codelens.widget-${e._idPool++}`,this.updatePosition(n),this._domNode=document.createElement(`span`),this._domNode.className=`codelens-decoration`}withCommands(t,n){this._commands.clear();let r=[],i=!1;for(let n=0;n<t.length;n++){let a=t[n];if(a&&(i=!0,a.command)){let i=Sn(a.command.title.trim());if(a.command.id){let t=`c${e._idPool++}`;r.push(id(`a`,{id:t,title:a.command.tooltip,role:`button`},...i)),this._commands.set(t,a.command)}else r.push(id(`span`,{title:a.command.tooltip},...i));n+1<t.length&&r.push(id(`span`,void 0,`\xA0|\xA0`))}}i?(Ge(this._domNode,...r),this._isEmpty&&n&&this._domNode.classList.add(`fadein`),this._isEmpty=!1):Ge(this._domNode,id(`span`,void 0,`no commands`))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){let t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}},ug=class{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){let t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let e=0,n=t.length;e<n;e++)this._addDecorationsCallbacks[e](t[e])}},dg=nu.register({collapseOnReplaceEdit:!0,description:`codelens`}),fg=class{constructor(e,t,n,r,i,a){this._isDisposed=!1,this._editor=t,this._data=e,this._decorationIds=[];let o,s=[];this._data.forEach((e,t)=>{e.symbol.command&&s.push(e.symbol),n.addDecoration({range:e.symbol.range,options:dg},e=>this._decorationIds[t]=e),o=o?B.plusRange(o,e.symbol.range):B.lift(e.symbol.range)}),this._viewZone=new cg(o.startLineNumber-1,i,a),this._viewZoneId=r.addZone(this._viewZone),s.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(s,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new lg(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t?.removeZone(this._viewZoneId),this._contentWidget&&=(this._editor.removeContentWidget(this._contentWidget),void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{let n=this._editor.getModel().getDecorationRange(e),r=this._data[t].symbol;return!!(n&&B.isEmpty(r.range)===n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((e,n)=>{t.addDecoration({range:e.symbol.range,options:dg},e=>this._decorationIds[n]=e)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t<this._decorationIds.length;t++){let n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){let n=e[t];if(n){let{symbol:e}=this._data[t];e.command=n.command||e.command}}}getCommand(e){return this._contentWidget?.getCommand(e)}getLineNumber(){let e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){let t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}},pg=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mg=function(e,t){return function(n,r){t(n,r,e)}},hg=class{static{this.ID=`css.editor.codeLens`}constructor(e,t,n,r,i,a){this._editor=e,this._languageFeaturesService=t,this._commandService=r,this._notificationService=i,this._codeLensCache=a,this._disposables=new Ll,this._localToDispose=new Ll,this._lenses=[],this._oldCodeLensModels=new Ll,this._provideCodeLensDebounce=n.for(t.codeLensProvider,`CodeLensProvide`,{min:250}),this._resolveCodeLensesDebounce=n.for(t.codeLensProvider,`CodeLensResolve`,{min:250,salt:`resolve`}),this._resolveCodeLensesScheduler=new mr(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(59)||e.hasChanged(25)||e.hasChanged(24))&&this._updateLensStyle(),e.hasChanged(23)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){this._localDispose(),this._localToDispose.dispose(),this._disposables.dispose(),this._resolveCodeLensesScheduler.dispose(),this._oldCodeLensModels.dispose(),this._currentCodeLensModel?.dispose()}_getLayoutInfo(){let e=Math.max(1.3,this._editor.getOption(75)/this._editor.getOption(61)),t=this._editor.getOption(25);return(!t||t<5)&&(t=this._editor.getOption(61)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){let{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),n=this._editor.getOption(24),r=this._editor.getOption(59),{style:i}=this._editor.getContainerDomNode();i.setProperty(`--vscode-editorCodeLens-lineHeight`,`${e}px`),i.setProperty(`--vscode-editorCodeLens-fontSize`,`${t}px`),i.setProperty(`--vscode-editorCodeLens-fontFeatureSettings`,r.fontFeatureSettings),n&&(i.setProperty(`--vscode-editorCodeLens-fontFamily`,n),i.setProperty(`--vscode-editorCodeLens-fontFamilyDefault`,mi.fontFamily)),this._editor.changeViewZones(t=>{for(let n of this._lenses)n.updateHeight(e,t)})}_localDispose(){this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=void 0,this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),this._currentCodeLensModel?.dispose()}_onModelChange(){this._localDispose();let e=this._editor.getModel();if(!e||!this._editor.getOption(23)||e.isTooLargeForTokenization())return;let t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&xn(()=>{let n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},3e4,this._localToDispose);return}for(let t of this._languageFeaturesService.codeLensProvider.all(e))if(typeof t.onDidChange==`function`){let e=t.onDidChange(()=>n.schedule());this._localToDispose.add(e)}let n=new mr(()=>{let t=Date.now();this._getCodeLensModelPromise?.cancel(),this._getCodeLensModelPromise=Bt(t=>ng(this._languageFeaturesService.codeLensProvider,e,t)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);let i=this._provideCodeLensDebounce.update(e,Date.now()-t);n.delay=i,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},An)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(n),this._localToDispose.add(Ns(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let n=[],r=-1;this._lenses.forEach(e=>{!e.isValid()||r===e.getLineNumber()?n.push(e):(e.update(t),r=e.getLineNumber())});let i=new ug;n.forEach(e=>{e.dispose(i,t),this._lenses.splice(this._lenses.indexOf(e),1)}),i.commit(e)})}),n.schedule(),this._resolveCodeLensesScheduler.cancel(),this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorText(()=>{n.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{n.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Ns(()=>{if(this._editor.getModel()){let e=Ft.capture(this._editor);this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{this._disposeAllLenses(e,t)})}),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(e=>{if(e.target.type!==9)return;let t=e.target.element;if(t?.tagName===`SPAN`&&(t=t.parentElement),t?.tagName===`A`)for(let e of this._lenses){let n=e.getCommand(t);if(n){this._commandService.executeCommand(n.id,...n.arguments||[]).catch(e=>this._notificationService.error(e));break}}})),n.schedule()}_disposeAllLenses(e,t){let n=new ug;for(let e of this._lenses)e.dispose(n,t);e&&n.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t=this._editor.getModel().getLineCount(),n=[],r;for(let i of e.lenses){let e=i.symbol.range.startLineNumber;e<1||e>t||(r&&r[r.length-1].symbol.range.startLineNumber===e?r.push(i):(r=[i],n.push(r)))}if(!n.length&&!this._lenses.length)return;let i=Ft.capture(this._editor),a=this._getLayoutInfo();this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let r=new ug,i=0,o=0;for(;o<n.length&&i<this._lenses.length;){let e=n[o][0].symbol.range.startLineNumber,s=this._lenses[i].getLineNumber();s<e?(this._lenses[i].dispose(r,t),this._lenses.splice(i,1)):s===e?(this._lenses[i].updateCodeLensSymbols(n[o],r),o++,i++):(this._lenses.splice(i,0,new fg(n[o],this._editor,r,t,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),i++,o++)}for(;i<this._lenses.length;)this._lenses[i].dispose(r,t),this._lenses.splice(i,1);for(;o<n.length;)this._lenses.push(new fg(n[o],this._editor,r,t,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),o++;r.commit(e)})}),i.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){this._resolveCodeLensesPromise?.cancel(),this._resolveCodeLensesPromise=void 0;let e=this._editor.getModel();if(!e)return;let t=[],n=[];if(this._lenses.forEach(r=>{let i=r.computeIfNecessary(e);i&&(t.push(i),n.push(r))}),t.length===0){this._oldCodeLensModels.clear();return}let r=Date.now(),i=Bt(r=>{let i=t.map((t,i)=>{let a=Array(t.length),o=t.map((t,n)=>!t.symbol.command&&typeof t.provider.resolveCodeLens==`function`?Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,r)).then(e=>{a[n]=e},Ka):(a[n]=t.symbol,Promise.resolve(void 0)));return Promise.all(o).then(()=>{!r.isCancellationRequested&&!n[i].isDisposed()&&n[i].updateCommands(a)})});return Promise.all(i)});this._resolveCodeLensesPromise=i,this._resolveCodeLensesPromise.then(()=>{let t=this._resolveCodeLensesDebounce.update(e,Date.now()-r);this._resolveCodeLensesScheduler.delay=t,this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),i===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},e=>{An(e),i===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}async getModel(){return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,this._currentCodeLensModel?.isDisposed?void 0:this._currentCodeLensModel}};hg=pg([mg(1,gl),mg(2,sc),mg(3,so),mg(4,Ut),mg(5,ag)],hg),ru(hg.ID,hg,1),hs(class extends Wl{constructor(){super({id:`codelens.showLensesInCurrentLine`,precondition:G.hasCodeLensProvider,label:z(920,`Show CodeLens Commands for Current Line`)})}async run(e,t){if(!t.hasModel())return;let n=e.get(st),r=e.get(so),i=e.get(Ut),a=t.getSelection().positionLineNumber,o=t.getContribution(hg.ID);if(!o)return;let s=await o.getModel();if(!s)return;let c=[];for(let e of s.lenses)e.symbol.command&&e.symbol.range.startLineNumber===a&&c.push({label:e.symbol.command.title,command:e.symbol.command});if(c.length===0)return;let l=await n.pick(c,{canPickMany:!1,placeHolder:U(919,`Select a command`)});if(!l)return;let u=l.command;if(s.isDisposed){let e=(await o.getModel())?.lenses.find(e=>e.symbol.range.startLineNumber===a&&e.symbol.command?.title===u.title);if(!e||!e.symbol.command)return;u=e.symbol.command}try{await r.executeCommand(u.id,...u.arguments||[])}catch(e){i.error(e)}}});var gg=class{constructor(e,t,n,r){this.priority=e,this.range=t,this.initialMousePosX=n,this.initialMousePosY=r,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}},_g=class{constructor(e,t,n,r,i,a){this.priority=e,this.owner=t,this.range=n,this.initialMousePosX=r,this.initialMousePosY=i,this.supportsMarkerHover=a,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}},vg=class{constructor(e,t){this.renderedHoverParts=e,this.disposables=t}dispose(){for(let e of this.renderedHoverParts)e.dispose();this.disposables?.dispose()}},yg=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}},bg=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xg=function(e,t){return function(n,r){t(n,r,e)}},Sg=class{constructor(e){this._editorWorkerService=e}async provideDocumentColors(e,t){return this._editorWorkerService.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,n){let r=t.range,i=t.color,a=new Xs(new xd(Math.round(255*i.red),Math.round(255*i.green),Math.round(255*i.blue),i.alpha)),o=Xs.Format.CSS.formatRGB(a),s=Xs.Format.CSS.formatHSL(a),c=Xs.Format.CSS.formatHexA(a,!0),l=[];return l.push({label:o,textEdit:{range:r,text:o}}),l.push({label:s,textEdit:{range:r,text:s}}),l.push({label:c,textEdit:{range:r,text:c}}),l}};Sg=bg([xg(0,Se)],Sg);var Cg=class extends Eo{constructor(e,t){super(),this._register(e.colorProvider.register(`*`,new Sg(t)))}};Cg=bg([xg(0,gl),xg(1,Se)],Cg);async function wg(e,t,n,r=`auto`){return kg(new Eg,e,t,n,r)}function Tg(e,t,n,r){return Promise.resolve(n.provideColorPresentations(e,t,r))}var Eg=class{constructor(){}async compute(e,t,n,r){let i=await e.provideDocumentColors(t,n);if(Array.isArray(i))for(let t of i)r.push({colorInfo:t,provider:e});return Array.isArray(i)}},Dg=class{constructor(){}async compute(e,t,n,r){let i=await e.provideDocumentColors(t,n);if(Array.isArray(i))for(let e of i)r.push({range:e.range,color:[e.color.red,e.color.green,e.color.blue,e.color.alpha]});return Array.isArray(i)}},Og=class{constructor(e){this.colorInfo=e}async compute(e,t,n,r){let i=await e.provideColorPresentations(t,this.colorInfo,sa.None);return Array.isArray(i)&&r.push(...i),Array.isArray(i)}};async function kg(e,t,n,r,i){let a=!1,o,s=[],c=t.ordered(n);for(let t=c.length-1;t>=0;t--){let l=c[t];if(i!==`always`&&l instanceof Sg)o=l;else try{await e.compute(l,n,r,s)&&(a=!0)}catch(e){Ka(e)}}return a?s:o&&i!==`never`?(await e.compute(o,n,r,s),s):[]}function Ag(e,t){let{colorProvider:n}=e.get(gl),r=e.get(hc).getModel(t);if(!r)throw Hn();return{model:r,colorProviderRegistry:n,defaultColorDecoratorsEnablement:e.get(Ou).getValue(`editor.defaultColorDecorators`,{resource:t})}}var jg=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mg=function(e,t){return function(n,r){t(n,r,e)}},Ng,Pg=Object.create({}),Fg=class extends Eo{static{Ng=this}static{this.ID=`editor.contrib.colorDetector`}static{this.RECOMPUTE_TIME=1e3}constructor(e,t,n,r){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=n,this._localToDispose=this._register(new Ll),this._decorationsIds=[],this._colorDatas=new Map,this._decoratorLimitReporter=this._register(new eee),this._colorDecorationClassRefs=this._register(new Ll),this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=this._register(new bn(this._editor)),this._debounceInformation=r.for(n.colorProvider,`Document Colors`,{min:Ng.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(n.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(e=>{let t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._defaultColorDecoratorsEnablement=this._editor.getOption(167);let n=t!==this._isColorDecoratorsEnabled||e.hasChanged(27),r=e.hasChanged(167);(n||r)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._defaultColorDecoratorsEnablement=this._editor.getOption(167),this.updateColors()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageId(),n=this._configurationService.getValue(t);if(n&&typeof n==`object`){let e=n.colorDecorators;if(e&&e.enable!==void 0&&!e.enable)return e.enable}return this._editor.getOption(26)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;let e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new Er,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}async beginCompute(){this._computePromise=Bt(async e=>{let t=this._editor.getModel();if(!t)return[];let n=new xu(!1),r=await wg(this._languageFeaturesService.colorProvider,t,e,this._defaultColorDecoratorsEnablement);return this._debounceInformation.update(t,n.elapsed()),r});try{let e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){An(e)}}stop(){this._timeoutTimer&&=(this._timeoutTimer.cancel(),null),this._computePromise&&=(this._computePromise.cancel(),null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:nu.EMPTY}));this._editor.changeDecorations(n=>{this._decorationsIds=n.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((t,n)=>this._colorDatas.set(t,e[n]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();let t=[],n=this._editor.getOption(27);for(let r=0;r<e.length&&t.length<n;r++){let{red:n,green:i,blue:a,alpha:o}=e[r].colorInfo.color,s=new xd(Math.round(n*255),Math.round(i*255),Math.round(a*255),o),c=`rgba(${s.r}, ${s.g}, ${s.b}, ${s.a})`,l=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:c}));t.push({range:{startLineNumber:e[r].colorInfo.range.startLineNumber,startColumn:e[r].colorInfo.range.startColumn,endLineNumber:e[r].colorInfo.range.endLineNumber,endColumn:e[r].colorInfo.range.endColumn},options:{description:`colorDetector`,before:{content:`\xA0`,inlineClassName:`${l.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:Pg}}})}let r=n<e.length&&n;this._decoratorLimitReporter.update(e.length,r),this._colorDecoratorIds.set(t)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(e){let t=this._editor.getModel();if(!t)return null;let n=t.getDecorationsInRange(B.fromPositions(e,e)).filter(e=>this._colorDatas.has(e.id));return n.length===0?null:this._colorDatas.get(n[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Fg=Ng=jg([Mg(1,Ou),Mg(2,gl),Mg(3,sc)],Fg);var eee=class extends Eo{constructor(){super(...arguments),this._onDidChange=this._register(new bs),this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}},Ig=`editor.action.showHover`,Lg=`editor.action.showDefinitionPreviewHover`,Rg=`editor.action.hideHover`,zg=`editor.action.scrollUpHover`,Bg=`editor.action.scrollDownHover`,Vg=`editor.action.scrollLeftHover`,Hg=`editor.action.scrollRightHover`,Ug=`editor.action.pageUpHover`,Wg=`editor.action.pageDownHover`,Gg=`editor.action.goToTopHover`,Kg=`editor.action.goToBottomHover`,qg=`editor.action.increaseHoverVerbosityLevel`,Jg=U(1145,`Increase Hover Verbosity Level`),Yg=`editor.action.decreaseHoverVerbosityLevel`,Xg=U(1146,`Decrease Hover Verbosity Level`),Zg=`editor.action.hideLongLineWarningHover`,Qg=`editor.action.inlineSuggest.commit`,$g=`editor.action.inlineSuggest.commitAlternativeAction`,e_=`editor.action.inlineSuggest.showPrevious`,t_=`editor.action.inlineSuggest.showNext`,n_=`editor.action.inlineSuggest.jump`,r_=`editor.action.inlineSuggest.hide`,i_=`editor.action.inlineSuggest.toggleShowCollapsed`,a_=`editor.action.inlineSuggest.renameSymbol`,o_=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s_=function(e,t){return function(n,r){t(n,r,e)}},c_,l_=class extends Eo{constructor(e,t,n){super(),this.editor=e,this.model=t,this.instantiationService=n,this.alwaysShowToolbar=Cs(this,this.editor.onDidChangeConfiguration,()=>this.editor.getOption(71).showToolbar===`always`),this.sessionPosition=void 0,this.position=cd(this,e=>{let t=this.model.read(e)?.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!t||t.parts.length===0)return this.sessionPosition=void 0,null;let n=t.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==t.lineNumber&&(this.sessionPosition=void 0);let r=new Dn(t.lineNumber,Math.min(n,this.sessionPosition?.column??2**53-1));return this.sessionPosition=r,r}),this._register(nl((t,n)=>{let r=this.model.read(t);if(!r||!this.alwaysShowToolbar.read(t))return;let i=cd(t=>{let n=t.store.add(this.instantiationService.createInstance(f_.hot.read(t),this.editor,!0,this.position,r.selectedInlineCompletionIndex,r.inlineCompletionsCount,r.activeCommands,r.warning,()=>{}));return e.addContentWidget(n),t.store.add(Ns(()=>e.removeContentWidget(n))),t.store.add(Iu(e=>{this.position.read(e)&&r.lastTriggerKind.read(e)!==ft.Explicit&&r.triggerExplicitly()})),n}),a=Ga(this,(e,t)=>!!this.position.read(e)||!!t);n.add(Iu(e=>{a.read(e)&&i.read(e)}))}))}};l_=o_([s_(2,Il)],l_);var u_=rn(`inline-suggestion-hints-next`,Mr.chevronRight,U(1250,`Icon for show next parameter hint.`)),d_=rn(`inline-suggestion-hints-previous`,Mr.chevronLeft,U(1251,`Icon for show previous parameter hint.`)),f_=class extends Eo{static{c_=this}static{this.hot=hi(this)}static{this._dropDownVisible=!1}static get dropDownVisible(){return this._dropDownVisible}static{this.id=0}createCommandAction(e,t,n){let r=new ke(e,t,n,!0,()=>this._commandService.executeCommand(e));return r.tooltip=this.keybindingService.appendKeybinding(t,e,this._contextKeyService),r}constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){super(),this.editor=e,this.withBorder=t,this._position=n,this._currentSuggestionIdx=r,this._suggestionCount=i,this._extraCommands=a,this._warning=o,this._relayout=s,this._commandService=c,this.keybindingService=u,this._contextKeyService=d,this._menuService=f,this.id=`InlineSuggestionHintsContentWidget${c_.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._warningMessageContentNode=cd(e=>{let t=this._warning.read(e);if(t)return typeof t.message==`string`?t.message:e.store.add(Zr(t.message)).element}),this._warningMessageNode=df.div({class:`warningMessage`,style:{maxWidth:400,margin:4,marginBottom:4,display:cd(e=>this._warning.read(e)?`block`:`none`)}},[this._warningMessageContentNode]).keepUpdated(this._store),this.nodes=Cr(`div.inlineSuggestionsHints`,{className:this.withBorder?`monaco-hover monaco-hover-content`:``},[this._warningMessageNode.element,Cr(`div@toolBar`)]),this.previousAction=this._register(this.createCommandAction(e_,U(1252,`Previous`),fi.asClassName(d_))),this.availableSuggestionCountAction=this._register(new ke(`inlineSuggestionHints.availableSuggestionCount`,``,void 0,!1)),this.nextAction=this._register(this.createCommandAction(t_,U(1253,`Next`),fi.asClassName(u_))),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(wi.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new mr(()=>{this.availableSuggestionCountAction.label=``},100)),this.disableButtonsDebounced=this._register(new mr(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this._register(Iu(e=>{this._warningMessageContentNode.read(e),this._warningMessageNode.readEffect(e),this._relayout()})),this.toolBar=this._register(l.createInstance(h_,this.nodes.toolBar,wi.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith(`primary`)},actionViewItemProvider:(e,t)=>{if(e instanceof vf)return l.createInstance(m_,e,void 0);if(e===this.availableSuggestionCountAction){let t=new p_(void 0,e,{label:!0,icon:!1});return t.setClass(`availableSuggestionCount`),t}},telemetrySource:`InlineSuggestionToolbar`})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(e=>{c_._dropDownVisible=e})),this._register(Iu(e=>{this._position.read(e),this.editor.layoutContentWidget(this)})),this._register(Iu(e=>{let t=this._suggestionCount.read(e),n=this._currentSuggestionIdx.read(e);t===void 0?this.clearAvailableSuggestionCountLabelDebounced.schedule():(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${n+1}/${t}`),t!==void 0&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(Iu(e=>{let t=this._extraCommands.read(e).map(e=>({class:void 0,id:e.command.id,enabled:!0,tooltip:e.command.tooltip||``,label:e.command.title,run:()=>this._commandService.executeCommand(e.command.id,...e.command.arguments??[])}));for(let[e,n]of this.inlineCompletionsActionsMenus.getActions())for(let e of n)e instanceof vf&&t.push(e);t.length>0&&t.unshift(new ys),this.toolBar.setAdditionalSecondaryActions(t)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};f_=c_=o_([s_(8,so),s_(9,Il),s_(10,Be),s_(11,In),s_(12,or)],f_);var p_=class extends ws{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}},m_=class extends mn{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService,!0);if(!e)return super.updateLabel();if(this.label){let t=Cr(`div.keybinding`).root;this._register(new ya(t,ic,{disableTitle:!0,...Kt})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add(`inlineSuggestionStatusBarItemLabel`)}}updateTooltip(){}},h_=class extends Ed{constructor(e,t,n,r,i,a,o,s,c){super(e,{resetMenu:t,...n},r,i,a,o,s,c),this.menuId=t,this.options2=n,this.menuService=r,this.contextKeyService=i,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this.additionalPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){let{primary:e,secondary:t}=tn(this.menu.getActions(this.options2?.menuOptions),this.options2?.toolbarOptions?.primaryGroup,this.options2?.toolbarOptions?.shouldInlineSubmenu,this.options2?.toolbarOptions?.useSeparatorsInPrimaryActions);t.push(...this.additionalActions),e.unshift(...this.prependedPrimaryActions),e.push(...this.additionalPrimaryActions),this.setActions(e,t)}setPrependedPrimaryActions(e){Do(this.prependedPrimaryActions,e,(e,t)=>e===t)||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){Do(this.additionalActions,e,(e,t)=>e===t)||(this.additionalActions=e,this.updateToolbar())}};h_=o_([s_(3,or),s_(4,In),s_(5,Mo),s_(6,Be),s_(7,so),s_(8,Wt)],h_);function g_(e,t,n){let r=mt(e);return!(t<r.left+3||t>r.left+r.width-3||n<r.top+3||n>r.top+r.height-3)}function __(e,t,n){return e===`on`||e!==`off`&&v_(t,n.event)}function v_(e,t){return e===`altKey`?t.ctrlKey||t.metaKey:t.altKey}var y_=class{constructor(e,t,n,r){this.value=e,this.isComplete=t,this.hasLoadingMessage=n,this.options=r}},b_=class extends Eo{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new bs),this.onResult=this._onResult.event,this._asyncComputationScheduler=this._register(new x_(e=>this._triggerAsyncComputation(e),0)),this._syncComputationScheduler=this._register(new x_(e=>this._triggerSyncComputation(e),0)),this._loadingMessageScheduler=this._register(new x_(e=>this._triggerLoadingMessage(e),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&=(this._asyncIterable.cancel(),null),this._options=void 0,super.dispose()}get _hoverTime(){return this._editor.getOption(69).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t){this._options=t,this._state=e,this._fireResult(t)}_triggerAsyncComputation(e){this._setState(2,e),this._syncComputationScheduler.schedule(e,this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=Xr(t=>this._computer.computeAsync(e,t)),(async()=>{try{for await(let t of this._asyncIterable)t&&(this._result.push(t),this._fireResult(e));this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0,e)}catch(e){An(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(e){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync(e))),this._setState(this._asyncIterableDone?0:3,e)}_triggerLoadingMessage(e){this._state===3&&this._setState(4,e)}_fireResult(e){if(this._state===1||this._state===2)return;let t=this._state===0,n=this._state===4;this._onResult.fire(new y_(this._result.slice(0),t,n,e))}start(e,t){if(e===0)this._state===0&&(this._setState(1,t),this._asyncComputationScheduler.schedule(t,this._firstWaitTime),this._loadingMessageScheduler.schedule(t,this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(t),this._syncComputationScheduler.cancel(),this._triggerSyncComputation(t);break;case 2:this._syncComputationScheduler.cancel(),this._triggerSyncComputation(t)}}cancel(){this._asyncComputationScheduler.cancel(),this._syncComputationScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&=(this._asyncIterable.cancel(),null),this._result=[],this._options=void 0,this._state=0}get options(){return this._options}},x_=class extends Eo{constructor(e,t){super(),this._scheduler=this._register(new mr(()=>e(this._options),t))}schedule(e,t){this._options=e,this._scheduler.schedule(t)}cancel(){this._scheduler.cancel()}},S_=class{get onDidWillResize(){return this._onDidWillResize.event}get onDidResize(){return this._onDidResize.event}constructor(){this._onDidWillResize=new bs,this._onDidResize=new bs,this._sashListener=new Ll,this._size=new ss(0,0),this._minSize=new ss(0,0),this._maxSize=new ss(2**53-1,2**53-1),this.domNode=document.createElement(`div`),this._eastSash=new sr(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new sr(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new sr(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:En.North}),this._southSash=new sr(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:En.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,n=0;this._sashListener.add(Ku.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,n=0)})),this._sashListener.add(Ku.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,n=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(r=>{e&&(n=r.currentX-r.startX,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(r=>{e&&(n=-(r.currentX-r.startX),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(r=>{e&&(t=-(r.currentY-r.startY),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(r=>{e&&(t=r.currentY-r.startY,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(Ku.any(this._eastSash.onDidReset,this._westSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(Ku.any(this._northSash.onDidReset,this._southSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,n,r){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=n?3:0,this._westSash.state=r?3:0}layout(e=this.size.height,t=this.size.width){let{height:n,width:r}=this._minSize,{height:i,width:a}=this._maxSize;e=Math.max(n,Math.min(i,e)),t=Math.max(r,Math.min(a,t));let o=new ss(t,e);ss.equals(o,this._size)||(this.domNode.style.height=e+`px`,this.domNode.style.width=t+`px`,this._size=o,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}},C_=30,w_=24,T_=class extends Eo{constructor(e,t=new ss(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new S_),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position=`absolute`,this._resizableNode.minSize=ss.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(e=>{this._resize(new ss(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){return this._contentPosition?.position?Dn.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){let t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);if(!(!t||!n))return mt(t).top+n.top-C_}_availableVerticalSpaceBelow(e){let t=this._editor.getDomNode(),n=this._editor.getScrolledVisiblePosition(e);if(!t||!n)return;let r=mt(t),i=Vi(t.ownerDocument.body),a=r.top+n.top+n.height;return i.height-a-w_}_findPositionPreference(e,t){let n=Math.min(this._availableVerticalSpaceBelow(t)??1/0,e),r=Math.min(this._availableVerticalSpaceAbove(t)??1/0,e),i=Math.min(e,Math.min(Math.max(r,n),e)),a;return a=this._editor.getOption(69).above?i<=r?1:2:i<=n?2:1,a===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),a}_resize(e){this._resizableNode.layout(e.height,e.width)}},E_=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},D_=function(e,t){return function(n,r){t(n,r,e)}},O_,k_=30,A_=class extends T_{static{O_=this}static{this.ID=`editor.contrib.resizableContentHoverWidget`}static{this._lastDimensions=new ss(0,0)}get isVisibleFromKeyboard(){return this._renderedHover?.source===2}get isVisible(){return this._hoverVisibleKey.get()??!1}get isFocused(){return this._hoverFocusedKey.get()??!1}constructor(e,t,n,r,i){let a=e.getOption(75)+8,o=new ss(150,a);super(e,o),this._configurationService=n,this._accessibilityService=r,this._keybindingService=i,this._hover=this._register(new Al(!0)),this._onDidResize=this._register(new bs),this.onDidResize=this._onDidResize.event,this._onDidScroll=this._register(new bs),this.onDidScroll=this._onDidScroll.event,this._onContentsChanged=this._register(new bs),this.onContentsChanged=this._onContentsChanged.event,this._minimumSize=o,this._hoverVisibleKey=G.hoverVisible.bindTo(t),this._hoverFocusedKey=G.hoverFocused.bindTo(t),Io(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex=`50`,this._resizableNode.domNode.className=`monaco-resizable-hover`,this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(59)&&this._updateFont()}));let s=this._register(Vn(this._resizableNode.domNode));this._register(s.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(s.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._register(this._hover.scrollbar.onScroll(e=>{this._onDidScroll.fire(e)})),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){super.dispose(),this._renderedHover?.dispose(),this._editor.removeContentWidget(this)}getId(){return O_.ID}static _applyDimensions(e,t,n){let r=typeof t==`number`?`${t}px`:t,i=typeof n==`number`?`${n}px`:n;e.style.width=r,e.style.height=i}_setContentsDomNodeDimensions(e,t){let n=this._hover.contentsDomNode;return O_._applyDimensions(n,e,t)}_setContainerDomNodeDimensions(e,t){let n=this._hover.containerDomNode;return O_._applyDimensions(n,e,t)}_setScrollableElementDimensions(e,t){let n=this._hover.scrollbar.getDomNode();return O_._applyDimensions(n,e,t)}_setHoverWidgetDimensions(e,t){this._setContainerDomNodeDimensions(e,t),this._setScrollableElementDimensions(e,t),this._setContentsDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,n){let r=typeof t==`number`?`${t}px`:t,i=typeof n==`number`?`${n}px`:n;e.style.maxWidth=r,e.style.maxHeight=i}_setHoverWidgetMaxDimensions(e,t){O_._applyMaxDimensions(this._hover.contentsDomNode,e,t),O_._applyMaxDimensions(this._hover.scrollbar.getDomNode(),e,t),O_._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty(`--vscode-hover-maxWidth`,typeof e==`number`?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions(`none`,`none`),this._setHoverWidgetDimensions(e.width,e.height)}_updateResizableNodeMaxDimensions(){let e=this._findMaximumRenderingWidth()??1/0,t=this._findMaximumRenderingHeight()??1/0;this._resizableNode.maxSize=new ss(e,t),this._setHoverWidgetMaxDimensions(e,t)}_resize(e){O_._lastDimensions=new ss(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){let e=this._renderedHover?.showAtPosition;if(e)return this._positionPreference===1?this._availableVerticalSpaceAbove(e):this._availableVerticalSpaceBelow(e)}_findMaximumRenderingHeight(){let e=this._findAvailableSpaceVertically();if(!e)return;let t=this._hover.contentsDomNode.children.length-1;return Array.from(this._hover.contentsDomNode.children).forEach(e=>{t+=e.clientHeight}),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty(`--vscode-hover-whiteSpace`,`nowrap`),this._hover.containerDomNode.style.setProperty(`--vscode-hover-sourceWhiteSpace`,`nowrap`);let e=Array.from(this._hover.contentsDomNode.children).some(e=>e.scrollWidth>e.clientWidth);return this._hover.containerDomNode.style.removeProperty(`--vscode-hover-whiteSpace`),this._hover.containerDomNode.style.removeProperty(`--vscode-hover-sourceWhiteSpace`),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;let e=this._isHoverTextOverflowing(),t=this._contentWidth===void 0?0:this._contentWidth;return e||this._hover.containerDomNode.clientWidth<t?Vi(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth}isMouseGettingCloser(e,t){if(!this._renderedHover)return!1;if(this._renderedHover.initialMousePosX===void 0||this._renderedHover.initialMousePosY===void 0)return this._renderedHover.initialMousePosX=e,this._renderedHover.initialMousePosY=t,!1;let n=mt(this.getDomNode());this._renderedHover.closestMouseDistance===void 0&&(this._renderedHover.closestMouseDistance=j_(this._renderedHover.initialMousePosX,this._renderedHover.initialMousePosY,n.left,n.top,n.width,n.height));let r=j_(e,t,n.left,n.top,n.width,n.height);return r>this._renderedHover.closestMouseDistance+4?!1:(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,r),!0)}_setRenderedHover(e){this._renderedHover?.dispose(),this._renderedHover=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle(`hidden`,!e)}_updateFont(){let{fontSize:e,lineHeight:t}=this._editor.getOption(59),n=this._hover.contentsDomNode;n.style.fontSize=`${e}px`,n.style.lineHeight=`${t/e}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName(`code`)).forEach(e=>this._editor.applyFontInfo(e))}_updateContent(e){let t=this._hover.contentsDomNode;t.style.paddingBottom=``,t.textContent=``,t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){let e=Math.max(this._editor.getLayoutInfo().height/4,250,O_._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,750,O_._lastDimensions.width);this._resizableNode.maxSize=new ss(t,e),this._setHoverWidgetMaxDimensions(t,e)}_render(e){this._setRenderedHover(e),this._updateFont(),this._updateContent(e.domNode),this.handleContentsChanged(),this._editor.render()}getPosition(){return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[this._positionPreference??1]}:null}show(e){if(!this._editor||!this._editor.hasModel())return;this._render(e);let t=Pe(this._hover.containerDomNode),n=e.showAtPosition;this._positionPreference=this._findPositionPreference(t,n)??1,this.handleContentsChanged(),e.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();let r=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&Sc(this._configurationService.getValue(`accessibility.verbosity.hover`)===!0&&this._accessibilityService.isScreenReaderOptimized(),this._keybindingService.lookupKeybinding(`editor.action.accessibleView`)?.getAriaLabel()??``);r&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+`, `+r)}hide(){if(!this._renderedHover)return;let e=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new ss(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){let e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions(`auto`,`auto`),this._updateMaxDimensions()}setMinimumDimensions(e){this._minimumSize=new ss(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){let e=this._contentWidth===void 0?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new ss(e,this._minimumSize.height)}handleContentsChanged(){this._removeConstraintsRenderNormally();let e=this._hover.contentsDomNode,t=Pe(e),n=Oc(e)+2;if(this._resizableNode.layout(t,n),this._setHoverWidgetDimensions(n,t),t=Pe(e),n=Oc(e),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(t,n),this._renderedHover?.showAtPosition){let e=Pe(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._renderedHover.showAtPosition)}this._layoutContentWidget(),this._onContentsChanged.fire()}focus(){this._hover.containerDomNode.focus()}scrollUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(59);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(59);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-k_})}scrollRight(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+k_})}pageUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};A_=O_=E_([D_(1,In),D_(2,Ou),D_(3,Ma),D_(4,Be)],A_);function j_(e,t,n,r,i,a){let o=n+i/2,s=r+a/2,c=Math.max(Math.abs(e-o)-i/2,0),l=Math.max(Math.abs(t-s)-a/2,0);return Math.sqrt(c*c+l*l)}var M_=class e{constructor(e,t){this._editor=e,this._participants=t}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];let n=e.getModel(),r=t.range.startLineNumber;if(r>n.getLineCount())return[];let i=n.getLineMaxColumn(r);return e.getLineDecorations(r).filter(e=>{if(e.options.isWholeLine)return!0;let n=e.range.startLineNumber===r?e.range.startColumn:1,a=e.range.endLineNumber===r?e.range.endColumn:i;if(e.options.showIfCollapsed){if(n>t.range.startColumn+1||t.range.endColumn-1>a)return!1}else if(n>t.range.startColumn||t.range.endColumn>a)return!1;return!0})}computeAsync(t,n){let r=t.anchor;if(!this._editor.hasModel()||!r)return Uc.EMPTY;let i=e._getLineDecorations(this._editor,r);return Uc.merge(this._participants.map(e=>e.computeAsync?e.computeAsync(r,i,t.source,n):Uc.EMPTY))}computeSync(t){if(!this._editor.hasModel())return[];let n=t.anchor,r=e._getLineDecorations(this._editor,n),i=[];for(let e of this._participants)i=i.concat(e.computeSync(n,r,t.source));return qu(i)}},N_=class{constructor(e,t,n){this.hoverParts=e,this.isComplete=t,this.options=n}filter(e){let t=this.hoverParts.filter(t=>t.isValidForHoverAnchor(e));return t.length===this.hoverParts.length?this:new P_(this,t,this.isComplete,this.options)}},P_=class extends N_{constructor(e,t,n,r){super(t,n,r),this.original=e}filter(e){return this.original.filter(e)}},F_=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I_=function(e,t){return function(n,r){t(n,r,e)}},L_=id,R_=class extends Eo{get hasContent(){return this._hasContent}constructor(e,t){super(),this._keybindingService=e,this._hoverService=t,this.actions=[],this._hasContent=!1,this.hoverElement=L_(`div.hover-row.status-bar`),this.hoverElement.tabIndex=0,this.actionsElement=Io(this.hoverElement,L_(`div.actions`))}addAction(e){let t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;this._hasContent=!0;let r=this._register(Qu.render(this.actionsElement,e,n));return this._register(this._hoverService.setupManagedHover(bc(`element`),r.actionContainer,r.actionRenderedLabel)),this.actions.push(r),r}append(e){let t=Io(this.actionsElement,e);return this._hasContent=!0,t}};R_=F_([I_(0,Be),I_(1,zu)],R_);var z_=class e{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){let e=this._findScopeDecorationIds.map(e=>this._editor.getModel().getDecorationRange(e)).filter(e=>!!e);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){let t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(t){let n=this._editor.getModel().getDecorationsInRange(t);for(let t of n){let n=t.options;if(n===e._FIND_MATCH_DECORATION||n===e._FIND_MATCH_NO_OVERVIEW_DECORATION||n===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(t.id)}return 0}setCurrentFindMatch(t){let n=null,r=0;if(t)for(let e=0,i=this._decorations.length;e<i;e++){let i=this._editor.getModel().getDecorationRange(this._decorations[e]);if(t.equalsRange(i)){n=this._decorations[e],r=e+1;break}}return(this._highlightedDecorationId!==null||n!==null)&&this._editor.changeDecorations(t=>{if(this._highlightedDecorationId!==null&&(t.changeDecorationOptions(this._highlightedDecorationId,e._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),n!==null&&(this._highlightedDecorationId=n,t.changeDecorationOptions(this._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(t.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),n!==null){let r=this._editor.getModel().getDecorationRange(n);if(r.startLineNumber!==r.endLineNumber&&r.endColumn===1){let e=r.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);r=new B(r.startLineNumber,r.startColumn,e,t)}this._rangeHighlightDecorationId=t.addDecoration(r,e._RANGE_HIGHLIGHT_DECORATION)}}),r}set(t,n){this._editor.changeDecorations(r=>{let i=e._FIND_MATCH_DECORATION,a=[];if(t.length>1e3){i=e._FIND_MATCH_NO_OVERVIEW_DECORATION;let n=this._editor.getModel().getLineCount(),r=this._editor.getLayoutInfo().height/n,o=Math.max(2,Math.ceil(3/r)),s=t[0].range.startLineNumber,c=t[0].range.endLineNumber;for(let n=1,r=t.length;n<r;n++){let r=t[n].range;c+o>=r.startLineNumber?r.endLineNumber>c&&(c=r.endLineNumber):(a.push({range:new B(s,1,c,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),s=r.startLineNumber,c=r.endLineNumber)}a.push({range:new B(s,1,c,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let o=Array(t.length);for(let e=0,n=t.length;e<n;e++)o[e]={range:t[e].range,options:i};this._decorations=r.deltaDecorations(this._decorations,o),this._overviewRulerApproximateDecorations=r.deltaDecorations(this._overviewRulerApproximateDecorations,a),this._rangeHighlightDecorationId&&=(r.removeDecoration(this._rangeHighlightDecorationId),null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(e=>r.removeDecoration(e)),this._findScopeDecorationIds=[]),n?.length&&(this._findScopeDecorationIds=n.map(t=>r.addDecoration(t,e._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let n=this._decorations[t],r=this._editor.getModel().getDecorationRange(n);if(!(!r||r.endLineNumber>e.lineNumber)&&(r.endLineNumber<e.lineNumber||!(r.endColumn>e.column)))return r}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,n=this._decorations.length;t<n;t++){let n=this._decorations[t],r=this._editor.getModel().getDecorationRange(n);if(!(!r||r.startLineNumber<e.lineNumber)&&(r.startLineNumber>e.lineNumber||!(r.startColumn<e.column)))return r}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}static{this._CURRENT_FIND_MATCH_DECORATION=nu.register({description:`current-find-match`,stickiness:1,zIndex:13,className:`currentFindMatch`,inlineClassName:`currentFindMatchInline`,showIfCollapsed:!0,overviewRuler:{color:Za(Ne),position:ra.Center},minimap:{color:Za(si),position:1}})}static{this._FIND_MATCH_DECORATION=nu.register({description:`find-match`,stickiness:1,zIndex:10,className:`findMatch`,inlineClassName:`findMatchInline`,showIfCollapsed:!0,overviewRuler:{color:Za(Ne),position:ra.Center},minimap:{color:Za(si),position:1}})}static{this._FIND_MATCH_NO_OVERVIEW_DECORATION=nu.register({description:`find-match-no-overview`,stickiness:1,className:`findMatch`,showIfCollapsed:!0})}static{this._FIND_MATCH_ONLY_OVERVIEW_DECORATION=nu.register({description:`find-match-only-overview`,stickiness:1,overviewRuler:{color:Za(Ne),position:ra.Center}})}static{this._RANGE_HIGHLIGHT_DECORATION=nu.register({description:`find-range-highlight`,stickiness:1,className:`rangeHighlight`,isWholeLine:!0})}static{this._FIND_SCOPE_DECORATION=nu.register({description:`find-scope`,className:`findScope`,isWholeLine:!0})}},B_=class{constructor(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort((e,t)=>B.compareRangesUsingStarts(e.range,t.range));let n=[],r=e[0];for(let t=1;t<e.length;t++)r.range.endLineNumber===e[t].range.startLineNumber&&r.range.endColumn===e[t].range.startColumn?(r.range=r.range.plusRange(e[t].range),r.text+=e[t].text):(n.push(r),r=e[t]);n.push(r);for(let e of n)t.addEditOperation(e.range,e.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}};function V_(e,t){if(e&&e[0]!==``){let n=H_(e,t,`-`),r=H_(e,t,`_`);return n&&!r?U_(e,t,`-`):!n&&r?U_(e,t,`_`):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():io(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function H_(e,t,n){return e[0].indexOf(n)!==-1&&t.indexOf(n)!==-1&&e[0].split(n).length===t.split(n).length}function U_(e,t,n){let r=t.split(n),i=e[0].split(n),a=``;return r.forEach((e,t)=>{a+=V_([i[t]],e)+n}),a.slice(0,-1)}var W_=class{constructor(e){this.staticValue=e,this.kind=0}},G_=class{constructor(e){this.pieces=e,this.kind=1}},K_=class e{static fromStaticValue(t){return new e([q_.staticValue(t)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){this._state=!e||e.length===0?new W_(``):e.length===1&&e[0].staticValue!==null?new W_(e[0].staticValue):new G_(e)}buildReplaceString(t,n){if(this._state.kind===0)return n?V_(t,this._state.staticValue):this._state.staticValue;let r=``;for(let n=0,i=this._state.pieces.length;n<i;n++){let i=this._state.pieces[n];if(i.staticValue!==null){r+=i.staticValue;continue}let a=e._substitute(i.matchIndex,t);if(i.caseOps!==null&&i.caseOps.length>0){let e=[],t=i.caseOps.length,n=0;for(let r=0,o=a.length;r<o;r++){if(n>=t){e.push(a.slice(r));break}switch(i.caseOps[n]){case`U`:e.push(a[r].toUpperCase());break;case`u`:e.push(a[r].toUpperCase()),n++;break;case`L`:e.push(a[r].toLowerCase());break;case`l`:e.push(a[r].toLowerCase()),n++;break;default:e.push(a[r])}}a=e.join(``)}r+=a}return r}static _substitute(e,t){if(t===null)return``;if(e===0)return t[0];let n=``;for(;e>0;){if(e<t.length)return(t[e]||``)+n;n=String(e%10)+n,e=Math.floor(e/10)}return`$`+n}},q_=class e{static staticValue(t){return new e(t,-1,null)}static caseOps(t,n){return new e(null,t,n)}constructor(e,t,n){this.staticValue=e,this.matchIndex=t,this.caseOps=!n||n.length===0?null:n.slice(0)}},J_=class{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=``}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){e.length!==0&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,n){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=q_.staticValue(this._currentStaticPiece),this._currentStaticPiece=``),this._result[this._resultLen++]=q_.caseOps(e,n),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=q_.staticValue(this._currentStaticPiece),this._currentStaticPiece=``),new K_(this._result)}};function Y_(e){if(!e||e.length===0)return new K_(null);let t=[],n=new J_(e);for(let r=0,i=e.length;r<i;r++){let a=e.charCodeAt(r);if(a===92){if(r++,r>=i)break;let a=e.charCodeAt(r);switch(a){case 92:n.emitUnchanged(r-1),n.emitStatic(`\\`,r+1);break;case 110:n.emitUnchanged(r-1),n.emitStatic(`
|
|
@@ -49,9 +49,9 @@ The first edit matching the preferences will be applied.`),items:{type:`string`}
|
|
|
49
49
|
`);return new e(t,n,i,l,a,o,u)}constructor(e,t,n,r,i,a,o){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=r,this.wholeWord=i,this.matchCase=a,this.currentMatch=o}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();return e?new RL(this._editor.getSelections().concat(e),e,0):null}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new RL(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1);return n?new ni(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();return e?new RL(this._editor.getSelections().concat(e),e,0):null}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new RL(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1);return n?new ni(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(148):null,!1,1073741824)}},BL=class e extends Eo{static{this.ID=`editor.contrib.multiCursorController`}static get(t){return t.getContribution(e.ID)}constructor(e){super(),this._sessionDispose=this._register(new Ll),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=zL.create(this._editor,e);if(!t)return;this._session=t;let n={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(n.wholeWordOverride=1,n.matchCaseOverride=1,n.isRegexOverride=2),e.getState().change(n,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let n=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return n?new ni(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let n=e.getState().matchCase;if(!XL(this._editor.getModel(),t,n)){let e=this._editor.getModel(),n=[];for(let r=0,i=t.length;r<i;r++)n[r]=this._expandEmptyToWord(e,t[r]);this._editor.setSelections(n);return}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null,n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex){let e=this._editor.getModel();t=n.searchScope?e.findMatches(n.searchString,n.searchScope,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(148):null,!1,1073741824):e.findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(148):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(n.searchScope)}if(t.length>0){let e=this._editor.getSelection();for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.range.intersectRanges(e)){t[n]=t[0],t[0]=r;break}}this._setSelections(t.map(e=>new ni(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}},VL=class extends Wl{run(e,t){let n=BL.get(t);if(!n)return;let r=t._getViewModel();if(r){let i=r.getCursorStates(),a=fC.get(t);if(a)this._run(n,a);else{let r=e.get(Il).createInstance(fC,t);this._run(n,r),r.dispose()}ML(i,r.getCursorStates())}}},HL=class extends VL{constructor(){super({id:`editor.action.addSelectionToNextFindMatch`,label:z(1349,`Add Selection to Next Find Match`),precondition:void 0,kbOpts:{kbExpr:G.focus,primary:2082,weight:100},menuOpts:{menuId:wi.MenubarSelectionMenu,group:`3_multi`,title:U(1339,`Add &&Next Occurrence`),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}},UL=class extends VL{constructor(){super({id:`editor.action.addSelectionToPreviousFindMatch`,label:z(1350,`Add Selection to Previous Find Match`),precondition:void 0,menuOpts:{menuId:wi.MenubarSelectionMenu,group:`3_multi`,title:U(1340,`Add P&&revious Occurrence`),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}},WL=class extends VL{constructor(){super({id:`editor.action.moveSelectionToNextFindMatch`,label:z(1351,`Move Last Selection to Next Find Match`),precondition:void 0,kbOpts:{kbExpr:G.focus,primary:va(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}},GL=class extends VL{constructor(){super({id:`editor.action.moveSelectionToPreviousFindMatch`,label:z(1352,`Move Last Selection to Previous Find Match`),precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}},KL=class extends VL{constructor(){super({id:`editor.action.selectHighlights`,label:z(1353,`Select All Occurrences of Find Match`),precondition:void 0,kbOpts:{kbExpr:G.focus,primary:3114,weight:100},menuOpts:{menuId:wi.MenubarSelectionMenu,group:`3_multi`,title:U(1341,`Select All &&Occurrences`),order:7}})}_run(e,t){e.selectAll(t)}},qL=class extends VL{constructor(){super({id:`editor.action.changeAll`,label:z(1354,`Change All Occurrences`),precondition:hu.and(G.writable,G.editorTextFocus),kbOpts:{kbExpr:G.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:`1_modification`,order:1.2}})}_run(e,t){e.selectAll(t)}},JL=class{constructor(e,t,n,r,i){this._model=e,this._searchText=t,this._matchCase=n,this._wordSeparators=r,this._cachedFindMatches=null,this._modelVersionId=this._model.getVersionId(),i&&this._model===i._model&&this._searchText===i._searchText&&this._matchCase===i._matchCase&&this._wordSeparators===i._wordSeparators&&this._modelVersionId===i._modelVersionId&&(this._cachedFindMatches=i._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(B.compareRangesUsingStarts)),this._cachedFindMatches}},YL=class extends Eo{static{jL=this}static{this.ID=`editor.contrib.selectionHighlighter`}constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(122),this._isEnabledMultiline=e.getOption(124),this._maxLength=e.getOption(123),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new mr(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(122),this._isEnabledMultiline=e.getOption(124),this._maxLength=e.getOption(123)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?e.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()}));let n=fC.get(e);n&&this._register(n.getState().onFindReplaceStateChange(e=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(jL._createState(this.state,this._isEnabled,this._isEnabledMultiline,this._maxLength,this.editor))}static _createState(e,t,n,r,i){if(!t||!i.hasModel())return null;if(!n){let e=i.getSelection();if(e.startLineNumber!==e.endLineNumber)return null}let a=BL.get(i);if(!a)return null;let o=fC.get(i);if(!o)return null;let s=a.getSession(o);if(!s){let e=i.getSelections();if(e.length>1){let t=o.getState().matchCase;if(!XL(i.getModel(),e,t))return null}s=zL.create(i,o)}if(!s||s.currentMatch||/^[ \t]+$/.test(s.searchText)||r>0&&s.searchText.length>r)return null;let c=o.getState(),l=c.matchCase;if(c.isRevealed){let e=c.searchString;l||(e=e.toLowerCase());let t=s.searchText;if(l||(t=t.toLowerCase()),e===t&&s.matchCase===c.matchCase&&s.wholeWord===c.wholeWord&&!c.isRegex)return null}return new JL(i.getModel(),s.searchText,s.matchCase,s.wholeWord?i.getOption(148):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let n=this.state.findMatches(),r=this.editor.getSelections();r.sort(B.compareRangesUsingStarts);let i=[];for(let e=0,t=0,a=n.length,o=r.length;e<a;){let a=n[e];if(t>=o)i.push(a),e++;else{let n=B.compareRangesUsingStarts(a,r[t]);n<0?((r[t].isEmpty()||!B.areIntersecting(a,r[t]))&&i.push(a),e++):(n>0||e++,t++)}}let a=this.editor.getOption(90)!==`off`,o=this._languageFeaturesService.documentHighlightProvider.has(t)&&a,s=i.map(e=>({range:e,options:OL(o)}));this._decorations.set(s)}dispose(){this._setState(null),super.dispose()}};YL=jL=kL([AL(1,gl)],YL);function XL(e,t,n){let r=ZL(e,t[0],!n);for(let i=1,a=t.length;i<a;i++){let a=t[i];if(a.isEmpty()||r!==ZL(e,a,!n))return!1}return!0}function ZL(e,t,n){let r=e.getValueInRange(t);return n?r.toLowerCase():r}var QL=class extends Wl{constructor(){super({id:`editor.action.focusNextCursor`,label:z(1355,`Focus Next Cursor`),metadata:{description:U(1342,`Focuses the next cursor`),args:[]},precondition:void 0})}run(e,t,n){if(!t.hasModel())return;let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let i=Array.from(r.getCursorStates()),a=i.shift();a&&(i.push(a),r.setCursorStates(n.source,3,i),r.revealPrimaryCursor(n.source,!0),ML(i,r.getCursorStates()))}},$L=class extends Wl{constructor(){super({id:`editor.action.focusPreviousCursor`,label:z(1356,`Focus Previous Cursor`),metadata:{description:U(1343,`Focuses the previous cursor`),args:[]},precondition:void 0})}run(e,t,n){if(!t.hasModel())return;let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let i=Array.from(r.getCursorStates()),a=i.pop();a&&(i.unshift(a),r.setCursorStates(n.source,3,i),r.revealPrimaryCursor(n.source,!0),ML(i,r.getCursorStates()))}};ru(BL.ID,BL,4),ru(YL.ID,YL,1),hs(NL),hs(PL),hs(FL),hs(HL),hs(UL),hs(WL),hs(GL),hs(KL),hs(qL),hs(IL),hs(LL),hs(QL),hs($L);var eR={Visible:new Qa(`parameterHintsVisible`,!1),MultipleSignatures:new Qa(`parameterHintsMultipleSignatures`,!1)};async function tR(e,t,n,r,i){let a=e.ordered(t);for(let e of a)try{let a=await e.provideSignatureHelp(t,n,i,r);if(a)return a}catch(e){Ka(e)}}Ba.registerCommand(`_executeSignatureHelpProvider`,async(e,...t)=>{let[n,r,i]=t;kc(cr.isUri(n)),kc(Dn.isIPosition(r)),kc(typeof i==`string`||!i);let a=e.get(gl),o=await e.get(bu).createModelReference(n);try{let e=await tR(a.signatureHelpProvider,o.object.textEditorModel,Dn.lift(r),{triggerKind:Wr.Invoke,isRetrigger:!1,triggerCharacter:i},sa.None);return e?(setTimeout(()=>e.dispose(),0),e.value):void 0}finally{o.dispose()}});var nR;(function(e){e.Default={type:0};class t{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}}e.Pending=t;class n{constructor(e){this.hints=e,this.type=1}}e.Active=n})(nR||={});var rR=class e extends Eo{static{this.DEFAULT_DELAY=120}constructor(t,n,r=e.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new bs),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=nR.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Nu),this.triggerChars=new pu,this.retriggerChars=new pu,this.triggerId=0,this.editor=t,this.providers=n,this.throttledDelayer=this._register(new jc(r)),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=nR.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let n=this.editor.getModel();if(!n||!this.providers.has(n))return;let r=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(r),t).catch(An)}next(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e===e-1,r=this.editor.getOption(98).cycle;if((e<2||n)&&!r){this.cancel();return}this.updateActiveSignature(n&&r?0:t+1)}previous(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t===0,r=this.editor.getOption(98).cycle;if((e<2||n)&&!r){this.cancel();return}this.updateActiveSignature(n&&r?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new nR.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){let t=this.state.type===1||this.state.type===2,n=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;let r=this._pendingTriggers.reduce(iR);this._pendingTriggers=[];let i={triggerKind:r.triggerKind,triggerCharacter:r.triggerCharacter,isRetrigger:t,activeSignatureHelp:n};if(!this.editor.hasModel())return!1;let a=this.editor.getModel(),o=this.editor.getPosition();this.state=new nR.Pending(Bt(e=>tR(this.providers,a,o,i,e)),n);try{let t=await this.state.request;return e===this.triggerId?!t||!t.value.signatures||t.value.signatures.length===0?(t?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new nR.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(t?.dispose(),!1)}catch(t){return e===this.triggerId&&(this.state=nR.Default),An(t),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let e of t.signatureHelpTriggerCharacters||[])if(e.length){let t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(let e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:Wr.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source===`mouse`?this.cancel():this.isTriggered&&this.trigger({triggerKind:Wr.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Wr.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(98).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}};function iR(e,t){switch(t.triggerKind){case Wr.Invoke:return t;case Wr.ContentChange:return e;case Wr.TriggerCharacter:default:return t}}var aR=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oR=function(e,t){return function(n,r){t(n,r,e)}},sR,cR=id,lR=rn(`parameter-hints-next`,Mr.chevronDown,U(1358,`Icon for show next parameter hint.`)),uR=rn(`parameter-hints-previous`,Mr.chevronUp,U(1359,`Icon for show previous parameter hint.`)),dR=class extends Eo{static{sR=this}static{this.ID=`editor.widget.parameterHintsWidget`}constructor(e,t,n,r){super(),this.editor=e,this.model=t,this.markdownRendererService=r,this.renderDisposeables=this._register(new Ll),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.keyVisible=eR.Visible.bindTo(n),this.keyMultipleSignatures=eR.MultipleSignatures.bindTo(n)}createParameterHintDOMNodes(){let e=cR(`.editor-widget.parameter-hints-widget`),t=Io(e,cR(`.phwrapper`));t.tabIndex=-1;let n=Io(t,cR(`.controls`)),r=Io(n,cR(`.button`+fi.asCSSSelector(uR))),i=Io(n,cR(`.overloads`)),a=Io(n,cR(`.button`+fi.asCSSSelector(lR)));this._register(po(r,`click`,e=>{Ms.stop(e),this.previous()})),this._register(po(a,`click`,e=>{Ms.stop(e),this.next()}));let o=cR(`.body`),s=new gt(o,{alwaysConsumeMouseWheel:!0});this._register(s),t.appendChild(s.getDomNode());let c=Io(o,cR(`.signature`)),l=Io(o,cR(`.docs`));e.style.userSelect=`text`,this.domNodes={element:e,signature:c,overloads:i,docs:l,scrollbar:s},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(e=>{this.visible&&this.editor.layoutContentWidget(this)}));let u=()=>{if(!this.domNodes)return;let e=this.editor.getOption(59),t=this.domNodes.element;t.style.fontSize=`${e.fontSize}px`,t.style.lineHeight=`${e.lineHeight/e.fontSize}`,t.style.setProperty(`--vscode-parameterHintsWidget-editorFontFamily`,e.fontFamily),t.style.setProperty(`--vscode-parameterHintsWidget-editorFontFamilyDefault`,mi.fontFamily)};u(),this._register(Ku.chain(this.editor.onDidChangeConfiguration.bind(this.editor),e=>e.filter(e=>e.hasChanged(59)))(u)),this._register(this.editor.onDidLayoutChange(e=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes?.element.classList.add(`visible`)},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes?.element.classList.remove(`visible`),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){if(this.renderDisposeables.clear(),!this.domNodes)return;let t=e.signatures.length>1;this.domNodes.element.classList.toggle(`multiple`,t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText=``,this.domNodes.docs.innerText=``;let n=e.signatures[e.activeSignature];if(!n)return;let r=Io(this.domNodes.signature,cR(`.code`)),i=n.parameters.length>0,a=n.activeParameter??e.activeParameter;if(i)this.renderParameters(r,n,a);else{let e=Io(r,cR(`span`));e.textContent=n.label}let o=n.parameters[a];if(o?.documentation){let e=cR(`span.documentation`);if(typeof o.documentation==`string`)e.textContent=o.documentation;else{let t=this.renderMarkdownDocs(o.documentation);e.appendChild(t.element)}Io(this.domNodes.docs,cR(`p`,{},e))}if(n.documentation!==void 0){if(typeof n.documentation==`string`)Io(this.domNodes.docs,cR(`p`,{},n.documentation));else{let e=this.renderMarkdownDocs(n.documentation);Io(this.domNodes.docs,e.element)}}let s=this.hasDocs(n,o);if(this.domNodes.signature.classList.toggle(`has-docs`,s),this.domNodes.docs.classList.toggle(`empty`,!s),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,`0`)+`/`+e.signatures.length,o){let e=``,t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+=typeof t.documentation==`string`?`, ${t.documentation}`:`, ${t.documentation.value}`),n.documentation&&(e+=typeof n.documentation==`string`?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==e&&(Ts(U(1360,`{0}, hint`,e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){let t=this.renderDisposeables.add(this.markdownRendererService.render(e,{context:this.editor,asyncRenderCallback:()=>{this.domNodes?.scrollbar.scanDomNode()}}));return t.element.classList.add(`markdown-docs`),t}hasDocs(e,t){return!!(t&&typeof t.documentation==`string`&&Fe(t.documentation).length>0||t&&typeof t.documentation==`object`&&Fe(t.documentation).value.length>0||e.documentation&&typeof e.documentation==`string`&&Fe(e.documentation).length>0||e.documentation&&typeof e.documentation==`object`&&Fe(e.documentation.value).length>0)}renderParameters(e,t,n){let[r,i]=this.getParameterLabelOffsets(t,n),a=document.createElement(`span`);a.textContent=t.label.substring(0,r);let o=document.createElement(`span`);o.textContent=t.label.substring(r,i),o.className=`parameter active`;let s=document.createElement(`span`);s.textContent=t.label.substring(i),Io(e,a,o,s)}getParameterLabelOffsets(e,t){let n=e.parameters[t];if(!n)return[0,0];if(Array.isArray(n.label))return n.label;if(n.label.length){let t=RegExp(`(\\W|^)${ci(n.label)}(?=\\W|$)`,`g`);t.test(e.label);let r=t.lastIndex-n.label.length;return r>=0?[r,t.lastIndex]:[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return sR.ID}updateMaxHeight(){if(!this.domNodes)return;let e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;let t=this.domNodes.element.getElementsByClassName(`phwrapper`);t.length&&(t[0].style.maxHeight=e)}};dR=sR=aR([oR(2,In),oR(3,Re)],dR),Zi(`editorHoverWidget.highlightForeground`,W,U(1361,`Foreground color of the active item in the parameter hint.`));var fR=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pR=function(e,t){return function(n,r){t(n,r,e)}},mR,hR=class extends Eo{static{mR=this}static{this.ID=`editor.controller.parameterHints`}static get(e){return e.getContribution(mR.ID)}constructor(e,t,n){super(),this.editor=e,this.model=this._register(new rR(e,n.signatureHelpProvider)),this._register(this.model.onChangedHints(e=>{e?(this.widget.value.show(),this.widget.value.render(e)):this.widget.rawValue?.hide()})),this.widget=new _s(()=>this._register(t.createInstance(dR,this.editor,this.model)))}cancel(){this.model.cancel()}previous(){this.widget.rawValue?.previous()}next(){this.widget.rawValue?.next()}trigger(e){this.model.trigger(e,0)}};hR=mR=fR([pR(1,Il),pR(2,gl)],hR);var gR=class extends Wl{constructor(){super({id:`editor.action.triggerParameterHints`,label:z(1357,`Trigger Parameter Hints`),precondition:G.hasSignatureHelpProvider,kbOpts:{kbExpr:G.editorTextFocus,primary:3082,weight:100}})}run(e,t){hR.get(t)?.trigger({triggerKind:Wr.Invoke})}};ru(hR.ID,hR,2),hs(gR);var _R=175,vR=ns.bindToContribution(hR.get);Bs(new vR({id:`closeParameterHints`,precondition:eR.Visible,handler:e=>e.cancel(),kbOpts:{weight:_R,kbExpr:G.focus,primary:9,secondary:[1033]}})),Bs(new vR({id:`showPrevParameterHint`,precondition:hu.and(eR.Visible,eR.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:_R,kbExpr:G.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Bs(new vR({id:`showNextParameterHint`,precondition:hu.and(eR.Visible,eR.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:_R,kbExpr:G.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var yR=class extends Eo{static{this.ID=`editor.contrib.placeholderText`}constructor(e){super(),this._editor=e,this._editorObs=zi(this._editor),this._placeholderText=this._editorObs.getOption(100),this._state=$l({owner:this,equalsFn:Mi},e=>{let t=this._placeholderText.read(e);if(t&&this._editorObs.valueIsEmpty.read(e))return{placeholder:t}}),this._shouldViewBeAlive=bR(this,e=>this._state.read(e)?.placeholder!==void 0),this._view=cd(e=>{if(!this._shouldViewBeAlive.read(e))return;let t=Cr(`div.editorPlaceholder`);e.store.add(Iu(e=>{let n=this._state.read(e),r=n?.placeholder!==void 0;t.root.style.display=r?`block`:`none`,t.root.innerText=n?.placeholder??``})),e.store.add(Iu(e=>{let n=this._editorObs.layoutInfo.read(e);t.root.style.left=`${n.contentLeft}px`,t.root.style.width=n.contentWidth-n.verticalScrollbarWidth+`px`,t.root.style.top=`${this._editor.getTopForLineNumber(0)}px`})),e.store.add(Iu(e=>{t.root.style.fontFamily=this._editorObs.getOption(58).read(e),t.root.style.fontSize=this._editorObs.getOption(61).read(e)+`px`,t.root.style.lineHeight=this._editorObs.getOption(75).read(e)+`px`})),e.store.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:Ol(0),position:Ol(null),domNode:t.root}))}),this._view.recomputeInitiallyAndOnChange(this._store)}};function bR(e,t){return Ga(e,(e,n)=>n===!0||t(e))}var xR=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SR=function(e,t){return function(n,r){t(n,r,e)}},CR=class{constructor(e){this.instantiationService=e}init(...e){}};function mee(e){return e()}var wR=class extends CR{constructor(e,t){super(t),this.init(e)}};wR=xR([SR(1,Il)],wR),ru(yR.ID,mee(()=>yR),0),Zi(`editor.placeholder.foreground`,$t,U(1380,`Foreground color of the placeholder text in the editor.`));var TR=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ER=function(e,t){return function(n,r){t(n,r,e)}},DR=class extends Eo{static{this.ID=`editor.sectionHeaderDetector`}constructor(e,t,n){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=n,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(81)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel(t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(81)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(e.onDidChangeModelLanguage(t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(81)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(t.onDidChange(t=>{let n=this.editor.getModel()?.getLanguageId();n&&t.affects(n)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(81)),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(e.onDidChangeConfiguration(t=>{this.options&&!t.hasChanged(81)||(this.options=this.createOptions(e.getOption(81)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(this.editor.onDidChangeModelContent(e=>{this.computeSectionHeaders.schedule()})),this._register(e.onDidChangeModelTokens(e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)})),this.computeSectionHeaders=this._register(new mr(()=>{this.findSectionHeaders()},250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;let t=this.editor.getModel().getLanguageId();if(!t)return;let n=this.languageConfigurationService.getLanguageConfiguration(t).comments,r=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;if(!(!n&&!r?.markers))return{foldingRules:r,markSectionHeaderRegex:e.markSectionHeaderRegex,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}}findSectionHeaders(){if(!this.editor.hasModel()||!this.options?.findMarkSectionHeaders&&!this.options?.findRegionSectionHeaders)return;let e=this.editor.getModel();if(e.isDisposed()||e.isTooLargeForSyncing())return;let t=e.getVersionId();this.editorWorkerService.findSectionHeaders(e.uri,this.options).then(n=>{e.isDisposed()||e.getVersionId()!==t||this.updateDecorations(n)})}updateDecorations(e){let t=this.editor.getModel();t&&(e=e.filter(e=>{if(!e.shouldBeInComments)return!0;let n=t.validateRange(e.range),r=t.tokenization.getLineTokens(n.startLineNumber),i=r.findTokenIndexAtOffset(n.startColumn-1),a=r.getStandardTokenType(i),o=t.getLanguageIdAtPosition(n.startLineNumber,n.startColumn);return r.getLanguageId(i)===o&&a===1}));let n=Object.values(this.currentOccurrences).map(e=>e.decorationId),r=e.map(e=>OR(e));this.editor.changeDecorations(t=>{let i=t.deltaDecorations(n,r);this.currentOccurrences={};for(let t=0,n=i.length;t<n;t++){let n={sectionHeader:e[t],decorationId:i[t]};this.currentOccurrences[n.decorationId]=n}})}stop(){this.computeSectionHeaders.cancel(),this.computePromise&&=(this.computePromise.cancel(),null)}dispose(){super.dispose(),this.stop(),this.decorations.clear()}};DR=TR([ER(1,Ra),ER(2,Se)],DR);function OR(e){return{range:e.range,options:nu.createDynamic({description:`section-header`,stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}ru(DR.ID,DR,1);function kR(e){for(let t=0,n=e.length;t<n;t+=4){let n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3];e[t+0]=a,e[t+1]=i,e[t+2]=r,e[t+3]=n}}function AR(e){let t=new Uint8Array(e.buffer,e.byteOffset,e.length*4);return J()||kR(t),Ui.wrap(t)}function jR(e){let t=new Uint32Array(MR(e)),n=0;if(t[n++]=e.id,e.type===`full`)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(let r of e.deltas)t[n++]=r.start,t[n++]=r.deleteCount,r.data?(t[n++]=r.data.length,t.set(r.data,n),n+=r.data.length):t[n++]=0}return AR(t)}function MR(e){let t=0;if(t+=2,e.type===`full`)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(let n of e.deltas)n.data&&(t+=n.data.length)}return t}function NR(e){return e&&!!e.data}function PR(e){return e&&Array.isArray(e.edits)}var FR=class{constructor(e,t,n){this.provider=e,this.tokens=t,this.error=n}};function IR(e,t){return e.has(t)}function LR(e,t){let n=e.orderedGroups(t);return n.length>0?n[0]:[]}async function RR(e,t,n,r,i){let a=LR(e,t),o=await Promise.all(a.map(async e=>{let a,o=null;try{a=await e.provideDocumentSemanticTokens(t,e===n?r:null,i)}catch(e){o=e,a=null}return(!a||!NR(a)&&!PR(a))&&(a=null),new FR(e,a,o)}));for(let e of o){if(e.error)throw e.error;if(e.tokens)return e}return o.length>0?o[0]:null}function zR(e,t){let n=e.orderedGroups(t);return n.length>0?n[0]:null}var BR=class{constructor(e,t){this.provider=e,this.tokens=t}};function VR(e,t){return e.has(t)}function HR(e,t){let n=e.orderedGroups(t);return n.length>0?n[0]:[]}async function UR(e,t,n,r){let i=HR(e,t),a=await Promise.all(i.map(async e=>{let i;try{i=await e.provideDocumentRangeSemanticTokens(t,n,r)}catch(e){Ka(e),i=null}return(!i||!NR(i))&&(i=null),new BR(e,i)}));for(let e of a)if(e.tokens)return e;return a.length>0?a[0]:null}Ba.registerCommand(`_provideDocumentSemanticTokensLegend`,async(e,...t)=>{let[n]=t;kc(n instanceof cr);let r=e.get(hc).getModel(n);if(!r)return;let{documentSemanticTokensProvider:i}=e.get(gl),a=zR(i,r);return a?a[0].getLegend():e.get(so).executeCommand(`_provideDocumentRangeSemanticTokensLegend`,n)}),Ba.registerCommand(`_provideDocumentSemanticTokens`,async(e,...t)=>{let[n]=t;kc(n instanceof cr);let r=e.get(hc).getModel(n);if(!r)return;let{documentSemanticTokensProvider:i}=e.get(gl);if(!IR(i,r))return e.get(so).executeCommand(`_provideDocumentRangeSemanticTokens`,n,r.getFullModelRange());let a=await RR(i,r,null,null,sa.None);if(!a)return;let{provider:o,tokens:s}=a;if(!s||!NR(s))return;let c=jR({id:0,type:`full`,data:s.data});return s.resultId&&o.releaseDocumentSemanticTokens(s.resultId),c}),Ba.registerCommand(`_provideDocumentRangeSemanticTokensLegend`,async(e,...t)=>{let[n,r]=t;kc(n instanceof cr);let i=e.get(hc).getModel(n);if(!i)return;let{documentRangeSemanticTokensProvider:a}=e.get(gl),o=HR(a,i);if(o.length===0)return;if(o.length===1)return o[0].getLegend();if(!r||!B.isIRange(r))return console.warn(`provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in`),o[0].getLegend();let s=await UR(a,i,B.lift(r),sa.None);if(s)return s.provider.getLegend()}),Ba.registerCommand(`_provideDocumentRangeSemanticTokens`,async(e,...t)=>{let[n,r]=t;kc(n instanceof cr),kc(B.isIRange(r));let i=e.get(hc).getModel(n);if(!i)return;let{documentRangeSemanticTokensProvider:a}=e.get(gl),o=await UR(a,i,B.lift(r),sa.None);if(!(!o||!o.tokens))return jR({id:0,type:`full`,data:o.tokens.data})});var WR=`editor.semanticHighlighting`;function GR(e,t,n){let r=n.getValue(WR,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return typeof r==`boolean`?r:t.getColorTheme().semanticHighlighting}var KR=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qR=function(e,t){return function(n,r){t(n,r,e)}},JR,YR=class extends Eo{constructor(e,t,n,r,i,a){super(),this._watchers=new ei,this._providerChangeListeners=this._register(new Ll);let o=a.documentSemanticTokensProvider,s=t=>{this._watchers.get(t.uri)?.dispose(),this._watchers.set(t.uri,new XR(t,e,n,i,a))},c=(e,t)=>{t.dispose(),this._watchers.delete(e.uri)},l=()=>{for(let e of t.getModels()){let t=this._watchers.get(e.uri);GR(e,n,r)?t||s(e):t&&c(e,t)}},u=()=>{this._providerChangeListeners.clear();for(let e of o.allNoModel())typeof e.onDidChange==`function`&&this._providerChangeListeners.add(e.onDidChange(()=>{for(let t of this._watchers.values())t.handleProviderDidChange(e)}))};t.getModels().forEach(e=>{GR(e,n,r)&&s(e)}),this._register(t.onModelAdded(e=>{GR(e,n,r)&&s(e)})),this._register(t.onModelRemoved(e=>{let t=this._watchers.get(e.uri);t&&c(e,t)})),this._register(r.onDidChangeConfiguration(e=>{e.affectsConfiguration(`editor.semanticHighlighting`)&&l()})),this._register(n.onDidColorThemeChange(l)),u(),this._register(o.onDidChange(()=>{u();for(let e of this._watchers.values())e.handleRegistryChange()}))}dispose(){ad(this._watchers.values()),this._watchers.clear(),super.dispose()}};YR=KR([qR(0,Ls),qR(1,hc),qR(2,mu),qR(3,Ou),qR(4,sc),qR(5,gl)],YR);var XR=class extends Eo{static{JR=this}static{this.REQUEST_MIN_DELAY=300}static{this.REQUEST_MAX_DELAY=2e3}constructor(e,t,n,r,i){super(),this._semanticTokensStylingService=t,this._relevantProviders=new Set,this._isDisposed=!1,this._model=e,this._provider=i.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,`DocumentSemanticTokens`,{min:JR.REQUEST_MIN_DELAY,max:JR.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new mr(()=>this._fetchDocumentSemanticTokensNow(),JR.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._providersChangedDuringRequest=!1,this._updateRelevantProviders(),this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&=(this._currentDocumentResponse.dispose(),null),this._currentDocumentRequestCancellationTokenSource&&=(this._currentDocumentRequestCancellationTokenSource.cancel(),null),this._setDocumentSemanticTokens(null,null,null,[]),this._updateRelevantProviders(),this._fetchDocumentSemanticTokens.schedule(0)})),this._register(n.onDidColorThemeChange(e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}handleRegistryChange(){this._updateRelevantProviders(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}handleProviderDidChange(e){if(this._relevantProviders.has(e)){if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}}_updateRelevantProviders(){this._relevantProviders=new Set(this._provider.all(this._model))}dispose(){this._currentDocumentResponse&&=(this._currentDocumentResponse.dispose(),null),this._currentDocumentRequestCancellationTokenSource&&=(this._currentDocumentRequestCancellationTokenSource.cancel(),null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!IR(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;let e=new Aa,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,n=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,r=RR(this._provider,this._model,t,n,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;let i=[],a=this._model.onDidChangeContent(e=>{i.push(e)}),o=new xu(!1);r.then(e=>{if(this._debounceInformation.update(this._model,o.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),!e)this._setDocumentSemanticTokens(null,null,null,i);else{let{provider:t,tokens:n}=e,r=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,n||null,r,i)}},e=>{e&&(lu(e)||typeof e.message==`string`&&e.message.indexOf(`busy`)!==-1)||An(e),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),(i.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,n,r,i){i=Math.min(i,n.length-r,e.length-t);for(let a=0;a<i;a++)n[r+a]=e[t+a]}_setDocumentSemanticTokens(e,t,n,r){let i=this._currentDocumentResponse,a=()=>{(r.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&=(this._currentDocumentResponse.dispose(),null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!n){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),a();return}if(PR(t)){if(!i){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:i.data};else{let e=0;for(let n of t.edits)e+=(n.data?n.data.length:0)-n.deleteCount;let r=i.data,a=new Uint32Array(r.length+e),o=r.length,s=a.length;for(let e=t.edits.length-1;e>=0;e--){let c=t.edits[e];if(c.start>r.length){n.warnInvalidEditStart(i.resultId,t.resultId,e,c.start,r.length),this._model.tokenization.setSemanticTokens(null,!0);return}let l=o-(c.start+c.deleteCount);l>0&&(JR._copy(r,o-l,a,s-l,l),s-=l),c.data&&(JR._copy(c.data,0,a,s-c.data.length,c.data.length),s-=c.data.length),o=c.start}o>0&&JR._copy(r,0,a,0,o),t={resultId:t.resultId,data:a}}}if(NR(t)){this._currentDocumentResponse=new ZR(e,t.resultId,t.data);let i=eu(t,n,this._model.getLanguageId());if(r.length>0)for(let e of r)for(let t of i)for(let n of e.changes)t.applyEdit(n.range,n.text);this._model.tokenization.setSemanticTokens(i,!0)}else this._model.tokenization.setSemanticTokens(null,!0);a()}};XR=JR=KR([qR(1,Ls),qR(2,mu),qR(3,sc),qR(4,gl)],XR);var ZR=class{constructor(e,t,n){this.provider=e,this.resultId=t,this.data=n}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}};wc(YR);var QR=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$R=function(e,t){return function(n,r){t(n,r,e)}},ez=class extends Eo{static{this.ID=`editor.contrib.viewportSemanticTokens`}constructor(e,t,n,r,i,a){super(),this._semanticTokensStylingService=t,this._themeService=n,this._configurationService=r,this._editor=e,this._provider=a.documentRangeSemanticTokensProvider,this._debounceInformation=i.for(this._provider,`DocumentRangeSemanticTokens`,{min:100,max:500}),this._tokenizeViewport=this._register(new mr(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[],this._rangeProvidersChangeListeners=[];let o=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))},s=()=>{if(this._cleanupProviderListeners(),this._editor.hasModel()){let e=this._editor.getModel();for(let t of this._provider.all(e)){let e=t.onDidChange?.(()=>{this._cancelAll(),o()});e&&this._rangeProvidersChangeListeners.push(e)}}};this._register(this._editor.onDidScrollChange(()=>{o()})),this._register(this._editor.onDidChangeModel(()=>{s(),this._cancelAll(),o()})),this._register(this._editor.onDidChangeModelLanguage(()=>{s(),this._cancelAll(),o()})),this._register(this._editor.onDidChangeModelContent(e=>{this._cancelAll(),o()})),s(),this._register(this._provider.onDidChange(()=>{s(),this._cancelAll(),o()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(`editor.semanticHighlighting`)&&(this._cancelAll(),o())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),o()})),o()}dispose(){this._cleanupProviderListeners(),super.dispose()}_cleanupProviderListeners(){ad(this._rangeProvidersChangeListeners),this._rangeProvidersChangeListeners=[]}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;t<n;t++)if(this._outstandingRequests[t]===e){this._outstandingRequests.splice(t,1);return}}_tokenizeViewportNow(){if(!this._editor.hasModel())return;let e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!GR(e,this._themeService,this._configurationService)){e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1);return}if(!VR(this._provider,e)){e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1);return}let t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map(t=>this._requestRange(e,t)))}_requestRange(e,t){let n=e.getVersionId(),r=Bt(n=>Promise.resolve(UR(this._provider,e,t,n))),i=new xu(!1);return r.then(r=>{if(this._debounceInformation.update(e,i.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==n)return;let{provider:a,tokens:o}=r,s=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,eu(o,s,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(r),()=>this._removeOutstandingRequest(r)),r}};ez=QR([$R(1,Ls),$R(2,mu),$R(3,Ou),$R(4,sc),$R(5,gl)],ez),ru(ez.ID,ez,1);var tz=class{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){let n=[];for(let r of t){let t=[];n.push(t),this.selectSubwords&&this._addInWordRanges(t,e,r),this._addWordRanges(t,e,r),this._addWhitespaceLine(t,e,r),t.push({range:e.getFullModelRange()})}return n}_addInWordRanges(e,t,n){let r=t.getWordAtPosition(n);if(!r)return;let{word:i,startColumn:a}=r,o=n.column-a,s=o,c=o,l=0;for(;s>=0;s--){let e=i.charCodeAt(s);if(s!==o&&(e===95||e===45)||Kl(e)&&Hu(l))break;l=e}for(s+=1;c<i.length;c++){let e=i.charCodeAt(c);if(Hu(e)&&Kl(l)||e===95||e===45)break;l=e}s<c&&e.push({range:new B(n.lineNumber,a+s,n.lineNumber,a+c)})}_addWordRanges(e,t,n){let r=t.getWordAtPosition(n);r&&e.push({range:new B(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)})}_addWhitespaceLine(e,t,n){t.getLineLength(n.lineNumber)>0&&t.getLineFirstNonWhitespaceColumn(n.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(n.lineNumber)===0&&e.push({range:new B(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}},nz=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rz=function(e,t){return function(n,r){t(n,r,e)}},iz,az=class e{constructor(e,t){this.index=e,this.ranges=t}mov(t){let n=this.index+(t?1:-1);if(n<0||n>=this.ranges.length)return this;let r=new e(n,this.ranges);return r.ranges[n].equalsRange(this.ranges[this.index])?r.mov(t):r}},oz=class{static{iz=this}static{this.ID=`editor.contrib.smartSelectController`}static get(e){return e.getContribution(iz.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){this._selectionListener?.dispose()}async run(e){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),n=this._editor.getModel();if(this._state||await uz(this._languageFeaturesService.selectionRangeProvider,n,t.map(e=>e.getPosition()),this._editor.getOption(129),sa.None).then(e=>{if(!(!Xo(e)||e.length!==t.length)&&!(!this._editor.hasModel()||!Do(this._editor.getSelections(),t,(e,t)=>e.equalsSelection(t)))){for(let n=0;n<e.length;n++)e[n]=e[n].filter(e=>e.containsPosition(t[n].getStartPosition())&&e.containsPosition(t[n].getEndPosition())),e[n].unshift(t[n]);this._state=e.map(e=>new az(0,e)),this._selectionListener?.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(this._selectionListener?.dispose(),this._state=void 0)})}}),!this._state)return;this._state=this._state.map(t=>t.mov(e));let r=this._state.map(e=>ni.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}}};oz=iz=nz([rz(1,gl)],oz);var sz=class extends Wl{constructor(e,t){super(t),this._forward=e}async run(e,t){let n=oz.get(t);n&&await n.run(this._forward)}},cz=class extends sz{constructor(){super(!0,{id:`editor.action.smartSelect.expand`,label:z(1449,`Expand Selection`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:wi.MenubarSelectionMenu,group:`1_basic`,title:U(1447,`&&Expand Selection`),order:2}})}};Ba.registerCommandAlias(`editor.action.smartSelect.grow`,`editor.action.smartSelect.expand`);var lz=class extends sz{constructor(){super(!1,{id:`editor.action.smartSelect.shrink`,label:z(1450,`Shrink Selection`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:wi.MenubarSelectionMenu,group:`1_basic`,title:U(1448,`&&Shrink Selection`),order:3}})}};ru(oz.ID,oz,4),hs(cz),hs(lz);async function uz(e,t,n,r,i){let a=e.all(t).concat(new tz(r.selectSubwords));a.length===1&&a.unshift(new SA);let o=[],s=[];for(let e of a)o.push(Promise.resolve(e.provideSelectionRanges(t,n,i)).then(e=>{if(Xo(e)&&e.length===n.length)for(let t=0;t<n.length;t++){s[t]||(s[t]=[]);for(let r of e[t])B.isIRange(r.range)&&B.containsPosition(r.range,n[t])&&s[t].push(B.lift(r.range))}},Ka));return await Promise.all(o),s.map(e=>{if(e.length===0)return[];e.sort((e,t)=>Dn.isBefore(e.getStartPosition(),t.getStartPosition())?1:Dn.isBefore(t.getStartPosition(),e.getStartPosition())||Dn.isBefore(e.getEndPosition(),t.getEndPosition())?-1:+!!Dn.isBefore(t.getEndPosition(),e.getEndPosition()));let n=[],i;for(let t of e)(!i||B.containsRange(t,i)&&!B.equalsRange(t,i))&&(n.push(t),i=t);if(!r.selectLeadingAndTrailingWhitespace)return n;let a=[n[0]];for(let e=1;e<n.length;e++){let r=n[e-1],i=n[e];if(i.startLineNumber!==r.startLineNumber||i.endLineNumber!==r.endLineNumber){let e=new B(r.startLineNumber,t.getLineFirstNonWhitespaceColumn(r.startLineNumber),r.endLineNumber,t.getLineLastNonWhitespaceColumn(r.endLineNumber));e.containsRange(r)&&!e.equalsRange(r)&&i.containsRange(e)&&!i.equalsRange(e)&&a.push(e);let n=new B(r.startLineNumber,1,r.endLineNumber,t.getLineMaxColumn(r.endLineNumber));n.containsRange(r)&&!n.equalsRange(e)&&i.containsRange(n)&&!i.equalsRange(n)&&a.push(n)}a.push(i)}return a})}Ba.registerCommand(`_executeSelectionRangeProvider`,async function(e,...t){let[n,r]=t;kc(cr.isUri(n)),kc(fr(r,e=>Dn.isIPosition(e)));let i=e.get(gl).selectionRangeProvider,a=await e.get(bu).createModelReference(n);try{return uz(i,a.object.textEditorModel,r.map(Dn.lift),{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},sa.None)}finally{a.dispose()}});var dz=Object.freeze({View:z(1692,`View`),Help:z(1693,`Help`),Test:z(1694,`Test`),File:z(1695,`File`),Preferences:z(1696,`Preferences`),Developer:z(1697,`Developer`)}),fz=class extends Bu{constructor(){super({id:`editor.action.toggleStickyScroll`,title:{...z(1498,`Toggle Editor Sticky Scroll`),mnemonicTitle:U(1494,`&&Toggle Editor Sticky Scroll`)},metadata:{description:z(1499,`Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport`)},category:dz.View,toggled:{condition:hu.equals(`config.editor.stickyScroll.enabled`,!0),title:U(1495,`Sticky Scroll`),mnemonicTitle:U(1496,`&&Sticky Scroll`)},menu:[{id:wi.CommandPalette},{id:wi.MenubarAppearanceMenu,group:`4_editor`,order:3},{id:wi.StickyScrollContext}]})}async runEditorCommand(e,t){let n=e.get(Ou),r=!n.getValue(`editor.stickyScroll.enabled`),i=pM.get(t)?.isFocused();n.updateValue(`editor.stickyScroll.enabled`,r),i&&t.focus()}},pz=100,mz=class extends Bu{constructor(){super({id:`editor.action.focusStickyScroll`,title:{...z(1500,`Focus Editor Sticky Scroll`),mnemonicTitle:U(1497,`&&Focus Editor Sticky Scroll`)},precondition:hu.and(hu.has(`config.editor.stickyScroll.enabled`),G.stickyScrollVisible),menu:[{id:wi.CommandPalette}]})}runEditorCommand(e,t){pM.get(t)?.focus()}},hee=class extends Bu{constructor(){super({id:`editor.action.selectNextStickyScrollLine`,title:z(1501,`Select the next editor sticky scroll line`),precondition:G.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:pz,primary:18}})}runEditorCommand(e,t){pM.get(t)?.focusNext()}},hz=class extends Bu{constructor(){super({id:`editor.action.selectPreviousStickyScrollLine`,title:z(1502,`Select the previous sticky scroll line`),precondition:G.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:pz,primary:16}})}runEditorCommand(e,t){pM.get(t)?.focusPrevious()}},gz=class extends Bu{constructor(){super({id:`editor.action.goToFocusedStickyScrollLine`,title:z(1503,`Go to the focused sticky scroll line`),precondition:G.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:pz,primary:3}})}runEditorCommand(e,t){pM.get(t)?.goToFocused()}},gee=class extends Bu{constructor(){super({id:`editor.action.selectEditor`,title:z(1504,`Select Editor`),precondition:G.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:pz,primary:9}})}runEditorCommand(e,t){pM.get(t)?.selectEditor()}};ru(pM.ID,pM,1),aa(fz),aa(mz),aa(hz),aa(hee),aa(gz),aa(gee);var _z=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vz=function(e,t){return function(n,r){t(n,r,e)}},yz=class{constructor(e,t,n,r,i,a,o){this.range=e,this.insertText=t,this.filterText=n,this.additionalTextEdits=r,this.command=i,this.gutterMenuLinkAction=a,this.completion=o,this.doNotLog=!0}},bz=class extends Yo{constructor(e,t,n,r,i,a){super(i.disposable),this.model=e,this.line=t,this.word=n,this.completionModel=r,this._suggestMemoryService=a}canBeReused(e,t,n){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===n.startColumn&&this.word.endColumn<n.endColumn&&this.completionModel.getIncompleteProvider().size===0}get items(){let e=[],{items:t}=this.completionModel,n=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},t),r=Xl.slice(t,n),i=Xl.slice(t,0,n),a=5;for(let t of Xl.concat(r,i)){if(t.score===Ta.Default)continue;let n=new B(t.editStart.lineNumber,t.editStart.column,t.editInsertEnd.lineNumber,t.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),r=t.completion.insertTextRules&&t.completion.insertTextRules&4?{snippet:t.completion.insertText}:t.completion.insertText;e.push(new yz(n,r,t.filterTextLow??t.labelLow,t.completion.additionalTextEdits,t.completion.command,t.completion.action,t)),a-->=0&&t.resolve(sa.None)}return e}};bz=_z([vz(5,uA)],bz);var xz=class extends Eo{constructor(e,t,n,r){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=n,this._editorService=r,this._store.add(e.inlineCompletionsProvider.register(`*`,this))}async provideInlineCompletions(e,t,n,r){if(n.selectedSuggestionInfo)return;let i;for(let t of this._editorService.listCodeEditors())if(t.getModel()===e){i=t;break}if(!i)return;let a=i.getOption(102);if(LT.isAllOff(a))return;e.tokenization.tokenizeIfCheap(t.lineNumber);let o=e.tokenization.getLineTokens(t.lineNumber),s=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(LT.valueFor(a,s)!==`inline`)return;let c=e.getWordAtPosition(t),l;if(c?.word||(l=this._getTriggerCharacterInfo(e,t)),!c?.word&&!l||(c||=e.getWordUntilPosition(t),c.endColumn!==t.column))return;let u,d=e.getValueInRange(new B(t.lineNumber,1,t.lineNumber,t.column));if(!l&&this._lastResult?.canBeReused(e,t.lineNumber,c)){let e=new bA(d,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),u=this._lastResult}else{let n=await AT(this._languageFeatureService.completionProvider,e,t,new OT(void 0,AA.createSuggestFilter(i).itemKind,l?.providers),l&&{triggerKind:1,triggerCharacter:l.ch},r),a;n.needsClipboard&&(a=await this._clipboardService.readText());let o=new xA(n.items,t.column,new bA(d,0),CA.None,i.getOption(134),i.getOption(128),{boostFullMatch:!1,firstMatchCanBeWeak:!1},a);u=new bz(e,t.lineNumber,c,o,n,this._suggestMemoryService)}return this._lastResult=u,u}handleItemDidShow(e,t){t.completion.resolve(sa.None)}disposeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){let n=e.getValueInRange(B.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),r=new Set;for(let t of this._languageFeatureService.completionProvider.all(e))t.triggerCharacters?.includes(n)&&r.add(t);if(r.size!==0)return{providers:r,ch:n}}};xz=_z([vz(0,gl),vz(1,rl),vz(2,uA),vz(3,To)],xz),wc(xz),hs(class extends Wl{constructor(){super({id:`editor.action.forceRetokenize`,label:z(1584,`Developer: Force Retokenize`),precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getModel();n.tokenization.resetTokenization();let r=new xu;n.tokenization.forceTokenization(n.getLineCount()),r.stop(),console.log(`tokenization took ${r.elapsed()}`)}});var Sz=class e extends Tn{static{this.ID=`editor.action.toggleTabFocusMode`}constructor(){super({id:e.ID,title:z(1582,`Toggle Tab Key Moves Focus`),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:z(1583,`Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.`)},f1:!0})}run(){let e=!to.getTabFocusMode();to.setTabFocusMode(e),Ts(e?U(1580,`Pressing Tab will now move focus to the next focusable element`):U(1581,`Pressing Tab will now insert the tab character`))}};aa(Sz);var Cz=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wz=function(e,t){return function(n,r){t(n,r,e)}},Tz=class extends Eo{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute(`aria-disabled`,`false`),this.el.tabIndex=0,this.el.style.pointerEvents=`auto`,this.el.style.opacity=`1`,this.el.style.cursor=`pointer`,this._enabled=!1):(this.el.setAttribute(`aria-disabled`,`true`),this.el.tabIndex=-1,this.el.style.pointerEvents=`none`,this.el.style.opacity=`0.4`,this.el.style.cursor=`default`,this._enabled=!0),this._enabled=e}constructor(e,t,n={},r,i){super(),this._link=t,this._hoverService=r,this._enabled=!0,this.el=Io(e,id(`a.monaco-link`,{tabIndex:t.tabIndex??0,href:t.href},t.label)),this.hoverDelegate=n.hoverDelegate??bc(`mouse`),this.setTooltip(t.title),this.el.setAttribute(`role`,`button`);let a=this._register(new Dt(this.el,`click`)),o=this._register(new Dt(this.el,`keydown`)),s=Ku.chain(o.event,e=>e.map(e=>new ta(e)).filter(e=>e.keyCode===3||e.keyCode===10)),c=this._register(new Dt(this.el,Ie.Tap)).event;this._register(Ac.addTarget(this.el));let l=Ku.any(a.event,s,c);this._register(l(e=>{this.enabled&&(Ms.stop(e,!0),n?.opener?n.opener(this._link.href):i.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}setTooltip(e){!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};Tz=Cz([wz(3,zu),wz(4,hr)],Tz);var Ez=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Dz=function(e,t){return function(n,r){t(n,r,e)}},Oz=26,kz=class extends Eo{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(Az))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{this.hide(),e.onClose?.()}}),this._editor.setBanner(this.banner.element,Oz)}};kz=Ez([Dz(1,Il)],kz);var Az=class extends Eo{constructor(e,t){super(),this.instantiationService=e,this.markdownRendererService=t,this.element=id(`div.editor-banner`),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message==`string`)return e.message}getBannerMessage(e){if(typeof e==`string`){let t=id(`span`);return t.innerText=e,t}return this.markdownRendererService.render(e).element}clear(){Bd(this.element)}show(e){Bd(this.element);let t=this.getAriaLabel(e);t&&this.element.setAttribute(`aria-label`,t);let n=Io(this.element,id(`div.icon-container`));n.setAttribute(`aria-hidden`,`true`),e.icon&&n.appendChild(id(`div${fi.asCSSSelector(e.icon)}`));let r=Io(this.element,id(`div.message-container`));if(r.setAttribute(`aria-hidden`,`true`),r.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=Io(this.element,id(`div.message-actions-container`)),e.actions)for(let t of e.actions)this._register(this.instantiationService.createInstance(Tz,this.messageActionsContainer,{...t,tabIndex:-1},{}));let i=Io(this.element,id(`div.action-container`));this.actionBar=this._register(new _a(i)),this.actionBar.push(this._register(new ke(`banner.close`,U(1585,`Close Banner`),fi.asClassName(Xi),!0,()=>{typeof e.onClose==`function`&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Az=Ez([Dz(0,Il),Dz(1,Re)],Az);var jz=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mz=function(e,t){return function(n,r){t(n,r,e)}},Nz=rn(`extensions-warning-message`,Mr.warning,U(1586,`Icon shown with a warning message in the extensions editor.`)),Pz=class extends Eo{static{this.ID=`editor.contrib.unicodeHighlighter`}constructor(e,t,n,r){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=n,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;let t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount),n;if(e.nonBasicAsciiCharacterCount>=t)n={message:U(1587,`This document contains many non-basic ASCII unicode characters`),command:new Yz};else if(e.ambiguousCharacterCount>=t)n={message:U(1588,`This document contains many ambiguous unicode characters`),command:new qz};else if(e.invisibleCharacterCount>=t)n={message:U(1589,`This document contains many invisible unicode characters`),command:new Jz};else throw Error(`Unreachable`);this._bannerController.show({id:`unicodeHighlightBanner`,message:n.message,icon:Nz,actions:[{label:n.command.shortLabel,href:`command:${n.command.desc.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(r.createInstance(kz,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(142),this._register(n.onDidChangeTrust(e=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(142)&&(this._options=e.getOption(142),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&=(this._highlighter.dispose(),null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&=(this._highlighter.dispose(),null),!this._editor.hasModel())return;let e=Fz(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(e=>e===!1))return;let t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(e=>e.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(e=>e===`_os`?Kn.NumberFormat().value.resolvedOptions().locale:e===`_vscode`?it:e)};this._highlighter=this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?new Iz(this._editor,t,this._updateState,this._editorWorkerService):new Lz(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Pz=jz([Mz(1,Se),Mz(2,pd),Mz(3,Il)],Pz);function Fz(e,t){return{nonBasicASCII:t.nonBasicASCII===`inUntrustedWorkspace`?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===`inUntrustedWorkspace`?!e:t.includeComments,includeStrings:t.includeStrings===`inUntrustedWorkspace`?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}var Iz=class extends Eo{constructor(e,t,n,r){super(),this._editor=e,this._options=t,this._updateState=n,this._editorWorkerService=r,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mr(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);let n=[];if(!t.hasMore)for(let e of t.ranges)n.push({range:e,options:Wz.instance.getDecorationFromOptions(this._options)});this._decorations.set(n)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();return fn(t,e)?{reason:Uz(t.getValueInRange(e.range),this._options),inComment:Ze(t,e),inString:ha(t,e)}:null}};Iz=jz([Mz(3,Se)],Iz);var Lz=class extends Eo{constructor(e,t,n){super(),this._editor=e,this._options=t,this._updateState=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new mr(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),t=[],n={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let t of e){let e=gf.computeUnicodeHighlights(this._model,this._options,t);for(let t of e.ranges)n.ranges.push(t);n.ambiguousCharacterCount+=n.ambiguousCharacterCount,n.invisibleCharacterCount+=n.invisibleCharacterCount,n.nonBasicAsciiCharacterCount+=n.nonBasicAsciiCharacterCount,n.hasMore=n.hasMore||e.hasMore}if(!n.hasMore)for(let e of n.ranges)t.push({range:e,options:Wz.instance.getDecorationFromOptions(this._options)});this._updateState(n),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),n=t.getValueInRange(e.range);return fn(t,e)?{reason:Uz(n,this._options),inComment:Ze(t,e),inString:ha(t,e)}:null}},Rz=U(1590,`Configure Unicode Highlight Options`),zz=class{constructor(e,t){this._editor=e,this._markdownRendererService=t,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let n=this._editor.getModel(),r=this._editor.getContribution(Pz.ID);if(!r)return[];let i=[],a=new Set,o=300;for(let e of t){let t=r.getDecorationInfo(e);if(!t)continue;let s=n.getValueInRange(e.range).codePointAt(0),c=Vz(s),l;switch(t.reason.kind){case 0:l=Nl(t.reason.confusableWith)?U(1591,`The character {0} could be confused with the ASCII character {1}, which is more common in source code.`,c,Vz(t.reason.confusableWith.codePointAt(0))):U(1592,`The character {0} could be confused with the character {1}, which is more common in source code.`,c,Vz(t.reason.confusableWith.codePointAt(0)));break;case 1:l=U(1593,`The character {0} is invisible.`,c);break;case 2:l=U(1594,`The character {0} is not a basic ASCII character.`,c)}if(a.has(l))continue;a.add(l);let u={codePoint:s,reason:t.reason,inComment:t.inComment,inString:t.inString},d=U(1595,`Adjust settings`),f=Ye(Xz.ID,u),p=new hf(``,!0).appendMarkdown(l).appendText(` `).appendLink(f,d,Rz);i.push(new gy(this,e.range,[p],!1,o++))}return i}renderHoverParts(e,t){return by(e,t,this._editor,this._markdownRendererService)}getAccessibleContent(e){return e.contents.map(e=>e.value).join(`
|
|
50
50
|
`)}};zz=jz([Mz(1,Re)],zz);function Bz(e){return`U+${e.toString(16).padStart(4,`0`)}`}function Vz(e){let t=`\`${Bz(e)}\``;return Zt.isInvisibleCharacter(e)||(t+=` "${`${Hz(e)}`}"`),t}function Hz(e){return e===96?"`` ` ``":"`"+String.fromCodePoint(e)+"`"}function Uz(e,t){return gf.computeUnicodeHighlightReason(e,t)}var Wz=class e{constructor(){this.map=new Map}static{this.instance=new e}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let n=`${e}${t}`,r=this.map.get(n);return r||(r=nu.createDynamic({description:`unicode-highlight`,stickiness:1,className:`unicode-highlight`,showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(n,r)),r}},Gz=class extends Wl{constructor(){super({id:qz.ID,label:z(1604,`Disable highlighting of characters in comments`),precondition:void 0}),this.shortLabel=U(1596,`Disable Highlight In Comments`)}async run(e,t){let n=e.get(Ou);n&&this.runAction(n)}async runAction(e){await e.updateValue(Ha.includeComments,!1,2)}},Kz=class extends Wl{constructor(){super({id:qz.ID,label:z(1605,`Disable highlighting of characters in strings`),precondition:void 0}),this.shortLabel=U(1597,`Disable Highlight In Strings`)}async run(e,t){let n=e.get(Ou);n&&this.runAction(n)}async runAction(e){await e.updateValue(Ha.includeStrings,!1,2)}},qz=class e extends Tn{static{this.ID=`editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters`}constructor(){super({id:e.ID,title:z(1606,`Disable highlighting of ambiguous characters`),precondition:void 0,f1:!1}),this.shortLabel=U(1598,`Disable Ambiguous Highlight`)}async run(e,t){let n=e.get(Ou);n&&this.runAction(n)}async runAction(e){await e.updateValue(Ha.ambiguousCharacters,!1,2)}},Jz=class e extends Tn{static{this.ID=`editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters`}constructor(){super({id:e.ID,title:z(1607,`Disable highlighting of invisible characters`),precondition:void 0,f1:!1}),this.shortLabel=U(1599,`Disable Invisible Highlight`)}async run(e,t){let n=e.get(Ou);n&&this.runAction(n)}async runAction(e){await e.updateValue(Ha.invisibleCharacters,!1,2)}},Yz=class e extends Tn{static{this.ID=`editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters`}constructor(){super({id:e.ID,title:z(1608,`Disable highlighting of non basic ASCII characters`),precondition:void 0,f1:!1}),this.shortLabel=U(1600,`Disable Non ASCII Highlight`)}async run(e,t){let n=e.get(Ou);n&&this.runAction(n)}async runAction(e){await e.updateValue(Ha.nonBasicASCII,!1,2)}},Xz=class e extends Tn{static{this.ID=`editor.action.unicodeHighlight.showExcludeOptions`}constructor(){super({id:e.ID,title:z(1609,`Show Exclude Options`),precondition:void 0,f1:!1})}async run(e,t){let{codePoint:n,reason:r,inString:i,inComment:a}=t,o=String.fromCodePoint(n),s=e.get(st),c=e.get(Ou);function l(e){return Zt.isInvisibleCharacter(e)?U(1601,`Exclude {0} (invisible character) from being highlighted`,Bz(e)):U(1602,`Exclude {0} from being highlighted`,`${Bz(e)} "${o}"`)}let u=[];if(r.kind===0)for(let e of r.notAmbiguousInLocales)u.push({label:U(1603,`Allow unicode characters that are more common in the language "{0}".`,e),run:async()=>{Qz(c,[e])}});if(u.push({label:l(n),run:()=>Zz(c,[n])}),a){let e=new Gz;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(i){let e=new Kz;u.push({label:e.label,run:async()=>e.runAction(c)})}function d(e){return typeof e.desc.title==`string`?e.desc.title:e.desc.title.value}if(r.kind===0){let e=new qz;u.push({label:d(e),run:async()=>e.runAction(c)})}else if(r.kind===1){let e=new Jz;u.push({label:d(e),run:async()=>e.runAction(c)})}else if(r.kind===2){let e=new Yz;u.push({label:d(e),run:async()=>e.runAction(c)})}else $z(r);let f=await s.pick(u,{title:Rz});f&&await f.run()}};async function Zz(e,t){let n=e.getValue(Ha.allowedCharacters),r;r=typeof n==`object`&&n?n:{};for(let e of t)r[String.fromCodePoint(e)]=!0;await e.updateValue(Ha.allowedCharacters,r,2)}async function Qz(e,t){let n=e.inspect(Ha.allowedLocales).user?.value,r;r=typeof n==`object`&&n?Object.assign({},n):{};for(let e of t)r[e]=!0;await e.updateValue(Ha.allowedLocales,r,2)}function $z(e){throw Error(`Unexpected value: ${e}`)}aa(qz),aa(Jz),aa(Yz),aa(Xz),ru(Pz.ID,Pz,1),yg.register(zz);var eB=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tB=function(e,t){return function(n,r){t(n,r,e)}},nB=`ignoreUnusualLineTerminators`;function rB(e,t,n){e.setModelProperty(t.uri,nB,n)}function iB(e,t){return e.getModelProperty(t.uri,nB)}var aB=class extends Eo{static{this.ID=`editor.contrib.unusualLineTerminatorsDetector`}constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._isPresentingDialog=!1,this._config=this._editor.getOption(143),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(143)&&(this._config=this._editor.getOption(143),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{e.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config===`off`||!this._editor.hasModel())return;let e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||iB(this._codeEditorService,e)===!0||this._editor.getOption(104))return;if(this._config===`auto`){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let t;try{this._isPresentingDialog=!0,t=await this._dialogService.confirm({title:U(1610,`Unusual Line Terminators`),message:U(1611,`Detected unusual line terminators`),detail:U(1612,`The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).
|
|
51
51
|
|
|
52
|
-
It is recommended to remove them from the file. This can be configured via \`editor.unusualLineTerminators\`.`,ut(e.uri)),primaryButton:U(1613,`&&Remove Unusual Line Terminators`),cancelButton:U(1614,`Ignore`)})}finally{this._isPresentingDialog=!1}if(!t.confirmed){rB(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())}};aB=eB([tB(1,vt),tB(2,To)],aB),ru(aB.ID,aB,1);var oB=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sB=function(e,t){return function(n,r){t(n,r,e)}},cB=class{constructor(){this.selector={language:`*`}}provideDocumentHighlights(e,t,n){if(e.isDisposed())return;let r=[],i=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});return i?e.findMatches(i.word,!0,!1,!0,lo,!1).map(e=>({range:e.range,kind:ec.Text})):Promise.resolve(r)}provideMultiDocumentHighlights(e,t,n,r){if(e.isDisposed())return;let i=new ei,a=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!a)return Promise.resolve(i);for(let t of[e,...n]){if(t.isDisposed())continue;let e=t.findMatches(a.word,!0,!1,!0,lo,!1).map(e=>({range:e.range,kind:ec.Text}));e&&i.set(t.uri,e)}return i}},lB=class extends Eo{constructor(e){super(),this._register(e.documentHighlightProvider.register(`*`,new cB)),this._register(e.multiDocumentHighlightProvider.register(`*`,new cB))}};lB=oB([sB(0,gl)],lB);var uB=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dB=function(e,t){return function(n,r){t(n,r,e)}},fB,pB,mB=new Qa(`hasWordHighlights`,!1);function hB(e,t,n,r){let i=e.ordered(t);return nr(i.map(e=>()=>Promise.resolve(e.provideDocumentHighlights(t,n,r)).then(void 0,Ka)),e=>e!=null).then(e=>{if(e){let n=new ei;return n.set(t.uri,e),n}return new ei})}function gB(e,t,n,r,i){let a=e.ordered(t);return nr(a.map(e=>()=>{let a=i.filter(e=>Ea(e)).filter(t=>hl(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(e.provideMultiDocumentHighlights(t,n,a,r)).then(void 0,Ka)}),e=>e!=null)}var _B=class{constructor(e,t,n){this._model=e,this._selection=t,this._wordSeparators=n,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||=Bt(e=>this._compute(this._model,this._selection,this._wordSeparators,e)),this._result}_getCurrentWordRange(e,t){let n=e.getWordAtPosition(t.getPosition());return n?new B(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}cancel(){this.result.cancel()}},vB=class extends _B{constructor(e,t,n,r){super(e,t,n),this._providers=r}_compute(e,t,n,r){return hB(this._providers,e,t.getPosition(),r).then(e=>e||new ei)}},yB=class extends _B{constructor(e,t,n,r,i){super(e,t,n),this._providers=r,this._otherModels=i}_compute(e,t,n,r){return gB(this._providers,e,t.getPosition(),r,this._otherModels).then(e=>e||new ei)}};function bB(e,t,n,r){return new vB(t,n,r,e)}function xB(e,t,n,r,i){return new yB(t,n,r,e,i)}uc(`_executeDocumentHighlights`,async(e,t,n)=>(await hB(e.get(gl).documentHighlightProvider,t,n,sa.None))?.get(t.uri));var SB=class{static{fB=this}static{this.storedDecorationIDs=new ei}static{this.query=null}constructor(e,t,n,r,i,a,o,s){this.toUnhook=new Ll,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new ei,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=void 0,this.runDelayer=this.toUnhook.add(new jc(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=n,this.codeEditorService=a,this.textModelService=i,this.configurationService=o,this.logService=s,this._hasWordHighlights=mB.bindTo(r),this._ignorePositionChangeEvent=!1,this.occurrencesHighlightEnablement=this.editor.getOption(90),this.occurrencesHighlightDelay=this.configurationService.getValue(`editor.occurrencesHighlightDelay`),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||this.occurrencesHighlightEnablement!==`off`&&this.runDelayer.trigger(()=>{this._onPositionChanged(e)}).catch(An)})),this.toUnhook.add(e.onDidFocusEditorText(e=>{this.occurrencesHighlightEnablement!==`off`&&(this.workerRequest||this.runDelayer.trigger(()=>{this._run()}).catch(An))})),this.toUnhook.add(e.onDidChangeModelContent(e=>{_t(this.model.uri,`output`)||this._stopAll()})),this.toUnhook.add(e.onDidChangeModel(e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():fB.query&&this._run()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{let t=this.editor.getOption(90);if(this.occurrencesHighlightEnablement!==t)switch(this.occurrencesHighlightEnablement=t,t){case`off`:this._stopAll();break;case`singleFile`:this._stopAll(fB.query?.modelInfo?.modelURI);break;case`multiFile`:fB.query&&this._run(!0);break;default:console.warn(`Unknown occurrencesHighlight setting value:`,t)}})),this.toUnhook.add(this.configurationService.onDidChangeConfiguration(e=>{if(e.affectsConfiguration(`editor.occurrencesHighlightDelay`)){let e=o.getValue(`editor.occurrencesHighlightDelay`);this.occurrencesHighlightDelay!==e&&(this.occurrencesHighlightDelay=e)}})),this.toUnhook.add(e.onDidBlurEditorWidget(()=>{let e=this.codeEditorService.getFocusedCodeEditor();e?e.getModel()?.uri.scheme===Ot.vscodeNotebookCell&&this.editor.getModel()?.uri.scheme!==Ot.vscodeNotebookCell&&this._stopAll():this._stopAll()})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=void 0,fB.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(e){this.occurrencesHighlightEnablement!==`off`&&(this.runDelayer.cancel(),this.runDelayer.trigger(()=>{this._run(!1,e)}).catch(An))}stop(){this.occurrencesHighlightEnablement!==`off`&&this._stopAll()}_getSortedHighlights(){return this.decorations.getRanges().sort(B.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();if(r){let i=this.editor.getModel().getLineContent(n.startLineNumber);Ts(`${i}, ${t+1} of ${e.length} for '${r.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();if(r){let i=this.editor.getModel().getLineContent(n.startLineNumber);Ts(`${i}, ${t+1} of ${e.length} for '${r.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;let e=fB.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),fB.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){let t=this.codeEditorService.listCodeEditors(),n=[];for(let r of t){if(!r.hasModel()||Hr(r.getModel().uri,e))continue;let t=fB.storedDecorationIDs.get(r.getModel().uri);if(!t)continue;r.removeDecorations(t),n.push(r.getModel().uri);let i=CB.get(r);i?.wordHighlighter&&i.wordHighlighter.decorations.length>0&&(i.wordHighlighter.decorations.clear(),i.wordHighlighter.workerRequest=null,i.wordHighlighter._hasWordHighlights.set(!1))}for(let e of n)fB.storedDecorationIDs.delete(e)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==Ot.vscodeNotebookCell&&fB.query?.modelInfo?.modelURI.scheme!==Ot.vscodeNotebookCell?(fB.query=null,this._run()):fB.query?.modelInfo&&(fB.query.modelInfo=null)),this.renderDecorationsTimer!==void 0&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=void 0),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_stopAll(e){this._removeAllDecorations(e),this.renderDecorationsTimer!==void 0&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=void 0),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_onPositionChanged(e){if(this.occurrencesHighlightEnablement===`off`){this._stopAll();return}if(e.source!==`api`&&e.reason!==3){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:n})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===Ot.vscodeNotebookCell){let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){let n=r.getModel();n&&n!==e&&n.uri.scheme===Ot.vscodeNotebookCell&&t.push(n)}return t}let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){if(!Xd(r))continue;let n=r.getModel();n&&e===n.modified&&t.push(n.modified)}if(t.length)return t;if(this.occurrencesHighlightEnablement===`singleFile`)return[];for(let r of n){let n=r.getModel();n&&n!==e&&t.push(n)}return t}async _run(e,t){if(this.editor.hasTextFocus()){let e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber){fB.query=null,this._stopAll();return}let t=e.startColumn,n=e.endColumn,r=this._getWord();if(!r||r.startColumn>t||r.endColumn<n){fB.query=null,this._stopAll();return}fB.query={modelInfo:{modelURI:this.model.uri,selection:e}}}else if(!fB.query){this._stopAll();return}if(this.lastCursorPositionChangeTime=new Date().getTime(),Hr(this.editor.getModel().uri,fB.query.modelInfo?.modelURI)){if(!e){let e=this.decorations.getRanges();for(let t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model.uri:void 0);let n=++this.workerRequestTokenId;this.workerRequestCompleted=!1;let r=this.getOtherModelsToHighlight(this.editor.getModel());if(!fB.query||!fB.query.modelInfo)return;let i=await this.textModelService.createModelReference(fB.query.modelInfo.modelURI);try{this.workerRequest=this.computeWithModel(i.object.textEditorModel,fB.query.modelInfo.selection,r),this.workerRequest?.result.then(e=>{n===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations(t??this.occurrencesHighlightDelay))},An)}catch(e){this.logService.error(`Unexpected error during occurrence request. Log: `,e)}finally{i.dispose()}}else if(this.model.uri.scheme===Ot.vscodeNotebookCell){let e=++this.workerRequestTokenId;if(this.workerRequestCompleted=!1,!fB.query||!fB.query.modelInfo)return;let n=await this.textModelService.createModelReference(fB.query.modelInfo.modelURI);try{this.workerRequest=this.computeWithModel(n.object.textEditorModel,fB.query.modelInfo.selection,[this.model]),this.workerRequest?.result.then(n=>{e===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=n||[],this._beginRenderDecorations(t??this.occurrencesHighlightDelay))},An)}catch(e){this.logService.error(`Unexpected error during occurrence request. Log: `,e)}finally{n.dispose()}}}computeWithModel(e,t,n){return n.length?xB(this.multiDocumentProviders,e,t,this.editor.getOption(148),n):bB(this.providers,e,t,this.editor.getOption(148))}_beginRenderDecorations(e){let t=new Date().getTime(),n=this.lastCursorPositionChangeTime+e;t>=n?(this.renderDecorationsTimer=void 0,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},n-t)}renderDecorations(){this.renderDecorationsTimer=void 0;let e=this.codeEditorService.listCodeEditors();for(let t of e){let e=CB.get(t);if(!e)continue;let n=[],r=t.getModel()?.uri;if(r&&this.workerRequestValue.has(r)){let i=fB.storedDecorationIDs.get(r),a=this.workerRequestValue.get(r);if(a)for(let e of a)e.range&&n.push({range:e.range,options:DL(e.kind)});let o=[];t.changeDecorations(e=>{o=e.deltaDecorations(i??[],n)}),fB.storedDecorationIDs=fB.storedDecorationIDs.set(r,o),n.length>0&&(e.wordHighlighter?.decorations.set(n),e.wordHighlighter?._hasWordHighlights.set(!0))}}this.workerRequest=null}dispose(){this._stopSingular(),this.toUnhook.dispose()}};SB=fB=uB([dB(4,bu),dB(5,To),dB(6,Ou),dB(7,Cd)],SB);var CB=class extends Eo{static{pB=this}static{this.ID=`editor.contrib.wordHighlighter`}static get(e){return e.getContribution(pB.ID)}constructor(e,t,n,r,i,a,o){super(),this._wordHighlighter=null;let s=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&e.getModel().uri.scheme!==Ot.accessibleView&&(this._wordHighlighter=new SB(e,n.documentHighlightProvider,n.multiDocumentHighlightProvider,t,i,r,a,o))};this._register(e.onDidChangeModel(e=>{this._wordHighlighter&&=(!e.newModelUrl&&e.oldModelUrl?.scheme!==Ot.vscodeNotebookCell&&this.wordHighlighter?.stop(),this._wordHighlighter.dispose(),null),s()})),s()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore(250)}dispose(){this._wordHighlighter&&=(this._wordHighlighter.dispose(),null),super.dispose()}};CB=pB=uB([dB(1,In),dB(2,gl),dB(3,To),dB(4,bu),dB(5,Ou),dB(6,Cd)],CB);var wB=class extends Wl{constructor(e,t){super(t),this._isNext=e}run(e,t){let n=CB.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}},TB=class extends wB{constructor(){super(!0,{id:`editor.action.wordHighlight.next`,label:z(1624,`Go to Next Symbol Highlight`),precondition:mB,kbOpts:{kbExpr:G.editorTextFocus,primary:65,weight:100}})}},EB=class extends wB{constructor(){super(!1,{id:`editor.action.wordHighlight.prev`,label:z(1625,`Go to Previous Symbol Highlight`),precondition:mB,kbOpts:{kbExpr:G.editorTextFocus,primary:1089,weight:100}})}},DB=class extends Wl{constructor(){super({id:`editor.action.wordHighlight.trigger`,label:z(1626,`Trigger Symbol Highlight`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:0,weight:100}})}run(e,t){let n=CB.get(t);n&&n.restoreViewState(!0)}};ru(CB.ID,CB,0),hs(TB),hs(EB),hs(DB),wc(lB);var OB=class extends ns{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let r=Qt(t.getOption(148),t.getOption(147)),i=t.getModel(),a=t.getSelections(),o=a.length>1,s=a.map(e=>{let t=new Dn(e.positionLineNumber,e.positionColumn),n=this._move(r,i,t,this._wordNavigationType,o);return this._moveTo(e,n,this._inSelectionMode)});if(i.pushStackElement(),t._getViewModel().setCursorStates(`moveWordCommand`,3,s.map(e=>Fs.fromModelSelection(e))),s.length===1){let e=new Dn(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,n){return n?new ni(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new ni(t.lineNumber,t.column,t.lineNumber,t.column)}},kB=class extends OB{_move(e,t,n,r,i){return zl.moveWordLeft(e,t,n,r,i)}},AB=class extends OB{_move(e,t,n,r,i){return zl.moveWordRight(e,t,n,r)}},jB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartLeft`,precondition:void 0})}},MB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndLeft`,precondition:void 0})}},NB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:`cursorWordLeft`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:2063,mac:{primary:527},weight:100}})}},PB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartLeftSelect`,precondition:void 0})}},FB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndLeftSelect`,precondition:void 0})}},IB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:`cursorWordLeftSelect`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}},LB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityLeft`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},RB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityLeftSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},zB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartRight`,precondition:void 0})}},BB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndRight`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:2065,mac:{primary:529},weight:100}})}},VB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordRight`,precondition:void 0})}},HB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartRightSelect`,precondition:void 0})}},UB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndRightSelect`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}},WB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordRightSelect`,precondition:void 0})}},GB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityRight`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},KB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityRightSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},qB=class extends ns{constructor(e){super({canTriggerInlineEdits:!0,...e}),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){let r=e?.get(Ra);if(!t.hasModel()||!r)return;let i=Qt(t.getOption(148),t.getOption(147)),a=t.getModel(),o=t.getSelections(),s=t.getOption(10),c=t.getOption(15),l=r.getLanguageConfiguration(a.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),d=o.map(e=>{let n=this._delete({wordSeparators:i,model:a,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(13),autoClosingBrackets:s,autoClosingQuotes:c,autoClosingPairs:l,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new tl(n,``)});t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}},JB=class extends qB{_delete(e,t){return zl.deleteWordLeft(e,t)||new B(1,1,1,1)}},YB=class extends qB{_delete(e,t){let n=zl.deleteWordRight(e,t);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new B(r,i,r,i)}},XB=class extends JB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartLeft`,precondition:G.writable})}},ZB=class extends JB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndLeft`,precondition:G.writable})}},QB=class extends JB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordLeft`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},$B=class extends YB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartRight`,precondition:G.writable})}},eV=class extends YB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndRight`,precondition:G.writable})}},tV=class extends YB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordRight`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},nV=class extends Wl{constructor(){super({id:`deleteInsideWord`,precondition:G.writable,label:z(1628,`Delete Word`),metadata:{description:z(1629,`Delete the word at the cursor`),args:[{name:`args`,schema:{type:`object`,properties:{onlyWord:{type:`boolean`,default:!1,description:U(1627,`Delete only the word and leave surrounding whitespace`)}}}}]}})}run(e,t,n){if(!t.hasModel())return;let r=!!(n&&typeof n==`object`&&n.onlyWord),i=Qt(t.getOption(148),t.getOption(147)),a=t.getModel(),o=t.getSelections().map(e=>{let t=zl.deleteInsideWord(i,a,e,r);return new tl(t,``)});t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}};Bs(new jB),Bs(new MB),Bs(new NB),Bs(new PB),Bs(new FB),Bs(new IB),Bs(new zB),Bs(new BB),Bs(new VB),Bs(new HB),Bs(new UB),Bs(new WB),Bs(new LB),Bs(new RB),Bs(new GB),Bs(new KB),Bs(new XB),Bs(new ZB),Bs(new QB),Bs(new $B),Bs(new eV),Bs(new tV),hs(nV);var rV=class extends qB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordPartLeft`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return Fu.deleteWordPartLeft(e)||new B(1,1,1,1)}},iV=class extends qB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordPartRight`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let n=Fu.deleteWordPartRight(e);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new B(r,i,r,i)}},aV=class extends OB{_move(e,t,n,r,i){return Fu.moveWordPartLeft(e,t,n,i)}},oV=class extends aV{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordPartLeft`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};Ba.registerCommandAlias(`cursorWordPartStartLeft`,`cursorWordPartLeft`);var sV=class extends aV{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordPartLeftSelect`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};Ba.registerCommandAlias(`cursorWordPartStartLeftSelect`,`cursorWordPartLeftSelect`);var cV=class extends OB{_move(e,t,n,r,i){return Fu.moveWordPartRight(e,t,n)}},lV=class extends cV{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordPartRight`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},uV=class extends cV{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordPartRightSelect`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};Bs(new rV),Bs(new iV),Bs(new oV),Bs(new sV),Bs(new lV),Bs(new uV);var dV=class extends Eo{static{this.ID=`editor.contrib.readOnlyMessageController`}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=wp.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(105);t||=this.editor.isSimpleWidget?new hf(U(1427,`Cannot edit in read-only input`)):new hf(U(1428,`Cannot edit in read-only editor`)),e.showMessage(t,this.editor.getPosition())}}};ru(dV.ID,dV,2);var fV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pV=function(e,t){return function(n,r){t(n,r,e)}},mV=class extends Eo{constructor(e,t,n){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=n,this._currentModel=wu(this,void 0);let r=Ec(`documentSymbolProvider.onDidChange`,this._languageFeaturesService.documentSymbolProvider.onDidChange),i=Ec(`_textModel.onDidChangeContent`,Ku.debounce(e=>this._textModel.onDidChangeContent(e),()=>void 0,100));this._register(nl(async(e,t)=>{r.read(e),i.read(e);let n=t.add(new xr),a=await this._outlineModelService.getOrCreate(this._textModel,n.token);t.isDisposed||this._currentModel.set(a,void 0)}))}getBreadcrumbItems(e,t){let n=this._currentModel.read(t);if(!n)return[];let r=n.asListOfDocumentSymbols().filter(t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber));return r.sort(Ps(Tl(e=>e.range.endLineNumber-e.range.startLineNumber,od))),r.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber}))}getAt(e,t){let n=this._currentModel.read(t);if(!n)return[];let r=n.asListOfDocumentSymbols().filter(t=>new Nc(t.range.startLineNumber,t.range.endLineNumber).contains(e));return r.length===0?[]:(r.sort(Ps(Tl(e=>e.range.endLineNumber-e.range.startLineNumber,od))),r.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};mV=fV([pV(1,gl),pV(2,Qw)],mV),Rd.setBreadcrumbsSourceFactory((e,t)=>t.createInstance(mV,e));var hV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gV=function(e,t){return function(n,r){t(n,r,e)}},_V=class extends Eo{static{this.ID=`editor.contrib.floatingToolbar`}constructor(e,t,n,r){super();let i=this._register(zi(e)),a=cd(e=>i.model.read(e)?.uri),o=this._register(t.createInstance(vV,wi.EditorContent,e.contextKeyService,a));this._register(Iu(e=>{o.hasActions.read(e)&&e.store.add(i.createOverlayWidget({allowEditorOverflow:!1,domNode:o.element,minContentWidthInPx:Ol(0),position:Ol({preference:1})}))}))}};_V=hV([gV(1,Il),gV(2,Be),gV(3,or)],_V);var vV=class extends Eo{constructor(e,t,n,r,i,a){super();let o=this._register(a.createMenu(e,t)),s=Cs(this,o.onDidChange,()=>o.getActions()),c=cd(e=>{let t=s.read(e),{primary:n}=tn(t,()=>!0);return n.filter(e=>e.id!==ys.ID)});this.hasActions=cd(e=>c.read(e).length>0),this.element=Cr(`div.floating-menu-overlay-widget`).root,this._register(Ns(()=>this.element.remove())),this._register(Iu(t=>{let a=c.read(t),o=a.length>0,s=o?a[0].id:void 0,l=a.length===1;if(this.element.classList.toggle(`single-button`,l),this.element.style.height=l?`28px`:`26px`,!o)return;let u=r.createInstance(tt,this.element,e,{actionViewItemProvider:(e,t)=>{if(e instanceof vf)return r.createInstance(class extends mn{render(t){super.render(t),e.id===s&&this.element?.classList.add(`primary`)}updateLabel(){let t=i.lookupKeybinding(e.id),n=t?t.getLabel():void 0;this.options.label&&this.label&&(this.label.textContent=n?`${this._commandAction.label} (${n})`:this._commandAction.label)}},e,{...t,keybindingNotRenderedWithLabel:!0})},hiddenItemStrategy:0,menuOptions:{shouldForwardArgs:!0},telemetrySource:`editor.overlayToolbar`,toolbarOptions:{primaryGroup:()=>!0,useSeparatorsInPrimaryActions:!0}});t.store.add(u),t.store.add(Iu(e=>{let t=n.read(e);u.context=t}))}))}};vV=hV([gV(3,Il),gV(4,Be),gV(5,or)],vV),ru(_V.ID,_V,1);var yV=class extends Eo{static{this.ID=`editor.contrib.iPadShowKeyboard`}constructor(e){super(),this.editor=e,this.widget=null,Ks&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(104);!this.widget&&e?this.widget=new bV(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&=(this.widget.dispose(),null)}},bV=class e extends Eo{static{this.ID=`editor.contrib.ShowKeyboardWidget`}constructor(e){super(),this.editor=e,this._domNode=document.createElement(`textarea`),this._domNode.className=`iPadShowKeyboard`,this._register(po(this._domNode,`touchstart`,e=>{this.editor.focus()})),this._register(po(this._domNode,`focus`,e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};ru(yV.ID,yV,3);var xV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SV=function(e,t){return function(n,r){t(n,r,e)}},CV,wV=class extends Eo{static{CV=this}static{this.ID=`editor.contrib.inspectTokens`}static get(e){return e.getContribution(CV.ID)}constructor(e,t,n){super(),this._editor=e,this._languageService=n,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(Ue.onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>e.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new OV(this._editor,this._languageService))}stop(){this._widget&&=(this._widget.dispose(),null)}};wV=CV=xV([SV(1,eo),SV(2,jl)],wV);var TV=class extends Wl{constructor(){super({id:`editor.action.inspectTokens`,label:xe.inspectTokensAction,alias:`Developer: Inspect Tokens`,precondition:void 0})}run(e,t){wV.get(t)?.launch()}};function EV(e){let t=``;for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);switch(r){case 9:t+=`→`;break;case 32:t+=`·`;break;default:t+=String.fromCharCode(r)}}return t}function DV(e,t){let n=Ue.get(t);if(n)return n;let r=e.encodeLanguageId(t);return{getInitialState:()=>ud,tokenize:(e,n,r)=>ps(t,r),tokenizeEncoded:(e,t,n)=>Rs(r,n)}}var OV=class e extends Eo{static{this._ID=`editor.contrib.inspectTokensWidget`}constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement(`div`),this._domNode.className=`tokens-inspect-widget`,this._tokenizationSupport=DV(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return e._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let r=t.tokens1.length-1;r>=0;r--){let i=t.tokens1[r];if(e.column-1>=i.offset){n=r;break}}let r=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){r=n;break}let i=this._model.getLineContent(e.lineNumber),a=``;if(n<t.tokens1.length){let e=t.tokens1[n].offset,r=n+1<t.tokens1.length?t.tokens1[n+1].offset:i.length;a=i.substring(e,r)}Ge(this._domNode,id(`h2.tm-token`,void 0,EV(a),id(`span.tm-token-length`,void 0,`${a.length} ${a.length===1?`char`:`chars`}`))),Io(this._domNode,id(`hr.tokens-inspect-separator`,{style:`clear:both`}));let o=(r<<1)+1<t.tokens2.length?this._decodeMetadata(t.tokens2[(r<<1)+1]):null;Io(this._domNode,id(`table.tm-metadata-table`,void 0,id(`tbody`,void 0,id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`language`),id(`td.tm-metadata-value`,void 0,`${o?o.languageId:`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`token type`),id(`td.tm-metadata-value`,void 0,`${o?this._tokenTypeToString(o.tokenType):`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`font style`),id(`td.tm-metadata-value`,void 0,`${o?this._fontStyleToString(o.fontStyle):`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`foreground`),id(`td.tm-metadata-value`,void 0,`${o?Xs.Format.CSS.formatHex(o.foreground):`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`background`),id(`td.tm-metadata-value`,void 0,`${o?Xs.Format.CSS.formatHex(o.background):`-?-`}`))))),Io(this._domNode,id(`hr.tokens-inspect-separator`)),n<t.tokens1.length&&Io(this._domNode,id(`span.tm-token-type`,void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=Ue.getColorMap(),n=es.getLanguageId(e),r=es.getTokenType(e),i=es.getFontStyle(e),a=es.getForeground(e),o=es.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(n),tokenType:r,fontStyle:i,foreground:t[a],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return`Other`;case 1:return`Comment`;case 2:return`String`;case 3:return`RegEx`;default:return`??`}}_fontStyleToString(e){let t=``;return e&1&&(t+=`italic `),e&2&&(t+=`bold `),e&4&&(t+=`underline `),e&8&&(t+=`strikethrough `),t.length===0&&(t=`---`),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),r=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:n.tokens,tokens2:r.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),!0,t).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}};ru(wV.ID,wV,4),hs(TV);var kV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AV=function(e,t){return function(n,r){t(n,r,e)}},jV,MV=class{static{jV=this}static{this.PREFIX=`?`}constructor(e,t,n){this.quickInputService=e,this.keybindingService=t,this.contextKeyService=n,this.registry=en.as(ja.Quickaccess)}provide(e){let t=new Ll;return t.add(e.onDidAccept(()=>{let[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(e=>{let t=this.registry.getQuickAccessProvider(e.substr(jV.PREFIX.length),this.contextKeyService);t?.prefix&&t.prefix!==jV.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(e=>e.prefix!==jV.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders(this.contextKeyService).sort((e,t)=>e.prefix.localeCompare(t.prefix)).flatMap(e=>this.createPicks(e))}createPicks(e){return e.helpEntries.map(t=>{let n=t.prefix||e.prefix,r=n||`…`;return{prefix:n,label:r,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:U(1811,`{0}, {1}`,r,t.description),description:t.description}})}};MV=jV=kV([AV(0,st),AV(1,Be),AV(2,In)],MV),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:MV,prefix:``,helpEntries:[{description:ed.helpQuickAccessActionLabel}]});var NV=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,n){let r=new Ll;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i=r.add(new Nu);return i.value=this.doProvide(e,t,n),r.add(this.onDidActiveTextEditorControlChange(()=>{i.value=void 0,i.value=this.doProvide(e,t)})),r}doProvide(e,t,n){let r=new Ll,i=this.activeTextEditorControl;if(i&&this.canProvideWithTextEditor(i)){let a={editor:i},o=uo(i);if(o){let e=i.saveViewState()??void 0;r.add(o.onDidChangeCursorPosition(()=>{e=i.saveViewState()??void 0})),a.restoreViewState=()=>{e&&i===this.activeTextEditorControl&&i.restoreViewState(e)},r.add(fl(t.onCancellationRequested)(()=>a.restoreViewState?.()))}r.add(Ns(()=>this.clearDecorations(i))),r.add(this.provideWithTextEditor(a,e,t,n))}else r.add(this.provideWithoutTextEditor(e,t));return r}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,`code.jump`),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let n=this.getModel(e);if(n){let e=n.getLineContent(t.range.startLineNumber);Zu(U(1381,`Line {0}, column {1}: {2}`,t.range.startLineNumber,t.range.startColumn,e))}}getModel(e){return Xd(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{let n=[];this.rangeHighlightDecorationId&&=(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),void 0);let r=[{range:t,options:{description:`quick-access-range-highlight`,className:`rangeHighlight`,isWholeLine:!0}},{range:t,options:{description:`quick-access-range-highlight-overview`,overviewRuler:{color:Za(qn),position:ra.Full}}}],[i,a]=e.deltaDecorations(n,r);this.rangeHighlightDecorationId={rangeHighlightId:i,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}},PV=class e extends NV{static{this.GO_TO_LINE_PREFIX=`:`}static{this.GO_TO_OFFSET_PREFIX=`::`}static{this.ZERO_BASED_OFFSET_STORAGE_KEY=`gotoLine.useZeroBasedOffset`}constructor(){super({canAcceptInBackground:!0})}get useZeroBasedOffset(){return this.storageService.getBoolean(e.ZERO_BASED_OFFSET_STORAGE_KEY,-1,!1)}set useZeroBasedOffset(t){this.storageService.store(e.ZERO_BASED_OFFSET_STORAGE_KEY,t,-1,0)}provideWithoutTextEditor(e){let t=U(1382,`Open a text editor first to go to a line or an offset.`);return e.items=[{label:t}],e.ariaLabel=t,Eo.None}provideWithTextEditor(t,n,r){let i=t.editor,a=new Ll;n.ariaLabel=U(1383,`Go to line. Type a line number, optionally followed by colon and column number.`),a.add(n.onDidAccept(e=>{let[r]=n.selectedItems;if(r){if(!r.lineNumber)return;this.gotoLocation(t,{range:this.toRange(r.lineNumber,r.column),keyMods:n.keyMods,preserveFocus:e.inBackground}),e.inBackground||n.hide()}}));let o={iconClass:fi.asClassName(Mr.indexZero),tooltip:U(1384,`Toggle Zero-Based Offset`),location:Wi.Input,toggle:{checked:this.useZeroBasedOffset}},s=()=>{let t=n.value.trim().substring(e.GO_TO_LINE_PREFIX.length),{inOffsetMode:r,lineNumber:a,column:s,label:c}=this.parsePosition(i,t);if(n.buttons=r?[o]:[],n.items=[{lineNumber:a,column:s,label:c,ariaLabel:a?U(1385,`Go to line {0}, column {1}. Press Enter to navigate.`,a,s||1):c}],!a){this.clearDecorations(i);return}let l=this.toRange(a,s);i.revealRangeInCenter(l,0),this.addDecorations(i,l)};a.add(n.onDidTriggerButton(e=>{e===o&&(this.useZeroBasedOffset=e.toggle?.checked??!this.useZeroBasedOffset,s())})),s(),a.add(n.onDidChangeValue(()=>s()));let c=uo(i);return c&&c.getOptions().get(76).renderType===2&&(c.updateOptions({lineNumbers:`on`}),a.add(Ns(()=>c.updateOptions({lineNumbers:`relative`})))),a}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let n=this.getModel(e);if(!n)return{label:U(1386,`Open a text editor first to go to a line or an offset.`)};if(t.startsWith(`:`)){let e=parseInt(t.substring(1),10),r=n.getValueLength();if(isNaN(e))return{inOffsetMode:!0,label:this.useZeroBasedOffset?U(1387,`Type a character position to go to (from 0 to {0}).`,r-1):U(1388,`Type a character position to go to (from 1 to {0}).`,r)};{let t=e<0;this.useZeroBasedOffset||(e-=Math.sign(e)),t&&(e+=r);let i=n.getPositionAt(e),a=pr.visibleColumnFromColumn(n.getLineContent(i.lineNumber),i.column,n.getOptions().tabSize)+1;return{...i,inOffsetMode:!0,label:U(1389,`Press 'Enter' to go to line {0} at column {1}.`,i.lineNumber,a)}}}{let e=t.split(/,|:|#/),r=n.getLineCount(),i=parseInt(e[0]?.trim(),10);if(e.length<1||isNaN(i))return{label:U(1390,`Type a line number to go to (from 1 to {0}).`,r)};i=i>=0?i:r+1+i,i=Math.min(Math.max(1,i),r);let a=n.getOptions().tabSize,o=n.getLineContent(i),s=pr.visibleColumnFromColumn(o,n.getLineMaxColumn(i),a)+1,c=parseInt(e[1]?.trim(),10);if(e.length<2||isNaN(c))return{lineNumber:i,column:1,label:e.length<2?U(1391,`Press 'Enter' to go to line {0} or enter colon : to add a column number.`,i):U(1392,`Press 'Enter' to go to line {0} or enter a column number (from 1 to {1}).`,i,s)};c=c>=0?c:s+c,c=Math.min(Math.max(1,c),s);let l=pr.columnFromVisibleColumn(o,c-1,a);return{lineNumber:i,column:l,label:U(1393,`Press 'Enter' to go to line {0} at column {1}.`,i,c)}}}},FV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},IV=function(e,t){return function(n,r){t(n,r,e)}},LV=class extends PV{constructor(e,t){super(),this.editorService=e,this.storageService=t,this.onDidActiveTextEditorControlChange=Ku.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};LV=FV([IV(0,To),IV(1,Wd)],LV);var RV=class e extends Wl{static{this.ID=`editor.action.gotoLine`}constructor(){super({id:e.ID,label:ri.gotoLineActionLabel,alias:`Go to Line/Column...`,precondition:void 0,kbOpts:{kbExpr:G.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(st).quickAccess.show(LV.GO_TO_LINE_PREFIX)}};hs(RV),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:LV,prefix:LV.GO_TO_LINE_PREFIX,helpEntries:[{description:ri.gotoLineActionLabel,commandId:RV.ID}]});var zV=class e extends Wl{static{this.ID=`editor.action.gotoOffset`}constructor(){super({id:e.ID,label:ri.gotoOffsetActionLabel,alias:`Go to Offset...`,precondition:void 0})}run(e){e.get(st).quickAccess.show(LV.GO_TO_OFFSET_PREFIX)}};hs(zV),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:LV,prefix:LV.GO_TO_OFFSET_PREFIX,helpEntries:[{description:ri.gotoOffsetActionLabel,commandId:zV.ID}]});var BV=[void 0,[]];function VV(e,t,n=0,r=0){let i=t;return i.values&&i.values.length>1?HV(e,i.values,n,r):UV(e,t,n,r)}function HV(e,t,n,r){let i=0,a=[];for(let o of t){let[t,s]=UV(e,o,n,r);if(typeof t!=`number`)return BV;i+=t,a.push(...s)}return[i,WV(a)]}function UV(e,t,n,r){let i=Nn(t.normalized,t.normalizedLowercase,n,e,e.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?[i[0],fu(i)]:BV}function WV(e){let t=e.sort((e,t)=>e.start-t.start),n=[],r;for(let e of t)!r||!GV(r,e)?(r=e,n.push(e)):(r.start=Math.min(r.start,e.start),r.end=Math.max(r.end,e.end));return n}function GV(e,t){return!(e.end<t.start||t.end<e.start)}function KV(e){return e.startsWith(`"`)&&e.endsWith(`"`)}var qV=` `;function JV(e){typeof e!=`string`&&(e=``);let t=e.toLowerCase(),{pathNormalized:n,normalized:r,normalizedLowercase:i}=YV(e),a=n.indexOf(et)>=0,o=KV(e),s,c=e.split(qV);if(c.length>1)for(let e of c){let t=KV(e),{pathNormalized:n,normalized:r,normalizedLowercase:i}=YV(e);r&&(s||=[],s.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:n,normalized:r,normalizedLowercase:i,expectContiguousMatch:t}))}return{original:e,originalLowercase:t,pathNormalized:n,normalized:r,normalizedLowercase:i,values:s,containsPathSeparator:a,expectContiguousMatch:o}}function YV(e){let t;t=Ai?e.replace(/\//g,et):e.replace(/\\/g,et);let n=t.replace(/[\*\u2026\s"]/g,``).replace(/(?<=.)#$/,``);return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function XV(e){return JV(Array.isArray(e)?e.map(e=>e.original).join(qV):e.original)}var ZV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},QV=function(e,t){return function(n,r){t(n,r,e)}},$V,eH=class extends NV{static{$V=this}static{this.PREFIX=`@`}static{this.SCOPE_PREFIX=`:`}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,n=Object.create(null)){super(n),this._languageFeaturesService=e,this._outlineModelService=t,this.options=n,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,U(1394,`To go to a symbol, first open a text editor with symbol information.`)),Eo.None}provideWithTextEditor(e,t,n,r){let i=e.editor,a=this.getModel(i);return a?this._languageFeaturesService.documentSymbolProvider.has(a)?this.doProvideWithEditorSymbols(e,a,t,n,r):this.doProvideWithoutEditorSymbols(e,a,t,n):Eo.None}doProvideWithoutEditorSymbols(e,t,n,r){let i=new Ll;return this.provideLabelPick(n,U(1395,`The active text editor does not provide symbol information.`)),(async()=>{!await this.waitForLanguageSymbolRegistry(t,i)||r.isCancellationRequested||i.add(this.doProvideWithEditorSymbols(e,t,n,r))})(),i}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let n=new Le,r=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(r.dispose(),n.complete(!0))}));return t.add(Ns(()=>n.complete(!1))),n.p}doProvideWithEditorSymbols(e,t,n,r,i){let a=e.editor,o=new Ll;o.add(n.onDidAccept(t=>{let[r]=n.selectedItems;if(r&&r.range){if(n.keyMods.shift&&r.attach){r.attach(n.keyMods,t);return}this.gotoLocation(e,{range:r.range.selection,keyMods:n.keyMods,preserveFocus:t.inBackground}),i?.handleAccept?.(r,t.inBackground),t.inBackground||n.hide()}})),o.add(n.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let s=this.getDocumentSymbols(t,r),c=o.add(new Nu),l=async e=>{c?.value?.cancel(),n.busy=!1,c.value=new Aa,n.busy=!0;try{let i=JV(n.value.substr($V.PREFIX.length).trim()),a=await this.doGetSymbolPicks(s,i,void 0,c.value.token,t);if(r.isCancellationRequested)return;if(a.length>0){if(n.items=a,e&&i.original.length===0){let t=Ht(a,t=>!!(t.type!==`separator`&&t.range&&B.containsPosition(t.range.decoration,e)));t&&(n.activeItems=[t])}}else i.original.length>0?this.provideLabelPick(n,U(1396,`No matching editor symbols`)):this.provideLabelPick(n,U(1397,`No editor symbols`))}finally{r.isCancellationRequested||(n.busy=!1)}};return o.add(n.onDidChangeValue(()=>l(void 0))),l(a.getSelection()?.getPosition()),o.add(n.onDidChangeActive(()=>{let[e]=n.activeItems;e&&e.range&&(a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration))})),o}async doGetSymbolPicks(e,t,n,r,i){let a=await e;if(r.isCancellationRequested)return[];let o=t.original.indexOf($V.SCOPE_PREFIX)===0,s=+!!o,c,l;t.values&&t.values.length>1?(c=XV(t.values[0]),l=XV(t.values.slice(1))):c=t;let u,d=this.options?.openSideBySideDirection?.();d&&(u=[{iconClass:d===`right`?fi.asClassName(Mr.splitHorizontal):fi.asClassName(Mr.splitVertical),tooltip:d===`right`?U(1398,`Open to the Side`):U(1399,`Open to the Bottom`)}]);let f=[];for(let e=0;e<a.length;e++){let r=a[e],o=md(r.name),d=`$(${Yc.toIcon(r.kind).id}) ${o}`,p=d.length-o.length,m=r.containerName;n?.extraContainerLabel&&(m=m?`${n.extraContainerLabel} • ${m}`:n.extraContainerLabel);let h,g,_,v;if(t.original.length>s){let e=!1;if(c!==t&&([h,g]=VV(d,{...t,values:void 0},s,p),typeof h==`number`&&(e=!0)),typeof h!=`number`&&([h,g]=VV(d,c,s,p),typeof h!=`number`))continue;if(!e&&l){if(m&&l.original.length>0&&([_,v]=VV(m,l)),typeof _!=`number`)continue;typeof h==`number`&&(h+=_)}}let y=r.tags&&r.tags.indexOf(1)>=0;f.push({index:e,kind:r.kind,score:h,label:d,ariaLabel:Lc(r.name,r.kind),description:m,highlights:y?void 0:{label:g,description:v},range:{selection:B.collapseToStart(r.selectionRange),decoration:r.range},uri:i.uri,symbolName:o,strikethrough:y,buttons:u})}let p=f.sort((e,t)=>o?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),m=[];if(o){let e,t,n=0;function r(){t&&typeof e==`number`&&n>0&&(t.label=ks(nH[e]||tH,n))}for(let i of p)e===i.kind?n++:(r(),e=i.kind,n=1,t={type:`separator`},m.push(t)),m.push(i);r()}else p.length>0&&(m=[{label:U(1400,`symbols ({0})`,f.length),type:`separator`},...p]);return m}compareByScore(e,t){if(typeof e.score!=`number`&&typeof t.score==`number`)return 1;if(typeof e.score==`number`&&typeof t.score!=`number`)return-1;if(typeof e.score==`number`&&typeof t.score==`number`){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:+(e.index>t.index)}compareByKindAndScore(e,t){let n=nH[e.kind]||tH,r=nH[t.kind]||tH,i=n.localeCompare(r);return i===0?this.compareByScore(e,t):i}async getDocumentSymbols(e,t){let n=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:n.asListOfDocumentSymbols()}};eH=$V=ZV([QV(0,gl),QV(1,Qw)],eH);var tH=U(1401,`properties ({0})`),nH={5:U(1402,`methods ({0})`),11:U(1403,`functions ({0})`),8:U(1404,`constructors ({0})`),12:U(1405,`variables ({0})`),4:U(1406,`classes ({0})`),22:U(1407,`structs ({0})`),23:U(1408,`events ({0})`),24:U(1409,`operators ({0})`),10:U(1410,`interfaces ({0})`),2:U(1411,`namespaces ({0})`),3:U(1412,`packages ({0})`),25:U(1413,`type parameters ({0})`),1:U(1414,`modules ({0})`),6:U(1415,`properties ({0})`),9:U(1416,`enumerations ({0})`),21:U(1417,`enumeration members ({0})`),14:U(1418,`strings ({0})`),0:U(1419,`files ({0})`),17:U(1420,`arrays ({0})`),15:U(1421,`numbers ({0})`),16:U(1422,`booleans ({0})`),18:U(1423,`objects ({0})`),19:U(1424,`keys ({0})`),7:U(1425,`fields ({0})`),13:U(1426,`constants ({0})`)},rH=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},iH=function(e,t){return function(n,r){t(n,r,e)}},aH=class extends eH{constructor(e,t,n){super(t,n),this.editorService=e,this.onDidActiveTextEditorControlChange=Ku.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};aH=rH([iH(0,To),iH(1,gl),iH(2,Qw)],aH);var oH=class e extends Wl{static{this.ID=`editor.action.quickOutline`}constructor(){super({id:e.ID,label:Ml.quickOutlineActionLabel,alias:`Go to Symbol...`,precondition:G.hasDocumentSymbolProvider,kbOpts:{kbExpr:G.focus,primary:3117,weight:100},contextMenuOpts:{group:`navigation`,order:3}})}run(e){e.get(st).quickAccess.show(eH.PREFIX,{itemActivation:Md.NONE})}};hs(oH),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:aH,prefix:eH.PREFIX,helpEntries:[{description:Ml.quickOutlineActionLabel,prefix:eH.PREFIX,commandId:oH.ID},{description:Ml.quickOutlineByCategoryActionLabel,prefix:eH.PREFIX_BY_CATEGORY}]});function sH(e){let t=new Map;for(let n of e)t.set(n,(t.get(n)??0)+1);return t}var cH=class e{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){let n=this.computeEmbedding(e),r=new Map,i=[];for(let[e,a]of this.documents){if(t.isCancellationRequested)return[];for(let t of a.chunks){let a=this.computeSimilarityScore(t,n,r);a>0&&i.push({key:e,score:a})}}return i}static termFrequencies(t){return sH(e.splitTerms(t))}static*splitTerms(e){let t=e=>e.toLowerCase();for(let[n]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(n);let e=n.replace(/([a-z])([A-Z])/g,`$1 $2`).split(/\s+/g);if(e.length>1)for(let n of e)n.length>2&&/\p{Letter}{3,}/gu.test(n)&&(yield t(n))}}updateDocuments(t){for(let{key:e}of t)this.deleteDocument(e);for(let n of t){let t=[];for(let r of n.textChunks){let n=e.termFrequencies(r);for(let e of n.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);t.push({text:r,tf:n})}this.chunkCount+=t.length,this.documents.set(n.key,{chunks:t})}return this}deleteDocument(e){let t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(let e of t.chunks)for(let t of e.tf.keys()){let e=this.chunkOccurrences.get(t);if(typeof e==`number`){let n=e-1;n<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,n)}}}}computeSimilarityScore(e,t,n){let r=0;for(let[i,a]of Object.entries(t)){let t=e.tf.get(i);if(!t)continue;let o=n.get(i);typeof o!=`number`&&(o=this.computeIdf(i),n.set(i,o));let s=t*o;r+=s*a}return r}computeEmbedding(t){let n=e.termFrequencies(t);return this.computeTfidf(n)}computeIdf(e){let t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){let t=Object.create(null);for(let[n,r]of e){let e=this.computeIdf(n);e>0&&(t[n]=r*e)}return t}};function lH(e){let t=e.slice(0);t.sort((e,t)=>t.score-e.score);let n=t[0]?.score??0;if(n>0)for(let e of t)e.score/=n;return t}var uH;(function(e){e[e.NO_ACTION=0]=`NO_ACTION`,e[e.CLOSE_PICKER=1]=`CLOSE_PICKER`,e[e.REFRESH_PICKER=2]=`REFRESH_PICKER`,e[e.REMOVE_ITEM=3]=`REMOVE_ITEM`})(uH||={});function dH(e){let t=e;return Array.isArray(t.items)}function fH(e){let t=e;return!!t.picks&&t.additionalPicks instanceof Promise}var pH=class extends Eo{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,n){let r=new Ll;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i,a=r.add(new Nu),o=async()=>{i?.dispose(!0),e.busy=!1;let r=a.value=new Ll;i=r.add(new Aa(t));let o=i.token,s=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(s=s.trim());let c=this._getPicks(s,r,o,n),l=(t,n)=>{let r,i;if(dH(t)?(r=t.items,i=t.active):r=t,r.length===0){if(n)return!1;(s.length>0||e.hideInput)&&this.options?.noResultsPick&&(r=Jr(this.options.noResultsPick)?[this.options.noResultsPick(s)]:[this.options.noResultsPick])}return e.items=r,i&&(e.activeItems=[i]),!0},u=async t=>{let n=!1,r=!1;await Promise.all([(async()=>{typeof t.mergeDelay==`number`&&(await fa(t.mergeDelay),o.isCancellationRequested)||r||(n=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{let r=await t.additionalPicks;if(o.isCancellationRequested)return;let i,a;dH(t.picks)?(i=t.picks.items,a=t.picks.active):i=t.picks;let s,c;if(dH(r)?(s=r.items,c=r.active):s=r,s.length>0||!n){let t;if(!a&&!c){let n=e.activeItems[0];n&&i.indexOf(n)!==-1&&(t=n)}l({items:[...i,...s],active:a||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),r=!0}})()])};if(c!==null){if(fH(c))await u(c);else if(!(c instanceof Promise))l(c);else{e.busy=!0;try{let e=await c;if(o.isCancellationRequested)return;fH(e)?await u(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}}};r.add(e.onDidChangeValue(()=>o())),o(),r.add(e.onDidAccept(t=>{if(n?.handleAccept){t.inBackground||e.hide(),n.handleAccept?.(e.activeItems[0],t.inBackground);return}let[r]=e.selectedItems;if(typeof r?.accept==`function`){if(kt(e.keyMods)&&r.attach){r.attach(e.keyMods,t);return}t.inBackground||e.hide(),r.accept(e.keyMods,t)}}));let s=async(n,r)=>{if(typeof r.trigger!=`function`)return;let i=r.buttons?.indexOf(n)??-1;if(i>=0){let n=r.trigger(i,e.keyMods),a=typeof n==`number`?n:await n;if(t.isCancellationRequested)return;switch(a){case uH.NO_ACTION:break;case uH.CLOSE_PICKER:e.hide();break;case uH.REFRESH_PICKER:o();break;case uH.REMOVE_ITEM:{let t=e.items.indexOf(r);if(t!==-1){let n=e.items.slice(),r=n.splice(t,1),i=e.activeItems.filter(e=>e!==r[0]),a=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=n,i&&(e.activeItems=i),e.keepScrollPosition=a}break}}}};return r.add(e.onDidTriggerItemButton(({button:e,item:t})=>s(e,t))),r.add(e.onDidTriggerSeparatorButton(({button:e,separator:t})=>s(e,t))),r}},mH=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hH=function(e,t){return function(n,r){t(n,r,e)}},gH,_H,vH=class extends pH{static{gH=this}static{this.PREFIX=`>`}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=Ee(La,li)}constructor(e,t,n,r,i,a){super(gH.PREFIX,e),this.keybindingService=n,this.commandService=r,this.telemetryService=i,this.dialogService=a,this.commandsHistory=this._register(t.createInstance(yH)),this.options=e}async _getPicks(e,t,n,r){let i=await this.getCommandPicks(n);if(n.isCancellationRequested)return[];let a=fl(()=>{let t=new cH;return t.updateDocuments(i.map(e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))),lH(t.calculateScores(e,n)).filter(e=>e.score>gH.TFIDF_THRESHOLD).slice(0,gH.TFIDF_MAX_RESULTS)}),o=[];for(let t of i){let r=gH.WORD_FILTER(e,t.label)??void 0,i;if(t.commandAlias&&(i=gH.WORD_FILTER(e,t.commandAlias)??void 0),r||i)t.highlights={label:r,detail:this.options.showAlias?i:void 0},o.push(t);else if(e===t.commandId)o.push(t);else if(e.length>=3){let e=a();if(n.isCancellationRequested)return[];let r=e.find(e=>e.key===t.commandId);r&&(t.tfIdfScore=r.score,o.push(t))}}let s=new Map;for(let e of o){let t=s.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):s.set(e.label,e)}o.sort((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;let n=this.commandsHistory.peek(e.commandId),r=this.commandsHistory.peek(t.commandId);if(n&&r)return n>r?-1:1;if(n)return-1;if(r)return 1;if(this.options.suggestedCommandIds){let n=this.options.suggestedCommandIds.has(e.commandId),r=this.options.suggestedCommandIds.has(t.commandId);if(n&&r)return 0;if(n)return-1;if(r)return 1}let i=e.commandCategory===dz.Developer.value,a=t.commandCategory===dz.Developer.value;return i&&!a?1:!i&&a?-1:e.label.localeCompare(t.label)});let c=[],l=!1,u=!0,d=!!this.options.suggestedCommandIds;for(let e=0;e<o.length;e++){let t=o[e],n=!!this.commandsHistory.peek(t.commandId);e===0&&n&&(c.push({type:`separator`,label:U(1803,`recently used`)}),l=!0),u&&t.tfIdfScore!==void 0&&(c.push({type:`separator`,label:U(1804,`similar commands`)}),u=!1),d&&t.tfIdfScore===void 0&&!n&&this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:U(1805,`commonly used`)}),l=!0,d=!1),l&&t.tfIdfScore===void 0&&!n&&!this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:U(1806,`other commands`)}),l=!1),c.push(this.toCommandPick(t,r,n))}return this.hasAdditionalCommandPicks(e,n)?{picks:c,additionalPicks:(async()=>{let t=await this.getAdditionalCommandPicks(i,o,e,n);if(n.isCancellationRequested)return[];let a=t.map(e=>this.toCommandPick(e,r));return u&&a[0]?.type!==`separator`&&a.unshift({type:`separator`,label:U(1807,`similar commands`)}),a})()}:c}toCommandPick(e,t,n=!1){if(e.type===`separator`)return e;let r=e.tooltip??e.commandDescription?.value,i=this.keybindingService.lookupKeybinding(e.commandId),a=i?U(1808,`{0}, {1}`,e.label,i.getAriaLabel()):e.label,o=e.buttons||[],s=n?[...o,{iconClass:fi.asClassName(Mr.close),tooltip:U(1809,`Remove from Recently Used`)}]:e.buttons;return{...e,tooltip:r,ariaLabel:a,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,buttons:s,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2(`workbenchActionExecuted`,{id:e.commandId,from:t?.from??`quick open`});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(t){lu(t)||this.dialogService.error(U(1810,`Command '{0}' resulted in an error`,e.label),tm(t))}},trigger:n?(t,n)=>t===o.length?(this.commandsHistory.remove(e.commandId),uH.REMOVE_ITEM):e.trigger?e.trigger(t,n):uH.NO_ACTION:e.trigger}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:n}){let r=e;return t&&t!==e&&(r+=` - ${t}`),n&&n.value!==e&&(r+=` - ${n.value===n.original?n.value:`${n.value} (${n.original})`}`),r}};vH=gH=mH([hH(1,Il),hH(2,Be),hH(3,so),hH(4,Wt),hH(5,vt)],vH);var yH=class extends Eo{static{_H=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE=`commandPalette.mru.cache`}static{this.PREF_KEY_COUNTER=`commandPalette.mru.counter`}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,n){super(),this.storageService=e,this.configurationService=t,this.logService=n,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e))),this._register(this.storageService.onWillSaveState(e=>{e.reason===Ni.SHUTDOWN&&this.saveState()}))}updateConfiguration(e){e&&!e.affectsConfiguration(`workbench.commandPalette.history`)||(this.configuredCommandsHistoryLength=_H.getConfiguredCommandHistoryLength(this.configurationService),_H.cache&&_H.cache.limit!==this.configuredCommandsHistoryLength&&(_H.cache.limit=this.configuredCommandsHistoryLength,_H.hasChanges=!0))}load(){let e=this.storageService.get(_H.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(e){this.logService.error(`[CommandsHistory] invalid data: ${e}`)}let n=_H.cache=new Ar(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort((e,t)=>e.value-t.value),e.forEach(e=>n.set(e.key,e.value))}_H.counter=this.storageService.getNumber(_H.PREF_KEY_COUNTER,0,_H.counter)}push(e){_H.cache&&(_H.cache.set(e,_H.counter++),_H.hasChanges=!0)}peek(e){return _H.cache?.peek(e)}remove(e){_H.cache&&(_H.cache.delete(e),_H.hasChanges=!0)}saveState(){if(!_H.cache||!_H.hasChanges)return;let e={usesLRU:!0,entries:[]};_H.cache.forEach((t,n)=>e.entries.push({key:n,value:t})),this.storageService.store(_H.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(_H.PREF_KEY_COUNTER,_H.counter,0,0),_H.hasChanges=!1}static getConfiguredCommandHistoryLength(e){let t=e.getValue().workbench?.commandPalette?.history;return typeof t==`number`?t:_H.DEFAULT_COMMANDS_HISTORY_LENGTH}};yH=_H=mH([hH(0,Wd),hH(1,Ou),hH(2,Cd)],yH);var bH=class extends vH{constructor(e,t,n,r,i,a){super(e,t,n,r,i,a)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let n of e.getSupportedActions()){let e;n.metadata?.description&&(e=Ae(n.metadata.description)?n.metadata.description:{original:n.metadata.description,value:n.metadata.description}),t.push({commandId:n.id,commandAlias:n.alias,commandDescription:e,label:na(n.label)||n.id})}return t}},_ee=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xH=function(e,t){return function(n,r){t(n,r,e)}},SH=class extends bH{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,n,r,i,a){super({showAlias:!1},e,n,r,i,a),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};SH=_ee([xH(0,Il),xH(1,To),xH(2,Be),xH(3,so),xH(4,Wt),xH(5,vt)],SH);var CH=class e extends Wl{static{this.ID=`editor.action.quickCommand`}constructor(){super({id:e.ID,label:Os.quickCommandActionLabel,alias:`Command Palette`,precondition:void 0,kbOpts:{kbExpr:G.focus,primary:59,weight:100},contextMenuOpts:{group:`z_commands`,order:1}})}run(e){e.get(st).quickAccess.show(SH.PREFIX)}};hs(CH),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:SH,prefix:SH.PREFIX,helpEntries:[{description:Os.quickCommandHelp,commandId:CH.ID}]});var wH=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TH=function(e,t){return function(n,r){t(n,r,e)}},EH=class extends $b{constructor(e,t,n,r,i,a,o){super(!0,e,t,n,r,i,a,o)}};EH=wH([TH(1,In),TH(2,To),TH(3,Ut),TH(4,Il),TH(5,Wd),TH(6,Ou)],EH),ru($b.ID,EH,4),hs(class extends Wl{constructor(){super({id:`editor.action.toggleHighContrast`,label:ku.toggleHighContrast,alias:`Toggle High Contrast Theme`,precondition:void 0}),this._originalThemeName=null}run(e,t){let n=e.get(eo),r=n.getColorTheme();zt(r.type)?(n.setTheme(this._originalThemeName||(Yr(r.type)?`vs-dark`:`vs`)),this._originalThemeName=null):(n.setTheme(Yr(r.type)?lf:We),this._originalThemeName=r.themeName)}});var DH=(e=>(e[e.None=0]=`None`,e[e.CommonJS=1]=`CommonJS`,e[e.AMD=2]=`AMD`,e[e.UMD=3]=`UMD`,e[e.System=4]=`System`,e[e.ES2015=5]=`ES2015`,e[e.ESNext=99]=`ESNext`,e))(DH||{}),OH=(e=>(e[e.None=0]=`None`,e[e.Preserve=1]=`Preserve`,e[e.React=2]=`React`,e[e.ReactNative=3]=`ReactNative`,e[e.ReactJSX=4]=`ReactJSX`,e[e.ReactJSXDev=5]=`ReactJSXDev`,e))(OH||{}),vee=(e=>(e[e.ES3=0]=`ES3`,e[e.ES5=1]=`ES5`,e[e.ES2015=2]=`ES2015`,e[e.ES2016=3]=`ES2016`,e[e.ES2017=4]=`ES2017`,e[e.ES2018=5]=`ES2018`,e[e.ES2019=6]=`ES2019`,e[e.ES2020=7]=`ES2020`,e[e.ESNext=99]=`ESNext`,e[e.JSON=100]=`JSON`,e[e.Latest=99]=`Latest`,e))(vee||{}),kH=(e=>(e[e.Classic=1]=`Classic`,e[e.NodeJs=2]=`NodeJs`,e))(kH||{}),AH=class{constructor(e,t,n,r,i){this._onDidChange=new Uu,this._onDidExtraLibsChange=new Uu,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this.setInlayHintsOptions(r),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let n;if(n=t===void 0?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[n];e&&e.version===r&&(delete this._extraLibs[n],this._removedExtraLibs[n]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content,r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},jH={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},MH=new AH({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},jH),yee=new AH({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},jH);function NH(){return _e(()=>import(`./tsMode-CTmJLLW5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))}Xc.onLanguage(`typescript`,()=>NH().then(e=>e.setupTypeScript(MH))),Xc.onLanguage(`javascript`,()=>NH().then(e=>e.setupJavaScript(yee)));function PH(e){let t=[];for(let n of e)if(!(!n||n===`.`)){if(n===`..`){t.length&&t[t.length-1]!==`..`?t.pop():t.push(`..`);continue}t.push(n)}return t}function FH(e,t){return PH([...e.split(`/`),...t.split(`/`)])}function IH(e,t){let n=PH(e.split(`/`)),r=0;for(;r<n.length&&r<t.length&&n[r]===t[r];)r+=1;let i=Array.from({length:n.length-r},()=>`..`),a=t.slice(r),o=[...i,...a].join(`/`);return o.startsWith(`.`)?o:`./${o}`}var bee=/(\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*)(['"])(\.[^'"]*)\2/g;function LH(e,t,n){return t===n?e:e.replace(bee,(e,r,i,a)=>`${r}${i}${IH(n,FH(t,a))}${i}`)}function RH(e){return`nodes/${e}`}var xee=Object.defineProperty,zH=(e,t,n)=>t in e?xee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t,n)=>zH(e,typeof t==`symbol`?t:t+``,n),BH,VH,HH,UH,WH;function GH(e){return e.method!==void 0}var KH;(function(e){function t(e){return e}e.create=t})(KH||={});var qH;(function(e){e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603;function t(e){return-32099<=e&&e<=-32e3}e.isServerError=t;function n(e){if(!t(e))throw Error(`Invalid range for a server error.`);return e}e.serverError=n,e.unexpectedServerError=-32e3;function r(e){return!0}e.isApplicationError=r;function i(e){return e}e.applicationError=i,e.genericApplicationError=-320100})(qH||={});var JH=class{constructor(){$(this,`listeners`,new Set),$(this,`event`,e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},YH=class{constructor(e){$(this,`_value`),$(this,`eventEmitter`),this._value=e,this.eventEmitter=new JH}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function XH(e,t){let n=setTimeout(t,e);return{dispose:()=>clearTimeout(n)}}function ZH(e,t,n){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,n),{dispose:()=>e.delete(t)})}var QH=class{constructor(){$(this,`_state`,`none`),$(this,`promise`),$(this,`resolve`,()=>{}),$(this,`reject`,()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}};BH=class{constructor(){$(this,`_unprocessedMessages`,[]),$(this,`_messageListener`),$(this,`id`,BH.id++),$(this,`_state`,new YH({state:`open`})),$(this,`state`,this._state)}setListener(e){if(this._messageListener=e,e)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){let e=this._unprocessedMessages.shift();this._messageListener(e)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:`closed`,error:void 0}}log(e){return new $H(this,e??new eU)}},$(BH,`id`,0);var $H=class{constructor(e,t){$(this,`baseStream`),$(this,`logger`),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){if(e===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(t=>{this.logger.log(this.baseStream,`incoming`,t),e(t)})}send(e){return this.logger.log(this.baseStream,`outgoing`,e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},eU=class{log(e,t,n){console.log(`${t===`incoming`?`<-`:`->`} [${e.toString()}] ${JSON.stringify(n)}`)}},tU=class e{constructor(e){$(this,`connect`),this.connect=e}mapContext(t){return new e(e=>this.connect(e?nU(e,t):void 0))}};function nU(e,t){return{handleNotification:(n,r)=>e.handleNotification(n,t(r)),handleRequest:(n,r,i)=>e.handleRequest(n,r,t(i))}}var rU=class e{constructor(e,t,n){$(this,`_stream`),$(this,`_listener`),$(this,`_logger`),$(this,`_unprocessedResponses`,new Map),$(this,`_lastUsedRequestId`,0),this._stream=e,this._listener=t,this._logger=n,this._stream.setListener(e=>{GH(e)?e.id===void 0?this._processNotification(e):this._processRequest(e):this._processResponse(e)})}static createChannel(t,n){let r=!1;return new tU(i=>{if(r)throw Error(`A channel to the stream ${t} was already constructed!`);return r=!0,new e(t,i,n)})}get state(){return this._stream.state}async _processNotification(e){if(e.id!==void 0)throw Error();if(!this._listener){this._logger&&this._logger.debug({text:`Notification ignored`,message:e});return}try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}}async _processRequest(e){if(e.id===void 0)throw Error();let t;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:qH.internalError,message:`An unexpected exception was thrown.`,data:void 0}}}else this._logger&&this._logger.debug({text:`Received request even though not listening for requests`,message:e}),t={error:{code:qH.methodNotFound,message:`This endpoint does not listen for requests or notifications.`,data:void 0}};let n;n=`result`in t?{jsonrpc:`2.0`,id:e.id,result:t.result}:{jsonrpc:`2.0`,id:e.id,error:t.error},await this._stream.send(n)}_processResponse(e){let t=``+e.id,n=this._unprocessedResponses.get(t);if(!n){this._logger&&this._logger.debug({text:`Got an unexpected response message`,message:e});return}this._unprocessedResponses.delete(t),n(e)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,n){let r={jsonrpc:`2.0`,id:this._newRequestId(),method:e.method,params:e.params||void 0};return n&&n(r.id),new Promise((e,t)=>{let n=``+r.id;this._unprocessedResponses.set(n,n=>{`result`in n?e({result:n.result}):(n.error||t(Error(`Response had neither 'result' nor 'error' field set.`)),e({error:n.error}))}),this._stream.send(r).then(void 0,e=>{this._unprocessedResponses.delete(n),t(e)})})}sendNotification(e,t){let n={jsonrpc:`2.0`,id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(n)}toString(){return`StreamChannel/`+this._stream.toString()}},iU;(function(e){function t(){return{deserializeFromJson:e=>({hasErrors:!1,value:e}),serializeToJson:e=>e}}e.sAny=t;function n(){return{deserializeFromJson:e=>({hasErrors:!1,value:{}}),serializeToJson:e=>({})}}e.sEmptyObject=n;function r(){return{deserializeFromJson:e=>({hasErrors:!1,value:void 0}),serializeToJson:e=>null}}e.sVoidFromNull=r})(iU||={});var aU=Symbol(`OptionalMethodNotFound`),oU=class{contextualize(e){return new sU(this,e)}},sU=class extends oU{constructor(e,t){super(),$(this,`underylingTypedChannel`),$(this,`converters`),this.underylingTypedChannel=e,this.converters=t}async request(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.request(e,t,r)}async notify(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.notify(e,t,r)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(e,n)=>await t(e,await this.converters.getNewContext(n)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(e,n,r)=>await t(e,n,await this.converters.getNewContext(r)))}},cU=class e extends oU{constructor(e,t={}){super(),$(this,`channelCtor`),$(this,`_requestSender`),$(this,`_handler`,new Map),$(this,`_unknownNotificationHandler`,new Set),$(this,`_timeout`),$(this,`sendExceptionDetails`,!1),$(this,`_logger`),$(this,`listeningDeferred`,new QH),$(this,`onListening`,this.listeningDeferred.promise),$(this,`_requestDidErrorEventEmitter`,new JH),$(this,`onRequestDidError`,this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=XH(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,n={}){return new e(rU.createChannel(t,n.logger),n)}startListen(){if(this._requestSender)throw Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&=(this._timeout.dispose(),void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,n)=>this.handleRequest(e,t,n),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,n){let r=this._handler.get(e.method);if(!r)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:qH.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if(r.kind!=`request`){let t=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e}}),{error:{code:qH.invalidRequest,message:t,data:{method:e.method}}}}let i=r.requestType.paramsSerializer.deserializeFromJson(e.params);if(i.hasErrors){let t=`Got invalid params: ${i.errorMessage}`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e,errorMessage:i.errorMessage}}),{error:{code:qH.invalidParams,message:t,data:{errors:i.errorMessage}}}}{let a=i.value,o;try{let e=await r.handler(a,t,n);if(`error`in e||`errorMessage`in e){let t=e.error?r.requestType.errorSerializer.serializeToJson(e.error):void 0;o={error:{code:e.errorCode||qH.genericApplicationError,message:e.errorMessage||`An error was returned`,data:t}}}else o={result:r.requestType.resultSerializer.serializeToJson(e.ok)}}catch(t){t instanceof uU?o={error:{code:t.code,message:t.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${t}.`,exception:t,data:{requestObject:e}}),o={error:{code:qH.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${t}.`:`Server has thrown an unexpected exception`}})}return o}}async handleNotification(e,t){let n=this._handler.get(e.method);if(!n){for(let t of this._unknownNotificationHandler)t(e);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}});return}if(n.kind!=`notification`){this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}});return}let r=n.notificationType.paramsSerializer.deserializeFromJson(e.params);if(r.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${r}`,data:{requestObject:e,errorMessage:r.errorMessage}});return}let i=r.value;for(let r of n.handlers)try{r(i,t)}catch(t){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${t}.`,exception:t,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return ZH(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw Error(`Handler with method "${e.method}" already registered.`);return ZH(this._handler,e.method,{kind:`request`,requestType:e,handler:t})}registerNotificationHandler(e,t){let n=this._handler.get(e.method);if(!n)n={kind:`notification`,notificationType:e,handlers:new Set},this._handler.set(e.method,n);else{if(n.kind!==`notification`)throw Error(`Method "${e.method}" was already registered as request handler.`);if(n.notificationType!==e)throw Error(`Method "${e.method}" was registered for a different type.`)}return ZH(n.handlers,t)}getRegisteredTypes(){let e=[];for(let t of this._handler.values())t.kind===`notification`?e.push(t.notificationType):t.kind===`request`&&e.push(t.requestType);return e}async request(e,t,n){if(!this.checkChannel(this._requestSender))throw Error(`Impossible`);let r=e.paramsSerializer.serializeToJson(t);lU(r);let i=await this._requestSender.sendRequest({method:e.method,params:r},n);if(`error`in i){if(e.isOptional&&i.error.code===qH.methodNotFound)return aU;let t;if(i.error.data!==void 0){let n=e.errorSerializer.deserializeFromJson(i.error.data);if(n.hasErrors)throw Error(n.errorMessage);t=n.value}else t=void 0;let n=new uU(i.error.message,t,i.error.code);throw this._requestDidErrorEventEmitter.fire({error:n}),n}{let t=e.resultSerializer.deserializeFromJson(i.result);if(t.hasErrors)throw Error(`Could not deserialize response: `+t.errorMessage+`
|
|
52
|
+
It is recommended to remove them from the file. This can be configured via \`editor.unusualLineTerminators\`.`,ut(e.uri)),primaryButton:U(1613,`&&Remove Unusual Line Terminators`),cancelButton:U(1614,`Ignore`)})}finally{this._isPresentingDialog=!1}if(!t.confirmed){rB(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())}};aB=eB([tB(1,vt),tB(2,To)],aB),ru(aB.ID,aB,1);var oB=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sB=function(e,t){return function(n,r){t(n,r,e)}},cB=class{constructor(){this.selector={language:`*`}}provideDocumentHighlights(e,t,n){if(e.isDisposed())return;let r=[],i=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});return i?e.findMatches(i.word,!0,!1,!0,lo,!1).map(e=>({range:e.range,kind:ec.Text})):Promise.resolve(r)}provideMultiDocumentHighlights(e,t,n,r){if(e.isDisposed())return;let i=new ei,a=e.getWordAtPosition({lineNumber:t.lineNumber,column:t.column});if(!a)return Promise.resolve(i);for(let t of[e,...n]){if(t.isDisposed())continue;let e=t.findMatches(a.word,!0,!1,!0,lo,!1).map(e=>({range:e.range,kind:ec.Text}));e&&i.set(t.uri,e)}return i}},lB=class extends Eo{constructor(e){super(),this._register(e.documentHighlightProvider.register(`*`,new cB)),this._register(e.multiDocumentHighlightProvider.register(`*`,new cB))}};lB=oB([sB(0,gl)],lB);var uB=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dB=function(e,t){return function(n,r){t(n,r,e)}},fB,pB,mB=new Qa(`hasWordHighlights`,!1);function hB(e,t,n,r){let i=e.ordered(t);return nr(i.map(e=>()=>Promise.resolve(e.provideDocumentHighlights(t,n,r)).then(void 0,Ka)),e=>e!=null).then(e=>{if(e){let n=new ei;return n.set(t.uri,e),n}return new ei})}function gB(e,t,n,r,i){let a=e.ordered(t);return nr(a.map(e=>()=>{let a=i.filter(e=>Ea(e)).filter(t=>hl(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(e.provideMultiDocumentHighlights(t,n,a,r)).then(void 0,Ka)}),e=>e!=null)}var _B=class{constructor(e,t,n){this._model=e,this._selection=t,this._wordSeparators=n,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||=Bt(e=>this._compute(this._model,this._selection,this._wordSeparators,e)),this._result}_getCurrentWordRange(e,t){let n=e.getWordAtPosition(t.getPosition());return n?new B(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}cancel(){this.result.cancel()}},vB=class extends _B{constructor(e,t,n,r){super(e,t,n),this._providers=r}_compute(e,t,n,r){return hB(this._providers,e,t.getPosition(),r).then(e=>e||new ei)}},yB=class extends _B{constructor(e,t,n,r,i){super(e,t,n),this._providers=r,this._otherModels=i}_compute(e,t,n,r){return gB(this._providers,e,t.getPosition(),r,this._otherModels).then(e=>e||new ei)}};function bB(e,t,n,r){return new vB(t,n,r,e)}function xB(e,t,n,r,i){return new yB(t,n,r,e,i)}uc(`_executeDocumentHighlights`,async(e,t,n)=>(await hB(e.get(gl).documentHighlightProvider,t,n,sa.None))?.get(t.uri));var SB=class{static{fB=this}static{this.storedDecorationIDs=new ei}static{this.query=null}constructor(e,t,n,r,i,a,o,s){this.toUnhook=new Ll,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new ei,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=void 0,this.runDelayer=this.toUnhook.add(new jc(50)),this.editor=e,this.providers=t,this.multiDocumentProviders=n,this.codeEditorService=a,this.textModelService=i,this.configurationService=o,this.logService=s,this._hasWordHighlights=mB.bindTo(r),this._ignorePositionChangeEvent=!1,this.occurrencesHighlightEnablement=this.editor.getOption(90),this.occurrencesHighlightDelay=this.configurationService.getValue(`editor.occurrencesHighlightDelay`),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||this.occurrencesHighlightEnablement!==`off`&&this.runDelayer.trigger(()=>{this._onPositionChanged(e)}).catch(An)})),this.toUnhook.add(e.onDidFocusEditorText(e=>{this.occurrencesHighlightEnablement!==`off`&&(this.workerRequest||this.runDelayer.trigger(()=>{this._run()}).catch(An))})),this.toUnhook.add(e.onDidChangeModelContent(e=>{_t(this.model.uri,`output`)||this._stopAll()})),this.toUnhook.add(e.onDidChangeModel(e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():fB.query&&this._run()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{let t=this.editor.getOption(90);if(this.occurrencesHighlightEnablement!==t)switch(this.occurrencesHighlightEnablement=t,t){case`off`:this._stopAll();break;case`singleFile`:this._stopAll(fB.query?.modelInfo?.modelURI);break;case`multiFile`:fB.query&&this._run(!0);break;default:console.warn(`Unknown occurrencesHighlight setting value:`,t)}})),this.toUnhook.add(this.configurationService.onDidChangeConfiguration(e=>{if(e.affectsConfiguration(`editor.occurrencesHighlightDelay`)){let e=o.getValue(`editor.occurrencesHighlightDelay`);this.occurrencesHighlightDelay!==e&&(this.occurrencesHighlightDelay=e)}})),this.toUnhook.add(e.onDidBlurEditorWidget(()=>{let e=this.codeEditorService.getFocusedCodeEditor();e?e.getModel()?.uri.scheme===Ot.vscodeNotebookCell&&this.editor.getModel()?.uri.scheme!==Ot.vscodeNotebookCell&&this._stopAll():this._stopAll()})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=void 0,fB.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(e){this.occurrencesHighlightEnablement!==`off`&&(this.runDelayer.cancel(),this.runDelayer.trigger(()=>{this._run(!1,e)}).catch(An))}stop(){this.occurrencesHighlightEnablement!==`off`&&this._stopAll()}_getSortedHighlights(){return this.decorations.getRanges().sort(B.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();if(r){let i=this.editor.getModel().getLineContent(n.startLineNumber);Ts(`${i}, ${t+1} of ${e.length} for '${r.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let r=this._getWord();if(r){let i=this.editor.getModel().getLineContent(n.startLineNumber);Ts(`${i}, ${t+1} of ${e.length} for '${r.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;let e=fB.storedDecorationIDs.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),fB.storedDecorationIDs.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(e){let t=this.codeEditorService.listCodeEditors(),n=[];for(let r of t){if(!r.hasModel()||Hr(r.getModel().uri,e))continue;let t=fB.storedDecorationIDs.get(r.getModel().uri);if(!t)continue;r.removeDecorations(t),n.push(r.getModel().uri);let i=CB.get(r);i?.wordHighlighter&&i.wordHighlighter.decorations.length>0&&(i.wordHighlighter.decorations.clear(),i.wordHighlighter.workerRequest=null,i.wordHighlighter._hasWordHighlights.set(!1))}for(let e of n)fB.storedDecorationIDs.delete(e)}_stopSingular(){this._removeSingleDecorations(),this.editor.hasTextFocus()&&(this.editor.getModel()?.uri.scheme!==Ot.vscodeNotebookCell&&fB.query?.modelInfo?.modelURI.scheme!==Ot.vscodeNotebookCell?(fB.query=null,this._run()):fB.query?.modelInfo&&(fB.query.modelInfo=null)),this.renderDecorationsTimer!==void 0&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=void 0),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_stopAll(e){this._removeAllDecorations(e),this.renderDecorationsTimer!==void 0&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=void 0),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||=(this.workerRequestTokenId++,!0)}_onPositionChanged(e){if(this.occurrencesHighlightEnablement===`off`){this._stopAll();return}if(e.source!==`api`&&e.reason!==3){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:n})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===Ot.vscodeNotebookCell){let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){let n=r.getModel();n&&n!==e&&n.uri.scheme===Ot.vscodeNotebookCell&&t.push(n)}return t}let t=[],n=this.codeEditorService.listCodeEditors();for(let r of n){if(!Xd(r))continue;let n=r.getModel();n&&e===n.modified&&t.push(n.modified)}if(t.length)return t;if(this.occurrencesHighlightEnablement===`singleFile`)return[];for(let r of n){let n=r.getModel();n&&n!==e&&t.push(n)}return t}async _run(e,t){if(this.editor.hasTextFocus()){let e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber){fB.query=null,this._stopAll();return}let t=e.startColumn,n=e.endColumn,r=this._getWord();if(!r||r.startColumn>t||r.endColumn<n){fB.query=null,this._stopAll();return}fB.query={modelInfo:{modelURI:this.model.uri,selection:e}}}else if(!fB.query){this._stopAll();return}if(this.lastCursorPositionChangeTime=new Date().getTime(),Hr(this.editor.getModel().uri,fB.query.modelInfo?.modelURI)){if(!e){let e=this.decorations.getRanges();for(let t of e)if(t.containsPosition(this.editor.getPosition()))return}this._stopAll(e?this.model.uri:void 0);let n=++this.workerRequestTokenId;this.workerRequestCompleted=!1;let r=this.getOtherModelsToHighlight(this.editor.getModel());if(!fB.query||!fB.query.modelInfo)return;let i=await this.textModelService.createModelReference(fB.query.modelInfo.modelURI);try{this.workerRequest=this.computeWithModel(i.object.textEditorModel,fB.query.modelInfo.selection,r),this.workerRequest?.result.then(e=>{n===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations(t??this.occurrencesHighlightDelay))},An)}catch(e){this.logService.error(`Unexpected error during occurrence request. Log: `,e)}finally{i.dispose()}}else if(this.model.uri.scheme===Ot.vscodeNotebookCell){let e=++this.workerRequestTokenId;if(this.workerRequestCompleted=!1,!fB.query||!fB.query.modelInfo)return;let n=await this.textModelService.createModelReference(fB.query.modelInfo.modelURI);try{this.workerRequest=this.computeWithModel(n.object.textEditorModel,fB.query.modelInfo.selection,[this.model]),this.workerRequest?.result.then(n=>{e===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=n||[],this._beginRenderDecorations(t??this.occurrencesHighlightDelay))},An)}catch(e){this.logService.error(`Unexpected error during occurrence request. Log: `,e)}finally{n.dispose()}}}computeWithModel(e,t,n){return n.length?xB(this.multiDocumentProviders,e,t,this.editor.getOption(148),n):bB(this.providers,e,t,this.editor.getOption(148))}_beginRenderDecorations(e){let t=new Date().getTime(),n=this.lastCursorPositionChangeTime+e;t>=n?(this.renderDecorationsTimer=void 0,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},n-t)}renderDecorations(){this.renderDecorationsTimer=void 0;let e=this.codeEditorService.listCodeEditors();for(let t of e){let e=CB.get(t);if(!e)continue;let n=[],r=t.getModel()?.uri;if(r&&this.workerRequestValue.has(r)){let i=fB.storedDecorationIDs.get(r),a=this.workerRequestValue.get(r);if(a)for(let e of a)e.range&&n.push({range:e.range,options:DL(e.kind)});let o=[];t.changeDecorations(e=>{o=e.deltaDecorations(i??[],n)}),fB.storedDecorationIDs=fB.storedDecorationIDs.set(r,o),n.length>0&&(e.wordHighlighter?.decorations.set(n),e.wordHighlighter?._hasWordHighlights.set(!0))}}this.workerRequest=null}dispose(){this._stopSingular(),this.toUnhook.dispose()}};SB=fB=uB([dB(4,bu),dB(5,To),dB(6,Ou),dB(7,Cd)],SB);var CB=class extends Eo{static{pB=this}static{this.ID=`editor.contrib.wordHighlighter`}static get(e){return e.getContribution(pB.ID)}constructor(e,t,n,r,i,a,o){super(),this._wordHighlighter=null;let s=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&e.getModel().uri.scheme!==Ot.accessibleView&&(this._wordHighlighter=new SB(e,n.documentHighlightProvider,n.multiDocumentHighlightProvider,t,i,r,a,o))};this._register(e.onDidChangeModel(e=>{this._wordHighlighter&&=(!e.newModelUrl&&e.oldModelUrl?.scheme!==Ot.vscodeNotebookCell&&this.wordHighlighter?.stop(),this._wordHighlighter.dispose(),null),s()})),s()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){this._wordHighlighter?.moveNext()}moveBack(){this._wordHighlighter?.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore(250)}dispose(){this._wordHighlighter&&=(this._wordHighlighter.dispose(),null),super.dispose()}};CB=pB=uB([dB(1,In),dB(2,gl),dB(3,To),dB(4,bu),dB(5,Ou),dB(6,Cd)],CB);var wB=class extends Wl{constructor(e,t){super(t),this._isNext=e}run(e,t){let n=CB.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}},TB=class extends wB{constructor(){super(!0,{id:`editor.action.wordHighlight.next`,label:z(1624,`Go to Next Symbol Highlight`),precondition:mB,kbOpts:{kbExpr:G.editorTextFocus,primary:65,weight:100}})}},EB=class extends wB{constructor(){super(!1,{id:`editor.action.wordHighlight.prev`,label:z(1625,`Go to Previous Symbol Highlight`),precondition:mB,kbOpts:{kbExpr:G.editorTextFocus,primary:1089,weight:100}})}},DB=class extends Wl{constructor(){super({id:`editor.action.wordHighlight.trigger`,label:z(1626,`Trigger Symbol Highlight`),precondition:void 0,kbOpts:{kbExpr:G.editorTextFocus,primary:0,weight:100}})}run(e,t){let n=CB.get(t);n&&n.restoreViewState(!0)}};ru(CB.ID,CB,0),hs(TB),hs(EB),hs(DB),wc(lB);var OB=class extends ns{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let r=Qt(t.getOption(148),t.getOption(147)),i=t.getModel(),a=t.getSelections(),o=a.length>1,s=a.map(e=>{let t=new Dn(e.positionLineNumber,e.positionColumn),n=this._move(r,i,t,this._wordNavigationType,o);return this._moveTo(e,n,this._inSelectionMode)});if(i.pushStackElement(),t._getViewModel().setCursorStates(`moveWordCommand`,3,s.map(e=>Fs.fromModelSelection(e))),s.length===1){let e=new Dn(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,n){return n?new ni(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new ni(t.lineNumber,t.column,t.lineNumber,t.column)}},kB=class extends OB{_move(e,t,n,r,i){return zl.moveWordLeft(e,t,n,r,i)}},AB=class extends OB{_move(e,t,n,r,i){return zl.moveWordRight(e,t,n,r)}},jB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartLeft`,precondition:void 0})}},MB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndLeft`,precondition:void 0})}},NB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:`cursorWordLeft`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:2063,mac:{primary:527},weight:100}})}},PB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartLeftSelect`,precondition:void 0})}},FB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndLeftSelect`,precondition:void 0})}},IB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:`cursorWordLeftSelect`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:3087,mac:{primary:1551},weight:100}})}},LB=class extends kB{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityLeft`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},RB=class extends kB{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityLeftSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},zB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordStartRight`,precondition:void 0})}},BB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordEndRight`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:2065,mac:{primary:529},weight:100}})}},VB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordRight`,precondition:void 0})}},HB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordStartRightSelect`,precondition:void 0})}},UB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordEndRightSelect`,precondition:void 0,kbOpts:{kbExpr:hu.and(G.textInputFocus,hu.and(Wa,Lu)?.negate()),primary:3089,mac:{primary:1553},weight:100}})}},WB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordRightSelect`,precondition:void 0})}},GB=class extends AB{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:`cursorWordAccessibilityRight`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},KB=class extends AB{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:`cursorWordAccessibilityRightSelect`,precondition:void 0})}_move(e,t,n,r,i){return super._move(Qt(_u.wordSeparators.defaultValue,e.intlSegmenterLocales),t,n,r,i)}},qB=class extends ns{constructor(e){super({canTriggerInlineEdits:!0,...e}),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){let r=e?.get(Ra);if(!t.hasModel()||!r)return;let i=Qt(t.getOption(148),t.getOption(147)),a=t.getModel(),o=t.getSelections(),s=t.getOption(10),c=t.getOption(15),l=r.getLanguageConfiguration(a.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),d=o.map(e=>{let n=this._delete({wordSeparators:i,model:a,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(13),autoClosingBrackets:s,autoClosingQuotes:c,autoClosingPairs:l,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new tl(n,``)});t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}},JB=class extends qB{_delete(e,t){return zl.deleteWordLeft(e,t)||new B(1,1,1,1)}},YB=class extends qB{_delete(e,t){let n=zl.deleteWordRight(e,t);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new B(r,i,r,i)}},XB=class extends JB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartLeft`,precondition:G.writable})}},ZB=class extends JB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndLeft`,precondition:G.writable})}},QB=class extends JB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordLeft`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},$B=class extends YB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:`deleteWordStartRight`,precondition:G.writable})}},eV=class extends YB{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:`deleteWordEndRight`,precondition:G.writable})}},tV=class extends YB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordRight`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},nV=class extends Wl{constructor(){super({id:`deleteInsideWord`,precondition:G.writable,label:z(1628,`Delete Word`),metadata:{description:z(1629,`Delete the word at the cursor`),args:[{name:`args`,schema:{type:`object`,properties:{onlyWord:{type:`boolean`,default:!1,description:U(1627,`Delete only the word and leave surrounding whitespace`)}}}}]}})}run(e,t,n){if(!t.hasModel())return;let r=!!(n&&typeof n==`object`&&n.onlyWord),i=Qt(t.getOption(148),t.getOption(147)),a=t.getModel(),o=t.getSelections().map(e=>{let t=zl.deleteInsideWord(i,a,e,r);return new tl(t,``)});t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}};Bs(new jB),Bs(new MB),Bs(new NB),Bs(new PB),Bs(new FB),Bs(new IB),Bs(new zB),Bs(new BB),Bs(new VB),Bs(new HB),Bs(new UB),Bs(new WB),Bs(new LB),Bs(new RB),Bs(new GB),Bs(new KB),Bs(new XB),Bs(new ZB),Bs(new QB),Bs(new $B),Bs(new eV),Bs(new tV),hs(nV);var rV=class extends qB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:`deleteWordPartLeft`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return Fu.deleteWordPartLeft(e)||new B(1,1,1,1)}},iV=class extends qB{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:`deleteWordPartRight`,precondition:G.writable,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let n=Fu.deleteWordPartRight(e);if(n)return n;let r=e.model.getLineCount(),i=e.model.getLineMaxColumn(r);return new B(r,i,r,i)}},aV=class extends OB{_move(e,t,n,r,i){return Fu.moveWordPartLeft(e,t,n,i)}},oV=class extends aV{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:`cursorWordPartLeft`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};Ba.registerCommandAlias(`cursorWordPartStartLeft`,`cursorWordPartLeft`);var sV=class extends aV{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:`cursorWordPartLeftSelect`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};Ba.registerCommandAlias(`cursorWordPartStartLeftSelect`,`cursorWordPartLeftSelect`);var cV=class extends OB{_move(e,t,n,r,i){return Fu.moveWordPartRight(e,t,n)}},lV=class extends cV{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:`cursorWordPartRight`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},uV=class extends cV{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:`cursorWordPartRightSelect`,precondition:void 0,kbOpts:{kbExpr:G.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};Bs(new rV),Bs(new iV),Bs(new oV),Bs(new sV),Bs(new lV),Bs(new uV);var dV=class extends Eo{static{this.ID=`editor.contrib.readOnlyMessageController`}constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=wp.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(105);t||=this.editor.isSimpleWidget?new hf(U(1427,`Cannot edit in read-only input`)):new hf(U(1428,`Cannot edit in read-only editor`)),e.showMessage(t,this.editor.getPosition())}}};ru(dV.ID,dV,2);var fV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pV=function(e,t){return function(n,r){t(n,r,e)}},mV=class extends Eo{constructor(e,t,n){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=n,this._currentModel=wu(this,void 0);let r=Ec(`documentSymbolProvider.onDidChange`,this._languageFeaturesService.documentSymbolProvider.onDidChange),i=Ec(`_textModel.onDidChangeContent`,Ku.debounce(e=>this._textModel.onDidChangeContent(e),()=>void 0,100));this._register(nl(async(e,t)=>{r.read(e),i.read(e);let n=t.add(new xr),a=await this._outlineModelService.getOrCreate(this._textModel,n.token);t.isDisposed||this._currentModel.set(a,void 0)}))}getBreadcrumbItems(e,t){let n=this._currentModel.read(t);if(!n)return[];let r=n.asListOfDocumentSymbols().filter(t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber));return r.sort(Ps(Tl(e=>e.range.endLineNumber-e.range.startLineNumber,od))),r.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber}))}getAt(e,t){let n=this._currentModel.read(t);if(!n)return[];let r=n.asListOfDocumentSymbols().filter(t=>new Nc(t.range.startLineNumber,t.range.endLineNumber).contains(e));return r.length===0?[]:(r.sort(Ps(Tl(e=>e.range.endLineNumber-e.range.startLineNumber,od))),r.map(e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};mV=fV([pV(1,gl),pV(2,Qw)],mV),Rd.setBreadcrumbsSourceFactory((e,t)=>t.createInstance(mV,e));var hV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gV=function(e,t){return function(n,r){t(n,r,e)}},_V=class extends Eo{static{this.ID=`editor.contrib.floatingToolbar`}constructor(e,t,n,r){super();let i=this._register(zi(e)),a=cd(e=>i.model.read(e)?.uri),o=this._register(t.createInstance(vV,wi.EditorContent,e.contextKeyService,a));this._register(Iu(e=>{o.hasActions.read(e)&&e.store.add(i.createOverlayWidget({allowEditorOverflow:!1,domNode:o.element,minContentWidthInPx:Ol(0),position:Ol({preference:1})}))}))}};_V=hV([gV(1,Il),gV(2,Be),gV(3,or)],_V);var vV=class extends Eo{constructor(e,t,n,r,i,a){super();let o=this._register(a.createMenu(e,t)),s=Cs(this,o.onDidChange,()=>o.getActions()),c=cd(e=>{let t=s.read(e),{primary:n}=tn(t,()=>!0);return n.filter(e=>e.id!==ys.ID)});this.hasActions=cd(e=>c.read(e).length>0),this.element=Cr(`div.floating-menu-overlay-widget`).root,this._register(Ns(()=>this.element.remove())),this._register(Iu(t=>{let a=c.read(t),o=a.length>0,s=o?a[0].id:void 0,l=a.length===1;if(this.element.classList.toggle(`single-button`,l),this.element.style.height=l?`28px`:`26px`,!o)return;let u=r.createInstance(tt,this.element,e,{actionViewItemProvider:(e,t)=>{if(e instanceof vf)return r.createInstance(class extends mn{render(t){super.render(t),e.id===s&&this.element?.classList.add(`primary`)}updateLabel(){let t=i.lookupKeybinding(e.id),n=t?t.getLabel():void 0;this.options.label&&this.label&&(this.label.textContent=n?`${this._commandAction.label} (${n})`:this._commandAction.label)}},e,{...t,keybindingNotRenderedWithLabel:!0})},hiddenItemStrategy:0,menuOptions:{shouldForwardArgs:!0},telemetrySource:`editor.overlayToolbar`,toolbarOptions:{primaryGroup:()=>!0,useSeparatorsInPrimaryActions:!0}});t.store.add(u),t.store.add(Iu(e=>{let t=n.read(e);u.context=t}))}))}};vV=hV([gV(3,Il),gV(4,Be),gV(5,or)],vV),ru(_V.ID,_V,1);var yV=class extends Eo{static{this.ID=`editor.contrib.iPadShowKeyboard`}constructor(e){super(),this.editor=e,this.widget=null,Ks&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(104);!this.widget&&e?this.widget=new bV(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&=(this.widget.dispose(),null)}},bV=class e extends Eo{static{this.ID=`editor.contrib.ShowKeyboardWidget`}constructor(e){super(),this.editor=e,this._domNode=document.createElement(`textarea`),this._domNode.className=`iPadShowKeyboard`,this._register(po(this._domNode,`touchstart`,e=>{this.editor.focus()})),this._register(po(this._domNode,`focus`,e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};ru(yV.ID,yV,3);var xV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SV=function(e,t){return function(n,r){t(n,r,e)}},CV,wV=class extends Eo{static{CV=this}static{this.ID=`editor.contrib.inspectTokens`}static get(e){return e.getContribution(CV.ID)}constructor(e,t,n){super(),this._editor=e,this._languageService=n,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(Ue.onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>e.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new OV(this._editor,this._languageService))}stop(){this._widget&&=(this._widget.dispose(),null)}};wV=CV=xV([SV(1,eo),SV(2,jl)],wV);var TV=class extends Wl{constructor(){super({id:`editor.action.inspectTokens`,label:xe.inspectTokensAction,alias:`Developer: Inspect Tokens`,precondition:void 0})}run(e,t){wV.get(t)?.launch()}};function EV(e){let t=``;for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);switch(r){case 9:t+=`→`;break;case 32:t+=`·`;break;default:t+=String.fromCharCode(r)}}return t}function DV(e,t){let n=Ue.get(t);if(n)return n;let r=e.encodeLanguageId(t);return{getInitialState:()=>ud,tokenize:(e,n,r)=>ps(t,r),tokenizeEncoded:(e,t,n)=>Rs(r,n)}}var OV=class e extends Eo{static{this._ID=`editor.contrib.inspectTokensWidget`}constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement(`div`),this._domNode.className=`tokens-inspect-widget`,this._tokenizationSupport=DV(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return e._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let r=t.tokens1.length-1;r>=0;r--){let i=t.tokens1[r];if(e.column-1>=i.offset){n=r;break}}let r=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){r=n;break}let i=this._model.getLineContent(e.lineNumber),a=``;if(n<t.tokens1.length){let e=t.tokens1[n].offset,r=n+1<t.tokens1.length?t.tokens1[n+1].offset:i.length;a=i.substring(e,r)}Ge(this._domNode,id(`h2.tm-token`,void 0,EV(a),id(`span.tm-token-length`,void 0,`${a.length} ${a.length===1?`char`:`chars`}`))),Io(this._domNode,id(`hr.tokens-inspect-separator`,{style:`clear:both`}));let o=(r<<1)+1<t.tokens2.length?this._decodeMetadata(t.tokens2[(r<<1)+1]):null;Io(this._domNode,id(`table.tm-metadata-table`,void 0,id(`tbody`,void 0,id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`language`),id(`td.tm-metadata-value`,void 0,`${o?o.languageId:`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`token type`),id(`td.tm-metadata-value`,void 0,`${o?this._tokenTypeToString(o.tokenType):`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`font style`),id(`td.tm-metadata-value`,void 0,`${o?this._fontStyleToString(o.fontStyle):`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`foreground`),id(`td.tm-metadata-value`,void 0,`${o?Xs.Format.CSS.formatHex(o.foreground):`-?-`}`)),id(`tr`,void 0,id(`td.tm-metadata-key`,void 0,`background`),id(`td.tm-metadata-value`,void 0,`${o?Xs.Format.CSS.formatHex(o.background):`-?-`}`))))),Io(this._domNode,id(`hr.tokens-inspect-separator`)),n<t.tokens1.length&&Io(this._domNode,id(`span.tm-token-type`,void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=Ue.getColorMap(),n=es.getLanguageId(e),r=es.getTokenType(e),i=es.getFontStyle(e),a=es.getForeground(e),o=es.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(n),tokenType:r,fontStyle:i,foreground:t[a],background:t[o]}}_tokenTypeToString(e){switch(e){case 0:return`Other`;case 1:return`Comment`;case 2:return`String`;case 3:return`RegEx`;default:return`??`}}_fontStyleToString(e){let t=``;return e&1&&(t+=`italic `),e&2&&(t+=`bold `),e&4&&(t+=`underline `),e&8&&(t+=`strikethrough `),t.length===0&&(t=`---`),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),r=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:n.tokens,tokens2:r.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),!0,t).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}};ru(wV.ID,wV,4),hs(TV);var kV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AV=function(e,t){return function(n,r){t(n,r,e)}},jV,MV=class{static{jV=this}static{this.PREFIX=`?`}constructor(e,t,n){this.quickInputService=e,this.keybindingService=t,this.contextKeyService=n,this.registry=en.as(ja.Quickaccess)}provide(e){let t=new Ll;return t.add(e.onDidAccept(()=>{let[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(e=>{let t=this.registry.getQuickAccessProvider(e.substr(jV.PREFIX.length),this.contextKeyService);t?.prefix&&t.prefix!==jV.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(e=>e.prefix!==jV.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders(this.contextKeyService).sort((e,t)=>e.prefix.localeCompare(t.prefix)).flatMap(e=>this.createPicks(e))}createPicks(e){return e.helpEntries.map(t=>{let n=t.prefix||e.prefix,r=n||`…`;return{prefix:n,label:r,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:U(1811,`{0}, {1}`,r,t.description),description:t.description}})}};MV=jV=kV([AV(0,st),AV(1,Be),AV(2,In)],MV),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:MV,prefix:``,helpEntries:[{description:ed.helpQuickAccessActionLabel}]});var NV=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,n){let r=new Ll;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i=r.add(new Nu);return i.value=this.doProvide(e,t,n),r.add(this.onDidActiveTextEditorControlChange(()=>{i.value=void 0,i.value=this.doProvide(e,t)})),r}doProvide(e,t,n){let r=new Ll,i=this.activeTextEditorControl;if(i&&this.canProvideWithTextEditor(i)){let a={editor:i},o=uo(i);if(o){let e=i.saveViewState()??void 0;r.add(o.onDidChangeCursorPosition(()=>{e=i.saveViewState()??void 0})),a.restoreViewState=()=>{e&&i===this.activeTextEditorControl&&i.restoreViewState(e)},r.add(fl(t.onCancellationRequested)(()=>a.restoreViewState?.()))}r.add(Ns(()=>this.clearDecorations(i))),r.add(this.provideWithTextEditor(a,e,t,n))}else r.add(this.provideWithoutTextEditor(e,t));return r}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,`code.jump`),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let n=this.getModel(e);if(n){let e=n.getLineContent(t.range.startLineNumber);Zu(U(1381,`Line {0}, column {1}: {2}`,t.range.startLineNumber,t.range.startColumn,e))}}getModel(e){return Xd(e)?e.getModel()?.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{let n=[];this.rangeHighlightDecorationId&&=(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),void 0);let r=[{range:t,options:{description:`quick-access-range-highlight`,className:`rangeHighlight`,isWholeLine:!0}},{range:t,options:{description:`quick-access-range-highlight-overview`,overviewRuler:{color:Za(qn),position:ra.Full}}}],[i,a]=e.deltaDecorations(n,r);this.rangeHighlightDecorationId={rangeHighlightId:i,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}},PV=class e extends NV{static{this.GO_TO_LINE_PREFIX=`:`}static{this.GO_TO_OFFSET_PREFIX=`::`}static{this.ZERO_BASED_OFFSET_STORAGE_KEY=`gotoLine.useZeroBasedOffset`}constructor(){super({canAcceptInBackground:!0})}get useZeroBasedOffset(){return this.storageService.getBoolean(e.ZERO_BASED_OFFSET_STORAGE_KEY,-1,!1)}set useZeroBasedOffset(t){this.storageService.store(e.ZERO_BASED_OFFSET_STORAGE_KEY,t,-1,0)}provideWithoutTextEditor(e){let t=U(1382,`Open a text editor first to go to a line or an offset.`);return e.items=[{label:t}],e.ariaLabel=t,Eo.None}provideWithTextEditor(t,n,r){let i=t.editor,a=new Ll;n.ariaLabel=U(1383,`Go to line. Type a line number, optionally followed by colon and column number.`),a.add(n.onDidAccept(e=>{let[r]=n.selectedItems;if(r){if(!r.lineNumber)return;this.gotoLocation(t,{range:this.toRange(r.lineNumber,r.column),keyMods:n.keyMods,preserveFocus:e.inBackground}),e.inBackground||n.hide()}}));let o={iconClass:fi.asClassName(Mr.indexZero),tooltip:U(1384,`Toggle Zero-Based Offset`),location:Wi.Input,toggle:{checked:this.useZeroBasedOffset}},s=()=>{let t=n.value.trim().substring(e.GO_TO_LINE_PREFIX.length),{inOffsetMode:r,lineNumber:a,column:s,label:c}=this.parsePosition(i,t);if(n.buttons=r?[o]:[],n.items=[{lineNumber:a,column:s,label:c,ariaLabel:a?U(1385,`Go to line {0}, column {1}. Press Enter to navigate.`,a,s||1):c}],!a){this.clearDecorations(i);return}let l=this.toRange(a,s);i.revealRangeInCenter(l,0),this.addDecorations(i,l)};a.add(n.onDidTriggerButton(e=>{e===o&&(this.useZeroBasedOffset=e.toggle?.checked??!this.useZeroBasedOffset,s())})),s(),a.add(n.onDidChangeValue(()=>s()));let c=uo(i);return c&&c.getOptions().get(76).renderType===2&&(c.updateOptions({lineNumbers:`on`}),a.add(Ns(()=>c.updateOptions({lineNumbers:`relative`})))),a}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let n=this.getModel(e);if(!n)return{label:U(1386,`Open a text editor first to go to a line or an offset.`)};if(t.startsWith(`:`)){let e=parseInt(t.substring(1),10),r=n.getValueLength();if(isNaN(e))return{inOffsetMode:!0,label:this.useZeroBasedOffset?U(1387,`Type a character position to go to (from 0 to {0}).`,r-1):U(1388,`Type a character position to go to (from 1 to {0}).`,r)};{let t=e<0;this.useZeroBasedOffset||(e-=Math.sign(e)),t&&(e+=r);let i=n.getPositionAt(e),a=pr.visibleColumnFromColumn(n.getLineContent(i.lineNumber),i.column,n.getOptions().tabSize)+1;return{...i,inOffsetMode:!0,label:U(1389,`Press 'Enter' to go to line {0} at column {1}.`,i.lineNumber,a)}}}{let e=t.split(/,|:|#/),r=n.getLineCount(),i=parseInt(e[0]?.trim(),10);if(e.length<1||isNaN(i))return{label:U(1390,`Type a line number to go to (from 1 to {0}).`,r)};i=i>=0?i:r+1+i,i=Math.min(Math.max(1,i),r);let a=n.getOptions().tabSize,o=n.getLineContent(i),s=pr.visibleColumnFromColumn(o,n.getLineMaxColumn(i),a)+1,c=parseInt(e[1]?.trim(),10);if(e.length<2||isNaN(c))return{lineNumber:i,column:1,label:e.length<2?U(1391,`Press 'Enter' to go to line {0} or enter colon : to add a column number.`,i):U(1392,`Press 'Enter' to go to line {0} or enter a column number (from 1 to {1}).`,i,s)};c=c>=0?c:s+c,c=Math.min(Math.max(1,c),s);let l=pr.columnFromVisibleColumn(o,c-1,a);return{lineNumber:i,column:l,label:U(1393,`Press 'Enter' to go to line {0} at column {1}.`,i,c)}}}},FV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},IV=function(e,t){return function(n,r){t(n,r,e)}},LV=class extends PV{constructor(e,t){super(),this.editorService=e,this.storageService=t,this.onDidActiveTextEditorControlChange=Ku.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};LV=FV([IV(0,To),IV(1,Wd)],LV);var RV=class e extends Wl{static{this.ID=`editor.action.gotoLine`}constructor(){super({id:e.ID,label:ri.gotoLineActionLabel,alias:`Go to Line/Column...`,precondition:void 0,kbOpts:{kbExpr:G.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(st).quickAccess.show(LV.GO_TO_LINE_PREFIX)}};hs(RV),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:LV,prefix:LV.GO_TO_LINE_PREFIX,helpEntries:[{description:ri.gotoLineActionLabel,commandId:RV.ID}]});var zV=class e extends Wl{static{this.ID=`editor.action.gotoOffset`}constructor(){super({id:e.ID,label:ri.gotoOffsetActionLabel,alias:`Go to Offset...`,precondition:void 0})}run(e){e.get(st).quickAccess.show(LV.GO_TO_OFFSET_PREFIX)}};hs(zV),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:LV,prefix:LV.GO_TO_OFFSET_PREFIX,helpEntries:[{description:ri.gotoOffsetActionLabel,commandId:zV.ID}]});var BV=[void 0,[]];function VV(e,t,n=0,r=0){let i=t;return i.values&&i.values.length>1?HV(e,i.values,n,r):UV(e,t,n,r)}function HV(e,t,n,r){let i=0,a=[];for(let o of t){let[t,s]=UV(e,o,n,r);if(typeof t!=`number`)return BV;i+=t,a.push(...s)}return[i,WV(a)]}function UV(e,t,n,r){let i=Nn(t.normalized,t.normalizedLowercase,n,e,e.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?[i[0],fu(i)]:BV}function WV(e){let t=e.sort((e,t)=>e.start-t.start),n=[],r;for(let e of t)!r||!GV(r,e)?(r=e,n.push(e)):(r.start=Math.min(r.start,e.start),r.end=Math.max(r.end,e.end));return n}function GV(e,t){return!(e.end<t.start||t.end<e.start)}function KV(e){return e.startsWith(`"`)&&e.endsWith(`"`)}var qV=` `;function JV(e){typeof e!=`string`&&(e=``);let t=e.toLowerCase(),{pathNormalized:n,normalized:r,normalizedLowercase:i}=YV(e),a=n.indexOf(et)>=0,o=KV(e),s,c=e.split(qV);if(c.length>1)for(let e of c){let t=KV(e),{pathNormalized:n,normalized:r,normalizedLowercase:i}=YV(e);r&&(s||=[],s.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:n,normalized:r,normalizedLowercase:i,expectContiguousMatch:t}))}return{original:e,originalLowercase:t,pathNormalized:n,normalized:r,normalizedLowercase:i,values:s,containsPathSeparator:a,expectContiguousMatch:o}}function YV(e){let t;t=Ai?e.replace(/\//g,et):e.replace(/\\/g,et);let n=t.replace(/[\*\u2026\s"]/g,``).replace(/(?<=.)#$/,``);return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function XV(e){return JV(Array.isArray(e)?e.map(e=>e.original).join(qV):e.original)}var ZV=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},QV=function(e,t){return function(n,r){t(n,r,e)}},$V,eH=class extends NV{static{$V=this}static{this.PREFIX=`@`}static{this.SCOPE_PREFIX=`:`}static{this.PREFIX_BY_CATEGORY=`${this.PREFIX}${this.SCOPE_PREFIX}`}constructor(e,t,n=Object.create(null)){super(n),this._languageFeaturesService=e,this._outlineModelService=t,this.options=n,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,U(1394,`To go to a symbol, first open a text editor with symbol information.`)),Eo.None}provideWithTextEditor(e,t,n,r){let i=e.editor,a=this.getModel(i);return a?this._languageFeaturesService.documentSymbolProvider.has(a)?this.doProvideWithEditorSymbols(e,a,t,n,r):this.doProvideWithoutEditorSymbols(e,a,t,n):Eo.None}doProvideWithoutEditorSymbols(e,t,n,r){let i=new Ll;return this.provideLabelPick(n,U(1395,`The active text editor does not provide symbol information.`)),(async()=>{!await this.waitForLanguageSymbolRegistry(t,i)||r.isCancellationRequested||i.add(this.doProvideWithEditorSymbols(e,t,n,r))})(),i}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let n=new Le,r=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(r.dispose(),n.complete(!0))}));return t.add(Ns(()=>n.complete(!1))),n.p}doProvideWithEditorSymbols(e,t,n,r,i){let a=e.editor,o=new Ll;o.add(n.onDidAccept(t=>{let[r]=n.selectedItems;if(r&&r.range){if(n.keyMods.shift&&r.attach){r.attach(n.keyMods,t);return}this.gotoLocation(e,{range:r.range.selection,keyMods:n.keyMods,preserveFocus:t.inBackground}),i?.handleAccept?.(r,t.inBackground),t.inBackground||n.hide()}})),o.add(n.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let s=this.getDocumentSymbols(t,r),c=o.add(new Nu),l=async e=>{c?.value?.cancel(),n.busy=!1,c.value=new Aa,n.busy=!0;try{let i=JV(n.value.substr($V.PREFIX.length).trim()),a=await this.doGetSymbolPicks(s,i,void 0,c.value.token,t);if(r.isCancellationRequested)return;if(a.length>0){if(n.items=a,e&&i.original.length===0){let t=Ht(a,t=>!!(t.type!==`separator`&&t.range&&B.containsPosition(t.range.decoration,e)));t&&(n.activeItems=[t])}}else i.original.length>0?this.provideLabelPick(n,U(1396,`No matching editor symbols`)):this.provideLabelPick(n,U(1397,`No editor symbols`))}finally{r.isCancellationRequested||(n.busy=!1)}};return o.add(n.onDidChangeValue(()=>l(void 0))),l(a.getSelection()?.getPosition()),o.add(n.onDidChangeActive(()=>{let[e]=n.activeItems;e&&e.range&&(a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration))})),o}async doGetSymbolPicks(e,t,n,r,i){let a=await e;if(r.isCancellationRequested)return[];let o=t.original.indexOf($V.SCOPE_PREFIX)===0,s=+!!o,c,l;t.values&&t.values.length>1?(c=XV(t.values[0]),l=XV(t.values.slice(1))):c=t;let u,d=this.options?.openSideBySideDirection?.();d&&(u=[{iconClass:d===`right`?fi.asClassName(Mr.splitHorizontal):fi.asClassName(Mr.splitVertical),tooltip:d===`right`?U(1398,`Open to the Side`):U(1399,`Open to the Bottom`)}]);let f=[];for(let e=0;e<a.length;e++){let r=a[e],o=md(r.name),d=`$(${Yc.toIcon(r.kind).id}) ${o}`,p=d.length-o.length,m=r.containerName;n?.extraContainerLabel&&(m=m?`${n.extraContainerLabel} • ${m}`:n.extraContainerLabel);let h,g,_,v;if(t.original.length>s){let e=!1;if(c!==t&&([h,g]=VV(d,{...t,values:void 0},s,p),typeof h==`number`&&(e=!0)),typeof h!=`number`&&([h,g]=VV(d,c,s,p),typeof h!=`number`))continue;if(!e&&l){if(m&&l.original.length>0&&([_,v]=VV(m,l)),typeof _!=`number`)continue;typeof h==`number`&&(h+=_)}}let y=r.tags&&r.tags.indexOf(1)>=0;f.push({index:e,kind:r.kind,score:h,label:d,ariaLabel:Lc(r.name,r.kind),description:m,highlights:y?void 0:{label:g,description:v},range:{selection:B.collapseToStart(r.selectionRange),decoration:r.range},uri:i.uri,symbolName:o,strikethrough:y,buttons:u})}let p=f.sort((e,t)=>o?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),m=[];if(o){let e,t,n=0;function r(){t&&typeof e==`number`&&n>0&&(t.label=ks(nH[e]||tH,n))}for(let i of p)e===i.kind?n++:(r(),e=i.kind,n=1,t={type:`separator`},m.push(t)),m.push(i);r()}else p.length>0&&(m=[{label:U(1400,`symbols ({0})`,f.length),type:`separator`},...p]);return m}compareByScore(e,t){if(typeof e.score!=`number`&&typeof t.score==`number`)return 1;if(typeof e.score==`number`&&typeof t.score!=`number`)return-1;if(typeof e.score==`number`&&typeof t.score==`number`){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:+(e.index>t.index)}compareByKindAndScore(e,t){let n=nH[e.kind]||tH,r=nH[t.kind]||tH,i=n.localeCompare(r);return i===0?this.compareByScore(e,t):i}async getDocumentSymbols(e,t){let n=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:n.asListOfDocumentSymbols()}};eH=$V=ZV([QV(0,gl),QV(1,Qw)],eH);var tH=U(1401,`properties ({0})`),nH={5:U(1402,`methods ({0})`),11:U(1403,`functions ({0})`),8:U(1404,`constructors ({0})`),12:U(1405,`variables ({0})`),4:U(1406,`classes ({0})`),22:U(1407,`structs ({0})`),23:U(1408,`events ({0})`),24:U(1409,`operators ({0})`),10:U(1410,`interfaces ({0})`),2:U(1411,`namespaces ({0})`),3:U(1412,`packages ({0})`),25:U(1413,`type parameters ({0})`),1:U(1414,`modules ({0})`),6:U(1415,`properties ({0})`),9:U(1416,`enumerations ({0})`),21:U(1417,`enumeration members ({0})`),14:U(1418,`strings ({0})`),0:U(1419,`files ({0})`),17:U(1420,`arrays ({0})`),15:U(1421,`numbers ({0})`),16:U(1422,`booleans ({0})`),18:U(1423,`objects ({0})`),19:U(1424,`keys ({0})`),7:U(1425,`fields ({0})`),13:U(1426,`constants ({0})`)},rH=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},iH=function(e,t){return function(n,r){t(n,r,e)}},aH=class extends eH{constructor(e,t,n){super(t,n),this.editorService=e,this.onDidActiveTextEditorControlChange=Ku.None}get activeTextEditorControl(){return this.editorService.getFocusedCodeEditor()??void 0}};aH=rH([iH(0,To),iH(1,gl),iH(2,Qw)],aH);var oH=class e extends Wl{static{this.ID=`editor.action.quickOutline`}constructor(){super({id:e.ID,label:Ml.quickOutlineActionLabel,alias:`Go to Symbol...`,precondition:G.hasDocumentSymbolProvider,kbOpts:{kbExpr:G.focus,primary:3117,weight:100},contextMenuOpts:{group:`navigation`,order:3}})}run(e){e.get(st).quickAccess.show(eH.PREFIX,{itemActivation:Md.NONE})}};hs(oH),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:aH,prefix:eH.PREFIX,helpEntries:[{description:Ml.quickOutlineActionLabel,prefix:eH.PREFIX,commandId:oH.ID},{description:Ml.quickOutlineByCategoryActionLabel,prefix:eH.PREFIX_BY_CATEGORY}]});function sH(e){let t=new Map;for(let n of e)t.set(n,(t.get(n)??0)+1);return t}var cH=class e{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){let n=this.computeEmbedding(e),r=new Map,i=[];for(let[e,a]of this.documents){if(t.isCancellationRequested)return[];for(let t of a.chunks){let a=this.computeSimilarityScore(t,n,r);a>0&&i.push({key:e,score:a})}}return i}static termFrequencies(t){return sH(e.splitTerms(t))}static*splitTerms(e){let t=e=>e.toLowerCase();for(let[n]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(n);let e=n.replace(/([a-z])([A-Z])/g,`$1 $2`).split(/\s+/g);if(e.length>1)for(let n of e)n.length>2&&/\p{Letter}{3,}/gu.test(n)&&(yield t(n))}}updateDocuments(t){for(let{key:e}of t)this.deleteDocument(e);for(let n of t){let t=[];for(let r of n.textChunks){let n=e.termFrequencies(r);for(let e of n.keys())this.chunkOccurrences.set(e,(this.chunkOccurrences.get(e)??0)+1);t.push({text:r,tf:n})}this.chunkCount+=t.length,this.documents.set(n.key,{chunks:t})}return this}deleteDocument(e){let t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(let e of t.chunks)for(let t of e.tf.keys()){let e=this.chunkOccurrences.get(t);if(typeof e==`number`){let n=e-1;n<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,n)}}}}computeSimilarityScore(e,t,n){let r=0;for(let[i,a]of Object.entries(t)){let t=e.tf.get(i);if(!t)continue;let o=n.get(i);typeof o!=`number`&&(o=this.computeIdf(i),n.set(i,o));let s=t*o;r+=s*a}return r}computeEmbedding(t){let n=e.termFrequencies(t);return this.computeTfidf(n)}computeIdf(e){let t=this.chunkOccurrences.get(e)??0;return t>0?Math.log((this.chunkCount+1)/t):0}computeTfidf(e){let t=Object.create(null);for(let[n,r]of e){let e=this.computeIdf(n);e>0&&(t[n]=r*e)}return t}};function lH(e){let t=e.slice(0);t.sort((e,t)=>t.score-e.score);let n=t[0]?.score??0;if(n>0)for(let e of t)e.score/=n;return t}var uH;(function(e){e[e.NO_ACTION=0]=`NO_ACTION`,e[e.CLOSE_PICKER=1]=`CLOSE_PICKER`,e[e.REFRESH_PICKER=2]=`REFRESH_PICKER`,e[e.REMOVE_ITEM=3]=`REMOVE_ITEM`})(uH||={});function dH(e){let t=e;return Array.isArray(t.items)}function fH(e){let t=e;return!!t.picks&&t.additionalPicks instanceof Promise}var pH=class extends Eo{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,n){let r=new Ll;e.canAcceptInBackground=!!this.options?.canAcceptInBackground,e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let i,a=r.add(new Nu),o=async()=>{i?.dispose(!0),e.busy=!1;let r=a.value=new Ll;i=r.add(new Aa(t));let o=i.token,s=e.value.substring(this.prefix.length);this.options?.shouldSkipTrimPickFilter||(s=s.trim());let c=this._getPicks(s,r,o,n),l=(t,n)=>{let r,i;if(dH(t)?(r=t.items,i=t.active):r=t,r.length===0){if(n)return!1;(s.length>0||e.hideInput)&&this.options?.noResultsPick&&(r=Jr(this.options.noResultsPick)?[this.options.noResultsPick(s)]:[this.options.noResultsPick])}return e.items=r,i&&(e.activeItems=[i]),!0},u=async t=>{let n=!1,r=!1;await Promise.all([(async()=>{typeof t.mergeDelay==`number`&&(await fa(t.mergeDelay),o.isCancellationRequested)||r||(n=l(t.picks,!0))})(),(async()=>{e.busy=!0;try{let r=await t.additionalPicks;if(o.isCancellationRequested)return;let i,a;dH(t.picks)?(i=t.picks.items,a=t.picks.active):i=t.picks;let s,c;if(dH(r)?(s=r.items,c=r.active):s=r,s.length>0||!n){let t;if(!a&&!c){let n=e.activeItems[0];n&&i.indexOf(n)!==-1&&(t=n)}l({items:[...i,...s],active:a||c||t})}}finally{o.isCancellationRequested||(e.busy=!1),r=!0}})()])};if(c!==null){if(fH(c))await u(c);else if(!(c instanceof Promise))l(c);else{e.busy=!0;try{let e=await c;if(o.isCancellationRequested)return;fH(e)?await u(e):l(e)}finally{o.isCancellationRequested||(e.busy=!1)}}}};r.add(e.onDidChangeValue(()=>o())),o(),r.add(e.onDidAccept(t=>{if(n?.handleAccept){t.inBackground||e.hide(),n.handleAccept?.(e.activeItems[0],t.inBackground);return}let[r]=e.selectedItems;if(typeof r?.accept==`function`){if(kt(e.keyMods)&&r.attach){r.attach(e.keyMods,t);return}t.inBackground||e.hide(),r.accept(e.keyMods,t)}}));let s=async(n,r)=>{if(typeof r.trigger!=`function`)return;let i=r.buttons?.indexOf(n)??-1;if(i>=0){let n=r.trigger(i,e.keyMods),a=typeof n==`number`?n:await n;if(t.isCancellationRequested)return;switch(a){case uH.NO_ACTION:break;case uH.CLOSE_PICKER:e.hide();break;case uH.REFRESH_PICKER:o();break;case uH.REMOVE_ITEM:{let t=e.items.indexOf(r);if(t!==-1){let n=e.items.slice(),r=n.splice(t,1),i=e.activeItems.filter(e=>e!==r[0]),a=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=n,i&&(e.activeItems=i),e.keepScrollPosition=a}break}}}};return r.add(e.onDidTriggerItemButton(({button:e,item:t})=>s(e,t))),r.add(e.onDidTriggerSeparatorButton(({button:e,separator:t})=>s(e,t))),r}},mH=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hH=function(e,t){return function(n,r){t(n,r,e)}},gH,_H,vH=class extends pH{static{gH=this}static{this.PREFIX=`>`}static{this.TFIDF_THRESHOLD=.5}static{this.TFIDF_MAX_RESULTS=5}static{this.WORD_FILTER=Ee(La,li)}constructor(e,t,n,r,i,a){super(gH.PREFIX,e),this.keybindingService=n,this.commandService=r,this.telemetryService=i,this.dialogService=a,this.commandsHistory=this._register(t.createInstance(yH)),this.options=e}async _getPicks(e,t,n,r){let i=await this.getCommandPicks(n);if(n.isCancellationRequested)return[];let a=fl(()=>{let t=new cH;return t.updateDocuments(i.map(e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]}))),lH(t.calculateScores(e,n)).filter(e=>e.score>gH.TFIDF_THRESHOLD).slice(0,gH.TFIDF_MAX_RESULTS)}),o=[];for(let t of i){let r=gH.WORD_FILTER(e,t.label)??void 0,i;if(t.commandAlias&&(i=gH.WORD_FILTER(e,t.commandAlias)??void 0),r||i)t.highlights={label:r,detail:this.options.showAlias?i:void 0},o.push(t);else if(e===t.commandId)o.push(t);else if(e.length>=3){let e=a();if(n.isCancellationRequested)return[];let r=e.find(e=>e.key===t.commandId);r&&(t.tfIdfScore=r.score,o.push(t))}}let s=new Map;for(let e of o){let t=s.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):s.set(e.label,e)}o.sort((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;let n=this.commandsHistory.peek(e.commandId),r=this.commandsHistory.peek(t.commandId);if(n&&r)return n>r?-1:1;if(n)return-1;if(r)return 1;if(this.options.suggestedCommandIds){let n=this.options.suggestedCommandIds.has(e.commandId),r=this.options.suggestedCommandIds.has(t.commandId);if(n&&r)return 0;if(n)return-1;if(r)return 1}let i=e.commandCategory===dz.Developer.value,a=t.commandCategory===dz.Developer.value;return i&&!a?1:!i&&a?-1:e.label.localeCompare(t.label)});let c=[],l=!1,u=!0,d=!!this.options.suggestedCommandIds;for(let e=0;e<o.length;e++){let t=o[e],n=!!this.commandsHistory.peek(t.commandId);e===0&&n&&(c.push({type:`separator`,label:U(1803,`recently used`)}),l=!0),u&&t.tfIdfScore!==void 0&&(c.push({type:`separator`,label:U(1804,`similar commands`)}),u=!1),d&&t.tfIdfScore===void 0&&!n&&this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:U(1805,`commonly used`)}),l=!0,d=!1),l&&t.tfIdfScore===void 0&&!n&&!this.options.suggestedCommandIds?.has(t.commandId)&&(c.push({type:`separator`,label:U(1806,`other commands`)}),l=!1),c.push(this.toCommandPick(t,r,n))}return this.hasAdditionalCommandPicks(e,n)?{picks:c,additionalPicks:(async()=>{let t=await this.getAdditionalCommandPicks(i,o,e,n);if(n.isCancellationRequested)return[];let a=t.map(e=>this.toCommandPick(e,r));return u&&a[0]?.type!==`separator`&&a.unshift({type:`separator`,label:U(1807,`similar commands`)}),a})()}:c}toCommandPick(e,t,n=!1){if(e.type===`separator`)return e;let r=e.tooltip??e.commandDescription?.value,i=this.keybindingService.lookupKeybinding(e.commandId),a=i?U(1808,`{0}, {1}`,e.label,i.getAriaLabel()):e.label,o=e.buttons||[],s=n?[...o,{iconClass:fi.asClassName(Mr.close),tooltip:U(1809,`Remove from Recently Used`)}]:e.buttons;return{...e,tooltip:r,ariaLabel:a,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,buttons:s,accept:async()=>{this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2(`workbenchActionExecuted`,{id:e.commandId,from:t?.from??`quick open`});try{e.args?.length?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(t){lu(t)||this.dialogService.error(U(1810,`Command '{0}' resulted in an error`,e.label),tm(t))}},trigger:n?(t,n)=>t===o.length?(this.commandsHistory.remove(e.commandId),uH.REMOVE_ITEM):e.trigger?e.trigger(t,n):uH.NO_ACTION:e.trigger}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:n}){let r=e;return t&&t!==e&&(r+=` - ${t}`),n&&n.value!==e&&(r+=` - ${n.value===n.original?n.value:`${n.value} (${n.original})`}`),r}};vH=gH=mH([hH(1,Il),hH(2,Be),hH(3,so),hH(4,Wt),hH(5,vt)],vH);var yH=class extends Eo{static{_H=this}static{this.DEFAULT_COMMANDS_HISTORY_LENGTH=50}static{this.PREF_KEY_CACHE=`commandPalette.mru.cache`}static{this.PREF_KEY_COUNTER=`commandPalette.mru.counter`}static{this.counter=1}static{this.hasChanges=!1}constructor(e,t,n){super(),this.storageService=e,this.configurationService=t,this.logService=n,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e))),this._register(this.storageService.onWillSaveState(e=>{e.reason===Ni.SHUTDOWN&&this.saveState()}))}updateConfiguration(e){e&&!e.affectsConfiguration(`workbench.commandPalette.history`)||(this.configuredCommandsHistoryLength=_H.getConfiguredCommandHistoryLength(this.configurationService),_H.cache&&_H.cache.limit!==this.configuredCommandsHistoryLength&&(_H.cache.limit=this.configuredCommandsHistoryLength,_H.hasChanges=!0))}load(){let e=this.storageService.get(_H.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(e){this.logService.error(`[CommandsHistory] invalid data: ${e}`)}let n=_H.cache=new Ar(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort((e,t)=>e.value-t.value),e.forEach(e=>n.set(e.key,e.value))}_H.counter=this.storageService.getNumber(_H.PREF_KEY_COUNTER,0,_H.counter)}push(e){_H.cache&&(_H.cache.set(e,_H.counter++),_H.hasChanges=!0)}peek(e){return _H.cache?.peek(e)}remove(e){_H.cache&&(_H.cache.delete(e),_H.hasChanges=!0)}saveState(){if(!_H.cache||!_H.hasChanges)return;let e={usesLRU:!0,entries:[]};_H.cache.forEach((t,n)=>e.entries.push({key:n,value:t})),this.storageService.store(_H.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(_H.PREF_KEY_COUNTER,_H.counter,0,0),_H.hasChanges=!1}static getConfiguredCommandHistoryLength(e){let t=e.getValue().workbench?.commandPalette?.history;return typeof t==`number`?t:_H.DEFAULT_COMMANDS_HISTORY_LENGTH}};yH=_H=mH([hH(0,Wd),hH(1,Ou),hH(2,Cd)],yH);var bH=class extends vH{constructor(e,t,n,r,i,a){super(e,t,n,r,i,a)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let n of e.getSupportedActions()){let e;n.metadata?.description&&(e=Ae(n.metadata.description)?n.metadata.description:{original:n.metadata.description,value:n.metadata.description}),t.push({commandId:n.id,commandAlias:n.alias,commandDescription:e,label:na(n.label)||n.id})}return t}},_ee=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xH=function(e,t){return function(n,r){t(n,r,e)}},SH=class extends bH{get activeTextEditorControl(){return this.codeEditorService.getFocusedCodeEditor()??void 0}constructor(e,t,n,r,i,a){super({showAlias:!1},e,n,r,i,a),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};SH=_ee([xH(0,Il),xH(1,To),xH(2,Be),xH(3,so),xH(4,Wt),xH(5,vt)],SH);var CH=class e extends Wl{static{this.ID=`editor.action.quickCommand`}constructor(){super({id:e.ID,label:Os.quickCommandActionLabel,alias:`Command Palette`,precondition:void 0,kbOpts:{kbExpr:G.focus,primary:59,weight:100},contextMenuOpts:{group:`z_commands`,order:1}})}run(e){e.get(st).quickAccess.show(SH.PREFIX)}};hs(CH),en.as(ja.Quickaccess).registerQuickAccessProvider({ctor:SH,prefix:SH.PREFIX,helpEntries:[{description:Os.quickCommandHelp,commandId:CH.ID}]});var wH=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},TH=function(e,t){return function(n,r){t(n,r,e)}},EH=class extends $b{constructor(e,t,n,r,i,a,o){super(!0,e,t,n,r,i,a,o)}};EH=wH([TH(1,In),TH(2,To),TH(3,Ut),TH(4,Il),TH(5,Wd),TH(6,Ou)],EH),ru($b.ID,EH,4),hs(class extends Wl{constructor(){super({id:`editor.action.toggleHighContrast`,label:ku.toggleHighContrast,alias:`Toggle High Contrast Theme`,precondition:void 0}),this._originalThemeName=null}run(e,t){let n=e.get(eo),r=n.getColorTheme();zt(r.type)?(n.setTheme(this._originalThemeName||(Yr(r.type)?`vs-dark`:`vs`)),this._originalThemeName=null):(n.setTheme(Yr(r.type)?lf:We),this._originalThemeName=r.themeName)}});var DH=(e=>(e[e.None=0]=`None`,e[e.CommonJS=1]=`CommonJS`,e[e.AMD=2]=`AMD`,e[e.UMD=3]=`UMD`,e[e.System=4]=`System`,e[e.ES2015=5]=`ES2015`,e[e.ESNext=99]=`ESNext`,e))(DH||{}),OH=(e=>(e[e.None=0]=`None`,e[e.Preserve=1]=`Preserve`,e[e.React=2]=`React`,e[e.ReactNative=3]=`ReactNative`,e[e.ReactJSX=4]=`ReactJSX`,e[e.ReactJSXDev=5]=`ReactJSXDev`,e))(OH||{}),vee=(e=>(e[e.ES3=0]=`ES3`,e[e.ES5=1]=`ES5`,e[e.ES2015=2]=`ES2015`,e[e.ES2016=3]=`ES2016`,e[e.ES2017=4]=`ES2017`,e[e.ES2018=5]=`ES2018`,e[e.ES2019=6]=`ES2019`,e[e.ES2020=7]=`ES2020`,e[e.ESNext=99]=`ESNext`,e[e.JSON=100]=`JSON`,e[e.Latest=99]=`Latest`,e))(vee||{}),kH=(e=>(e[e.Classic=1]=`Classic`,e[e.NodeJs=2]=`NodeJs`,e))(kH||{}),AH=class{constructor(e,t,n,r,i){this._onDidChange=new Uu,this._onDidExtraLibsChange=new Uu,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this.setInlayHintsOptions(r),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let n;if(n=t===void 0?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[n];e&&e.version===r&&(delete this._extraLibs[n],this._removedExtraLibs[n]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content,r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},jH={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},MH=new AH({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},jH),yee=new AH({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},jH);function NH(){return _e(()=>import(`./tsMode-BoaO1D7x.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))}Xc.onLanguage(`typescript`,()=>NH().then(e=>e.setupTypeScript(MH))),Xc.onLanguage(`javascript`,()=>NH().then(e=>e.setupJavaScript(yee)));function PH(e){let t=[];for(let n of e)if(!(!n||n===`.`)){if(n===`..`){t.length&&t[t.length-1]!==`..`?t.pop():t.push(`..`);continue}t.push(n)}return t}function FH(e,t){return PH([...e.split(`/`),...t.split(`/`)])}function IH(e,t){let n=PH(e.split(`/`)),r=0;for(;r<n.length&&r<t.length&&n[r]===t[r];)r+=1;let i=Array.from({length:n.length-r},()=>`..`),a=t.slice(r),o=[...i,...a].join(`/`);return o.startsWith(`.`)?o:`./${o}`}var bee=/(\bfrom\s*|\bimport\s*\(\s*|\brequire\s*\(\s*)(['"])(\.[^'"]*)\2/g;function LH(e,t,n){return t===n?e:e.replace(bee,(e,r,i,a)=>`${r}${i}${IH(n,FH(t,a))}${i}`)}function RH(e){return`nodes/${e}`}var xee=Object.defineProperty,zH=(e,t,n)=>t in e?xee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t,n)=>zH(e,typeof t==`symbol`?t:t+``,n),BH,VH,HH,UH,WH;function GH(e){return e.method!==void 0}var KH;(function(e){function t(e){return e}e.create=t})(KH||={});var qH;(function(e){e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603;function t(e){return-32099<=e&&e<=-32e3}e.isServerError=t;function n(e){if(!t(e))throw Error(`Invalid range for a server error.`);return e}e.serverError=n,e.unexpectedServerError=-32e3;function r(e){return!0}e.isApplicationError=r;function i(e){return e}e.applicationError=i,e.genericApplicationError=-320100})(qH||={});var JH=class{constructor(){$(this,`listeners`,new Set),$(this,`event`,e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},YH=class{constructor(e){$(this,`_value`),$(this,`eventEmitter`),this._value=e,this.eventEmitter=new JH}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function XH(e,t){let n=setTimeout(t,e);return{dispose:()=>clearTimeout(n)}}function ZH(e,t,n){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,n),{dispose:()=>e.delete(t)})}var QH=class{constructor(){$(this,`_state`,`none`),$(this,`promise`),$(this,`resolve`,()=>{}),$(this,`reject`,()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}};BH=class{constructor(){$(this,`_unprocessedMessages`,[]),$(this,`_messageListener`),$(this,`id`,BH.id++),$(this,`_state`,new YH({state:`open`})),$(this,`state`,this._state)}setListener(e){if(this._messageListener=e,e)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){let e=this._unprocessedMessages.shift();this._messageListener(e)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:`closed`,error:void 0}}log(e){return new $H(this,e??new eU)}},$(BH,`id`,0);var $H=class{constructor(e,t){$(this,`baseStream`),$(this,`logger`),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){if(e===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(t=>{this.logger.log(this.baseStream,`incoming`,t),e(t)})}send(e){return this.logger.log(this.baseStream,`outgoing`,e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},eU=class{log(e,t,n){console.log(`${t===`incoming`?`<-`:`->`} [${e.toString()}] ${JSON.stringify(n)}`)}},tU=class e{constructor(e){$(this,`connect`),this.connect=e}mapContext(t){return new e(e=>this.connect(e?nU(e,t):void 0))}};function nU(e,t){return{handleNotification:(n,r)=>e.handleNotification(n,t(r)),handleRequest:(n,r,i)=>e.handleRequest(n,r,t(i))}}var rU=class e{constructor(e,t,n){$(this,`_stream`),$(this,`_listener`),$(this,`_logger`),$(this,`_unprocessedResponses`,new Map),$(this,`_lastUsedRequestId`,0),this._stream=e,this._listener=t,this._logger=n,this._stream.setListener(e=>{GH(e)?e.id===void 0?this._processNotification(e):this._processRequest(e):this._processResponse(e)})}static createChannel(t,n){let r=!1;return new tU(i=>{if(r)throw Error(`A channel to the stream ${t} was already constructed!`);return r=!0,new e(t,i,n)})}get state(){return this._stream.state}async _processNotification(e){if(e.id!==void 0)throw Error();if(!this._listener){this._logger&&this._logger.debug({text:`Notification ignored`,message:e});return}try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}}async _processRequest(e){if(e.id===void 0)throw Error();let t;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:qH.internalError,message:`An unexpected exception was thrown.`,data:void 0}}}else this._logger&&this._logger.debug({text:`Received request even though not listening for requests`,message:e}),t={error:{code:qH.methodNotFound,message:`This endpoint does not listen for requests or notifications.`,data:void 0}};let n;n=`result`in t?{jsonrpc:`2.0`,id:e.id,result:t.result}:{jsonrpc:`2.0`,id:e.id,error:t.error},await this._stream.send(n)}_processResponse(e){let t=``+e.id,n=this._unprocessedResponses.get(t);if(!n){this._logger&&this._logger.debug({text:`Got an unexpected response message`,message:e});return}this._unprocessedResponses.delete(t),n(e)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,n){let r={jsonrpc:`2.0`,id:this._newRequestId(),method:e.method,params:e.params||void 0};return n&&n(r.id),new Promise((e,t)=>{let n=``+r.id;this._unprocessedResponses.set(n,n=>{`result`in n?e({result:n.result}):(n.error||t(Error(`Response had neither 'result' nor 'error' field set.`)),e({error:n.error}))}),this._stream.send(r).then(void 0,e=>{this._unprocessedResponses.delete(n),t(e)})})}sendNotification(e,t){let n={jsonrpc:`2.0`,id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(n)}toString(){return`StreamChannel/`+this._stream.toString()}},iU;(function(e){function t(){return{deserializeFromJson:e=>({hasErrors:!1,value:e}),serializeToJson:e=>e}}e.sAny=t;function n(){return{deserializeFromJson:e=>({hasErrors:!1,value:{}}),serializeToJson:e=>({})}}e.sEmptyObject=n;function r(){return{deserializeFromJson:e=>({hasErrors:!1,value:void 0}),serializeToJson:e=>null}}e.sVoidFromNull=r})(iU||={});var aU=Symbol(`OptionalMethodNotFound`),oU=class{contextualize(e){return new sU(this,e)}},sU=class extends oU{constructor(e,t){super(),$(this,`underylingTypedChannel`),$(this,`converters`),this.underylingTypedChannel=e,this.converters=t}async request(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.request(e,t,r)}async notify(e,t,n){let r=await this.converters.getSendContext(n);return this.underylingTypedChannel.notify(e,t,r)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(e,n)=>await t(e,await this.converters.getNewContext(n)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(e,n,r)=>await t(e,n,await this.converters.getNewContext(r)))}},cU=class e extends oU{constructor(e,t={}){super(),$(this,`channelCtor`),$(this,`_requestSender`),$(this,`_handler`,new Map),$(this,`_unknownNotificationHandler`,new Set),$(this,`_timeout`),$(this,`sendExceptionDetails`,!1),$(this,`_logger`),$(this,`listeningDeferred`,new QH),$(this,`onListening`,this.listeningDeferred.promise),$(this,`_requestDidErrorEventEmitter`,new JH),$(this,`onRequestDidError`,this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=XH(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,n={}){return new e(rU.createChannel(t,n.logger),n)}startListen(){if(this._requestSender)throw Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&=(this._timeout.dispose(),void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,n)=>this.handleRequest(e,t,n),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,n){let r=this._handler.get(e.method);if(!r)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:qH.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if(r.kind!=`request`){let t=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e}}),{error:{code:qH.invalidRequest,message:t,data:{method:e.method}}}}let i=r.requestType.paramsSerializer.deserializeFromJson(e.params);if(i.hasErrors){let t=`Got invalid params: ${i.errorMessage}`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e,errorMessage:i.errorMessage}}),{error:{code:qH.invalidParams,message:t,data:{errors:i.errorMessage}}}}{let a=i.value,o;try{let e=await r.handler(a,t,n);if(`error`in e||`errorMessage`in e){let t=e.error?r.requestType.errorSerializer.serializeToJson(e.error):void 0;o={error:{code:e.errorCode||qH.genericApplicationError,message:e.errorMessage||`An error was returned`,data:t}}}else o={result:r.requestType.resultSerializer.serializeToJson(e.ok)}}catch(t){t instanceof uU?o={error:{code:t.code,message:t.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${t}.`,exception:t,data:{requestObject:e}}),o={error:{code:qH.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${t}.`:`Server has thrown an unexpected exception`}})}return o}}async handleNotification(e,t){let n=this._handler.get(e.method);if(!n){for(let t of this._unknownNotificationHandler)t(e);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}});return}if(n.kind!=`notification`){this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}});return}let r=n.notificationType.paramsSerializer.deserializeFromJson(e.params);if(r.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${r}`,data:{requestObject:e,errorMessage:r.errorMessage}});return}let i=r.value;for(let r of n.handlers)try{r(i,t)}catch(t){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${t}.`,exception:t,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return ZH(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw Error(`Handler with method "${e.method}" already registered.`);return ZH(this._handler,e.method,{kind:`request`,requestType:e,handler:t})}registerNotificationHandler(e,t){let n=this._handler.get(e.method);if(!n)n={kind:`notification`,notificationType:e,handlers:new Set},this._handler.set(e.method,n);else{if(n.kind!==`notification`)throw Error(`Method "${e.method}" was already registered as request handler.`);if(n.notificationType!==e)throw Error(`Method "${e.method}" was registered for a different type.`)}return ZH(n.handlers,t)}getRegisteredTypes(){let e=[];for(let t of this._handler.values())t.kind===`notification`?e.push(t.notificationType):t.kind===`request`&&e.push(t.requestType);return e}async request(e,t,n){if(!this.checkChannel(this._requestSender))throw Error(`Impossible`);let r=e.paramsSerializer.serializeToJson(t);lU(r);let i=await this._requestSender.sendRequest({method:e.method,params:r},n);if(`error`in i){if(e.isOptional&&i.error.code===qH.methodNotFound)return aU;let t;if(i.error.data!==void 0){let n=e.errorSerializer.deserializeFromJson(i.error.data);if(n.hasErrors)throw Error(n.errorMessage);t=n.value}else t=void 0;let n=new uU(i.error.message,t,i.error.code);throw this._requestDidErrorEventEmitter.fire({error:n}),n}{let t=e.resultSerializer.deserializeFromJson(i.result);if(t.hasErrors)throw Error(`Could not deserialize response: `+t.errorMessage+`
|
|
53
53
|
|
|
54
|
-
${JSON.stringify(i,null,2)}`);return t.value}}async notify(e,t,n){if(!this.checkChannel(this._requestSender))throw Error();let r=e.paramsSerializer.serializeToJson(t);lU(r),this._requestSender.sendNotification({method:e.method,params:r},n)}};function lU(e){if(e!==null&&Array.isArray(e)&&typeof e!=`object`)throw Error(`Invalid value! Only null, array and object is allowed.`)}var uU=class e extends Error{constructor(t,n,r=qH.genericApplicationError){super(t),$(this,`data`),$(this,`code`),this.data=n,this.code=r,Object.setPrototypeOf(this,e.prototype)}},dU=class e{constructor(e,t,n,r,i=!1){$(this,`method`),$(this,`paramsSerializer`),$(this,`resultSerializer`),$(this,`errorSerializer`),$(this,`isOptional`),$(this,`kind`,`request`),this.method=e,this.paramsSerializer=t,this.resultSerializer=n,this.errorSerializer=r,this.isOptional=i}withMethod(t){return new e(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new e(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},fU=class e{constructor(e,t){$(this,`method`),$(this,`paramsSerializer`),$(this,`kind`,`notification`),this.method=e,this.paramsSerializer=t}withMethod(t){return new e(t,this.paramsSerializer)}};function pU(e){return new dU((e||{}).method,iU.sAny(),iU.sAny(),iU.sAny())}function mU(e){return new fU((e||{}).method,iU.sAny())}var hU=(VH=Symbol(),HH=class{constructor(e){$(this,`error`),$(this,VH),this.error=e}},$(HH,`factory`,e=>new HH(e)),HH);function gU(e){let t=_U(e.server),n=_U(e.client);return new vU(e.tags||[],t,n)}function _U(e){let t={};for(let[n,r]of Object.entries(e)){let e=r.method?r.method:n;t[n]=r.withMethod(e)}return t}var vU=class e{constructor(e=[],t,n){$(this,`tags`),$(this,`server`),$(this,`client`),this.tags=e,this.server=t,this.client=n}_onlyDesignTime(){return Error(`This property is not meant to be accessed at runtime`)}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,n,r){let i=this.buildCounterpart(e,n),a=this.registerHandlers(e,t,r,i);return{counterpart:i,dispose:()=>a.dispose()}}buildCounterpart(e,t){let n={};for(let[r,i]of Object.entries(t)){let t;t=i.kind===`request`?i.isOptional?async(t,n)=>{t===void 0&&(t={});try{return await e.request(i,t,n)}catch(e){if(e&&e.code===qH.methodNotFound)return aU;throw e}}:(t,n)=>(t===void 0&&(t={}),e.request(i,t,n)):(t,n)=>(t===void 0&&(t={}),e.notify(i,t,n)),n[r]=t}return n}registerHandlers(e,t,n,r){let i=[];for(let[a,o]of Object.entries(t))if(o.kind===`request`){let t=n[a];if(!t)continue;let s=this.createRequestHandler(r,t);i.push(e.registerRequestHandler(o,s))}else{let t=n[a];t&&i.push(e.registerNotificationHandler(o,(e,n)=>{t(e,{context:n,counterpart:r})}))}return{dispose:()=>i.forEach(e=>e.dispose())}}createRequestHandler(e,t){return async(n,r,i)=>{let a=await t(n,{context:i,counterpart:e,newErr:hU.factory,requestId:r});return a instanceof hU?a.error:{ok:a}}}static getServerFromStream(e,t,n,r){let i=cU.fromTransport(t,n),{server:a}=e.getServer(i,r);return i.startListen(),{channel:i,server:a}}static registerServerToStream(e,t,n,r){let i=cU.fromTransport(t,n),{client:a}=e.registerServer(i,r);return i.startListen(),{channel:i,client:a}}getServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.client,this.server,t);return{server:n,dispose:r}}registerServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.server,this.client,t);return{client:n,dispose:r}}withContext(){return new e(this.tags,this.server,this.client)}},yU=(function(e){return e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`,e})({}),bU=(function(e){return e[e.File=1]=`File`,e[e.Module=2]=`Module`,e[e.Namespace=3]=`Namespace`,e[e.Package=4]=`Package`,e[e.Class=5]=`Class`,e[e.Method=6]=`Method`,e[e.Property=7]=`Property`,e[e.Field=8]=`Field`,e[e.Constructor=9]=`Constructor`,e[e.Enum=10]=`Enum`,e[e.Interface=11]=`Interface`,e[e.Function=12]=`Function`,e[e.Variable=13]=`Variable`,e[e.Constant=14]=`Constant`,e[e.String=15]=`String`,e[e.Number=16]=`Number`,e[e.Boolean=17]=`Boolean`,e[e.Array=18]=`Array`,e[e.Object=19]=`Object`,e[e.Key=20]=`Key`,e[e.Null=21]=`Null`,e[e.EnumMember=22]=`EnumMember`,e[e.Struct=23]=`Struct`,e[e.Event=24]=`Event`,e[e.Operator=25]=`Operator`,e[e.TypeParameter=26]=`TypeParameter`,e})({}),xU=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),SU=(function(e){return e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`,e})({}),CU=(function(e){return e[e.Text=1]=`Text`,e[e.Method=2]=`Method`,e[e.Function=3]=`Function`,e[e.Constructor=4]=`Constructor`,e[e.Field=5]=`Field`,e[e.Variable=6]=`Variable`,e[e.Class=7]=`Class`,e[e.Interface=8]=`Interface`,e[e.Module=9]=`Module`,e[e.Property=10]=`Property`,e[e.Unit=11]=`Unit`,e[e.Value=12]=`Value`,e[e.Enum=13]=`Enum`,e[e.Keyword=14]=`Keyword`,e[e.Snippet=15]=`Snippet`,e[e.Color=16]=`Color`,e[e.File=17]=`File`,e[e.Reference=18]=`Reference`,e[e.Folder=19]=`Folder`,e[e.EnumMember=20]=`EnumMember`,e[e.Constant=21]=`Constant`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`,e})({}),wU=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),TU=(function(e){return e[e.PlainText=1]=`PlainText`,e[e.Snippet=2]=`Snippet`,e})({}),EU=(function(e){return e[e.Text=1]=`Text`,e[e.Read=2]=`Read`,e[e.Write=3]=`Write`,e})({}),DU=(function(e){return e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e})({}),OU=(function(e){return e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Information=3]=`Information`,e[e.Hint=4]=`Hint`,e})({}),kU=(function(e){return e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`,e})({}),AU=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=3]=`TriggerForIncompleteCompletions`,e})({}),jU=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`,e})({}),MU=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.Automatic=2]=`Automatic`,e})({}),NU=class{constructor(e){this.method=e}},PU={textDocumentImplementation:new NU(`textDocument/implementation`),textDocumentTypeDefinition:new NU(`textDocument/typeDefinition`),textDocumentDocumentColor:new NU(`textDocument/documentColor`),textDocumentColorPresentation:new NU(`textDocument/colorPresentation`),textDocumentFoldingRange:new NU(`textDocument/foldingRange`),textDocumentDeclaration:new NU(`textDocument/declaration`),textDocumentSelectionRange:new NU(`textDocument/selectionRange`),textDocumentPrepareCallHierarchy:new NU(`textDocument/prepareCallHierarchy`),textDocumentSemanticTokensFull:new NU(`textDocument/semanticTokens/full`),textDocumentSemanticTokensFullDelta:new NU(`textDocument/semanticTokens/full/delta`),textDocumentLinkedEditingRange:new NU(`textDocument/linkedEditingRange`),workspaceWillCreateFiles:new NU(`workspace/willCreateFiles`),workspaceWillRenameFiles:new NU(`workspace/willRenameFiles`),workspaceWillDeleteFiles:new NU(`workspace/willDeleteFiles`),textDocumentMoniker:new NU(`textDocument/moniker`),textDocumentPrepareTypeHierarchy:new NU(`textDocument/prepareTypeHierarchy`),textDocumentInlineValue:new NU(`textDocument/inlineValue`),textDocumentInlayHint:new NU(`textDocument/inlayHint`),textDocumentDiagnostic:new NU(`textDocument/diagnostic`),textDocumentInlineCompletion:new NU(`textDocument/inlineCompletion`),textDocumentWillSaveWaitUntil:new NU(`textDocument/willSaveWaitUntil`),textDocumentCompletion:new NU(`textDocument/completion`),textDocumentHover:new NU(`textDocument/hover`),textDocumentSignatureHelp:new NU(`textDocument/signatureHelp`),textDocumentDefinition:new NU(`textDocument/definition`),textDocumentReferences:new NU(`textDocument/references`),textDocumentDocumentHighlight:new NU(`textDocument/documentHighlight`),textDocumentDocumentSymbol:new NU(`textDocument/documentSymbol`),textDocumentCodeAction:new NU(`textDocument/codeAction`),workspaceSymbol:new NU(`workspace/symbol`),textDocumentCodeLens:new NU(`textDocument/codeLens`),textDocumentDocumentLink:new NU(`textDocument/documentLink`),textDocumentFormatting:new NU(`textDocument/formatting`),textDocumentRangeFormatting:new NU(`textDocument/rangeFormatting`),textDocumentRangesFormatting:new NU(`textDocument/rangesFormatting`),textDocumentOnTypeFormatting:new NU(`textDocument/onTypeFormatting`),textDocumentRename:new NU(`textDocument/rename`),workspaceExecuteCommand:new NU(`workspace/executeCommand`),workspaceDidCreateFiles:new NU(`workspace/didCreateFiles`),workspaceDidRenameFiles:new NU(`workspace/didRenameFiles`),workspaceDidDeleteFiles:new NU(`workspace/didDeleteFiles`),workspaceDidChangeConfiguration:new NU(`workspace/didChangeConfiguration`),textDocumentDidOpen:new NU(`textDocument/didOpen`),textDocumentDidChange:new NU(`textDocument/didChange`),textDocumentDidClose:new NU(`textDocument/didClose`),textDocumentDidSave:new NU(`textDocument/didSave`),textDocumentWillSave:new NU(`textDocument/willSave`),workspaceDidChangeWatchedFiles:new NU(`workspace/didChangeWatchedFiles`)};gU({server:{textDocumentImplementation:pU({method:`textDocument/implementation`}),textDocumentTypeDefinition:pU({method:`textDocument/typeDefinition`}),textDocumentDocumentColor:pU({method:`textDocument/documentColor`}),textDocumentColorPresentation:pU({method:`textDocument/colorPresentation`}),textDocumentFoldingRange:pU({method:`textDocument/foldingRange`}),textDocumentDeclaration:pU({method:`textDocument/declaration`}),textDocumentSelectionRange:pU({method:`textDocument/selectionRange`}),textDocumentPrepareCallHierarchy:pU({method:`textDocument/prepareCallHierarchy`}),callHierarchyIncomingCalls:pU({method:`callHierarchy/incomingCalls`}),callHierarchyOutgoingCalls:pU({method:`callHierarchy/outgoingCalls`}),textDocumentSemanticTokensFull:pU({method:`textDocument/semanticTokens/full`}),textDocumentSemanticTokensFullDelta:pU({method:`textDocument/semanticTokens/full/delta`}),textDocumentSemanticTokensRange:pU({method:`textDocument/semanticTokens/range`}),textDocumentLinkedEditingRange:pU({method:`textDocument/linkedEditingRange`}),workspaceWillCreateFiles:pU({method:`workspace/willCreateFiles`}),workspaceWillRenameFiles:pU({method:`workspace/willRenameFiles`}),workspaceWillDeleteFiles:pU({method:`workspace/willDeleteFiles`}),textDocumentMoniker:pU({method:`textDocument/moniker`}),textDocumentPrepareTypeHierarchy:pU({method:`textDocument/prepareTypeHierarchy`}),typeHierarchySupertypes:pU({method:`typeHierarchy/supertypes`}),typeHierarchySubtypes:pU({method:`typeHierarchy/subtypes`}),textDocumentInlineValue:pU({method:`textDocument/inlineValue`}),textDocumentInlayHint:pU({method:`textDocument/inlayHint`}),inlayHintResolve:pU({method:`inlayHint/resolve`}),textDocumentDiagnostic:pU({method:`textDocument/diagnostic`}),workspaceDiagnostic:pU({method:`workspace/diagnostic`}),textDocumentInlineCompletion:pU({method:`textDocument/inlineCompletion`}),initialize:pU({method:`initialize`}),shutdown:pU({method:`shutdown`}),textDocumentWillSaveWaitUntil:pU({method:`textDocument/willSaveWaitUntil`}),textDocumentCompletion:pU({method:`textDocument/completion`}),completionItemResolve:pU({method:`completionItem/resolve`}),textDocumentHover:pU({method:`textDocument/hover`}),textDocumentSignatureHelp:pU({method:`textDocument/signatureHelp`}),textDocumentDefinition:pU({method:`textDocument/definition`}),textDocumentReferences:pU({method:`textDocument/references`}),textDocumentDocumentHighlight:pU({method:`textDocument/documentHighlight`}),textDocumentDocumentSymbol:pU({method:`textDocument/documentSymbol`}),textDocumentCodeAction:pU({method:`textDocument/codeAction`}),codeActionResolve:pU({method:`codeAction/resolve`}),workspaceSymbol:pU({method:`workspace/symbol`}),workspaceSymbolResolve:pU({method:`workspaceSymbol/resolve`}),textDocumentCodeLens:pU({method:`textDocument/codeLens`}),codeLensResolve:pU({method:`codeLens/resolve`}),textDocumentDocumentLink:pU({method:`textDocument/documentLink`}),documentLinkResolve:pU({method:`documentLink/resolve`}),textDocumentFormatting:pU({method:`textDocument/formatting`}),textDocumentRangeFormatting:pU({method:`textDocument/rangeFormatting`}),textDocumentRangesFormatting:pU({method:`textDocument/rangesFormatting`}),textDocumentOnTypeFormatting:pU({method:`textDocument/onTypeFormatting`}),textDocumentRename:pU({method:`textDocument/rename`}),textDocumentPrepareRename:pU({method:`textDocument/prepareRename`}),workspaceExecuteCommand:pU({method:`workspace/executeCommand`}),workspaceDidChangeWorkspaceFolders:mU({method:`workspace/didChangeWorkspaceFolders`}),windowWorkDoneProgressCancel:mU({method:`window/workDoneProgress/cancel`}),workspaceDidCreateFiles:mU({method:`workspace/didCreateFiles`}),workspaceDidRenameFiles:mU({method:`workspace/didRenameFiles`}),workspaceDidDeleteFiles:mU({method:`workspace/didDeleteFiles`}),notebookDocumentDidOpen:mU({method:`notebookDocument/didOpen`}),notebookDocumentDidChange:mU({method:`notebookDocument/didChange`}),notebookDocumentDidSave:mU({method:`notebookDocument/didSave`}),notebookDocumentDidClose:mU({method:`notebookDocument/didClose`}),initialized:mU({method:`initialized`}),exit:mU({method:`exit`}),workspaceDidChangeConfiguration:mU({method:`workspace/didChangeConfiguration`}),textDocumentDidOpen:mU({method:`textDocument/didOpen`}),textDocumentDidChange:mU({method:`textDocument/didChange`}),textDocumentDidClose:mU({method:`textDocument/didClose`}),textDocumentDidSave:mU({method:`textDocument/didSave`}),textDocumentWillSave:mU({method:`textDocument/willSave`}),workspaceDidChangeWatchedFiles:mU({method:`workspace/didChangeWatchedFiles`}),setTrace:mU({method:`$/setTrace`}),cancelRequest:mU({method:`$/cancelRequest`}),progress:mU({method:`$/progress`})},client:{workspaceWorkspaceFolders:pU({method:`workspace/workspaceFolders`}).optional(),workspaceConfiguration:pU({method:`workspace/configuration`}).optional(),workspaceFoldingRangeRefresh:pU({method:`workspace/foldingRange/refresh`}).optional(),windowWorkDoneProgressCreate:pU({method:`window/workDoneProgress/create`}).optional(),workspaceSemanticTokensRefresh:pU({method:`workspace/semanticTokens/refresh`}).optional(),windowShowDocument:pU({method:`window/showDocument`}).optional(),workspaceInlineValueRefresh:pU({method:`workspace/inlineValue/refresh`}).optional(),workspaceInlayHintRefresh:pU({method:`workspace/inlayHint/refresh`}).optional(),workspaceDiagnosticRefresh:pU({method:`workspace/diagnostic/refresh`}).optional(),clientRegisterCapability:pU({method:`client/registerCapability`}).optional(),clientUnregisterCapability:pU({method:`client/unregisterCapability`}).optional(),windowShowMessageRequest:pU({method:`window/showMessageRequest`}).optional(),workspaceCodeLensRefresh:pU({method:`workspace/codeLens/refresh`}).optional(),workspaceApplyEdit:pU({method:`workspace/applyEdit`}).optional(),windowShowMessage:mU({method:`window/showMessage`}),windowLogMessage:mU({method:`window/logMessage`}),telemetryEvent:mU({method:`telemetry/event`}),textDocumentPublishDiagnostics:mU({method:`textDocument/publishDiagnostics`}),logTrace:mU({method:`$/logTrace`}),cancelRequest:mU({method:`$/cancelRequest`}),progress:mU({method:`$/progress`})}}),UH=class{constructor(){$(this,`_store`,new FU)}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},$(UH,`None`,Object.freeze({dispose(){}}));var FU=(WH=class{constructor(){$(this,`_toDispose`,new Set),$(this,`_isDisposed`,!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(let e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?WH.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(e),e}},$(WH,`DISABLE_DISPOSED_WARNING`,!1),WH);DU.Empty,DU.QuickFix,DU.Refactor,DU.RefactorExtract,DU.RefactorInline,DU.RefactorRewrite,DU.Source,DU.SourceOrganizeImports,DU.SourceFixAll,Xc.CodeActionTriggerType.Invoke,MU.Invoked,Xc.CodeActionTriggerType.Auto,MU.Automatic,CU.Text,Xc.CompletionItemKind.Text,CU.Method,Xc.CompletionItemKind.Method,CU.Function,Xc.CompletionItemKind.Function,CU.Constructor,Xc.CompletionItemKind.Constructor,CU.Field,Xc.CompletionItemKind.Field,CU.Variable,Xc.CompletionItemKind.Variable,CU.Class,Xc.CompletionItemKind.Class,CU.Interface,Xc.CompletionItemKind.Interface,CU.Module,Xc.CompletionItemKind.Module,CU.Property,Xc.CompletionItemKind.Property,CU.Unit,Xc.CompletionItemKind.Unit,CU.Value,Xc.CompletionItemKind.Value,CU.Enum,Xc.CompletionItemKind.Enum,CU.Keyword,Xc.CompletionItemKind.Keyword,CU.Snippet,Xc.CompletionItemKind.Snippet,CU.Color,Xc.CompletionItemKind.Color,CU.File,Xc.CompletionItemKind.File,CU.Reference,Xc.CompletionItemKind.Reference,CU.Folder,Xc.CompletionItemKind.Folder,CU.EnumMember,Xc.CompletionItemKind.EnumMember,CU.Constant,Xc.CompletionItemKind.Constant,CU.Struct,Xc.CompletionItemKind.Struct,CU.Event,Xc.CompletionItemKind.Event,CU.Operator,Xc.CompletionItemKind.Operator,CU.TypeParameter,Xc.CompletionItemKind.TypeParameter,wU.Deprecated,Xc.CompletionItemTag.Deprecated,Xc.CompletionTriggerKind.Invoke,AU.Invoked,Xc.CompletionTriggerKind.TriggerCharacter,AU.TriggerCharacter,Xc.CompletionTriggerKind.TriggerForIncompleteCompletions,AU.TriggerForIncompleteCompletions,TU.Snippet,Xc.CompletionItemInsertTextRule.InsertAsSnippet,bU.File,Xc.SymbolKind.File,bU.Module,Xc.SymbolKind.Module,bU.Namespace,Xc.SymbolKind.Namespace,bU.Package,Xc.SymbolKind.Package,bU.Class,Xc.SymbolKind.Class,bU.Method,Xc.SymbolKind.Method,bU.Property,Xc.SymbolKind.Property,bU.Field,Xc.SymbolKind.Field,bU.Constructor,Xc.SymbolKind.Constructor,bU.Enum,Xc.SymbolKind.Enum,bU.Interface,Xc.SymbolKind.Interface,bU.Function,Xc.SymbolKind.Function,bU.Variable,Xc.SymbolKind.Variable,bU.Constant,Xc.SymbolKind.Constant,bU.String,Xc.SymbolKind.String,bU.Number,Xc.SymbolKind.Number,bU.Boolean,Xc.SymbolKind.Boolean,bU.Array,Xc.SymbolKind.Array,bU.Object,Xc.SymbolKind.Object,bU.Key,Xc.SymbolKind.Key,bU.Null,Xc.SymbolKind.Null,bU.EnumMember,Xc.SymbolKind.EnumMember,bU.Struct,Xc.SymbolKind.Struct,bU.Event,Xc.SymbolKind.Event,bU.Operator,Xc.SymbolKind.Operator,bU.TypeParameter,Xc.SymbolKind.TypeParameter,xU.Deprecated,Xc.SymbolTag.Deprecated,EU.Text,Xc.DocumentHighlightKind.Text,EU.Read,Xc.DocumentHighlightKind.Read,EU.Write,Xc.DocumentHighlightKind.Write,yU.Comment,Xc.FoldingRangeKind.Comment,yU.Imports,Xc.FoldingRangeKind.Imports,yU.Region,Xc.FoldingRangeKind.Region,pc.Error,OU.Error,pc.Warning,OU.Warning,pc.Info,OU.Information,pc.Hint,OU.Hint,OU.Error,pc.Error,OU.Warning,pc.Warning,OU.Information,pc.Info,OU.Hint,pc.Hint,kU.Unnecessary,Co.Unnecessary,kU.Deprecated,Co.Deprecated,Xc.SignatureHelpTriggerKind.Invoke,jU.Invoked,Xc.SignatureHelpTriggerKind.TriggerCharacter,jU.TriggerCharacter,Xc.SignatureHelpTriggerKind.ContentChange,jU.ContentChange,SU.Type,Xc.InlayHintKind.Type,SU.Parameter,Xc.InlayHintKind.Parameter,new Map([...Object.values(PU)].map(e=>[e.method,e])),typeof WebSocket<`u`||(typeof MozWebSocket<`u`?MozWebSocket:typeof global<`u`?global.WebSocket||global.MozWebSocket:typeof window<`u`?window.WebSocket||window.MozWebSocket:typeof self<`u`&&(self.WebSocket||self.MozWebSocket));var IU={},LU={},RU=class e{static getOrCreate(t){return LU[t]||(LU[t]=new e(t)),LU[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,IU[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function zU(e){let t=e.id;IU[t]=e,Xc.register(e);let n=RU.getOrCreate(t);Xc.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),Xc.onLanguageEncountered(t,async()=>{let e=await n.load();Xc.setLanguageConfiguration(t,e.conf)})}zU({id:`abap`,extensions:[`.abap`],aliases:[`abap`,`ABAP`],loader:()=>_e(()=>import(`./abap-08VXUWAP.js`),[])}),zU({id:`apex`,extensions:[`.cls`],aliases:[`Apex`,`apex`],mimetypes:[`text/x-apex-source`,`text/x-apex`],loader:()=>_e(()=>import(`./apex-BWPQTe0t.js`),[])}),zU({id:`azcli`,extensions:[`.azcli`],aliases:[`Azure CLI`,`azcli`],loader:()=>_e(()=>import(`./azcli-Bc_sGQ0U.js`),[])}),zU({id:`bat`,extensions:[`.bat`,`.cmd`],aliases:[`Batch`,`bat`],loader:()=>_e(()=>import(`./bat-i0X4ZdIN.js`),[])}),zU({id:`bicep`,extensions:[`.bicep`],aliases:[`Bicep`],loader:()=>_e(()=>import(`./bicep-B5-_aFwp.js`),[])}),zU({id:`cameligo`,extensions:[`.mligo`],aliases:[`Cameligo`],loader:()=>_e(()=>import(`./cameligo-DMUM7wLl.js`),[])}),zU({id:`clojure`,extensions:[`.clj`,`.cljs`,`.cljc`,`.edn`],aliases:[`clojure`,`Clojure`],loader:()=>_e(()=>import(`./clojure-Cm7r79vr.js`),[])}),zU({id:`coffeescript`,extensions:[`.coffee`],aliases:[`CoffeeScript`,`coffeescript`,`coffee`],mimetypes:[`text/x-coffeescript`,`text/coffeescript`],loader:()=>_e(()=>import(`./coffee-Ba7i2nA0.js`),[])}),zU({id:`c`,extensions:[`.c`,`.h`],aliases:[`C`,`c`],loader:()=>_e(()=>import(`./cpp-C7h46wYY.js`),[])}),zU({id:`cpp`,extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`],aliases:[`C++`,`Cpp`,`cpp`],loader:()=>_e(()=>import(`./cpp-C7h46wYY.js`),[])}),zU({id:`csharp`,extensions:[`.cs`,`.csx`,`.cake`],aliases:[`C#`,`csharp`],loader:()=>_e(()=>import(`./csharp-BKxtCVv1.js`),[])}),zU({id:`csp`,extensions:[`.csp`],aliases:[`CSP`,`csp`],loader:()=>_e(()=>import(`./csp-bTuwJoIa.js`),[])}),zU({id:`css`,extensions:[`.css`],aliases:[`CSS`,`css`],mimetypes:[`text/css`],loader:()=>_e(()=>import(`./css-DIMkf-bt.js`),[])}),zU({id:`cypher`,extensions:[`.cypher`,`.cyp`],aliases:[`Cypher`,`OpenCypher`],loader:()=>_e(()=>import(`./cypher-CVaqCwHa.js`),[])}),zU({id:`dart`,extensions:[`.dart`],aliases:[`Dart`,`dart`],mimetypes:[`text/x-dart-source`,`text/x-dart`],loader:()=>_e(()=>import(`./dart-onAF5SnQ.js`),[])}),zU({id:`dockerfile`,extensions:[`.dockerfile`],filenames:[`Dockerfile`],aliases:[`Dockerfile`],loader:()=>_e(()=>import(`./dockerfile-DZFCIeNp.js`),[])}),zU({id:`ecl`,extensions:[`.ecl`],aliases:[`ECL`,`Ecl`,`ecl`],loader:()=>_e(()=>import(`./ecl-D05T4iGw.js`),[])}),zU({id:`elixir`,extensions:[`.ex`,`.exs`],aliases:[`Elixir`,`elixir`,`ex`],loader:()=>_e(()=>import(`./elixir-6RTg0lbw.js`),[])}),zU({id:`flow9`,extensions:[`.flow`],aliases:[`Flow9`,`Flow`,`flow9`,`flow`],loader:()=>_e(()=>import(`./flow9-C5_-GSwl.js`),[])}),zU({id:`fsharp`,extensions:[`.fs`,`.fsi`,`.ml`,`.mli`,`.fsx`,`.fsscript`],aliases:[`F#`,`FSharp`,`fsharp`],loader:()=>_e(()=>import(`./fsharp-C8Ef5oNN.js`),[])}),zU({id:`freemarker2`,extensions:[`.ftl`,`.ftlh`,`.ftlx`],aliases:[`FreeMarker2`,`Apache FreeMarker2`],loader:()=>_e(()=>import(`./freemarker2-DE0JRkF7.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-angle.interpolation-dollar`,aliases:[`FreeMarker2 (Angle/Dollar)`,`Apache FreeMarker2 (Angle/Dollar)`],loader:()=>_e(()=>import(`./freemarker2-DE0JRkF7.js`).then(e=>e.TagAngleInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-bracket.interpolation-dollar`,aliases:[`FreeMarker2 (Bracket/Dollar)`,`Apache FreeMarker2 (Bracket/Dollar)`],loader:()=>_e(()=>import(`./freemarker2-DE0JRkF7.js`).then(e=>e.TagBracketInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-angle.interpolation-bracket`,aliases:[`FreeMarker2 (Angle/Bracket)`,`Apache FreeMarker2 (Angle/Bracket)`],loader:()=>_e(()=>import(`./freemarker2-DE0JRkF7.js`).then(e=>e.TagAngleInterpolationBracket),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-bracket.interpolation-bracket`,aliases:[`FreeMarker2 (Bracket/Bracket)`,`Apache FreeMarker2 (Bracket/Bracket)`],loader:()=>_e(()=>import(`./freemarker2-DE0JRkF7.js`).then(e=>e.TagBracketInterpolationBracket),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-auto.interpolation-dollar`,aliases:[`FreeMarker2 (Auto/Dollar)`,`Apache FreeMarker2 (Auto/Dollar)`],loader:()=>_e(()=>import(`./freemarker2-DE0JRkF7.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-auto.interpolation-bracket`,aliases:[`FreeMarker2 (Auto/Bracket)`,`Apache FreeMarker2 (Auto/Bracket)`],loader:()=>_e(()=>import(`./freemarker2-DE0JRkF7.js`).then(e=>e.TagAutoInterpolationBracket),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`go`,extensions:[`.go`],aliases:[`Go`],loader:()=>_e(()=>import(`./go-C-y9NEjX.js`),[])}),zU({id:`graphql`,extensions:[`.graphql`,`.gql`],aliases:[`GraphQL`,`graphql`,`gql`],mimetypes:[`application/graphql`],loader:()=>_e(()=>import(`./graphql-fmXr3nnJ.js`),[])}),zU({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>_e(()=>import(`./handlebars-B_Shirzj.js`),__vite__mapDeps([10,1,2,3,4,5,6,7]))}),zU({id:`hcl`,extensions:[`.tf`,`.tfvars`,`.hcl`],aliases:[`Terraform`,`tf`,`HCL`,`hcl`],loader:()=>_e(()=>import(`./hcl-CpzslTdj.js`),[])}),zU({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>_e(()=>import(`./html-DI5Qj4gd.js`),__vite__mapDeps([11,1,2,3,4,5,6,7]))}),zU({id:`ini`,extensions:[`.ini`,`.properties`,`.gitconfig`],filenames:[`config`,`.gitattributes`,`.gitconfig`,`.editorconfig`],aliases:[`Ini`,`ini`],loader:()=>_e(()=>import(`./ini-sBoK_t0W.js`),[])}),zU({id:`java`,extensions:[`.java`,`.jav`],aliases:[`Java`,`java`],mimetypes:[`text/x-java-source`,`text/x-java`],loader:()=>_e(()=>import(`./java-BEtHBSE6.js`),[])}),zU({id:`javascript`,extensions:[`.js`,`.es6`,`.jsx`,`.mjs`,`.cjs`],firstLine:`^#!.*\\bnode`,filenames:[`jakefile`],aliases:[`JavaScript`,`javascript`,`js`],mimetypes:[`text/javascript`],loader:()=>_e(()=>import(`./javascript-zxQfbzS_.js`),__vite__mapDeps([12,13,1,2,3,4,5,6,7]))}),zU({id:`julia`,extensions:[`.jl`],aliases:[`julia`,`Julia`],loader:()=>_e(()=>import(`./julia-Bri6UV-V.js`),[])}),zU({id:`kotlin`,extensions:[`.kt`,`.kts`],aliases:[`Kotlin`,`kotlin`],mimetypes:[`text/x-kotlin-source`,`text/x-kotlin`],loader:()=>_e(()=>import(`./kotlin-BOotOW0E.js`),[])}),zU({id:`less`,extensions:[`.less`],aliases:[`Less`,`less`],mimetypes:[`text/x-less`,`text/less`],loader:()=>_e(()=>import(`./less-B9JPFI3C.js`),[])}),zU({id:`lexon`,extensions:[`.lex`],aliases:[`Lexon`],loader:()=>_e(()=>import(`./lexon-CfSJPG6W.js`),[])}),zU({id:`lua`,extensions:[`.lua`],aliases:[`Lua`,`lua`],loader:()=>_e(()=>import(`./lua-CsQS60Ue.js`),[])}),zU({id:`liquid`,extensions:[`.liquid`,`.html.liquid`],aliases:[`Liquid`,`liquid`],mimetypes:[`application/liquid`],loader:()=>_e(()=>import(`./liquid-0zs2oOuA.js`),__vite__mapDeps([14,1,2,3,4,5,6,7]))}),zU({id:`m3`,extensions:[`.m3`,`.i3`,`.mg`,`.ig`],aliases:[`Modula-3`,`Modula3`,`modula3`,`m3`],loader:()=>_e(()=>import(`./m3-D-oSqn_W.js`),[])}),zU({id:`markdown`,extensions:[`.md`,`.markdown`,`.mdown`,`.mkdn`,`.mkd`,`.mdwn`,`.mdtxt`,`.mdtext`],aliases:[`Markdown`,`markdown`],loader:()=>_e(()=>import(`./markdown-Cimd5fb3.js`),[])}),zU({id:`mdx`,extensions:[`.mdx`],aliases:[`MDX`,`mdx`],loader:()=>_e(()=>import(`./mdx-BFKlF5Xh.js`),__vite__mapDeps([15,1,2,3,4,5,6,7]))}),zU({id:`mips`,extensions:[`.s`],aliases:[`MIPS`,`MIPS-V`],mimetypes:[`text/x-mips`,`text/mips`,`text/plaintext`],loader:()=>_e(()=>import(`./mips-CIPQ_RoX.js`),[])}),zU({id:`msdax`,extensions:[`.dax`,`.msdax`],aliases:[`DAX`,`MSDAX`],loader:()=>_e(()=>import(`./msdax-DauUninz.js`),[])}),zU({id:`mysql`,extensions:[],aliases:[`MySQL`,`mysql`],loader:()=>_e(()=>import(`./mysql-SOo6toE5.js`),[])}),zU({id:`objective-c`,extensions:[`.m`],aliases:[`Objective-C`],loader:()=>_e(()=>import(`./objective-c-FvmIjYaQ.js`),[])}),zU({id:`pascal`,extensions:[`.pas`,`.p`,`.pp`],aliases:[`Pascal`,`pas`],mimetypes:[`text/x-pascal-source`,`text/x-pascal`],loader:()=>_e(()=>import(`./pascal-DrH0SRf2.js`),[])}),zU({id:`pascaligo`,extensions:[`.ligo`],aliases:[`Pascaligo`,`ligo`],loader:()=>_e(()=>import(`./pascaligo-D-ptJ9y-.js`),[])}),zU({id:`perl`,extensions:[`.pl`,`.pm`],aliases:[`Perl`,`pl`],loader:()=>_e(()=>import(`./perl-oz_6vUea.js`),[])}),zU({id:`pgsql`,extensions:[],aliases:[`PostgreSQL`,`postgres`,`pg`,`postgre`],loader:()=>_e(()=>import(`./pgsql-DTj74zXo.js`),[])}),zU({id:`php`,extensions:[`.php`,`.php4`,`.php5`,`.phtml`,`.ctp`],aliases:[`PHP`,`php`],mimetypes:[`application/x-php`],loader:()=>_e(()=>import(`./php-nr791fC2.js`),[])}),zU({id:`pla`,extensions:[`.pla`],loader:()=>_e(()=>import(`./pla-CopQ2nXW.js`),[])}),zU({id:`postiats`,extensions:[`.dats`,`.sats`,`.hats`],aliases:[`ATS`,`ATS/Postiats`],loader:()=>_e(()=>import(`./postiats-43DmfD33.js`),[])}),zU({id:`powerquery`,extensions:[`.pq`,`.pqm`],aliases:[`PQ`,`M`,`Power Query`,`Power Query M`],loader:()=>_e(()=>import(`./powerquery-D3hlyOfw.js`),[])}),zU({id:`powershell`,extensions:[`.ps1`,`.psm1`,`.psd1`],aliases:[`PowerShell`,`powershell`,`ps`,`ps1`],loader:()=>_e(()=>import(`./powershell-DmHpPYUd.js`),[])}),zU({id:`proto`,extensions:[`.proto`],aliases:[`protobuf`,`Protocol Buffers`],loader:()=>_e(()=>import(`./protobuf-C531GsRP.js`),[])}),zU({id:`pug`,extensions:[`.jade`,`.pug`],aliases:[`Pug`,`Jade`,`jade`],loader:()=>_e(()=>import(`./pug-Z5eAx3Zn.js`),[])}),zU({id:`python`,extensions:[`.py`,`.rpy`,`.pyw`,`.cpy`,`.gyp`,`.gypi`],aliases:[`Python`,`py`],firstLine:`^#!/.*\\bpython[0-9.-]*\\b`,loader:()=>_e(()=>import(`./python-BgexpWZh.js`),__vite__mapDeps([16,1,2,3,4,5,6,7]))}),zU({id:`qsharp`,extensions:[`.qs`],aliases:[`Q#`,`qsharp`],loader:()=>_e(()=>import(`./qsharp-DkqhCAOL.js`),[])}),zU({id:`r`,extensions:[`.r`,`.rhistory`,`.rmd`,`.rprofile`,`.rt`],aliases:[`R`,`r`],loader:()=>_e(()=>import(`./r-BwWrilGY.js`),[])}),zU({id:`razor`,extensions:[`.cshtml`],aliases:[`Razor`,`razor`],mimetypes:[`text/x-cshtml`],loader:()=>_e(()=>import(`./razor-E1kWyvkT.js`),__vite__mapDeps([17,1,2,3,4,5,6,7]))}),zU({id:`redis`,extensions:[`.redis`],aliases:[`redis`],loader:()=>_e(()=>import(`./redis-ClamHrr6.js`),[])}),zU({id:`redshift`,extensions:[],aliases:[`Redshift`,`redshift`],loader:()=>_e(()=>import(`./redshift-DT7zqm-g.js`),[])}),zU({id:`restructuredtext`,extensions:[`.rst`],aliases:[`reStructuredText`,`restructuredtext`],loader:()=>_e(()=>import(`./restructuredtext-BYgofb2h.js`),[])}),zU({id:`ruby`,extensions:[`.rb`,`.rbx`,`.rjs`,`.gemspec`,`.pp`],filenames:[`rakefile`,`Gemfile`],aliases:[`Ruby`,`rb`],loader:()=>_e(()=>import(`./ruby-DezsRK8O.js`),[])}),zU({id:`rust`,extensions:[`.rs`,`.rlib`],aliases:[`Rust`,`rust`],loader:()=>_e(()=>import(`./rust-DdL9SqIa.js`),[])}),zU({id:`sb`,extensions:[`.sb`],aliases:[`Small Basic`,`sb`],loader:()=>_e(()=>import(`./sb-CcwsVR0C.js`),[])}),zU({id:`scala`,extensions:[`.scala`,`.sc`,`.sbt`],aliases:[`Scala`,`scala`,`SBT`,`Sbt`,`sbt`,`Dotty`,`dotty`],mimetypes:[`text/x-scala-source`,`text/x-scala`,`text/x-sbt`,`text/x-dotty`],loader:()=>_e(()=>import(`./scala-DHpiXF5c.js`),[])}),zU({id:`scheme`,extensions:[`.scm`,`.ss`,`.sch`,`.rkt`],aliases:[`scheme`,`Scheme`],loader:()=>_e(()=>import(`./scheme-BeGwcela.js`),[])}),zU({id:`scss`,extensions:[`.scss`],aliases:[`Sass`,`sass`,`scss`],mimetypes:[`text/x-scss`,`text/scss`],loader:()=>_e(()=>import(`./scss-gp-XZpBa.js`),[])}),zU({id:`shell`,extensions:[`.sh`,`.bash`],aliases:[`Shell`,`sh`],loader:()=>_e(()=>import(`./shell-CC2rA5mh.js`),[])}),zU({id:`sol`,extensions:[`.sol`],aliases:[`sol`,`solidity`,`Solidity`],loader:()=>_e(()=>import(`./solidity-BEEn4gHE.js`),[])}),zU({id:`aes`,extensions:[`.aes`],aliases:[`aes`,`sophia`,`Sophia`],loader:()=>_e(()=>import(`./sophia-CRfGWb83.js`),[])}),zU({id:`sparql`,extensions:[`.rq`],aliases:[`sparql`,`SPARQL`],loader:()=>_e(()=>import(`./sparql-D_Lu-MrJ.js`),[])}),zU({id:`sql`,extensions:[`.sql`],aliases:[`SQL`],loader:()=>_e(()=>import(`./sql-NEE52Syq.js`),[])}),zU({id:`st`,extensions:[`.st`,`.iecst`,`.iecplc`,`.lc3lib`,`.TcPOU`,`.TcDUT`,`.TcGVL`,`.TcIO`],aliases:[`StructuredText`,`scl`,`stl`],loader:()=>_e(()=>import(`./st-DbInun42.js`),[])}),zU({id:`swift`,aliases:[`Swift`,`swift`],extensions:[`.swift`],mimetypes:[`text/swift`],loader:()=>_e(()=>import(`./swift-Bxkupp3x.js`),[])}),zU({id:`systemverilog`,extensions:[`.sv`,`.svh`],aliases:[`SV`,`sv`,`SystemVerilog`,`systemverilog`],loader:()=>_e(()=>import(`./systemverilog-Bz4Y3fRF.js`),[])}),zU({id:`verilog`,extensions:[`.v`,`.vh`],aliases:[`V`,`v`,`Verilog`,`verilog`],loader:()=>_e(()=>import(`./systemverilog-Bz4Y3fRF.js`),[])}),zU({id:`tcl`,extensions:[`.tcl`],aliases:[`tcl`,`Tcl`,`tcltk`,`TclTk`,`tcl/tk`,`Tcl/Tk`],loader:()=>_e(()=>import(`./tcl-DISqw1ZD.js`),[])}),zU({id:`twig`,extensions:[`.twig`],aliases:[`Twig`,`twig`],mimetypes:[`text/x-twig`],loader:()=>_e(()=>import(`./twig-De2hgUGE.js`),[])}),zU({id:`typescript`,extensions:[`.ts`,`.tsx`,`.cts`,`.mts`],aliases:[`TypeScript`,`ts`,`typescript`],mimetypes:[`text/typescript`],loader:()=>_e(()=>import(`./typescript-BheZLRDM.js`),__vite__mapDeps([13,1,2,3,4,5,6,7]))}),zU({id:`typespec`,extensions:[`.tsp`],aliases:[`TypeSpec`],loader:()=>_e(()=>import(`./typespec-B8J7ngcE.js`),[])}),zU({id:`vb`,extensions:[`.vb`],aliases:[`Visual Basic`,`vb`],loader:()=>_e(()=>import(`./vb-DV3o63ZY.js`),[])}),zU({id:`wgsl`,extensions:[`.wgsl`],aliases:[`WebGPU Shading Language`,`WGSL`,`wgsl`],loader:()=>_e(()=>import(`./wgsl-DpFanUEy.js`),[])}),zU({id:`xml`,extensions:[`.xml`,`.xsd`,`.dtd`,`.ascx`,`.csproj`,`.config`,`.props`,`.targets`,`.wxi`,`.wxl`,`.wxs`,`.xaml`,`.svg`,`.svgz`,`.opf`,`.xslt`,`.xsl`],firstLine:`(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)`,aliases:[`XML`,`xml`],mimetypes:[`text/xml`,`application/xml`,`application/xaml+xml`,`application/xml-dtd`],loader:()=>_e(()=>import(`./xml-DaVLg9zI.js`),__vite__mapDeps([18,1,2,3,4,5,6,7]))}),zU({id:`yaml`,extensions:[`.yaml`,`.yml`],aliases:[`YAML`,`yaml`,`YML`,`yml`],mimetypes:[`application/x-yaml`,`text/x-yaml`],loader:()=>_e(()=>import(`./yaml-D6XGTfOj.js`),__vite__mapDeps([19,1,2,3,4,5,6,7]))});var BU=class{constructor(e,t,n){this._onDidChange=new Uu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},VU={validate:!0,lint:{compatibleVendorPrefixes:`ignore`,vendorPrefix:`warning`,duplicateProperties:`warning`,emptyRules:`warning`,importStatement:`ignore`,boxModel:`ignore`,universalSelector:`ignore`,zeroUnits:`ignore`,fontFaceProperties:`warning`,hexColorLength:`error`,argumentsInColorFunction:`error`,unknownProperties:`warning`,ieHack:`ignore`,unknownVendorSpecificProperties:`ignore`,propertyIgnoredDueToDisplay:`warning`,important:`ignore`,float:`ignore`,idSelector:`ignore`},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:`collapse`,maxPreserveNewLines:void 0,preserveNewLines:!0}},HU={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},UU=new BU(`css`,VU,HU),WU=new BU(`scss`,VU,HU),GU=new BU(`less`,VU,HU);function KU(){return _e(()=>import(`./cssMode-0Z3pyDOW.js`),__vite__mapDeps([20,1,2,3,4,5,6,7,8,21]))}Xc.onLanguage(`less`,()=>{KU().then(e=>e.setupMode(GU))}),Xc.onLanguage(`scss`,()=>{KU().then(e=>e.setupMode(WU))}),Xc.onLanguage(`css`,()=>{KU().then(e=>e.setupMode(UU))});var qU=class{constructor(e,t,n){this._onDidChange=new Uu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},JU={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:`default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var`,contentUnformatted:`pre`,indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:`head, body, /html`,wrapAttributes:`auto`},suggest:{},data:{useDefaultDataProvider:!0}};function YU(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===XU,documentFormattingEdits:e===XU,documentRangeFormattingEdits:e===XU}}var XU=`html`,ZU=`handlebars`,QU=`razor`;eW(XU,JU,YU(XU)).defaults,eW(ZU,JU,YU(ZU)).defaults,eW(QU,JU,YU(QU)).defaults;function $U(){return _e(()=>import(`./htmlMode-CkHZy0mE.js`),__vite__mapDeps([22,1,2,3,4,5,6,7,8,21]))}function eW(e,t=JU,n=YU(e)){let r=new qU(e,t,n),i,a=Xc.onLanguage(e,async()=>{i=(await $U()).setupMode(r)});return{defaults:r,dispose(){a.dispose(),i?.dispose(),i=void 0}}}var tW=new class{constructor(e,t,n){this._onDidChange=new Uu,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function nW(){return _e(()=>import(`./jsonMode-DSQ0uLqA.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,8,21]))}Xc.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),Xc.onLanguage(`json`,()=>{nW().then(e=>e.setupMode(tW))});var rW=`__monacoFindWidgetTabIndexPatchApplied`,iW=`__monacoFindWidgetOriginalTabIndex`;function aW(e,t){let n=e?._domNode;if(!n)return;let r=n.querySelectorAll(`input, textarea, [tabindex], [role="button"], [role="checkbox"]`);for(let e of r)if(e instanceof HTMLElement){if(t){if(!(iW in e.dataset))continue;let t=e.dataset[iW];t===``?e.removeAttribute(`tabindex`):e.tabIndex=Number(t),delete e.dataset[iW]}else iW in e.dataset||(e.dataset[iW]=e.getAttribute(`tabindex`)??``),e.tabIndex=-1}}if(!ty[rW]){let e=ty.prototype._reveal,t=ty.prototype._hide;ty.prototype._reveal=function(...t){e.apply(this,t),aW(this,!0)},ty.prototype._hide=function(...e){t.apply(this,e),aW(this,!1)},ty[rW]=!0}function oW(e){return new Worker(`/assets/editor.worker-q-txB4vs.js`,{name:e?.name})}function sW(e){return new Worker(`/assets/ts.worker-D7T1-Ig5.js`,{name:e?.name})}var cW=globalThis;cW.MonacoEnvironment={getWorker(e,t){return t===`typescript`||t===`javascript`?new sW:new oW}};var lW=Df(((e,t)=>{t.exports={}})),uW=Af(Df(((e,t)=>{var n={};(e=>{var t=Object.defineProperty,n=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},r=e=>e,i={};n(i,{ANONYMOUS:()=>d0,AccessFlags:()=>gi,AssertionLevel:()=>jt,AssignmentDeclarationKind:()=>Ei,AssignmentKind:()=>B_,Associativity:()=>Yv,BreakpointResolver:()=>n3,BuilderFileEmit:()=>Bq,BuilderProgramKind:()=>hJ,BuilderState:()=>zq,CallHierarchy:()=>r3,CharacterCodes:()=>U,CheckFlags:()=>li,CheckMode:()=>wH,ClassificationType:()=>fQ,ClassificationTypeNames:()=>dQ,CommentDirectiveType:()=>Wr,Comparison:()=>s,CompletionInfoFlags:()=>iQ,CompletionTriggerKind:()=>ZZ,Completions:()=>s5,ContainerFlags:()=>yV,ContextFlags:()=>ei,Debug:()=>H,DiagnosticCategory:()=>Di,Diagnostics:()=>q,DocumentHighlights:()=>o2,ElementFlags:()=>hi,EmitFlags:()=>Gi,EmitHint:()=>Yi,EmitOnly:()=>Jr,EndOfLineState:()=>sQ,ExitStatus:()=>Xr,ExportKind:()=>cre,Extension:()=>Hi,ExternalEmitHelpers:()=>Ji,FileIncludeKind:()=>Kr,FilePreprocessingDiagnosticsKind:()=>qr,FileSystemEntryKind:()=>Ta,FileWatcherEventKind:()=>ia,FindAllReferences:()=>N5,FlattenLevel:()=>uW,FlowFlags:()=>Ur,ForegroundColorEscapeSequences:()=>HK,FunctionFlags:()=>Ev,GeneratedIdentifierFlags:()=>Br,GetLiteralTextFlags:()=>Rp,GoToDefinition:()=>H5,HighlightSpanKind:()=>$Z,IdentifierNameMap:()=>NU,ImportKind:()=>sre,ImportsNotUsedAsValues:()=>Ii,IndentStyle:()=>eQ,IndexFlags:()=>_i,IndexKind:()=>xi,InferenceFlags:()=>wi,InferencePriority:()=>Ci,InlayHintKind:()=>QZ,InlayHints:()=>J5,InternalEmitFlags:()=>Ki,InternalNodeBuilderFlags:()=>ni,InternalSymbolName:()=>ui,IntersectionFlags:()=>$r,InvalidatedProjectKind:()=>rX,JSDocParsingMode:()=>ta,JsDoc:()=>Y5,JsTyping:()=>SZ,JsxEmit:()=>Fi,JsxFlags:()=>Lr,JsxReferenceKind:()=>vi,LanguageFeatureMinimumTarget:()=>qi,LanguageServiceMode:()=>qZ,LanguageVariant:()=>Bi,LexicalEnvironmentFlags:()=>Zi,ListFormat:()=>Qi,LogLevel:()=>Dn,MapCode:()=>Q5,MemberOverrideStatus:()=>Zr,ModifierFlags:()=>Ir,ModuleDetectionKind:()=>Ai,ModuleInstanceState:()=>mV,ModuleKind:()=>Pi,ModuleResolutionKind:()=>ki,ModuleSpecifierEnding:()=>qw,NavigateTo:()=>Kie,NavigationBar:()=>rae,NewLineKind:()=>Li,NodeBuilderFlags:()=>ti,NodeCheckFlags:()=>di,NodeFactoryFlags:()=>vD,NodeFlags:()=>Fr,NodeResolutionFeatures:()=>nB,ObjectFlags:()=>pi,OperationCanceledException:()=>Gr,OperatorPrecedence:()=>ey,OrganizeImports:()=>t7,OrganizeImportsMode:()=>XZ,OuterExpressionKinds:()=>Xi,OutliningElementsCollector:()=>o7,OutliningSpanKind:()=>aQ,OutputFileType:()=>oQ,PackageJsonAutoImportPreference:()=>KZ,PackageJsonDependencyGroup:()=>GZ,PatternMatchKind:()=>d2,PollingInterval:()=>aa,PollingWatchKind:()=>Ni,PragmaKindFlags:()=>$i,PredicateSemantics:()=>zr,PreparePasteEdits:()=>Q7,PrivateIdentifierKind:()=>EO,ProcessLevel:()=>VW,ProgramUpdateLevel:()=>bK,QuotePreference:()=>zne,RegularExpressionFlags:()=>Vr,RelationComparisonResult:()=>Rr,Rename:()=>u7,ScriptElementKind:()=>lQ,ScriptElementKindModifier:()=>uQ,ScriptKind:()=>Ri,ScriptSnapshot:()=>WZ,ScriptTarget:()=>zi,SemanticClassificationFormat:()=>YZ,SemanticMeaning:()=>mQ,SemicolonPreference:()=>tQ,SignatureCheckMode:()=>TH,SignatureFlags:()=>bi,SignatureHelp:()=>f7,SignatureInfo:()=>Rq,SignatureKind:()=>yi,SmartSelectionRange:()=>m7,SnippetKind:()=>Wi,StatisticType:()=>RX,StructureIsReused:()=>Yr,SymbolAccessibility:()=>ai,SymbolDisplay:()=>v7,SymbolDisplayPartKind:()=>rQ,SymbolFlags:()=>ci,SymbolFormatFlags:()=>ii,SyntaxKind:()=>Pr,Ternary:()=>Ti,ThrottledCancellationToken:()=>X4,TokenClass:()=>cQ,TokenFlags:()=>Hr,TransformFlags:()=>Ui,TypeFacts:()=>SH,TypeFlags:()=>fi,TypeFormatFlags:()=>ri,TypeMapKind:()=>Si,TypePredicateKind:()=>oi,TypeReferenceSerializationKind:()=>si,UnionReduction:()=>Qr,UpToDateStatusType:()=>jY,VarianceFlags:()=>mi,Version:()=>Fn,VersionRange:()=>Rn,WatchDirectoryFlags:()=>Vi,WatchDirectoryKind:()=>Mi,WatchFileKind:()=>ji,WatchLogLevel:()=>OK,WatchType:()=>gY,accessPrivateIdentifier:()=>aW,addEmitFlags:()=>WD,addEmitHelper:()=>uO,addEmitHelpers:()=>dO,addInternalEmitFlags:()=>KD,addNodeFactoryPatcher:()=>bD,addObjectAllocatorPatcher:()=>WS,addRange:()=>Ee,addRelatedInfo:()=>vT,addSyntheticLeadingComment:()=>rO,addSyntheticTrailingComment:()=>oO,addToSeen:()=>ES,advancedAsyncSuperHelper:()=>ik,affectsDeclarationPathOptionDeclarations:()=>AI,affectsEmitOptionDeclarations:()=>kI,allKeysStartWithDot:()=>LB,altDirectorySeparator:()=>Fa,and:()=>gn,append:()=>I,appendIfUnique:()=>Oe,arrayFrom:()=>$e,arrayIsEqualTo:()=>xe,arrayIsHomogeneous:()=>LT,arrayOf:()=>Qe,arrayReverseIterator:()=>je,arrayToMap:()=>nt,arrayToMultiMap:()=>it,arrayToNumericMap:()=>rt,assertType:()=>yn,assign:()=>et,asyncSuperHelper:()=>rk,attachFileToDiagnostics:()=>eC,base64decode:()=>Ox,base64encode:()=>Dx,binarySearch:()=>We,binarySearchKey:()=>L,bindSourceFile:()=>SV,breakIntoCharacterSpans:()=>fie,breakIntoWordSpans:()=>pie,buildLinkParts:()=>R1,buildOpts:()=>VI,buildOverload:()=>JOe,bundlerModuleNameResolver:()=>sB,canBeConvertedToAsync:()=>b2,canHaveDecorators:()=>cF,canHaveExportModifier:()=>oE,canHaveFlowNode:()=>T_,canHaveIllegalDecorators:()=>vP,canHaveIllegalModifiers:()=>yP,canHaveIllegalType:()=>gP,canHaveIllegalTypeParameters:()=>_P,canHaveJSDoc:()=>E_,canHaveLocals:()=>Fd,canHaveModifiers:()=>sF,canHaveModuleSpecifier:()=>s_,canHaveStatements:()=>uD,canHaveSymbol:()=>Pd,canIncludeBindAndCheckDiagnostics:()=>TT,canJsonReportNoInputFiles:()=>hR,canProduceDiagnostics:()=>bG,canUsePropertyAccess:()=>cE,canWatchAffectingLocation:()=>RJ,canWatchAtTypes:()=>FJ,canWatchDirectoryOrFile:()=>NJ,canWatchDirectoryOrFilePath:()=>PJ,cartesianProduct:()=>Sn,cast:()=>bt,chainBundle:()=>EU,chainDiagnosticMessages:()=>aC,changeAnyExtension:()=>bo,changeCompilerHostLikeToUseCache:()=>zK,changeExtension:()=>iT,changeFullExtension:()=>xo,changesAffectModuleResolution:()=>Mf,changesAffectingProgramStructure:()=>Pf,characterCodeToRegularExpressionFlag:()=>as,childIsDecorated:()=>tg,classElementOrClassElementParameterIsDecorated:()=>rg,classHasClassThisAssignment:()=>TW,classHasDeclaredOrExplicitlyAssignedName:()=>MW,classHasExplicitlyAssignedName:()=>jW,classOrConstructorParameterIsDecorated:()=>ng,classicNameResolver:()=>sV,classifier:()=>c3,cleanExtendedConfigCache:()=>CK,clear:()=>O,clearMap:()=>_S,clearSharedExtendedConfigFileWatcher:()=>SK,climbPastPropertyAccess:()=>OQ,clone:()=>st,cloneCompilerOptions:()=>I$,closeFileWatcher:()=>sS,closeFileWatcherOf:()=>jK,codefix:()=>l3,collapseTextChangeRangesAcrossMultipleVersions:()=>wc,collectExternalModuleInfo:()=>AU,combine:()=>we,combinePaths:()=>so,commandLineOptionOfCustomType:()=>LI,commentPragmas:()=>ea,commonOptionsWithBuild:()=>CI,compact:()=>Se,compareBooleans:()=>Xt,compareComparableValues:()=>Ft,compareDataObjects:()=>gS,compareDiagnostics:()=>cC,compareEmitHelpers:()=>OO,compareNumberOfDirectorySeparators:()=>$w,comparePaths:()=>Eo,comparePathsCaseInsensitive:()=>To,comparePathsCaseSensitive:()=>wo,comparePatternKeys:()=>HB,compareProperties:()=>Yt,compareStringsCaseInsensitive:()=>Bt,compareStringsCaseInsensitiveEslintCompatible:()=>Vt,compareStringsCaseSensitive:()=>Ht,compareStringsCaseSensitiveUI:()=>Jt,compareTextSpans:()=>Lt,compareValues:()=>It,compilerOptionsAffectDeclarationPath:()=>$C,compilerOptionsAffectEmit:()=>QC,compilerOptionsAffectSemanticDiagnostics:()=>ZC,compilerOptionsDidYouMeanDiagnostics:()=>nL,compilerOptionsIndicateEsModules:()=>e1,computeCommonSourceDirectoryOfFilenames:()=>PK,computeLineAndCharacterOfPosition:()=>us,computeLineOfPosition:()=>ds,computeLineStarts:()=>os,computePositionOfLineAndCharacter:()=>cs,computeSignatureWithDiagnostics:()=>vJ,computeSuggestionDiagnostics:()=>g2,computedOptions:()=>TC,concatenate:()=>de,concatenateDiagnosticMessageChains:()=>oC,consumesNodeCoreModules:()=>D0,contains:()=>C,containsIgnoredPath:()=>JT,containsObjectRestOrSpread:()=>oF,containsParseError:()=>$f,containsPath:()=>Do,convertCompilerOptionsForTelemetry:()=>QR,convertCompilerOptionsFromJson:()=>wR,convertJsonOption:()=>NR,convertToBase64:()=>Tx,convertToJson:()=>FL,convertToObject:()=>PL,convertToOptionsWithAbsolutePaths:()=>YL,convertToRelativePath:()=>jo,convertToTSConfig:()=>RL,convertTypeAcquisitionFromJson:()=>TR,copyComments:()=>Z1,copyEntries:()=>zf,copyLeadingComments:()=>e0,copyProperties:()=>lt,copyTrailingAsLeadingComments:()=>n0,copyTrailingComments:()=>t0,couldStartTrivia:()=>Ss,countWhere:()=>T,createAbstractBuilder:()=>AJ,createAccessorPropertyBackingField:()=>$P,createAccessorPropertyGetRedirector:()=>eF,createAccessorPropertySetRedirector:()=>tF,createBaseNodeFactory:()=>fD,createBinaryExpressionTrampoline:()=>GP,createBuilderProgram:()=>yJ,createBuilderProgramUsingIncrementalBuildInfo:()=>wJ,createBuilderStatusReporter:()=>zY,createCacheableExportInfoMap:()=>Q0,createCachedDirectoryStructureHost:()=>yK,createClassifier:()=>_re,createCommentDirectivesMap:()=>Sp,createCompilerDiagnostic:()=>rC,createCompilerDiagnosticForInvalidCustomType:()=>JI,createCompilerDiagnosticFromMessageChain:()=>iC,createCompilerHost:()=>FK,createCompilerHostFromProgramHost:()=>vY,createCompilerHostWorker:()=>RK,createDetachedDiagnostic:()=>ZS,createDiagnosticCollection:()=>iy,createDiagnosticForFileFromMessageChain:()=>jm,createDiagnosticForNode:()=>wm,createDiagnosticForNodeArray:()=>Tm,createDiagnosticForNodeArrayFromMessageChain:()=>Om,createDiagnosticForNodeFromMessageChain:()=>Dm,createDiagnosticForNodeInSourceFile:()=>Em,createDiagnosticForRange:()=>Nm,createDiagnosticMessageChainFromDiagnostic:()=>Mm,createDiagnosticReporter:()=>JJ,createDocumentPositionMapper:()=>xU,createDocumentRegistry:()=>Fre,createDocumentRegistryInternal:()=>c2,createEmitAndSemanticDiagnosticsBuilderProgram:()=>kJ,createEmitHelperFactory:()=>DO,createEmptyExports:()=>xN,createEvaluator:()=>jE,createExpressionForJsxElement:()=>DN,createExpressionForJsxFragment:()=>ON,createExpressionForObjectLiteralElementLike:()=>IN,createExpressionForPropertyName:()=>jN,createExpressionFromEntityName:()=>AN,createExternalHelpersImportDeclarationIfNeeded:()=>eP,createFileDiagnostic:()=>tC,createFileDiagnosticFromMessageChain:()=>Am,createFlowNode:()=>bV,createForOfBindingStatement:()=>kN,createFutureSourceFile:()=>Z0,createGetCanonicalFileName:()=>cn,createGetIsolatedDeclarationErrors:()=>CG,createGetSourceFile:()=>IK,createGetSymbolAccessibilityDiagnosticForNode:()=>SG,createGetSymbolAccessibilityDiagnosticForNodeName:()=>xG,createGetSymbolWalker:()=>DV,createIncrementalCompilerHost:()=>OY,createIncrementalProgram:()=>kY,createJsxFactoryExpression:()=>TN,createLanguageService:()=>Z4,createLanguageServiceSourceFile:()=>J4,createMemberAccessForPropertyName:()=>SN,createModeAwareCache:()=>Bz,createModeAwareCacheKey:()=>zz,createModeMismatchDetails:()=>qf,createModuleNotFoundChain:()=>Kf,createModuleResolutionCache:()=>Gz,createModuleResolutionLoader:()=>cq,createModuleResolutionLoaderUsingGlobalCache:()=>GJ,createModuleSpecifierResolutionHost:()=>t1,createMultiMap:()=>dt,createNameResolver:()=>PE,createNodeConverters:()=>hD,createNodeFactory:()=>xD,createOptionNameMap:()=>UI,createOverload:()=>e9,createPackageJsonImportFilter:()=>E0,createPackageJsonInfo:()=>T0,createParenthesizerRules:()=>pD,createPatternMatcher:()=>Jre,createPrinter:()=>mK,createPrinterWithDefaults:()=>uK,createPrinterWithRemoveComments:()=>dK,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>fK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>pK,createProgram:()=>Cq,createProgramDiagnostics:()=>Iq,createProgramHost:()=>xY,createPropertyNameNodeForIdentifierOrLiteral:()=>nE,createQueue:()=>pt,createRange:()=>Ix,createRedirectedBuilderProgram:()=>DJ,createResolutionCache:()=>KJ,createRuntimeTypeSerializer:()=>$W,createScanner:()=>Hs,createSemanticDiagnosticsBuilderProgram:()=>OJ,createSet:()=>mt,createSolutionBuilder:()=>HY,createSolutionBuilderHost:()=>BY,createSolutionBuilderWithWatch:()=>UY,createSolutionBuilderWithWatchHost:()=>VY,createSortedArray:()=>ve,createSourceFile:()=>GF,createSourceMapGenerator:()=>tU,createSourceMapSource:()=>ID,createSuperAccessVariableStatement:()=>rG,createSymbolTable:()=>Ef,createSymlinkCache:()=>aw,createSyntacticTypeNodeBuilder:()=>xZ,createSystemWatchFunctions:()=>Aa,createTextChange:()=>G$,createTextChangeFromStartLength:()=>W$,createTextChangeRange:()=>Sc,createTextRangeFromNode:()=>V$,createTextRangeFromSpan:()=>U$,createTextSpan:()=>vc,createTextSpanFromBounds:()=>yc,createTextSpanFromNode:()=>z$,createTextSpanFromRange:()=>H$,createTextSpanFromStringLiteralLikeContent:()=>B$,createTextWriter:()=>ky,createTokenRange:()=>Vx,createTypeChecker:()=>MH,createTypeReferenceDirectiveResolutionCache:()=>Kz,createTypeReferenceResolutionLoader:()=>uq,createWatchCompilerHost:()=>wte,createWatchCompilerHostOfConfigFile:()=>wY,createWatchCompilerHostOfFilesAndCompilerOptions:()=>TY,createWatchFactory:()=>_Y,createWatchHost:()=>hY,createWatchProgram:()=>AY,createWatchStatusReporter:()=>ZJ,createWriteFileMeasuringIO:()=>LK,declarationNameToString:()=>vm,decodeMappings:()=>uU,decodedTextSpanIntersectsWith:()=>pc,deduplicate:()=>ge,defaultHoverMaximumTruncationLength:()=>Cf,defaultInitCompilerOptions:()=>qI,defaultMaximumTruncationLength:()=>xf,diagnosticCategoryName:()=>Oi,diagnosticToString:()=>W0,diagnosticsEqualityComparer:()=>mC,directoryProbablyExists:()=>Mx,directorySeparator:()=>Pa,displayPart:()=>E1,displayPartsToString:()=>G4,disposeEmitNodes:()=>VD,documentSpansEqual:()=>y1,dumpTracingLegend:()=>Nr,elementAt:()=>Ne,elideNodes:()=>JP,emitDetachedComments:()=>yb,emitFiles:()=>oK,emitFilesAndReportErrors:()=>dY,emitFilesAndReportErrorsAndGetExitStatus:()=>fY,emitModuleKindIsNonNodeESM:()=>WC,emitNewLineBeforeLeadingCommentOfPosition:()=>_b,emitResolverSkipsTypeChecking:()=>aK,emitSkippedWithNoDiagnostics:()=>Oq,emptyArray:()=>c,emptyFileSystemEntries:()=>hT,emptyMap:()=>l,emptyOptions:()=>JZ,endsWith:()=>Qt,ensurePathIsNonModuleName:()=>yo,ensureScriptKind:()=>Aw,ensureTrailingDirectorySeparator:()=>vo,entityNameToString:()=>Cm,enumerateInsertsAndDeletes:()=>xn,equalOwnProperties:()=>tt,equateStringsCaseInsensitive:()=>Nt,equateStringsCaseSensitive:()=>Pt,equateValues:()=>Mt,escapeJsxAttributeString:()=>Sy,escapeLeadingUnderscores:()=>Vc,escapeNonAsciiString:()=>_y,escapeSnippetText:()=>eE,escapeString:()=>hy,escapeTemplateSubstitution:()=>oy,evaluatorResult:()=>AE,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>VE,executeCommandLine:()=>Qte,expandPreOrPostfixIncrementOrDecrementExpression:()=>LN,explainFiles:()=>aY,explainIfFileIsRedirectAndImpliedFormat:()=>oY,exportAssignmentIsAlias:()=>cv,expressionResultIsUnused:()=>qT,extend:()=>ct,extensionFromPath:()=>dT,extensionIsTS:()=>lT,extensionsNotSupportingExtensionlessResolution:()=>Bw,externalHelpersModuleNameText:()=>bf,factory:()=>Y,fileExtensionIs:()=>Ka,fileExtensionIsOneOf:()=>qa,fileIncludeReasonToDiagnostics:()=>lY,fileShouldUseJavaScriptRequire:()=>Y0,filter:()=>E,filterMutate:()=>D,filterSemanticDiagnostics:()=>Aq,find:()=>y,findAncestor:()=>Rc,findBestPatternMatch:()=>dn,findChildOfKind:()=>i$,findComputedPropertyNameCacheAssignment:()=>nF,findConfigFile:()=>MK,findConstructorDeclaration:()=>NE,findContainingList:()=>a$,findDiagnosticForNode:()=>k0,findFirstNonJsxWhitespaceToken:()=>f$,findIndex:()=>x,findLast:()=>b,findLastIndex:()=>S,findListItemInfo:()=>n$,findModifier:()=>h1,findNextToken:()=>m$,findPackageJson:()=>w0,findPackageJsons:()=>C0,findPrecedingMatchingToken:()=>w$,findPrecedingToken:()=>h$,findSuperStatementIndexPath:()=>VU,findTokenOnLeftOfPosition:()=>p$,findUseStrictPrologue:()=>HN,first:()=>Ie,firstDefined:()=>p,firstDefinedIterator:()=>m,firstIterator:()=>Le,firstOrOnly:()=>P0,firstOrUndefined:()=>Pe,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>S2,flatMap:()=>ne,flatMapIterator:()=>j,flatMapToMutable:()=>re,flatten:()=>te,flattenCommaList:()=>aF,flattenDestructuringAssignment:()=>dW,flattenDestructuringBinding:()=>mW,flattenDiagnosticMessageText:()=>ZK,forEach:()=>d,forEachAncestor:()=>If,forEachAncestorDirectory:()=>Po,forEachAncestorDirectoryStoppingAtGlobalCache:()=>XB,forEachChild:()=>VF,forEachChildRecursively:()=>HF,forEachDynamicImportOrRequireCall:()=>UE,forEachEmittedFile:()=>HG,forEachEnclosingBlockScopeContainer:()=>_m,forEachEntry:()=>Lf,forEachExternalModuleToImportFrom:()=>e2,forEachImportClauseDeclaration:()=>h_,forEachKey:()=>Rf,forEachLeadingCommentRange:()=>js,forEachNameInAccessChainWalkingLeft:()=>NS,forEachNameOfDefaultExport:()=>r2,forEachOptionsSyntaxByName:()=>$E,forEachProjectReference:()=>YE,forEachPropertyAssignment:()=>Ah,forEachResolvedProjectReference:()=>JE,forEachReturnStatement:()=>mh,forEachRight:()=>f,forEachTrailingCommentRange:()=>Ms,forEachTsConfigPropArray:()=>Nh,forEachUnique:()=>x1,forEachYieldExpression:()=>hh,formatColorAndReset:()=>JK,formatDiagnostic:()=>VK,formatDiagnostics:()=>BK,formatDiagnosticsWithColorAndContext:()=>XK,formatGeneratedName:()=>QP,formatGeneratedNamePart:()=>XP,formatLocation:()=>YK,formatMessage:()=>nC,formatStringFromArgs:()=>KS,formatting:()=>k7,generateDjb2Hash:()=>na,generateTSConfig:()=>JL,getAdjustedReferenceLocation:()=>s$,getAdjustedRenameLocation:()=>c$,getAliasDeclarationFromName:()=>ov,getAllAccessorDeclarations:()=>cb,getAllDecoratorsOfClass:()=>XU,getAllDecoratorsOfClassElement:()=>ZU,getAllJSDocTags:()=>Pl,getAllJSDocTagsOfKind:()=>Fl,getAllKeys:()=>Xe,getAllProjectOutputs:()=>nK,getAllSuperTypeNodes:()=>mv,getAllowImportingTsExtensions:()=>EC,getAllowJSCompilerOption:()=>VC,getAllowSyntheticDefaultImports:()=>NC,getAlwaysStrict:()=>UC,getAncestor:()=>_v,getAnyExtensionFromPath:()=>ro,getAreDeclarationMapsEnabled:()=>BC,getAssignedExpandoInitializer:()=>Pg,getAssignedName:()=>$c,getAssignmentDeclarationKind:()=>Ug,getAssignmentDeclarationPropertyAccessKind:()=>t_,getAssignmentTargetKind:()=>H_,getAutomaticTypeDirectiveNames:()=>Az,getBaseFileName:()=>eo,getBinaryOperatorPrecedence:()=>ny,getBuildInfo:()=>cK,getBuildInfoFileVersionMap:()=>TJ,getBuildInfoText:()=>sK,getBuildOrderFromAnyBuildOrder:()=>RY,getBuilderCreationParameters:()=>gJ,getBuilderFileEmit:()=>Hq,getCanonicalDiagnostic:()=>Pm,getCheckFlags:()=>cS,getClassExtendsHeritageElement:()=>fv,getClassLikeDeclarationOfSymbol:()=>xS,getCombinedLocalAndExportSymbolFlags:()=>dS,getCombinedModifierFlags:()=>jc,getCombinedNodeFlags:()=>Nc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Mc,getCommentRange:()=>$D,getCommonSourceDirectory:()=>$G,getCommonSourceDirectoryOfConfig:()=>tK,getCompilerOptionValue:()=>ew,getComputedCommonSourceDirectory:()=>eK,getConditions:()=>Oz,getConfigFileParsingDiagnostics:()=>yq,getConstantValue:()=>cO,getContainerFlags:()=>TV,getContainerNode:()=>HQ,getContainingClass:()=>Ih,getContainingClassExcludingClassDecorators:()=>zh,getContainingClassStaticBlock:()=>Lh,getContainingFunction:()=>Ph,getContainingFunctionDeclaration:()=>Fh,getContainingFunctionOrClassStaticBlock:()=>Rh,getContainingNodeArray:()=>YT,getContainingObjectLiteralElement:()=>$4,getContextualTypeFromParent:()=>a0,getContextualTypeFromParentOrAncestorTypeNode:()=>o$,getDeclarationDiagnostics:()=>wG,getDeclarationEmitExtensionForPath:()=>By,getDeclarationEmitOutputFilePath:()=>Ry,getDeclarationEmitOutputFilePathWorker:()=>zy,getDeclarationFileExtension:()=>iI,getDeclarationFromName:()=>rv,getDeclarationModifierFlagsFromSymbol:()=>lS,getDeclarationOfKind:()=>wf,getDeclarationsOfKind:()=>Tf,getDeclaredExpandoInitializer:()=>Mg,getDecorators:()=>el,getDefaultCompilerOptions:()=>K4,getDefaultFormatCodeSettings:()=>nQ,getDefaultLibFileName:()=>tc,getDefaultLibFilePath:()=>t3,getDefaultLikeExportInfo:()=>n2,getDefaultLikeExportNameFromDeclaration:()=>I0,getDefaultResolutionModeForFileWorker:()=>Eq,getDiagnosticText:()=>uL,getDiagnosticsWithinSpan:()=>A0,getDirectoryPath:()=>$a,getDirectoryToWatchFailedLookupLocation:()=>zJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>HJ,getDocumentPositionMapper:()=>h2,getDocumentSpansEqualityComparer:()=>b1,getESModuleInterop:()=>MC,getEditsForFileRename:()=>Lre,getEffectiveBaseTypeNode:()=>dv,getEffectiveConstraintOfTypeParameter:()=>zl,getEffectiveContainerForJSDocTemplateTag:()=>M_,getEffectiveImplementsTypeNodes:()=>pv,getEffectiveInitializer:()=>jg,getEffectiveJSDocHost:()=>F_,getEffectiveModifierFlags:()=>Rb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zb,getEffectiveModifierFlagsNoCache:()=>Gb,getEffectiveReturnTypeNode:()=>db,getEffectiveSetAccessorTypeAnnotationNode:()=>mb,getEffectiveTypeAnnotationNode:()=>lb,getEffectiveTypeParameterDeclarations:()=>Rl,getEffectiveTypeRoots:()=>bz,getElementOrPropertyAccessArgumentExpressionOrName:()=>$g,getElementOrPropertyAccessName:()=>e_,getElementsOfBindingOrAssignmentPattern:()=>mP,getEmitDeclarations:()=>LC,getEmitFlags:()=>Fp,getEmitHelpers:()=>pO,getEmitModuleDetectionKind:()=>AC,getEmitModuleFormatOfFileWorker:()=>wq,getEmitModuleKind:()=>OC,getEmitModuleResolutionKind:()=>kC,getEmitScriptTarget:()=>DC,getEmitStandardClassFields:()=>XC,getEnclosingBlockScopeContainer:()=>gm,getEnclosingContainer:()=>hm,getEncodedSemanticClassifications:()=>i2,getEncodedSyntacticClassifications:()=>a2,getEndLinePosition:()=>sp,getEntityNameFromTypeNode:()=>Xh,getEntrypointsFromPackageJsonInfo:()=>EB,getErrorCountForSummary:()=>$J,getErrorSpanForNode:()=>Rm,getErrorSummaryText:()=>rY,getEscapedTextOfIdentifierOrLiteral:()=>Iv,getEscapedTextOfJsxAttributeName:()=>gE,getEscapedTextOfJsxNamespacedName:()=>yE,getExpandoInitializer:()=>Fg,getExportAssignmentExpression:()=>lv,getExportInfoMap:()=>t2,getExportNeedsImportStarHelper:()=>DU,getExpressionAssociativity:()=>Xv,getExpressionPrecedence:()=>Qv,getExternalHelpersModuleName:()=>QN,getExternalModuleImportEqualsDeclarationExpression:()=>dg,getExternalModuleName:()=>f_,getExternalModuleNameFromDeclaration:()=>Fy,getExternalModuleNameFromPath:()=>Iy,getExternalModuleNameLiteral:()=>iP,getExternalModuleRequireArgument:()=>fg,getFallbackOptions:()=>AK,getFileEmitOutput:()=>Lq,getFileMatcherPatterns:()=>Tw,getFileNamesFromConfigSpecs:()=>BR,getFileWatcherEventKind:()=>ya,getFilesInErrorForSummary:()=>eY,getFirstConstructorWithBody:()=>$y,getFirstIdentifier:()=>cx,getFirstNonSpaceCharacterPosition:()=>Y1,getFirstProjectOutput:()=>iK,getFixableErrorSpanExpression:()=>M0,getFormatCodeSettingsForWriting:()=>G0,getFullWidth:()=>Vf,getFunctionFlags:()=>Dv,getHeritageClause:()=>gv,getHostSignatureFromJSDoc:()=>P_,getIdentifierAutoGenerate:()=>CO,getIdentifierGeneratedImportReference:()=>TO,getIdentifierTypeArguments:()=>xO,getImmediatelyInvokedFunctionExpression:()=>Gh,getImpliedNodeFormatForEmitWorker:()=>Tq,getImpliedNodeFormatForFile:()=>bq,getImpliedNodeFormatForFileWorker:()=>xq,getImportNeedsImportDefaultHelper:()=>kU,getImportNeedsImportStarHelper:()=>OU,getIndentString:()=>Dy,getInferredLibraryNameResolveFrom:()=>pq,getInitializedVariables:()=>iS,getInitializerOfBinaryExpression:()=>n_,getInitializerOfBindingOrAssignmentElement:()=>cP,getInterfaceBaseTypeNodes:()=>hv,getInternalEmitFlags:()=>Ip,getInvokedExpression:()=>Zh,getIsFileExcluded:()=>mre,getIsolatedModules:()=>jC,getJSDocAugmentsTag:()=>ll,getJSDocClassTag:()=>dl,getJSDocCommentRanges:()=>ah,getJSDocCommentsAndTags:()=>D_,getJSDocDeprecatedTag:()=>xl,getJSDocDeprecatedTagNoCache:()=>Sl,getJSDocEnumTag:()=>Cl,getJSDocHost:()=>I_,getJSDocImplementsTags:()=>ul,getJSDocOverloadTags:()=>N_,getJSDocOverrideTagNoCache:()=>bl,getJSDocParameterTags:()=>rl,getJSDocParameterTagsNoCache:()=>il,getJSDocPrivateTag:()=>ml,getJSDocPrivateTagNoCache:()=>hl,getJSDocProtectedTag:()=>gl,getJSDocProtectedTagNoCache:()=>_l,getJSDocPublicTag:()=>fl,getJSDocPublicTagNoCache:()=>pl,getJSDocReadonlyTag:()=>vl,getJSDocReadonlyTagNoCache:()=>yl,getJSDocReturnTag:()=>Tl,getJSDocReturnType:()=>Al,getJSDocRoot:()=>L_,getJSDocSatisfiesExpressionType:()=>mE,getJSDocSatisfiesTag:()=>Dl,getJSDocTags:()=>Ml,getJSDocTemplateTag:()=>El,getJSDocThisTag:()=>wl,getJSDocType:()=>kl,getJSDocTypeAliasName:()=>hP,getJSDocTypeAssertionType:()=>qN,getJSDocTypeParameterDeclarations:()=>fb,getJSDocTypeParameterTags:()=>ol,getJSDocTypeParameterTagsNoCache:()=>sl,getJSDocTypeTag:()=>Ol,getJSXImplicitImportBase:()=>nw,getJSXRuntimeImport:()=>rw,getJSXTransformEnabled:()=>tw,getKeyForCompilerOptions:()=>Pz,getLanguageVariant:()=>vC,getLastChild:()=>TS,getLeadingCommentRanges:()=>Is,getLeadingCommentRangesOfNode:()=>ih,getLeftmostAccessExpression:()=>MS,getLeftmostExpression:()=>PS,getLibFileNameFromLibReference:()=>qE,getLibNameFromLibReference:()=>KE,getLibraryNameFromLibFileName:()=>mq,getLineAndCharacterOfPosition:()=>ps,getLineInfo:()=>aU,getLineOfLocalPosition:()=>Zy,getLineStartPositionForPosition:()=>GQ,getLineStarts:()=>ls,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>$x,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Qx,getLinesBetweenPositions:()=>fs,getLinesBetweenRangeEndAndRangeStart:()=>qx,getLinesBetweenRangeEndPositions:()=>Jx,getLiteralText:()=>zp,getLocalNameForExternalImport:()=>rP,getLocalSymbolForExportDefault:()=>bx,getLocaleSpecificMessage:()=>XS,getLocaleTimeString:()=>XJ,getMappedContextSpan:()=>w1,getMappedDocumentSpan:()=>C1,getMappedLocation:()=>S1,getMatchedFileSpec:()=>sY,getMatchedIncludeSpec:()=>cY,getMeaningFromDeclaration:()=>hQ,getMeaningFromLocation:()=>gQ,getMembersOfDeclaration:()=>_h,getModeForFileReference:()=>QK,getModeForResolutionAtIndex:()=>$K,getModeForUsageLocation:()=>tq,getModifiedTime:()=>sa,getModifiers:()=>tl,getModuleInstanceState:()=>hV,getModuleNameStringLiteralAt:()=>Fq,getModuleSpecifierEndingPreference:()=>Yw,getModuleSpecifierOfBareOrAccessedRequire:()=>Tg,getModuleSpecifierResolverHost:()=>n1,getNameForExportedSymbol:()=>F0,getNameFromImportAttribute:()=>OE,getNameFromIndexInfo:()=>ym,getNameFromPropertyName:()=>$$,getNameOfAccessExpression:()=>AS,getNameOfCompilerOptionValue:()=>WL,getNameOfDeclaration:()=>Qc,getNameOfExpando:()=>Lg,getNameOfJSDocTypedef:()=>Yc,getNameOfScriptTarget:()=>YC,getNameOrArgument:()=>Xg,getNameTable:()=>Q4,getNamespaceDeclarationNode:()=>p_,getNewLineCharacter:()=>Fx,getNewLineKind:()=>U0,getNewLineOrDefaultFromHost:()=>z1,getNewTargetContainer:()=>Uh,getNextJSDocCommentLocation:()=>A_,getNodeChildren:()=>_N,getNodeForGeneratedName:()=>YP,getNodeId:()=>kH,getNodeKind:()=>UQ,getNodeModifiers:()=>j$,getNodeModulePathParts:()=>iE,getNonAssignedNameOfDeclaration:()=>Zc,getNonAssignmentOperatorForCompoundAssignment:()=>RU,getNonAugmentationDeclaration:()=>tm,getNonDecoratorTokenPosOfNode:()=>wp,getNonIncrementalBuildInfoRoots:()=>EJ,getNormalizedAbsolutePath:()=>uo,getNormalizedAbsolutePathWithoutRoot:()=>ho,getNormalizedPathComponents:()=>lo,getObjectFlags:()=>SS,getOperatorAssociativity:()=>Zv,getOperatorPrecedence:()=>ty,getOptionFromName:()=>iL,getOptionsForLibraryResolution:()=>qz,getOptionsNameMap:()=>GI,getOptionsSyntaxByArrayElementValue:()=>XE,getOptionsSyntaxByValue:()=>QE,getOrCreateEmitNode:()=>BD,getOrUpdate:()=>oe,getOriginalNode:()=>Lc,getOriginalNodeId:()=>CU,getOutputDeclarationFileName:()=>JG,getOutputDeclarationFileNameWorker:()=>YG,getOutputExtension:()=>KG,getOutputFileNames:()=>rK,getOutputJSFileNameWorker:()=>XG,getOutputPathsFor:()=>GG,getOwnEmitOutputFilePath:()=>Ly,getOwnKeys:()=>Ye,getOwnValues:()=>Ze,getPackageJsonTypesVersionsPaths:()=>yz,getPackageNameFromTypesPackageName:()=>iV,getPackageScopeForPath:()=>kB,getParameterSymbolFromJSDoc:()=>j_,getParentNodeInSpan:()=>m1,getParseTreeNode:()=>Bc,getParsedCommandLineOfConfigFile:()=>dL,getPathComponents:()=>io,getPathFromPathComponents:()=>ao,getPathUpdater:()=>u2,getPathsBasePath:()=>Uy,getPatternFromSpec:()=>Sw,getPendingEmitKindWithSeen:()=>Qq,getPositionOfLineAndCharacter:()=>ss,getPossibleGenericSignatures:()=>E$,getPossibleOriginalInputExtensionForExtension:()=>Vy,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>D$,getPreEmitDiagnostics:()=>ete,getPrecedingNonSpaceCharacterPosition:()=>X1,getPrivateIdentifier:()=>rW,getProperties:()=>HU,getProperty:()=>Je,getPropertyAssignmentAliasLikeExpression:()=>uv,getPropertyNameForPropertyNameNode:()=>Nv,getPropertyNameFromType:()=>CE,getPropertyNameOfBindingOrAssignmentElement:()=>dP,getPropertySymbolFromBindingElement:()=>p1,getPropertySymbolsFromContextualType:()=>e3,getQuoteFromPreference:()=>c1,getQuotePreference:()=>s1,getRangesWhere:()=>ue,getRefactorContextSpan:()=>j0,getReferencedFileLocation:()=>_q,getRegexFromPattern:()=>Ew,getRegularExpressionForWildcard:()=>yw,getRegularExpressionsForWildcards:()=>bw,getRelativePathFromDirectory:()=>Ao,getRelativePathFromFile:()=>Mo,getRelativePathToDirectoryOrUrl:()=>No,getRenameLocation:()=>$1,getReplacementSpanForContextToken:()=>R$,getResolutionDiagnostic:()=>Nq,getResolutionModeOverride:()=>iq,getResolveJsonModule:()=>IC,getResolvePackageJsonExports:()=>PC,getResolvePackageJsonImports:()=>FC,getResolvedExternalModuleName:()=>Ny,getResolvedModuleFromResolution:()=>Wf,getResolvedTypeReferenceDirectiveFromResolution:()=>Gf,getRestIndicatorOfBindingOrAssignmentElement:()=>uP,getRestParameterElementType:()=>gh,getRightMostAssignedExpression:()=>zg,getRootDeclaration:()=>Kv,getRootDirectoryOfResolutionCache:()=>UJ,getRootLength:()=>Qa,getScriptKind:()=>K1,getScriptKindFromFileName:()=>jw,getScriptTargetFeatures:()=>Lp,getSelectedEffectiveModifierFlags:()=>Fb,getSelectedSyntacticModifierFlags:()=>Ib,getSemanticClassifications:()=>Ore,getSemanticJsxChildren:()=>ry,getSetAccessorTypeAnnotationNode:()=>tb,getSetAccessorValueParameter:()=>eb,getSetExternalModuleIndicator:()=>bC,getShebang:()=>Rs,getSingleVariableOfVariableStatement:()=>C_,getSnapshotText:()=>X$,getSnippetElement:()=>hO,getSourceFileOfModule:()=>np,getSourceFileOfNode:()=>tp,getSourceFilePathInNewDir:()=>Ky,getSourceFileVersionAsHashFromText:()=>yY,getSourceFilesToEmit:()=>Wy,getSourceMapRange:()=>qD,getSourceMapper:()=>Sie,getSourceTextOfNodeFromSourceFile:()=>Tp,getSpanOfTokenAtPosition:()=>Fm,getSpellingSuggestion:()=>Zt,getStartPositionOfLine:()=>ap,getStartPositionOfRange:()=>Zx,getStartsOnNewLine:()=>ZD,getStaticPropertiesAndClassStaticBlock:()=>WU,getStrictOptionValue:()=>JC,getStringComparer:()=>Ut,getSubPatternFromSpec:()=>Cw,getSuperCallFromStatement:()=>zU,getSuperContainer:()=>Wh,getSupportedCodeFixes:()=>q4,getSupportedExtensions:()=>Vw,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Hw,getSwitchedType:()=>u0,getSymbolId:()=>AH,getSymbolNameForPrivateIdentifier:()=>Lv,getSymbolTarget:()=>q1,getSyntacticClassifications:()=>Pre,getSyntacticModifierFlags:()=>Bb,getSyntacticModifierFlagsNoCache:()=>Kb,getSynthesizedDeepClone:()=>eD,getSynthesizedDeepCloneWithReplacements:()=>tD,getSynthesizedDeepClones:()=>rD,getSynthesizedDeepClonesWithReplacements:()=>iD,getSyntheticLeadingComments:()=>tO,getSyntheticTrailingComments:()=>iO,getTargetLabel:()=>kQ,getTargetOfBindingOrAssignmentElement:()=>lP,getTemporaryModuleResolutionState:()=>OB,getTextOfConstantValue:()=>Vp,getTextOfIdentifierOrLiteral:()=>Fv,getTextOfJSDocComment:()=>Il,getTextOfJsxAttributeName:()=>_E,getTextOfJsxNamespacedName:()=>bE,getTextOfNode:()=>Mp,getTextOfNodeFromSourceText:()=>jp,getTextOfPropertyName:()=>Sm,getThisContainer:()=>Bh,getThisParameter:()=>nb,getTokenAtPosition:()=>d$,getTokenPosOfNode:()=>Cp,getTokenSourceMapRange:()=>YD,getTouchingPropertyName:()=>l$,getTouchingToken:()=>u$,getTrailingCommentRanges:()=>Ls,getTrailingSemicolonDeferringWriter:()=>Ay,getTransformers:()=>PG,getTsBuildInfoEmitOutputFilePath:()=>UG,getTsConfigObjectLiteralExpression:()=>jh,getTsConfigPropArrayElementValue:()=>Mh,getTypeAnnotationNode:()=>ub,getTypeArgumentOrTypeParameterList:()=>Ane,getTypeKeywordOfTypeOnlyImport:()=>_1,getTypeNode:()=>yO,getTypeNodeIfAccessible:()=>f0,getTypeParameterFromJsDoc:()=>R_,getTypeParameterOwner:()=>Tc,getTypesPackageName:()=>nV,getUILocale:()=>Kt,getUniqueName:()=>Q1,getUniqueSymbolId:()=>J1,getUseDefineForClassFields:()=>HC,getWatchErrorSummaryDiagnosticMessage:()=>tY,getWatchFactory:()=>kK,group:()=>at,groupBy:()=>ot,guessIndentation:()=>ff,handleNoEmitOptions:()=>kq,handleWatchOptionsConfigDirTemplateSubstitution:()=>iR,hasAbstractModifier:()=>Ab,hasAccessorModifier:()=>Mb,hasAmbientModifier:()=>jb,hasChangesInResolutions:()=>Qf,hasContextSensitiveParameters:()=>XT,hasDecorators:()=>Pb,hasDocComment:()=>k$,hasDynamicName:()=>jv,hasEffectiveModifier:()=>Tb,hasEffectiveModifiers:()=>Cb,hasEffectiveReadonlyModifier:()=>Nb,hasExtension:()=>Ga,hasImplementationTSFileExtension:()=>Kw,hasIndexSignature:()=>l0,hasInferredType:()=>LE,hasInitializer:()=>sf,hasInvalidEscape:()=>cy,hasJSDocNodes:()=>af,hasJSDocParameterTags:()=>cl,hasJSFileExtension:()=>Ww,hasJsonModuleEmitEnabled:()=>GC,hasOnlyExpressionInitializer:()=>cf,hasOverrideModifier:()=>kb,hasPossibleExternalModuleReference:()=>pm,hasProperty:()=>qe,hasPropertyAccessExpressionWithName:()=>AQ,hasQuestionToken:()=>g_,hasRecordedExternalHelpers:()=>$N,hasResolutionModeOverride:()=>TE,hasRestParameter:()=>hf,hasScopeMarker:()=>Sd,hasStaticModifier:()=>Ob,hasSyntacticModifier:()=>Eb,hasSyntacticModifiers:()=>wb,hasTSFileExtension:()=>Gw,hasTabstop:()=>lE,hasTrailingDirectorySeparator:()=>Ja,hasType:()=>of,hasTypeArguments:()=>z_,hasZeroOrOneAsteriskCharacter:()=>iw,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>Uc,identifierIsThisKeyword:()=>sb,identifierToKeywordKind:()=>Wc,identity:()=>Tt,identitySourceMapConsumer:()=>SU,ignoreSourceNewlines:()=>_O,ignoredPaths:()=>ba,importFromModuleSpecifier:()=>l_,importSyntaxAffectsModuleResolution:()=>xC,indexOfAnyCharCode:()=>w,indexOfNode:()=>Pp,indicesOf:()=>pe,inferredTypesContainingFile:()=>fq,injectClassNamedEvaluationHelperBlockIfMissing:()=>NW,injectClassThisAssignmentIfMissing:()=>EW,insertImports:()=>g1,insertSorted:()=>ye,insertStatementAfterCustomPrologue:()=>yp,insertStatementAfterStandardPrologue:()=>vp,insertStatementsAfterCustomPrologue:()=>_p,insertStatementsAfterStandardPrologue:()=>gp,intersperse:()=>_,intrinsicTagNameToString:()=>xE,introducesArgumentsExoticObject:()=>Ch,inverseJsxOptionMap:()=>vI,isAbstractConstructorSymbol:()=>bS,isAbstractModifier:()=>Nk,isAccessExpression:()=>kS,isAccessibilityModifier:()=>F$,isAccessor:()=>Bu,isAccessorModifier:()=>Fk,isAliasableExpression:()=>sv,isAmbientModule:()=>Gp,isAmbientPropertyDeclaration:()=>am,isAnyDirectorySeparator:()=>Ra,isAnyImportOrBareOrAccessedRequire:()=>um,isAnyImportOrReExport:()=>mm,isAnyImportOrRequireStatement:()=>dm,isAnyImportSyntax:()=>lm,isAnySupportedFileExtension:()=>fT,isApplicableVersionedTypesKey:()=>KB,isArgumentExpressionOfElementAccess:()=>LQ,isArray:()=>ht,isArrayBindingElement:()=>Qu,isArrayBindingOrAssignmentElement:()=>ad,isArrayBindingOrAssignmentPattern:()=>id,isArrayBindingPattern:()=>EA,isArrayLiteralExpression:()=>OA,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>L$,isArrayTypeNode:()=>sA,isArrowFunction:()=>RA,isAsExpression:()=>$A,isAssertClause:()=>Hj,isAssertEntry:()=>Uj,isAssertionExpression:()=>yd,isAssertsKeyword:()=>kk,isAssignmentDeclaration:()=>Ag,isAssignmentExpression:()=>ix,isAssignmentOperator:()=>tx,isAssignmentPattern:()=>Zu,isAssignmentTarget:()=>U_,isAsteriskToken:()=>yk,isAsyncFunction:()=>Ov,isAsyncModifier:()=>Ok,isAutoAccessorPropertyDeclaration:()=>Vu,isAwaitExpression:()=>HA,isAwaitKeyword:()=>Ak,isBigIntLiteral:()=>sk,isBinaryExpression:()=>GA,isBinaryLogicalOperator:()=>Yb,isBinaryOperatorToken:()=>HP,isBindableObjectDefinePropertyCall:()=>Wg,isBindableStaticAccessExpression:()=>qg,isBindableStaticElementAccessExpression:()=>Jg,isBindableStaticNameExpression:()=>Yg,isBindingElement:()=>DA,isBindingElementOfBareOrAccessedRequire:()=>wg,isBindingName:()=>Au,isBindingOrAssignmentElement:()=>ed,isBindingOrAssignmentPattern:()=>td,isBindingPattern:()=>Xu,isBlock:()=>cj,isBlockLike:()=>X0,isBlockOrCatchScoped:()=>Up,isBlockScope:()=>om,isBlockScopedContainerTopLevel:()=>Zp,isBooleanLiteral:()=>Pu,isBreakOrContinueStatement:()=>$l,isBreakStatement:()=>yj,isBuildCommand:()=>ZX,isBuildInfoFile:()=>VG,isBuilderProgram:()=>iY,isBundle:()=>EM,isCallChain:()=>Wl,isCallExpression:()=>MA,isCallExpressionTarget:()=>vQ,isCallLikeExpression:()=>ld,isCallLikeOrFunctionLikeExpression:()=>cd,isCallOrNewExpression:()=>ud,isCallOrNewExpressionTarget:()=>bQ,isCallSignatureDeclaration:()=>Qk,isCallToHelper:()=>ak,isCaseBlock:()=>Ij,isCaseClause:()=>_M,isCaseKeyword:()=>Rk,isCaseOrDefaultClause:()=>Qd,isCatchClause:()=>bM,isCatchClauseVariableDeclaration:()=>QT,isCatchClauseVariableDeclarationOrBindingElement:()=>Wp,isCheckJsEnabledForFile:()=>mT,isCircularBuildOrder:()=>LY,isClassDeclaration:()=>Aj,isClassElement:()=>Ru,isClassExpression:()=>XA,isClassInstanceProperty:()=>Hu,isClassLike:()=>zu,isClassMemberModifier:()=>Eu,isClassNamedEvaluationHelperBlock:()=>AW,isClassOrTypeElement:()=>Ku,isClassStaticBlockDeclaration:()=>Jk,isClassThisAssignmentBlock:()=>wW,isColonToken:()=>Sk,isCommaExpression:()=>WN,isCommaListExpression:()=>aj,isCommaSequence:()=>GN,isCommaToken:()=>gk,isComment:()=>M$,isCommonJsExportPropertyAssignment:()=>xh,isCommonJsExportedExpression:()=>bh,isCompoundAssignment:()=>LU,isComputedNonLiteralName:()=>bm,isComputedPropertyName:()=>Bk,isConciseBody:()=>Ed,isConditionalExpression:()=>KA,isConditionalTypeNode:()=>mA,isConstAssertion:()=>ME,isConstTypeReference:()=>Xl,isConstructSignatureDeclaration:()=>$k,isConstructorDeclaration:()=>Yk,isConstructorTypeNode:()=>iA,isContextualKeyword:()=>xv,isContinueStatement:()=>vj,isCustomPrologue:()=>eh,isDebuggerStatement:()=>Ej,isDeclaration:()=>zd,isDeclarationBindingElement:()=>$u,isDeclarationFileName:()=>rI,isDeclarationName:()=>nv,isDeclarationNameOfEnumOrNamespace:()=>rS,isDeclarationReadonly:()=>Um,isDeclarationStatement:()=>Bd,isDeclarationWithTypeParameterChildren:()=>cm,isDeclarationWithTypeParameters:()=>sm,isDecorator:()=>Uk,isDecoratorTarget:()=>SQ,isDefaultClause:()=>vM,isDefaultImport:()=>m_,isDefaultModifier:()=>Dk,isDefaultedExpandoInitializer:()=>Ig,isDeleteExpression:()=>zA,isDeleteTarget:()=>ev,isDeprecatedDeclaration:()=>V0,isDestructuringAssignment:()=>ax,isDiskPathRoot:()=>Va,isDoStatement:()=>pj,isDocumentRegistryEntry:()=>s2,isDotDotDotToken:()=>hk,isDottedName:()=>lx,isDynamicName:()=>Mv,isEffectiveExternalModule:()=>rm,isEffectiveStrictModeSourceFile:()=>im,isElementAccessChain:()=>Ul,isElementAccessExpression:()=>jA,isEmittedFileOfProgram:()=>DK,isEmptyArrayLiteral:()=>yx,isEmptyBindingElement:()=>Oc,isEmptyBindingPattern:()=>Dc,isEmptyObjectLiteral:()=>vx,isEmptyStatement:()=>uj,isEmptyStringLiteral:()=>ig,isEntityName:()=>Ou,isEntityNameExpression:()=>sx,isEnumConst:()=>Hm,isEnumDeclaration:()=>Nj,isEnumMember:()=>wM,isEqualityOperatorKind:()=>s0,isEqualsGreaterThanToken:()=>wk,isExclamationToken:()=>bk,isExcludedFile:()=>VR,isExclusivelyTypeOnlyImportOrExport:()=>eq,isExpandoPropertyDeclaration:()=>wE,isExportAssignment:()=>Xj,isExportDeclaration:()=>Zj,isExportModifier:()=>Ek,isExportName:()=>BN,isExportNamespaceAsDefaultDeclaration:()=>Dp,isExportOrDefaultModifier:()=>qP,isExportSpecifier:()=>$j,isExportsIdentifier:()=>Bg,isExportsOrModuleExportsOrAlias:()=>wV,isExpression:()=>J,isExpressionNode:()=>og,isExpressionOfExternalModuleImportEqualsDeclaration:()=>VQ,isExpressionOfOptionalChainRoot:()=>ql,isExpressionStatement:()=>dj,isExpressionWithTypeArguments:()=>QA,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ox,isExternalModule:()=>JF,isExternalModuleAugmentation:()=>$p,isExternalModuleImportEqualsDeclaration:()=>ug,isExternalModuleIndicator:()=>wd,isExternalModuleNameRelative:()=>Qs,isExternalModuleReference:()=>iM,isExternalModuleSymbol:()=>Of,isExternalOrCommonJsModule:()=>Bm,isFileLevelReservedGeneratedIdentifier:()=>xu,isFileLevelUniqueName:()=>cp,isFileProbablyExternalModule:()=>gF,isFirstDeclarationOfSymbolParameter:()=>T1,isFixablePromiseHandler:()=>y2,isForInOrOfStatement:()=>Td,isForInStatement:()=>gj,isForInitializer:()=>Od,isForOfStatement:()=>_j,isForStatement:()=>hj,isFullSourceFile:()=>mg,isFunctionBlock:()=>Th,isFunctionBody:()=>Dd,isFunctionDeclaration:()=>kj,isFunctionExpression:()=>LA,isFunctionExpressionOrArrowFunction:()=>$T,isFunctionLike:()=>ju,isFunctionLikeDeclaration:()=>Nu,isFunctionLikeKind:()=>Iu,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mu,isFunctionOrConstructorTypeNode:()=>Yu,isFunctionOrModuleBlock:()=>Lu,isFunctionSymbol:()=>o_,isFunctionTypeNode:()=>rA,isGeneratedIdentifier:()=>yu,isGeneratedPrivateIdentifier:()=>bu,isGetAccessor:()=>rf,isGetAccessorDeclaration:()=>Xk,isGetOrSetAccessorDeclaration:()=>Vl,isGlobalScopeAugmentation:()=>Qp,isGlobalSourceFile:()=>zm,isGrammarError:()=>dp,isHeritageClause:()=>yM,isHoistedFunction:()=>th,isHoistedVariableStatement:()=>rh,isIdentifier:()=>X,isIdentifierANonContextualKeyword:()=>wv,isIdentifierName:()=>av,isIdentifierOrThisTypeNode:()=>xP,isIdentifierPart:()=>Bs,isIdentifierStart:()=>zs,isIdentifierText:()=>Vs,isIdentifierTypePredicate:()=>Oh,isIdentifierTypeReference:()=>IT,isIfStatement:()=>fj,isIgnoredFileFromWildCardWatching:()=>EK,isImplicitGlob:()=>xw,isImportAttribute:()=>Gj,isImportAttributeName:()=>vu,isImportAttributes:()=>Wj,isImportCall:()=>Xm,isImportClause:()=>Bj,isImportDeclaration:()=>zj,isImportEqualsDeclaration:()=>Rj,isImportKeyword:()=>Lk,isImportMeta:()=>Zm,isImportOrExportSpecifier:()=>fu,isImportOrExportSpecifierName:()=>G1,isImportSpecifier:()=>Yj,isImportTypeAssertionContainer:()=>Vj,isImportTypeNode:()=>SA,isImportable:()=>$0,isInComment:()=>O$,isInCompoundLikeAssignment:()=>G_,isInExpressionContext:()=>sg,isInJSDoc:()=>yg,isInJSFile:()=>gg,isInJSXText:()=>S$,isInJsonFile:()=>_g,isInNonReferenceComment:()=>Pne,isInReferenceComment:()=>Nne,isInRightSideOfInternalImportEqualsDeclaration:()=>_Q,isInString:()=>v$,isInTemplateString:()=>x$,isInTopLevelContext:()=>Hh,isInTypeQuery:()=>ab,isIncrementalBuildInfo:()=>uJ,isIncrementalBundleEmitBuildInfo:()=>lJ,isIncrementalCompilation:()=>zC,isIndexSignatureDeclaration:()=>eA,isIndexedAccessTypeNode:()=>yA,isInferTypeNode:()=>hA,isInfinityOrNaNString:()=>ZT,isInitializedProperty:()=>qU,isInitializedVariable:()=>aS,isInsideJsxElement:()=>C$,isInsideJsxElementOrAttribute:()=>y$,isInsideNodeModules:()=>O0,isInsideTemplateLiteral:()=>P$,isInstanceOfExpression:()=>gx,isInstantiatedModule:()=>jH,isInterfaceDeclaration:()=>jj,isInternalDeclaration:()=>vf,isInternalModuleImportEqualsDeclaration:()=>pg,isInternalName:()=>RN,isIntersectionTypeNode:()=>pA,isIntrinsicJsxName:()=>Ty,isIterationStatement:()=>bd,isJSDoc:()=>VM,isJSDocAllType:()=>NM,isJSDocAugmentsTag:()=>WM,isJSDocAuthorTag:()=>GM,isJSDocCallbackTag:()=>qM,isJSDocClassTag:()=>KM,isJSDocCommentContainingNode:()=>ef,isJSDocConstructSignature:()=>__,isJSDocDeprecatedTag:()=>eN,isJSDocEnumTag:()=>nN,isJSDocFunctionType:()=>RM,isJSDocImplementsTag:()=>dN,isJSDocImportTag:()=>mN,isJSDocIndexSignature:()=>bg,isJSDocLikeText:()=>hF,isJSDocLink:()=>AM,isJSDocLinkCode:()=>jM,isJSDocLinkLike:()=>mf,isJSDocLinkPlain:()=>MM,isJSDocMemberName:()=>kM,isJSDocNameReference:()=>OM,isJSDocNamepathType:()=>BM,isJSDocNamespaceBody:()=>jd,isJSDocNode:()=>$d,isJSDocNonNullableType:()=>IM,isJSDocNullableType:()=>FM,isJSDocOptionalParameter:()=>uE,isJSDocOptionalType:()=>LM,isJSDocOverloadTag:()=>$M,isJSDocOverrideTag:()=>QM,isJSDocParameterTag:()=>rN,isJSDocPrivateTag:()=>YM,isJSDocPropertyLikeTag:()=>tu,isJSDocPropertyTag:()=>uN,isJSDocProtectedTag:()=>XM,isJSDocPublicTag:()=>JM,isJSDocReadonlyTag:()=>ZM,isJSDocReturnTag:()=>iN,isJSDocSatisfiesExpression:()=>pE,isJSDocSatisfiesTag:()=>fN,isJSDocSeeTag:()=>tN,isJSDocSignature:()=>UM,isJSDocTag:()=>tf,isJSDocTemplateTag:()=>sN,isJSDocThisTag:()=>aN,isJSDocThrowsTag:()=>pN,isJSDocTypeAlias:()=>v_,isJSDocTypeAssertion:()=>KN,isJSDocTypeExpression:()=>DM,isJSDocTypeLiteral:()=>HM,isJSDocTypeTag:()=>oN,isJSDocTypedefTag:()=>cN,isJSDocUnknownTag:()=>lN,isJSDocUnknownType:()=>PM,isJSDocVariadicType:()=>zM,isJSXTagName:()=>ag,isJsonEqual:()=>ET,isJsonSourceFile:()=>Vm,isJsxAttribute:()=>fM,isJsxAttributeLike:()=>Jd,isJsxAttributeName:()=>vE,isJsxAttributes:()=>pM,isJsxCallLike:()=>Zd,isJsxChild:()=>qd,isJsxClosingElement:()=>cM,isJsxClosingFragment:()=>dM,isJsxElement:()=>aM,isJsxExpression:()=>hM,isJsxFragment:()=>lM,isJsxNamespacedName:()=>gM,isJsxOpeningElement:()=>sM,isJsxOpeningFragment:()=>uM,isJsxOpeningLikeElement:()=>Xd,isJsxOpeningLikeElementTagName:()=>CQ,isJsxSelfClosingElement:()=>oM,isJsxSpreadAttribute:()=>mM,isJsxTagNameExpression:()=>Kd,isJsxText:()=>lk,isJumpStatementTarget:()=>jQ,isKeyword:()=>vv,isKeywordOrPunctuation:()=>bv,isKnownSymbol:()=>Rv,isLabelName:()=>NQ,isLabelOfLabeledStatement:()=>MQ,isLabeledStatement:()=>Cj,isLateVisibilityPaintedStatement:()=>fm,isLeftHandSideExpression:()=>fd,isLet:()=>Jm,isLineBreak:()=>gs,isLiteralComputedPropertyDeclarationName:()=>iv,isLiteralExpression:()=>su,isLiteralExpressionOfObject:()=>cu,isLiteralImportTypeNode:()=>Qm,isLiteralKind:()=>ou,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>BQ,isLiteralTypeLiteral:()=>_d,isLiteralTypeNode:()=>xA,isLocalName:()=>zN,isLogicalOperator:()=>Xb,isLogicalOrCoalescingAssignmentExpression:()=>Qb,isLogicalOrCoalescingAssignmentOperator:()=>Zb,isLogicalOrCoalescingBinaryExpression:()=>ex,isLogicalOrCoalescingBinaryOperator:()=>$b,isMappedTypeNode:()=>bA,isMemberName:()=>Bl,isMetaProperty:()=>nj,isMethodDeclaration:()=>qk,isMethodOrAccessor:()=>Uu,isMethodSignature:()=>Kk,isMinusToken:()=>vk,isMissingDeclaration:()=>tM,isMissingPackageJsonInfo:()=>Mz,isModifier:()=>Du,isModifierKind:()=>wu,isModifierLike:()=>Wu,isModuleAugmentationExternal:()=>em,isModuleBlock:()=>Fj,isModuleBody:()=>kd,isModuleDeclaration:()=>Pj,isModuleExportName:()=>eM,isModuleExportsAccessExpression:()=>Hg,isModuleIdentifier:()=>Vg,isModuleName:()=>wP,isModuleOrEnumDeclaration:()=>Nd,isModuleReference:()=>Gd,isModuleSpecifierLike:()=>d1,isModuleWithStringLiteralName:()=>Kp,isNameOfFunctionDeclaration:()=>zQ,isNameOfModuleDeclaration:()=>RQ,isNamedDeclaration:()=>Xc,isNamedEvaluation:()=>Uv,isNamedEvaluationSource:()=>Hv,isNamedExportBindings:()=>eu,isNamedExports:()=>Qj,isNamedImportBindings:()=>Md,isNamedImports:()=>Jj,isNamedImportsOrExports:()=>jS,isNamedTupleMember:()=>lA,isNamespaceBody:()=>Ad,isNamespaceExport:()=>qj,isNamespaceExportDeclaration:()=>Lj,isNamespaceImport:()=>Kj,isNamespaceReexportDeclaration:()=>lg,isNewExpression:()=>NA,isNewExpressionTarget:()=>yQ,isNewScopeNode:()=>GE,isNoSubstitutionTemplateLiteral:()=>dk,isNodeArray:()=>au,isNodeArrayMultiLine:()=>Yx,isNodeDescendantOf:()=>tv,isNodeKind:()=>nu,isNodeLikeSystem:()=>En,isNodeModulesDirectory:()=>Fo,isNodeWithPossibleHoistedDeclaration:()=>K_,isNonContextualKeyword:()=>Sv,isNonGlobalAmbientModule:()=>qp,isNonNullAccess:()=>fE,isNonNullChain:()=>Ql,isNonNullExpression:()=>tj,isNonStaticMethodOrAccessorWithPrivateName:()=>JU,isNotEmittedStatement:()=>nM,isNullishCoalesce:()=>Yl,isNumber:()=>vt,isNumericLiteral:()=>ok,isNumericLiteralName:()=>tE,isObjectBindingElementWithoutPropertyName:()=>f1,isObjectBindingOrAssignmentElement:()=>rd,isObjectBindingOrAssignmentPattern:()=>nd,isObjectBindingPattern:()=>TA,isObjectLiteralElement:()=>lf,isObjectLiteralElementLike:()=>qu,isObjectLiteralExpression:()=>kA,isObjectLiteralMethod:()=>Eh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Dh,isObjectTypeDeclaration:()=>DS,isOmittedExpression:()=>ZA,isOptionalChain:()=>Gl,isOptionalChainRoot:()=>Kl,isOptionalDeclaration:()=>dE,isOptionalJSDocPropertyLikeTag:()=>sE,isOptionalTypeNode:()=>uA,isOuterExpression:()=>JN,isOutermostOptionalChain:()=>Jl,isOverrideModifier:()=>Pk,isPackageJsonInfo:()=>jz,isPackedArrayLiteral:()=>KT,isParameter:()=>Hk,isParameterPropertyDeclaration:()=>Ec,isParameterPropertyModifier:()=>Tu,isParenthesizedExpression:()=>IA,isParenthesizedTypeNode:()=>gA,isParseTreeNode:()=>zc,isPartOfParameterDeclaration:()=>Gv,isPartOfTypeNode:()=>fh,isPartOfTypeOnlyImportOrExportDeclaration:()=>gu,isPartOfTypeQuery:()=>cg,isPartiallyEmittedExpression:()=>ij,isPatternMatch:()=>hn,isPinnedComment:()=>xp,isPlainJsFile:()=>rp,isPlusToken:()=>_k,isPossiblyTypeArgumentPosition:()=>T$,isPostfixUnaryExpression:()=>WA,isPotentiallyExecutableNode:()=>dD,isPrefixUnaryExpression:()=>UA,isPrimitiveLiteralValue:()=>FE,isPrivateIdentifier:()=>Tk,isPrivateIdentifierClassElementDeclaration:()=>Su,isPrivateIdentifierPropertyAccessExpression:()=>Cu,isPrivateIdentifierSymbol:()=>zv,isProgramUptoDate:()=>vq,isPrologueDirective:()=>$m,isPropertyAccessChain:()=>Hl,isPropertyAccessEntityNameExpression:()=>ux,isPropertyAccessExpression:()=>AA,isPropertyAccessOrQualifiedName:()=>sd,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>od,isPropertyAssignment:()=>xM,isPropertyDeclaration:()=>Gk,isPropertyName:()=>ku,isPropertyNameLiteral:()=>Pv,isPropertySignature:()=>Wk,isPrototypeAccess:()=>fx,isPrototypePropertyAssignment:()=>r_,isPunctuation:()=>yv,isPushOrUnshiftIdentifier:()=>Wv,isQualifiedName:()=>zk,isQuestionDotToken:()=>Ck,isQuestionOrExclamationToken:()=>bP,isQuestionOrPlusOrMinusToken:()=>CP,isQuestionToken:()=>xk,isReadonlyKeyword:()=>jk,isReadonlyKeywordOrPlusOrMinusToken:()=>SP,isRecognizedTripleSlashComment:()=>bp,isReferenceFileLocation:()=>gq,isReferencedFile:()=>hq,isRegularExpressionLiteral:()=>uk,isRequireCall:()=>xg,isRequireVariableStatement:()=>Dg,isRestParameter:()=>gf,isRestTypeNode:()=>dA,isReturnStatement:()=>bj,isReturnStatementWithFixablePromiseHandler:()=>v2,isRightSideOfAccessExpression:()=>mx,isRightSideOfInstanceofExpression:()=>_x,isRightSideOfPropertyAccess:()=>IQ,isRightSideOfQualifiedName:()=>FQ,isRightSideOfQualifiedNameOrPropertyAccess:()=>px,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>hx,isRootedDiskPath:()=>Ba,isSameEntityName:()=>Rg,isSatisfiesExpression:()=>ej,isSemicolonClassElement:()=>sj,isSetAccessor:()=>nf,isSetAccessorDeclaration:()=>Zk,isShiftOperatorOrHigher:()=>jP,isShorthandAmbientModuleSymbol:()=>Yp,isShorthandPropertyAssignment:()=>SM,isSideEffectImport:()=>RE,isSignedNumericLiteral:()=>Av,isSimpleCopiableExpression:()=>FU,isSimpleInlineableExpression:()=>IU,isSimpleParameterList:()=>sW,isSingleOrDoubleQuote:()=>Og,isSolutionConfig:()=>mR,isSourceElement:()=>kE,isSourceFile:()=>TM,isSourceFileFromLibrary:()=>q0,isSourceFileJS:()=>hg,isSourceFileNotJson:()=>vg,isSourceMapping:()=>fU,isSpecialPropertyDeclaration:()=>i_,isSpreadAssignment:()=>CM,isSpreadElement:()=>YA,isStatement:()=>Hd,isStatementButNotDeclaration:()=>Vd,isStatementOrBlock:()=>Wd,isStatementWithLocals:()=>ip,isStatic:()=>Db,isStaticModifier:()=>Mk,isString:()=>_t,isStringANonContextualKeyword:()=>Cv,isStringAndEmptyAnonymousObjectIntersection:()=>Mne,isStringDoubleQuoted:()=>kg,isStringLiteral:()=>ck,isStringLiteralLike:()=>pf,isStringLiteralOrJsxExpression:()=>Yd,isStringLiteralOrTemplate:()=>c0,isStringOrNumericLiteralLike:()=>kv,isStringOrRegularExpressionOrTemplateLiteral:()=>N$,isStringTextContainingNode:()=>_u,isSuperCall:()=>Ym,isSuperKeyword:()=>Ik,isSuperProperty:()=>Kh,isSupportedSourceFileName:()=>Zw,isSwitchStatement:()=>Sj,isSyntaxList:()=>hN,isSyntheticExpression:()=>rj,isSyntheticReference:()=>rM,isTagName:()=>PQ,isTaggedTemplateExpression:()=>PA,isTaggedTemplateTag:()=>xQ,isTemplateExpression:()=>qA,isTemplateHead:()=>fk,isTemplateLiteral:()=>dd,isTemplateLiteralKind:()=>lu,isTemplateLiteralToken:()=>uu,isTemplateLiteralTypeNode:()=>wA,isTemplateLiteralTypeSpan:()=>CA,isTemplateMiddle:()=>pk,isTemplateMiddleOrTemplateTail:()=>du,isTemplateSpan:()=>oj,isTemplateTail:()=>mk,isTextWhiteSpaceLike:()=>Vne,isThis:()=>WQ,isThisContainerOrFunctionBlock:()=>Vh,isThisIdentifier:()=>ib,isThisInTypeQuery:()=>ob,isThisInitializedDeclaration:()=>Jh,isThisInitializedObjectBindingExpression:()=>Yh,isThisProperty:()=>qh,isThisTypeNode:()=>_A,isThisTypeParameter:()=>rE,isThisTypePredicate:()=>kh,isThrowStatement:()=>wj,isToken:()=>iu,isTokenKind:()=>ru,isTraceEnabled:()=>tz,isTransientSymbol:()=>Df,isTrivia:()=>Tv,isTryStatement:()=>Tj,isTupleTypeNode:()=>cA,isTypeAlias:()=>y_,isTypeAliasDeclaration:()=>Mj,isTypeAssertionExpression:()=>FA,isTypeDeclaration:()=>aE,isTypeElement:()=>Gu,isTypeKeyword:()=>q$,isTypeKeywordTokenOrIdentifier:()=>J$,isTypeLiteralNode:()=>oA,isTypeNode:()=>Ju,isTypeNodeKind:()=>OS,isTypeOfExpression:()=>BA,isTypeOnlyExportDeclaration:()=>mu,isTypeOnlyImportDeclaration:()=>pu,isTypeOnlyImportOrExportDeclaration:()=>hu,isTypeOperatorNode:()=>vA,isTypeParameterDeclaration:()=>Vk,isTypePredicateNode:()=>tA,isTypeQueryNode:()=>aA,isTypeReferenceNode:()=>nA,isTypeReferenceType:()=>uf,isTypeUsableAsPropertyName:()=>SE,isUMDExportSymbol:()=>CS,isUnaryExpression:()=>md,isUnaryExpressionWithWrite:()=>gd,isUnicodeIdentifierStart:()=>Zo,isUnionTypeNode:()=>fA,isUrl:()=>za,isValidBigIntString:()=>jT,isValidESSymbolDeclaration:()=>Sh,isValidTypeOnlyAliasUseSite:()=>MT,isValueSignatureDeclaration:()=>q_,isVarAwaitUsing:()=>Wm,isVarConst:()=>Km,isVarConstLike:()=>qm,isVarUsing:()=>Gm,isVariableDeclaration:()=>Dj,isVariableDeclarationInVariableStatement:()=>yh,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Cg,isVariableDeclarationInitializedToRequire:()=>Sg,isVariableDeclarationList:()=>Oj,isVariableLike:()=>vh,isVariableStatement:()=>lj,isVoidExpression:()=>VA,isWatchSet:()=>oS,isWhileStatement:()=>mj,isWhiteSpaceLike:()=>ms,isWhiteSpaceSingleLine:()=>hs,isWithStatement:()=>xj,isWriteAccess:()=>pS,isWriteOnlyAccess:()=>fS,isYieldExpression:()=>JA,jsxModeNeedsExplicitImport:()=>K0,keywordPart:()=>O1,last:()=>ze,lastOrUndefined:()=>Re,length:()=>u,libMap:()=>xI,libs:()=>bI,lineBreakPart:()=>B1,loadModuleFromGlobalCache:()=>uV,loadWithModeAwareCache:()=>dq,makeIdentifierFromModuleName:()=>Hp,makeImport:()=>i1,makeStringLiteral:()=>a1,mangleScopedPackageName:()=>rV,map:()=>k,mapAllOrFail:()=>ae,mapDefined:()=>M,mapDefinedIterator:()=>N,mapEntries:()=>le,mapIterator:()=>A,mapOneOrMany:()=>N0,mapToDisplayParts:()=>V1,matchFiles:()=>Dw,matchPatternOrExact:()=>gT,matchedText:()=>un,matchesExclude:()=>UR,matchesExcludeWorker:()=>WR,maxBy:()=>Rt,maybeBind:()=>ut,maybeSetLocalizedDiagnosticMessages:()=>YS,memoize:()=>kt,memoizeOne:()=>At,min:()=>zt,minAndMax:()=>yT,missingFileModifiedTime:()=>oa,modifierToFlag:()=>Jb,modifiersToFlags:()=>qb,moduleExportNameIsDefault:()=>Ap,moduleExportNameTextEscaped:()=>kp,moduleExportNameTextUnescaped:()=>Op,moduleOptionDeclaration:()=>TI,moduleResolutionIsEqualTo:()=>Uf,moduleResolutionNameAndModeGetter:()=>sq,moduleResolutionOptionDeclarations:()=>jI,moduleResolutionSupportsPackageJsonExportsAndImports:()=>KC,moduleResolutionUsesNodeModules:()=>r1,moduleSpecifierToValidIdentifier:()=>R0,moduleSpecifiers:()=>OV,moduleSupportsImportAttributes:()=>qC,moduleSymbolToValidIdentifier:()=>L0,moveEmitHelpers:()=>mO,moveRangeEnd:()=>Lx,moveRangePastDecorators:()=>zx,moveRangePastModifiers:()=>Bx,moveRangePos:()=>Rx,moveSyntheticComments:()=>sO,mutateMap:()=>yS,mutateMapSkippingNewValues:()=>vS,needsParentheses:()=>i0,needsScopeMarker:()=>Cd,newCaseClauseTracker:()=>J0,newPrivateEnvironment:()=>nW,noEmitNotification:()=>RG,noEmitSubstitution:()=>LG,noTransformers:()=>NG,noTruncationMaximumTruncationLength:()=>Sf,nodeCanBeDecorated:()=>Qh,nodeCoreModules:()=>HE,nodeHasName:()=>Jc,nodeIsDecorated:()=>$h,nodeIsMissing:()=>lp,nodeIsPresent:()=>up,nodeIsSynthesized:()=>Jv,nodeModuleNameResolver:()=>cB,nodeModulesPathPart:()=>mB,nodeNextJsonConfigResolver:()=>lB,nodeOrChildIsDecorated:()=>eg,nodeOverlapsWithStartEnd:()=>ZQ,nodePosToString:()=>op,nodeSeenTracker:()=>Y$,nodeStartsNewLexicalEnvironment:()=>qv,noop:()=>xt,noopFileWatcher:()=>pY,normalizePath:()=>fo,normalizeSlashes:()=>oo,normalizeSpans:()=>_c,not:()=>vn,notImplemented:()=>Ot,notImplementedResolver:()=>lK,nullNodeConverters:()=>gD,nullParenthesizerRules:()=>mD,nullTransformationContext:()=>BG,objectAllocator:()=>HS,operatorPart:()=>A1,optionDeclarations:()=>DI,optionMapToObject:()=>BL,optionsAffectingProgramStructure:()=>NI,optionsForBuild:()=>BI,optionsForWatch:()=>SI,optionsHaveChanges:()=>Ff,or:()=>_n,orderedRemoveItem:()=>nn,orderedRemoveItemAt:()=>rn,packageIdToPackageName:()=>Yf,packageIdToString:()=>Xf,parameterIsThisKeyword:()=>rb,parameterNamePart:()=>j1,parseBaseNodeFactory:()=>fF,parseBigInt:()=>kT,parseBuildCommand:()=>lL,parseCommandLine:()=>rL,parseCommandLineWorker:()=>eL,parseConfigFileTextToJson:()=>pL,parseConfigFileWithSystem:()=>QJ,parseConfigHostFromCompilerHostLike:()=>jq,parseCustomTypeOption:()=>XI,parseIsolatedEntityName:()=>KF,parseIsolatedJSDocComment:()=>XF,parseJSDocTypeExpressionForTests:()=>ZF,parseJsonConfigFileContent:()=>ZL,parseJsonSourceFileConfigFileContent:()=>QL,parseJsonText:()=>qF,parseListTypeOption:()=>ZI,parseNodeFactory:()=>pF,parseNodeModuleFromPath:()=>gB,parsePackageName:()=>IB,parsePseudoBigInt:()=>DT,parseValidBigInt:()=>AT,pasteEdits:()=>$7,patchWriteFileEnsuringDirectory:()=>ja,pathContainsNodeModules:()=>hB,pathIsAbsolute:()=>Ha,pathIsBareSpecifier:()=>Wa,pathIsRelative:()=>Ua,patternText:()=>ln,performIncrementalCompilation:()=>EY,performance:()=>cr,positionBelongsToNode:()=>$Q,positionIsASICandidate:()=>h0,positionIsSynthesized:()=>cT,positionsAreOnSameLine:()=>Xx,preProcessFile:()=>bie,probablyUsesSemicolons:()=>g0,processCommentPragmas:()=>oI,processPragmasIntoFields:()=>sI,processTaggedTemplateExpression:()=>HW,programContainsEsModules:()=>Rne,programContainsModules:()=>Lne,projectReferenceIsEqualTo:()=>Hf,propertyNamePart:()=>M1,pseudoBigIntToString:()=>OT,punctuationPart:()=>k1,pushIfUnique:()=>De,quote:()=>o0,quotePreferenceFromString:()=>o1,rangeContainsPosition:()=>qQ,rangeContainsPositionExclusive:()=>JQ,rangeContainsRange:()=>eS,rangeContainsRangeExclusive:()=>KQ,rangeContainsStartEnd:()=>YQ,rangeEndIsOnSameLineAsRangeStart:()=>Kx,rangeEndPositionsAreOnSameLine:()=>Wx,rangeEquals:()=>Me,rangeIsOnSingleLine:()=>Hx,rangeOfNode:()=>bT,rangeOfTypeParameters:()=>xT,rangeOverlapsWithStartEnd:()=>XQ,rangeStartIsOnSameLineAsRangeEnd:()=>Gx,rangeStartPositionsAreOnSameLine:()=>Ux,readBuilderProgram:()=>DY,readConfigFile:()=>fL,readJson:()=>Ax,readJsonConfigFile:()=>mL,readJsonOrUndefined:()=>kx,reduceEachLeadingCommentRange:()=>Ns,reduceEachTrailingCommentRange:()=>Ps,reduceLeft:()=>Ge,reduceLeftIterator:()=>h,reducePathComponents:()=>G,refactor:()=>R2,regExpEscape:()=>dw,regularExpressionFlagToCharacterCode:()=>is,relativeComplement:()=>Ce,removeAllComments:()=>HD,removeEmitHelper:()=>fO,removeExtension:()=>rT,removeFileExtension:()=>tT,removeIgnoredPath:()=>jJ,removeMinAndVersionNumbers:()=>tn,removePrefix:()=>pn,removeSuffix:()=>$t,removeTrailingDirectorySeparator:()=>_o,repeatString:()=>Z$,replaceElement:()=>Ue,replaceFirstStar:()=>DE,resolutionExtensionIsTSOrJson:()=>uT,resolveConfigFileProjectName:()=>MY,resolveJSModule:()=>tB,resolveLibrary:()=>Jz,resolveModuleName:()=>Xz,resolveModuleNameFromCache:()=>Yz,resolvePackageNameToPackageJson:()=>kz,resolvePath:()=>co,resolveProjectReferencePath:()=>Mq,resolveTripleslashReference:()=>NK,resolveTypeReferenceDirective:()=>Ez,resolvingEmptyArray:()=>yf,returnFalse:()=>St,returnNoopFileWatcher:()=>mY,returnTrue:()=>Ct,returnUndefined:()=>wt,returnsPromise:()=>_2,rewriteModuleSpecifier:()=>cW,sameFlatMap:()=>ie,sameMap:()=>ee,sameMapping:()=>dU,scanTokenAtPosition:()=>Im,scanner:()=>pQ,semanticDiagnosticsOptionDeclarations:()=>OI,serializeCompilerOptions:()=>GL,server:()=>Cje,servicesVersion:()=>due,setCommentRange:()=>eO,setConfigFileInOptions:()=>$L,setConstantValue:()=>lO,setEmitFlags:()=>UD,setGetSourceFileAsHashVersioned:()=>bY,setIdentifierAutoGenerate:()=>SO,setIdentifierGeneratedImportReference:()=>wO,setIdentifierTypeArguments:()=>bO,setInternalEmitFlags:()=>GD,setLocalizedDiagnosticMessages:()=>JS,setNodeChildren:()=>vN,setNodeFlags:()=>HT,setObjectAllocator:()=>GS,setOriginalNode:()=>LD,setParent:()=>UT,setParentRecursive:()=>WT,setPrivateIdentifier:()=>iW,setSnippetElement:()=>gO,setSourceMapRange:()=>JD,setStackTraceLimit:()=>ra,setStartsOnNewLine:()=>QD,setSyntheticLeadingComments:()=>nO,setSyntheticTrailingComments:()=>aO,setSys:()=>Na,setSysLog:()=>Ca,setTextRange:()=>Z,setTextRangeEnd:()=>zT,setTextRangePos:()=>RT,setTextRangePosEnd:()=>BT,setTextRangePosWidth:()=>VT,setTokenSourceMapRange:()=>XD,setTypeNode:()=>vO,setUILocale:()=>qt,setValueDeclaration:()=>a_,shouldAllowImportingTsExtension:()=>lV,shouldPreserveConstEnums:()=>RC,shouldRewriteModuleSpecifier:()=>d_,shouldUseUriStyleNodeCoreModules:()=>H0,showModuleSpecifier:()=>wS,signatureHasRestParameter:()=>LH,signatureToDisplayParts:()=>W1,single:()=>Ve,singleElementArray:()=>bn,singleIterator:()=>ce,singleOrMany:()=>He,singleOrUndefined:()=>Be,skipAlias:()=>uS,skipConstraint:()=>Q$,skipOuterExpressions:()=>YN,skipParentheses:()=>$_,skipPartiallyEmittedExpressions:()=>Zl,skipTrivia:()=>Cs,skipTypeChecking:()=>ST,skipTypeCheckingIgnoringNoCheck:()=>CT,skipTypeParentheses:()=>Q_,skipWhile:()=>Tn,sliceAfter:()=>_T,some:()=>F,sortAndDeduplicate:()=>be,sortAndDeduplicateDiagnostics:()=>$s,sourceFileAffectingCompilerOptions:()=>MI,sourceFileMayBeEmitted:()=>Gy,sourceMapCommentRegExp:()=>rU,sourceMapCommentRegExpDontCareLineStart:()=>nU,spacePart:()=>D1,spanMap:()=>P,startEndContainsRange:()=>tS,startEndOverlapsWithStartEnd:()=>QQ,startOnNewLine:()=>ZN,startTracing:()=>Mr,startsWith:()=>fn,startsWithDirectory:()=>Oo,startsWithUnderscore:()=>B0,startsWithUseStrict:()=>UN,stringContainsAt:()=>z0,stringToToken:()=>ns,stripQuotes:()=>Cy,supportedDeclarationExtensions:()=>Rw,supportedJSExtensionsFlat:()=>Fw,supportedLocaleDirectories:()=>Fc,supportedTSExtensionsFlat:()=>Nw,supportedTSImplementationExtensions:()=>zw,suppressLeadingAndTrailingTrivia:()=>aD,suppressLeadingTrivia:()=>oD,suppressTrailingTrivia:()=>sD,symbolEscapedNameNoDefault:()=>u1,symbolName:()=>Gc,symbolNameNoDefault:()=>l1,symbolToDisplayParts:()=>U1,sys:()=>Ma,sysLog:()=>Sa,tagNamesAreEquivalent:()=>hI,takeWhile:()=>wn,targetOptionDeclaration:()=>wI,targetToLibMap:()=>ec,testFormatSettings:()=>cne,textChangeRangeIsUnchanged:()=>xc,textChangeRangeNewSpan:()=>bc,textChanges:()=>y7,textOrKeywordPart:()=>N1,textPart:()=>P1,textRangeContainsPositionInclusive:()=>ac,textRangeContainsTextSpan:()=>cc,textRangeIntersectsWithTextSpan:()=>hc,textSpanContainsPosition:()=>ic,textSpanContainsTextRange:()=>sc,textSpanContainsTextSpan:()=>oc,textSpanEnd:()=>nc,textSpanIntersection:()=>gc,textSpanIntersectsWith:()=>fc,textSpanIntersectsWithPosition:()=>mc,textSpanIntersectsWithTextSpan:()=>dc,textSpanIsEmpty:()=>rc,textSpanOverlap:()=>uc,textSpanOverlapsWith:()=>lc,textSpansEqual:()=>v1,textToKeywordObj:()=>Ro,timestamp:()=>sr,toArray:()=>gt,toBuilderFileEmit:()=>SJ,toBuilderStateFileInfoForMultiEmit:()=>xJ,toEditorSettings:()=>W4,toFileNameLowerCase:()=>Dt,toPath:()=>go,toProgramEmitPending:()=>CJ,toSorted:()=>Ae,tokenIsIdentifierOrKeyword:()=>Io,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Lo,tokenToString:()=>ts,trace:()=>ez,tracing:()=>Ar,tracingEnabled:()=>jr,transferSourceFileChildren:()=>bN,transform:()=>Rue,transformClassFields:()=>KW,transformDeclarations:()=>DG,transformECMAScriptModule:()=>vG,transformES2015:()=>mG,transformES2016:()=>pG,transformES2017:()=>nG,transformES2018:()=>iG,transformES2019:()=>aG,transformES2020:()=>oG,transformES2021:()=>sG,transformESDecorators:()=>tG,transformESNext:()=>cG,transformGenerators:()=>hG,transformImpliedNodeFormatDependentModule:()=>yG,transformJsx:()=>fG,transformLegacyDecorators:()=>eG,transformModule:()=>gG,transformNamedEvaluation:()=>BW,transformNodes:()=>zG,transformSystemModule:()=>_G,transformTypeScript:()=>GW,transpile:()=>Wie,transpileDeclaration:()=>Bie,transpileModule:()=>zie,transpileOptionValueCompilerOptions:()=>PI,tryAddToSet:()=>se,tryAndIgnoreErrors:()=>x0,tryCast:()=>yt,tryDirectoryExists:()=>b0,tryExtractTSExtension:()=>Sx,tryFileExists:()=>y0,tryGetClassExtendingExpressionWithTypeArguments:()=>nx,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>rx,tryGetDirectories:()=>_0,tryGetExtensionFromPath:()=>pT,tryGetImportFromModuleSpecifier:()=>u_,tryGetJSDocSatisfiesTypeNode:()=>hE,tryGetModuleNameFromFile:()=>oP,tryGetModuleSpecifierFromDeclaration:()=>c_,tryGetNativePerformanceHooks:()=>or,tryGetPropertyAccessOrIdentifierToString:()=>dx,tryGetPropertyNameOfBindingOrAssignmentElement:()=>fP,tryGetSourceMappingURL:()=>oU,tryGetTextOfPropertyName:()=>xm,tryParseJson:()=>jx,tryParsePattern:()=>aT,tryParsePatterns:()=>sT,tryParseRawSourceMap:()=>lU,tryReadDirectory:()=>v0,tryReadFile:()=>hL,tryRemoveDirectoryPrefix:()=>lw,tryRemoveExtension:()=>nT,tryRemovePrefix:()=>mn,tryRemoveSuffix:()=>en,tscBuildOption:()=>zI,typeAcquisitionDeclarations:()=>HI,typeAliasNamePart:()=>F1,typeDirectiveIsEqualTo:()=>Zf,typeKeywords:()=>K$,typeParameterNamePart:()=>I1,typeToDisplayParts:()=>H1,unchangedPollThresholds:()=>da,unchangedTextChangeRange:()=>Cc,unescapeLeadingUnderscores:()=>Hc,unmangleScopedPackageName:()=>aV,unorderedRemoveItem:()=>on,unprefixedNodeCoreModules:()=>BE,unsetNodeChildren:()=>yN,unwrapInnermostStatementOfLabel:()=>wh,unwrapParenthesizedExpression:()=>IE,updateErrorForNoInputFiles:()=>gR,updateLanguageServiceSourceFile:()=>Y4,updateMissingFilePathsWatch:()=>wK,updateResolutionField:()=>dz,updateSharedExtendedConfigFileWatcher:()=>xK,updateSourceFile:()=>YF,updateWatchingWildcardDirectories:()=>TK,usesWildcardTypes:()=>SC,usingSingleLineStringWriter:()=>Bf,utf16EncodeAsString:()=>qs,validateLocaleAndSetLanguage:()=>Ic,version:()=>o,versionMajorMinor:()=>a,visitArray:()=>VH,visitCommaListElements:()=>ZH,visitEachChild:()=>QH,visitFunctionBody:()=>YH,visitIterationBody:()=>XH,visitLexicalEnvironment:()=>UH,visitNode:()=>$,visitNodes:()=>BH,visitParameterList:()=>WH,walkUpBindingElementsAndPatterns:()=>kc,walkUpOuterExpressions:()=>XN,walkUpParenthesizedExpressions:()=>X_,walkUpParenthesizedTypes:()=>Y_,walkUpParenthesizedTypesAndGetParentAndChild:()=>Z_,whitespaceOrMapCommentRegExp:()=>iU,writeCommentRange:()=>bb,writeFile:()=>Jy,writeFileEnsuringDirectories:()=>Xy,zipWith:()=>g}),e.exports=r(i);var a=`6.0`,o=`6.0.3`,s=(e=>(e[e.LessThan=-1]=`LessThan`,e[e.EqualTo=0]=`EqualTo`,e[e.GreaterThan=1]=`GreaterThan`,e))(s||{}),c=[],l=new Map;function u(e){return e===void 0?0:e.length}function d(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let r=t(e[n],n);if(r)return r}}function f(e,t){if(e!==void 0)for(let n=e.length-1;n>=0;n--){let r=t(e[n],n);if(r)return r}}function p(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let r=t(e[n],n);if(r!==void 0)return r}}function m(e,t){for(let n of e){let e=t(n);if(e!==void 0)return e}}function h(e,t,n){let r=n;if(e){let n=0;for(let i of e)r=t(r,i,n),n++}return r}function g(e,t,n){let r=[];H.assertEqual(e.length,t.length);for(let i=0;i<e.length;i++)r.push(n(e[i],t[i],i));return r}function _(e,t){if(e.length<=1)return e;let n=[];for(let r=0,i=e.length;r<i;r++)r!==0&&n.push(t),n.push(e[r]);return n}function v(e,t){if(e!==void 0){for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1}return!0}function y(e,t,n){if(e!==void 0)for(let r=n??0;r<e.length;r++){let n=e[r];if(t(n,r))return n}}function b(e,t,n){if(e!==void 0)for(let r=n??e.length-1;r>=0;r--){let n=e[r];if(t(n,r))return n}}function x(e,t,n){if(e===void 0)return-1;for(let r=n??0;r<e.length;r++)if(t(e[r],r))return r;return-1}function S(e,t,n){if(e===void 0)return-1;for(let r=n??e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}function C(e,t,n=Mt){if(e!==void 0){for(let r=0;r<e.length;r++)if(n(e[r],t))return!0}return!1}function w(e,t,n){for(let r=n??0;r<e.length;r++)if(C(t,e.charCodeAt(r)))return r;return-1}function T(e,t){let n=0;if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r];t(i,r)&&n++}return n}function E(e,t){if(e!==void 0){let n=e.length,r=0;for(;r<n&&t(e[r]);)r++;if(r<n){let i=e.slice(0,r);for(r++;r<n;){let n=e[r];t(n)&&i.push(n),r++}return i}}return e}function D(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function O(e){e.length=0}function k(e,t){let n;if(e!==void 0){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*A(e,t){for(let n of e)yield t(n)}function ee(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let r=e[n],i=t(r,n);if(r!==i){let r=e.slice(0,n);for(r.push(i),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function te(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];r&&(ht(r)?Ee(t,r):t.push(r))}return t}function ne(e,t){let n;if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);i&&(n=ht(i)?Ee(n,i):I(n,i))}return n??c}function re(e,t){let n=[];if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);i&&(ht(i)?Ee(n,i):n.push(i))}return n}function*j(e,t){for(let n of e){let e=t(n);e&&(yield*e)}}function ie(e,t){let n;if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r);(n||i!==a||ht(a))&&(n||=e.slice(0,r),ht(a)?Ee(n,a):n.push(a))}return n??e}function ae(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i===void 0)return;n.push(i)}return n}function M(e,t){let n=[];if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);i!==void 0&&n.push(i)}return n}function*N(e,t){for(let n of e){let e=t(n);e!==void 0&&(yield e)}}function oe(e,t,n){if(e.has(t))return e.get(t);let r=n();return e.set(t,r),r}function se(e,t){return!e.has(t)&&(e.add(t),!0)}function*ce(e){yield e}function P(e,t,n){let r;if(e!==void 0){r=[];let i=e.length,a,o,s=0,c=0;for(;s<i;){for(;c<i;){let n=e[c];if(o=t(n,c),c===0)a=o;else if(o!==a)break;c++}if(s<c){let t=n(e.slice(s,c),a,s,c);t&&r.push(t),s=c}a=o,c++}}return r}function le(e,t){if(e===void 0)return;let n=new Map;return e.forEach((e,r)=>{let[i,a]=t(r,e);n.set(i,a)}),n}function F(e,t){if(e!==void 0){if(t!==void 0){for(let n=0;n<e.length;n++)if(t(e[n]))return!0}else return e.length>0}return!1}function ue(e,t,n){let r;for(let i=0;i<e.length;i++)t(e[i])?r=r===void 0?i:r:r!==void 0&&(n(r,i),r=void 0);r!==void 0&&n(r,e.length)}function de(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function fe(e,t){return t}function pe(e){return e.map(fe)}function me(e,t,n){let r=pe(e);ke(e,r,n);let i=e[r[0]],a=[r[0]];for(let n=1;n<r.length;n++){let o=r[n],s=e[o];t(i,s)||(a.push(o),i=s)}return a.sort(),a.map(t=>e[t])}function he(e,t){let n=[];for(let r=0;r<e.length;r++)De(n,e[r],t);return n}function ge(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?me(e,t,n):he(e,t)}function _e(e,t){if(e.length===0)return c;let n=e[0],r=[n];for(let i=1;i<e.length;i++){let a=e[i];switch(t(a,n)){case!0:case 0:continue;case-1:return H.fail(`Array is unsorted.`)}r.push(n=a)}return r}function ve(){return[]}function ye(e,t,n,r,i){if(e.length===0)return e.push(t),!0;let a=We(e,t,Tt,n);if(a<0){if(r&&!i){let n=~a;if(n>0&&r(t,e[n-1]))return!1;if(n<e.length&&r(t,e[n]))return e.splice(n,1,t),!0}return e.splice(~a,0,t),!0}return i?(e.splice(a,0,t),!0):!1}function be(e,t,n){return _e(Ae(e,t),n??t??Ht)}function xe(e,t,n=Mt){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function Se(e){let t;if(e!==void 0)for(let n=0;n<e.length;n++){let r=e[n];(t??!r)&&(t??=e.slice(0,n),r&&t.push(r))}return t??e}function Ce(e,t,n){if(!t||!e||t.length===0||e.length===0)return t;let r=[];loopB:for(let i=0,a=0;a<t.length;a++){a>0&&H.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);loopA:for(let o=i;i<e.length;i++)switch(i>o&&H.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[a],e[i])){case-1:r.push(t[a]);continue loopB;case 0:continue loopB;case 1:continue loopA}}return r}function I(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function we(e,t){return e===void 0?t:t===void 0?e:ht(e)?ht(t)?de(e,t):I(e,t):ht(t)?I(t,e):[e,t]}function Te(e,t){return t<0?e.length+t:t}function Ee(e,t,n,r){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,r);n=n===void 0?0:Te(t,n),r=r===void 0?t.length:Te(t,r);for(let i=n;i<r&&i<t.length;i++)t[i]!==void 0&&e.push(t[i]);return e}function De(e,t,n){return!C(e,t,n)&&(e.push(t),!0)}function Oe(e,t,n){return e===void 0?[t]:(De(e,t,n),e)}function ke(e,t,n){t.sort((t,r)=>n(e[t],e[r])||It(t,r))}function Ae(e,t){return e.length===0?c:e.slice().sort(t)}function*je(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Me(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}var Ne=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=Te(e,t),t<e.length))return e[t]};function Pe(e){return e===void 0||e.length===0?void 0:e[0]}function Fe(e){if(e!==void 0)for(let t of e)return t}function Ie(e){return H.assert(e.length!==0),e[0]}function Le(e){for(let t of e)return t;H.fail(`iterator is empty`)}function Re(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function ze(e){return H.assert(e.length!==0),e[e.length-1]}function Be(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ve(e){return H.checkDefined(Be(e))}function He(e){return e!==void 0&&e.length===1?e[0]:e}function Ue(e,t,n){let r=e.slice(0);return r[t]=n,r}function We(e,t,n,r,i){return L(e,n(t),n,r,i)}function L(e,t,n,r,i){if(!F(e))return-1;let a=i??0,o=e.length-1;for(;a<=o;){let i=a+(o-a>>1),s=n(e[i],i);switch(Math.sign(r(s,t))){case-1:a=i+1;break;case 0:return i;case 1:o=i-1}}return~a}function Ge(e,t,n,r,i){if(e&&e.length>0){let a=e.length;if(a>0){let o=r===void 0||r<0?0:r,s=i===void 0||o+i>a-1?a-1:o+i,c;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}var Ke=Object.prototype.hasOwnProperty;function qe(e,t){return Ke.call(e,t)}function Je(e,t){return Ke.call(e,t)?e[t]:void 0}function Ye(e){let t=[];for(let n in e)Ke.call(e,n)&&t.push(n);return t}function Xe(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let e of n)De(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ze(e){let t=[];for(let n in e)Ke.call(e,n)&&t.push(e[n]);return t}function Qe(e,t){let n=Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n}function $e(e,t){let n=[];for(let r of e)n.push(t?t(r):r);return n}function et(e,...t){for(let n of t)if(n!==void 0)for(let t in n)qe(n,t)&&(e[t]=n[t]);return e}function tt(e,t,n=Mt){if(e===t)return!0;if(!e||!t)return!1;for(let r in e)if(Ke.call(e,r)&&(!Ke.call(t,r)||!n(e[r],t[r])))return!1;for(let n in t)if(Ke.call(t,n)&&!Ke.call(e,n))return!1;return!0}function nt(e,t,n=Tt){let r=new Map;for(let i=0;i<e.length;i++){let a=e[i],o=t(a);o!==void 0&&r.set(o,n(a))}return r}function rt(e,t,n=Tt){let r=[];for(let i=0;i<e.length;i++){let a=e[i];r[t(a)]=n(a)}return r}function it(e,t,n=Tt){let r=dt();for(let i=0;i<e.length;i++){let a=e[i];r.add(t(a),n(a))}return r}function at(e,t,n=Tt){return $e(it(e,t).values(),n)}function ot(e,t){let n={};if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r],a=`${t(i)}`;(n[a]??(n[a]=[])).push(i)}return n}function st(e){let t={};for(let n in e)Ke.call(e,n)&&(t[n]=e[n]);return t}function ct(e,t){let n={};for(let e in t)Ke.call(t,e)&&(n[e]=t[e]);for(let t in e)Ke.call(e,t)&&(n[t]=e[t]);return n}function lt(e,t){for(let n in t)Ke.call(t,n)&&(e[n]=t[n])}function ut(e,t){return t?.bind(e)}function dt(){let e=new Map;return e.add=ft,e.remove=R,e}function ft(e,t){let n=this.get(e);return n===void 0?this.set(e,n=[t]):n.push(t),n}function R(e,t){let n=this.get(e);n!==void 0&&(on(n,t),n.length||this.delete(e))}function pt(e){let t=e?.slice()??[],n=0;function r(){return n===t.length}function i(...e){t.push(...e)}function a(){if(r())throw Error(`Queue is empty`);let e=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){let e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e}return{enqueue:i,dequeue:a,isEmpty:r}}function mt(e,t){let n=new Map,r=0;function*i(){for(let e of n.values())ht(e)?yield*e:yield e}let a={has(r){let i=e(r);if(!n.has(i))return!1;let a=n.get(i);return ht(a)?C(a,r,t):t(a,r)},add(i){let a=e(i);if(n.has(a)){let e=n.get(a);if(ht(e))C(e,i,t)||(e.push(i),r++);else{let o=e;t(o,i)||(n.set(a,[o,i]),r++)}}else n.set(a,i),r++;return this},delete(i){let a=e(i);if(!n.has(a))return!1;let o=n.get(a);if(ht(o)){for(let e=0;e<o.length;e++)if(t(o[e],i))return o.length===1?n.delete(a):o.length===2?n.set(a,o[1-e]):an(o,e),r--,!0}else if(t(o,i))return n.delete(a),r--,!0;return!1},clear(){n.clear(),r=0},get size(){return r},forEach(e){for(let t of $e(n.values()))if(ht(t))for(let n of t)e(n,n,a);else{let n=t;e(n,n,a)}},keys(){return i()},values(){return i()},*entries(){for(let e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return a}function ht(e){return Array.isArray(e)}function gt(e){return ht(e)?e:[e]}function _t(e){return typeof e==`string`}function vt(e){return typeof e==`number`}function yt(e,t){return e!==void 0&&t(e)?e:void 0}function bt(e,t){return e!==void 0&&t(e)?e:H.fail(`Invalid cast. The supplied value ${e} did not pass the test '${H.getFunctionName(t)}'.`)}function xt(e){}function St(){return!1}function Ct(){return!0}function wt(){}function Tt(e){return e}function Et(e){return e.toLowerCase()}var z=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function Dt(e){return z.test(e)?e.replace(z,Et):e}function Ot(){throw Error(`Not implemented`)}function kt(e){let t;return()=>(e&&=(t=e(),void 0),t)}function At(e){let t=new Map;return n=>{let r=`${typeof n}:${n}`,i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(n),t.set(r,i)),i}}var jt=(e=>(e[e.None=0]=`None`,e[e.Normal=1]=`Normal`,e[e.Aggressive=2]=`Aggressive`,e[e.VeryAggressive=3]=`VeryAggressive`,e))(jt||{});function Mt(e,t){return e===t}function Nt(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Pt(e,t){return Mt(e,t)}function Ft(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function It(e,t){return Ft(e,t)}function Lt(e,t){return It(e?.start,t?.start)||It(e?.length,t?.length)}function Rt(e,t,n){for(let r=0;r<e.length;r++)t=Math.max(t,n(e[r]));return t}function zt(e,t){return Ge(e,(e,n)=>t(e,n)===-1?e:n)}function Bt(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:+(e>t))}function Vt(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:+(e>t))}function Ht(e,t){return Ft(e,t)}function Ut(e){return e?Bt:Ht}var Wt=(()=>{return t;function e(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let r=n(e,t);return r<0?-1:+(r>0)}function t(t){let n=new Intl.Collator(t,{usage:`sort`,sensitivity:`variant`,numeric:!0}).compare;return(t,r)=>e(t,r,n)}})(),Gt,B;function Kt(){return B}function qt(e){B!==e&&(B=e,Gt=void 0)}function Jt(e,t){return Gt??=Wt(B),Gt(e,t)}function Yt(e,t,n,r){return e===t?0:e===void 0?-1:t===void 0?1:r(e[n],t[n])}function Xt(e,t){return It(+!!e,+!!t)}function Zt(e,t,n){let r=Math.max(2,Math.floor(e.length*.34)),i=Math.floor(e.length*.4)+1,a;for(let o of t){let t=n(o);if(t!==void 0&&Math.abs(t.length-e.length)<=r){if(t===e||t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;let n=V(e,t,i-.1);if(n===void 0)continue;H.assert(n<i),i=n,a=o}}return a}function V(e,t,n){let r=Array(t.length+1),i=Array(t.length+1),a=n+.01;for(let e=0;e<=t.length;e++)r[e]=e;for(let o=1;o<=e.length;o++){let s=e.charCodeAt(o-1),c=Math.ceil(o>n?o-n:1),l=Math.floor(t.length>n+o?n+o:t.length);i[0]=o;let u=o;for(let e=1;e<c;e++)i[e]=a;for(let n=c;n<=l;n++){let a=e[o-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,c=s===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,i[n-1]+1,a);i[n]=c,u=Math.min(u,c)}for(let e=l+1;e<=t.length;e++)i[e]=a;if(u>n)return;let d=r;r=i,i=d}let o=r[t.length];return o>n?void 0:o}function Qt(e,t,n){let r=e.length-t.length;return r>=0&&(n?Nt(e.slice(r),t):e.indexOf(t,r)===r)}function $t(e,t){return Qt(e,t)?e.slice(0,e.length-t.length):e}function en(e,t){return Qt(e,t)?e.slice(0,e.length-t.length):void 0}function tn(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do--n,r=e.charCodeAt(n);while(n>0&&r>=48&&r<=57);else if(n>4&&(r===110||r===78)){if(--n,r=e.charCodeAt(n),r!==105&&r!==73||(--n,r=e.charCodeAt(n),r!==109&&r!==77))break;--n,r=e.charCodeAt(n)}else break;if(r!==45&&r!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function nn(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return rn(e,n),!0;return!1}function rn(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function an(e,t){e[t]=e[e.length-1],e.pop()}function on(e,t){return sn(e,e=>e===t)}function sn(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return an(e,n),!0;return!1}function cn(e){return e?Tt:Dt}function ln({prefix:e,suffix:t}){return`${e}*${t}`}function un(e,t){return H.assert(hn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function dn(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e[a],s=t(o);s.prefix.length>i&&hn(s,n)&&(i=s.prefix.length,r=o)}return r}function fn(e,t,n){return n?Nt(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function pn(e,t){return fn(e,t)?e.substr(t.length):e}function mn(e,t,n=Tt){return fn(n(e),n(t))?e.substring(t.length):void 0}function hn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&fn(n,e)&&Qt(n,t)}function gn(e,t){return n=>e(n)&&t(n)}function _n(...e){return(...t)=>{let n;for(let r of e)if(n=r(...t),n)return n;return n}}function vn(e){return(...t)=>!e(...t)}function yn(e){}function bn(e){return e===void 0?void 0:[e]}function xn(e,t,n,r,i,a){a??=xt;let o=0,s=0,c=e.length,l=t.length,u=!1;for(;o<c&&s<l;){let c=e[o],l=t[s],d=n(c,l);d===-1?(r(c),o++,u=!0):d===1?(i(l),s++,u=!0):(a(l,c),o++,s++)}for(;o<c;)r(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u}function Sn(e){let t=[];return Cn(e,t,void 0,0),t}function Cn(e,t,n,r){for(let i of e[r]){let a;n?(a=n.slice(),a.push(i)):a=[i],r===e.length-1?t.push(a):Cn(e,t,a,r+1)}}function wn(e,t){if(e!==void 0){let n=e.length,r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function Tn(e,t){if(e!==void 0){let n=e.length,r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function En(){return typeof process<`u`&&!!process.nextTick&&!process.browser&&jf!==void 0}var Dn=(e=>(e[e.Off=0]=`Off`,e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Info=3]=`Info`,e[e.Verbose=4]=`Verbose`,e))(Dn||{}),H;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(t){return e.currentLogLevel<=t}e.shouldLog=n;function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}e.log=i,(e=>{function t(e){r(1,e)}e.error=t;function n(e){r(2,e)}e.warn=n;function i(e){r(3,e)}e.log=i;function a(e){r(4,e)}e.trace=a})(i=e.log||={});let a={};function o(){return t}e.getAssertionLevel=o;function s(n){let r=t;if(t=n,n>r)for(let t of Ye(a)){let r=a[t];r!==void 0&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}}e.setAssertionLevel=s;function c(e){return t>=e}e.shouldAssert=c;function l(t,n){return c(t)?!0:(a[n]={level:t,assertion:e[n]},e[n]=xt,!1)}function u(e,t){let n=Error(e?`Debug Failure. ${e}`:`Debug Failure.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,t||u),n}e.fail=u;function d(e,t,n){return u(`${t||`Unexpected node.`}\r
|
|
54
|
+
${JSON.stringify(i,null,2)}`);return t.value}}async notify(e,t,n){if(!this.checkChannel(this._requestSender))throw Error();let r=e.paramsSerializer.serializeToJson(t);lU(r),this._requestSender.sendNotification({method:e.method,params:r},n)}};function lU(e){if(e!==null&&Array.isArray(e)&&typeof e!=`object`)throw Error(`Invalid value! Only null, array and object is allowed.`)}var uU=class e extends Error{constructor(t,n,r=qH.genericApplicationError){super(t),$(this,`data`),$(this,`code`),this.data=n,this.code=r,Object.setPrototypeOf(this,e.prototype)}},dU=class e{constructor(e,t,n,r,i=!1){$(this,`method`),$(this,`paramsSerializer`),$(this,`resultSerializer`),$(this,`errorSerializer`),$(this,`isOptional`),$(this,`kind`,`request`),this.method=e,this.paramsSerializer=t,this.resultSerializer=n,this.errorSerializer=r,this.isOptional=i}withMethod(t){return new e(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new e(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},fU=class e{constructor(e,t){$(this,`method`),$(this,`paramsSerializer`),$(this,`kind`,`notification`),this.method=e,this.paramsSerializer=t}withMethod(t){return new e(t,this.paramsSerializer)}};function pU(e){return new dU((e||{}).method,iU.sAny(),iU.sAny(),iU.sAny())}function mU(e){return new fU((e||{}).method,iU.sAny())}var hU=(VH=Symbol(),HH=class{constructor(e){$(this,`error`),$(this,VH),this.error=e}},$(HH,`factory`,e=>new HH(e)),HH);function gU(e){let t=_U(e.server),n=_U(e.client);return new vU(e.tags||[],t,n)}function _U(e){let t={};for(let[n,r]of Object.entries(e)){let e=r.method?r.method:n;t[n]=r.withMethod(e)}return t}var vU=class e{constructor(e=[],t,n){$(this,`tags`),$(this,`server`),$(this,`client`),this.tags=e,this.server=t,this.client=n}_onlyDesignTime(){return Error(`This property is not meant to be accessed at runtime`)}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,n,r){let i=this.buildCounterpart(e,n),a=this.registerHandlers(e,t,r,i);return{counterpart:i,dispose:()=>a.dispose()}}buildCounterpart(e,t){let n={};for(let[r,i]of Object.entries(t)){let t;t=i.kind===`request`?i.isOptional?async(t,n)=>{t===void 0&&(t={});try{return await e.request(i,t,n)}catch(e){if(e&&e.code===qH.methodNotFound)return aU;throw e}}:(t,n)=>(t===void 0&&(t={}),e.request(i,t,n)):(t,n)=>(t===void 0&&(t={}),e.notify(i,t,n)),n[r]=t}return n}registerHandlers(e,t,n,r){let i=[];for(let[a,o]of Object.entries(t))if(o.kind===`request`){let t=n[a];if(!t)continue;let s=this.createRequestHandler(r,t);i.push(e.registerRequestHandler(o,s))}else{let t=n[a];t&&i.push(e.registerNotificationHandler(o,(e,n)=>{t(e,{context:n,counterpart:r})}))}return{dispose:()=>i.forEach(e=>e.dispose())}}createRequestHandler(e,t){return async(n,r,i)=>{let a=await t(n,{context:i,counterpart:e,newErr:hU.factory,requestId:r});return a instanceof hU?a.error:{ok:a}}}static getServerFromStream(e,t,n,r){let i=cU.fromTransport(t,n),{server:a}=e.getServer(i,r);return i.startListen(),{channel:i,server:a}}static registerServerToStream(e,t,n,r){let i=cU.fromTransport(t,n),{client:a}=e.registerServer(i,r);return i.startListen(),{channel:i,client:a}}getServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.client,this.server,t);return{server:n,dispose:r}}registerServer(e,t){let{counterpart:n,dispose:r}=this.getInterface(e,this.server,this.client,t);return{client:n,dispose:r}}withContext(){return new e(this.tags,this.server,this.client)}},yU=(function(e){return e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`,e})({}),bU=(function(e){return e[e.File=1]=`File`,e[e.Module=2]=`Module`,e[e.Namespace=3]=`Namespace`,e[e.Package=4]=`Package`,e[e.Class=5]=`Class`,e[e.Method=6]=`Method`,e[e.Property=7]=`Property`,e[e.Field=8]=`Field`,e[e.Constructor=9]=`Constructor`,e[e.Enum=10]=`Enum`,e[e.Interface=11]=`Interface`,e[e.Function=12]=`Function`,e[e.Variable=13]=`Variable`,e[e.Constant=14]=`Constant`,e[e.String=15]=`String`,e[e.Number=16]=`Number`,e[e.Boolean=17]=`Boolean`,e[e.Array=18]=`Array`,e[e.Object=19]=`Object`,e[e.Key=20]=`Key`,e[e.Null=21]=`Null`,e[e.EnumMember=22]=`EnumMember`,e[e.Struct=23]=`Struct`,e[e.Event=24]=`Event`,e[e.Operator=25]=`Operator`,e[e.TypeParameter=26]=`TypeParameter`,e})({}),xU=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),SU=(function(e){return e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`,e})({}),CU=(function(e){return e[e.Text=1]=`Text`,e[e.Method=2]=`Method`,e[e.Function=3]=`Function`,e[e.Constructor=4]=`Constructor`,e[e.Field=5]=`Field`,e[e.Variable=6]=`Variable`,e[e.Class=7]=`Class`,e[e.Interface=8]=`Interface`,e[e.Module=9]=`Module`,e[e.Property=10]=`Property`,e[e.Unit=11]=`Unit`,e[e.Value=12]=`Value`,e[e.Enum=13]=`Enum`,e[e.Keyword=14]=`Keyword`,e[e.Snippet=15]=`Snippet`,e[e.Color=16]=`Color`,e[e.File=17]=`File`,e[e.Reference=18]=`Reference`,e[e.Folder=19]=`Folder`,e[e.EnumMember=20]=`EnumMember`,e[e.Constant=21]=`Constant`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`,e})({}),wU=(function(e){return e[e.Deprecated=1]=`Deprecated`,e})({}),TU=(function(e){return e[e.PlainText=1]=`PlainText`,e[e.Snippet=2]=`Snippet`,e})({}),EU=(function(e){return e[e.Text=1]=`Text`,e[e.Read=2]=`Read`,e[e.Write=3]=`Write`,e})({}),DU=(function(e){return e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e})({}),OU=(function(e){return e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Information=3]=`Information`,e[e.Hint=4]=`Hint`,e})({}),kU=(function(e){return e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`,e})({}),AU=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=3]=`TriggerForIncompleteCompletions`,e})({}),jU=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`,e})({}),MU=(function(e){return e[e.Invoked=1]=`Invoked`,e[e.Automatic=2]=`Automatic`,e})({}),NU=class{constructor(e){this.method=e}},PU={textDocumentImplementation:new NU(`textDocument/implementation`),textDocumentTypeDefinition:new NU(`textDocument/typeDefinition`),textDocumentDocumentColor:new NU(`textDocument/documentColor`),textDocumentColorPresentation:new NU(`textDocument/colorPresentation`),textDocumentFoldingRange:new NU(`textDocument/foldingRange`),textDocumentDeclaration:new NU(`textDocument/declaration`),textDocumentSelectionRange:new NU(`textDocument/selectionRange`),textDocumentPrepareCallHierarchy:new NU(`textDocument/prepareCallHierarchy`),textDocumentSemanticTokensFull:new NU(`textDocument/semanticTokens/full`),textDocumentSemanticTokensFullDelta:new NU(`textDocument/semanticTokens/full/delta`),textDocumentLinkedEditingRange:new NU(`textDocument/linkedEditingRange`),workspaceWillCreateFiles:new NU(`workspace/willCreateFiles`),workspaceWillRenameFiles:new NU(`workspace/willRenameFiles`),workspaceWillDeleteFiles:new NU(`workspace/willDeleteFiles`),textDocumentMoniker:new NU(`textDocument/moniker`),textDocumentPrepareTypeHierarchy:new NU(`textDocument/prepareTypeHierarchy`),textDocumentInlineValue:new NU(`textDocument/inlineValue`),textDocumentInlayHint:new NU(`textDocument/inlayHint`),textDocumentDiagnostic:new NU(`textDocument/diagnostic`),textDocumentInlineCompletion:new NU(`textDocument/inlineCompletion`),textDocumentWillSaveWaitUntil:new NU(`textDocument/willSaveWaitUntil`),textDocumentCompletion:new NU(`textDocument/completion`),textDocumentHover:new NU(`textDocument/hover`),textDocumentSignatureHelp:new NU(`textDocument/signatureHelp`),textDocumentDefinition:new NU(`textDocument/definition`),textDocumentReferences:new NU(`textDocument/references`),textDocumentDocumentHighlight:new NU(`textDocument/documentHighlight`),textDocumentDocumentSymbol:new NU(`textDocument/documentSymbol`),textDocumentCodeAction:new NU(`textDocument/codeAction`),workspaceSymbol:new NU(`workspace/symbol`),textDocumentCodeLens:new NU(`textDocument/codeLens`),textDocumentDocumentLink:new NU(`textDocument/documentLink`),textDocumentFormatting:new NU(`textDocument/formatting`),textDocumentRangeFormatting:new NU(`textDocument/rangeFormatting`),textDocumentRangesFormatting:new NU(`textDocument/rangesFormatting`),textDocumentOnTypeFormatting:new NU(`textDocument/onTypeFormatting`),textDocumentRename:new NU(`textDocument/rename`),workspaceExecuteCommand:new NU(`workspace/executeCommand`),workspaceDidCreateFiles:new NU(`workspace/didCreateFiles`),workspaceDidRenameFiles:new NU(`workspace/didRenameFiles`),workspaceDidDeleteFiles:new NU(`workspace/didDeleteFiles`),workspaceDidChangeConfiguration:new NU(`workspace/didChangeConfiguration`),textDocumentDidOpen:new NU(`textDocument/didOpen`),textDocumentDidChange:new NU(`textDocument/didChange`),textDocumentDidClose:new NU(`textDocument/didClose`),textDocumentDidSave:new NU(`textDocument/didSave`),textDocumentWillSave:new NU(`textDocument/willSave`),workspaceDidChangeWatchedFiles:new NU(`workspace/didChangeWatchedFiles`)};gU({server:{textDocumentImplementation:pU({method:`textDocument/implementation`}),textDocumentTypeDefinition:pU({method:`textDocument/typeDefinition`}),textDocumentDocumentColor:pU({method:`textDocument/documentColor`}),textDocumentColorPresentation:pU({method:`textDocument/colorPresentation`}),textDocumentFoldingRange:pU({method:`textDocument/foldingRange`}),textDocumentDeclaration:pU({method:`textDocument/declaration`}),textDocumentSelectionRange:pU({method:`textDocument/selectionRange`}),textDocumentPrepareCallHierarchy:pU({method:`textDocument/prepareCallHierarchy`}),callHierarchyIncomingCalls:pU({method:`callHierarchy/incomingCalls`}),callHierarchyOutgoingCalls:pU({method:`callHierarchy/outgoingCalls`}),textDocumentSemanticTokensFull:pU({method:`textDocument/semanticTokens/full`}),textDocumentSemanticTokensFullDelta:pU({method:`textDocument/semanticTokens/full/delta`}),textDocumentSemanticTokensRange:pU({method:`textDocument/semanticTokens/range`}),textDocumentLinkedEditingRange:pU({method:`textDocument/linkedEditingRange`}),workspaceWillCreateFiles:pU({method:`workspace/willCreateFiles`}),workspaceWillRenameFiles:pU({method:`workspace/willRenameFiles`}),workspaceWillDeleteFiles:pU({method:`workspace/willDeleteFiles`}),textDocumentMoniker:pU({method:`textDocument/moniker`}),textDocumentPrepareTypeHierarchy:pU({method:`textDocument/prepareTypeHierarchy`}),typeHierarchySupertypes:pU({method:`typeHierarchy/supertypes`}),typeHierarchySubtypes:pU({method:`typeHierarchy/subtypes`}),textDocumentInlineValue:pU({method:`textDocument/inlineValue`}),textDocumentInlayHint:pU({method:`textDocument/inlayHint`}),inlayHintResolve:pU({method:`inlayHint/resolve`}),textDocumentDiagnostic:pU({method:`textDocument/diagnostic`}),workspaceDiagnostic:pU({method:`workspace/diagnostic`}),textDocumentInlineCompletion:pU({method:`textDocument/inlineCompletion`}),initialize:pU({method:`initialize`}),shutdown:pU({method:`shutdown`}),textDocumentWillSaveWaitUntil:pU({method:`textDocument/willSaveWaitUntil`}),textDocumentCompletion:pU({method:`textDocument/completion`}),completionItemResolve:pU({method:`completionItem/resolve`}),textDocumentHover:pU({method:`textDocument/hover`}),textDocumentSignatureHelp:pU({method:`textDocument/signatureHelp`}),textDocumentDefinition:pU({method:`textDocument/definition`}),textDocumentReferences:pU({method:`textDocument/references`}),textDocumentDocumentHighlight:pU({method:`textDocument/documentHighlight`}),textDocumentDocumentSymbol:pU({method:`textDocument/documentSymbol`}),textDocumentCodeAction:pU({method:`textDocument/codeAction`}),codeActionResolve:pU({method:`codeAction/resolve`}),workspaceSymbol:pU({method:`workspace/symbol`}),workspaceSymbolResolve:pU({method:`workspaceSymbol/resolve`}),textDocumentCodeLens:pU({method:`textDocument/codeLens`}),codeLensResolve:pU({method:`codeLens/resolve`}),textDocumentDocumentLink:pU({method:`textDocument/documentLink`}),documentLinkResolve:pU({method:`documentLink/resolve`}),textDocumentFormatting:pU({method:`textDocument/formatting`}),textDocumentRangeFormatting:pU({method:`textDocument/rangeFormatting`}),textDocumentRangesFormatting:pU({method:`textDocument/rangesFormatting`}),textDocumentOnTypeFormatting:pU({method:`textDocument/onTypeFormatting`}),textDocumentRename:pU({method:`textDocument/rename`}),textDocumentPrepareRename:pU({method:`textDocument/prepareRename`}),workspaceExecuteCommand:pU({method:`workspace/executeCommand`}),workspaceDidChangeWorkspaceFolders:mU({method:`workspace/didChangeWorkspaceFolders`}),windowWorkDoneProgressCancel:mU({method:`window/workDoneProgress/cancel`}),workspaceDidCreateFiles:mU({method:`workspace/didCreateFiles`}),workspaceDidRenameFiles:mU({method:`workspace/didRenameFiles`}),workspaceDidDeleteFiles:mU({method:`workspace/didDeleteFiles`}),notebookDocumentDidOpen:mU({method:`notebookDocument/didOpen`}),notebookDocumentDidChange:mU({method:`notebookDocument/didChange`}),notebookDocumentDidSave:mU({method:`notebookDocument/didSave`}),notebookDocumentDidClose:mU({method:`notebookDocument/didClose`}),initialized:mU({method:`initialized`}),exit:mU({method:`exit`}),workspaceDidChangeConfiguration:mU({method:`workspace/didChangeConfiguration`}),textDocumentDidOpen:mU({method:`textDocument/didOpen`}),textDocumentDidChange:mU({method:`textDocument/didChange`}),textDocumentDidClose:mU({method:`textDocument/didClose`}),textDocumentDidSave:mU({method:`textDocument/didSave`}),textDocumentWillSave:mU({method:`textDocument/willSave`}),workspaceDidChangeWatchedFiles:mU({method:`workspace/didChangeWatchedFiles`}),setTrace:mU({method:`$/setTrace`}),cancelRequest:mU({method:`$/cancelRequest`}),progress:mU({method:`$/progress`})},client:{workspaceWorkspaceFolders:pU({method:`workspace/workspaceFolders`}).optional(),workspaceConfiguration:pU({method:`workspace/configuration`}).optional(),workspaceFoldingRangeRefresh:pU({method:`workspace/foldingRange/refresh`}).optional(),windowWorkDoneProgressCreate:pU({method:`window/workDoneProgress/create`}).optional(),workspaceSemanticTokensRefresh:pU({method:`workspace/semanticTokens/refresh`}).optional(),windowShowDocument:pU({method:`window/showDocument`}).optional(),workspaceInlineValueRefresh:pU({method:`workspace/inlineValue/refresh`}).optional(),workspaceInlayHintRefresh:pU({method:`workspace/inlayHint/refresh`}).optional(),workspaceDiagnosticRefresh:pU({method:`workspace/diagnostic/refresh`}).optional(),clientRegisterCapability:pU({method:`client/registerCapability`}).optional(),clientUnregisterCapability:pU({method:`client/unregisterCapability`}).optional(),windowShowMessageRequest:pU({method:`window/showMessageRequest`}).optional(),workspaceCodeLensRefresh:pU({method:`workspace/codeLens/refresh`}).optional(),workspaceApplyEdit:pU({method:`workspace/applyEdit`}).optional(),windowShowMessage:mU({method:`window/showMessage`}),windowLogMessage:mU({method:`window/logMessage`}),telemetryEvent:mU({method:`telemetry/event`}),textDocumentPublishDiagnostics:mU({method:`textDocument/publishDiagnostics`}),logTrace:mU({method:`$/logTrace`}),cancelRequest:mU({method:`$/cancelRequest`}),progress:mU({method:`$/progress`})}}),UH=class{constructor(){$(this,`_store`,new FU)}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},$(UH,`None`,Object.freeze({dispose(){}}));var FU=(WH=class{constructor(){$(this,`_toDispose`,new Set),$(this,`_isDisposed`,!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(let e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?WH.DISABLE_DISPOSED_WARNING||console.warn(Error(`Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!`).stack):this._toDispose.add(e),e}},$(WH,`DISABLE_DISPOSED_WARNING`,!1),WH);DU.Empty,DU.QuickFix,DU.Refactor,DU.RefactorExtract,DU.RefactorInline,DU.RefactorRewrite,DU.Source,DU.SourceOrganizeImports,DU.SourceFixAll,Xc.CodeActionTriggerType.Invoke,MU.Invoked,Xc.CodeActionTriggerType.Auto,MU.Automatic,CU.Text,Xc.CompletionItemKind.Text,CU.Method,Xc.CompletionItemKind.Method,CU.Function,Xc.CompletionItemKind.Function,CU.Constructor,Xc.CompletionItemKind.Constructor,CU.Field,Xc.CompletionItemKind.Field,CU.Variable,Xc.CompletionItemKind.Variable,CU.Class,Xc.CompletionItemKind.Class,CU.Interface,Xc.CompletionItemKind.Interface,CU.Module,Xc.CompletionItemKind.Module,CU.Property,Xc.CompletionItemKind.Property,CU.Unit,Xc.CompletionItemKind.Unit,CU.Value,Xc.CompletionItemKind.Value,CU.Enum,Xc.CompletionItemKind.Enum,CU.Keyword,Xc.CompletionItemKind.Keyword,CU.Snippet,Xc.CompletionItemKind.Snippet,CU.Color,Xc.CompletionItemKind.Color,CU.File,Xc.CompletionItemKind.File,CU.Reference,Xc.CompletionItemKind.Reference,CU.Folder,Xc.CompletionItemKind.Folder,CU.EnumMember,Xc.CompletionItemKind.EnumMember,CU.Constant,Xc.CompletionItemKind.Constant,CU.Struct,Xc.CompletionItemKind.Struct,CU.Event,Xc.CompletionItemKind.Event,CU.Operator,Xc.CompletionItemKind.Operator,CU.TypeParameter,Xc.CompletionItemKind.TypeParameter,wU.Deprecated,Xc.CompletionItemTag.Deprecated,Xc.CompletionTriggerKind.Invoke,AU.Invoked,Xc.CompletionTriggerKind.TriggerCharacter,AU.TriggerCharacter,Xc.CompletionTriggerKind.TriggerForIncompleteCompletions,AU.TriggerForIncompleteCompletions,TU.Snippet,Xc.CompletionItemInsertTextRule.InsertAsSnippet,bU.File,Xc.SymbolKind.File,bU.Module,Xc.SymbolKind.Module,bU.Namespace,Xc.SymbolKind.Namespace,bU.Package,Xc.SymbolKind.Package,bU.Class,Xc.SymbolKind.Class,bU.Method,Xc.SymbolKind.Method,bU.Property,Xc.SymbolKind.Property,bU.Field,Xc.SymbolKind.Field,bU.Constructor,Xc.SymbolKind.Constructor,bU.Enum,Xc.SymbolKind.Enum,bU.Interface,Xc.SymbolKind.Interface,bU.Function,Xc.SymbolKind.Function,bU.Variable,Xc.SymbolKind.Variable,bU.Constant,Xc.SymbolKind.Constant,bU.String,Xc.SymbolKind.String,bU.Number,Xc.SymbolKind.Number,bU.Boolean,Xc.SymbolKind.Boolean,bU.Array,Xc.SymbolKind.Array,bU.Object,Xc.SymbolKind.Object,bU.Key,Xc.SymbolKind.Key,bU.Null,Xc.SymbolKind.Null,bU.EnumMember,Xc.SymbolKind.EnumMember,bU.Struct,Xc.SymbolKind.Struct,bU.Event,Xc.SymbolKind.Event,bU.Operator,Xc.SymbolKind.Operator,bU.TypeParameter,Xc.SymbolKind.TypeParameter,xU.Deprecated,Xc.SymbolTag.Deprecated,EU.Text,Xc.DocumentHighlightKind.Text,EU.Read,Xc.DocumentHighlightKind.Read,EU.Write,Xc.DocumentHighlightKind.Write,yU.Comment,Xc.FoldingRangeKind.Comment,yU.Imports,Xc.FoldingRangeKind.Imports,yU.Region,Xc.FoldingRangeKind.Region,pc.Error,OU.Error,pc.Warning,OU.Warning,pc.Info,OU.Information,pc.Hint,OU.Hint,OU.Error,pc.Error,OU.Warning,pc.Warning,OU.Information,pc.Info,OU.Hint,pc.Hint,kU.Unnecessary,Co.Unnecessary,kU.Deprecated,Co.Deprecated,Xc.SignatureHelpTriggerKind.Invoke,jU.Invoked,Xc.SignatureHelpTriggerKind.TriggerCharacter,jU.TriggerCharacter,Xc.SignatureHelpTriggerKind.ContentChange,jU.ContentChange,SU.Type,Xc.InlayHintKind.Type,SU.Parameter,Xc.InlayHintKind.Parameter,new Map([...Object.values(PU)].map(e=>[e.method,e])),typeof WebSocket<`u`||(typeof MozWebSocket<`u`?MozWebSocket:typeof global<`u`?global.WebSocket||global.MozWebSocket:typeof window<`u`?window.WebSocket||window.MozWebSocket:typeof self<`u`&&(self.WebSocket||self.MozWebSocket));var IU={},LU={},RU=class e{static getOrCreate(t){return LU[t]||(LU[t]=new e(t)),LU[t]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,IU[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function zU(e){let t=e.id;IU[t]=e,Xc.register(e);let n=RU.getOrCreate(t);Xc.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),Xc.onLanguageEncountered(t,async()=>{let e=await n.load();Xc.setLanguageConfiguration(t,e.conf)})}zU({id:`abap`,extensions:[`.abap`],aliases:[`abap`,`ABAP`],loader:()=>_e(()=>import(`./abap-08VXUWAP.js`),[])}),zU({id:`apex`,extensions:[`.cls`],aliases:[`Apex`,`apex`],mimetypes:[`text/x-apex-source`,`text/x-apex`],loader:()=>_e(()=>import(`./apex-BWPQTe0t.js`),[])}),zU({id:`azcli`,extensions:[`.azcli`],aliases:[`Azure CLI`,`azcli`],loader:()=>_e(()=>import(`./azcli-Bc_sGQ0U.js`),[])}),zU({id:`bat`,extensions:[`.bat`,`.cmd`],aliases:[`Batch`,`bat`],loader:()=>_e(()=>import(`./bat-i0X4ZdIN.js`),[])}),zU({id:`bicep`,extensions:[`.bicep`],aliases:[`Bicep`],loader:()=>_e(()=>import(`./bicep-B5-_aFwp.js`),[])}),zU({id:`cameligo`,extensions:[`.mligo`],aliases:[`Cameligo`],loader:()=>_e(()=>import(`./cameligo-DMUM7wLl.js`),[])}),zU({id:`clojure`,extensions:[`.clj`,`.cljs`,`.cljc`,`.edn`],aliases:[`clojure`,`Clojure`],loader:()=>_e(()=>import(`./clojure-Cm7r79vr.js`),[])}),zU({id:`coffeescript`,extensions:[`.coffee`],aliases:[`CoffeeScript`,`coffeescript`,`coffee`],mimetypes:[`text/x-coffeescript`,`text/coffeescript`],loader:()=>_e(()=>import(`./coffee-Ba7i2nA0.js`),[])}),zU({id:`c`,extensions:[`.c`,`.h`],aliases:[`C`,`c`],loader:()=>_e(()=>import(`./cpp-C7h46wYY.js`),[])}),zU({id:`cpp`,extensions:[`.cpp`,`.cc`,`.cxx`,`.hpp`,`.hh`,`.hxx`],aliases:[`C++`,`Cpp`,`cpp`],loader:()=>_e(()=>import(`./cpp-C7h46wYY.js`),[])}),zU({id:`csharp`,extensions:[`.cs`,`.csx`,`.cake`],aliases:[`C#`,`csharp`],loader:()=>_e(()=>import(`./csharp-BKxtCVv1.js`),[])}),zU({id:`csp`,extensions:[`.csp`],aliases:[`CSP`,`csp`],loader:()=>_e(()=>import(`./csp-bTuwJoIa.js`),[])}),zU({id:`css`,extensions:[`.css`],aliases:[`CSS`,`css`],mimetypes:[`text/css`],loader:()=>_e(()=>import(`./css-DIMkf-bt.js`),[])}),zU({id:`cypher`,extensions:[`.cypher`,`.cyp`],aliases:[`Cypher`,`OpenCypher`],loader:()=>_e(()=>import(`./cypher-CVaqCwHa.js`),[])}),zU({id:`dart`,extensions:[`.dart`],aliases:[`Dart`,`dart`],mimetypes:[`text/x-dart-source`,`text/x-dart`],loader:()=>_e(()=>import(`./dart-onAF5SnQ.js`),[])}),zU({id:`dockerfile`,extensions:[`.dockerfile`],filenames:[`Dockerfile`],aliases:[`Dockerfile`],loader:()=>_e(()=>import(`./dockerfile-DZFCIeNp.js`),[])}),zU({id:`ecl`,extensions:[`.ecl`],aliases:[`ECL`,`Ecl`,`ecl`],loader:()=>_e(()=>import(`./ecl-D05T4iGw.js`),[])}),zU({id:`elixir`,extensions:[`.ex`,`.exs`],aliases:[`Elixir`,`elixir`,`ex`],loader:()=>_e(()=>import(`./elixir-6RTg0lbw.js`),[])}),zU({id:`flow9`,extensions:[`.flow`],aliases:[`Flow9`,`Flow`,`flow9`,`flow`],loader:()=>_e(()=>import(`./flow9-C5_-GSwl.js`),[])}),zU({id:`fsharp`,extensions:[`.fs`,`.fsi`,`.ml`,`.mli`,`.fsx`,`.fsscript`],aliases:[`F#`,`FSharp`,`fsharp`],loader:()=>_e(()=>import(`./fsharp-C8Ef5oNN.js`),[])}),zU({id:`freemarker2`,extensions:[`.ftl`,`.ftlh`,`.ftlx`],aliases:[`FreeMarker2`,`Apache FreeMarker2`],loader:()=>_e(()=>import(`./freemarker2-DQ604q2A.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-angle.interpolation-dollar`,aliases:[`FreeMarker2 (Angle/Dollar)`,`Apache FreeMarker2 (Angle/Dollar)`],loader:()=>_e(()=>import(`./freemarker2-DQ604q2A.js`).then(e=>e.TagAngleInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-bracket.interpolation-dollar`,aliases:[`FreeMarker2 (Bracket/Dollar)`,`Apache FreeMarker2 (Bracket/Dollar)`],loader:()=>_e(()=>import(`./freemarker2-DQ604q2A.js`).then(e=>e.TagBracketInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-angle.interpolation-bracket`,aliases:[`FreeMarker2 (Angle/Bracket)`,`Apache FreeMarker2 (Angle/Bracket)`],loader:()=>_e(()=>import(`./freemarker2-DQ604q2A.js`).then(e=>e.TagAngleInterpolationBracket),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-bracket.interpolation-bracket`,aliases:[`FreeMarker2 (Bracket/Bracket)`,`Apache FreeMarker2 (Bracket/Bracket)`],loader:()=>_e(()=>import(`./freemarker2-DQ604q2A.js`).then(e=>e.TagBracketInterpolationBracket),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-auto.interpolation-dollar`,aliases:[`FreeMarker2 (Auto/Dollar)`,`Apache FreeMarker2 (Auto/Dollar)`],loader:()=>_e(()=>import(`./freemarker2-DQ604q2A.js`).then(e=>e.TagAutoInterpolationDollar),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`freemarker2.tag-auto.interpolation-bracket`,aliases:[`FreeMarker2 (Auto/Bracket)`,`Apache FreeMarker2 (Auto/Bracket)`],loader:()=>_e(()=>import(`./freemarker2-DQ604q2A.js`).then(e=>e.TagAutoInterpolationBracket),__vite__mapDeps([9,1,2,3,4,5,6,7]))}),zU({id:`go`,extensions:[`.go`],aliases:[`Go`],loader:()=>_e(()=>import(`./go-C-y9NEjX.js`),[])}),zU({id:`graphql`,extensions:[`.graphql`,`.gql`],aliases:[`GraphQL`,`graphql`,`gql`],mimetypes:[`application/graphql`],loader:()=>_e(()=>import(`./graphql-fmXr3nnJ.js`),[])}),zU({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>_e(()=>import(`./handlebars-09pcWz8x.js`),__vite__mapDeps([10,1,2,3,4,5,6,7]))}),zU({id:`hcl`,extensions:[`.tf`,`.tfvars`,`.hcl`],aliases:[`Terraform`,`tf`,`HCL`,`hcl`],loader:()=>_e(()=>import(`./hcl-CpzslTdj.js`),[])}),zU({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>_e(()=>import(`./html-DtIKrZiD.js`),__vite__mapDeps([11,1,2,3,4,5,6,7]))}),zU({id:`ini`,extensions:[`.ini`,`.properties`,`.gitconfig`],filenames:[`config`,`.gitattributes`,`.gitconfig`,`.editorconfig`],aliases:[`Ini`,`ini`],loader:()=>_e(()=>import(`./ini-sBoK_t0W.js`),[])}),zU({id:`java`,extensions:[`.java`,`.jav`],aliases:[`Java`,`java`],mimetypes:[`text/x-java-source`,`text/x-java`],loader:()=>_e(()=>import(`./java-BEtHBSE6.js`),[])}),zU({id:`javascript`,extensions:[`.js`,`.es6`,`.jsx`,`.mjs`,`.cjs`],firstLine:`^#!.*\\bnode`,filenames:[`jakefile`],aliases:[`JavaScript`,`javascript`,`js`],mimetypes:[`text/javascript`],loader:()=>_e(()=>import(`./javascript-kbIBYYGo.js`),__vite__mapDeps([12,13,1,2,3,4,5,6,7]))}),zU({id:`julia`,extensions:[`.jl`],aliases:[`julia`,`Julia`],loader:()=>_e(()=>import(`./julia-Bri6UV-V.js`),[])}),zU({id:`kotlin`,extensions:[`.kt`,`.kts`],aliases:[`Kotlin`,`kotlin`],mimetypes:[`text/x-kotlin-source`,`text/x-kotlin`],loader:()=>_e(()=>import(`./kotlin-BOotOW0E.js`),[])}),zU({id:`less`,extensions:[`.less`],aliases:[`Less`,`less`],mimetypes:[`text/x-less`,`text/less`],loader:()=>_e(()=>import(`./less-B9JPFI3C.js`),[])}),zU({id:`lexon`,extensions:[`.lex`],aliases:[`Lexon`],loader:()=>_e(()=>import(`./lexon-CfSJPG6W.js`),[])}),zU({id:`lua`,extensions:[`.lua`],aliases:[`Lua`,`lua`],loader:()=>_e(()=>import(`./lua-CsQS60Ue.js`),[])}),zU({id:`liquid`,extensions:[`.liquid`,`.html.liquid`],aliases:[`Liquid`,`liquid`],mimetypes:[`application/liquid`],loader:()=>_e(()=>import(`./liquid-D-qdTGhQ.js`),__vite__mapDeps([14,1,2,3,4,5,6,7]))}),zU({id:`m3`,extensions:[`.m3`,`.i3`,`.mg`,`.ig`],aliases:[`Modula-3`,`Modula3`,`modula3`,`m3`],loader:()=>_e(()=>import(`./m3-D-oSqn_W.js`),[])}),zU({id:`markdown`,extensions:[`.md`,`.markdown`,`.mdown`,`.mkdn`,`.mkd`,`.mdwn`,`.mdtxt`,`.mdtext`],aliases:[`Markdown`,`markdown`],loader:()=>_e(()=>import(`./markdown-Cimd5fb3.js`),[])}),zU({id:`mdx`,extensions:[`.mdx`],aliases:[`MDX`,`mdx`],loader:()=>_e(()=>import(`./mdx-TXg4xsyD.js`),__vite__mapDeps([15,1,2,3,4,5,6,7]))}),zU({id:`mips`,extensions:[`.s`],aliases:[`MIPS`,`MIPS-V`],mimetypes:[`text/x-mips`,`text/mips`,`text/plaintext`],loader:()=>_e(()=>import(`./mips-CIPQ_RoX.js`),[])}),zU({id:`msdax`,extensions:[`.dax`,`.msdax`],aliases:[`DAX`,`MSDAX`],loader:()=>_e(()=>import(`./msdax-DauUninz.js`),[])}),zU({id:`mysql`,extensions:[],aliases:[`MySQL`,`mysql`],loader:()=>_e(()=>import(`./mysql-SOo6toE5.js`),[])}),zU({id:`objective-c`,extensions:[`.m`],aliases:[`Objective-C`],loader:()=>_e(()=>import(`./objective-c-FvmIjYaQ.js`),[])}),zU({id:`pascal`,extensions:[`.pas`,`.p`,`.pp`],aliases:[`Pascal`,`pas`],mimetypes:[`text/x-pascal-source`,`text/x-pascal`],loader:()=>_e(()=>import(`./pascal-DrH0SRf2.js`),[])}),zU({id:`pascaligo`,extensions:[`.ligo`],aliases:[`Pascaligo`,`ligo`],loader:()=>_e(()=>import(`./pascaligo-D-ptJ9y-.js`),[])}),zU({id:`perl`,extensions:[`.pl`,`.pm`],aliases:[`Perl`,`pl`],loader:()=>_e(()=>import(`./perl-oz_6vUea.js`),[])}),zU({id:`pgsql`,extensions:[],aliases:[`PostgreSQL`,`postgres`,`pg`,`postgre`],loader:()=>_e(()=>import(`./pgsql-DTj74zXo.js`),[])}),zU({id:`php`,extensions:[`.php`,`.php4`,`.php5`,`.phtml`,`.ctp`],aliases:[`PHP`,`php`],mimetypes:[`application/x-php`],loader:()=>_e(()=>import(`./php-nr791fC2.js`),[])}),zU({id:`pla`,extensions:[`.pla`],loader:()=>_e(()=>import(`./pla-CopQ2nXW.js`),[])}),zU({id:`postiats`,extensions:[`.dats`,`.sats`,`.hats`],aliases:[`ATS`,`ATS/Postiats`],loader:()=>_e(()=>import(`./postiats-43DmfD33.js`),[])}),zU({id:`powerquery`,extensions:[`.pq`,`.pqm`],aliases:[`PQ`,`M`,`Power Query`,`Power Query M`],loader:()=>_e(()=>import(`./powerquery-D3hlyOfw.js`),[])}),zU({id:`powershell`,extensions:[`.ps1`,`.psm1`,`.psd1`],aliases:[`PowerShell`,`powershell`,`ps`,`ps1`],loader:()=>_e(()=>import(`./powershell-DmHpPYUd.js`),[])}),zU({id:`proto`,extensions:[`.proto`],aliases:[`protobuf`,`Protocol Buffers`],loader:()=>_e(()=>import(`./protobuf-C531GsRP.js`),[])}),zU({id:`pug`,extensions:[`.jade`,`.pug`],aliases:[`Pug`,`Jade`,`jade`],loader:()=>_e(()=>import(`./pug-Z5eAx3Zn.js`),[])}),zU({id:`python`,extensions:[`.py`,`.rpy`,`.pyw`,`.cpy`,`.gyp`,`.gypi`],aliases:[`Python`,`py`],firstLine:`^#!/.*\\bpython[0-9.-]*\\b`,loader:()=>_e(()=>import(`./python-C4SGyXJW.js`),__vite__mapDeps([16,1,2,3,4,5,6,7]))}),zU({id:`qsharp`,extensions:[`.qs`],aliases:[`Q#`,`qsharp`],loader:()=>_e(()=>import(`./qsharp-DkqhCAOL.js`),[])}),zU({id:`r`,extensions:[`.r`,`.rhistory`,`.rmd`,`.rprofile`,`.rt`],aliases:[`R`,`r`],loader:()=>_e(()=>import(`./r-BwWrilGY.js`),[])}),zU({id:`razor`,extensions:[`.cshtml`],aliases:[`Razor`,`razor`],mimetypes:[`text/x-cshtml`],loader:()=>_e(()=>import(`./razor-BZ-lEgY9.js`),__vite__mapDeps([17,1,2,3,4,5,6,7]))}),zU({id:`redis`,extensions:[`.redis`],aliases:[`redis`],loader:()=>_e(()=>import(`./redis-ClamHrr6.js`),[])}),zU({id:`redshift`,extensions:[],aliases:[`Redshift`,`redshift`],loader:()=>_e(()=>import(`./redshift-DT7zqm-g.js`),[])}),zU({id:`restructuredtext`,extensions:[`.rst`],aliases:[`reStructuredText`,`restructuredtext`],loader:()=>_e(()=>import(`./restructuredtext-BYgofb2h.js`),[])}),zU({id:`ruby`,extensions:[`.rb`,`.rbx`,`.rjs`,`.gemspec`,`.pp`],filenames:[`rakefile`,`Gemfile`],aliases:[`Ruby`,`rb`],loader:()=>_e(()=>import(`./ruby-DezsRK8O.js`),[])}),zU({id:`rust`,extensions:[`.rs`,`.rlib`],aliases:[`Rust`,`rust`],loader:()=>_e(()=>import(`./rust-DdL9SqIa.js`),[])}),zU({id:`sb`,extensions:[`.sb`],aliases:[`Small Basic`,`sb`],loader:()=>_e(()=>import(`./sb-CcwsVR0C.js`),[])}),zU({id:`scala`,extensions:[`.scala`,`.sc`,`.sbt`],aliases:[`Scala`,`scala`,`SBT`,`Sbt`,`sbt`,`Dotty`,`dotty`],mimetypes:[`text/x-scala-source`,`text/x-scala`,`text/x-sbt`,`text/x-dotty`],loader:()=>_e(()=>import(`./scala-DHpiXF5c.js`),[])}),zU({id:`scheme`,extensions:[`.scm`,`.ss`,`.sch`,`.rkt`],aliases:[`scheme`,`Scheme`],loader:()=>_e(()=>import(`./scheme-BeGwcela.js`),[])}),zU({id:`scss`,extensions:[`.scss`],aliases:[`Sass`,`sass`,`scss`],mimetypes:[`text/x-scss`,`text/scss`],loader:()=>_e(()=>import(`./scss-gp-XZpBa.js`),[])}),zU({id:`shell`,extensions:[`.sh`,`.bash`],aliases:[`Shell`,`sh`],loader:()=>_e(()=>import(`./shell-CC2rA5mh.js`),[])}),zU({id:`sol`,extensions:[`.sol`],aliases:[`sol`,`solidity`,`Solidity`],loader:()=>_e(()=>import(`./solidity-BEEn4gHE.js`),[])}),zU({id:`aes`,extensions:[`.aes`],aliases:[`aes`,`sophia`,`Sophia`],loader:()=>_e(()=>import(`./sophia-CRfGWb83.js`),[])}),zU({id:`sparql`,extensions:[`.rq`],aliases:[`sparql`,`SPARQL`],loader:()=>_e(()=>import(`./sparql-D_Lu-MrJ.js`),[])}),zU({id:`sql`,extensions:[`.sql`],aliases:[`SQL`],loader:()=>_e(()=>import(`./sql-NEE52Syq.js`),[])}),zU({id:`st`,extensions:[`.st`,`.iecst`,`.iecplc`,`.lc3lib`,`.TcPOU`,`.TcDUT`,`.TcGVL`,`.TcIO`],aliases:[`StructuredText`,`scl`,`stl`],loader:()=>_e(()=>import(`./st-DbInun42.js`),[])}),zU({id:`swift`,aliases:[`Swift`,`swift`],extensions:[`.swift`],mimetypes:[`text/swift`],loader:()=>_e(()=>import(`./swift-Bxkupp3x.js`),[])}),zU({id:`systemverilog`,extensions:[`.sv`,`.svh`],aliases:[`SV`,`sv`,`SystemVerilog`,`systemverilog`],loader:()=>_e(()=>import(`./systemverilog-Bz4Y3fRF.js`),[])}),zU({id:`verilog`,extensions:[`.v`,`.vh`],aliases:[`V`,`v`,`Verilog`,`verilog`],loader:()=>_e(()=>import(`./systemverilog-Bz4Y3fRF.js`),[])}),zU({id:`tcl`,extensions:[`.tcl`],aliases:[`tcl`,`Tcl`,`tcltk`,`TclTk`,`tcl/tk`,`Tcl/Tk`],loader:()=>_e(()=>import(`./tcl-DISqw1ZD.js`),[])}),zU({id:`twig`,extensions:[`.twig`],aliases:[`Twig`,`twig`],mimetypes:[`text/x-twig`],loader:()=>_e(()=>import(`./twig-De2hgUGE.js`),[])}),zU({id:`typescript`,extensions:[`.ts`,`.tsx`,`.cts`,`.mts`],aliases:[`TypeScript`,`ts`,`typescript`],mimetypes:[`text/typescript`],loader:()=>_e(()=>import(`./typescript-D87dYk9k.js`),__vite__mapDeps([13,1,2,3,4,5,6,7]))}),zU({id:`typespec`,extensions:[`.tsp`],aliases:[`TypeSpec`],loader:()=>_e(()=>import(`./typespec-B8J7ngcE.js`),[])}),zU({id:`vb`,extensions:[`.vb`],aliases:[`Visual Basic`,`vb`],loader:()=>_e(()=>import(`./vb-DV3o63ZY.js`),[])}),zU({id:`wgsl`,extensions:[`.wgsl`],aliases:[`WebGPU Shading Language`,`WGSL`,`wgsl`],loader:()=>_e(()=>import(`./wgsl-DpFanUEy.js`),[])}),zU({id:`xml`,extensions:[`.xml`,`.xsd`,`.dtd`,`.ascx`,`.csproj`,`.config`,`.props`,`.targets`,`.wxi`,`.wxl`,`.wxs`,`.xaml`,`.svg`,`.svgz`,`.opf`,`.xslt`,`.xsl`],firstLine:`(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)`,aliases:[`XML`,`xml`],mimetypes:[`text/xml`,`application/xml`,`application/xaml+xml`,`application/xml-dtd`],loader:()=>_e(()=>import(`./xml-DT6r4F7G.js`),__vite__mapDeps([18,1,2,3,4,5,6,7]))}),zU({id:`yaml`,extensions:[`.yaml`,`.yml`],aliases:[`YAML`,`yaml`,`YML`,`yml`],mimetypes:[`application/x-yaml`,`text/x-yaml`],loader:()=>_e(()=>import(`./yaml-DxmQ8XYb.js`),__vite__mapDeps([19,1,2,3,4,5,6,7]))});var BU=class{constructor(e,t,n){this._onDidChange=new Uu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},VU={validate:!0,lint:{compatibleVendorPrefixes:`ignore`,vendorPrefix:`warning`,duplicateProperties:`warning`,emptyRules:`warning`,importStatement:`ignore`,boxModel:`ignore`,universalSelector:`ignore`,zeroUnits:`ignore`,fontFaceProperties:`warning`,hexColorLength:`error`,argumentsInColorFunction:`error`,unknownProperties:`warning`,ieHack:`ignore`,unknownVendorSpecificProperties:`ignore`,propertyIgnoredDueToDisplay:`warning`,important:`ignore`,float:`ignore`,idSelector:`ignore`},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:`collapse`,maxPreserveNewLines:void 0,preserveNewLines:!0}},HU={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},UU=new BU(`css`,VU,HU),WU=new BU(`scss`,VU,HU),GU=new BU(`less`,VU,HU);function KU(){return _e(()=>import(`./cssMode-DaSSFZYi.js`),__vite__mapDeps([20,1,2,3,4,5,6,7,8,21]))}Xc.onLanguage(`less`,()=>{KU().then(e=>e.setupMode(GU))}),Xc.onLanguage(`scss`,()=>{KU().then(e=>e.setupMode(WU))}),Xc.onLanguage(`css`,()=>{KU().then(e=>e.setupMode(UU))});var qU=class{constructor(e,t,n){this._onDidChange=new Uu,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},JU={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:`default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var`,contentUnformatted:`pre`,indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:`head, body, /html`,wrapAttributes:`auto`},suggest:{},data:{useDefaultDataProvider:!0}};function YU(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===XU,documentFormattingEdits:e===XU,documentRangeFormattingEdits:e===XU}}var XU=`html`,ZU=`handlebars`,QU=`razor`;eW(XU,JU,YU(XU)).defaults,eW(ZU,JU,YU(ZU)).defaults,eW(QU,JU,YU(QU)).defaults;function $U(){return _e(()=>import(`./htmlMode-DgJ_4m1_.js`),__vite__mapDeps([22,1,2,3,4,5,6,7,8,21]))}function eW(e,t=JU,n=YU(e)){let r=new qU(e,t,n),i,a=Xc.onLanguage(e,async()=>{i=(await $U()).setupMode(r)});return{defaults:r,dispose(){a.dispose(),i?.dispose(),i=void 0}}}var tW=new class{constructor(e,t,n){this._onDidChange=new Uu,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(`json`,{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:`warning`,schemaValidation:`warning`,comments:`error`,trailingCommas:`error`},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});function nW(){return _e(()=>import(`./jsonMode-DblCG64t.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,8,21]))}Xc.register({id:`json`,extensions:[`.json`,`.bowerrc`,`.jshintrc`,`.jscsrc`,`.eslintrc`,`.babelrc`,`.har`],aliases:[`JSON`,`json`],mimetypes:[`application/json`]}),Xc.onLanguage(`json`,()=>{nW().then(e=>e.setupMode(tW))});var rW=`__monacoFindWidgetTabIndexPatchApplied`,iW=`__monacoFindWidgetOriginalTabIndex`;function aW(e,t){let n=e?._domNode;if(!n)return;let r=n.querySelectorAll(`input, textarea, [tabindex], [role="button"], [role="checkbox"]`);for(let e of r)if(e instanceof HTMLElement){if(t){if(!(iW in e.dataset))continue;let t=e.dataset[iW];t===``?e.removeAttribute(`tabindex`):e.tabIndex=Number(t),delete e.dataset[iW]}else iW in e.dataset||(e.dataset[iW]=e.getAttribute(`tabindex`)??``),e.tabIndex=-1}}if(!ty[rW]){let e=ty.prototype._reveal,t=ty.prototype._hide;ty.prototype._reveal=function(...t){e.apply(this,t),aW(this,!0)},ty.prototype._hide=function(...e){t.apply(this,e),aW(this,!1)},ty[rW]=!0}function oW(e){return new Worker(`/assets/editor.worker-q-txB4vs.js`,{name:e?.name})}function sW(e){return new Worker(`/assets/ts.worker-D7T1-Ig5.js`,{name:e?.name})}var cW=globalThis;cW.MonacoEnvironment={getWorker(e,t){return t===`typescript`||t===`javascript`?new sW:new oW}};var lW=Df(((e,t)=>{t.exports={}})),uW=Af(Df(((e,t)=>{var n={};(e=>{var t=Object.defineProperty,n=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},r=e=>e,i={};n(i,{ANONYMOUS:()=>d0,AccessFlags:()=>gi,AssertionLevel:()=>jt,AssignmentDeclarationKind:()=>Ei,AssignmentKind:()=>B_,Associativity:()=>Yv,BreakpointResolver:()=>n3,BuilderFileEmit:()=>Bq,BuilderProgramKind:()=>hJ,BuilderState:()=>zq,CallHierarchy:()=>r3,CharacterCodes:()=>U,CheckFlags:()=>li,CheckMode:()=>wH,ClassificationType:()=>fQ,ClassificationTypeNames:()=>dQ,CommentDirectiveType:()=>Wr,Comparison:()=>s,CompletionInfoFlags:()=>iQ,CompletionTriggerKind:()=>ZZ,Completions:()=>s5,ContainerFlags:()=>yV,ContextFlags:()=>ei,Debug:()=>H,DiagnosticCategory:()=>Di,Diagnostics:()=>q,DocumentHighlights:()=>o2,ElementFlags:()=>hi,EmitFlags:()=>Gi,EmitHint:()=>Yi,EmitOnly:()=>Jr,EndOfLineState:()=>sQ,ExitStatus:()=>Xr,ExportKind:()=>cre,Extension:()=>Hi,ExternalEmitHelpers:()=>Ji,FileIncludeKind:()=>Kr,FilePreprocessingDiagnosticsKind:()=>qr,FileSystemEntryKind:()=>Ta,FileWatcherEventKind:()=>ia,FindAllReferences:()=>N5,FlattenLevel:()=>uW,FlowFlags:()=>Ur,ForegroundColorEscapeSequences:()=>HK,FunctionFlags:()=>Ev,GeneratedIdentifierFlags:()=>Br,GetLiteralTextFlags:()=>Rp,GoToDefinition:()=>H5,HighlightSpanKind:()=>$Z,IdentifierNameMap:()=>NU,ImportKind:()=>sre,ImportsNotUsedAsValues:()=>Ii,IndentStyle:()=>eQ,IndexFlags:()=>_i,IndexKind:()=>xi,InferenceFlags:()=>wi,InferencePriority:()=>Ci,InlayHintKind:()=>QZ,InlayHints:()=>J5,InternalEmitFlags:()=>Ki,InternalNodeBuilderFlags:()=>ni,InternalSymbolName:()=>ui,IntersectionFlags:()=>$r,InvalidatedProjectKind:()=>rX,JSDocParsingMode:()=>ta,JsDoc:()=>Y5,JsTyping:()=>SZ,JsxEmit:()=>Fi,JsxFlags:()=>Lr,JsxReferenceKind:()=>vi,LanguageFeatureMinimumTarget:()=>qi,LanguageServiceMode:()=>qZ,LanguageVariant:()=>Bi,LexicalEnvironmentFlags:()=>Zi,ListFormat:()=>Qi,LogLevel:()=>Dn,MapCode:()=>Q5,MemberOverrideStatus:()=>Zr,ModifierFlags:()=>Ir,ModuleDetectionKind:()=>Ai,ModuleInstanceState:()=>mV,ModuleKind:()=>Pi,ModuleResolutionKind:()=>ki,ModuleSpecifierEnding:()=>qw,NavigateTo:()=>Kie,NavigationBar:()=>rae,NewLineKind:()=>Li,NodeBuilderFlags:()=>ti,NodeCheckFlags:()=>di,NodeFactoryFlags:()=>vD,NodeFlags:()=>Fr,NodeResolutionFeatures:()=>nB,ObjectFlags:()=>pi,OperationCanceledException:()=>Gr,OperatorPrecedence:()=>ey,OrganizeImports:()=>t7,OrganizeImportsMode:()=>XZ,OuterExpressionKinds:()=>Xi,OutliningElementsCollector:()=>o7,OutliningSpanKind:()=>aQ,OutputFileType:()=>oQ,PackageJsonAutoImportPreference:()=>KZ,PackageJsonDependencyGroup:()=>GZ,PatternMatchKind:()=>d2,PollingInterval:()=>aa,PollingWatchKind:()=>Ni,PragmaKindFlags:()=>$i,PredicateSemantics:()=>zr,PreparePasteEdits:()=>Q7,PrivateIdentifierKind:()=>EO,ProcessLevel:()=>VW,ProgramUpdateLevel:()=>bK,QuotePreference:()=>zne,RegularExpressionFlags:()=>Vr,RelationComparisonResult:()=>Rr,Rename:()=>u7,ScriptElementKind:()=>lQ,ScriptElementKindModifier:()=>uQ,ScriptKind:()=>Ri,ScriptSnapshot:()=>WZ,ScriptTarget:()=>zi,SemanticClassificationFormat:()=>YZ,SemanticMeaning:()=>mQ,SemicolonPreference:()=>tQ,SignatureCheckMode:()=>TH,SignatureFlags:()=>bi,SignatureHelp:()=>f7,SignatureInfo:()=>Rq,SignatureKind:()=>yi,SmartSelectionRange:()=>m7,SnippetKind:()=>Wi,StatisticType:()=>RX,StructureIsReused:()=>Yr,SymbolAccessibility:()=>ai,SymbolDisplay:()=>v7,SymbolDisplayPartKind:()=>rQ,SymbolFlags:()=>ci,SymbolFormatFlags:()=>ii,SyntaxKind:()=>Pr,Ternary:()=>Ti,ThrottledCancellationToken:()=>X4,TokenClass:()=>cQ,TokenFlags:()=>Hr,TransformFlags:()=>Ui,TypeFacts:()=>SH,TypeFlags:()=>fi,TypeFormatFlags:()=>ri,TypeMapKind:()=>Si,TypePredicateKind:()=>oi,TypeReferenceSerializationKind:()=>si,UnionReduction:()=>Qr,UpToDateStatusType:()=>jY,VarianceFlags:()=>mi,Version:()=>Fn,VersionRange:()=>Rn,WatchDirectoryFlags:()=>Vi,WatchDirectoryKind:()=>Mi,WatchFileKind:()=>ji,WatchLogLevel:()=>OK,WatchType:()=>gY,accessPrivateIdentifier:()=>aW,addEmitFlags:()=>WD,addEmitHelper:()=>uO,addEmitHelpers:()=>dO,addInternalEmitFlags:()=>KD,addNodeFactoryPatcher:()=>bD,addObjectAllocatorPatcher:()=>WS,addRange:()=>Ee,addRelatedInfo:()=>vT,addSyntheticLeadingComment:()=>rO,addSyntheticTrailingComment:()=>oO,addToSeen:()=>ES,advancedAsyncSuperHelper:()=>ik,affectsDeclarationPathOptionDeclarations:()=>AI,affectsEmitOptionDeclarations:()=>kI,allKeysStartWithDot:()=>LB,altDirectorySeparator:()=>Fa,and:()=>gn,append:()=>I,appendIfUnique:()=>Oe,arrayFrom:()=>$e,arrayIsEqualTo:()=>xe,arrayIsHomogeneous:()=>LT,arrayOf:()=>Qe,arrayReverseIterator:()=>je,arrayToMap:()=>nt,arrayToMultiMap:()=>it,arrayToNumericMap:()=>rt,assertType:()=>yn,assign:()=>et,asyncSuperHelper:()=>rk,attachFileToDiagnostics:()=>eC,base64decode:()=>Ox,base64encode:()=>Dx,binarySearch:()=>We,binarySearchKey:()=>L,bindSourceFile:()=>SV,breakIntoCharacterSpans:()=>fie,breakIntoWordSpans:()=>pie,buildLinkParts:()=>R1,buildOpts:()=>VI,buildOverload:()=>JOe,bundlerModuleNameResolver:()=>sB,canBeConvertedToAsync:()=>b2,canHaveDecorators:()=>cF,canHaveExportModifier:()=>oE,canHaveFlowNode:()=>T_,canHaveIllegalDecorators:()=>vP,canHaveIllegalModifiers:()=>yP,canHaveIllegalType:()=>gP,canHaveIllegalTypeParameters:()=>_P,canHaveJSDoc:()=>E_,canHaveLocals:()=>Fd,canHaveModifiers:()=>sF,canHaveModuleSpecifier:()=>s_,canHaveStatements:()=>uD,canHaveSymbol:()=>Pd,canIncludeBindAndCheckDiagnostics:()=>TT,canJsonReportNoInputFiles:()=>hR,canProduceDiagnostics:()=>bG,canUsePropertyAccess:()=>cE,canWatchAffectingLocation:()=>RJ,canWatchAtTypes:()=>FJ,canWatchDirectoryOrFile:()=>NJ,canWatchDirectoryOrFilePath:()=>PJ,cartesianProduct:()=>Sn,cast:()=>bt,chainBundle:()=>EU,chainDiagnosticMessages:()=>aC,changeAnyExtension:()=>bo,changeCompilerHostLikeToUseCache:()=>zK,changeExtension:()=>iT,changeFullExtension:()=>xo,changesAffectModuleResolution:()=>Mf,changesAffectingProgramStructure:()=>Pf,characterCodeToRegularExpressionFlag:()=>as,childIsDecorated:()=>tg,classElementOrClassElementParameterIsDecorated:()=>rg,classHasClassThisAssignment:()=>TW,classHasDeclaredOrExplicitlyAssignedName:()=>MW,classHasExplicitlyAssignedName:()=>jW,classOrConstructorParameterIsDecorated:()=>ng,classicNameResolver:()=>sV,classifier:()=>c3,cleanExtendedConfigCache:()=>CK,clear:()=>O,clearMap:()=>_S,clearSharedExtendedConfigFileWatcher:()=>SK,climbPastPropertyAccess:()=>OQ,clone:()=>st,cloneCompilerOptions:()=>I$,closeFileWatcher:()=>sS,closeFileWatcherOf:()=>jK,codefix:()=>l3,collapseTextChangeRangesAcrossMultipleVersions:()=>wc,collectExternalModuleInfo:()=>AU,combine:()=>we,combinePaths:()=>so,commandLineOptionOfCustomType:()=>LI,commentPragmas:()=>ea,commonOptionsWithBuild:()=>CI,compact:()=>Se,compareBooleans:()=>Xt,compareComparableValues:()=>Ft,compareDataObjects:()=>gS,compareDiagnostics:()=>cC,compareEmitHelpers:()=>OO,compareNumberOfDirectorySeparators:()=>$w,comparePaths:()=>Eo,comparePathsCaseInsensitive:()=>To,comparePathsCaseSensitive:()=>wo,comparePatternKeys:()=>HB,compareProperties:()=>Yt,compareStringsCaseInsensitive:()=>Bt,compareStringsCaseInsensitiveEslintCompatible:()=>Vt,compareStringsCaseSensitive:()=>Ht,compareStringsCaseSensitiveUI:()=>Jt,compareTextSpans:()=>Lt,compareValues:()=>It,compilerOptionsAffectDeclarationPath:()=>$C,compilerOptionsAffectEmit:()=>QC,compilerOptionsAffectSemanticDiagnostics:()=>ZC,compilerOptionsDidYouMeanDiagnostics:()=>nL,compilerOptionsIndicateEsModules:()=>e1,computeCommonSourceDirectoryOfFilenames:()=>PK,computeLineAndCharacterOfPosition:()=>us,computeLineOfPosition:()=>ds,computeLineStarts:()=>os,computePositionOfLineAndCharacter:()=>cs,computeSignatureWithDiagnostics:()=>vJ,computeSuggestionDiagnostics:()=>g2,computedOptions:()=>TC,concatenate:()=>de,concatenateDiagnosticMessageChains:()=>oC,consumesNodeCoreModules:()=>D0,contains:()=>C,containsIgnoredPath:()=>JT,containsObjectRestOrSpread:()=>oF,containsParseError:()=>$f,containsPath:()=>Do,convertCompilerOptionsForTelemetry:()=>QR,convertCompilerOptionsFromJson:()=>wR,convertJsonOption:()=>NR,convertToBase64:()=>Tx,convertToJson:()=>FL,convertToObject:()=>PL,convertToOptionsWithAbsolutePaths:()=>YL,convertToRelativePath:()=>jo,convertToTSConfig:()=>RL,convertTypeAcquisitionFromJson:()=>TR,copyComments:()=>Z1,copyEntries:()=>zf,copyLeadingComments:()=>e0,copyProperties:()=>lt,copyTrailingAsLeadingComments:()=>n0,copyTrailingComments:()=>t0,couldStartTrivia:()=>Ss,countWhere:()=>T,createAbstractBuilder:()=>AJ,createAccessorPropertyBackingField:()=>$P,createAccessorPropertyGetRedirector:()=>eF,createAccessorPropertySetRedirector:()=>tF,createBaseNodeFactory:()=>fD,createBinaryExpressionTrampoline:()=>GP,createBuilderProgram:()=>yJ,createBuilderProgramUsingIncrementalBuildInfo:()=>wJ,createBuilderStatusReporter:()=>zY,createCacheableExportInfoMap:()=>Q0,createCachedDirectoryStructureHost:()=>yK,createClassifier:()=>_re,createCommentDirectivesMap:()=>Sp,createCompilerDiagnostic:()=>rC,createCompilerDiagnosticForInvalidCustomType:()=>JI,createCompilerDiagnosticFromMessageChain:()=>iC,createCompilerHost:()=>FK,createCompilerHostFromProgramHost:()=>vY,createCompilerHostWorker:()=>RK,createDetachedDiagnostic:()=>ZS,createDiagnosticCollection:()=>iy,createDiagnosticForFileFromMessageChain:()=>jm,createDiagnosticForNode:()=>wm,createDiagnosticForNodeArray:()=>Tm,createDiagnosticForNodeArrayFromMessageChain:()=>Om,createDiagnosticForNodeFromMessageChain:()=>Dm,createDiagnosticForNodeInSourceFile:()=>Em,createDiagnosticForRange:()=>Nm,createDiagnosticMessageChainFromDiagnostic:()=>Mm,createDiagnosticReporter:()=>JJ,createDocumentPositionMapper:()=>xU,createDocumentRegistry:()=>Fre,createDocumentRegistryInternal:()=>c2,createEmitAndSemanticDiagnosticsBuilderProgram:()=>kJ,createEmitHelperFactory:()=>DO,createEmptyExports:()=>xN,createEvaluator:()=>jE,createExpressionForJsxElement:()=>DN,createExpressionForJsxFragment:()=>ON,createExpressionForObjectLiteralElementLike:()=>IN,createExpressionForPropertyName:()=>jN,createExpressionFromEntityName:()=>AN,createExternalHelpersImportDeclarationIfNeeded:()=>eP,createFileDiagnostic:()=>tC,createFileDiagnosticFromMessageChain:()=>Am,createFlowNode:()=>bV,createForOfBindingStatement:()=>kN,createFutureSourceFile:()=>Z0,createGetCanonicalFileName:()=>cn,createGetIsolatedDeclarationErrors:()=>CG,createGetSourceFile:()=>IK,createGetSymbolAccessibilityDiagnosticForNode:()=>SG,createGetSymbolAccessibilityDiagnosticForNodeName:()=>xG,createGetSymbolWalker:()=>DV,createIncrementalCompilerHost:()=>OY,createIncrementalProgram:()=>kY,createJsxFactoryExpression:()=>TN,createLanguageService:()=>Z4,createLanguageServiceSourceFile:()=>J4,createMemberAccessForPropertyName:()=>SN,createModeAwareCache:()=>Bz,createModeAwareCacheKey:()=>zz,createModeMismatchDetails:()=>qf,createModuleNotFoundChain:()=>Kf,createModuleResolutionCache:()=>Gz,createModuleResolutionLoader:()=>cq,createModuleResolutionLoaderUsingGlobalCache:()=>GJ,createModuleSpecifierResolutionHost:()=>t1,createMultiMap:()=>dt,createNameResolver:()=>PE,createNodeConverters:()=>hD,createNodeFactory:()=>xD,createOptionNameMap:()=>UI,createOverload:()=>e9,createPackageJsonImportFilter:()=>E0,createPackageJsonInfo:()=>T0,createParenthesizerRules:()=>pD,createPatternMatcher:()=>Jre,createPrinter:()=>mK,createPrinterWithDefaults:()=>uK,createPrinterWithRemoveComments:()=>dK,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>fK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>pK,createProgram:()=>Cq,createProgramDiagnostics:()=>Iq,createProgramHost:()=>xY,createPropertyNameNodeForIdentifierOrLiteral:()=>nE,createQueue:()=>pt,createRange:()=>Ix,createRedirectedBuilderProgram:()=>DJ,createResolutionCache:()=>KJ,createRuntimeTypeSerializer:()=>$W,createScanner:()=>Hs,createSemanticDiagnosticsBuilderProgram:()=>OJ,createSet:()=>mt,createSolutionBuilder:()=>HY,createSolutionBuilderHost:()=>BY,createSolutionBuilderWithWatch:()=>UY,createSolutionBuilderWithWatchHost:()=>VY,createSortedArray:()=>ve,createSourceFile:()=>GF,createSourceMapGenerator:()=>tU,createSourceMapSource:()=>ID,createSuperAccessVariableStatement:()=>rG,createSymbolTable:()=>Ef,createSymlinkCache:()=>aw,createSyntacticTypeNodeBuilder:()=>xZ,createSystemWatchFunctions:()=>Aa,createTextChange:()=>G$,createTextChangeFromStartLength:()=>W$,createTextChangeRange:()=>Sc,createTextRangeFromNode:()=>V$,createTextRangeFromSpan:()=>U$,createTextSpan:()=>vc,createTextSpanFromBounds:()=>yc,createTextSpanFromNode:()=>z$,createTextSpanFromRange:()=>H$,createTextSpanFromStringLiteralLikeContent:()=>B$,createTextWriter:()=>ky,createTokenRange:()=>Vx,createTypeChecker:()=>MH,createTypeReferenceDirectiveResolutionCache:()=>Kz,createTypeReferenceResolutionLoader:()=>uq,createWatchCompilerHost:()=>wte,createWatchCompilerHostOfConfigFile:()=>wY,createWatchCompilerHostOfFilesAndCompilerOptions:()=>TY,createWatchFactory:()=>_Y,createWatchHost:()=>hY,createWatchProgram:()=>AY,createWatchStatusReporter:()=>ZJ,createWriteFileMeasuringIO:()=>LK,declarationNameToString:()=>vm,decodeMappings:()=>uU,decodedTextSpanIntersectsWith:()=>pc,deduplicate:()=>ge,defaultHoverMaximumTruncationLength:()=>Cf,defaultInitCompilerOptions:()=>qI,defaultMaximumTruncationLength:()=>xf,diagnosticCategoryName:()=>Oi,diagnosticToString:()=>W0,diagnosticsEqualityComparer:()=>mC,directoryProbablyExists:()=>Mx,directorySeparator:()=>Pa,displayPart:()=>E1,displayPartsToString:()=>G4,disposeEmitNodes:()=>VD,documentSpansEqual:()=>y1,dumpTracingLegend:()=>Nr,elementAt:()=>Ne,elideNodes:()=>JP,emitDetachedComments:()=>yb,emitFiles:()=>oK,emitFilesAndReportErrors:()=>dY,emitFilesAndReportErrorsAndGetExitStatus:()=>fY,emitModuleKindIsNonNodeESM:()=>WC,emitNewLineBeforeLeadingCommentOfPosition:()=>_b,emitResolverSkipsTypeChecking:()=>aK,emitSkippedWithNoDiagnostics:()=>Oq,emptyArray:()=>c,emptyFileSystemEntries:()=>hT,emptyMap:()=>l,emptyOptions:()=>JZ,endsWith:()=>Qt,ensurePathIsNonModuleName:()=>yo,ensureScriptKind:()=>Aw,ensureTrailingDirectorySeparator:()=>vo,entityNameToString:()=>Cm,enumerateInsertsAndDeletes:()=>xn,equalOwnProperties:()=>tt,equateStringsCaseInsensitive:()=>Nt,equateStringsCaseSensitive:()=>Pt,equateValues:()=>Mt,escapeJsxAttributeString:()=>Sy,escapeLeadingUnderscores:()=>Vc,escapeNonAsciiString:()=>_y,escapeSnippetText:()=>eE,escapeString:()=>hy,escapeTemplateSubstitution:()=>oy,evaluatorResult:()=>AE,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>VE,executeCommandLine:()=>Qte,expandPreOrPostfixIncrementOrDecrementExpression:()=>LN,explainFiles:()=>aY,explainIfFileIsRedirectAndImpliedFormat:()=>oY,exportAssignmentIsAlias:()=>cv,expressionResultIsUnused:()=>qT,extend:()=>ct,extensionFromPath:()=>dT,extensionIsTS:()=>lT,extensionsNotSupportingExtensionlessResolution:()=>Bw,externalHelpersModuleNameText:()=>bf,factory:()=>Y,fileExtensionIs:()=>Ka,fileExtensionIsOneOf:()=>qa,fileIncludeReasonToDiagnostics:()=>lY,fileShouldUseJavaScriptRequire:()=>Y0,filter:()=>E,filterMutate:()=>D,filterSemanticDiagnostics:()=>Aq,find:()=>y,findAncestor:()=>Rc,findBestPatternMatch:()=>dn,findChildOfKind:()=>i$,findComputedPropertyNameCacheAssignment:()=>nF,findConfigFile:()=>MK,findConstructorDeclaration:()=>NE,findContainingList:()=>a$,findDiagnosticForNode:()=>k0,findFirstNonJsxWhitespaceToken:()=>f$,findIndex:()=>x,findLast:()=>b,findLastIndex:()=>S,findListItemInfo:()=>n$,findModifier:()=>h1,findNextToken:()=>m$,findPackageJson:()=>w0,findPackageJsons:()=>C0,findPrecedingMatchingToken:()=>w$,findPrecedingToken:()=>h$,findSuperStatementIndexPath:()=>VU,findTokenOnLeftOfPosition:()=>p$,findUseStrictPrologue:()=>HN,first:()=>Ie,firstDefined:()=>p,firstDefinedIterator:()=>m,firstIterator:()=>Le,firstOrOnly:()=>P0,firstOrUndefined:()=>Pe,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>S2,flatMap:()=>ne,flatMapIterator:()=>j,flatMapToMutable:()=>re,flatten:()=>te,flattenCommaList:()=>aF,flattenDestructuringAssignment:()=>dW,flattenDestructuringBinding:()=>mW,flattenDiagnosticMessageText:()=>ZK,forEach:()=>d,forEachAncestor:()=>If,forEachAncestorDirectory:()=>Po,forEachAncestorDirectoryStoppingAtGlobalCache:()=>XB,forEachChild:()=>VF,forEachChildRecursively:()=>HF,forEachDynamicImportOrRequireCall:()=>UE,forEachEmittedFile:()=>HG,forEachEnclosingBlockScopeContainer:()=>_m,forEachEntry:()=>Lf,forEachExternalModuleToImportFrom:()=>e2,forEachImportClauseDeclaration:()=>h_,forEachKey:()=>Rf,forEachLeadingCommentRange:()=>js,forEachNameInAccessChainWalkingLeft:()=>NS,forEachNameOfDefaultExport:()=>r2,forEachOptionsSyntaxByName:()=>$E,forEachProjectReference:()=>YE,forEachPropertyAssignment:()=>Ah,forEachResolvedProjectReference:()=>JE,forEachReturnStatement:()=>mh,forEachRight:()=>f,forEachTrailingCommentRange:()=>Ms,forEachTsConfigPropArray:()=>Nh,forEachUnique:()=>x1,forEachYieldExpression:()=>hh,formatColorAndReset:()=>JK,formatDiagnostic:()=>VK,formatDiagnostics:()=>BK,formatDiagnosticsWithColorAndContext:()=>XK,formatGeneratedName:()=>QP,formatGeneratedNamePart:()=>XP,formatLocation:()=>YK,formatMessage:()=>nC,formatStringFromArgs:()=>KS,formatting:()=>k7,generateDjb2Hash:()=>na,generateTSConfig:()=>JL,getAdjustedReferenceLocation:()=>s$,getAdjustedRenameLocation:()=>c$,getAliasDeclarationFromName:()=>ov,getAllAccessorDeclarations:()=>cb,getAllDecoratorsOfClass:()=>XU,getAllDecoratorsOfClassElement:()=>ZU,getAllJSDocTags:()=>Pl,getAllJSDocTagsOfKind:()=>Fl,getAllKeys:()=>Xe,getAllProjectOutputs:()=>nK,getAllSuperTypeNodes:()=>mv,getAllowImportingTsExtensions:()=>EC,getAllowJSCompilerOption:()=>VC,getAllowSyntheticDefaultImports:()=>NC,getAlwaysStrict:()=>UC,getAncestor:()=>_v,getAnyExtensionFromPath:()=>ro,getAreDeclarationMapsEnabled:()=>BC,getAssignedExpandoInitializer:()=>Pg,getAssignedName:()=>$c,getAssignmentDeclarationKind:()=>Ug,getAssignmentDeclarationPropertyAccessKind:()=>t_,getAssignmentTargetKind:()=>H_,getAutomaticTypeDirectiveNames:()=>Az,getBaseFileName:()=>eo,getBinaryOperatorPrecedence:()=>ny,getBuildInfo:()=>cK,getBuildInfoFileVersionMap:()=>TJ,getBuildInfoText:()=>sK,getBuildOrderFromAnyBuildOrder:()=>RY,getBuilderCreationParameters:()=>gJ,getBuilderFileEmit:()=>Hq,getCanonicalDiagnostic:()=>Pm,getCheckFlags:()=>cS,getClassExtendsHeritageElement:()=>fv,getClassLikeDeclarationOfSymbol:()=>xS,getCombinedLocalAndExportSymbolFlags:()=>dS,getCombinedModifierFlags:()=>jc,getCombinedNodeFlags:()=>Nc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Mc,getCommentRange:()=>$D,getCommonSourceDirectory:()=>$G,getCommonSourceDirectoryOfConfig:()=>tK,getCompilerOptionValue:()=>ew,getComputedCommonSourceDirectory:()=>eK,getConditions:()=>Oz,getConfigFileParsingDiagnostics:()=>yq,getConstantValue:()=>cO,getContainerFlags:()=>TV,getContainerNode:()=>HQ,getContainingClass:()=>Ih,getContainingClassExcludingClassDecorators:()=>zh,getContainingClassStaticBlock:()=>Lh,getContainingFunction:()=>Ph,getContainingFunctionDeclaration:()=>Fh,getContainingFunctionOrClassStaticBlock:()=>Rh,getContainingNodeArray:()=>YT,getContainingObjectLiteralElement:()=>$4,getContextualTypeFromParent:()=>a0,getContextualTypeFromParentOrAncestorTypeNode:()=>o$,getDeclarationDiagnostics:()=>wG,getDeclarationEmitExtensionForPath:()=>By,getDeclarationEmitOutputFilePath:()=>Ry,getDeclarationEmitOutputFilePathWorker:()=>zy,getDeclarationFileExtension:()=>iI,getDeclarationFromName:()=>rv,getDeclarationModifierFlagsFromSymbol:()=>lS,getDeclarationOfKind:()=>wf,getDeclarationsOfKind:()=>Tf,getDeclaredExpandoInitializer:()=>Mg,getDecorators:()=>el,getDefaultCompilerOptions:()=>K4,getDefaultFormatCodeSettings:()=>nQ,getDefaultLibFileName:()=>tc,getDefaultLibFilePath:()=>t3,getDefaultLikeExportInfo:()=>n2,getDefaultLikeExportNameFromDeclaration:()=>I0,getDefaultResolutionModeForFileWorker:()=>Eq,getDiagnosticText:()=>uL,getDiagnosticsWithinSpan:()=>A0,getDirectoryPath:()=>$a,getDirectoryToWatchFailedLookupLocation:()=>zJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>HJ,getDocumentPositionMapper:()=>h2,getDocumentSpansEqualityComparer:()=>b1,getESModuleInterop:()=>MC,getEditsForFileRename:()=>Lre,getEffectiveBaseTypeNode:()=>dv,getEffectiveConstraintOfTypeParameter:()=>zl,getEffectiveContainerForJSDocTemplateTag:()=>M_,getEffectiveImplementsTypeNodes:()=>pv,getEffectiveInitializer:()=>jg,getEffectiveJSDocHost:()=>F_,getEffectiveModifierFlags:()=>Rb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zb,getEffectiveModifierFlagsNoCache:()=>Gb,getEffectiveReturnTypeNode:()=>db,getEffectiveSetAccessorTypeAnnotationNode:()=>mb,getEffectiveTypeAnnotationNode:()=>lb,getEffectiveTypeParameterDeclarations:()=>Rl,getEffectiveTypeRoots:()=>bz,getElementOrPropertyAccessArgumentExpressionOrName:()=>$g,getElementOrPropertyAccessName:()=>e_,getElementsOfBindingOrAssignmentPattern:()=>mP,getEmitDeclarations:()=>LC,getEmitFlags:()=>Fp,getEmitHelpers:()=>pO,getEmitModuleDetectionKind:()=>AC,getEmitModuleFormatOfFileWorker:()=>wq,getEmitModuleKind:()=>OC,getEmitModuleResolutionKind:()=>kC,getEmitScriptTarget:()=>DC,getEmitStandardClassFields:()=>XC,getEnclosingBlockScopeContainer:()=>gm,getEnclosingContainer:()=>hm,getEncodedSemanticClassifications:()=>i2,getEncodedSyntacticClassifications:()=>a2,getEndLinePosition:()=>sp,getEntityNameFromTypeNode:()=>Xh,getEntrypointsFromPackageJsonInfo:()=>EB,getErrorCountForSummary:()=>$J,getErrorSpanForNode:()=>Rm,getErrorSummaryText:()=>rY,getEscapedTextOfIdentifierOrLiteral:()=>Iv,getEscapedTextOfJsxAttributeName:()=>gE,getEscapedTextOfJsxNamespacedName:()=>yE,getExpandoInitializer:()=>Fg,getExportAssignmentExpression:()=>lv,getExportInfoMap:()=>t2,getExportNeedsImportStarHelper:()=>DU,getExpressionAssociativity:()=>Xv,getExpressionPrecedence:()=>Qv,getExternalHelpersModuleName:()=>QN,getExternalModuleImportEqualsDeclarationExpression:()=>dg,getExternalModuleName:()=>f_,getExternalModuleNameFromDeclaration:()=>Fy,getExternalModuleNameFromPath:()=>Iy,getExternalModuleNameLiteral:()=>iP,getExternalModuleRequireArgument:()=>fg,getFallbackOptions:()=>AK,getFileEmitOutput:()=>Lq,getFileMatcherPatterns:()=>Tw,getFileNamesFromConfigSpecs:()=>BR,getFileWatcherEventKind:()=>ya,getFilesInErrorForSummary:()=>eY,getFirstConstructorWithBody:()=>$y,getFirstIdentifier:()=>cx,getFirstNonSpaceCharacterPosition:()=>Y1,getFirstProjectOutput:()=>iK,getFixableErrorSpanExpression:()=>M0,getFormatCodeSettingsForWriting:()=>G0,getFullWidth:()=>Vf,getFunctionFlags:()=>Dv,getHeritageClause:()=>gv,getHostSignatureFromJSDoc:()=>P_,getIdentifierAutoGenerate:()=>CO,getIdentifierGeneratedImportReference:()=>TO,getIdentifierTypeArguments:()=>xO,getImmediatelyInvokedFunctionExpression:()=>Gh,getImpliedNodeFormatForEmitWorker:()=>Tq,getImpliedNodeFormatForFile:()=>bq,getImpliedNodeFormatForFileWorker:()=>xq,getImportNeedsImportDefaultHelper:()=>kU,getImportNeedsImportStarHelper:()=>OU,getIndentString:()=>Dy,getInferredLibraryNameResolveFrom:()=>pq,getInitializedVariables:()=>iS,getInitializerOfBinaryExpression:()=>n_,getInitializerOfBindingOrAssignmentElement:()=>cP,getInterfaceBaseTypeNodes:()=>hv,getInternalEmitFlags:()=>Ip,getInvokedExpression:()=>Zh,getIsFileExcluded:()=>mre,getIsolatedModules:()=>jC,getJSDocAugmentsTag:()=>ll,getJSDocClassTag:()=>dl,getJSDocCommentRanges:()=>ah,getJSDocCommentsAndTags:()=>D_,getJSDocDeprecatedTag:()=>xl,getJSDocDeprecatedTagNoCache:()=>Sl,getJSDocEnumTag:()=>Cl,getJSDocHost:()=>I_,getJSDocImplementsTags:()=>ul,getJSDocOverloadTags:()=>N_,getJSDocOverrideTagNoCache:()=>bl,getJSDocParameterTags:()=>rl,getJSDocParameterTagsNoCache:()=>il,getJSDocPrivateTag:()=>ml,getJSDocPrivateTagNoCache:()=>hl,getJSDocProtectedTag:()=>gl,getJSDocProtectedTagNoCache:()=>_l,getJSDocPublicTag:()=>fl,getJSDocPublicTagNoCache:()=>pl,getJSDocReadonlyTag:()=>vl,getJSDocReadonlyTagNoCache:()=>yl,getJSDocReturnTag:()=>Tl,getJSDocReturnType:()=>Al,getJSDocRoot:()=>L_,getJSDocSatisfiesExpressionType:()=>mE,getJSDocSatisfiesTag:()=>Dl,getJSDocTags:()=>Ml,getJSDocTemplateTag:()=>El,getJSDocThisTag:()=>wl,getJSDocType:()=>kl,getJSDocTypeAliasName:()=>hP,getJSDocTypeAssertionType:()=>qN,getJSDocTypeParameterDeclarations:()=>fb,getJSDocTypeParameterTags:()=>ol,getJSDocTypeParameterTagsNoCache:()=>sl,getJSDocTypeTag:()=>Ol,getJSXImplicitImportBase:()=>nw,getJSXRuntimeImport:()=>rw,getJSXTransformEnabled:()=>tw,getKeyForCompilerOptions:()=>Pz,getLanguageVariant:()=>vC,getLastChild:()=>TS,getLeadingCommentRanges:()=>Is,getLeadingCommentRangesOfNode:()=>ih,getLeftmostAccessExpression:()=>MS,getLeftmostExpression:()=>PS,getLibFileNameFromLibReference:()=>qE,getLibNameFromLibReference:()=>KE,getLibraryNameFromLibFileName:()=>mq,getLineAndCharacterOfPosition:()=>ps,getLineInfo:()=>aU,getLineOfLocalPosition:()=>Zy,getLineStartPositionForPosition:()=>GQ,getLineStarts:()=>ls,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>$x,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Qx,getLinesBetweenPositions:()=>fs,getLinesBetweenRangeEndAndRangeStart:()=>qx,getLinesBetweenRangeEndPositions:()=>Jx,getLiteralText:()=>zp,getLocalNameForExternalImport:()=>rP,getLocalSymbolForExportDefault:()=>bx,getLocaleSpecificMessage:()=>XS,getLocaleTimeString:()=>XJ,getMappedContextSpan:()=>w1,getMappedDocumentSpan:()=>C1,getMappedLocation:()=>S1,getMatchedFileSpec:()=>sY,getMatchedIncludeSpec:()=>cY,getMeaningFromDeclaration:()=>hQ,getMeaningFromLocation:()=>gQ,getMembersOfDeclaration:()=>_h,getModeForFileReference:()=>QK,getModeForResolutionAtIndex:()=>$K,getModeForUsageLocation:()=>tq,getModifiedTime:()=>sa,getModifiers:()=>tl,getModuleInstanceState:()=>hV,getModuleNameStringLiteralAt:()=>Fq,getModuleSpecifierEndingPreference:()=>Yw,getModuleSpecifierOfBareOrAccessedRequire:()=>Tg,getModuleSpecifierResolverHost:()=>n1,getNameForExportedSymbol:()=>F0,getNameFromImportAttribute:()=>OE,getNameFromIndexInfo:()=>ym,getNameFromPropertyName:()=>$$,getNameOfAccessExpression:()=>AS,getNameOfCompilerOptionValue:()=>WL,getNameOfDeclaration:()=>Qc,getNameOfExpando:()=>Lg,getNameOfJSDocTypedef:()=>Yc,getNameOfScriptTarget:()=>YC,getNameOrArgument:()=>Xg,getNameTable:()=>Q4,getNamespaceDeclarationNode:()=>p_,getNewLineCharacter:()=>Fx,getNewLineKind:()=>U0,getNewLineOrDefaultFromHost:()=>z1,getNewTargetContainer:()=>Uh,getNextJSDocCommentLocation:()=>A_,getNodeChildren:()=>_N,getNodeForGeneratedName:()=>YP,getNodeId:()=>kH,getNodeKind:()=>UQ,getNodeModifiers:()=>j$,getNodeModulePathParts:()=>iE,getNonAssignedNameOfDeclaration:()=>Zc,getNonAssignmentOperatorForCompoundAssignment:()=>RU,getNonAugmentationDeclaration:()=>tm,getNonDecoratorTokenPosOfNode:()=>wp,getNonIncrementalBuildInfoRoots:()=>EJ,getNormalizedAbsolutePath:()=>uo,getNormalizedAbsolutePathWithoutRoot:()=>ho,getNormalizedPathComponents:()=>lo,getObjectFlags:()=>SS,getOperatorAssociativity:()=>Zv,getOperatorPrecedence:()=>ty,getOptionFromName:()=>iL,getOptionsForLibraryResolution:()=>qz,getOptionsNameMap:()=>GI,getOptionsSyntaxByArrayElementValue:()=>XE,getOptionsSyntaxByValue:()=>QE,getOrCreateEmitNode:()=>BD,getOrUpdate:()=>oe,getOriginalNode:()=>Lc,getOriginalNodeId:()=>CU,getOutputDeclarationFileName:()=>JG,getOutputDeclarationFileNameWorker:()=>YG,getOutputExtension:()=>KG,getOutputFileNames:()=>rK,getOutputJSFileNameWorker:()=>XG,getOutputPathsFor:()=>GG,getOwnEmitOutputFilePath:()=>Ly,getOwnKeys:()=>Ye,getOwnValues:()=>Ze,getPackageJsonTypesVersionsPaths:()=>yz,getPackageNameFromTypesPackageName:()=>iV,getPackageScopeForPath:()=>kB,getParameterSymbolFromJSDoc:()=>j_,getParentNodeInSpan:()=>m1,getParseTreeNode:()=>Bc,getParsedCommandLineOfConfigFile:()=>dL,getPathComponents:()=>io,getPathFromPathComponents:()=>ao,getPathUpdater:()=>u2,getPathsBasePath:()=>Uy,getPatternFromSpec:()=>Sw,getPendingEmitKindWithSeen:()=>Qq,getPositionOfLineAndCharacter:()=>ss,getPossibleGenericSignatures:()=>E$,getPossibleOriginalInputExtensionForExtension:()=>Vy,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>D$,getPreEmitDiagnostics:()=>ete,getPrecedingNonSpaceCharacterPosition:()=>X1,getPrivateIdentifier:()=>rW,getProperties:()=>HU,getProperty:()=>Je,getPropertyAssignmentAliasLikeExpression:()=>uv,getPropertyNameForPropertyNameNode:()=>Nv,getPropertyNameFromType:()=>CE,getPropertyNameOfBindingOrAssignmentElement:()=>dP,getPropertySymbolFromBindingElement:()=>p1,getPropertySymbolsFromContextualType:()=>e3,getQuoteFromPreference:()=>c1,getQuotePreference:()=>s1,getRangesWhere:()=>ue,getRefactorContextSpan:()=>j0,getReferencedFileLocation:()=>_q,getRegexFromPattern:()=>Ew,getRegularExpressionForWildcard:()=>yw,getRegularExpressionsForWildcards:()=>bw,getRelativePathFromDirectory:()=>Ao,getRelativePathFromFile:()=>Mo,getRelativePathToDirectoryOrUrl:()=>No,getRenameLocation:()=>$1,getReplacementSpanForContextToken:()=>R$,getResolutionDiagnostic:()=>Nq,getResolutionModeOverride:()=>iq,getResolveJsonModule:()=>IC,getResolvePackageJsonExports:()=>PC,getResolvePackageJsonImports:()=>FC,getResolvedExternalModuleName:()=>Ny,getResolvedModuleFromResolution:()=>Wf,getResolvedTypeReferenceDirectiveFromResolution:()=>Gf,getRestIndicatorOfBindingOrAssignmentElement:()=>uP,getRestParameterElementType:()=>gh,getRightMostAssignedExpression:()=>zg,getRootDeclaration:()=>Kv,getRootDirectoryOfResolutionCache:()=>UJ,getRootLength:()=>Qa,getScriptKind:()=>K1,getScriptKindFromFileName:()=>jw,getScriptTargetFeatures:()=>Lp,getSelectedEffectiveModifierFlags:()=>Fb,getSelectedSyntacticModifierFlags:()=>Ib,getSemanticClassifications:()=>Ore,getSemanticJsxChildren:()=>ry,getSetAccessorTypeAnnotationNode:()=>tb,getSetAccessorValueParameter:()=>eb,getSetExternalModuleIndicator:()=>bC,getShebang:()=>Rs,getSingleVariableOfVariableStatement:()=>C_,getSnapshotText:()=>X$,getSnippetElement:()=>hO,getSourceFileOfModule:()=>np,getSourceFileOfNode:()=>tp,getSourceFilePathInNewDir:()=>Ky,getSourceFileVersionAsHashFromText:()=>yY,getSourceFilesToEmit:()=>Wy,getSourceMapRange:()=>qD,getSourceMapper:()=>Sie,getSourceTextOfNodeFromSourceFile:()=>Tp,getSpanOfTokenAtPosition:()=>Fm,getSpellingSuggestion:()=>Zt,getStartPositionOfLine:()=>ap,getStartPositionOfRange:()=>Zx,getStartsOnNewLine:()=>ZD,getStaticPropertiesAndClassStaticBlock:()=>WU,getStrictOptionValue:()=>JC,getStringComparer:()=>Ut,getSubPatternFromSpec:()=>Cw,getSuperCallFromStatement:()=>zU,getSuperContainer:()=>Wh,getSupportedCodeFixes:()=>q4,getSupportedExtensions:()=>Vw,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Hw,getSwitchedType:()=>u0,getSymbolId:()=>AH,getSymbolNameForPrivateIdentifier:()=>Lv,getSymbolTarget:()=>q1,getSyntacticClassifications:()=>Pre,getSyntacticModifierFlags:()=>Bb,getSyntacticModifierFlagsNoCache:()=>Kb,getSynthesizedDeepClone:()=>eD,getSynthesizedDeepCloneWithReplacements:()=>tD,getSynthesizedDeepClones:()=>rD,getSynthesizedDeepClonesWithReplacements:()=>iD,getSyntheticLeadingComments:()=>tO,getSyntheticTrailingComments:()=>iO,getTargetLabel:()=>kQ,getTargetOfBindingOrAssignmentElement:()=>lP,getTemporaryModuleResolutionState:()=>OB,getTextOfConstantValue:()=>Vp,getTextOfIdentifierOrLiteral:()=>Fv,getTextOfJSDocComment:()=>Il,getTextOfJsxAttributeName:()=>_E,getTextOfJsxNamespacedName:()=>bE,getTextOfNode:()=>Mp,getTextOfNodeFromSourceText:()=>jp,getTextOfPropertyName:()=>Sm,getThisContainer:()=>Bh,getThisParameter:()=>nb,getTokenAtPosition:()=>d$,getTokenPosOfNode:()=>Cp,getTokenSourceMapRange:()=>YD,getTouchingPropertyName:()=>l$,getTouchingToken:()=>u$,getTrailingCommentRanges:()=>Ls,getTrailingSemicolonDeferringWriter:()=>Ay,getTransformers:()=>PG,getTsBuildInfoEmitOutputFilePath:()=>UG,getTsConfigObjectLiteralExpression:()=>jh,getTsConfigPropArrayElementValue:()=>Mh,getTypeAnnotationNode:()=>ub,getTypeArgumentOrTypeParameterList:()=>Ane,getTypeKeywordOfTypeOnlyImport:()=>_1,getTypeNode:()=>yO,getTypeNodeIfAccessible:()=>f0,getTypeParameterFromJsDoc:()=>R_,getTypeParameterOwner:()=>Tc,getTypesPackageName:()=>nV,getUILocale:()=>Kt,getUniqueName:()=>Q1,getUniqueSymbolId:()=>J1,getUseDefineForClassFields:()=>HC,getWatchErrorSummaryDiagnosticMessage:()=>tY,getWatchFactory:()=>kK,group:()=>at,groupBy:()=>ot,guessIndentation:()=>ff,handleNoEmitOptions:()=>kq,handleWatchOptionsConfigDirTemplateSubstitution:()=>iR,hasAbstractModifier:()=>Ab,hasAccessorModifier:()=>Mb,hasAmbientModifier:()=>jb,hasChangesInResolutions:()=>Qf,hasContextSensitiveParameters:()=>XT,hasDecorators:()=>Pb,hasDocComment:()=>k$,hasDynamicName:()=>jv,hasEffectiveModifier:()=>Tb,hasEffectiveModifiers:()=>Cb,hasEffectiveReadonlyModifier:()=>Nb,hasExtension:()=>Ga,hasImplementationTSFileExtension:()=>Kw,hasIndexSignature:()=>l0,hasInferredType:()=>LE,hasInitializer:()=>sf,hasInvalidEscape:()=>cy,hasJSDocNodes:()=>af,hasJSDocParameterTags:()=>cl,hasJSFileExtension:()=>Ww,hasJsonModuleEmitEnabled:()=>GC,hasOnlyExpressionInitializer:()=>cf,hasOverrideModifier:()=>kb,hasPossibleExternalModuleReference:()=>pm,hasProperty:()=>qe,hasPropertyAccessExpressionWithName:()=>AQ,hasQuestionToken:()=>g_,hasRecordedExternalHelpers:()=>$N,hasResolutionModeOverride:()=>TE,hasRestParameter:()=>hf,hasScopeMarker:()=>Sd,hasStaticModifier:()=>Ob,hasSyntacticModifier:()=>Eb,hasSyntacticModifiers:()=>wb,hasTSFileExtension:()=>Gw,hasTabstop:()=>lE,hasTrailingDirectorySeparator:()=>Ja,hasType:()=>of,hasTypeArguments:()=>z_,hasZeroOrOneAsteriskCharacter:()=>iw,hostGetCanonicalFileName:()=>My,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>Uc,identifierIsThisKeyword:()=>sb,identifierToKeywordKind:()=>Wc,identity:()=>Tt,identitySourceMapConsumer:()=>SU,ignoreSourceNewlines:()=>_O,ignoredPaths:()=>ba,importFromModuleSpecifier:()=>l_,importSyntaxAffectsModuleResolution:()=>xC,indexOfAnyCharCode:()=>w,indexOfNode:()=>Pp,indicesOf:()=>pe,inferredTypesContainingFile:()=>fq,injectClassNamedEvaluationHelperBlockIfMissing:()=>NW,injectClassThisAssignmentIfMissing:()=>EW,insertImports:()=>g1,insertSorted:()=>ye,insertStatementAfterCustomPrologue:()=>yp,insertStatementAfterStandardPrologue:()=>vp,insertStatementsAfterCustomPrologue:()=>_p,insertStatementsAfterStandardPrologue:()=>gp,intersperse:()=>_,intrinsicTagNameToString:()=>xE,introducesArgumentsExoticObject:()=>Ch,inverseJsxOptionMap:()=>vI,isAbstractConstructorSymbol:()=>bS,isAbstractModifier:()=>Nk,isAccessExpression:()=>kS,isAccessibilityModifier:()=>F$,isAccessor:()=>Bu,isAccessorModifier:()=>Fk,isAliasableExpression:()=>sv,isAmbientModule:()=>Gp,isAmbientPropertyDeclaration:()=>am,isAnyDirectorySeparator:()=>Ra,isAnyImportOrBareOrAccessedRequire:()=>um,isAnyImportOrReExport:()=>mm,isAnyImportOrRequireStatement:()=>dm,isAnyImportSyntax:()=>lm,isAnySupportedFileExtension:()=>fT,isApplicableVersionedTypesKey:()=>KB,isArgumentExpressionOfElementAccess:()=>LQ,isArray:()=>ht,isArrayBindingElement:()=>Qu,isArrayBindingOrAssignmentElement:()=>ad,isArrayBindingOrAssignmentPattern:()=>id,isArrayBindingPattern:()=>EA,isArrayLiteralExpression:()=>OA,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>L$,isArrayTypeNode:()=>sA,isArrowFunction:()=>RA,isAsExpression:()=>$A,isAssertClause:()=>Hj,isAssertEntry:()=>Uj,isAssertionExpression:()=>yd,isAssertsKeyword:()=>kk,isAssignmentDeclaration:()=>Ag,isAssignmentExpression:()=>ix,isAssignmentOperator:()=>tx,isAssignmentPattern:()=>Zu,isAssignmentTarget:()=>U_,isAsteriskToken:()=>yk,isAsyncFunction:()=>Ov,isAsyncModifier:()=>Ok,isAutoAccessorPropertyDeclaration:()=>Vu,isAwaitExpression:()=>HA,isAwaitKeyword:()=>Ak,isBigIntLiteral:()=>sk,isBinaryExpression:()=>GA,isBinaryLogicalOperator:()=>Yb,isBinaryOperatorToken:()=>HP,isBindableObjectDefinePropertyCall:()=>Wg,isBindableStaticAccessExpression:()=>qg,isBindableStaticElementAccessExpression:()=>Jg,isBindableStaticNameExpression:()=>Yg,isBindingElement:()=>DA,isBindingElementOfBareOrAccessedRequire:()=>wg,isBindingName:()=>Au,isBindingOrAssignmentElement:()=>ed,isBindingOrAssignmentPattern:()=>td,isBindingPattern:()=>Xu,isBlock:()=>cj,isBlockLike:()=>X0,isBlockOrCatchScoped:()=>Up,isBlockScope:()=>om,isBlockScopedContainerTopLevel:()=>Zp,isBooleanLiteral:()=>Pu,isBreakOrContinueStatement:()=>$l,isBreakStatement:()=>yj,isBuildCommand:()=>ZX,isBuildInfoFile:()=>VG,isBuilderProgram:()=>iY,isBundle:()=>EM,isCallChain:()=>Wl,isCallExpression:()=>MA,isCallExpressionTarget:()=>vQ,isCallLikeExpression:()=>ld,isCallLikeOrFunctionLikeExpression:()=>cd,isCallOrNewExpression:()=>ud,isCallOrNewExpressionTarget:()=>bQ,isCallSignatureDeclaration:()=>Qk,isCallToHelper:()=>ak,isCaseBlock:()=>Ij,isCaseClause:()=>_M,isCaseKeyword:()=>Rk,isCaseOrDefaultClause:()=>Qd,isCatchClause:()=>bM,isCatchClauseVariableDeclaration:()=>QT,isCatchClauseVariableDeclarationOrBindingElement:()=>Wp,isCheckJsEnabledForFile:()=>mT,isCircularBuildOrder:()=>LY,isClassDeclaration:()=>Aj,isClassElement:()=>Ru,isClassExpression:()=>XA,isClassInstanceProperty:()=>Hu,isClassLike:()=>zu,isClassMemberModifier:()=>Eu,isClassNamedEvaluationHelperBlock:()=>AW,isClassOrTypeElement:()=>Ku,isClassStaticBlockDeclaration:()=>Jk,isClassThisAssignmentBlock:()=>wW,isColonToken:()=>Sk,isCommaExpression:()=>WN,isCommaListExpression:()=>aj,isCommaSequence:()=>GN,isCommaToken:()=>gk,isComment:()=>M$,isCommonJsExportPropertyAssignment:()=>xh,isCommonJsExportedExpression:()=>bh,isCompoundAssignment:()=>LU,isComputedNonLiteralName:()=>bm,isComputedPropertyName:()=>Bk,isConciseBody:()=>Ed,isConditionalExpression:()=>KA,isConditionalTypeNode:()=>mA,isConstAssertion:()=>ME,isConstTypeReference:()=>Xl,isConstructSignatureDeclaration:()=>$k,isConstructorDeclaration:()=>Yk,isConstructorTypeNode:()=>iA,isContextualKeyword:()=>xv,isContinueStatement:()=>vj,isCustomPrologue:()=>eh,isDebuggerStatement:()=>Ej,isDeclaration:()=>zd,isDeclarationBindingElement:()=>$u,isDeclarationFileName:()=>rI,isDeclarationName:()=>nv,isDeclarationNameOfEnumOrNamespace:()=>rS,isDeclarationReadonly:()=>Um,isDeclarationStatement:()=>Bd,isDeclarationWithTypeParameterChildren:()=>cm,isDeclarationWithTypeParameters:()=>sm,isDecorator:()=>Uk,isDecoratorTarget:()=>SQ,isDefaultClause:()=>vM,isDefaultImport:()=>m_,isDefaultModifier:()=>Dk,isDefaultedExpandoInitializer:()=>Ig,isDeleteExpression:()=>zA,isDeleteTarget:()=>ev,isDeprecatedDeclaration:()=>V0,isDestructuringAssignment:()=>ax,isDiskPathRoot:()=>Va,isDoStatement:()=>pj,isDocumentRegistryEntry:()=>s2,isDotDotDotToken:()=>hk,isDottedName:()=>lx,isDynamicName:()=>Mv,isEffectiveExternalModule:()=>rm,isEffectiveStrictModeSourceFile:()=>im,isElementAccessChain:()=>Ul,isElementAccessExpression:()=>jA,isEmittedFileOfProgram:()=>DK,isEmptyArrayLiteral:()=>yx,isEmptyBindingElement:()=>Oc,isEmptyBindingPattern:()=>Dc,isEmptyObjectLiteral:()=>vx,isEmptyStatement:()=>uj,isEmptyStringLiteral:()=>ig,isEntityName:()=>Ou,isEntityNameExpression:()=>sx,isEnumConst:()=>Hm,isEnumDeclaration:()=>Nj,isEnumMember:()=>wM,isEqualityOperatorKind:()=>s0,isEqualsGreaterThanToken:()=>wk,isExclamationToken:()=>bk,isExcludedFile:()=>VR,isExclusivelyTypeOnlyImportOrExport:()=>eq,isExpandoPropertyDeclaration:()=>wE,isExportAssignment:()=>Xj,isExportDeclaration:()=>Zj,isExportModifier:()=>Ek,isExportName:()=>BN,isExportNamespaceAsDefaultDeclaration:()=>Dp,isExportOrDefaultModifier:()=>qP,isExportSpecifier:()=>$j,isExportsIdentifier:()=>Bg,isExportsOrModuleExportsOrAlias:()=>wV,isExpression:()=>J,isExpressionNode:()=>og,isExpressionOfExternalModuleImportEqualsDeclaration:()=>VQ,isExpressionOfOptionalChainRoot:()=>ql,isExpressionStatement:()=>dj,isExpressionWithTypeArguments:()=>QA,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ox,isExternalModule:()=>JF,isExternalModuleAugmentation:()=>$p,isExternalModuleImportEqualsDeclaration:()=>ug,isExternalModuleIndicator:()=>wd,isExternalModuleNameRelative:()=>Qs,isExternalModuleReference:()=>iM,isExternalModuleSymbol:()=>Of,isExternalOrCommonJsModule:()=>Bm,isFileLevelReservedGeneratedIdentifier:()=>xu,isFileLevelUniqueName:()=>cp,isFileProbablyExternalModule:()=>gF,isFirstDeclarationOfSymbolParameter:()=>T1,isFixablePromiseHandler:()=>y2,isForInOrOfStatement:()=>Td,isForInStatement:()=>gj,isForInitializer:()=>Od,isForOfStatement:()=>_j,isForStatement:()=>hj,isFullSourceFile:()=>mg,isFunctionBlock:()=>Th,isFunctionBody:()=>Dd,isFunctionDeclaration:()=>kj,isFunctionExpression:()=>LA,isFunctionExpressionOrArrowFunction:()=>$T,isFunctionLike:()=>ju,isFunctionLikeDeclaration:()=>Nu,isFunctionLikeKind:()=>Iu,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mu,isFunctionOrConstructorTypeNode:()=>Yu,isFunctionOrModuleBlock:()=>Lu,isFunctionSymbol:()=>o_,isFunctionTypeNode:()=>rA,isGeneratedIdentifier:()=>yu,isGeneratedPrivateIdentifier:()=>bu,isGetAccessor:()=>rf,isGetAccessorDeclaration:()=>Xk,isGetOrSetAccessorDeclaration:()=>Vl,isGlobalScopeAugmentation:()=>Qp,isGlobalSourceFile:()=>zm,isGrammarError:()=>dp,isHeritageClause:()=>yM,isHoistedFunction:()=>th,isHoistedVariableStatement:()=>rh,isIdentifier:()=>X,isIdentifierANonContextualKeyword:()=>wv,isIdentifierName:()=>av,isIdentifierOrThisTypeNode:()=>xP,isIdentifierPart:()=>Bs,isIdentifierStart:()=>zs,isIdentifierText:()=>Vs,isIdentifierTypePredicate:()=>Oh,isIdentifierTypeReference:()=>IT,isIfStatement:()=>fj,isIgnoredFileFromWildCardWatching:()=>EK,isImplicitGlob:()=>xw,isImportAttribute:()=>Gj,isImportAttributeName:()=>vu,isImportAttributes:()=>Wj,isImportCall:()=>Xm,isImportClause:()=>Bj,isImportDeclaration:()=>zj,isImportEqualsDeclaration:()=>Rj,isImportKeyword:()=>Lk,isImportMeta:()=>Zm,isImportOrExportSpecifier:()=>fu,isImportOrExportSpecifierName:()=>G1,isImportSpecifier:()=>Yj,isImportTypeAssertionContainer:()=>Vj,isImportTypeNode:()=>SA,isImportable:()=>$0,isInComment:()=>O$,isInCompoundLikeAssignment:()=>G_,isInExpressionContext:()=>sg,isInJSDoc:()=>yg,isInJSFile:()=>gg,isInJSXText:()=>S$,isInJsonFile:()=>_g,isInNonReferenceComment:()=>Pne,isInReferenceComment:()=>Nne,isInRightSideOfInternalImportEqualsDeclaration:()=>_Q,isInString:()=>v$,isInTemplateString:()=>x$,isInTopLevelContext:()=>Hh,isInTypeQuery:()=>ab,isIncrementalBuildInfo:()=>uJ,isIncrementalBundleEmitBuildInfo:()=>lJ,isIncrementalCompilation:()=>zC,isIndexSignatureDeclaration:()=>eA,isIndexedAccessTypeNode:()=>yA,isInferTypeNode:()=>hA,isInfinityOrNaNString:()=>ZT,isInitializedProperty:()=>qU,isInitializedVariable:()=>aS,isInsideJsxElement:()=>C$,isInsideJsxElementOrAttribute:()=>y$,isInsideNodeModules:()=>O0,isInsideTemplateLiteral:()=>P$,isInstanceOfExpression:()=>gx,isInstantiatedModule:()=>jH,isInterfaceDeclaration:()=>jj,isInternalDeclaration:()=>vf,isInternalModuleImportEqualsDeclaration:()=>pg,isInternalName:()=>RN,isIntersectionTypeNode:()=>pA,isIntrinsicJsxName:()=>Ty,isIterationStatement:()=>bd,isJSDoc:()=>VM,isJSDocAllType:()=>NM,isJSDocAugmentsTag:()=>WM,isJSDocAuthorTag:()=>GM,isJSDocCallbackTag:()=>qM,isJSDocClassTag:()=>KM,isJSDocCommentContainingNode:()=>ef,isJSDocConstructSignature:()=>__,isJSDocDeprecatedTag:()=>eN,isJSDocEnumTag:()=>nN,isJSDocFunctionType:()=>RM,isJSDocImplementsTag:()=>dN,isJSDocImportTag:()=>mN,isJSDocIndexSignature:()=>bg,isJSDocLikeText:()=>hF,isJSDocLink:()=>AM,isJSDocLinkCode:()=>jM,isJSDocLinkLike:()=>mf,isJSDocLinkPlain:()=>MM,isJSDocMemberName:()=>kM,isJSDocNameReference:()=>OM,isJSDocNamepathType:()=>BM,isJSDocNamespaceBody:()=>jd,isJSDocNode:()=>$d,isJSDocNonNullableType:()=>IM,isJSDocNullableType:()=>FM,isJSDocOptionalParameter:()=>uE,isJSDocOptionalType:()=>LM,isJSDocOverloadTag:()=>$M,isJSDocOverrideTag:()=>QM,isJSDocParameterTag:()=>rN,isJSDocPrivateTag:()=>YM,isJSDocPropertyLikeTag:()=>tu,isJSDocPropertyTag:()=>uN,isJSDocProtectedTag:()=>XM,isJSDocPublicTag:()=>JM,isJSDocReadonlyTag:()=>ZM,isJSDocReturnTag:()=>iN,isJSDocSatisfiesExpression:()=>pE,isJSDocSatisfiesTag:()=>fN,isJSDocSeeTag:()=>tN,isJSDocSignature:()=>UM,isJSDocTag:()=>tf,isJSDocTemplateTag:()=>sN,isJSDocThisTag:()=>aN,isJSDocThrowsTag:()=>pN,isJSDocTypeAlias:()=>v_,isJSDocTypeAssertion:()=>KN,isJSDocTypeExpression:()=>DM,isJSDocTypeLiteral:()=>HM,isJSDocTypeTag:()=>oN,isJSDocTypedefTag:()=>cN,isJSDocUnknownTag:()=>lN,isJSDocUnknownType:()=>PM,isJSDocVariadicType:()=>zM,isJSXTagName:()=>ag,isJsonEqual:()=>ET,isJsonSourceFile:()=>Vm,isJsxAttribute:()=>fM,isJsxAttributeLike:()=>Jd,isJsxAttributeName:()=>vE,isJsxAttributes:()=>pM,isJsxCallLike:()=>Zd,isJsxChild:()=>qd,isJsxClosingElement:()=>cM,isJsxClosingFragment:()=>dM,isJsxElement:()=>aM,isJsxExpression:()=>hM,isJsxFragment:()=>lM,isJsxNamespacedName:()=>gM,isJsxOpeningElement:()=>sM,isJsxOpeningFragment:()=>uM,isJsxOpeningLikeElement:()=>Xd,isJsxOpeningLikeElementTagName:()=>CQ,isJsxSelfClosingElement:()=>oM,isJsxSpreadAttribute:()=>mM,isJsxTagNameExpression:()=>Kd,isJsxText:()=>lk,isJumpStatementTarget:()=>jQ,isKeyword:()=>vv,isKeywordOrPunctuation:()=>bv,isKnownSymbol:()=>Rv,isLabelName:()=>NQ,isLabelOfLabeledStatement:()=>MQ,isLabeledStatement:()=>Cj,isLateVisibilityPaintedStatement:()=>fm,isLeftHandSideExpression:()=>fd,isLet:()=>Jm,isLineBreak:()=>gs,isLiteralComputedPropertyDeclarationName:()=>iv,isLiteralExpression:()=>su,isLiteralExpressionOfObject:()=>cu,isLiteralImportTypeNode:()=>Qm,isLiteralKind:()=>ou,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>BQ,isLiteralTypeLiteral:()=>_d,isLiteralTypeNode:()=>xA,isLocalName:()=>zN,isLogicalOperator:()=>Xb,isLogicalOrCoalescingAssignmentExpression:()=>Qb,isLogicalOrCoalescingAssignmentOperator:()=>Zb,isLogicalOrCoalescingBinaryExpression:()=>ex,isLogicalOrCoalescingBinaryOperator:()=>$b,isMappedTypeNode:()=>bA,isMemberName:()=>Bl,isMetaProperty:()=>nj,isMethodDeclaration:()=>qk,isMethodOrAccessor:()=>Uu,isMethodSignature:()=>Kk,isMinusToken:()=>vk,isMissingDeclaration:()=>tM,isMissingPackageJsonInfo:()=>Mz,isModifier:()=>Du,isModifierKind:()=>wu,isModifierLike:()=>Wu,isModuleAugmentationExternal:()=>em,isModuleBlock:()=>Fj,isModuleBody:()=>kd,isModuleDeclaration:()=>Pj,isModuleExportName:()=>eM,isModuleExportsAccessExpression:()=>Hg,isModuleIdentifier:()=>Vg,isModuleName:()=>wP,isModuleOrEnumDeclaration:()=>Nd,isModuleReference:()=>Gd,isModuleSpecifierLike:()=>d1,isModuleWithStringLiteralName:()=>Kp,isNameOfFunctionDeclaration:()=>zQ,isNameOfModuleDeclaration:()=>RQ,isNamedDeclaration:()=>Xc,isNamedEvaluation:()=>Uv,isNamedEvaluationSource:()=>Hv,isNamedExportBindings:()=>eu,isNamedExports:()=>Qj,isNamedImportBindings:()=>Md,isNamedImports:()=>Jj,isNamedImportsOrExports:()=>jS,isNamedTupleMember:()=>lA,isNamespaceBody:()=>Ad,isNamespaceExport:()=>qj,isNamespaceExportDeclaration:()=>Lj,isNamespaceImport:()=>Kj,isNamespaceReexportDeclaration:()=>lg,isNewExpression:()=>NA,isNewExpressionTarget:()=>yQ,isNewScopeNode:()=>GE,isNoSubstitutionTemplateLiteral:()=>dk,isNodeArray:()=>au,isNodeArrayMultiLine:()=>Yx,isNodeDescendantOf:()=>tv,isNodeKind:()=>nu,isNodeLikeSystem:()=>En,isNodeModulesDirectory:()=>Fo,isNodeWithPossibleHoistedDeclaration:()=>K_,isNonContextualKeyword:()=>Sv,isNonGlobalAmbientModule:()=>qp,isNonNullAccess:()=>fE,isNonNullChain:()=>Ql,isNonNullExpression:()=>tj,isNonStaticMethodOrAccessorWithPrivateName:()=>JU,isNotEmittedStatement:()=>nM,isNullishCoalesce:()=>Yl,isNumber:()=>vt,isNumericLiteral:()=>ok,isNumericLiteralName:()=>tE,isObjectBindingElementWithoutPropertyName:()=>f1,isObjectBindingOrAssignmentElement:()=>rd,isObjectBindingOrAssignmentPattern:()=>nd,isObjectBindingPattern:()=>TA,isObjectLiteralElement:()=>lf,isObjectLiteralElementLike:()=>qu,isObjectLiteralExpression:()=>kA,isObjectLiteralMethod:()=>Eh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Dh,isObjectTypeDeclaration:()=>DS,isOmittedExpression:()=>ZA,isOptionalChain:()=>Gl,isOptionalChainRoot:()=>Kl,isOptionalDeclaration:()=>dE,isOptionalJSDocPropertyLikeTag:()=>sE,isOptionalTypeNode:()=>uA,isOuterExpression:()=>JN,isOutermostOptionalChain:()=>Jl,isOverrideModifier:()=>Pk,isPackageJsonInfo:()=>jz,isPackedArrayLiteral:()=>KT,isParameter:()=>Hk,isParameterPropertyDeclaration:()=>Ec,isParameterPropertyModifier:()=>Tu,isParenthesizedExpression:()=>IA,isParenthesizedTypeNode:()=>gA,isParseTreeNode:()=>zc,isPartOfParameterDeclaration:()=>Gv,isPartOfTypeNode:()=>fh,isPartOfTypeOnlyImportOrExportDeclaration:()=>gu,isPartOfTypeQuery:()=>cg,isPartiallyEmittedExpression:()=>ij,isPatternMatch:()=>hn,isPinnedComment:()=>xp,isPlainJsFile:()=>rp,isPlusToken:()=>_k,isPossiblyTypeArgumentPosition:()=>T$,isPostfixUnaryExpression:()=>WA,isPotentiallyExecutableNode:()=>dD,isPrefixUnaryExpression:()=>UA,isPrimitiveLiteralValue:()=>FE,isPrivateIdentifier:()=>Tk,isPrivateIdentifierClassElementDeclaration:()=>Su,isPrivateIdentifierPropertyAccessExpression:()=>Cu,isPrivateIdentifierSymbol:()=>zv,isProgramUptoDate:()=>vq,isPrologueDirective:()=>$m,isPropertyAccessChain:()=>Hl,isPropertyAccessEntityNameExpression:()=>ux,isPropertyAccessExpression:()=>AA,isPropertyAccessOrQualifiedName:()=>sd,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>od,isPropertyAssignment:()=>xM,isPropertyDeclaration:()=>Gk,isPropertyName:()=>ku,isPropertyNameLiteral:()=>Pv,isPropertySignature:()=>Wk,isPrototypeAccess:()=>fx,isPrototypePropertyAssignment:()=>r_,isPunctuation:()=>yv,isPushOrUnshiftIdentifier:()=>Wv,isQualifiedName:()=>zk,isQuestionDotToken:()=>Ck,isQuestionOrExclamationToken:()=>bP,isQuestionOrPlusOrMinusToken:()=>CP,isQuestionToken:()=>xk,isReadonlyKeyword:()=>jk,isReadonlyKeywordOrPlusOrMinusToken:()=>SP,isRecognizedTripleSlashComment:()=>bp,isReferenceFileLocation:()=>gq,isReferencedFile:()=>hq,isRegularExpressionLiteral:()=>uk,isRequireCall:()=>xg,isRequireVariableStatement:()=>Dg,isRestParameter:()=>gf,isRestTypeNode:()=>dA,isReturnStatement:()=>bj,isReturnStatementWithFixablePromiseHandler:()=>v2,isRightSideOfAccessExpression:()=>mx,isRightSideOfInstanceofExpression:()=>_x,isRightSideOfPropertyAccess:()=>IQ,isRightSideOfQualifiedName:()=>FQ,isRightSideOfQualifiedNameOrPropertyAccess:()=>px,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>hx,isRootedDiskPath:()=>Ba,isSameEntityName:()=>Rg,isSatisfiesExpression:()=>ej,isSemicolonClassElement:()=>sj,isSetAccessor:()=>nf,isSetAccessorDeclaration:()=>Zk,isShiftOperatorOrHigher:()=>jP,isShorthandAmbientModuleSymbol:()=>Yp,isShorthandPropertyAssignment:()=>SM,isSideEffectImport:()=>RE,isSignedNumericLiteral:()=>Av,isSimpleCopiableExpression:()=>FU,isSimpleInlineableExpression:()=>IU,isSimpleParameterList:()=>sW,isSingleOrDoubleQuote:()=>Og,isSolutionConfig:()=>mR,isSourceElement:()=>kE,isSourceFile:()=>TM,isSourceFileFromLibrary:()=>q0,isSourceFileJS:()=>hg,isSourceFileNotJson:()=>vg,isSourceMapping:()=>fU,isSpecialPropertyDeclaration:()=>i_,isSpreadAssignment:()=>CM,isSpreadElement:()=>YA,isStatement:()=>Hd,isStatementButNotDeclaration:()=>Vd,isStatementOrBlock:()=>Wd,isStatementWithLocals:()=>ip,isStatic:()=>Db,isStaticModifier:()=>Mk,isString:()=>_t,isStringANonContextualKeyword:()=>Cv,isStringAndEmptyAnonymousObjectIntersection:()=>Mne,isStringDoubleQuoted:()=>kg,isStringLiteral:()=>ck,isStringLiteralLike:()=>pf,isStringLiteralOrJsxExpression:()=>Yd,isStringLiteralOrTemplate:()=>c0,isStringOrNumericLiteralLike:()=>kv,isStringOrRegularExpressionOrTemplateLiteral:()=>N$,isStringTextContainingNode:()=>_u,isSuperCall:()=>Ym,isSuperKeyword:()=>Ik,isSuperProperty:()=>Kh,isSupportedSourceFileName:()=>Zw,isSwitchStatement:()=>Sj,isSyntaxList:()=>hN,isSyntheticExpression:()=>rj,isSyntheticReference:()=>rM,isTagName:()=>PQ,isTaggedTemplateExpression:()=>PA,isTaggedTemplateTag:()=>xQ,isTemplateExpression:()=>qA,isTemplateHead:()=>fk,isTemplateLiteral:()=>dd,isTemplateLiteralKind:()=>lu,isTemplateLiteralToken:()=>uu,isTemplateLiteralTypeNode:()=>wA,isTemplateLiteralTypeSpan:()=>CA,isTemplateMiddle:()=>pk,isTemplateMiddleOrTemplateTail:()=>du,isTemplateSpan:()=>oj,isTemplateTail:()=>mk,isTextWhiteSpaceLike:()=>Vne,isThis:()=>WQ,isThisContainerOrFunctionBlock:()=>Vh,isThisIdentifier:()=>ib,isThisInTypeQuery:()=>ob,isThisInitializedDeclaration:()=>Jh,isThisInitializedObjectBindingExpression:()=>Yh,isThisProperty:()=>qh,isThisTypeNode:()=>_A,isThisTypeParameter:()=>rE,isThisTypePredicate:()=>kh,isThrowStatement:()=>wj,isToken:()=>iu,isTokenKind:()=>ru,isTraceEnabled:()=>tz,isTransientSymbol:()=>Df,isTrivia:()=>Tv,isTryStatement:()=>Tj,isTupleTypeNode:()=>cA,isTypeAlias:()=>y_,isTypeAliasDeclaration:()=>Mj,isTypeAssertionExpression:()=>FA,isTypeDeclaration:()=>aE,isTypeElement:()=>Gu,isTypeKeyword:()=>q$,isTypeKeywordTokenOrIdentifier:()=>J$,isTypeLiteralNode:()=>oA,isTypeNode:()=>Ju,isTypeNodeKind:()=>OS,isTypeOfExpression:()=>BA,isTypeOnlyExportDeclaration:()=>mu,isTypeOnlyImportDeclaration:()=>pu,isTypeOnlyImportOrExportDeclaration:()=>hu,isTypeOperatorNode:()=>vA,isTypeParameterDeclaration:()=>Vk,isTypePredicateNode:()=>tA,isTypeQueryNode:()=>aA,isTypeReferenceNode:()=>nA,isTypeReferenceType:()=>uf,isTypeUsableAsPropertyName:()=>SE,isUMDExportSymbol:()=>CS,isUnaryExpression:()=>md,isUnaryExpressionWithWrite:()=>gd,isUnicodeIdentifierStart:()=>Zo,isUnionTypeNode:()=>fA,isUrl:()=>za,isValidBigIntString:()=>jT,isValidESSymbolDeclaration:()=>Sh,isValidTypeOnlyAliasUseSite:()=>MT,isValueSignatureDeclaration:()=>q_,isVarAwaitUsing:()=>Wm,isVarConst:()=>Km,isVarConstLike:()=>qm,isVarUsing:()=>Gm,isVariableDeclaration:()=>Dj,isVariableDeclarationInVariableStatement:()=>yh,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Cg,isVariableDeclarationInitializedToRequire:()=>Sg,isVariableDeclarationList:()=>Oj,isVariableLike:()=>vh,isVariableStatement:()=>lj,isVoidExpression:()=>VA,isWatchSet:()=>oS,isWhileStatement:()=>mj,isWhiteSpaceLike:()=>ms,isWhiteSpaceSingleLine:()=>hs,isWithStatement:()=>xj,isWriteAccess:()=>pS,isWriteOnlyAccess:()=>fS,isYieldExpression:()=>JA,jsxModeNeedsExplicitImport:()=>K0,keywordPart:()=>O1,last:()=>ze,lastOrUndefined:()=>Re,length:()=>u,libMap:()=>xI,libs:()=>bI,lineBreakPart:()=>B1,loadModuleFromGlobalCache:()=>uV,loadWithModeAwareCache:()=>dq,makeIdentifierFromModuleName:()=>Hp,makeImport:()=>i1,makeStringLiteral:()=>a1,mangleScopedPackageName:()=>rV,map:()=>k,mapAllOrFail:()=>ae,mapDefined:()=>M,mapDefinedIterator:()=>N,mapEntries:()=>le,mapIterator:()=>A,mapOneOrMany:()=>N0,mapToDisplayParts:()=>V1,matchFiles:()=>Dw,matchPatternOrExact:()=>gT,matchedText:()=>un,matchesExclude:()=>UR,matchesExcludeWorker:()=>WR,maxBy:()=>Rt,maybeBind:()=>ut,maybeSetLocalizedDiagnosticMessages:()=>YS,memoize:()=>kt,memoizeOne:()=>At,min:()=>zt,minAndMax:()=>yT,missingFileModifiedTime:()=>oa,modifierToFlag:()=>Jb,modifiersToFlags:()=>qb,moduleExportNameIsDefault:()=>Ap,moduleExportNameTextEscaped:()=>kp,moduleExportNameTextUnescaped:()=>Op,moduleOptionDeclaration:()=>TI,moduleResolutionIsEqualTo:()=>Uf,moduleResolutionNameAndModeGetter:()=>sq,moduleResolutionOptionDeclarations:()=>jI,moduleResolutionSupportsPackageJsonExportsAndImports:()=>KC,moduleResolutionUsesNodeModules:()=>r1,moduleSpecifierToValidIdentifier:()=>R0,moduleSpecifiers:()=>OV,moduleSupportsImportAttributes:()=>qC,moduleSymbolToValidIdentifier:()=>L0,moveEmitHelpers:()=>mO,moveRangeEnd:()=>Lx,moveRangePastDecorators:()=>zx,moveRangePastModifiers:()=>Bx,moveRangePos:()=>Rx,moveSyntheticComments:()=>sO,mutateMap:()=>yS,mutateMapSkippingNewValues:()=>vS,needsParentheses:()=>i0,needsScopeMarker:()=>Cd,newCaseClauseTracker:()=>J0,newPrivateEnvironment:()=>nW,noEmitNotification:()=>RG,noEmitSubstitution:()=>LG,noTransformers:()=>NG,noTruncationMaximumTruncationLength:()=>Sf,nodeCanBeDecorated:()=>Qh,nodeCoreModules:()=>HE,nodeHasName:()=>Jc,nodeIsDecorated:()=>$h,nodeIsMissing:()=>lp,nodeIsPresent:()=>up,nodeIsSynthesized:()=>Jv,nodeModuleNameResolver:()=>cB,nodeModulesPathPart:()=>mB,nodeNextJsonConfigResolver:()=>lB,nodeOrChildIsDecorated:()=>eg,nodeOverlapsWithStartEnd:()=>ZQ,nodePosToString:()=>op,nodeSeenTracker:()=>Y$,nodeStartsNewLexicalEnvironment:()=>qv,noop:()=>xt,noopFileWatcher:()=>pY,normalizePath:()=>fo,normalizeSlashes:()=>oo,normalizeSpans:()=>_c,not:()=>vn,notImplemented:()=>Ot,notImplementedResolver:()=>lK,nullNodeConverters:()=>gD,nullParenthesizerRules:()=>mD,nullTransformationContext:()=>BG,objectAllocator:()=>HS,operatorPart:()=>A1,optionDeclarations:()=>DI,optionMapToObject:()=>BL,optionsAffectingProgramStructure:()=>NI,optionsForBuild:()=>BI,optionsForWatch:()=>SI,optionsHaveChanges:()=>Ff,or:()=>_n,orderedRemoveItem:()=>nn,orderedRemoveItemAt:()=>rn,packageIdToPackageName:()=>Yf,packageIdToString:()=>Xf,parameterIsThisKeyword:()=>rb,parameterNamePart:()=>j1,parseBaseNodeFactory:()=>fF,parseBigInt:()=>kT,parseBuildCommand:()=>lL,parseCommandLine:()=>rL,parseCommandLineWorker:()=>eL,parseConfigFileTextToJson:()=>pL,parseConfigFileWithSystem:()=>QJ,parseConfigHostFromCompilerHostLike:()=>jq,parseCustomTypeOption:()=>XI,parseIsolatedEntityName:()=>KF,parseIsolatedJSDocComment:()=>XF,parseJSDocTypeExpressionForTests:()=>ZF,parseJsonConfigFileContent:()=>ZL,parseJsonSourceFileConfigFileContent:()=>QL,parseJsonText:()=>qF,parseListTypeOption:()=>ZI,parseNodeFactory:()=>pF,parseNodeModuleFromPath:()=>gB,parsePackageName:()=>IB,parsePseudoBigInt:()=>DT,parseValidBigInt:()=>AT,pasteEdits:()=>$7,patchWriteFileEnsuringDirectory:()=>ja,pathContainsNodeModules:()=>hB,pathIsAbsolute:()=>Ha,pathIsBareSpecifier:()=>Wa,pathIsRelative:()=>Ua,patternText:()=>ln,performIncrementalCompilation:()=>EY,performance:()=>cr,positionBelongsToNode:()=>$Q,positionIsASICandidate:()=>h0,positionIsSynthesized:()=>cT,positionsAreOnSameLine:()=>Xx,preProcessFile:()=>bie,probablyUsesSemicolons:()=>g0,processCommentPragmas:()=>oI,processPragmasIntoFields:()=>sI,processTaggedTemplateExpression:()=>HW,programContainsEsModules:()=>Rne,programContainsModules:()=>Lne,projectReferenceIsEqualTo:()=>Hf,propertyNamePart:()=>M1,pseudoBigIntToString:()=>OT,punctuationPart:()=>k1,pushIfUnique:()=>De,quote:()=>o0,quotePreferenceFromString:()=>o1,rangeContainsPosition:()=>qQ,rangeContainsPositionExclusive:()=>JQ,rangeContainsRange:()=>eS,rangeContainsRangeExclusive:()=>KQ,rangeContainsStartEnd:()=>YQ,rangeEndIsOnSameLineAsRangeStart:()=>Kx,rangeEndPositionsAreOnSameLine:()=>Wx,rangeEquals:()=>Me,rangeIsOnSingleLine:()=>Hx,rangeOfNode:()=>bT,rangeOfTypeParameters:()=>xT,rangeOverlapsWithStartEnd:()=>XQ,rangeStartIsOnSameLineAsRangeEnd:()=>Gx,rangeStartPositionsAreOnSameLine:()=>Ux,readBuilderProgram:()=>DY,readConfigFile:()=>fL,readJson:()=>Ax,readJsonConfigFile:()=>mL,readJsonOrUndefined:()=>kx,reduceEachLeadingCommentRange:()=>Ns,reduceEachTrailingCommentRange:()=>Ps,reduceLeft:()=>Ge,reduceLeftIterator:()=>h,reducePathComponents:()=>G,refactor:()=>R2,regExpEscape:()=>dw,regularExpressionFlagToCharacterCode:()=>is,relativeComplement:()=>Ce,removeAllComments:()=>HD,removeEmitHelper:()=>fO,removeExtension:()=>rT,removeFileExtension:()=>tT,removeIgnoredPath:()=>jJ,removeMinAndVersionNumbers:()=>tn,removePrefix:()=>pn,removeSuffix:()=>$t,removeTrailingDirectorySeparator:()=>_o,repeatString:()=>Z$,replaceElement:()=>Ue,replaceFirstStar:()=>DE,resolutionExtensionIsTSOrJson:()=>uT,resolveConfigFileProjectName:()=>MY,resolveJSModule:()=>tB,resolveLibrary:()=>Jz,resolveModuleName:()=>Xz,resolveModuleNameFromCache:()=>Yz,resolvePackageNameToPackageJson:()=>kz,resolvePath:()=>co,resolveProjectReferencePath:()=>Mq,resolveTripleslashReference:()=>NK,resolveTypeReferenceDirective:()=>Ez,resolvingEmptyArray:()=>yf,returnFalse:()=>St,returnNoopFileWatcher:()=>mY,returnTrue:()=>Ct,returnUndefined:()=>wt,returnsPromise:()=>_2,rewriteModuleSpecifier:()=>cW,sameFlatMap:()=>ie,sameMap:()=>ee,sameMapping:()=>dU,scanTokenAtPosition:()=>Im,scanner:()=>pQ,semanticDiagnosticsOptionDeclarations:()=>OI,serializeCompilerOptions:()=>GL,server:()=>Cje,servicesVersion:()=>due,setCommentRange:()=>eO,setConfigFileInOptions:()=>$L,setConstantValue:()=>lO,setEmitFlags:()=>UD,setGetSourceFileAsHashVersioned:()=>bY,setIdentifierAutoGenerate:()=>SO,setIdentifierGeneratedImportReference:()=>wO,setIdentifierTypeArguments:()=>bO,setInternalEmitFlags:()=>GD,setLocalizedDiagnosticMessages:()=>JS,setNodeChildren:()=>vN,setNodeFlags:()=>HT,setObjectAllocator:()=>GS,setOriginalNode:()=>LD,setParent:()=>UT,setParentRecursive:()=>WT,setPrivateIdentifier:()=>iW,setSnippetElement:()=>gO,setSourceMapRange:()=>JD,setStackTraceLimit:()=>ra,setStartsOnNewLine:()=>QD,setSyntheticLeadingComments:()=>nO,setSyntheticTrailingComments:()=>aO,setSys:()=>Na,setSysLog:()=>Ca,setTextRange:()=>Z,setTextRangeEnd:()=>zT,setTextRangePos:()=>RT,setTextRangePosEnd:()=>BT,setTextRangePosWidth:()=>VT,setTokenSourceMapRange:()=>XD,setTypeNode:()=>vO,setUILocale:()=>qt,setValueDeclaration:()=>a_,shouldAllowImportingTsExtension:()=>lV,shouldPreserveConstEnums:()=>RC,shouldRewriteModuleSpecifier:()=>d_,shouldUseUriStyleNodeCoreModules:()=>H0,showModuleSpecifier:()=>wS,signatureHasRestParameter:()=>LH,signatureToDisplayParts:()=>W1,single:()=>Ve,singleElementArray:()=>bn,singleIterator:()=>ce,singleOrMany:()=>He,singleOrUndefined:()=>Be,skipAlias:()=>uS,skipConstraint:()=>Q$,skipOuterExpressions:()=>YN,skipParentheses:()=>$_,skipPartiallyEmittedExpressions:()=>Zl,skipTrivia:()=>Cs,skipTypeChecking:()=>ST,skipTypeCheckingIgnoringNoCheck:()=>CT,skipTypeParentheses:()=>Q_,skipWhile:()=>Tn,sliceAfter:()=>_T,some:()=>F,sortAndDeduplicate:()=>be,sortAndDeduplicateDiagnostics:()=>$s,sourceFileAffectingCompilerOptions:()=>MI,sourceFileMayBeEmitted:()=>Gy,sourceMapCommentRegExp:()=>rU,sourceMapCommentRegExpDontCareLineStart:()=>nU,spacePart:()=>D1,spanMap:()=>P,startEndContainsRange:()=>tS,startEndOverlapsWithStartEnd:()=>QQ,startOnNewLine:()=>ZN,startTracing:()=>Mr,startsWith:()=>fn,startsWithDirectory:()=>Oo,startsWithUnderscore:()=>B0,startsWithUseStrict:()=>UN,stringContainsAt:()=>z0,stringToToken:()=>ns,stripQuotes:()=>Cy,supportedDeclarationExtensions:()=>Rw,supportedJSExtensionsFlat:()=>Fw,supportedLocaleDirectories:()=>Fc,supportedTSExtensionsFlat:()=>Nw,supportedTSImplementationExtensions:()=>zw,suppressLeadingAndTrailingTrivia:()=>aD,suppressLeadingTrivia:()=>oD,suppressTrailingTrivia:()=>sD,symbolEscapedNameNoDefault:()=>u1,symbolName:()=>Gc,symbolNameNoDefault:()=>l1,symbolToDisplayParts:()=>U1,sys:()=>Ma,sysLog:()=>Sa,tagNamesAreEquivalent:()=>hI,takeWhile:()=>wn,targetOptionDeclaration:()=>wI,targetToLibMap:()=>ec,testFormatSettings:()=>cne,textChangeRangeIsUnchanged:()=>xc,textChangeRangeNewSpan:()=>bc,textChanges:()=>y7,textOrKeywordPart:()=>N1,textPart:()=>P1,textRangeContainsPositionInclusive:()=>ac,textRangeContainsTextSpan:()=>cc,textRangeIntersectsWithTextSpan:()=>hc,textSpanContainsPosition:()=>ic,textSpanContainsTextRange:()=>sc,textSpanContainsTextSpan:()=>oc,textSpanEnd:()=>nc,textSpanIntersection:()=>gc,textSpanIntersectsWith:()=>fc,textSpanIntersectsWithPosition:()=>mc,textSpanIntersectsWithTextSpan:()=>dc,textSpanIsEmpty:()=>rc,textSpanOverlap:()=>uc,textSpanOverlapsWith:()=>lc,textSpansEqual:()=>v1,textToKeywordObj:()=>Ro,timestamp:()=>sr,toArray:()=>gt,toBuilderFileEmit:()=>SJ,toBuilderStateFileInfoForMultiEmit:()=>xJ,toEditorSettings:()=>W4,toFileNameLowerCase:()=>Dt,toPath:()=>go,toProgramEmitPending:()=>CJ,toSorted:()=>Ae,tokenIsIdentifierOrKeyword:()=>Io,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Lo,tokenToString:()=>ts,trace:()=>ez,tracing:()=>Ar,tracingEnabled:()=>jr,transferSourceFileChildren:()=>bN,transform:()=>Rue,transformClassFields:()=>KW,transformDeclarations:()=>DG,transformECMAScriptModule:()=>vG,transformES2015:()=>mG,transformES2016:()=>pG,transformES2017:()=>nG,transformES2018:()=>iG,transformES2019:()=>aG,transformES2020:()=>oG,transformES2021:()=>sG,transformESDecorators:()=>tG,transformESNext:()=>cG,transformGenerators:()=>hG,transformImpliedNodeFormatDependentModule:()=>yG,transformJsx:()=>fG,transformLegacyDecorators:()=>eG,transformModule:()=>gG,transformNamedEvaluation:()=>BW,transformNodes:()=>zG,transformSystemModule:()=>_G,transformTypeScript:()=>GW,transpile:()=>Wie,transpileDeclaration:()=>Bie,transpileModule:()=>zie,transpileOptionValueCompilerOptions:()=>PI,tryAddToSet:()=>se,tryAndIgnoreErrors:()=>x0,tryCast:()=>yt,tryDirectoryExists:()=>b0,tryExtractTSExtension:()=>Sx,tryFileExists:()=>y0,tryGetClassExtendingExpressionWithTypeArguments:()=>nx,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>rx,tryGetDirectories:()=>_0,tryGetExtensionFromPath:()=>pT,tryGetImportFromModuleSpecifier:()=>u_,tryGetJSDocSatisfiesTypeNode:()=>hE,tryGetModuleNameFromFile:()=>oP,tryGetModuleSpecifierFromDeclaration:()=>c_,tryGetNativePerformanceHooks:()=>or,tryGetPropertyAccessOrIdentifierToString:()=>dx,tryGetPropertyNameOfBindingOrAssignmentElement:()=>fP,tryGetSourceMappingURL:()=>oU,tryGetTextOfPropertyName:()=>xm,tryParseJson:()=>jx,tryParsePattern:()=>aT,tryParsePatterns:()=>sT,tryParseRawSourceMap:()=>lU,tryReadDirectory:()=>v0,tryReadFile:()=>hL,tryRemoveDirectoryPrefix:()=>lw,tryRemoveExtension:()=>nT,tryRemovePrefix:()=>mn,tryRemoveSuffix:()=>en,tscBuildOption:()=>zI,typeAcquisitionDeclarations:()=>HI,typeAliasNamePart:()=>F1,typeDirectiveIsEqualTo:()=>Zf,typeKeywords:()=>K$,typeParameterNamePart:()=>I1,typeToDisplayParts:()=>H1,unchangedPollThresholds:()=>da,unchangedTextChangeRange:()=>Cc,unescapeLeadingUnderscores:()=>Hc,unmangleScopedPackageName:()=>aV,unorderedRemoveItem:()=>on,unprefixedNodeCoreModules:()=>BE,unsetNodeChildren:()=>yN,unwrapInnermostStatementOfLabel:()=>wh,unwrapParenthesizedExpression:()=>IE,updateErrorForNoInputFiles:()=>gR,updateLanguageServiceSourceFile:()=>Y4,updateMissingFilePathsWatch:()=>wK,updateResolutionField:()=>dz,updateSharedExtendedConfigFileWatcher:()=>xK,updateSourceFile:()=>YF,updateWatchingWildcardDirectories:()=>TK,usesWildcardTypes:()=>SC,usingSingleLineStringWriter:()=>Bf,utf16EncodeAsString:()=>qs,validateLocaleAndSetLanguage:()=>Ic,version:()=>o,versionMajorMinor:()=>a,visitArray:()=>VH,visitCommaListElements:()=>ZH,visitEachChild:()=>QH,visitFunctionBody:()=>YH,visitIterationBody:()=>XH,visitLexicalEnvironment:()=>UH,visitNode:()=>$,visitNodes:()=>BH,visitParameterList:()=>WH,walkUpBindingElementsAndPatterns:()=>kc,walkUpOuterExpressions:()=>XN,walkUpParenthesizedExpressions:()=>X_,walkUpParenthesizedTypes:()=>Y_,walkUpParenthesizedTypesAndGetParentAndChild:()=>Z_,whitespaceOrMapCommentRegExp:()=>iU,writeCommentRange:()=>bb,writeFile:()=>Jy,writeFileEnsuringDirectories:()=>Xy,zipWith:()=>g}),e.exports=r(i);var a=`6.0`,o=`6.0.3`,s=(e=>(e[e.LessThan=-1]=`LessThan`,e[e.EqualTo=0]=`EqualTo`,e[e.GreaterThan=1]=`GreaterThan`,e))(s||{}),c=[],l=new Map;function u(e){return e===void 0?0:e.length}function d(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let r=t(e[n],n);if(r)return r}}function f(e,t){if(e!==void 0)for(let n=e.length-1;n>=0;n--){let r=t(e[n],n);if(r)return r}}function p(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let r=t(e[n],n);if(r!==void 0)return r}}function m(e,t){for(let n of e){let e=t(n);if(e!==void 0)return e}}function h(e,t,n){let r=n;if(e){let n=0;for(let i of e)r=t(r,i,n),n++}return r}function g(e,t,n){let r=[];H.assertEqual(e.length,t.length);for(let i=0;i<e.length;i++)r.push(n(e[i],t[i],i));return r}function _(e,t){if(e.length<=1)return e;let n=[];for(let r=0,i=e.length;r<i;r++)r!==0&&n.push(t),n.push(e[r]);return n}function v(e,t){if(e!==void 0){for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1}return!0}function y(e,t,n){if(e!==void 0)for(let r=n??0;r<e.length;r++){let n=e[r];if(t(n,r))return n}}function b(e,t,n){if(e!==void 0)for(let r=n??e.length-1;r>=0;r--){let n=e[r];if(t(n,r))return n}}function x(e,t,n){if(e===void 0)return-1;for(let r=n??0;r<e.length;r++)if(t(e[r],r))return r;return-1}function S(e,t,n){if(e===void 0)return-1;for(let r=n??e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}function C(e,t,n=Mt){if(e!==void 0){for(let r=0;r<e.length;r++)if(n(e[r],t))return!0}return!1}function w(e,t,n){for(let r=n??0;r<e.length;r++)if(C(t,e.charCodeAt(r)))return r;return-1}function T(e,t){let n=0;if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r];t(i,r)&&n++}return n}function E(e,t){if(e!==void 0){let n=e.length,r=0;for(;r<n&&t(e[r]);)r++;if(r<n){let i=e.slice(0,r);for(r++;r<n;){let n=e[r];t(n)&&i.push(n),r++}return i}}return e}function D(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function O(e){e.length=0}function k(e,t){let n;if(e!==void 0){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*A(e,t){for(let n of e)yield t(n)}function ee(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let r=e[n],i=t(r,n);if(r!==i){let r=e.slice(0,n);for(r.push(i),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function te(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];r&&(ht(r)?Ee(t,r):t.push(r))}return t}function ne(e,t){let n;if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);i&&(n=ht(i)?Ee(n,i):I(n,i))}return n??c}function re(e,t){let n=[];if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);i&&(ht(i)?Ee(n,i):n.push(i))}return n}function*j(e,t){for(let n of e){let e=t(n);e&&(yield*e)}}function ie(e,t){let n;if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r);(n||i!==a||ht(a))&&(n||=e.slice(0,r),ht(a)?Ee(n,a):n.push(a))}return n??e}function ae(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i===void 0)return;n.push(i)}return n}function M(e,t){let n=[];if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);i!==void 0&&n.push(i)}return n}function*N(e,t){for(let n of e){let e=t(n);e!==void 0&&(yield e)}}function oe(e,t,n){if(e.has(t))return e.get(t);let r=n();return e.set(t,r),r}function se(e,t){return!e.has(t)&&(e.add(t),!0)}function*ce(e){yield e}function P(e,t,n){let r;if(e!==void 0){r=[];let i=e.length,a,o,s=0,c=0;for(;s<i;){for(;c<i;){let n=e[c];if(o=t(n,c),c===0)a=o;else if(o!==a)break;c++}if(s<c){let t=n(e.slice(s,c),a,s,c);t&&r.push(t),s=c}a=o,c++}}return r}function le(e,t){if(e===void 0)return;let n=new Map;return e.forEach((e,r)=>{let[i,a]=t(r,e);n.set(i,a)}),n}function F(e,t){if(e!==void 0){if(t!==void 0){for(let n=0;n<e.length;n++)if(t(e[n]))return!0}else return e.length>0}return!1}function ue(e,t,n){let r;for(let i=0;i<e.length;i++)t(e[i])?r=r===void 0?i:r:r!==void 0&&(n(r,i),r=void 0);r!==void 0&&n(r,e.length)}function de(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function fe(e,t){return t}function pe(e){return e.map(fe)}function me(e,t,n){let r=pe(e);ke(e,r,n);let i=e[r[0]],a=[r[0]];for(let n=1;n<r.length;n++){let o=r[n],s=e[o];t(i,s)||(a.push(o),i=s)}return a.sort(),a.map(t=>e[t])}function he(e,t){let n=[];for(let r=0;r<e.length;r++)De(n,e[r],t);return n}function ge(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?me(e,t,n):he(e,t)}function _e(e,t){if(e.length===0)return c;let n=e[0],r=[n];for(let i=1;i<e.length;i++){let a=e[i];switch(t(a,n)){case!0:case 0:continue;case-1:return H.fail(`Array is unsorted.`)}r.push(n=a)}return r}function ve(){return[]}function ye(e,t,n,r,i){if(e.length===0)return e.push(t),!0;let a=We(e,t,Tt,n);if(a<0){if(r&&!i){let n=~a;if(n>0&&r(t,e[n-1]))return!1;if(n<e.length&&r(t,e[n]))return e.splice(n,1,t),!0}return e.splice(~a,0,t),!0}return i?(e.splice(a,0,t),!0):!1}function be(e,t,n){return _e(Ae(e,t),n??t??Ht)}function xe(e,t,n=Mt){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function Se(e){let t;if(e!==void 0)for(let n=0;n<e.length;n++){let r=e[n];(t??!r)&&(t??=e.slice(0,n),r&&t.push(r))}return t??e}function Ce(e,t,n){if(!t||!e||t.length===0||e.length===0)return t;let r=[];loopB:for(let i=0,a=0;a<t.length;a++){a>0&&H.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);loopA:for(let o=i;i<e.length;i++)switch(i>o&&H.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[a],e[i])){case-1:r.push(t[a]);continue loopB;case 0:continue loopB;case 1:continue loopA}}return r}function I(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function we(e,t){return e===void 0?t:t===void 0?e:ht(e)?ht(t)?de(e,t):I(e,t):ht(t)?I(t,e):[e,t]}function Te(e,t){return t<0?e.length+t:t}function Ee(e,t,n,r){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,r);n=n===void 0?0:Te(t,n),r=r===void 0?t.length:Te(t,r);for(let i=n;i<r&&i<t.length;i++)t[i]!==void 0&&e.push(t[i]);return e}function De(e,t,n){return!C(e,t,n)&&(e.push(t),!0)}function Oe(e,t,n){return e===void 0?[t]:(De(e,t,n),e)}function ke(e,t,n){t.sort((t,r)=>n(e[t],e[r])||It(t,r))}function Ae(e,t){return e.length===0?c:e.slice().sort(t)}function*je(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Me(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}var Ne=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=Te(e,t),t<e.length))return e[t]};function Pe(e){return e===void 0||e.length===0?void 0:e[0]}function Fe(e){if(e!==void 0)for(let t of e)return t}function Ie(e){return H.assert(e.length!==0),e[0]}function Le(e){for(let t of e)return t;H.fail(`iterator is empty`)}function Re(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function ze(e){return H.assert(e.length!==0),e[e.length-1]}function Be(e){return e!==void 0&&e.length===1?e[0]:void 0}function Ve(e){return H.checkDefined(Be(e))}function He(e){return e!==void 0&&e.length===1?e[0]:e}function Ue(e,t,n){let r=e.slice(0);return r[t]=n,r}function We(e,t,n,r,i){return L(e,n(t),n,r,i)}function L(e,t,n,r,i){if(!F(e))return-1;let a=i??0,o=e.length-1;for(;a<=o;){let i=a+(o-a>>1),s=n(e[i],i);switch(Math.sign(r(s,t))){case-1:a=i+1;break;case 0:return i;case 1:o=i-1}}return~a}function Ge(e,t,n,r,i){if(e&&e.length>0){let a=e.length;if(a>0){let o=r===void 0||r<0?0:r,s=i===void 0||o+i>a-1?a-1:o+i,c;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}var Ke=Object.prototype.hasOwnProperty;function qe(e,t){return Ke.call(e,t)}function Je(e,t){return Ke.call(e,t)?e[t]:void 0}function Ye(e){let t=[];for(let n in e)Ke.call(e,n)&&t.push(n);return t}function Xe(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let e of n)De(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ze(e){let t=[];for(let n in e)Ke.call(e,n)&&t.push(e[n]);return t}function Qe(e,t){let n=Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n}function $e(e,t){let n=[];for(let r of e)n.push(t?t(r):r);return n}function et(e,...t){for(let n of t)if(n!==void 0)for(let t in n)qe(n,t)&&(e[t]=n[t]);return e}function tt(e,t,n=Mt){if(e===t)return!0;if(!e||!t)return!1;for(let r in e)if(Ke.call(e,r)&&(!Ke.call(t,r)||!n(e[r],t[r])))return!1;for(let n in t)if(Ke.call(t,n)&&!Ke.call(e,n))return!1;return!0}function nt(e,t,n=Tt){let r=new Map;for(let i=0;i<e.length;i++){let a=e[i],o=t(a);o!==void 0&&r.set(o,n(a))}return r}function rt(e,t,n=Tt){let r=[];for(let i=0;i<e.length;i++){let a=e[i];r[t(a)]=n(a)}return r}function it(e,t,n=Tt){let r=dt();for(let i=0;i<e.length;i++){let a=e[i];r.add(t(a),n(a))}return r}function at(e,t,n=Tt){return $e(it(e,t).values(),n)}function ot(e,t){let n={};if(e!==void 0)for(let r=0;r<e.length;r++){let i=e[r],a=`${t(i)}`;(n[a]??(n[a]=[])).push(i)}return n}function st(e){let t={};for(let n in e)Ke.call(e,n)&&(t[n]=e[n]);return t}function ct(e,t){let n={};for(let e in t)Ke.call(t,e)&&(n[e]=t[e]);for(let t in e)Ke.call(e,t)&&(n[t]=e[t]);return n}function lt(e,t){for(let n in t)Ke.call(t,n)&&(e[n]=t[n])}function ut(e,t){return t?.bind(e)}function dt(){let e=new Map;return e.add=ft,e.remove=R,e}function ft(e,t){let n=this.get(e);return n===void 0?this.set(e,n=[t]):n.push(t),n}function R(e,t){let n=this.get(e);n!==void 0&&(on(n,t),n.length||this.delete(e))}function pt(e){let t=e?.slice()??[],n=0;function r(){return n===t.length}function i(...e){t.push(...e)}function a(){if(r())throw Error(`Queue is empty`);let e=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){let e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e}return{enqueue:i,dequeue:a,isEmpty:r}}function mt(e,t){let n=new Map,r=0;function*i(){for(let e of n.values())ht(e)?yield*e:yield e}let a={has(r){let i=e(r);if(!n.has(i))return!1;let a=n.get(i);return ht(a)?C(a,r,t):t(a,r)},add(i){let a=e(i);if(n.has(a)){let e=n.get(a);if(ht(e))C(e,i,t)||(e.push(i),r++);else{let o=e;t(o,i)||(n.set(a,[o,i]),r++)}}else n.set(a,i),r++;return this},delete(i){let a=e(i);if(!n.has(a))return!1;let o=n.get(a);if(ht(o)){for(let e=0;e<o.length;e++)if(t(o[e],i))return o.length===1?n.delete(a):o.length===2?n.set(a,o[1-e]):an(o,e),r--,!0}else if(t(o,i))return n.delete(a),r--,!0;return!1},clear(){n.clear(),r=0},get size(){return r},forEach(e){for(let t of $e(n.values()))if(ht(t))for(let n of t)e(n,n,a);else{let n=t;e(n,n,a)}},keys(){return i()},values(){return i()},*entries(){for(let e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return a}function ht(e){return Array.isArray(e)}function gt(e){return ht(e)?e:[e]}function _t(e){return typeof e==`string`}function vt(e){return typeof e==`number`}function yt(e,t){return e!==void 0&&t(e)?e:void 0}function bt(e,t){return e!==void 0&&t(e)?e:H.fail(`Invalid cast. The supplied value ${e} did not pass the test '${H.getFunctionName(t)}'.`)}function xt(e){}function St(){return!1}function Ct(){return!0}function wt(){}function Tt(e){return e}function Et(e){return e.toLowerCase()}var z=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function Dt(e){return z.test(e)?e.replace(z,Et):e}function Ot(){throw Error(`Not implemented`)}function kt(e){let t;return()=>(e&&=(t=e(),void 0),t)}function At(e){let t=new Map;return n=>{let r=`${typeof n}:${n}`,i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(n),t.set(r,i)),i}}var jt=(e=>(e[e.None=0]=`None`,e[e.Normal=1]=`Normal`,e[e.Aggressive=2]=`Aggressive`,e[e.VeryAggressive=3]=`VeryAggressive`,e))(jt||{});function Mt(e,t){return e===t}function Nt(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Pt(e,t){return Mt(e,t)}function Ft(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function It(e,t){return Ft(e,t)}function Lt(e,t){return It(e?.start,t?.start)||It(e?.length,t?.length)}function Rt(e,t,n){for(let r=0;r<e.length;r++)t=Math.max(t,n(e[r]));return t}function zt(e,t){return Ge(e,(e,n)=>t(e,n)===-1?e:n)}function Bt(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:+(e>t))}function Vt(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:+(e>t))}function Ht(e,t){return Ft(e,t)}function Ut(e){return e?Bt:Ht}var Wt=(()=>{return t;function e(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let r=n(e,t);return r<0?-1:+(r>0)}function t(t){let n=new Intl.Collator(t,{usage:`sort`,sensitivity:`variant`,numeric:!0}).compare;return(t,r)=>e(t,r,n)}})(),Gt,B;function Kt(){return B}function qt(e){B!==e&&(B=e,Gt=void 0)}function Jt(e,t){return Gt??=Wt(B),Gt(e,t)}function Yt(e,t,n,r){return e===t?0:e===void 0?-1:t===void 0?1:r(e[n],t[n])}function Xt(e,t){return It(+!!e,+!!t)}function Zt(e,t,n){let r=Math.max(2,Math.floor(e.length*.34)),i=Math.floor(e.length*.4)+1,a;for(let o of t){let t=n(o);if(t!==void 0&&Math.abs(t.length-e.length)<=r){if(t===e||t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;let n=V(e,t,i-.1);if(n===void 0)continue;H.assert(n<i),i=n,a=o}}return a}function V(e,t,n){let r=Array(t.length+1),i=Array(t.length+1),a=n+.01;for(let e=0;e<=t.length;e++)r[e]=e;for(let o=1;o<=e.length;o++){let s=e.charCodeAt(o-1),c=Math.ceil(o>n?o-n:1),l=Math.floor(t.length>n+o?n+o:t.length);i[0]=o;let u=o;for(let e=1;e<c;e++)i[e]=a;for(let n=c;n<=l;n++){let a=e[o-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,c=s===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,i[n-1]+1,a);i[n]=c,u=Math.min(u,c)}for(let e=l+1;e<=t.length;e++)i[e]=a;if(u>n)return;let d=r;r=i,i=d}let o=r[t.length];return o>n?void 0:o}function Qt(e,t,n){let r=e.length-t.length;return r>=0&&(n?Nt(e.slice(r),t):e.indexOf(t,r)===r)}function $t(e,t){return Qt(e,t)?e.slice(0,e.length-t.length):e}function en(e,t){return Qt(e,t)?e.slice(0,e.length-t.length):void 0}function tn(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do--n,r=e.charCodeAt(n);while(n>0&&r>=48&&r<=57);else if(n>4&&(r===110||r===78)){if(--n,r=e.charCodeAt(n),r!==105&&r!==73||(--n,r=e.charCodeAt(n),r!==109&&r!==77))break;--n,r=e.charCodeAt(n)}else break;if(r!==45&&r!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function nn(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return rn(e,n),!0;return!1}function rn(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function an(e,t){e[t]=e[e.length-1],e.pop()}function on(e,t){return sn(e,e=>e===t)}function sn(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return an(e,n),!0;return!1}function cn(e){return e?Tt:Dt}function ln({prefix:e,suffix:t}){return`${e}*${t}`}function un(e,t){return H.assert(hn(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function dn(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e[a],s=t(o);s.prefix.length>i&&hn(s,n)&&(i=s.prefix.length,r=o)}return r}function fn(e,t,n){return n?Nt(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function pn(e,t){return fn(e,t)?e.substr(t.length):e}function mn(e,t,n=Tt){return fn(n(e),n(t))?e.substring(t.length):void 0}function hn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&fn(n,e)&&Qt(n,t)}function gn(e,t){return n=>e(n)&&t(n)}function _n(...e){return(...t)=>{let n;for(let r of e)if(n=r(...t),n)return n;return n}}function vn(e){return(...t)=>!e(...t)}function yn(e){}function bn(e){return e===void 0?void 0:[e]}function xn(e,t,n,r,i,a){a??=xt;let o=0,s=0,c=e.length,l=t.length,u=!1;for(;o<c&&s<l;){let c=e[o],l=t[s],d=n(c,l);d===-1?(r(c),o++,u=!0):d===1?(i(l),s++,u=!0):(a(l,c),o++,s++)}for(;o<c;)r(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u}function Sn(e){let t=[];return Cn(e,t,void 0,0),t}function Cn(e,t,n,r){for(let i of e[r]){let a;n?(a=n.slice(),a.push(i)):a=[i],r===e.length-1?t.push(a):Cn(e,t,a,r+1)}}function wn(e,t){if(e!==void 0){let n=e.length,r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function Tn(e,t){if(e!==void 0){let n=e.length,r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function En(){return typeof process<`u`&&!!process.nextTick&&!process.browser&&jf!==void 0}var Dn=(e=>(e[e.Off=0]=`Off`,e[e.Error=1]=`Error`,e[e.Warning=2]=`Warning`,e[e.Info=3]=`Info`,e[e.Verbose=4]=`Verbose`,e))(Dn||{}),H;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(t){return e.currentLogLevel<=t}e.shouldLog=n;function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}e.log=i,(e=>{function t(e){r(1,e)}e.error=t;function n(e){r(2,e)}e.warn=n;function i(e){r(3,e)}e.log=i;function a(e){r(4,e)}e.trace=a})(i=e.log||={});let a={};function o(){return t}e.getAssertionLevel=o;function s(n){let r=t;if(t=n,n>r)for(let t of Ye(a)){let r=a[t];r!==void 0&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}}e.setAssertionLevel=s;function c(e){return t>=e}e.shouldAssert=c;function l(t,n){return c(t)?!0:(a[n]={level:t,assertion:e[n]},e[n]=xt,!1)}function u(e,t){let n=Error(e?`Debug Failure. ${e}`:`Debug Failure.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,t||u),n}e.fail=u;function d(e,t,n){return u(`${t||`Unexpected node.`}\r
|
|
55
55
|
Node ${ae(e.kind)} was unexpected.`,n||d)}e.failBadSyntaxKind=d;function f(e,t,n,r){e||(t=t?`False expression: ${t}`:`False expression.`,n&&(t+=`\r
|
|
56
56
|
Verbose Debug Information: `+(typeof n==`string`?n:n())),u(t,r||f))}e.assert=f;function p(e,t,n,r,i){e!==t&&u(`Expected ${e} === ${t}. ${n?r?`${n} ${r}`:n:``}`,i||p)}e.assertEqual=p;function m(e,t,n,r){e>=t&&u(`Expected ${e} < ${t}. ${n||``}`,r||m)}e.assertLessThan=m;function h(e,t,n){e>t&&u(`Expected ${e} <= ${t}`,n||h)}e.assertLessThanOrEqual=h;function _(e,t,n){e<t&&u(`Expected ${e} >= ${t}`,n||_)}e.assertGreaterThanOrEqual=_;function y(e,t,n){e??u(t,n||y)}e.assertIsDefined=y;function b(e,t,n){return y(e,t,n||b),e}e.checkDefined=b;function x(e,t,n){for(let r of e)y(r,t,n||x)}e.assertEachIsDefined=x;function S(e,t,n){return x(e,t,n||S),e}e.checkEachDefined=S;function C(e,t=`Illegal value:`,n){return u(`${t} ${typeof e==`object`&&qe(e,`kind`)&&qe(e,`pos`)?`SyntaxKind: `+ae(e.kind):JSON.stringify(e)}`,n||C)}e.assertNever=C;function w(e,t,n,r){l(1,`assertEachNode`)&&f(t===void 0||v(e,t),n||`Unexpected node.`,()=>`Node array did not pass test '${te(t)}'.`,r||w)}e.assertEachNode=w;function T(e,t,n,r){l(1,`assertNode`)&&f(e!==void 0&&(t===void 0||t(e)),n||`Unexpected node.`,()=>`Node ${ae(e?.kind)} did not pass test '${te(t)}'.`,r||T)}e.assertNode=T;function E(e,t,n,r){l(1,`assertNotNode`)&&f(e===void 0||t===void 0||!t(e),n||`Unexpected node.`,()=>`Node ${ae(e.kind)} should not have passed test '${te(t)}'.`,r||E)}e.assertNotNode=E;function D(e,t,n,r){l(1,`assertOptionalNode`)&&f(t===void 0||e===void 0||t(e),n||`Unexpected node.`,()=>`Node ${ae(e?.kind)} did not pass test '${te(t)}'.`,r||D)}e.assertOptionalNode=D;function O(e,t,n,r){l(1,`assertOptionalToken`)&&f(t===void 0||e===void 0||e.kind===t,n||`Unexpected node.`,()=>`Node ${ae(e?.kind)} was not a '${ae(t)}' token.`,r||O)}e.assertOptionalToken=O;function A(e,t,n){l(1,`assertMissingNode`)&&f(e===void 0,t||`Unexpected node.`,()=>`Node ${ae(e.kind)} was unexpected'.`,n||A)}e.assertMissingNode=A;function ee(e){}e.type=ee;function te(e){if(typeof e!=`function`)return``;if(qe(e,`name`))return e.name;{let t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:``}}e.getFunctionName=te;function ne(e){return`{ name: ${Hc(e.escapedName)}; flags: ${F(e.flags)}; declarations: ${k(e.declarations,e=>ae(e.kind))} }`}e.formatSymbol=ne;function re(e=0,t,n){let r=ie(t);if(e===0)return r.length>0&&r[0][0]===0?r[0][1]:`0`;if(n){let t=[],n=e;for(let[i,a]of r){if(i>e)break;i!==0&&i&e&&(t.push(a),n&=~i)}if(n===0)return t.join(`|`)}else for(let[t,n]of r)if(t===e)return n;return e.toString()}e.formatEnum=re;let j=new Map;function ie(e){let t=j.get(e);if(t)return t;let n=[];for(let t in e){let r=e[t];typeof r==`number`&&n.push([r,t])}let r=Ae(n,(e,t)=>It(e[0],t[0]));return j.set(e,r),r}function ae(e){return re(e,Pr,!1)}e.formatSyntaxKind=ae;function M(e){return re(e,Wi,!1)}e.formatSnippetKind=M;function N(e){return re(e,Ri,!1)}e.formatScriptKind=N;function oe(e){return re(e,Fr,!0)}e.formatNodeFlags=oe;function se(e){return re(e,di,!0)}e.formatNodeCheckFlags=se;function ce(e){return re(e,Ir,!0)}e.formatModifierFlags=ce;function P(e){return re(e,Ui,!0)}e.formatTransformFlags=P;function le(e){return re(e,Gi,!0)}e.formatEmitFlags=le;function F(e){return re(e,ci,!0)}e.formatSymbolFlags=F;function ue(e){return re(e,fi,!0)}e.formatTypeFlags=ue;function de(e){return re(e,bi,!0)}e.formatSignatureFlags=de;function fe(e){return re(e,pi,!0)}e.formatObjectFlags=fe;function pe(e){return re(e,Ur,!0)}e.formatFlowFlags=pe;function me(e){return re(e,Rr,!0)}e.formatRelationComparisonResult=me;function he(e){return re(e,wH,!0)}e.formatCheckMode=he;function ge(e){return re(e,TH,!0)}e.formatSignatureCheckMode=ge;function _e(e){return re(e,SH,!0)}e.formatTypeFacts=_e;let ve=!1,ye;function be(e){`__debugFlowFlags`in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){let e=this.flags&2?`FlowStart`:this.flags&4?`FlowBranchLabel`:this.flags&8?`FlowLoopLabel`:this.flags&16?`FlowAssignment`:this.flags&32?`FlowTrueCondition`:this.flags&64?`FlowFalseCondition`:this.flags&128?`FlowSwitchClause`:this.flags&256?`FlowArrayMutation`:this.flags&512?`FlowCall`:this.flags&1024?`FlowReduceLabel`:this.flags&1?`FlowUnreachable`:`UnknownFlow`,t=this.flags&-2048;return`${e}${t?` (${pe(t)})`:``}`}},__debugFlowFlags:{get(){return re(this.flags,Ur,!0)}},__debugToString:{value(){return ke(this)}}})}function xe(e){return ve&&(typeof Object.setPrototypeOf==`function`?(ye||(ye=Object.create(Object.prototype),be(ye)),Object.setPrototypeOf(e,ye)):be(e)),e}e.attachFlowNodeDebugInfo=xe;let Se;function Ce(e){`__tsDebuggerDisplay`in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(e){return e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,`]`),`NodeArray ${e}`}}})}function I(e){ve&&(typeof Object.setPrototypeOf==`function`?(Se||(Se=Object.create(Array.prototype),Ce(Se)),Object.setPrototypeOf(e,Se)):Ce(e))}e.attachNodeArrayDebugInfo=I;function we(){if(ve)return;let e=new WeakMap,t=new WeakMap;Object.defineProperties(HS.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let e=this.flags&33554432?`TransientSymbol`:`Symbol`,t=this.flags&-33554433;return`${e} '${Gc(this)}'${t?` (${F(t)})`:``}`}},__debugFlags:{get(){return F(this.flags)}}}),Object.defineProperties(HS.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let e=this.flags&402431?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:``}`:this.flags&12?`NullableType`:this.flags&3072?`LiteralType ${JSON.stringify(this.value)}`:this.flags&4096?`LiteralType ${this.value.negative?`-`:``}${this.value.base10Value}n`:this.flags&16384?`UniqueESSymbolType`:this.flags&65536?`EnumType`:this.flags&134217728?`UnionType`:this.flags&268435456?`IntersectionType`:this.flags&2097152?`IndexType`:this.flags&33554432?`IndexedAccessType`:this.flags&67108864?`ConditionalType`:this.flags&16777216?`SubstitutionType`:this.flags&524288?`TypeParameter`:this.flags&1048576?this.objectFlags&3?`InterfaceType`:this.objectFlags&4?`TypeReference`:this.objectFlags&8?`TupleType`:this.objectFlags&16?`AnonymousType`:this.objectFlags&32?`MappedType`:this.objectFlags&1024?`ReverseMappedType`:this.objectFlags&256?`EvolvingArrayType`:`ObjectType`:`Type`,t=this.flags&1048576?this.objectFlags&-142607680:0;return`${e}${this.symbol?` '${Gc(this.symbol)}'`:``}${t?` (${fe(t)})`:``}`}},__debugFlags:{get(){return ue(this.flags)}},__debugObjectFlags:{get(){return this.flags&1048576?fe(this.objectFlags):``}},__debugTypeToString:{value(){let t=e.get(this);return t===void 0&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(HS.getSignatureConstructor().prototype,{__debugFlags:{get(){return de(this.flags)}},__debugSignatureToString:{value(){return this.checker?.signatureToString(this)}}});let n=[HS.getNodeConstructor(),HS.getIdentifierConstructor(),HS.getTokenConstructor(),HS.getSourceFileConstructor()];for(let e of n)qe(e.prototype,`__debugKind`)||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${yu(this)?`GeneratedIdentifier`:X(this)?`Identifier '${Uc(this)}'`:Tk(this)?`PrivateIdentifier '${Uc(this)}'`:ck(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+`...`)}`:ok(this)?`NumericLiteral ${this.text}`:sk(this)?`BigIntLiteral ${this.text}n`:Vk(this)?`TypeParameterDeclaration`:Hk(this)?`ParameterDeclaration`:Yk(this)?`ConstructorDeclaration`:Xk(this)?`GetAccessorDeclaration`:Zk(this)?`SetAccessorDeclaration`:Qk(this)?`CallSignatureDeclaration`:$k(this)?`ConstructSignatureDeclaration`:eA(this)?`IndexSignatureDeclaration`:tA(this)?`TypePredicateNode`:nA(this)?`TypeReferenceNode`:rA(this)?`FunctionTypeNode`:iA(this)?`ConstructorTypeNode`:aA(this)?`TypeQueryNode`:oA(this)?`TypeLiteralNode`:sA(this)?`ArrayTypeNode`:cA(this)?`TupleTypeNode`:uA(this)?`OptionalTypeNode`:dA(this)?`RestTypeNode`:fA(this)?`UnionTypeNode`:pA(this)?`IntersectionTypeNode`:mA(this)?`ConditionalTypeNode`:hA(this)?`InferTypeNode`:gA(this)?`ParenthesizedTypeNode`:_A(this)?`ThisTypeNode`:vA(this)?`TypeOperatorNode`:yA(this)?`IndexedAccessTypeNode`:bA(this)?`MappedTypeNode`:xA(this)?`LiteralTypeNode`:lA(this)?`NamedTupleMember`:SA(this)?`ImportTypeNode`:ae(this.kind)}${this.flags?` (${oe(this.flags)})`:``}`}},__debugKind:{get(){return ae(this.kind)}},__debugNodeFlags:{get(){return oe(this.flags)}},__debugModifierFlags:{get(){return ce(Gb(this))}},__debugTransformFlags:{get(){return P(this.transformFlags)}},__debugIsParseTreeNode:{get(){return zc(this)}},__debugEmitFlags:{get(){return le(Fp(this))}},__debugGetText:{value(e){if(Jv(this))return``;let n=t.get(this);if(n===void 0){let r=Bc(this),i=r&&tp(r);n=i?Tp(i,r,e):``,t.set(this,n)}return n}}});ve=!0}e.enableDebugInfo=we;function Te(e){let t=e&7,n=t===0?`in out`:t===3?`[bivariant]`:t===2?`in`:t===1?`out`:t===4?`[independent]`:``;return e&8?n+=` (unmeasurable)`:e&16&&(n+=` (unreliable)`),n}e.formatVariance=Te;class Ee{__debugToString(){switch(this.kind){case 3:return this.debugInfo?.call(this)||`(function mapper)`;case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return g(this.sources,this.targets||k(this.sources,()=>`any`),(e,t)=>`${e.__debugTypeToString()} -> ${typeof t==`string`?t:t.__debugTypeToString()}`).join(`, `);case 2:return g(this.sources,this.targets,(e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`).join(`, `);case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
57
57
|
`).join(`
|