@vtj/pro 0.12.55 → 0.12.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/element-plus/dark/css-vars.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +14 -14
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/vant/vant.min.js +3 -3
- package/dist/@vtj/materials/deps/xe-utils/xe-utils.umd.min.js +2 -2
- package/dist/assets/{Editor-Dj8jjfkD-CcbaDQiC.js → Editor-CQx8E24o-B8_KDgQC.js} +67 -66
- package/dist/assets/Editor-CQx8E24o-DMB3Sg0r.css +1 -0
- package/dist/assets/{auth-DHRDCNCT.js → auth-C8GQ3g9o.js} +1 -1
- package/dist/assets/{css.worker-DhE07keG-DPvIRz-E.js → css.worker-C5JgIHzc-CCLe-mpY.js} +28 -28
- package/dist/assets/editor.worker-CTVKatl8-DyVEGNF5.js +1 -0
- package/dist/assets/element-plus-CxJJf0IB.css +1 -0
- package/dist/assets/element-plus-ciXMzd3x.js +13 -0
- package/dist/assets/html.worker-CpAHPonC-CZ4D_AMu.js +1 -0
- package/dist/assets/{index-OUypupYR.js → index-C3NixgMU.js} +2 -2
- package/dist/assets/{index-CR_6gJFO.js → index-Ud_K84pS.js} +1 -1
- package/dist/assets/json.worker-CDQRe8__-H6ZJu_U5.js +1 -0
- package/dist/assets/{monaco-editor-CrbCX11s.js → monaco-editor-B5WUUp7a.js} +1 -1
- package/dist/assets/{page-BpbRAmzy.js → page-DR2hj_dw.js} +1 -1
- package/dist/assets/{preview-CKRdukJm.js → preview-DWbKd2vh.js} +1 -1
- package/dist/assets/{ts.worker-Bjq4oI3m-CFV77luR.js → ts.worker-BNiKFy3_-D-t6lqsO.js} +93 -93
- package/dist/assets/utils-wu9LBJjf.js +1 -0
- package/dist/assets/vxe-Cxl6Y1mN.js +4 -0
- package/dist/index.html +6 -6
- package/dist/uni/assets/{index-ConmhRsx.js → index-Bx4kS9bf.js} +4 -4
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/dist/assets/Editor-Dj8jjfkD-DlV0tb7T.css +0 -1
- package/dist/assets/editor.worker-DKpUct5n-Y3jripZQ.js +0 -1
- package/dist/assets/element-plus-C4VDY0xv.css +0 -1
- package/dist/assets/element-plus-DPYGYUH0.js +0 -13
- package/dist/assets/html.worker-C5hxLCyX-CnBobk15.js +0 -1
- package/dist/assets/json.worker-DCDqLFYI-C7_rWj4n.js +0 -1
- package/dist/assets/utils-UrECP--j.js +0 -1
- package/dist/assets/vxe-DdSKlx0d.js +0 -4
|
@@ -8,7 +8,7 @@ var Yne=Object.defineProperty,Xne=Object.defineProperties;var Qne=Object.getOwnP
|
|
|
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 SG=new yoe;function ze(s){Jr(s)||SG.onUnexpectedError(s)}function Pi(s){Jr(s)||SG.onUnexpectedExternalError(s)}function A6(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:mb.isErrorNoTelemetry(s)}}return s}const Gx="Canceled";function Jr(s){return s instanceof Sa?!0:s instanceof Error&&s.name===Gx&&s.message===Gx}class Sa extends Error{constructor(){super(Gx),this.name=this.message}}function xoe(){const s=new Error(Gx);return s.name=s.message,s}function zr(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}function mB(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}class koe extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class mb extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof mb)return e;const t=new mb;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class xt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,xt.prototype)}}function bh(s,e){const t=this;let i=!1,n;return function(){return i||(i=!0,n=s.apply(t,arguments)),n}}function UD(s){return typeof s=="object"&&s!==null&&typeof s.dispose=="function"&&s.dispose.length===0}function Ht(s){if(ut.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 wa(...s){return ke(()=>Ht(s))}function ke(s){return{dispose:bh(()=>{s()})}}const rI=class rI{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{Ht(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?rI.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)}};rI.DISABLE_DISPOSED_WARNING=!1;let G=rI;const c6=class c6{constructor(){this._store=new G,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)}};c6.None=Object.freeze({dispose(){}});let B=c6;class gn{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.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)==null||e.dispose(),this._value=void 0}}class Loe{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Eoe{constructor(e){this.object=e}dispose(){}}class _B{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Ht(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.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))==null||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const Ioe=globalThis.performance&&typeof globalThis.performance.now=="function";class Cn{static create(e){return new Cn(e)}constructor(e){this._now=Ioe&&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 ce;(function(s){s.None=()=>B.None;function e(q,V){return h(q,()=>{},0,void 0,!0,void 0,V)}s.defer=e;function t(q){return(V,Q=null,de)=>{let be=!1,Ce;return Ce=q(Se=>{if(!be)return Ce?Ce.dispose():be=!0,V.call(Q,Se)},null,de),be&&Ce.dispose(),Ce}}s.once=t;function i(q,V){return s.once(s.filter(q,V))}s.onceIf=i;function n(q,V,Q){return d((de,be=null,Ce)=>q(Se=>de.call(be,V(Se)),null,Ce),Q)}s.map=n;function o(q,V,Q){return d((de,be=null,Ce)=>q(Se=>{V(Se),de.call(be,Se)},null,Ce),Q)}s.forEach=o;function r(q,V,Q){return d((de,be=null,Ce)=>q(Se=>V(Se)&&de.call(be,Se),null,Ce),Q)}s.filter=r;function a(q){return q}s.signal=a;function l(...q){return(V,Q=null,de)=>{const be=wa(...q.map(Ce=>Ce(Se=>V.call(Q,Se))));return u(be,de)}}s.any=l;function c(q,V,Q,de){let be=Q;return n(q,Ce=>(be=V(be,Ce),be),de)}s.reduce=c;function d(q,V){let Q;const de={onWillAddFirstListener(){Q=q(be.fire,be)},onDidRemoveLastListener(){Q==null||Q.dispose()}},be=new O(de);return V==null||V.add(be),be.event}function u(q,V){return V instanceof Array?V.push(q):V&&V.add(q),q}function h(q,V,Q=100,de=!1,be=!1,Ce,Se){let Oe,Fe,ci,At=0,ki;const Zt={leakWarningThreshold:Ce,onWillAddFirstListener(){Oe=q(Dt=>{At++,Fe=V(Fe,Dt),de&&!ci&&(en.fire(Fe),Fe=void 0),ki=()=>{const tn=Fe;Fe=void 0,ci=void 0,(!de||At>1)&&en.fire(tn),At=0},typeof Q=="number"?(clearTimeout(ci),ci=setTimeout(ki,Q)):ci===void 0&&(ci=0,queueMicrotask(ki))})},onWillRemoveListener(){be&&At>0&&(ki==null||ki())},onDidRemoveLastListener(){ki=void 0,Oe.dispose()}},en=new O(Zt);return Se==null||Se.add(en),en.event}s.debounce=h;function g(q,V=0,Q){return s.debounce(q,(de,be)=>de?(de.push(be),de):[be],V,void 0,!0,void 0,Q)}s.accumulate=g;function f(q,V=(de,be)=>de===be,Q){let de=!0,be;return r(q,Ce=>{const Se=de||!V(Ce,be);return de=!1,be=Ce,Se},Q)}s.latch=f;function m(q,V,Q){return[s.filter(q,V,Q),s.filter(q,de=>!V(de),Q)]}s.split=m;function _(q,V=!1,Q=[],de){let be=Q.slice(),Ce=q(Fe=>{be?be.push(Fe):Oe.fire(Fe)});de&&de.add(Ce);const Se=()=>{be==null||be.forEach(Fe=>Oe.fire(Fe)),be=null},Oe=new O({onWillAddFirstListener(){Ce||(Ce=q(Fe=>Oe.fire(Fe)),de&&de.add(Ce))},onDidAddFirstListener(){be&&(V?setTimeout(Se):Se())},onDidRemoveLastListener(){Ce&&Ce.dispose(),Ce=null}});return de&&de.add(Oe),Oe.event}s.buffer=_;function b(q,V){return(de,be,Ce)=>{const Se=V(new w);return q(function(Oe){const Fe=Se.evaluate(Oe);Fe!==v&&de.call(be,Fe)},void 0,Ce)}}s.chain=b;const v=Symbol("HaltChainable");class w{constructor(){this.steps=[]}map(V){return this.steps.push(V),this}forEach(V){return this.steps.push(Q=>(V(Q),Q)),this}filter(V){return this.steps.push(Q=>V(Q)?Q:v),this}reduce(V,Q){let de=Q;return this.steps.push(be=>(de=V(de,be),de)),this}latch(V=(Q,de)=>Q===de){let Q=!0,de;return this.steps.push(be=>{const Ce=Q||!V(be,de);return Q=!1,de=be,Ce?be:v}),this}evaluate(V){for(const Q of this.steps)if(V=Q(V),V===v)break;return V}}function C(q,V,Q=de=>de){const de=(...Oe)=>Se.fire(Q(...Oe)),be=()=>q.on(V,de),Ce=()=>q.removeListener(V,de),Se=new O({onWillAddFirstListener:be,onDidRemoveLastListener:Ce});return Se.event}s.fromNodeEventEmitter=C;function S(q,V,Q=de=>de){const de=(...Oe)=>Se.fire(Q(...Oe)),be=()=>q.addEventListener(V,de),Ce=()=>q.removeEventListener(V,de),Se=new O({onWillAddFirstListener:be,onDidRemoveLastListener:Ce});return Se.event}s.fromDOMEventEmitter=S;function y(q){return new Promise(V=>t(q)(V))}s.toPromise=y;function k(q){const V=new O;return q.then(Q=>{V.fire(Q)},()=>{V.fire(void 0)}).finally(()=>{V.dispose()}),V.event}s.fromPromise=k;function E(q,V){return q(Q=>V.fire(Q))}s.forward=E;function N(q,V,Q){return V(Q),q(de=>V(de))}s.runAndSubscribe=N;class W{constructor(V,Q){this._observable=V,this._counter=0,this._hasChanged=!1;const de={onWillAddFirstListener:()=>{V.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{V.removeObserver(this)}};this.emitter=new O(de),Q&&Q.add(this.emitter)}beginUpdate(V){this._counter++}handlePossibleChange(V){}handleChange(V,Q){this._hasChanged=!0}endUpdate(V){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function H(q,V){return new W(q,V).emitter.event}s.fromObservable=H;function z(q){return(V,Q,de)=>{let be=0,Ce=!1;const Se={beginUpdate(){be++},endUpdate(){be--,be===0&&(q.reportChanges(),Ce&&(Ce=!1,V.call(Q)))},handlePossibleChange(){},handleChange(){Ce=!0}};q.addObserver(Se),q.reportChanges();const Oe={dispose(){q.removeObserver(Se)}};return de instanceof G?de.add(Oe):Array.isArray(de)&&de.push(Oe),Oe}}s.fromObservableLight=z})(ce||(ce={}));const __=class __{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${__._idPool++}`,__.all.add(this)}start(e){this._stopWatch=new Cn,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}}};__.all=new Set,__._idPool=0;let qA=__,Doe=-1;const aI=class aI{constructor(e,t,i=(aI._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)==null||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;const[o,r]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(a),console.warn(o);const l=new Toe(a,o);this._errorHandler(l)}return()=>{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,n]of this._stacks)(!e||t<n)&&(e=[i,n],t=n);return e}};aI._idPool=1;let KA=aI;class bB{static create(){var t;const e=new Error;return new bB((t=e.stack)!=null?t:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
9
9
|
`).slice(2).join(`
|
|
10
10
|
`))}}class Toe extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class Noe extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class AN{constructor(e){this.value=e}}const Roe=2;let O=class{constructor(e){var t,i,n,o,r,a;this._size=0,this._options=e,this._leakageMon=(t=this._options)!=null&&t.leakWarningThreshold?new KA((i=e==null?void 0:e.onListenerError)!=null?i:ze,(o=(n=this._options)==null?void 0:n.leakWarningThreshold)!=null?o:Doe):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new qA(this._options._profName):void 0,this._deliveryQueue=(a=this._options)==null?void 0:a.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(t=this._options)==null?void 0:t.onDidRemoveLastListener)==null||i.call(t),(n=this._leakageMon)==null||n.dispose())}get event(){var e;return(e=this._event)!=null||(this._event=(t,i,n)=>{var l,c,d,u,h,g,f;if(this._leakageMon&&this._size>Bc(this._leakageMon.threshold,2)){const m=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(m);const _=(l=this._leakageMon.getMostFrequentStack())!=null?l:["UNKNOWN stack",-1],b=new Noe(`${m}. HINT: Stack shows most frequent listener (${_[1]}-times)`,_[0]);return(((c=this._options)==null?void 0:c.onListenerError)||ze)(b),B.None}if(this._disposed)return B.None;i&&(t=t.bind(i));const o=new AN(t);let r;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(o.stack=bB.create(),r=this._leakageMon.check(o.stack,this._size+1)),this._listeners?this._listeners instanceof AN?((f=this._deliveryQueue)!=null||(this._deliveryQueue=new yG),this._listeners=[this._listeners,o]):this._listeners.push(o):((u=(d=this._options)==null?void 0:d.onWillAddFirstListener)==null||u.call(d,this),this._listeners=o,(g=(h=this._options)==null?void 0:h.onDidAddFirstListener)==null||g.call(h,this)),this._size++;const a=ke(()=>{r==null||r(),this._removeListener(o)});return n instanceof G?n.add(a):Array.isArray(n)&&n.push(a),a}),this._event}_removeListener(e){var o,r,a,l;if((r=(o=this._options)==null?void 0:o.onWillRemoveListener)==null||r.call(o,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(l=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||l.call(a,this),this._size=0;return}const t=this._listeners,i=t.indexOf(e);if(i===-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--,t[i]=void 0;const n=this._deliveryQueue.current===this;if(this._size*Roe<=t.length){let c=0;for(let d=0;d<t.length;d++)t[d]?t[c++]=t[d]:n&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=c}}_deliver(e,t){var n;if(!e)return;const i=((n=this._options)==null?void 0:n.onListenerError)||ze;if(!i){e.value(t);return}try{e.value(t)}catch(o){i(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.current&&(this._deliverQueue(this._deliveryQueue),(i=this._perfMon)==null||i.stop()),(n=this._perfMon)==null||n.start(this._size),this._listeners)if(this._listeners instanceof AN)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.stop()}hasListeners(){return this._size>0}};const Aoe=()=>new yG;class yG{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 dp extends O{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Rs,this._mergeFn=e==null?void 0: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 xG extends dp{constructor(e){var t;super(e),this._delay=(t=e.delay)!=null?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class Moe extends O{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0: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 Poe{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),ke(bh(()=>{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.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)(e=t.listener)==null||e.dispose();this.events=[]}}class GS{constructor(){this.data=[]}wrapEvent(e,t,i){return(n,o,r)=>e(a=>{var d;const l=this.data[this.data.length-1];if(!t){l?l.buffers.push(()=>n.call(o,a)):n.call(o,a);return}const c=l;if(!c){n.call(o,t(i,a));return}(d=c.items)!=null||(c.items=[]),c.items.push(a),c.buffers.length===0&&l.buffers.push(()=>{var u;(u=c.reducedResult)!=null||(c.reducedResult=i?c.items.reduce(t,i):c.items.reduce(t)),n.call(o,c.reducedResult)})},void 0,r)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach(n=>n()),i}}class M6{constructor(){this.listening=!1,this.inputEvent=ce.None,this.inputEventListener=B.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 kG=Object.freeze(function(s,e){const t=setTimeout(s.bind(e),0);return{dispose(){clearTimeout(t)}}});var Ze;(function(s){function e(t){return t===s.None||t===s.Cancelled||t instanceof J0?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}s.isCancellationToken=e,s.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ce.None}),s.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:kG})})(Ze||(Ze={}));class J0{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?kG:(this._emitter||(this._emitter=new O),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let Ci=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 J0),this._token}cancel(){this._token?this._token instanceof J0&&this._token.cancel():this._token=Ze.Cancelled}dispose(e=!1){var t;e&&this.cancel(),(t=this._parentListener)==null||t.dispose(),this._token?this._token instanceof J0&&this._token.dispose():this._token=Ze.None}};function GA(s){const e=new Ci;return s.add({dispose(){e.cancel()}}),e.token}class vB{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 ex=new vB,ZA=new vB,YA=new vB,LG=new Array(230),Ooe=Object.create(null),Foe=Object.create(null),wB=[];for(let s=0;s<=193;s++)wB[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,c,d,u,h,g]=n;if(i[r]||(i[r]=!0,Ooe[a]=r,Foe[a.toLowerCase()]=r,o&&(wB[r]=l)),!t[l]){if(t[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${a}`);ex.define(l,c),ZA.define(l,h||c),YA.define(l,g||h||c)}d&&(LG[d]=l)}})();var cd;(function(s){function e(a){return ex.keyCodeToStr(a)}s.toString=e;function t(a){return ex.strToKeyCode(a)}s.fromString=t;function i(a){return ZA.keyCodeToStr(a)}s.toUserSettingsUS=i;function n(a){return YA.keyCodeToStr(a)}s.toUserSettingsGeneral=n;function o(a){return ZA.strToKeyCode(a)||YA.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 ex.keyCodeToStr(a)}s.toElectronAccelerator=r})(cd||(cd={}));function Qi(s,e){const t=(e&65535)<<16>>>0;return(s|t)>>>0}var P6={ENV_TYPE:"live",NODE_ENV:"production"};let M_;const MN=globalThis.vscode;var nG;if(typeof MN!="undefined"&&typeof MN.process!="undefined"){const s=MN.process;M_={get platform(){return s.platform},get arch(){return s.arch},get env(){return s.env},cwd(){return s.cwd()}}}else typeof process!="undefined"&&typeof((nG=process==null?void 0:process.versions)==null?void 0:nG.node)=="string"?M_={get platform(){return process.platform},get arch(){return process.arch},get env(){return P6},cwd(){return P6.VSCODE_CWD||process.cwd()}}:M_={get platform(){return Qn?"win32":rt?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Zx=M_.cwd,XA=M_.env,Boe=M_.platform,Woe=65,Hoe=97,Voe=90,$oe=122,ju=46,fs=47,er=92,ou=58,zoe=63;class EG 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 Uoe(s,e){if(s===null||typeof s!="object")throw new EG(e,"Object",s)}function mn(s,e){if(typeof s!="string")throw new EG(e,"string",s)}const Gd=Boe==="win32";function Ot(s){return s===fs||s===er}function QA(s){return s===fs}function ru(s){return s>=Woe&&s<=Voe||s>=Hoe&&s<=$oe}function Yx(s,e,t,i){let n="",o=0,r=-1,a=0,l=0;for(let c=0;c<=s.length;++c){if(c<s.length)l=s.charCodeAt(c);else{if(i(l))break;l=fs}if(i(l)){if(!(r===c-1||a===1))if(a===2){if(n.length<2||o!==2||n.charCodeAt(n.length-1)!==ju||n.charCodeAt(n.length-2)!==ju){if(n.length>2){const d=n.lastIndexOf(t);d===-1?(n="",o=0):(n=n.slice(0,d),o=n.length-1-n.lastIndexOf(t)),r=c,a=0;continue}else if(n.length!==0){n="",o=0,r=c,a=0;continue}}e&&(n+=n.length>0?`${t}..`:"..",o=2)}else n.length>0?n+=`${t}${s.slice(r+1,c)}`:n=s.slice(r+1,c),o=c-r-1;r=c,a=0}else l===ju&&a!==-1?++a:a=-1}return n}function joe(s){return s?`${s[0]==="."?"":"."}${s}`:""}function IG(s,e){Uoe(e,"pathObject");const t=e.dir||e.root,i=e.base||`${e.name||""}${joe(e.ext)}`;return t?t===e.root?`${t}${i}`:`${t}${s}${i}`:i}const io={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],mn(o,`paths[${n}]`),o.length===0)continue}else e.length===0?o=Zx():(o=XA[`=${e}`]||Zx(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===er)&&(o=`${e}\\`));const r=o.length;let a=0,l="",c=!1;const d=o.charCodeAt(0);if(r===1)Ot(d)&&(a=1,c=!0);else if(Ot(d))if(c=!0,Ot(o.charCodeAt(1))){let u=2,h=u;for(;u<r&&!Ot(o.charCodeAt(u));)u++;if(u<r&&u!==h){const g=o.slice(h,u);for(h=u;u<r&&Ot(o.charCodeAt(u));)u++;if(u<r&&u!==h){for(h=u;u<r&&!Ot(o.charCodeAt(u));)u++;(u===r||u!==h)&&(l=`\\\\${g}\\${o.slice(h,u)}`,a=u)}}}else a=1;else ru(d)&&o.charCodeAt(1)===ou&&(l=o.slice(0,2),a=2,r>2&&Ot(o.charCodeAt(2))&&(c=!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=c,c&&e.length>0)break}return t=Yx(t,!i,"\\",Ot),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(s){mn(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 QA(o)?"\\":s;if(Ot(o))if(n=!0,Ot(s.charCodeAt(1))){let a=2,l=a;for(;a<e&&!Ot(s.charCodeAt(a));)a++;if(a<e&&a!==l){const c=s.slice(l,a);for(l=a;a<e&&Ot(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&!Ot(s.charCodeAt(a));)a++;if(a===e)return`\\\\${c}\\${s.slice(l)}\\`;a!==l&&(i=`\\\\${c}\\${s.slice(l,a)}`,t=a)}}}else t=1;else ru(o)&&s.charCodeAt(1)===ou&&(i=s.slice(0,2),t=2,e>2&&Ot(s.charCodeAt(2))&&(n=!0,t=3));let r=t<e?Yx(s.slice(t),!n,"\\",Ot):"";return r.length===0&&!n&&(r="."),r.length>0&&Ot(s.charCodeAt(e-1))&&(r+="\\"),i===void 0?n?`\\${r}`:r:n?`${i}\\${r}`:`${i}${r}`},isAbsolute(s){mn(s,"path");const e=s.length;if(e===0)return!1;const t=s.charCodeAt(0);return Ot(t)||e>2&&ru(t)&&s.charCodeAt(1)===ou&&Ot(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];mn(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"&&Ot(t.charCodeAt(0))){++n;const o=t.length;o>1&&Ot(t.charCodeAt(1))&&(++n,o>2&&(Ot(t.charCodeAt(2))?++n:i=!1))}if(i){for(;n<e.length&&Ot(e.charCodeAt(n));)n++;n>=2&&(e=`\\${e.slice(n)}`)}return io.normalize(e)},relative(s,e){if(mn(s,"from"),mn(e,"to"),s===e)return"";const t=io.resolve(s),i=io.resolve(e);if(t===i||(s=t.toLowerCase(),e=i.toLowerCase(),s===e))return"";let n=0;for(;n<s.length&&s.charCodeAt(n)===er;)n++;let o=s.length;for(;o-1>n&&s.charCodeAt(o-1)===er;)o--;const r=o-n;let a=0;for(;a<e.length&&e.charCodeAt(a)===er;)a++;let l=e.length;for(;l-1>a&&e.charCodeAt(l-1)===er;)l--;const c=l-a,d=r<c?r:c;let u=-1,h=0;for(;h<d;h++){const f=s.charCodeAt(n+h);if(f!==e.charCodeAt(a+h))break;f===er&&(u=h)}if(h!==d){if(u===-1)return i}else{if(c>d){if(e.charCodeAt(a+h)===er)return i.slice(a+h+1);if(h===2)return i.slice(a+h)}r>d&&(s.charCodeAt(n+h)===er?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)===er)&&(g+=g.length===0?"..":"\\..");return a+=u,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===er&&++a,i.slice(a,l))},toNamespacedPath(s){if(typeof s!="string"||s.length===0)return s;const e=io.resolve(s);if(e.length<=2)return s;if(e.charCodeAt(0)===er){if(e.charCodeAt(1)===er){const t=e.charCodeAt(2);if(t!==zoe&&t!==ju)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(ru(e.charCodeAt(0))&&e.charCodeAt(1)===ou&&e.charCodeAt(2)===er)return`\\\\?\\${e}`;return s},dirname(s){mn(s,"path");const e=s.length;if(e===0)return".";let t=-1,i=0;const n=s.charCodeAt(0);if(e===1)return Ot(n)?s:".";if(Ot(n)){if(t=i=1,Ot(s.charCodeAt(1))){let a=2,l=a;for(;a<e&&!Ot(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&Ot(s.charCodeAt(a));)a++;if(a<e&&a!==l){for(l=a;a<e&&!Ot(s.charCodeAt(a));)a++;if(a===e)return s;a!==l&&(t=i=a+1)}}}}else ru(n)&&s.charCodeAt(1)===ou&&(t=e>2&&Ot(s.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(Ot(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&&mn(e,"suffix"),mn(s,"path");let t=0,i=-1,n=!0,o;if(s.length>=2&&ru(s.charCodeAt(0))&&s.charCodeAt(1)===ou&&(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(Ot(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(Ot(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){mn(s,"path");let e=0,t=-1,i=0,n=-1,o=!0,r=0;s.length>=2&&s.charCodeAt(1)===ou&&ru(s.charCodeAt(0))&&(e=i=2);for(let a=s.length-1;a>=e;--a){const l=s.charCodeAt(a);if(Ot(l)){if(!o){i=a+1;break}continue}n===-1&&(o=!1,n=a+1),l===ju?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:IG.bind(null,"\\"),parse(s){mn(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 Ot(n)?(e.root=e.dir=s,e):(e.base=e.name=s,e);if(Ot(n)){if(i=1,Ot(s.charCodeAt(1))){let u=2,h=u;for(;u<t&&!Ot(s.charCodeAt(u));)u++;if(u<t&&u!==h){for(h=u;u<t&&Ot(s.charCodeAt(u));)u++;if(u<t&&u!==h){for(h=u;u<t&&!Ot(s.charCodeAt(u));)u++;u===t?i=u:u!==h&&(i=u+1)}}}}else if(ru(n)&&s.charCodeAt(1)===ou){if(t<=2)return e.root=e.dir=s,e;if(i=2,Ot(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,c=s.length-1,d=0;for(;c>=i;--c){if(n=s.charCodeAt(c),Ot(n)){if(!l){r=c+1;break}continue}a===-1&&(l=!1,a=c+1),n===ju?o===-1?o=c:d!==1&&(d=1):o!==-1&&(d=-1)}return a!==-1&&(o===-1||d===0||d===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},qoe=(()=>{if(Gd){const s=/\\/g;return()=>{const e=Zx().replace(s,"/");return e.slice(e.indexOf("/"))}}return()=>Zx()})(),qi={resolve(...s){let e="",t=!1;for(let i=s.length-1;i>=-1&&!t;i--){const n=i>=0?s[i]:qoe();mn(n,`paths[${i}]`),n.length!==0&&(e=`${n}/${e}`,t=n.charCodeAt(0)===fs)}return e=Yx(e,!t,"/",QA),t?`/${e}`:e.length>0?e:"."},normalize(s){if(mn(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===fs,t=s.charCodeAt(s.length-1)===fs;return s=Yx(s,!e,"/",QA),s.length===0?e?"/":t?"./":".":(t&&(s+="/"),e?`/${s}`:s)},isAbsolute(s){return mn(s,"path"),s.length>0&&s.charCodeAt(0)===fs},join(...s){if(s.length===0)return".";let e;for(let t=0;t<s.length;++t){const i=s[t];mn(i,"path"),i.length>0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":qi.normalize(e)},relative(s,e){if(mn(s,"from"),mn(e,"to"),s===e||(s=qi.resolve(s),e=qi.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,c=0;for(;c<a;c++){const u=s.charCodeAt(t+c);if(u!==e.charCodeAt(o+c))break;u===fs&&(l=c)}if(c===a)if(r>a){if(e.charCodeAt(o+c)===fs)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else n>a&&(s.charCodeAt(t+c)===fs?l=c:c===0&&(l=0));let d="";for(c=t+l+1;c<=i;++c)(c===i||s.charCodeAt(c)===fs)&&(d+=d.length===0?"..":"/..");return`${d}${e.slice(o+l)}`},toNamespacedPath(s){return s},dirname(s){if(mn(s,"path"),s.length===0)return".";const e=s.charCodeAt(0)===fs;let t=-1,i=!0;for(let n=s.length-1;n>=1;--n)if(s.charCodeAt(n)===fs){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&&mn(e,"ext"),mn(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===fs){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)===fs){if(!n){t=o+1;break}}else i===-1&&(n=!1,i=o+1);return i===-1?"":s.slice(t,i)},extname(s){mn(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===fs){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),a===ju?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:IG.bind(null,"/"),parse(s){mn(s,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return e;const t=s.charCodeAt(0)===fs;let i;t?(e.root="/",i=1):i=0;let n=-1,o=0,r=-1,a=!0,l=s.length-1,c=0;for(;l>=i;--l){const d=s.charCodeAt(l);if(d===fs){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),d===ju?n===-1?n=l:c!==1&&(c=1):n!==-1&&(c=-1)}if(r!==-1){const d=o===0&&t?1:o;n===-1||c===0||c===1&&n===r-1&&n===o+1?e.base=e.name=s.slice(d,r):(e.name=s.slice(d,n),e.base=s.slice(d,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};qi.win32=io.win32=io;qi.posix=io.posix=qi;const DG=Gd?io.normalize:qi.normalize,Koe=Gd?io.join:qi.join,Goe=Gd?io.resolve:qi.resolve,Zoe=Gd?io.relative:qi.relative,TG=Gd?io.dirname:qi.dirname,qu=Gd?io.basename:qi.basename,Yoe=Gd?io.extname:qi.extname,cl=Gd?io.sep:qi.sep,Xoe=/^\w[\w\d+.-]*$/,Qoe=/^\//,Joe=/^\/\//;function ere(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&&!Xoe.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!Qoe.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(Joe.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 tre(s,e){return!s&&!e?"file":s}function ire(s,e){switch(s){case"https":case"http":case"file":e?e[0]!==Xa&&(e=Xa+e):e=Xa;break}return e}const Ui="",Xa="/",nre=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Ie=class tx{static isUri(e){return e instanceof tx?!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||Ui,this.authority=e.authority||Ui,this.path=e.path||Ui,this.query=e.query||Ui,this.fragment=e.fragment||Ui):(this.scheme=tre(e,r),this.authority=t||Ui,this.path=ire(this.scheme,i||Ui),this.query=n||Ui,this.fragment=o||Ui,ere(this,r))}get fsPath(){return Xx(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=Ui),i===void 0?i=this.authority:i===null&&(i=Ui),n===void 0?n=this.path:n===null&&(n=Ui),o===void 0?o=this.query:o===null&&(o=Ui),r===void 0?r=this.fragment:r===null&&(r=Ui),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&r===this.fragment?this:new cm(t,i,n,o,r)}static parse(e,t=!1){const i=nre.exec(e);return i?new cm(i[2]||Ui,Vy(i[4]||Ui),Vy(i[5]||Ui),Vy(i[7]||Ui),Vy(i[9]||Ui),t):new cm(Ui,Ui,Ui,Ui,Ui)}static file(e){let t=Ui;if(Qn&&(e=e.replace(/\\/g,Xa)),e[0]===Xa&&e[1]===Xa){const i=e.indexOf(Xa,2);i===-1?(t=e.substring(2),e=Xa):(t=e.substring(2,i),e=e.substring(i)||Xa)}return new cm("file",t,e,Ui,Ui)}static from(e,t){return new cm(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 Qn&&e.scheme==="file"?i=tx.file(io.join(Xx(e,!0),...t)).path:i=qi.join(e.path,...t),e.with({path:i})}toString(e=!1){return JA(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof tx)return e;{const n=new cm(e);return n._formatted=(t=e.external)!=null?t:null,n._fsPath=e._sep===NG&&(i=e.fsPath)!=null?i:null,n}}else return e}};const NG=Qn?1:void 0;let cm=class extends Ie{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Xx(this,!1)),this._fsPath}toString(e=!1){return e?JA(this,!0):(this._formatted||(this._formatted=JA(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=NG),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 RG={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 O6(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=RG[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 sre(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+=RG[i]):e!==void 0&&(e+=s[t])}return e!==void 0?e:s}function Xx(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,Qn&&(t=t.replace(/\//g,"\\")),t}function JA(s,e){const t=e?sre:O6;let i="",{scheme:n,authority:o,path:r,query:a,fragment:l}=s;if(n&&(i+=n,i+=":"),(o||n==="file")&&(i+=Xa,i+=Xa),o){let c=o.indexOf("@");if(c!==-1){const d=o.substr(0,c);o=o.substr(c+1),c=d.lastIndexOf(":"),c===-1?i+=t(d,!1,!1):(i+=t(d.substr(0,c),!1,!1),i+=":",i+=t(d.substr(c+1),!1,!0)),i+="@"}o=o.toLowerCase(),c=o.lastIndexOf(":"),c===-1?i+=t(o,!1,!0):(i+=t(o.substr(0,c),!1,!0),i+=o.substr(c))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const c=r.charCodeAt(1);c>=65&&c<=90&&(r=`/${String.fromCharCode(c+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const c=r.charCodeAt(0);c>=65&&c<=90&&(r=`${String.fromCharCode(c+32)}:${r.substr(2)}`)}i+=t(r,!0,!1)}return a&&(i+="?",i+=t(a,!1,!1)),l&&(i+="#",i+=e?l:O6(l,!1,!1)),i}function AG(s){try{return decodeURIComponent(s)}catch(e){return s.length>3?s.substr(0,3)+AG(s.substr(3)):s}}const F6=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Vy(s){return s.match(F6)?s.replace(F6,e=>AG(e)):s}let P=class fg{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 fg(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return fg.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return fg.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 fg.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 fg(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new fg(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}}},L=class kn{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 kn.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return kn.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 kn.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 kn.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 kn.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 kn(i,n,o,r)}intersectRanges(e){return kn.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,c=t.endLineNumber,d=t.endColumn;return i<a?(i=a,n=l):i===a&&(n=Math.max(n,l)),o>c?(o=c,r=d):o===c&&(r=Math.min(r,d)),i>o||i===o&&n>r?null:new kn(i,n,o,r)}equalsRange(e){return kn.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 kn.getEndPosition(this)}static getEndPosition(e){return new P(e.endLineNumber,e.endColumn)}getStartPosition(){return kn.getStartPosition(this)}static getStartPosition(e){return new P(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new kn(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new kn(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return kn.collapseToStart(this)}static collapseToStart(e){return new kn(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return kn.collapseToEnd(this)}static collapseToEnd(e){return new kn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new kn(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new kn(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new kn(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 c=e.endLineNumber|0,d=t.endLineNumber|0;if(c===d){const u=e.endColumn|0,h=t.endColumn|0;return u-h}return c-d}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}},we=class oa extends L{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 oa.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 oa(this.startLineNumber,this.startColumn,e,t):new oa(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new P(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new P(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new oa(e,t,this.endLineNumber,this.endColumn):new oa(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new oa(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new oa(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new oa(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new oa(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 oa(e,t,i,n):new oa(i,n,e,t)}};const eM=Object.create(null);function x(s,e){if(no(e)){const t=eM[e];if(t===void 0)throw new Error(`${s} references an unknown codicon: ${e}`);e=t}return eM[s]=e,{id:s}}function MG(){return eM}const ore={add:x("add",6e4),plus:x("plus",6e4),gistNew:x("gist-new",6e4),repoCreate:x("repo-create",6e4),lightbulb:x("lightbulb",60001),lightBulb:x("light-bulb",60001),repo:x("repo",60002),repoDelete:x("repo-delete",60002),gistFork:x("gist-fork",60003),repoForked:x("repo-forked",60003),gitPullRequest:x("git-pull-request",60004),gitPullRequestAbandoned:x("git-pull-request-abandoned",60004),recordKeys:x("record-keys",60005),keyboard:x("keyboard",60005),tag:x("tag",60006),gitPullRequestLabel:x("git-pull-request-label",60006),tagAdd:x("tag-add",60006),tagRemove:x("tag-remove",60006),person:x("person",60007),personFollow:x("person-follow",60007),personOutline:x("person-outline",60007),personFilled:x("person-filled",60007),gitBranch:x("git-branch",60008),gitBranchCreate:x("git-branch-create",60008),gitBranchDelete:x("git-branch-delete",60008),sourceControl:x("source-control",60008),mirror:x("mirror",60009),mirrorPublic:x("mirror-public",60009),star:x("star",60010),starAdd:x("star-add",60010),starDelete:x("star-delete",60010),starEmpty:x("star-empty",60010),comment:x("comment",60011),commentAdd:x("comment-add",60011),alert:x("alert",60012),warning:x("warning",60012),search:x("search",60013),searchSave:x("search-save",60013),logOut:x("log-out",60014),signOut:x("sign-out",60014),logIn:x("log-in",60015),signIn:x("sign-in",60015),eye:x("eye",60016),eyeUnwatch:x("eye-unwatch",60016),eyeWatch:x("eye-watch",60016),circleFilled:x("circle-filled",60017),primitiveDot:x("primitive-dot",60017),closeDirty:x("close-dirty",60017),debugBreakpoint:x("debug-breakpoint",60017),debugBreakpointDisabled:x("debug-breakpoint-disabled",60017),debugHint:x("debug-hint",60017),terminalDecorationSuccess:x("terminal-decoration-success",60017),primitiveSquare:x("primitive-square",60018),edit:x("edit",60019),pencil:x("pencil",60019),info:x("info",60020),issueOpened:x("issue-opened",60020),gistPrivate:x("gist-private",60021),gitForkPrivate:x("git-fork-private",60021),lock:x("lock",60021),mirrorPrivate:x("mirror-private",60021),close:x("close",60022),removeClose:x("remove-close",60022),x:x("x",60022),repoSync:x("repo-sync",60023),sync:x("sync",60023),clone:x("clone",60024),desktopDownload:x("desktop-download",60024),beaker:x("beaker",60025),microscope:x("microscope",60025),vm:x("vm",60026),deviceDesktop:x("device-desktop",60026),file:x("file",60027),fileText:x("file-text",60027),more:x("more",60028),ellipsis:x("ellipsis",60028),kebabHorizontal:x("kebab-horizontal",60028),mailReply:x("mail-reply",60029),reply:x("reply",60029),organization:x("organization",60030),organizationFilled:x("organization-filled",60030),organizationOutline:x("organization-outline",60030),newFile:x("new-file",60031),fileAdd:x("file-add",60031),newFolder:x("new-folder",60032),fileDirectoryCreate:x("file-directory-create",60032),trash:x("trash",60033),trashcan:x("trashcan",60033),history:x("history",60034),clock:x("clock",60034),folder:x("folder",60035),fileDirectory:x("file-directory",60035),symbolFolder:x("symbol-folder",60035),logoGithub:x("logo-github",60036),markGithub:x("mark-github",60036),github:x("github",60036),terminal:x("terminal",60037),console:x("console",60037),repl:x("repl",60037),zap:x("zap",60038),symbolEvent:x("symbol-event",60038),error:x("error",60039),stop:x("stop",60039),variable:x("variable",60040),symbolVariable:x("symbol-variable",60040),array:x("array",60042),symbolArray:x("symbol-array",60042),symbolModule:x("symbol-module",60043),symbolPackage:x("symbol-package",60043),symbolNamespace:x("symbol-namespace",60043),symbolObject:x("symbol-object",60043),symbolMethod:x("symbol-method",60044),symbolFunction:x("symbol-function",60044),symbolConstructor:x("symbol-constructor",60044),symbolBoolean:x("symbol-boolean",60047),symbolNull:x("symbol-null",60047),symbolNumeric:x("symbol-numeric",60048),symbolNumber:x("symbol-number",60048),symbolStructure:x("symbol-structure",60049),symbolStruct:x("symbol-struct",60049),symbolParameter:x("symbol-parameter",60050),symbolTypeParameter:x("symbol-type-parameter",60050),symbolKey:x("symbol-key",60051),symbolText:x("symbol-text",60051),symbolReference:x("symbol-reference",60052),goToFile:x("go-to-file",60052),symbolEnum:x("symbol-enum",60053),symbolValue:x("symbol-value",60053),symbolRuler:x("symbol-ruler",60054),symbolUnit:x("symbol-unit",60054),activateBreakpoints:x("activate-breakpoints",60055),archive:x("archive",60056),arrowBoth:x("arrow-both",60057),arrowDown:x("arrow-down",60058),arrowLeft:x("arrow-left",60059),arrowRight:x("arrow-right",60060),arrowSmallDown:x("arrow-small-down",60061),arrowSmallLeft:x("arrow-small-left",60062),arrowSmallRight:x("arrow-small-right",60063),arrowSmallUp:x("arrow-small-up",60064),arrowUp:x("arrow-up",60065),bell:x("bell",60066),bold:x("bold",60067),book:x("book",60068),bookmark:x("bookmark",60069),debugBreakpointConditionalUnverified:x("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:x("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:x("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:x("debug-breakpoint-data-unverified",60072),debugBreakpointData:x("debug-breakpoint-data",60073),debugBreakpointDataDisabled:x("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:x("debug-breakpoint-log-unverified",60074),debugBreakpointLog:x("debug-breakpoint-log",60075),debugBreakpointLogDisabled:x("debug-breakpoint-log-disabled",60075),briefcase:x("briefcase",60076),broadcast:x("broadcast",60077),browser:x("browser",60078),bug:x("bug",60079),calendar:x("calendar",60080),caseSensitive:x("case-sensitive",60081),check:x("check",60082),checklist:x("checklist",60083),chevronDown:x("chevron-down",60084),chevronLeft:x("chevron-left",60085),chevronRight:x("chevron-right",60086),chevronUp:x("chevron-up",60087),chromeClose:x("chrome-close",60088),chromeMaximize:x("chrome-maximize",60089),chromeMinimize:x("chrome-minimize",60090),chromeRestore:x("chrome-restore",60091),circleOutline:x("circle-outline",60092),circle:x("circle",60092),debugBreakpointUnverified:x("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:x("terminal-decoration-incomplete",60092),circleSlash:x("circle-slash",60093),circuitBoard:x("circuit-board",60094),clearAll:x("clear-all",60095),clippy:x("clippy",60096),closeAll:x("close-all",60097),cloudDownload:x("cloud-download",60098),cloudUpload:x("cloud-upload",60099),code:x("code",60100),collapseAll:x("collapse-all",60101),colorMode:x("color-mode",60102),commentDiscussion:x("comment-discussion",60103),creditCard:x("credit-card",60105),dash:x("dash",60108),dashboard:x("dashboard",60109),database:x("database",60110),debugContinue:x("debug-continue",60111),debugDisconnect:x("debug-disconnect",60112),debugPause:x("debug-pause",60113),debugRestart:x("debug-restart",60114),debugStart:x("debug-start",60115),debugStepInto:x("debug-step-into",60116),debugStepOut:x("debug-step-out",60117),debugStepOver:x("debug-step-over",60118),debugStop:x("debug-stop",60119),debug:x("debug",60120),deviceCameraVideo:x("device-camera-video",60121),deviceCamera:x("device-camera",60122),deviceMobile:x("device-mobile",60123),diffAdded:x("diff-added",60124),diffIgnored:x("diff-ignored",60125),diffModified:x("diff-modified",60126),diffRemoved:x("diff-removed",60127),diffRenamed:x("diff-renamed",60128),diff:x("diff",60129),diffSidebyside:x("diff-sidebyside",60129),discard:x("discard",60130),editorLayout:x("editor-layout",60131),emptyWindow:x("empty-window",60132),exclude:x("exclude",60133),extensions:x("extensions",60134),eyeClosed:x("eye-closed",60135),fileBinary:x("file-binary",60136),fileCode:x("file-code",60137),fileMedia:x("file-media",60138),filePdf:x("file-pdf",60139),fileSubmodule:x("file-submodule",60140),fileSymlinkDirectory:x("file-symlink-directory",60141),fileSymlinkFile:x("file-symlink-file",60142),fileZip:x("file-zip",60143),files:x("files",60144),filter:x("filter",60145),flame:x("flame",60146),foldDown:x("fold-down",60147),foldUp:x("fold-up",60148),fold:x("fold",60149),folderActive:x("folder-active",60150),folderOpened:x("folder-opened",60151),gear:x("gear",60152),gift:x("gift",60153),gistSecret:x("gist-secret",60154),gist:x("gist",60155),gitCommit:x("git-commit",60156),gitCompare:x("git-compare",60157),compareChanges:x("compare-changes",60157),gitMerge:x("git-merge",60158),githubAction:x("github-action",60159),githubAlt:x("github-alt",60160),globe:x("globe",60161),grabber:x("grabber",60162),graph:x("graph",60163),gripper:x("gripper",60164),heart:x("heart",60165),home:x("home",60166),horizontalRule:x("horizontal-rule",60167),hubot:x("hubot",60168),inbox:x("inbox",60169),issueReopened:x("issue-reopened",60171),issues:x("issues",60172),italic:x("italic",60173),jersey:x("jersey",60174),json:x("json",60175),kebabVertical:x("kebab-vertical",60176),key:x("key",60177),law:x("law",60178),lightbulbAutofix:x("lightbulb-autofix",60179),linkExternal:x("link-external",60180),link:x("link",60181),listOrdered:x("list-ordered",60182),listUnordered:x("list-unordered",60183),liveShare:x("live-share",60184),loading:x("loading",60185),location:x("location",60186),mailRead:x("mail-read",60187),mail:x("mail",60188),markdown:x("markdown",60189),megaphone:x("megaphone",60190),mention:x("mention",60191),milestone:x("milestone",60192),gitPullRequestMilestone:x("git-pull-request-milestone",60192),mortarBoard:x("mortar-board",60193),move:x("move",60194),multipleWindows:x("multiple-windows",60195),mute:x("mute",60196),noNewline:x("no-newline",60197),note:x("note",60198),octoface:x("octoface",60199),openPreview:x("open-preview",60200),package:x("package",60201),paintcan:x("paintcan",60202),pin:x("pin",60203),play:x("play",60204),run:x("run",60204),plug:x("plug",60205),preserveCase:x("preserve-case",60206),preview:x("preview",60207),project:x("project",60208),pulse:x("pulse",60209),question:x("question",60210),quote:x("quote",60211),radioTower:x("radio-tower",60212),reactions:x("reactions",60213),references:x("references",60214),refresh:x("refresh",60215),regex:x("regex",60216),remoteExplorer:x("remote-explorer",60217),remote:x("remote",60218),remove:x("remove",60219),replaceAll:x("replace-all",60220),replace:x("replace",60221),repoClone:x("repo-clone",60222),repoForcePush:x("repo-force-push",60223),repoPull:x("repo-pull",60224),repoPush:x("repo-push",60225),report:x("report",60226),requestChanges:x("request-changes",60227),rocket:x("rocket",60228),rootFolderOpened:x("root-folder-opened",60229),rootFolder:x("root-folder",60230),rss:x("rss",60231),ruby:x("ruby",60232),saveAll:x("save-all",60233),saveAs:x("save-as",60234),save:x("save",60235),screenFull:x("screen-full",60236),screenNormal:x("screen-normal",60237),searchStop:x("search-stop",60238),server:x("server",60240),settingsGear:x("settings-gear",60241),settings:x("settings",60242),shield:x("shield",60243),smiley:x("smiley",60244),sortPrecedence:x("sort-precedence",60245),splitHorizontal:x("split-horizontal",60246),splitVertical:x("split-vertical",60247),squirrel:x("squirrel",60248),starFull:x("star-full",60249),starHalf:x("star-half",60250),symbolClass:x("symbol-class",60251),symbolColor:x("symbol-color",60252),symbolConstant:x("symbol-constant",60253),symbolEnumMember:x("symbol-enum-member",60254),symbolField:x("symbol-field",60255),symbolFile:x("symbol-file",60256),symbolInterface:x("symbol-interface",60257),symbolKeyword:x("symbol-keyword",60258),symbolMisc:x("symbol-misc",60259),symbolOperator:x("symbol-operator",60260),symbolProperty:x("symbol-property",60261),wrench:x("wrench",60261),wrenchSubaction:x("wrench-subaction",60261),symbolSnippet:x("symbol-snippet",60262),tasklist:x("tasklist",60263),telescope:x("telescope",60264),textSize:x("text-size",60265),threeBars:x("three-bars",60266),thumbsdown:x("thumbsdown",60267),thumbsup:x("thumbsup",60268),tools:x("tools",60269),triangleDown:x("triangle-down",60270),triangleLeft:x("triangle-left",60271),triangleRight:x("triangle-right",60272),triangleUp:x("triangle-up",60273),twitter:x("twitter",60274),unfold:x("unfold",60275),unlock:x("unlock",60276),unmute:x("unmute",60277),unverified:x("unverified",60278),verified:x("verified",60279),versions:x("versions",60280),vmActive:x("vm-active",60281),vmOutline:x("vm-outline",60282),vmRunning:x("vm-running",60283),watch:x("watch",60284),whitespace:x("whitespace",60285),wholeWord:x("whole-word",60286),window:x("window",60287),wordWrap:x("word-wrap",60288),zoomIn:x("zoom-in",60289),zoomOut:x("zoom-out",60290),listFilter:x("list-filter",60291),listFlat:x("list-flat",60292),listSelection:x("list-selection",60293),selection:x("selection",60293),listTree:x("list-tree",60294),debugBreakpointFunctionUnverified:x("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:x("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:x("debug-breakpoint-function-disabled",60296),debugStackframeActive:x("debug-stackframe-active",60297),circleSmallFilled:x("circle-small-filled",60298),debugStackframeDot:x("debug-stackframe-dot",60298),terminalDecorationMark:x("terminal-decoration-mark",60298),debugStackframe:x("debug-stackframe",60299),debugStackframeFocused:x("debug-stackframe-focused",60299),debugBreakpointUnsupported:x("debug-breakpoint-unsupported",60300),symbolString:x("symbol-string",60301),debugReverseContinue:x("debug-reverse-continue",60302),debugStepBack:x("debug-step-back",60303),debugRestartFrame:x("debug-restart-frame",60304),debugAlt:x("debug-alt",60305),callIncoming:x("call-incoming",60306),callOutgoing:x("call-outgoing",60307),menu:x("menu",60308),expandAll:x("expand-all",60309),feedback:x("feedback",60310),gitPullRequestReviewer:x("git-pull-request-reviewer",60310),groupByRefType:x("group-by-ref-type",60311),ungroupByRefType:x("ungroup-by-ref-type",60312),account:x("account",60313),gitPullRequestAssignee:x("git-pull-request-assignee",60313),bellDot:x("bell-dot",60314),debugConsole:x("debug-console",60315),library:x("library",60316),output:x("output",60317),runAll:x("run-all",60318),syncIgnored:x("sync-ignored",60319),pinned:x("pinned",60320),githubInverted:x("github-inverted",60321),serverProcess:x("server-process",60322),serverEnvironment:x("server-environment",60323),pass:x("pass",60324),issueClosed:x("issue-closed",60324),stopCircle:x("stop-circle",60325),playCircle:x("play-circle",60326),record:x("record",60327),debugAltSmall:x("debug-alt-small",60328),vmConnect:x("vm-connect",60329),cloud:x("cloud",60330),merge:x("merge",60331),export:x("export",60332),graphLeft:x("graph-left",60333),magnet:x("magnet",60334),notebook:x("notebook",60335),redo:x("redo",60336),checkAll:x("check-all",60337),pinnedDirty:x("pinned-dirty",60338),passFilled:x("pass-filled",60339),circleLargeFilled:x("circle-large-filled",60340),circleLarge:x("circle-large",60341),circleLargeOutline:x("circle-large-outline",60341),combine:x("combine",60342),gather:x("gather",60342),table:x("table",60343),variableGroup:x("variable-group",60344),typeHierarchy:x("type-hierarchy",60345),typeHierarchySub:x("type-hierarchy-sub",60346),typeHierarchySuper:x("type-hierarchy-super",60347),gitPullRequestCreate:x("git-pull-request-create",60348),runAbove:x("run-above",60349),runBelow:x("run-below",60350),notebookTemplate:x("notebook-template",60351),debugRerun:x("debug-rerun",60352),workspaceTrusted:x("workspace-trusted",60353),workspaceUntrusted:x("workspace-untrusted",60354),workspaceUnknown:x("workspace-unknown",60355),terminalCmd:x("terminal-cmd",60356),terminalDebian:x("terminal-debian",60357),terminalLinux:x("terminal-linux",60358),terminalPowershell:x("terminal-powershell",60359),terminalTmux:x("terminal-tmux",60360),terminalUbuntu:x("terminal-ubuntu",60361),terminalBash:x("terminal-bash",60362),arrowSwap:x("arrow-swap",60363),copy:x("copy",60364),personAdd:x("person-add",60365),filterFilled:x("filter-filled",60366),wand:x("wand",60367),debugLineByLine:x("debug-line-by-line",60368),inspect:x("inspect",60369),layers:x("layers",60370),layersDot:x("layers-dot",60371),layersActive:x("layers-active",60372),compass:x("compass",60373),compassDot:x("compass-dot",60374),compassActive:x("compass-active",60375),azure:x("azure",60376),issueDraft:x("issue-draft",60377),gitPullRequestClosed:x("git-pull-request-closed",60378),gitPullRequestDraft:x("git-pull-request-draft",60379),debugAll:x("debug-all",60380),debugCoverage:x("debug-coverage",60381),runErrors:x("run-errors",60382),folderLibrary:x("folder-library",60383),debugContinueSmall:x("debug-continue-small",60384),beakerStop:x("beaker-stop",60385),graphLine:x("graph-line",60386),graphScatter:x("graph-scatter",60387),pieChart:x("pie-chart",60388),bracket:x("bracket",60175),bracketDot:x("bracket-dot",60389),bracketError:x("bracket-error",60390),lockSmall:x("lock-small",60391),azureDevops:x("azure-devops",60392),verifiedFilled:x("verified-filled",60393),newline:x("newline",60394),layout:x("layout",60395),layoutActivitybarLeft:x("layout-activitybar-left",60396),layoutActivitybarRight:x("layout-activitybar-right",60397),layoutPanelLeft:x("layout-panel-left",60398),layoutPanelCenter:x("layout-panel-center",60399),layoutPanelJustify:x("layout-panel-justify",60400),layoutPanelRight:x("layout-panel-right",60401),layoutPanel:x("layout-panel",60402),layoutSidebarLeft:x("layout-sidebar-left",60403),layoutSidebarRight:x("layout-sidebar-right",60404),layoutStatusbar:x("layout-statusbar",60405),layoutMenubar:x("layout-menubar",60406),layoutCentered:x("layout-centered",60407),target:x("target",60408),indent:x("indent",60409),recordSmall:x("record-small",60410),errorSmall:x("error-small",60411),terminalDecorationError:x("terminal-decoration-error",60411),arrowCircleDown:x("arrow-circle-down",60412),arrowCircleLeft:x("arrow-circle-left",60413),arrowCircleRight:x("arrow-circle-right",60414),arrowCircleUp:x("arrow-circle-up",60415),layoutSidebarRightOff:x("layout-sidebar-right-off",60416),layoutPanelOff:x("layout-panel-off",60417),layoutSidebarLeftOff:x("layout-sidebar-left-off",60418),blank:x("blank",60419),heartFilled:x("heart-filled",60420),map:x("map",60421),mapHorizontal:x("map-horizontal",60421),foldHorizontal:x("fold-horizontal",60421),mapFilled:x("map-filled",60422),mapHorizontalFilled:x("map-horizontal-filled",60422),foldHorizontalFilled:x("fold-horizontal-filled",60422),circleSmall:x("circle-small",60423),bellSlash:x("bell-slash",60424),bellSlashDot:x("bell-slash-dot",60425),commentUnresolved:x("comment-unresolved",60426),gitPullRequestGoToChanges:x("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:x("git-pull-request-new-changes",60428),searchFuzzy:x("search-fuzzy",60429),commentDraft:x("comment-draft",60430),send:x("send",60431),sparkle:x("sparkle",60432),insert:x("insert",60433),mic:x("mic",60434),thumbsdownFilled:x("thumbsdown-filled",60435),thumbsupFilled:x("thumbsup-filled",60436),coffee:x("coffee",60437),snake:x("snake",60438),game:x("game",60439),vr:x("vr",60440),chip:x("chip",60441),piano:x("piano",60442),music:x("music",60443),micFilled:x("mic-filled",60444),repoFetch:x("repo-fetch",60445),copilot:x("copilot",60446),lightbulbSparkle:x("lightbulb-sparkle",60447),robot:x("robot",60448),sparkleFilled:x("sparkle-filled",60449),diffSingle:x("diff-single",60450),diffMultiple:x("diff-multiple",60451),surroundWith:x("surround-with",60452),share:x("share",60453),gitStash:x("git-stash",60454),gitStashApply:x("git-stash-apply",60455),gitStashPop:x("git-stash-pop",60456),vscode:x("vscode",60457),vscodeInsiders:x("vscode-insiders",60458),codeOss:x("code-oss",60459),runCoverage:x("run-coverage",60460),runAllCoverage:x("run-all-coverage",60461),coverage:x("coverage",60462),githubProject:x("github-project",60463),mapVertical:x("map-vertical",60464),foldVertical:x("fold-vertical",60464),mapVerticalFilled:x("map-vertical-filled",60465),foldVerticalFilled:x("fold-vertical-filled",60465),goToSearch:x("go-to-search",60466),percentage:x("percentage",60467),sortPercentage:x("sort-percentage",60467),attach:x("attach",60468)},rre={dialogError:x("dialog-error","error"),dialogWarning:x("dialog-warning","warning"),dialogInfo:x("dialog-info","info"),dialogClose:x("dialog-close","close"),treeItemExpanded:x("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:x("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:x("tree-filter-on-type-off","list-selection"),treeFilterClear:x("tree-filter-clear","close"),treeItemLoading:x("tree-item-loading","loading"),menuSelection:x("menu-selection","check"),menuSubmenu:x("menu-submenu","chevron-right"),menuBarMore:x("menubar-more","more"),scrollbarButtonLeft:x("scrollbar-button-left","triangle-left"),scrollbarButtonRight:x("scrollbar-button-right","triangle-right"),scrollbarButtonUp:x("scrollbar-button-up","triangle-up"),scrollbarButtonDown:x("scrollbar-button-down","triangle-down"),toolBarMore:x("toolbar-more","more"),quickInputBack:x("quick-input-back","arrow-left"),dropDownButton:x("drop-down-button",60084),symbolCustomColor:x("symbol-customcolor",60252),exportIcon:x("export",60332),workspaceUnspecified:x("workspace-unspecified",60355),newLine:x("newline",60394),thumbsDownFilled:x("thumbsdown-filled",60435),thumbsUpFilled:x("thumbsup-filled",60436),gitFetch:x("git-fetch",60445),lightbulbSparkleAutofix:x("lightbulb-sparkle-autofix",60447),debugBreakpointPending:x("debug-breakpoint-pending",60377)},oe=$($({},ore),rre);let PG=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]),ke(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;(n=this._factories.get(e))==null||n.dispose();const i=new are(this,e,t);return this._factories.set(e,i),ke(()=>{const o=this._factories.get(e);!o||o!==i||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return I(this,null,function*(){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(yield 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 are extends B{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()}resolve(){return I(this,null,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return I(this,null,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let u1=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 CB{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class jD{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}var No;(function(s){s[s.Increase=0]="Increase",s[s.Decrease=1]="Decrease"})(No||(No={}));var h1;(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=="undefined"&&!r&&(a=9),a}s.fromString=n})(h1||(h1={}));var dl;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(dl||(dl={}));class OG{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return L.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}var g1;(function(s){s[s.Automatic=0]="Automatic",s[s.PasteAs=1]="PasteAs"})(g1||(g1={}));var fc;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(fc||(fc={}));var _b;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(_b||(_b={}));function lre(s){return s&&Ie.isUri(s.uri)&&L.isIRange(s.range)&&(L.isIRange(s.originSelectionRange)||L.isIRange(s.targetSelectionRange))}const cre={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 dre(s,e){return p("symbolAriaLabel","{0} ({1})",s,cre[e])}var Qx;(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})(Qx||(Qx={}));var Eo;let mv=(Eo=class{static fromValue(e){switch(e){case"comment":return Eo.Comment;case"imports":return Eo.Imports;case"region":return Eo.Region}return new Eo(e)}constructor(e){this.value=e}},Eo.Comment=new Eo("comment"),Eo.Imports=new Eo("imports"),Eo.Region=new Eo("region"),Eo);var tM;(function(s){s[s.AIGenerated=1]="AIGenerated"})(tM||(tM={}));var f1;(function(s){s[s.Invoke=0]="Invoke",s[s.Automatic=1]="Automatic"})(f1||(f1={}));var iM;(function(s){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}s.is=e})(iM||(iM={}));var Jx;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(Jx||(Jx={}));class ure{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 Ii=new PG,nM=new PG;var ek;(function(s){s[s.Invoke=0]="Invoke",s[s.Automatic=1]="Automatic"})(ek||(ek={}));var sM;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(sM||(sM={}));var oM;(function(s){s[s.Invoke=1]="Invoke",s[s.Auto=2]="Auto"})(oM||(oM={}));var rM;(function(s){s[s.None=0]="None",s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(rM||(rM={}));var aM;(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"})(aM||(aM={}));var lM;(function(s){s[s.Deprecated=1]="Deprecated"})(lM||(lM={}));var cM;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(cM||(cM={}));var dM;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(dM||(dM={}));var uM;(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"})(uM||(uM={}));var hM;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(hM||(hM={}));var gM;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(gM||(gM={}));var fM;(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"})(fM||(fM={}));var pM;(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.placeholder=88]="placeholder",s[s.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",s[s.quickSuggestions=90]="quickSuggestions",s[s.quickSuggestionsDelay=91]="quickSuggestionsDelay",s[s.readOnly=92]="readOnly",s[s.readOnlyMessage=93]="readOnlyMessage",s[s.renameOnType=94]="renameOnType",s[s.renderControlCharacters=95]="renderControlCharacters",s[s.renderFinalNewline=96]="renderFinalNewline",s[s.renderLineHighlight=97]="renderLineHighlight",s[s.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",s[s.renderValidationDecorations=99]="renderValidationDecorations",s[s.renderWhitespace=100]="renderWhitespace",s[s.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",s[s.roundedSelection=102]="roundedSelection",s[s.rulers=103]="rulers",s[s.scrollbar=104]="scrollbar",s[s.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=106]="scrollBeyondLastLine",s[s.scrollPredominantAxis=107]="scrollPredominantAxis",s[s.selectionClipboard=108]="selectionClipboard",s[s.selectionHighlight=109]="selectionHighlight",s[s.selectOnLineNumbers=110]="selectOnLineNumbers",s[s.showFoldingControls=111]="showFoldingControls",s[s.showUnused=112]="showUnused",s[s.snippetSuggestions=113]="snippetSuggestions",s[s.smartSelect=114]="smartSelect",s[s.smoothScrolling=115]="smoothScrolling",s[s.stickyScroll=116]="stickyScroll",s[s.stickyTabStops=117]="stickyTabStops",s[s.stopRenderingLineAfter=118]="stopRenderingLineAfter",s[s.suggest=119]="suggest",s[s.suggestFontSize=120]="suggestFontSize",s[s.suggestLineHeight=121]="suggestLineHeight",s[s.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",s[s.suggestSelection=123]="suggestSelection",s[s.tabCompletion=124]="tabCompletion",s[s.tabIndex=125]="tabIndex",s[s.unicodeHighlighting=126]="unicodeHighlighting",s[s.unusualLineTerminators=127]="unusualLineTerminators",s[s.useShadowDOM=128]="useShadowDOM",s[s.useTabStops=129]="useTabStops",s[s.wordBreak=130]="wordBreak",s[s.wordSegmenterLocales=131]="wordSegmenterLocales",s[s.wordSeparators=132]="wordSeparators",s[s.wordWrap=133]="wordWrap",s[s.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=136]="wordWrapColumn",s[s.wordWrapOverride1=137]="wordWrapOverride1",s[s.wordWrapOverride2=138]="wordWrapOverride2",s[s.wrappingIndent=139]="wrappingIndent",s[s.wrappingStrategy=140]="wrappingStrategy",s[s.showDeprecated=141]="showDeprecated",s[s.inlayHints=142]="inlayHints",s[s.editorClassName=143]="editorClassName",s[s.pixelRatio=144]="pixelRatio",s[s.tabFocusMode=145]="tabFocusMode",s[s.layoutInfo=146]="layoutInfo",s[s.wrappingInfo=147]="wrappingInfo",s[s.defaultColorDecorators=148]="defaultColorDecorators",s[s.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",s[s.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(pM||(pM={}));var mM;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(mM||(mM={}));var _M;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(_M||(_M={}));var bM;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=3]="Right"})(bM||(bM={}));var vM;(function(s){s[s.Increase=0]="Increase",s[s.Decrease=1]="Decrease"})(vM||(vM={}));var wM;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(wM||(wM={}));var CM;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})(CM||(CM={}));var SM;(function(s){s[s.Type=1]="Type",s[s.Parameter=2]="Parameter"})(SM||(SM={}));var yM;(function(s){s[s.Automatic=0]="Automatic",s[s.Explicit=1]="Explicit"})(yM||(yM={}));var xM;(function(s){s[s.Invoke=0]="Invoke",s[s.Automatic=1]="Automatic"})(xM||(xM={}));var kM;(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"})(kM||(kM={}));var LM;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(LM||(LM={}));var EM;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(EM||(EM={}));var IM;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(IM||(IM={}));var DM;(function(s){s[s.Normal=1]="Normal",s[s.Underlined=2]="Underlined"})(DM||(DM={}));var TM;(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"})(TM||(TM={}));var NM;(function(s){s[s.AIGenerated=1]="AIGenerated"})(NM||(NM={}));var RM;(function(s){s[s.Invoke=0]="Invoke",s[s.Automatic=1]="Automatic"})(RM||(RM={}));var AM;(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"})(AM||(AM={}));var MM;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(MM||(MM={}));var PM;(function(s){s[s.Word=0]="Word",s[s.Line=1]="Line",s[s.Suggest=2]="Suggest"})(PM||(PM={}));var OM;(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"})(OM||(OM={}));var FM;(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"})(FM||(FM={}));var BM;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(BM||(BM={}));var WM;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(WM||(WM={}));var HM;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(HM||(HM={}));var VM;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(VM||(VM={}));var $M;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})($M||($M={}));var zM;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(zM||(zM={}));var UM;(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"})(UM||(UM={}));var jM;(function(s){s[s.Deprecated=1]="Deprecated"})(jM||(jM={}));var qM;(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"})(qM||(qM={}));var KM;(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"})(KM||(KM={}));var GM;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(GM||(GM={}));var ZM;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(ZM||(ZM={}));var yd;let hre=(yd=class{static chord(e,t){return Qi(e,t)}},yd.CtrlCmd=2048,yd.Shift=1024,yd.Alt=512,yd.WinCtrl=256,yd);function FG(){return{editor:void 0,languages:void 0,CancellationTokenSource:Ci,Emitter:O,KeyCode:kM,KeyMod:hre,Position:P,Range:L,Selection:we,SelectionDirection:VM,MarkerSeverity:LM,MarkerTag:EM,Uri:Ie,Token:u1}}function gre(s,e){const t=s;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const Vt=window;function BG(s){return s}class fre{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=BG):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class B6{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,typeof e=="function"?(this._fn=e,this._computeKey=BG):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}class _l{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}}function WG(s){return!s||typeof s!="string"?!0:s.trim().length===0}const pre=/{(\d+)}/g;function up(s,...e){return e.length===0?s:s.replace(pre,function(t,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=e.length?t:e[n]})}function mre(s){return s.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})}function Xw(s){return s.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function wr(s){return s.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function _re(s,e=" "){const t=ZS(s,e);return HG(t,e)}function ZS(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 HG(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 bre(s){return s.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function vre(s){return s.replace(/\*/g,"")}function VG(s,e,t={}){if(!s)throw new Error("Cannot create regex from empty string");e||(s=wr(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 wre(s){return s.source==="^"||s.source==="^$"||s.source==="$"||s.source==="^\\s*$"?!1:!!(s.exec("")&&s.lastIndex===0)}function Ic(s){return s.split(/\r\n|\r|\n/)}function Cre(s){var i;const e=[],t=s.split(/(\r\n|\r|\n)/);for(let n=0;n<Math.ceil(t.length/2);n++)e.push(t[2*n]+((i=t[2*n+1])!=null?i:""));return e}function ys(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 Wt(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 ul(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 p1(s,e){return s<e?-1:s>e?1:0}function SB(s,e,t=0,i=s.length,n=0,o=e.length){for(;t<i&&n<o;t++,n++){const l=s.charCodeAt(t),c=e.charCodeAt(n);if(l<c)return-1;if(l>c)return 1}const r=i-t,a=o-n;return r<a?-1:r>a?1:0}function YM(s,e){return YS(s,e,0,s.length,0,e.length)}function YS(s,e,t=0,i=s.length,n=0,o=e.length){for(;t<i&&n<o;t++,n++){let l=s.charCodeAt(t),c=e.charCodeAt(n);if(l===c)continue;if(l>=128||c>=128)return SB(s.toLowerCase(),e.toLowerCase(),t,i,n,o);Ru(l)&&(l-=32),Ru(c)&&(c-=32);const d=l-c;if(d!==0)return d}const r=i-t,a=o-n;return r<a?-1:r>a?1:0}function $y(s){return s>=48&&s<=57}function Ru(s){return s>=97&&s<=122}function Jl(s){return s>=65&&s<=90}function Um(s,e){return s.length===e.length&&YS(s,e)===0}function yB(s,e){const t=e.length;return e.length>s.length?!1:YS(s,e,0,t)===0}function vh(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 tk(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 ln(s){return 55296<=s&&s<=56319}function hp(s){return 56320<=s&&s<=57343}function xB(s,e){return(s-55296<<10)+(e-56320)+65536}function ik(s,e,t){const i=s.charCodeAt(t);if(ln(i)&&t+1<e){const n=s.charCodeAt(t+1);if(hp(n))return xB(i,n)}return i}function Sre(s,e){const t=s.charCodeAt(e-1);if(hp(t)&&e>1){const i=s.charCodeAt(e-2);if(ln(i))return xB(i,t)}return t}class kB{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=Sre(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=ik(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class nk{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new kB(e,t)}nextGraphemeLength(){const e=sk.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(W6(n,r)){t.setOffset(o);break}n=r}return t.offset-i}prevGraphemeLength(){const e=sk.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(W6(r,n)){t.setOffset(o);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function LB(s,e){return new nk(s,e).nextGraphemeLength()}function $G(s,e){return new nk(s,e).prevGraphemeLength()}function yre(s,e){e>0&&hp(s.charCodeAt(e))&&e--;const t=e+LB(s,e);return[t-$G(s,t),t]}let PN;function xre(){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 bb(s){return PN||(PN=xre()),PN.test(s)}const kre=/^[\t\n\r\x20-\x7E]*$/;function XS(s){return kre.test(s)}const zG=/[\u2028\u2029]/;function UG(s){return zG.test(s)}function wh(s){return s>=11904&&s<=55215||s>=63744&&s<=64255||s>=65281&&s<=65374}function EB(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 Lre="\uFEFF";function IB(s){return!!(s&&s.length>0&&s.charCodeAt(0)===65279)}function Ere(s,e=!1){return s?(e&&(s=s.replace(/\\./g,"")),s.toLowerCase()!==s):!1}function jG(s){return s=s%(2*26),s<26?String.fromCharCode(97+s):String.fromCharCode(65+s-26)}function W6(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)}const Bg=class Bg{static getInstance(){return Bg._INSTANCE||(Bg._INSTANCE=new Bg),Bg._INSTANCE}constructor(){this._data=Ire()}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}};Bg._INSTANCE=null;let sk=Bg;function Ire(){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 Dre(s,e){if(s===0)return 0;const t=Tre(s,e);if(t!==void 0)return t;const i=new kB(e,s);return i.prevCodePoint(),i.offset}function Tre(s,e){const t=new kB(e,s);let i=t.prevCodePoint();for(;Nre(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!EB(i))return;let n=t.offset;return n>0&&t.prevCodePoint()===8205&&(n=t.offset),n}function Nre(s){return 127995<=s&&s<=127999}const qG=" ",jl=class jl{static getInstance(e){return jl.cache.get(Array.from(e))}static getLocales(){return jl._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())}};jl.ambiguousCharacterData=new _l(()=>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]}')),jl.cache=new fre({getCacheKey:JSON.stringify},e=>{function t(d){const u=new Map;for(let h=0;h<d.length;h+=2)u.set(d[h],d[h+1]);return u}function i(d,u){const h=new Map(d);for(const[g,f]of u)h.set(g,f);return h}function n(d,u){if(!d)return u;const h=new Map;for(const[g,f]of d)u.has(g)&&h.set(g,f);return h}const o=jl.ambiguousCharacterData.value;let r=e.filter(d=>!d.startsWith("_")&&d in o);r.length===0&&(r=["_default"]);let a;for(const d of r){const u=t(o[d]);a=n(a,u)}const l=t(o._common),c=i(l,a);return new jl(c)}),jl._locales=new _l(()=>Object.keys(jl.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let m1=jl;const b_=class b_{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(b_.getRawData())),this._data}static isInvisibleCharacter(e){return b_.getData().has(e)}static get codePoints(){return b_.getData()}};b_._data=void 0;let Jg=b_;const lI=class lI{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))!=null?t:1}getWindowId(e){return e.vscodeWindowId}};lI.INSTANCE=new lI;let XM=lI;function KG(s,e,t){typeof e=="string"&&(e=s.matchMedia(e)),e.addEventListener("change",t)}function Rre(s){return XM.INSTANCE.getZoomFactor(s)}const _v=navigator.userAgent,qr=_v.indexOf("Firefox")>=0,qD=_v.indexOf("AppleWebKit")>=0,QS=_v.indexOf("Chrome")>=0,Ch=!QS&&_v.indexOf("Safari")>=0,GG=!QS&&!Ch&&qD;_v.indexOf("Electron/")>=0;const H6=_v.indexOf("Android")>=0;let ON=!1;if(typeof Vt.matchMedia=="function"){const s=Vt.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=Vt.matchMedia("(display-mode: fullscreen)");ON=s.matches,KG(Vt,s,({matches:t})=>{ON&&e.matches||(ON=t)})}const DB={clipboard:{writeText:_c||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:_c||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},pointerEvents:Vt.PointerEvent&&("ontouchstart"in Vt||navigator.maxTouchPoints>0)};function QM(s,e){if(typeof s=="number"){if(s===0)return null;const t=(s&65535)>>>0,i=(s&4294901760)>>>16;return i!==0?new FN([zy(t,e),zy(i,e)]):new FN([zy(t,e)])}else{const t=[];for(let i=0;i<s.length;i++)t.push(zy(s[i],e));return new FN(t)}}function zy(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 Fd(n,o,r,a,l)}class Fd{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 Fd&&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 FN{constructor(e){if(e.length===0)throw zr("chords");this.chords=e}}class Are{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 Mre{}function Pre(s){if(s.charCode){const t=String.fromCharCode(s.charCode).toUpperCase();return cd.fromString(t)}const e=s.keyCode;if(e===3)return 7;if(qr)switch(e){case 59:return 85;case 60:if(Ws)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(rt)return 57;break}else if(qD){if(rt&&e===93)return 57;if(!rt&&e===92)return 57}return LG[e]||0}const Ore=rt?256:2048,Fre=512,Bre=1024,Wre=rt?2048:256;class Ut{constructor(e){var i;this._standardKeyboardEventBrand=!0;const t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=(i=t.getModifierState)==null?void 0:i.call(t,"AltGraph"),this.keyCode=Pre(t),this.code=t.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|=Ore),this.altKey&&(t|=Fre),this.shiftKey&&(t|=Bre),this.metaKey&&(t|=Wre),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new Fd(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}const V6=new WeakMap;function Hre(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(e){return null}return s.parent}class Vre{static getSameOriginWindowChain(e){let t=V6.get(e);if(!t){t=[],V6.set(e,t);let i=e,n;do n=Hre(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 r,a;if(!t||e===t)return{top:0,left:0};let i=0,n=0;const o=this.getSameOriginWindowChain(e);for(const l of o){const c=l.window.deref();if(i+=(r=c==null?void 0:c.scrollY)!=null?r:0,n+=(a=c==null?void 0:c.scrollX)!=null?a:0,c===t||!l.iframeElement)break;const d=l.iframeElement.getBoundingClientRect();i+=d.top,n+=d.left}return{top:i,left:n}}}class ma{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=Vre.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class gp{constructor(e,t=0,i=0){var o;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(QS){const r=navigator.userAgent.match(/Chrome\/(\d+)/);n=(r?parseInt(r[1]):123)<=122}if(e){const r=e,a=e,l=((o=e.view)==null?void 0:o.devicePixelRatio)||1;if(typeof r.wheelDeltaY!="undefined")n?this.deltaY=r.wheelDeltaY/(120*l):this.deltaY=r.wheelDeltaY/120;else if(typeof a.VERTICAL_AXIS!="undefined"&&a.axis===a.VERTICAL_AXIS)this.deltaY=-a.detail/3;else if(e.type==="wheel"){const c=e;c.deltaMode===c.DOM_DELTA_LINE?qr&&!rt?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX!="undefined")Ch&&Qn?this.deltaX=-(r.wheelDeltaX/120):n?this.deltaX=r.wheelDeltaX/(120*l):this.deltaX=r.wheelDeltaX/120;else if(typeof a.HORIZONTAL_AXIS!="undefined"&&a.axis===a.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const c=e;c.deltaMode===c.DOM_DELTA_LINE?qr&&!rt?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*l):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)==null||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)==null||e.stopPropagation()}}const ZG=Symbol("MicrotaskDelay");function JM(s){return!!s&&typeof s.then=="function"}function dn(s){const e=new Ci,t=s(e.token),i=new Promise((n,o)=>{const r=e.token.onCancellationRequested(()=>{r.dispose(),o(new Sa)});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 JS(s,e,t){return new Promise((i,n)=>{const o=e.onCancellationRequested(()=>{o.dispose(),i(t)});s.then(i,n).finally(()=>o.dispose())})}class $re{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 zre=(s,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},s);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},Ure=s=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,s())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class Kr{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.call(this,null)};return this.deferred=t===ZG?Ure(i):zre(t,i),this.completionPromise}isTriggered(){var e;return!!((e=this.deferred)!=null&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)==null||e.call(this,new Sa),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)==null||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class YG{constructor(e){this.delayer=new Kr(e),this.throttler=new $re}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function Bd(s,e){return e?new Promise((t,i)=>{const n=setTimeout(()=>{o.dispose(),t()},s),o=e.onCancellationRequested(()=>{clearTimeout(n),o.dispose(),i(new Sa)})}):dn(t=>Bd(s,t))}function Sh(s,e=0,t){const i=setTimeout(()=>{s(),t&&n.dispose()},e),n=ke(()=>{clearTimeout(i),t==null||t.deleteAndLeak(n)});return t==null||t.add(n),n}function TB(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 Da{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new xt("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new xt("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class NB{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;(e=this.disposable)==null||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new xt("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const n=i.setInterval(()=>{e()},t);this.disposable=ke(()=>{i.clearInterval(n),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}}class Ft{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.call(this)}}let XG,Qw;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?Qw=(s,e)=>{mG(()=>{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)}}}:Qw=(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))}}},XG=s=>Qw(globalThis,s)})();class QG{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=Qw(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 jre extends QG{constructor(e){super(globalThis,e)}}class bv{get isRejected(){var e;return((e=this.outcome)==null?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 Sa)}}var eP;(function(s){function e(i){return I(this,null,function*(){let n;const o=yield Promise.all(i.map(r=>r.then(a=>a,a=>{n||(n=a)})));if(typeof n!="undefined")throw n;return o})}s.settled=e;function t(i){return new Promise((n,o)=>I(null,null,function*(){try{yield i(n,o)}catch(r){o(r)}}))}s.withAsyncBody=t})(eP||(eP={}));const ko=class ko{static fromArray(e){return new ko(t=>{t.emitMany(e)})}static fromPromise(e){return new ko(t=>I(null,null,function*(){t.emitMany(yield e)}))}static fromPromises(e){return new ko(t=>I(null,null,function*(){yield Promise.all(e.map(i=>I(null,null,function*(){return t.emitOne(yield i)})))}))}static merge(e){return new ko(t=>I(null,null,function*(){yield Promise.all(e.map(i=>I(null,null,function*(){try{for(var n=Wc(i),o,r,a;o=!(r=yield n.next()).done;o=!1){const l=r.value;t.emitOne(l)}}catch(r){a=[r]}finally{try{o&&(r=n.return)&&(yield r.call(n))}finally{if(a)throw a[0]}}})))}))}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new O,queueMicrotask(()=>I(this,null,function*(){const i={emitOne:n=>this.emitOne(n),emitMany:n=>this.emitMany(n),reject:n=>this.reject(n)};try{yield Promise.resolve(e(i)),this.resolve()}catch(n){this.reject(n)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>I(this,null,function*(){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};yield ce.toPromise(this._onStateChanged.event)}while(!0)}),return:()=>I(this,null,function*(){var t;return(t=this._onReturn)==null||t.call(this),{done:!0,value:void 0}})}}static map(e,t){return new ko(i=>I(null,null,function*(){try{for(var n=Wc(e),o,r,a;o=!(r=yield n.next()).done;o=!1){const l=r.value;i.emitOne(t(l))}}catch(r){a=[r]}finally{try{o&&(r=n.return)&&(yield r.call(n))}finally{if(a)throw a[0]}}}))}map(e){return ko.map(this,e)}static filter(e,t){return new ko(i=>I(null,null,function*(){try{for(var n=Wc(e),o,r,a;o=!(r=yield n.next()).done;o=!1){const l=r.value;t(l)&&i.emitOne(l)}}catch(r){a=[r]}finally{try{o&&(r=n.return)&&(yield r.call(n))}finally{if(a)throw a[0]}}}))}filter(e){return ko.filter(this,e)}static coalesce(e){return ko.filter(e,t=>!!t)}coalesce(){return ko.coalesce(this)}static toPromise(e){return I(this,null,function*(){const t=[];try{for(var i=Wc(e),n,o,r;n=!(o=yield i.next()).done;n=!1){const a=o.value;t.push(a)}}catch(o){r=[o]}finally{try{n&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r[0]}}return t})}toPromise(){return ko.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())}};ko.EMPTY=ko.fromArray([]);let fr=ko;class qre extends fr{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function Kre(s){const e=new Ci,t=s(e.token);return new qre(e,i=>I(null,null,function*(){const n=e.token.onCancellationRequested(()=>{n.dispose(),e.dispose(),i.reject(new Sa)});try{try{for(var o=Wc(t),r,a,l;r=!(a=yield o.next()).done;r=!1){const c=a.value;if(e.token.isCancellationRequested)return;i.emitOne(c)}}catch(a){l=[a]}finally{try{r&&(a=o.return)&&(yield a.call(o))}finally{if(l)throw l[0]}}n.dispose(),e.dispose()}catch(c){n.dispose(),e.dispose(),i.reject(c)}}))}/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:JG,setPrototypeOf:$6,isFrozen:Gre,getPrototypeOf:Zre,getOwnPropertyDescriptor:Yre}=Object;let{freeze:$o,seal:ya,create:eZ}=Object,{apply:tP,construct:iP}=typeof Reflect!="undefined"&&Reflect;$o||($o=function(e){return e});ya||(ya=function(e){return e});tP||(tP=function(e,t,i){return e.apply(t,i)});iP||(iP=function(e,t){return new e(...t)});const Uy=Gr(Array.prototype.forEach),z6=Gr(Array.prototype.pop),Zv=Gr(Array.prototype.push),ix=Gr(String.prototype.toLowerCase),BN=Gr(String.prototype.toString),U6=Gr(String.prototype.match),Yv=Gr(String.prototype.replace),Xre=Gr(String.prototype.indexOf),Qre=Gr(String.prototype.trim),$a=Gr(Object.prototype.hasOwnProperty),So=Gr(RegExp.prototype.test),Xv=Jre(TypeError);function Gr(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 tP(s,e,i)}}function Jre(s){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return iP(s,t)}}function $t(s,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ix;$6&&$6(s,null);let i=e.length;for(;i--;){let n=e[i];if(typeof n=="string"){const o=t(n);o!==n&&(Gre(e)||(e[i]=o),n=o)}s[n]=!0}return s}function eae(s){for(let e=0;e<s.length;e++)$a(s,e)||(s[e]=null);return s}function pg(s){const e=eZ(null);for(const[t,i]of JG(s))$a(s,t)&&(Array.isArray(i)?e[t]=eae(i):i&&typeof i=="object"&&i.constructor===Object?e[t]=pg(i):e[t]=i);return e}function Qv(s,e){for(;s!==null;){const i=Yre(s,e);if(i){if(i.get)return Gr(i.get);if(typeof i.value=="function")return Gr(i.value)}s=Zre(s)}function t(){return null}return t}const j6=$o(["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"]),WN=$o(["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"]),HN=$o(["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"]),tae=$o(["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"]),VN=$o(["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"]),iae=$o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q6=$o(["#text"]),K6=$o(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),$N=$o(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),G6=$o(["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"]),jy=$o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nae=ya(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sae=ya(/<%[\w\W]*|[\w\W]*%>/gm),oae=ya(/\${[\w\W]*}/gm),rae=ya(/^data-[\-\w.\u00B7-\uFFFF]/),aae=ya(/^aria-[\-\w]+$/),tZ=ya(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lae=ya(/^(?:\w+script|data):/i),cae=ya(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),iZ=ya(/^html$/i),dae=ya(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z6=Object.freeze({__proto__:null,MUSTACHE_EXPR:nae,ERB_EXPR:sae,TMPLIT_EXPR:oae,DATA_ATTR:rae,ARIA_ATTR:aae,IS_ALLOWED_URI:tZ,IS_SCRIPT_OR_DATA:lae,ATTR_WHITESPACE:cae,DOCTYPE_NAME:iZ,CUSTOM_ELEMENT:dae});const Jv={element:1,text:3,progressingInstruction:7,comment:8,document:9},uae=function(){return typeof window=="undefined"?null:window},hae=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(r){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function nZ(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uae();const e=nt=>nZ(nt);if(e.version="3.1.7",e.removed=[],!s||!s.document||s.document.nodeType!==Jv.document)return e.isSupported=!1,e;let{document:t}=s;const i=t,n=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:r,Node:a,Element:l,NodeFilter:c,NamedNodeMap:d=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:u,DOMParser:h,trustedTypes:g}=s,f=l.prototype,m=Qv(f,"cloneNode"),_=Qv(f,"remove"),b=Qv(f,"nextSibling"),v=Qv(f,"childNodes"),w=Qv(f,"parentNode");if(typeof r=="function"){const nt=t.createElement("template");nt.content&&nt.content.ownerDocument&&(t=nt.content.ownerDocument)}let C,S="";const{implementation:y,createNodeIterator:k,createDocumentFragment:E,getElementsByTagName:N}=t,{importNode:W}=i;let H={};e.isSupported=typeof JG=="function"&&typeof w=="function"&&y&&y.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:q,TMPLIT_EXPR:V,DATA_ATTR:Q,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:Se}=Z6;let{IS_ALLOWED_URI:Oe}=Z6,Fe=null;const ci=$t({},[...j6,...WN,...HN,...VN,...q6]);let At=null;const ki=$t({},[...K6,...$N,...G6,...jy]);let Zt=Object.seal(eZ(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}})),en=null,Dt=null,tn=!0,Gs=!0,Yo=!1,Aa=!0,_o=!1,na=!0,bo=!1,iu=!1,yn=!1,vo=!1,sm=!1,om=!1,Xh=!0,Ay=!1;const My="user-content-";let rm=!0,Qh=!1,Dl={},nu=null;const am=$t({},["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 Py=null;const Jh=$t({},["audio","video","img","source","image","track"]);let Oc=null;const Xo=$t({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Tl="http://www.w3.org/1998/Math/MathML",Fc="http://www.w3.org/2000/svg",xn="http://www.w3.org/1999/xhtml";let Tr=xn,lm=!1,Ma=null;const pi=$t({},[Tl,Fc,xn],BN);let eg=null;const IN=["application/xhtml+xml","text/html"],DN="text/html";let On=null,su=null;const TN=t.createElement("form"),Oy=function(Y){return Y instanceof RegExp||Y instanceof Function},Uv=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(su&&su===Y)){if((!Y||typeof Y!="object")&&(Y={}),Y=pg(Y),eg=IN.indexOf(Y.PARSER_MEDIA_TYPE)===-1?DN:Y.PARSER_MEDIA_TYPE,On=eg==="application/xhtml+xml"?BN:ix,Fe=$a(Y,"ALLOWED_TAGS")?$t({},Y.ALLOWED_TAGS,On):ci,At=$a(Y,"ALLOWED_ATTR")?$t({},Y.ALLOWED_ATTR,On):ki,Ma=$a(Y,"ALLOWED_NAMESPACES")?$t({},Y.ALLOWED_NAMESPACES,BN):pi,Oc=$a(Y,"ADD_URI_SAFE_ATTR")?$t(pg(Xo),Y.ADD_URI_SAFE_ATTR,On):Xo,Py=$a(Y,"ADD_DATA_URI_TAGS")?$t(pg(Jh),Y.ADD_DATA_URI_TAGS,On):Jh,nu=$a(Y,"FORBID_CONTENTS")?$t({},Y.FORBID_CONTENTS,On):am,en=$a(Y,"FORBID_TAGS")?$t({},Y.FORBID_TAGS,On):{},Dt=$a(Y,"FORBID_ATTR")?$t({},Y.FORBID_ATTR,On):{},Dl=$a(Y,"USE_PROFILES")?Y.USE_PROFILES:!1,tn=Y.ALLOW_ARIA_ATTR!==!1,Gs=Y.ALLOW_DATA_ATTR!==!1,Yo=Y.ALLOW_UNKNOWN_PROTOCOLS||!1,Aa=Y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_o=Y.SAFE_FOR_TEMPLATES||!1,na=Y.SAFE_FOR_XML!==!1,bo=Y.WHOLE_DOCUMENT||!1,vo=Y.RETURN_DOM||!1,sm=Y.RETURN_DOM_FRAGMENT||!1,om=Y.RETURN_TRUSTED_TYPE||!1,yn=Y.FORCE_BODY||!1,Xh=Y.SANITIZE_DOM!==!1,Ay=Y.SANITIZE_NAMED_PROPS||!1,rm=Y.KEEP_CONTENT!==!1,Qh=Y.IN_PLACE||!1,Oe=Y.ALLOWED_URI_REGEXP||tZ,Tr=Y.NAMESPACE||xn,Zt=Y.CUSTOM_ELEMENT_HANDLING||{},Y.CUSTOM_ELEMENT_HANDLING&&Oy(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Zt.tagNameCheck=Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&Oy(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Zt.attributeNameCheck=Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Zt.allowCustomizedBuiltInElements=Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_o&&(Gs=!1),sm&&(vo=!0),Dl&&(Fe=$t({},q6),At=[],Dl.html===!0&&($t(Fe,j6),$t(At,K6)),Dl.svg===!0&&($t(Fe,WN),$t(At,$N),$t(At,jy)),Dl.svgFilters===!0&&($t(Fe,HN),$t(At,$N),$t(At,jy)),Dl.mathMl===!0&&($t(Fe,VN),$t(At,G6),$t(At,jy))),Y.ADD_TAGS&&(Fe===ci&&(Fe=pg(Fe)),$t(Fe,Y.ADD_TAGS,On)),Y.ADD_ATTR&&(At===ki&&(At=pg(At)),$t(At,Y.ADD_ATTR,On)),Y.ADD_URI_SAFE_ATTR&&$t(Oc,Y.ADD_URI_SAFE_ATTR,On),Y.FORBID_CONTENTS&&(nu===am&&(nu=pg(nu)),$t(nu,Y.FORBID_CONTENTS,On)),rm&&(Fe["#text"]=!0),bo&&$t(Fe,["html","head","body"]),Fe.table&&($t(Fe,["tbody"]),delete en.tbody),Y.TRUSTED_TYPES_POLICY){if(typeof Y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Y.TRUSTED_TYPES_POLICY,S=C.createHTML("")}else C===void 0&&(C=hae(g,n)),C!==null&&typeof S=="string"&&(S=C.createHTML(""));$o&&$o(Y),su=Y}},_t=$t({},["mi","mo","mn","ms","mtext"]),A=$t({},["annotation-xml"]),M=$t({},["title","style","font","a","script"]),F=$t({},[...WN,...HN,...tae]),U=$t({},[...VN,...iae]),K=function(Y){let De=w(Y);(!De||!De.tagName)&&(De={namespaceURI:Tr,tagName:"template"});const Ge=ix(Y.tagName),Gi=ix(De.tagName);return Ma[Y.namespaceURI]?Y.namespaceURI===Fc?De.namespaceURI===xn?Ge==="svg":De.namespaceURI===Tl?Ge==="svg"&&(Gi==="annotation-xml"||_t[Gi]):!!F[Ge]:Y.namespaceURI===Tl?De.namespaceURI===xn?Ge==="math":De.namespaceURI===Fc?Ge==="math"&&A[Gi]:!!U[Ge]:Y.namespaceURI===xn?De.namespaceURI===Fc&&!A[Gi]||De.namespaceURI===Tl&&!_t[Gi]?!1:!U[Ge]&&(M[Ge]||!F[Ge]):!!(eg==="application/xhtml+xml"&&Ma[Y.namespaceURI]):!1},te=function(Y){Zv(e.removed,{element:Y});try{w(Y).removeChild(Y)}catch(De){_(Y)}},he=function(Y,De){try{Zv(e.removed,{attribute:De.getAttributeNode(Y),from:De})}catch(Ge){Zv(e.removed,{attribute:null,from:De})}if(De.removeAttribute(Y),Y==="is"&&!At[Y])if(vo||sm)try{te(De)}catch(Ge){}else try{De.setAttribute(Y,"")}catch(Ge){}},Re=function(Y){let De=null,Ge=null;if(yn)Y="<remove></remove>"+Y;else{const ks=U6(Y,/^[\r\n\t ]+/);Ge=ks&&ks[0]}eg==="application/xhtml+xml"&&Tr===xn&&(Y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Y+"</body></html>");const Gi=C?C.createHTML(Y):Y;if(Tr===xn)try{De=new h().parseFromString(Gi,eg)}catch(ks){}if(!De||!De.documentElement){De=y.createDocument(Tr,"template",null);try{De.documentElement.innerHTML=lm?S:Gi}catch(ks){}}const Zs=De.body||De.documentElement;return Y&&Ge&&Zs.insertBefore(t.createTextNode(Ge),Zs.childNodes[0]||null),Tr===xn?N.call(De,bo?"html":"body")[0]:bo?De.documentElement:Zs},He=function(Y){return k.call(Y.ownerDocument||Y,Y,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},gt=function(Y){return Y instanceof u&&(typeof Y.nodeName!="string"||typeof Y.textContent!="string"||typeof Y.removeChild!="function"||!(Y.attributes instanceof d)||typeof Y.removeAttribute!="function"||typeof Y.setAttribute!="function"||typeof Y.namespaceURI!="string"||typeof Y.insertBefore!="function"||typeof Y.hasChildNodes!="function")},Bt=function(Y){return typeof a=="function"&&Y instanceof a},qt=function(Y,De,Ge){H[Y]&&Uy(H[Y],Gi=>{Gi.call(e,De,Ge,su)})},Oi=function(Y){let De=null;if(qt("beforeSanitizeElements",Y,null),gt(Y))return te(Y),!0;const Ge=On(Y.nodeName);if(qt("uponSanitizeElement",Y,{tagName:Ge,allowedTags:Fe}),Y.hasChildNodes()&&!Bt(Y.firstElementChild)&&So(/<[/\w]/g,Y.innerHTML)&&So(/<[/\w]/g,Y.textContent)||Y.nodeType===Jv.progressingInstruction||na&&Y.nodeType===Jv.comment&&So(/<[/\w]/g,Y.data))return te(Y),!0;if(!Fe[Ge]||en[Ge]){if(!en[Ge]&&wo(Ge)&&(Zt.tagNameCheck instanceof RegExp&&So(Zt.tagNameCheck,Ge)||Zt.tagNameCheck instanceof Function&&Zt.tagNameCheck(Ge)))return!1;if(rm&&!nu[Ge]){const Gi=w(Y)||Y.parentNode,Zs=v(Y)||Y.childNodes;if(Zs&&Gi){const ks=Zs.length;for(let Qo=ks-1;Qo>=0;--Qo){const Nl=m(Zs[Qo],!0);Nl.__removalCount=(Y.__removalCount||0)+1,Gi.insertBefore(Nl,b(Y))}}}return te(Y),!0}return Y instanceof l&&!K(Y)||(Ge==="noscript"||Ge==="noembed"||Ge==="noframes")&&So(/<\/no(script|embed|frames)/i,Y.innerHTML)?(te(Y),!0):(_o&&Y.nodeType===Jv.text&&(De=Y.textContent,Uy([z,q,V],Gi=>{De=Yv(De,Gi," ")}),Y.textContent!==De&&(Zv(e.removed,{element:Y.cloneNode()}),Y.textContent=De)),qt("afterSanitizeElements",Y,null),!1)},Fi=function(Y,De,Ge){if(Xh&&(De==="id"||De==="name")&&(Ge in t||Ge in TN))return!1;if(!(Gs&&!Dt[De]&&So(Q,De))){if(!(tn&&So(de,De))){if(!At[De]||Dt[De]){if(!(wo(Y)&&(Zt.tagNameCheck instanceof RegExp&&So(Zt.tagNameCheck,Y)||Zt.tagNameCheck instanceof Function&&Zt.tagNameCheck(Y))&&(Zt.attributeNameCheck instanceof RegExp&&So(Zt.attributeNameCheck,De)||Zt.attributeNameCheck instanceof Function&&Zt.attributeNameCheck(De))||De==="is"&&Zt.allowCustomizedBuiltInElements&&(Zt.tagNameCheck instanceof RegExp&&So(Zt.tagNameCheck,Ge)||Zt.tagNameCheck instanceof Function&&Zt.tagNameCheck(Ge))))return!1}else if(!Oc[De]){if(!So(Oe,Yv(Ge,Ce,""))){if(!((De==="src"||De==="xlink:href"||De==="href")&&Y!=="script"&&Xre(Ge,"data:")===0&&Py[Y])){if(!(Yo&&!So(be,Yv(Ge,Ce,"")))){if(Ge)return!1}}}}}}return!0},wo=function(Y){return Y!=="annotation-xml"&&U6(Y,Se)},Nr=function(Y){qt("beforeSanitizeAttributes",Y,null);const{attributes:De}=Y;if(!De)return;const Ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};let Gi=De.length;for(;Gi--;){const Zs=De[Gi],{name:ks,namespaceURI:Qo,value:Nl}=Zs,qv=On(ks);let Co=ks==="value"?Nl:Qre(Nl);if(Ge.attrName=qv,Ge.attrValue=Co,Ge.keepAttr=!0,Ge.forceKeepAttr=void 0,qt("uponSanitizeAttribute",Y,Ge),Co=Ge.attrValue,Ge.forceKeepAttr||(he(ks,Y),!Ge.keepAttr))continue;if(!Aa&&So(/\/>/i,Co)){he(ks,Y);continue}_o&&Uy([z,q,V],v6=>{Co=Yv(Co,v6," ")});const b6=On(Y.nodeName);if(Fi(b6,qv,Co)){if(Ay&&(qv==="id"||qv==="name")&&(he(ks,Y),Co=My+Co),na&&So(/((--!?|])>)|<\/(style|title)/i,Co)){he(ks,Y);continue}if(C&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Qo)switch(g.getAttributeType(b6,qv)){case"TrustedHTML":{Co=C.createHTML(Co);break}case"TrustedScriptURL":{Co=C.createScriptURL(Co);break}}try{Qo?Y.setAttributeNS(Qo,ks,Co):Y.setAttribute(ks,Co),gt(Y)?te(Y):z6(e.removed)}catch(v6){}}}qt("afterSanitizeAttributes",Y,null)},jv=function nt(Y){let De=null;const Ge=He(Y);for(qt("beforeSanitizeShadowDOM",Y,null);De=Ge.nextNode();)qt("uponSanitizeShadowNode",De,null),!Oi(De)&&(De.content instanceof o&&nt(De.content),Nr(De));qt("afterSanitizeShadowDOM",Y,null)};return e.sanitize=function(nt){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=null,Ge=null,Gi=null,Zs=null;if(lm=!nt,lm&&(nt="<!-->"),typeof nt!="string"&&!Bt(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw Xv("dirty is not a string, aborting")}else throw Xv("toString is not a function");if(!e.isSupported)return nt;if(iu||Uv(Y),e.removed=[],typeof nt=="string"&&(Qh=!1),Qh){if(nt.nodeName){const Nl=On(nt.nodeName);if(!Fe[Nl]||en[Nl])throw Xv("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof a)De=Re("<!---->"),Ge=De.ownerDocument.importNode(nt,!0),Ge.nodeType===Jv.element&&Ge.nodeName==="BODY"||Ge.nodeName==="HTML"?De=Ge:De.appendChild(Ge);else{if(!vo&&!_o&&!bo&&nt.indexOf("<")===-1)return C&&om?C.createHTML(nt):nt;if(De=Re(nt),!De)return vo?null:om?S:""}De&&yn&&te(De.firstChild);const ks=He(Qh?nt:De);for(;Gi=ks.nextNode();)Oi(Gi)||(Gi.content instanceof o&&jv(Gi.content),Nr(Gi));if(Qh)return nt;if(vo){if(sm)for(Zs=E.call(De.ownerDocument);De.firstChild;)Zs.appendChild(De.firstChild);else Zs=De;return(At.shadowroot||At.shadowrootmode)&&(Zs=W.call(i,Zs,!0)),Zs}let Qo=bo?De.outerHTML:De.innerHTML;return bo&&Fe["!doctype"]&&De.ownerDocument&&De.ownerDocument.doctype&&De.ownerDocument.doctype.name&&So(iZ,De.ownerDocument.doctype.name)&&(Qo="<!DOCTYPE "+De.ownerDocument.doctype.name+`>
|
|
11
|
-
`+Qo),_o&&Uy([z,q,V],Nl=>{Qo=Yv(Qo,Nl," ")}),C&&om?C.createHTML(Qo):Qo},e.setConfig=function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Uv(nt),iu=!0},e.clearConfig=function(){su=null,iu=!1},e.isValidAttribute=function(nt,Y,De){su||Uv({});const Ge=On(nt),Gi=On(Y);return Fi(Ge,Gi,De)},e.addHook=function(nt,Y){typeof Y=="function"&&(H[nt]=H[nt]||[],Zv(H[nt],Y))},e.removeHook=function(nt){if(H[nt])return z6(H[nt])},e.removeHooks=function(nt){H[nt]&&(H[nt]=[])},e.removeAllHooks=function(){H={}},e}var Dc=nZ();Dc.version;Dc.isSupported;const sZ=Dc.sanitize;Dc.setConfig;Dc.clearConfig;Dc.isValidAttribute;const oZ=Dc.addHook,rZ=Dc.removeHook;Dc.removeHooks;Dc.removeAllHooks;var Ue;(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.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",s.vscodeNotebookCellOutput="vscode-notebook-cell-output",s.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",s.vscodeNotebookMetadata="vscode-notebook-metadata",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.vscodeChatCodeCompareBlock="vscode-chat-code-compare-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.commentsInput="comment",s.codeSetting="code-setting",s.outputChannel="output"})(Ue||(Ue={}));function KD(s,e){return Ie.isUri(s)?Um(s.scheme,e):yB(s,e+":")}function nP(s,...e){return e.some(t=>KD(s,t))}const gae="tkn";class fae{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 qi.join(this._serverRootPath,Ue.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return ze(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+=`&${gae}=${encodeURIComponent(o)}`),Ie.from({scheme:Wp?this._preferredWebSchema:Ue.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}}const aZ=new fae,pae="vscode-app",$C=class $C{asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===Ue.vscodeRemote?aZ.rewrite(e):e.scheme===Ue.file&&(_c||yse===`${Ue.vscodeFileResource}://${$C.FALLBACK_AUTHORITY}`)?e.with({scheme:Ue.vscodeFileResource,authority:e.authority||$C.FALLBACK_AUTHORITY,query:null,fragment:null}):e}toUri(e,t){if(Ie.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const i=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(i))return Ie.joinPath(Ie.parse(i,!0),e);const n=Koe(i,e);return Ie.file(n)}return Ie.parse(t.toUrl(e))}};$C.FALLBACK_AUTHORITY=pae;let sP=$C;const GD=new sP;var oP;(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:Ie.isUri(o)&&(r=new URL(o.toString(!0)).searchParams);const a=r==null?void 0: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})(oP||(oP={}));function ZD(s){return YD(s,0)}function YD(s,e){switch(typeof s){case"object":return s===null?fd(349,e):Array.isArray(s)?_ae(s,e):bae(s,e);case"string":return RB(s,e);case"boolean":return mae(s,e);case"number":return fd(s,e);case"undefined":return fd(937,e);default:return fd(617,e)}}function fd(s,e){return(e<<5)-e+s|0}function mae(s,e){return fd(s?433:863,e)}function RB(s,e){e=fd(149417,e);for(let t=0,i=s.length;t<i;t++)e=fd(s.charCodeAt(t),e);return e}function _ae(s,e){return e=fd(104579,e),s.reduce((t,i)=>YD(i,t),e)}function bae(s,e){return e=fd(181387,e),Object.keys(s).sort().reduce((t,i)=>(t=RB(i,t),YD(s[i],t)),e)}function zN(s,e,t=32){const i=t-e,n=~((1<<i)-1);return(s<<e|(n&s)>>>i)>>>0}function Y6(s,e=0,t=s.byteLength,i=0){for(let n=0;n<t;n++)s[e+n]=i}function vae(s,e,t="0"){for(;s.length<e;)s=t+s;return s}function ew(s,e=32){return s instanceof ArrayBuffer?Array.from(new Uint8Array(s)).map(t=>t.toString(16).padStart(2,"0")).join(""):vae((s>>>0).toString(16),e/4)}const cI=class cI{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(ln(r))if(a+1<t){const c=e.charCodeAt(a+1);hp(c)?(a++,l=xB(r,c)):l=65533}else{o=r;break}else hp(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()),ew(this._h0)+ew(this._h1)+ew(this._h2)+ew(this._h3)+ew(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Y6(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Y6(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=cI._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,zN(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,c,d;for(let u=0;u<80;u++)u<20?(l=n&o|~n&r,c=1518500249):u<40?(l=n^o^r,c=1859775393):u<60?(l=n&o|n&r|o&r,c=2400959708):(l=n^o^r,c=3395469782),d=zN(i,5)+l+a+c+e.getUint32(u*4,!1)&4294967295,a=r,r=o,o=zN(n,30),n=i,i=d;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}};cI._bigBlock32=new DataView(new ArrayBuffer(320));let rP=cI;const{getWindow:Te,getWindows:lZ,getWindowsCount:wae,getWindowId:ok,getWindowById:X6,onDidRegisterWindow:XD,onWillUnregisterWindow:Cae,onDidUnregisterWindow:Sae}=function(){const s=new Map;gre(Vt,1);const e={window:Vt,disposables:new G};s.set(Vt.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!=null?l:a?e:void 0}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:i.event,registerWindow(r){if(s.has(r.vscodeWindowId))return B.None;const a=new G,l={window:r,disposables:a.add(new G)};return s.set(r.vscodeWindowId,l),a.add(ke(()=>{s.delete(r.vscodeWindowId),i.fire(r)})),a.add(j(r,re.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 c;const a=r;if((c=a==null?void 0:a.ownerDocument)!=null&&c.defaultView)return a.ownerDocument.defaultView.window;const l=r;return l!=null&&l.view?l.view.window:Vt},getDocument(r){return Te(r).document}}}();function Tn(s){for(;s.firstChild;)s.firstChild.remove()}class yae{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 j(s,e,t,i){return new yae(s,e,t,i)}function cZ(s,e){return function(t){return e(new ma(s,t))}}function xae(s){return function(e){return s(new Ut(e))}}const xi=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"||t==="contextmenu"?o=cZ(Te(e),i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=xae(i)),j(e,t,o,n)},kae=function(e,t,i){const n=cZ(Te(e),t);return Lae(e,n,i)};function Lae(s,e,t){return j(s,ml&&DB.pointerEvents?re.POINTER_DOWN:re.MOUSE_DOWN,e,t)}function kw(s,e,t){return Qw(s,e,t)}class UN extends QG{constructor(e,t){super(e,t)}}let rk,zo;class AB extends NB{constructor(e){super(),this.defaultTarget=e&&Te(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i!=null?i:this.defaultTarget)}}class jN{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){ze(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 a;t.set(o,!1);const r=(a=s.get(o))!=null?a:[];for(e.set(o,r),s.set(o,[]),i.set(o,!0);r.length>0;)r.sort(jN.sort),r.shift().execute();i.set(o,!1)};zo=(o,r,a=0)=>{const l=ok(o),c=new jN(r,a);let d=s.get(l);return d||(d=[],s.set(l,d)),d.push(c),t.get(l)||(t.set(l,!0),o.requestAnimationFrame(()=>n(l))),c},rk=(o,r,a)=>{const l=ok(o);if(i.get(l)){const c=new jN(r,a);let d=e.get(l);return d||(d=[],e.set(l,d)),d.push(c),c}else return zo(o,r,a)}})();function QD(s){return Te(s).getComputedStyle(s,null)}function yh(s,e){const t=Te(s),i=t.document;if(s!==i.body)return new Rt(s.clientWidth,s.clientHeight);if(ml&&(t!=null&&t.visualViewport))return new Rt(t.visualViewport.width,t.visualViewport.height);if(t!=null&&t.innerWidth&&t.innerHeight)return new Rt(t.innerWidth,t.innerHeight);if(i.body&&i.body.clientWidth&&i.body.clientHeight)return new Rt(i.body.clientWidth,i.body.clientHeight);if(i.documentElement&&i.documentElement.clientWidth&&i.documentElement.clientHeight)return new Rt(i.documentElement.clientWidth,i.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Hi{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=QD(e),o=n?n.getPropertyValue(t):"0";return Hi.convertToPixels(e,o)}static getBorderLeftWidth(e){return Hi.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Hi.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Hi.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Hi.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Hi.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Hi.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Hi.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Hi.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Hi.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Hi.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Hi.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Hi.getDimension(e,"margin-bottom","marginBottom")}}const Wg=class Wg{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new Wg(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof Wg?e:new Wg(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};Wg.None=new Wg(0,0);let Rt=Wg;function dZ(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=hZ(s)?null:QD(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=Hi.getBorderLeftWidth(s),t+=Hi.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function Eae(s,e,t){typeof e=="number"&&(s.style.width=`${e}px`),typeof t=="number"&&(s.style.height=`${t}px`)}function Mi(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 uZ(s){let e=s,t=1;do{const i=QD(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function Io(s){const e=Hi.getMarginLeft(s)+Hi.getMarginRight(s);return s.offsetWidth+e}function qN(s){const e=Hi.getBorderLeftWidth(s)+Hi.getBorderRightWidth(s),t=Hi.getPaddingLeft(s)+Hi.getPaddingRight(s);return s.offsetWidth-e-t}function Iae(s){const e=Hi.getBorderTopWidth(s)+Hi.getBorderBottomWidth(s),t=Hi.getPaddingTop(s)+Hi.getPaddingBottom(s);return s.offsetHeight-e-t}function pd(s){const e=Hi.getMarginTop(s)+Hi.getMarginBottom(s);return s.offsetHeight+e}function cn(s,e){return!!(e!=null&&e.contains(s))}function Dae(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 KN(s,e,t){return!!Dae(s,e,t)}function hZ(s){return s&&!!s.host&&!!s.mode}function ak(s){return!!fp(s)}function fp(s){var e;for(;s.parentNode;){if(s===((e=s.ownerDocument)==null?void 0:e.body))return null;s=s.parentNode}return hZ(s)?s:null}function Yn(){let s=vv().activeElement;for(;s!=null&&s.shadowRoot;)s=s.shadowRoot.activeElement;return s}function JD(s){return Yn()===s}function gZ(s){return cn(Yn(),s)}function vv(){var e;return wae()<=1?Vt.document:(e=Array.from(lZ()).map(({window:t})=>t.document).find(t=>t.hasFocus()))!=null?e:Vt.document}function Lw(){var e,t;return(t=(e=vv().defaultView)==null?void 0:e.window)!=null?t:Vt}const MB=new Map;function fZ(){return new Tae}class Tae{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=Cr(Vt.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function Cr(s=Vt.document.head,e,t){const i=document.createElement("style");if(i.type="text/css",i.media="screen",e==null||e(i),s.appendChild(i),t&&t.add(ke(()=>i.remove())),s===Vt.document.head){const n=new Set;MB.set(i,n);for(const{window:o,disposables:r}of lZ()){if(o===Vt)continue;const a=r.add(Nae(i,n,o));t==null||t.add(a)}}return i}function Nae(s,e,t){var o,r;const i=new G,n=s.cloneNode(!0);t.document.head.appendChild(n),i.add(ke(()=>n.remove()));for(const a of mZ(s))(r=n.sheet)==null||r.insertRule(a.cssText,(o=n.sheet)==null?void 0:o.cssRules.length);return i.add(Rae.observe(s,i,{childList:!0})(()=>{n.textContent=s.textContent})),e.add(n),i.add(ke(()=>e.delete(n))),i}const Rae=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=ZD(t);let o=i.get(n);if(o)o.users+=1;else{const r=new O,a=new MutationObserver(c=>r.fire(c));a.observe(s,t);const l=o={users:1,observer:a,onDidMutate:r.event};e.add(ke(()=>{l.users-=1,l.users===0&&(r.dispose(),a.disconnect(),i==null||i.delete(n),(i==null?void 0:i.size)===0&&this.mutationObservers.delete(s))})),i.set(n,o)}return o.onDidMutate}};let GN=null;function pZ(){return GN||(GN=Cr()),GN}function mZ(s){var e,t;return(e=s==null?void 0:s.sheet)!=null&&e.rules?s.sheet.rules:(t=s==null?void 0:s.sheet)!=null&&t.cssRules?s.sheet.cssRules:[]}function lk(s,e,t=pZ()){var i,n;if(!(!t||!e)){(i=t.sheet)==null||i.insertRule(`${s} {${e}}`,0);for(const o of(n=MB.get(t))!=null?n:[])lk(s,e,o)}}function aP(s,e=pZ()){var n,o;if(!e)return;const t=mZ(e),i=[];for(let r=0;r<t.length;r++){const a=t[r];Aae(a)&&a.selectorText.indexOf(s)!==-1&&i.push(r)}for(let r=i.length-1;r>=0;r--)(n=e.sheet)==null||n.deleteRule(i[r]);for(const r of(o=MB.get(e))!=null?o:[])aP(s,r)}function Aae(s){return typeof s.selectorText=="string"}function un(s){return s instanceof HTMLElement||s instanceof Te(s).HTMLElement}function Q6(s){return s instanceof HTMLAnchorElement||s instanceof Te(s).HTMLAnchorElement}function Mae(s){return s instanceof SVGElement||s instanceof Te(s).SVGElement}function PB(s){return s instanceof MouseEvent||s instanceof Te(s).MouseEvent}function od(s){return s instanceof KeyboardEvent||s instanceof Te(s).KeyboardEvent}const re={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",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",CHANGE:"change",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function Pae(s){const e=s;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const ct={stop:(s,e)=>(s.preventDefault(),e&&s.stopPropagation(),s)};function Oae(s){const e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function Fae(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 ck extends B{static hasFocusWithin(e){if(un(e)){const t=fp(e),i=t?t.activeElement:e.ownerDocument.activeElement;return cn(i,e)}else{const t=e;return cn(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=ck.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(un(e)?Te(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{ck.hasFocusWithin(e)!==t&&(t?o():n())},this._register(j(e,re.FOCUS,n,!0)),this._register(j(e,re.BLUR,o,!0)),un(e)&&(this._register(j(e,re.FOCUS_IN,()=>this._refreshStateHandler())),this._register(j(e,re.FOCUS_OUT,()=>this._refreshStateHandler())))}}function bl(s){return new ck(s)}function Bae(s,e){return s.after(e),e}function J(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function OB(s,e){return s.insertBefore(e,s.firstChild),e}function Nn(s,...e){s.innerText="",J(s,...e)}const Wae=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var _1;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(_1||(_1={}));function _Z(s,e,t,...i){const n=Wae.exec(e);if(!n)throw new Error("Bad use of emmet");const o=n[1]||"div";let r;return s!==_1.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!="undefined"&&(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function ae(s,e,...t){return _Z(_1.HTML,s,e,...t)}ae.SVG=function(s,e,...t){return _Z(_1.SVG,s,e,...t)};function Hae(s,...e){s?Ro(...e):Ds(...e)}function Ro(...s){for(const e of s)e.style.display="",e.removeAttribute("aria-hidden")}function Ds(...s){for(const e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function J6(s,e){const t=s.devicePixelRatio*e;return Math.max(1,Math.floor(t))/s.devicePixelRatio}function bZ(s){Vt.open(s,"_blank","noopener")}function Vae(s,e){const t=()=>{e(),i=zo(s,t)};let i=zo(s,t);return ke(()=>i.dispose())}aZ.setPreferredWebSchema(/^https:/.test(Vt.location.href)?"https":"http");function Wd(s){return s?`url('${GD.uriToBrowserUri(s).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ZN(s){return`'${s.replace(/'/g,"%27")}'`}function Dd(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=Dd(i[1].trim(),e)),`var(${i[0]}, ${e})`}return s}return e}function $ae(s,e=!1){const t=document.createElement("a");return oZ("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)}}}),ke(()=>{rZ("afterSanitizeAttributes")})}const zae=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 md extends O{constructor(){super(),this._subscriptions=new G,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(ce.runAndSubscribe(XD,({window:e,disposables:t})=>this.registerListeners(e,t),{window:Vt,disposables:this._subscriptions}))}registerListeners(e,t){t.add(j(e,"keydown",i=>{if(i.defaultPrevented)return;const n=new Ut(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(j(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(j(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(j(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(j(e.document.body,"mousemove",i=>{i.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(j(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 md.instance||(md.instance=new md),md.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Uae extends B{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(j(this.element,re.DRAG_START,e=>{var t,i;(i=(t=this.callbacks).onDragStart)==null||i.call(t,e)})),this.callbacks.onDrag&&this._register(j(this.element,re.DRAG,e=>{var t,i;(i=(t=this.callbacks).onDrag)==null||i.call(t,e)})),this._register(j(this.element,re.DRAG_ENTER,e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,(i=(t=this.callbacks).onDragEnter)==null||i.call(t,e)})),this._register(j(this.element,re.DRAG_OVER,e=>{var t,i;e.preventDefault(),(i=(t=this.callbacks).onDragOver)==null||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(j(this.element,re.DRAG_LEAVE,e=>{var t,i;this.counter--,this.counter===0&&(this.dragStartTime=0,(i=(t=this.callbacks).onDragLeave)==null||i.call(t,e))})),this._register(j(this.element,re.DRAG_END,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDragEnd)==null||i.call(t,e)})),this._register(j(this.element,re.DROP,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDrop)==null||i.call(t,e)}))}}const vZ=new RegExp("(?<tag>[\\w\\-]+)?(?:#(?<id>[\\w\\-]+))?(?<class>(?:\\.(?:[\\w\\-]+))*)(?:@(?<name>(?:[\\w\\_])+))?");function st(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const n=vZ.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 c of n.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(const c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(r.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(const c of i)un(c)?r.appendChild(c):typeof c=="string"?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(const[c,d]of Object.entries(t))if(c!=="className")if(c==="style")for(const[u,h]of Object.entries(d))r.style.setProperty(dk(u),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?r.tabIndex=d:r.setAttribute(dk(c),d.toString());return l.root=r,l}function dm(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const n=vZ.exec(s);if(!n||!n.groups)throw new Error("Bad use of h");const o=n.groups.tag||"div",r=document.createElementNS("http://www.w3.org/2000/svg",o);n.groups.id&&(r.id=n.groups.id);const a=[];if(n.groups.class)for(const c of n.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(const c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(r.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(const c of i)un(c)?r.appendChild(c):typeof c=="string"?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(const[c,d]of Object.entries(t))if(c!=="className")if(c==="style")for(const[u,h]of Object.entries(d))r.style.setProperty(dk(u),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?r.tabIndex=d:r.setAttribute(dk(c),d.toString());return l.root=r,l}function dk(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class jae extends B{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.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class qae extends B{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 jae(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 Kae{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=ok(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=new qae(e),this.mapWindowIdToPixelRatioMonitor.set(t,i),ce.once(Sae)(({vscodeWindowId:n})=>{n===t&&(i==null||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const b1=new Kae;class wZ{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=Pa(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=Pa(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=Pa(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=Pa(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=Pa(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=Pa(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=Pa(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=Pa(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=Pa(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=Pa(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=Pa(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 Pa(s){return typeof s=="number"?`${s}px`:s}function Et(s){return new wZ(s)}function Rn(s,e){s instanceof wZ?(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 Gae{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class FB{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){var t;this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),(t=this._container)==null||t.remove(),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");FB._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 Zae(s,e,t){new FB(e,t).read(s)}const Br=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))}},Yae=rt?1.5:1.35,YN=8;class ef{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),c=e.get(67),d=e.get(64);return ef._create(n,o,r,a,l,c,d,t,i)}static _create(e,t,i,n,o,r,a,l,c){r===0?r=Yae*i:r<YN&&(r=r*i),r=Math.round(r),r<YN&&(r=YN);const d=1+(c?0:Br.getZoomLevel()*.1);return i*=d,r*=d,o===d1.TRANSLATE&&(t==="normal"||t==="bold"?o=d1.OFF:(o=`'wght' ${parseInt(t,10)}`,t="normal")),new ef({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=Fs.fontFamily,t=ef._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}const Xae=2;class lP extends ef{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=Xae,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 Qae extends B{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=ok(e);let i=this._cache.get(t);return i||(i=new Jae,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 lP({pixelRatio:b1.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 Gae(e,t);return i.push(o),n==null||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),c=this._createRequest("1",0,i,n),d=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),w=this._createRequest("→",0,i,null),C=this._createRequest("·",0,i,n),S=this._createRequest("⸱",0,i,null),y="|/-_ilm%";for(let H=0,z=y.length;H<z;H++)this._createRequest(y.charAt(H),0,i,n),this._createRequest(y.charAt(H),1,i,n),this._createRequest(y.charAt(H),2,i,n);Zae(e,t,i);const k=Math.max(l.width,c.width,d.width,u.width,h.width,g.width,f.width,m.width,_.width,b.width);let E=t.fontFeatureSettings===_h.OFF;const N=n[0].width;for(let H=1,z=n.length;E&&H<z;H++){const q=N-n[H].width;if(q<-.001||q>.001){E=!1;break}}let W=!0;return E&&w.width!==N&&(W=!1),w.width>v.width&&(W=!1),new lP({pixelRatio:b1.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:W,spaceWidth:a.width,middotWidth:C.width,wsmiddotWidth:S.width,maxDigitWidth:k},!0)}}class Jae{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 cP=new Qae;var rl;(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})(rl||(rl={}));const Le=at("instantiationService");function ele(s,e,t){e[rl.DI_TARGET]===e?e[rl.DI_DEPENDENCIES].push({id:s,index:t}):(e[rl.DI_DEPENDENCIES]=[{id:s,index:t}],e[rl.DI_TARGET]=e)}function at(s){if(rl.serviceIds.has(s))return rl.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");ele(e,t,n)};return e.toString=()=>s,rl.serviceIds.set(s,e),e}const St=at("codeEditorService"),ti=at("modelService"),go=at("textModelService");class Fo extends B{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}))}run(e,t){return I(this,null,function*(){this._actionCallback&&(yield this._actionCallback(e))})}}class pp extends B{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}run(e,t){return I(this,null,function*(){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{yield this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})})}runAction(e,t){return I(this,null,function*(){yield e.run(t)})}}const zC=class zC{constructor(){this.id=zC.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 zC,...i]:t=i);return t}run(){return I(this,null,function*(){})}};zC.ID="vs.actions.separator";let hn=zC;class vb{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}run(){return I(this,null,function*(){})}}const dI=class dI extends Fo{constructor(){super(dI.ID,p("submenu.empty","(empty)"),void 0,!1)}};dI.ID="vs.actions.empty";let dP=dI;function tf(s){var e,t;return{id:s.id,label:s.label,tooltip:(e=s.tooltip)!=null?e:s.label,class:s.class,enabled:(t=s.enabled)!=null?t:!0,checked:s.checked,run:(...i)=>I(null,null,function*(){return s.run(...i)})}}var uP;(function(s){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"}s.isThemeColor=e})(uP||(uP={}));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=="undefined"||uP.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 c(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=c;function d(h){const g=h.id.lastIndexOf("~");if(g!==-1)return h.id.substring(g+1)}s.getModifier=d;function u(h,g){var f,m;return h.id===g.id&&((f=h.color)==null?void 0:f.id)===((m=g.color)==null?void 0:m.id)}s.isEqual=u})(Me||(Me={}));const Gt=at("commandService"),ht=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,...c){return gse(c,r),a(l,...c)}}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=ke(()=>{n();const r=this._commands.get(t);r!=null&&r.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return ht.registerCommand(s,(t,...i)=>t.get(Gt).executeCommand(e,...i))}getCommand(s){const e=this._commands.get(s);if(!(!e||e.isEmpty()))return ut.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}};ht.registerCommand("noop",()=>{});function XN(...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 tle=p("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),ile=p("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");var xd;let tw=(xd=class{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 mB(`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(XN("==","=~"));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(XN("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(XN("||"));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=xd._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(tle);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(ile);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&&xd._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}},xd._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),xd._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]),xd);const os=new Map;os.set("false",!1);os.set("true",!0);os.set("isMac",rt);os.set("isLinux",Ws);os.set("isWindows",Qn);os.set("isWeb",Wp);os.set("isMacNative",rt&&!Wp);os.set("isEdge",Ise);os.set("isFirefox",Lse);os.set("isChrome",bG);os.set("isSafari",Ese);const nle=Object.prototype.hasOwnProperty,sle={regexParsingWithErrorRecovery:!0},ole=p("contextkey.parser.error.emptyString","Empty context key expression"),rle=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."),ale=p("contextkey.parser.error.noInAfterNot","'in' after 'not'."),e7=p("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),lle=p("contextkey.parser.error.unexpectedToken","Unexpected token"),cle=p("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),dle=p("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),ule=p("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");var lc;let hle=(lc=class{constructor(e=sle){this._config=e,this._scanner=new tw,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:ole,offset:0,lexeme:"",additionalInfo:rle});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?cle:void 0;throw this._parsingErrors.push({message:lle,offset:i.offset,lexeme:tw.getLexeme(i),additionalInfo:n}),lc._parseError}return t}catch(t){if(t!==lc._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]:Z.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:Z.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Hs.INSTANCE;case 12:return this._advance(),lo.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,e7),t==null?void 0:t.negate()}case 17:return this._advance(),Vp.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(),Z.true();case 12:return this._advance(),Z.false();case 0:{this._advance();const t=this._expr();return this._consume(1,e7),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(c){throw this._errExpectedButGot("REGEX",n)}return v1.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(tw.getLexeme(r)),this._advance(),r=this._peek()}const l=o.join(""),c=l.lastIndexOf("/"),d=c===l.length-1?void 0:this._removeFlagsGY(l.substring(c+1));let u;try{u=new RegExp(l.substring(1,c),d)}catch(h){throw this._errExpectedButGot("REGEX",n)}return Z.regex(t,u)}case 18:{const o=n.lexeme;this._advance();let r=null;if(!WG(o)){const a=o.indexOf("/"),l=o.lastIndexOf("/");if(a!==l&&a>=0){const c=o.slice(a+1,l),d=o[l+1]==="i"?"i":"";try{r=new RegExp(c,d)}catch(u){throw this._errExpectedButGot("REGEX",n)}}}if(r===null)throw this._errExpectedButGot("REGEX",n);return v1.create(t,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,ale);const n=this._value();return Z.notIn(t,n)}switch(this._peek().type){case 3:{this._advance();const n=this._value();if(this._previous().type===18)return Z.equals(t,n);switch(n){case"true":return Z.has(t);case"false":return Z.not(t);default:return Z.equals(t,n)}}case 4:{this._advance();const n=this._value();if(this._previous().type===18)return Z.notEquals(t,n);switch(n){case"true":return Z.not(t);case"false":return Z.has(t);default:return Z.notEquals(t,n)}}case 5:return this._advance(),rT.create(t,this._value());case 6:return this._advance(),aT.create(t,this._value());case 7:return this._advance(),sT.create(t,this._value());case 8:return this._advance(),oT.create(t,this._value());case 13:return this._advance(),Z.in(t,this._value());default:return Z.has(t)}}case 20:throw this._parsingErrors.push({message:dle,offset:e.offset,lexeme:"",additionalInfo:ule}),lc._parseError;default:throw this._errExpectedButGot(`true | false | KEY
|
|
11
|
+
`+Qo),_o&&Uy([z,q,V],Nl=>{Qo=Yv(Qo,Nl," ")}),C&&om?C.createHTML(Qo):Qo},e.setConfig=function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Uv(nt),iu=!0},e.clearConfig=function(){su=null,iu=!1},e.isValidAttribute=function(nt,Y,De){su||Uv({});const Ge=On(nt),Gi=On(Y);return Fi(Ge,Gi,De)},e.addHook=function(nt,Y){typeof Y=="function"&&(H[nt]=H[nt]||[],Zv(H[nt],Y))},e.removeHook=function(nt){if(H[nt])return z6(H[nt])},e.removeHooks=function(nt){H[nt]&&(H[nt]=[])},e.removeAllHooks=function(){H={}},e}var Dc=nZ();Dc.version;Dc.isSupported;const sZ=Dc.sanitize;Dc.setConfig;Dc.clearConfig;Dc.isValidAttribute;const oZ=Dc.addHook,rZ=Dc.removeHook;Dc.removeHooks;Dc.removeAllHooks;var Ue;(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.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",s.vscodeNotebookCellOutput="vscode-notebook-cell-output",s.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",s.vscodeNotebookMetadata="vscode-notebook-metadata",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.vscodeChatCodeCompareBlock="vscode-chat-code-compare-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.commentsInput="comment",s.codeSetting="code-setting",s.outputChannel="output"})(Ue||(Ue={}));function KD(s,e){return Ie.isUri(s)?Um(s.scheme,e):yB(s,e+":")}function nP(s,...e){return e.some(t=>KD(s,t))}const gae="tkn";class fae{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 qi.join(this._serverRootPath,Ue.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(a){return ze(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+=`&${gae}=${encodeURIComponent(o)}`),Ie.from({scheme:Wp?this._preferredWebSchema:Ue.vscodeRemoteResource,authority:`${i}:${n}`,path:this._remoteResourcesPath,query:r})}}const aZ=new fae,pae="vscode-app",$C=class $C{asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===Ue.vscodeRemote?aZ.rewrite(e):e.scheme===Ue.file&&(_c||yse===`${Ue.vscodeFileResource}://${$C.FALLBACK_AUTHORITY}`)?e.with({scheme:Ue.vscodeFileResource,authority:e.authority||$C.FALLBACK_AUTHORITY,query:null,fragment:null}):e}toUri(e,t){if(Ie.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const i=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(i))return Ie.joinPath(Ie.parse(i,!0),e);const n=Koe(i,e);return Ie.file(n)}return Ie.parse(t.toUrl(e))}};$C.FALLBACK_AUTHORITY=pae;let sP=$C;const GD=new sP;var oP;(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:Ie.isUri(o)&&(r=new URL(o.toString(!0)).searchParams);const a=r==null?void 0: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})(oP||(oP={}));function ZD(s){return YD(s,0)}function YD(s,e){switch(typeof s){case"object":return s===null?fd(349,e):Array.isArray(s)?_ae(s,e):bae(s,e);case"string":return RB(s,e);case"boolean":return mae(s,e);case"number":return fd(s,e);case"undefined":return fd(937,e);default:return fd(617,e)}}function fd(s,e){return(e<<5)-e+s|0}function mae(s,e){return fd(s?433:863,e)}function RB(s,e){e=fd(149417,e);for(let t=0,i=s.length;t<i;t++)e=fd(s.charCodeAt(t),e);return e}function _ae(s,e){return e=fd(104579,e),s.reduce((t,i)=>YD(i,t),e)}function bae(s,e){return e=fd(181387,e),Object.keys(s).sort().reduce((t,i)=>(t=RB(i,t),YD(s[i],t)),e)}function zN(s,e,t=32){const i=t-e,n=~((1<<i)-1);return(s<<e|(n&s)>>>i)>>>0}function Y6(s,e=0,t=s.byteLength,i=0){for(let n=0;n<t;n++)s[e+n]=i}function vae(s,e,t="0"){for(;s.length<e;)s=t+s;return s}function ew(s,e=32){return s instanceof ArrayBuffer?Array.from(new Uint8Array(s)).map(t=>t.toString(16).padStart(2,"0")).join(""):vae((s>>>0).toString(16),e/4)}const cI=class cI{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(ln(r))if(a+1<t){const c=e.charCodeAt(a+1);hp(c)?(a++,l=xB(r,c)):l=65533}else{o=r;break}else hp(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()),ew(this._h0)+ew(this._h1)+ew(this._h2)+ew(this._h3)+ew(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Y6(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Y6(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=cI._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,zN(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,c,d;for(let u=0;u<80;u++)u<20?(l=n&o|~n&r,c=1518500249):u<40?(l=n^o^r,c=1859775393):u<60?(l=n&o|n&r|o&r,c=2400959708):(l=n^o^r,c=3395469782),d=zN(i,5)+l+a+c+e.getUint32(u*4,!1)&4294967295,a=r,r=o,o=zN(n,30),n=i,i=d;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}};cI._bigBlock32=new DataView(new ArrayBuffer(320));let rP=cI;const{getWindow:Te,getWindows:lZ,getWindowsCount:wae,getWindowId:ok,getWindowById:X6,onDidRegisterWindow:XD,onWillUnregisterWindow:Cae,onDidUnregisterWindow:Sae}=function(){const s=new Map;gre(Vt,1);const e={window:Vt,disposables:new G};s.set(Vt.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!=null?l:a?e:void 0}return{onDidRegisterWindow:t.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:i.event,registerWindow(r){if(s.has(r.vscodeWindowId))return B.None;const a=new G,l={window:r,disposables:a.add(new G)};return s.set(r.vscodeWindowId,l),a.add(ke(()=>{s.delete(r.vscodeWindowId),i.fire(r)})),a.add(j(r,re.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 c;const a=r;if((c=a==null?void 0:a.ownerDocument)!=null&&c.defaultView)return a.ownerDocument.defaultView.window;const l=r;return l!=null&&l.view?l.view.window:Vt},getDocument(r){return Te(r).document}}}();function Tn(s){for(;s.firstChild;)s.firstChild.remove()}class yae{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 j(s,e,t,i){return new yae(s,e,t,i)}function cZ(s,e){return function(t){return e(new ma(s,t))}}function xae(s){return function(e){return s(new Ut(e))}}const xi=function(e,t,i,n){let o=i;return t==="click"||t==="mousedown"||t==="contextmenu"?o=cZ(Te(e),i):(t==="keydown"||t==="keypress"||t==="keyup")&&(o=xae(i)),j(e,t,o,n)},kae=function(e,t,i){const n=cZ(Te(e),t);return Lae(e,n,i)};function Lae(s,e,t){return j(s,ml&&DB.pointerEvents?re.POINTER_DOWN:re.MOUSE_DOWN,e,t)}function kw(s,e,t){return Qw(s,e,t)}class UN extends QG{constructor(e,t){super(e,t)}}let rk,zo;class AB extends NB{constructor(e){super(),this.defaultTarget=e&&Te(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i!=null?i:this.defaultTarget)}}class jN{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){ze(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 a;t.set(o,!1);const r=(a=s.get(o))!=null?a:[];for(e.set(o,r),s.set(o,[]),i.set(o,!0);r.length>0;)r.sort(jN.sort),r.shift().execute();i.set(o,!1)};zo=(o,r,a=0)=>{const l=ok(o),c=new jN(r,a);let d=s.get(l);return d||(d=[],s.set(l,d)),d.push(c),t.get(l)||(t.set(l,!0),o.requestAnimationFrame(()=>n(l))),c},rk=(o,r,a)=>{const l=ok(o);if(i.get(l)){const c=new jN(r,a);let d=e.get(l);return d||(d=[],e.set(l,d)),d.push(c),c}else return zo(o,r,a)}})();function QD(s){return Te(s).getComputedStyle(s,null)}function yh(s,e){const t=Te(s),i=t.document;if(s!==i.body)return new Rt(s.clientWidth,s.clientHeight);if(ml&&(t!=null&&t.visualViewport))return new Rt(t.visualViewport.width,t.visualViewport.height);if(t!=null&&t.innerWidth&&t.innerHeight)return new Rt(t.innerWidth,t.innerHeight);if(i.body&&i.body.clientWidth&&i.body.clientHeight)return new Rt(i.body.clientWidth,i.body.clientHeight);if(i.documentElement&&i.documentElement.clientWidth&&i.documentElement.clientHeight)return new Rt(i.documentElement.clientWidth,i.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Hi{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=QD(e),o=n?n.getPropertyValue(t):"0";return Hi.convertToPixels(e,o)}static getBorderLeftWidth(e){return Hi.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Hi.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Hi.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Hi.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Hi.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Hi.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Hi.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Hi.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Hi.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Hi.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Hi.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Hi.getDimension(e,"margin-bottom","marginBottom")}}const Wg=class Wg{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new Wg(e,t):this}static is(e){return typeof e=="object"&&typeof e.height=="number"&&typeof e.width=="number"}static lift(e){return e instanceof Wg?e:new Wg(e.width,e.height)}static equals(e,t){return e===t?!0:!e||!t?!1:e.width===t.width&&e.height===t.height}};Wg.None=new Wg(0,0);let Rt=Wg;function dZ(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=hZ(s)?null:QD(s);n&&(i-=n.direction!=="rtl"?s.scrollLeft:-s.scrollLeft),s===e&&(i+=Hi.getBorderLeftWidth(s),t+=Hi.getBorderTopWidth(s),t+=s.offsetTop,i+=s.offsetLeft,e=s.offsetParent)}return{left:i,top:t}}function Eae(s,e,t){typeof e=="number"&&(s.style.width=`${e}px`),typeof t=="number"&&(s.style.height=`${t}px`)}function Mi(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 uZ(s){let e=s,t=1;do{const i=QD(e).zoom;i!=null&&i!=="1"&&(t*=i),e=e.parentElement}while(e!==null&&e!==e.ownerDocument.documentElement);return t}function Io(s){const e=Hi.getMarginLeft(s)+Hi.getMarginRight(s);return s.offsetWidth+e}function qN(s){const e=Hi.getBorderLeftWidth(s)+Hi.getBorderRightWidth(s),t=Hi.getPaddingLeft(s)+Hi.getPaddingRight(s);return s.offsetWidth-e-t}function Iae(s){const e=Hi.getBorderTopWidth(s)+Hi.getBorderBottomWidth(s),t=Hi.getPaddingTop(s)+Hi.getPaddingBottom(s);return s.offsetHeight-e-t}function pd(s){const e=Hi.getMarginTop(s)+Hi.getMarginBottom(s);return s.offsetHeight+e}function cn(s,e){return!!(e!=null&&e.contains(s))}function Dae(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 KN(s,e,t){return!!Dae(s,e,t)}function hZ(s){return s&&!!s.host&&!!s.mode}function ak(s){return!!fp(s)}function fp(s){var e;for(;s.parentNode;){if(s===((e=s.ownerDocument)==null?void 0:e.body))return null;s=s.parentNode}return hZ(s)?s:null}function Yn(){let s=vv().activeElement;for(;s!=null&&s.shadowRoot;)s=s.shadowRoot.activeElement;return s}function JD(s){return Yn()===s}function gZ(s){return cn(Yn(),s)}function vv(){var e;return wae()<=1?Vt.document:(e=Array.from(lZ()).map(({window:t})=>t.document).find(t=>t.hasFocus()))!=null?e:Vt.document}function Lw(){var e,t;return(t=(e=vv().defaultView)==null?void 0:e.window)!=null?t:Vt}const MB=new Map;function fZ(){return new Tae}class Tae{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=Cr(Vt.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function Cr(s=Vt.document.head,e,t){const i=document.createElement("style");if(i.type="text/css",i.media="screen",e==null||e(i),s.appendChild(i),t&&t.add(ke(()=>i.remove())),s===Vt.document.head){const n=new Set;MB.set(i,n);for(const{window:o,disposables:r}of lZ()){if(o===Vt)continue;const a=r.add(Nae(i,n,o));t==null||t.add(a)}}return i}function Nae(s,e,t){var o,r;const i=new G,n=s.cloneNode(!0);t.document.head.appendChild(n),i.add(ke(()=>n.remove()));for(const a of mZ(s))(r=n.sheet)==null||r.insertRule(a.cssText,(o=n.sheet)==null?void 0:o.cssRules.length);return i.add(Rae.observe(s,i,{childList:!0})(()=>{n.textContent=s.textContent})),e.add(n),i.add(ke(()=>e.delete(n))),i}const Rae=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=ZD(t);let o=i.get(n);if(o)o.users+=1;else{const r=new O,a=new MutationObserver(c=>r.fire(c));a.observe(s,t);const l=o={users:1,observer:a,onDidMutate:r.event};e.add(ke(()=>{l.users-=1,l.users===0&&(r.dispose(),a.disconnect(),i==null||i.delete(n),(i==null?void 0:i.size)===0&&this.mutationObservers.delete(s))})),i.set(n,o)}return o.onDidMutate}};let GN=null;function pZ(){return GN||(GN=Cr()),GN}function mZ(s){var e,t;return(e=s==null?void 0:s.sheet)!=null&&e.rules?s.sheet.rules:(t=s==null?void 0:s.sheet)!=null&&t.cssRules?s.sheet.cssRules:[]}function lk(s,e,t=pZ()){var i,n;if(!(!t||!e)){(i=t.sheet)==null||i.insertRule(`${s} {${e}}`,0);for(const o of(n=MB.get(t))!=null?n:[])lk(s,e,o)}}function aP(s,e=pZ()){var n,o;if(!e)return;const t=mZ(e),i=[];for(let r=0;r<t.length;r++){const a=t[r];Aae(a)&&a.selectorText.indexOf(s)!==-1&&i.push(r)}for(let r=i.length-1;r>=0;r--)(n=e.sheet)==null||n.deleteRule(i[r]);for(const r of(o=MB.get(e))!=null?o:[])aP(s,r)}function Aae(s){return typeof s.selectorText=="string"}function un(s){return s instanceof HTMLElement||s instanceof Te(s).HTMLElement}function Q6(s){return s instanceof HTMLAnchorElement||s instanceof Te(s).HTMLAnchorElement}function Mae(s){return s instanceof SVGElement||s instanceof Te(s).SVGElement}function PB(s){return s instanceof MouseEvent||s instanceof Te(s).MouseEvent}function od(s){return s instanceof KeyboardEvent||s instanceof Te(s).KeyboardEvent}const re={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",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",CHANGE:"change",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend"};function Pae(s){const e=s;return!!(e&&typeof e.preventDefault=="function"&&typeof e.stopPropagation=="function")}const ct={stop:(s,e)=>(s.preventDefault(),e&&s.stopPropagation(),s)};function Oae(s){const e=[];for(let t=0;s&&s.nodeType===s.ELEMENT_NODE;t++)e[t]=s.scrollTop,s=s.parentNode;return e}function Fae(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 ck extends B{static hasFocusWithin(e){if(un(e)){const t=fp(e),i=t?t.activeElement:e.ownerDocument.activeElement;return cn(i,e)}else{const t=e;return cn(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=ck.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(un(e)?Te(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{ck.hasFocusWithin(e)!==t&&(t?o():n())},this._register(j(e,re.FOCUS,n,!0)),this._register(j(e,re.BLUR,o,!0)),un(e)&&(this._register(j(e,re.FOCUS_IN,()=>this._refreshStateHandler())),this._register(j(e,re.FOCUS_OUT,()=>this._refreshStateHandler())))}}function bl(s){return new ck(s)}function Bae(s,e){return s.after(e),e}function J(s,...e){if(s.append(...e),e.length===1&&typeof e[0]!="string")return e[0]}function OB(s,e){return s.insertBefore(e,s.firstChild),e}function Nn(s,...e){s.innerText="",J(s,...e)}const Wae=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var _1;(function(s){s.HTML="http://www.w3.org/1999/xhtml",s.SVG="http://www.w3.org/2000/svg"})(_1||(_1={}));function _Z(s,e,t,...i){const n=Wae.exec(e);if(!n)throw new Error("Bad use of emmet");const o=n[1]||"div";let r;return s!==_1.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!="undefined"&&(/^on\w+$/.test(a)?r[a]=l:a==="selected"?l&&r.setAttribute(a,"true"):r.setAttribute(a,l))}),r.append(...i),r}function ae(s,e,...t){return _Z(_1.HTML,s,e,...t)}ae.SVG=function(s,e,...t){return _Z(_1.SVG,s,e,...t)};function Hae(s,...e){s?Ro(...e):Ds(...e)}function Ro(...s){for(const e of s)e.style.display="",e.removeAttribute("aria-hidden")}function Ds(...s){for(const e of s)e.style.display="none",e.setAttribute("aria-hidden","true")}function J6(s,e){const t=s.devicePixelRatio*e;return Math.max(1,Math.floor(t))/s.devicePixelRatio}function bZ(s){Vt.open(s,"_blank","noopener")}function Vae(s,e){const t=()=>{e(),i=zo(s,t)};let i=zo(s,t);return ke(()=>i.dispose())}aZ.setPreferredWebSchema(/^https:/.test(Vt.location.href)?"https":"http");function Wd(s){return s?`url('${GD.uriToBrowserUri(s).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ZN(s){return`'${s.replace(/'/g,"%27")}'`}function Dd(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=Dd(i[1].trim(),e)),`var(${i[0]}, ${e})`}return s}return e}function $ae(s,e=!1){const t=document.createElement("a");return oZ("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)}}}),ke(()=>{rZ("afterSanitizeAttributes")})}const zae=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 md extends O{constructor(){super(),this._subscriptions=new G,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(ce.runAndSubscribe(XD,({window:e,disposables:t})=>this.registerListeners(e,t),{window:Vt,disposables:this._subscriptions}))}registerListeners(e,t){t.add(j(e,"keydown",i=>{if(i.defaultPrevented)return;const n=new Ut(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(j(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(j(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(j(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(j(e.document.body,"mousemove",i=>{i.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(j(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 md.instance||(md.instance=new md),md.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Uae extends B{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(j(this.element,re.DRAG_START,e=>{var t,i;(i=(t=this.callbacks).onDragStart)==null||i.call(t,e)})),this.callbacks.onDrag&&this._register(j(this.element,re.DRAG,e=>{var t,i;(i=(t=this.callbacks).onDrag)==null||i.call(t,e)})),this._register(j(this.element,re.DRAG_ENTER,e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,(i=(t=this.callbacks).onDragEnter)==null||i.call(t,e)})),this._register(j(this.element,re.DRAG_OVER,e=>{var t,i;e.preventDefault(),(i=(t=this.callbacks).onDragOver)==null||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(j(this.element,re.DRAG_LEAVE,e=>{var t,i;this.counter--,this.counter===0&&(this.dragStartTime=0,(i=(t=this.callbacks).onDragLeave)==null||i.call(t,e))})),this._register(j(this.element,re.DRAG_END,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDragEnd)==null||i.call(t,e)})),this._register(j(this.element,re.DROP,e=>{var t,i;this.counter=0,this.dragStartTime=0,(i=(t=this.callbacks).onDrop)==null||i.call(t,e)}))}}const vZ=new RegExp("(?<tag>[\\w\\-]+)?(?:#(?<id>[\\w\\-]+))?(?<class>(?:\\.(?:[\\w\\-]+))*)(?:@(?<name>(?:[\\w\\_])+))?");function st(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const n=vZ.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 c of n.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(const c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(r.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(const c of i)un(c)?r.appendChild(c):typeof c=="string"?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(const[c,d]of Object.entries(t))if(c!=="className")if(c==="style")for(const[u,h]of Object.entries(d))r.style.setProperty(dk(u),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?r.tabIndex=d:r.setAttribute(dk(c),d.toString());return l.root=r,l}function dm(s,...e){let t,i;Array.isArray(e[0])?(t={},i=e[0]):(t=e[0]||{},i=e[1]);const n=vZ.exec(s);if(!n||!n.groups)throw new Error("Bad use of h");const o=n.groups.tag||"div",r=document.createElementNS("http://www.w3.org/2000/svg",o);n.groups.id&&(r.id=n.groups.id);const a=[];if(n.groups.class)for(const c of n.groups.class.split("."))c!==""&&a.push(c);if(t.className!==void 0)for(const c of t.className.split("."))c!==""&&a.push(c);a.length>0&&(r.className=a.join(" "));const l={};if(n.groups.name&&(l[n.groups.name]=r),i)for(const c of i)un(c)?r.appendChild(c):typeof c=="string"?r.append(c):"root"in c&&(Object.assign(l,c),r.appendChild(c.root));for(const[c,d]of Object.entries(t))if(c!=="className")if(c==="style")for(const[u,h]of Object.entries(d))r.style.setProperty(dk(u),typeof h=="number"?h+"px":""+h);else c==="tabIndex"?r.tabIndex=d:r.setAttribute(dk(c),d.toString());return l.root=r,l}function dk(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}class jae extends B{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.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class qae extends B{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 jae(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 Kae{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=ok(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=new qae(e),this.mapWindowIdToPixelRatioMonitor.set(t,i),ce.once(Sae)(({vscodeWindowId:n})=>{n===t&&(i==null||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}const b1=new Kae;class wZ{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=Pa(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=Pa(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=Pa(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=Pa(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=Pa(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=Pa(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=Pa(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=Pa(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=Pa(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=Pa(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=Pa(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 Pa(s){return typeof s=="number"?`${s}px`:s}function Et(s){return new wZ(s)}function Rn(s,e){s instanceof wZ?(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 Gae{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class FB{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){var t;this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),(t=this._container)==null||t.remove(),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");FB._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 Zae(s,e,t){new FB(e,t).read(s)}const Br=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))}},Yae=rt?1.5:1.35,YN=8;class ef{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),c=e.get(67),d=e.get(64);return ef._create(n,o,r,a,l,c,d,t,i)}static _create(e,t,i,n,o,r,a,l,c){r===0?r=Yae*i:r<YN&&(r=r*i),r=Math.round(r),r<YN&&(r=YN);const d=1+(c?0:Br.getZoomLevel()*.1);return i*=d,r*=d,o===d1.TRANSLATE&&(t==="normal"||t==="bold"?o=d1.OFF:(o=`'wght' ${parseInt(t,10)}`,t="normal")),new ef({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=Fs.fontFamily,t=ef._wrapInQuotes(this.fontFamily);return this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}const Xae=2;class lP extends ef{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=Xae,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 Qae extends B{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=ok(e);let i=this._cache.get(t);return i||(i=new Jae,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 lP({pixelRatio:b1.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 Gae(e,t);return i.push(o),n==null||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),c=this._createRequest("1",0,i,n),d=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),w=this._createRequest("→",0,i,null),C=this._createRequest("·",0,i,n),S=this._createRequest("⸱",0,i,null),y="|/-_ilm%";for(let H=0,z=y.length;H<z;H++)this._createRequest(y.charAt(H),0,i,n),this._createRequest(y.charAt(H),1,i,n),this._createRequest(y.charAt(H),2,i,n);Zae(e,t,i);const k=Math.max(l.width,c.width,d.width,u.width,h.width,g.width,f.width,m.width,_.width,b.width);let E=t.fontFeatureSettings===_h.OFF;const N=n[0].width;for(let H=1,z=n.length;E&&H<z;H++){const q=N-n[H].width;if(q<-.001||q>.001){E=!1;break}}let W=!0;return E&&w.width!==N&&(W=!1),w.width>v.width&&(W=!1),new lP({pixelRatio:b1.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:W,spaceWidth:a.width,middotWidth:C.width,wsmiddotWidth:S.width,maxDigitWidth:k},!0)}}class Jae{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 cP=new Qae;var rl;(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})(rl||(rl={}));const Le=at("instantiationService");function ele(s,e,t){e[rl.DI_TARGET]===e?e[rl.DI_DEPENDENCIES].push({id:s,index:t}):(e[rl.DI_DEPENDENCIES]=[{id:s,index:t}],e[rl.DI_TARGET]=e)}function at(s){if(rl.serviceIds.has(s))return rl.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");ele(e,t,n)};return e.toString=()=>s,rl.serviceIds.set(s,e),e}const St=at("codeEditorService"),ti=at("modelService"),go=at("textModelService");class Fo extends B{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}))}run(e,t){return I(this,null,function*(){this._actionCallback&&(yield this._actionCallback(e))})}}class pp extends B{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}run(e,t){return I(this,null,function*(){if(!e.enabled)return;this._onWillRun.fire({action:e});let i;try{yield this.runAction(e,t)}catch(n){i=n}this._onDidRun.fire({action:e,error:i})})}runAction(e,t){return I(this,null,function*(){yield e.run(t)})}}const zC=class zC{constructor(){this.id=zC.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 zC,...i]:t=i);return t}run(){return I(this,null,function*(){})}};zC.ID="vs.actions.separator";let hn=zC;class vb{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}run(){return I(this,null,function*(){})}}const dI=class dI extends Fo{constructor(){super(dI.ID,p("submenu.empty","(empty)"),void 0,!1)}};dI.ID="vs.actions.empty";let dP=dI;function tf(s){var e,t;return{id:s.id,label:s.label,tooltip:(e=s.tooltip)!=null?e:s.label,class:s.class,enabled:(t=s.enabled)!=null?t:!0,checked:s.checked,run:(...i)=>I(null,null,function*(){return s.run(...i)})}}var uP;(function(s){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"}s.isThemeColor=e})(uP||(uP={}));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=="undefined"||uP.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 c(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=c;function d(h){const g=h.id.lastIndexOf("~");if(g!==-1)return h.id.substring(g+1)}s.getModifier=d;function u(h,g){var f,m;return h.id===g.id&&((f=h.color)==null?void 0:f.id)===((m=g.color)==null?void 0:m.id)}s.isEqual=u})(Me||(Me={}));const Gt=at("commandService"),ht=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,...c){return gse(c,r),a(l,...c)}}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=ke(()=>{n();const r=this._commands.get(t);r!=null&&r.isEmpty()&&this._commands.delete(t)});return this._onDidRegisterCommand.fire(t),o}registerCommandAlias(s,e){return ht.registerCommand(s,(t,...i)=>t.get(Gt).executeCommand(e,...i))}getCommand(s){const e=this._commands.get(s);if(!(!e||e.isEmpty()))return ut.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}};ht.registerCommand("noop",()=>{});function XN(...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 tle=p("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),ile=p("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");var xd;let tw=(xd=class{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 mB(`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(XN("==","=~"));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(XN("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(XN("||"));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=xd._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(tle);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(ile);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&&xd._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}},xd._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),xd._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]),xd);const os=new Map;os.set("false",!1);os.set("true",!0);os.set("isMac",rt);os.set("isLinux",Ws);os.set("isWindows",Qn);os.set("isWeb",Wp);os.set("isMacNative",rt&&!Wp);os.set("isEdge",Ise);os.set("isFirefox",Lse);os.set("isChrome",bG);os.set("isSafari",Ese);const nle=Object.prototype.hasOwnProperty,sle={regexParsingWithErrorRecovery:!0},ole=p("contextkey.parser.error.emptyString","Empty context key expression"),rle=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."),ale=p("contextkey.parser.error.noInAfterNot","'in' after 'not'."),e7=p("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),lle=p("contextkey.parser.error.unexpectedToken","Unexpected token"),cle=p("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),dle=p("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),ule=p("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");var lc;let hle=(lc=class{constructor(e=sle){this._config=e,this._scanner=new tw,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:ole,offset:0,lexeme:"",additionalInfo:rle});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?cle:void 0;throw this._parsingErrors.push({message:lle,offset:i.offset,lexeme:tw.getLexeme(i),additionalInfo:n}),lc._parseError}return t}catch(t){if(t!==lc._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]:Z.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:Z.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Hs.INSTANCE;case 12:return this._advance(),lo.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,e7),t==null?void 0:t.negate()}case 17:return this._advance(),Vp.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(),Z.true();case 12:return this._advance(),Z.false();case 0:{this._advance();const t=this._expr();return this._consume(1,e7),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(c){throw this._errExpectedButGot("REGEX",n)}return v1.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(tw.getLexeme(r)),this._advance(),r=this._peek()}const l=o.join(""),c=l.lastIndexOf("/"),d=c===l.length-1?void 0:this._removeFlagsGY(l.substring(c+1));let u;try{u=new RegExp(l.substring(1,c),d)}catch(h){throw this._errExpectedButGot("REGEX",n)}return Z.regex(t,u)}case 18:{const o=n.lexeme;this._advance();let r=null;if(!WG(o)){const a=o.indexOf("/"),l=o.lastIndexOf("/");if(a!==l&&a>=0){const c=o.slice(a+1,l),d=o[l+1]==="i"?"i":"";try{r=new RegExp(c,d)}catch(u){throw this._errExpectedButGot("REGEX",n)}}}if(r===null)throw this._errExpectedButGot("REGEX",n);return v1.create(t,r)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,ale);const n=this._value();return Z.notIn(t,n)}switch(this._peek().type){case 3:{this._advance();const n=this._value();if(this._previous().type===18)return Z.equals(t,n);switch(n){case"true":return Z.has(t);case"false":return Z.not(t);default:return Z.equals(t,n)}}case 4:{this._advance();const n=this._value();if(this._previous().type===18)return Z.notEquals(t,n);switch(n){case"true":return Z.not(t);case"false":return Z.has(t);default:return Z.notEquals(t,n)}}case 5:return this._advance(),rT.create(t,this._value());case 6:return this._advance(),aT.create(t,this._value());case 7:return this._advance(),sT.create(t,this._value());case 8:return this._advance(),oT.create(t,this._value());case 13:return this._advance(),Z.in(t,this._value());default:return Z.has(t)}}case 20:throw this._parsingErrors.push({message:dle,offset:e.offset,lexeme:"",additionalInfo:ule}),lc._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,tw.getLexeme(t)),o=t.offset,r=tw.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:r,additionalInfo:i}),lc._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},lc._parseError=new Error,lc);const d6=class d6{static false(){return Hs.INSTANCE}static true(){return lo.INSTANCE}static has(e){return Hp.create(e)}static equals(e,t){return wv.create(e,t)}static notEquals(e,t){return iT.create(e,t)}static regex(e,t){return v1.create(e,t)}static in(e,t){return eT.create(e,t)}static notIn(e,t){return tT.create(e,t)}static not(e){return Vp.create(e)}static and(...e){return jg.create(e,null,!0)}static or(...e){return dd.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}};d6._parser=new hle({regexParsingWithErrorRecovery:!1});let Z=d6;function gle(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 Jw(s,e){return s.cmp(e)}const uI=class uI{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}};uI.INSTANCE=new uI;let Hs=uI;const hI=class hI{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 Hs.INSTANCE}};hI.INSTANCE=new hI;let lo=hI;class Hp{static create(e,t=null){const i=os.get(e);return typeof i=="boolean"?i?lo.INSTANCE:Hs.INSTANCE:new Hp(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:SZ(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:Hs.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Vp.create(this.key,this)),this.negated}}class wv{static create(e,t,i=null){if(typeof t=="boolean")return t?Hp.create(e,i):Vp.create(e,i);const n=os.get(e);return typeof n=="boolean"?t===(n?"true":"false")?lo.INSTANCE:Hs.INSTANCE:new wv(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:$p(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:Hs.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=iT.create(this.key,this.value,this)),this.negated}}class eT{static create(e,t){return new eT(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:$p(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?nle.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=tT.create(this.key,this.valueKey)),this.negated}}class tT{static create(e,t){return new tT(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=eT.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 iT{static create(e,t,i=null){if(typeof t=="boolean")return t?Vp.create(e,i):Hp.create(e,i);const n=os.get(e);return typeof n=="boolean"?t===(n?"true":"false")?Hs.INSTANCE:lo.INSTANCE:new iT(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:$p(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?Hs.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=wv.create(this.key,this.value,this)),this.negated}}class Vp{static create(e,t=null){const i=os.get(e);return typeof i=="boolean"?i?Hs.INSTANCE:lo.INSTANCE:new Vp(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:SZ(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?Hs.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=Hp.create(this.key,this)),this.negated}}function nT(s,e){if(typeof s=="string"){const t=parseFloat(s);isNaN(t)||(s=t)}return typeof s=="string"||typeof s=="number"?e(s):Hs.INSTANCE}class sT{static create(e,t,i=null){return nT(t,n=>new sT(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:$p(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=aT.create(this.key,this.value,this)),this.negated}}class oT{static create(e,t,i=null){return nT(t,n=>new oT(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:$p(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=rT.create(this.key,this.value,this)),this.negated}}class rT{static create(e,t,i=null){return nT(t,n=>new rT(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:$p(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=oT.create(this.key,this.value,this)),this.negated}}class aT{static create(e,t,i=null){return nT(t,n=>new aT(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:$p(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=sT.create(this.key,this.value,this)),this.negated}}class v1{static create(e,t){return new v1(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=BB.create(this)),this.negated}}class BB{static create(e){return new BB(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 CZ(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 jg{static create(e,t,i){return jg._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=Jw(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=CZ(this.expr);return e===this.expr?this:jg.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 Hs.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(Jw);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,c=dd.create(r.expr.map(d=>jg.create([d,a],null,i)),null,l);c&&(n.push(c),n.sort(Jw))}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 Hs.INSTANCE;if(n.length===1)return n[0]}return new jg(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=dd.create(e,this,!0)}return this.negated}}class dd{static create(e,t,i){return dd._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=Jw(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=CZ(this.expr);return e===this.expr?this:dd.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 Hs.INSTANCE;n.sort(Jw)}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 dd(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 i7(t))for(const r of i7(i))n.push(jg.create([o,r],null,!1));e.unshift(dd.create(n,null,!1))}this.negated=dd.create(e,this,!0)}return this.negated}}const v_=class v_ extends Hp{static all(){return v_._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?v_._info.push(ue($({},i),{key:e})):i!==!0&&v_._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 wv.create(this.key,e)}};v_._info=[];let fe=v_;const Pe=at("contextKeyService");function SZ(s,e){return s<e?-1:s>e?1:0}function $p(s,e,t,i){return s<t?-1:s>t?1:e<i?-1:e>i?1:0}function hP(s,e){if(s.type===0||e.type===1)return!0;if(s.type===9)return e.type===9?t7(s.expr,e.expr):!1;if(e.type===9){for(const t of e.expr)if(hP(s,t))return!0;return!1}if(s.type===6){if(e.type===6)return t7(e.expr,s.expr);for(const t of s.expr)if(hP(t,e))return!0;return!1}return s.equals(e)}function t7(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 i7(s){return s.type===9?s.expr:[s]}function QN(s,e){if(!s)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function lT(s,e="Unreachable"){throw new Error(e)}function n7(s){s||ze(new xt("Soft Assertion Failed"))}function mp(s){if(!s()){debugger;s(),ze(new xt("Assertion Failed"))}}function WB(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 fle{constructor(){this.data=new Map}add(e,t){QN(no(e)),QN(bn(t)),QN(!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 Si=new fle;class HB{constructor(){this._coreKeybindings=new Rs,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(Po===1){if(e&&e.win)return e.win}else if(Po===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=HB.bindToCurrentPlatform(e),i=new G;if(t&&t.primary){const n=QM(t.primary,Po);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=QM(r,Po);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-n-1,e.when))}return i}registerCommandAndKeybindingRule(e){return wa(this.registerKeybindingRule(e),ht.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,ke(()=>{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(mle)),this._cachedMergedKeybindings.slice(0)}}const Vs=new HB,ple={EditorModes:"platform.keybindingsRegistry"};Si.add(ple.EditorModes,Vs);function mle(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 _le=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},s7=function(s,e){return function(t,i){e(t,i,s)}},nx;function P_(s){return s.command!==void 0}function ble(s){return s.submenu!==void 0}const R=class R{constructor(e){if(R._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);R._instances.set(e,this),this.id=e}};R._instances=new Map,R.CommandPalette=new R("CommandPalette"),R.DebugBreakpointsContext=new R("DebugBreakpointsContext"),R.DebugCallStackContext=new R("DebugCallStackContext"),R.DebugConsoleContext=new R("DebugConsoleContext"),R.DebugVariablesContext=new R("DebugVariablesContext"),R.NotebookVariablesContext=new R("NotebookVariablesContext"),R.DebugHoverContext=new R("DebugHoverContext"),R.DebugWatchContext=new R("DebugWatchContext"),R.DebugToolBar=new R("DebugToolBar"),R.DebugToolBarStop=new R("DebugToolBarStop"),R.DebugCallStackToolbar=new R("DebugCallStackToolbar"),R.DebugCreateConfiguration=new R("DebugCreateConfiguration"),R.EditorContext=new R("EditorContext"),R.SimpleEditorContext=new R("SimpleEditorContext"),R.EditorContent=new R("EditorContent"),R.EditorLineNumberContext=new R("EditorLineNumberContext"),R.EditorContextCopy=new R("EditorContextCopy"),R.EditorContextPeek=new R("EditorContextPeek"),R.EditorContextShare=new R("EditorContextShare"),R.EditorTitle=new R("EditorTitle"),R.EditorTitleRun=new R("EditorTitleRun"),R.EditorTitleContext=new R("EditorTitleContext"),R.EditorTitleContextShare=new R("EditorTitleContextShare"),R.EmptyEditorGroup=new R("EmptyEditorGroup"),R.EmptyEditorGroupContext=new R("EmptyEditorGroupContext"),R.EditorTabsBarContext=new R("EditorTabsBarContext"),R.EditorTabsBarShowTabsSubmenu=new R("EditorTabsBarShowTabsSubmenu"),R.EditorTabsBarShowTabsZenModeSubmenu=new R("EditorTabsBarShowTabsZenModeSubmenu"),R.EditorActionsPositionSubmenu=new R("EditorActionsPositionSubmenu"),R.ExplorerContext=new R("ExplorerContext"),R.ExplorerContextShare=new R("ExplorerContextShare"),R.ExtensionContext=new R("ExtensionContext"),R.GlobalActivity=new R("GlobalActivity"),R.CommandCenter=new R("CommandCenter"),R.CommandCenterCenter=new R("CommandCenterCenter"),R.LayoutControlMenuSubmenu=new R("LayoutControlMenuSubmenu"),R.LayoutControlMenu=new R("LayoutControlMenu"),R.MenubarMainMenu=new R("MenubarMainMenu"),R.MenubarAppearanceMenu=new R("MenubarAppearanceMenu"),R.MenubarDebugMenu=new R("MenubarDebugMenu"),R.MenubarEditMenu=new R("MenubarEditMenu"),R.MenubarCopy=new R("MenubarCopy"),R.MenubarFileMenu=new R("MenubarFileMenu"),R.MenubarGoMenu=new R("MenubarGoMenu"),R.MenubarHelpMenu=new R("MenubarHelpMenu"),R.MenubarLayoutMenu=new R("MenubarLayoutMenu"),R.MenubarNewBreakpointMenu=new R("MenubarNewBreakpointMenu"),R.PanelAlignmentMenu=new R("PanelAlignmentMenu"),R.PanelPositionMenu=new R("PanelPositionMenu"),R.ActivityBarPositionMenu=new R("ActivityBarPositionMenu"),R.MenubarPreferencesMenu=new R("MenubarPreferencesMenu"),R.MenubarRecentMenu=new R("MenubarRecentMenu"),R.MenubarSelectionMenu=new R("MenubarSelectionMenu"),R.MenubarShare=new R("MenubarShare"),R.MenubarSwitchEditorMenu=new R("MenubarSwitchEditorMenu"),R.MenubarSwitchGroupMenu=new R("MenubarSwitchGroupMenu"),R.MenubarTerminalMenu=new R("MenubarTerminalMenu"),R.MenubarViewMenu=new R("MenubarViewMenu"),R.MenubarHomeMenu=new R("MenubarHomeMenu"),R.OpenEditorsContext=new R("OpenEditorsContext"),R.OpenEditorsContextShare=new R("OpenEditorsContextShare"),R.ProblemsPanelContext=new R("ProblemsPanelContext"),R.SCMInputBox=new R("SCMInputBox"),R.SCMChangesSeparator=new R("SCMChangesSeparator"),R.SCMChangesContext=new R("SCMChangesContext"),R.SCMIncomingChanges=new R("SCMIncomingChanges"),R.SCMIncomingChangesContext=new R("SCMIncomingChangesContext"),R.SCMIncomingChangesSetting=new R("SCMIncomingChangesSetting"),R.SCMOutgoingChanges=new R("SCMOutgoingChanges"),R.SCMOutgoingChangesContext=new R("SCMOutgoingChangesContext"),R.SCMOutgoingChangesSetting=new R("SCMOutgoingChangesSetting"),R.SCMIncomingChangesAllChangesContext=new R("SCMIncomingChangesAllChangesContext"),R.SCMIncomingChangesHistoryItemContext=new R("SCMIncomingChangesHistoryItemContext"),R.SCMOutgoingChangesAllChangesContext=new R("SCMOutgoingChangesAllChangesContext"),R.SCMOutgoingChangesHistoryItemContext=new R("SCMOutgoingChangesHistoryItemContext"),R.SCMChangeContext=new R("SCMChangeContext"),R.SCMResourceContext=new R("SCMResourceContext"),R.SCMResourceContextShare=new R("SCMResourceContextShare"),R.SCMResourceFolderContext=new R("SCMResourceFolderContext"),R.SCMResourceGroupContext=new R("SCMResourceGroupContext"),R.SCMSourceControl=new R("SCMSourceControl"),R.SCMSourceControlInline=new R("SCMSourceControlInline"),R.SCMSourceControlTitle=new R("SCMSourceControlTitle"),R.SCMHistoryTitle=new R("SCMHistoryTitle"),R.SCMTitle=new R("SCMTitle"),R.SearchContext=new R("SearchContext"),R.SearchActionMenu=new R("SearchActionContext"),R.StatusBarWindowIndicatorMenu=new R("StatusBarWindowIndicatorMenu"),R.StatusBarRemoteIndicatorMenu=new R("StatusBarRemoteIndicatorMenu"),R.StickyScrollContext=new R("StickyScrollContext"),R.TestItem=new R("TestItem"),R.TestItemGutter=new R("TestItemGutter"),R.TestProfilesContext=new R("TestProfilesContext"),R.TestMessageContext=new R("TestMessageContext"),R.TestMessageContent=new R("TestMessageContent"),R.TestPeekElement=new R("TestPeekElement"),R.TestPeekTitle=new R("TestPeekTitle"),R.TestCallStack=new R("TestCallStack"),R.TouchBarContext=new R("TouchBarContext"),R.TitleBarContext=new R("TitleBarContext"),R.TitleBarTitleContext=new R("TitleBarTitleContext"),R.TunnelContext=new R("TunnelContext"),R.TunnelPrivacy=new R("TunnelPrivacy"),R.TunnelProtocol=new R("TunnelProtocol"),R.TunnelPortInline=new R("TunnelInline"),R.TunnelTitle=new R("TunnelTitle"),R.TunnelLocalAddressInline=new R("TunnelLocalAddressInline"),R.TunnelOriginInline=new R("TunnelOriginInline"),R.ViewItemContext=new R("ViewItemContext"),R.ViewContainerTitle=new R("ViewContainerTitle"),R.ViewContainerTitleContext=new R("ViewContainerTitleContext"),R.ViewTitle=new R("ViewTitle"),R.ViewTitleContext=new R("ViewTitleContext"),R.CommentEditorActions=new R("CommentEditorActions"),R.CommentThreadTitle=new R("CommentThreadTitle"),R.CommentThreadActions=new R("CommentThreadActions"),R.CommentThreadAdditionalActions=new R("CommentThreadAdditionalActions"),R.CommentThreadTitleContext=new R("CommentThreadTitleContext"),R.CommentThreadCommentContext=new R("CommentThreadCommentContext"),R.CommentTitle=new R("CommentTitle"),R.CommentActions=new R("CommentActions"),R.CommentsViewThreadActions=new R("CommentsViewThreadActions"),R.InteractiveToolbar=new R("InteractiveToolbar"),R.InteractiveCellTitle=new R("InteractiveCellTitle"),R.InteractiveCellDelete=new R("InteractiveCellDelete"),R.InteractiveCellExecute=new R("InteractiveCellExecute"),R.InteractiveInputExecute=new R("InteractiveInputExecute"),R.InteractiveInputConfig=new R("InteractiveInputConfig"),R.ReplInputExecute=new R("ReplInputExecute"),R.IssueReporter=new R("IssueReporter"),R.NotebookToolbar=new R("NotebookToolbar"),R.NotebookStickyScrollContext=new R("NotebookStickyScrollContext"),R.NotebookCellTitle=new R("NotebookCellTitle"),R.NotebookCellDelete=new R("NotebookCellDelete"),R.NotebookCellInsert=new R("NotebookCellInsert"),R.NotebookCellBetween=new R("NotebookCellBetween"),R.NotebookCellListTop=new R("NotebookCellTop"),R.NotebookCellExecute=new R("NotebookCellExecute"),R.NotebookCellExecuteGoTo=new R("NotebookCellExecuteGoTo"),R.NotebookCellExecutePrimary=new R("NotebookCellExecutePrimary"),R.NotebookDiffCellInputTitle=new R("NotebookDiffCellInputTitle"),R.NotebookDiffCellMetadataTitle=new R("NotebookDiffCellMetadataTitle"),R.NotebookDiffCellOutputsTitle=new R("NotebookDiffCellOutputsTitle"),R.NotebookOutputToolbar=new R("NotebookOutputToolbar"),R.NotebookOutlineFilter=new R("NotebookOutlineFilter"),R.NotebookOutlineActionMenu=new R("NotebookOutlineActionMenu"),R.NotebookEditorLayoutConfigure=new R("NotebookEditorLayoutConfigure"),R.NotebookKernelSource=new R("NotebookKernelSource"),R.BulkEditTitle=new R("BulkEditTitle"),R.BulkEditContext=new R("BulkEditContext"),R.TimelineItemContext=new R("TimelineItemContext"),R.TimelineTitle=new R("TimelineTitle"),R.TimelineTitleContext=new R("TimelineTitleContext"),R.TimelineFilterSubMenu=new R("TimelineFilterSubMenu"),R.AccountsContext=new R("AccountsContext"),R.SidebarTitle=new R("SidebarTitle"),R.PanelTitle=new R("PanelTitle"),R.AuxiliaryBarTitle=new R("AuxiliaryBarTitle"),R.AuxiliaryBarHeader=new R("AuxiliaryBarHeader"),R.TerminalInstanceContext=new R("TerminalInstanceContext"),R.TerminalEditorInstanceContext=new R("TerminalEditorInstanceContext"),R.TerminalNewDropdownContext=new R("TerminalNewDropdownContext"),R.TerminalTabContext=new R("TerminalTabContext"),R.TerminalTabEmptyAreaContext=new R("TerminalTabEmptyAreaContext"),R.TerminalStickyScrollContext=new R("TerminalStickyScrollContext"),R.WebviewContext=new R("WebviewContext"),R.InlineCompletionsActions=new R("InlineCompletionsActions"),R.InlineEditsActions=new R("InlineEditsActions"),R.InlineEditActions=new R("InlineEditActions"),R.NewFile=new R("NewFile"),R.MergeInput1Toolbar=new R("MergeToolbar1Toolbar"),R.MergeInput2Toolbar=new R("MergeToolbar2Toolbar"),R.MergeBaseToolbar=new R("MergeBaseToolbar"),R.MergeInputResultToolbar=new R("MergeToolbarResultToolbar"),R.InlineSuggestionToolbar=new R("InlineSuggestionToolbar"),R.InlineEditToolbar=new R("InlineEditToolbar"),R.ChatContext=new R("ChatContext"),R.ChatCodeBlock=new R("ChatCodeblock"),R.ChatCompareBlock=new R("ChatCompareBlock"),R.ChatMessageTitle=new R("ChatMessageTitle"),R.ChatExecute=new R("ChatExecute"),R.ChatExecuteSecondary=new R("ChatExecuteSecondary"),R.ChatInputSide=new R("ChatInputSide"),R.AccessibleView=new R("AccessibleView"),R.MultiDiffEditorFileToolbar=new R("MultiDiffEditorFileToolbar"),R.DiffEditorHunkToolbar=new R("DiffEditorHunkToolbar"),R.DiffEditorSelectionToolbar=new R("DiffEditorSelectionToolbar");let ve=R;const kr=at("menuService"),UC=class UC{static for(e){let t=this._all.get(e);return t||(t=new UC(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof UC&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}};UC._all=new Map;let kg=UC;const vn=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Moe({merge:kg.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(s){return this._commands.set(s.id,s),this._onDidChangeMenu.fire(kg.for(ve.CommandPalette)),ke(()=>{this._commands.delete(s.id)&&this._onDidChangeMenu.fire(kg.for(ve.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(kg.for(s)),ke(()=>{i(),this._onDidChangeMenu.fire(kg.for(s))})}appendMenuItems(s){const e=new G;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===ve.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(s){const e=new Set;for(const t of s)P_(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 O_ extends vb{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 Bo=nx=class{static label(e,t){return t!=null&&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,a){var c,d;this.hideActions=n,this.menuKeybinding=o,this._commandService=a,this.id=e.id,this.label=nx.label(e,i),this.tooltip=(d=typeof e.tooltip=="string"?e.tooltip:(c=e.tooltip)==null?void 0:c.value)!=null?d:"",this.enabled=!e.precondition||r.contextMatchesRules(e.precondition),this.checked=void 0;let l;if(e.toggled){const u=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=r.contextMatchesRules(u.condition),this.checked&&u.tooltip&&(this.tooltip=typeof u.tooltip=="string"?u.tooltip:u.tooltip.value),this.checked&&Me.isThemeIcon(u.icon)&&(l=u.icon),this.checked&&u.title&&(this.label=typeof u.title=="string"?u.title:u.title.value)}l||(l=Me.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new nx(t,void 0,i,n,void 0,r,a):void 0,this._options=i,this.class=l&&Me.asClassName(l)}run(...e){var i,n;let t=[];return(i=this._options)!=null&&i.arg&&(t=[...t,this._options.arg]),(n=this._options)!=null&&n.shouldForwardArgs&&(t=[...t,...e]),this._commandService.executeCommand(this.id,...t)}};Bo=nx=_le([s7(5,Pe),s7(6,Gt)],Bo);class Us{constructor(e){this.desc=e}}function jt(s){const e=[],t=new s,a=t.desc,{f1:i,menu:n,keybinding:o}=a,r=S6(a,["f1","menu","keybinding"]);if(ht.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(e.push(ht.registerCommand({id:r.id,handler:(l,...c)=>t.run(l,...c),metadata:r.metadata})),Array.isArray(n))for(const l of n)e.push(vn.appendMenuItem(l.id,$({command:ue($({},r),{precondition:l.precondition===null?void 0:r.precondition})},l)));else n&&e.push(vn.appendMenuItem(n.id,$({command:ue($({},r),{precondition:n.precondition===null?void 0:r.precondition})},n)));if(i&&(e.push(vn.appendMenuItem(ve.CommandPalette,{command:r,when:r.precondition})),e.push(vn.addCommand(r))),Array.isArray(o))for(const l of o)e.push(Vs.registerKeybindingRule(ue($({},l),{id:r.id,when:r.precondition?Z.and(r.precondition,l.when):l.when})));else o&&e.push(Vs.registerKeybindingRule(ue($({},o),{id:r.id,when:r.precondition?Z.and(r.precondition,o.when):o.when})));return{dispose(){Ht(e)}}}const ls=at("telemetryService"),Jn=at("logService");var Js;(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"})(Js||(Js={}));const yZ=Js.Info;class xZ extends B{constructor(){super(...arguments),this.level=yZ,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!==Js.Off&&this.level<=e}}class vle extends xZ{constructor(e=yZ,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(Js.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(Js.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(Js.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(Js.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(Js.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class wle extends xZ{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 Cle(s){switch(s){case Js.Trace:return"trace";case Js.Debug:return"debug";case Js.Info:return"info";case Js.Warning:return"warn";case Js.Error:return"error";case Js.Off:return"off"}}new fe("logLevel",Cle(Js.Info));let cT=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=Z.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};Vs.registerKeybindingRule(n)}}ht.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){vn.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 Cv extends cT{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(Jn),n=e.get(Pe);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(Yn());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 kZ extends cT{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class sn extends cT{static bindToContribution(e){return class extends sn{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(Pe).contextMatchesRules(i!=null?i:void 0))return n(a,r,t)})}runCommand(e,t){return sn.runEditorCommand(e,t,this.precondition,(i,n,o)=>this.runEditorCommand(i,n,o))}}class me extends sn{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=ve.EditorContext),n.title||(n.title=e.label),n.when=Z.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(me.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(ls).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class LZ extends me{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 kl extends Us{run(e,...t){const i=e.get(St),n=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(n)return n.invokeWithinContext(o=>{var c,d;const r=o.get(Pe),a=o.get(Jn);if(!r.contextMatchesRules((c=this.desc.precondition)!=null?c:void 0)){a.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(d=this.desc.precondition)==null?void 0:d.serialize());return}return this.runEditorCommand(o,n,...t)})}}function fo(s,e){ht.registerCommand(s,function(t,...i){const n=t.get(Le),[o,r]=i;Ct(Ie.isUri(o)),Ct(P.isIPosition(r));const a=t.get(ti).getModel(o);if(a){const l=P.lift(r);return n.invokeFunction(e,a,l,...i.slice(2))}return t.get(go).createModelReference(o).then(l=>new Promise((c,d)=>{try{const u=n.invokeFunction(e,l.object.textEditorModel,P.lift(r),i.slice(2));c(u)}catch(u){d(u)}}).finally(()=>{l.dispose()}))})}function ge(s){return Wr.INSTANCE.registerEditorCommand(s),s}function ee(s){const e=new s;return Wr.INSTANCE.registerEditorAction(e),e}function EZ(s){return Wr.INSTANCE.registerEditorAction(s),s}function Sle(s){Wr.INSTANCE.registerEditorAction(s)}function pt(s,e,t){Wr.INSTANCE.registerEditorContribution(s,e,t)}var nf;(function(s){function e(r){return Wr.INSTANCE.getEditorCommand(r)}s.getEditorCommand=e;function t(){return Wr.INSTANCE.getEditorActions()}s.getEditorActions=t;function i(){return Wr.INSTANCE.getEditorContributions()}s.getEditorContributions=i;function n(r){return Wr.INSTANCE.getEditorContributions().filter(a=>r.indexOf(a.id)>=0)}s.getSomeEditorContributions=n;function o(){return Wr.INSTANCE.getDiffEditorContributions()}s.getDiffEditorContributions=o})(nf||(nf={}));const yle={EditorCommonContributions:"editor.contributions"},gI=class gI{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}};gI.INSTANCE=new gI;let Wr=gI;Si.add(yle.EditorCommonContributions,Wr.INSTANCE);function ey(s){return s.register(),s}const IZ=ey(new Cv({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:ve.MenubarEditMenu,group:"1_do",title:p({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:ve.CommandPalette,group:"",title:p("undo","Undo"),order:1}]}));ey(new kZ(IZ,{id:"default:undo",precondition:void 0}));const DZ=ey(new Cv({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:ve.MenubarEditMenu,group:"1_do",title:p({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:ve.CommandPalette,group:"",title:p("redo","Redo"),order:1}]}));ey(new kZ(DZ,{id:"default:redo",precondition:void 0}));const xle=ey(new Cv({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:ve.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:ve.CommandPalette,group:"",title:p("selectAll","Select All"),order:1}]})),o7="default",kle="$initialize";let r7=!1;function gP(s){Wp&&(r7||(r7=!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 Lle{constructor(e,t,i,n,o){this.vsWorker=e,this.req=t,this.channel=i,this.method=n,this.args=o,this.type=0}}class a7{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class Ele{constructor(e,t,i,n,o){this.vsWorker=e,this.req=t,this.channel=i,this.eventName=n,this.arg=o,this.type=2}}class Ile{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class Dle{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Tle{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,i){const n=String(++this._lastSentReq);return new Promise((o,r)=>{this._pendingReplies[n]={resolve:o,reject:r},this._send(new Lle(this._workerId,n,e,t,i))})}listen(e,t,i){let n=null;const o=new O({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,o),this._send(new Ele(this._workerId,n,e,t,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Dle(this._workerId,n)),n=null}});return o.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,t){const i={get:(n,o)=>(typeof o=="string"&&!n[o]&&(NZ(o)?n[o]=r=>this.listen(e,o,r):TZ(o)?n[o]=this.listen(e,o,void 0):o.charCodeAt(0)===36&&(n[o]=(...r)=>I(this,null,function*(){return yield t==null?void 0:t(),this.sendMessage(e,o,r)}))),n[o])};return new Proxy(Object.create(null),i)}_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.channel,e.method,e.args).then(n=>{this._send(new a7(this._workerId,t,n,void 0))},n=>{n.detail instanceof Error&&(n.detail=A6(n.detail)),this._send(new a7(this._workerId,t,void 0,A6(n)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)(n=>{this._send(new Ile(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 Nle extends B{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},o=>{this._protocol.handleMessage(o)},o=>{ze(o)})),this._protocol=new Tle({sendMessage:(o,r)=>{this._worker.postMessage(o,r)},handleMessage:(o,r,a)=>this._handleMessage(o,r,a),handleEvent:(o,r,a)=>this._handleEvent(o,r,a)}),this._protocol.setWorkerId(this._worker.getId());let i=null;const n=globalThis.require;typeof n!="undefined"&&typeof n.getConfig=="function"?i=n.getConfig():typeof globalThis.requirejs!="undefined"&&(i=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(o7,kle,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(o7,()=>I(this,null,function*(){yield this._onModuleLoaded})),this._onModuleLoaded.catch(o=>{this._onError("Worker failed to load "+t.amdModuleId,o)})}_handleMessage(e,t,i){const n=this._localChannels.get(e);if(!n)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if(typeof n[t]!="function")return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(n[t].apply(n,i))}catch(o){return Promise.reject(o)}}_handleEvent(e,t,i){const n=this._localChannels.get(e);if(!n)throw new Error(`Missing channel ${e} on main thread`);if(NZ(t)){const o=n[t].call(n,i);if(typeof o!="function")throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return o}if(TZ(t)){const o=n[t];if(typeof o!="function")throw new Error(`Missing event ${t} on main thread channel ${e}.`);return o}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function TZ(s){return s[0]==="o"&&s[1]==="n"&&Jl(s.charCodeAt(2))}function NZ(s){return/^onDynamic/.test(s)&&Jl(s.charCodeAt(9))}function Zd(s,e){var i;const t=globalThis.MonacoEnvironment;if(t!=null&&t.createTrustedTypesPolicy)try{return t.createTrustedTypesPolicy(s,e)}catch(n){ze(n);return}try{return(i=globalThis.trustedTypes)==null?void 0:i.createPolicy(s,e)}catch(n){ze(n);return}}let jm;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?jm=globalThis.workerttPolicy:jm=Zd("defaultWorkerFactory",{createScriptURL:s=>s});function Rle(s,e){const t=globalThis.MonacoEnvironment;if(t){if(typeof t.getWorker=="function")return t.getWorker("workerMain.js",e);if(typeof t.getWorkerUrl=="function"){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(jm?jm.createScriptURL(i):i,{name:e,type:"module"})}}if(s){const i=Ale(e,s.toString(!0)),n=new Worker(jm?jm.createScriptURL(i):i,{name:e,type:"module"});return Mle(n)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function Ale(s,e,t){if(!(/^((http:)|(https:)|(file:)|(vscode-file:))/.test(e)&&e.substring(0,globalThis.origin.length)!==globalThis.origin)){const o=e.lastIndexOf("?"),r=e.lastIndexOf("#",o),a=o>0?new URLSearchParams(e.substring(o+1,~r?r:void 0)):new URLSearchParams;oP.addSearchParam(a,!0,!0),a.toString()?e=`${e}?${a.toString()}#${s}`:e=`${e}#${s}`}const n=new Blob([Ca([`/*${s}*/`,void 0,`globalThis._VSCODE_NLS_MESSAGES = ${JSON.stringify(uG())};`,`globalThis._VSCODE_NLS_LANGUAGE = ${JSON.stringify(uB())};`,`globalThis._VSCODE_FILE_ROOT = '${globalThis._VSCODE_FILE_ROOT}';`,"const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });","globalThis.workerttPolicy = ttPolicy;",`await import(ttPolicy?.createScriptURL('${e}') ?? '${e}');`,"globalThis.postMessage({ type: 'vscode-worker-ready' });",`/*${s}*/`]).join("")],{type:"application/javascript"});return URL.createObjectURL(n)}function Mle(s){return new Promise((e,t)=>{s.onmessage=function(i){i.data.type==="vscode-worker-ready"&&(s.onmessage=null,e(s))},s.onerror=t})}function Ple(s){return typeof s.then=="function"}class Ole extends B{constructor(e,t,i,n,o,r){super(),this.id=i,this.label=n;const a=Rle(e,n);Ple(a)?this.worker=a:this.worker=Promise.resolve(a),this.postMessage(t,[]),this.worker.then(l=>{l.onmessage=function(c){o(c.data)},l.onmessageerror=r,typeof l.addEventListener=="function"&&l.addEventListener("error",r)}),this._register(ke(()=>{var l;(l=this.worker)==null||l.then(c=>{c.onmessage=null,c.onmessageerror=null,c.removeEventListener("error",r),c.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,t){var i;(i=this.worker)==null||i.then(n=>{try{n.postMessage(e,t)}catch(o){ze(o),ze(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:o}))}})}}class Fle{constructor(e,t){this.amdModuleId=e,this.label=t,this.esmModuleLocation=GD.asBrowserUri(`${e}.esm.js`)}}const fI=class fI{constructor(){this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++fI.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Ole(e.esmModuleLocation,e.amdModuleId,n,e.label||"anonymous"+n,t,o=>{gP(o),this._webWorkerFailedBeforeError=o,i(o)})}};fI.LAST_WORKER_ID=0;let fP=fI;function Ble(s,e){const t=typeof s=="string"?new Fle(s,e):s;return new Nle(new fP,t)}var Xi;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(Xi||(Xi={}));class JN{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 Wle{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)iw(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),iw(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),iw(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),iw(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),t.close.length===1&&t.open.length===1&&iw(this.autoClosingPairsCloseSingleChar,t.close,t)}}function iw(s,e,t){s.has(e)?s.get(e).push(t):s.set(e,[t])}const w_=class w_{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new JN(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new JN({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new JN({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:w_.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:w_.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}};w_.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])>
|