@vtj/pro 0.8.10 → 0.8.12

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 (30) 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/ui/style.css +1 -1
  9. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  10. package/dist/assets/Editor-bVAaI2zL-DDqBmTNk.js +1 -0
  11. package/dist/assets/css.worker-BG3X4ypZ-CNHOSdx3.js +1 -0
  12. package/dist/assets/editor.worker-CdJourTJ-oopVnKOQ.js +1 -0
  13. package/dist/assets/html.worker-BCBdCLMV-DrDNRdSI.js +1 -0
  14. package/dist/assets/{index-BTmaTkWx.js → index-BmowuNkt.js} +57 -57
  15. package/dist/assets/{index-0CxTi-rJ.js → index-DE2ryrxm.js} +2 -2
  16. package/dist/assets/index-DJaFRQEA.js +1 -0
  17. package/dist/assets/index-UUuuteXI.css +1 -0
  18. package/dist/assets/json.worker-BhNp9C2F-DNr6b4pw.js +1 -0
  19. package/dist/assets/{monaco-editor-C8KYOXSh.js → monaco-editor-B9w0R7jm.js} +2 -2
  20. package/dist/assets/{preview-ve71HYTB.js → preview-D1qpTio1.js} +1 -1
  21. package/dist/assets/ts.worker-yjAiJiOi-CF5yv0EK.js +1 -0
  22. package/dist/index.html +2 -2
  23. package/package.json +11 -11
  24. package/dist/assets/css.worker-CilUBJBN.js +0 -84
  25. package/dist/assets/editor.worker-BJZ5cnST.js +0 -11
  26. package/dist/assets/html.worker-CNHktepm.js +0 -458
  27. package/dist/assets/index-DmZaHsx9.css +0 -1
  28. package/dist/assets/index-DxDFGgvB.js +0 -1
  29. package/dist/assets/json.worker-CV0MTB3L.js +0 -42
  30. package/dist/assets/ts.worker-mZI20X7J.js +0 -37021
