AI Engineering Workspace
PartialChat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.
Project files
read-onlyapp/public/monaco-vs/assets/editorWebWorkerMain-BzwloDwN.js
1(function(){"use strict";var ae,Ae,nt,Oe;class ya{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?lt.isErrorNoTelemetry(e)?new lt(e.message+`23`+e.stack):new Error(e.message+`45`+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const La=new ya;function ot(t){va(t)||La.onUnexpectedError(t)}function Tn(t){if(t instanceof Error){const{name:e,message:n,cause:s}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:lt.isErrorNoTelemetry(t),cause:s?Tn(s):void 0,code:t.code}}return t}const Pn="Canceled";function va(t){return t instanceof Vt?!0:t instanceof Error&&t.name===Pn&&t.message===Pn}class Vt extends Error{constructor(){super(Pn),this.name=this.message}}class lt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof lt)return e;const n=new lt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class K extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,K.prototype)}}function Na(t,e="Unreachable"){throw new Error(e)}function _a(t,e="unexpected state"){if(!t)throw typeof e=="string"?new K(`Assertion Failed: ${e}`):e}function $t(t){t()||(t(),ot(new K("Assertion Failed")))}function Dn(t,e){let n=0;for(;n<t.length-1;){const s=t[n],r=t[n+1];if(!e(s,r))return!1;n++}return!0}function Ra(t){return typeof t=="string"}function Sa(t){return!!t&&typeof t[Symbol.iterator]=="function"}var on;(function(t){function e(N){return!!N&&typeof N=="object"&&typeof N[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function s(){return n}t.empty=s;function*r(N){yield N}t.single=r;function i(N){return e(N)?N:r(N)}t.wrap=i;function a(N){return N??n}t.from=a;function*l(N){for(let v=N.length-1;v>=0;v--)yield N[v]}t.reverse=l;function u(N){return!N||N[Symbol.iterator]().next().done===!0}t.isEmpty=u;function c(N){return N[Symbol.iterator]().next().value}t.first=c;function h(N,v){let R=0;for(const P of N)if(v(P,R++))return!0;return!1}t.some=h;function m(N,v){let R=0;for(const P of N)if(!v(P,R++))return!1;return!0}t.every=m;function f(N,v){for(const R of N)if(v(R))return R}t.find=f;function*p(N,v){for(const R of N)v(R)&&(yield R)}t.filter=p;function*d(N,v){let R=0;for(const P of N)yield v(P,R++)}t.map=d;function*g(N,v){let R=0;for(const P of N)yield*v(P,R++)}t.flatMap=g;function*w(...N){for(const v of N)Sa(v)?yield*v:yield v}t.concat=w;function L(N,v,R){let P=R;for(const D of N)P=v(P,D);return P}t.reduce=L;function y(N){let v=0;for(const R of N)v++;return v}t.length=y;function*x(N,v,R=N.length){for(v<-N.length&&(v=0),v<0&&(v+=N.length),R<0?R+=N.length:R>N.length&&(R=N.length);v<R;v++)yield N[v]}t.slice=x;function _(N,v=Number.POSITIVE_INFINITY){const R=[];if(v===0)return[R,N];const P=N[Symbol.iterator]();for(let D=0;D<v;D++){const F=P.next();if(F.done)return[R,t.empty()];R.push(F.value)}return[R,{[Symbol.iterator](){return P}}]}t.consume=_;async function E(N){const v=[];for await(const R of N)v.push(R);return v}t.asyncToArray=E;async function C(N){let v=[];for await(const R of N)v=v.concat(R);return v}t.asyncToArrayFlat=C})(on||(on={}));function Q1(t,e){}function Cs(t){if(on.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(s){e.push(s)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function Ea(...t){return ut(()=>Cs(t))}class Ca{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function ut(t){return new Ca(t)}const Cn=class Cn{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Cs(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===qe.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Cn.DISABLE_DISPOSED_WARNING||console.warn(new 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}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};Cn.DISABLE_DISPOSED_WARNING=!1;let ct=Cn;const _s=class _s{constructor(){this._store=new ct,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};_s.None=Object.freeze({dispose(){}});let qe=_s;const Mt=class Mt{constructor(e){this.element=e,this.next=Mt.Undefined,this.prev=Mt.Undefined}};Mt.Undefined=new Mt(void 0);let J=Mt;class Aa{constructor(){this._first=J.Undefined,this._last=J.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===J.Undefined}clear(){let e=this._first;for(;e!==J.Undefined;){const n=e.next;e.prev=J.Undefined,e.next=J.Undefined,e=n}this._first=J.Undefined,this._last=J.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const s=new J(e);if(this._first===J.Undefined)this._first=s,this._last=s;else if(n){const i=this._last;this._last=s,s.prev=i,i.next=s}else{const i=this._first;this._first=s,s.next=i,i.prev=s}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(s))}}shift(){if(this._first!==J.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==J.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==J.Undefined&&e.next!==J.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===J.Undefined&&e.next===J.Undefined?(this._first=J.Undefined,this._last=J.Undefined):e.next===J.Undefined?(this._last=this._last.prev,this._last.next=J.Undefined):e.prev===J.Undefined&&(this._first=this._first.next,this._first.prev=J.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==J.Undefined;)yield e.element,e=e.next}}function Ma(){return globalThis._VSCODE_NLS_MESSAGES}function As(){return globalThis._VSCODE_NLS_LANGUAGE}const ka=As()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Ms(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(s,r)=>{const i=parseInt(r,10),a=e[i];let l=s;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),ka&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function I(t,e,...n){return Ms(typeof t=="number"?Ta(t,e):e,n)}function Ta(t,e){const n=Ma()?.[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}const je="en";let Fn=!1,qn=!1,In=!1,Wt,Bn=je,ks=je,Ts=je,Pa,Se;const Ge=globalThis;let ce;typeof Ge.vscode<"u"&&typeof Ge.vscode.process<"u"?ce=Ge.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(ce=process);const Da=typeof ce?.versions?.electron=="string"&&ce?.type==="renderer";if(typeof ce=="object"){Fn=ce.platform==="win32",qn=ce.platform==="darwin",In=ce.platform==="linux",In&&ce.env.SNAP&&ce.env.SNAP_REVISION,ce.env.CI||ce.env.BUILD_ARTIFACTSTAGINGDIRECTORY||ce.env.GITHUB_WORKSPACE,Wt=je,Bn=je;const t=ce.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);Wt=e.userLocale,ks=e.osLocale,Ts=e.regionalLocale??e.osLocale,Bn=e.resolvedLanguage||je,Pa=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Da?(Se=navigator.userAgent,Fn=Se.indexOf("Windows")>=0,qn=Se.indexOf("Macintosh")>=0,(Se.indexOf("Macintosh")>=0||Se.indexOf("iPad")>=0||Se.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,In=Se.indexOf("Linux")>=0,Se.indexOf("CrOS")>=0,Se?.indexOf("Mobi")>=0,Bn=As()||je,Wt=navigator.language.toLowerCase(),ks=Wt,Ts=Wt):console.error("Unable to resolve platform.");const Ut=Fn,Fa=qn,pe=Se,qa=typeof Ge.postMessage=="function"&&!Ge.importScripts;(()=>{if(qa){const t=[];Ge.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let s=0,r=t.length;s<r;s++){const i=t[s];if(i.id===n.data.vscodeScheduleAsyncWork){t.splice(s,1),i.callback();return}}});let e=0;return n=>{const s=++e;t.push({id:s,callback:n}),Ge.postMessage({vscodeScheduleAsyncWork:s},"*")}}return t=>setTimeout(t)})();const Ia=!!(pe&&pe.indexOf("Chrome")>=0);pe&&pe.indexOf("Firefox")>=0,!Ia&&pe&&pe.indexOf("Safari")>=0,pe&&pe.indexOf("Edg/")>=0,pe&&pe.indexOf("Android")>=0,pe&&pe.indexOf("Electron")>=0;let ht;const Vn=globalThis.vscode;if(typeof Vn<"u"&&typeof Vn.process<"u"){const t=Vn.process;ht={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?ht={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ht={get platform(){return Ut?"win32":Fa?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const ln=ht.cwd,Ps=ht.env,Ba=ht.platform,Va=globalThis.performance.now.bind(globalThis.performance);class un{static create(e){return new un(e)}constructor(e){this._now=e===!1?Date.now:Va,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}const $a=100,Ds=6e4;function Fs(){return!!Ps.VSCODE_DEV}var zt;(function(t){t.None=()=>qe.None;function e(A,S,M){return f(A,()=>{},0,void 0,S??!0,void 0,M)}t.defer=e;function n(A){return(S,M=null,T)=>{let k=!1,B;return B=A(z=>{if(!k)return B?B.dispose():k=!0,S.call(M,z)},null,T),k&&B.dispose(),B}}t.once=n;function s(A,S){return t.once(t.filter(A,S))}t.onceIf=s;function r(A,S,M){return h((T,k=null,B)=>A(z=>T.call(k,S(z)),null,B),M)}t.map=r;function i(A,S,M){return h((T,k=null,B)=>A(z=>{S(z),T.call(k,z)},null,B),M)}t.forEach=i;function a(A,S,M){return h((T,k=null,B)=>A(z=>S(z)&&T.call(k,z),null,B),M)}t.filter=a;function l(A){return A}t.signal=l;function u(...A){return(S,M=null,T)=>{const k=Ea(...A.map(B=>B(z=>S.call(M,z))));return m(k,T)}}t.any=u;function c(A,S,M,T){let k=M;return r(A,B=>(k=S(k,B),k),T)}t.reduce=c;function h(A,S){let M;const T={onWillAddFirstListener(){M=A(k.fire,k)},onDidRemoveLastListener(){M?.dispose()}},k=new Le(T);return S?.add(k),k.event}function m(A,S){return S instanceof Array?S.push(A):S&&S.add(A),A}function f(A,S,M=100,T=!1,k=!1,B,z){let se=qe.None,X,le,re=0,fe;const it={leakWarningThreshold:B,onWillAddFirstListener(){se=A(X1=>{re++,X=S(X,X1),T&&!le&&(Ft.fire(X),X=void 0),fe=()=>{const J1=X;X=void 0,le=void 0,(!T||re>1)&&Ft.fire(J1),re=0},typeof M=="number"?(le&&clearTimeout(le),le=setTimeout(fe,M)):le===void 0&&(le=null,queueMicrotask(fe))})},onWillRemoveListener(){k&&re>0&&fe?.()},onDidRemoveLastListener(){fe=void 0,se.dispose()}},Ft=new Le(it);return z?.add(Ft),Ft.event}t.debounce=f;function p(A,S=0,M,T){return t.debounce(A,(k,B)=>k?(k.push(B),k):[B],S,void 0,M??!0,void 0,T)}t.accumulate=p;function d(A,S,M=100,T=!0,k=!0,B,z){let se,X,le,re=0;const fe={leakWarningThreshold:B,onWillAddFirstListener(){se=A(Ft=>{re++,X=S(X,Ft),le===void 0&&(T&&(it.fire(X),X=void 0,re=0),typeof M=="number"?le=setTimeout(()=>{k&&re>0&&it.fire(X),X=void 0,le=void 0,re=0},M):(le=0,queueMicrotask(()=>{k&&re>0&&it.fire(X),X=void 0,le=void 0,re=0})))})},onDidRemoveLastListener(){se.dispose()}},it=new Le(fe);return z?.add(it),it.event}t.throttle=d;function g(A,S=(T,k)=>T===k,M){let T=!0,k;return a(A,B=>{const z=T||!S(B,k);return T=!1,k=B,z},M)}t.latch=g;function w(A,S,M){return[t.filter(A,S,M),t.filter(A,T=>!S(T),M)]}t.split=w;function L(A,S,M=!1,T=[],k){let B=T.slice(),z;Fs()&&(z={stack:cn.create(),timerId:setTimeout(()=>{B&&B.length>0&&z&&!z.warned&&(z.warned=!0,console.warn(`[Event.buffer][${S}] potential LEAK detected: ${B.length} events buffered for ${Ds/1e3}s without being consumed. Buffered here:`),z.stack.print())},Ds),warned:!1},k&&k.add(ut(()=>clearTimeout(z.timerId))));const se=()=>{z&&clearTimeout(z.timerId)};let X=A(fe=>{B?(B.push(fe),Fs()&&z&&!z.warned&&B.length>=$a&&(z.warned=!0,console.warn(`[Event.buffer][${S}] potential LEAK detected: ${B.length} events buffered without being consumed. Buffered here:`),z.stack.print())):re.fire(fe)});k&&k.add(X);const le=()=>{B?.forEach(fe=>re.fire(fe)),B=null,se()},re=new Le({onWillAddFirstListener(){X||(X=A(fe=>re.fire(fe)),k&&k.add(X))},onDidAddFirstListener(){B&&(M?setTimeout(le):le())},onDidRemoveLastListener(){X&&X.dispose(),X=null,se()}});return k&&k.add(re),re.event}t.buffer=L;function y(A,S){return(T,k,B)=>{const z=S(new _);return A(function(se){const X=z.evaluate(se);X!==x&&T.call(k,X)},void 0,B)}}t.chain=y;const x=Symbol("HaltChainable");class _{constructor(){this.steps=[]}map(S){return this.steps.push(S),this}forEach(S){return this.steps.push(M=>(S(M),M)),this}filter(S){return this.steps.push(M=>S(M)?M:x),this}reduce(S,M){let T=M;return this.steps.push(k=>(T=S(T,k),T)),this}latch(S=(M,T)=>M===T){let M=!0,T;return this.steps.push(k=>{const B=M||!S(k,T);return M=!1,T=k,B?k:x}),this}evaluate(S){for(const M of this.steps)if(S=M(S),S===x)break;return S}}function E(A,S,M=T=>T){const T=(...se)=>z.fire(M(...se)),k=()=>A.on(S,T),B=()=>A.removeListener(S,T),z=new Le({onWillAddFirstListener:k,onDidRemoveLastListener:B});return z.event}t.fromNodeEventEmitter=E;function C(A,S,M=T=>T){const T=(...se)=>z.fire(M(...se)),k=()=>A.addEventListener(S,T),B=()=>A.removeEventListener(S,T),z=new Le({onWillAddFirstListener:k,onDidRemoveLastListener:B});return z.event}t.fromDOMEventEmitter=C;function N(A,S){let M,T;const k=new Promise(B=>{T=n(A)(B),Un(T,S),M=()=>{qs(T,S)}});return k.cancel=M,S&&k.finally(()=>qs(T,S)),k}t.toPromise=N;function v(A,S){return A(M=>S.fire(M))}t.forward=v;function R(A,S,M){return S(M),A(T=>S(T))}t.runAndSubscribe=R;class P{constructor(S,M){this._observable=S,this._counter=0,this._hasChanged=!1;const T={onWillAddFirstListener:()=>{S.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{S.removeObserver(this)}};this.emitter=new Le(T),M&&M.add(this.emitter)}beginUpdate(S){this._counter++}handlePossibleChange(S){}handleChange(S,M){this._hasChanged=!0}endUpdate(S){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function D(A,S){return new P(A,S).emitter.event}t.fromObservable=D;function F(A){return(S,M,T)=>{let k=0,B=!1;const z={beginUpdate(){k++},endUpdate(){k--,k===0&&(A.reportChanges(),B&&(B=!1,S.call(M)))},handlePossibleChange(){},handleChange(){B=!0}};A.addObserver(z),A.reportChanges();const se={dispose(){A.removeObserver(z)}};return Un(se,T),se}}t.fromObservableLight=F})(zt||(zt={}));const kt=class kt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${kt._idPool++}`,kt.all.add(this)}start(e){this._stopWatch=new un,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};kt.all=new Set,kt._idPool=0;let $n=kt,Wa=-1,Ua=1;function za(){return(Ua++).toString(16).padStart(3,"0")}class Ha{constructor(e,n,s=za()){this._errorHandler=e,this.threshold=n,this.name=s,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const s=this.threshold;if(s<=0||n<s)return;this._stacks||(this._stacks=new Map);const r=e.value,i=this._stacks.get(r)||0;if(this._stacks.set(r,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=s*.5;const[a,l]=this.getMostFrequentStack(),u=/^[0-9a-f]+$/i.test(this.name)?void 0:this.name,c=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${l}):`;console.warn(c),console.warn(a);const h=l/n>.3?"dominated":"popular",m=new hn(h,c,a,n,u);this._errorHandler(m)}return()=>{const a=this._stacks.get(r)||0;a<=1?this._stacks.delete(r):this._stacks.set(r,a-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[s,r]of this._stacks)(!e||n<r)&&(e=[s,r],n=r);return e}}class cn{static create(){const e=new Error;return new cn(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`6`).slice(2).join(`7`))}}class hn extends Error{constructor(e,n,s,r,i){super(i?`[${i}] potential listener LEAK detected, ${e}`:`potential listener LEAK detected, ${e}`),this.name="ListenerLeakError",this.kind=e,this.listenerCount=r,this.details=n,this.stack=s}static is(e){return e instanceof hn||e instanceof Error&&typeof e.kind=="string"&&typeof e.listenerCount=="number"}}class Oa extends hn{constructor(e,n,s,r,i){super(e,n,s,r,i),this.name="ListenerRefusalError"}}class Wn{constructor(e){this.value=e}}const ja=2;class Le{constructor(e){this._size=0,this._options=e,this._options?.leakWarningThreshold&&(this._leakWarningThreshold=this._options?.leakWarningThreshold??Wa,this._leakWarningName=this._options?.leakWarningName,this._leakWarningErrorHandler=this._options?.onListenerError??ot),this._perfMon=this._options?._profName?new $n(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}_getLeakageMonitor(){if(!(this._leakWarningThreshold===void 0||this._leakWarningErrorHandler===void 0))return this._leakageMon??=new Ha(this._leakWarningErrorHandler,this._leakWarningThreshold,this._leakWarningName)}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,n,s)=>{if(this._leakWarningThreshold!==void 0&&this._size>this._leakWarningThreshold**2){const l=this._getLeakageMonitor();if(l){const u=`[${l.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${l.threshold})`;console.warn(u);const c=l.getMostFrequentStack()??["UNKNOWN stack",-1],h=c[1]/this._size>.3?"dominated":"popular",m=new Oa(h,`${u}. HINT: Stack shows most frequent listener (${c[1]}-times)`,c[0],this._size,this._options?.leakWarningName);return(this._options?.onListenerError||ot)(m),qe.None}}if(this._disposed)return qe.None;n&&(e=e.bind(n));const r=new Wn(e);let i;if(this._leakWarningThreshold!==void 0&&this._size>=Math.ceil(this._leakWarningThreshold*.2)){const l=this._getLeakageMonitor();l&&this._size+1>=l.threshold&&(r.stack=cn.create(),i=l.check(r.stack,this._size+1))}this._listeners?this._listeners instanceof Wn?(this._deliveryQueue??=new Ga,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=ut(()=>{i?.(),this._removeListener(r)});return Un(a,s),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,s=n.indexOf(e);if(s===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[s]=void 0;const r=this._deliveryQueue.current===this;if(this._size*ja<=n.length){let i=0;for(let a=0;a<n.length;a++)n[a]?n[i++]=n[a]:r&&i<this._deliveryQueue.end&&(this._deliveryQueue.end--,i<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=i}}_deliver(e,n){if(!e)return;const s=this._options?.onListenerError||ot;if(!s){e.value(n);return}try{e.value(n)}catch(r){s(r)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Wn)this._deliver(this._listeners,e);else{const n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class Ga{constructor(){this.i=-1,this.end=0}enqueue(e,n,s){this.i=0,this.end=s,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Un(t,e){e instanceof ct?e.add(t):Array.isArray(e)&&e.push(t)}function qs(t,e){if(e instanceof ct)e.delete(t);else if(Array.isArray(e)){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}t.dispose()}function Xa(t){return t}class Ja{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=Xa):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}var Xe;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Running=1]="Running",t[t.Completed=2]="Completed"})(Xe||(Xe={}));class zn{constructor(e){this.executor=e,this._state=Xe.Uninitialized}get value(){if(this._state===Xe.Uninitialized){this._state=Xe.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Xe.Completed}}else if(this._state===Xe.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function Qa(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ya(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}function Za(t){return t.split(/\r\n|\r|\n/)}function Ka(t){for(let e=0,n=t.length;e<n;e++){const s=t.charCodeAt(e);if(s!==32&&s!==9)return e}return-1}function eo(t,e=t.length-1){for(let n=e;n>=0;n--){const s=t.charCodeAt(n);if(s!==32&&s!==9)return n}return-1}function Is(t){return t>=65&&t<=90}function Hn(t,e){const n=Math.min(t.length,e.length);let s;for(s=0;s<n;s++)if(t.charCodeAt(s)!==e.charCodeAt(s))return s;return n}function On(t,e){const n=Math.min(t.length,e.length);let s;const r=t.length-1,i=e.length-1;for(s=0;s<n;s++)if(t.charCodeAt(r-s)!==e.charCodeAt(i-s))return s;return n}function Ie(t){return 55296<=t&&t<=56319}function mn(t){return 56320<=t&&t<=57343}function Bs(t,e){return(t-55296<<10)+(e-56320)+65536}function to(t,e,n){const s=t.charCodeAt(n);if(Ie(s)&&n+1<e){const r=t.charCodeAt(n+1);if(mn(r))return Bs(s,r)}return s}const no=/^[\t\n\r\x20-\x7E]*$/;function so(t){return no.test(t)}const Ce=class Ce{static getInstance(e){return Ce.cache.get(Array.from(e).join(","))}static getLocales(){return Ce._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ce.ambiguousCharacterData=new zn(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),Ce.cache=new Ja(e=>{const n=e.split(",");function s(m){const f=new Map;for(let p=0;p<m.length;p+=2)f.set(m[p],m[p+1]);return f}function r(m,f){const p=new Map(m);for(const[d,g]of f)p.set(d,g);return p}function i(m,f){if(!m)return f;const p=new Map;for(const[d,g]of m)f.has(d)&&p.set(d,g);return p}const a=Ce.ambiguousCharacterData.value;let l=n.filter(m=>!m.startsWith("_")&&Object.hasOwn(a,m));l.length===0&&(l=["_default"]);let u;for(const m of l){const f=s(a[m]);u=i(u,f)}const c=s(a._common),h=r(c,u);return new Ce(h)}),Ce._locales=new zn(()=>Object.keys(Ce.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let Ht=Ce;const Tt=class Tt{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(Tt.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return Tt.getData().has(e)}static get codePoints(){return Tt.getData()}};Tt._data=void 0;let Ot=Tt;const jn="default",ro="$initialize";class io{constructor(e,n,s,r,i){this.vsWorker=e,this.req=n,this.channel=s,this.method=r,this.args=i,this.type=0}}class Vs{constructor(e,n,s,r){this.vsWorker=e,this.seq=n,this.res=s,this.err=r,this.type=1}}class ao{constructor(e,n,s,r,i){this.vsWorker=e,this.req=n,this.channel=s,this.eventName=r,this.arg=i,this.type=2}}class oo{constructor(e,n,s){this.vsWorker=e,this.req=n,this.event=s,this.type=3}}class lo{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class uo{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,n,s){const r=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[r]={resolve:i,reject:a},this._send(new io(this._workerId,r,e,n,s))})}listen(e,n,s){let r=null;const i=new Le({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new ao(this._workerId,r,e,n,s))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new lo(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,n){const s={get:(r,i)=>(typeof i=="string"&&!r[i]&&(Ws(i)?r[i]=a=>this.listen(e,i,a):$s(i)?r[i]=this.listen(e,i,void 0):i.charCodeAt(0)===36&&(r[i]=async(...a)=>(await n?.(),this.sendMessage(e,i,a)))),r[i])};return new Proxy(Object.create(null),s)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let s=e.err;if(e.err.$isError){const r=new Error;r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack,s=r}n.reject(s);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(r=>{this._send(new Vs(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=Tn(r.detail)),this._send(new Vs(this._workerId,n,void 0,Tn(r)))})}_handleSubscribeEventMessage(e){const n=e.req,s=this._handler.handleEvent(e.channel,e.eventName,e.arg)(r=>{this._send(new oo(this._workerId,n,r))});this._pendingEvents.set(n,s)}_handleEventMessage(e){const n=this._pendingEmitters.get(e.req);if(n===void 0){console.warn("Got event for unknown req");return}n.fire(e.event)}_handleUnsubscribeEventMessage(e){const n=this._pendingEvents.get(e.req);if(n===void 0){console.warn("Got unsubscribe for unknown req");return}n.dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let s=0;s<e.args.length;s++){const r=e.args[s];r instanceof ArrayBuffer&&n.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function $s(t){return t[0]==="o"&&t[1]==="n"&&Is(t.charCodeAt(2))}function Ws(t){return/^onDynamic/.test(t)&&Is(t.charCodeAt(9))}class co{constructor(e,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new uo({sendMessage:(s,r)=>{e(s,r)},handleMessage:(s,r,i)=>this._handleMessage(s,r,i),handleEvent:(s,r,i)=>this._handleEvent(s,r,i)}),this.requestHandler=n(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n,s){if(e===jn&&n===ro)return this.initialize(s[0]);const r=e===jn?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));const i=r[n];if(typeof i!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${e}`));try{return Promise.resolve(i.apply(r,s))}catch(a){return Promise.reject(a)}}_handleEvent(e,n,s){const r=e===jn?this.requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(Ws(n)){const i=r[n];if(typeof i!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);const a=i.call(r,s);if(typeof a!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return a}if($s(n)){const i=r[n];if(typeof i!="function")throw new Error(`Missing event ${n} on request handler.`);return i}throw new Error(`Malformed event name ${n}`)}getChannel(e){let n=this._remoteChannels.get(e);return n===void 0&&(n=this._protocol.createProxyToRemoteChannel(e),this._remoteChannels.set(e,n)),n}async initialize(e){this._protocol.setWorkerId(e)}}let Gn=!1;function ho(t){if(Gn)throw new Error("WebWorker already initialized!");Gn=!0;const e=new co(n=>globalThis.postMessage(n),n=>t(n));return globalThis.onmessage=n=>{e.onmessage(n.data)},e}function mo(t){globalThis.onmessage=e=>{Gn||ho(t)}}class Be{constructor(e,n,s,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=s,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new zn(()=>new Uint8Array(256));function Us(t,e){return(e<<5)-e+t|0}function fo(t,e){e=Us(149417,e);for(let n=0,s=t.length;n<s;n++)e=Us(t.charCodeAt(n),e);return e}class zs{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let s=0,r=e.length;s<r;s++)n[s]=e.charCodeAt(s);return n}}class Hs{constructor(e){let n=0;for(let r=0;r<e.length;){const i=e.charCodeAt(r);r+=Ie(i)&&r+1<e.length&&mn(e.charCodeAt(r+1))?2:1,n++}this.elements=new Int32Array(n),this.offsets=new Int32Array(n+1);let s=0;for(let r=0;r<e.length;s++){this.offsets[s]=r;const i=e.charCodeAt(r);if(Ie(i)&&r+1<e.length){const a=e.charCodeAt(r+1);if(mn(a)){this.elements[s]=Bs(i,a),r+=2;continue}}this.elements[s]=i,r++}this.offsets[n]=e.length}getElements(){return this.elements}getOffset(e){return this.offsets[e]}}function go(t,e,n){if(!Os(t)&&!Os(e))return new Me(new zs(t),new zs(e)).ComputeDiff(n).changes;const s=new Hs(t),r=new Hs(e);return new Me(s,r).ComputeDiff(n).changes.map(i=>{const a=s.getOffset(i.originalStart),l=s.getOffset(i.originalStart+i.originalLength),u=r.getOffset(i.modifiedStart),c=r.getOffset(i.modifiedStart+i.modifiedLength);return{originalStart:a,originalLength:l-a,modifiedStart:u,modifiedLength:c-u}})}function Os(t){for(let e=0;e+1<t.length;e++)if(Ie(t.charCodeAt(e))&&mn(t.charCodeAt(e+1)))return!0;return!1}class mt{static Assert(e,n){if(!e)throw new Error(n)}}class ft{static Copy(e,n,s,r,i){for(let a=0;a<i;a++)s[r+a]=e[n+a]}static Copy2(e,n,s,r,i){for(let a=0;a<i;a++)s[r+a]=e[n+a]}}class js{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Be(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Me{constructor(e,n,s=null){this.ContinueProcessingPredicate=s,this._originalSequence=e,this._modifiedSequence=n;const[r,i,a]=Me._getElements(e),[l,u,c]=Me._getElements(n);this._hasStrings=a&&c,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(Me._isStringArray(n)){const s=new Int32Array(n.length);for(let r=0,i=n.length;r<i;r++)s[r]=fo(n[r],0);return[n,s,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;const s=Me._getStrictElement(this._originalSequence,e),r=Me._getStrictElement(this._modifiedSequence,n);return s===r}static _getStrictElement(e,n){return typeof e.getStrictElement=="function"?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[n]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,s,r,i){const a=[!1];let l=this.ComputeDiffRecursive(e,n,s,r,a);return i&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(e,n,s,r,i){for(i[0]=!1;e<=n&&s<=r&&this.ElementsAreEqual(e,s);)e++,s++;for(;n>=e&&r>=s&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||s>r){let m;return s<=r?(mt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),m=[new Be(e,0,s,r-s+1)]):e<=n?(mt.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),m=[new Be(e,n-e+1,s,0)]):(mt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),mt.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),m=[]),m}const a=[0],l=[0],u=this.ComputeRecursionPoint(e,n,s,r,a,l,i),c=a[0],h=l[0];if(u!==null)return u;if(!i[0]){const m=this.ComputeDiffRecursive(e,c,s,h,i);let f=[];return i[0]?f=[new Be(c+1,n-(c+1)+1,h+1,r-(h+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,h+1,r,i),this.ConcatenateChanges(m,f)}return[new Be(e,n-e+1,s,r-s+1)]}WALKTRACE(e,n,s,r,i,a,l,u,c,h,m,f,p,d,g,w,L,y){let x=null,_=null,E=new js,C=n,N=s,v=p[0]-w[0]-r,R=-1073741824,P=this.m_forwardHistory.length-1;do{const D=v+e;D===C||D<N&&c[D-1]<c[D+1]?(m=c[D+1],d=m-v-r,m<R&&E.MarkNextChange(),R=m,E.AddModifiedElement(m+1,d),v=D+1-e):(m=c[D-1]+1,d=m-v-r,m<R&&E.MarkNextChange(),R=m-1,E.AddOriginalElement(m,d+1),v=D-1-e),P>=0&&(c=this.m_forwardHistory[P],e=c[0],C=1,N=c.length-1)}while(--P>=-1);if(x=E.getReverseChanges(),y[0]){let D=p[0]+1,F=w[0]+1;if(x!==null&&x.length>0){const A=x[x.length-1];D=Math.max(D,A.getOriginalEnd()),F=Math.max(F,A.getModifiedEnd())}_=[new Be(D,f-D+1,F,g-F+1)]}else{E=new js,C=a,N=l,v=p[0]-w[0]-u,R=1073741824,P=L?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const D=v+i;D===C||D<N&&h[D-1]>=h[D+1]?(m=h[D+1]-1,d=m-v-u,m>R&&E.MarkNextChange(),R=m+1,E.AddOriginalElement(m+1,d+1),v=D+1-i):(m=h[D-1],d=m-v-u,m>R&&E.MarkNextChange(),R=m,E.AddModifiedElement(m+1,d+1),v=D-1-i),P>=0&&(h=this.m_reverseHistory[P],i=h[0],C=1,N=h.length-1)}while(--P>=-1);_=E.getChanges()}return this.ConcatenateChanges(x,_)}ComputeRecursionPoint(e,n,s,r,i,a,l){let u=0,c=0,h=0,m=0,f=0,p=0;e--,s--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const d=n-e+(r-s),g=d+1,w=new Int32Array(g),L=new Int32Array(g),y=r-s,x=n-e,_=e-s,E=n-r,N=(x-y)%2===0;w[y]=e,L[x]=n,l[0]=!1;for(let v=1;v<=d/2+1;v++){let R=0,P=0;h=this.ClipDiagonalBound(y-v,v,y,g),m=this.ClipDiagonalBound(y+v,v,y,g);for(let F=h;F<=m;F+=2){F===h||F<m&&w[F-1]<w[F+1]?u=w[F+1]:u=w[F-1]+1,c=u-(F-y)-_;const A=u;for(;u<n&&c<r&&this.ElementsAreEqual(u+1,c+1);)u++,c++;if(w[F]=u,u+c>R+P&&(R=u,P=c),!N&&Math.abs(F-x)<=v-1&&u>=L[F])return i[0]=u,a[0]=c,A<=L[F]&&v<=1448?this.WALKTRACE(y,h,m,_,x,f,p,E,w,L,u,n,i,c,r,a,N,l):null}const D=(R-e+(P-s)-v)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(R,D))return l[0]=!0,i[0]=R,a[0]=P,D>0&&v<=1448?this.WALKTRACE(y,h,m,_,x,f,p,E,w,L,u,n,i,c,r,a,N,l):(e++,s++,[new Be(e,n-e+1,s,r-s+1)]);f=this.ClipDiagonalBound(x-v,v,x,g),p=this.ClipDiagonalBound(x+v,v,x,g);for(let F=f;F<=p;F+=2){F===f||F<p&&L[F-1]>=L[F+1]?u=L[F+1]-1:u=L[F-1],c=u-(F-x)-E;const A=u;for(;u>e&&c>s&&this.ElementsAreEqual(u,c);)u--,c--;if(L[F]=u,N&&Math.abs(F-y)<=v&&u<=w[F])return i[0]=u,a[0]=c,A>=w[F]&&v<=1448?this.WALKTRACE(y,h,m,_,x,f,p,E,w,L,u,n,i,c,r,a,N,l):null}if(v<=1447){let F=new Int32Array(m-h+2);F[0]=y-h+1,ft.Copy2(w,h,F,1,m-h+1),this.m_forwardHistory.push(F),F=new Int32Array(p-f+2),F[0]=x-f+1,ft.Copy2(L,f,F,1,p-f+1),this.m_reverseHistory.push(F)}}return this.WALKTRACE(y,h,m,_,x,f,p,E,w,L,u,n,i,c,r,a,N,l)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const s=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,i=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=s.originalLength>0,l=s.modifiedLength>0;for(;s.originalStart+s.originalLength<r&&s.modifiedStart+s.modifiedLength<i&&(!a||this.OriginalElementsAreEqual(s.originalStart,s.originalStart+s.originalLength))&&(!l||this.ModifiedElementsAreEqual(s.modifiedStart,s.modifiedStart+s.modifiedLength));){const c=this.ElementsAreStrictEqual(s.originalStart,s.modifiedStart);if(this.ElementsAreStrictEqual(s.originalStart+s.originalLength,s.modifiedStart+s.modifiedLength)&&!c)break;s.originalStart++,s.modifiedStart++}const u=[null];if(n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],u)){e[n]=u[0],e.splice(n+1,1),n--;continue}}for(let n=e.length-1;n>=0;n--){const s=e[n];let r=0,i=0;if(n>0){const m=e[n-1];r=m.originalStart+m.originalLength,i=m.modifiedStart+m.modifiedLength}const a=s.originalLength>0,l=s.modifiedLength>0;let u=0,c=this._boundaryScore(s.originalStart,s.originalLength,s.modifiedStart,s.modifiedLength);for(let m=1;;m++){const f=s.originalStart-m,p=s.modifiedStart-m;if(f<r||p<i||a&&!this.OriginalElementsAreEqual(f,f+s.originalLength)||l&&!this.ModifiedElementsAreEqual(p,p+s.modifiedLength))break;const g=(f===r&&p===i?5:0)+this._boundaryScore(f,s.originalLength,p,s.modifiedLength);g>c&&(c=g,u=m)}s.originalStart-=u,s.modifiedStart-=u;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,s=e.length;n<s;n++){const r=e[n-1],i=e[n],a=i.originalStart-r.originalStart-r.originalLength,l=r.originalStart,u=i.originalStart+i.originalLength,c=u-l,h=r.modifiedStart,m=i.modifiedStart+i.modifiedLength,f=m-h;if(a<5&&c<20&&f<20){const p=this._findBetterContiguousSequence(l,c,h,f,a);if(p){const[d,g]=p;(d!==r.originalStart+r.originalLength||g!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=d-r.originalStart,r.modifiedLength=g-r.modifiedStart,i.originalStart=d+a,i.modifiedStart=g+a,i.originalLength=u-i.originalStart,i.modifiedLength=m-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,s,r,i){if(n<i||r<i)return null;const a=e+n-i+1,l=s+r-i+1;let u=0,c=0,h=0;for(let m=e;m<a;m++)for(let f=s;f<l;f++){const p=this._contiguousSequenceScore(m,f,i);p>0&&p>u&&(u=p,c=m,h=f)}return u>0?[c,h]:null}_contiguousSequenceScore(e,n,s){let r=0;for(let i=0;i<s;i++){if(!this.ElementsAreEqual(e+i,n+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const s=e+n;if(this._OriginalIsBoundary(s-1)||this._OriginalIsBoundary(s))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const s=e+n;if(this._ModifiedIsBoundary(s-1)||this._ModifiedIsBoundary(s))return!0}return!1}_boundaryScore(e,n,s,r){const i=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(s,r)?1:0;return i+a}ConcatenateChanges(e,n){const s=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],s)){const r=new Array(e.length+n.length-1);return ft.Copy(e,0,r,0,e.length-1),r[e.length-1]=s[0],ft.Copy(n,1,r,e.length,n.length-1),r}else{const r=new Array(e.length+n.length);return ft.Copy(e,0,r,0,e.length),ft.Copy(n,0,r,e.length,n.length),r}}ChangesOverlap(e,n,s){if(mt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),mt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let i=e.originalLength;const a=e.modifiedStart;let l=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-e.modifiedStart),s[0]=new Be(r,i,a,l),!0}else return s[0]=null,!1}ClipDiagonalBound(e,n,s,r){if(e>=0&&e<r)return e;const i=s,a=r-s-1,l=n%2===0;if(e<0){const u=i%2===0;return l===u?0:1}else{const u=a%2===0;return l===u?r-1:r-2}}}let H=class at{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new at(e,n)}delta(e=0,n=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+n))}equals(e){return at.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return at.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<n.column}isBeforeOrEqual(e){return at.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<=n.column}static compare(e,n){const s=e.lineNumber|0,r=n.lineNumber|0;if(s===r){const i=e.column|0,a=n.column|0;return i-a}return s-r}clone(){return new at(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new at(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},V=class ee{constructor(e,n,s,r){e>s||e===s&&n>r?(this.startLineNumber=s,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=s,this.endColumn=r)}isEmpty(){return ee.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ee.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return ee.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return ee.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return ee.plusRange(this,e)}static plusRange(e,n){let s,r,i,a;return n.startLineNumber<e.startLineNumber?(s=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(s=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(s=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(i=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(i=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(i=e.endLineNumber,a=e.endColumn),new ee(s,r,i,a)}intersectRanges(e){return ee.intersectRanges(this,e)}static intersectRanges(e,n){let s=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,a=e.endColumn;const l=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,h=n.endColumn;return s<l?(s=l,r=u):s===l&&(r=Math.max(r,u)),i>c?(i=c,a=h):i===c&&(a=Math.min(a,h)),s>i||s===i&&r>a?null:new ee(s,r,i,a)}equalsRange(e){return ee.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return ee.getEndPosition(this)}static getEndPosition(e){return new H(e.endLineNumber,e.endColumn)}getStartPosition(){return ee.getStartPosition(this)}static getStartPosition(e){return new H(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new ee(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new ee(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ee.collapseToStart(this)}static collapseToStart(e){return new ee(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return ee.collapseToEnd(this)}static collapseToEnd(e){return new ee(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new ee(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,n=e){return new ee(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new ee(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static areOnlyIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber-1||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn-1||n.endLineNumber<e.startLineNumber-1||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,n){if(e&&n){const i=e.startLineNumber|0,a=n.startLineNumber|0;if(i===a){const l=e.startColumn|0,u=n.startColumn|0;if(l===u){const c=e.endLineNumber|0,h=n.endLineNumber|0;if(c===h){const m=e.endColumn|0,f=n.endColumn|0;return m-f}return c-h}return l-u}return i-a}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function Gs(t){return t<0?0:t>255?255:t|0}function gt(t){return t<0?0:t>4294967295?4294967295:t|0}class Xn{constructor(e){const n=Gs(e);this._defaultValue=n,this._asciiMap=Xn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const s=Gs(n);e>=0&&e<256?this._asciiMap[e]=s:this._map.set(e,s)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class po{constructor(e,n,s){const r=new Uint8Array(e*n);for(let i=0,a=e*n;i<a;i++)r[i]=s;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,s){this._data[e*this.cols+n]=s}}class bo{constructor(e){let n=0,s=0;for(let i=0,a=e.length;i<a;i++){const[l,u,c]=e[i];u>n&&(n=u),l>s&&(s=l),c>s&&(s=c)}n++,s++;const r=new po(s,n,0);for(let i=0,a=e.length;i<a;i++){const[l,u,c]=e[i];r.set(l,u,c)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let Jn=null;function wo(){return Jn===null&&(Jn=new bo([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Jn}let jt=null;function xo(){if(jt===null){jt=new Xn(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;n<t.length;n++)jt.set(t.charCodeAt(n),1);const e=".,;:";for(let n=0;n<e.length;n++)jt.set(e.charCodeAt(n),2)}return jt}class fn{static _createLink(e,n,s,r,i){let a=i-1;do{const l=n.charCodeAt(a);if(e.get(l)!==2)break;a--}while(a>r);if(r>0){const l=n.charCodeAt(r-1),u=n.charCodeAt(a);(l===40&&u===41||l===91&&u===93||l===123&&u===125)&&a--}return{range:{startLineNumber:s,startColumn:r+1,endLineNumber:s,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=wo()){const s=xo(),r=[];for(let i=1,a=e.getLineCount();i<=a;i++){const l=e.getLineContent(i),u=l.length;let c=0,h=0,m=0,f=1,p=!1,d=!1,g=!1,w=!1;for(;c<u;){let L=!1;const y=l.charCodeAt(c);if(f===13){let x;switch(y){case 40:p=!0,x=0;break;case 41:x=p?0:1;break;case 91:g=!0,d=!0,x=0;break;case 93:g=!1,x=d?0:1;break;case 123:w=!0,x=0;break;case 125:x=w?0:1;break;case 39:case 34:case 96:m===y?x=1:m===39||m===34||m===96?x=0:x=1;break;case 42:x=m===42?1:0;break;case 32:x=g?0:1;break;default:x=s.get(y)}x===1&&(r.push(fn._createLink(s,l,i,h,c)),L=!0)}else if(f===12){let x;y===91?(d=!0,x=0):x=s.get(y),x===1?L=!0:f=13}else f=n.nextState(f,y),f===0&&(L=!0);L&&(f=1,p=!1,d=!1,w=!1,h=c+1,m=y),c++}f===13&&r.push(fn._createLink(s,l,i,h,u))}return r}}function yo(t){return!t||typeof t.getLineCount!="function"||typeof t.getLineContent!="function"?[]:fn.computeLinks(t)}const An=class An{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,s,r,i){if(e&&n){const a=this.doNavigateValueSet(n,i);if(a)return{range:e,value:a}}if(s&&r){const a=this.doNavigateValueSet(r,i);if(a)return{range:s,value:a}}return null}doNavigateValueSet(e,n){const s=this.numberReplace(e,n);return s!==null?s:this.textReplace(e,n)}numberReplace(e,n){const s=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return!isNaN(r)&&!isNaN(i)&&r===i?r===0&&!n?null:(r=Math.floor(r*s),r+=n?s:-s,String(r/s)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,s){let r=null;for(let i=0,a=e.length;r===null&&i<a;i++)r=this.valueSetReplace(e[i],n,s);return r}valueSetReplace(e,n,s){let r=e.indexOf(n);return r>=0?(r+=s?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};An.INSTANCE=new An;let Qn=An;const Xs=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var gn;(function(t){function e(i){return i===t.None||i===t.Cancelled||i instanceof Gt?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:zt.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Xs});function n(i){if(i.isCancellationRequested)throw new Vt}t.throwIfCanceled=n;function s(i,a){if(i.some(h=>h.isCancellationRequested))return t.Cancelled;const l=[...new Set(i.filter(h=>h!==t.None))];if(l.length<2)return l[0]??t.None;const u=new Js;a.add(ut(()=>{u.token.isCancellationRequested||u.dispose()}));const c=a.add(new ct);for(const h of l)c.add(h.onCancellationRequested(()=>{c.dispose(),u.cancel()}));return u.token}t.any=s;function r(i,a){if(i.aborted)return t.Cancelled;const l=a.add(new Gt);return a.add(zt.once(zt.fromDOMEventEmitter(i,"abort"))(()=>l.cancel())),l}t.fromAbortSignal=r,t.toAbortSignal=(i,a)=>{if(i===t.None)return new AbortController().signal;if(i.isCancellationRequested)return AbortSignal.abort(new Vt);const l=new AbortController;return a.add(i.onCancellationRequested(()=>l.abort(new Vt))),l.signal}})(gn||(gn={}));class Gt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Xs:(this._emitter||(this._emitter=new Le),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Js{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Gt),this._token}cancel(){this._token?this._token instanceof Gt&&this._token.cancel():this._token=gn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Gt&&this._token.dispose():this._token=gn.None}}class Yn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const dn=new Yn,Zn=new Yn,Kn=new Yn,Lo=new Array(230),vo=Object.create(null),No=Object.create(null);(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Del",46,"VK_DELETE","Delete",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],s=[];for(const r of e){const[i,a,l,u,c,h,m,f,p]=r;if(s[a]||(s[a]=!0,vo[l]=a,No[l.toLowerCase()]=a),!n[u]){if(n[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${l}`);dn.define(u,c),Zn.define(u,f||c),Kn.define(u,p||f||c)}h&&(Lo[h]=u)}})();var Qs;(function(t){function e(l){return dn.keyCodeToStr(l)}t.toString=e;function n(l){return dn.strToKeyCode(l)}t.fromString=n;function s(l){return Zn.keyCodeToStr(l)}t.toUserSettingsUS=s;function r(l){return Kn.keyCodeToStr(l)}t.toUserSettingsGeneral=r;function i(l){return Zn.strToKeyCode(l)||Kn.strToKeyCode(l)}t.fromUserSettings=i;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right";case 20:return"Delete"}return dn.keyCodeToStr(l)}t.toElectronAccelerator=a})(Qs||(Qs={}));function _o(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}const Ro=65,So=97,Eo=90,Co=122,Je=46,ne=47,he=92,ke=58,Ao=63;class Ys extends Error{constructor(e,n,s){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const i=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${i} ${r} of type ${n}`;a+=`. Received type ${typeof s}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Mo(t,e){if(t===null||typeof t!="object")throw new Ys(e,"Object",t)}function Z(t,e){if(typeof t!="string")throw new Ys(e,"string",t)}const Te=Ba==="win32";function U(t){return t===ne||t===he}function es(t){return t===ne}function Pe(t){return t>=Ro&&t<=Eo||t>=So&&t<=Co}function pn(t,e,n,s){let r="",i=0,a=-1,l=0,u=0;for(let c=0;c<=t.length;++c){if(c<t.length)u=t.charCodeAt(c);else{if(s(u))break;u=ne}if(s(u)){if(!(a===c-1||l===1))if(l===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==Je||r.charCodeAt(r.length-2)!==Je){if(r.length>2){const h=r.lastIndexOf(n);h===-1?(r="",i=0):(r=r.slice(0,h),i=r.length-1-r.lastIndexOf(n)),a=c,l=0;continue}else if(r.length!==0){r="",i=0,a=c,l=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",i=2)}else r.length>0?r+=`${n}${t.slice(a+1,c)}`:r=t.slice(a+1,c),i=c-a-1;a=c,l=0}else u===Je&&l!==-1?++l:l=-1}return r}function ko(t){return t?`${t[0]==="."?"":"."}${t}`:""}function Zs(t,e){Mo(e,"pathObject");const n=e.dir||e.root,s=e.base||`${e.name||""}${ko(e.ext)}`;return n?n===e.root?`${n}${s}`:`${n}${t}${s}`:s}const ie={resolve(...t){let e="",n="",s=!1;for(let r=t.length-1;r>=-1;r--){let i;if(r>=0){if(i=t[r],Z(i,`paths[${r}]`),i.length===0)continue}else e.length===0?i=ln():(i=Ps[`=${e}`]||ln(),(i===void 0||i.slice(0,2).toLowerCase()!==e.toLowerCase()&&i.charCodeAt(2)===he)&&(i=`${e}\\`));const a=i.length;let l=0,u="",c=!1;const h=i.charCodeAt(0);if(a===1)U(h)&&(l=1,c=!0);else if(U(h))if(c=!0,U(i.charCodeAt(1))){let m=2,f=m;for(;m<a&&!U(i.charCodeAt(m));)m++;if(m<a&&m!==f){const p=i.slice(f,m);for(f=m;m<a&&U(i.charCodeAt(m));)m++;if(m<a&&m!==f){for(f=m;m<a&&!U(i.charCodeAt(m));)m++;(m===a||m!==f)&&(u=`\\\\${p}\\${i.slice(f,m)}`,l=m)}}}else l=1;else Pe(h)&&i.charCodeAt(1)===ke&&(u=i.slice(0,2),l=2,a>2&&U(i.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(e.length>0){if(u.toLowerCase()!==e.toLowerCase())continue}else e=u;if(s){if(e.length>0)break}else if(n=`${i.slice(l)}\\${n}`,s=c,c&&e.length>0)break}return n=pn(n,!s,"\\",U),s?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){Z(t,"path");const e=t.length;if(e===0)return".";let n=0,s,r=!1;const i=t.charCodeAt(0);if(e===1)return es(i)?"\\":t;if(U(i))if(r=!0,U(t.charCodeAt(1))){let l=2,u=l;for(;l<e&&!U(t.charCodeAt(l));)l++;if(l<e&&l!==u){const c=t.slice(u,l);for(u=l;l<e&&U(t.charCodeAt(l));)l++;if(l<e&&l!==u){for(u=l;l<e&&!U(t.charCodeAt(l));)l++;if(l===e)return`\\\\${c}\\${t.slice(u)}\\`;l!==u&&(s=`\\\\${c}\\${t.slice(u,l)}`,n=l)}}}else n=1;else Pe(i)&&t.charCodeAt(1)===ke&&(s=t.slice(0,2),n=2,e>2&&U(t.charCodeAt(2))&&(r=!0,n=3));let a=n<e?pn(t.slice(n),!r,"\\",U):"";if(a.length===0&&!r&&(a="."),a.length>0&&U(t.charCodeAt(e-1))&&(a+="\\"),!r&&s===void 0&&t.includes(":")){if(a.length>=2&&Pe(a.charCodeAt(0))&&a.charCodeAt(1)===ke)return`.\\${a}`;let l=t.indexOf(":");do if(l===e-1||U(t.charCodeAt(l+1)))return`.\\${a}`;while((l=t.indexOf(":",l+1))!==-1)}return s===void 0?r?`\\${a}`:a:r?`${s}\\${a}`:`${s}${a}`},isAbsolute(t){Z(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return U(n)||e>2&&Pe(n)&&t.charCodeAt(1)===ke&&U(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let i=0;i<t.length;++i){const a=t[i];Z(a,"path"),a.length>0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let s=!0,r=0;if(typeof n=="string"&&U(n.charCodeAt(0))){++r;const i=n.length;i>1&&U(n.charCodeAt(1))&&(++r,i>2&&(U(n.charCodeAt(2))?++r:s=!1))}if(s){for(;r<e.length&&U(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return ie.normalize(e)},relative(t,e){if(Z(t,"from"),Z(e,"to"),t===e)return"";const n=ie.resolve(t),s=ie.resolve(e);if(n===s||(t=n.toLowerCase(),e=s.toLowerCase(),t===e))return"";if(n.length!==t.length||s.length!==e.length){const d=n.split("\\"),g=s.split("\\");d[d.length-1]===""&&d.pop(),g[g.length-1]===""&&g.pop();const w=d.length,L=g.length,y=w<L?w:L;let x;for(x=0;x<y&&d[x].toLowerCase()===g[x].toLowerCase();x++);return x===0?s:x===y?L>y?g.slice(x).join("\\"):w>y?"..\\".repeat(w-1-x)+"..":"":"..\\".repeat(w-x)+g.slice(x).join("\\")}let r=0;for(;r<t.length&&t.charCodeAt(r)===he;)r++;let i=t.length;for(;i-1>r&&t.charCodeAt(i-1)===he;)i--;const a=i-r;let l=0;for(;l<e.length&&e.charCodeAt(l)===he;)l++;let u=e.length;for(;u-1>l&&e.charCodeAt(u-1)===he;)u--;const c=u-l,h=a<c?a:c;let m=-1,f=0;for(;f<h;f++){const d=t.charCodeAt(r+f);if(d!==e.charCodeAt(l+f))break;d===he&&(m=f)}if(f!==h){if(m===-1)return s}else{if(c>h){if(e.charCodeAt(l+f)===he)return s.slice(l+f+1);if(f===2)return s.slice(l+f)}a>h&&(t.charCodeAt(r+f)===he?m=f:f===2&&(m=3)),m===-1&&(m=0)}let p="";for(f=r+m+1;f<=i;++f)(f===i||t.charCodeAt(f)===he)&&(p+=p.length===0?"..":"\\..");return l+=m,p.length>0?`${p}${s.slice(l,u)}`:(s.charCodeAt(l)===he&&++l,s.slice(l,u))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=ie.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===he){if(e.charCodeAt(1)===he){const n=e.charCodeAt(2);if(n!==Ao&&n!==Je)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Pe(e.charCodeAt(0))&&e.charCodeAt(1)===ke&&e.charCodeAt(2)===he)return`\\\\?\\${e}`;return e},dirname(t){Z(t,"path");const e=t.length;if(e===0)return".";let n=-1,s=0;const r=t.charCodeAt(0);if(e===1)return U(r)?t:".";if(U(r)){if(n=s=1,U(t.charCodeAt(1))){let l=2,u=l;for(;l<e&&!U(t.charCodeAt(l));)l++;if(l<e&&l!==u){for(u=l;l<e&&U(t.charCodeAt(l));)l++;if(l<e&&l!==u){for(u=l;l<e&&!U(t.charCodeAt(l));)l++;if(l===e)return t;l!==u&&(n=s=l+1)}}}}else Pe(r)&&t.charCodeAt(1)===ke&&(n=e>2&&U(t.charCodeAt(2))?3:2,s=n);let i=-1,a=!0;for(let l=e-1;l>=s;--l)if(U(t.charCodeAt(l))){if(!a){i=l;break}}else a=!1;if(i===-1){if(n===-1)return".";i=n}return t.slice(0,i)},basename(t,e){e!==void 0&&Z(e,"suffix"),Z(t,"path");let n=0,s=-1,r=!0,i;if(t.length>=2&&Pe(t.charCodeAt(0))&&t.charCodeAt(1)===ke&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(i=t.length-1;i>=n;--i){const u=t.charCodeAt(i);if(U(u)){if(!r){n=i+1;break}}else l===-1&&(r=!1,l=i+1),a>=0&&(u===e.charCodeAt(a)?--a===-1&&(s=i):(a=-1,s=l))}return n===s?s=l:s===-1&&(s=t.length),t.slice(n,s)}for(i=t.length-1;i>=n;--i)if(U(t.charCodeAt(i))){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":t.slice(n,s)},extname(t){Z(t,"path");let e=0,n=-1,s=0,r=-1,i=!0,a=0;t.length>=2&&t.charCodeAt(1)===ke&&Pe(t.charCodeAt(0))&&(e=s=2);for(let l=t.length-1;l>=e;--l){const u=t.charCodeAt(l);if(U(u)){if(!i){s=l+1;break}continue}r===-1&&(i=!1,r=l+1),u===Je?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||r===-1||a===0||a===1&&n===r-1&&n===s+1?"":t.slice(n,r)},format:Zs.bind(null,"\\"),parse(t){Z(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let s=0,r=t.charCodeAt(0);if(n===1)return U(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(U(r)){if(s=1,U(t.charCodeAt(1))){let m=2,f=m;for(;m<n&&!U(t.charCodeAt(m));)m++;if(m<n&&m!==f){for(f=m;m<n&&U(t.charCodeAt(m));)m++;if(m<n&&m!==f){for(f=m;m<n&&!U(t.charCodeAt(m));)m++;m===n?s=m:m!==f&&(s=m+1)}}}}else if(Pe(r)&&t.charCodeAt(1)===ke){if(n<=2)return e.root=e.dir=t,e;if(s=2,U(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;s=3}}s>0&&(e.root=t.slice(0,s));let i=-1,a=s,l=-1,u=!0,c=t.length-1,h=0;for(;c>=s;--c){if(r=t.charCodeAt(c),U(r)){if(!u){a=c+1;break}continue}l===-1&&(u=!1,l=c+1),r===Je?i===-1?i=c:h!==1&&(h=1):i!==-1&&(h=-1)}return l!==-1&&(i===-1||h===0||h===1&&i===l-1&&i===a+1?e.base=e.name=t.slice(a,l):(e.name=t.slice(a,i),e.base=t.slice(a,l),e.ext=t.slice(i,l))),a>0&&a!==s?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},To=(()=>{if(Te){const t=/\\/g;return()=>{const e=ln().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>ln()})(),ue={resolve(...t){let e="",n=!1;for(let s=t.length-1;s>=0&&!n;s--){const r=t[s];Z(r,`paths[${s}]`),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===ne)}if(!n){const s=To();e=`${s}/${e}`,n=s.charCodeAt(0)===ne}return e=pn(e,!n,"/",es),n?`/${e}`:e.length>0?e:"."},normalize(t){if(Z(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ne,n=t.charCodeAt(t.length-1)===ne;return t=pn(t,!e,"/",es),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return Z(t,"path"),t.length>0&&t.charCodeAt(0)===ne},join(...t){if(t.length===0)return".";const e=[];for(let n=0;n<t.length;++n){const s=t[n];Z(s,"path"),s.length>0&&e.push(s)}return e.length===0?".":ue.normalize(e.join("/"))},relative(t,e){if(Z(t,"from"),Z(e,"to"),t===e||(t=ue.resolve(t),e=ue.resolve(e),t===e))return"";const n=1,s=t.length,r=s-n,i=1,a=e.length-i,l=r<a?r:a;let u=-1,c=0;for(;c<l;c++){const m=t.charCodeAt(n+c);if(m!==e.charCodeAt(i+c))break;m===ne&&(u=c)}if(c===l)if(a>l){if(e.charCodeAt(i+c)===ne)return e.slice(i+c+1);if(c===0)return e.slice(i+c)}else r>l&&(t.charCodeAt(n+c)===ne?u=c:c===0&&(u=0));let h="";for(c=n+u+1;c<=s;++c)(c===s||t.charCodeAt(c)===ne)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(i+u)}`},toNamespacedPath(t){return t},dirname(t){if(Z(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ne;let n=-1,s=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===ne){if(!s){n=r;break}}else s=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&Z(e,"suffix"),Z(t,"path");let n=0,s=-1,r=!0,i;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(i=t.length-1;i>=0;--i){const u=t.charCodeAt(i);if(u===ne){if(!r){n=i+1;break}}else l===-1&&(r=!1,l=i+1),a>=0&&(u===e.charCodeAt(a)?--a===-1&&(s=i):(a=-1,s=l))}return n===s?s=l:s===-1&&(s=t.length),t.slice(n,s)}for(i=t.length-1;i>=0;--i)if(t.charCodeAt(i)===ne){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":t.slice(n,s)},extname(t){Z(t,"path");let e=-1,n=0,s=-1,r=!0,i=0;for(let a=t.length-1;a>=0;--a){const l=t[a];if(l==="/"){if(!r){n=a+1;break}continue}s===-1&&(r=!1,s=a+1),l==="."?e===-1?e=a:i!==1&&(i=1):e!==-1&&(i=-1)}return e===-1||s===-1||i===0||i===1&&e===s-1&&e===n+1?"":t.slice(e,s)},format:Zs.bind(null,"/"),parse(t){Z(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===ne;let s;n?(e.root="/",s=1):s=0;let r=-1,i=0,a=-1,l=!0,u=t.length-1,c=0;for(;u>=s;--u){const h=t.charCodeAt(u);if(h===ne){if(!l){i=u+1;break}continue}a===-1&&(l=!1,a=u+1),h===Je?r===-1?r=u:c!==1&&(c=1):r!==-1&&(c=-1)}if(a!==-1){const h=i===0&&n?1:i;r===-1||c===0||c===1&&r===a-1&&r===i+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,r),e.base=t.slice(h,a),e.ext=t.slice(r,a))}return i>0?e.dir=t.slice(0,i-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ue.win32=ie.win32=ie,ue.posix=ie.posix=ue,Te?ie.normalize:ue.normalize,Te?ie.join:ue.join,Te?ie.resolve:ue.resolve,Te?ie.relative:ue.relative,Te?ie.dirname:ue.dirname,Te?ie.basename:ue.basename,Te?ie.extname:ue.extname,Te?ie.sep:ue.sep;const Po=/^\w[\w\d+.-]*$/,Do=/^\//,Fo=/^\/\//;function qo(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Po.test(t.scheme)){const n=[...t.scheme.matchAll(/[^\w\d+.-]/gu)],s=n.length>0?` Found '${n[0][0]}' at index ${n[0].index} (${n.length} total)`:"";throw new Error(`[UriError]: Scheme contains illegal characters.${s} (len:${t.scheme.length})`)}if(t.path){if(t.authority){if(!Do.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Fo.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Io(t,e){return!t&&!e?"file":t}function Bo(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==ve&&(e=ve+e):e=ve;break}return e}const G="",ve="/",Vo=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Qe{static isUri(e){return e instanceof Qe?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,n,s,r,i,a=!1){typeof e=="object"?(this.scheme=e.scheme||G,this.authority=e.authority||G,this.path=e.path||G,this.query=e.query||G,this.fragment=e.fragment||G):(this.scheme=Io(e,a),this.authority=n||G,this.path=Bo(this.scheme,s||G),this.query=r||G,this.fragment=i||G,qo(this,a))}get fsPath(){return ts(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:s,path:r,query:i,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=G),s===void 0?s=this.authority:s===null&&(s=G),r===void 0?r=this.path:r===null&&(r=G),i===void 0?i=this.query:i===null&&(i=G),a===void 0?a=this.fragment:a===null&&(a=G),n===this.scheme&&s===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new dt(n,s,r,i,a)}static parse(e,n=!1){const s=Vo.exec(e);return s?new dt(s[2]||G,bn(s[4]||G),bn(s[5]||G),bn(s[7]||G),bn(s[9]||G),n):new dt(G,G,G,G,G)}static file(e){let n=G;if(Ut&&(e=e.replace(/\\/g,ve)),e[0]===ve&&e[1]===ve){const s=e.indexOf(ve,2);s===-1?(n=e.substring(2),e=ve):(n=e.substring(2,s),e=e.substring(s)||ve)}return new dt("file",n,e,G,G)}static from(e,n){return new dt(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error(`[UriError]: cannot call joinPath on URI without path: ${e.toString()}`);let s;return Ut&&e.scheme==="file"?s=Qe.file(ie.join(ts(e,!0),...n)).path:s=ue.join(e.path,...n),e.with({path:s})}toString(e=!1){return ns(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Qe)return e;{const n=new dt(e);return n._formatted=e.external??null,n._fsPath=e._sep===Ks?e.fsPath??null:null,n}}else return e}}const Ks=Ut?1:void 0;class dt extends Qe{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ts(this,!1)),this._fsPath}toString(e=!1){return e?ns(this,!0):(this._formatted||(this._formatted=ns(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Ks),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const er={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function tr(t,e,n){let s,r=-1;for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)r!==-1&&(s+=encodeURIComponent(t.substring(r,i)),r=-1),s!==void 0&&(s+=t.charAt(i));else{s===void 0&&(s=t.substr(0,i));const l=er[a];l!==void 0?(r!==-1&&(s+=encodeURIComponent(t.substring(r,i)),r=-1),s+=l):r===-1&&(r=i)}}return r!==-1&&(s+=encodeURIComponent(t.substring(r))),s!==void 0?s:t}function $o(t){let e=t.indexOf("?");const n=t.indexOf("#");if((e===-1||n!==-1&&n<e)&&(e=n),e===-1)return t;let s=t.substring(0,e),r=e;for(;e<t.length;e++){const i=t.charCodeAt(e);(i===35||i===63)&&(r<e&&(s+=t.substring(r,e)),s+=er[i],r=e+1)}return r<t.length&&(s+=t.substring(r)),s}function ts(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Ut&&(n=n.replace(/\//g,"\\")),n}function ns(t,e){const n=e?$o:tr;let s="",{scheme:r,authority:i,path:a,query:l,fragment:u}=t;if(r&&(s+=r,s+=":"),(i||r==="file")&&(s+=ve,s+=ve),i){let c=i.indexOf("@");if(c!==-1){const h=i.substr(0,c);i=i.substr(c+1),c=h.indexOf(":"),c===-1?s+=n(h,!1,!1):(s+=n(h.substr(0,c),!1,!1),s+=":",s+=n(h.substr(c+1),!1,!1)),s+="@"}i=i.toLowerCase(),c=i.lastIndexOf(":"),c===-1?s+=n(i,!1,!0):(s+=n(i.substr(0,c),!1,!0),s+=i.substr(c))}if(a){const c=r.toLowerCase();if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const h=a.charCodeAt(1);h>=65&&h<=90&&c!=="http"&&c!=="https"&&(a=`/${String.fromCharCode(h+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const h=a.charCodeAt(0);h>=65&&h<=90&&c!=="http"&&c!=="https"&&(a=`${String.fromCharCode(h+32)}:${a.substr(2)}`)}s+=n(a,!0,!1)}return l&&(s+="?",s+=n(l,!1,!1)),u&&(s+="#",s+=e?u:tr(u,!1,!1)),s}function nr(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+nr(t.substr(3)):t}}const sr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function bn(t){return t.match(sr)?t.replace(sr,e=>nr(e)):t}class de extends V{constructor(e,n,s,r){super(e,n,s,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=s,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return de.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new de(this.startLineNumber,this.startColumn,e,n):new de(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new H(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new H(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new de(e,n,this.endLineNumber,this.endColumn):new de(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new de(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new de(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new de(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new de(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let s=0,r=e.length;s<r;s++)if(!this.selectionsEqual(e[s],n[s]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,n,s,r,i){return i===0?new de(e,n,s,r):new de(s,r,e,n)}}const rr=Object.create(null);function o(t,e){if(Ra(e)){const n=rr[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return rr[t]=e,{id:t}}const Wo={add:o("add",6e4),plus:o("plus",6e4),gistNew:o("gist-new",6e4),repoCreate:o("repo-create",6e4),lightbulb:o("lightbulb",60001),lightBulb:o("light-bulb",60001),repo:o("repo",60002),repoDelete:o("repo-delete",60002),gistFork:o("gist-fork",60003),repoForked:o("repo-forked",60003),gitPullRequest:o("git-pull-request",60004),gitPullRequestAbandoned:o("git-pull-request-abandoned",60004),recordKeys:o("record-keys",60005),keyboard:o("keyboard",60005),tag:o("tag",60006),gitPullRequestLabel:o("git-pull-request-label",60006),tagAdd:o("tag-add",60006),tagRemove:o("tag-remove",60006),person:o("person",60007),personFollow:o("person-follow",60007),personOutline:o("person-outline",60007),personFilled:o("person-filled",60007),sourceControl:o("source-control",60008),mirror:o("mirror",60009),mirrorPublic:o("mirror-public",60009),star:o("star",60010),starAdd:o("star-add",60010),starDelete:o("star-delete",60010),starEmpty:o("star-empty",60010),comment:o("comment",60011),commentAdd:o("comment-add",60011),alert:o("alert",60012),warning:o("warning",60012),search:o("search",60013),searchSave:o("search-save",60013),logOut:o("log-out",60014),signOut:o("sign-out",60014),logIn:o("log-in",60015),signIn:o("sign-in",60015),eye:o("eye",60016),eyeUnwatch:o("eye-unwatch",60016),eyeWatch:o("eye-watch",60016),circleFilled:o("circle-filled",60017),primitiveDot:o("primitive-dot",60017),closeDirty:o("close-dirty",60017),debugBreakpoint:o("debug-breakpoint",60017),debugBreakpointDisabled:o("debug-breakpoint-disabled",60017),debugHint:o("debug-hint",60017),terminalDecorationSuccess:o("terminal-decoration-success",60017),primitiveSquare:o("primitive-square",60018),edit:o("edit",60019),pencil:o("pencil",60019),info:o("info",60020),issueOpened:o("issue-opened",60020),gistPrivate:o("gist-private",60021),gitForkPrivate:o("git-fork-private",60021),lock:o("lock",60021),mirrorPrivate:o("mirror-private",60021),close:o("close",60022),removeClose:o("remove-close",60022),x:o("x",60022),repoSync:o("repo-sync",60023),sync:o("sync",60023),clone:o("clone",60024),desktopDownload:o("desktop-download",60024),beaker:o("beaker",60025),microscope:o("microscope",60025),vm:o("vm",60026),deviceDesktop:o("device-desktop",60026),file:o("file",60027),more:o("more",60028),ellipsis:o("ellipsis",60028),kebabHorizontal:o("kebab-horizontal",60028),mailReply:o("mail-reply",60029),reply:o("reply",60029),organization:o("organization",60030),organizationFilled:o("organization-filled",60030),organizationOutline:o("organization-outline",60030),newFile:o("new-file",60031),fileAdd:o("file-add",60031),newFolder:o("new-folder",60032),fileDirectoryCreate:o("file-directory-create",60032),trash:o("trash",60033),trashcan:o("trashcan",60033),history:o("history",60034),clock:o("clock",60034),folder:o("folder",60035),fileDirectory:o("file-directory",60035),symbolFolder:o("symbol-folder",60035),logoGithub:o("logo-github",60036),markGithub:o("mark-github",60036),github:o("github",60036),terminal:o("terminal",60037),console:o("console",60037),repl:o("repl",60037),zap:o("zap",60038),symbolEvent:o("symbol-event",60038),error:o("error",60039),stop:o("stop",60039),variable:o("variable",60040),symbolVariable:o("symbol-variable",60040),array:o("array",60042),symbolArray:o("symbol-array",60042),symbolModule:o("symbol-module",60043),symbolPackage:o("symbol-package",60043),symbolNamespace:o("symbol-namespace",60043),symbolObject:o("symbol-object",60043),symbolMethod:o("symbol-method",60044),symbolFunction:o("symbol-function",60044),symbolConstructor:o("symbol-constructor",60044),symbolBoolean:o("symbol-boolean",60047),symbolNull:o("symbol-null",60047),symbolNumeric:o("symbol-numeric",60048),symbolNumber:o("symbol-number",60048),symbolStructure:o("symbol-structure",60049),symbolStruct:o("symbol-struct",60049),symbolParameter:o("symbol-parameter",60050),symbolTypeParameter:o("symbol-type-parameter",60050),symbolKey:o("symbol-key",60051),symbolText:o("symbol-text",60051),symbolReference:o("symbol-reference",60052),goToFile:o("go-to-file",60052),symbolEnum:o("symbol-enum",60053),symbolValue:o("symbol-value",60053),symbolRuler:o("symbol-ruler",60054),symbolUnit:o("symbol-unit",60054),activateBreakpoints:o("activate-breakpoints",60055),archive:o("archive",60056),arrowBoth:o("arrow-both",60057),arrowDown:o("arrow-down",60058),arrowLeft:o("arrow-left",60059),arrowRight:o("arrow-right",60060),arrowSmallDown:o("arrow-small-down",60061),arrowSmallLeft:o("arrow-small-left",60062),arrowSmallRight:o("arrow-small-right",60063),arrowSmallUp:o("arrow-small-up",60064),arrowUp:o("arrow-up",60065),bell:o("bell",60066),bold:o("bold",60067),book:o("book",60068),bookmark:o("bookmark",60069),debugBreakpointConditionalUnverified:o("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:o("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:o("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:o("debug-breakpoint-data-unverified",60072),debugBreakpointData:o("debug-breakpoint-data",60073),debugBreakpointDataDisabled:o("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:o("debug-breakpoint-log-unverified",60074),debugBreakpointLog:o("debug-breakpoint-log",60075),debugBreakpointLogDisabled:o("debug-breakpoint-log-disabled",60075),briefcase:o("briefcase",60076),broadcast:o("broadcast",60077),browser:o("browser",60078),bug:o("bug",60079),calendar:o("calendar",60080),caseSensitive:o("case-sensitive",60081),check:o("check",60082),checklist:o("checklist",60083),chevronDown:o("chevron-down",60084),chevronLeft:o("chevron-left",60085),chevronRight:o("chevron-right",60086),chevronUp:o("chevron-up",60087),chromeClose:o("chrome-close",60088),chromeMaximize:o("chrome-maximize",60089),chromeMinimize:o("chrome-minimize",60090),chromeRestore:o("chrome-restore",60091),circleOutline:o("circle-outline",60092),circle:o("circle",60092),debugBreakpointUnverified:o("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:o("terminal-decoration-incomplete",60092),circleSlash:o("circle-slash",60093),circuitBoard:o("circuit-board",60094),clearAll:o("clear-all",60095),clippy:o("clippy",60096),closeAll:o("close-all",60097),cloudDownload:o("cloud-download",60098),cloudUpload:o("cloud-upload",60099),code:o("code",60100),collapseAll:o("collapse-all",60101),colorMode:o("color-mode",60102),commentDiscussion:o("comment-discussion",60103),creditCard:o("credit-card",60105),dash:o("dash",60108),dashboard:o("dashboard",60109),database:o("database",60110),debugContinue:o("debug-continue",60111),debugDisconnect:o("debug-disconnect",60112),debugPause:o("debug-pause",60113),debugRestart:o("debug-restart",60114),debugStart:o("debug-start",60115),debugStepInto:o("debug-step-into",60116),debugStepOut:o("debug-step-out",60117),debugStepOver:o("debug-step-over",60118),debugStop:o("debug-stop",60119),debug:o("debug",60120),deviceCameraVideo:o("device-camera-video",60121),deviceCamera:o("device-camera",60122),deviceMobile:o("device-mobile",60123),diffAdded:o("diff-added",60124),diffIgnored:o("diff-ignored",60125),diffModified:o("diff-modified",60126),diffRemoved:o("diff-removed",60127),diffRenamed:o("diff-renamed",60128),diff:o("diff",60129),diffSidebyside:o("diff-sidebyside",60129),discard:o("discard",60130),editorLayout:o("editor-layout",60131),emptyWindow:o("empty-window",60132),exclude:o("exclude",60133),extensions:o("extensions",60134),eyeClosed:o("eye-closed",60135),fileBinary:o("file-binary",60136),fileCode:o("file-code",60137),fileMedia:o("file-media",60138),filePdf:o("file-pdf",60139),fileSubmodule:o("file-submodule",60140),fileSymlinkDirectory:o("file-symlink-directory",60141),fileSymlinkFile:o("file-symlink-file",60142),fileZip:o("file-zip",60143),files:o("files",60144),filter:o("filter",60145),flame:o("flame",60146),foldDown:o("fold-down",60147),foldUp:o("fold-up",60148),fold:o("fold",60149),folderActive:o("folder-active",60150),folderOpened:o("folder-opened",60151),gear:o("gear",60152),gift:o("gift",60153),gistSecret:o("gist-secret",60154),gist:o("gist",60155),gitCommit:o("git-commit",60156),gitCompare:o("git-compare",60157),compareChanges:o("compare-changes",60157),gitMerge:o("git-merge",60158),githubAction:o("github-action",60159),githubAlt:o("github-alt",60160),globe:o("globe",60161),grabber:o("grabber",60162),graph:o("graph",60163),gripper:o("gripper",60164),heart:o("heart",60165),home:o("home",60166),horizontalRule:o("horizontal-rule",60167),hubot:o("hubot",60168),inbox:o("inbox",60169),issueReopened:o("issue-reopened",60171),issues:o("issues",60172),italic:o("italic",60173),jersey:o("jersey",60174),json:o("json",60175),bracket:o("bracket",60175),kebabVertical:o("kebab-vertical",60176),key:o("key",60177),law:o("law",60178),lightbulbAutofix:o("lightbulb-autofix",60179),linkExternal:o("link-external",60180),link:o("link",60181),listOrdered:o("list-ordered",60182),listUnordered:o("list-unordered",60183),liveShare:o("live-share",60184),loading:o("loading",60185),location:o("location",60186),mailRead:o("mail-read",60187),mail:o("mail",60188),markdown:o("markdown",60189),megaphone:o("megaphone",60190),mention:o("mention",60191),milestone:o("milestone",60192),gitPullRequestMilestone:o("git-pull-request-milestone",60192),mortarBoard:o("mortar-board",60193),move:o("move",60194),multipleWindows:o("multiple-windows",60195),mute:o("mute",60196),noNewline:o("no-newline",60197),note:o("note",60198),octoface:o("octoface",60199),openPreview:o("open-preview",60200),package:o("package",60201),paintcan:o("paintcan",60202),pin:o("pin",60203),play:o("play",60204),run:o("run",60204),plug:o("plug",60205),preserveCase:o("preserve-case",60206),preview:o("preview",60207),project:o("project",60208),pulse:o("pulse",60209),question:o("question",60210),quote:o("quote",60211),radioTower:o("radio-tower",60212),reactions:o("reactions",60213),references:o("references",60214),refresh:o("refresh",60215),regex:o("regex",60216),remoteExplorer:o("remote-explorer",60217),remote:o("remote",60218),remove:o("remove",60219),replaceAll:o("replace-all",60220),replace:o("replace",60221),repoClone:o("repo-clone",60222),repoForcePush:o("repo-force-push",60223),repoPull:o("repo-pull",60224),repoPush:o("repo-push",60225),report:o("report",60226),requestChanges:o("request-changes",60227),rocket:o("rocket",60228),rootFolderOpened:o("root-folder-opened",60229),rootFolder:o("root-folder",60230),rss:o("rss",60231),ruby:o("ruby",60232),saveAll:o("save-all",60233),saveAs:o("save-as",60234),save:o("save",60235),screenFull:o("screen-full",60236),screenNormal:o("screen-normal",60237),searchStop:o("search-stop",60238),server:o("server",60240),settingsGear:o("settings-gear",60241),settings:o("settings",60242),shield:o("shield",60243),smiley:o("smiley",60244),sortPrecedence:o("sort-precedence",60245),splitHorizontal:o("split-horizontal",60246),splitVertical:o("split-vertical",60247),squirrel:o("squirrel",60248),starFull:o("star-full",60249),starHalf:o("star-half",60250),symbolClass:o("symbol-class",60251),symbolColor:o("symbol-color",60252),symbolConstant:o("symbol-constant",60253),symbolEnumMember:o("symbol-enum-member",60254),symbolField:o("symbol-field",60255),symbolFile:o("symbol-file",60256),symbolInterface:o("symbol-interface",60257),symbolKeyword:o("symbol-keyword",60258),symbolMisc:o("symbol-misc",60259),symbolOperator:o("symbol-operator",60260),symbolProperty:o("symbol-property",60261),wrench:o("wrench",60261),wrenchSubaction:o("wrench-subaction",60261),symbolSnippet:o("symbol-snippet",60262),tasklist:o("tasklist",60263),telescope:o("telescope",60264),textSize:o("text-size",60265),threeBars:o("three-bars",60266),thumbsdown:o("thumbsdown",60267),thumbsup:o("thumbsup",60268),tools:o("tools",60269),triangleDown:o("triangle-down",60270),triangleLeft:o("triangle-left",60271),triangleRight:o("triangle-right",60272),triangleUp:o("triangle-up",60273),twitter:o("twitter",60274),unfold:o("unfold",60275),unlock:o("unlock",60276),unmute:o("unmute",60277),unverified:o("unverified",60278),verified:o("verified",60279),versions:o("versions",60280),vmActive:o("vm-active",60281),vmOutline:o("vm-outline",60282),vmRunning:o("vm-running",60283),watch:o("watch",60284),whitespace:o("whitespace",60285),wholeWord:o("whole-word",60286),window:o("window",60287),wordWrap:o("word-wrap",60288),zoomIn:o("zoom-in",60289),zoomOut:o("zoom-out",60290),listFilter:o("list-filter",60291),listFlat:o("list-flat",60292),listSelection:o("list-selection",60293),selection:o("selection",60293),listTree:o("list-tree",60294),debugBreakpointFunctionUnverified:o("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:o("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:o("debug-breakpoint-function-disabled",60296),debugStackframeActive:o("debug-stackframe-active",60297),circleSmallFilled:o("circle-small-filled",60298),debugStackframeDot:o("debug-stackframe-dot",60298),terminalDecorationMark:o("terminal-decoration-mark",60298),debugStackframe:o("debug-stackframe",60299),debugStackframeFocused:o("debug-stackframe-focused",60299),debugBreakpointUnsupported:o("debug-breakpoint-unsupported",60300),symbolString:o("symbol-string",60301),debugReverseContinue:o("debug-reverse-continue",60302),debugStepBack:o("debug-step-back",60303),debugRestartFrame:o("debug-restart-frame",60304),debugAlt:o("debug-alt",60305),callIncoming:o("call-incoming",60306),callOutgoing:o("call-outgoing",60307),menu:o("menu",60308),expandAll:o("expand-all",60309),feedback:o("feedback",60310),gitPullRequestReviewer:o("git-pull-request-reviewer",60310),groupByRefType:o("group-by-ref-type",60311),ungroupByRefType:o("ungroup-by-ref-type",60312),account:o("account",60313),gitPullRequestAssignee:o("git-pull-request-assignee",60313),bellDot:o("bell-dot",60314),debugConsole:o("debug-console",60315),library:o("library",60316),output:o("output",60317),runAll:o("run-all",60318),syncIgnored:o("sync-ignored",60319),pinned:o("pinned",60320),githubInverted:o("github-inverted",60321),serverProcess:o("server-process",60322),serverEnvironment:o("server-environment",60323),pass:o("pass",60324),issueClosed:o("issue-closed",60324),stopCircle:o("stop-circle",60325),playCircle:o("play-circle",60326),record:o("record",60327),debugAltSmall:o("debug-alt-small",60328),vmConnect:o("vm-connect",60329),cloud:o("cloud",60330),merge:o("merge",60331),export:o("export",60332),graphLeft:o("graph-left",60333),magnet:o("magnet",60334),notebook:o("notebook",60335),redo:o("redo",60336),checkAll:o("check-all",60337),pinnedDirty:o("pinned-dirty",60338),passFilled:o("pass-filled",60339),circleLargeFilled:o("circle-large-filled",60340),circleLarge:o("circle-large",60341),circleLargeOutline:o("circle-large-outline",60341),combine:o("combine",60342),gather:o("gather",60342),table:o("table",60343),variableGroup:o("variable-group",60344),typeHierarchy:o("type-hierarchy",60345),typeHierarchySub:o("type-hierarchy-sub",60346),typeHierarchySuper:o("type-hierarchy-super",60347),gitPullRequestCreate:o("git-pull-request-create",60348),runAbove:o("run-above",60349),runBelow:o("run-below",60350),notebookTemplate:o("notebook-template",60351),debugRerun:o("debug-rerun",60352),workspaceTrusted:o("workspace-trusted",60353),workspaceUntrusted:o("workspace-untrusted",60354),workspaceUnknown:o("workspace-unknown",60355),terminalCmd:o("terminal-cmd",60356),terminalDebian:o("terminal-debian",60357),terminalLinux:o("terminal-linux",60358),terminalPowershell:o("terminal-powershell",60359),terminalTmux:o("terminal-tmux",60360),terminalUbuntu:o("terminal-ubuntu",60361),terminalBash:o("terminal-bash",60362),arrowSwap:o("arrow-swap",60363),copy:o("copy",60364),personAdd:o("person-add",60365),filterFilled:o("filter-filled",60366),wand:o("wand",60367),debugLineByLine:o("debug-line-by-line",60368),inspect:o("inspect",60369),layers:o("layers",60370),layersDot:o("layers-dot",60371),layersActive:o("layers-active",60372),compass:o("compass",60373),compassDot:o("compass-dot",60374),compassActive:o("compass-active",60375),azure:o("azure",60376),issueDraft:o("issue-draft",60377),gitPullRequestClosed:o("git-pull-request-closed",60378),gitPullRequestDraft:o("git-pull-request-draft",60379),debugAll:o("debug-all",60380),debugCoverage:o("debug-coverage",60381),runErrors:o("run-errors",60382),folderLibrary:o("folder-library",60383),debugContinueSmall:o("debug-continue-small",60384),beakerStop:o("beaker-stop",60385),graphLine:o("graph-line",60386),graphScatter:o("graph-scatter",60387),pieChart:o("pie-chart",60388),bracketDot:o("bracket-dot",60389),bracketError:o("bracket-error",60390),lockSmall:o("lock-small",60391),azureDevops:o("azure-devops",60392),verifiedFilled:o("verified-filled",60393),newline:o("newline",60394),layout:o("layout",60395),layoutActivitybarLeft:o("layout-activitybar-left",60396),layoutActivitybarRight:o("layout-activitybar-right",60397),layoutPanelLeft:o("layout-panel-left",60398),layoutPanelCenter:o("layout-panel-center",60399),layoutPanelJustify:o("layout-panel-justify",60400),layoutPanelRight:o("layout-panel-right",60401),layoutPanel:o("layout-panel",60402),layoutSidebarLeft:o("layout-sidebar-left",60403),layoutSidebarRight:o("layout-sidebar-right",60404),layoutStatusbar:o("layout-statusbar",60405),layoutMenubar:o("layout-menubar",60406),layoutCentered:o("layout-centered",60407),target:o("target",60408),indent:o("indent",60409),recordSmall:o("record-small",60410),errorSmall:o("error-small",60411),terminalDecorationError:o("terminal-decoration-error",60411),arrowCircleDown:o("arrow-circle-down",60412),arrowCircleLeft:o("arrow-circle-left",60413),arrowCircleRight:o("arrow-circle-right",60414),arrowCircleUp:o("arrow-circle-up",60415),layoutSidebarRightOff:o("layout-sidebar-right-off",60416),layoutPanelOff:o("layout-panel-off",60417),layoutSidebarLeftOff:o("layout-sidebar-left-off",60418),blank:o("blank",60419),heartFilled:o("heart-filled",60420),map:o("map",60421),mapHorizontal:o("map-horizontal",60421),foldHorizontal:o("fold-horizontal",60421),mapFilled:o("map-filled",60422),mapHorizontalFilled:o("map-horizontal-filled",60422),foldHorizontalFilled:o("fold-horizontal-filled",60422),circleSmall:o("circle-small",60423),bellSlash:o("bell-slash",60424),bellSlashDot:o("bell-slash-dot",60425),commentUnresolved:o("comment-unresolved",60426),gitPullRequestGoToChanges:o("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:o("git-pull-request-new-changes",60428),searchFuzzy:o("search-fuzzy",60429),commentDraft:o("comment-draft",60430),send:o("send",60431),sparkle:o("sparkle",60432),insert:o("insert",60433),mic:o("mic",60434),thumbsdownFilled:o("thumbsdown-filled",60435),thumbsupFilled:o("thumbsup-filled",60436),coffee:o("coffee",60437),snake:o("snake",60438),game:o("game",60439),vr:o("vr",60440),chip:o("chip",60441),piano:o("piano",60442),music:o("music",60443),micFilled:o("mic-filled",60444),repoFetch:o("repo-fetch",60445),copilot:o("copilot",60446),lightbulbSparkle:o("lightbulb-sparkle",60447),robot:o("robot",60448),sparkleFilled:o("sparkle-filled",60449),diffSingle:o("diff-single",60450),diffMultiple:o("diff-multiple",60451),surroundWith:o("surround-with",60452),share:o("share",60453),gitStash:o("git-stash",60454),gitStashApply:o("git-stash-apply",60455),gitStashPop:o("git-stash-pop",60456),vscode:o("vscode",60457),vscodeInsiders:o("vscode-insiders",60458),codeOss:o("code-oss",60459),runCoverage:o("run-coverage",60460),runAllCoverage:o("run-all-coverage",60461),coverage:o("coverage",60462),githubProject:o("github-project",60463),mapVertical:o("map-vertical",60464),foldVertical:o("fold-vertical",60464),mapVerticalFilled:o("map-vertical-filled",60465),foldVerticalFilled:o("fold-vertical-filled",60465),goToSearch:o("go-to-search",60466),percentage:o("percentage",60467),sortPercentage:o("sort-percentage",60467),attach:o("attach",60468),goToEditingSession:o("go-to-editing-session",60469),editSession:o("edit-session",60470),codeReview:o("code-review",60471),copilotWarning:o("copilot-warning",60472),python:o("python",60473),copilotLarge:o("copilot-large",60474),copilotWarningLarge:o("copilot-warning-large",60475),keyboardTab:o("keyboard-tab",60476),copilotBlocked:o("copilot-blocked",60477),copilotNotConnected:o("copilot-not-connected",60478),flag:o("flag",60479),lightbulbEmpty:o("lightbulb-empty",60480),symbolMethodArrow:o("symbol-method-arrow",60481),copilotUnavailable:o("copilot-unavailable",60482),repoPinned:o("repo-pinned",60483),keyboardTabAbove:o("keyboard-tab-above",60484),keyboardTabBelow:o("keyboard-tab-below",60485),gitPullRequestDone:o("git-pull-request-done",60486),mcp:o("mcp",60487),extensionsLarge:o("extensions-large",60488),layoutPanelDock:o("layout-panel-dock",60489),layoutSidebarLeftDock:o("layout-sidebar-left-dock",60490),layoutSidebarRightDock:o("layout-sidebar-right-dock",60491),copilotInProgress:o("copilot-in-progress",60492),copilotError:o("copilot-error",60493),copilotSuccess:o("copilot-success",60494),chatSparkle:o("chat-sparkle",60495),searchSparkle:o("search-sparkle",60496),editSparkle:o("edit-sparkle",60497),copilotSnooze:o("copilot-snooze",60498),sendToRemoteAgent:o("send-to-remote-agent",60499),commentDiscussionSparkle:o("comment-discussion-sparkle",60500),chatSparkleWarning:o("chat-sparkle-warning",60501),chatSparkleError:o("chat-sparkle-error",60502),collection:o("collection",60503),newCollection:o("new-collection",60504),thinking:o("thinking",60505),build:o("build",60506),commentDiscussionQuote:o("comment-discussion-quote",60507),cursor:o("cursor",60508),eraser:o("eraser",60509),fileText:o("file-text",60510),quotes:o("quotes",60512),rename:o("rename",60513),runWithDeps:o("run-with-deps",60514),debugConnected:o("debug-connected",60515),strikethrough:o("strikethrough",60516),openInProduct:o("open-in-product",60517),indexZero:o("index-zero",60518),agent:o("agent",60519),editCode:o("edit-code",60520),repoSelected:o("repo-selected",60521),skip:o("skip",60522),mergeInto:o("merge-into",60523),gitBranchChanges:o("git-branch-changes",60524),gitBranchStagedChanges:o("git-branch-staged-changes",60525),gitBranchConflicts:o("git-branch-conflicts",60526),gitBranch:o("git-branch",60527),gitBranchCreate:o("git-branch-create",60527),gitBranchDelete:o("git-branch-delete",60527),searchLarge:o("search-large",60528),terminalGitBash:o("terminal-git-bash",60529),windowActive:o("window-active",60530),forward:o("forward",60531),download:o("download",60532),clockface:o("clockface",60533),unarchive:o("unarchive",60534),sessionInProgress:o("session-in-progress",60535),collectionSmall:o("collection-small",60536),vmSmall:o("vm-small",60537),cloudSmall:o("cloud-small",60538),addSmall:o("add-small",60539),removeSmall:o("remove-small",60540),worktreeSmall:o("worktree-small",60541),worktree:o("worktree",60542),screenCut:o("screen-cut",60543),ask:o("ask",60544),openai:o("openai",60545),claude:o("claude",60546),openInWindow:o("open-in-window",60547),newSession:o("new-session",60548),terminalSecure:o("terminal-secure",60549),chatImport:o("chat-import",60550),chatExport:o("chat-export",60551),shareWindow:o("share-window",60552),circleSlashCompact:o("circle-slash-compact",60553),copilotCompact:o("copilot-compact",60554),folderOpenedCompact:o("folder-opened-compact",60555),folderCompact:o("folder-compact",60556),gearCompact:o("gear-compact",60557),gitBranchCompact:o("git-branch-compact",60558),libraryCompact:o("library-compact",60559),recordKeysCompact:o("record-keys-compact",60560),remoteCompact:o("remote-compact",60561),repoForkedCompact:o("repo-forked-compact",60562),repoCompact:o("repo-compact",60563),shieldCompact:o("shield-compact",60564),sparkleCompact:o("sparkle-compact",60565),symbolColorCompact:o("symbol-color-compact",60566),windowCompact:o("window-compact",60567),errorCompact:o("error-compact",60568),warningCompact:o("warning-compact",60569),passCompact:o("pass-compact",60570),important:o("important",60571),importantCompact:o("important-compact",60572),rocketCompact:o("rocket-compact",60573),unpin:o("unpin",60574),addCompact:o("add-compact",60575),attachCompact:o("attach-compact",60576),beakerCompact:o("beaker-compact",60577),checkCompact:o("check-compact",60578),checklistCompact:o("checklist-compact",60579),chevronDownCompact:o("chevron-down-compact",60580),chevronLeftCompact:o("chevron-left-compact",60581),chevronRightCompact:o("chevron-right-compact",60582),chevronUpCompact:o("chevron-up-compact",60583),circleFilledCompact:o("circle-filled-compact",60584),circleSmallFilledCompact:o("circle-small-filled-compact",60585),closeCompact:o("close-compact",60586),collapseAllCompact:o("collapse-all-compact",60587),commentCompact:o("comment-compact",60588),commentUnresolvedCompact:o("comment-unresolved-compact",60589),debugConnectedCompact:o("debug-connected-compact",60590),debugDisconnectCompact:o("debug-disconnect-compact",60591),editCompact:o("edit-compact",60592),fileMediaCompact:o("file-media-compact",60593),gitFetch:o("git-fetch",60594),lightbulbCompact:o("lightbulb-compact",60595),loadingCompact:o("loading-compact",60596),passFilledCompact:o("pass-filled-compact",60597),projectCompact:o("project-compact",60598),refreshCompact:o("refresh-compact",60599),searchCompact:o("search-compact",60600),sessionInProgressCompact:o("session-in-progress-compact",60601),syncCompact:o("sync-compact",60602),terminalCompact:o("terminal-compact",60603),vmPending:o("vm-pending",60604),worktreeCompact:o("worktree-compact",60605),developerTools:o("developer-tools",60606),cloudCompact:o("cloud-compact",60607),agentCompact:o("agent-compact",60608),askCompact:o("ask-compact",60609),settingsCompact:o("settings-compact",60610),vmCompact:o("vm-compact",60611),runCompact:o("run-compact",60612),gitPullRequestComment:o("git-pull-request-comment",60613),gitPullRequestError:o("git-pull-request-error",60614),rightPanelHide:o("right-panel-hide",60615),rightPanelShow:o("right-panel-show",60616),vscodeInsidersOutline:o("vscode-insiders-outline",60617),vscodeOutline:o("vscode-outline",60618),voiceMode:o("voice-mode",60619),voiceModeCompact:o("voice-mode-compact",60620),micDownload:o("mic-download",60621),micDownloadCompact:o("mic-download-compact",60622),voiceModeDownload:o("voice-mode-download",60623),voiceModeDownloadCompact:o("voice-mode-download-compact",60624),googleGemini:o("google-gemini",60625),kimi:o("kimi",60626),microsoft:o("microsoft",60627),fish1Happy:o("fish1-happy",60628),fish1Neutral:o("fish1-neutral",60629),fish1Sad:o("fish1-sad",60630),fish1VerySad:o("fish1-very-sad",60631),fish2Happy:o("fish2-happy",60632),fish2Neutral:o("fish2-neutral",60633),fish2Sad:o("fish2-sad",60634),fish2VerySad:o("fish2-very-sad",60635),fish3Happy:o("fish3-happy",60636),fish3Neutral:o("fish3-neutral",60637),fish3Sad:o("fish3-sad",60638),fish3VerySad:o("fish3-very-sad",60639),fish4Happy:o("fish4-happy",60640),fish4Neutral:o("fish4-neutral",60641),fish4Sad:o("fish4-sad",60642),fish4VerySad:o("fish4-very-sad",60643),personVoice:o("person-voice",60644),personVoiceCompact:o("person-voice-compact",60645),personVoiceFilled:o("person-voice-filled",60646),personVoiceFilledCompact:o("person-voice-filled-compact",60647),cloudDownloadCompact:o("cloud-download-compact",60648),cloudUploadCompact:o("cloud-upload-compact",60649),micCompact:o("mic-compact",60650),arrowUpCompact:o("arrow-up-compact",60651),xai:o("xai",60652),arrowCircleUpSparkle:o("arrow-circle-up-sparkle",60653),closeSmall:o("close-small",60654),bookCompact:o("book-compact",60655),micOff:o("mic-off",60656),micOffCompact:o("mic-off-compact",60657),copilotDot:o("copilot-dot",60658),copilotDotCompact:o("copilot-dot-compact",60659),layoutDensityCompact:o("layout-density-compact",60660),layoutDensityDefault:o("layout-density-default",60661),gripperCorner:o("gripper-corner",60662),meteredConnection:o("metered-connection",60663),reportQuestion:o("report-question",60664),trophy:o("trophy",60665)},Uo={dialogError:o("dialog-error","error"),dialogWarning:o("dialog-warning","warning"),dialogInfo:o("dialog-info","info"),dialogClose:o("dialog-close","close"),treeItemExpanded:o("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:o("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:o("tree-filter-on-type-off","list-selection"),treeFilterClear:o("tree-filter-clear","close"),treeItemLoading:o("tree-item-loading","loading"),menuSelection:o("menu-selection","check"),menuSubmenu:o("menu-submenu","chevron-right"),menuBarMore:o("menubar-more","more"),scrollbarButtonLeft:o("scrollbar-button-left","triangle-left"),scrollbarButtonRight:o("scrollbar-button-right","triangle-right"),scrollbarButtonUp:o("scrollbar-button-up","triangle-up"),scrollbarButtonDown:o("scrollbar-button-down","triangle-down"),toolBarMore:o("toolbar-more","more"),quickInputBack:o("quick-input-back","arrow-left"),dropDownButton:o("drop-down-button",60084),symbolCustomColor:o("symbol-customcolor",60252),exportIcon:o("export",60332),workspaceUnspecified:o("workspace-unspecified",60355),newLine:o("newline",60394),thumbsDownFilled:o("thumbsdown-filled",60435),thumbsUpFilled:o("thumbsup-filled",60436),gitFetch:o("git-fetch",60445),lightbulbSparkleAutofix:o("lightbulb-sparkle-autofix",60447),debugBreakpointPending:o("debug-breakpoint-pending",60377),chatImport:o("chat-import",60550),chatExport:o("chat-export",60551),compare:o("compare",60666),gitBranchCheckout:o("git-branch-checkout",60667)},q={...Wo,...Uo};class zo{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Le,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),ut(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){this._factories.get(e)?.dispose();const s=new Ho(this,e,n);return this._factories.set(e,s),ut(()=>{const r=this._factories.get(e);!r||r!==s||(this._factories.delete(e),r.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const s=this._factories.get(e);return!s||s.isResolved?null:(await s.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const s=this._factories.get(e);return!!(!s||s.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Ho extends qe{get isResolved(){return this._isResolved}constructor(e,n,s){super(),this._registry=e,this._languageId=n,this._factory=s,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Oo{constructor(e,n,s){this.offset=e,this.type=n,this.language=s,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var ir;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(ir||(ir={}));var ar;(function(t){const e=new Map;e.set(0,q.symbolMethod),e.set(1,q.symbolFunction),e.set(2,q.symbolConstructor),e.set(3,q.symbolField),e.set(4,q.symbolVariable),e.set(5,q.symbolClass),e.set(6,q.symbolStruct),e.set(7,q.symbolInterface),e.set(8,q.symbolModule),e.set(9,q.symbolProperty),e.set(10,q.symbolEvent),e.set(11,q.symbolOperator),e.set(12,q.symbolUnit),e.set(13,q.symbolValue),e.set(15,q.symbolEnum),e.set(14,q.symbolConstant),e.set(16,q.symbolEnumMember),e.set(17,q.symbolKeyword),e.set(28,q.symbolSnippet),e.set(18,q.symbolText),e.set(19,q.symbolColor),e.set(20,q.symbolFile),e.set(21,q.symbolReference),e.set(22,q.symbolCustomColor),e.set(23,q.symbolFolder),e.set(24,q.symbolTypeParameter),e.set(25,q.account),e.set(26,q.issues),e.set(27,q.tools);function n(a){let l=e.get(a);return l||(console.info("No codicon found for CompletionItemKind "+a),l=q.symbolProperty),l}t.toIcon=n;function s(a){switch(a){case 0:return I(785,"Method");case 1:return I(786,"Function");case 2:return I(787,"Constructor");case 3:return I(788,"Field");case 4:return I(789,"Variable");case 5:return I(790,"Class");case 6:return I(791,"Struct");case 7:return I(792,"Interface");case 8:return I(793,"Module");case 9:return I(794,"Property");case 10:return I(795,"Event");case 11:return I(796,"Operator");case 12:return I(797,"Unit");case 13:return I(798,"Value");case 14:return I(799,"Constant");case 15:return I(800,"Enum");case 16:return I(801,"Enum Member");case 17:return I(802,"Keyword");case 18:return I(803,"Text");case 19:return I(804,"Color");case 20:return I(805,"File");case 21:return I(806,"Reference");case 22:return I(807,"Custom Color");case 23:return I(808,"Folder");case 24:return I(809,"Type Parameter");case 25:return I(810,"User");case 26:return I(811,"Issue");case 27:return I(812,"Tool");case 28:return I(813,"Snippet");default:return""}}t.toLabel=s;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",28),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26),r.set("tool",27);function i(a,l){let u=r.get(a);return typeof u>"u"&&!l&&(u=9),u}t.fromString=i})(ar||(ar={}));var or;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(or||(or={}));var lr;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(lr||(lr={}));var ur;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(ur||(ur={}));var cr;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(cr||(cr={}));var hr;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(hr||(hr={}));var mr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(mr||(mr={})),I(814,"array"),I(815,"boolean"),I(816,"class"),I(817,"constant"),I(818,"constructor"),I(819,"enumeration"),I(820,"enumeration member"),I(821,"event"),I(822,"field"),I(823,"file"),I(824,"function"),I(825,"interface"),I(826,"key"),I(827,"method"),I(828,"module"),I(829,"namespace"),I(830,"null"),I(831,"number"),I(832,"object"),I(833,"operator"),I(834,"package"),I(835,"property"),I(836,"string"),I(837,"struct"),I(838,"type parameter"),I(839,"variable");var fr;(function(t){const e=new Map;e.set(0,q.symbolFile),e.set(1,q.symbolModule),e.set(2,q.symbolNamespace),e.set(3,q.symbolPackage),e.set(4,q.symbolClass),e.set(5,q.symbolMethod),e.set(6,q.symbolProperty),e.set(7,q.symbolField),e.set(8,q.symbolConstructor),e.set(9,q.symbolEnum),e.set(10,q.symbolInterface),e.set(11,q.symbolFunction),e.set(12,q.symbolVariable),e.set(13,q.symbolConstant),e.set(14,q.symbolString),e.set(15,q.symbolNumber),e.set(16,q.symbolBoolean),e.set(17,q.symbolArray),e.set(18,q.symbolObject),e.set(19,q.symbolKey),e.set(20,q.symbolNull),e.set(21,q.symbolEnumMember),e.set(22,q.symbolStruct),e.set(23,q.symbolEvent),e.set(24,q.symbolOperator),e.set(25,q.symbolTypeParameter);function n(i){let a=e.get(i);return a||(console.info("No codicon found for SymbolKind "+i),a=q.symbolProperty),a}t.toIcon=n;const s=new Map;s.set(0,20),s.set(1,8),s.set(2,8),s.set(3,8),s.set(4,5),s.set(5,0),s.set(6,9),s.set(7,3),s.set(8,2),s.set(9,15),s.set(10,7),s.set(11,1),s.set(12,4),s.set(13,14),s.set(14,18),s.set(15,13),s.set(16,13),s.set(17,13),s.set(18,13),s.set(19,17),s.set(20,13),s.set(21,16),s.set(22,6),s.set(23,10),s.set(24,11),s.set(25,24);function r(i){let a=s.get(i);return a===void 0&&(console.info("No completion kind found for SymbolKind "+i),a=20),a}t.toCompletionKind=r})(fr||(fr={}));var gr;(function(t){t[t.Declaration=1]="Declaration",t[t.Header=2]="Header",t[t.Implementation=3]="Implementation",t[t.Dependency=4]="Dependency",t[t.Other=5]="Other"})(gr||(gr={}));var dr;(function(t){t[t.Test=1]="Test"})(dr||(dr={}));const ye=class ye{static fromValue(e){switch(e){case"comment":return ye.Comment;case"imports":return ye.Imports;case"region":return ye.Region}return new ye(e)}constructor(e){this.value=e}};ye.Comment=new ye("comment"),ye.Imports=new ye("imports"),ye.Region=new ye("region");let pr=ye;var br;(function(t){t[t.AIGenerated=1]="AIGenerated"})(br||(br={}));var wr;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(wr||(wr={}));var xr;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(xr||(xr={}));var yr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(yr||(yr={})),new zo;var Lr;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Lr||(Lr={}));var vr;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(vr||(vr={}));var Nr;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(Nr||(Nr={}));var _r;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Tool=27]="Tool",t[t.Snippet=28]="Snippet"})(_r||(_r={}));var Rr;(function(t){t[t.Deprecated=1]="Deprecated"})(Rr||(Rr={}));var Sr;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Sr||(Sr={}));var Er;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Er||(Er={}));var Cr;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Cr||(Cr={}));var Ar;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Ar||(Ar={}));var Mr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Mr||(Mr={}));var kr;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(kr||(kr={}));var Tr;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.allowOverflow=4]="allowOverflow",t[t.allowVariableLineHeights=5]="allowVariableLineHeights",t[t.allowVariableFonts=6]="allowVariableFonts",t[t.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",t[t.ariaLabel=8]="ariaLabel",t[t.ariaRequired=9]="ariaRequired",t[t.autoClosingBrackets=10]="autoClosingBrackets",t[t.autoClosingComments=11]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=13]="autoClosingDelete",t[t.autoClosingOvertype=14]="autoClosingOvertype",t[t.autoClosingQuotes=15]="autoClosingQuotes",t[t.autoIndent=16]="autoIndent",t[t.autoIndentOnPaste=17]="autoIndentOnPaste",t[t.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",t[t.automaticLayout=19]="automaticLayout",t[t.autoSurround=20]="autoSurround",t[t.bracketPairColorization=21]="bracketPairColorization",t[t.guides=22]="guides",t[t.codeLens=23]="codeLens",t[t.codeLensFontFamily=24]="codeLensFontFamily",t[t.codeLensFontSize=25]="codeLensFontSize",t[t.colorDecorators=26]="colorDecorators",t[t.colorDecoratorsLimit=27]="colorDecoratorsLimit",t[t.columnSelection=28]="columnSelection",t[t.comments=29]="comments",t[t.contextmenu=30]="contextmenu",t[t.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",t[t.cursorBlinking=32]="cursorBlinking",t[t.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",t[t.cursorStyle=34]="cursorStyle",t[t.cursorSurroundingLines=35]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",t[t.cursorWidth=37]="cursorWidth",t[t.cursorHeight=38]="cursorHeight",t[t.disableLayerHinting=39]="disableLayerHinting",t[t.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",t[t.domReadOnly=41]="domReadOnly",t[t.dragAndDrop=42]="dragAndDrop",t[t.dropIntoEditor=43]="dropIntoEditor",t[t.editContext=44]="editContext",t[t.emptySelectionClipboard=45]="emptySelectionClipboard",t[t.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",t[t.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",t[t.extraEditorClassName=48]="extraEditorClassName",t[t.fastScrollSensitivity=49]="fastScrollSensitivity",t[t.find=50]="find",t[t.fixedOverflowWidgets=51]="fixedOverflowWidgets",t[t.folding=52]="folding",t[t.foldingStrategy=53]="foldingStrategy",t[t.foldingHighlight=54]="foldingHighlight",t[t.foldingImportsByDefault=55]="foldingImportsByDefault",t[t.foldingMaximumRegions=56]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=58]="fontFamily",t[t.fontInfo=59]="fontInfo",t[t.fontLigatures=60]="fontLigatures",t[t.fontSize=61]="fontSize",t[t.fontWeight=62]="fontWeight",t[t.fontVariations=63]="fontVariations",t[t.formatOnPaste=64]="formatOnPaste",t[t.formatOnType=65]="formatOnType",t[t.glyphMargin=66]="glyphMargin",t[t.gotoLocation=67]="gotoLocation",t[t.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",t[t.hover=69]="hover",t[t.inDiffEditor=70]="inDiffEditor",t[t.inlineSuggest=71]="inlineSuggest",t[t.letterSpacing=72]="letterSpacing",t[t.lightbulb=73]="lightbulb",t[t.lineDecorationsWidth=74]="lineDecorationsWidth",t[t.lineHeight=75]="lineHeight",t[t.lineNumbers=76]="lineNumbers",t[t.lineNumbersMinChars=77]="lineNumbersMinChars",t[t.linkedEditing=78]="linkedEditing",t[t.links=79]="links",t[t.markdownImages=80]="markdownImages",t[t.matchBrackets=81]="matchBrackets",t[t.minimap=82]="minimap",t[t.mouseStyle=83]="mouseStyle",t[t.mouseWheelScrollSensitivity=84]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=85]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=86]="multiCursorMergeOverlapping",t[t.multiCursorModifier=87]="multiCursorModifier",t[t.mouseMiddleClickAction=88]="mouseMiddleClickAction",t[t.multiCursorPaste=89]="multiCursorPaste",t[t.multiCursorLimit=90]="multiCursorLimit",t[t.occurrencesHighlight=91]="occurrencesHighlight",t[t.occurrencesHighlightDelay=92]="occurrencesHighlightDelay",t[t.occurrencesHighlightFromAllProviders=93]="occurrencesHighlightFromAllProviders",t[t.overtypeCursorStyle=94]="overtypeCursorStyle",t[t.overtypeOnPaste=95]="overtypeOnPaste",t[t.overviewRulerBorder=96]="overviewRulerBorder",t[t.overviewRulerLanes=97]="overviewRulerLanes",t[t.padding=98]="padding",t[t.pasteAs=99]="pasteAs",t[t.parameterHints=100]="parameterHints",t[t.peekWidgetDefaultFocus=101]="peekWidgetDefaultFocus",t[t.placeholder=102]="placeholder",t[t.definitionLinkOpensInPeek=103]="definitionLinkOpensInPeek",t[t.quickSuggestions=104]="quickSuggestions",t[t.quickSuggestionsDelay=105]="quickSuggestionsDelay",t[t.readOnly=106]="readOnly",t[t.readOnlyMessage=107]="readOnlyMessage",t[t.renameOnType=108]="renameOnType",t[t.renderRichScreenReaderContent=109]="renderRichScreenReaderContent",t[t.renderControlCharacters=110]="renderControlCharacters",t[t.renderFinalNewline=111]="renderFinalNewline",t[t.renderLineHighlight=112]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=113]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=114]="renderValidationDecorations",t[t.renderWhitespace=115]="renderWhitespace",t[t.revealHorizontalRightPadding=116]="revealHorizontalRightPadding",t[t.roundedSelection=117]="roundedSelection",t[t.rulers=118]="rulers",t[t.scrollbar=119]="scrollbar",t[t.scrollBeyondLastColumn=120]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=121]="scrollBeyondLastLine",t[t.scrollPredominantAxis=122]="scrollPredominantAxis",t[t.selectionClipboard=123]="selectionClipboard",t[t.selectionHighlight=124]="selectionHighlight",t[t.selectionHighlightMaxLength=125]="selectionHighlightMaxLength",t[t.selectionHighlightMultiline=126]="selectionHighlightMultiline",t[t.selectedTextMatchMode=127]="selectedTextMatchMode",t[t.selectOnLineNumbers=128]="selectOnLineNumbers",t[t.showFoldingControls=129]="showFoldingControls",t[t.showUnused=130]="showUnused",t[t.snippetSuggestions=131]="snippetSuggestions",t[t.smartSelect=132]="smartSelect",t[t.smoothScrolling=133]="smoothScrolling",t[t.stickyScroll=134]="stickyScroll",t[t.stickyTabStops=135]="stickyTabStops",t[t.stopRenderingLineAfter=136]="stopRenderingLineAfter",t[t.suggest=137]="suggest",t[t.suggestFontSize=138]="suggestFontSize",t[t.suggestLineHeight=139]="suggestLineHeight",t[t.suggestOnTriggerCharacters=140]="suggestOnTriggerCharacters",t[t.suggestSelection=141]="suggestSelection",t[t.tabCompletion=142]="tabCompletion",t[t.tabIndex=143]="tabIndex",t[t.trimWhitespaceOnDelete=144]="trimWhitespaceOnDelete",t[t.unicodeHighlighting=145]="unicodeHighlighting",t[t.unusualLineTerminators=146]="unusualLineTerminators",t[t.useShadowDOM=147]="useShadowDOM",t[t.useTabStops=148]="useTabStops",t[t.wordBreak=149]="wordBreak",t[t.wordSegmenterLocales=150]="wordSegmenterLocales",t[t.wordSeparators=151]="wordSeparators",t[t.wordWrap=152]="wordWrap",t[t.wordWrapBreakAfterCharacters=153]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=154]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=155]="wordWrapColumn",t[t.wordWrapOverride1=156]="wordWrapOverride1",t[t.wordWrapOverride2=157]="wordWrapOverride2",t[t.wrappingIndent=158]="wrappingIndent",t[t.wrappingStrategy=159]="wrappingStrategy",t[t.showDeprecated=160]="showDeprecated",t[t.inertialScroll=161]="inertialScroll",t[t.inlayHints=162]="inlayHints",t[t.wrapOnEscapedLineFeeds=163]="wrapOnEscapedLineFeeds",t[t.wordWrapIndicator=164]="wordWrapIndicator",t[t.effectiveCursorStyle=165]="effectiveCursorStyle",t[t.editorClassName=166]="editorClassName",t[t.pixelRatio=167]="pixelRatio",t[t.tabFocusMode=168]="tabFocusMode",t[t.layoutInfo=169]="layoutInfo",t[t.wrappingInfo=170]="wrappingInfo",t[t.defaultColorDecorators=171]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=172]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=173]="inlineCompletionsAccessibilityVerbose",t[t.effectiveEditContext=174]="effectiveEditContext",t[t.scrollOnMiddleClick=175]="scrollOnMiddleClick",t[t.effectiveAllowVariableFonts=176]="effectiveAllowVariableFonts",t[t.doubleClickSelectsBlock=177]="doubleClickSelectsBlock",t[t.fullwidthCharacterWidth=178]="fullwidthCharacterWidth",t[t.effectiveFullwidthCharacterWidth=179]="effectiveFullwidthCharacterWidth"})(Tr||(Tr={}));var Pr;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Pr||(Pr={}));var Dr;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Dr||(Dr={}));var Fr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(Fr||(Fr={}));var qr;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(qr||(qr={}));var Ir;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Ir||(Ir={}));var Br;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Br||(Br={}));var Vr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Vr||(Vr={}));var $r;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})($r||($r={}));var Wr;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(Wr||(Wr={}));var Ur;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Ur||(Ur={}));var ss;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(ss||(ss={}));var rs;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(rs||(rs={}));var is;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(is||(is={}));var zr;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(zr||(zr={}));var Hr;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(Hr||(Hr={}));var Or;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Or||(Or={}));var jr;(function(t){t[t.AIGenerated=1]="AIGenerated"})(jr||(jr={}));var Gr;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Gr||(Gr={}));var Xr;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(Xr||(Xr={}));var Jr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Jr||(Jr={}));var Qr;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(Qr||(Qr={}));var Yr;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(Yr||(Yr={}));var Zr;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(Zr||(Zr={}));var Kr;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(Kr||(Kr={}));var ei;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(ei||(ei={}));var ti;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(ti||(ti={}));var as;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(as||(as={}));var ni;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(ni||(ni={}));var si;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(si||(si={}));var ri;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(ri||(ri={}));var ii;(function(t){t[t.Deprecated=1]="Deprecated"})(ii||(ii={}));var ai;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(ai||(ai={}));var oi;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(oi||(oi={}));var li;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(li||(li={}));var ui;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ui||(ui={}));var ci;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(ci||(ci={}));const Pt=class Pt{static chord(e,n){return _o(e,n)}};Pt.CtrlCmd=2048,Pt.Shift=1024,Pt.Alt=512,Pt.WinCtrl=256;let os=Pt;function jo(){return{editor:void 0,languages:void 0,CancellationTokenSource:Js,Emitter:Le,KeyCode:ss,KeyMod:os,Position:H,Range:V,Selection:de,SelectionDirection:as,MarkerSeverity:rs,MarkerTag:is,Uri:Qe,Token:Oo}}var hi;class Go{constructor(){this[hi]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=0){const s=this._map.get(e);if(s)return n!==0&&this.touch(s,n),s.value}set(e,n,s=0){let r=this._map.get(e);if(r)r.value=n,s!==0&&this.touch(r,s);else{switch(r={key:e,value:n,next:void 0,previous:void 0},s){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const s=this._state;let r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==s)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,n=this._state;let s=this._head;const r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(s){const i={value:s.key,done:!1};return s=s.next,i}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let s=this._head;const r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(s){const i={value:s.value,done:!1};return s=s.next,i}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let s=this._head;const r={[Symbol.iterator](){return r},[Symbol.dispose](){},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(s){const i={value:[s.key,s.value],done:!1};return s=s.next,i}else return{value:void 0,done:!0}}};return r}[(hi=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,s=this.size;for(;n&&s>e;)this._map.delete(n.key),n=n.next,s--;this._head=n,this._size=s,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,s=this.size;for(;n&&s>e;)this._map.delete(n.key),n=n.previous,s--;this._tail=n,this._size=s,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,s=e.previous;if(!n||!s)throw new Error("Invalid list");n.previous=s,s.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const s=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(s.previous=r,r.next=s),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const s=e.next,r=e.previous;e===this._head?(s.previous=void 0,this._head=s):(s.previous=r,r.next=s),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,s)=>{e.push([s,n])}),e}fromJSON(e){this.clear();for(const[n,s]of e)this.set(n,s)}}class Xo extends Go{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Jo extends Xo{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class Qo{constructor(){this.map=new Map}add(e,n){let s=this.map.get(e);s||(s=new Set,this.map.set(e,s)),s.add(n)}delete(e,n){const s=this.map.get(e);s&&(s.delete(n),s.size===0&&this.map.delete(e))}forEach(e,n){const s=this.map.get(e);s&&s.forEach(n)}}new Jo(10);var mi;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(mi||(mi={}));var fi;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(fi||(fi={}));var gi;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(gi||(gi={}));var di;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(di||(di={}));function Yo(t){if(!t||t.length===0)return!1;for(let e=0,n=t.length;e<n;e++){const s=t.charCodeAt(e);if(s===10)return!0;if(s===92){if(e++,e>=n)break;const r=t.charCodeAt(e);if(r===110||r===114||r===87)return!0}}return!1}function Zo(t,e,n,s,r){if(s===0)return!0;const i=e.charCodeAt(s-1);if(t.get(i)!==0||i===13||i===10)return!0;if(r>0){const a=e.charCodeAt(s);if(t.get(a)!==0)return!0}return!1}function Ko(t,e,n,s,r){if(s+r===n)return!0;const i=e.charCodeAt(s+r);if(t.get(i)!==0||i===13||i===10)return!0;if(r>0){const a=e.charCodeAt(s+r-1);if(t.get(a)!==0)return!0}return!1}function el(t,e,n,s,r){return Zo(t,e,n,s,r)&&Ko(t,e,n,s,r)}class tl{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let s;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(s=this._searchRegex.exec(e),!s))return null;const r=s.index,i=s[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){to(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||el(this._wordSeparators,e,n,r,i))return s}while(s);return null}}const nl="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function sl(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of nl)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const pi=sl();function bi(t){let e=pi;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const wi=new Aa;wi.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ls(t,e,n,s,r){if(e=bi(e),r||(r=on.first(wi)),n.length>r.maxLen){let c=t-r.maxLen/2;return c<0?c=0:s+=c,n=n.substring(c,t+r.maxLen/2),ls(t,e,n,s,r)}const i=Date.now(),a=t-1-s;let l=-1,u=null;for(let c=1;!(Date.now()-i>=r.timeBudget);c++){const h=a-r.windowSize*c;e.lastIndex=Math.max(0,h);const m=rl(e,n,a,l);if(!m&&u||(u=m,h<=0))break;l=h}if(u){const c={word:u[0],startColumn:s+1+u.index,endColumn:s+1+u.index+u[0].length};return e.lastIndex=0,c}return null}function rl(t,e,n,s){let r;for(;r=t.exec(e);){const i=r.index||0;if(i<=n&&t.lastIndex>=n)return r;if(s>0&&i>s)return null}return null}class il{static computeUnicodeHighlights(e,n,s){const r=s?s.startLineNumber:1,i=s?s.endLineNumber:e.getLineCount(),a=new xi(n),l=a.getCandidateCodePoints();let u;l==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${al(Array.from(l))}`,"g");const c=new tl(null,u),h=[];let m=!1,f,p=0,d=0,g=0;e:for(let w=r,L=i;w<=L;w++){const y=e.getLineContent(w),x=y.length;c.reset(0);do if(f=c.next(y),f){let _=f.index,E=f.index+f[0].length;if(_>0){const R=y.charCodeAt(_-1);Ie(R)&&_--}if(E+1<x){const R=y.charCodeAt(E-1);Ie(R)&&E++}const C=y.substring(_,E);let N=ls(_+1,pi,y,0);N&&N.endColumn<=_+1&&(N=null);const v=a.shouldHighlightNonBasicASCII(C,N?N.word:null);if(v!==0){if(v===3?p++:v===2?d++:v===1?g++:Na(),h.length>=1e3){m=!0;break e}h.push(new V(w,_+1,w,E+1))}}while(f)}return{ranges:h,hasMore:m,ambiguousCharacterCount:p,invisibleCharacterCount:d,nonBasicAsciiCharacterCount:g}}static computeUnicodeHighlightReason(e,n){const s=new xi(n);switch(s.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),a=s.ambiguousCharacters.getPrimaryConfusable(i),l=Ht.getLocales().filter(u=>!Ht.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function al(t,e){return`[${Qa(t.map(s=>String.fromCodePoint(s)).join(""))}]`}class xi{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ht.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of Ot.codePoints)yi(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const s=e.codePointAt(0);if(this.allowedCodePoints.has(s))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(n)for(const a of n){const l=a.codePointAt(0),u=so(a);r=r||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!Ot.isInvisibleCharacter(l)&&(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!yi(e)&&Ot.isInvisibleCharacter(s)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(s)?3:0}}function yi(t){return t===" "||t===`8`||t===" "}let Xt=class{constructor(e,n,s){this.changes=e,this.moves=n,this.hitTimeout=s}},Li=class{constructor(e,n){this.lineRangeMapping=e,this.changes=n}};function ol(t,e,n=(s,r)=>s===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let s=0,r=t.length;s<r;s++)if(!n(t[s],e[s]))return!1;return!0}function*ll(t,e){let n,s;for(const r of t)s!==void 0&&e(s,r)?n.push(r):(n&&(yield n),n=[r]),s=r;n&&(yield n)}function ul(t,e){for(let n=0;n<=t.length;n++)e(n===0?void 0:t[n-1],n===t.length?void 0:t[n])}function cl(t,e){for(let n=0;n<t.length;n++)e(n===0?void 0:t[n-1],t[n],n+1===t.length?void 0:t[n+1])}function hl(t,e){for(const n of e)t.push(n)}var us;(function(t){function e(i){return i<0}t.isLessThan=e;function n(i){return i<=0}t.isLessThanOrEqual=n;function s(i){return i>0}t.isGreaterThan=s;function r(i){return i===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(us||(us={}));function pt(t,e){return(n,s)=>e(t(n),t(s))}const Jt=(t,e)=>t-e;function ml(t){return(e,n)=>-t(e,n)}const Dt=class Dt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new Dt(n=>this.iterate(s=>e(s)?n(s):!0))}map(e){return new Dt(n=>this.iterate(s=>n(e(s))))}findLast(e){let n;return this.iterate(s=>(e(s)&&(n=s),!0)),n}findLastMaxBy(e){let n,s=!0;return this.iterate(r=>((s||us.isGreaterThan(e(r,n)))&&(s=!1,n=r),!0)),n}};Dt.empty=new Dt(e=>{});let vi=Dt,W=class ge{static fromTo(e,n){return new ge(e,n)}static addRange(e,n){let s=0;for(;s<n.length&&n[s].endExclusive<e.start;)s++;let r=s;for(;r<n.length&&n[r].start<=e.endExclusive;)r++;if(s===r)n.splice(s,0,e);else{const i=Math.min(e.start,n[s].start),a=Math.max(e.endExclusive,n[r-1].endExclusive);n.splice(s,r-s,new ge(i,a))}}static tryCreate(e,n){if(!(e>n))return new ge(e,n)}static ofLength(e){return new ge(0,e)}static ofStartAndLength(e,n){return new ge(e,e+n)}static emptyAt(e){return new ge(e,e)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new K(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new ge(this.start+e,this.endExclusive+e)}deltaStart(e){return new ge(this.start+e,this.endExclusive)}deltaEnd(e){return new ge(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new ge(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),s=Math.min(this.endExclusive,e.endExclusive);if(n<=s)return new ge(n,s)}intersectionLength(e){const n=Math.max(this.start,e.start),s=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,s-n)}intersects(e){const n=Math.max(this.start,e.start),s=Math.min(this.endExclusive,e.endExclusive);return n<s}intersectsOrTouches(e){const n=Math.max(this.start,e.start),s=Math.min(this.endExclusive,e.endExclusive);return n<=s}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new K(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new K(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}joinRightTouching(e){if(this.endExclusive!==e.start)throw new K(`Invalid join: ${this.toString()} and ${e.toString()}`);return new ge(this.start,e.endExclusive)}withMargin(e,n){return n===void 0&&(n=e),new ge(this.start-e,this.endExclusive+n)}};function bt(t,e){const n=wt(t,e);return n===-1?void 0:t[n]}function wt(t,e,n=0,s=t.length){let r=n,i=s;for(;r<i;){const a=Math.floor((r+i)/2);e(t[a])?r=a+1:i=a}return r-1}function fl(t,e){const n=cs(t,e);return n===t.length?void 0:t[n]}function cs(t,e,n=0,s=t.length){let r=n,i=s;for(;r<i;){const a=Math.floor((r+i)/2);e(t[a])?i=a:r=a+1}return r}const Mn=class Mn{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(Mn.assertInvariants){if(this._prevFindLastPredicate){for(const s of this._array)if(this._prevFindLastPredicate(s)&&!e(s))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=wt(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};Mn.assertInvariants=!1;let wn=Mn,O=(ae=class{static ofLength(e,n){return new ae(e,e+n)}static fromRange(e){return new ae(e.startLineNumber,e.endLineNumber)}static fromRangeInclusive(e){return new ae(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let n=new xn(e[0].slice());for(let s=1;s<e.length;s++)n=n.getUnion(new xn(e[s].slice()));return n.ranges}static join(e){if(e.length===0)throw new K("lineRanges cannot be empty");let n=e[0].startLineNumber,s=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)n=Math.min(n,e[r].startLineNumber),s=Math.max(s,e[r].endLineNumberExclusive);return new ae(n,s)}static deserialize(e){return new ae(e[0],e[1])}constructor(e,n){if(e>n)throw new K(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new ae(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new ae(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new ae(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),s=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=s)return new ae(n,s)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new V(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new V(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let s=this.startLineNumber;s<this.endLineNumberExclusive;s++)n.push(e(s));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new W(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(e,n){return new ae(this.startLineNumber-e,this.endLineNumberExclusive+n)}},ae.compareByStart=pt(e=>e.startLineNumber,Jt),ae),xn=class qt{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;const n=cs(this._normalizedRanges,r=>r.endLineNumberExclusive>=e.startLineNumber),s=wt(this._normalizedRanges,r=>r.startLineNumber<=e.endLineNumberExclusive)+1;if(n===s)this._normalizedRanges.splice(n,0,e);else if(n===s-1){const r=this._normalizedRanges[n];this._normalizedRanges[n]=r.join(e)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[s-1]).join(e);this._normalizedRanges.splice(n,s-n,r)}}contains(e){const n=bt(this._normalizedRanges,s=>s.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=bt(this._normalizedRanges,s=>s.startLineNumber<e.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let s=0,r=0,i=null;for(;s<this._normalizedRanges.length||r<e._normalizedRanges.length;){let a=null;if(s<this._normalizedRanges.length&&r<e._normalizedRanges.length){const l=this._normalizedRanges[s],u=e._normalizedRanges[r];l.startLineNumber<u.startLineNumber?(a=l,s++):(a=u,r++)}else s<this._normalizedRanges.length?(a=this._normalizedRanges[s],s++):(a=e._normalizedRanges[r],r++);i===null?i=a:i.endLineNumberExclusive>=a.startLineNumber?i=new O(i.startLineNumber,Math.max(i.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(i),i=a)}return i!==null&&n.push(i),new qt(n)}subtractFrom(e){const n=cs(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),s=wt(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(n===s)return new qt([e]);const r=[];let i=e.startLineNumber;for(let a=n;a<s;a++){const l=this._normalizedRanges[a];l.startLineNumber>i&&r.push(new O(i,l.startLineNumber)),i=l.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new O(i,e.endLineNumberExclusive)),new qt(r)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const n=[];let s=0,r=0;for(;s<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[s],a=e._normalizedRanges[r],l=i.intersect(a);l&&!l.isEmpty&&n.push(l),i.endLineNumberExclusive<a.endLineNumberExclusive?s++:r++}return new qt(n)}getWithDelta(e){return new qt(this._normalizedRanges.map(n=>n.delta(e)))}};const Re=class Re{static betweenPositions(e,n){return e.lineNumber===n.lineNumber?new Re(0,n.column-e.column):new Re(n.lineNumber-e.lineNumber,n.column-1)}static fromPosition(e){return new Re(e.lineNumber-1,e.column-1)}static ofRange(e){return Re.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let n=0,s=0;for(const r of e)r===`9`?(n++,s=0):s+=r.length;return new Re(n,s)}constructor(e,n){this.lineCount=e,this.columnCount=n}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}add(e){return e.lineCount===0?new Re(this.lineCount,this.columnCount+e.columnCount):new Re(this.lineCount+e.lineCount,e.columnCount)}createRange(e){return this.lineCount===0?new V(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new V(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new V(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return O.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new H(e.lineNumber,e.column+this.columnCount):new H(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};Re.zero=new Re(0,0);let Ve=Re;class gl{getOffsetRange(e){return new W(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return V.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new Ye.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new Ye.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){const n=e.replacements.map(s=>this.getTextReplacement(s));return new Ye.deps.TextEdit(n)}}const Rs=class Rs{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};Rs._deps=void 0;let Ye=Rs;function dl(t){Ye._deps=t}class Ni extends gl{constructor(e){super(),this.text=e}get lineStartOffsetByLineIdx(){return this._lineStartOffsetByLineIdx||this._computeLineOffsets(),this._lineStartOffsetByLineIdx}get lineEndOffsetByLineIdx(){return this._lineEndOffsetByLineIdx||this._computeLineOffsets(),this._lineEndOffsetByLineIdx}_computeLineOffsets(){this._lineStartOffsetByLineIdx=[],this._lineEndOffsetByLineIdx=[],this._lineStartOffsetByLineIdx.push(0);for(let e=0;e<this.text.length;e++)this.text.charAt(e)===`10`&&(this._lineStartOffsetByLineIdx.push(e+1),e>0&&this.text.charAt(e-1)==="\r"?this._lineEndOffsetByLineIdx.push(e-1):this._lineEndOffsetByLineIdx.push(e));this._lineEndOffsetByLineIdx.push(this.text.length)}getOffset(e){const n=this._validatePosition(e);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(e){if(e.lineNumber<1)return new H(1,1);const n=this.textLength.lineCount+1;if(e.lineNumber>n){const r=this.getLineLength(n);return new H(n,r+1)}if(e.column<1)return new H(e.lineNumber,1);const s=this.getLineLength(e.lineNumber);return e.column-1>s?new H(e.lineNumber,s+1):e}getPosition(e){const n=wt(this.lineStartOffsetByLineIdx,i=>i<=e),s=n+1,r=e-this.lineStartOffsetByLineIdx[n]+1;return new H(s,r)}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new Ye.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}}class _i{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new H(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new V(e,1,e,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new Ni(this.getValue())),this._transformer}getLineAt(e){return this.getValueOfRange(new V(e,1,e,Number.MAX_SAFE_INTEGER))}}class pl extends _i{constructor(e,n){_a(n>=1),super(),this._getLineContent=e,this._lineCount=n}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let n=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let s=e.startLineNumber+1;s<e.endLineNumber;s++)n+=`11`+this._getLineContent(s);return n+=`12`+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1),n}getLineLength(e){return this._getLineContent(e).length}get length(){const e=this._getLineContent(this._lineCount);return new Ve(this._lineCount-1,e.length)}}let xt=class extends pl{constructor(e){super(n=>e[n-1],e.length)}};class yn extends _i{constructor(e){super(),this.value=e,this._t=new Ni(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}getTransformer(){return this._t}}class yt{static fromStringEdit(e,n){const s=e.replacements.map(r=>be.fromStringReplacement(r,n));return new yt(s)}static fromParallelReplacementsUnsorted(e){const n=e.slice().sort(pt(s=>s.range,V.compareRangesUsingStarts));return new yt(n)}constructor(e){this.replacements=e,$t(()=>Dn(e,(n,s)=>n.range.getEndPosition().isBeforeOrEqual(s.range.getStartPosition())))}normalize(){const e=[];for(const n of this.replacements)if(e.length>0&&e[e.length-1].range.getEndPosition().equals(n.range.getStartPosition())){const s=e[e.length-1];e[e.length-1]=new be(s.range.plusRange(n.range),s.text+n.text)}else n.isEmpty||e.push(n);return new yt(e)}mapPosition(e){let n=0,s=0,r=0;for(const i of this.replacements){const a=i.range.getStartPosition();if(e.isBeforeOrEqual(a))break;const l=i.range.getEndPosition(),u=Ve.ofText(i.text);if(e.isBefore(l)){const c=new H(a.lineNumber+n,a.column+(a.lineNumber+n===s?r:0)),h=u.addToPosition(c);return Ln(c,h)}a.lineNumber+n!==s&&(r=0),n+=u.lineCount-(i.range.endLineNumber-i.range.startLineNumber),u.lineCount===0?l.lineNumber!==a.lineNumber?r+=u.columnCount-(l.column-1):r+=u.columnCount-(l.column-a.column):r=u.columnCount,s=l.lineNumber+n}return new H(e.lineNumber+n,e.column+(e.lineNumber+n===s?r:0))}mapRange(e){function n(a){return a instanceof H?a:a.getStartPosition()}function s(a){return a instanceof H?a:a.getEndPosition()}const r=n(this.mapPosition(e.getStartPosition())),i=s(this.mapPosition(e.getEndPosition()));return Ln(r,i)}apply(e){let n="",s=new H(1,1);for(const i of this.replacements){const a=i.range,l=a.getStartPosition(),u=a.getEndPosition(),c=Ln(s,l);c.isEmpty()||(n+=e.getValueOfRange(c)),n+=i.text,s=u}const r=Ln(s,e.endPositionExclusive);return r.isEmpty()||(n+=e.getValueOfRange(r)),n}applyToString(e){const n=new yn(e);return this.apply(n)}getNewRanges(){const e=[];let n=0,s=0,r=0;for(const i of this.replacements){const a=Ve.ofText(i.text),l=H.lift({lineNumber:i.range.startLineNumber+s,column:i.range.startColumn+(i.range.startLineNumber===n?r:0)}),u=a.createRange(l);e.push(u),s=u.endLineNumber-i.range.endLineNumber,r=u.endColumn-i.range.endColumn,n=i.range.endLineNumber}return e}toReplacement(e){if(this.replacements.length===0)throw new K;if(this.replacements.length===1)return this.replacements[0];const n=this.replacements[0].range.getStartPosition(),s=this.replacements[this.replacements.length-1].range.getEndPosition();let r="";for(let i=0;i<this.replacements.length;i++){const a=this.replacements[i];if(r+=a.text,i<this.replacements.length-1){const l=this.replacements[i+1],u=V.fromPositions(a.range.getEndPosition(),l.range.getStartPosition()),c=e.getValueOfRange(u);r+=c}}return new be(V.fromPositions(n,s),r)}toString(e){return e===void 0?this.replacements.map(n=>n.toString()).join(`13`):typeof e=="string"?this.toString(new yn(e)):this.replacements.length===0?"":this.replacements.map(n=>{const r=e.getValueOfRange(n.range),i=V.fromPositions(new H(Math.max(1,n.range.startLineNumber-1),1),n.range.getStartPosition());let a=e.getValueOfRange(i);a.length>10&&(a="..."+a.substring(a.length-10));const l=V.fromPositions(n.range.getEndPosition(),new H(n.range.endLineNumber+1,1));let u=e.getValueOfRange(l);u.length>10&&(u=u.substring(0,10)+"...");let c=r;if(c.length>10){const m=Math.floor(5);c=c.substring(0,m)+"..."+c.substring(c.length-m)}let h=n.text;if(h.length>10){const m=Math.floor(5);h=h.substring(0,m)+"..."+h.substring(h.length-m)}return c.length===0?`${a}❰${h}❱${u}`:`${a}❰${c}↦${h}❱${u}`}).join(`14`)}}class be{static joinReplacements(e,n){if(e.length===0)throw new K;if(e.length===1)return e[0];const s=e[0].range.getStartPosition(),r=e[e.length-1].range.getEndPosition();let i="";for(let a=0;a<e.length;a++){const l=e[a];if(i+=l.text,a<e.length-1){const u=e[a+1],c=V.fromPositions(l.range.getEndPosition(),u.range.getStartPosition()),h=n.getValueOfRange(c);i+=h}}return new be(V.fromPositions(s,r),i)}static fromStringReplacement(e,n){return new be(n.getTransformer().getRange(e.replaceRange),e.newText)}static delete(e){return new be(e,"")}constructor(e,n){this.range=e,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(e,n){return e.range.equalsRange(n.range)&&e.text===n.text}equals(e){return be.equals(this,e)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r15`,`16`),s=this.text.replaceAll(`\r17`,`18`),r=Hn(n,s),i=Ve.ofText(n.substring(0,r)).addToPosition(this.range.getStartPosition()),a=s.substring(r),l=V.fromPositions(i,this.range.getEndPosition());return new be(l,a)}removeCommonSuffix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r19`,`20`),s=this.text.replaceAll(`\r21`,`22`),r=On(n,s),i=Ve.ofText(n.substring(0,n.length-r)).addToPosition(this.range.getStartPosition()),a=s.substring(0,s.length-r),l=V.fromPositions(this.range.getStartPosition(),i);return new be(l,a)}toString(){const e=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}function Ln(t,e){if(t.lineNumber===e.lineNumber&&t.column===Number.MAX_SAFE_INTEGER)return V.fromPositions(e,e);if(!t.isBeforeOrEqual(e))throw new K("start must be before end");return new V(t.lineNumber,t.column,e.lineNumber,e.column)}let Ze=class It{static inverse(e,n,s){const r=[];let i=1,a=1;for(const u of e){const c=new It(new O(i,u.original.startLineNumber),new O(a,u.modified.startLineNumber));c.modified.isEmpty||r.push(c),i=u.original.endLineNumberExclusive,a=u.modified.endLineNumberExclusive}const l=new It(new O(i,n+1),new O(a,s+1));return l.modified.isEmpty||r.push(l),r}static clip(e,n,s){const r=[];for(const i of e){const a=i.original.intersect(n),l=i.modified.intersect(s);a&&!a.isEmpty&&l&&!l.isEmpty&&r.push(new It(a,l))}return r}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new It(this.modified,this.original)}join(e){return new It(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(e&&n)return new we(e,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new K("not a valid diff");return new we(new V(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new V(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new we(new V(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new V(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,n){if(Ri(this.original.endLineNumberExclusive,e)&&Ri(this.modified.endLineNumberExclusive,n))return new we(new V(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new V(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new we(V.fromPositions(new H(this.original.startLineNumber,1),Lt(new H(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),V.fromPositions(new H(this.modified.startLineNumber,1),Lt(new H(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new we(V.fromPositions(Lt(new H(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),Lt(new H(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),V.fromPositions(Lt(new H(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),Lt(new H(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new K}};function Lt(t,e){if(t.lineNumber<1)return new H(1,1);if(t.lineNumber>e.length)return new H(e.length,e[e.length-1].length+1);const n=e[t.lineNumber-1];return t.column>n.length+1?new H(t.lineNumber,n.length+1):t}function Ri(t,e){return t>=1&&t<=e.length}let vt=class kn extends Ze{static toTextEdit(e,n){const s=[];for(const r of e)for(const i of r.innerChanges??[]){const a=i.toTextEdit(n);s.push(a)}return new yt(s)}static fromRangeMappings(e){const n=O.join(e.map(r=>O.fromRangeInclusive(r.originalRange))),s=O.join(e.map(r=>O.fromRangeInclusive(r.modifiedRange)));return new kn(n,s,e)}constructor(e,n,s){super(e,n),this.innerChanges=s}flip(){return new kn(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new kn(this.original,this.modified,[this.toRangeMapping()])}},we=class Ss{static fromEdit(e){const n=e.getNewRanges();return e.replacements.map((r,i)=>new Ss(r.range,n[i]))}static assertSorted(e){for(let n=1;n<e.length;n++){const s=e[n-1],r=e[n];if(!(s.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&s.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new K("Range mappings must be sorted")}}constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Ss(this.modifiedRange,this.originalRange)}toTextEdit(e){const n=e.getValueOfRange(this.modifiedRange);return new be(this.originalRange,n)}};function vn(t,e,n,s=!1){const r=[];for(const i of ll(t.map(a=>bl(a,e,n)),(a,l)=>a.original.intersectsOrTouches(l.original)||a.modified.intersectsOrTouches(l.modified))){const a=i[0],l=i[i.length-1];r.push(new vt(a.original.join(l.original),a.modified.join(l.modified),i.map(u=>u.innerChanges[0])))}return $t(()=>!s&&r.length>0&&(r[0].modified.startLineNumber!==r[0].original.startLineNumber||n.length.lineCount-r[r.length-1].modified.endLineNumberExclusive!==e.length.lineCount-r[r.length-1].original.endLineNumberExclusive)?!1:Dn(r,(i,a)=>a.original.startLineNumber-i.original.endLineNumberExclusive===a.modified.startLineNumber-i.modified.endLineNumberExclusive&&i.original.endLineNumberExclusive<a.original.startL
Conversation
PartialSign in to start AI sessions.
Task checklist
- Application shell deployed
- Persistent projects
- Agent runtime
- Sandboxed terminal
Execution activity
No agent sessions. Git HEAD 1c27633 on master.
Approval requests
None pending.