@vtj/pro 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +32 -32
  9. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +4 -4
  10. package/dist/assets/{@element-plus-hb5PCPZy.js → @element-plus-D6n2RTX_.js} +1 -1
  11. package/dist/assets/@floating-ui-CYeB_Mhp.js +1 -0
  12. package/dist/assets/@vue-pheekl12.js +25 -0
  13. package/dist/assets/@vueuse-4_NYtZCP.js +1 -0
  14. package/dist/assets/{Editor-BKlikwSl-4GZCoIzC.js → Editor-BKlikwSl-SVzFnpo8.js} +2 -2
  15. package/dist/assets/{css.worker-CKheHE4x.js → css.worker-CilUBJBN.js} +12 -12
  16. package/dist/assets/{editor.worker-DvDP0gnj.js → editor.worker-BJZ5cnST.js} +1 -1
  17. package/dist/assets/{element-plus-Yl9-B9am.js → element-plus-DdvN1jqD.js} +4 -4
  18. package/dist/assets/{html.worker-BZndpN3i.js → html.worker-CNHktepm.js} +10 -10
  19. package/dist/assets/index-D9EpXQVL.css +1 -0
  20. package/dist/assets/{index-C4mYQDHS.js → index-DBWV64ks.js} +2 -2
  21. package/dist/assets/index-DEA9g1Ih.js +1 -0
  22. package/dist/assets/index-TXS29-Ip.js +199 -0
  23. package/dist/assets/{json.worker-CBN7s-rZ.js → json.worker-CV0MTB3L.js} +2 -2
  24. package/dist/assets/lodash-es-D0J8aJCM.js +1 -0
  25. package/dist/assets/{monaco-editor-D2tIhfZq.js → monaco-editor-C8KYOXSh.js} +260 -260
  26. package/dist/assets/preview-aLWd6TgM.js +2 -0
  27. package/dist/assets/{ts.worker-E_ED-foG.js → ts.worker-mZI20X7J.js} +66 -66
  28. package/dist/assets/{vue-CYXSepfi.js → vue-CjubWy22.js} +3 -3
  29. package/dist/assets/{vue-router-Cl6Ao8EQ.js → vue-router-D533GGmG.js} +1 -1
  30. package/dist/extension/index.umd.js +1 -0
  31. package/dist/extension/style.css +1 -0
  32. package/dist/index.html +9 -9
  33. package/package.json +10 -10
  34. package/src/extension.ts +46 -0
  35. package/src/index.ts +1 -0
  36. package/dist/assets/@floating-ui-o_LpjUj1.js +0 -1
  37. package/dist/assets/@vue-D7cHi7PH.js +0 -25
  38. package/dist/assets/@vueuse-cyfiBh8g.js +0 -1
  39. package/dist/assets/index-Bi40hQZn.js +0 -199
  40. package/dist/assets/index-DKg2x8_E.js +0 -1
  41. package/dist/assets/index-DWzxOdcl.css +0 -1
  42. package/dist/assets/lodash-es-DKmLY3Gz.js +0 -1
  43. package/dist/assets/preview-pbOn43-7.js +0 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  `+t.stack):new Error(t.message+`
4
4
 
