UNPKG

monaco-editor

Version:
7 lines (5 loc) 358 kB
define("vs/editorWorkerHost-fVE1cjcC",["require","exports"],(function(w1,u){"use strict";function _1(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function y1(t){if(t.length===0)throw new Error("Invalid tail call");return[t.slice(0,t.length-1),t[t.length-1]]}function as(t,e,n=(i,s)=>i===s){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0,s=t.length;i<s;i++)if(!n(t[i],e[i]))return!1;return!0}function L1(t,e){const n=t.length-1;e<n&&(t[e]=t[n]),t.pop()}function v1(t,e,n){return os(t.length,i=>n(t[i],e))}function os(t,e){let n=0,i=t-1;for(;n<=i;){const s=(n+i)/2|0,r=e(s);if(r<0)n=s+1;else if(r>0)i=s-1;else return s}return-(n+1)}function $n(t,e,n){if(t=t|0,t>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],s=[],r=[],a=[];for(const l of e){const c=n(l,i);c<0?s.push(l):c>0?r.push(l):a.push(l)}return t<s.length?$n(t,s,n):t<s.length+a.length?a[0]:$n(t-(s.length+a.length),r,n)}function x1(t,e){const n=[];let i;for(const s of t.slice(0).sort(e))!i||e(i[0],s)!==0?(i=[s],n.push(i)):i.push(s);return n}function*ls(t,e){let n,i;for(const s of t)i!==void 0&&e(i,s)?n.push(s):(n&&(yield n),n=[s]),i=s;n&&(yield n)}function us(t,e){for(let n=0;n<=t.length;n++)e(n===0?void 0:t[n-1],n===t.length?void 0:t[n])}function S1(t,e){for(let n=0;n<t.length;n++)e(n===0?void 0:t[n-1],t[n],n+1===t.length?void 0:t[n+1])}function N1(t){return t.filter(e=>!!e)}function C1(t){let e=0;for(let n=0;n<t.length;n++)t[n]&&(t[e]=t[n],e+=1);t.length=e}function R1(t){return!Array.isArray(t)||t.length===0}function A1(t){return Array.isArray(t)&&t.length>0}function E1(t,e=n=>n){const n=new Set;return t.filter(i=>{const s=e(i);return n.has(s)?!1:(n.add(s),!0)})}function M1(t,e){let n=typeof e=="number"?t:0;typeof e=="number"?n=t:(n=0,e=t);const i=[];if(n<=e)for(let s=n;s<e;s++)i.push(s);else for(let s=n;s>e;s--)i.push(s);return i}function cs(t,e,n){const i=t.slice(0,e),s=t.slice(e);return i.concat(n,s)}function k1(t,e){const n=t.indexOf(e);n>-1&&(t.splice(n,1),t.unshift(e))}function T1(t,e){const n=t.indexOf(e);n>-1&&(t.splice(n,1),t.push(e))}function hs(t,e){for(const n of e)t.push(n)}function P1(t,e){const n=[];for(const i of t){const s=e(i);s!==void 0&&n.push(s)}return n}function I1(t){return Array.isArray(t)?t:[t]}function F1(t,e,n){const i=fs(t,e),s=t.length,r=n.length;t.length=s+r;for(let a=s-1;a>=i;a--)t[a+r]=t[a];for(let a=0;a<r;a++)t[a+i]=n[a]}function D1(t,e,n,i){const s=fs(t,e);let r=t.splice(s,n);return r===void 0&&(r=[]),F1(t,s,i),r}function fs(t,e){return e<0?Math.max(e+t.length,0):Math.min(e,t.length)}var qe;(function(t){function e(r){return r<0}t.isLessThan=e;function n(r){return r<=0}t.isLessThanOrEqual=n;function i(r){return r>0}t.isGreaterThan=i;function s(r){return r===0}t.isNeitherLessOrGreaterThan=s,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(qe||(qe={}));function $e(t,e){return(n,i)=>e(t(n),t(i))}function B1(...t){return(e,n)=>{for(const i of t){const s=i(e,n);if(!qe.isNeitherLessOrGreaterThan(s))return s}return qe.neitherLessOrGreaterThan}}const Oe=(t,e)=>t-e,V1=(t,e)=>Oe(t?1:0,e?1:0);function ds(t){return(e,n)=>-t(e,n)}function q1(t){return(e,n)=>e===void 0?n===void 0?qe.neitherLessOrGreaterThan:qe.lessThan:n===void 0?qe.greaterThan:t(e,n)}class U1{constructor(e){this.firstIdx=0,this.items=e,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let n=this.firstIdx;for(;n<this.items.length&&e(this.items[n]);)n++;const i=n===this.firstIdx?null:this.items.slice(this.firstIdx,n);return this.firstIdx=n,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const n=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,n}}const Ct=class Ct{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new Ct(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new Ct(n=>this.iterate(i=>n(e(i))))}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(s=>((i||qe.isGreaterThan(e(s,n)))&&(i=!1,n=s),!0)),n}};Ct.empty=new Ct(e=>{});let On=Ct;class tn{constructor(e){this._indexMap=e}static createSortPermutation(e,n){const i=Array.from(e.keys()).sort((s,r)=>n(e[s],e[r]));return new tn(i)}apply(e){return e.map((n,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let n=0;n<this._indexMap.length;n++)e[this._indexMap[n]]=n;return new tn(e)}}function W1(t){return t.reduce((e,n)=>e+n,0)}class $1{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?st.isErrorNoTelemetry(e)?new st(e.message+` `+e.stack):new Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const zn=new $1;function O1(t){zn.onUnexpectedError(t)}function ze(t){sn(t)||zn.onUnexpectedError(t)}function ms(t){sn(t)||zn.onUnexpectedExternalError(t)}function Hn(t){if(t instanceof Error){const{name:e,message:n,cause:i}=t,s=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:s,noTelemetry:st.isErrorNoTelemetry(t),cause:i?Hn(i):void 0,code:t.code}}return t}const nn="Canceled";function sn(t){return t instanceof Ce?!0:t instanceof Error&&t.name===nn&&t.message===nn}class Ce extends Error{constructor(){super(nn),this.name=this.message}}function z1(){const t=new Error(nn);return t.name=t.message,t}function H1(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function j1(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class G1 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class st extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof st)return e;const n=new st;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class G extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,G.prototype)}}function Q1(t,e){if(!t)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function gs(t,e="Unreachable"){throw new Error(e)}function jn(t,e="unexpected state"){if(!t)throw typeof e=="string"?new G(`Assertion Failed: ${e}`):e}function X1(t,e="Soft Assertion Failed"){t||ze(new G(e))}function rt(t){if(!t()){debugger;t(),ze(new G("Assertion Failed"))}}function rn(t,e){let n=0;for(;n<t.length-1;){const i=t[n],s=t[n+1];if(!e(i,s))return!1;n++}return!0}function Gn(t){return typeof t=="string"}function Y1(t,e){return Array.isArray(t)&&t.every(e)}function at(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function J1(t){const e=Object.getPrototypeOf(Uint8Array);return typeof t=="object"&&t instanceof e}function Z1(t){return typeof t=="number"&&!isNaN(t)}function ps(t){return!!t&&typeof t[Symbol.iterator]=="function"}function K1(t){return t===!0||t===!1}function bs(t){return typeof t>"u"}function ea(t){return!an(t)}function an(t){return bs(t)||t===null}function ta(t,e){if(!t)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function na(t){return jn(t!=null,"Argument is `undefined` or `null`."),t}function ws(t){return typeof t=="function"}function ia(t,e){const n=Math.min(t.length,e.length);for(let i=0;i<n;i++)sa(t[i],e[i])}function sa(t,e){if(Gn(e)){if(typeof t!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(ws(e)){try{if(t instanceof e)return}catch{}if(!an(t)&&t.constructor===e||e.length===1&&e.call(void 0,t)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ra(t){return t}function _s(t){if(!t||typeof t!="object"||t instanceof RegExp)return t;const e=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([n,i])=>{e[n]=i&&typeof i=="object"?_s(i):i}),e}function aa(t){if(!t||typeof t!="object")return t;const e=[t];for(;e.length>0;){const n=e.shift();Object.freeze(n);for(const i in n)if(ys.call(n,i)){const s=n[i];typeof s=="object"&&!Object.isFrozen(s)&&!J1(s)&&e.push(s)}}return t}const ys=Object.prototype.hasOwnProperty;function oa(t,e){return Qn(t,e,new Set)}function Qn(t,e,n){if(an(t))return t;const i=e(t);if(typeof i<"u")return i;if(Array.isArray(t)){const s=[];for(const r of t)s.push(Qn(r,e,n));return s}if(at(t)){if(n.has(t))throw new Error("Cannot clone recursive data-structure");n.add(t);const s={};for(const r in t)ys.call(t,r)&&(s[r]=Qn(t[r],e,n));return n.delete(t),s}return t}function Ls(t,e,n=!0){return at(t)?(at(e)&&Object.keys(e).forEach(i=>{i in t?n&&(at(t[i])&&at(e[i])?Ls(t[i],e[i],n):t[i]=e[i]):t[i]=e[i]}),t):e}function Tt(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let n,i;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(!Tt(t[n],e[n]))return!1}else{const s=[];for(i in t)s.push(i);s.sort();const r=[];for(i in e)r.push(i);if(r.sort(),!Tt(s,r))return!1;for(n=0;n<s.length;n++)if(!Tt(t[s[n]],e[s[n]]))return!1}return!0}function vs(){return globalThis._VSCODE_NLS_MESSAGES}function Xn(){return globalThis._VSCODE_NLS_LANGUAGE}const la=Xn()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function on(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,s)=>{const r=s[0],a=e[r];let l=i;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),la&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function F(t,e,...n){return on(typeof t=="number"?xs(t,e):e,n)}function xs(t,e){const n=vs()?.[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}function ua(t,e,...n){let i;typeof t=="number"?i=xs(t,e):i=e;const s=on(i,n);return{value:s,original:e===i?s:on(e,n)}}const He="en";let Pt=!1,It=!1,Ft=!1,Ss=!1,Yn=!1,Jn=!1,Ns=!1,ln,un=He,Cs=He,ca,Re;const Ae=globalThis;let le;typeof Ae.vscode<"u"&&typeof Ae.vscode.process<"u"?le=Ae.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(le=process);const ha=typeof le?.versions?.electron=="string"&&le?.type==="renderer";if(typeof le=="object"){Pt=le.platform==="win32",It=le.platform==="darwin",Ft=le.platform==="linux",Ft&&le.env.SNAP&&le.env.SNAP_REVISION,le.env.CI||le.env.BUILD_ARTIFACTSTAGINGDIRECTORY||le.env.GITHUB_WORKSPACE,ln=He,un=He;const t=le.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);ln=e.userLocale,Cs=e.osLocale,un=e.resolvedLanguage||He,ca=e.languagePack?.translationsConfigFile}catch{}Ss=!0}else typeof navigator=="object"&&!ha?(Re=navigator.userAgent,Pt=Re.indexOf("Windows")>=0,It=Re.indexOf("Macintosh")>=0,Jn=(Re.indexOf("Macintosh")>=0||Re.indexOf("iPad")>=0||Re.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ft=Re.indexOf("Linux")>=0,Ns=Re?.indexOf("Mobi")>=0,Yn=!0,un=Xn()||He,ln=navigator.language.toLowerCase(),Cs=ln):console.error("Unable to resolve platform.");let cn=0;It?cn=1:Pt?cn=3:Ft&&(cn=2);const ot=Pt,Rs=It,fa=Ft,As=Ss,Zn=Yn,da=Yn&&typeof Ae.importScripts=="function"?Ae.origin:void 0,ma=Jn,ga=Ns,pa=cn,ve=Re,ba=un,wa=typeof Ae.postMessage=="function"&&!Ae.importScripts,Es=(()=>{if(wa){const t=[];Ae.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,s=t.length;i<s;i++){const r=t[i];if(r.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),r.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),Ae.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})(),_a=It||Jn?2:Pt?1:3;let Ms=!0,ks=!1;function ya(){if(!ks){ks=!0;const t=new Uint8Array(2);t[0]=1,t[1]=2,Ms=new Uint16Array(t.buffer)[0]===513}return Ms}const Ts=!!(ve&&ve.indexOf("Chrome")>=0),La=!!(ve&&ve.indexOf("Firefox")>=0),va=!!(!Ts&&ve&&ve.indexOf("Safari")>=0),xa=!!(ve&&ve.indexOf("Edg/")>=0),Sa=!!(ve&&ve.indexOf("Android")>=0);function Ps(t,e){const n=this;let i=!1,s;return function(){return i||(i=!0,s=t.apply(n,arguments)),s}}u.Iterable=void 0,(function(t){function e(y){return!!y&&typeof y=="object"&&typeof y[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*s(y){yield y}t.single=s;function r(y){return e(y)?y:s(y)}t.wrap=r;function a(y){return y??n}t.from=a;function*l(y){for(let L=y.length-1;L>=0;L--)yield y[L]}t.reverse=l;function c(y){return!y||y[Symbol.iterator]().next().done===!0}t.isEmpty=c;function h(y){return y[Symbol.iterator]().next().value}t.first=h;function d(y,L){let R=0;for(const V of y)if(L(V,R++))return!0;return!1}t.some=d;function f(y,L){let R=0;for(const V of y)if(!L(V,R++))return!1;return!0}t.every=f;function m(y,L){for(const R of y)if(L(R))return R}t.find=m;function*b(y,L){for(const R of y)L(R)&&(yield R)}t.filter=b;function*p(y,L){let R=0;for(const V of y)yield L(V,R++)}t.map=p;function*g(y,L){let R=0;for(const V of y)yield*L(V,R++)}t.flatMap=g;function*_(...y){for(const L of y)ps(L)?yield*L:yield L}t.concat=_;function x(y,L,R){let V=R;for(const W of y)V=L(V,W);return V}t.reduce=x;function S(y){let L=0;for(const R of y)L++;return L}t.length=S;function*v(y,L,R=y.length){for(L<-y.length&&(L=0),L<0&&(L+=y.length),R<0?R+=y.length:R>y.length&&(R=y.length);L<R;L++)yield y[L]}t.slice=v;function k(y,L=Number.POSITIVE_INFINITY){const R=[];if(L===0)return[R,y];const V=y[Symbol.iterator]();for(let W=0;W<L;W++){const q=V.next();if(q.done)return[R,t.empty()];R.push(q.value)}return[R,{[Symbol.iterator](){return V}}]}t.consume=k;async function D(y){const L=[];for await(const R of y)L.push(R);return L}t.asyncToArray=D;async function O(y){let L=[];for await(const R of y)L=L.concat(R);return L}t.asyncToArrayFlat=O})(u.Iterable||(u.Iterable={}));function Mc(t,e){}function Na(t){return t}function Is(t){return typeof t=="object"&&t!==null&&typeof t.dispose=="function"&&t.dispose.length===0}function lt(t){if(u.Iterable.is(t)){const e=[];for(const n of t)if(n)try{n.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(t)?[]:t}else if(t)return t.dispose(),t}function Fs(...t){return xe(()=>lt(t))}class Ca{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function xe(t){return new Ca(t)}const Dn=class Dn{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{lt(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===we.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Dn.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};Dn.DISABLE_DISPOSED_WARNING=!1;let je=Dn;const ss=class ss{constructor(){this._store=new je,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)}};ss.None=Object.freeze({dispose(){}});let we=ss;class Ra{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value?.dispose(),this._value=void 0}}class Aa{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Ea{constructor(e){this.object=e}dispose(){}}class Ma{constructor(e=new Map){this._isDisposed=!1,this._store=e}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{lt(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,n,i=!1){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||this._store.get(e)?.dispose(),this._store.set(e,n)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}keys(){return this._store.keys()}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const Rt=class Rt{constructor(e){this.element=e,this.next=Rt.Undefined,this.prev=Rt.Undefined}};Rt.Undefined=new Rt(void 0);let Y=Rt;class Kn{constructor(){this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Y.Undefined}clear(){let e=this._first;for(;e!==Y.Undefined;){const n=e.next;e.prev=Y.Undefined,e.next=Y.Undefined,e=n}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new Y(e);if(this._first===Y.Undefined)this._first=i,this._last=i;else if(n){const r=this._last;this._last=i,i.prev=r,r.next=i}else{const r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==Y.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Y.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Y.Undefined&&e.next!==Y.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===Y.Undefined&&e.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):e.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):e.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Y.Undefined;)yield e.element,e=e.next}}let ut;const ei=globalThis.vscode;if(typeof ei<"u"&&typeof ei.process<"u"){const t=ei.process;ut={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?ut={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ut={get platform(){return ot?"win32":Rs?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const hn=ut.cwd,ti=ut.env,ka=ut.platform,Ta=globalThis.performance.now.bind(globalThis.performance);class Dt{static create(e){return new Dt(e)}constructor(e){this._now=e===!1?Date.now:Ta,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}const Pa=100,Ds=6e4;function Bs(){return!!ti.VSCODE_DEV}u.Event=void 0,(function(t){t.None=()=>we.None;function e(A,C,E){return m(A,()=>{},0,void 0,C??!0,void 0,E)}t.defer=e;function n(A){return(C,E=null,T)=>{let M=!1,B;return B=A(z=>{if(!M)return B?B.dispose():M=!0,C.call(E,z)},null,T),M&&B.dispose(),B}}t.once=n;function i(A,C){return t.once(t.filter(A,C))}t.onceIf=i;function s(A,C,E){return d((T,M=null,B)=>A(z=>T.call(M,C(z)),null,B),E)}t.map=s;function r(A,C,E){return d((T,M=null,B)=>A(z=>{C(z),T.call(M,z)},null,B),E)}t.forEach=r;function a(A,C,E){return d((T,M=null,B)=>A(z=>C(z)&&T.call(M,z),null,B),E)}t.filter=a;function l(A){return A}t.signal=l;function c(...A){return(C,E=null,T)=>{const M=Fs(...A.map(B=>B(z=>C.call(E,z))));return f(M,T)}}t.any=c;function h(A,C,E,T){let M=E;return s(A,B=>(M=C(M,B),M),T)}t.reduce=h;function d(A,C){let E;const T={onWillAddFirstListener(){E=A(M.fire,M)},onDidRemoveLastListener(){E?.dispose()}},M=new ie(T);return C?.add(M),M.event}function f(A,C){return C instanceof Array?C.push(A):C&&C.add(A),A}function m(A,C,E=100,T=!1,M=!1,B,z){let te,X,oe,ne=0,de;const it={leakWarningThreshold:B,onWillAddFirstListener(){te=A(Cc=>{ne++,X=C(X,Cc),T&&!oe&&(kt.fire(X),X=void 0),de=()=>{const Rc=X;X=void 0,oe=void 0,(!T||ne>1)&&kt.fire(Rc),ne=0},typeof E=="number"?(oe&&clearTimeout(oe),oe=setTimeout(de,E)):oe===void 0&&(oe=null,queueMicrotask(de))})},onWillRemoveListener(){M&&ne>0&&de?.()},onDidRemoveLastListener(){de=void 0,te.dispose()}},kt=new ie(it);return z?.add(kt),kt.event}t.debounce=m;function b(A,C=0,E,T){return t.debounce(A,(M,B)=>M?(M.push(B),M):[B],C,void 0,E??!0,void 0,T)}t.accumulate=b;function p(A,C,E=100,T=!0,M=!0,B,z){let te,X,oe,ne=0;const de={leakWarningThreshold:B,onWillAddFirstListener(){te=A(kt=>{ne++,X=C(X,kt),oe===void 0&&(T&&(it.fire(X),X=void 0,ne=0),typeof E=="number"?oe=setTimeout(()=>{M&&ne>0&&it.fire(X),X=void 0,oe=void 0,ne=0},E):(oe=0,queueMicrotask(()=>{M&&ne>0&&it.fire(X),X=void 0,oe=void 0,ne=0})))})},onDidRemoveLastListener(){te.dispose()}},it=new ie(de);return z?.add(it),it.event}t.throttle=p;function g(A,C=(T,M)=>T===M,E){let T=!0,M;return a(A,B=>{const z=T||!C(B,M);return T=!1,M=B,z},E)}t.latch=g;function _(A,C,E){return[t.filter(A,C,E),t.filter(A,T=>!C(T),E)]}t.split=_;function x(A,C,E=!1,T=[],M){let B=T.slice(),z;Bs()&&(z={stack:fn.create(),timerId:setTimeout(()=>{B&&B.length>0&&z&&!z.warned&&(z.warned=!0,console.warn(`[Event.buffer][${C}] potential LEAK detected: ${B.length} events buffered for ${Ds/1e3}s without being consumed. Buffered here:`),z.stack.print())},Ds),warned:!1},M&&M.add(xe(()=>clearTimeout(z.timerId))));const te=()=>{z&&clearTimeout(z.timerId)};let X=A(de=>{B?(B.push(de),Bs()&&z&&!z.warned&&B.length>=Pa&&(z.warned=!0,console.warn(`[Event.buffer][${C}] potential LEAK detected: ${B.length} events buffered without being consumed. Buffered here:`),z.stack.print())):ne.fire(de)});M&&M.add(X);const oe=()=>{B?.forEach(de=>ne.fire(de)),B=null,te()},ne=new ie({onWillAddFirstListener(){X||(X=A(de=>ne.fire(de)),M&&M.add(X))},onDidAddFirstListener(){B&&(E?setTimeout(oe):oe())},onDidRemoveLastListener(){X&&X.dispose(),X=null,te()}});return M&&M.add(ne),ne.event}t.buffer=x;function S(A,C){return(T,M,B)=>{const z=C(new k);return A(function(te){const X=z.evaluate(te);X!==v&&T.call(M,X)},void 0,B)}}t.chain=S;const v=Symbol("HaltChainable");class k{constructor(){this.steps=[]}map(C){return this.steps.push(C),this}forEach(C){return this.steps.push(E=>(C(E),E)),this}filter(C){return this.steps.push(E=>C(E)?E:v),this}reduce(C,E){let T=E;return this.steps.push(M=>(T=C(T,M),T)),this}latch(C=(E,T)=>E===T){let E=!0,T;return this.steps.push(M=>{const B=E||!C(M,T);return E=!1,T=M,B?M:v}),this}evaluate(C){for(const E of this.steps)if(C=E(C),C===v)break;return C}}function D(A,C,E=T=>T){const T=(...te)=>z.fire(E(...te)),M=()=>A.on(C,T),B=()=>A.removeListener(C,T),z=new ie({onWillAddFirstListener:M,onDidRemoveLastListener:B});return z.event}t.fromNodeEventEmitter=D;function O(A,C,E=T=>T){const T=(...te)=>z.fire(E(...te)),M=()=>A.addEventListener(C,T),B=()=>A.removeEventListener(C,T),z=new ie({onWillAddFirstListener:M,onDidRemoveLastListener:B});return z.event}t.fromDOMEventEmitter=O;function y(A,C){let E,T;const M=new Promise(B=>{T=n(A)(B),ri(T,C),E=()=>{Us(T,C)}});return M.cancel=E,C&&M.finally(()=>Us(T,C)),M}t.toPromise=y;function L(A,C){return A(E=>C.fire(E))}t.forward=L;function R(A,C,E){return C(E),A(T=>C(T))}t.runAndSubscribe=R;class V{constructor(C,E){this._observable=C,this._counter=0,this._hasChanged=!1;const T={onWillAddFirstListener:()=>{C.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{C.removeObserver(this)}};this.emitter=new ie(T),E&&E.add(this.emitter)}beginUpdate(C){this._counter++}handlePossibleChange(C){}handleChange(C,E){this._hasChanged=!0}endUpdate(C){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function W(A,C){return new V(A,C).emitter.event}t.fromObservable=W;function q(A){return(C,E,T)=>{let M=0,B=!1;const z={beginUpdate(){M++},endUpdate(){M--,M===0&&(A.reportChanges(),B&&(B=!1,C.call(E)))},handlePossibleChange(){},handleChange(){B=!0}};A.addObserver(z),A.reportChanges();const te={dispose(){A.removeObserver(z)}};return ri(te,T),te}}t.fromObservableLight=q})(u.Event||(u.Event={}));const At=class At{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${At._idPool++}`,At.all.add(this)}start(e){this._stopWatch=new Dt,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}}};At.all=new Set,At._idPool=0;let ni=At,Ia=-1;const Bn=class Bn{constructor(e,n,i=(Bn._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;const[r,a]=this.getMostFrequentStack(),l=/^[0-9a-f]+$/i.test(this.name)?void 0:this.name,c=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(c),console.warn(r);const h=a/n>.3?"dominated":"popular",d=new dn(h,c,r,n,l);this._errorHandler(d)}return()=>{const r=this._stacks.get(e.value)||0;this._stacks.set(e.value,r-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[i,s]of this._stacks)(!e||n<s)&&(e=[i,s],n=s);return e}};Bn._idPool=1;let ii=Bn;class fn{static create(){const e=new Error;return new fn(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class dn extends Error{constructor(e,n,i,s,r){super(r?`[${r}] potential listener LEAK detected, ${e}`:`potential listener LEAK detected, ${e}`),this.name="ListenerLeakError",this.kind=e,this.listenerCount=s,this.details=n,this.stack=i}static is(e){return e instanceof dn||e instanceof Error&&typeof e.kind=="string"&&typeof e.listenerCount=="number"}}class Fa extends dn{constructor(e,n,i,s,r){super(e,n,i,s,r),this.name="ListenerRefusalError"}}class si{constructor(e){this.value=e}}const Da=2;class ie{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new ii(e?.onListenerError??ze,this._options?.leakWarningThreshold??Ia,this._options?.leakWarningName):void 0,this._perfMon=this._options?._profName?new ni(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,n,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);const c=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],h=c[1]/this._size>.3?"dominated":"popular",d=new Fa(h,`${l}. HINT: Stack shows most frequent listener (${c[1]}-times)`,c[0],this._size,this._options?.leakWarningName);return(this._options?.onListenerError||ze)(d),we.None}if(this._disposed)return we.None;n&&(e=e.bind(n));const s=new si(e);let r;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=fn.create(),r=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof si?(this._deliveryQueue??=new Vs,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=xe(()=>{r?.(),this._removeListener(s)});return ri(a,i),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,i=n.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--,n[i]=void 0;const s=this._deliveryQueue.current===this;if(this._size*Da<=n.length){let r=0;for(let a=0;a<n.length;a++)n[a]?n[r++]=n[a]:s&&r<this._deliveryQueue.end&&(this._deliveryQueue.end--,r<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=r}}_deliver(e,n){if(!e)return;const i=this._options?.onListenerError||ze;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof si)this._deliver(this._listeners,e);else{const n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}const Ba=()=>new Vs;class Vs{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class qs extends ie{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Kn,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class Va extends qs{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class qa extends ie{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(n=>super.fire(n)),this._queuedEvents=[]}))}}class Ua{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new ie({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const n={event:e,listener:null};return this.events.push(n),this.hasListeners&&this.hook(n),xe(Ps(()=>{this.hasListeners&&this.unhook(n);const s=this.events.indexOf(n);this.events.splice(s,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(n=>this.emitter.fire(n))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class Wa{constructor(){this.data=[]}wrapEvent(e,n,i){return(s,r,a)=>e(l=>{const c=this.data[this.data.length-1];if(!n){c?c.buffers.push(()=>s.call(r,l)):s.call(r,l);return}const h=c;if(!h){s.call(r,n(i,l));return}h.items??=[],h.items.push(l),h.buffers.length===0&&c.buffers.push(()=>{h.reducedResult??=i?h.items.reduce(n,i):h.items.reduce(n),s.call(r,h.reducedResult)})},void 0,a)}bufferEvents(e){const n={buffers:new Array};this.data.push(n);const i=e();return this.data.pop(),n.buffers.forEach(s=>s()),i}}class $a{constructor(){this.listening=!1,this.inputEvent=u.Event.None,this.inputEventListener=we.None,this.emitter=new ie({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()}}function ri(t,e){e instanceof je?e.add(t):Array.isArray(e)&&e.push(t)}function Us(t,e){if(e instanceof je)e.delete(t);else if(Array.isArray(e)){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}t.dispose()}const Ws="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Oa(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of Ws)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const ai=Oa();function oi(t){let e=ai;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const $s=new Kn;$s.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function mn(t,e,n,i,s){if(e=oi(e),s||(s=u.Iterable.first($s)),n.length>s.maxLen){let h=t-s.maxLen/2;return h<0?h=0:i+=h,n=n.substring(h,t+s.maxLen/2),mn(t,e,n,i,s)}const r=Date.now(),a=t-1-i;let l=-1,c=null;for(let h=1;!(Date.now()-r>=s.timeBudget);h++){const d=a-s.windowSize*h;e.lastIndex=Math.max(0,d);const f=za(e,n,a,l);if(!f&&c||(c=f,d<=0))break;l=d}if(c){const h={word:c[0],startColumn:i+1+c.index,endColumn:i+1+c.index+c[0].length};return e.lastIndex=0,h}return null}function za(t,e,n,i){let s;for(;s=t.exec(e);){const r=s.index||0;if(r<=n&&t.lastIndex>=n)return s;if(i>0&&r>i)return null}return null}const Os=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});u.CancellationToken=void 0,(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof gn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:u.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Os})})(u.CancellationToken||(u.CancellationToken={}));class gn{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?Os:(this._emitter||(this._emitter=new ie),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class ct{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 gn),this._token}cancel(){this._token?this._token instanceof gn&&this._token.cancel():this._token=u.CancellationToken.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof gn&&this._token.dispose():this._token=u.CancellationToken.None}}function Ha(t){const e=new ct;return t.add({dispose(){e.cancel()}}),e.token}class li{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const pn=new li,ui=new li,ci=new li,zs=new Array(230),ja=Object.create(null),Ga=Object.create(null),hi=[];for(let t=0;t<=193;t++)hi[t]=-1;(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Del",46,"VK_DELETE","Delete",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],i=[];for(const s of e){const[r,a,l,c,h,d,f,m,b]=s;if(i[a]||(i[a]=!0,ja[l]=a,Ga[l.toLowerCase()]=a,r&&(hi[a]=c)),!n[c]){if(n[c]=!0,!h)throw new Error(`String representation missing for key code ${c} around scan code ${l}`);pn.define(c,h),ui.define(c,m||h),ci.define(c,b||m||h)}d&&(zs[d]=c)}})(),u.KeyCodeUtils=void 0,(function(t){function e(l){return pn.keyCodeToStr(l)}t.toString=e;function n(l){return pn.strToKeyCode(l)}t.fromString=n;function i(l){return ui.keyCodeToStr(l)}t.toUserSettingsUS=i;function s(l){return ci.keyCodeToStr(l)}t.toUserSettingsGeneral=s;function r(l){return ui.strToKeyCode(l)||ci.strToKeyCode(l)}t.fromUserSettings=r;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right";case 20:return"Delete"}return pn.keyCodeToStr(l)}t.toElectronAccelerator=a})(u.KeyCodeUtils||(u.KeyCodeUtils={}));function Hs(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}function Qa(t){return t===5||t===4||t===6||t===57}const Xa=65,Ya=97,Ja=90,Za=122,Ge=46,K=47,ue=92,Ee=58,Ka=63;class js extends Error{constructor(e,n,i){let s;typeof n=="string"&&n.indexOf("not ")===0?(s="must not be",n=n.replace(/^not /,"")):s="must be";const r=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${r} ${s} of type ${n}`;a+=`. Received type ${typeof i}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function eo(t,e){if(t===null||typeof t!="object")throw new js(e,"Object",t)}function Z(t,e){if(typeof t!="string")throw new js(e,"string",t)}const Me=ka==="win32";function $(t){return t===K||t===ue}function fi(t){return t===K}function ke(t){return t>=Xa&&t<=Ja||t>=Ya&&t<=Za}function bn(t,e,n,i){let s="",r=0,a=-1,l=0,c=0;for(let h=0;h<=t.length;++h){if(h<t.length)c=t.charCodeAt(h);else{if(i(c))break;c=K}if(i(c)){if(!(a===h-1||l===1))if(l===2){if(s.length<2||r!==2||s.charCodeAt(s.length-1)!==Ge||s.charCodeAt(s.length-2)!==Ge){if(s.length>2){const d=s.lastIndexOf(n);d===-1?(s="",r=0):(s=s.slice(0,d),r=s.length-1-s.lastIndexOf(n)),a=h,l=0;continue}else if(s.length!==0){s="",r=0,a=h,l=0;continue}}e&&(s+=s.length>0?`${n}..`:"..",r=2)}else s.length>0?s+=`${n}${t.slice(a+1,h)}`:s=t.slice(a+1,h),r=h-a-1;a=h,l=0}else c===Ge&&l!==-1?++l:l=-1}return s}function to(t){return t?`${t[0]==="."?"":"."}${t}`:""}function Gs(t,e){eo(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${to(e.ext)}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const se={resolve(...t){let e="",n="",i=!1;for(let s=t.length-1;s>=-1;s--){let r;if(s>=0){if(r=t[s],Z(r,`paths[${s}]`),r.length===0)continue}else e.length===0?r=hn():(r=ti[`=${e}`]||hn(),(r===void 0||r.slice(0,2).toLowerCase()!==e.toLowerCase()&&r.charCodeAt(2)===ue)&&(r=`${e}\\`));const a=r.length;let l=0,c="",h=!1;const d=r.charCodeAt(0);if(a===1)$(d)&&(l=1,h=!0);else if($(d))if(h=!0,$(r.charCodeAt(1))){let f=2,m=f;for(;f<a&&!$(r.charCodeAt(f));)f++;if(f<a&&f!==m){const b=r.slice(m,f);for(m=f;f<a&&$(r.charCodeAt(f));)f++;if(f<a&&f!==m){for(m=f;f<a&&!$(r.charCodeAt(f));)f++;(f===a||f!==m)&&(c=`\\\\${b}\\${r.slice(m,f)}`,l=f)}}}else l=1;else ke(d)&&r.charCodeAt(1)===Ee&&(c=r.slice(0,2),l=2,a>2&&$(r.charCodeAt(2))&&(h=!0,l=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(i){if(e.length>0)break}else if(n=`${r.slice(l)}\\${n}`,i=h,h&&e.length>0)break}return n=bn(n,!i,"\\",$),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){Z(t,"path");const e=t.length;if(e===0)return".";let n=0,i,s=!1;const r=t.charCodeAt(0);if(e===1)return fi(r)?"\\":t;if($(r))if(s=!0,$(t.charCodeAt(1))){let l=2,c=l;for(;l<e&&!$(t.charCodeAt(l));)l++;if(l<e&&l!==c){const h=t.slic