@@ -8,7 +8,7 @@ const xZ="modulepreload",kZ=function(s,e){return new URL(s,e).href},H4={},ye=fun
8
8
  `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const vH=new zY;function je(s){tl(s)||vH.onUnexpectedError(s)}function Fi(s){tl(s)||vH.onUnexpectedExternalError(s)}function Z4(s){if(s instanceof Error){const{name:e,message:t}=s,i=s.stacktrace||s.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:km.isErrorNoTelemetry(s)}}return s}const sy="Canceled";function tl(s){return s instanceof Nc?!0:s instanceof Error&&s.name===sy&&s.message===sy}class Nc extends Error{constructor(){super(sy),this.name=this.message}}function UY(){const s=new Error(sy);return s.name=s.message,s}function Sr(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function iP(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class jY extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class km extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof km)return e;const t=new km;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Jt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Jt.prototype)}}function Xu(s,e){const t=this;let i=!1,n;return function(){return i||(i=!0,n=s.apply(t,arguments)),n}}function nP(s){return typeof s.dispose=="function"&&s.dispose.length===0}function Zt(s){if(gt.is(s)){const e=[];for(const t of s)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function ta(...s){return Le(()=>Zt(s))}function Le(s){return{dispose:Xu(()=>{s()})}}class Y{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{Zt(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Y.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}}Y.DISABLE_DISPOSED_WARNING=!1;class W{constructor(){this._store=new Y,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}W.None=Object.freeze({dispose(){}});class _n{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}}class qY{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class KY{constructor(e){this.object=e}dispose(){}}class sP{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Zt(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||(n=this._store.get(e))===null||n===void 0||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))===null||t===void 0||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const GY=globalThis.performance&&typeof globalThis.performance.now=="function";class Yn{static create(e){return new Yn(e)}constructor(e){this._now=GY&&e===!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 re;(function(s){s.None=()=>W.None;function e(P,M){return u(P,()=>{},0,void 0,!0,void 0,M)}s.defer=e;function t(P){return(M,B=null,j)=>{let J=!1,be;return be=P(Se=>{if(!J)return be?be.dispose():J=!0,M.call(B,Se)},null,j),J&&be.dispose(),be}}s.once=t;function i(P,M,B){return d((j,J=null,be)=>P(Se=>j.call(J,M(Se)),null,be),B)}s.map=i;function n(P,M,B){return d((j,J=null,be)=>P(Se=>{M(Se),j.call(J,Se)},null,be),B)}s.forEach=n;function o(P,M,B){return d((j,J=null,be)=>P(Se=>M(Se)&&j.call(J,Se),null,be),B)}s.filter=o;function r(P){return P}s.signal=r;function a(...P){return(M,B=null,j)=>{const J=ta(...P.map(be=>be(Se=>M.call(B,Se))));return c(J,j)}}s.any=a;function l(P,M,B,j){let J=B;return i(P,be=>(J=M(J,be),J),j)}s.reduce=l;function d(P,M){let B;const j={onWillAddFirstListener(){B=P(J.fire,J)},onDidRemoveLastListener(){B?.dispose()}},J=new O(j);return M?.add(J),J.event}function c(P,M){return M instanceof Array?M.push(P):M&&M.add(P),P}function u(P,M,B=100,j=!1,J=!1,be,Se){let Re,_e,ze,qe=0,Ie;const me={leakWarningThreshold:be,onWillAddFirstListener(){Re=P(ws=>{qe++,_e=M(_e,ws),j&&!ze&&(Hi.fire(_e),_e=void 0),Ie=()=>{const tn=_e;_e=void 0,ze=void 0,(!j||qe>1)&&Hi.fire(tn),qe=0},typeof B=="number"?(clearTimeout(ze),ze=setTimeout(Ie,B)):ze===void 0&&(ze=0,queueMicrotask(Ie))})},onWillRemoveListener(){J&&qe>0&&Ie?.()},onDidRemoveLastListener(){Ie=void 0,Re.dispose()}},Hi=new O(me);return Se?.add(Hi),Hi.event}s.debounce=u;function h(P,M=0,B){return s.debounce(P,(j,J)=>j?(j.push(J),j):[J],M,void 0,!0,void 0,B)}s.accumulate=h;function g(P,M=(j,J)=>j===J,B){let j=!0,J;return o(P,be=>{const Se=j||!M(be,J);return j=!1,J=be,Se},B)}s.latch=g;function f(P,M,B){return[s.filter(P,M,B),s.filter(P,j=>!M(j),B)]}s.split=f;function m(P,M=!1,B=[],j){let J=B.slice(),be=P(_e=>{J?J.push(_e):Re.fire(_e)});j&&j.add(be);const Se=()=>{J?.forEach(_e=>Re.fire(_e)),J=null},Re=new O({onWillAddFirstListener(){be||(be=P(_e=>Re.fire(_e)),j&&j.add(be))},onDidAddFirstListener(){J&&(M?setTimeout(Se):Se())},onDidRemoveLastListener(){be&&be.dispose(),be=null}});return j&&j.add(Re),Re.event}s.buffer=m;function _(P,M){return(j,J,be)=>{const Se=M(new v);return P(function(Re){const _e=Se.evaluate(Re);_e!==b&&j.call(J,_e)},void 0,be)}}s.chain=_;const b=Symbol("HaltChainable");class v{constructor(){this.steps=[]}map(M){return this.steps.push(M),this}forEach(M){return this.steps.push(B=>(M(B),B)),this}filter(M){return this.steps.push(B=>M(B)?B:b),this}reduce(M,B){let j=B;return this.steps.push(J=>(j=M(j,J),j)),this}latch(M=(B,j)=>B===j){let B=!0,j;return this.steps.push(J=>{const be=B||!M(J,j);return B=!1,j=J,be?J:b}),this}evaluate(M){for(const B of this.steps)if(M=B(M),M===b)break;return M}}function C(P,M,B=j=>j){const j=(...Re)=>Se.fire(B(...Re)),J=()=>P.on(M,j),be=()=>P.removeListener(M,j),Se=new O({onWillAddFirstListener:J,onDidRemoveLastListener:be});return Se.event}s.fromNodeEventEmitter=C;function w(P,M,B=j=>j){const j=(...Re)=>Se.fire(B(...Re)),J=()=>P.addEventListener(M,j),be=()=>P.removeEventListener(M,j),Se=new O({onWillAddFirstListener:J,onDidRemoveLastListener:be});return Se.event}s.fromDOMEventEmitter=w;function S(P){return new Promise(M=>t(P)(M))}s.toPromise=S;function x(P){const M=new O;return P.then(B=>{M.fire(B)},()=>{M.fire(void 0)}).finally(()=>{M.dispose()}),M.event}s.fromPromise=x;function L(P,M,B){return M(B),P(j=>M(j))}s.runAndSubscribe=L;class E{constructor(M,B){this._observable=M,this._counter=0,this._hasChanged=!1;const j={onWillAddFirstListener:()=>{M.addObserver(this)},onDidRemoveLastListener:()=>{M.removeObserver(this)}};this.emitter=new O(j),B&&B.add(this.emitter)}beginUpdate(M){this._counter++}handlePossibleChange(M){}handleChange(M,B){this._hasChanged=!0}endUpdate(M){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function N(P,M){return new E(P,M).emitter.event}s.fromObservable=N;function V(P){return(M,B,j)=>{let J=0,be=!1;const Se={beginUpdate(){J++},endUpdate(){J--,J===0&&(P.reportChanges(),be&&(be=!1,M.call(B)))},handlePossibleChange(){},handleChange(){be=!0}};P.addObserver(Se),P.reportChanges();const Re={dispose(){P.removeObserver(Se)}};return j instanceof Y?j.add(Re):Array.isArray(j)&&j.push(Re),Re}}s.fromObservableLight=V})(re||(re={}));class Lm{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Lm._idPool++}`,Lm.all.add(this)}start(e){this._stopWatch=new Yn,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}Lm.all=new Set;Lm._idPool=0;let ZY=-1;class YY{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);const n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let o,r=0;for(const[a,l]of this._stacks)(!o||r<l)&&(o=a,r=l);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`),console.warn(o)}return()=>{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class oP{static create(){var e;return new oP((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
9
9
  `).slice(2).join(`
10
10
  `))}}class KD{constructor(e){this.value=e}}const XY=2;let O=class{constructor(e){var t,i,n,o,r;this._size=0,this._options=e,this._leakageMon=!((t=this._options)===null||t===void 0)&&t.leakWarningThreshold?new YY((n=(i=this._options)===null||i===void 0?void 0:i.leakWarningThreshold)!==null&&n!==void 0?n:ZY):void 0,this._perfMon=!((o=this._options)===null||o===void 0)&&o._profName?new Lm(this._options._profName):void 0,this._deliveryQueue=(r=this._options)===null||r===void 0?void 0:r.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(t=this._options)===null||t===void 0?void 0:t.onDidRemoveLastListener)===null||i===void 0||i.call(t),(n=this._leakageMon)===null||n===void 0||n.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(t,i,n)=>{var o,r,a,l,d;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`),W.None;if(this._disposed)return W.None;i&&(t=t.bind(i));const c=new KD(t);let u;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(c.stack=oP.create(),u=this._leakageMon.check(c.stack,this._size+1)),this._listeners?this._listeners instanceof KD?((d=this._deliveryQueue)!==null&&d!==void 0||(this._deliveryQueue=new CH),this._listeners=[this._listeners,c]):this._listeners.push(c):((r=(o=this._options)===null||o===void 0?void 0:o.onWillAddFirstListener)===null||r===void 0||r.call(o,this),this._listeners=c,(l=(a=this._options)===null||a===void 0?void 0:a.onDidAddFirstListener)===null||l===void 0||l.call(a,this)),this._size++;const h=Le(()=>{u?.(),this._removeListener(c)});return n instanceof Y?n.add(h):Array.isArray(n)&&n.push(h),h}),this._event}_removeListener(e){var t,i,n,o;if((i=(t=this._options)===null||t===void 0?void 0:t.onWillRemoveListener)===null||i===void 0||i.call(t,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(o=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||o===void 0||o.call(n,this),this._size=0;return}const r=this._listeners,a=r.indexOf(e);if(a===-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--,r[a]=void 0;const l=this._deliveryQueue.current===this;if(this._size*XY<=r.length){let d=0;for(let c=0;c<r.length;c++)r[c]?r[d++]=r[c]:l&&(this._deliveryQueue.end--,d<this._deliveryQueue.i&&this._deliveryQueue.i--);r.length=d}}_deliver(e,t){var i;if(!e)return;const n=((i=this._options)===null||i===void 0?void 0:i.onListenerError)||je;if(!n){e.value(t);return}try{e.value(t)}catch(o){n(o)}}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,i,n,o;if(!((t=this._deliveryQueue)===null||t===void 0)&&t.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)===null||i===void 0||i.stop()),(n=this._perfMon)===null||n===void 0||n.start(this._size),this._listeners)if(this._listeners instanceof KD)this._deliver(this._listeners,e);else{const r=this._deliveryQueue;r.enqueue(this,e,this._listeners.length),this._deliverQueue(r)}(o=this._perfMon)===null||o===void 0||o.stop()}hasListeners(){return this._size>0}};const QY=()=>new CH;class CH{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class Ug extends O{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Rs,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class wH extends Ug{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class JY extends O{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}}class eX{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new O({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),Le(Xu(()=>{this.hasListeners&&this.unhook(t);const n=this.events.indexOf(t);this.events.splice(n,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){var t;(t=e.listener)===null||t===void 0||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)(e=t.listener)===null||e===void 0||e.dispose();this.events=[]}}class rP{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(o=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(i,o)):t.call(i,o)},void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach(n=>n()),i}}class Y4{constructor(){this.listening=!1,this.inputEvent=re.None,this.inputEventListener=W.None,this.emitter=new O({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const SH=Object.freeze(function(s,e){const t=setTimeout(s.bind(e),0);return{dispose(){clearTimeout(t)}}});var dt;(function(s){function e(t){return t===s.None||t===s.Cancelled||t instanceof fS?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}s.isCancellationToken=e,s.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:re.None}),s.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:SH})})(dt||(dt={}));class fS{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?SH:(this._emitter||(this._emitter=new O),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let Ei=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new fS),this._token}cancel(){this._token?this._token instanceof fS&&this._token.cancel():this._token=dt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),(t=this._parentListener)===null||t===void 0||t.dispose(),this._token?this._token instanceof fS&&this._token.dispose():this._token=dt.None}};class aP{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const pS=new aP,iT=new aP,nT=new aP,yH=new Array(230),tX=Object.create(null),iX=Object.create(null),lP=[];for(let s=0;s<=193;s++)lP[s]=-1;(function(){const s="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",s,s],[1,1,"Hyper",0,s,0,s,s,s],[1,2,"Super",0,s,0,s,s,s],[1,3,"Fn",0,s,0,s,s,s],[1,4,"FnLock",0,s,0,s,s,s],[1,5,"Suspend",0,s,0,s,s,s],[1,6,"Resume",0,s,0,s,s,s],[1,7,"Turbo",0,s,0,s,s,s],[1,8,"Sleep",0,s,0,"VK_SLEEP",s,s],[1,9,"WakeUp",0,s,0,s,s,s],[0,10,"KeyA",31,"A",65,"VK_A",s,s],[0,11,"KeyB",32,"B",66,"VK_B",s,s],[0,12,"KeyC",33,"C",67,"VK_C",s,s],[0,13,"KeyD",34,"D",68,"VK_D",s,s],[0,14,"KeyE",35,"E",69,"VK_E",s,s],[0,15,"KeyF",36,"F",70,"VK_F",s,s],[0,16,"KeyG",37,"G",71,"VK_G",s,s],[0,17,"KeyH",38,"H",72,"VK_H",s,s],[0,18,"KeyI",39,"I",73,"VK_I",s,s],[0,19,"KeyJ",40,"J",74,"VK_J",s,s],[0,20,"KeyK",41,"K",75,"VK_K",s,s],[0,21,"KeyL",42,"L",76,"VK_L",s,s],[0,22,"KeyM",43,"M",77,"VK_M",s,s],[0,23,"KeyN",44,"N",78,"VK_N",s,s],[0,24,"KeyO",45,"O",79,"VK_O",s,s],[0,25,"KeyP",46,"P",80,"VK_P",s,s],[0,26,"KeyQ",47,"Q",81,"VK_Q",s,s],[0,27,"KeyR",48,"R",82,"VK_R",s,s],[0,28,"KeyS",49,"S",83,"VK_S",s,s],[0,29,"KeyT",50,"T",84,"VK_T",s,s],[0,30,"KeyU",51,"U",85,"VK_U",s,s],[0,31,"KeyV",52,"V",86,"VK_V",s,s],[0,32,"KeyW",53,"W",87,"VK_W",s,s],[0,33,"KeyX",54,"X",88,"VK_X",s,s],[0,34,"KeyY",55,"Y",89,"VK_Y",s,s],[0,35,"KeyZ",56,"Z",90,"VK_Z",s,s],[0,36,"Digit1",22,"1",49,"VK_1",s,s],[0,37,"Digit2",23,"2",50,"VK_2",s,s],[0,38,"Digit3",24,"3",51,"VK_3",s,s],[0,39,"Digit4",25,"4",52,"VK_4",s,s],[0,40,"Digit5",26,"5",53,"VK_5",s,s],[0,41,"Digit6",27,"6",54,"VK_6",s,s],[0,42,"Digit7",28,"7",55,"VK_7",s,s],[0,43,"Digit8",29,"8",56,"VK_8",s,s],[0,44,"Digit9",30,"9",57,"VK_9",s,s],[0,45,"Digit0",21,"0",48,"VK_0",s,s],[1,46,"Enter",3,"Enter",13,"VK_RETURN",s,s],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",s,s],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",s,s],[1,49,"Tab",2,"Tab",9,"VK_TAB",s,s],[1,50,"Space",10,"Space",32,"VK_SPACE",s,s],[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,s,0,s,s,s],[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",s,s],[1,64,"F1",59,"F1",112,"VK_F1",s,s],[1,65,"F2",60,"F2",113,"VK_F2",s,s],[1,66,"F3",61,"F3",114,"VK_F3",s,s],[1,67,"F4",62,"F4",115,"VK_F4",s,s],[1,68,"F5",63,"F5",116,"VK_F5",s,s],[1,69,"F6",64,"F6",117,"VK_F6",s,s],[1,70,"F7",65,"F7",118,"VK_F7",s,s],[1,71,"F8",66,"F8",119,"VK_F8",s,s],[1,72,"F9",67,"F9",120,"VK_F9",s,s],[1,73,"F10",68,"F10",121,"VK_F10",s,s],[1,74,"F11",69,"F11",122,"VK_F11",s,s],[1,75,"F12",70,"F12",123,"VK_F12",s,s],[1,76,"PrintScreen",0,s,0,s,s,s],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",s,s],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",s,s],[1,79,"Insert",19,"Insert",45,"VK_INSERT",s,s],[1,80,"Home",14,"Home",36,"VK_HOME",s,s],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",s,s],[1,82,"Delete",20,"Delete",46,"VK_DELETE",s,s],[1,83,"End",13,"End",35,"VK_END",s,s],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",s,s],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",s],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",s],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",s],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",s],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",s,s],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",s,s],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",s,s],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",s,s],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",s,s],[1,94,"NumpadEnter",3,s,0,s,s,s],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",s,s],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",s,s],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",s,s],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",s,s],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",s,s],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",s,s],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",s,s],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",s,s],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",s,s],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",s,s],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",s,s],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",s,s],[1,107,"ContextMenu",58,"ContextMenu",93,s,s,s],[1,108,"Power",0,s,0,s,s,s],[1,109,"NumpadEqual",0,s,0,s,s,s],[1,110,"F13",71,"F13",124,"VK_F13",s,s],[1,111,"F14",72,"F14",125,"VK_F14",s,s],[1,112,"F15",73,"F15",126,"VK_F15",s,s],[1,113,"F16",74,"F16",127,"VK_F16",s,s],[1,114,"F17",75,"F17",128,"VK_F17",s,s],[1,115,"F18",76,"F18",129,"VK_F18",s,s],[1,116,"F19",77,"F19",130,"VK_F19",s,s],[1,117,"F20",78,"F20",131,"VK_F20",s,s],[1,118,"F21",79,"F21",132,"VK_F21",s,s],[1,119,"F22",80,"F22",133,"VK_F22",s,s],[1,120,"F23",81,"F23",134,"VK_F23",s,s],[1,121,"F24",82,"F24",135,"VK_F24",s,s],[1,122,"Open",0,s,0,s,s,s],[1,123,"Help",0,s,0,s,s,s],[1,124,"Select",0,s,0,s,s,s],[1,125,"Again",0,s,0,s,s,s],[1,126,"Undo",0,s,0,s,s,s],[1,127,"Cut",0,s,0,s,s,s],[1,128,"Copy",0,s,0,s,s,s],[1,129,"Paste",0,s,0,s,s,s],[1,130,"Find",0,s,0,s,s,s],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",s,s],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",s,s],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",s,s],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",s,s],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",s,s],[1,136,"KanaMode",0,s,0,s,s,s],[0,137,"IntlYen",0,s,0,s,s,s],[1,138,"Convert",0,s,0,s,s,s],[1,139,"NonConvert",0,s,0,s,s,s],[1,140,"Lang1",0,s,0,s,s,s],[1,141,"Lang2",0,s,0,s,s,s],[1,142,"Lang3",0,s,0,s,s,s],[1,143,"Lang4",0,s,0,s,s,s],[1,144,"Lang5",0,s,0,s,s,s],[1,145,"Abort",0,s,0,s,s,s],[1,146,"Props",0,s,0,s,s,s],[1,147,"NumpadParenLeft",0,s,0,s,s,s],[1,148,"NumpadParenRight",0,s,0,s,s,s],[1,149,"NumpadBackspace",0,s,0,s,s,s],[1,150,"NumpadMemoryStore",0,s,0,s,s,s],[1,151,"NumpadMemoryRecall",0,s,0,s,s,s],[1,152,"NumpadMemoryClear",0,s,0,s,s,s],[1,153,"NumpadMemoryAdd",0,s,0,s,s,s],[1,154,"NumpadMemorySubtract",0,s,0,s,s,s],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",s,s],[1,156,"NumpadClearEntry",0,s,0,s,s,s],[1,0,s,5,"Ctrl",17,"VK_CONTROL",s,s],[1,0,s,4,"Shift",16,"VK_SHIFT",s,s],[1,0,s,6,"Alt",18,"VK_MENU",s,s],[1,0,s,57,"Meta",91,"VK_COMMAND",s,s],[1,157,"ControlLeft",5,s,0,"VK_LCONTROL",s,s],[1,158,"ShiftLeft",4,s,0,"VK_LSHIFT",s,s],[1,159,"AltLeft",6,s,0,"VK_LMENU",s,s],[1,160,"MetaLeft",57,s,0,"VK_LWIN",s,s],[1,161,"ControlRight",5,s,0,"VK_RCONTROL",s,s],[1,162,"ShiftRight",4,s,0,"VK_RSHIFT",s,s],[1,163,"AltRight",6,s,0,"VK_RMENU",s,s],[1,164,"MetaRight",57,s,0,"VK_RWIN",s,s],[1,165,"BrightnessUp",0,s,0,s,s,s],[1,166,"BrightnessDown",0,s,0,s,s,s],[1,167,"MediaPlay",0,s,0,s,s,s],[1,168,"MediaRecord",0,s,0,s,s,s],[1,169,"MediaFastForward",0,s,0,s,s,s],[1,170,"MediaRewind",0,s,0,s,s,s],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",s,s],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",s,s],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",s,s],[1,174,"Eject",0,s,0,s,s,s],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",s,s],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",s,s],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",s,s],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",s,s],[1,179,"LaunchApp1",0,s,0,"VK_MEDIA_LAUNCH_APP1",s,s],[1,180,"SelectTask",0,s,0,s,s,s],[1,181,"LaunchScreenSaver",0,s,0,s,s,s],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",s,s],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",s,s],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",s,s],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",s,s],[1,186,"BrowserStop",0,s,0,"VK_BROWSER_STOP",s,s],[1,187,"BrowserRefresh",0,s,0,"VK_BROWSER_REFRESH",s,s],[1,188,"BrowserFavorites",0,s,0,"VK_BROWSER_FAVORITES",s,s],[1,189,"ZoomToggle",0,s,0,s,s,s],[1,190,"MailReply",0,s,0,s,s,s],[1,191,"MailForward",0,s,0,s,s,s],[1,192,"MailSend",0,s,0,s,s,s],[1,0,s,114,"KeyInComposition",229,s,s,s],[1,0,s,116,"ABNT_C2",194,"VK_ABNT_C2",s,s],[1,0,s,96,"OEM_8",223,"VK_OEM_8",s,s],[1,0,s,0,s,0,"VK_KANA",s,s],[1,0,s,0,s,0,"VK_HANGUL",s,s],[1,0,s,0,s,0,"VK_JUNJA",s,s],[1,0,s,0,s,0,"VK_FINAL",s,s],[1,0,s,0,s,0,"VK_HANJA",s,s],[1,0,s,0,s,0,"VK_KANJI",s,s],[1,0,s,0,s,0,"VK_CONVERT",s,s],[1,0,s,0,s,0,"VK_NONCONVERT",s,s],[1,0,s,0,s,0,"VK_ACCEPT",s,s],[1,0,s,0,s,0,"VK_MODECHANGE",s,s],[1,0,s,0,s,0,"VK_SELECT",s,s],[1,0,s,0,s,0,"VK_PRINT",s,s],[1,0,s,0,s,0,"VK_EXECUTE",s,s],[1,0,s,0,s,0,"VK_SNAPSHOT",s,s],[1,0,s,0,s,0,"VK_HELP",s,s],[1,0,s,0,s,0,"VK_APPS",s,s],[1,0,s,0,s,0,"VK_PROCESSKEY",s,s],[1,0,s,0,s,0,"VK_PACKET",s,s],[1,0,s,0,s,0,"VK_DBE_SBCSCHAR",s,s],[1,0,s,0,s,0,"VK_DBE_DBCSCHAR",s,s],[1,0,s,0,s,0,"VK_ATTN",s,s],[1,0,s,0,s,0,"VK_CRSEL",s,s],[1,0,s,0,s,0,"VK_EXSEL",s,s],[1,0,s,0,s,0,"VK_EREOF",s,s],[1,0,s,0,s,0,"VK_PLAY",s,s],[1,0,s,0,s,0,"VK_ZOOM",s,s],[1,0,s,0,s,0,"VK_NONAME",s,s],[1,0,s,0,s,0,"VK_PA1",s,s],[1,0,s,0,s,0,"VK_OEM_CLEAR",s,s]],t=[],i=[];for(const n of e){const[o,r,a,l,d,c,u,h,g]=n;if(i[r]||(i[r]=!0,tX[a]=r,iX[a.toLowerCase()]=r,o&&(lP[r]=l)),!t[l]){if(t[l]=!0,!d)throw new Error(`String representation missing for key code ${l} around scan code ${a}`);pS.define(l,d),iT.define(l,h||d),nT.define(l,g||h||d)}c&&(yH[c]=l)}})();var Wd;(function(s){function e(a){return pS.keyCodeToStr(a)}s.toString=e;function t(a){return pS.strToKeyCode(a)}s.fromString=t;function i(a){return iT.keyCodeToStr(a)}s.toUserSettingsUS=i;function n(a){return nT.keyCodeToStr(a)}s.toUserSettingsGeneral=n;function o(a){return iT.strToKeyCode(a)||nT.strToKeyCode(a)}s.fromUserSettings=o;function r(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return pS.keyCodeToStr(a)}s.toElectronAccelerator=r})(Wd||(Wd={}));function en(s,e){const t=(e&65535)<<16>>>0;return(s|t)>>>0}var X4={ENV_TYPE:"live",NODE_ENV:"production"};let Gp;const GD=globalThis.vscode;if(typeof GD<"u"&&typeof GD.process<"u"){const s=GD.process;Gp={get platform(){return s.platform},get arch(){return s.arch},get env(){return s.env},cwd(){return s.cwd()}}}else typeof process<"u"?Gp={get platform(){return process.platform},get arch(){return process.arch},get env(){return X4},cwd(){return X4.VSCODE_CWD||process.cwd()}}:Gp={get platform(){return Zn?"win32":at?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const oy=Gp.cwd,sT=Gp.env,nX=Gp.platform,sX=65,oX=97,rX=90,aX=122,Au=46,cs=47,Po=92,Vc=58,lX=63;class xH extends Error{constructor(e,t,i){let n;typeof t=="string"&&t.indexOf("not ")===0?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${o} ${n} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function dX(s,e){if(s===null||typeof s!="object")throw new xH(e,"Object",s)}function wn(s,e){if(typeof s!="string")throw new xH(e,"string",s)}const kh=nX==="win32";function Pt(s){return s===cs||s===Po}function oT(s){return s===cs}function $c(s){return s>=sX&&s<=rX||s>=oX&&s<=aX}function ry(s,e,t,i){let n="",o=0,r=-1,a=0,l=0;for(let d=0;d<=s.length;++d){if(d<s.length)l=s.charCodeAt(d);else{if(i(l))break;l=cs}if(i(l)){if(!(r===d-1||a===1))if(a===2){if(n.length<2||o!==2||n.charCodeAt(n.length-1)!==Au||n.charCodeAt(n.length-2)!==Au){if(n.length>2){const c=n.lastIndexOf(t);c===-1?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf(t)),r=d,a=0;continue}else if(n.length!==0){n="",o=0,r=d,a=0;continue}}e&&(n+=n.length>0?`${t}..`:"..",o=2)}else n.length>0?n+=`${t}${s.slice(r+1,d)}`:n=s.slice(r+1,d),o=d-r-1;r=d,a=0}else l===Au&&a!==-1?++a:a=-1}return n}function kH(s,e){dX(e,"pathObject");const t=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${i}`:`${t}${s}${i}`:i}const yo={resolve(...s){let e="",t="",i=!1;for(let n=s.length-1;n>=-1;n--){let o;if(n>=0){if(o=s[n],wn(o,"path"),o.length===0)continue}else e.length===0?o=oy():(o=sT[`=${e}`]||oy(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===Po)&&(o=`${e}\\`));const r=o.length;let a=0,l="",d=!1;const c=o.charCodeAt(0);if(r===1)Pt(c)&&(a=1,d=!0);else if(Pt(c))if(d=!0,Pt(o.charCodeAt(1))){let u=2,h=u;for(;u<r&&!Pt(o.charCodeAt(u));)u++;if(u<r&&u!==h){const g=o.slice(h,u);for(h=u;u<r&&Pt(o.charCodeAt(u));)u++;if(u<r&&u!==h){for(h=u;u<r&&!Pt(o.charCodeAt(u));)u++;(u===r||u!==h)&&(l=`\\\\${g}\\${o.slice(h,u)}`,a=u)}}}else a=1;else $c(c)&&o.charCodeAt(1)===Vc&&(l=o.slice(0,2),a=2,r>2&&Pt(o.charCodeAt(2))&&(d=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=d,d&&e.length>0)break}return t=ry(t,!i,"\\",Pt),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(s){wn(s,"path");const e=s.length;if(e===0)return".";let t=0,i,n=!1;const o=s.charCodeAt(0);if(e===1)return oT(o)?"\\":s;if(Pt(o))if(n=!0,Pt(s.charCodeAt(1))){let a=2,l=a;for(;a<e&&!Pt(s.charCodeAt(a));)a++;if(a<e&&a!==l){const d=s.slice(l,a);for(l=a;a<e&&Pt(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&!Pt(s.charCodeAt(a));)a++;if(a===e)return`\\\\${d}\\${s.slice(l)}\\`;a!==l&&(i=`\\\\${d}\\${s.slice(l,a)}`,t=a)}}}else t=1;else $c(o)&&s.charCodeAt(1)===Vc&&(i=s.slice(0,2),t=2,e>2&&Pt(s.charCodeAt(2))&&(n=!0,t=3));let r=t<e?ry(s.slice(t),!n,"\\",Pt):"";return r.length===0&&!n&&(r="."),r.length>0&&Pt(s.charCodeAt(e-1))&&(r+="\\"),i===void 0?n?`\\${r}`:r:n?`${i}\\${r}`:`${i}${r}`},isAbsolute(s){wn(s,"path");const e=s.length;if(e===0)return!1;const t=s.charCodeAt(0);return Pt(t)||e>2&&$c(t)&&s.charCodeAt(1)===Vc&&Pt(s.charCodeAt(2))},join(...s){if(s.length===0)return".";let e,t;for(let o=0;o<s.length;++o){const r=s[o];wn(r,"path"),r.length>0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,n=0;if(typeof t=="string"&&Pt(t.charCodeAt(0))){++n;const o=t.length;o>1&&Pt(t.charCodeAt(1))&&(++n,o>2&&(Pt(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n<e.length&&Pt(e.charCodeAt(n));)n++;n>=2&&(e=`\\${e.slice(n)}`)}return yo.normalize(e)},relative(s,e){if(wn(s,"from"),wn(e,"to"),s===e)return"";const t=yo.resolve(s),i=yo.resolve(e);if(t===i||(s=t.toLowerCase(),e=i.toLowerCase(),s===e))return"";let n=0;for(;n<s.length&&s.charCodeAt(n)===Po;)n++;let o=s.length;for(;o-1>n&&s.charCodeAt(o-1)===Po;)o--;const r=o-n;let a=0;for(;a<e.length&&e.charCodeAt(a)===Po;)a++;let l=e.length;for(;l-1>a&&e.charCodeAt(l-1)===Po;)l--;const d=l-a,c=r<d?r:d;let u=-1,h=0;for(;h<c;h++){const f=s.charCodeAt(n+h);if(f!==e.charCodeAt(a+h))break;f===Po&&(u=h)}if(h!==c){if(u===-1)return i}else{if(d>c){if(e.charCodeAt(a+h)===Po)return i.slice(a+h+1);if(h===2)return i.slice(a+h)}r>c&&(s.charCodeAt(n+h)===Po?u=h:h===2&&(u=3)),u===-1&&(u=0)}let g="";for(h=n+u+1;h<=o;++h)(h===o||s.charCodeAt(h)===Po)&&(g+=g.length===0?"..":"\\..");return a+=u,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===Po&&++a,i.slice(a,l))},toNamespacedPath(s){if(typeof s!="string"||s.length===0)return s;const e=yo.resolve(s);if(e.length<=2)return s;if(e.charCodeAt(0)===Po){if(e.charCodeAt(1)===Po){const t=e.charCodeAt(2);if(t!==lX&&t!==Au)return`\\\\?\\UNC\\${e.slice(2)}`}}else if($c(e.charCodeAt(0))&&e.charCodeAt(1)===Vc&&e.charCodeAt(2)===Po)return`\\\\?\\${e}`;return s},dirname(s){wn(s,"path");const e=s.length;if(e===0)return".";let t=-1,i=0;const n=s.charCodeAt(0);if(e===1)return Pt(n)?s:".";if(Pt(n)){if(t=i=1,Pt(s.charCodeAt(1))){let a=2,l=a;for(;a<e&&!Pt(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&Pt(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&!Pt(s.charCodeAt(a));)a++;if(a===e)return s;a!==l&&(t=i=a+1)}}}}else $c(n)&&s.charCodeAt(1)===Vc&&(t=e>2&&Pt(s.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(Pt(s.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(o===-1){if(t===-1)return".";o=t}return s.slice(0,o)},basename(s,e){e!==void 0&&wn(e,"ext"),wn(s,"path");let t=0,i=-1,n=!0,o;if(s.length>=2&&$c(s.charCodeAt(0))&&s.charCodeAt(1)===Vc&&(t=2),e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=t;--o){const l=s.charCodeAt(o);if(Pt(l)){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=t;--o)if(Pt(s.charCodeAt(o))){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){wn(s,"path");let e=0,t=-1,i=0,n=-1,o=!0,r=0;s.length>=2&&s.charCodeAt(1)===Vc&&$c(s.charCodeAt(0))&&(e=i=2);for(let a=s.length-1;a>=e;--a){const l=s.charCodeAt(a);if(Pt(l)){if(!o){i=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===Au?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||n===-1||r===0||r===1&&t===n-1&&t===i+1?"":s.slice(t,n)},format:kH.bind(null,"\\"),parse(s){wn(s,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;const t=s.length;let i=0,n=s.charCodeAt(0);if(t===1)return Pt(n)?(e.root=e.dir=s,e):(e.base=e.name=s,e);if(Pt(n)){if(i=1,Pt(s.charCodeAt(1))){let u=2,h=u;for(;u<t&&!Pt(s.charCodeAt(u));)u++;if(u<t&&u!==h){for(h=u;u<t&&Pt(s.charCodeAt(u));)u++;if(u<t&&u!==h){for(h=u;u<t&&!Pt(s.charCodeAt(u));)u++;u===t?i=u:u!==h&&(i=u+1)}}}}else if($c(n)&&s.charCodeAt(1)===Vc){if(t<=2)return e.root=e.dir=s,e;if(i=2,Pt(s.charCodeAt(2))){if(t===3)return e.root=e.dir=s,e;i=3}}i>0&&(e.root=s.slice(0,i));let o=-1,r=i,a=-1,l=!0,d=s.length-1,c=0;for(;d>=i;--d){if(n=s.charCodeAt(d),Pt(n)){if(!l){r=d+1;break}continue}a===-1&&(l=!1,a=d+1),n===Au?o===-1?o=d:c!==1&&(c=1):o!==-1&&(c=-1)}return a!==-1&&(o===-1||c===0||c===1&&o===a-1&&o===r+1?e.base=e.name=s.slice(r,a):(e.name=s.slice(r,o),e.base=s.slice(r,a),e.ext=s.slice(o,a))),r>0&&r!==i?e.dir=s.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},cX=(()=>{if(kh){const s=/\\/g;return()=>{const e=oy().replace(s,"/");return e.slice(e.indexOf("/"))}}return()=>oy()})(),Ki={resolve(...s){let e="",t=!1;for(let i=s.length-1;i>=-1&&!t;i--){const n=i>=0?s[i]:cX();wn(n,"path"),n.length!==0&&(e=`${n}/${e}`,t=n.charCodeAt(0)===cs)}return e=ry(e,!t,"/",oT),t?`/${e}`:e.length>0?e:"."},normalize(s){if(wn(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===cs,t=s.charCodeAt(s.length-1)===cs;return s=ry(s,!e,"/",oT),s.length===0?e?"/":t?"./":".":(t&&(s+="/"),e?`/${s}`:s)},isAbsolute(s){return wn(s,"path"),s.length>0&&s.charCodeAt(0)===cs},join(...s){if(s.length===0)return".";let e;for(let t=0;t<s.length;++t){const i=s[t];wn(i,"path"),i.length>0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":Ki.normalize(e)},relative(s,e){if(wn(s,"from"),wn(e,"to"),s===e||(s=Ki.resolve(s),e=Ki.resolve(e),s===e))return"";const t=1,i=s.length,n=i-t,o=1,r=e.length-o,a=n<r?n:r;let l=-1,d=0;for(;d<a;d++){const u=s.charCodeAt(t+d);if(u!==e.charCodeAt(o+d))break;u===cs&&(l=d)}if(d===a)if(r>a){if(e.charCodeAt(o+d)===cs)return e.slice(o+d+1);if(d===0)return e.slice(o+d)}else n>a&&(s.charCodeAt(t+d)===cs?l=d:d===0&&(l=0));let c="";for(d=t+l+1;d<=i;++d)(d===i||s.charCodeAt(d)===cs)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(o+l)}`},toNamespacedPath(s){return s},dirname(s){if(wn(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===cs;let t=-1,i=!0;for(let n=s.length-1;n>=1;--n)if(s.charCodeAt(n)===cs){if(!i){t=n;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":s.slice(0,t)},basename(s,e){e!==void 0&&wn(e,"ext"),wn(s,"path");let t=0,i=-1,n=!0,o;if(e!==void 0&&e.length>0&&e.length<=s.length){if(e===s)return"";let r=e.length-1,a=-1;for(o=s.length-1;o>=0;--o){const l=s.charCodeAt(o);if(l===cs){if(!n){t=o+1;break}}else a===-1&&(n=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=s.length),s.slice(t,i)}for(o=s.length-1;o>=0;--o)if(s.charCodeAt(o)===cs){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){wn(s,"path");let e=-1,t=0,i=-1,n=!0,o=0;for(let r=s.length-1;r>=0;--r){const a=s.charCodeAt(r);if(a===cs){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),a===Au?e===-1?e=r:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||i===-1||o===0||o===1&&e===i-1&&e===t+1?"":s.slice(e,i)},format:kH.bind(null,"/"),parse(s){wn(s,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;const t=s.charCodeAt(0)===cs;let i;t?(e.root="/",i=1):i=0;let n=-1,o=0,r=-1,a=!0,l=s.length-1,d=0;for(;l>=i;--l){const c=s.charCodeAt(l);if(c===cs){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),c===Au?n===-1?n=l:d!==1&&(d=1):n!==-1&&(d=-1)}if(r!==-1){const c=o===0&&t?1:o;n===-1||d===0||d===1&&n===r-1&&n===o+1?e.base=e.name=s.slice(c,r):(e.name=s.slice(c,n),e.base=s.slice(c,r),e.ext=s.slice(n,r))}return o>0?e.dir=s.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Ki.win32=yo.win32=yo;Ki.posix=yo.posix=Ki;const LH=kh?yo.normalize:Ki.normalize,uX=kh?yo.resolve:Ki.resolve,hX=kh?yo.relative:Ki.relative,DH=kh?yo.dirname:Ki.dirname,Ru=kh?yo.basename:Ki.basename,gX=kh?yo.extname:Ki.extname,Ba=kh?yo.sep:Ki.sep,fX=/^\w[\w\d+.-]*$/,pX=/^\//,mX=/^\/\//;function _X(s,e){if(!s.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${s.authority}", path: "${s.path}", query: "${s.query}", fragment: "${s.fragment}"}`);if(s.scheme&&!fX.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!pX.test(s.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(mX.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function bX(s,e){return!s&&!e?"file":s}function vX(s,e){switch(s){case"https":case"http":case"file":e?e[0]!==Da&&(e=Da+e):e=Da;break}return e}const Vi="",Da="/",CX=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Ae{static isUri(e){return e instanceof Ae?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,t,i,n,o,r=!1){typeof e=="object"?(this.scheme=e.scheme||Vi,this.authority=e.authority||Vi,this.path=e.path||Vi,this.query=e.query||Vi,this.fragment=e.fragment||Vi):(this.scheme=bX(e,r),this.authority=t||Vi,this.path=vX(this.scheme,i||Vi),this.query=n||Vi,this.fragment=o||Vi,_X(this,r))}get fsPath(){return ay(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=Vi),i===void 0?i=this.authority:i===null&&(i=Vi),n===void 0?n=this.path:n===null&&(n=Vi),o===void 0?o=this.query:o===null&&(o=Vi),r===void 0?r=this.fragment:r===null&&(r=Vi),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&r===this.fragment?this:new zf(t,i,n,o,r)}static parse(e,t=!1){const i=CX.exec(e);return i?new zf(i[2]||Vi,$w(i[4]||Vi),$w(i[5]||Vi),$w(i[7]||Vi),$w(i[9]||Vi),t):new zf(Vi,Vi,Vi,Vi,Vi)}static file(e){let t=Vi;if(Zn&&(e=e.replace(/\\/g,Da)),e[0]===Da&&e[1]===Da){const i=e.indexOf(Da,2);i===-1?(t=e.substring(2),e=Da):(t=e.substring(2,i),e=e.substring(i)||Da)}return new zf("file",t,e,Vi,Vi)}static from(e,t){return new zf(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Zn&&e.scheme==="file"?i=Ae.file(yo.join(ay(e,!0),...t)).path:i=Ki.join(e.path,...t),e.with({path:i})}toString(e=!1){return rT(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof Ae)return e;{const n=new zf(e);return n._formatted=(t=e.external)!==null&&t!==void 0?t:null,n._fsPath=e._sep===EH&&(i=e.fsPath)!==null&&i!==void 0?i:null,n}}else return e}}const EH=Zn?1:void 0;let zf=class extends Ae{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ay(this,!1)),this._fsPath}toString(e=!1){return e?rT(this,!0):(this._formatted||(this._formatted=rT(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=EH),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const IH={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 Q4(s,e,t){let i,n=-1;for(let o=0;o<s.length;o++){const r=s.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45||r===46||r===95||r===126||e&&r===47||t&&r===91||t&&r===93||t&&r===58)n!==-1&&(i+=encodeURIComponent(s.substring(n,o)),n=-1),i!==void 0&&(i+=s.charAt(o));else{i===void 0&&(i=s.substr(0,o));const a=IH[r];a!==void 0?(n!==-1&&(i+=encodeURIComponent(s.substring(n,o)),n=-1),i+=a):n===-1&&(n=o)}}return n!==-1&&(i+=encodeURIComponent(s.substring(n))),i!==void 0?i:s}function wX(s){let e;for(let t=0;t<s.length;t++){const i=s.charCodeAt(t);i===35||i===63?(e===void 0&&(e=s.substr(0,t)),e+=IH[i]):e!==void 0&&(e+=s[t])}return e!==void 0?e:s}function ay(s,e){let t;return s.authority&&s.path.length>1&&s.scheme==="file"?t=`//${s.authority}${s.path}`:s.path.charCodeAt(0)===47&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&s.path.charCodeAt(2)===58?e?t=s.path.substr(1):t=s.path[1].toLowerCase()+s.path.substr(2):t=s.path,Zn&&(t=t.replace(/\//g,"\\")),t}function rT(s,e){const t=e?wX:Q4;let i="",{scheme:n,authority:o,path:r,query:a,fragment:l}=s;if(n&&(i+=n,i+=":"),(o||n==="file")&&(i+=Da,i+=Da),o){let d=o.indexOf("@");if(d!==-1){const c=o.substr(0,d);o=o.substr(d+1),d=c.lastIndexOf(":"),d===-1?i+=t(c,!1,!1):(i+=t(c.substr(0,d),!1,!1),i+=":",i+=t(c.substr(d+1),!1,!0)),i+="@"}o=o.toLowerCase(),d=o.lastIndexOf(":"),d===-1?i+=t(o,!1,!0):(i+=t(o.substr(0,d),!1,!0),i+=o.substr(d))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const d=r.charCodeAt(1);d>=65&&d<=90&&(r=`/${String.fromCharCode(d+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const d=r.charCodeAt(0);d>=65&&d<=90&&(r=`${String.fromCharCode(d+32)}:${r.substr(2)}`)}i+=t(r,!0,!1)}return a&&(i+="?",i+=t(a,!1,!1)),l&&(i+="#",i+=e?l:Q4(l,!1,!1)),i}function TH(s){try{return decodeURIComponent(s)}catch{return s.length>3?s.substr(0,3)+TH(s.substr(3)):s}}const J4=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function $w(s){return s.match(J4)?s.replace(J4,e=>TH(e)):s}let F=class ng{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ng(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ng.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ng.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(e){return ng.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){const i=e.lineNumber|0,n=t.lineNumber|0;if(i===n){const o=e.column|0,r=t.column|0;return o-r}return i-n}clone(){return new ng(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new ng(e.lineNumber,e.column)}static isIPosition(e){return e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},k=class Ln{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return Ln.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Ln.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return Ln.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return Ln.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return Ln.plusRange(this,e)}static plusRange(e,t){let i,n,o,r;return t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,n=t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,n=Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,n=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new Ln(i,n,o,r)}intersectRanges(e){return Ln.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,d=t.endLineNumber,c=t.endColumn;return i<a?(i=a,n=l):i===a&&(n=Math.max(n,l)),o>d?(o=d,r=c):o===d&&(r=Math.min(r,c)),i>o||i===o&&n>r?null:new Ln(i,n,o,r)}equalsRange(e){return Ln.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Ln.getEndPosition(this)}static getEndPosition(e){return new F(e.endLineNumber,e.endColumn)}getStartPosition(){return Ln.getStartPosition(this)}static getStartPosition(e){return new F(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Ln(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Ln(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Ln.collapseToStart(this)}static collapseToStart(e){return new Ln(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Ln.collapseToEnd(this)}static collapseToEnd(e){return new Ln(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Ln(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new Ln(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Ln(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const o=e.startLineNumber|0,r=t.startLineNumber|0;if(o===r){const a=e.startColumn|0,l=t.startColumn|0;if(a===l){const d=e.endLineNumber|0,c=t.endLineNumber|0;if(d===c){const u=e.endColumn|0,h=t.endColumn|0;return u-h}return d-c}return a-l}return o-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}},Ce=class Vr extends k{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Vr.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new Vr(this.startLineNumber,this.startColumn,e,t):new Vr(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new F(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new F(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new Vr(e,t,this.endLineNumber,this.endColumn):new Vr(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Vr(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new Vr(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Vr(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Vr(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,t,i,n,o){return o===0?new Vr(e,t,i,n):new Vr(i,n,e,t)}};const aT=Object.create(null);function y(s,e){if(Os(e)){const t=aT[e];if(t===void 0)throw new Error(`${s} references an unknown codicon: ${e}`);e=t}return aT[s]=e,{id:s}}function NH(){return aT}const SX={add:y("add",6e4),plus:y("plus",6e4),gistNew:y("gist-new",6e4),repoCreate:y("repo-create",6e4),lightbulb:y("lightbulb",60001),lightBulb:y("light-bulb",60001),repo:y("repo",60002),repoDelete:y("repo-delete",60002),gistFork:y("gist-fork",60003),repoForked:y("repo-forked",60003),gitPullRequest:y("git-pull-request",60004),gitPullRequestAbandoned:y("git-pull-request-abandoned",60004),recordKeys:y("record-keys",60005),keyboard:y("keyboard",60005),tag:y("tag",60006),gitPullRequestLabel:y("git-pull-request-label",60006),tagAdd:y("tag-add",60006),tagRemove:y("tag-remove",60006),person:y("person",60007),personFollow:y("person-follow",60007),personOutline:y("person-outline",60007),personFilled:y("person-filled",60007),gitBranch:y("git-branch",60008),gitBranchCreate:y("git-branch-create",60008),gitBranchDelete:y("git-branch-delete",60008),sourceControl:y("source-control",60008),mirror:y("mirror",60009),mirrorPublic:y("mirror-public",60009),star:y("star",60010),starAdd:y("star-add",60010),starDelete:y("star-delete",60010),starEmpty:y("star-empty",60010),comment:y("comment",60011),commentAdd:y("comment-add",60011),alert:y("alert",60012),warning:y("warning",60012),search:y("search",60013),searchSave:y("search-save",60013),logOut:y("log-out",60014),signOut:y("sign-out",60014),logIn:y("log-in",60015),signIn:y("sign-in",60015),eye:y("eye",60016),eyeUnwatch:y("eye-unwatch",60016),eyeWatch:y("eye-watch",60016),circleFilled:y("circle-filled",60017),primitiveDot:y("primitive-dot",60017),closeDirty:y("close-dirty",60017),debugBreakpoint:y("debug-breakpoint",60017),debugBreakpointDisabled:y("debug-breakpoint-disabled",60017),debugHint:y("debug-hint",60017),terminalDecorationSuccess:y("terminal-decoration-success",60017),primitiveSquare:y("primitive-square",60018),edit:y("edit",60019),pencil:y("pencil",60019),info:y("info",60020),issueOpened:y("issue-opened",60020),gistPrivate:y("gist-private",60021),gitForkPrivate:y("git-fork-private",60021),lock:y("lock",60021),mirrorPrivate:y("mirror-private",60021),close:y("close",60022),removeClose:y("remove-close",60022),x:y("x",60022),repoSync:y("repo-sync",60023),sync:y("sync",60023),clone:y("clone",60024),desktopDownload:y("desktop-download",60024),beaker:y("beaker",60025),microscope:y("microscope",60025),vm:y("vm",60026),deviceDesktop:y("device-desktop",60026),file:y("file",60027),fileText:y("file-text",60027),more:y("more",60028),ellipsis:y("ellipsis",60028),kebabHorizontal:y("kebab-horizontal",60028),mailReply:y("mail-reply",60029),reply:y("reply",60029),organization:y("organization",60030),organizationFilled:y("organization-filled",60030),organizationOutline:y("organization-outline",60030),newFile:y("new-file",60031),fileAdd:y("file-add",60031),newFolder:y("new-folder",60032),fileDirectoryCreate:y("file-directory-create",60032),trash:y("trash",60033),trashcan:y("trashcan",60033),history:y("history",60034),clock:y("clock",60034),folder:y("folder",60035),fileDirectory:y("file-directory",60035),symbolFolder:y("symbol-folder",60035),logoGithub:y("logo-github",60036),markGithub:y("mark-github",60036),github:y("github",60036),terminal:y("terminal",60037),console:y("console",60037),repl:y("repl",60037),zap:y("zap",60038),symbolEvent:y("symbol-event",60038),error:y("error",60039),stop:y("stop",60039),variable:y("variable",60040),symbolVariable:y("symbol-variable",60040),array:y("array",60042),symbolArray:y("symbol-array",60042),symbolModule:y("symbol-module",60043),symbolPackage:y("symbol-package",60043),symbolNamespace:y("symbol-namespace",60043),symbolObject:y("symbol-object",60043),symbolMethod:y("symbol-method",60044),symbolFunction:y("symbol-function",60044),symbolConstructor:y("symbol-constructor",60044),symbolBoolean:y("symbol-boolean",60047),symbolNull:y("symbol-null",60047),symbolNumeric:y("symbol-numeric",60048),symbolNumber:y("symbol-number",60048),symbolStructure:y("symbol-structure",60049),symbolStruct:y("symbol-struct",60049),symbolParameter:y("symbol-parameter",60050),symbolTypeParameter:y("symbol-type-parameter",60050),symbolKey:y("symbol-key",60051),symbolText:y("symbol-text",60051),symbolReference:y("symbol-reference",60052),goToFile:y("go-to-file",60052),symbolEnum:y("symbol-enum",60053),symbolValue:y("symbol-value",60053),symbolRuler:y("symbol-ruler",60054),symbolUnit:y("symbol-unit",60054),activateBreakpoints:y("activate-breakpoints",60055),archive:y("archive",60056),arrowBoth:y("arrow-both",60057),arrowDown:y("arrow-down",60058),arrowLeft:y("arrow-left",60059),arrowRight:y("arrow-right",60060),arrowSmallDown:y("arrow-small-down",60061),arrowSmallLeft:y("arrow-small-left",60062),arrowSmallRight:y("arrow-small-right",60063),arrowSmallUp:y("arrow-small-up",60064),arrowUp:y("arrow-up",60065),bell:y("bell",60066),bold:y("bold",60067),book:y("book",60068),bookmark:y("bookmark",60069),debugBreakpointConditionalUnverified:y("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:y("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:y("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:y("debug-breakpoint-data-unverified",60072),debugBreakpointData:y("debug-breakpoint-data",60073),debugBreakpointDataDisabled:y("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:y("debug-breakpoint-log-unverified",60074),debugBreakpointLog:y("debug-breakpoint-log",60075),debugBreakpointLogDisabled:y("debug-breakpoint-log-disabled",60075),briefcase:y("briefcase",60076),broadcast:y("broadcast",60077),browser:y("browser",60078),bug:y("bug",60079),calendar:y("calendar",60080),caseSensitive:y("case-sensitive",60081),check:y("check",60082),checklist:y("checklist",60083),chevronDown:y("chevron-down",60084),chevronLeft:y("chevron-left",60085),chevronRight:y("chevron-right",60086),chevronUp:y("chevron-up",60087),chromeClose:y("chrome-close",60088),chromeMaximize:y("chrome-maximize",60089),chromeMinimize:y("chrome-minimize",60090),chromeRestore:y("chrome-restore",60091),circleOutline:y("circle-outline",60092),circle:y("circle",60092),debugBreakpointUnverified:y("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:y("terminal-decoration-incomplete",60092),circleSlash:y("circle-slash",60093),circuitBoard:y("circuit-board",60094),clearAll:y("clear-all",60095),clippy:y("clippy",60096),closeAll:y("close-all",60097),cloudDownload:y("cloud-download",60098),cloudUpload:y("cloud-upload",60099),code:y("code",60100),collapseAll:y("collapse-all",60101),colorMode:y("color-mode",60102),commentDiscussion:y("comment-discussion",60103),creditCard:y("credit-card",60105),dash:y("dash",60108),dashboard:y("dashboard",60109),database:y("database",60110),debugContinue:y("debug-continue",60111),debugDisconnect:y("debug-disconnect",60112),debugPause:y("debug-pause",60113),debugRestart:y("debug-restart",60114),debugStart:y("debug-start",60115),debugStepInto:y("debug-step-into",60116),debugStepOut:y("debug-step-out",60117),debugStepOver:y("debug-step-over",60118),debugStop:y("debug-stop",60119),debug:y("debug",60120),deviceCameraVideo:y("device-camera-video",60121),deviceCamera:y("device-camera",60122),deviceMobile:y("device-mobile",60123),diffAdded:y("diff-added",60124),diffIgnored:y("diff-ignored",60125),diffModified:y("diff-modified",60126),diffRemoved:y("diff-removed",60127),diffRenamed:y("diff-renamed",60128),diff:y("diff",60129),diffSidebyside:y("diff-sidebyside",60129),discard:y("discard",60130),editorLayout:y("editor-layout",60131),emptyWindow:y("empty-window",60132),exclude:y("exclude",60133),extensions:y("extensions",60134),eyeClosed:y("eye-closed",60135),fileBinary:y("file-binary",60136),fileCode:y("file-code",60137),fileMedia:y("file-media",60138),filePdf:y("file-pdf",60139),fileSubmodule:y("file-submodule",60140),fileSymlinkDirectory:y("file-symlink-directory",60141),fileSymlinkFile:y("file-symlink-file",60142),fileZip:y("file-zip",60143),files:y("files",60144),filter:y("filter",60145),flame:y("flame",60146),foldDown:y("fold-down",60147),foldUp:y("fold-up",60148),fold:y("fold",60149),folderActive:y("folder-active",60150),folderOpened:y("folder-opened",60151),gear:y("gear",60152),gift:y("gift",60153),gistSecret:y("gist-secret",60154),gist:y("gist",60155),gitCommit:y("git-commit",60156),gitCompare:y("git-compare",60157),compareChanges:y("compare-changes",60157),gitMerge:y("git-merge",60158),githubAction:y("github-action",60159),githubAlt:y("github-alt",60160),globe:y("globe",60161),grabber:y("grabber",60162),graph:y("graph",60163),gripper:y("gripper",60164),heart:y("heart",60165),home:y("home",60166),horizontalRule:y("horizontal-rule",60167),hubot:y("hubot",60168),inbox:y("inbox",60169),issueReopened:y("issue-reopened",60171),issues:y("issues",60172),italic:y("italic",60173),jersey:y("jersey",60174),json:y("json",60175),kebabVertical:y("kebab-vertical",60176),key:y("key",60177),law:y("law",60178),lightbulbAutofix:y("lightbulb-autofix",60179),linkExternal:y("link-external",60180),link:y("link",60181),listOrdered:y("list-ordered",60182),listUnordered:y("list-unordered",60183),liveShare:y("live-share",60184),loading:y("loading",60185),location:y("location",60186),mailRead:y("mail-read",60187),mail:y("mail",60188),markdown:y("markdown",60189),megaphone:y("megaphone",60190),mention:y("mention",60191),milestone:y("milestone",60192),gitPullRequestMilestone:y("git-pull-request-milestone",60192),mortarBoard:y("mortar-board",60193),move:y("move",60194),multipleWindows:y("multiple-windows",60195),mute:y("mute",60196),noNewline:y("no-newline",60197),note:y("note",60198),octoface:y("octoface",60199),openPreview:y("open-preview",60200),package:y("package",60201),paintcan:y("paintcan",60202),pin:y("pin",60203),play:y("play",60204),run:y("run",60204),plug:y("plug",60205),preserveCase:y("preserve-case",60206),preview:y("preview",60207),project:y("project",60208),pulse:y("pulse",60209),question:y("question",60210),quote:y("quote",60211),radioTower:y("radio-tower",60212),reactions:y("reactions",60213),references:y("references",60214),refresh:y("refresh",60215),regex:y("regex",60216),remoteExplorer:y("remote-explorer",60217),remote:y("remote",60218),remove:y("remove",60219),replaceAll:y("replace-all",60220),replace:y("replace",60221),repoClone:y("repo-clone",60222),repoForcePush:y("repo-force-push",60223),repoPull:y("repo-pull",60224),repoPush:y("repo-push",60225),report:y("report",60226),requestChanges:y("request-changes",60227),rocket:y("rocket",60228),rootFolderOpened:y("root-folder-opened",60229),rootFolder:y("root-folder",60230),rss:y("rss",60231),ruby:y("ruby",60232),saveAll:y("save-all",60233),saveAs:y("save-as",60234),save:y("save",60235),screenFull:y("screen-full",60236),screenNormal:y("screen-normal",60237),searchStop:y("search-stop",60238),server:y("server",60240),settingsGear:y("settings-gear",60241),settings:y("settings",60242),shield:y("shield",60243),smiley:y("smiley",60244),sortPrecedence:y("sort-precedence",60245),splitHorizontal:y("split-horizontal",60246),splitVertical:y("split-vertical",60247),squirrel:y("squirrel",60248),starFull:y("star-full",60249),starHalf:y("star-half",60250),symbolClass:y("symbol-class",60251),symbolColor:y("symbol-color",60252),symbolConstant:y("symbol-constant",60253),symbolEnumMember:y("symbol-enum-member",60254),symbolField:y("symbol-field",60255),symbolFile:y("symbol-file",60256),symbolInterface:y("symbol-interface",60257),symbolKeyword:y("symbol-keyword",60258),symbolMisc:y("symbol-misc",60259),symbolOperator:y("symbol-operator",60260),symbolProperty:y("symbol-property",60261),wrench:y("wrench",60261),wrenchSubaction:y("wrench-subaction",60261),symbolSnippet:y("symbol-snippet",60262),tasklist:y("tasklist",60263),telescope:y("telescope",60264),textSize:y("text-size",60265),threeBars:y("three-bars",60266),thumbsdown:y("thumbsdown",60267),thumbsup:y("thumbsup",60268),tools:y("tools",60269),triangleDown:y("triangle-down",60270),triangleLeft:y("triangle-left",60271),triangleRight:y("triangle-right",60272),triangleUp:y("triangle-up",60273),twitter:y("twitter",60274),unfold:y("unfold",60275),unlock:y("unlock",60276),unmute:y("unmute",60277),unverified:y("unverified",60278),verified:y("verified",60279),versions:y("versions",60280),vmActive:y("vm-active",60281),vmOutline:y("vm-outline",60282),vmRunning:y("vm-running",60283),watch:y("watch",60284),whitespace:y("whitespace",60285),wholeWord:y("whole-word",60286),window:y("window",60287),wordWrap:y("word-wrap",60288),zoomIn:y("zoom-in",60289),zoomOut:y("zoom-out",60290),listFilter:y("list-filter",60291),listFlat:y("list-flat",60292),listSelection:y("list-selection",60293),selection:y("selection",60293),listTree:y("list-tree",60294),debugBreakpointFunctionUnverified:y("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:y("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:y("debug-breakpoint-function-disabled",60296),debugStackframeActive:y("debug-stackframe-active",60297),circleSmallFilled:y("circle-small-filled",60298),debugStackframeDot:y("debug-stackframe-dot",60298),terminalDecorationMark:y("terminal-decoration-mark",60298),debugStackframe:y("debug-stackframe",60299),debugStackframeFocused:y("debug-stackframe-focused",60299),debugBreakpointUnsupported:y("debug-breakpoint-unsupported",60300),symbolString:y("symbol-string",60301),debugReverseContinue:y("debug-reverse-continue",60302),debugStepBack:y("debug-step-back",60303),debugRestartFrame:y("debug-restart-frame",60304),debugAlt:y("debug-alt",60305),callIncoming:y("call-incoming",60306),callOutgoing:y("call-outgoing",60307),menu:y("menu",60308),expandAll:y("expand-all",60309),feedback:y("feedback",60310),gitPullRequestReviewer:y("git-pull-request-reviewer",60310),groupByRefType:y("group-by-ref-type",60311),ungroupByRefType:y("ungroup-by-ref-type",60312),account:y("account",60313),gitPullRequestAssignee:y("git-pull-request-assignee",60313),bellDot:y("bell-dot",60314),debugConsole:y("debug-console",60315),library:y("library",60316),output:y("output",60317),runAll:y("run-all",60318),syncIgnored:y("sync-ignored",60319),pinned:y("pinned",60320),githubInverted:y("github-inverted",60321),serverProcess:y("server-process",60322),serverEnvironment:y("server-environment",60323),pass:y("pass",60324),issueClosed:y("issue-closed",60324),stopCircle:y("stop-circle",60325),playCircle:y("play-circle",60326),record:y("record",60327),debugAltSmall:y("debug-alt-small",60328),vmConnect:y("vm-connect",60329),cloud:y("cloud",60330),merge:y("merge",60331),export:y("export",60332),graphLeft:y("graph-left",60333),magnet:y("magnet",60334),notebook:y("notebook",60335),redo:y("redo",60336),checkAll:y("check-all",60337),pinnedDirty:y("pinned-dirty",60338),passFilled:y("pass-filled",60339),circleLargeFilled:y("circle-large-filled",60340),circleLarge:y("circle-large",60341),circleLargeOutline:y("circle-large-outline",60341),combine:y("combine",60342),gather:y("gather",60342),table:y("table",60343),variableGroup:y("variable-group",60344),typeHierarchy:y("type-hierarchy",60345),typeHierarchySub:y("type-hierarchy-sub",60346),typeHierarchySuper:y("type-hierarchy-super",60347),gitPullRequestCreate:y("git-pull-request-create",60348),runAbove:y("run-above",60349),runBelow:y("run-below",60350),notebookTemplate:y("notebook-template",60351),debugRerun:y("debug-rerun",60352),workspaceTrusted:y("workspace-trusted",60353),workspaceUntrusted:y("workspace-untrusted",60354),workspaceUnknown:y("workspace-unknown",60355),terminalCmd:y("terminal-cmd",60356),terminalDebian:y("terminal-debian",60357),terminalLinux:y("terminal-linux",60358),terminalPowershell:y("terminal-powershell",60359),terminalTmux:y("terminal-tmux",60360),terminalUbuntu:y("terminal-ubuntu",60361),terminalBash:y("terminal-bash",60362),arrowSwap:y("arrow-swap",60363),copy:y("copy",60364),personAdd:y("person-add",60365),filterFilled:y("filter-filled",60366),wand:y("wand",60367),debugLineByLine:y("debug-line-by-line",60368),inspect:y("inspect",60369),layers:y("layers",60370),layersDot:y("layers-dot",60371),layersActive:y("layers-active",60372),compass:y("compass",60373),compassDot:y("compass-dot",60374),compassActive:y("compass-active",60375),azure:y("azure",60376),issueDraft:y("issue-draft",60377),gitPullRequestClosed:y("git-pull-request-closed",60378),gitPullRequestDraft:y("git-pull-request-draft",60379),debugAll:y("debug-all",60380),debugCoverage:y("debug-coverage",60381),runErrors:y("run-errors",60382),folderLibrary:y("folder-library",60383),debugContinueSmall:y("debug-continue-small",60384),beakerStop:y("beaker-stop",60385),graphLine:y("graph-line",60386),graphScatter:y("graph-scatter",60387),pieChart:y("pie-chart",60388),bracket:y("bracket",60175),bracketDot:y("bracket-dot",60389),bracketError:y("bracket-error",60390),lockSmall:y("lock-small",60391),azureDevops:y("azure-devops",60392),verifiedFilled:y("verified-filled",60393),newline:y("newline",60394),layout:y("layout",60395),layoutActivitybarLeft:y("layout-activitybar-left",60396),layoutActivitybarRight:y("layout-activitybar-right",60397),layoutPanelLeft:y("layout-panel-left",60398),layoutPanelCenter:y("layout-panel-center",60399),layoutPanelJustify:y("layout-panel-justify",60400),layoutPanelRight:y("layout-panel-right",60401),layoutPanel:y("layout-panel",60402),layoutSidebarLeft:y("layout-sidebar-left",60403),layoutSidebarRight:y("layout-sidebar-right",60404),layoutStatusbar:y("layout-statusbar",60405),layoutMenubar:y("layout-menubar",60406),layoutCentered:y("layout-centered",60407),target:y("target",60408),indent:y("indent",60409),recordSmall:y("record-small",60410),errorSmall:y("error-small",60411),terminalDecorationError:y("terminal-decoration-error",60411),arrowCircleDown:y("arrow-circle-down",60412),arrowCircleLeft:y("arrow-circle-left",60413),arrowCircleRight:y("arrow-circle-right",60414),arrowCircleUp:y("arrow-circle-up",60415),layoutSidebarRightOff:y("layout-sidebar-right-off",60416),layoutPanelOff:y("layout-panel-off",60417),layoutSidebarLeftOff:y("layout-sidebar-left-off",60418),blank:y("blank",60419),heartFilled:y("heart-filled",60420),map:y("map",60421),mapHorizontal:y("map-horizontal",60421),foldHorizontal:y("fold-horizontal",60421),mapFilled:y("map-filled",60422),mapHorizontalFilled:y("map-horizontal-filled",60422),foldHorizontalFilled:y("fold-horizontal-filled",60422),circleSmall:y("circle-small",60423),bellSlash:y("bell-slash",60424),bellSlashDot:y("bell-slash-dot",60425),commentUnresolved:y("comment-unresolved",60426),gitPullRequestGoToChanges:y("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:y("git-pull-request-new-changes",60428),searchFuzzy:y("search-fuzzy",60429),commentDraft:y("comment-draft",60430),send:y("send",60431),sparkle:y("sparkle",60432),insert:y("insert",60433),mic:y("mic",60434),thumbsdownFilled:y("thumbsdown-filled",60435),thumbsupFilled:y("thumbsup-filled",60436),coffee:y("coffee",60437),snake:y("snake",60438),game:y("game",60439),vr:y("vr",60440),chip:y("chip",60441),piano:y("piano",60442),music:y("music",60443),micFilled:y("mic-filled",60444),repoFetch:y("repo-fetch",60445),copilot:y("copilot",60446),lightbulbSparkle:y("lightbulb-sparkle",60447),robot:y("robot",60448),sparkleFilled:y("sparkle-filled",60449),diffSingle:y("diff-single",60450),diffMultiple:y("diff-multiple",60451),surroundWith:y("surround-with",60452),share:y("share",60453),gitStash:y("git-stash",60454),gitStashApply:y("git-stash-apply",60455),gitStashPop:y("git-stash-pop",60456),vscode:y("vscode",60457),vscodeInsiders:y("vscode-insiders",60458),codeOss:y("code-oss",60459),runCoverage:y("run-coverage",60460),runAllCoverage:y("run-all-coverage",60461),coverage:y("coverage",60462),githubProject:y("github-project",60463),mapVertical:y("map-vertical",60464),foldVertical:y("fold-vertical",60464),mapVerticalFilled:y("map-vertical-filled",60465),foldVerticalFilled:y("fold-vertical-filled",60465)},yX={dialogError:y("dialog-error","error"),dialogWarning:y("dialog-warning","warning"),dialogInfo:y("dialog-info","info"),dialogClose:y("dialog-close","close"),treeItemExpanded:y("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:y("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:y("tree-filter-on-type-off","list-selection"),treeFilterClear:y("tree-filter-clear","close"),treeItemLoading:y("tree-item-loading","loading"),menuSelection:y("menu-selection","check"),menuSubmenu:y("menu-submenu","chevron-right"),menuBarMore:y("menubar-more","more"),scrollbarButtonLeft:y("scrollbar-button-left","triangle-left"),scrollbarButtonRight:y("scrollbar-button-right","triangle-right"),scrollbarButtonUp:y("scrollbar-button-up","triangle-up"),scrollbarButtonDown:y("scrollbar-button-down","triangle-down"),toolBarMore:y("toolbar-more","more"),quickInputBack:y("quick-input-back","arrow-left"),dropDownButton:y("drop-down-button",60084),symbolCustomColor:y("symbol-customcolor",60252),exportIcon:y("export",60332),workspaceUnspecified:y("workspace-unspecified",60355),newLine:y("newline",60394),thumbsDownFilled:y("thumbsdown-filled",60435),thumbsUpFilled:y("thumbsup-filled",60436),gitFetch:y("git-fetch",60445),lightbulbSparkleAutofix:y("lightbulb-sparkle-autofix",60447),debugBreakpointPending:y("debug-breakpoint-pending",60377)},oe={...SX,...yX};let xX=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new O,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),Le(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;(i=this._factories.get(e))===null||i===void 0||i.dispose();const n=new kX(this,e,t);return this._factories.set(e,n),Le(()=>{const o=this._factories.get(e);!o||o!==n||(this._factories.delete(e),o.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class kX extends W{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}let Uv=class{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class dP{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class kk{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}var jv;(function(s){const e=new Map;e.set(0,oe.symbolMethod),e.set(1,oe.symbolFunction),e.set(2,oe.symbolConstructor),e.set(3,oe.symbolField),e.set(4,oe.symbolVariable),e.set(5,oe.symbolClass),e.set(6,oe.symbolStruct),e.set(7,oe.symbolInterface),e.set(8,oe.symbolModule),e.set(9,oe.symbolProperty),e.set(10,oe.symbolEvent),e.set(11,oe.symbolOperator),e.set(12,oe.symbolUnit),e.set(13,oe.symbolValue),e.set(15,oe.symbolEnum),e.set(14,oe.symbolConstant),e.set(15,oe.symbolEnum),e.set(16,oe.symbolEnumMember),e.set(17,oe.symbolKeyword),e.set(27,oe.symbolSnippet),e.set(18,oe.symbolText),e.set(19,oe.symbolColor),e.set(20,oe.symbolFile),e.set(21,oe.symbolReference),e.set(22,oe.symbolCustomColor),e.set(23,oe.symbolFolder),e.set(24,oe.symbolTypeParameter),e.set(25,oe.account),e.set(26,oe.issues);function t(o){let r=e.get(o);return r||(console.info("No codicon found for CompletionItemKind "+o),r=oe.symbolProperty),r}s.toIcon=t;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function n(o,r){let a=i.get(o);return typeof a>"u"&&!r&&(a=9),a}s.fromString=n})(jv||(jv={}));var cc;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(cc||(cc={}));class AH{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return k.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}var qv;(function(s){s[s.Automatic=0]="Automatic",s[s.PasteAs=1]="PasteAs"})(qv||(qv={}));var Zl;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(Zl||(Zl={}));var Kv;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(Kv||(Kv={}));function LX(s){return s&&Ae.isUri(s.uri)&&k.isIRange(s.range)&&(k.isIRange(s.originSelectionRange)||k.isIRange(s.targetSelectionRange))}const DX={17:p("Array","array"),16:p("Boolean","boolean"),4:p("Class","class"),13:p("Constant","constant"),8:p("Constructor","constructor"),9:p("Enum","enumeration"),21:p("EnumMember","enumeration member"),23:p("Event","event"),7:p("Field","field"),0:p("File","file"),11:p("Function","function"),10:p("Interface","interface"),19:p("Key","key"),5:p("Method","method"),1:p("Module","module"),2:p("Namespace","namespace"),20:p("Null","null"),15:p("Number","number"),18:p("Object","object"),24:p("Operator","operator"),3:p("Package","package"),6:p("Property","property"),14:p("String","string"),22:p("Struct","struct"),25:p("TypeParameter","type parameter"),12:p("Variable","variable")};function EX(s,e){return p("symbolAriaLabel","{0} ({1})",s,DX[e])}var ly;(function(s){const e=new Map;e.set(0,oe.symbolFile),e.set(1,oe.symbolModule),e.set(2,oe.symbolNamespace),e.set(3,oe.symbolPackage),e.set(4,oe.symbolClass),e.set(5,oe.symbolMethod),e.set(6,oe.symbolProperty),e.set(7,oe.symbolField),e.set(8,oe.symbolConstructor),e.set(9,oe.symbolEnum),e.set(10,oe.symbolInterface),e.set(11,oe.symbolFunction),e.set(12,oe.symbolVariable),e.set(13,oe.symbolConstant),e.set(14,oe.symbolString),e.set(15,oe.symbolNumber),e.set(16,oe.symbolBoolean),e.set(17,oe.symbolArray),e.set(18,oe.symbolObject),e.set(19,oe.symbolKey),e.set(20,oe.symbolNull),e.set(21,oe.symbolEnumMember),e.set(22,oe.symbolStruct),e.set(23,oe.symbolEvent),e.set(24,oe.symbolOperator),e.set(25,oe.symbolTypeParameter);function t(i){let n=e.get(i);return n||(console.info("No codicon found for SymbolKind "+i),n=oe.symbolProperty),n}s.toIcon=t})(ly||(ly={}));let na=class xb{static fromValue(e){switch(e){case"comment":return xb.Comment;case"imports":return xb.Imports;case"region":return xb.Region}return new xb(e)}constructor(e){this.value=e}};na.Comment=new na("comment");na.Imports=new na("imports");na.Region=new na("region");var lT;(function(s){s[s.AIGenerated=1]="AIGenerated"})(lT||(lT={}));var dT;(function(s){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}s.is=e})(dT||(dT={}));var dy;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(dy||(dy={}));class IX{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const Ci=new xX;var cy;(function(s){s[s.Invoke=0]="Invoke",s[s.Automatic=1]="Automatic"})(cy||(cy={}));var cT;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(cT||(cT={}));var uT;(function(s){s[s.Invoke=1]="Invoke",s[s.Auto=2]="Auto"})(uT||(uT={}));var hT;(function(s){s[s.None=0]="None",s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(hT||(hT={}));var gT;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.User=25]="User",s[s.Issue=26]="Issue",s[s.Snippet=27]="Snippet"})(gT||(gT={}));var fT;(function(s){s[s.Deprecated=1]="Deprecated"})(fT||(fT={}));var pT;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(pT||(pT={}));var mT;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(mT||(mT={}));var _T;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(_T||(_T={}));var bT;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(bT||(bT={}));var vT;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(vT||(vT={}));var CT;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(CT||(CT={}));var wT;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.ariaRequired=5]="ariaRequired",s[s.autoClosingBrackets=6]="autoClosingBrackets",s[s.autoClosingComments=7]="autoClosingComments",s[s.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",s[s.autoClosingDelete=9]="autoClosingDelete",s[s.autoClosingOvertype=10]="autoClosingOvertype",s[s.autoClosingQuotes=11]="autoClosingQuotes",s[s.autoIndent=12]="autoIndent",s[s.automaticLayout=13]="automaticLayout",s[s.autoSurround=14]="autoSurround",s[s.bracketPairColorization=15]="bracketPairColorization",s[s.guides=16]="guides",s[s.codeLens=17]="codeLens",s[s.codeLensFontFamily=18]="codeLensFontFamily",s[s.codeLensFontSize=19]="codeLensFontSize",s[s.colorDecorators=20]="colorDecorators",s[s.colorDecoratorsLimit=21]="colorDecoratorsLimit",s[s.columnSelection=22]="columnSelection",s[s.comments=23]="comments",s[s.contextmenu=24]="contextmenu",s[s.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",s[s.cursorBlinking=26]="cursorBlinking",s[s.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",s[s.cursorStyle=28]="cursorStyle",s[s.cursorSurroundingLines=29]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",s[s.cursorWidth=31]="cursorWidth",s[s.disableLayerHinting=32]="disableLayerHinting",s[s.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",s[s.domReadOnly=34]="domReadOnly",s[s.dragAndDrop=35]="dragAndDrop",s[s.dropIntoEditor=36]="dropIntoEditor",s[s.emptySelectionClipboard=37]="emptySelectionClipboard",s[s.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",s[s.extraEditorClassName=39]="extraEditorClassName",s[s.fastScrollSensitivity=40]="fastScrollSensitivity",s[s.find=41]="find",s[s.fixedOverflowWidgets=42]="fixedOverflowWidgets",s[s.folding=43]="folding",s[s.foldingStrategy=44]="foldingStrategy",s[s.foldingHighlight=45]="foldingHighlight",s[s.foldingImportsByDefault=46]="foldingImportsByDefault",s[s.foldingMaximumRegions=47]="foldingMaximumRegions",s[s.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",s[s.fontFamily=49]="fontFamily",s[s.fontInfo=50]="fontInfo",s[s.fontLigatures=51]="fontLigatures",s[s.fontSize=52]="fontSize",s[s.fontWeight=53]="fontWeight",s[s.fontVariations=54]="fontVariations",s[s.formatOnPaste=55]="formatOnPaste",s[s.formatOnType=56]="formatOnType",s[s.glyphMargin=57]="glyphMargin",s[s.gotoLocation=58]="gotoLocation",s[s.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",s[s.hover=60]="hover",s[s.inDiffEditor=61]="inDiffEditor",s[s.inlineSuggest=62]="inlineSuggest",s[s.inlineEdit=63]="inlineEdit",s[s.letterSpacing=64]="letterSpacing",s[s.lightbulb=65]="lightbulb",s[s.lineDecorationsWidth=66]="lineDecorationsWidth",s[s.lineHeight=67]="lineHeight",s[s.lineNumbers=68]="lineNumbers",s[s.lineNumbersMinChars=69]="lineNumbersMinChars",s[s.linkedEditing=70]="linkedEditing",s[s.links=71]="links",s[s.matchBrackets=72]="matchBrackets",s[s.minimap=73]="minimap",s[s.mouseStyle=74]="mouseStyle",s[s.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=76]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",s[s.multiCursorModifier=78]="multiCursorModifier",s[s.multiCursorPaste=79]="multiCursorPaste",s[s.multiCursorLimit=80]="multiCursorLimit",s[s.occurrencesHighlight=81]="occurrencesHighlight",s[s.overviewRulerBorder=82]="overviewRulerBorder",s[s.overviewRulerLanes=83]="overviewRulerLanes",s[s.padding=84]="padding",s[s.pasteAs=85]="pasteAs",s[s.parameterHints=86]="parameterHints",s[s.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",s[s.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",s[s.quickSuggestions=89]="quickSuggestions",s[s.quickSuggestionsDelay=90]="quickSuggestionsDelay",s[s.readOnly=91]="readOnly",s[s.readOnlyMessage=92]="readOnlyMessage",s[s.renameOnType=93]="renameOnType",s[s.renderControlCharacters=94]="renderControlCharacters",s[s.renderFinalNewline=95]="renderFinalNewline",s[s.renderLineHighlight=96]="renderLineHighlight",s[s.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",s[s.renderValidationDecorations=98]="renderValidationDecorations",s[s.renderWhitespace=99]="renderWhitespace",s[s.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",s[s.roundedSelection=101]="roundedSelection",s[s.rulers=102]="rulers",s[s.scrollbar=103]="scrollbar",s[s.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=105]="scrollBeyondLastLine",s[s.scrollPredominantAxis=106]="scrollPredominantAxis",s[s.selectionClipboard=107]="selectionClipboard",s[s.selectionHighlight=108]="selectionHighlight",s[s.selectOnLineNumbers=109]="selectOnLineNumbers",s[s.showFoldingControls=110]="showFoldingControls",s[s.showUnused=111]="showUnused",s[s.snippetSuggestions=112]="snippetSuggestions",s[s.smartSelect=113]="smartSelect",s[s.smoothScrolling=114]="smoothScrolling",s[s.stickyScroll=115]="stickyScroll",s[s.stickyTabStops=116]="stickyTabStops",s[s.stopRenderingLineAfter=117]="stopRenderingLineAfter",s[s.suggest=118]="suggest",s[s.suggestFontSize=119]="suggestFontSize",s[s.suggestLineHeight=120]="suggestLineHeight",s[s.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",s[s.suggestSelection=122]="suggestSelection",s[s.tabCompletion=123]="tabCompletion",s[s.tabIndex=124]="tabIndex",s[s.unicodeHighlighting=125]="unicodeHighlighting",s[s.unusualLineTerminators=126]="unusualLineTerminators",s[s.useShadowDOM=127]="useShadowDOM",s[s.useTabStops=128]="useTabStops",s[s.wordBreak=129]="wordBreak",s[s.wordSegmenterLocales=130]="wordSegmenterLocales",s[s.wordSeparators=131]="wordSeparators",s[s.wordWrap=132]="wordWrap",s[s.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=135]="wordWrapColumn",s[s.wordWrapOverride1=136]="wordWrapOverride1",s[s.wordWrapOverride2=137]="wordWrapOverride2",s[s.wrappingIndent=138]="wrappingIndent",s[s.wrappingStrategy=139]="wrappingStrategy",s[s.showDeprecated=140]="showDeprecated",s[s.inlayHints=141]="inlayHints",s[s.editorClassName=142]="editorClassName",s[s.pixelRatio=143]="pixelRatio",s[s.tabFocusMode=144]="tabFocusMode",s[s.layoutInfo=145]="layoutInfo",s[s.wrappingInfo=146]="wrappingInfo",s[s.defaultColorDecorators=147]="defaultColorDecorators",s[s.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",s[s.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(wT||(wT={}));var ST;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(ST||(ST={}));var yT;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(yT||(yT={}));var xT;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=3]="Right"})(xT||(xT={}));var kT;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(kT||(kT={}));var LT;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})(LT||(LT={}));var DT;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(DT||(DT={}));var ET;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(ET||(ET={}));var IT;(function(s){s[s.Invoke=0]="Invoke",s[s.Automatic=1]="Automatic"})(IT||(IT={}));var TT;(function(s){s[s.DependsOnKbLayout=-1]="DependsOnKbLayout",s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.Digit0=21]="Digit0",s[s.Digit1=22]="Digit1",s[s.Digit2=23]="Digit2",s[s.Digit3=24]="Digit3",s[s.Digit4=25]="Digit4",s[s.Digit5=26]="Digit5",s[s.Digit6=27]="Digit6",s[s.Digit7=28]="Digit7",s[s.Digit8=29]="Digit8",s[s.Digit9=30]="Digit9",s[s.KeyA=31]="KeyA",s[s.KeyB=32]="KeyB",s[s.KeyC=33]="KeyC",s[s.KeyD=34]="KeyD",s[s.KeyE=35]="KeyE",s[s.KeyF=36]="KeyF",s[s.KeyG=37]="KeyG",s[s.KeyH=38]="KeyH",s[s.KeyI=39]="KeyI",s[s.KeyJ=40]="KeyJ",s[s.KeyK=41]="KeyK",s[s.KeyL=42]="KeyL",s[s.KeyM=43]="KeyM",s[s.KeyN=44]="KeyN",s[s.KeyO=45]="KeyO",s[s.KeyP=46]="KeyP",s[s.KeyQ=47]="KeyQ",s[s.KeyR=48]="KeyR",s[s.KeyS=49]="KeyS",s[s.KeyT=50]="KeyT",s[s.KeyU=51]="KeyU",s[s.KeyV=52]="KeyV",s[s.KeyW=53]="KeyW",s[s.KeyX=54]="KeyX",s[s.KeyY=55]="KeyY",s[s.KeyZ=56]="KeyZ",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.F20=78]="F20",s[s.F21=79]="F21",s[s.F22=80]="F22",s[s.F23=81]="F23",s[s.F24=82]="F24",s[s.NumLock=83]="NumLock",s[s.ScrollLock=84]="ScrollLock",s[s.Semicolon=85]="Semicolon",s[s.Equal=86]="Equal",s[s.Comma=87]="Comma",s[s.Minus=88]="Minus",s[s.Period=89]="Period",s[s.Slash=90]="Slash",s[s.Backquote=91]="Backquote",s[s.BracketLeft=92]="BracketLeft",s[s.Backslash=93]="Backslash",s[s.BracketRight=94]="BracketRight",s[s.Quote=95]="Quote",s[s.OEM_8=96]="OEM_8",s[s.IntlBackslash=97]="IntlBackslash",s[s.Numpad0=98]="Numpad0",s[s.Numpad1=99]="Numpad1",s[s.Numpad2=100]="Numpad2",s[s.Numpad3=101]="Numpad3",s[s.Numpad4=102]="Numpad4",s[s.Numpad5=103]="Numpad5",s[s.Numpad6=104]="Numpad6",s[s.Numpad7=105]="Numpad7",s[s.Numpad8=106]="Numpad8",s[s.Numpad9=107]="Numpad9",s[s.NumpadMultiply=108]="NumpadMultiply",s[s.NumpadAdd=109]="NumpadAdd",s[s.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",s[s.NumpadSubtract=111]="NumpadSubtract",s[s.NumpadDecimal=112]="NumpadDecimal",s[s.NumpadDivide=113]="NumpadDivide",s[s.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",s[s.ABNT_C1=115]="ABNT_C1",s[s.ABNT_C2=116]="ABNT_C2",s[s.AudioVolumeMute=117]="AudioVolumeMute",s[s.AudioVolumeUp=118]="AudioVolumeUp",s[s.AudioVolumeDown=119]="AudioVolumeDown",s[s.BrowserSearch=120]="BrowserSearch",s[s.BrowserHome=121]="BrowserHome",s[s.BrowserBack=122]="BrowserBack",s[s.BrowserForward=123]="BrowserForward",s[s.MediaTrackNext=124]="MediaTrackNext",s[s.MediaTrackPrevious=125]="MediaTrackPrevious",s[s.MediaStop=126]="MediaStop",s[s.MediaPlayPause=127]="MediaPlayPause",s[s.LaunchMediaPlayer=128]="LaunchMediaPlayer",s[s.LaunchMail=129]="LaunchMail",s[s.LaunchApp2=130]="LaunchApp2",s[s.Clear=131]="Clear",s[s.MAX_VALUE=132]="MAX_VALUE"})(TT||(TT={}));var NT;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(NT||(NT={}));var AT;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(AT||(AT={}));var RT;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(RT||(RT={}));var MT;(function(s){s[s.Normal=1]="Normal",s[s.Underlined=2]="Underlined"})(MT||(MT={}));var PT;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(PT||(PT={}));var OT;(function(s){s[s.AIGenerated=1]="AIGenerated"})(OT||(OT={}));var FT;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(FT||(FT={}));var BT;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(BT||(BT={}));var WT;(function(s){s[s.Word=0]="Word",s[s.Line=1]="Line",s[s.Suggest=2]="Suggest"})(WT||(WT={}));var HT;(function(s){s[s.Left=0]="Left",s[s.Right=1]="Right",s[s.None=2]="None",s[s.LeftOfInjectedText=3]="LeftOfInjectedText",s[s.RightOfInjectedText=4]="RightOfInjectedText"})(HT||(HT={}));var VT;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(VT||(VT={}));var $T;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})($T||($T={}));var zT;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(zT||(zT={}));var UT;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(UT||(UT={}));var jT;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(jT||(jT={}));var qT;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(qT||(qT={}));var KT;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(KT||(KT={}));var GT;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(GT||(GT={}));var ZT;(function(s){s[s.Deprecated=1]="Deprecated"})(ZT||(ZT={}));var YT;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(YT||(YT={}));var XT;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(XT||(XT={}));var QT;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(QT||(QT={}));var JT;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(JT||(JT={}));let zC=class{static chord(e,t){return en(e,t)}};zC.CtrlCmd=2048;zC.Shift=1024;zC.Alt=512;zC.WinCtrl=256;function RH(){return{editor:void 0,languages:void 0,CancellationTokenSource:Ei,Emitter:O,KeyCode:TT,KeyMod:zC,Position:F,Range:k,Selection:Ce,SelectionDirection:jT,MarkerSeverity:NT,MarkerTag:AT,Uri:Ae,Token:Uv}}function TX(s,e){const t=s;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const Bt=window;class NX{constructor(e,t=JSON.stringify){this.fn=e,this._computeKey=t,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class e5{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}class il{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var Dm;function MH(s){return!s||typeof s!="string"?!0:s.trim().length===0}const AX=/{(\d+)}/g;function jg(s,...e){return e.length===0?s:s.replace(AX,function(t,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=e.length?t:e[n]})}function RX(s){return s.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&apos;";case"&":return"&amp;"}return e})}function uy(s){return s.replace(/[<>&]/g,function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}})}function Xo(s){return s.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function MX(s,e=" "){const t=UC(s,e);return PH(t,e)}function UC(s,e){if(!s||!e)return s;const t=e.length;if(t===0||s.length===0)return s;let i=0;for(;s.indexOf(e,i)===i;)i=i+t;return s.substring(i)}function PH(s,e){if(!s||!e)return s;const t=e.length,i=s.length;if(t===0||i===0)return s;let n=i,o=-1;for(;o=s.lastIndexOf(e,n-1),!(o===-1||o+t!==n);){if(o===0)return"";n=o}return s.substring(0,n)}function PX(s){return s.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function OX(s){return s.replace(/\*/g,"")}function OH(s,e,t={}){if(!s)throw new Error("Cannot create regex from empty string");e||(s=Xo(s)),t.wholeWord&&(/\B/.test(s.charAt(0))||(s="\\b"+s),/\B/.test(s.charAt(s.length-1))||(s=s+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(s,i)}function FX(s){return s.source==="^"||s.source==="^$"||s.source==="$"||s.source==="^\\s*$"?!1:!!(s.exec("")&&s.lastIndex===0)}function hd(s){return s.split(/\r\n|\r|\n/)}function BX(s){var e;const t=[],i=s.split(/(\r\n|\r|\n)/);for(let n=0;n<Math.ceil(i.length/2);n++)t.push(i[2*n]+((e=i[2*n+1])!==null&&e!==void 0?e:""));return t}function ms(s){for(let e=0,t=s.length;e<t;e++){const i=s.charCodeAt(e);if(i!==32&&i!==9)return e}return-1}function Kt(s,e=0,t=s.length){for(let i=e;i<t;i++){const n=s.charCodeAt(i);if(n!==32&&n!==9)return s.substring(e,i)}return s.substring(e,t)}function Wa(s,e=s.length-1){for(let t=e;t>=0;t--){const i=s.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function Gv(s,e){return s<e?-1:s>e?1:0}function cP(s,e,t=0,i=s.length,n=0,o=e.length){for(;t<i&&n<o;t++,n++){const l=s.charCodeAt(t),d=e.charCodeAt(n);if(l<d)return-1;if(l>d)return 1}const r=i-t,a=o-n;return r<a?-1:r>a?1:0}function eN(s,e){return jC(s,e,0,s.length,0,e.length)}function jC(s,e,t=0,i=s.length,n=0,o=e.length){for(;t<i&&n<o;t++,n++){let l=s.charCodeAt(t),d=e.charCodeAt(n);if(l===d)continue;if(l>=128||d>=128)return cP(s.toLowerCase(),e.toLowerCase(),t,i,n,o);pu(l)&&(l-=32),pu(d)&&(d-=32);const c=l-d;if(c!==0)return c}const r=i-t,a=o-n;return r<a?-1:r>a?1:0}function zw(s){return s>=48&&s<=57}function pu(s){return s>=97&&s<=122}function yl(s){return s>=65&&s<=90}function Cp(s,e){return s.length===e.length&&jC(s,e)===0}function uP(s,e){const t=e.length;return e.length>s.length?!1:jC(s,e,0,t)===0}function Qu(s,e){const t=Math.min(s.length,e.length);let i;for(i=0;i<t;i++)if(s.charCodeAt(i)!==e.charCodeAt(i))return i;return t}function hy(s,e){const t=Math.min(s.length,e.length);let i;const n=s.length-1,o=e.length-1;for(i=0;i<t;i++)if(s.charCodeAt(n-i)!==e.charCodeAt(o-i))return i;return t}function hn(s){return 55296<=s&&s<=56319}function qg(s){return 56320<=s&&s<=57343}function hP(s,e){return(s-55296<<10)+(e-56320)+65536}function gy(s,e,t){const i=s.charCodeAt(t);if(hn(i)&&t+1<e){const n=s.charCodeAt(t+1);if(qg(n))return hP(i,n)}return i}function WX(s,e){const t=s.charCodeAt(e-1);if(qg(t)&&e>1){const i=s.charCodeAt(e-2);if(hn(i))return hP(i,t)}return t}class gP{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=WX(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=gy(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class fy{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new gP(e,t)}nextGraphemeLength(){const e=mu.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const o=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(t5(n,r)){t.setOffset(o);break}n=r}return t.offset-i}prevGraphemeLength(){const e=mu.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const o=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(t5(r,n)){t.setOffset(o);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function fP(s,e){return new fy(s,e).nextGraphemeLength()}function FH(s,e){return new fy(s,e).prevGraphemeLength()}function HX(s,e){e>0&&qg(s.charCodeAt(e))&&e--;const t=e+fP(s,e);return[t-FH(s,t),t]}let ZD;function VX(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function Em(s){return ZD||(ZD=VX()),ZD.test(s)}const $X=/^[\t\n\r\x20-\x7E]*$/;function qC(s){return $X.test(s)}const BH=/[\u2028\u2029]/;function WH(s){return BH.test(s)}function Ju(s){return s>=11904&&s<=55215||s>=63744&&s<=64255||s>=65281&&s<=65374}function pP(s){return s>=127462&&s<=127487||s===8986||s===8987||s===9200||s===9203||s>=9728&&s<=10175||s===11088||s===11093||s>=127744&&s<=128591||s>=128640&&s<=128764||s>=128992&&s<=129008||s>=129280&&s<=129535||s>=129648&&s<=129782}const zX="\uFEFF";function mP(s){return!!(s&&s.length>0&&s.charCodeAt(0)===65279)}function UX(s,e=!1){return s?(e&&(s=s.replace(/\\./g,"")),s.toLowerCase()!==s):!1}function HH(s){return s=s%(2*26),s<26?String.fromCharCode(97+s):String.fromCharCode(65+s-26)}function t5(s,e){return s===0?e!==5&&e!==7:s===2&&e===3?!1:s===4||s===2||s===3||e===4||e===2||e===3?!0:!(s===8&&(e===8||e===9||e===11||e===12)||(s===11||s===9)&&(e===9||e===10)||(s===12||s===10)&&e===10||e===5||e===13||e===7||s===1||s===13&&e===14||s===6&&e===6)}class mu{static getInstance(){return mu._INSTANCE||(mu._INSTANCE=new mu),mu._INSTANCE}constructor(){this._data=jX()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(e<t[3*n])n=2*n;else if(e>t[3*n+1])n=2*n+1;else return t[3*n+2];return 0}}mu._INSTANCE=null;function jX(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function qX(s,e){if(s===0)return 0;const t=KX(s,e);if(t!==void 0)return t;const i=new gP(e,s);return i.prevCodePoint(),i.offset}function KX(s,e){const t=new gP(e,s);let i=t.prevCodePoint();for(;GX(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!pP(i))return;let n=t.offset;return n>0&&t.prevCodePoint()===8205&&(n=t.offset),n}function GX(s){return 127995<=s&&s<=127999}const VH=" ";class Kg{static getInstance(e){return Dm.cache.get(Array.from(e))}static getLocales(){return Dm._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}Dm=Kg;Kg.ambiguousCharacterData=new il(()=>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]}'));Kg.cache=new NX(s=>{function e(d){const c=new Map;for(let u=0;u<d.length;u+=2)c.set(d[u],d[u+1]);return c}function t(d,c){const u=new Map(d);for(const[h,g]of c)u.set(h,g);return u}function i(d,c){if(!d)return c;const u=new Map;for(const[h,g]of d)c.has(h)&&u.set(h,g);return u}const n=Dm.ambiguousCharacterData.value;let o=s.filter(d=>!d.startsWith("_")&&d in n);o.length===0&&(o=["_default"]);let r;for(const d of o){const c=e(n[d]);r=i(r,c)}const a=e(n._common),l=t(a,r);return new Dm(l)});Kg._locales=new il(()=>Object.keys(Dm.ambiguousCharacterData.value).filter(s=>!s.startsWith("_")));class Yl{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(Yl.getRawData())),this._data}static isInvisibleCharacter(e){return Yl.getData().has(e)}static get codePoints(){return Yl.getData()}}Yl._data=void 0;class tN{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))!==null&&t!==void 0?t:1}getWindowId(e){return e.vscodeWindowId}}tN.INSTANCE=new tN;function $H(s,e,t){typeof e=="string"&&(e=s.matchMedia(e)),e.addEventListener("change",t)}function ZX(s){return tN.INSTANCE.getZoomFactor(s)}const v_=navigator.userAgent,kr=v_.indexOf("Firefox")>=0,Tg=v_.indexOf("AppleWebKit")>=0,KC=v_.indexOf("Chrome")>=0,wc=!KC&&v_.indexOf("Safari")>=0,zH=!KC&&!wc&&Tg;v_.indexOf("Electron/")>=0;const i5=v_.indexOf("Android")>=0;let mS=!1;if(typeof Bt.matchMedia=="function"){const s=Bt.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=Bt.matchMedia("(display-mode: fullscreen)");mS=s.matches,$H(Bt,s,({matches:t})=>{mS&&e.matches||(mS=t)})}function YX(){return mS}const _P={clipboard:{writeText:Fa||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:Fa||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:Fa||YX()?0:navigator.keyboard||wc?1:2,touch:"ontouchstart"in Bt||navigator.maxTouchPoints>0,pointerEvents:Bt.PointerEvent&&("ontouchstart"in Bt||navigator.maxTouchPoints>0)};function iN(s,e){if(typeof s=="number"){if(s===0)return null;const t=(s&65535)>>>0,i=(s&4294901760)>>>16;return i!==0?new YD([Uw(t,e),Uw(i,e)]):new YD([Uw(t,e)])}else{const t=[];for(let i=0;i<s.length;i++)t.push(Uw(s[i],e));return new YD(t)}}function Uw(s,e){const t=!!(s&2048),i=!!(s&256),n=e===2?i:t,o=!!(s&1024),r=!!(s&512),a=e===2?t:i,l=s&255;return new Sc(n,o,r,a,l)}class Sc{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return e instanceof Sc&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class YD{constructor(e){if(e.length===0)throw Sr("chords");this.chords=e}}class XX{constructor(e,t,i,n,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=r}}class QX{}function JX(s){if(s.charCode){const t=String.fromCharCode(s.charCode).toUpperCase();return Wd.fromString(t)}const e=s.keyCode;if(e===3)return 7;if(kr)switch(e){case 59:return 85;case 60:if(Vs)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(at)return 57;break}else if(Tg){if(at&&e===93)return 57;if(!at&&e===92)return 57}return yH[e]||0}const eQ=at?256:2048,tQ=512,iQ=1024,nQ=at?2048:256;class ti{constructor(e){var t;this._standardKeyboardEventBrand=!0;const i=e;this.browserEvent=i,this.target=i.target,this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey,this.altGraphKey=(t=i.getModifierState)===null||t===void 0?void 0:t.call(i,"AltGraph"),this.keyCode=JX(i),this.code=i.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=eQ),this.altKey&&(t|=tQ),this.shiftKey&&(t|=iQ),this.metaKey&&(t|=nQ),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Sc(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}const n5=new WeakMap;function sQ(s){if(!s.parent||s.parent===s)return null;try{const e=s.location,t=s.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return null}catch{return null}return s.parent}class oQ{static getSameOriginWindowChain(e){let t=n5.get(e);if(!t){t=[],n5.set(e,t);let i=e,n;do n=sQ(i),n?t.push({window:new WeakRef(i),iframeElement:i.frameElement||null}):t.push({window:new WeakRef(i),iframeElement:null}),i=n;while(i)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let o=0,r=0;const a=this.getSameOriginWindowChain(e);for(const l of a){const d=l.window.deref();if(o+=(i=d?.scrollY)!==null&&i!==void 0?i:0,r+=(n=d?.scrollX)!==null&&n!==void 0?n:0,d===t||!l.iframeElement)break;const c=l.iframeElement.getBoundingClientRect();o+=c.top,r+=c.left}return{top:o,left:r}}}class Yr{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=oQ.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class Gg{constructor(e,t=0,i=0){var n;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let o=!1;if(KC){const r=navigator.userAgent.match(/Chrome\/(\d+)/);o=(r?parseInt(r[1]):123)<=122}if(e){const r=e,a=e,l=((n=e.view)===null||n===void 0?void 0:n.devicePixelRatio)||1;if(typeof r.wheelDeltaY<"u")o?this.deltaY=r.wheelDeltaY/(120*l):this.deltaY=r.wheelDeltaY/120;else if(typeof a.VERTICAL_AXIS<"u"&&a.axis===a.VERTICAL_AXIS)this.deltaY=-a.detail/3;else if(e.type==="wheel"){const d=e;d.deltaMode===d.DOM_DELTA_LINE?kr&&!at?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX<"u")wc&&Zn?this.deltaX=-(r.wheelDeltaX/120):o?this.deltaX=r.wheelDeltaX/(120*l):this.deltaX=r.wheelDeltaX/120;else if(typeof a.HORIZONTAL_AXIS<"u"&&a.axis===a.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const d=e;d.deltaMode===d.DOM_DELTA_LINE?kr&&!at?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(o?this.deltaY=e.wheelDelta/(120*l):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)===null||e===void 0||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)===null||e===void 0||e.stopPropagation()}}const UH=Symbol("MicrotaskDelay");function nN(s){return!!s&&typeof s.then=="function"}function mn(s){const e=new Ei,t=s(e.token),i=new Promise((n,o)=>{const r=e.token.onCancellationRequested(()=>{r.dispose(),o(new Nc)});Promise.resolve(t).then(a=>{r.dispose(),e.dispose(),n(a)},a=>{r.dispose(),e.dispose(),o(a)})});return new class{cancel(){e.cancel(),e.dispose()}then(n,o){return i.then(n,o)}catch(n){return this.then(void 0,n)}finally(n){return i.finally(n)}}}function GC(s,e,t){return new Promise((i,n)=>{const o=e.onCancellationRequested(()=>{o.dispose(),i(t)});s.then(i,n).finally(()=>o.dispose())})}class rQ{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{if(this.queuedPromise=null,this.isDisposed)return;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(),new Promise((t,i)=>{this.activePromise.then(n=>{this.activePromise=null,t(n)},n=>{this.activePromise=null,i(n)})})}dispose(){this.isDisposed=!0}}const aQ=(s,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},s);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},lQ=s=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,s())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class sa{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((n,o)=>{this.doResolve=n,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const n=this.task;return this.task=null,n()}}));const i=()=>{var n;this.deferred=null,(n=this.doResolve)===null||n===void 0||n.call(this,null)};return this.deferred=t===UH?lQ(i):aQ(t,i),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new Nc),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class jH{constructor(e){this.delayer=new sa(e),this.throttler=new rQ}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function eh(s,e){return e?new Promise((t,i)=>{const n=setTimeout(()=>{o.dispose(),t()},s),o=e.onCancellationRequested(()=>{clearTimeout(n),o.dispose(),i(new Nc)})}):mn(t=>eh(s,t))}function th(s,e=0,t){const i=setTimeout(()=>{s(),t&&n.dispose()},e),n=Le(()=>{clearTimeout(i),t?.deleteAndLeak(n)});return t?.add(n),n}function bP(s,e=i=>!!i,t=null){let i=0;const n=s.length,o=()=>{if(i>=n)return Promise.resolve(t);const r=s[i++];return Promise.resolve(r()).then(l=>e(l)?Promise.resolve(l):o())};return o()}class aa{constructor(e,t){this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class vP{constructor(){this.disposable=void 0}cancel(){var e;(e=this.disposable)===null||e===void 0||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){this.cancel();const n=i.setInterval(()=>{e()},t);this.disposable=Le(()=>{i.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel()}}class Ht{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}}let qH,ev;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?ev=(s,e)=>{hH(()=>{if(t)return;const i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,i-Date.now())}}))});let t=!1;return{dispose(){t||(t=!0)}}}:ev=(s,e,t)=>{const i=s.requestIdleCallback(e,typeof t=="number"?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,s.cancelIdleCallback(i))}}},qH=s=>ev(globalThis,s)})();class KH{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=ev(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class dQ extends KH{constructor(e){super(globalThis,e)}}class ZC{get isRejected(){var e;return((e=this.outcome)===null||e===void 0?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new Nc)}}var sN;(function(s){async function e(i){let n;const o=await Promise.all(i.map(r=>r.then(a=>a,a=>{n||(n=a)})));if(typeof n<"u")throw n;return o}s.settled=e;function t(i){return new Promise(async(n,o)=>{try{await i(n,o)}catch(r){o(r)}})}s.withAsyncBody=t})(sN||(sN={}));class qi{static fromArray(e){return new qi(t=>{t.emitMany(e)})}static fromPromise(e){return new qi(async t=>{t.emitMany(await e)})}static fromPromises(e){return new qi(async t=>{await Promise.all(e.map(async i=>t.emitOne(await i)))})}static merge(e){return new qi(async t=>{await Promise.all(e.map(async i=>{for await(const n of i)t.emitOne(n)}))})}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new O,queueMicrotask(async()=>{const t={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await re.toPromise(this._onStateChanged.event)}while(!0)}}}static map(e,t){return new qi(async i=>{for await(const n of e)i.emitOne(t(n))})}map(e){return qi.map(this,e)}static filter(e,t){return new qi(async i=>{for await(const n of e)t(n)&&i.emitOne(n)})}filter(e){return qi.filter(this,e)}static coalesce(e){return qi.filter(e,t=>!!t)}coalesce(){return qi.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return qi.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}qi.EMPTY=qi.fromArray([]);class cQ extends qi{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function uQ(s){const e=new Ei,t=s(e.token);return new cQ(e,async i=>{const n=e.token.onCancellationRequested(()=>{n.dispose(),e.dispose(),i.reject(new Nc)});try{for await(const o of t){if(e.token.isCancellationRequested)return;i.emitOne(o)}n.dispose(),e.dispose()}catch(o){n.dispose(),e.dispose(),i.reject(o)}})}/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries:GH,setPrototypeOf:s5,isFrozen:hQ,getPrototypeOf:gQ,getOwnPropertyDescriptor:fQ}=Object;let{freeze:Lo,seal:qa,create:pQ}=Object,{apply:oN,construct:rN}=typeof Reflect<"u"&&Reflect;oN||(oN=function(e,t,i){return e.apply(t,i)});Lo||(Lo=function(e){return e});qa||(qa=function(e){return e});rN||(rN=function(e,t){return new e(...t)});const mQ=oa(Array.prototype.forEach),o5=oa(Array.prototype.pop),j_=oa(Array.prototype.push),_S=oa(String.prototype.toLowerCase),XD=oa(String.prototype.toString),_Q=oa(String.prototype.match),ga=oa(String.prototype.replace),bQ=oa(String.prototype.indexOf),vQ=oa(String.prototype.trim),dr=oa(RegExp.prototype.test),q_=CQ(TypeError);function oa(s){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return oN(s,e,i)}}function CQ(s){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return rN(s,t)}}function Ft(s,e,t){var i;t=(i=t)!==null&&i!==void 0?i:_S,s5&&s5(s,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const r=t(o);r!==o&&(hQ(e)||(e[n]=r),o=r)}s[o]=!0}return s}function Uf(s){const e=pQ(null);for(const[t,i]of GH(s))e[t]=i;return e}function jw(s,e){for(;s!==null;){const i=fQ(s,e);if(i){if(i.get)return oa(i.get);if(typeof i.value=="function")return oa(i.value)}s=gQ(s)}function t(i){return console.warn("fallback value for",i),null}return t}const r5=Lo(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),QD=Lo(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),JD=Lo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wQ=Lo(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),eE=Lo(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),SQ=Lo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),a5=Lo(["#text"]),l5=Lo(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),tE=Lo(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),d5=Lo(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qw=Lo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yQ=qa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xQ=qa(/<%[\w\W]*|[\w\W]*%>/gm),kQ=qa(/\${[\w\W]*}/gm),LQ=qa(/^data-[\-\w.\u00B7-\uFFFF]/),DQ=qa(/^aria-[\-\w]+$/),ZH=qa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),EQ=qa(/^(?:\w+script|data):/i),IQ=qa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),YH=qa(/^html$/i);var c5=Object.freeze({__proto__:null,MUSTACHE_EXPR:yQ,ERB_EXPR:xQ,TMPLIT_EXPR:kQ,DATA_ATTR:LQ,ARIA_ATTR:DQ,IS_ALLOWED_URI:ZH,IS_SCRIPT_OR_DATA:EQ,ATTR_WHITESPACE:IQ,DOCTYPE_NAME:YH});const TQ=()=>typeof window>"u"?null:window,NQ=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function XH(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TQ();const e=lt=>XH(lt);if(e.version="3.0.5",e.removed=[],!s||!s.document||s.document.nodeType!==9)return e.isSupported=!1,e;const t=s.document,i=t.currentScript;let{document:n}=s;const{DocumentFragment:o,HTMLTemplateElement:r,Node:a,Element:l,NodeFilter:d,NamedNodeMap:c=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:u,DOMParser:h,trustedTypes:g}=s,f=l.prototype,m=jw(f,"cloneNode"),_=jw(f,"nextSibling"),b=jw(f,"childNodes"),v=jw(f,"parentNode");if(typeof r=="function"){const lt=n.createElement("template");lt.content&&lt.content.ownerDocument&&(n=lt.content.ownerDocument)}let C,w="";const{implementation:S,createNodeIterator:x,createDocumentFragment:L,getElementsByTagName:E}=n,{importNode:N}=t;let V={};e.isSupported=typeof GH=="function"&&typeof v=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:M,TMPLIT_EXPR:B,DATA_ATTR:j,ARIA_ATTR:J,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:Se}=c5;let{IS_ALLOWED_URI:Re}=c5,_e=null;const ze=Ft({},[...r5,...QD,...JD,...eE,...a5]);let qe=null;const Ie=Ft({},[...l5,...tE,...d5,...qw]);let me=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Hi=null,ws=null,tn=!0,Tt=!0,dn=!1,Ss=!0,kn=!1,Xe=!1,Or=!1,Fr=!1,Ro=!1,_d=!1,bn=!1,ua=!0,Ow=!1;const VD="user-content-";let ne=!0,Z=!1,q={},A=null;const R=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $=null;const H=Ft({},["audio","video","img","source","image","track"]);let ie=null;const pe=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",Fe="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let et=ot,Xt=!1,zt=null;const Ue=Ft({},[Ne,Fe,ot],XD);let Ii;const Ti=["application/xhtml+xml","text/html"],Br="text/html";let At,nn=null;const Vh=n.createElement("form"),$h=function(G){return G instanceof RegExp||G instanceof Function},ha=function(G){if(!(nn&&nn===G)){if((!G||typeof G!="object")&&(G={}),G=Uf(G),Ii=Ti.indexOf(G.PARSER_MEDIA_TYPE)===-1?Ii=Br:Ii=G.PARSER_MEDIA_TYPE,At=Ii==="application/xhtml+xml"?XD:_S,_e="ALLOWED_TAGS"in G?Ft({},G.ALLOWED_TAGS,At):ze,qe="ALLOWED_ATTR"in G?Ft({},G.ALLOWED_ATTR,At):Ie,zt="ALLOWED_NAMESPACES"in G?Ft({},G.ALLOWED_NAMESPACES,XD):Ue,ie="ADD_URI_SAFE_ATTR"in G?Ft(Uf(pe),G.ADD_URI_SAFE_ATTR,At):pe,$="ADD_DATA_URI_TAGS"in G?Ft(Uf(H),G.ADD_DATA_URI_TAGS,At):H,A="FORBID_CONTENTS"in G?Ft({},G.FORBID_CONTENTS,At):R,Hi="FORBID_TAGS"in G?Ft({},G.FORBID_TAGS,At):{},ws="FORBID_ATTR"in G?Ft({},G.FORBID_ATTR,At):{},q="USE_PROFILES"in G?G.USE_PROFILES:!1,tn=G.ALLOW_ARIA_ATTR!==!1,Tt=G.ALLOW_DATA_ATTR!==!1,dn=G.ALLOW_UNKNOWN_PROTOCOLS||!1,Ss=G.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kn=G.SAFE_FOR_TEMPLATES||!1,Xe=G.WHOLE_DOCUMENT||!1,Ro=G.RETURN_DOM||!1,_d=G.RETURN_DOM_FRAGMENT||!1,bn=G.RETURN_TRUSTED_TYPE||!1,Fr=G.FORCE_BODY||!1,ua=G.SANITIZE_DOM!==!1,Ow=G.SANITIZE_NAMED_PROPS||!1,ne=G.KEEP_CONTENT!==!1,Z=G.IN_PLACE||!1,Re=G.ALLOWED_URI_REGEXP||ZH,et=G.NAMESPACE||ot,me=G.CUSTOM_ELEMENT_HANDLING||{},G.CUSTOM_ELEMENT_HANDLING&&$h(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=G.CUSTOM_ELEMENT_HANDLING.tagNameCheck),G.CUSTOM_ELEMENT_HANDLING&&$h(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),G.CUSTOM_ELEMENT_HANDLING&&typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kn&&(Tt=!1),_d&&(Ro=!0),q&&(_e=Ft({},[...a5]),qe=[],q.html===!0&&(Ft(_e,r5),Ft(qe,l5)),q.svg===!0&&(Ft(_e,QD),Ft(qe,tE),Ft(qe,qw)),q.svgFilters===!0&&(Ft(_e,JD),Ft(qe,tE),Ft(qe,qw)),q.mathMl===!0&&(Ft(_e,eE),Ft(qe,d5),Ft(qe,qw))),G.ADD_TAGS&&(_e===ze&&(_e=Uf(_e)),Ft(_e,G.ADD_TAGS,At)),G.ADD_ATTR&&(qe===Ie&&(qe=Uf(qe)),Ft(qe,G.ADD_ATTR,At)),G.ADD_URI_SAFE_ATTR&&Ft(ie,G.ADD_URI_SAFE_ATTR,At),G.FORBID_CONTENTS&&(A===R&&(A=Uf(A)),Ft(A,G.FORBID_CONTENTS,At)),ne&&(_e["#text"]=!0),Xe&&Ft(_e,["html","head","body"]),_e.table&&(Ft(_e,["tbody"]),delete Hi.tbody),G.TRUSTED_TYPES_POLICY){if(typeof G.TRUSTED_TYPES_POLICY.createHTML!="function")throw q_('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof G.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q_('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=G.TRUSTED_TYPES_POLICY,w=C.createHTML("")}else C===void 0&&(C=NQ(g,i)),C!==null&&typeof w=="string"&&(w=C.createHTML(""));Lo&&Lo(G),nn=G}},Hc=Ft({},["mi","mo","mn","ms","mtext"]),zh=Ft({},["foreignobject","desc","title","annotation-xml"]),Uh=Ft({},["title","style","font","a","script"]),$f=Ft({},QD);Ft($f,JD),Ft($f,wQ);const jh=Ft({},eE);Ft(jh,SQ);const $D=function(G){let xe=v(G);(!xe||!xe.tagName)&&(xe={namespaceURI:et,tagName:"template"});const $e=_S(G.tagName),Ni=_S(xe.tagName);return zt[G.namespaceURI]?G.namespaceURI===Fe?xe.namespaceURI===ot?$e==="svg":xe.namespaceURI===Ne?$e==="svg"&&(Ni==="annotation-xml"||Hc[Ni]):!!$f[$e]:G.namespaceURI===Ne?xe.namespaceURI===ot?$e==="math":xe.namespaceURI===Fe?$e==="math"&&zh[Ni]:!!jh[$e]:G.namespaceURI===ot?xe.namespaceURI===Fe&&!zh[Ni]||xe.namespaceURI===Ne&&!Hc[Ni]?!1:!jh[$e]&&(Uh[$e]||!$f[$e]):!!(Ii==="application/xhtml+xml"&&zt[G.namespaceURI]):!1},ll=function(G){j_(e.removed,{element:G});try{G.parentNode.removeChild(G)}catch{G.remove()}},z_=function(G,xe){try{j_(e.removed,{attribute:xe.getAttributeNode(G),from:xe})}catch{j_(e.removed,{attribute:null,from:xe})}if(xe.removeAttribute(G),G==="is"&&!qe[G])if(Ro||_d)try{ll(xe)}catch{}else try{xe.setAttribute(G,"")}catch{}},U_=function(G){let xe,$e;if(Fr)G="<remove></remove>"+G;else{const Wr=_Q(G,/^[\r\n\t ]+/);$e=Wr&&Wr[0]}Ii==="application/xhtml+xml"&&et===ot&&(G='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+G+"</body></html>");const Ni=C?C.createHTML(G):G;if(et===ot)try{xe=new h().parseFromString(Ni,Ii)}catch{}if(!xe||!xe.documentElement){xe=S.createDocument(et,"template",null);try{xe.documentElement.innerHTML=Xt?w:Ni}catch{}}const as=xe.body||xe.documentElement;return G&&$e&&as.insertBefore(n.createTextNode($e),as.childNodes[0]||null),et===ot?E.call(xe,Xe?"html":"body")[0]:Xe?xe.documentElement:as},Fw=function(G){return x.call(G.ownerDocument||G,G,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},SZ=function(G){return G instanceof u&&(typeof G.nodeName!="string"||typeof G.textContent!="string"||typeof G.removeChild!="function"||!(G.attributes instanceof c)||typeof G.removeAttribute!="function"||typeof G.setAttribute!="function"||typeof G.namespaceURI!="string"||typeof G.insertBefore!="function"||typeof G.hasChildNodes!="function")},Bw=function(G){return typeof a=="object"?G instanceof a:G&&typeof G=="object"&&typeof G.nodeType=="number"&&typeof G.nodeName=="string"},bd=function(G,xe,$e){V[G]&&mQ(V[G],Ni=>{Ni.call(e,xe,$e,nn)})},P4=function(G){let xe;if(bd("beforeSanitizeElements",G,null),SZ(G))return ll(G),!0;const $e=At(G.nodeName);if(bd("uponSanitizeElement",G,{tagName:$e,allowedTags:_e}),G.hasChildNodes()&&!Bw(G.firstElementChild)&&(!Bw(G.content)||!Bw(G.content.firstElementChild))&&dr(/<[/\w]/g,G.innerHTML)&&dr(/<[/\w]/g,G.textContent))return ll(G),!0;if(!_e[$e]||Hi[$e]){if(!Hi[$e]&&F4($e)&&(me.tagNameCheck instanceof RegExp&&dr(me.tagNameCheck,$e)||me.tagNameCheck instanceof Function&&me.tagNameCheck($e)))return!1;if(ne&&!A[$e]){const Ni=v(G)||G.parentNode,as=b(G)||G.childNodes;if(as&&Ni){const Wr=as.length;for(let cn=Wr-1;cn>=0;--cn)Ni.insertBefore(m(as[cn],!0),_(G))}}return ll(G),!0}return G instanceof l&&!$D(G)||($e==="noscript"||$e==="noembed"||$e==="noframes")&&dr(/<\/no(script|embed|frames)/i,G.innerHTML)?(ll(G),!0):(kn&&G.nodeType===3&&(xe=G.textContent,xe=ga(xe,P," "),xe=ga(xe,M," "),xe=ga(xe,B," "),G.textContent!==xe&&(j_(e.removed,{element:G.cloneNode()}),G.textContent=xe)),bd("afterSanitizeElements",G,null),!1)},O4=function(G,xe,$e){if(ua&&(xe==="id"||xe==="name")&&($e in n||$e in Vh))return!1;if(!(Tt&&!ws[xe]&&dr(j,xe))){if(!(tn&&dr(J,xe))){if(!qe[xe]||ws[xe]){if(!(F4(G)&&(me.tagNameCheck instanceof RegExp&&dr(me.tagNameCheck,G)||me.tagNameCheck instanceof Function&&me.tagNameCheck(G))&&(me.attributeNameCheck instanceof RegExp&&dr(me.attributeNameCheck,xe)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(xe))||xe==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&&dr(me.tagNameCheck,$e)||me.tagNameCheck instanceof Function&&me.tagNameCheck($e))))return!1}else if(!ie[xe]){if(!dr(Re,ga($e,Se,""))){if(!((xe==="src"||xe==="xlink:href"||xe==="href")&&G!=="script"&&bQ($e,"data:")===0&&$[G])){if(!(dn&&!dr(be,ga($e,Se,"")))){if($e)return!1}}}}}}return!0},F4=function(G){return G.indexOf("-")>0},B4=function(G){let xe,$e,Ni,as;bd("beforeSanitizeAttributes",G,null);const{attributes:Wr}=G;if(!Wr)return;const cn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe};for(as=Wr.length;as--;){xe=Wr[as];const{name:dl,namespaceURI:zD}=xe;if($e=dl==="value"?xe.value:vQ(xe.value),Ni=At(dl),cn.attrName=Ni,cn.attrValue=$e,cn.keepAttr=!0,cn.forceKeepAttr=void 0,bd("uponSanitizeAttribute",G,cn),$e=cn.attrValue,cn.forceKeepAttr||(z_(dl,G),!cn.keepAttr))continue;if(!Ss&&dr(/\/>/i,$e)){z_(dl,G);continue}kn&&($e=ga($e,P," "),$e=ga($e,M," "),$e=ga($e,B," "));const W4=At(G.nodeName);if(O4(W4,Ni,$e)){if(Ow&&(Ni==="id"||Ni==="name")&&(z_(dl,G),$e=VD+$e),C&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!zD)switch(g.getAttributeType(W4,Ni)){case"TrustedHTML":{$e=C.createHTML($e);break}case"TrustedScriptURL":{$e=C.createScriptURL($e);break}}try{zD?G.setAttributeNS(zD,dl,$e):G.setAttribute(dl,$e),o5(e.removed)}catch{}}}bd("afterSanitizeAttributes",G,null)},yZ=function lt(G){let xe;const $e=Fw(G);for(bd("beforeSanitizeShadowDOM",G,null);xe=$e.nextNode();)bd("uponSanitizeShadowNode",xe,null),!P4(xe)&&(xe.content instanceof o&&lt(xe.content),B4(xe));bd("afterSanitizeShadowDOM",G,null)};return e.sanitize=function(lt){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe,$e,Ni,as;if(Xt=!lt,Xt&&(lt="<!-->"),typeof lt!="string"&&!Bw(lt))if(typeof lt.toString=="function"){if(lt=lt.toString(),typeof lt!="string")throw q_("dirty is not a string, aborting")}else throw q_("toString is not a function");if(!e.isSupported)return lt;if(Or||ha(G),e.removed=[],typeof lt=="string"&&(Z=!1),Z){if(lt.nodeName){const dl=At(lt.nodeName);if(!_e[dl]||Hi[dl])throw q_("root node is forbidden and cannot be sanitized in-place")}}else if(lt instanceof a)xe=U_("<!---->"),$e=xe.ownerDocument.importNode(lt,!0),$e.nodeType===1&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?xe=$e:xe.appendChild($e);else{if(!Ro&&!kn&&!Xe&&lt.indexOf("<")===-1)return C&&bn?C.createHTML(lt):lt;if(xe=U_(lt),!xe)return Ro?null:bn?w:""}xe&&Fr&&ll(xe.firstChild);const Wr=Fw(Z?lt:xe);for(;Ni=Wr.nextNode();)P4(Ni)||(Ni.content instanceof o&&yZ(Ni.content),B4(Ni));if(Z)return lt;if(Ro){if(_d)for(as=L.call(xe.ownerDocument);xe.firstChild;)as.appendChild(xe.firstChild);else as=xe;return(qe.shadowroot||qe.shadowrootmode)&&(as=N.call(t,as,!0)),as}let cn=Xe?xe.outerHTML:xe.innerHTML;return Xe&&_e["!doctype"]&&xe.ownerDocument&&xe.ownerDocument.doctype&&xe.ownerDocument.doctype.name&&dr(YH,xe.ownerDocument.doctype.name)&&(cn="<!DOCTYPE "+xe.ownerDocument.doctype.name+`>
11
- `+cn),kn&&(cn=ga(cn,P," "),cn=ga(cn,M," "),cn=ga(cn,B," ")),C&&bn?C.createHTML(cn):cn},e.setConfig=function(lt){ha(lt),Or=!0},e.clearConfig=function(){nn=null,Or=!1},e.isValidAttribute=function(lt,G,xe){nn||ha({});const $e=At(lt),Ni=At(G);return O4($e,Ni,xe)},e.addHook=function(lt,G){typeof G=="function"&&(V[lt]=V[lt]||[],j_(V[lt],G))},e.removeHook=function(lt){if(V[lt])return o5(V[lt])},e.removeHooks=function(lt){V[lt]&&(V[lt]=[])},e.removeAllHooks=function(){V={}},e}var gd=XH();gd.version;gd.isSupported;const QH=gd.sanitize;gd.setConfig;gd.clearConfig;gd.isValidAttribute;const aN=gd.addHook,JH=gd.removeHook;gd.removeHooks;gd.removeAllHooks;var Ze;(function(s){s.inMemory="inmemory",s.vscode="vscode",s.internal="private",s.walkThrough="walkThrough",s.walkThroughSnippet="walkThroughSnippet",s.http="http",s.https="https",s.file="file",s.mailto="mailto",s.untitled="untitled",s.data="data",s.command="command",s.vscodeRemote="vscode-remote",s.vscodeRemoteResource="vscode-remote-resource",s.vscodeManagedRemoteResource="vscode-managed-remote-resource",s.vscodeUserData="vscode-userdata",s.vscodeCustomEditor="vscode-custom-editor",s.vscodeNotebookCell="vscode-notebook-cell",s.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",s.vscodeNotebookCellOutput="vscode-notebook-cell-output",s.vscodeInteractiveInput="vscode-interactive-input",s.vscodeSettings="vscode-settings",s.vscodeWorkspaceTrust="vscode-workspace-trust",s.vscodeTerminal="vscode-terminal",s.vscodeChatCodeBlock="vscode-chat-code-block",s.vscodeChatSesssion="vscode-chat-editor",s.webviewPanel="webview-panel",s.vscodeWebview="vscode-webview",s.extension="extension",s.vscodeFileResource="vscode-file",s.tmp="tmp",s.vsls="vsls",s.vscodeSourceControl="vscode-scm",s.codeSetting="code-setting"})(Ze||(Ze={}));function CP(s,e){return Ae.isUri(s)?Cp(s.scheme,e):uP(s,e+":")}function u5(s,...e){return e.some(t=>CP(s,t))}const AQ="tkn";class RQ{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return Ki.join(this._serverRootPath,Ze.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return je(a),e}const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const n=this._ports[t],o=this._connectionTokens[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof o=="string"&&(r+=`&${AQ}=${encodeURIComponent(o)}`),Ae.from({scheme:xh?this._preferredWebSchema:Ze.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}}const eV=new RQ,MQ="vscode-app";class Zv{uriToBrowserUri(e){return e.scheme===Ze.vscodeRemote?eV.rewrite(e):e.scheme===Ze.file&&(Fa||UZ===`${Ze.vscodeFileResource}://${Zv.FALLBACK_AUTHORITY}`)?e.with({scheme:Ze.vscodeFileResource,authority:e.authority||Zv.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}Zv.FALLBACK_AUTHORITY=MQ;const tV=new Zv;var h5;(function(s){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);s.CoopAndCoep=Object.freeze(e.get("3"));const t="vscode-coi";function i(o){let r;typeof o=="string"?r=new URL(o).searchParams:o instanceof URL?r=o.searchParams:Ae.isUri(o)&&(r=new URL(o.toString(!0)).searchParams);const a=r?.get(t);if(a)return e.get(a)}s.getHeadersFromQuery=i;function n(o,r,a){if(!globalThis.crossOriginIsolated)return;const l=r&&a?"3":a?"2":"1";o instanceof URLSearchParams?o.set(t,l):o[t]=l}s.addSearchParam=n})(h5||(h5={}));function Lk(s){return Dk(s,0)}function Dk(s,e){switch(typeof s){case"object":return s===null?qd(349,e):Array.isArray(s)?OQ(s,e):FQ(s,e);case"string":return wP(s,e);case"boolean":return PQ(s,e);case"number":return qd(s,e);case"undefined":return qd(937,e);default:return qd(617,e)}}function qd(s,e){return(e<<5)-e+s|0}function PQ(s,e){return qd(s?433:863,e)}function wP(s,e){e=qd(149417,e);for(let t=0,i=s.length;t<i;t++)e=qd(s.charCodeAt(t),e);return e}function OQ(s,e){return e=qd(104579,e),s.reduce((t,i)=>Dk(i,t),e)}function FQ(s,e){return e=qd(181387,e),Object.keys(s).sort().reduce((t,i)=>(t=wP(i,t),Dk(s[i],t)),e)}function iE(s,e,t=32){const i=t-e,n=~((1<<i)-1);return(s<<e|(n&s)>>>i)>>>0}function g5(s,e=0,t=s.byteLength,i=0){for(let n=0;n<t;n++)s[e+n]=i}function BQ(s,e,t="0"){for(;s.length<e;)s=t+s;return s}function K_(s,e=32){return s instanceof ArrayBuffer?Array.from(new Uint8Array(s)).map(t=>t.toString(16).padStart(2,"0")).join(""):BQ((s>>>0).toString(16),e/4)}class Ek{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const i=this._buff;let n=this._buffLen,o=this._leftoverHighSurrogate,r,a;for(o!==0?(r=o,a=-1,o=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(hn(r))if(a+1<t){const d=e.charCodeAt(a+1);qg(d)?(a++,l=hP(r,d)):l=65533}else{o=r;break}else qg(r)&&(l=65533);if(n=this._push(i,n,l),a++,a<t)r=e.charCodeAt(a);else break}this._buffLen=n,this._leftoverHighSurrogate=o}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(i&1984)>>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),K_(this._h0)+K_(this._h1)+K_(this._h2)+K_(this._h3)+K_(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,g5(this._buff,this._buffLen),this._buffLen>56&&(this._step(),g5(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ek._bigBlock32,t=this._buffDV;for(let u=0;u<64;u+=4)e.setUint32(u,t.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,iE(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let i=this._h0,n=this._h1,o=this._h2,r=this._h3,a=this._h4,l,d,c;for(let u=0;u<80;u++)u<20?(l=n&o|~n&r,d=1518500249):u<40?(l=n^o^r,d=1859775393):u<60?(l=n&o|n&r|o&r,d=2400959708):(l=n^o^r,d=3395469782),c=iE(i,5)+l+a+d+e.getUint32(u*4,!1)&4294967295,a=r,r=o,o=iE(n,30),n=i,i=c;this._h0=this._h0+i&4294967295,this._h1=this._h1+n&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}}Ek._bigBlock32=new DataView(new ArrayBuffer(320));const{registerWindow:RMe,getWindow:Te,getDocument:MMe,getWindows:iV,getWindowsCount:WQ,getWindowId:py,getWindowById:f5,hasWindow:PMe,onDidRegisterWindow:Ik,onWillUnregisterWindow:HQ,onDidUnregisterWindow:VQ}=function(){const s=new Map;TX(Bt,1);const e={window:Bt,disposables:new Y};s.set(Bt.vscodeWindowId,e);const t=new O,i=new O,n=new O;function o(r,a){const l=typeof r=="number"?s.get(r):void 0;return l??(a?e:void 0)}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:i.event,registerWindow(r){if(s.has(r.vscodeWindowId))return W.None;const a=new Y,l={window:r,disposables:a.add(new Y)};return s.set(r.vscodeWindowId,l),a.add(Le(()=>{s.delete(r.vscodeWindowId),i.fire(r)})),a.add(U(r,se.BEFORE_UNLOAD,()=>{n.fire(r)})),t.fire(l),a},getWindows(){return s.values()},getWindowsCount(){return s.size},getWindowId(r){return r.vscodeWindowId},hasWindow(r){return s.has(r)},getWindowById:o,getWindow(r){var a;const l=r;if(!((a=l?.ownerDocument)===null||a===void 0)&&a.defaultView)return l.ownerDocument.defaultView.window;const d=r;return d?.view?d.view.window:Bt},getDocument(r){return Te(r).document}}}();function ss(s){for(;s.firstChild;)s.firstChild.remove()}class $Q{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function U(s,e,t,i){return new $Q(s,e,t,i)}function nV(s,e){return function(t){return e(new Yr(s,t))}}function zQ(s){return function(e){return s(new ti(e))}}const Di=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"?o=nV(Te(e),i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=zQ(i)),U(e,t,o,n)},UQ=function(e,t,i){const n=nV(Te(e),t);return jQ(e,n,i)};function jQ(s,e,t){return U(s,ja&&_P.pointerEvents?se.POINTER_DOWN:se.MOUSE_DOWN,e,t)}function kb(s,e,t){return ev(s,e,t)}class nE extends KH{constructor(e,t){super(e,t)}}let my,Do;class SP extends vP{constructor(e){super(),this.defaultTarget=e&&Te(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class sE{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){je(e)}}static sort(e,t){return t.priority-e.priority}}(function(){const s=new Map,e=new Map,t=new Map,i=new Map,n=o=>{var r;t.set(o,!1);const a=(r=s.get(o))!==null&&r!==void 0?r:[];for(e.set(o,a),s.set(o,[]),i.set(o,!0);a.length>0;)a.sort(sE.sort),a.shift().execute();i.set(o,!1)};Do=(o,r,a=0)=>{const l=py(o),d=new sE(r,a);let c=s.get(l);return c||(c=[],s.set(l,c)),c.push(d),t.get(l)||(t.set(l,!0),o.requestAnimationFrame(()=>n(l))),d},my=(o,r,a)=>{const l=py(o);if(i.get(l)){const d=new sE(r,a);let c=e.get(l);return c||(c=[],e.set(l,c)),c.push(d),d}else return Do(o,r,a)}})();function Tk(s){return Te(s).getComputedStyle(s,null)}function ih(s,e){const t=Te(s),i=t.document;if(s!==i.body)return new kt(s.clientWidth,s.clientHeight);if(ja&&t?.visualViewport)return new kt(t.visualViewport.width,t.visualViewport.height);if(t?.innerWidth&&t.innerHeight)return new kt(t.innerWidth,t.innerHeight);if(i.body&&i.body.clientWidth&&i.body.clientHeight)return new kt(i.body.clientWidth,i.body.clientHeight);if(i.documentElement&&i.documentElement.clientWidth&&i.documentElement.clientHeight)return new kt(i.documentElement.clientWidth,i.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Ri{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=Tk(e),o=n?n.getPropertyValue(t):"0";return Ri.convertToPixels(e,o)}static getBorderLeftWidth(e){return Ri.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Ri.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Ri.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Ri.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Ri.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Ri.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Ri.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Ri.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Ri.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Ri.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Ri.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Ri.getDimension(e,"margin-bottom","marginBottom")}}class kt{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new kt(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof kt?e:new kt(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}kt.None=new kt(0,0);function sV(s){let e=s.offsetParent,t=s.offsetTop,i=s.offsetLeft;for(;(s=s.parentNode)!==null&&s!==s.ownerDocument.body&&s!==s.ownerDocument.documentElement;){t-=s.scrollTop;const n=rV(s)?null:Tk(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=Ri.getBorderLeftWidth(s),t+=Ri.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function qQ(s,e,t){typeof e=="number"&&(s.style.width=`${e}px`),typeof t=="number"&&(s.style.height=`${t}px`)}function zi(s){const e=s.getBoundingClientRect(),t=Te(s);return{left:e.left+t.scrollX,top:e.top+t.scrollY,width:e.width,height:e.height}}function oV(s){let e=s,t=1;do{const i=Tk(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function ks(s){const e=Ri.getMarginLeft(s)+Ri.getMarginRight(s);return s.offsetWidth+e}function oE(s){const e=Ri.getBorderLeftWidth(s)+Ri.getBorderRightWidth(s),t=Ri.getPaddingLeft(s)+Ri.getPaddingRight(s);return s.offsetWidth-e-t}function KQ(s){const e=Ri.getBorderTopWidth(s)+Ri.getBorderBottomWidth(s),t=Ri.getPaddingTop(s)+Ri.getPaddingBottom(s);return s.offsetHeight-e-t}function Kd(s){const e=Ri.getMarginTop(s)+Ri.getMarginBottom(s);return s.offsetHeight+e}function yn(s,e){return!!e?.contains(s)}function GQ(s,e,t){for(;s&&s.nodeType===s.ELEMENT_NODE;){if(s.classList.contains(e))return s;if(t){if(typeof t=="string"){if(s.classList.contains(t))return null}else if(s===t)return null}s=s.parentNode}return null}function rE(s,e,t){return!!GQ(s,e,t)}function rV(s){return s&&!!s.host&&!!s.mode}function _y(s){return!!Zg(s)}function Zg(s){for(var e;s.parentNode;){if(s===((e=s.ownerDocument)===null||e===void 0?void 0:e.body))return null;s=s.parentNode}return rV(s)?s:null}function Kn(){let s=C_().activeElement;for(;s?.shadowRoot;)s=s.shadowRoot.activeElement;return s}function Nk(s){return Kn()===s}function aV(s){return yn(Kn(),s)}function C_(){var s;return WQ()<=1?Bt.document:(s=Array.from(iV()).map(({window:t})=>t.document).find(t=>t.hasFocus()))!==null&&s!==void 0?s:Bt.document}function ZQ(){var s,e;return(e=(s=C_().defaultView)===null||s===void 0?void 0:s.window)!==null&&e!==void 0?e:Bt}const yP=new Map;function lV(){return new YQ}class YQ{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=Qo(Bt.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function Qo(s=Bt.document.head,e,t){const i=document.createElement("style");if(i.type="text/css",i.media="screen",e?.(i),s.appendChild(i),t&&t.add(Le(()=>s.removeChild(i))),s===Bt.document.head){const n=new Set;yP.set(i,n);for(const{window:o,disposables:r}of iV()){if(o===Bt)continue;const a=r.add(XQ(i,n,o));t?.add(a)}}return i}function XQ(s,e,t){var i,n;const o=new Y,r=s.cloneNode(!0);t.document.head.appendChild(r),o.add(Le(()=>t.document.head.removeChild(r)));for(const a of cV(s))(i=r.sheet)===null||i===void 0||i.insertRule(a.cssText,(n=r.sheet)===null||n===void 0?void 0:n.cssRules.length);return o.add(QQ.observe(s,o,{childList:!0})(()=>{r.textContent=s.textContent})),e.add(r),o.add(Le(()=>e.delete(r))),o}const QQ=new class{constructor(){this.mutationObservers=new Map}observe(s,e,t){let i=this.mutationObservers.get(s);i||(i=new Map,this.mutationObservers.set(s,i));const n=Lk(t);let o=i.get(n);if(o)o.users+=1;else{const r=new O,a=new MutationObserver(d=>r.fire(d));a.observe(s,t);const l=o={users:1,observer:a,onDidMutate:r.event};e.add(Le(()=>{l.users-=1,l.users===0&&(r.dispose(),a.disconnect(),i?.delete(n),i?.size===0&&this.mutationObservers.delete(s))})),i.set(n,o)}return o.onDidMutate}};let aE=null;function dV(){return aE||(aE=Qo()),aE}function cV(s){var e,t;return!((e=s?.sheet)===null||e===void 0)&&e.rules?s.sheet.rules:!((t=s?.sheet)===null||t===void 0)&&t.cssRules?s.sheet.cssRules:[]}function by(s,e,t=dV()){var i,n;if(!(!t||!e)){(i=t.sheet)===null||i===void 0||i.insertRule(`${s} {${e}}`,0);for(const o of(n=yP.get(t))!==null&&n!==void 0?n:[])by(s,e,o)}}function lN(s,e=dV()){var t,i;if(!e)return;const n=cV(e),o=[];for(let r=0;r<n.length;r++){const a=n[r];JQ(a)&&a.selectorText.indexOf(s)!==-1&&o.push(r)}for(let r=o.length-1;r>=0;r--)(t=e.sheet)===null||t===void 0||t.deleteRule(o[r]);for(const r of(i=yP.get(e))!==null&&i!==void 0?i:[])lN(s,r)}function JQ(s){return typeof s.selectorText=="string"}function xP(s){return s instanceof MouseEvent||s instanceof Te(s).MouseEvent}function ru(s){return s instanceof KeyboardEvent||s instanceof Te(s).KeyboardEvent}const se={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:Tg?"webkitAnimationStart":"animationstart",ANIMATION_END:Tg?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Tg?"webkitAnimationIteration":"animationiteration"};function eJ(s){const e=s;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const nt={stop:(s,e)=>(s.preventDefault(),e&&s.stopPropagation(),s)};function tJ(s){const e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function iJ(s,e){for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)s.scrollTop!==e[t]&&(s.scrollTop=e[t]),s=s.parentNode}class vy extends W{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=Zg(e),i=t?t.activeElement:e.ownerDocument.activeElement;return yn(i,e)}else{const t=e;return yn(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new O),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new O),this.onDidBlur=this._onDidBlur.event;let t=vy.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(e instanceof HTMLElement?Te(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{vy.hasFocusWithin(e)!==t&&(t?o():n())},this._register(U(e,se.FOCUS,n,!0)),this._register(U(e,se.BLUR,o,!0)),e instanceof HTMLElement&&(this._register(U(e,se.FOCUS_IN,()=>this._refreshStateHandler())),this._register(U(e,se.FOCUS_OUT,()=>this._refreshStateHandler())))}}function Ka(s){return new vy(s)}function nJ(s,e){return s.after(e),e}function X(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function kP(s,e){return s.insertBefore(e,s.firstChild),e}function An(s,...e){s.innerText="",X(s,...e)}const sJ=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Yv;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(Yv||(Yv={}));function uV(s,e,t,...i){const n=sJ.exec(e);if(!n)throw new Error("Bad use of emmet");const o=n[1]||"div";let r;return s!==Yv.HTML?r=document.createElementNS(s,o):r=document.createElement(o),n[3]&&(r.id=n[3]),n[4]&&(r.className=n[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function ee(s,e,...t){return uV(Yv.HTML,s,e,...t)}ee.SVG=function(s,e,...t){return uV(Yv.SVG,s,e,...t)};function oJ(s,...e){s?Co(...e):Es(...e)}function Co(...s){for(const e of s)e.style.display="",e.removeAttribute("aria-hidden")}function Es(...s){for(const e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function p5(s,e){const t=s.devicePixelRatio*e;return Math.max(1,Math.floor(t))/s.devicePixelRatio}function hV(s){Bt.open(s,"_blank","noopener")}function rJ(s,e){const t=()=>{e(),i=Do(s,t)};let i=Do(s,t);return Le(()=>i.dispose())}eV.setPreferredWebSchema(/^https:/.test(Bt.location.href)?"https":"http");function nh(s){return s?`url('${tV.uriToBrowserUri(s).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function m5(s){return`'${s.replace(/'/g,"%27")}'`}function uc(s,e){if(s!==void 0){const t=s.match(/^\s*var\((.+)\)$/);if(t){const i=t[1].split(",",2);return i.length===2&&(e=uc(i[1].trim(),e)),`var(${i[0]}, ${e})`}return s}return e}function aJ(s,e=!1){const t=document.createElement("a");return aN("afterSanitizeAttributes",i=>{for(const n of["href","src"])if(i.hasAttribute(n)){const o=i.getAttribute(n);if(n==="href"&&o.startsWith("#"))continue;if(t.href=o,!s.includes(t.protocol.replace(/:$/,""))){if(e&&n==="src"&&t.href.startsWith("data:"))continue;i.removeAttribute(n)}}}),Le(()=>{JH("afterSanitizeAttributes")})}const lJ=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);class Gd extends O{constructor(){super(),this._subscriptions=new Y,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(re.runAndSubscribe(Ik,({window:e,disposables:t})=>this.registerListeners(e,t),{window:Bt,disposables:this._subscriptions}))}registerListeners(e,t){t.add(U(e,"keydown",i=>{if(i.defaultPrevented)return;const n=new ti(i);if(!(n.keyCode===6&&i.repeat)){if(i.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(i.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(i.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(i.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(n.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=i,this.fire(this._keyStatus))}},!0)),t.add(U(e,"keyup",i=>{i.defaultPrevented||(!i.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!i.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!i.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!i.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=i,this.fire(this._keyStatus)))},!0)),t.add(U(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mousemove",i=>{i.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(U(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Gd.instance||(Gd.instance=new Gd),Gd.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class dJ extends W{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(U(this.element,se.DRAG_START,e=>{var t,i;(i=(t=this.callbacks).onDragStart)===null||i===void 0||i.call(t,e)})),this.callbacks.onDrag&&this._register(U(this.element,se.DRAG,e=>{var t,i;(i=(t=this.callbacks).onDrag)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,se.DRAG_ENTER,e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,(i=(t=this.callbacks).onDragEnter)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,se.DRAG_OVER,e=>{var t,i;e.preventDefault(),(i=(t=this.callbacks).onDragOver)===null||i===void 0||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(U(this.element,se.DRAG_LEAVE,e=>{var t,i;this.counter--,this.counter===0&&(this.dragStartTime=0,(i=(t=this.callbacks).onDragLeave)===null||i===void 0||i.call(t,e))})),this._register(U(this.element,se.DRAG_END,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDragEnd)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,se.DROP,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDrop)===null||i===void 0||i.call(t,e)}))}}const cJ=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function It(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const n=cJ.exec(s);if(!n||!n.groups)throw new Error("Bad use of h");const o=n.groups.tag||"div",r=document.createElement(o);n.groups.id&&(r.id=n.groups.id);const a=[];if(n.groups.class)for(const d of n.groups.class.split("."))d!==""&&a.push(d);if(t.className!==void 0)for(const d of t.className.split("."))d!==""&&a.push(d);a.length>0&&(r.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(const d of i)d instanceof HTMLElement?r.appendChild(d):typeof d=="string"?r.append(d):"root"in d&&(Object.assign(l,d),r.appendChild(d.root));for(const[d,c]of Object.entries(t))if(d!=="className")if(d==="style")for(const[u,h]of Object.entries(c))r.style.setProperty(_5(u),typeof h=="number"?h+"px":""+h);else d==="tabIndex"?r.tabIndex=c:r.setAttribute(_5(d),c.toString());return l.root=r,l}function _5(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class uJ extends W{constructor(e){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;(i=this._mediaQueryList)===null||i===void 0||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class hJ extends W{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new uJ(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d"),i=e.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return i/n}}class gJ{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=py(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=new hJ(e),this.mapWindowIdToPixelRatioMonitor.set(t,i),re.once(VQ)(({vscodeWindowId:n})=>{n===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const Xv=new gJ;class gV{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=fa(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=fa(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=fa(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=fa(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=fa(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=fa(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=fa(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=fa(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=fa(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=fa(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=fa(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function fa(s){return typeof s=="number"?`${s}px`:s}function Et(s){return new gV(s)}function Rn(s,e){s instanceof gV?(s.setFontFamily(e.getMassagedFontFamily()),s.setFontWeight(e.fontWeight),s.setFontSize(e.fontSize),s.setFontFeatureSettings(e.fontFeatureSettings),s.setFontVariationSettings(e.fontVariationSettings),s.setLineHeight(e.lineHeight),s.setLetterSpacing(e.letterSpacing)):(s.style.fontFamily=e.getMassagedFontFamily(),s.style.fontWeight=e.fontWeight,s.style.fontSize=e.fontSize+"px",s.style.fontFeatureSettings=e.fontFeatureSettings,s.style.fontVariationSettings=e.fontVariationSettings,s.style.lineHeight=e.lineHeight+"px",s.style.letterSpacing=e.letterSpacing+"px")}class fJ{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class LP{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");Rn(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");Rn(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");Rn(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const o=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=n),a.appendChild(document.createElement("br"));const l=document.createElement("span");LP._render(l,r),a.appendChild(l),o.push(l)}this._container=e,this._testElements=o}static _render(e,t){if(t.chr===" "){let i=" ";for(let n=0;n<8;n++)i+=i;e.innerText=i}else{let i=t.chr;for(let n=0;n<8;n++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const i=this._requests[e],n=this._testElements[e];i.fulfill(n.offsetWidth/256)}}}function pJ(s,e,t){new LP(e,t).read(s)}const hr=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new O,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(s){s=Math.min(Math.max(-5,s),20),this._zoomLevel!==s&&(this._zoomLevel=s,this._onDidChangeZoomLevel.fire(this._zoomLevel))}},mJ=at?1.5:1.35,lE=8;class Ng{static createFromValidatedSettings(e,t,i){const n=e.get(49),o=e.get(53),r=e.get(52),a=e.get(51),l=e.get(54),d=e.get(67),c=e.get(64);return Ng._create(n,o,r,a,l,d,c,t,i)}static _create(e,t,i,n,o,r,a,l,d){r===0?r=mJ*i:r<lE&&(r=r*i),r=Math.round(r),r<lE&&(r=lE);const c=1+(d?0:hr.getZoomLevel()*.1);return i*=c,r*=c,o===Na.TRANSLATE&&(t==="normal"||t==="bold"?o=Na.OFF:(o=`'wght' ${parseInt(t,10)}`,t="normal")),new Ng({pixelRatio:l,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:o,lineHeight:r,letterSpacing:a})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=e.lineHeight|0,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=so.fontFamily,t=Ng._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}const _J=2;class dN extends Ng{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=_J,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}class bJ extends W{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=py(e);let i=this._cache.get(t);return i||(i=new vJ,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),!i.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=e.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)},5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const o of i)o.isTrusted||(n=!0,t.remove(o));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let n=this._actualReadFontInfo(e,t);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new dN({pixelRatio:Xv.getInstance(e).value,fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFeatureSettings:n.fontFeatureSettings,fontVariationSettings:n.fontVariationSettings,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),middotWidth:Math.max(n.middotWidth,5),wsmiddotWidth:Math.max(n.wsmiddotWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,t,n)}return i.get(t)}_createRequest(e,t,i,n){const o=new fJ(e,t);return i.push(o),n?.push(o),o}_actualReadFontInfo(e,t){const i=[],n=[],o=this._createRequest("n",0,i,n),r=this._createRequest("m",0,i,null),a=this._createRequest(" ",0,i,n),l=this._createRequest("0",0,i,n),d=this._createRequest("1",0,i,n),c=this._createRequest("2",0,i,n),u=this._createRequest("3",0,i,n),h=this._createRequest("4",0,i,n),g=this._createRequest("5",0,i,n),f=this._createRequest("6",0,i,n),m=this._createRequest("7",0,i,n),_=this._createRequest("8",0,i,n),b=this._createRequest("9",0,i,n),v=this._createRequest("→",0,i,n),C=this._createRequest("→",0,i,null),w=this._createRequest("·",0,i,n),S=this._createRequest("⸱",0,i,null),x="|/-_ilm%";for(let P=0,M=x.length;P<M;P++)this._createRequest(x.charAt(P),0,i,n),this._createRequest(x.charAt(P),1,i,n),this._createRequest(x.charAt(P),2,i,n);pJ(e,t,i);const L=Math.max(l.width,d.width,c.width,u.width,h.width,g.width,f.width,m.width,_.width,b.width);let E=t.fontFeatureSettings===zo.OFF;const N=n[0].width;for(let P=1,M=n.length;E&&P<M;P++){const B=N-n[P].width;if(B<-.001||B>.001){E=!1;break}}let V=!0;return E&&C.width!==N&&(V=!1),C.width>v.width&&(V=!1),new dN({pixelRatio:Xv.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:E,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:V,spaceWidth:a.width,middotWidth:w.width,wsmiddotWidth:S.width,maxDigitWidth:L},!0)}}class vJ{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const cN=new bJ;var Ma;(function(s){s.serviceIds=new Map,s.DI_TARGET="$di$target",s.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[s.DI_DEPENDENCIES]||[]}s.getServiceDependencies=e})(Ma||(Ma={}));const De=ct("instantiationService");function CJ(s,e,t){e[Ma.DI_TARGET]===e?e[Ma.DI_DEPENDENCIES].push({id:s,index:t}):(e[Ma.DI_DEPENDENCIES]=[{id:s,index:t}],e[Ma.DI_TARGET]=e)}function ct(s){if(Ma.serviceIds.has(s))return Ma.serviceIds.get(s);const e=function(t,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");CJ(e,t,n)};return e.toString=()=>s,Ma.serviceIds.set(s,e),e}const St=ct("codeEditorService"),fi=ct("modelService"),fo=ct("textModelService");class xo extends W{constructor(e,t="",i="",n=!0,o){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class Yg extends W{constructor(){super(...arguments),this._onWillRun=this._register(new O),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new O),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class Ji{constructor(){this.id=Ji.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t.length?t=[...t,new Ji,...i]:t=i);return t}async run(){}}Ji.ID="vs.actions.separator";class Im{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class Ak extends xo{constructor(){super(Ak.ID,p("submenu.empty","(empty)"),void 0,!1)}}Ak.ID="vs.actions.empty";function Zp(s){var e;return{id:s.id,label:s.label,class:s.class,enabled:(e=s.enabled)!==null&&e!==void 0?e:!0,checked:s.checked,run:async(...t)=>s.run(...t),tooltip:s.label}}var uN;(function(s){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"}s.isThemeColor=e})(uN||(uN={}));var Me;(function(s){s.iconNameSegment="[A-Za-z0-9]+",s.iconNameExpression="[A-Za-z0-9-]+",s.iconModifierExpression="~[A-Za-z]+",s.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${s.iconNameExpression})(${s.iconModifierExpression})?$`);function t(h){const g=e.exec(h.id);if(!g)return t(oe.error);const[,f,m]=g,_=["codicon","codicon-"+f];return m&&_.push("codicon-modifier-"+m.substring(1)),_}s.asClassNameArray=t;function i(h){return t(h).join(" ")}s.asClassName=i;function n(h){return"."+t(h).join(".")}s.asCSSSelector=n;function o(h){return h&&typeof h=="object"&&typeof h.id=="string"&&(typeof h.color>"u"||uN.isThemeColor(h.color))}s.isThemeIcon=o;const r=new RegExp(`^\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)$`);function a(h){const g=r.exec(h);if(!g)return;const[,f]=g;return{id:f}}s.fromString=a;function l(h){return{id:h}}s.fromId=l;function d(h,g){let f=h.id;const m=f.lastIndexOf("~");return m!==-1&&(f=f.substring(0,m)),g&&(f=`${f}~${g}`),{id:f}}s.modify=d;function c(h){const g=h.id.lastIndexOf("~");if(g!==-1)return h.id.substring(g+1)}s.getModifier=c;function u(h,g){var f,m;return h.id===g.id&&((f=h.color)===null||f===void 0?void 0:f.id)===((m=g.color)===null||m===void 0?void 0:m.id)}s.isEqual=u})(Me||(Me={}));const _i=ct("commandService"),pt=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new O,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(s,e){if(!s)throw new Error("invalid command");if(typeof s=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:s,handler:e})}if(s.metadata&&Array.isArray(s.metadata.args)){const r=[];for(const l of s.metadata.args)r.push(l.constraint);const a=s.handler;s.handler=function(l,...d){return MZ(d,r),a(l,...d)}}const{id:t}=s;let i=this._commands.get(t);i||(i=new Rs,this._commands.set(t,i));const n=i.unshift(s),o=Le(()=>{n();const r=this._commands.get(t);r?.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return pt.registerCommand(s,(t,...i)=>t.get(_i).executeCommand(e,...i))}getCommand(s){const e=this._commands.get(s);if(!(!e||e.isEmpty()))return gt.first(e)}getCommands(){const s=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&s.set(e,t)}return s}};pt.registerCommand("noop",()=>{});function dE(...s){switch(s.length){case 1:return p("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",s[0]);case 2:return p("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",s[0],s[1]);case 3:return p("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",s[0],s[1],s[2]);default:return}}const wJ=p("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),SJ=p("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");let cg=class hN{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw iP(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const t=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:t})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const t=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:t})}else this._match(126)?this._addToken(9):this._error(dE("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(dE("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(dE("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=hN._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(wJ);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(SJ);return}const o=this._input.charCodeAt(e);if(t)t=!1;else if(o===47&&!i){e++;break}else o===91?i=!0:o===92?t=!0:o===93&&(i=!1);e++}for(;e<this._input.length&&hN._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};cg._regexFlags=new Set(["i","g","s","m","y","u"].map(s=>s.charCodeAt(0)));cg._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const os=new Map;os.set("false",!1);os.set("true",!0);os.set("isMac",at);os.set("isLinux",Vs);os.set("isWindows",Zn);os.set("isWeb",xh);os.set("isMacNative",at&&!xh);os.set("isEdge",ZZ);os.set("isFirefox",KZ);os.set("isChrome",fH);os.set("isSafari",GZ);const yJ=Object.prototype.hasOwnProperty,xJ={regexParsingWithErrorRecovery:!0},kJ=p("contextkey.parser.error.emptyString","Empty context key expression"),LJ=p("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),DJ=p("contextkey.parser.error.noInAfterNot","'in' after 'not'."),b5=p("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),EJ=p("contextkey.parser.error.unexpectedToken","Unexpected token"),IJ=p("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),TJ=p("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),NJ=p("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let fV=class Lb{constructor(e=xJ){this._config=e,this._scanner=new cg,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:kJ,offset:0,lexeme:"",additionalInfo:LJ});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const i=this._peek(),n=i.type===17?IJ:void 0;throw this._parsingErrors.push({message:EJ,offset:i.offset,lexeme:cg.getLexeme(i),additionalInfo:n}),Lb._parseError}return t}catch(t){if(t!==Lb._parseError)throw t;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return e.length===1?e[0]:K.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:K.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),$s.INSTANCE;case 12:return this._advance(),lo.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,b5),t?.negate()}case 17:return this._advance(),Lf.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),K.true();case 12:return this._advance(),K.false();case 0:{this._advance();const t=this._expr();return this._consume(1,b5),t}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const n=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),n.type!==10)throw this._errExpectedButGot("REGEX",n);const o=n.lexeme,r=o.lastIndexOf("/"),a=r===o.length-1?void 0:this._removeFlagsGY(o.substring(r+1));let l;try{l=new RegExp(o.substring(1,r),a)}catch{throw this._errExpectedButGot("REGEX",n)}return Qv.create(t,l)}switch(n.type){case 10:case 19:{const o=[n.lexeme];this._advance();let r=this._peek(),a=0;for(let h=0;h<n.lexeme.length;h++)n.lexeme.charCodeAt(h)===40?a++:n.lexeme.charCodeAt(h)===41&&a--;for(;!this._isAtEnd()&&r.type!==15&&r.type!==16;){switch(r.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let h=0;h<r.lexeme.length;h++)r.lexeme.charCodeAt(h)===40?a++:n.lexeme.charCodeAt(h)===41&&a--}if(a<0)break;o.push(cg.getLexeme(r)),this._advance(),r=this._peek()}const l=o.join(""),d=l.lastIndexOf("/"),c=d===l.length-1?void 0:this._removeFlagsGY(l.substring(d+1));let u;try{u=new RegExp(l.substring(1,d),c)}catch{throw this._errExpectedButGot("REGEX",n)}return K.regex(t,u)}case 18:{const o=n.lexeme;this._advance();let r=null;if(!MH(o)){const a=o.indexOf("/"),l=o.lastIndexOf("/");if(a!==l&&a>=0){const d=o.slice(a+1,l),c=o[l+1]==="i"?"i":"";try{r=new RegExp(d,c)}catch{throw this._errExpectedButGot("REGEX",n)}}}if(r===null)throw this._errExpectedButGot("REGEX",n);return Qv.create(t,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,DJ);const n=this._value();return K.notIn(t,n)}switch(this._peek().type){case 3:{this._advance();const n=this._value();if(this._previous().type===18)return K.equals(t,n);switch(n){case"true":return K.has(t);case"false":return K.not(t);default:return K.equals(t,n)}}case 4:{this._advance();const n=this._value();if(this._previous().type===18)return K.notEquals(t,n);switch(n){case"true":return K.not(t);case"false":return K.has(t);default:return K.notEquals(t,n)}}case 5:return this._advance(),Wk.create(t,this._value());case 6:return this._advance(),Hk.create(t,this._value());case 7:return this._advance(),Fk.create(t,this._value());case 8:return this._advance(),Bk.create(t,this._value());case 13:return this._advance(),K.in(t,this._value());default:return K.has(t)}}case 20:throw this._parsingErrors.push({message:TJ,offset:e.offset,lexeme:"",additionalInfo:NJ}),Lb._parseError;default:throw this._errExpectedButGot(`true | false | KEY
11
+ `+cn),kn&&(cn=ga(cn,P," "),cn=ga(cn,M," "),cn=ga(cn,B," ")),C&&bn?C.createHTML(cn):cn},e.setConfig=function(lt){ha(lt),Or=!0},e.clearConfig=function(){nn=null,Or=!1},e.isValidAttribute=function(lt,G,xe){nn||ha({});const $e=At(lt),Ni=At(G);return O4($e,Ni,xe)},e.addHook=function(lt,G){typeof G=="function"&&(V[lt]=V[lt]||[],j_(V[lt],G))},e.removeHook=function(lt){if(V[lt])return o5(V[lt])},e.removeHooks=function(lt){V[lt]&&(V[lt]=[])},e.removeAllHooks=function(){V={}},e}var gd=XH();gd.version;gd.isSupported;const QH=gd.sanitize;gd.setConfig;gd.clearConfig;gd.isValidAttribute;const aN=gd.addHook,JH=gd.removeHook;gd.removeHooks;gd.removeAllHooks;var Ze;(function(s){s.inMemory="inmemory",s.vscode="vscode",s.internal="private",s.walkThrough="walkThrough",s.walkThroughSnippet="walkThroughSnippet",s.http="http",s.https="https",s.file="file",s.mailto="mailto",s.untitled="untitled",s.data="data",s.command="command",s.vscodeRemote="vscode-remote",s.vscodeRemoteResource="vscode-remote-resource",s.vscodeManagedRemoteResource="vscode-managed-remote-resource",s.vscodeUserData="vscode-userdata",s.vscodeCustomEditor="vscode-custom-editor",s.vscodeNotebookCell="vscode-notebook-cell",s.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",s.vscodeNotebookCellOutput="vscode-notebook-cell-output",s.vscodeInteractiveInput="vscode-interactive-input",s.vscodeSettings="vscode-settings",s.vscodeWorkspaceTrust="vscode-workspace-trust",s.vscodeTerminal="vscode-terminal",s.vscodeChatCodeBlock="vscode-chat-code-block",s.vscodeChatSesssion="vscode-chat-editor",s.webviewPanel="webview-panel",s.vscodeWebview="vscode-webview",s.extension="extension",s.vscodeFileResource="vscode-file",s.tmp="tmp",s.vsls="vsls",s.vscodeSourceControl="vscode-scm",s.codeSetting="code-setting"})(Ze||(Ze={}));function CP(s,e){return Ae.isUri(s)?Cp(s.scheme,e):uP(s,e+":")}function u5(s,...e){return e.some(t=>CP(s,t))}const AQ="tkn";class RQ{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return Ki.join(this._serverRootPath,Ze.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return je(a),e}const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const n=this._ports[t],o=this._connectionTokens[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof o=="string"&&(r+=`&${AQ}=${encodeURIComponent(o)}`),Ae.from({scheme:xh?this._preferredWebSchema:Ze.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}}const eV=new RQ,MQ="vscode-app";class Zv{uriToBrowserUri(e){return e.scheme===Ze.vscodeRemote?eV.rewrite(e):e.scheme===Ze.file&&(Fa||UZ===`${Ze.vscodeFileResource}://${Zv.FALLBACK_AUTHORITY}`)?e.with({scheme:Ze.vscodeFileResource,authority:e.authority||Zv.FALLBACK_AUTHORITY,query:null,fragment:null}):e}}Zv.FALLBACK_AUTHORITY=MQ;const tV=new Zv;var h5;(function(s){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);s.CoopAndCoep=Object.freeze(e.get("3"));const t="vscode-coi";function i(o){let r;typeof o=="string"?r=new URL(o).searchParams:o instanceof URL?r=o.searchParams:Ae.isUri(o)&&(r=new URL(o.toString(!0)).searchParams);const a=r?.get(t);if(a)return e.get(a)}s.getHeadersFromQuery=i;function n(o,r,a){if(!globalThis.crossOriginIsolated)return;const l=r&&a?"3":a?"2":"1";o instanceof URLSearchParams?o.set(t,l):o[t]=l}s.addSearchParam=n})(h5||(h5={}));function Lk(s){return Dk(s,0)}function Dk(s,e){switch(typeof s){case"object":return s===null?qd(349,e):Array.isArray(s)?OQ(s,e):FQ(s,e);case"string":return wP(s,e);case"boolean":return PQ(s,e);case"number":return qd(s,e);case"undefined":return qd(937,e);default:return qd(617,e)}}function qd(s,e){return(e<<5)-e+s|0}function PQ(s,e){return qd(s?433:863,e)}function wP(s,e){e=qd(149417,e);for(let t=0,i=s.length;t<i;t++)e=qd(s.charCodeAt(t),e);return e}function OQ(s,e){return e=qd(104579,e),s.reduce((t,i)=>Dk(i,t),e)}function FQ(s,e){return e=qd(181387,e),Object.keys(s).sort().reduce((t,i)=>(t=wP(i,t),Dk(s[i],t)),e)}function iE(s,e,t=32){const i=t-e,n=~((1<<i)-1);return(s<<e|(n&s)>>>i)>>>0}function g5(s,e=0,t=s.byteLength,i=0){for(let n=0;n<t;n++)s[e+n]=i}function BQ(s,e,t="0"){for(;s.length<e;)s=t+s;return s}function K_(s,e=32){return s instanceof ArrayBuffer?Array.from(new Uint8Array(s)).map(t=>t.toString(16).padStart(2,"0")).join(""):BQ((s>>>0).toString(16),e/4)}class Ek{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const i=this._buff;let n=this._buffLen,o=this._leftoverHighSurrogate,r,a;for(o!==0?(r=o,a=-1,o=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(hn(r))if(a+1<t){const d=e.charCodeAt(a+1);qg(d)?(a++,l=hP(r,d)):l=65533}else{o=r;break}else qg(r)&&(l=65533);if(n=this._push(i,n,l),a++,a<t)r=e.charCodeAt(a);else break}this._buffLen=n,this._leftoverHighSurrogate=o}_push(e,t,i){return i<128?e[t++]=i:i<2048?(e[t++]=192|(i&1984)>>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),K_(this._h0)+K_(this._h1)+K_(this._h2)+K_(this._h3)+K_(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,g5(this._buff,this._buffLen),this._buffLen>56&&(this._step(),g5(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Ek._bigBlock32,t=this._buffDV;for(let u=0;u<64;u+=4)e.setUint32(u,t.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,iE(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let i=this._h0,n=this._h1,o=this._h2,r=this._h3,a=this._h4,l,d,c;for(let u=0;u<80;u++)u<20?(l=n&o|~n&r,d=1518500249):u<40?(l=n^o^r,d=1859775393):u<60?(l=n&o|n&r|o&r,d=2400959708):(l=n^o^r,d=3395469782),c=iE(i,5)+l+a+d+e.getUint32(u*4,!1)&4294967295,a=r,r=o,o=iE(n,30),n=i,i=c;this._h0=this._h0+i&4294967295,this._h1=this._h1+n&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}}Ek._bigBlock32=new DataView(new ArrayBuffer(320));const{registerWindow:EMe,getWindow:Te,getDocument:IMe,getWindows:iV,getWindowsCount:WQ,getWindowId:py,getWindowById:f5,hasWindow:TMe,onDidRegisterWindow:Ik,onWillUnregisterWindow:HQ,onDidUnregisterWindow:VQ}=function(){const s=new Map;TX(Bt,1);const e={window:Bt,disposables:new Y};s.set(Bt.vscodeWindowId,e);const t=new O,i=new O,n=new O;function o(r,a){const l=typeof r=="number"?s.get(r):void 0;return l??(a?e:void 0)}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:i.event,registerWindow(r){if(s.has(r.vscodeWindowId))return W.None;const a=new Y,l={window:r,disposables:a.add(new Y)};return s.set(r.vscodeWindowId,l),a.add(Le(()=>{s.delete(r.vscodeWindowId),i.fire(r)})),a.add(U(r,se.BEFORE_UNLOAD,()=>{n.fire(r)})),t.fire(l),a},getWindows(){return s.values()},getWindowsCount(){return s.size},getWindowId(r){return r.vscodeWindowId},hasWindow(r){return s.has(r)},getWindowById:o,getWindow(r){var a;const l=r;if(!((a=l?.ownerDocument)===null||a===void 0)&&a.defaultView)return l.ownerDocument.defaultView.window;const d=r;return d?.view?d.view.window:Bt},getDocument(r){return Te(r).document}}}();function ss(s){for(;s.firstChild;)s.firstChild.remove()}class $Q{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function U(s,e,t,i){return new $Q(s,e,t,i)}function nV(s,e){return function(t){return e(new Yr(s,t))}}function zQ(s){return function(e){return s(new ti(e))}}const Di=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"?o=nV(Te(e),i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=zQ(i)),U(e,t,o,n)},UQ=function(e,t,i){const n=nV(Te(e),t);return jQ(e,n,i)};function jQ(s,e,t){return U(s,ja&&_P.pointerEvents?se.POINTER_DOWN:se.MOUSE_DOWN,e,t)}function kb(s,e,t){return ev(s,e,t)}class nE extends KH{constructor(e,t){super(e,t)}}let my,Do;class SP extends vP{constructor(e){super(),this.defaultTarget=e&&Te(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class sE{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){je(e)}}static sort(e,t){return t.priority-e.priority}}(function(){const s=new Map,e=new Map,t=new Map,i=new Map,n=o=>{var r;t.set(o,!1);const a=(r=s.get(o))!==null&&r!==void 0?r:[];for(e.set(o,a),s.set(o,[]),i.set(o,!0);a.length>0;)a.sort(sE.sort),a.shift().execute();i.set(o,!1)};Do=(o,r,a=0)=>{const l=py(o),d=new sE(r,a);let c=s.get(l);return c||(c=[],s.set(l,c)),c.push(d),t.get(l)||(t.set(l,!0),o.requestAnimationFrame(()=>n(l))),d},my=(o,r,a)=>{const l=py(o);if(i.get(l)){const d=new sE(r,a);let c=e.get(l);return c||(c=[],e.set(l,c)),c.push(d),d}else return Do(o,r,a)}})();function Tk(s){return Te(s).getComputedStyle(s,null)}function ih(s,e){const t=Te(s),i=t.document;if(s!==i.body)return new kt(s.clientWidth,s.clientHeight);if(ja&&t?.visualViewport)return new kt(t.visualViewport.width,t.visualViewport.height);if(t?.innerWidth&&t.innerHeight)return new kt(t.innerWidth,t.innerHeight);if(i.body&&i.body.clientWidth&&i.body.clientHeight)return new kt(i.body.clientWidth,i.body.clientHeight);if(i.documentElement&&i.documentElement.clientWidth&&i.documentElement.clientHeight)return new kt(i.documentElement.clientWidth,i.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Ri{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=Tk(e),o=n?n.getPropertyValue(t):"0";return Ri.convertToPixels(e,o)}static getBorderLeftWidth(e){return Ri.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Ri.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Ri.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Ri.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Ri.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Ri.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Ri.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Ri.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Ri.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Ri.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Ri.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Ri.getDimension(e,"margin-bottom","marginBottom")}}class kt{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new kt(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof kt?e:new kt(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}}kt.None=new kt(0,0);function sV(s){let e=s.offsetParent,t=s.offsetTop,i=s.offsetLeft;for(;(s=s.parentNode)!==null&&s!==s.ownerDocument.body&&s!==s.ownerDocument.documentElement;){t-=s.scrollTop;const n=rV(s)?null:Tk(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=Ri.getBorderLeftWidth(s),t+=Ri.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function qQ(s,e,t){typeof e=="number"&&(s.style.width=`${e}px`),typeof t=="number"&&(s.style.height=`${t}px`)}function zi(s){const e=s.getBoundingClientRect(),t=Te(s);return{left:e.left+t.scrollX,top:e.top+t.scrollY,width:e.width,height:e.height}}function oV(s){let e=s,t=1;do{const i=Tk(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function ks(s){const e=Ri.getMarginLeft(s)+Ri.getMarginRight(s);return s.offsetWidth+e}function oE(s){const e=Ri.getBorderLeftWidth(s)+Ri.getBorderRightWidth(s),t=Ri.getPaddingLeft(s)+Ri.getPaddingRight(s);return s.offsetWidth-e-t}function KQ(s){const e=Ri.getBorderTopWidth(s)+Ri.getBorderBottomWidth(s),t=Ri.getPaddingTop(s)+Ri.getPaddingBottom(s);return s.offsetHeight-e-t}function Kd(s){const e=Ri.getMarginTop(s)+Ri.getMarginBottom(s);return s.offsetHeight+e}function yn(s,e){return!!e?.contains(s)}function GQ(s,e,t){for(;s&&s.nodeType===s.ELEMENT_NODE;){if(s.classList.contains(e))return s;if(t){if(typeof t=="string"){if(s.classList.contains(t))return null}else if(s===t)return null}s=s.parentNode}return null}function rE(s,e,t){return!!GQ(s,e,t)}function rV(s){return s&&!!s.host&&!!s.mode}function _y(s){return!!Zg(s)}function Zg(s){for(var e;s.parentNode;){if(s===((e=s.ownerDocument)===null||e===void 0?void 0:e.body))return null;s=s.parentNode}return rV(s)?s:null}function Kn(){let s=C_().activeElement;for(;s?.shadowRoot;)s=s.shadowRoot.activeElement;return s}function Nk(s){return Kn()===s}function aV(s){return yn(Kn(),s)}function C_(){var s;return WQ()<=1?Bt.document:(s=Array.from(iV()).map(({window:t})=>t.document).find(t=>t.hasFocus()))!==null&&s!==void 0?s:Bt.document}function ZQ(){var s,e;return(e=(s=C_().defaultView)===null||s===void 0?void 0:s.window)!==null&&e!==void 0?e:Bt}const yP=new Map;function lV(){return new YQ}class YQ{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=Qo(Bt.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function Qo(s=Bt.document.head,e,t){const i=document.createElement("style");if(i.type="text/css",i.media="screen",e?.(i),s.appendChild(i),t&&t.add(Le(()=>s.removeChild(i))),s===Bt.document.head){const n=new Set;yP.set(i,n);for(const{window:o,disposables:r}of iV()){if(o===Bt)continue;const a=r.add(XQ(i,n,o));t?.add(a)}}return i}function XQ(s,e,t){var i,n;const o=new Y,r=s.cloneNode(!0);t.document.head.appendChild(r),o.add(Le(()=>t.document.head.removeChild(r)));for(const a of cV(s))(i=r.sheet)===null||i===void 0||i.insertRule(a.cssText,(n=r.sheet)===null||n===void 0?void 0:n.cssRules.length);return o.add(QQ.observe(s,o,{childList:!0})(()=>{r.textContent=s.textContent})),e.add(r),o.add(Le(()=>e.delete(r))),o}const QQ=new class{constructor(){this.mutationObservers=new Map}observe(s,e,t){let i=this.mutationObservers.get(s);i||(i=new Map,this.mutationObservers.set(s,i));const n=Lk(t);let o=i.get(n);if(o)o.users+=1;else{const r=new O,a=new MutationObserver(d=>r.fire(d));a.observe(s,t);const l=o={users:1,observer:a,onDidMutate:r.event};e.add(Le(()=>{l.users-=1,l.users===0&&(r.dispose(),a.disconnect(),i?.delete(n),i?.size===0&&this.mutationObservers.delete(s))})),i.set(n,o)}return o.onDidMutate}};let aE=null;function dV(){return aE||(aE=Qo()),aE}function cV(s){var e,t;return!((e=s?.sheet)===null||e===void 0)&&e.rules?s.sheet.rules:!((t=s?.sheet)===null||t===void 0)&&t.cssRules?s.sheet.cssRules:[]}function by(s,e,t=dV()){var i,n;if(!(!t||!e)){(i=t.sheet)===null||i===void 0||i.insertRule(`${s} {${e}}`,0);for(const o of(n=yP.get(t))!==null&&n!==void 0?n:[])by(s,e,o)}}function lN(s,e=dV()){var t,i;if(!e)return;const n=cV(e),o=[];for(let r=0;r<n.length;r++){const a=n[r];JQ(a)&&a.selectorText.indexOf(s)!==-1&&o.push(r)}for(let r=o.length-1;r>=0;r--)(t=e.sheet)===null||t===void 0||t.deleteRule(o[r]);for(const r of(i=yP.get(e))!==null&&i!==void 0?i:[])lN(s,r)}function JQ(s){return typeof s.selectorText=="string"}function xP(s){return s instanceof MouseEvent||s instanceof Te(s).MouseEvent}function ru(s){return s instanceof KeyboardEvent||s instanceof Te(s).KeyboardEvent}const se={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:Tg?"webkitAnimationStart":"animationstart",ANIMATION_END:Tg?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Tg?"webkitAnimationIteration":"animationiteration"};function eJ(s){const e=s;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const nt={stop:(s,e)=>(s.preventDefault(),e&&s.stopPropagation(),s)};function tJ(s){const e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function iJ(s,e){for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)s.scrollTop!==e[t]&&(s.scrollTop=e[t]),s=s.parentNode}class vy extends W{static hasFocusWithin(e){if(e instanceof HTMLElement){const t=Zg(e),i=t?t.activeElement:e.ownerDocument.activeElement;return yn(i,e)}else{const t=e;return yn(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new O),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new O),this.onDidBlur=this._onDidBlur.event;let t=vy.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(e instanceof HTMLElement?Te(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{vy.hasFocusWithin(e)!==t&&(t?o():n())},this._register(U(e,se.FOCUS,n,!0)),this._register(U(e,se.BLUR,o,!0)),e instanceof HTMLElement&&(this._register(U(e,se.FOCUS_IN,()=>this._refreshStateHandler())),this._register(U(e,se.FOCUS_OUT,()=>this._refreshStateHandler())))}}function Ka(s){return new vy(s)}function nJ(s,e){return s.after(e),e}function X(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function kP(s,e){return s.insertBefore(e,s.firstChild),e}function An(s,...e){s.innerText="",X(s,...e)}const sJ=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Yv;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(Yv||(Yv={}));function uV(s,e,t,...i){const n=sJ.exec(e);if(!n)throw new Error("Bad use of emmet");const o=n[1]||"div";let r;return s!==Yv.HTML?r=document.createElementNS(s,o):r=document.createElement(o),n[3]&&(r.id=n[3]),n[4]&&(r.className=n[4].replace(/\./g," ").trim()),t&&Object.entries(t).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function ee(s,e,...t){return uV(Yv.HTML,s,e,...t)}ee.SVG=function(s,e,...t){return uV(Yv.SVG,s,e,...t)};function oJ(s,...e){s?Co(...e):Es(...e)}function Co(...s){for(const e of s)e.style.display="",e.removeAttribute("aria-hidden")}function Es(...s){for(const e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function p5(s,e){const t=s.devicePixelRatio*e;return Math.max(1,Math.floor(t))/s.devicePixelRatio}function hV(s){Bt.open(s,"_blank","noopener")}function rJ(s,e){const t=()=>{e(),i=Do(s,t)};let i=Do(s,t);return Le(()=>i.dispose())}eV.setPreferredWebSchema(/^https:/.test(Bt.location.href)?"https":"http");function nh(s){return s?`url('${tV.uriToBrowserUri(s).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function m5(s){return`'${s.replace(/'/g,"%27")}'`}function uc(s,e){if(s!==void 0){const t=s.match(/^\s*var\((.+)\)$/);if(t){const i=t[1].split(",",2);return i.length===2&&(e=uc(i[1].trim(),e)),`var(${i[0]}, ${e})`}return s}return e}function aJ(s,e=!1){const t=document.createElement("a");return aN("afterSanitizeAttributes",i=>{for(const n of["href","src"])if(i.hasAttribute(n)){const o=i.getAttribute(n);if(n==="href"&&o.startsWith("#"))continue;if(t.href=o,!s.includes(t.protocol.replace(/:$/,""))){if(e&&n==="src"&&t.href.startsWith("data:"))continue;i.removeAttribute(n)}}}),Le(()=>{JH("afterSanitizeAttributes")})}const lJ=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);class Gd extends O{constructor(){super(),this._subscriptions=new Y,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(re.runAndSubscribe(Ik,({window:e,disposables:t})=>this.registerListeners(e,t),{window:Bt,disposables:this._subscriptions}))}registerListeners(e,t){t.add(U(e,"keydown",i=>{if(i.defaultPrevented)return;const n=new ti(i);if(!(n.keyCode===6&&i.repeat)){if(i.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(i.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(i.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(i.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(n.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=i,this.fire(this._keyStatus))}},!0)),t.add(U(e,"keyup",i=>{i.defaultPrevented||(!i.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!i.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!i.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!i.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=i.altKey,this._keyStatus.ctrlKey=i.ctrlKey,this._keyStatus.metaKey=i.metaKey,this._keyStatus.shiftKey=i.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=i,this.fire(this._keyStatus)))},!0)),t.add(U(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(U(e.document.body,"mousemove",i=>{i.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(U(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Gd.instance||(Gd.instance=new Gd),Gd.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class dJ extends W{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(U(this.element,se.DRAG_START,e=>{var t,i;(i=(t=this.callbacks).onDragStart)===null||i===void 0||i.call(t,e)})),this.callbacks.onDrag&&this._register(U(this.element,se.DRAG,e=>{var t,i;(i=(t=this.callbacks).onDrag)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,se.DRAG_ENTER,e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,(i=(t=this.callbacks).onDragEnter)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,se.DRAG_OVER,e=>{var t,i;e.preventDefault(),(i=(t=this.callbacks).onDragOver)===null||i===void 0||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(U(this.element,se.DRAG_LEAVE,e=>{var t,i;this.counter--,this.counter===0&&(this.dragStartTime=0,(i=(t=this.callbacks).onDragLeave)===null||i===void 0||i.call(t,e))})),this._register(U(this.element,se.DRAG_END,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDragEnd)===null||i===void 0||i.call(t,e)})),this._register(U(this.element,se.DROP,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDrop)===null||i===void 0||i.call(t,e)}))}}const cJ=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function It(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const n=cJ.exec(s);if(!n||!n.groups)throw new Error("Bad use of h");const o=n.groups.tag||"div",r=document.createElement(o);n.groups.id&&(r.id=n.groups.id);const a=[];if(n.groups.class)for(const d of n.groups.class.split("."))d!==""&&a.push(d);if(t.className!==void 0)for(const d of t.className.split("."))d!==""&&a.push(d);a.length>0&&(r.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(const d of i)d instanceof HTMLElement?r.appendChild(d):typeof d=="string"?r.append(d):"root"in d&&(Object.assign(l,d),r.appendChild(d.root));for(const[d,c]of Object.entries(t))if(d!=="className")if(d==="style")for(const[u,h]of Object.entries(c))r.style.setProperty(_5(u),typeof h=="number"?h+"px":""+h);else d==="tabIndex"?r.tabIndex=c:r.setAttribute(_5(d),c.toString());return l.root=r,l}function _5(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class uJ extends W{constructor(e){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;(i=this._mediaQueryList)===null||i===void 0||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class hJ extends W{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new uJ(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d"),i=e.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return i/n}}class gJ{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=py(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=new hJ(e),this.mapWindowIdToPixelRatioMonitor.set(t,i),re.once(VQ)(({vscodeWindowId:n})=>{n===t&&(i?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const Xv=new gJ;class gV{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=fa(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=fa(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=fa(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=fa(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=fa(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=fa(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=fa(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=fa(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=fa(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=fa(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=fa(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function fa(s){return typeof s=="number"?`${s}px`:s}function Et(s){return new gV(s)}function Rn(s,e){s instanceof gV?(s.setFontFamily(e.getMassagedFontFamily()),s.setFontWeight(e.fontWeight),s.setFontSize(e.fontSize),s.setFontFeatureSettings(e.fontFeatureSettings),s.setFontVariationSettings(e.fontVariationSettings),s.setLineHeight(e.lineHeight),s.setLetterSpacing(e.letterSpacing)):(s.style.fontFamily=e.getMassagedFontFamily(),s.style.fontWeight=e.fontWeight,s.style.fontSize=e.fontSize+"px",s.style.fontFeatureSettings=e.fontFeatureSettings,s.style.fontVariationSettings=e.fontVariationSettings,s.style.lineHeight=e.lineHeight+"px",s.style.letterSpacing=e.letterSpacing+"px")}class fJ{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class LP{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");Rn(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");Rn(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");Rn(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const o=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=n),a.appendChild(document.createElement("br"));const l=document.createElement("span");LP._render(l,r),a.appendChild(l),o.push(l)}this._container=e,this._testElements=o}static _render(e,t){if(t.chr===" "){let i=" ";for(let n=0;n<8;n++)i+=i;e.innerText=i}else{let i=t.chr;for(let n=0;n<8;n++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const i=this._requests[e],n=this._testElements[e];i.fulfill(n.offsetWidth/256)}}}function pJ(s,e,t){new LP(e,t).read(s)}const hr=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new O,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(s){s=Math.min(Math.max(-5,s),20),this._zoomLevel!==s&&(this._zoomLevel=s,this._onDidChangeZoomLevel.fire(this._zoomLevel))}},mJ=at?1.5:1.35,lE=8;class Ng{static createFromValidatedSettings(e,t,i){const n=e.get(49),o=e.get(53),r=e.get(52),a=e.get(51),l=e.get(54),d=e.get(67),c=e.get(64);return Ng._create(n,o,r,a,l,d,c,t,i)}static _create(e,t,i,n,o,r,a,l,d){r===0?r=mJ*i:r<lE&&(r=r*i),r=Math.round(r),r<lE&&(r=lE);const c=1+(d?0:hr.getZoomLevel()*.1);return i*=c,r*=c,o===Na.TRANSLATE&&(t==="normal"||t==="bold"?o=Na.OFF:(o=`'wght' ${parseInt(t,10)}`,t="normal")),new Ng({pixelRatio:l,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:o,lineHeight:r,letterSpacing:a})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=e.lineHeight|0,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=so.fontFamily,t=Ng._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}const _J=2;class dN extends Ng{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=_J,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}class bJ extends W{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(e){const t=py(e);let i=this._cache.get(t);return i||(i=new vJ,this._cache.set(t,i)),i}_writeToCache(e,t,i){this._ensureCache(e).put(t,i),!i.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=e.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)},5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const o of i)o.isTrusted||(n=!0,t.remove(o));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let n=this._actualReadFontInfo(e,t);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new dN({pixelRatio:Xv.getInstance(e).value,fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFeatureSettings:n.fontFeatureSettings,fontVariationSettings:n.fontVariationSettings,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),middotWidth:Math.max(n.middotWidth,5),wsmiddotWidth:Math.max(n.wsmiddotWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,t,n)}return i.get(t)}_createRequest(e,t,i,n){const o=new fJ(e,t);return i.push(o),n?.push(o),o}_actualReadFontInfo(e,t){const i=[],n=[],o=this._createRequest("n",0,i,n),r=this._createRequest("m",0,i,null),a=this._createRequest(" ",0,i,n),l=this._createRequest("0",0,i,n),d=this._createRequest("1",0,i,n),c=this._createRequest("2",0,i,n),u=this._createRequest("3",0,i,n),h=this._createRequest("4",0,i,n),g=this._createRequest("5",0,i,n),f=this._createRequest("6",0,i,n),m=this._createRequest("7",0,i,n),_=this._createRequest("8",0,i,n),b=this._createRequest("9",0,i,n),v=this._createRequest("→",0,i,n),C=this._createRequest("→",0,i,null),w=this._createRequest("·",0,i,n),S=this._createRequest("⸱",0,i,null),x="|/-_ilm%";for(let P=0,M=x.length;P<M;P++)this._createRequest(x.charAt(P),0,i,n),this._createRequest(x.charAt(P),1,i,n),this._createRequest(x.charAt(P),2,i,n);pJ(e,t,i);const L=Math.max(l.width,d.width,c.width,u.width,h.width,g.width,f.width,m.width,_.width,b.width);let E=t.fontFeatureSettings===zo.OFF;const N=n[0].width;for(let P=1,M=n.length;E&&P<M;P++){const B=N-n[P].width;if(B<-.001||B>.001){E=!1;break}}let V=!0;return E&&C.width!==N&&(V=!1),C.width>v.width&&(V=!1),new dN({pixelRatio:Xv.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:E,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:V,spaceWidth:a.width,middotWidth:w.width,wsmiddotWidth:S.width,maxDigitWidth:L},!0)}}class vJ{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const cN=new bJ;var Ma;(function(s){s.serviceIds=new Map,s.DI_TARGET="$di$target",s.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[s.DI_DEPENDENCIES]||[]}s.getServiceDependencies=e})(Ma||(Ma={}));const De=ct("instantiationService");function CJ(s,e,t){e[Ma.DI_TARGET]===e?e[Ma.DI_DEPENDENCIES].push({id:s,index:t}):(e[Ma.DI_DEPENDENCIES]=[{id:s,index:t}],e[Ma.DI_TARGET]=e)}function ct(s){if(Ma.serviceIds.has(s))return Ma.serviceIds.get(s);const e=function(t,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");CJ(e,t,n)};return e.toString=()=>s,Ma.serviceIds.set(s,e),e}const St=ct("codeEditorService"),fi=ct("modelService"),fo=ct("textModelService");class xo extends W{constructor(e,t="",i="",n=!0,o){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=n,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class Yg extends W{constructor(){super(...arguments),this._onWillRun=this._register(new O),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new O),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{await this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class Ji{constructor(){this.id=Ji.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t.length?t=[...t,new Ji,...i]:t=i);return t}async run(){}}Ji.ID="vs.actions.separator";class Im{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class Ak extends xo{constructor(){super(Ak.ID,p("submenu.empty","(empty)"),void 0,!1)}}Ak.ID="vs.actions.empty";function Zp(s){var e;return{id:s.id,label:s.label,class:s.class,enabled:(e=s.enabled)!==null&&e!==void 0?e:!0,checked:s.checked,run:async(...t)=>s.run(...t),tooltip:s.label}}var uN;(function(s){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"}s.isThemeColor=e})(uN||(uN={}));var Me;(function(s){s.iconNameSegment="[A-Za-z0-9]+",s.iconNameExpression="[A-Za-z0-9-]+",s.iconModifierExpression="~[A-Za-z]+",s.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${s.iconNameExpression})(${s.iconModifierExpression})?$`);function t(h){const g=e.exec(h.id);if(!g)return t(oe.error);const[,f,m]=g,_=["codicon","codicon-"+f];return m&&_.push("codicon-modifier-"+m.substring(1)),_}s.asClassNameArray=t;function i(h){return t(h).join(" ")}s.asClassName=i;function n(h){return"."+t(h).join(".")}s.asCSSSelector=n;function o(h){return h&&typeof h=="object"&&typeof h.id=="string"&&(typeof h.color>"u"||uN.isThemeColor(h.color))}s.isThemeIcon=o;const r=new RegExp(`^\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)$`);function a(h){const g=r.exec(h);if(!g)return;const[,f]=g;return{id:f}}s.fromString=a;function l(h){return{id:h}}s.fromId=l;function d(h,g){let f=h.id;const m=f.lastIndexOf("~");return m!==-1&&(f=f.substring(0,m)),g&&(f=`${f}~${g}`),{id:f}}s.modify=d;function c(h){const g=h.id.lastIndexOf("~");if(g!==-1)return h.id.substring(g+1)}s.getModifier=c;function u(h,g){var f,m;return h.id===g.id&&((f=h.color)===null||f===void 0?void 0:f.id)===((m=g.color)===null||m===void 0?void 0:m.id)}s.isEqual=u})(Me||(Me={}));const _i=ct("commandService"),pt=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new O,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(s,e){if(!s)throw new Error("invalid command");if(typeof s=="string"){if(!e)throw new Error("invalid command");return this.registerCommand({id:s,handler:e})}if(s.metadata&&Array.isArray(s.metadata.args)){const r=[];for(const l of s.metadata.args)r.push(l.constraint);const a=s.handler;s.handler=function(l,...d){return MZ(d,r),a(l,...d)}}const{id:t}=s;let i=this._commands.get(t);i||(i=new Rs,this._commands.set(t,i));const n=i.unshift(s),o=Le(()=>{n();const r=this._commands.get(t);r?.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return pt.registerCommand(s,(t,...i)=>t.get(_i).executeCommand(e,...i))}getCommand(s){const e=this._commands.get(s);if(!(!e||e.isEmpty()))return gt.first(e)}getCommands(){const s=new Map;for(const e of this._commands.keys()){const t=this.getCommand(e);t&&s.set(e,t)}return s}};pt.registerCommand("noop",()=>{});function dE(...s){switch(s.length){case 1:return p("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",s[0]);case 2:return p("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",s[0],s[1]);case 3:return p("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",s[0],s[1],s[2]);default:return}}const wJ=p("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),SJ=p("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");let cg=class hN{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw iP(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const t=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:t})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const t=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:t})}else this._match(126)?this._addToken(9):this._error(dE("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(dE("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(dE("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=hN._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(wJ);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(SJ);return}const o=this._input.charCodeAt(e);if(t)t=!1;else if(o===47&&!i){e++;break}else o===91?i=!0:o===92?t=!0:o===93&&(i=!1);e++}for(;e<this._input.length&&hN._regexFlags.has(this._input.charCodeAt(e));)e++;this._current=e;const n=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:n,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}};cg._regexFlags=new Set(["i","g","s","m","y","u"].map(s=>s.charCodeAt(0)));cg._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const os=new Map;os.set("false",!1);os.set("true",!0);os.set("isMac",at);os.set("isLinux",Vs);os.set("isWindows",Zn);os.set("isWeb",xh);os.set("isMacNative",at&&!xh);os.set("isEdge",ZZ);os.set("isFirefox",KZ);os.set("isChrome",fH);os.set("isSafari",GZ);const yJ=Object.prototype.hasOwnProperty,xJ={regexParsingWithErrorRecovery:!0},kJ=p("contextkey.parser.error.emptyString","Empty context key expression"),LJ=p("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),DJ=p("contextkey.parser.error.noInAfterNot","'in' after 'not'."),b5=p("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),EJ=p("contextkey.parser.error.unexpectedToken","Unexpected token"),IJ=p("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),TJ=p("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),NJ=p("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let fV=class Lb{constructor(e=xJ){this._config=e,this._scanner=new cg,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:kJ,offset:0,lexeme:"",additionalInfo:LJ});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const i=this._peek(),n=i.type===17?IJ:void 0;throw this._parsingErrors.push({message:EJ,offset:i.offset,lexeme:cg.getLexeme(i),additionalInfo:n}),Lb._parseError}return t}catch(t){if(t!==Lb._parseError)throw t;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return e.length===1?e[0]:K.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:K.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),$s.INSTANCE;case 12:return this._advance(),lo.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,b5),t?.negate()}case 17:return this._advance(),Lf.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),K.true();case 12:return this._advance(),K.false();case 0:{this._advance();const t=this._expr();return this._consume(1,b5),t}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const n=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),n.type!==10)throw this._errExpectedButGot("REGEX",n);const o=n.lexeme,r=o.lastIndexOf("/"),a=r===o.length-1?void 0:this._removeFlagsGY(o.substring(r+1));let l;try{l=new RegExp(o.substring(1,r),a)}catch{throw this._errExpectedButGot("REGEX",n)}return Qv.create(t,l)}switch(n.type){case 10:case 19:{const o=[n.lexeme];this._advance();let r=this._peek(),a=0;for(let h=0;h<n.lexeme.length;h++)n.lexeme.charCodeAt(h)===40?a++:n.lexeme.charCodeAt(h)===41&&a--;for(;!this._isAtEnd()&&r.type!==15&&r.type!==16;){switch(r.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let h=0;h<r.lexeme.length;h++)r.lexeme.charCodeAt(h)===40?a++:n.lexeme.charCodeAt(h)===41&&a--}if(a<0)break;o.push(cg.getLexeme(r)),this._advance(),r=this._peek()}const l=o.join(""),d=l.lastIndexOf("/"),c=d===l.length-1?void 0:this._removeFlagsGY(l.substring(d+1));let u;try{u=new RegExp(l.substring(1,d),c)}catch{throw this._errExpectedButGot("REGEX",n)}return K.regex(t,u)}case 18:{const o=n.lexeme;this._advance();let r=null;if(!MH(o)){const a=o.indexOf("/"),l=o.lastIndexOf("/");if(a!==l&&a>=0){const d=o.slice(a+1,l),c=o[l+1]==="i"?"i":"";try{r=new RegExp(d,c)}catch{throw this._errExpectedButGot("REGEX",n)}}}if(r===null)throw this._errExpectedButGot("REGEX",n);return Qv.create(t,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,DJ);const n=this._value();return K.notIn(t,n)}switch(this._peek().type){case 3:{this._advance();const n=this._value();if(this._previous().type===18)return K.equals(t,n);switch(n){case"true":return K.has(t);case"false":return K.not(t);default:return K.equals(t,n)}}case 4:{this._advance();const n=this._value();if(this._previous().type===18)return K.notEquals(t,n);switch(n){case"true":return K.not(t);case"false":return K.has(t);default:return K.notEquals(t,n)}}case 5:return this._advance(),Wk.create(t,this._value());case 6:return this._advance(),Hk.create(t,this._value());case 7:return this._advance(),Fk.create(t,this._value());case 8:return this._advance(),Bk.create(t,this._value());case 13:return this._advance(),K.in(t,this._value());default:return K.has(t)}}case 20:throw this._parsingErrors.push({message:TJ,offset:e.offset,lexeme:"",additionalInfo:NJ}),Lb._parseError;default:throw this._errExpectedButGot(`true | false | KEY
12
12
  | KEY '=~' REGEX
13
13
  | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=p("contextkey.parser.error.expectedButGot",`Expected: {0}
14
14
  Received: '{1}'.`,e,cg.getLexeme(t)),o=t.offset,r=cg.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:r,additionalInfo:i}),Lb._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};fV._parseError=new Error;class K{static false(){return $s.INSTANCE}static true(){return lo.INSTANCE}static has(e){return kf.create(e)}static equals(e,t){return w_.create(e,t)}static notEquals(e,t){return Pk.create(e,t)}static regex(e,t){return Qv.create(e,t)}static in(e,t){return Rk.create(e,t)}static notIn(e,t){return Mk.create(e,t)}static not(e){return Lf.create(e)}static and(...e){return wg.create(e,null,!0)}static or(...e){return Hd.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}K._parser=new fV({regexParsingWithErrorRecovery:!1});function AJ(s,e){const t=s?s.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function tv(s,e){return s.cmp(e)}class $s{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return lo.INSTANCE}}$s.INSTANCE=new $s;class lo{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return $s.INSTANCE}}lo.INSTANCE=new lo;class kf{static create(e,t=null){const i=os.get(e);return typeof i=="boolean"?i?lo.INSTANCE:$s.INSTANCE:new kf(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:mV(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=os.get(this.key);return typeof e=="boolean"?e?lo.INSTANCE:$s.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Lf.create(this.key,this)),this.negated}}class w_{static create(e,t,i=null){if(typeof t=="boolean")return t?kf.create(e,i):Lf.create(e,i);const n=os.get(e);return typeof n=="boolean"?t===(n?"true":"false")?lo.INSTANCE:$s.INSTANCE:new w_(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:Df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=os.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?lo.INSTANCE:$s.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Pk.create(this.key,this.value,this)),this.negated}}class Rk{static create(e,t){return new Rk(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:Df(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):typeof i=="string"&&typeof t=="object"&&t!==null?yJ.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=Mk.create(this.key,this.valueKey)),this.negated}}class Mk{static create(e,t){return new Mk(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=Rk.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class Pk{static create(e,t,i=null){if(typeof t=="boolean")return t?Lf.create(e,i):kf.create(e,i);const n=os.get(e);return typeof n=="boolean"?t===(n?"true":"false")?$s.INSTANCE:lo.INSTANCE:new Pk(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:Df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=os.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?$s.INSTANCE:lo.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w_.create(this.key,this.value,this)),this.negated}}class Lf{static create(e,t=null){const i=os.get(e);return typeof i=="boolean"?i?$s.INSTANCE:lo.INSTANCE:new Lf(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:mV(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=os.get(this.key);return typeof e=="boolean"?e?$s.INSTANCE:lo.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=kf.create(this.key,this)),this.negated}}function Ok(s,e){if(typeof s=="string"){const t=parseFloat(s);isNaN(t)||(s=t)}return typeof s=="string"||typeof s=="number"?e(s):$s.INSTANCE}class Fk{static create(e,t,i=null){return Ok(t,n=>new Fk(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:Df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Hk.create(this.key,this.value,this)),this.negated}}class Bk{static create(e,t,i=null){return Ok(t,n=>new Bk(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:Df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Wk.create(this.key,this.value,this)),this.negated}}class Wk{static create(e,t,i=null){return Ok(t,n=>new Wk(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:Df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Bk.create(this.key,this.value,this)),this.negated}}class Hk{static create(e,t,i=null){return Ok(t,n=>new Hk(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:Df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Fk.create(this.key,this.value,this)),this.negated}}class Qv{static create(e,t){return new Qv(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=DP.create(this)),this.negated}}class DP{static create(e){return new DP(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function pV(s){let e=null;for(let t=0,i=s.length;t<i;t++){const n=s[t].substituteConstants();if(s[t]!==n&&e===null){e=[];for(let o=0;o<t;o++)e[o]=s[o]}e!==null&&(e[t]=n)}return e===null?s:e}class wg{static create(e,t,i){return wg._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const n=tv(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=pV(this.expr);return e===this.expr?this:wg.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const n=[];let o=!1;for(const r of e)if(r){if(r.type===1){o=!0;continue}if(r.type===0)return $s.INSTANCE;if(r.type===6){n.push(...r.expr);continue}n.push(r)}if(n.length===0&&o)return lo.INSTANCE;if(n.length!==0){if(n.length===1)return n[0];n.sort(tv);for(let r=1;r<n.length;r++)n[r-1].equals(n[r])&&(n.splice(r,1),r--);if(n.length===1)return n[0];for(;n.length>1;){const r=n[n.length-1];if(r.type!==9)break;n.pop();const a=n.pop(),l=n.length===0,d=Hd.create(r.expr.map(c=>wg.create([c,a],null,i)),null,l);d&&(n.push(d),n.sort(tv))}if(n.length===1)return n[0];if(i){for(let r=0;r<n.length;r++)for(let a=r+1;a<n.length;a++)if(n[r].negate().equals(n[a]))return $s.INSTANCE;if(n.length===1)return n[0]}return new wg(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=Hd.create(e,this,!0)}return this.negated}}class Hd{static create(e,t,i){return Hd._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const n=tv(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=pV(this.expr);return e===this.expr?this:Hd.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],o=!1;if(e){for(let r=0,a=e.length;r<a;r++){const l=e[r];if(l){if(l.type===0){o=!0;continue}if(l.type===1)return lo.INSTANCE;if(l.type===9){n=n.concat(l.expr);continue}n.push(l)}}if(n.length===0&&o)return $s.INSTANCE;n.sort(tv)}if(n.length!==0){if(n.length===1)return n[0];for(let r=1;r<n.length;r++)n[r-1].equals(n[r])&&(n.splice(r,1),r--);if(n.length===1)return n[0];if(i){for(let r=0;r<n.length;r++)for(let a=r+1;a<n.length;a++)if(n[r].negate().equals(n[a]))return lo.INSTANCE;if(n.length===1)return n[0]}return new Hd(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const o of C5(t))for(const r of C5(i))n.push(wg.create([o,r],null,!1));e.unshift(Hd.create(n,null,!1))}this.negated=Hd.create(e,this,!0)}return this.negated}}class he extends kf{static all(){return he._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?he._info.push({...i,key:e}):i!==!0&&he._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return w_.create(this.key,e)}}he._info=[];const Oe=ct("contextKeyService");function mV(s,e){return s<e?-1:s>e?1:0}function Df(s,e,t,i){return s<t?-1:s>t?1:e<i?-1:e>i?1:0}function gN(s,e){if(s.type===0||e.type===1)return!0;if(s.type===9)return e.type===9?v5(s.expr,e.expr):!1;if(e.type===9){for(const t of e.expr)if(gN(s,t))return!0;return!1}if(s.type===6){if(e.type===6)return v5(e.expr,s.expr);for(const t of s.expr)if(gN(t,e))return!0;return!1}return s.equals(e)}function v5(s,e){let t=0,i=0;for(;t<s.length&&i<e.length;){const n=s[t].cmp(e[i]);if(n<0)return!1;n===0&&t++,i++}return t===s.length}function C5(s){return s.type===9?s.expr:[s]}function cE(s,e){if(!s)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function Vk(s,e="Unreachable"){throw new Error(e)}function w5(s){s||je(new Jt("Soft Assertion Failed"))}function Xg(s){if(!s()){debugger;s(),je(new Jt("Assertion Failed"))}}function EP(s,e){let t=0;for(;t<s.length-1;){const i=s[t],n=s[t+1];if(!e(i,n))return!1;t++}return!0}class RJ{constructor(){this.data=new Map}add(e,t){cE(Os(e)),cE(As(t)),cE(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const bi=new RJ;class IP{constructor(){this._coreKeybindings=new Rs,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(So===1){if(e&&e.win)return e.win}else if(So===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=IP.bindToCurrentPlatform(e),i=new Y;if(t&&t.primary){const n=iN(t.primary,So);n&&i.add(this._registerDefaultKeybinding(n,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let n=0,o=t.secondary.length;n<o;n++){const r=t.secondary[n],a=iN(r,So);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-n-1,e.when))}return i}registerCommandAndKeybindingRule(e){return ta(this.registerKeybindingRule(e),pt.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,o,r){const a=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:n,weight2:o,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,Le(()=>{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(PJ)),this._cachedMergedKeybindings.slice(0)}}const co=new IP,MJ={EditorModes:"platform.keybindingsRegistry"};bi.add(MJ.EditorModes,co);function PJ(s,e){if(s.weight1!==e.weight1)return s.weight1-e.weight1;if(s.command&&e.command){if(s.command<e.command)return-1;if(s.command>e.command)return 1}return s.weight2-e.weight2}var OJ=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},S5=function(s,e){return function(t,i){e(t,i,s)}},bS;function wp(s){return s.command!==void 0}function FJ(s){return s.submenu!==void 0}class D{constructor(e){if(D._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);D._instances.set(e,this),this.id=e}}D._instances=new Map;D.CommandPalette=new D("CommandPalette");D.DebugBreakpointsContext=new D("DebugBreakpointsContext");D.DebugCallStackContext=new D("DebugCallStackContext");D.DebugConsoleContext=new D("DebugConsoleContext");D.DebugVariablesContext=new D("DebugVariablesContext");D.NotebookVariablesContext=new D("NotebookVariablesContext");D.DebugHoverContext=new D("DebugHoverContext");D.DebugWatchContext=new D("DebugWatchContext");D.DebugToolBar=new D("DebugToolBar");D.DebugToolBarStop=new D("DebugToolBarStop");D.EditorContext=new D("EditorContext");D.SimpleEditorContext=new D("SimpleEditorContext");D.EditorContent=new D("EditorContent");D.EditorLineNumberContext=new D("EditorLineNumberContext");D.EditorContextCopy=new D("EditorContextCopy");D.EditorContextPeek=new D("EditorContextPeek");D.EditorContextShare=new D("EditorContextShare");D.EditorTitle=new D("EditorTitle");D.EditorTitleRun=new D("EditorTitleRun");D.EditorTitleContext=new D("EditorTitleContext");D.EditorTitleContextShare=new D("EditorTitleContextShare");D.EmptyEditorGroup=new D("EmptyEditorGroup");D.EmptyEditorGroupContext=new D("EmptyEditorGroupContext");D.EditorTabsBarContext=new D("EditorTabsBarContext");D.EditorTabsBarShowTabsSubmenu=new D("EditorTabsBarShowTabsSubmenu");D.EditorTabsBarShowTabsZenModeSubmenu=new D("EditorTabsBarShowTabsZenModeSubmenu");D.EditorActionsPositionSubmenu=new D("EditorActionsPositionSubmenu");D.ExplorerContext=new D("ExplorerContext");D.ExplorerContextShare=new D("ExplorerContextShare");D.ExtensionContext=new D("ExtensionContext");D.GlobalActivity=new D("GlobalActivity");D.CommandCenter=new D("CommandCenter");D.CommandCenterCenter=new D("CommandCenterCenter");D.LayoutControlMenuSubmenu=new D("LayoutControlMenuSubmenu");D.LayoutControlMenu=new D("LayoutControlMenu");D.MenubarMainMenu=new D("MenubarMainMenu");D.MenubarAppearanceMenu=new D("MenubarAppearanceMenu");D.MenubarDebugMenu=new D("MenubarDebugMenu");D.MenubarEditMenu=new D("MenubarEditMenu");D.MenubarCopy=new D("MenubarCopy");D.MenubarFileMenu=new D("MenubarFileMenu");D.MenubarGoMenu=new D("MenubarGoMenu");D.MenubarHelpMenu=new D("MenubarHelpMenu");D.MenubarLayoutMenu=new D("MenubarLayoutMenu");D.MenubarNewBreakpointMenu=new D("MenubarNewBreakpointMenu");D.PanelAlignmentMenu=new D("PanelAlignmentMenu");D.PanelPositionMenu=new D("PanelPositionMenu");D.ActivityBarPositionMenu=new D("ActivityBarPositionMenu");D.MenubarPreferencesMenu=new D("MenubarPreferencesMenu");D.MenubarRecentMenu=new D("MenubarRecentMenu");D.MenubarSelectionMenu=new D("MenubarSelectionMenu");D.MenubarShare=new D("MenubarShare");D.MenubarSwitchEditorMenu=new D("MenubarSwitchEditorMenu");D.MenubarSwitchGroupMenu=new D("MenubarSwitchGroupMenu");D.MenubarTerminalMenu=new D("MenubarTerminalMenu");D.MenubarViewMenu=new D("MenubarViewMenu");D.MenubarHomeMenu=new D("MenubarHomeMenu");D.OpenEditorsContext=new D("OpenEditorsContext");D.OpenEditorsContextShare=new D("OpenEditorsContextShare");D.ProblemsPanelContext=new D("ProblemsPanelContext");D.SCMInputBox=new D("SCMInputBox");D.SCMChangesSeparator=new D("SCMChangesSeparator");D.SCMIncomingChanges=new D("SCMIncomingChanges");D.SCMIncomingChangesContext=new D("SCMIncomingChangesContext");D.SCMIncomingChangesSetting=new D("SCMIncomingChangesSetting");D.SCMOutgoingChanges=new D("SCMOutgoingChanges");D.SCMOutgoingChangesContext=new D("SCMOutgoingChangesContext");D.SCMOutgoingChangesSetting=new D("SCMOutgoingChangesSetting");D.SCMIncomingChangesAllChangesContext=new D("SCMIncomingChangesAllChangesContext");D.SCMIncomingChangesHistoryItemContext=new D("SCMIncomingChangesHistoryItemContext");D.SCMOutgoingChangesAllChangesContext=new D("SCMOutgoingChangesAllChangesContext");D.SCMOutgoingChangesHistoryItemContext=new D("SCMOutgoingChangesHistoryItemContext");D.SCMChangeContext=new D("SCMChangeContext");D.SCMResourceContext=new D("SCMResourceContext");D.SCMResourceContextShare=new D("SCMResourceContextShare");D.SCMResourceFolderContext=new D("SCMResourceFolderContext");D.SCMResourceGroupContext=new D("SCMResourceGroupContext");D.SCMSourceControl=new D("SCMSourceControl");D.SCMSourceControlInline=new D("SCMSourceControlInline");D.SCMSourceControlTitle=new D("SCMSourceControlTitle");D.SCMTitle=new D("SCMTitle");D.SearchContext=new D("SearchContext");D.SearchActionMenu=new D("SearchActionContext");D.StatusBarWindowIndicatorMenu=new D("StatusBarWindowIndicatorMenu");D.StatusBarRemoteIndicatorMenu=new D("StatusBarRemoteIndicatorMenu");D.StickyScrollContext=new D("StickyScrollContext");D.TestItem=new D("TestItem");D.TestItemGutter=new D("TestItemGutter");D.TestMessageContext=new D("TestMessageContext");D.TestMessageContent=new D("TestMessageContent");D.TestPeekElement=new D("TestPeekElement");D.TestPeekTitle=new D("TestPeekTitle");D.TouchBarContext=new D("TouchBarContext");D.TitleBarContext=new D("TitleBarContext");D.TitleBarTitleContext=new D("TitleBarTitleContext");D.TunnelContext=new D("TunnelContext");D.TunnelPrivacy=new D("TunnelPrivacy");D.TunnelProtocol=new D("TunnelProtocol");D.TunnelPortInline=new D("TunnelInline");D.TunnelTitle=new D("TunnelTitle");D.TunnelLocalAddressInline=new D("TunnelLocalAddressInline");D.TunnelOriginInline=new D("TunnelOriginInline");D.ViewItemContext=new D("ViewItemContext");D.ViewContainerTitle=new D("ViewContainerTitle");D.ViewContainerTitleContext=new D("ViewContainerTitleContext");D.ViewTitle=new D("ViewTitle");D.ViewTitleContext=new D("ViewTitleContext");D.CommentEditorActions=new D("CommentEditorActions");D.CommentThreadTitle=new D("CommentThreadTitle");D.CommentThreadActions=new D("CommentThreadActions");D.CommentThreadAdditionalActions=new D("CommentThreadAdditionalActions");D.CommentThreadTitleContext=new D("CommentThreadTitleContext");D.CommentThreadCommentContext=new D("CommentThreadCommentContext");D.CommentTitle=new D("CommentTitle");D.CommentActions=new D("CommentActions");D.CommentsViewThreadActions=new D("CommentsViewThreadActions");D.InteractiveToolbar=new D("InteractiveToolbar");D.InteractiveCellTitle=new D("InteractiveCellTitle");D.InteractiveCellDelete=new D("InteractiveCellDelete");D.InteractiveCellExecute=new D("InteractiveCellExecute");D.InteractiveInputExecute=new D("InteractiveInputExecute");D.IssueReporter=new D("IssueReporter");D.NotebookToolbar=new D("NotebookToolbar");D.NotebookStickyScrollContext=new D("NotebookStickyScrollContext");D.NotebookCellTitle=new D("NotebookCellTitle");D.NotebookCellDelete=new D("NotebookCellDelete");D.NotebookCellInsert=new D("NotebookCellInsert");D.NotebookCellBetween=new D("NotebookCellBetween");D.NotebookCellListTop=new D("NotebookCellTop");D.NotebookCellExecute=new D("NotebookCellExecute");D.NotebookCellExecuteGoTo=new D("NotebookCellExecuteGoTo");D.NotebookCellExecutePrimary=new D("NotebookCellExecutePrimary");D.NotebookDiffCellInputTitle=new D("NotebookDiffCellInputTitle");D.NotebookDiffCellMetadataTitle=new D("NotebookDiffCellMetadataTitle");D.NotebookDiffCellOutputsTitle=new D("NotebookDiffCellOutputsTitle");D.NotebookOutputToolbar=new D("NotebookOutputToolbar");D.NotebookOutlineFilter=new D("NotebookOutlineFilter");D.NotebookOutlineActionMenu=new D("NotebookOutlineActionMenu");D.NotebookEditorLayoutConfigure=new D("NotebookEditorLayoutConfigure");D.NotebookKernelSource=new D("NotebookKernelSource");D.BulkEditTitle=new D("BulkEditTitle");D.BulkEditContext=new D("BulkEditContext");D.TimelineItemContext=new D("TimelineItemContext");D.TimelineTitle=new D("TimelineTitle");D.TimelineTitleContext=new D("TimelineTitleContext");D.TimelineFilterSubMenu=new D("TimelineFilterSubMenu");D.AccountsContext=new D("AccountsContext");D.SidebarTitle=new D("SidebarTitle");D.PanelTitle=new D("PanelTitle");D.AuxiliaryBarTitle=new D("AuxiliaryBarTitle");D.AuxiliaryBarHeader=new D("AuxiliaryBarHeader");D.TerminalInstanceContext=new D("TerminalInstanceContext");D.TerminalEditorInstanceContext=new D("TerminalEditorInstanceContext");D.TerminalNewDropdownContext=new D("TerminalNewDropdownContext");D.TerminalTabContext=new D("TerminalTabContext");D.TerminalTabEmptyAreaContext=new D("TerminalTabEmptyAreaContext");D.TerminalStickyScrollContext=new D("TerminalStickyScrollContext");D.WebviewContext=new D("WebviewContext");D.InlineCompletionsActions=new D("InlineCompletionsActions");D.InlineEditActions=new D("InlineEditActions");D.NewFile=new D("NewFile");D.MergeInput1Toolbar=new D("MergeToolbar1Toolbar");D.MergeInput2Toolbar=new D("MergeToolbar2Toolbar");D.MergeBaseToolbar=new D("MergeBaseToolbar");D.MergeInputResultToolbar=new D("MergeToolbarResultToolbar");D.InlineSuggestionToolbar=new D("InlineSuggestionToolbar");D.InlineEditToolbar=new D("InlineEditToolbar");D.ChatContext=new D("ChatContext");D.ChatCodeBlock=new D("ChatCodeblock");D.ChatMessageTitle=new D("ChatMessageTitle");D.ChatExecute=new D("ChatExecute");D.ChatExecuteSecondary=new D("ChatExecuteSecondary");D.ChatInputSide=new D("ChatInputSide");D.AccessibleView=new D("AccessibleView");D.MultiDiffEditorFileToolbar=new D("MultiDiffEditorFileToolbar");D.DiffEditorHunkToolbar=new D("DiffEditorHunkToolbar");D.DiffEditorSelectionToolbar=new D("DiffEditorSelectionToolbar");const sr=ct("menuService");class Vd{static for(e){let t=this._all.get(e);return t||(t=new Vd(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof Vd&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}Vd._all=new Map;const fn=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new JY({merge:Vd.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(s){return this._commands.set(s.id,s),this._onDidChangeMenu.fire(Vd.for(D.CommandPalette)),Le(()=>{this._commands.delete(s.id)&&this._onDidChangeMenu.fire(Vd.for(D.CommandPalette))})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((e,t)=>s.set(t,e)),s}appendMenuItem(s,e){let t=this._menuItems.get(s);t||(t=new Rs,this._menuItems.set(s,t));const i=t.push(e);return this._onDidChangeMenu.fire(Vd.for(s)),Le(()=>{i(),this._onDidChangeMenu.fire(Vd.for(s))})}appendMenuItems(s){const e=new Y;for(const{id:t,item:i}of s)e.add(this.appendMenuItem(t,i));return e}getMenuItems(s){let e;return this._menuItems.has(s)?e=[...this._menuItems.get(s)]:e=[],s===D.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(s){const e=new Set;for(const t of s)wp(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||s.push({command:t})})}};class Jv extends Im{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let Jo=bS=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,t,i,n,o,r){var a,l;this.hideActions=n,this._commandService=r,this.id=e.id,this.label=bS.label(e,i),this.tooltip=(l=typeof e.tooltip=="string"?e.tooltip:(a=e.tooltip)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:"",this.enabled=!e.precondition||o.contextMatchesRules(e.precondition),this.checked=void 0;let d;if(e.toggled){const c=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=o.contextMatchesRules(c.condition),this.checked&&c.tooltip&&(this.tooltip=typeof c.tooltip=="string"?c.tooltip:c.tooltip.value),this.checked&&Me.isThemeIcon(c.icon)&&(d=c.icon),this.checked&&c.title&&(this.label=typeof c.title=="string"?c.title:c.title.value)}d||(d=Me.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new bS(t,void 0,i,n,o,r):void 0,this._options=i,this.class=d&&Me.asClassName(d)}run(...e){var t,i;let n=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(n=[...n,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};Jo=bS=OJ([S5(4,Oe),S5(5,_i)],Jo);class Us{constructor(e){this.desc=e}}function jt(s){const e=new Y,t=new s,{f1:i,menu:n,keybinding:o,...r}=t.desc;if(pt.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(e.add(pt.registerCommand({id:r.id,handler:(a,...l)=>t.run(a,...l),metadata:r.metadata})),Array.isArray(n))for(const a of n)e.add(fn.appendMenuItem(a.id,{command:{...r,precondition:a.precondition===null?void 0:r.precondition},...a}));else n&&e.add(fn.appendMenuItem(n.id,{command:{...r,precondition:n.precondition===null?void 0:r.precondition},...n}));if(i&&(e.add(fn.appendMenuItem(D.CommandPalette,{command:r,when:r.precondition})),e.add(fn.addCommand(r))),Array.isArray(o))for(const a of o)e.add(co.registerKeybindingRule({...a,id:r.id,when:r.precondition?K.and(r.precondition,a.when):a.when}));else o&&e.add(co.registerKeybindingRule({...o,id:r.id,when:r.precondition?K.and(r.precondition,o.when):o.when}));return e}const _s=ct("telemetryService"),bs=ct("logService");var jn;(function(s){s[s.Off=0]="Off",s[s.Trace=1]="Trace",s[s.Debug=2]="Debug",s[s.Info=3]="Info",s[s.Warning=4]="Warning",s[s.Error=5]="Error"})(jn||(jn={}));const _V=jn.Info;class bV extends W{constructor(){super(...arguments),this.level=_V,this._onDidChangeLogLevel=this._register(new O),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==jn.Off&&this.level<=e}}class BJ extends bV{constructor(e=_V,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(jn.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(jn.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(jn.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(jn.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(jn.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class WJ extends bV{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}function HJ(s){switch(s){case jn.Trace:return"trace";case jn.Debug:return"debug";case jn.Info:return"info";case jn.Warning:return"warn";case jn.Error:return"error";case jn.Off:return"off"}}new he("logLevel",HJ(jn.Info));let $k=class{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=K.and(i,this.precondition):i=this.precondition);const n={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};co.registerKeybindingRule(n)}}pt.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){fn.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}};class S_ extends $k{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort((o,r)=>r.priority-o.priority),{dispose:()=>{for(let o=0;o<this._implementations.length;o++)if(this._implementations[o].implementation===i){this._implementations.splice(o,1);return}}}}runCommand(e,t){const i=e.get(bs),n=e.get(Oe);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const o of this._implementations){if(o.when){const a=n.getContext(Kn());if(!o.when.evaluate(a))continue}const r=o.implementation(e,t);if(r)return i.trace(`Command '${this.id}' was handled by '${o.name}'.`),typeof r=="boolean"?void 0:r}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class vV extends $k{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class an extends $k{static bindToContribution(e){return class extends an{constructor(i){super(i),this._callback=i.handler}runEditorCommand(i,n,o){const r=e(n);r&&this._callback(r,o)}}}static runEditorCommand(e,t,i,n){const o=e.get(St),r=o.getFocusedCodeEditor()||o.getActiveCodeEditor();if(r)return r.invokeWithinContext(a=>{if(a.get(Oe).contextMatchesRules(i??void 0))return n(a,r,t)})}runCommand(e,t){return an.runEditorCommand(e,t,this.precondition,(i,n,o)=>this.runEditorCommand(i,n,o))}}class fe extends an{static convertOptions(e){let t;Array.isArray(e.menuOpts)?t=e.menuOpts:e.menuOpts?t=[e.menuOpts]:t=[];function i(n){return n.menuId||(n.menuId=D.EditorContext),n.title||(n.title=e.label),n.when=K.and(e.precondition,n.when),n}return Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(fe.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(_s).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class CV extends fe{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((i,n)=>n[0]-i[0]),{dispose:()=>{for(let i=0;i<this._implementations.length;i++)if(this._implementations[i][1]===t){this._implementations.splice(i,1);return}}}}run(e,t,i){for(const n of this._implementations){const o=n[1](e,t,i);if(o)return typeof o=="boolean"?void 0:o}}}class nl extends Us{run(e,...t){const i=e.get(St),n=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(n)return n.invokeWithinContext(o=>{var r,a;const l=o.get(Oe),d=o.get(bs);if(!l.contextMatchesRules((r=this.desc.precondition)!==null&&r!==void 0?r:void 0)){d.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(a=this.desc.precondition)===null||a===void 0?void 0:a.serialize());return}return this.runEditorCommand(o,n,...t)})}}function fd(s,e){pt.registerCommand(s,function(t,...i){const n=t.get(De),[o,r]=i;xt(Ae.isUri(o)),xt(F.isIPosition(r));const a=t.get(fi).getModel(o);if(a){const l=F.lift(r);return n.invokeFunction(e,a,l,...i.slice(2))}return t.get(fo).createModelReference(o).then(l=>new Promise((d,c)=>{try{const u=n.invokeFunction(e,l.object.textEditorModel,F.lift(r),i.slice(2));d(u)}catch(u){c(u)}}).finally(()=>{l.dispose()}))})}function le(s){return gr.INSTANCE.registerEditorCommand(s),s}function Q(s){const e=new s;return gr.INSTANCE.registerEditorAction(e),e}function wV(s){return gr.INSTANCE.registerEditorAction(s),s}function VJ(s){gr.INSTANCE.registerEditorAction(s)}function yt(s,e,t){gr.INSTANCE.registerEditorContribution(s,e,t)}var Yp;(function(s){function e(r){return gr.INSTANCE.getEditorCommand(r)}s.getEditorCommand=e;function t(){return gr.INSTANCE.getEditorActions()}s.getEditorActions=t;function i(){return gr.INSTANCE.getEditorContributions()}s.getEditorContributions=i;function n(r){return gr.INSTANCE.getEditorContributions().filter(a=>r.indexOf(a.id)>=0)}s.getSomeEditorContributions=n;function o(){return gr.INSTANCE.getDiffEditorContributions()}s.getDiffEditorContributions=o})(Yp||(Yp={}));const $J={EditorCommonContributions:"editor.contributions"};class gr{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}gr.INSTANCE=new gr;bi.add($J.EditorCommonContributions,gr.INSTANCE);function YC(s){return s.register(),s}const SV=YC(new S_({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:D.MenubarEditMenu,group:"1_do",title:p({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:D.CommandPalette,group:"",title:p("undo","Undo"),order:1}]}));YC(new vV(SV,{id:"default:undo",precondition:void 0}));const yV=YC(new S_({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:D.MenubarEditMenu,group:"1_do",title:p({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:D.CommandPalette,group:"",title:p("redo","Redo"),order:1}]}));YC(new vV(yV,{id:"default:redo",precondition:void 0}));const zJ=YC(new S_({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:D.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:D.CommandPalette,group:"",title:p("selectAll","Select All"),order:1}]})),UJ="$initialize";let y5=!1;function fN(s){xh&&(y5||(y5=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(s.message))}class jJ{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class x5{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class qJ{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class KJ{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class GJ{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class ZJ{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new jJ(this._workerId,i,e,t))})}listen(e,t){let i=null;const n=new O({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new qJ(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new GJ(this._workerId,i)),i=null}});return n.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then(n=>{this._send(new x5(this._workerId,t,n,void 0))},n=>{n.detail instanceof Error&&(n.detail=Z4(n.detail)),this._send(new x5(this._workerId,t,void 0,Z4(n)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(n=>{this._send(new KJ(this._workerId,t,n))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const t=[];if(e.type===0)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else e.type===1&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class YJ extends W{constructor(e,t,i){super();let n=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",c=>{this._protocol.handleMessage(c)},c=>{n?.(c)})),this._protocol=new ZJ({sendMessage:(c,u)=>{this._worker.postMessage(c,u)},handleMessage:(c,u)=>{if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,u))}catch(h){return Promise.reject(h)}},handleEvent:(c,u)=>{if(kV(c)){const h=i[c].call(i,u);if(typeof h!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return h}if(xV(c)){const h=i[c];if(typeof h!="function")throw new Error(`Missing event ${c} on main thread host.`);return h}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const r=globalThis.require;typeof r<"u"&&typeof r.getConfig=="function"?o=r.getConfig():typeof globalThis.requirejs<"u"&&(o=globalThis.requirejs.s.contexts._.config);const a=XM(i);this._onModuleLoaded=this._protocol.sendMessage(UJ,[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,a]);const l=(c,u)=>this._request(c,u),d=(c,u)=>this._protocol.listen(c,u);this._lazyProxy=new Promise((c,u)=>{n=u,this._onModuleLoaded.then(h=>{c(XJ(h,l,d))},h=>{u(h),this._onError("Worker failed to load "+t,h)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function xV(s){return s[0]==="o"&&s[1]==="n"&&yl(s.charCodeAt(2))}function kV(s){return/^onDynamic/.test(s)&&yl(s.charCodeAt(9))}function XJ(s,e,t){const i=r=>function(){const a=Array.prototype.slice.call(arguments,0);return e(r,a)},n=r=>function(a){return t(r,a)},o={};for(const r of s){if(kV(r)){o[r]=n(r);continue}if(xV(r)){o[r]=t(r,void 0);continue}o[r]=i(r)}return o}function Ac(s,e){var t;const i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(s,e)}catch(n){je(n);return}try{return(t=Bt.trustedTypes)===null||t===void 0?void 0:t.createPolicy(s,e)}catch(n){je(n);return}}const k5=Ac("defaultWorkerFactory",{createScriptURL:s=>s});function QJ(s){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",s);if(typeof e.getWorkerUrl=="function"){const t=e.getWorkerUrl("workerMain.js",s);return new Worker(k5?k5.createScriptURL(t):t,{name:s})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function JJ(s){return typeof s.then=="function"}class eee extends W{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;const r=QJ(i);JJ(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(a=>{a.onmessage=function(l){n(l.data)},a.onmessageerror=o,typeof a.addEventListener=="function"&&a.addEventListener("error",o)}),this._register(Le(()=>{var a;(a=this.worker)===null||a===void 0||a.then(l=>{l.onmessage=null,l.onmessageerror=null,l.removeEventListener("error",o),l.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,t){var i;(i=this.worker)===null||i===void 0||i.then(n=>{try{n.postMessage(e,t)}catch(o){je(o),je(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:o}))}})}}class zk{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++zk.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new eee(e,n,this._label||"anonymous"+n,t,o=>{fN(o),this._webWorkerFailedBeforeError=o,i(o)})}}zk.LAST_WORKER_ID=0;var Gi;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(Gi||(Gi={}));class uE{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1;break}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(e.getTokenCount()===0)return!0;const i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const n=String.fromCharCode(i);if(!this.open.includes(n)&&!this.close.includes(n))return n}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class tee{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)G_(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),G_(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),G_(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),G_(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),t.close.length===1&&t.open.length===1&&G_(this.autoClosingPairsCloseSingleChar,t.close,t)}}function G_(s,e,t){s.has(e)?s.get(e).push(t):s.set(e,[t])}function Uk(s,e){const t=s.getCount(),i=s.findTokenIndexAtOffset(e),n=s.getLanguageId(i);let o=i;for(;o+1<t&&s.getLanguageId(o+1)===n;)o++;let r=i;for(;r>0&&s.getLanguageId(r-1)===n;)r--;return new iee(s,n,r,o+1,s.getStartOffset(r),s.getEndOffset(o))}class iee{constructor(e,t,i,n,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function _l(s){return(s&3)!==0}class Tm{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new uE(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new uE({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new uE({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:Tm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:Tm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}Tm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])>
@@ -1466,4 +1466,4 @@ ${lZ(i)}`;return t}};function lZ(s){let e=`*@${s.name}*`;if(s.name==="param"&&s.
1466
1466
 
1467
1467
  `+l:"")}]}}},hZ=class extends ca{async provideDocumentHighlights(s,e,t){const i=s.uri,n=s.getOffsetAt(e),o=await this._worker(i);if(s.isDisposed())return;const r=await o.getDocumentHighlights(i.toString(),n,[i.toString()]);if(!(!r||s.isDisposed()))return r.flatMap(a=>a.highlightSpans.map(l=>({range:this._textSpanToRange(s,l.textSpan),kind:l.kind==="writtenReference"?We.languages.DocumentHighlightKind.Write:We.languages.DocumentHighlightKind.Text})))}},gZ=class extends ca{constructor(s,e){super(e),this._libFiles=s}async provideDefinition(s,e,t){const i=s.uri,n=s.getOffsetAt(e),o=await this._worker(i);if(s.isDisposed())return;const r=await o.getDefinitionAtPosition(i.toString(),n);if(!r||s.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(r.map(l=>We.Uri.parse(l.fileName))),s.isDisposed()))return;const a=[];for(let l of r){const d=this._libFiles.getOrCreateModel(l.fileName);d&&a.push({uri:d.uri,range:this._textSpanToRange(d,l.textSpan)})}return a}},fZ=class extends ca{constructor(s,e){super(e),this._libFiles=s}async provideReferences(s,e,t,i){const n=s.uri,o=s.getOffsetAt(e),r=await this._worker(n);if(s.isDisposed())return;const a=await r.getReferencesAtPosition(n.toString(),o);if(!a||s.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(a.map(d=>We.Uri.parse(d.fileName))),s.isDisposed()))return;const l=[];for(let d of a){const c=this._libFiles.getOrCreateModel(d.fileName);c&&l.push({uri:c.uri,range:this._textSpanToRange(c,d.textSpan)})}return l}},pZ=class extends ca{async provideDocumentSymbols(s,e){const t=s.uri,i=await this._worker(t);if(s.isDisposed())return;const n=await i.getNavigationTree(t.toString());if(!n||s.isDisposed())return;const o=(a,l)=>({name:a.text,detail:"",kind:Ao[a.kind]||We.languages.SymbolKind.Variable,range:this._textSpanToRange(s,a.spans[0]),selectionRange:this._textSpanToRange(s,a.spans[0]),tags:[],children:a.childItems?.map(c=>o(c,a.text)),containerName:l});return n.childItems?n.childItems.map(a=>o(a)):[]}},ui=class{static{this.unknown=""}static{this.keyword="keyword"}static{this.script="script"}static{this.module="module"}static{this.class="class"}static{this.interface="interface"}static{this.type="type"}static{this.enum="enum"}static{this.variable="var"}static{this.localVariable="local var"}static{this.function="function"}static{this.localFunction="local function"}static{this.memberFunction="method"}static{this.memberGetAccessor="getter"}static{this.memberSetAccessor="setter"}static{this.memberVariable="property"}static{this.constructorImplementation="constructor"}static{this.callSignature="call"}static{this.indexSignature="index"}static{this.constructSignature="construct"}static{this.parameter="parameter"}static{this.typeParameter="type parameter"}static{this.primitiveType="primitive type"}static{this.label="label"}static{this.alias="alias"}static{this.const="const"}static{this.let="let"}static{this.warning="warning"}},Ao=Object.create(null);Ao[ui.module]=We.languages.SymbolKind.Module;Ao[ui.class]=We.languages.SymbolKind.Class;Ao[ui.enum]=We.languages.SymbolKind.Enum;Ao[ui.interface]=We.languages.SymbolKind.Interface;Ao[ui.memberFunction]=We.languages.SymbolKind.Method;Ao[ui.memberVariable]=We.languages.SymbolKind.Property;Ao[ui.memberGetAccessor]=We.languages.SymbolKind.Property;Ao[ui.memberSetAccessor]=We.languages.SymbolKind.Property;Ao[ui.variable]=We.languages.SymbolKind.Variable;Ao[ui.const]=We.languages.SymbolKind.Variable;Ao[ui.localVariable]=We.languages.SymbolKind.Variable;Ao[ui.variable]=We.languages.SymbolKind.Variable;Ao[ui.function]=We.languages.SymbolKind.Function;Ao[ui.localFunction]=We.languages.SymbolKind.Function;var xf=class extends ca{static _convertOptions(s){return{ConvertTabsToSpaces:s.insertSpaces,TabSize:s.tabSize,IndentSize:s.tabSize,IndentStyle:2,NewLineCharacter:`
1468
1468
  `,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(s,e){return{text:e.newText,range:this._textSpanToRange(s,e.span)}}},mZ=class extends xf{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(s,e,t,i){const n=s.uri,o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(n);if(s.isDisposed())return;const l=await a.getFormattingEditsForRange(n.toString(),o,r,xf._convertOptions(t));if(!(!l||s.isDisposed()))return l.map(d=>this._convertTextChanges(s,d))}},_Z=class extends xf{get autoFormatTriggerCharacters(){return[";","}",`
1469
- `]}async provideOnTypeFormattingEdits(s,e,t,i,n){const o=s.uri,r=s.getOffsetAt(e),a=await this._worker(o);if(s.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(o.toString(),r,t,xf._convertOptions(i));if(!(!l||s.isDisposed()))return l.map(d=>this._convertTextChanges(s,d))}},bZ=class extends xf{async provideCodeActions(s,e,t,i){const n=s.uri,o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=xf._convertOptions(s.getOptions()),l=t.markers.filter(h=>h.code).map(h=>h.code).map(Number),d=await this._worker(n);if(s.isDisposed())return;const c=await d.getCodeFixesAtPosition(n.toString(),o,r,l,a);return!c||s.isDisposed()?{actions:[],dispose:()=>{}}:{actions:c.filter(h=>h.changes.filter(g=>g.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(s,t,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(s,e,t){const i=[];for(const o of t.changes)for(const r of o.textChanges)i.push({resource:s.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(s,r.span),text:r.newText}});return{title:t.description,edit:{edits:i},diagnostics:e.markers,kind:"quickfix"}}},vZ=class extends ca{constructor(s,e){super(e),this._libFiles=s}async provideRenameEdits(s,e,t,i){const n=s.uri,o=n.toString(),r=s.getOffsetAt(e),a=await this._worker(n);if(s.isDisposed())return;const l=await a.getRenameInfo(o,r,{allowRenameOfImportPath:!1});if(l.canRename===!1)return{edits:[],rejectReason:l.localizedErrorMessage};if(l.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const d=await a.findRenameLocations(o,r,!1,!1,!1);if(!d||s.isDisposed())return;const c=[];for(const u of d){const h=this._libFiles.getOrCreateModel(u.fileName);if(h)c.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,u.textSpan),text:t}});else throw new Error(`Unknown file ${u.fileName}.`)}return{edits:c}}},CZ=class extends ca{async provideInlayHints(s,e,t){const i=s.uri,n=i.toString(),o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(i);return s.isDisposed()?null:{hints:(await a.provideInlayHints(n,o,r)).map(c=>({...c,label:c.text,position:s.getPositionAt(c.position),kind:this._convertHintKind(c.kind)})),dispose:()=>{}}}_convertHintKind(s){switch(s){case"Parameter":return We.languages.InlayHintKind.Parameter;case"Type":return We.languages.InlayHintKind.Type;default:return We.languages.InlayHintKind.Type}}},qM,KM;function fMe(s){KM=wZ(s,"typescript")}function pMe(s){qM=wZ(s,"javascript")}function mMe(){return new Promise((s,e)=>{if(!qM)return e("JavaScript not registered!");s(qM)})}function _Me(){return new Promise((s,e)=>{if(!KM)return e("TypeScript not registered!");s(KM)})}function wZ(s,e){const t=[],i=new sZ(e,s),n=(...a)=>i.getLanguageServiceWorker(...a),o=new oZ(n);function r(){const{modeConfiguration:a}=s;bMe(t),a.completionItems&&t.push(We.languages.registerCompletionItemProvider(e,new aZ(n))),a.signatureHelp&&t.push(We.languages.registerSignatureHelpProvider(e,new dZ(n))),a.hovers&&t.push(We.languages.registerHoverProvider(e,new uZ(n))),a.documentHighlights&&t.push(We.languages.registerDocumentHighlightProvider(e,new hZ(n))),a.definitions&&t.push(We.languages.registerDefinitionProvider(e,new gZ(o,n))),a.references&&t.push(We.languages.registerReferenceProvider(e,new fZ(o,n))),a.documentSymbols&&t.push(We.languages.registerDocumentSymbolProvider(e,new pZ(n))),a.rename&&t.push(We.languages.registerRenameProvider(e,new vZ(o,n))),a.documentRangeFormattingEdits&&t.push(We.languages.registerDocumentRangeFormattingEditProvider(e,new mZ(n))),a.onTypeFormattingEdits&&t.push(We.languages.registerOnTypeFormattingEditProvider(e,new _Z(n))),a.codeActions&&t.push(We.languages.registerCodeActionProvider(e,new bZ(n))),a.inlayHints&&t.push(We.languages.registerInlayHintsProvider(e,new CZ(n))),a.diagnostics&&t.push(new rZ(o,s,e,n))}return r(),n}function bMe(s){for(;s.length;)s.pop().dispose()}const vMe=Object.freeze(Object.defineProperty({__proto__:null,Adapter:ca,CodeActionAdaptor:bZ,DefinitionAdapter:gZ,DiagnosticsAdapter:rZ,DocumentHighlightAdapter:hZ,FormatAdapter:mZ,FormatHelper:xf,FormatOnTypeAdapter:_Z,InlayHintsAdapter:CZ,Kind:ui,LibFiles:oZ,OutlineAdapter:pZ,QuickInfoAdapter:uZ,ReferenceAdapter:fZ,RenameAdapter:vZ,SignatureHelpAdapter:dZ,SuggestAdapter:aZ,WorkerManager:sZ,flattenDiagnosticMessageText:wk,getJavaScriptWorker:mMe,getTypeScriptWorker:_Me,setupJavaScript:pMe,setupTypeScript:fMe},Symbol.toStringTag,{value:"Module"}));function CMe(s){return new Worker(""+new URL("json.worker-CV0MTB3L.js",import.meta.url).href,{name:s?.name})}const a3e=Object.freeze(Object.defineProperty({__proto__:null,default:CMe},Symbol.toStringTag,{value:"Module"}));function wMe(s){return new Worker(""+new URL("css.worker-CilUBJBN.js",import.meta.url).href,{name:s?.name})}const l3e=Object.freeze(Object.defineProperty({__proto__:null,default:wMe},Symbol.toStringTag,{value:"Module"}));function SMe(s){return new Worker(""+new URL("html.worker-CNHktepm.js",import.meta.url).href,{name:s?.name})}const d3e=Object.freeze(Object.defineProperty({__proto__:null,default:SMe},Symbol.toStringTag,{value:"Module"}));function yMe(s){return new Worker(""+new URL("ts.worker-mZI20X7J.js",import.meta.url).href,{name:s?.name})}const c3e=Object.freeze(Object.defineProperty({__proto__:null,default:yMe},Symbol.toStringTag,{value:"Module"}));function xMe(s){return new Worker(""+new URL("editor.worker-BJZ5cnST.js",import.meta.url).href,{name:s?.name})}const u3e=Object.freeze(Object.defineProperty({__proto__:null,default:xMe},Symbol.toStringTag,{value:"Module"}));export{ye as _,u3e as a,l3e as c,jbe as e,d3e as h,a3e as j,c3e as t};
1469
+ `]}async provideOnTypeFormattingEdits(s,e,t,i,n){const o=s.uri,r=s.getOffsetAt(e),a=await this._worker(o);if(s.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(o.toString(),r,t,xf._convertOptions(i));if(!(!l||s.isDisposed()))return l.map(d=>this._convertTextChanges(s,d))}},bZ=class extends xf{async provideCodeActions(s,e,t,i){const n=s.uri,o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=xf._convertOptions(s.getOptions()),l=t.markers.filter(h=>h.code).map(h=>h.code).map(Number),d=await this._worker(n);if(s.isDisposed())return;const c=await d.getCodeFixesAtPosition(n.toString(),o,r,l,a);return!c||s.isDisposed()?{actions:[],dispose:()=>{}}:{actions:c.filter(h=>h.changes.filter(g=>g.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(s,t,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(s,e,t){const i=[];for(const o of t.changes)for(const r of o.textChanges)i.push({resource:s.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(s,r.span),text:r.newText}});return{title:t.description,edit:{edits:i},diagnostics:e.markers,kind:"quickfix"}}},vZ=class extends ca{constructor(s,e){super(e),this._libFiles=s}async provideRenameEdits(s,e,t,i){const n=s.uri,o=n.toString(),r=s.getOffsetAt(e),a=await this._worker(n);if(s.isDisposed())return;const l=await a.getRenameInfo(o,r,{allowRenameOfImportPath:!1});if(l.canRename===!1)return{edits:[],rejectReason:l.localizedErrorMessage};if(l.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const d=await a.findRenameLocations(o,r,!1,!1,!1);if(!d||s.isDisposed())return;const c=[];for(const u of d){const h=this._libFiles.getOrCreateModel(u.fileName);if(h)c.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,u.textSpan),text:t}});else throw new Error(`Unknown file ${u.fileName}.`)}return{edits:c}}},CZ=class extends ca{async provideInlayHints(s,e,t){const i=s.uri,n=i.toString(),o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(i);return s.isDisposed()?null:{hints:(await a.provideInlayHints(n,o,r)).map(c=>({...c,label:c.text,position:s.getPositionAt(c.position),kind:this._convertHintKind(c.kind)})),dispose:()=>{}}}_convertHintKind(s){switch(s){case"Parameter":return We.languages.InlayHintKind.Parameter;case"Type":return We.languages.InlayHintKind.Type;default:return We.languages.InlayHintKind.Type}}},qM,KM;function fMe(s){KM=wZ(s,"typescript")}function pMe(s){qM=wZ(s,"javascript")}function mMe(){return new Promise((s,e)=>{if(!qM)return e("JavaScript not registered!");s(qM)})}function _Me(){return new Promise((s,e)=>{if(!KM)return e("TypeScript not registered!");s(KM)})}function wZ(s,e){const t=[],i=new sZ(e,s),n=(...a)=>i.getLanguageServiceWorker(...a),o=new oZ(n);function r(){const{modeConfiguration:a}=s;bMe(t),a.completionItems&&t.push(We.languages.registerCompletionItemProvider(e,new aZ(n))),a.signatureHelp&&t.push(We.languages.registerSignatureHelpProvider(e,new dZ(n))),a.hovers&&t.push(We.languages.registerHoverProvider(e,new uZ(n))),a.documentHighlights&&t.push(We.languages.registerDocumentHighlightProvider(e,new hZ(n))),a.definitions&&t.push(We.languages.registerDefinitionProvider(e,new gZ(o,n))),a.references&&t.push(We.languages.registerReferenceProvider(e,new fZ(o,n))),a.documentSymbols&&t.push(We.languages.registerDocumentSymbolProvider(e,new pZ(n))),a.rename&&t.push(We.languages.registerRenameProvider(e,new vZ(o,n))),a.documentRangeFormattingEdits&&t.push(We.languages.registerDocumentRangeFormattingEditProvider(e,new mZ(n))),a.onTypeFormattingEdits&&t.push(We.languages.registerOnTypeFormattingEditProvider(e,new _Z(n))),a.codeActions&&t.push(We.languages.registerCodeActionProvider(e,new bZ(n))),a.inlayHints&&t.push(We.languages.registerInlayHintsProvider(e,new CZ(n))),a.diagnostics&&t.push(new rZ(o,s,e,n))}return r(),n}function bMe(s){for(;s.length;)s.pop().dispose()}const vMe=Object.freeze(Object.defineProperty({__proto__:null,Adapter:ca,CodeActionAdaptor:bZ,DefinitionAdapter:gZ,DiagnosticsAdapter:rZ,DocumentHighlightAdapter:hZ,FormatAdapter:mZ,FormatHelper:xf,FormatOnTypeAdapter:_Z,InlayHintsAdapter:CZ,Kind:ui,LibFiles:oZ,OutlineAdapter:pZ,QuickInfoAdapter:uZ,ReferenceAdapter:fZ,RenameAdapter:vZ,SignatureHelpAdapter:dZ,SuggestAdapter:aZ,WorkerManager:sZ,flattenDiagnosticMessageText:wk,getJavaScriptWorker:mMe,getTypeScriptWorker:_Me,setupJavaScript:pMe,setupTypeScript:fMe},Symbol.toStringTag,{value:"Module"}));export{ye as _,jbe as e};