5
- `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Fa=new Pa;function Dr(e){Ia(e)||Fa.onUnexpectedError(e)}function Vr(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:ut.isErrorNoTelemetry(e)}}return e}const kn="Canceled";function Ia(e){return e instanceof Da?!0:e instanceof Error&&e.name===kn&&e.message===kn}class Da extends Error{constructor(){super(kn),this.name=this.message}}class ut extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ut)return t;const n=new ut;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class je extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,je.prototype)}}function Va(e,t){const n=this;let r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var Zt;(function(e){function t(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(b){yield b}e.single=i;function s(b){return t(b)?b:i(b)}e.wrap=s;function a(b){return b||n}e.from=a;function*o(b){for(let L=b.length-1;L>=0;L--)yield b[L]}e.reverse=o;function l(b){return!b||b[Symbol.iterator]().next().done===!0}e.isEmpty=l;function u(b){return b[Symbol.iterator]().next().value}e.first=u;function f(b,L){for(const S of b)if(L(S))return!0;return!1}e.some=f;function h(b,L){for(const S of b)if(L(S))return S}e.find=h;function*d(b,L){for(const S of b)L(S)&&(yield S)}e.filter=d;function*g(b,L){let S=0;for(const _ of b)yield L(_,S++)}e.map=g;function*m(...b){for(const L of b)yield*L}e.concat=m;function v(b,L,S){let _=S;for(const N of b)_=L(_,N);return _}e.reduce=v;function*p(b,L,S=b.length){for(L<0&&(L+=b.length),S<0?S+=b.length:S>b.length&&(S=b.length);L<S;L++)yield b[L]}e.slice=p;function x(b,L=Number.POSITIVE_INFINITY){const S=[];if(L===0)return[S,b];const _=b[Symbol.iterator]();for(let N=0;N<L;N++){const A=_.next();if(A.done)return[S,e.empty()];S.push(A.value)}return[S,{[Symbol.iterator](){return _}}]}e.consume=x;async function y(b){const L=[];for await(const S of b)L.push(S);return Promise.resolve(L)}e.asyncToArray=y})(Zt||(Zt={}));function cc(e){return e}function fc(e,t){}function Or(e){if(Zt.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Oa(...e){return Yt(()=>Or(e))}function Yt(e){return{dispose:Va(()=>{e()})}}class ct{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{Or(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?ct.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(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}}ct.DISABLE_DISPOSED_WARNING=!1;class Mt{constructor(){this._store=new ct,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Mt.None=Object.freeze({dispose(){}});class Q{constructor(t){this.element=t,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class ja{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let t=this._first;for(;t!==Q.Undefined;){const n=t.next;t.prev=Q.Undefined,t.next=Q.Undefined,t=n}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new Q(t);if(this._first===Q.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==Q.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Q.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Q.Undefined&&t.next!==Q.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Q.Undefined&&t.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):t.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):t.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Q.Undefined;)yield t.element,t=t.next}}const qa=globalThis.performance&&typeof globalThis.performance.now=="function";class Kt{static create(t){return new Kt(t)}constructor(t){this._now=qa&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),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}}var En;(function(e){e.None=()=>Mt.None;function t(C,w){return h(C,()=>{},0,void 0,!0,void 0,w)}e.defer=t;function n(C){return(w,T=null,F)=>{let V=!1,O;return O=C(R=>{if(!V)return O?O.dispose():V=!0,w.call(T,R)},null,F),V&&O.dispose(),O}}e.once=n;function r(C,w,T){return u((F,V=null,O)=>C(R=>F.call(V,w(R)),null,O),T)}e.map=r;function i(C,w,T){return u((F,V=null,O)=>C(R=>{w(R),F.call(V,R)},null,O),T)}e.forEach=i;function s(C,w,T){return u((F,V=null,O)=>C(R=>w(R)&&F.call(V,R),null,O),T)}e.filter=s;function a(C){return C}e.signal=a;function o(...C){return(w,T=null,F)=>{const V=Oa(...C.map(O=>O(R=>w.call(T,R))));return f(V,F)}}e.any=o;function l(C,w,T,F){let V=T;return r(C,O=>(V=w(V,O),V),F)}e.reduce=l;function u(C,w){let T;const F={onWillAddFirstListener(){T=C(V.fire,V)},onDidRemoveLastListener(){T?.dispose()}},V=new Ae(F);return w?.add(V),V.event}function f(C,w){return w instanceof Array?w.push(C):w&&w.add(C),C}function h(C,w,T=100,F=!1,V=!1,O,R){let k,P,D,B=0,U;const G={leakWarningThreshold:O,onWillAddFirstListener(){k=C(le=>{B++,P=w(P,le),F&&!D&&(de.fire(P),P=void 0),U=()=>{const be=P;P=void 0,D=void 0,(!F||B>1)&&de.fire(be),B=0},typeof T=="number"?(clearTimeout(D),D=setTimeout(U,T)):D===void 0&&(D=0,queueMicrotask(U))})},onWillRemoveListener(){V&&B>0&&U?.()},onDidRemoveLastListener(){U=void 0,k.dispose()}},de=new Ae(G);return R?.add(de),de.event}e.debounce=h;function d(C,w=0,T){return e.debounce(C,(F,V)=>F?(F.push(V),F):[V],w,void 0,!0,void 0,T)}e.accumulate=d;function g(C,w=(F,V)=>F===V,T){let F=!0,V;return s(C,O=>{const R=F||!w(O,V);return F=!1,V=O,R},T)}e.latch=g;function m(C,w,T){return[e.filter(C,w,T),e.filter(C,F=>!w(F),T)]}e.split=m;function v(C,w=!1,T=[],F){let V=T.slice(),O=C(P=>{V?V.push(P):k.fire(P)});F&&F.add(O);const R=()=>{V?.forEach(P=>k.fire(P)),V=null},k=new Ae({onWillAddFirstListener(){O||(O=C(P=>k.fire(P)),F&&F.add(O))},onDidAddFirstListener(){V&&(w?setTimeout(R):R())},onDidRemoveLastListener(){O&&O.dispose(),O=null}});return F&&F.add(k),k.event}e.buffer=v;function p(C,w){return(F,V,O)=>{const R=w(new y);return C(function(k){const P=R.evaluate(k);P!==x&&F.call(V,P)},void 0,O)}}e.chain=p;const x=Symbol("HaltChainable");class y{constructor(){this.steps=[]}map(w){return this.steps.push(w),this}forEach(w){return this.steps.push(T=>(w(T),T)),this}filter(w){return this.steps.push(T=>w(T)?T:x),this}reduce(w,T){let F=T;return this.steps.push(V=>(F=w(F,V),F)),this}latch(w=(T,F)=>T===F){let T=!0,F;return this.steps.push(V=>{const O=T||!w(V,F);return T=!1,F=V,O?V:x}),this}evaluate(w){for(const T of this.steps)if(w=T(w),w===x)break;return w}}function b(C,w,T=F=>F){const F=(...k)=>R.fire(T(...k)),V=()=>C.on(w,F),O=()=>C.removeListener(w,F),R=new Ae({onWillAddFirstListener:V,onDidRemoveLastListener:O});return R.event}e.fromNodeEventEmitter=b;function L(C,w,T=F=>F){const F=(...k)=>R.fire(T(...k)),V=()=>C.addEventListener(w,F),O=()=>C.removeEventListener(w,F),R=new Ae({onWillAddFirstListener:V,onDidRemoveLastListener:O});return R.event}e.fromDOMEventEmitter=L;function S(C){return new Promise(w=>n(C)(w))}e.toPromise=S;function _(C){const w=new Ae;return C.then(T=>{w.fire(T)},()=>{w.fire(void 0)}).finally(()=>{w.dispose()}),w.event}e.fromPromise=_;function N(C,w,T){return w(T),C(F=>w(F))}e.runAndSubscribe=N;class A{constructor(w,T){this._observable=w,this._counter=0,this._hasChanged=!1;const F={onWillAddFirstListener:()=>{w.addObserver(this)},onDidRemoveLastListener:()=>{w.removeObserver(this)}};this.emitter=new Ae(F),T&&T.add(this.emitter)}beginUpdate(w){this._counter++}handlePossibleChange(w){}handleChange(w,T){this._hasChanged=!0}endUpdate(w){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function M(C,w){return new A(C,w).emitter.event}e.fromObservable=M;function I(C){return(w,T,F)=>{let V=0,O=!1;const R={beginUpdate(){V++},endUpdate(){V--,V===0&&(C.reportChanges(),O&&(O=!1,w.call(T)))},handlePossibleChange(){},handleChange(){O=!0}};C.addObserver(R),C.reportChanges();const k={dispose(){C.removeObserver(R)}};return F instanceof ct?F.add(k):Array.isArray(F)&&F.push(k),k}}e.fromObservableLight=I})(En||(En={}));class ft{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${ft._idPool++}`,ft.all.add(this)}start(t){this._stopWatch=new Kt,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}ft.all=new Set,ft._idPool=0;let Ba=-1;class Ua{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let s,a=0;for(const[o,l]of this._stacks)(!s||a<l)&&(s=o,a=l);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`),console.warn(s)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}}class Mn{static create(){var t;return new Mn((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
5
+ `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Fa=new Pa;function Dr(e){Ia(e)||Fa.onUnexpectedError(e)}function Vr(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:ut.isErrorNoTelemetry(e)}}return e}const kn="Canceled";function Ia(e){return e instanceof Da?!0:e instanceof Error&&e.name===kn&&e.message===kn}class Da extends Error{constructor(){super(kn),this.name=this.message}}class ut extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ut)return t;const n=new ut;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class je extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,je.prototype)}}function Va(e,t){const n=this;let r=!1,i;return function(){return r||(r=!0,i=e.apply(n,arguments)),i}}var Zt;(function(e){function t(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(b){yield b}e.single=i;function s(b){return t(b)?b:i(b)}e.wrap=s;function a(b){return b||n}e.from=a;function*o(b){for(let L=b.length-1;L>=0;L--)yield b[L]}e.reverse=o;function l(b){return!b||b[Symbol.iterator]().next().done===!0}e.isEmpty=l;function u(b){return b[Symbol.iterator]().next().value}e.first=u;function f(b,L){for(const S of b)if(L(S))return!0;return!1}e.some=f;function h(b,L){for(const S of b)if(L(S))return S}e.find=h;function*d(b,L){for(const S of b)L(S)&&(yield S)}e.filter=d;function*g(b,L){let S=0;for(const _ of b)yield L(_,S++)}e.map=g;function*m(...b){for(const L of b)yield*L}e.concat=m;function v(b,L,S){let _=S;for(const N of b)_=L(_,N);return _}e.reduce=v;function*p(b,L,S=b.length){for(L<0&&(L+=b.length),S<0?S+=b.length:S>b.length&&(S=b.length);L<S;L++)yield b[L]}e.slice=p;function x(b,L=Number.POSITIVE_INFINITY){const S=[];if(L===0)return[S,b];const _=b[Symbol.iterator]();for(let N=0;N<L;N++){const A=_.next();if(A.done)return[S,e.empty()];S.push(A.value)}return[S,{[Symbol.iterator](){return _}}]}e.consume=x;async function y(b){const L=[];for await(const S of b)L.push(S);return Promise.resolve(L)}e.asyncToArray=y})(Zt||(Zt={}));function cc(e){return e}function fc(e,t){}function Or(e){if(Zt.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Oa(...e){return Yt(()=>Or(e))}function Yt(e){return{dispose:Va(()=>{e()})}}class ct{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{Or(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?ct.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(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}}ct.DISABLE_DISPOSED_WARNING=!1;class Mt{constructor(){this._store=new ct,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Mt.None=Object.freeze({dispose(){}});class Q{constructor(t){this.element=t,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class ja{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let t=this._first;for(;t!==Q.Undefined;){const n=t.next;t.prev=Q.Undefined,t.next=Q.Undefined,t=n}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new Q(t);if(this._first===Q.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==Q.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Q.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Q.Undefined&&t.next!==Q.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Q.Undefined&&t.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):t.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):t.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Q.Undefined;)yield t.element,t=t.next}}const qa=globalThis.performance&&typeof globalThis.performance.now=="function";class Kt{static create(t){return new Kt(t)}constructor(t){this._now=qa&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),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}}var En;(function(e){e.None=()=>Mt.None;function t(C,w){return h(C,()=>{},0,void 0,!0,void 0,w)}e.defer=t;function n(C){return(w,T=null,F)=>{let V=!1,O;return O=C(R=>{if(!V)return O?O.dispose():V=!0,w.call(T,R)},null,F),V&&O.dispose(),O}}e.once=n;function r(C,w,T){return u((F,V=null,O)=>C(R=>F.call(V,w(R)),null,O),T)}e.map=r;function i(C,w,T){return u((F,V=null,O)=>C(R=>{w(R),F.call(V,R)},null,O),T)}e.forEach=i;function s(C,w,T){return u((F,V=null,O)=>C(R=>w(R)&&F.call(V,R),null,O),T)}e.filter=s;function a(C){return C}e.signal=a;function o(...C){return(w,T=null,F)=>{const V=Oa(...C.map(O=>O(R=>w.call(T,R))));return f(V,F)}}e.any=o;function l(C,w,T,F){let V=T;return r(C,O=>(V=w(V,O),V),F)}e.reduce=l;function u(C,w){let T;const F={onWillAddFirstListener(){T=C(V.fire,V)},onDidRemoveLastListener(){T?.dispose()}},V=new Ae(F);return w?.add(V),V.event}function f(C,w){return w instanceof Array?w.push(C):w&&w.add(C),C}function h(C,w,T=100,F=!1,V=!1,O,R){let k,P,D,B=0,U;const G={leakWarningThreshold:O,onWillAddFirstListener(){k=C(le=>{B++,P=w(P,le),F&&!D&&(de.fire(P),P=void 0),U=()=>{const be=P;P=void 0,D=void 0,(!F||B>1)&&de.fire(be),B=0},typeof T=="number"?(clearTimeout(D),D=setTimeout(U,T)):D===void 0&&(D=0,queueMicrotask(U))})},onWillRemoveListener(){V&&B>0&&U?.()},onDidRemoveLastListener(){U=void 0,k.dispose()}},de=new Ae(G);return R?.add(de),de.event}e.debounce=h;function d(C,w=0,T){return e.debounce(C,(F,V)=>F?(F.push(V),F):[V],w,void 0,!0,void 0,T)}e.accumulate=d;function g(C,w=(F,V)=>F===V,T){let F=!0,V;return s(C,O=>{const R=F||!w(O,V);return F=!1,V=O,R},T)}e.latch=g;function m(C,w,T){return[e.filter(C,w,T),e.filter(C,F=>!w(F),T)]}e.split=m;function v(C,w=!1,T=[],F){let V=T.slice(),O=C(P=>{V?V.push(P):k.fire(P)});F&&F.add(O);const R=()=>{V?.forEach(P=>k.fire(P)),V=null},k=new Ae({onWillAddFirstListener(){O||(O=C(P=>k.fire(P)),F&&F.add(O))},onDidAddFirstListener(){V&&(w?setTimeout(R):R())},onDidRemoveLastListener(){O&&O.dispose(),O=null}});return F&&F.add(k),k.event}e.buffer=v;function p(C,w){return(F,V,O)=>{const R=w(new y);return C(function(k){const P=R.evaluate(k);P!==x&&F.call(V,P)},void 0,O)}}e.chain=p;const x=Symbol("HaltChainable");class y{constructor(){this.steps=[]}map(w){return this.steps.push(w),this}forEach(w){return this.steps.push(T=>(w(T),T)),this}filter(w){return this.steps.push(T=>w(T)?T:x),this}reduce(w,T){let F=T;return this.steps.push(V=>(F=w(F,V),F)),this}latch(w=(T,F)=>T===F){let T=!0,F;return this.steps.push(V=>{const O=T||!w(V,F);return T=!1,F=V,O?V:x}),this}evaluate(w){for(const T of this.steps)if(w=T(w),w===x)break;return w}}function b(C,w,T=F=>F){const F=(...k)=>R.fire(T(...k)),V=()=>C.on(w,F),O=()=>C.removeListener(w,F),R=new Ae({onWillAddFirstListener:V,onDidRemoveLastListener:O});return R.event}e.fromNodeEventEmitter=b;function L(C,w,T=F=>F){const F=(...k)=>R.fire(T(...k)),V=()=>C.addEventListener(w,F),O=()=>C.removeEventListener(w,F),R=new Ae({onWillAddFirstListener:V,onDidRemoveLastListener:O});return R.event}e.fromDOMEventEmitter=L;function S(C){return new Promise(w=>n(C)(w))}e.toPromise=S;function _(C){const w=new Ae;return C.then(T=>{w.fire(T)},()=>{w.fire(void 0)}).finally(()=>{w.dispose()}),w.event}e.fromPromise=_;function N(C,w,T){return w(T),C(F=>w(F))}e.runAndSubscribe=N;class A{constructor(w,T){this._observable=w,this._counter=0,this._hasChanged=!1;const F={onWillAddFirstListener:()=>{w.addObserver(this)},onDidRemoveLastListener:()=>{w.removeObserver(this)}};this.emitter=new Ae(F),T&&T.add(this.emitter)}beginUpdate(w){this._counter++}handlePossibleChange(w){}handleChange(w,T){this._hasChanged=!0}endUpdate(w){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function M(C,w){return new A(C,w).emitter.event}e.fromObservable=M;function I(C){return(w,T,F)=>{let V=0,O=!1;const R={beginUpdate(){V++},endUpdate(){V--,V===0&&(C.reportChanges(),O&&(O=!1,w.call(T)))},handlePossibleChange(){},handleChange(){O=!0}};C.addObserver(R),C.reportChanges();const k={dispose(){C.removeObserver(R)}};return F instanceof ct?F.add(k):Array.isArray(F)&&F.push(k),k}}e.fromObservableLight=I})(En||(En={}));class ft{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${ft._idPool++}`,ft.all.add(this)}start(t){this._stopWatch=new Kt,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}ft.all=new Set,ft._idPool=0;let Ba=-1;class Ua{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let s,a=0;for(const[o,l]of this._stacks)(!s||a<l)&&(s=o,a=l);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`),console.warn(s)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}}class Mn{static create(){var t;return new Mn((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
6
6
  `).slice(2).join(`
7
7
  `))}}class Rn{constructor(t){this.value=t}}const $a=2;class Ae{constructor(t){var n,r,i,s,a;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new Ua((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:Ba):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new ft(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var t,n,r,i;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,r,i)=>{var s,a,o,l,u;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Mt.None;if(this._disposed)return Mt.None;r&&(n=n.bind(r));const f=new Rn(n);let h;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(f.stack=Mn.create(),h=this._leakageMon.check(f.stack,this._size+1)),this._listeners?this._listeners instanceof Rn?((u=this._deliveryQueue)!==null&&u!==void 0||(this._deliveryQueue=new Wa),this._listeners=[this._listeners,f]):this._listeners.push(f):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=f,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const d=Yt(()=>{h?.(),this._removeListener(f)});return i instanceof ct?i.add(d):Array.isArray(i)&&i.push(d),d}),this._event}_removeListener(t){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(t);if(o===-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--,a[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*$a<=a.length){let u=0;for(let f=0;f<a.length;f++)a[f]?a[u++]=a[f]:l&&(this._deliveryQueue.end--,u<this._deliveryQueue.i&&this._deliveryQueue.i--);a.length=u}}_deliver(t,n){var r;if(!t)return;const i=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||Dr;if(!i){t.value(n);return}try{t.value(n)}catch(s){i(s)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,r,i,s;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof Rn)this._deliver(this._listeners,t);else{const a=this._deliveryQueue;a.enqueue(this,t,this._listeners.length),this._deliverQueue(a)}(s=this._perfMon)===null||s===void 0||s.stop()}hasListeners(){return this._size>0}}class Wa{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Ha(e){return typeof e=="string"}function za(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Tn(e){const t=[];for(const n of za(e))typeof e[n]=="function"&&t.push(n);return t}function Ga(e,t){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(const i of e)r[i]=n(i);return r}let Ja=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Xa(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=t[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),Ja&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function Z(e,t,...n){return Xa(t,n)}function hc(e){}var Pn,Fn;const ht="en";let In=!1,Dn=!1,Vn=!1,en,On=ht,jr=ht,Qa,Ce;const nt=globalThis;let ue;typeof nt.vscode<"u"&&typeof nt.vscode.process<"u"?ue=nt.vscode.process:typeof process<"u"&&typeof((Pn=process==null?void 0:process.versions)===null||Pn===void 0?void 0:Pn.node)=="string"&&(ue=process);const Za=typeof((Fn=ue?.versions)===null||Fn===void 0?void 0:Fn.electron)=="string"&&ue?.type==="renderer";if(typeof ue=="object"){In=ue.platform==="win32",Dn=ue.platform==="darwin",Vn=ue.platform==="linux",Vn&&ue.env.SNAP&&ue.env.SNAP_REVISION,ue.env.CI||ue.env.BUILD_ARTIFACTSTAGINGDIRECTORY,en=ht,On=ht;const e=ue.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];en=t.locale,jr=t.osLocale,On=n||ht,Qa=t._translationsConfigFile}catch{}}else typeof navigator=="object"&&!Za?(Ce=navigator.userAgent,In=Ce.indexOf("Windows")>=0,Dn=Ce.indexOf("Macintosh")>=0,(Ce.indexOf("Macintosh")>=0||Ce.indexOf("iPad")>=0||Ce.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Vn=Ce.indexOf("Linux")>=0,Ce?.indexOf("Mobi")>=0,Z({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),en=ht,On=en,jr=navigator.language):console.error("Unable to resolve platform.");const Rt=In,Ya=Dn,Te=Ce,Ka=typeof nt.postMessage=="function"&&!nt.importScripts;(()=>{if(Ka){const e=[];nt.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),nt.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const eo=!!(Te&&Te.indexOf("Chrome")>=0);Te&&Te.indexOf("Firefox")>=0,!eo&&Te&&Te.indexOf("Safari")>=0,Te&&Te.indexOf("Edg/")>=0,Te&&Te.indexOf("Android")>=0;class to{constructor(t,n=JSON.stringify){this.fn=t,this._computeKey=n,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class qr{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var dt;function no(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ro(e){return e.split(/\r\n|\r|\n/)}function io(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function so(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Br(e){return e>=65&&e<=90}function jn(e){return 55296<=e&&e<=56319}function ao(e){return 56320<=e&&e<=57343}function oo(e,t){return(e-55296<<10)+(t-56320)+65536}function lo(e,t,n){const r=e.charCodeAt(n);if(jn(r)&&n+1<t){const i=e.charCodeAt(n+1);if(ao(i))return oo(r,i)}return r}const uo=/^[\t\n\r\x20-\x7E]*$/;function co(e){return uo.test(e)}class rt{static getInstance(t){return dt.cache.get(Array.from(t))}static getLocales(){return dt._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}dt=rt,rt.ambiguousCharacterData=new qr(()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')),rt.cache=new to(e=>{function t(u){const f=new Map;for(let h=0;h<u.length;h+=2)f.set(u[h],u[h+1]);return f}function n(u,f){const h=new Map(u);for(const[d,g]of f)h.set(d,g);return h}function r(u,f){if(!u)return f;const h=new Map;for(const[d,g]of u)f.has(d)&&h.set(d,g);return h}const i=dt.ambiguousCharacterData.value;let s=e.filter(u=>!u.startsWith("_")&&u in i);s.length===0&&(s=["_default"]);let a;for(const u of s){const f=t(i[u]);a=r(a,f)}const o=t(i._common),l=n(o,a);return new dt(l)}),rt._locales=new qr(()=>Object.keys(dt.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class He{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static getData(){return this._data||(this._data=new Set(He.getRawData())),this._data}static isInvisibleCharacter(t){return He.getData().has(t)}static get codePoints(){return He.getData()}}He._data=void 0;const fo="$initialize";class ho{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}}class Ur{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class go{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class mo{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class po{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class vo{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new ho(this._workerId,r,t,n))})}listen(t,n){let r=null;const i=new Ae({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new go(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new po(this._workerId,r)),r=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new Ur(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Vr(i.detail)),this._send(new Ur(this._workerId,n,void 0,Vr(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new mo(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function $r(e){return e[0]==="o"&&e[1]==="n"&&Br(e.charCodeAt(2))}function Wr(e){return/^onDynamic/.test(e)&&Br(e.charCodeAt(9))}function bo(e,t,n){const r=a=>function(){const o=Array.prototype.slice.call(arguments,0);return t(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of e){if(Wr(a)){s[a]=i(a);continue}if($r(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class xo{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new vo({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===fo)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Wr(t)){const r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if($r(t)){const r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,i){this._protocol.setWorkerId(t);const o=bo(i,(l,u)=>this._protocol.sendMessage(l,u),(l,u)=>this._protocol.listen(l,u));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(Tn(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,u)=>{const f=globalThis.require;f([r],h=>{if(this._requestHandler=h.create(o),!this._requestHandler){u(new Error("No RequestHandler!"));return}l(Tn(this._requestHandler))},u)}))}}class ze{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Hr(e,t){return(t<<5)-t+e|0}function yo(e,t){t=Hr(149417,t);for(let n=0,r=e.length;n<r;n++)t=Hr(e.charCodeAt(n),t);return t}class zr{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}}function wo(e,t,n){return new Ge(new zr(e),new zr(t)).ComputeDiff(n).changes}class gt{static Assert(t,n){if(!t)throw new Error(n)}}class mt{static Copy(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}static Copy2(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}}class Gr{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 ze(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(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),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 Ge{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=Ge._getElements(t),[o,l,u]=Ge._getElements(n);this._hasStrings=a&&u,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(Ge._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=yo(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=Ge._getStrictElement(this._originalSequence,t),i=Ge._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){const a=[!1];let o=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let h;return r<=i?(gt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),h=[new ze(t,0,r,i-r+1)]):t<=n?(gt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[new ze(t,n-t+1,r,0)]):(gt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),gt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}const a=[0],o=[0],l=this.ComputeRecursionPoint(t,n,r,i,a,o,s),u=a[0],f=o[0];if(l!==null)return l;if(!s[0]){const h=this.ComputeDiffRecursive(t,u,r,f,s);let d=[];return s[0]?d=[new ze(u+1,n-(u+1)+1,f+1,i-(f+1)+1)]:d=this.ComputeDiffRecursive(u+1,n,f+1,i,s),this.ConcatenateChanges(h,d)}return[new ze(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,o,l,u,f,h,d,g,m,v,p,x,y){let b=null,L=null,S=new Gr,_=n,N=r,A=g[0]-p[0]-i,M=-1073741824,I=this.m_forwardHistory.length-1;do{const C=A+t;C===_||C<N&&u[C-1]<u[C+1]?(h=u[C+1],m=h-A-i,h<M&&S.MarkNextChange(),M=h,S.AddModifiedElement(h+1,m),A=C+1-t):(h=u[C-1]+1,m=h-A-i,h<M&&S.MarkNextChange(),M=h-1,S.AddOriginalElement(h,m+1),A=C-1-t),I>=0&&(u=this.m_forwardHistory[I],t=u[0],_=1,N=u.length-1)}while(--I>=-1);if(b=S.getReverseChanges(),y[0]){let C=g[0]+1,w=p[0]+1;if(b!==null&&b.length>0){const T=b[b.length-1];C=Math.max(C,T.getOriginalEnd()),w=Math.max(w,T.getModifiedEnd())}L=[new ze(C,d-C+1,w,v-w+1)]}else{S=new Gr,_=a,N=o,A=g[0]-p[0]-l,M=1073741824,I=x?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const C=A+s;C===_||C<N&&f[C-1]>=f[C+1]?(h=f[C+1]-1,m=h-A-l,h>M&&S.MarkNextChange(),M=h+1,S.AddOriginalElement(h+1,m+1),A=C+1-s):(h=f[C-1],m=h-A-l,h>M&&S.MarkNextChange(),M=h,S.AddModifiedElement(h+1,m+1),A=C-1-s),I>=0&&(f=this.m_reverseHistory[I],s=f[0],_=1,N=f.length-1)}while(--I>=-1);L=S.getChanges()}return this.ConcatenateChanges(b,L)}ComputeRecursionPoint(t,n,r,i,s,a,o){let l=0,u=0,f=0,h=0,d=0,g=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=n-t+(i-r),v=m+1,p=new Int32Array(v),x=new Int32Array(v),y=i-r,b=n-t,L=t-r,S=n-i,N=(b-y)%2===0;p[y]=t,x[b]=n,o[0]=!1;for(let A=1;A<=m/2+1;A++){let M=0,I=0;f=this.ClipDiagonalBound(y-A,A,y,v),h=this.ClipDiagonalBound(y+A,A,y,v);for(let w=f;w<=h;w+=2){w===f||w<h&&p[w-1]<p[w+1]?l=p[w+1]:l=p[w-1]+1,u=l-(w-y)-L;const T=l;for(;l<n&&u<i&&this.ElementsAreEqual(l+1,u+1);)l++,u++;if(p[w]=l,l+u>M+I&&(M=l,I=u),!N&&Math.abs(w-b)<=A-1&&l>=x[w])return s[0]=l,a[0]=u,T<=x[w]&&A<=1448?this.WALKTRACE(y,f,h,L,b,d,g,S,p,x,l,n,s,u,i,a,N,o):null}const C=(M-t+(I-r)-A)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(M,C))return o[0]=!0,s[0]=M,a[0]=I,C>0&&A<=1448?this.WALKTRACE(y,f,h,L,b,d,g,S,p,x,l,n,s,u,i,a,N,o):(t++,r++,[new ze(t,n-t+1,r,i-r+1)]);d=this.ClipDiagonalBound(b-A,A,b,v),g=this.ClipDiagonalBound(b+A,A,b,v);for(let w=d;w<=g;w+=2){w===d||w<g&&x[w-1]>=x[w+1]?l=x[w+1]-1:l=x[w-1],u=l-(w-b)-S;const T=l;for(;l>t&&u>r&&this.ElementsAreEqual(l,u);)l--,u--;if(x[w]=l,N&&Math.abs(w-y)<=A&&l<=p[w])return s[0]=l,a[0]=u,T>=p[w]&&A<=1448?this.WALKTRACE(y,f,h,L,b,d,g,S,p,x,l,n,s,u,i,a,N,o):null}if(A<=1447){let w=new Int32Array(h-f+2);w[0]=y-f+1,mt.Copy2(p,f,w,1,h-f+1),this.m_forwardHistory.push(w),w=new Int32Array(g-d+2),w[0]=b-d+1,mt.Copy2(x,d,w,1,g-d+1),this.m_reverseHistory.push(w)}}return this.WALKTRACE(y,f,h,L,b,d,g,S,p,x,l,n,s,u,i,a,N,o)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!o||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const u=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!u)break;r.originalStart++,r.modifiedStart++}const l=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],l)){t[n]=l[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let i=0,s=0;if(n>0){const h=t[n-1];i=h.originalStart+h.originalLength,s=h.modifiedStart+h.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,u=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let h=1;;h++){const d=r.originalStart-h,g=r.modifiedStart-h;if(d<i||g<s||a&&!this.OriginalElementsAreEqual(d,d+r.originalLength)||o&&!this.ModifiedElementsAreEqual(g,g+r.modifiedLength))break;const v=(d===i&&g===s?5:0)+this._boundaryScore(d,r.originalLength,g,r.modifiedLength);v>u&&(u=v,l=h)}r.originalStart-=l,r.modifiedStart-=l;const f=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],f)){t[n-1]=f[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const i=t[n-1],s=t[n],a=s.originalStart-i.originalStart-i.originalLength,o=i.originalStart,l=s.originalStart+s.originalLength,u=l-o,f=i.modifiedStart,h=s.modifiedStart+s.modifiedLength,d=h-f;if(a<5&&u<20&&d<20){const g=this._findBetterContiguousSequence(o,u,f,d,a);if(g){const[m,v]=g;(m!==i.originalStart+i.originalLength||v!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=m-i.originalStart,i.modifiedLength=v-i.modifiedStart,s.originalStart=m+a,s.modifiedStart=v+a,s.originalLength=l-s.originalStart,s.modifiedLength=h-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,o=r+i-s+1;let l=0,u=0,f=0;for(let h=t;h<a;h++)for(let d=r;d<o;d++){const g=this._contiguousSequenceScore(h,d,s);g>0&&g>l&&(l=g,u=h,f=d)}return l>0?[u,f]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return mt.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],mt.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return mt.Copy(t,0,i,0,t.length),mt.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(gt.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),gt.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let o=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new ze(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;const s=r,a=i-r-1,o=n%2===0;if(t<0){const l=s%2===0;return o===l?0:1}else{const l=a%2===0;return o===l?i-1:i-2}}}var Jr={ENV_TYPE:"live",NODE_ENV:"production"};let pt;const qn=globalThis.vscode;if(typeof qn<"u"&&typeof qn.process<"u"){const e=qn.process;pt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?pt={get platform(){return process.platform},get arch(){return process.arch},get env(){return Jr},cwd(){return Jr.VSCODE_CWD||process.cwd()}}:pt={get platform(){return Rt?"win32":Ya?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const tn=pt.cwd,_o=pt.env,So=pt.platform,Lo=65,No=97,Ao=90,Co=122,Je=46,oe=47,ge=92,Xe=58,ko=63;class Xr extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=`The "${t}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Eo(e,t){if(e===null||typeof e!="object")throw new Xr(t,"Object",e)}function ee(e,t){if(typeof e!="string")throw new Xr(t,"string",e)}const Qe=So==="win32";function W(e){return e===oe||e===ge}function Bn(e){return e===oe}function Ze(e){return e>=Lo&&e<=Ao||e>=No&&e<=Co}function nn(e,t,n,r){let i="",s=0,a=-1,o=0,l=0;for(let u=0;u<=e.length;++u){if(u<e.length)l=e.charCodeAt(u);else{if(r(l))break;l=oe}if(r(l)){if(!(a===u-1||o===1))if(o===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==Je||i.charCodeAt(i.length-2)!==Je){if(i.length>2){const f=i.lastIndexOf(n);f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf(n)),a=u,o=0;continue}else if(i.length!==0){i="",s=0,a=u,o=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,u)}`:i=e.slice(a+1,u),s=u-a-1;a=u,o=0}else l===Je&&o!==-1?++o:o=-1}return i}function Qr(e,t){Eo(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const he={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],ee(s,"path"),s.length===0)continue}else t.length===0?s=tn():(s=_o[`=${t}`]||tn(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===ge)&&(s=`${t}\\`));const a=s.length;let o=0,l="",u=!1;const f=s.charCodeAt(0);if(a===1)W(f)&&(o=1,u=!0);else if(W(f))if(u=!0,W(s.charCodeAt(1))){let h=2,d=h;for(;h<a&&!W(s.charCodeAt(h));)h++;if(h<a&&h!==d){const g=s.slice(d,h);for(d=h;h<a&&W(s.charCodeAt(h));)h++;if(h<a&&h!==d){for(d=h;h<a&&!W(s.charCodeAt(h));)h++;(h===a||h!==d)&&(l=`\\\\${g}\\${s.slice(d,h)}`,o=h)}}}else o=1;else Ze(f)&&s.charCodeAt(1)===Xe&&(l=s.slice(0,2),o=2,a>2&&W(s.charCodeAt(2))&&(u=!0,o=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(r){if(t.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=u,u&&t.length>0)break}return n=nn(n,!r,"\\",W),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){ee(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return Bn(s)?"\\":e;if(W(s))if(i=!0,W(e.charCodeAt(1))){let o=2,l=o;for(;o<t&&!W(e.charCodeAt(o));)o++;if(o<t&&o!==l){const u=e.slice(l,o);for(l=o;o<t&&W(e.charCodeAt(o));)o++;if(o<t&&o!==l){for(l=o;o<t&&!W(e.charCodeAt(o));)o++;if(o===t)return`\\\\${u}\\${e.slice(l)}\\`;o!==l&&(r=`\\\\${u}\\${e.slice(l,o)}`,n=o)}}}else n=1;else Ze(s)&&e.charCodeAt(1)===Xe&&(r=e.slice(0,2),n=2,t>2&&W(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?nn(e.slice(n),!i,"\\",W):"";return a.length===0&&!i&&(a="."),a.length>0&&W(e.charCodeAt(t-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(e){ee(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return W(n)||t>2&&Ze(n)&&e.charCodeAt(1)===Xe&&W(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const a=e[s];ee(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=`\\${a}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&W(n.charCodeAt(0))){++i;const s=n.length;s>1&&W(n.charCodeAt(1))&&(++i,s>2&&(W(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&W(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return he.normalize(t)},relative(e,t){if(ee(e,"from"),ee(t,"to"),e===t)return"";const n=he.resolve(e),r=he.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===ge;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===ge;)s--;const a=s-i;let o=0;for(;o<t.length&&t.charCodeAt(o)===ge;)o++;let l=t.length;for(;l-1>o&&t.charCodeAt(l-1)===ge;)l--;const u=l-o,f=a<u?a:u;let h=-1,d=0;for(;d<f;d++){const m=e.charCodeAt(i+d);if(m!==t.charCodeAt(o+d))break;m===ge&&(h=d)}if(d!==f){if(h===-1)return r}else{if(u>f){if(t.charCodeAt(o+d)===ge)return r.slice(o+d+1);if(d===2)return r.slice(o+d)}a>f&&(e.charCodeAt(i+d)===ge?h=d:d===2&&(h=3)),h===-1&&(h=0)}let g="";for(d=i+h+1;d<=s;++d)(d===s||e.charCodeAt(d)===ge)&&(g+=g.length===0?"..":"\\..");return o+=h,g.length>0?`${g}${r.slice(o,l)}`:(r.charCodeAt(o)===ge&&++o,r.slice(o,l))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=he.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ge){if(t.charCodeAt(1)===ge){const n=t.charCodeAt(2);if(n!==ko&&n!==Je)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ze(t.charCodeAt(0))&&t.charCodeAt(1)===Xe&&t.charCodeAt(2)===ge)return`\\\\?\\${t}`;return e},dirname(e){ee(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return W(i)?e:".";if(W(i)){if(n=r=1,W(e.charCodeAt(1))){let o=2,l=o;for(;o<t&&!W(e.charCodeAt(o));)o++;if(o<t&&o!==l){for(l=o;o<t&&W(e.charCodeAt(o));)o++;if(o<t&&o!==l){for(l=o;o<t&&!W(e.charCodeAt(o));)o++;if(o===t)return e;o!==l&&(n=r=o+1)}}}}else Ze(i)&&e.charCodeAt(1)===Xe&&(n=t>2&&W(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=t-1;o>=r;--o)if(W(e.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&ee(t,"ext"),ee(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&Ze(e.charCodeAt(0))&&e.charCodeAt(1)===Xe&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(s=e.length-1;s>=n;--s){const l=e.charCodeAt(s);if(W(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(W(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ee(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===Xe&&Ze(e.charCodeAt(0))&&(t=r=2);for(let o=e.length-1;o>=t;--o){const l=e.charCodeAt(o);if(W(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===Je?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Qr.bind(null,"\\"),parse(e){ee(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return W(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(W(i)){if(r=1,W(e.charCodeAt(1))){let h=2,d=h;for(;h<n&&!W(e.charCodeAt(h));)h++;if(h<n&&h!==d){for(d=h;h<n&&W(e.charCodeAt(h));)h++;if(h<n&&h!==d){for(d=h;h<n&&!W(e.charCodeAt(h));)h++;h===n?r=h:h!==d&&(r=h+1)}}}}else if(Ze(i)&&e.charCodeAt(1)===Xe){if(n<=2)return t.root=t.dir=e,t;if(r=2,W(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,a=r,o=-1,l=!0,u=e.length-1,f=0;for(;u>=r;--u){if(i=e.charCodeAt(u),W(i)){if(!l){a=u+1;break}continue}o===-1&&(l=!1,o=u+1),i===Je?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return o!==-1&&(s===-1||f===0||f===1&&s===o-1&&s===a+1?t.base=t.name=e.slice(a,o):(t.name=e.slice(a,s),t.base=e.slice(a,o),t.ext=e.slice(s,o))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Mo=(()=>{if(Qe){const e=/\\/g;return()=>{const t=tn().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>tn()})(),me={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Mo();ee(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===oe)}return t=nn(t,!n,"/",Bn),n?`/${t}`:t.length>0?t:"."},normalize(e){if(ee(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe,n=e.charCodeAt(e.length-1)===oe;return e=nn(e,!t,"/",Bn),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return ee(e,"path"),e.length>0&&e.charCodeAt(0)===oe},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];ee(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":me.normalize(t)},relative(e,t){if(ee(e,"from"),ee(t,"to"),e===t||(e=me.resolve(e),t=me.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,o=i<a?i:a;let l=-1,u=0;for(;u<o;u++){const h=e.charCodeAt(n+u);if(h!==t.charCodeAt(s+u))break;h===oe&&(l=u)}if(u===o)if(a>o){if(t.charCodeAt(s+u)===oe)return t.slice(s+u+1);if(u===0)return t.slice(s+u)}else i>o&&(e.charCodeAt(n+u)===oe?l=u:u===0&&(l=0));let f="";for(u=n+l+1;u<=r;++u)(u===r||e.charCodeAt(u)===oe)&&(f+=f.length===0?"..":"/..");return`${f}${t.slice(s+l)}`},toNamespacedPath(e){return e},dirname(e){if(ee(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===oe){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&ee(t,"ext"),ee(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(s=e.length-1;s>=0;--s){const l=e.charCodeAt(s);if(l===oe){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===oe){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ee(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const o=e.charCodeAt(a);if(o===oe){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===Je?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Qr.bind(null,"/"),parse(e){ee(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===oe;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=e.length-1,u=0;for(;l>=r;--l){const f=e.charCodeAt(l);if(f===oe){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),f===Je?i===-1?i=l:u!==1&&(u=1):i!==-1&&(u=-1)}if(a!==-1){const f=s===0&&n?1:s;i===-1||u===0||u===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(f,a):(t.name=e.slice(f,i),t.base=e.slice(f,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};me.win32=he.win32=he,me.posix=he.posix=me,Qe?he.normalize:me.normalize,Qe?he.resolve:me.resolve,Qe?he.relative:me.relative,Qe?he.dirname:me.dirname,Qe?he.basename:me.basename,Qe?he.extname:me.extname,Qe?he.sep:me.sep;const Ro=/^\w[\w\d+.-]*$/,To=/^\//,Po=/^\/\//;function Fo(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ro.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!To.test(e.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(Po.test(e.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(e,t){return!e&&!t?"file":e}function Do(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ke&&(t=ke+t):t=ke;break}return t}const Y="",ke="/",Vo=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Un=class Cn{static isUri(t){return t instanceof Cn?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||Y,this.authority=t.authority||Y,this.path=t.path||Y,this.query=t.query||Y,this.fragment=t.fragment||Y):(this.scheme=Io(t,a),this.authority=n||Y,this.path=Do(this.scheme,r||Y),this.query=i||Y,this.fragment=s||Y,Fo(this,a))}get fsPath(){return $n(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=Y),r===void 0?r=this.authority:r===null&&(r=Y),i===void 0?i=this.path:i===null&&(i=Y),s===void 0?s=this.query:s===null&&(s=Y),a===void 0?a=this.fragment:a===null&&(a=Y),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new vt(n,r,i,s,a)}static parse(t,n=!1){const r=Vo.exec(t);return r?new vt(r[2]||Y,rn(r[4]||Y),rn(r[5]||Y),rn(r[7]||Y),rn(r[9]||Y),n):new vt(Y,Y,Y,Y,Y)}static file(t){let n=Y;if(Rt&&(t=t.replace(/\\/g,ke)),t[0]===ke&&t[1]===ke){const r=t.indexOf(ke,2);r===-1?(n=t.substring(2),t=ke):(n=t.substring(2,r),t=t.substring(r)||ke)}return new vt("file",n,t,Y,Y)}static from(t,n){return new vt(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Rt&&t.scheme==="file"?r=Cn.file(he.join($n(t,!0),...n)).path:r=me.join(t.path,...n),t.with({path:r})}toString(t=!1){return Wn(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof Cn)return t;{const i=new vt(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===Zr&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}};const Zr=Rt?1:void 0;class vt extends Un{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=$n(this,!1)),this._fsPath}toString(t=!1){return t?Wn(this,!0):(this._formatted||(this._formatted=Wn(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Zr),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const Yr={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 Kr(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));const o=Yr[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function Oo(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Yr[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function $n(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Rt&&(n=n.replace(/\//g,"\\")),n}function Wn(e,t){const n=t?Oo:Kr;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=ke,r+=ke),s){let u=s.indexOf("@");if(u!==-1){const f=s.substr(0,u);s=s.substr(u+1),u=f.lastIndexOf(":"),u===-1?r+=n(f,!1,!1):(r+=n(f.substr(0,u),!1,!1),r+=":",r+=n(f.substr(u+1),!1,!0)),r+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,u),!1,!0),r+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=t?l:Kr(l,!1,!1)),r}function ei(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+ei(e.substr(3)):e}}const ti=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function rn(e){return e.match(ti)?e.replace(ti,t=>ei(t)):e}let Pe=class lt{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new lt(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return lt.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return lt.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return lt.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,a=n.column|0;return s-a}return r-i}clone(){return new lt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new lt(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},se=class ne{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ne.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return ne.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return ne.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return ne.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return ne.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new ne(r,i,s,a)}intersectRanges(t){return ne.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const o=n.startLineNumber,l=n.startColumn,u=n.endLineNumber,f=n.endColumn;return r<o?(r=o,i=l):r===o&&(i=Math.max(i,l)),s>u?(s=u,a=f):s===u&&(a=Math.min(a,f)),r>s||r===s&&i>a?null:new ne(r,i,s,a)}equalsRange(t){return ne.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return ne.getEndPosition(this)}static getEndPosition(t){return new Pe(t.endLineNumber,t.endColumn)}getStartPosition(){return ne.getStartPosition(this)}static getStartPosition(t){return new Pe(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new ne(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new ne(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ne.collapseToStart(this)}static collapseToStart(t){return new ne(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return ne.collapseToEnd(this)}static collapseToEnd(t){return new ne(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new ne(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new ne(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new ne(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const o=t.startColumn|0,l=n.startColumn|0;if(o===l){const u=t.endLineNumber|0,f=n.endLineNumber|0;if(u===f){const h=t.endColumn|0,d=n.endColumn|0;return h-d}return u-f}return o-l}return s-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function jo(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*qo(e,t){let n,r;for(const i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function Bo(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Uo(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function $o(e,t){for(const n of t)e.push(n)}var ni;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(ni||(ni={}));function sn(e,t){return(n,r)=>t(e(n),e(r))}const an=(e,t)=>e-t;function Wo(e){return(t,n)=>-e(t,n)}function ri(e){return e<0?0:e>255?255:e|0}function bt(e){return e<0?0:e>4294967295?4294967295:e|0}class Ho{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=bt(t);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=bt(t),n=bt(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=bt(t),n=bt(n);const r=this.values,i=this.prefixSum;if(t>=r.length)return!1;const s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=bt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t<a)r=i-1;else if(t>=s)n=i+1;else break;return new zo(i,t-a)}}class zo{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class Go{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Pe(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new Ho(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=ro(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}}const Jo="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Xo(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Jo)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const ii=Xo();function si(e){let t=ii;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const ai=new ja;ai.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Hn(e,t,n,r,i){if(t=si(t),i||(i=Zt.first(ai)),n.length>i.maxLen){let u=e-i.maxLen/2;return u<0?u=0:r+=u,n=n.substring(u,e+i.maxLen/2),Hn(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let o=-1,l=null;for(let u=1;!(Date.now()-s>=i.timeBudget);u++){const f=a-i.windowSize*u;t.lastIndex=Math.max(0,f);const h=Qo(t,n,a,o);if(!h&&l||(l=h,f<=0))break;o=f}if(l){const u={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return t.lastIndex=0,u}return null}function Qo(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class zn{constructor(t){const n=ri(t);this._defaultValue=n,this._asciiMap=zn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=ri(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Zo{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class Yo{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[o,l,u]=t[s];l>n&&(n=l),o>r&&(r=o),u>r&&(r=u)}n++,r++;const i=new Zo(r,n,0);for(let s=0,a=t.length;s<a;s++){const[o,l,u]=t[s];i.set(o,l,u)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let Gn=null;function Ko(){return Gn===null&&(Gn=new Yo([[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]])),Gn}let Tt=null;function el(){if(Tt===null){Tt=new zn(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)Tt.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)Tt.set(t.charCodeAt(n),2)}return Tt}class on{static _createLink(t,n,r,i,s){let a=s-1;do{const o=n.charCodeAt(a);if(t.get(o)!==2)break;a--}while(a>i);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=Ko()){const r=el(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const o=t.getLineContent(s),l=o.length;let u=0,f=0,h=0,d=1,g=!1,m=!1,v=!1,p=!1;for(;u<l;){let x=!1;const y=o.charCodeAt(u);if(d===13){let b;switch(y){case 40:g=!0,b=0;break;case 41:b=g?0:1;break;case 91:v=!0,m=!0,b=0;break;case 93:v=!1,b=m?0:1;break;case 123:p=!0,b=0;break;case 125:b=p?0:1;break;case 39:case 34:case 96:h===y?b=1:h===39||h===34||h===96?b=0:b=1;break;case 42:b=h===42?1:0;break;case 124:b=h===124?1:0;break;case 32:b=v?0:1;break;default:b=r.get(y)}b===1&&(i.push(on._createLink(r,o,s,f,u)),x=!0)}else if(d===12){let b;y===91?(m=!0,b=0):b=r.get(y),b===1?x=!0:d=13}else d=n.nextState(d,y),d===0&&(x=!0);x&&(d=1,g=!1,m=!1,p=!1,f=u+1,h=y),u++}d===13&&i.push(on._createLink(r,o,s,f,l))}return i}}function tl(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:on.computeLinks(e)}class Jn{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let i=Number(t);const s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,a=t.length;i===null&&s<a;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}}Jn.INSTANCE=new Jn;const oi=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var ln;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof un?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:En.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:oi})})(ln||(ln={}));class un{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?oi:(this._emitter||(this._emitter=new Ae),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nl{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new un),this._token}cancel(){this._token?this._token instanceof un&&this._token.cancel():this._token=ln.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof un&&this._token.dispose():this._token=ln.None}}class Xn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const cn=new Xn,Qn=new Xn,Zn=new Xn,rl=new Array(230),il=Object.create(null),sl=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[s,a,o,l,u,f,h,d,g]=i;if(r[a]||(r[a]=!0,il[o]=a,sl[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!u)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);cn.define(l,u),Qn.define(l,d||u),Zn.define(l,g||d||u)}f&&(rl[f]=l)}})();var li;(function(e){function t(o){return cn.keyCodeToStr(o)}e.toString=t;function n(o){return cn.strToKeyCode(o)}e.fromString=n;function r(o){return Qn.keyCodeToStr(o)}e.toUserSettingsUS=r;function i(o){return Zn.keyCodeToStr(o)}e.toUserSettingsGeneral=i;function s(o){return Qn.strToKeyCode(o)||Zn.strToKeyCode(o)}e.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return cn.keyCodeToStr(o)}e.toElectronAccelerator=a})(li||(li={}));function al(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class xe extends se{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return xe.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new xe(this.startLineNumber,this.startColumn,t,n):new xe(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Pe(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Pe(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new xe(t,n,this.endLineNumber,this.endColumn):new xe(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new xe(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new xe(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new xe(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new xe(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new xe(t,n,r,i):new xe(r,i,t,n)}}const ui=Object.create(null);function c(e,t){if(Ha(t)){const n=ui[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return ui[e]=t,{id:e}}const ol={add:c("add",6e4),plus:c("plus",6e4),gistNew:c("gist-new",6e4),repoCreate:c("repo-create",6e4),lightbulb:c("lightbulb",60001),lightBulb:c("light-bulb",60001),repo:c("repo",60002),repoDelete:c("repo-delete",60002),gistFork:c("gist-fork",60003),repoForked:c("repo-forked",60003),gitPullRequest:c("git-pull-request",60004),gitPullRequestAbandoned:c("git-pull-request-abandoned",60004),recordKeys:c("record-keys",60005),keyboard:c("keyboard",60005),tag:c("tag",60006),gitPullRequestLabel:c("git-pull-request-label",60006),tagAdd:c("tag-add",60006),tagRemove:c("tag-remove",60006),person:c("person",60007),personFollow:c("person-follow",60007),personOutline:c("person-outline",60007),personFilled:c("person-filled",60007),gitBranch:c("git-branch",60008),gitBranchCreate:c("git-branch-create",60008),gitBranchDelete:c("git-branch-delete",60008),sourceControl:c("source-control",60008),mirror:c("mirror",60009),mirrorPublic:c("mirror-public",60009),star:c("star",60010),starAdd:c("star-add",60010),starDelete:c("star-delete",60010),starEmpty:c("star-empty",60010),comment:c("comment",60011),commentAdd:c("comment-add",60011),alert:c("alert",60012),warning:c("warning",60012),search:c("search",60013),searchSave:c("search-save",60013),logOut:c("log-out",60014),signOut:c("sign-out",60014),logIn:c("log-in",60015),signIn:c("sign-in",60015),eye:c("eye",60016),eyeUnwatch:c("eye-unwatch",60016),eyeWatch:c("eye-watch",60016),circleFilled:c("circle-filled",60017),primitiveDot:c("primitive-dot",60017),closeDirty:c("close-dirty",60017),debugBreakpoint:c("debug-breakpoint",60017),debugBreakpointDisabled:c("debug-breakpoint-disabled",60017),debugHint:c("debug-hint",60017),terminalDecorationSuccess:c("terminal-decoration-success",60017),primitiveSquare:c("primitive-square",60018),edit:c("edit",60019),pencil:c("pencil",60019),info:c("info",60020),issueOpened:c("issue-opened",60020),gistPrivate:c("gist-private",60021),gitForkPrivate:c("git-fork-private",60021),lock:c("lock",60021),mirrorPrivate:c("mirror-private",60021),close:c("close",60022),removeClose:c("remove-close",60022),x:c("x",60022),repoSync:c("repo-sync",60023),sync:c("sync",60023),clone:c("clone",60024),desktopDownload:c("desktop-download",60024),beaker:c("beaker",60025),microscope:c("microscope",60025),vm:c("vm",60026),deviceDesktop:c("device-desktop",60026),file:c("file",60027),fileText:c("file-text",60027),more:c("more",60028),ellipsis:c("ellipsis",60028),kebabHorizontal:c("kebab-horizontal",60028),mailReply:c("mail-reply",60029),reply:c("reply",60029),organization:c("organization",60030),organizationFilled:c("organization-filled",60030),organizationOutline:c("organization-outline",60030),newFile:c("new-file",60031),fileAdd:c("file-add",60031),newFolder:c("new-folder",60032),fileDirectoryCreate:c("file-directory-create",60032),trash:c("trash",60033),trashcan:c("trashcan",60033),history:c("history",60034),clock:c("clock",60034),folder:c("folder",60035),fileDirectory:c("file-directory",60035),symbolFolder:c("symbol-folder",60035),logoGithub:c("logo-github",60036),markGithub:c("mark-github",60036),github:c("github",60036),terminal:c("terminal",60037),console:c("console",60037),repl:c("repl",60037),zap:c("zap",60038),symbolEvent:c("symbol-event",60038),error:c("error",60039),stop:c("stop",60039),variable:c("variable",60040),symbolVariable:c("symbol-variable",60040),array:c("array",60042),symbolArray:c("symbol-array",60042),symbolModule:c("symbol-module",60043),symbolPackage:c("symbol-package",60043),symbolNamespace:c("symbol-namespace",60043),symbolObject:c("symbol-object",60043),symbolMethod:c("symbol-method",60044),symbolFunction:c("symbol-function",60044),symbolConstructor:c("symbol-constructor",60044),symbolBoolean:c("symbol-boolean",60047),symbolNull:c("symbol-null",60047),symbolNumeric:c("symbol-numeric",60048),symbolNumber:c("symbol-number",60048),symbolStructure:c("symbol-structure",60049),symbolStruct:c("symbol-struct",60049),symbolParameter:c("symbol-parameter",60050),symbolTypeParameter:c("symbol-type-parameter",60050),symbolKey:c("symbol-key",60051),symbolText:c("symbol-text",60051),symbolReference:c("symbol-reference",60052),goToFile:c("go-to-file",60052),symbolEnum:c("symbol-enum",60053),symbolValue:c("symbol-value",60053),symbolRuler:c("symbol-ruler",60054),symbolUnit:c("symbol-unit",60054),activateBreakpoints:c("activate-breakpoints",60055),archive:c("archive",60056),arrowBoth:c("arrow-both",60057),arrowDown:c("arrow-down",60058),arrowLeft:c("arrow-left",60059),arrowRight:c("arrow-right",60060),arrowSmallDown:c("arrow-small-down",60061),arrowSmallLeft:c("arrow-small-left",60062),arrowSmallRight:c("arrow-small-right",60063),arrowSmallUp:c("arrow-small-up",60064),arrowUp:c("arrow-up",60065),bell:c("bell",60066),bold:c("bold",60067),book:c("book",60068),bookmark:c("bookmark",60069),debugBreakpointConditionalUnverified:c("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:c("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:c("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:c("debug-breakpoint-data-unverified",60072),debugBreakpointData:c("debug-breakpoint-data",60073),debugBreakpointDataDisabled:c("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:c("debug-breakpoint-log-unverified",60074),debugBreakpointLog:c("debug-breakpoint-log",60075),debugBreakpointLogDisabled:c("debug-breakpoint-log-disabled",60075),briefcase:c("briefcase",60076),broadcast:c("broadcast",60077),browser:c("browser",60078),bug:c("bug",60079),calendar:c("calendar",60080),caseSensitive:c("case-sensitive",60081),check:c("check",60082),checklist:c("checklist",60083),chevronDown:c("chevron-down",60084),chevronLeft:c("chevron-left",60085),chevronRight:c("chevron-right",60086),chevronUp:c("chevron-up",60087),chromeClose:c("chrome-close",60088),chromeMaximize:c("chrome-maximize",60089),chromeMinimize:c("chrome-minimize",60090),chromeRestore:c("chrome-restore",60091),circleOutline:c("circle-outline",60092),circle:c("circle",60092),debugBreakpointUnverified:c("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:c("terminal-decoration-incomplete",60092),circleSlash:c("circle-slash",60093),circuitBoard:c("circuit-board",60094),clearAll:c("clear-all",60095),clippy:c("clippy",60096),closeAll:c("close-all",60097),cloudDownload:c("cloud-download",60098),cloudUpload:c("cloud-upload",60099),code:c("code",60100),collapseAll:c("collapse-all",60101),colorMode:c("color-mode",60102),commentDiscussion:c("comment-discussion",60103),creditCard:c("credit-card",60105),dash:c("dash",60108),dashboard:c("dashboard",60109),database:c("database",60110),debugContinue:c("debug-continue",60111),debugDisconnect:c("debug-disconnect",60112),debugPause:c("debug-pause",60113),debugRestart:c("debug-restart",60114),debugStart:c("debug-start",60115),debugStepInto:c("debug-step-into",60116),debugStepOut:c("debug-step-out",60117),debugStepOver:c("debug-step-over",60118),debugStop:c("debug-stop",60119),debug:c("debug",60120),deviceCameraVideo:c("device-camera-video",60121),deviceCamera:c("device-camera",60122),deviceMobile:c("device-mobile",60123),diffAdded:c("diff-added",60124),diffIgnored:c("diff-ignored",60125),diffModified:c("diff-modified",60126),diffRemoved:c("diff-removed",60127),diffRenamed:c("diff-renamed",60128),diff:c("diff",60129),diffSidebyside:c("diff-sidebyside",60129),discard:c("discard",60130),editorLayout:c("editor-layout",60131),emptyWindow:c("empty-window",60132),exclude:c("exclude",60133),extensions:c("extensions",60134),eyeClosed:c("eye-closed",60135),fileBinary:c("file-binary",60136),fileCode:c("file-code",60137),fileMedia:c("file-media",60138),filePdf:c("file-pdf",60139),fileSubmodule:c("file-submodule",60140),fileSymlinkDirectory:c("file-symlink-directory",60141),fileSymlinkFile:c("file-symlink-file",60142),fileZip:c("file-zip",60143),files:c("files",60144),filter:c("filter",60145),flame:c("flame",60146),foldDown:c("fold-down",60147),foldUp:c("fold-up",60148),fold:c("fold",60149),folderActive:c("folder-active",60150),folderOpened:c("folder-opened",60151),gear:c("gear",60152),gift:c("gift",60153),gistSecret:c("gist-secret",60154),gist:c("gist",60155),gitCommit:c("git-commit",60156),gitCompare:c("git-compare",60157),compareChanges:c("compare-changes",60157),gitMerge:c("git-merge",60158),githubAction:c("github-action",60159),githubAlt:c("github-alt",60160),globe:c("globe",60161),grabber:c("grabber",60162),graph:c("graph",60163),gripper:c("gripper",60164),heart:c("heart",60165),home:c("home",60166),horizontalRule:c("horizontal-rule",60167),hubot:c("hubot",60168),inbox:c("inbox",60169),issueReopened:c("issue-reopened",60171),issues:c("issues",60172),italic:c("italic",60173),jersey:c("jersey",60174),json:c("json",60175),kebabVertical:c("kebab-vertical",60176),key:c("key",60177),law:c("law",60178),lightbulbAutofix:c("lightbulb-autofix",60179),linkExternal:c("link-external",60180),link:c("link",60181),listOrdered:c("list-ordered",60182),listUnordered:c("list-unordered",60183),liveShare:c("live-share",60184),loading:c("loading",60185),location:c("location",60186),mailRead:c("mail-read",60187),mail:c("mail",60188),markdown:c("markdown",60189),megaphone:c("megaphone",60190),mention:c("mention",60191),milestone:c("milestone",60192),gitPullRequestMilestone:c("git-pull-request-milestone",60192),mortarBoard:c("mortar-board",60193),move:c("move",60194),multipleWindows:c("multiple-windows",60195),mute:c("mute",60196),noNewline:c("no-newline",60197),note:c("note",60198),octoface:c("octoface",60199),openPreview:c("open-preview",60200),package:c("package",60201),paintcan:c("paintcan",60202),pin:c("pin",60203),play:c("play",60204),run:c("run",60204),plug:c("plug",60205),preserveCase:c("preserve-case",60206),preview:c("preview",60207),project:c("project",60208),pulse:c("pulse",60209),question:c("question",60210),quote:c("quote",60211),radioTower:c("radio-tower",60212),reactions:c("reactions",60213),references:c("references",60214),refresh:c("refresh",60215),regex:c("regex",60216),remoteExplorer:c("remote-explorer",60217),remote:c("remote",60218),remove:c("remove",60219),replaceAll:c("replace-all",60220),replace:c("replace",60221),repoClone:c("repo-clone",60222),repoForcePush:c("repo-force-push",60223),repoPull:c("repo-pull",60224),repoPush:c("repo-push",60225),report:c("report",60226),requestChanges:c("request-changes",60227),rocket:c("rocket",60228),rootFolderOpened:c("root-folder-opened",60229),rootFolder:c("root-folder",60230),rss:c("rss",60231),ruby:c("ruby",60232),saveAll:c("save-all",60233),saveAs:c("save-as",60234),save:c("save",60235),screenFull:c("screen-full",60236),screenNormal:c("screen-normal",60237),searchStop:c("search-stop",60238),server:c("server",60240),settingsGear:c("settings-gear",60241),settings:c("settings",60242),shield:c("shield",60243),smiley:c("smiley",60244),sortPrecedence:c("sort-precedence",60245),splitHorizontal:c("split-horizontal",60246),splitVertical:c("split-vertical",60247),squirrel:c("squirrel",60248),starFull:c("star-full",60249),starHalf:c("star-half",60250),symbolClass:c("symbol-class",60251),symbolColor:c("symbol-color",60252),symbolConstant:c("symbol-constant",60253),symbolEnumMember:c("symbol-enum-member",60254),symbolField:c("symbol-field",60255),symbolFile:c("symbol-file",60256),symbolInterface:c("symbol-interface",60257),symbolKeyword:c("symbol-keyword",60258),symbolMisc:c("symbol-misc",60259),symbolOperator:c("symbol-operator",60260),symbolProperty:c("symbol-property",60261),wrench:c("wrench",60261),wrenchSubaction:c("wrench-subaction",60261),symbolSnippet:c("symbol-snippet",60262),tasklist:c("tasklist",60263),telescope:c("telescope",60264),textSize:c("text-size",60265),threeBars:c("three-bars",60266),thumbsdown:c("thumbsdown",60267),thumbsup:c("thumbsup",60268),tools:c("tools",60269),triangleDown:c("triangle-down",60270),triangleLeft:c("triangle-left",60271),triangleRight:c("triangle-right",60272),triangleUp:c("triangle-up",60273),twitter:c("twitter",60274),unfold:c("unfold",60275),unlock:c("unlock",60276),unmute:c("unmute",60277),unverified:c("unverified",60278),verified:c("verified",60279),versions:c("versions",60280),vmActive:c("vm-active",60281),vmOutline:c("vm-outline",60282),vmRunning:c("vm-running",60283),watch:c("watch",60284),whitespace:c("whitespace",60285),wholeWord:c("whole-word",60286),window:c("window",60287),wordWrap:c("word-wrap",60288),zoomIn:c("zoom-in",60289),zoomOut:c("zoom-out",60290),listFilter:c("list-filter",60291),listFlat:c("list-flat",60292),listSelection:c("list-selection",60293),selection:c("selection",60293),listTree:c("list-tree",60294),debugBreakpointFunctionUnverified:c("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:c("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:c("debug-breakpoint-function-disabled",60296),debugStackframeActive:c("debug-stackframe-active",60297),circleSmallFilled:c("circle-small-filled",60298),debugStackframeDot:c("debug-stackframe-dot",60298),terminalDecorationMark:c("terminal-decoration-mark",60298),debugStackframe:c("debug-stackframe",60299),debugStackframeFocused:c("debug-stackframe-focused",60299),debugBreakpointUnsupported:c("debug-breakpoint-unsupported",60300),symbolString:c("symbol-string",60301),debugReverseContinue:c("debug-reverse-continue",60302),debugStepBack:c("debug-step-back",60303),debugRestartFrame:c("debug-restart-frame",60304),debugAlt:c("debug-alt",60305),callIncoming:c("call-incoming",60306),callOutgoing:c("call-outgoing",60307),menu:c("menu",60308),expandAll:c("expand-all",60309),feedback:c("feedback",60310),gitPullRequestReviewer:c("git-pull-request-reviewer",60310),groupByRefType:c("group-by-ref-type",60311),ungroupByRefType:c("ungroup-by-ref-type",60312),account:c("account",60313),gitPullRequestAssignee:c("git-pull-request-assignee",60313),bellDot:c("bell-dot",60314),debugConsole:c("debug-console",60315),library:c("library",60316),output:c("output",60317),runAll:c("run-all",60318),syncIgnored:c("sync-ignored",60319),pinned:c("pinned",60320),githubInverted:c("github-inverted",60321),serverProcess:c("server-process",60322),serverEnvironment:c("server-environment",60323),pass:c("pass",60324),issueClosed:c("issue-closed",60324),stopCircle:c("stop-circle",60325),playCircle:c("play-circle",60326),record:c("record",60327),debugAltSmall:c("debug-alt-small",60328),vmConnect:c("vm-connect",60329),cloud:c("cloud",60330),merge:c("merge",60331),export:c("export",60332),graphLeft:c("graph-left",60333),magnet:c("magnet",60334),notebook:c("notebook",60335),redo:c("redo",60336),checkAll:c("check-all",60337),pinnedDirty:c("pinned-dirty",60338),passFilled:c("pass-filled",60339),circleLargeFilled:c("circle-large-filled",60340),circleLarge:c("circle-large",60341),circleLargeOutline:c("circle-large-outline",60341),combine:c("combine",60342),gather:c("gather",60342),table:c("table",60343),variableGroup:c("variable-group",60344),typeHierarchy:c("type-hierarchy",60345),typeHierarchySub:c("type-hierarchy-sub",60346),typeHierarchySuper:c("type-hierarchy-super",60347),gitPullRequestCreate:c("git-pull-request-create",60348),runAbove:c("run-above",60349),runBelow:c("run-below",60350),notebookTemplate:c("notebook-template",60351),debugRerun:c("debug-rerun",60352),workspaceTrusted:c("workspace-trusted",60353),workspaceUntrusted:c("workspace-untrusted",60354),workspaceUnknown:c("workspace-unknown",60355),terminalCmd:c("terminal-cmd",60356),terminalDebian:c("terminal-debian",60357),terminalLinux:c("terminal-linux",60358),terminalPowershell:c("terminal-powershell",60359),terminalTmux:c("terminal-tmux",60360),terminalUbuntu:c("terminal-ubuntu",60361),terminalBash:c("terminal-bash",60362),arrowSwap:c("arrow-swap",60363),copy:c("copy",60364),personAdd:c("person-add",60365),filterFilled:c("filter-filled",60366),wand:c("wand",60367),debugLineByLine:c("debug-line-by-line",60368),inspect:c("inspect",60369),layers:c("layers",60370),layersDot:c("layers-dot",60371),layersActive:c("layers-active",60372),compass:c("compass",60373),compassDot:c("compass-dot",60374),compassActive:c("compass-active",60375),azure:c("azure",60376),issueDraft:c("issue-draft",60377),gitPullRequestClosed:c("git-pull-request-closed",60378),gitPullRequestDraft:c("git-pull-request-draft",60379),debugAll:c("debug-all",60380),debugCoverage:c("debug-coverage",60381),runErrors:c("run-errors",60382),folderLibrary:c("folder-library",60383),debugContinueSmall:c("debug-continue-small",60384),beakerStop:c("beaker-stop",60385),graphLine:c("graph-line",60386),graphScatter:c("graph-scatter",60387),pieChart:c("pie-chart",60388),bracket:c("bracket",60175),bracketDot:c("bracket-dot",60389),bracketError:c("bracket-error",60390),lockSmall:c("lock-small",60391),azureDevops:c("azure-devops",60392),verifiedFilled:c("verified-filled",60393),newline:c("newline",60394),layout:c("layout",60395),layoutActivitybarLeft:c("layout-activitybar-left",60396),layoutActivitybarRight:c("layout-activitybar-right",60397),layoutPanelLeft:c("layout-panel-left",60398),layoutPanelCenter:c("layout-panel-center",60399),layoutPanelJustify:c("layout-panel-justify",60400),layoutPanelRight:c("layout-panel-right",60401),layoutPanel:c("layout-panel",60402),layoutSidebarLeft:c("layout-sidebar-left",60403),layoutSidebarRight:c("layout-sidebar-right",60404),layoutStatusbar:c("layout-statusbar",60405),layoutMenubar:c("layout-menubar",60406),layoutCentered:c("layout-centered",60407),target:c("target",60408),indent:c("indent",60409),recordSmall:c("record-small",60410),errorSmall:c("error-small",60411),terminalDecorationError:c("terminal-decoration-error",60411),arrowCircleDown:c("arrow-circle-down",60412),arrowCircleLeft:c("arrow-circle-left",60413),arrowCircleRight:c("arrow-circle-right",60414),arrowCircleUp:c("arrow-circle-up",60415),layoutSidebarRightOff:c("layout-sidebar-right-off",60416),layoutPanelOff:c("layout-panel-off",60417),layoutSidebarLeftOff:c("layout-sidebar-left-off",60418),blank:c("blank",60419),heartFilled:c("heart-filled",60420),map:c("map",60421),mapHorizontal:c("map-horizontal",60421),foldHorizontal:c("fold-horizontal",60421),mapFilled:c("map-filled",60422),mapHorizontalFilled:c("map-horizontal-filled",60422),foldHorizontalFilled:c("fold-horizontal-filled",60422),circleSmall:c("circle-small",60423),bellSlash:c("bell-slash",60424),bellSlashDot:c("bell-slash-dot",60425),commentUnresolved:c("comment-unresolved",60426),gitPullRequestGoToChanges:c("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:c("git-pull-request-new-changes",60428),searchFuzzy:c("search-fuzzy",60429),commentDraft:c("comment-draft",60430),send:c("send",60431),sparkle:c("sparkle",60432),insert:c("insert",60433),mic:c("mic",60434),thumbsdownFilled:c("thumbsdown-filled",60435),thumbsupFilled:c("thumbsup-filled",60436),coffee:c("coffee",60437),snake:c("snake",60438),game:c("game",60439),vr:c("vr",60440),chip:c("chip",60441),piano:c("piano",60442),music:c("music",60443),micFilled:c("mic-filled",60444),repoFetch:c("repo-fetch",60445),copilot:c("copilot",60446),lightbulbSparkle:c("lightbulb-sparkle",60447),robot:c("robot",60448),sparkleFilled:c("sparkle-filled",60449),diffSingle:c("diff-single",60450),diffMultiple:c("diff-multiple",60451),surroundWith:c("surround-with",60452),share:c("share",60453),gitStash:c("git-stash",60454),gitStashApply:c("git-stash-apply",60455),gitStashPop:c("git-stash-pop",60456),vscode:c("vscode",60457),vscodeInsiders:c("vscode-insiders",60458),codeOss:c("code-oss",60459),runCoverage:c("run-coverage",60460),runAllCoverage:c("run-all-coverage",60461),coverage:c("coverage",60462),githubProject:c("github-project",60463),mapVertical:c("map-vertical",60464),foldVertical:c("fold-vertical",60464),mapVerticalFilled:c("map-vertical-filled",60465),foldVerticalFilled:c("fold-vertical-filled",60465)},ll={dialogError:c("dialog-error","error"),dialogWarning:c("dialog-warning","warning"),dialogInfo:c("dialog-info","info"),dialogClose:c("dialog-close","close"),treeItemExpanded:c("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:c("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:c("tree-filter-on-type-off","list-selection"),treeFilterClear:c("tree-filter-clear","close"),treeItemLoading:c("tree-item-loading","loading"),menuSelection:c("menu-selection","check"),menuSubmenu:c("menu-submenu","chevron-right"),menuBarMore:c("menubar-more","more"),scrollbarButtonLeft:c("scrollbar-button-left","triangle-left"),scrollbarButtonRight:c("scrollbar-button-right","triangle-right"),scrollbarButtonUp:c("scrollbar-button-up","triangle-up"),scrollbarButtonDown:c("scrollbar-button-down","triangle-down"),toolBarMore:c("toolbar-more","more"),quickInputBack:c("quick-input-back","arrow-left"),dropDownButton:c("drop-down-button",60084),symbolCustomColor:c("symbol-customcolor",60252),exportIcon:c("export",60332),workspaceUnspecified:c("workspace-unspecified",60355),newLine:c("newline",60394),thumbsDownFilled:c("thumbsdown-filled",60435),thumbsUpFilled:c("thumbsup-filled",60436),gitFetch:c("git-fetch",60445),lightbulbSparkleAutofix:c("lightbulb-sparkle-autofix",60447),debugBreakpointPending:c("debug-breakpoint-pending",60377)},q={...ol,...ll};class ul{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Ae,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),Yt(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var r;(r=this._factories.get(t))===null||r===void 0||r.dispose();const i=new cl(this,t,n);return this._factories.set(t,i),Yt(()=>{const s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,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 cl extends Mt{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,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 t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class fl{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var ci;(function(e){const t=new Map;t.set(0,q.symbolMethod),t.set(1,q.symbolFunction),t.set(2,q.symbolConstructor),t.set(3,q.symbolField),t.set(4,q.symbolVariable),t.set(5,q.symbolClass),t.set(6,q.symbolStruct),t.set(7,q.symbolInterface),t.set(8,q.symbolModule),t.set(9,q.symbolProperty),t.set(10,q.symbolEvent),t.set(11,q.symbolOperator),t.set(12,q.symbolUnit),t.set(13,q.symbolValue),t.set(15,q.symbolEnum),t.set(14,q.symbolConstant),t.set(15,q.symbolEnum),t.set(16,q.symbolEnumMember),t.set(17,q.symbolKeyword),t.set(27,q.symbolSnippet),t.set(18,q.symbolText),t.set(19,q.symbolColor),t.set(20,q.symbolFile),t.set(21,q.symbolReference),t.set(22,q.symbolCustomColor),t.set(23,q.symbolFolder),t.set(24,q.symbolTypeParameter),t.set(25,q.account),t.set(26,q.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=q.symbolProperty),a}e.toIcon=n;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",27),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);function i(s,a){let o=r.get(s);return typeof o>"u"&&!a&&(o=9),o}e.fromString=i})(ci||(ci={}));var fi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(fi||(fi={}));var hi;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(hi||(hi={}));var di;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(di||(di={}));var gi;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(gi||(gi={})),Z("Array","array"),Z("Boolean","boolean"),Z("Class","class"),Z("Constant","constant"),Z("Constructor","constructor"),Z("Enum","enumeration"),Z("EnumMember","enumeration member"),Z("Event","event"),Z("Field","field"),Z("File","file"),Z("Function","function"),Z("Interface","interface"),Z("Key","key"),Z("Method","method"),Z("Module","module"),Z("Namespace","namespace"),Z("Null","null"),Z("Number","number"),Z("Object","object"),Z("Operator","operator"),Z("Package","package"),Z("Property","property"),Z("String","string"),Z("Struct","struct"),Z("TypeParameter","type parameter"),Z("Variable","variable");var mi;(function(e){const t=new Map;t.set(0,q.symbolFile),t.set(1,q.symbolModule),t.set(2,q.symbolNamespace),t.set(3,q.symbolPackage),t.set(4,q.symbolClass),t.set(5,q.symbolMethod),t.set(6,q.symbolProperty),t.set(7,q.symbolField),t.set(8,q.symbolConstructor),t.set(9,q.symbolEnum),t.set(10,q.symbolInterface),t.set(11,q.symbolFunction),t.set(12,q.symbolVariable),t.set(13,q.symbolConstant),t.set(14,q.symbolString),t.set(15,q.symbolNumber),t.set(16,q.symbolBoolean),t.set(17,q.symbolArray),t.set(18,q.symbolObject),t.set(19,q.symbolKey),t.set(20,q.symbolNull),t.set(21,q.symbolEnumMember),t.set(22,q.symbolStruct),t.set(23,q.symbolEvent),t.set(24,q.symbolOperator),t.set(25,q.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=q.symbolProperty),i}e.toIcon=n})(mi||(mi={}));var pi;(function(e){e[e.AIGenerated=1]="AIGenerated"})(pi||(pi={}));var vi;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(vi||(vi={}));var bi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(bi||(bi={})),new ul;var xi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(xi||(xi={}));var yi;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(yi||(yi={}));var wi;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(wi||(wi={}));var _i;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(_i||(_i={}));var Si;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Si||(Si={}));var Li;(function(e){e[e.Deprecated=1]="Deprecated"})(Li||(Li={}));var Ni;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ni||(Ni={}));var Ai;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Ai||(Ai={}));var Ci;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Ci||(Ci={}));var ki;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(ki||(ki={}));var Ei;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Ei||(Ei={}));var Mi;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Mi||(Mi={}));var Ri;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(Ri||(Ri={}));var Ti;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ti||(Ti={}));var Pi;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Pi||(Pi={}));var Fi;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Fi||(Fi={}));var Ii;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Ii||(Ii={}));var Di;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Di||(Di={}));var Vi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Vi||(Vi={}));var Oi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Oi||(Oi={}));var ji;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(ji||(ji={}));var Yn;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Yn||(Yn={}));var Kn;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Kn||(Kn={}));var er;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(er||(er={}));var qi;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(qi||(qi={}));var Bi;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Bi||(Bi={}));var Ui;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Ui||(Ui={}));var $i;(function(e){e[e.AIGenerated=1]="AIGenerated"})($i||($i={}));var Wi;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Wi||(Wi={}));var Hi;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Hi||(Hi={}));var zi;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(zi||(zi={}));var Gi;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(Gi||(Gi={}));var Ji;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(Ji||(Ji={}));var Xi;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Xi||(Xi={}));var Qi;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Qi||(Qi={}));var Zi;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Zi||(Zi={}));var tr;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(tr||(tr={}));var Yi;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(Yi||(Yi={}));var Ki;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Ki||(Ki={}));var es;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(es||(es={}));var ts;(function(e){e[e.Deprecated=1]="Deprecated"})(ts||(ts={}));var ns;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(ns||(ns={}));var rs;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(rs||(rs={}));var is;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(is||(is={}));var ss;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(ss||(ss={}));class Pt{static chord(t,n){return al(t,n)}}Pt.CtrlCmd=2048,Pt.Shift=1024,Pt.Alt=512,Pt.WinCtrl=256;function hl(){return{editor:void 0,languages:void 0,CancellationTokenSource:nl,Emitter:Ae,KeyCode:Yn,KeyMod:Pt,Position:Pe,Range:se,Selection:xe,SelectionDirection:tr,MarkerSeverity:Kn,MarkerTag:er,Uri:Un,Token:fl}}var as;class dl{constructor(){this[as]="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(){var t;return(t=this._head)===null||t===void 0?void 0:t.value}get last(){var t;return(t=this._tail)===null||t===void 0?void 0:t.value}has(t){return this._map.has(t)}get(t,n=0){const r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),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 t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(as=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class gl extends dl{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class ml{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}new gl(10);var os;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(os||(os={}));var ls;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(ls||(ls={}));var us;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(us||(us={}));function pl(e,t,n,r,i){if(r===0)return!0;const s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function vl(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function bl(e,t,n,r,i){return pl(e,t,n,r,i)&&vl(e,t,n,r,i)}class xl{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){lo(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||bl(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function yl(e,t="Unreachable"){throw new Error(t)}function fn(e){if(!e()){debugger;e(),Dr(new je("Assertion Failed"))}}function cs(e,t){let n=0;for(;n<e.length-1;){const r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}class wl{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new fs(n),o=a.getCandidateCodePoints();let l;o==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${_l(Array.from(o))}`,"g");const u=new xl(null,l),f=[];let h=!1,d,g=0,m=0,v=0;e:for(let p=i,x=s;p<=x;p++){const y=t.getLineContent(p),b=y.length;u.reset(0);do if(d=u.next(y),d){let L=d.index,S=d.index+d[0].length;if(L>0){const M=y.charCodeAt(L-1);jn(M)&&L--}if(S+1<b){const M=y.charCodeAt(S-1);jn(M)&&S++}const _=y.substring(L,S);let N=Hn(L+1,ii,y,0);N&&N.endColumn<=L+1&&(N=null);const A=a.shouldHighlightNonBasicASCII(_,N?N.word:null);if(A!==0){if(A===3?g++:A===2?m++:A===1?v++:yl(),f.length>=1e3){h=!0;break e}f.push(new se(p,L+1,p,S+1))}}while(d)}return{ranges:f,hasMore:h,ambiguousCharacterCount:g,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:v}}static computeUnicodeHighlightReason(t,n){const r=new fs(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=rt.getLocales().filter(l=>!rt.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function _l(e,t){return`[${no(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class fs{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=rt.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of He.codePoints)hs(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=co(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!He.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!hs(t)&&He.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function hs(e){return e===" "||e===`
8
8
  `||e===" "}class hn{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class Sl{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class z{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{const s=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new z(s,a))}}static tryCreate(t,n){if(!(t>n))return new z(t,n)}static ofLength(t){return new z(0,t)}static ofStartAndLength(t,n){return new z(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new je(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new z(this.start+t,this.endExclusive+t)}deltaStart(t){return new z(this.start+t,this.endExclusive)}deltaEnd(t){return new z(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new z(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new z(n,r)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new je(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new je(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function xt(e,t){const n=Ft(e,t);return n===-1?void 0:e[n]}function Ft(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?i=a+1:s=a}return i-1}function Ll(e,t){const n=nr(e,t);return n===e.length?void 0:e[n]}function nr(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?s=a:i=a+1}return i}class It{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(It.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=Ft(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}}It.assertInvariants=!1;class H{static fromRangeInclusive(t){return new H(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Fe(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new Fe(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new je("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let i=1;i<t.length;i++)n=Math.min(n,t[i].startLineNumber),r=Math.max(r,t[i].endLineNumberExclusive);return new H(n,r)}static ofLength(t,n){return new H(t,t+n)}static deserialize(t){return new H(t[0],t[1])}constructor(t,n){if(t>n)throw new je(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new H(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new H(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new H(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new H(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new se(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new se(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new z(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Fe{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=nr(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=Ft(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){const n=xt(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=xt(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){const o=this._normalizedRanges[r],l=t._normalizedRanges[i];o.startLineNumber<l.startLineNumber?(a=o,r++):(a=l,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new H(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Fe(n)}subtractFrom(t){const n=nr(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=Ft(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new Fe([t]);const i=[];let s=t.startLineNumber;for(let a=n;a<r;a++){const o=this._normalizedRanges[a];o.startLineNumber>s&&i.push(new H(s,o.startLineNumber)),s=o.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new H(s,t.endLineNumberExclusive)),new Fe(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){const s=this._normalizedRanges[r],a=t._normalizedRanges[i],o=s.intersect(a);o&&!o.isEmpty&&n.push(o),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new Fe(n)}getWithDelta(t){return new Fe(this._normalizedRanges.map(n=>n.delta(t)))}}class Ee{static inverse(t,n,r){const i=[];let s=1,a=1;for(const l of t){const u=new Ee(new H(s,l.original.startLineNumber),new H(a,l.modified.startLineNumber));u.modified.isEmpty||i.push(u),s=l.original.endLineNumberExclusive,a=l.modified.endLineNumberExclusive}const o=new Ee(new H(s,n+1),new H(a,r+1));return o.modified.isEmpty||i.push(o),i}static clip(t,n,r){const i=[];for(const s of t){const a=s.original.intersect(n),o=s.modified.intersect(r);a&&!a.isEmpty&&o&&!o.isEmpty&&i.push(new Ee(a,o))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Ee(this.modified,this.original)}join(t){return new Ee(this.original.join(t.original),this.modified.join(t.modified))}}class qe extends Ee{static fromRangeMappings(t){const n=H.join(t.map(i=>H.fromRangeInclusive(i.originalRange))),r=H.join(t.map(i=>H.fromRangeInclusive(i.modifiedRange)));return new qe(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){var t;return new qe(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new qe(this.original,this.modified,[new yt(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class yt{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new yt(this.modifiedRange,this.originalRange)}}const Nl=3;class Al{computeDiff(t,n,r){var i;const a=new El(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const u of a.changes){let f;u.originalEndLineNumber===0?f=new H(u.originalStartLineNumber+1,u.originalStartLineNumber+1):f=new H(u.originalStartLineNumber,u.originalEndLineNumber+1);let h;u.modifiedEndLineNumber===0?h=new H(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):h=new H(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let d=new qe(f,h,(i=u.charChanges)===null||i===void 0?void 0:i.map(g=>new yt(new se(g.originalStartLineNumber,g.originalStartColumn,g.originalEndLineNumber,g.originalEndColumn),new se(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===d.modified.startLineNumber||l.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new qe(l.original.join(d.original),l.modified.join(d.modified),l.innerChanges&&d.innerChanges?l.innerChanges.concat(d.innerChanges):void 0),o.pop()),o.push(d),l=d}return fn(()=>cs(o,(u,f)=>f.original.startLineNumber-u.original.endLineNumberExclusive===f.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<f.original.startLineNumber&&u.modified.endLineNumberExclusive<f.modified.startLineNumber)),new hn(o,[],a.quitEarly)}}function ds(e,t,n,r){return new Ge(e,t,n).ComputeDiff(r)}let gs=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=rr(t[i],1),r[i]=ir(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const i=[],s=[],a=[];let o=0;for(let l=n;l<=r;l++){const u=this.lines[l],f=t?this._startColumns[l]:1,h=t?this._endColumns[l]:u.length+1;for(let d=f;d<h;d++)i[o]=u.charCodeAt(d-1),s[o]=l+1,a[o]=d,o++;!t&&l<r&&(i[o]=10,s[o]=l+1,a[o]=u.length+1,o++)}return new Cl(i,s,a)}};class Cl{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class wt{constructor(t,n,r,i,s,a,o,l){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(t,n,r){const i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),o=n.getEndColumn(t.originalStart+t.originalLength-1),l=r.getStartLineNumber(t.modifiedStart),u=r.getStartColumn(t.modifiedStart),f=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),h=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new wt(i,s,a,o,l,u,f,h)}}function kl(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const s=e[r],a=s.originalStart-(n.originalStart+n.originalLength),o=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<Nl?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class Dt{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,a,o){let l,u,f,h,d;if(n.originalLength===0?(l=r.getStartLineNumber(n.originalStart)-1,u=0):(l=r.getStartLineNumber(n.originalStart),u=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(f=i.getStartLineNumber(n.modifiedStart)-1,h=0):(f=i.getStartLineNumber(n.modifiedStart),h=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const g=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),m=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(g.getElements().length>0&&m.getElements().length>0){let v=ds(g,m,s,!0).changes;o&&(v=kl(v)),d=[];for(let p=0,x=v.length;p<x;p++)d.push(wt.createFromDiffChange(v[p],g,m))}}return new Dt(l,u,f,h,d)}}class El{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new gs(t),this.modified=new gs(n),this.continueLineDiff=ms(r.maxComputationTime),this.continueCharDiff=ms(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=ds(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const o=[];for(let l=0,u=n.length;l<u;l++)o.push(Dt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[l],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:o}}const i=[];let s=0,a=0;for(let o=-1,l=n.length;o<l;o++){const u=o+1<l?n[o+1]:null,f=u?u.originalStart:this.originalLines.length,h=u?u.modifiedStart:this.modifiedLines.length;for(;s<f&&a<h;){const d=this.originalLines[s],g=this.modifiedLines[a];if(d!==g){{let m=rr(d,1),v=rr(g,1);for(;m>1&&v>1;){const p=d.charCodeAt(m-2),x=g.charCodeAt(v-2);if(p!==x)break;m--,v--}(m>1||v>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,m,a+1,1,v)}{let m=ir(d,1),v=ir(g,1);const p=d.length+1,x=g.length+1;for(;m<p&&v<x;){const y=d.charCodeAt(m-1),b=d.charCodeAt(v-1);if(y!==b)break;m++,v++}(m<p||v<x)&&this._pushTrimWhitespaceCharChange(i,s+1,m,p,a+1,v,x)}}s++,a++}u&&(i.push(Dt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,o){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,o))return;let l;this.shouldComputeCharChanges&&(l=[new wt(n,r,n,i,s,a,s,o)]),t.push(new Dt(n,n,s,s,l))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,o){const l=t.length;if(l===0)return!1;const u=t[l-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new wt(n,r,n,i,s,a,s,o)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new wt(n,r,n,i,s,a,s,o)),!0):!1}}function rr(e,t){const n=io(e);return n===-1?t:n+1}function ir(e,t){const n=so(e);return n===-1?t:n+2}function ms(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class Be{static trivial(t,n){return new Be([new K(z.ofLength(t.length),z.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new Be([new K(z.ofLength(t.length),z.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class K{static invert(t,n){const r=[];return Bo(t,(i,s)=>{r.push(K.fromOffsetPairs(i?i.getEndExclusives():ye.zero,s?s.getStarts():new ye(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new K(new z(t.offset1,n.offset1),new z(t.offset2,n.offset2))}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new K(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new K(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new K(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new K(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new K(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new K(n,r)}getStarts(){return new ye(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ye(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ye{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new ye(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}}ye.zero=new ye(0,0),ye.max=new ye(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class Vt{isValid(){return!0}}Vt.instance=new Vt;class Ml{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new je("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class sr{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function ar(e){return e===32||e===9}class _t{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let l=0;l<a.length;l++){i++;const u=a[l],f=_t.getKey(u);this.histogram[f]=(this.histogram[f]||0)+1}i++;const o=_t.getKey(`
@@ -38,5 +38,5 @@
38
38
 
39
39
  `),L+="`".concat(Tu(b),"`: ").concat(y)),u([L])}return null})},e}();function Cr(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
40
40
 
41
- $3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Tu(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var Pu=Xt(),Fu=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:_e.Error)},e.prototype.doValidation=function(t,n,r,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},l=function(d){var g=d.range.start.line+" "+d.range.start.character+" "+d.message;o[g]||(o[g]=!0,a.push(d))},u=function(d){var g=r?.trailingCommas?_n(r.trailingCommas):_e.Error,m=r?.comments?_n(r.comments):s.commentSeverity,v=r?.schemaValidation?_n(r.schemaValidation):_e.Warning,p=r?.schemaRequest?_n(r.schemaRequest):_e.Warning;if(d){if(d.errors.length&&n.root&&p){var x=n.root,y=x.type==="object"?x.properties[0]:void 0;if(y&&y.keyNode.value==="$schema"){var b=y.valueNode||y,L=X.create(t.positionAt(b.offset),t.positionAt(b.offset+b.length));l($e.create(L,d.errors[0],p,J.SchemaResolveError))}else{var L=X.create(t.positionAt(x.offset),t.positionAt(x.offset+1));l($e.create(L,d.errors[0],p,J.SchemaResolveError))}}else if(v){var S=n.validate(t,d.schema,v);S&&S.forEach(l)}ya(d.schema)&&(m=void 0),wa(d.schema)&&(g=void 0)}for(var _=0,N=n.syntaxErrors;_<N.length;_++){var A=N[_];if(A.code===J.TrailingComma){if(typeof g!="number")continue;A.severity=g}l(A)}if(typeof m=="number"){var M=Pu("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(I){l($e.create(I,M,m,J.CommentNotPermitted))})}return a};if(i){var f=i.id||"schemaservice://untitled/"+Iu++,h=this.jsonSchemaService.registerExternalSchema(f,[],i);return h.getResolvedSchema().then(function(d){return u(d)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(d){return u(d)})},e.prototype.getLanguageStatus=function(t,n){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(t.uri,n)}},e}(),Iu=0;function ya(e){if(e&&typeof e=="object"){if(Ie(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=ya(r);if(Ie(i))return i}}}function wa(e){if(e&&typeof e=="object"){if(Ie(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Ie(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=r[n],s=wa(i);if(Ie(s))return s}}}function _n(e){switch(e){case"error":return _e.Error;case"warning":return _e.Warning;case"ignore":return}}var _a=48,Du=57,Vu=65,Sn=97,Ou=102;function te(e){return e<_a?0:e<=Du?e-_a:(e<Sn&&(e+=Sn-Vu),e>=Sn&&e<=Ou?e-Sn+10:0)}function ju(e){if(e[0]==="#")switch(e.length){case 4:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:te(e.charCodeAt(4))*17/255};case 7:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:(te(e.charCodeAt(7))*16+te(e.charCodeAt(8)))/255}}}var qu=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||Ut(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var l=[],u=0,f=s.items;u<f.length;u++){var h=f[u];if(h.type==="object")for(var d=0,g=h.properties;d<g.length;d++){var m=g[d];if(m.keyNode.value==="key"&&m.valueNode){var v=$t.create(t.uri,et(t,h));if(l.push({name:ot(m.valueNode),kind:De.Function,location:v}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),l}}}return l}for(var p=[{node:s,containerName:""}],x=0,y=!1,b=[],L=function(_,N){_.type==="array"?_.items.forEach(function(A){A&&p.push({node:A,containerName:N})}):_.type==="object"&&_.properties.forEach(function(A){var M=A.valueNode;if(M)if(a>0){a--;var I=$t.create(t.uri,et(t,A)),C=N?N+"."+A.keyNode.value:A.keyNode.value;b.push({name:i.getKeyLabel(A),kind:i.getSymbolKind(M.type),location:I,containerName:N}),p.push({node:M,containerName:C})}else y=!0})};x<p.length;){var S=p[x++];L(S.node,S.containerName)}return y&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),b},e.prototype.findDocumentSymbols2=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||Ut(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var l=[],u=0,f=s.items;u<f.length;u++){var h=f[u];if(h.type==="object")for(var d=0,g=h.properties;d<g.length;d++){var m=g[d];if(m.keyNode.value==="key"&&m.valueNode){var v=et(t,h),p=et(t,m.keyNode);if(l.push({name:ot(m.valueNode),kind:De.Function,range:v,selectionRange:p}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),l}}}return l}for(var x=[],y=[{node:s,result:x}],b=0,L=!1,S=function(N,A){N.type==="array"?N.items.forEach(function(M,I){if(M)if(a>0){a--;var C=et(t,M),w=C,T=String(I),F={name:T,kind:i.getSymbolKind(M.type),range:C,selectionRange:w,children:[]};A.push(F),y.push({result:F.children,node:M})}else L=!0}):N.type==="object"&&N.properties.forEach(function(M){var I=M.valueNode;if(I)if(a>0){a--;var C=et(t,M),w=et(t,M.keyNode),T=[],F={name:i.getKeyLabel(M),kind:i.getSymbolKind(I.type),range:C,selectionRange:w,children:T,detail:i.getDetail(I)};A.push(F),y.push({result:T,node:I})}else L=!0})};b<y.length;){var _=y[b++];S(_.node,_.result)}return L&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),x},e.prototype.getSymbolKind=function(t){switch(t){case"object":return De.Module;case"string":return De.String;case"number":return De.Number;case"array":return De.Array;case"boolean":return De.Boolean;default:return De.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"↵")),n&&n.trim()?n:'"'.concat(n,'"')},e.prototype.getDetail=function(t){if(t){if(t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string")return String(t.value);if(t.type==="array")return t.children.length?void 0:"[]";if(t.type==="object")return t.children.length?void 0:"{}"}},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(i){var s=[];if(i)for(var a=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,o=n.getMatchingSchemas(i.schema),l={},u=0,f=o;u<f.length;u++){var h=f[u];if(!h.inverted&&h.schema&&(h.schema.format==="color"||h.schema.format==="color-hex")&&h.node&&h.node.type==="string"){var d=String(h.node.offset);if(!l[d]){var g=ju(ot(h.node));if(g){var m=et(t,h.node);s.push({color:g,range:m})}if(l[d]=!0,a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),s}}}return s})},e.prototype.getColorPresentations=function(t,n,r,i){var s=[],a=Math.round(r.red*255),o=Math.round(r.green*255),l=Math.round(r.blue*255);function u(h){var d=h.toString(16);return d.length!==2?"0"+d:d}var f;return r.alpha===1?f="#".concat(u(a)).concat(u(o)).concat(u(l)):f="#".concat(u(a)).concat(u(o)).concat(u(l)).concat(u(Math.round(r.alpha*255))),s.push({label:f,textEdit:Re.replace(i,JSON.stringify(f))}),s},e}();function et(e,t){return X.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var $=Xt(),kr={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},Bu={id:$("schema.json.id","A unique identifier for the schema."),$schema:$("schema.json.$schema","The schema to verify this document against."),title:$("schema.json.title","A descriptive title of the element."),description:$("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:$("schema.json.default","A default value. Used by suggestions."),multipleOf:$("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:$("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:$("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:$("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:$("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:$("schema.json.maxLength","The maximum length of a string."),minLength:$("schema.json.minLength","The minimum length of a string."),pattern:$("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:$("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:$("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:$("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:$("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:$("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:$("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:$("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:$("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:$("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:$("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:$("schema.json.properties","A map of property names to schemas for each property."),patternProperties:$("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:$("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:$("schema.json.enum","The set of literal values that are valid."),type:$("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:$("schema.json.format","Describes the format expected for the value."),allOf:$("schema.json.allOf","An array of schemas, all of which must match."),anyOf:$("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:$("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:$("schema.json.not","A schema which must not match."),$id:$("schema.json.$id","A unique identifier for the schema."),$ref:$("schema.json.$ref","Reference a definition hosted on any location."),$comment:$("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:$("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:$("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:$("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:$("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:$("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:$("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:$("schema.json.contentEncoding","Describes the content encoding of a string property."),if:$("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:$("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:$("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Sa in kr.schemas){Ln=kr.schemas[Sa];for(Ct in Ln.properties)Nn=Ln.properties[Ct],typeof Nn=="boolean"&&(Nn=Ln.properties[Ct]={}),Er=Bu[Ct],Er?Nn.description=Er:console.log("".concat(Ct,": localize('schema.json.").concat(Ct,`', "")`))}var Ln,Nn,Er,Ct,Sa,La;La=(()=>{var e={470:r=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function s(o,l){for(var u,f="",h=0,d=-1,g=0,m=0;m<=o.length;++m){if(m<o.length)u=o.charCodeAt(m);else{if(u===47)break;u=47}if(u===47){if(!(d===m-1||g===1))if(d!==m-1&&g===2){if(f.length<2||h!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var v=f.lastIndexOf("/");if(v!==f.length-1){v===-1?(f="",h=0):h=(f=f.slice(0,v)).length-1-f.lastIndexOf("/"),d=m,g=0;continue}}else if(f.length===2||f.length===1){f="",h=0,d=m,g=0;continue}}l&&(f.length>0?f+="/..":f="..",h=2)}else f.length>0?f+="/"+o.slice(d+1,m):f=o.slice(d+1,m),h=m-d-1;d=m,g=0}else u===46&&g!==-1?++g:g=-1}return f}var a={resolve:function(){for(var o,l="",u=!1,f=arguments.length-1;f>=-1&&!u;f--){var h;f>=0?h=arguments[f]:(o===void 0&&(o=process.cwd()),h=o),i(h),h.length!==0&&(l=h+"/"+l,u=h.charCodeAt(0)===47)}return l=s(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(i(o),o.length===0)return".";var l=o.charCodeAt(0)===47,u=o.charCodeAt(o.length-1)===47;return(o=s(o,!l)).length!==0||l||(o="."),o.length>0&&u&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l<arguments.length;++l){var u=arguments[l];i(u),u.length>0&&(o===void 0?o=u:o+="/"+u)}return o===void 0?".":a.normalize(o)},relative:function(o,l){if(i(o),i(l),o===l||(o=a.resolve(o))===(l=a.resolve(l)))return"";for(var u=1;u<o.length&&o.charCodeAt(u)===47;++u);for(var f=o.length,h=f-u,d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var g=l.length-d,m=h<g?h:g,v=-1,p=0;p<=m;++p){if(p===m){if(g>m){if(l.charCodeAt(d+p)===47)return l.slice(d+p+1);if(p===0)return l.slice(d+p)}else h>m&&(o.charCodeAt(u+p)===47?v=p:p===0&&(v=0));break}var x=o.charCodeAt(u+p);if(x!==l.charCodeAt(d+p))break;x===47&&(v=p)}var y="";for(p=u+v+1;p<=f;++p)p!==f&&o.charCodeAt(p)!==47||(y.length===0?y+="..":y+="/..");return y.length>0?y+l.slice(d+v):(d+=v,l.charCodeAt(d)===47&&++d,l.slice(d))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,f=-1,h=!0,d=o.length-1;d>=1;--d)if((l=o.charCodeAt(d))===47){if(!h){f=d;break}}else h=!1;return f===-1?u?"/":".":u&&f===1?"//":o.slice(0,f)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(o);var u,f=0,h=-1,d=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var g=l.length-1,m=-1;for(u=o.length-1;u>=0;--u){var v=o.charCodeAt(u);if(v===47){if(!d){f=u+1;break}}else m===-1&&(d=!1,m=u+1),g>=0&&(v===l.charCodeAt(g)?--g==-1&&(h=u):(g=-1,h=m))}return f===h?h=m:h===-1&&(h=o.length),o.slice(f,h)}for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!d){f=u+1;break}}else h===-1&&(d=!1,h=u+1);return h===-1?"":o.slice(f,h)},extname:function(o){i(o);for(var l=-1,u=0,f=-1,h=!0,d=0,g=o.length-1;g>=0;--g){var m=o.charCodeAt(g);if(m!==47)f===-1&&(h=!1,f=g+1),m===46?l===-1?l=g:d!==1&&(d=1):l!==-1&&(d=-1);else if(!h){u=g+1;break}}return l===-1||f===-1||d===0||d===1&&l===f-1&&l===u+1?"":o.slice(l,f)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,u){var f=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return f?f===u.root?f+h:f+"/"+h:h}(0,o)},parse:function(o){i(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var u,f=o.charCodeAt(0),h=f===47;h?(l.root="/",u=1):u=0;for(var d=-1,g=0,m=-1,v=!0,p=o.length-1,x=0;p>=u;--p)if((f=o.charCodeAt(p))!==47)m===-1&&(v=!1,m=p+1),f===46?d===-1?d=p:x!==1&&(x=1):d!==-1&&(x=-1);else if(!v){g=p+1;break}return d===-1||m===-1||x===0||x===1&&d===m-1&&d===g+1?m!==-1&&(l.base=l.name=g===0&&h?o.slice(1,m):o.slice(g,m)):(g===0&&h?(l.name=o.slice(1,d),l.base=o.slice(1,m)):(l.name=o.slice(g,d),l.base=o.slice(g,m)),l.ext=o.slice(d,m)),g>0?l.dir=o.slice(0,g-1):h&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,s)=>{var a;if(s.r(i),s.d(i,{URI:()=>y,Utils:()=>T}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;a=o.indexOf("Windows")>=0}var l,u,f=(l=function(R,k){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,D){P.__proto__=D}||function(P,D){for(var B in D)Object.prototype.hasOwnProperty.call(D,B)&&(P[B]=D[B])})(R,k)},function(R,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function P(){this.constructor=R}l(R,k),R.prototype=k===null?Object.create(k):(P.prototype=k.prototype,new P)}),h=/^\w[\w\d+.-]*$/,d=/^\//,g=/^\/\//;function m(R,k){if(!R.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(R.authority,'", path: "').concat(R.path,'", query: "').concat(R.query,'", fragment: "').concat(R.fragment,'"}'));if(R.scheme&&!h.test(R.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(R.path){if(R.authority){if(!d.test(R.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(g.test(R.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var v="",p="/",x=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,y=function(){function R(k,P,D,B,U,G){G===void 0&&(G=!1),typeof k=="object"?(this.scheme=k.scheme||v,this.authority=k.authority||v,this.path=k.path||v,this.query=k.query||v,this.fragment=k.fragment||v):(this.scheme=function(de,le){return de||le?de:"file"}(k,G),this.authority=P||v,this.path=function(de,le){switch(de){case"https":case"http":case"file":le?le[0]!==p&&(le=p+le):le=p}return le}(this.scheme,D||v),this.query=B||v,this.fragment=U||v,m(this,G))}return R.isUri=function(k){return k instanceof R||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="string"&&typeof k.with=="function"&&typeof k.toString=="function"},Object.defineProperty(R.prototype,"fsPath",{get:function(){return A(this,!1)},enumerable:!1,configurable:!0}),R.prototype.with=function(k){if(!k)return this;var P=k.scheme,D=k.authority,B=k.path,U=k.query,G=k.fragment;return P===void 0?P=this.scheme:P===null&&(P=v),D===void 0?D=this.authority:D===null&&(D=v),B===void 0?B=this.path:B===null&&(B=v),U===void 0?U=this.query:U===null&&(U=v),G===void 0?G=this.fragment:G===null&&(G=v),P===this.scheme&&D===this.authority&&B===this.path&&U===this.query&&G===this.fragment?this:new L(P,D,B,U,G)},R.parse=function(k,P){P===void 0&&(P=!1);var D=x.exec(k);return D?new L(D[2]||v,w(D[4]||v),w(D[5]||v),w(D[7]||v),w(D[9]||v),P):new L(v,v,v,v,v)},R.file=function(k){var P=v;if(a&&(k=k.replace(/\\/g,p)),k[0]===p&&k[1]===p){var D=k.indexOf(p,2);D===-1?(P=k.substring(2),k=p):(P=k.substring(2,D),k=k.substring(D)||p)}return new L("file",P,k,v,v)},R.from=function(k){var P=new L(k.scheme,k.authority,k.path,k.query,k.fragment);return m(P,!0),P},R.prototype.toString=function(k){return k===void 0&&(k=!1),M(this,k)},R.prototype.toJSON=function(){return this},R.revive=function(k){if(k){if(k instanceof R)return k;var P=new L(k);return P._formatted=k.external,P._fsPath=k._sep===b?k.fsPath:null,P}return k},R}(),b=a?1:void 0,L=function(R){function k(){var P=R!==null&&R.apply(this,arguments)||this;return P._formatted=null,P._fsPath=null,P}return f(k,R),Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=A(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),k.prototype.toString=function(P){return P===void 0&&(P=!1),P?M(this,!0):(this._formatted||(this._formatted=M(this,!1)),this._formatted)},k.prototype.toJSON=function(){var P={$mid:1};return this._fsPath&&(P.fsPath=this._fsPath,P._sep=b),this._formatted&&(P.external=this._formatted),this.path&&(P.path=this.path),this.scheme&&(P.scheme=this.scheme),this.authority&&(P.authority=this.authority),this.query&&(P.query=this.query),this.fragment&&(P.fragment=this.fragment),P},k}(y),S=((u={})[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u);function _(R,k){for(var P=void 0,D=-1,B=0;B<R.length;B++){var U=R.charCodeAt(B);if(U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===45||U===46||U===95||U===126||k&&U===47)D!==-1&&(P+=encodeURIComponent(R.substring(D,B)),D=-1),P!==void 0&&(P+=R.charAt(B));else{P===void 0&&(P=R.substr(0,B));var G=S[U];G!==void 0?(D!==-1&&(P+=encodeURIComponent(R.substring(D,B)),D=-1),P+=G):D===-1&&(D=B)}}return D!==-1&&(P+=encodeURIComponent(R.substring(D))),P!==void 0?P:R}function N(R){for(var k=void 0,P=0;P<R.length;P++){var D=R.charCodeAt(P);D===35||D===63?(k===void 0&&(k=R.substr(0,P)),k+=S[D]):k!==void 0&&(k+=R[P])}return k!==void 0?k:R}function A(R,k){var P;return P=R.authority&&R.path.length>1&&R.scheme==="file"?"//".concat(R.authority).concat(R.path):R.path.charCodeAt(0)===47&&(R.path.charCodeAt(1)>=65&&R.path.charCodeAt(1)<=90||R.path.charCodeAt(1)>=97&&R.path.charCodeAt(1)<=122)&&R.path.charCodeAt(2)===58?k?R.path.substr(1):R.path[1].toLowerCase()+R.path.substr(2):R.path,a&&(P=P.replace(/\//g,"\\")),P}function M(R,k){var P=k?N:_,D="",B=R.scheme,U=R.authority,G=R.path,de=R.query,le=R.fragment;if(B&&(D+=B,D+=":"),(U||B==="file")&&(D+=p,D+=p),U){var be=U.indexOf("@");if(be!==-1){var Et=U.substr(0,be);U=U.substr(be+1),(be=Et.indexOf(":"))===-1?D+=P(Et,!1):(D+=P(Et.substr(0,be),!1),D+=":",D+=P(Et.substr(be+1),!1)),D+="@"}(be=(U=U.toLowerCase()).indexOf(":"))===-1?D+=P(U,!1):(D+=P(U.substr(0,be),!1),D+=U.substr(be))}if(G){if(G.length>=3&&G.charCodeAt(0)===47&&G.charCodeAt(2)===58)(Oe=G.charCodeAt(1))>=65&&Oe<=90&&(G="/".concat(String.fromCharCode(Oe+32),":").concat(G.substr(3)));else if(G.length>=2&&G.charCodeAt(1)===58){var Oe;(Oe=G.charCodeAt(0))>=65&&Oe<=90&&(G="".concat(String.fromCharCode(Oe+32),":").concat(G.substr(2)))}D+=P(G,!0)}return de&&(D+="?",D+=P(de,!1)),le&&(D+="#",D+=k?le:_(le,!1)),D}function I(R){try{return decodeURIComponent(R)}catch{return R.length>3?R.substr(0,3)+I(R.substr(3)):R}}var C=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(R){return R.match(C)?R.replace(C,function(k){return I(k)}):R}var T,F=s(470),V=function(R,k,P){if(P||arguments.length===2)for(var D,B=0,U=k.length;B<U;B++)!D&&B in k||(D||(D=Array.prototype.slice.call(k,0,B)),D[B]=k[B]);return R.concat(D||Array.prototype.slice.call(k))},O=F.posix||F;(function(R){R.joinPath=function(k){for(var P=[],D=1;D<arguments.length;D++)P[D-1]=arguments[D];return k.with({path:O.join.apply(O,V([k.path],P,!1))})},R.resolvePath=function(k){for(var P=[],D=1;D<arguments.length;D++)P[D-1]=arguments[D];var B=k.path||"/";return k.with({path:O.resolve.apply(O,V([B],P,!1))})},R.dirname=function(k){var P=O.dirname(k.path);return P.length===1&&P.charCodeAt(0)===46?k:k.with({path:P})},R.basename=function(k){return O.basename(k.path)},R.extname=function(k){return O.extname(k.path)}})(T||(T={}))}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.d=(r,i)=>{for(var s in i)n.o(i,s)&&!n.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();var{URI:kt,Utils:gc}=La;function Uu(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var n=String(e),r="",i=t?!!t.extended:!1,s=t?!!t.globstar:!1,a=!1,o=t&&typeof t.flags=="string"?t.flags:"",l,u=0,f=n.length;u<f;u++)switch(l=n[u],l){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+l;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=l;break}case"{":if(i){a=!0,r+="(";break}case"}":if(i){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\"+l;break;case"*":for(var h=n[u-1],d=1;n[u+1]==="*";)d++,u++;var g=n[u+1];if(!s)r+=".*";else{var m=d>1&&(h==="/"||h===void 0||h==="{"||h===",")&&(g==="/"||g===void 0||g===","||g==="}");m?(g==="/"?u++:h==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}break;default:r+=l}return(!o||!~o.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,o)}var Ve=Xt(),$u="!",Wu="/",Hu=function(){function e(t,n){this.globWrappers=[];try{for(var r=0,i=t;r<i.length;r++){var s=i[r],a=s[0]!==$u;a||(s=s.substring(1)),s.length>0&&(s[0]===Wu&&(s=s.substring(1)),this.globWrappers.push({regexp:Uu("**/"+s,{extended:!0,globstar:!0}),include:a}))}this.uris=n}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0,i=this.globWrappers;r<i.length;r++){var s=i[r],a=s.regexp,o=s.include;a.test(t)&&(n=o)}return n},e.prototype.getURIs=function(){return this.uris},e}(),zu=function(){function e(t,n,r){this.service=t,this.uri=n,this.dependencies=new Set,this.anchors=void 0,r&&(this.unresolvedSchema=this.service.promise.resolve(new Qt(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t)})),this.resolvedSchema},e.prototype.clearSchema=function(){var t=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,t},e}(),Qt=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),Na=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);if(n)return pe(n)},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var i=0,s=Object.keys(n.patternProperties);i<s.length;i++){var a=s[i],o=mn(a);if(o?.test(r))return this.getSectionRecursive(t,n.patternProperties[a])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var l=parseInt(r,10);if(!isNaN(l)&&n.items[l])return this.getSectionRecursive(t,n.items[l])}else if(n.items)return this.getSectionRecursive(t,n.items)}}},e}(),Gu=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=kt.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this;this.cachedSchemaForResource=void 0;var r=!1;t=tt(t);for(var i=[t],s=Object.keys(this.schemasById).map(function(u){return n.schemasById[u]});i.length;)for(var a=i.pop(),o=0;o<s.length;o++){var l=s[o];l&&(l.uri===a||l.dependencies.has(a))&&(l.uri!==a&&i.push(l.uri),l.clearSchema()&&(r=!0),s[o]=void 0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var i=tt(r);this.contributionSchemas[i]=this.addSchemaHandle(i,n[r])}}if(Array.isArray(t.schemaAssociations))for(var s=t.schemaAssociations,a=0,o=s;a<o.length;a++){var l=o[a],u=l.uris.map(tt),f=this.addFilePatternAssociation(l.pattern,u);this.contributionAssociations.push(f)}},e.prototype.addSchemaHandle=function(t,n){var r=new zu(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new Hu(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=tt(t);return this.registeredSchemasIds[i]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[i]),r?this.addSchemaHandle(i,r):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var i=r[n];this.filePatternAssociations.push(i)}},e.prototype.getResolvedSchema=function(t){var n=tt(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=Ve("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",An(t));return this.promise.resolve(new Qt({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=Ve("json.schema.nocontent","Unable to load schema from '{0}': No content.",An(t));return new Qt({},[i])}var s={},a=[];s=cu(r,a);var o=a.length?[Ve("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",An(t),a[0].offset)]:[];return new Qt(s,o)},function(r){var i=r.toString(),s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),Ut(i,".")&&(i=i.substr(0,i.length-1)),new Qt({},[Ve("json.schema.nocontent","Unable to load schema from '{0}': {1}.",An(t),i)])})},e.prototype.resolveSchemaContent=function(t,n){var r=this,i=t.errors.slice(0),s=t.schema;if(s.$schema){var a=tt(s.$schema);if(a==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Na({},[Ve("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));a==="https://json-schema.org/draft/2019-09/schema"?i.push(Ve("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported.")):a==="https://json-schema.org/draft/2020-12/schema"&&i.push(Ve("json.schema.draft202012.notsupported","Draft 2020-12 schemas are not yet fully supported."))}var o=this.contextService,l=function(v,p){p=decodeURIComponent(p);var x=v;return p[0]==="/"&&(p=p.substring(1)),p.split("/").some(function(y){return y=y.replace(/~1/g,"/").replace(/~0/g,"~"),x=x[y],!x}),x},u=function(v,p,x){return p.anchors||(p.anchors=m(v)),p.anchors.get(x)},f=function(v,p){for(var x in p)p.hasOwnProperty(x)&&!v.hasOwnProperty(x)&&x!=="id"&&x!=="$id"&&(v[x]=p[x])},h=function(v,p,x,y){var b;y===void 0||y.length===0?b=p:y.charAt(0)==="/"?b=l(p,y):b=u(p,x,y),b?f(v,b):i.push(Ve("json.schema.invalidid","$ref '{0}' in '{1}' can not be resolved.",y,x.uri))},d=function(v,p,x,y){o&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(p)&&(p=o.resolveRelativePath(p,y.uri)),p=tt(p);var b=r.getOrAddSchemaHandle(p);return b.getUnresolvedSchema().then(function(L){if(y.dependencies.add(p),L.errors.length){var S=x?p+"#"+x:p;i.push(Ve("json.schema.problemloadingref","Problems loading reference '{0}': {1}",S,L.errors[0]))}return h(v,L.schema,b,x),g(v,L.schema,b)})},g=function(v,p,x){var y=[];return r.traverseNodes(v,function(b){for(var L=new Set;b.$ref;){var S=b.$ref,_=S.split("#",2);if(delete b.$ref,_[0].length>0){y.push(d(b,_[0],_[1],x));return}else if(!L.has(S)){var N=_[1];h(b,p,x,N),L.add(S)}}}),r.promise.all(y)},m=function(v){var p=new Map;return r.traverseNodes(v,function(x){var y=x.$id||x.id;if(typeof y=="string"&&y.charAt(0)==="#"){var b=y.substring(1);p.has(b)?i.push(Ve("json.schema.duplicateid","Duplicate id declaration: '{0}'",y)):p.set(b,x)}}),p};return g(s,s,n).then(function(v){return new Na(s,i)})},e.prototype.traverseNodes=function(t,n){if(!t||typeof t!="object")return Promise.resolve(null);for(var r=new Set,i=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];for(var h=0,d=u;h<d.length;h++){var g=d[h];typeof g=="object"&&o.push(g)}},s=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];for(var h=0,d=u;h<d.length;h++){var g=d[h];if(typeof g=="object")for(var m in g){var v=m,p=g[v];typeof p=="object"&&o.push(p)}}},a=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];for(var h=0,d=u;h<d.length;h++){var g=d[h];if(Array.isArray(g))for(var m=0,v=g;m<v.length;m++){var p=v[m];typeof p=="object"&&o.push(p)}}},o=[t],l=o.pop();l;)r.has(l)||(r.add(l),n(l),i(l.items,l.additionalItems,l.additionalProperties,l.not,l.contains,l.propertyNames,l.if,l.then,l.else),s(l.definitions,l.properties,l.patternProperties,l.dependencies),a(l.anyOf,l.allOf,l.oneOf,l.items)),l=o.pop()},e.prototype.getSchemaFromProperty=function(t,n){var r,i;if(((r=n.root)===null||r===void 0?void 0:r.type)==="object")for(var s=0,a=n.root.properties;s<a.length;s++){var o=a[s];if(o.keyNode.value==="$schema"&&((i=o.valueNode)===null||i===void 0?void 0:i.type)==="string"){var l=o.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(l)&&(l=this.contextService.resolveRelativePath(l,t)),l}}},e.prototype.getAssociatedSchemas=function(t){for(var n=Object.create(null),r=[],i=Xu(t),s=0,a=this.filePatternAssociations;s<a.length;s++){var o=a[s];if(o.matchesPattern(i))for(var l=0,u=o.getURIs();l<u.length;l++){var f=u[l];n[f]||(r.push(f),n[f]=!0)}}return r},e.prototype.getSchemaURIsForResource=function(t,n){var r=n&&this.getSchemaFromProperty(t,n);return r?[r]:this.getAssociatedSchemas(t)},e.prototype.getSchemaForResource=function(t,n){if(n){var r=this.getSchemaFromProperty(t,n);if(r){var i=tt(r);return this.getOrAddSchemaHandle(i).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;var s=this.getAssociatedSchemas(t),a=s.length>0?this.createCombinedSchema(t,s).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:a},a},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:n.map(function(s){return{$ref:s}})};return this.addSchemaHandle(r,i)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var i=r.id||"schemaservice://untitled/matchingSchemas/"+Ju++,s=this.addSchemaHandle(i,r);return s.getResolvedSchema().then(function(a){return n.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(a){return a?n.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted}):[]})},e}(),Ju=0;function tt(e){try{return kt.parse(e).toString(!0)}catch{return e}}function Xu(e){try{return kt.parse(e).with({fragment:null,query:null}).toString(!0)}catch{return e}}function An(e){try{var t=kt.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function Qu(e,t){var n=[],r=[],i=[],s=-1,a=Nt(e.getText(),!1),o=a.scan();function l(I){n.push(I),r.push(i.length)}for(;o!==17;){switch(o){case 1:case 3:{var u=e.positionAt(a.getTokenOffset()).line,f={startLine:u,endLine:u,kind:o===1?"object":"array"};i.push(f);break}case 2:case 4:{var h=o===2?"object":"array";if(i.length>0&&i[i.length-1].kind===h){var f=i.pop(),d=e.positionAt(a.getTokenOffset()).line;f&&d>f.startLine+1&&s!==f.startLine&&(f.endLine=d-1,l(f),s=f.startLine)}break}case 13:{var u=e.positionAt(a.getTokenOffset()).line,g=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&u+1<e.lineCount?a.setPosition(e.offsetAt(Me.create(u+1,0))):u<g&&(l({startLine:u,endLine:g,kind:Wt.Comment}),s=u);break}case 12:{var m=e.getText().substr(a.getTokenOffset(),a.getTokenLength()),v=m.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(v){var d=e.positionAt(a.getTokenOffset()).line;if(v[1]){var f={startLine:d,endLine:d,kind:Wt.Region};i.push(f)}else{for(var p=i.length-1;p>=0&&i[p].kind!==Wt.Region;)p--;if(p>=0){var f=i[p];i.length=p,d>f.startLine&&s!==f.startLine&&(f.endLine=d,l(f),s=f.startLine)}}}break}}o=a.scan()}var x=t&&t.rangeLimit;if(typeof x!="number"||n.length<=x)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var y=[],b=0,L=r;b<L.length;b++){var S=L[b];S<30&&(y[S]=(y[S]||0)+1)}for(var _=0,N=0,p=0;p<y.length;p++){var A=y[p];if(A){if(A+_>x){N=p;break}_+=A}}for(var M=[],p=0;p<n.length;p++){var S=r[p];typeof S=="number"&&(S<N||S===N&&_++<x)&&M.push(n[p])}return M}function Zu(e,t,n){function r(o){for(var l=e.offsetAt(o),u=n.getNodeFromOffset(l,!0),f=[];u;){switch(u.type){case"string":case"object":case"array":var h=u.offset+1,d=u.offset+u.length-1;h<d&&l>=h&&l<=d&&f.push(i(h,d)),f.push(i(u.offset,u.offset+u.length));break;case"number":case"boolean":case"null":case"property":f.push(i(u.offset,u.offset+u.length));break}if(u.type==="property"||u.parent&&u.parent.type==="array"){var g=a(u.offset+u.length,5);g!==-1&&f.push(i(u.offset,g))}u=u.parent}for(var m=void 0,v=f.length-1;v>=0;v--)m=wn.create(f[v],m);return m||(m=wn.create(X.create(o,o))),m}function i(o,l){return X.create(e.positionAt(o),e.positionAt(l))}var s=Nt(e.getText(),!0);function a(o,l){s.setPosition(o);var u=s.scan();return u===l?s.getTokenOffset()+s.getTokenLength():-1}return t.map(r)}function Yu(e,t){var n=[];return t.visit(function(r){var i;if(r.type==="property"&&r.keyNode.value==="$ref"&&((i=r.valueNode)===null||i===void 0?void 0:i.type)==="string"){var s=r.valueNode.value,a=ec(t,s);if(a){var o=e.positionAt(a.offset);n.push({target:"".concat(e.uri,"#").concat(o.line+1,",").concat(o.character+1),range:Ku(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function Ku(e,t){return X.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function ec(e,t){var n=tc(t);return n?Mr(n,e.root):null}function Mr(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type==="object"){var r=t.properties.find(function(a){return a.keyNode.value===n});return r?Mr(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),s=t.items[i];return s?Mr(e,s):null}return null}function tc(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(nc)}function nc(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function rc(e){var t=e.promiseConstructor||Promise,n=new Gu(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(kr);var r=new Mu(n,e.contributions,t,e.clientCapabilities),i=new Ru(n,e.contributions,t),s=new qu(n),a=new Fu(n,t);return{configure:function(o){n.clearExternalSchemas(),o.schemas&&o.schemas.forEach(function(l){n.registerExternalSchema(l.uri,l.fileMatch,l.schema)}),a.configure(o)},resetSchema:function(o){return n.onResourceChange(o)},doValidation:a.doValidation.bind(a),getLanguageStatus:a.getLanguageStatus.bind(a),parseJSONDocument:function(o){return Eu(o,{collectComments:!0})},newJSONDocument:function(o,l){return ku(o,l)},getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Qu,getSelectionRanges:Zu,findDefinition:function(){return Promise.resolve([])},findLinks:Yu,format:function(o,l,u){var f=void 0;if(l){var h=o.offsetAt(l.start),d=o.offsetAt(l.end)-h;f={offset:h,length:d}}var g={tabSize:u?u.tabSize:4,insertSpaces:u?.insertSpaces===!0,insertFinalNewline:u?.insertFinalNewline===!0,eol:`
41
+ $3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Tu(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var Pu=Xt(),Fu=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:_e.Error)},e.prototype.doValidation=function(t,n,r,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},l=function(d){var g=d.range.start.line+" "+d.range.start.character+" "+d.message;o[g]||(o[g]=!0,a.push(d))},u=function(d){var g=r?.trailingCommas?_n(r.trailingCommas):_e.Error,m=r?.comments?_n(r.comments):s.commentSeverity,v=r?.schemaValidation?_n(r.schemaValidation):_e.Warning,p=r?.schemaRequest?_n(r.schemaRequest):_e.Warning;if(d){if(d.errors.length&&n.root&&p){var x=n.root,y=x.type==="object"?x.properties[0]:void 0;if(y&&y.keyNode.value==="$schema"){var b=y.valueNode||y,L=X.create(t.positionAt(b.offset),t.positionAt(b.offset+b.length));l($e.create(L,d.errors[0],p,J.SchemaResolveError))}else{var L=X.create(t.positionAt(x.offset),t.positionAt(x.offset+1));l($e.create(L,d.errors[0],p,J.SchemaResolveError))}}else if(v){var S=n.validate(t,d.schema,v);S&&S.forEach(l)}ya(d.schema)&&(m=void 0),wa(d.schema)&&(g=void 0)}for(var _=0,N=n.syntaxErrors;_<N.length;_++){var A=N[_];if(A.code===J.TrailingComma){if(typeof g!="number")continue;A.severity=g}l(A)}if(typeof m=="number"){var M=Pu("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(I){l($e.create(I,M,m,J.CommentNotPermitted))})}return a};if(i){var f=i.id||"schemaservice://untitled/"+Iu++,h=this.jsonSchemaService.registerExternalSchema(f,[],i);return h.getResolvedSchema().then(function(d){return u(d)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(d){return u(d)})},e.prototype.getLanguageStatus=function(t,n){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(t.uri,n)}},e}(),Iu=0;function ya(e){if(e&&typeof e=="object"){if(Ie(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=ya(r);if(Ie(i))return i}}}function wa(e){if(e&&typeof e=="object"){if(Ie(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Ie(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=r[n],s=wa(i);if(Ie(s))return s}}}function _n(e){switch(e){case"error":return _e.Error;case"warning":return _e.Warning;case"ignore":return}}var _a=48,Du=57,Vu=65,Sn=97,Ou=102;function te(e){return e<_a?0:e<=Du?e-_a:(e<Sn&&(e+=Sn-Vu),e>=Sn&&e<=Ou?e-Sn+10:0)}function ju(e){if(e[0]==="#")switch(e.length){case 4:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:te(e.charCodeAt(4))*17/255};case 7:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:(te(e.charCodeAt(7))*16+te(e.charCodeAt(8)))/255}}}var qu=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||Ut(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var l=[],u=0,f=s.items;u<f.length;u++){var h=f[u];if(h.type==="object")for(var d=0,g=h.properties;d<g.length;d++){var m=g[d];if(m.keyNode.value==="key"&&m.valueNode){var v=$t.create(t.uri,et(t,h));if(l.push({name:ot(m.valueNode),kind:De.Function,location:v}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),l}}}return l}for(var p=[{node:s,containerName:""}],x=0,y=!1,b=[],L=function(_,N){_.type==="array"?_.items.forEach(function(A){A&&p.push({node:A,containerName:N})}):_.type==="object"&&_.properties.forEach(function(A){var M=A.valueNode;if(M)if(a>0){a--;var I=$t.create(t.uri,et(t,A)),C=N?N+"."+A.keyNode.value:A.keyNode.value;b.push({name:i.getKeyLabel(A),kind:i.getSymbolKind(M.type),location:I,containerName:N}),p.push({node:M,containerName:C})}else y=!0})};x<p.length;){var S=p[x++];L(S.node,S.containerName)}return y&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),b},e.prototype.findDocumentSymbols2=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||Ut(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var l=[],u=0,f=s.items;u<f.length;u++){var h=f[u];if(h.type==="object")for(var d=0,g=h.properties;d<g.length;d++){var m=g[d];if(m.keyNode.value==="key"&&m.valueNode){var v=et(t,h),p=et(t,m.keyNode);if(l.push({name:ot(m.valueNode),kind:De.Function,range:v,selectionRange:p}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),l}}}return l}for(var x=[],y=[{node:s,result:x}],b=0,L=!1,S=function(N,A){N.type==="array"?N.items.forEach(function(M,I){if(M)if(a>0){a--;var C=et(t,M),w=C,T=String(I),F={name:T,kind:i.getSymbolKind(M.type),range:C,selectionRange:w,children:[]};A.push(F),y.push({result:F.children,node:M})}else L=!0}):N.type==="object"&&N.properties.forEach(function(M){var I=M.valueNode;if(I)if(a>0){a--;var C=et(t,M),w=et(t,M.keyNode),T=[],F={name:i.getKeyLabel(M),kind:i.getSymbolKind(I.type),range:C,selectionRange:w,children:T,detail:i.getDetail(I)};A.push(F),y.push({result:T,node:I})}else L=!0})};b<y.length;){var _=y[b++];S(_.node,_.result)}return L&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),x},e.prototype.getSymbolKind=function(t){switch(t){case"object":return De.Module;case"string":return De.String;case"number":return De.Number;case"array":return De.Array;case"boolean":return De.Boolean;default:return De.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"↵")),n&&n.trim()?n:'"'.concat(n,'"')},e.prototype.getDetail=function(t){if(t){if(t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string")return String(t.value);if(t.type==="array")return t.children.length?void 0:"[]";if(t.type==="object")return t.children.length?void 0:"{}"}},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(i){var s=[];if(i)for(var a=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,o=n.getMatchingSchemas(i.schema),l={},u=0,f=o;u<f.length;u++){var h=f[u];if(!h.inverted&&h.schema&&(h.schema.format==="color"||h.schema.format==="color-hex")&&h.node&&h.node.type==="string"){var d=String(h.node.offset);if(!l[d]){var g=ju(ot(h.node));if(g){var m=et(t,h.node);s.push({color:g,range:m})}if(l[d]=!0,a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),s}}}return s})},e.prototype.getColorPresentations=function(t,n,r,i){var s=[],a=Math.round(r.red*255),o=Math.round(r.green*255),l=Math.round(r.blue*255);function u(h){var d=h.toString(16);return d.length!==2?"0"+d:d}var f;return r.alpha===1?f="#".concat(u(a)).concat(u(o)).concat(u(l)):f="#".concat(u(a)).concat(u(o)).concat(u(l)).concat(u(Math.round(r.alpha*255))),s.push({label:f,textEdit:Re.replace(i,JSON.stringify(f))}),s},e}();function et(e,t){return X.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var $=Xt(),kr={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},Bu={id:$("schema.json.id","A unique identifier for the schema."),$schema:$("schema.json.$schema","The schema to verify this document against."),title:$("schema.json.title","A descriptive title of the element."),description:$("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:$("schema.json.default","A default value. Used by suggestions."),multipleOf:$("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:$("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:$("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:$("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:$("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:$("schema.json.maxLength","The maximum length of a string."),minLength:$("schema.json.minLength","The minimum length of a string."),pattern:$("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:$("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:$("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:$("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:$("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:$("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:$("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:$("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:$("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:$("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:$("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:$("schema.json.properties","A map of property names to schemas for each property."),patternProperties:$("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:$("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:$("schema.json.enum","The set of literal values that are valid."),type:$("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:$("schema.json.format","Describes the format expected for the value."),allOf:$("schema.json.allOf","An array of schemas, all of which must match."),anyOf:$("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:$("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:$("schema.json.not","A schema which must not match."),$id:$("schema.json.$id","A unique identifier for the schema."),$ref:$("schema.json.$ref","Reference a definition hosted on any location."),$comment:$("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:$("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:$("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:$("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:$("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:$("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:$("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:$("schema.json.contentEncoding","Describes the content encoding of a string property."),if:$("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:$("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:$("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Sa in kr.schemas){Ln=kr.schemas[Sa];for(Ct in Ln.properties)Nn=Ln.properties[Ct],typeof Nn=="boolean"&&(Nn=Ln.properties[Ct]={}),Er=Bu[Ct],Er?Nn.description=Er:console.log("".concat(Ct,": localize('schema.json.").concat(Ct,`', "")`))}var Ln,Nn,Er,Ct,Sa,La;La=(()=>{var e={470:r=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function s(o,l){for(var u,f="",h=0,d=-1,g=0,m=0;m<=o.length;++m){if(m<o.length)u=o.charCodeAt(m);else{if(u===47)break;u=47}if(u===47){if(!(d===m-1||g===1))if(d!==m-1&&g===2){if(f.length<2||h!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var v=f.lastIndexOf("/");if(v!==f.length-1){v===-1?(f="",h=0):h=(f=f.slice(0,v)).length-1-f.lastIndexOf("/"),d=m,g=0;continue}}else if(f.length===2||f.length===1){f="",h=0,d=m,g=0;continue}}l&&(f.length>0?f+="/..":f="..",h=2)}else f.length>0?f+="/"+o.slice(d+1,m):f=o.slice(d+1,m),h=m-d-1;d=m,g=0}else u===46&&g!==-1?++g:g=-1}return f}var a={resolve:function(){for(var o,l="",u=!1,f=arguments.length-1;f>=-1&&!u;f--){var h;f>=0?h=arguments[f]:(o===void 0&&(o=process.cwd()),h=o),i(h),h.length!==0&&(l=h+"/"+l,u=h.charCodeAt(0)===47)}return l=s(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(i(o),o.length===0)return".";var l=o.charCodeAt(0)===47,u=o.charCodeAt(o.length-1)===47;return(o=s(o,!l)).length!==0||l||(o="."),o.length>0&&u&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l<arguments.length;++l){var u=arguments[l];i(u),u.length>0&&(o===void 0?o=u:o+="/"+u)}return o===void 0?".":a.normalize(o)},relative:function(o,l){if(i(o),i(l),o===l||(o=a.resolve(o))===(l=a.resolve(l)))return"";for(var u=1;u<o.length&&o.charCodeAt(u)===47;++u);for(var f=o.length,h=f-u,d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var g=l.length-d,m=h<g?h:g,v=-1,p=0;p<=m;++p){if(p===m){if(g>m){if(l.charCodeAt(d+p)===47)return l.slice(d+p+1);if(p===0)return l.slice(d+p)}else h>m&&(o.charCodeAt(u+p)===47?v=p:p===0&&(v=0));break}var x=o.charCodeAt(u+p);if(x!==l.charCodeAt(d+p))break;x===47&&(v=p)}var y="";for(p=u+v+1;p<=f;++p)p!==f&&o.charCodeAt(p)!==47||(y.length===0?y+="..":y+="/..");return y.length>0?y+l.slice(d+v):(d+=v,l.charCodeAt(d)===47&&++d,l.slice(d))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,f=-1,h=!0,d=o.length-1;d>=1;--d)if((l=o.charCodeAt(d))===47){if(!h){f=d;break}}else h=!1;return f===-1?u?"/":".":u&&f===1?"//":o.slice(0,f)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(o);var u,f=0,h=-1,d=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var g=l.length-1,m=-1;for(u=o.length-1;u>=0;--u){var v=o.charCodeAt(u);if(v===47){if(!d){f=u+1;break}}else m===-1&&(d=!1,m=u+1),g>=0&&(v===l.charCodeAt(g)?--g==-1&&(h=u):(g=-1,h=m))}return f===h?h=m:h===-1&&(h=o.length),o.slice(f,h)}for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!d){f=u+1;break}}else h===-1&&(d=!1,h=u+1);return h===-1?"":o.slice(f,h)},extname:function(o){i(o);for(var l=-1,u=0,f=-1,h=!0,d=0,g=o.length-1;g>=0;--g){var m=o.charCodeAt(g);if(m!==47)f===-1&&(h=!1,f=g+1),m===46?l===-1?l=g:d!==1&&(d=1):l!==-1&&(d=-1);else if(!h){u=g+1;break}}return l===-1||f===-1||d===0||d===1&&l===f-1&&l===u+1?"":o.slice(l,f)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,u){var f=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return f?f===u.root?f+h:f+"/"+h:h}(0,o)},parse:function(o){i(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var u,f=o.charCodeAt(0),h=f===47;h?(l.root="/",u=1):u=0;for(var d=-1,g=0,m=-1,v=!0,p=o.length-1,x=0;p>=u;--p)if((f=o.charCodeAt(p))!==47)m===-1&&(v=!1,m=p+1),f===46?d===-1?d=p:x!==1&&(x=1):d!==-1&&(x=-1);else if(!v){g=p+1;break}return d===-1||m===-1||x===0||x===1&&d===m-1&&d===g+1?m!==-1&&(l.base=l.name=g===0&&h?o.slice(1,m):o.slice(g,m)):(g===0&&h?(l.name=o.slice(1,d),l.base=o.slice(1,m)):(l.name=o.slice(g,d),l.base=o.slice(g,m)),l.ext=o.slice(d,m)),g>0?l.dir=o.slice(0,g-1):h&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,s)=>{var a;if(s.r(i),s.d(i,{URI:()=>y,Utils:()=>T}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;a=o.indexOf("Windows")>=0}var l,u,f=(l=function(R,k){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,D){P.__proto__=D}||function(P,D){for(var B in D)Object.prototype.hasOwnProperty.call(D,B)&&(P[B]=D[B])})(R,k)},function(R,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function P(){this.constructor=R}l(R,k),R.prototype=k===null?Object.create(k):(P.prototype=k.prototype,new P)}),h=/^\w[\w\d+.-]*$/,d=/^\//,g=/^\/\//;function m(R,k){if(!R.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(R.authority,'", path: "').concat(R.path,'", query: "').concat(R.query,'", fragment: "').concat(R.fragment,'"}'));if(R.scheme&&!h.test(R.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(R.path){if(R.authority){if(!d.test(R.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(g.test(R.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var v="",p="/",x=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,y=function(){function R(k,P,D,B,U,G){G===void 0&&(G=!1),typeof k=="object"?(this.scheme=k.scheme||v,this.authority=k.authority||v,this.path=k.path||v,this.query=k.query||v,this.fragment=k.fragment||v):(this.scheme=function(de,le){return de||le?de:"file"}(k,G),this.authority=P||v,this.path=function(de,le){switch(de){case"https":case"http":case"file":le?le[0]!==p&&(le=p+le):le=p}return le}(this.scheme,D||v),this.query=B||v,this.fragment=U||v,m(this,G))}return R.isUri=function(k){return k instanceof R||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="string"&&typeof k.with=="function"&&typeof k.toString=="function"},Object.defineProperty(R.prototype,"fsPath",{get:function(){return A(this)},enumerable:!1,configurable:!0}),R.prototype.with=function(k){if(!k)return this;var P=k.scheme,D=k.authority,B=k.path,U=k.query,G=k.fragment;return P===void 0?P=this.scheme:P===null&&(P=v),D===void 0?D=this.authority:D===null&&(D=v),B===void 0?B=this.path:B===null&&(B=v),U===void 0?U=this.query:U===null&&(U=v),G===void 0?G=this.fragment:G===null&&(G=v),P===this.scheme&&D===this.authority&&B===this.path&&U===this.query&&G===this.fragment?this:new L(P,D,B,U,G)},R.parse=function(k,P){P===void 0&&(P=!1);var D=x.exec(k);return D?new L(D[2]||v,w(D[4]||v),w(D[5]||v),w(D[7]||v),w(D[9]||v),P):new L(v,v,v,v,v)},R.file=function(k){var P=v;if(a&&(k=k.replace(/\\/g,p)),k[0]===p&&k[1]===p){var D=k.indexOf(p,2);D===-1?(P=k.substring(2),k=p):(P=k.substring(2,D),k=k.substring(D)||p)}return new L("file",P,k,v,v)},R.from=function(k){var P=new L(k.scheme,k.authority,k.path,k.query,k.fragment);return m(P,!0),P},R.prototype.toString=function(k){return k===void 0&&(k=!1),M(this,k)},R.prototype.toJSON=function(){return this},R.revive=function(k){if(k){if(k instanceof R)return k;var P=new L(k);return P._formatted=k.external,P._fsPath=k._sep===b?k.fsPath:null,P}return k},R}(),b=a?1:void 0,L=function(R){function k(){var P=R!==null&&R.apply(this,arguments)||this;return P._formatted=null,P._fsPath=null,P}return f(k,R),Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=A(this)),this._fsPath},enumerable:!1,configurable:!0}),k.prototype.toString=function(P){return P===void 0&&(P=!1),P?M(this,!0):(this._formatted||(this._formatted=M(this,!1)),this._formatted)},k.prototype.toJSON=function(){var P={$mid:1};return this._fsPath&&(P.fsPath=this._fsPath,P._sep=b),this._formatted&&(P.external=this._formatted),this.path&&(P.path=this.path),this.scheme&&(P.scheme=this.scheme),this.authority&&(P.authority=this.authority),this.query&&(P.query=this.query),this.fragment&&(P.fragment=this.fragment),P},k}(y),S=((u={})[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u);function _(R,k){for(var P=void 0,D=-1,B=0;B<R.length;B++){var U=R.charCodeAt(B);if(U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===45||U===46||U===95||U===126||k&&U===47)D!==-1&&(P+=encodeURIComponent(R.substring(D,B)),D=-1),P!==void 0&&(P+=R.charAt(B));else{P===void 0&&(P=R.substr(0,B));var G=S[U];G!==void 0?(D!==-1&&(P+=encodeURIComponent(R.substring(D,B)),D=-1),P+=G):D===-1&&(D=B)}}return D!==-1&&(P+=encodeURIComponent(R.substring(D))),P!==void 0?P:R}function N(R){for(var k=void 0,P=0;P<R.length;P++){var D=R.charCodeAt(P);D===35||D===63?(k===void 0&&(k=R.substr(0,P)),k+=S[D]):k!==void 0&&(k+=R[P])}return k!==void 0?k:R}function A(R,k){var P;return P=R.authority&&R.path.length>1&&R.scheme==="file"?"//".concat(R.authority).concat(R.path):R.path.charCodeAt(0)===47&&(R.path.charCodeAt(1)>=65&&R.path.charCodeAt(1)<=90||R.path.charCodeAt(1)>=97&&R.path.charCodeAt(1)<=122)&&R.path.charCodeAt(2)===58?R.path[1].toLowerCase()+R.path.substr(2):R.path,a&&(P=P.replace(/\//g,"\\")),P}function M(R,k){var P=k?N:_,D="",B=R.scheme,U=R.authority,G=R.path,de=R.query,le=R.fragment;if(B&&(D+=B,D+=":"),(U||B==="file")&&(D+=p,D+=p),U){var be=U.indexOf("@");if(be!==-1){var Et=U.substr(0,be);U=U.substr(be+1),(be=Et.indexOf(":"))===-1?D+=P(Et,!1):(D+=P(Et.substr(0,be),!1),D+=":",D+=P(Et.substr(be+1),!1)),D+="@"}(be=(U=U.toLowerCase()).indexOf(":"))===-1?D+=P(U,!1):(D+=P(U.substr(0,be),!1),D+=U.substr(be))}if(G){if(G.length>=3&&G.charCodeAt(0)===47&&G.charCodeAt(2)===58)(Oe=G.charCodeAt(1))>=65&&Oe<=90&&(G="/".concat(String.fromCharCode(Oe+32),":").concat(G.substr(3)));else if(G.length>=2&&G.charCodeAt(1)===58){var Oe;(Oe=G.charCodeAt(0))>=65&&Oe<=90&&(G="".concat(String.fromCharCode(Oe+32),":").concat(G.substr(2)))}D+=P(G,!0)}return de&&(D+="?",D+=P(de,!1)),le&&(D+="#",D+=k?le:_(le,!1)),D}function I(R){try{return decodeURIComponent(R)}catch{return R.length>3?R.substr(0,3)+I(R.substr(3)):R}}var C=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(R){return R.match(C)?R.replace(C,function(k){return I(k)}):R}var T,F=s(470),V=function(R,k,P){if(arguments.length===2)for(var D,B=0,U=k.length;B<U;B++)!D&&B in k||(D||(D=Array.prototype.slice.call(k,0,B)),D[B]=k[B]);return R.concat(D||Array.prototype.slice.call(k))},O=F.posix||F;(function(R){R.joinPath=function(k){for(var P=[],D=1;D<arguments.length;D++)P[D-1]=arguments[D];return k.with({path:O.join.apply(O,V([k.path],P,!1))})},R.resolvePath=function(k){for(var P=[],D=1;D<arguments.length;D++)P[D-1]=arguments[D];var B=k.path||"/";return k.with({path:O.resolve.apply(O,V([B],P,!1))})},R.dirname=function(k){var P=O.dirname(k.path);return P.length===1&&P.charCodeAt(0)===46?k:k.with({path:P})},R.basename=function(k){return O.basename(k.path)},R.extname=function(k){return O.extname(k.path)}})(T||(T={}))}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.d=(r,i)=>{for(var s in i)n.o(i,s)&&!n.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();var{URI:kt,Utils:gc}=La;function Uu(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var n=String(e),r="",i=t?!!t.extended:!1,s=t?!!t.globstar:!1,a=!1,o=t&&typeof t.flags=="string"?t.flags:"",l,u=0,f=n.length;u<f;u++)switch(l=n[u],l){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+l;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=l;break}case"{":if(i){a=!0,r+="(";break}case"}":if(i){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\"+l;break;case"*":for(var h=n[u-1],d=1;n[u+1]==="*";)d++,u++;var g=n[u+1];if(!s)r+=".*";else{var m=d>1&&(h==="/"||h===void 0||h==="{"||h===",")&&(g==="/"||g===void 0||g===","||g==="}");m?(g==="/"?u++:h==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}break;default:r+=l}return(!o||!~o.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,o)}var Ve=Xt(),$u="!",Wu="/",Hu=function(){function e(t,n){this.globWrappers=[];try{for(var r=0,i=t;r<i.length;r++){var s=i[r],a=s[0]!==$u;a||(s=s.substring(1)),s.length>0&&(s[0]===Wu&&(s=s.substring(1)),this.globWrappers.push({regexp:Uu("**/"+s,{extended:!0,globstar:!0}),include:a}))}this.uris=n}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0,i=this.globWrappers;r<i.length;r++){var s=i[r],a=s.regexp,o=s.include;a.test(t)&&(n=o)}return n},e.prototype.getURIs=function(){return this.uris},e}(),zu=function(){function e(t,n,r){this.service=t,this.uri=n,this.dependencies=new Set,this.anchors=void 0,r&&(this.unresolvedSchema=this.service.promise.resolve(new Qt(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t)})),this.resolvedSchema},e.prototype.clearSchema=function(){var t=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,t},e}(),Qt=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),Na=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);if(n)return pe(n)},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var i=0,s=Object.keys(n.patternProperties);i<s.length;i++){var a=s[i],o=mn(a);if(o?.test(r))return this.getSectionRecursive(t,n.patternProperties[a])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var l=parseInt(r,10);if(!isNaN(l)&&n.items[l])return this.getSectionRecursive(t,n.items[l])}else if(n.items)return this.getSectionRecursive(t,n.items)}}},e}(),Gu=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=kt.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this;this.cachedSchemaForResource=void 0;var r=!1;t=tt(t);for(var i=[t],s=Object.keys(this.schemasById).map(function(u){return n.schemasById[u]});i.length;)for(var a=i.pop(),o=0;o<s.length;o++){var l=s[o];l&&(l.uri===a||l.dependencies.has(a))&&(l.uri!==a&&i.push(l.uri),l.clearSchema()&&(r=!0),s[o]=void 0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var i=tt(r);this.contributionSchemas[i]=this.addSchemaHandle(i,n[r])}}if(Array.isArray(t.schemaAssociations))for(var s=t.schemaAssociations,a=0,o=s;a<o.length;a++){var l=o[a],u=l.uris.map(tt),f=this.addFilePatternAssociation(l.pattern,u);this.contributionAssociations.push(f)}},e.prototype.addSchemaHandle=function(t,n){var r=new zu(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new Hu(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=tt(t);return this.registeredSchemasIds[i]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[i]),r?this.addSchemaHandle(i,r):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var i=r[n];this.filePatternAssociations.push(i)}},e.prototype.getResolvedSchema=function(t){var n=tt(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=Ve("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",An(t));return this.promise.resolve(new Qt({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=Ve("json.schema.nocontent","Unable to load schema from '{0}': No content.",An(t));return new Qt({},[i])}var s={},a=[];s=cu(r,a);var o=a.length?[Ve("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",An(t),a[0].offset)]:[];return new Qt(s,o)},function(r){var i=r.toString(),s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),Ut(i,".")&&(i=i.substr(0,i.length-1)),new Qt({},[Ve("json.schema.nocontent","Unable to load schema from '{0}': {1}.",An(t),i)])})},e.prototype.resolveSchemaContent=function(t,n){var r=this,i=t.errors.slice(0),s=t.schema;if(s.$schema){var a=tt(s.$schema);if(a==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Na({},[Ve("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));a==="https://json-schema.org/draft/2019-09/schema"?i.push(Ve("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported.")):a==="https://json-schema.org/draft/2020-12/schema"&&i.push(Ve("json.schema.draft202012.notsupported","Draft 2020-12 schemas are not yet fully supported."))}var o=this.contextService,l=function(v,p){p=decodeURIComponent(p);var x=v;return p[0]==="/"&&(p=p.substring(1)),p.split("/").some(function(y){return y=y.replace(/~1/g,"/").replace(/~0/g,"~"),x=x[y],!x}),x},u=function(v,p,x){return p.anchors||(p.anchors=m(v)),p.anchors.get(x)},f=function(v,p){for(var x in p)p.hasOwnProperty(x)&&!v.hasOwnProperty(x)&&x!=="id"&&x!=="$id"&&(v[x]=p[x])},h=function(v,p,x,y){var b;y===void 0||y.length===0?b=p:y.charAt(0)==="/"?b=l(p,y):b=u(p,x,y),b?f(v,b):i.push(Ve("json.schema.invalidid","$ref '{0}' in '{1}' can not be resolved.",y,x.uri))},d=function(v,p,x,y){o&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(p)&&(p=o.resolveRelativePath(p,y.uri)),p=tt(p);var b=r.getOrAddSchemaHandle(p);return b.getUnresolvedSchema().then(function(L){if(y.dependencies.add(p),L.errors.length){var S=x?p+"#"+x:p;i.push(Ve("json.schema.problemloadingref","Problems loading reference '{0}': {1}",S,L.errors[0]))}return h(v,L.schema,b,x),g(v,L.schema,b)})},g=function(v,p,x){var y=[];return r.traverseNodes(v,function(b){for(var L=new Set;b.$ref;){var S=b.$ref,_=S.split("#",2);if(delete b.$ref,_[0].length>0){y.push(d(b,_[0],_[1],x));return}else if(!L.has(S)){var N=_[1];h(b,p,x,N),L.add(S)}}}),r.promise.all(y)},m=function(v){var p=new Map;return r.traverseNodes(v,function(x){var y=x.$id||x.id;if(typeof y=="string"&&y.charAt(0)==="#"){var b=y.substring(1);p.has(b)?i.push(Ve("json.schema.duplicateid","Duplicate id declaration: '{0}'",y)):p.set(b,x)}}),p};return g(s,s,n).then(function(v){return new Na(s,i)})},e.prototype.traverseNodes=function(t,n){if(!t||typeof t!="object")return Promise.resolve(null);for(var r=new Set,i=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];for(var h=0,d=u;h<d.length;h++){var g=d[h];typeof g=="object"&&o.push(g)}},s=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];for(var h=0,d=u;h<d.length;h++){var g=d[h];if(typeof g=="object")for(var m in g){var v=m,p=g[v];typeof p=="object"&&o.push(p)}}},a=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];for(var h=0,d=u;h<d.length;h++){var g=d[h];if(Array.isArray(g))for(var m=0,v=g;m<v.length;m++){var p=v[m];typeof p=="object"&&o.push(p)}}},o=[t],l=o.pop();l;)r.has(l)||(r.add(l),n(l),i(l.items,l.additionalItems,l.additionalProperties,l.not,l.contains,l.propertyNames,l.if,l.then,l.else),s(l.definitions,l.properties,l.patternProperties,l.dependencies),a(l.anyOf,l.allOf,l.oneOf,l.items)),l=o.pop()},e.prototype.getSchemaFromProperty=function(t,n){var r,i;if(((r=n.root)===null||r===void 0?void 0:r.type)==="object")for(var s=0,a=n.root.properties;s<a.length;s++){var o=a[s];if(o.keyNode.value==="$schema"&&((i=o.valueNode)===null||i===void 0?void 0:i.type)==="string"){var l=o.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(l)&&(l=this.contextService.resolveRelativePath(l,t)),l}}},e.prototype.getAssociatedSchemas=function(t){for(var n=Object.create(null),r=[],i=Xu(t),s=0,a=this.filePatternAssociations;s<a.length;s++){var o=a[s];if(o.matchesPattern(i))for(var l=0,u=o.getURIs();l<u.length;l++){var f=u[l];n[f]||(r.push(f),n[f]=!0)}}return r},e.prototype.getSchemaURIsForResource=function(t,n){var r=n&&this.getSchemaFromProperty(t,n);return r?[r]:this.getAssociatedSchemas(t)},e.prototype.getSchemaForResource=function(t,n){if(n){var r=this.getSchemaFromProperty(t,n);if(r){var i=tt(r);return this.getOrAddSchemaHandle(i).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;var s=this.getAssociatedSchemas(t),a=s.length>0?this.createCombinedSchema(t,s).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:a},a},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:n.map(function(s){return{$ref:s}})};return this.addSchemaHandle(r,i)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var i=r.id||"schemaservice://untitled/matchingSchemas/"+Ju++,s=this.addSchemaHandle(i,r);return s.getResolvedSchema().then(function(a){return n.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(a){return a?n.getMatchingSchemas(a.schema).filter(function(o){return!o.inverted}):[]})},e}(),Ju=0;function tt(e){try{return kt.parse(e).toString(!0)}catch{return e}}function Xu(e){try{return kt.parse(e).with({fragment:null,query:null}).toString(!0)}catch{return e}}function An(e){try{var t=kt.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function Qu(e,t){var n=[],r=[],i=[],s=-1,a=Nt(e.getText(),!1),o=a.scan();function l(I){n.push(I),r.push(i.length)}for(;o!==17;){switch(o){case 1:case 3:{var u=e.positionAt(a.getTokenOffset()).line,f={startLine:u,endLine:u,kind:o===1?"object":"array"};i.push(f);break}case 2:case 4:{var h=o===2?"object":"array";if(i.length>0&&i[i.length-1].kind===h){var f=i.pop(),d=e.positionAt(a.getTokenOffset()).line;f&&d>f.startLine+1&&s!==f.startLine&&(f.endLine=d-1,l(f),s=f.startLine)}break}case 13:{var u=e.positionAt(a.getTokenOffset()).line,g=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&u+1<e.lineCount?a.setPosition(e.offsetAt(Me.create(u+1,0))):u<g&&(l({startLine:u,endLine:g,kind:Wt.Comment}),s=u);break}case 12:{var m=e.getText().substr(a.getTokenOffset(),a.getTokenLength()),v=m.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(v){var d=e.positionAt(a.getTokenOffset()).line;if(v[1]){var f={startLine:d,endLine:d,kind:Wt.Region};i.push(f)}else{for(var p=i.length-1;p>=0&&i[p].kind!==Wt.Region;)p--;if(p>=0){var f=i[p];i.length=p,d>f.startLine&&s!==f.startLine&&(f.endLine=d,l(f),s=f.startLine)}}}break}}o=a.scan()}var x=t&&t.rangeLimit;if(typeof x!="number"||n.length<=x)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var y=[],b=0,L=r;b<L.length;b++){var S=L[b];S<30&&(y[S]=(y[S]||0)+1)}for(var _=0,N=0,p=0;p<y.length;p++){var A=y[p];if(A){if(A+_>x){N=p;break}_+=A}}for(var M=[],p=0;p<n.length;p++){var S=r[p];typeof S=="number"&&(S<N||S===N&&_++<x)&&M.push(n[p])}return M}function Zu(e,t,n){function r(o){for(var l=e.offsetAt(o),u=n.getNodeFromOffset(l,!0),f=[];u;){switch(u.type){case"string":case"object":case"array":var h=u.offset+1,d=u.offset+u.length-1;h<d&&l>=h&&l<=d&&f.push(i(h,d)),f.push(i(u.offset,u.offset+u.length));break;case"number":case"boolean":case"null":case"property":f.push(i(u.offset,u.offset+u.length));break}if(u.type==="property"||u.parent&&u.parent.type==="array"){var g=a(u.offset+u.length,5);g!==-1&&f.push(i(u.offset,g))}u=u.parent}for(var m=void 0,v=f.length-1;v>=0;v--)m=wn.create(f[v],m);return m||(m=wn.create(X.create(o,o))),m}function i(o,l){return X.create(e.positionAt(o),e.positionAt(l))}var s=Nt(e.getText(),!0);function a(o,l){s.setPosition(o);var u=s.scan();return u===l?s.getTokenOffset()+s.getTokenLength():-1}return t.map(r)}function Yu(e,t){var n=[];return t.visit(function(r){var i;if(r.type==="property"&&r.keyNode.value==="$ref"&&((i=r.valueNode)===null||i===void 0?void 0:i.type)==="string"){var s=r.valueNode.value,a=ec(t,s);if(a){var o=e.positionAt(a.offset);n.push({target:"".concat(e.uri,"#").concat(o.line+1,",").concat(o.character+1),range:Ku(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function Ku(e,t){return X.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function ec(e,t){var n=tc(t);return n?Mr(n,e.root):null}function Mr(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type==="object"){var r=t.properties.find(function(a){return a.keyNode.value===n});return r?Mr(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),s=t.items[i];return s?Mr(e,s):null}return null}function tc(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(nc)}function nc(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function rc(e){var t=e.promiseConstructor||Promise,n=new Gu(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(kr);var r=new Mu(n,e.contributions,t,e.clientCapabilities),i=new Ru(n,e.contributions,t),s=new qu(n),a=new Fu(n,t);return{configure:function(o){n.clearExternalSchemas(),o.schemas&&o.schemas.forEach(function(l){n.registerExternalSchema(l.uri,l.fileMatch,l.schema)}),a.configure(o)},resetSchema:function(o){return n.onResourceChange(o)},doValidation:a.doValidation.bind(a),getLanguageStatus:a.getLanguageStatus.bind(a),parseJSONDocument:function(o){return Eu(o,{collectComments:!0})},newJSONDocument:function(o,l){return ku(o,l)},getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Qu,getSelectionRanges:Zu,findDefinition:function(){return Promise.resolve([])},findLinks:Yu,format:function(o,l,u){var f=void 0;if(l){var h=o.offsetAt(l.start),d=o.offsetAt(l.end)-h;f={offset:h,length:d}}var g={tabSize:u?u.tabSize:4,insertSpaces:u?.insertSpaces===!0,insertFinalNewline:u?.insertFinalNewline===!0,eol:`
42
42
  `};return gu(o.getText(),f,g).map(function(m){return Re.replace(X.create(o.positionAt(m.offset),o.positionAt(m.offset+m.length)),m.content)})}}}var Aa;typeof fetch<"u"&&(Aa=function(e){return fetch(e).then(t=>t.text())});var ic=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=rc({workspaceContext:{resolveRelativePath:(n,r)=>{const i=r.substr(0,r.lastIndexOf("/")+1);return oc(i,n)}},schemaRequestService:t.enableSchemaRequest?Aa:void 0,clientCapabilities:wr.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let n=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,n,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return xr.create(e,this._languageId,n.version,n.getValue());return null}},sc=47,Rr=46;function ac(e){return e.charCodeAt(0)===sc}function oc(e,t){if(ac(t)){const n=kt.parse(e),r=t.split("/");return n.with({path:Ca(r)}).toString()}return lc(e,t)}function Ca(e){const t=[];for(const r of e)r.length===0||r.length===1&&r.charCodeAt(0)===Rr||(r.length===2&&r.charCodeAt(0)===Rr&&r.charCodeAt(1)===Rr?t.pop():t.push(r));e.length>1&&e[e.length-1].length===0&&t.push("");let n=t.join("/");return e[0].length===0&&(n="/"+n),n}function lc(e,...t){const n=kt.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:Ca(r)}).toString()}self.onmessage=()=>{Ps((e,t)=>new ic(e,t))}})();