cloudstudio
Version:
Run VS Code on a remote server.
11 lines (9 loc) • 107 kB
JavaScript
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/(function(){var X=["require","exports","vs/base/common/errors","vs/base/common/functional","vs/base/common/lifecycle","vs/base/common/platform","vs/base/common/event","vs/base/common/iterator","vs/base/common/lazy","vs/base/common/linkedList","vs/base/common/types","vs/base/common/objects","vs/nls!vs/base/common/platform","vs/base/common/stopwatch","vs/base/common/cancellation","vs/base/common/cache","vs/base/common/strings","vs/nls","vs/nls!vs/base/common/worker/simpleWorker","vs/base/common/worker/simpleWorker"],x=function(K){for(var e=[],g=0,D=K.length;g<D;g++)e[g]=X[K[g]];return e};define(X[2],x([0,1]),function(K,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BugIndicatingError=e.ErrorNoTelemetry=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isCancellationError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class g{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?m.isErrorNoTelemetry(v)?new m(v.message+`
`+v.stack):new Error(v.message+`
`+v.stack):v},0)}}addListener(v){return this.listeners.push(v),()=>{this._removeListener(v)}}emit(v){this.listeners.forEach(o=>{o(v)})}_removeListener(v){this.listeners.splice(this.listeners.indexOf(v),1)}setUnexpectedErrorHandler(v){this.unexpectedErrorHandler=v}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}}e.ErrorHandler=g,e.errorHandler=new g;function D(l){e.errorHandler.setUnexpectedErrorHandler(l)}e.setUnexpectedErrorHandler=D;function F(l){M(l)||e.errorHandler.onUnexpectedError(l)}e.onUnexpectedError=F;function _(l){M(l)||e.errorHandler.onUnexpectedExternalError(l)}e.onUnexpectedExternalError=_;function I(l){if(l instanceof Error){const{name:v,message:o}=l,f=l.stacktrace||l.stack;return{$isError:!0,name:v,message:o,stack:f,noTelemetry:m.isErrorNoTelemetry(l)}}return l}e.transformErrorForSerialization=I;const p="Canceled";function M(l){return l instanceof k?!0:l instanceof Error&&l.name===p&&l.message===p}e.isCancellationError=M;class k extends Error{constructor(){super(p);this.name=this.message}}e.CancellationError=k;function Q(){const l=new Error(p);return l.name=l.message,l}e.canceled=Q;function j(l){return l?new Error(`Illegal argument: ${l}`):new Error("Illegal argument")}e.illegalArgument=j;function G(l){return l?new Error(`Illegal state: ${l}`):new Error("Illegal state")}e.illegalState=G;function $(l){return l?new Error(`readonly property '${l} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=$;function z(l){const v=new Error(`${l} has been disposed`);return v.name="DISPOSED",v}e.disposed=z;function J(l){return l?l.message?l.message:l.stack?l.stack.split(`
`)[0]:String(l):"Error"}e.getErrorMessage=J;class N extends Error{constructor(v){super("NotImplemented");v&&(this.message=v)}}e.NotImplementedError=N;class a extends Error{constructor(v){super("NotSupported");v&&(this.message=v)}}e.NotSupportedError=a;class w extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=w;class m extends Error{constructor(v){super(v);this.name="CodeExpectedError"}static fromError(v){if(v instanceof m)return v;const o=new m;return o.message=v.message,o.stack=v.stack,o}static isErrorNoTelemetry(v){return v.name==="CodeExpectedError"}}e.ErrorNoTelemetry=m;class L extends Error{constructor(v){super(v||"An unexpected bug occurred.");Object.setPrototypeOf(this,L.prototype);debugger}}e.BugIndicatingError=L}),define(X[3],x([0,1]),function(K,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function g(D){const F=this;let _=!1,I;return function(){return _||(_=!0,I=D.apply(F,arguments)),I}}e.once=g}),define(X[7],x([0,1]),function(K,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var g;(function(D){function F(o){return o&&typeof o=="object"&&typeof o[Symbol.iterator]=="function"}D.is=F;const _=Object.freeze([]);function I(){return _}D.empty=I;function*p(o){yield o}D.single=p;function M(o){return o||_}D.from=M;function k(o){return!o||o[Symbol.iterator]().next().done===!0}D.isEmpty=k;function Q(o){return o[Symbol.iterator]().next().value}D.first=Q;function j(o,f){for(const r of o)if(f(r))return!0;return!1}D.some=j;function G(o,f){for(const r of o)if(f(r))return r}D.find=G;function*$(o,f){for(const r of o)f(r)&&(yield r)}D.filter=$;function*z(o,f){let r=0;for(const d of o)yield f(d,r++)}D.map=z;function*J(...o){for(const f of o)for(const r of f)yield r}D.concat=J;function*N(o){for(const f of o)for(const r of f)yield r}D.concatNested=N;function a(o,f,r){let d=r;for(const s of o)d=f(d,s);return d}D.reduce=a;function w(o,f){let r=0;for(const d of o)f(d,r++)}D.forEach=w;function*m(o,f,r=o.length){for(f<0&&(f+=o.length),r<0?r+=o.length:r>o.length&&(r=o.length);f<r;f++)yield o[f]}D.slice=m;function L(o,f=Number.POSITIVE_INFINITY){const r=[];if(f===0)return[r,o];const d=o[Symbol.iterator]();for(let s=0;s<f;s++){const n=d.next();if(n.done)return[r,D.empty()];r.push(n.value)}return[r,{[Symbol.iterator](){return d}}]}D.consume=L;function l(o){return L(o)[0]}D.collect=l;function v(o,f,r=(d,s)=>d===s){const d=o[Symbol.iterator](),s=f[Symbol.iterator]();for(;;){const n=d.next(),c=s.next();if(n.done!==c.done)return!1;if(n.done)return!0;if(!r(n.value,c.value))return!1}}D.equals=v})(g=e.Iterable||(e.Iterable={}))}),define(X[8],x([0,1]),function(K,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class g{constructor(F){this.executor=F,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(F){this._error=F}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(F){return new g(()=>F(this.getValue()))}}e.Lazy=g}),define(X[4],x([0,1,3,7]),function(K,e,g,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.disposeIfDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const F=!1;let _=null;function I(s){_=s}if(e.setDisposableTracker=I,F){const s="__is_disposable_tracked__";I(new class{trackDisposable(n){const c=new Error("Potentially leaked disposable").stack;setTimeout(()=>{n[s]||console.log(c)},3e3)}setParent(n,c){if(n&&n!==m.None)try{n[s]=!0}catch{}}markAsDisposed(n){if(n&&n!==m.None)try{n[s]=!0}catch{}}markAsSingleton(n){}})}function p(s){return _?.trackDisposable(s),s}function M(s){_?.markAsDisposed(s)}function k(s,n){_?.setParent(s,n)}function Q(s,n){if(!!_)for(const c of s)_.setParent(c,n)}function j(s){return _?.markAsSingleton(s),s}e.markAsSingleton=j;class G extends Error{constructor(n){super(`Encountered errors while disposing of store. Errors: [${n.join(", ")}]`);this.errors=n}}e.MultiDisposeError=G;function $(s){return typeof s.dispose=="function"&&s.dispose.length===0}e.isDisposable=$;function z(s){if(D.Iterable.is(s)){const n=[];for(const c of s)if(c)try{c.dispose()}catch(E){n.push(E)}if(n.length===1)throw n[0];if(n.length>1)throw new G(n);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}e.dispose=z;function J(s){for(const n of s)$(n)&&n.dispose();return[]}e.disposeIfDisposable=J;function N(...s){const n=a(()=>z(s));return Q(s,n),n}e.combinedDisposable=N;function a(s){const n=p({dispose:(0,g.once)(()=>{M(n),s()})});return n}e.toDisposable=a;class w{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||(M(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{z(this._toDispose.values())}finally{this._toDispose.clear()}}add(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return k(n,this),this._isDisposed?w.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(n),n}}e.DisposableStore=w,w.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new w,p(this),k(this._store,this)}dispose(){M(this),this._store.dispose()}_register(n){if(n===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(n)}}e.Disposable=m,m.None=Object.freeze({dispose(){}});class L{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(n){this._isDisposed||n===this._value||(this._value?.dispose(),n&&k(n,this),this._value=n)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,M(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const n=this._value;return this._value=void 0,n&&k(n,null),n}}e.MutableDisposable=L;class l{constructor(n){this._disposable=n,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=l;class v{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,p(this)}set(n){let c=n;return this.unset=()=>c=void 0,this.isset=()=>c!==void 0,this.dispose=()=>{c&&(c(),c=void 0,M(this))},this}}e.SafeDisposable=v;class o{constructor(){this.references=new Map}acquire(n,...c){let E=this.references.get(n);E||(E={counter:0,object:this.createReferencedObject(n,...c)},this.references.set(n,E));const{object:O}=E,T=(0,g.once)(()=>{--E.counter==0&&(this.destroyReferencedObject(n,E.object),this.references.delete(n))});return E.counter++,{object:O,dispose:T}}}e.ReferenceCollection=o;class f{constructor(n){this.referenceCollection=n}async acquire(n,...c){const E=this.referenceCollection.acquire(n,...c);try{return{object:await E.object,dispose:()=>E.dispose()}}catch(O){throw E.dispose(),O}}}e.AsyncReferenceCollection=f;class r{constructor(n){this.object=n}dispose(){}}e.ImmortalReference=r;function d(s){const n=new w;try{s(n)}finally{n.dispose()}}e.disposeOnReturn=d}),define(X[9],x([0,1]),function(K,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class g{constructor(_){this.element=_,this.next=g.Undefined,this.prev=g.Undefined}}g.Undefined=new g(void 0);class D{constructor(){this._first=g.Undefined,this._last=g.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===g.Undefined}clear(){let _=this._first;for(;_!==g.Undefined;){const I=_.next;_.prev=g.Undefined,_.next=g.Undefined,_=I}this._first=g.Undefined,this._last=g.Undefined,this._size=0}unshift(_){return this._insert(_,!1)}push(_){return this._insert(_,!0)}_insert(_,I){const p=new g(_);if(this._first===g.Undefined)this._first=p,this._last=p;else if(I){const k=this._last;this._last=p,p.prev=k,k.next=p}else{const k=this._first;this._first=p,p.next=k,k.prev=p}this._size+=1;let M=!1;return()=>{M||(M=!0,this._remove(p))}}shift(){if(this._first!==g.Undefined){const _=this._first.element;return this._remove(this._first),_}}pop(){if(this._last!==g.Undefined){const _=this._last.element;return this._remove(this._last),_}}_remove(_){if(_.prev!==g.Undefined&&_.next!==g.Undefined){const I=_.prev;I.next=_.next,_.next.prev=I}else _.prev===g.Undefined&&_.next===g.Undefined?(this._first=g.Undefined,this._last=g.Undefined):_.next===g.Undefined?(this._last=this._last.prev,this._last.next=g.Undefined):_.prev===g.Undefined&&(this._first=this._first.next,this._first.prev=g.Undefined);this._size-=1}*[Symbol.iterator](){let _=this._first;for(;_!==g.Undefined;)yield _.element,_=_.next}}e.LinkedList=D}),define(X[10],x([0,1]),function(K,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withUndefinedAsNull=e.withNullAsUndefined=e.validateConstraint=e.validateConstraints=e.areFunctions=e.isFunction=e.isEmptyObject=e.assertAllDefined=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isStringArray=e.isString=void 0;function g(o){return typeof o=="string"}e.isString=g;function D(o){return Array.isArray(o)&&o.every(f=>g(f))}e.isStringArray=D;function F(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}e.isObject=F;function _(o){const f=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof f}e.isTypedArray=_;function I(o){return typeof o=="number"&&!isNaN(o)}e.isNumber=I;function p(o){return!!o&&typeof o[Symbol.iterator]=="function"}e.isIterable=p;function M(o){return o===!0||o===!1}e.isBoolean=M;function k(o){return typeof o=="undefined"}e.isUndefined=k;function Q(o){return!j(o)}e.isDefined=Q;function j(o){return k(o)||o===null}e.isUndefinedOrNull=j;function G(o,f){if(!o)throw new Error(f?`Unexpected type, expected '${f}'`:"Unexpected type")}e.assertType=G;function $(o){if(j(o))throw new Error("Assertion Failed: argument is undefined or null");return o}e.assertIsDefined=$;function z(...o){const f=[];for(let r=0;r<o.length;r++){const d=o[r];if(j(d))throw new Error(`Assertion Failed: argument at index ${r} is undefined or null`);f.push(d)}return f}e.assertAllDefined=z;const J=Object.prototype.hasOwnProperty;function N(o){if(!F(o))return!1;for(const f in o)if(J.call(o,f))return!1;return!0}e.isEmptyObject=N;function a(o){return typeof o=="function"}e.isFunction=a;function w(...o){return o.length>0&&o.every(a)}e.areFunctions=w;function m(o,f){const r=Math.min(o.length,f.length);for(let d=0;d<r;d++)L(o[d],f[d])}e.validateConstraints=m;function L(o,f){if(g(f)){if(typeof o!==f)throw new Error(`argument does not match constraint: typeof ${f}`)}else if(a(f)){try{if(o instanceof f)return}catch{}if(!j(o)&&o.constructor===f||f.length===1&&f.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}e.validateConstraint=L;function l(o){return o===null?void 0:o}e.withNullAsUndefined=l;function v(o){return typeof o=="undefined"?null:o}e.withUndefinedAsNull=v}),define(X[11],x([0,1,10]),function(K,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.filter=e.getCaseInsensitive=e.distinct=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function D(a){if(!a||typeof a!="object"||a instanceof RegExp)return a;const w=Array.isArray(a)?[]:{};return Object.keys(a).forEach(m=>{a[m]&&typeof a[m]=="object"?w[m]=D(a[m]):w[m]=a[m]}),w}e.deepClone=D;function F(a){if(!a||typeof a!="object")return a;const w=[a];for(;w.length>0;){const m=w.shift();Object.freeze(m);for(const L in m)if(_.call(m,L)){const l=m[L];typeof l=="object"&&!Object.isFrozen(l)&&!(0,g.isTypedArray)(l)&&w.push(l)}}return a}e.deepFreeze=F;const _=Object.prototype.hasOwnProperty;function I(a,w){return p(a,w,new Set)}e.cloneAndChange=I;function p(a,w,m){if((0,g.isUndefinedOrNull)(a))return a;const L=w(a);if(typeof L!="undefined")return L;if(Array.isArray(a)){const l=[];for(const v of a)l.push(p(v,w,m));return l}if((0,g.isObject)(a)){if(m.has(a))throw new Error("Cannot clone recursive data-structure");m.add(a);const l={};for(const v in a)_.call(a,v)&&(l[v]=p(a[v],w,m));return m.delete(a),l}return a}function M(a,w,m=!0){return(0,g.isObject)(a)?((0,g.isObject)(w)&&Object.keys(w).forEach(L=>{L in a?m&&((0,g.isObject)(a[L])&&(0,g.isObject)(w[L])?M(a[L],w[L],m):a[L]=w[L]):a[L]=w[L]}),a):w}e.mixin=M;function k(a,w){if(a===w)return!0;if(a==null||w===null||w===void 0||typeof a!=typeof w||typeof a!="object"||Array.isArray(a)!==Array.isArray(w))return!1;let m,L;if(Array.isArray(a)){if(a.length!==w.length)return!1;for(m=0;m<a.length;m++)if(!k(a[m],w[m]))return!1}else{const l=[];for(L in a)l.push(L);l.sort();const v=[];for(L in w)v.push(L);if(v.sort(),!k(l,v))return!1;for(m=0;m<l.length;m++)if(!k(a[l[m]],w[l[m]]))return!1}return!0}e.equals=k;function Q(a){const w=new Set;return JSON.stringify(a,(m,L)=>{if((0,g.isObject)(L)||Array.isArray(L)){if(w.has(L))return"[Circular]";w.add(L)}return L})}e.safeStringify=Q;function j(a,w){const m=Object.create(null);return!a||!w||Object.keys(w).forEach(l=>{const v=a[l],o=w[l];k(v,o)||(m[l]=o)}),m}e.distinct=j;function G(a,w){const m=w.toLowerCase(),L=Object.keys(a).find(l=>l.toLowerCase()===m);return L?a[L]:a[w]}e.getCaseInsensitive=G;function $(a,w){const m=Object.create(null);for(const[L,l]of Object.entries(a))w(L,l)&&(m[L]=l);return m}e.filter=$;function z(a){let w=[],m=Object.getPrototypeOf(a);for(;Object.prototype!==m;)w=w.concat(Object.getOwnPropertyNames(m)),m=Object.getPrototypeOf(m);return w}e.getAllPropertyNames=z;function J(a){const w=[];for(const m of z(a))typeof a[m]=="function"&&w.push(m);return w}e.getAllMethodNames=J;function N(a,w){const m=l=>function(){const v=Array.prototype.slice.call(arguments,0);return w(l,v)},L={};for(const l of a)L[l]=m(l);return L}e.createProxyObject=N}),define(X[12],x([17,18]),function(K,e){return K.create("vs/base/common/platform",e)}),define(X[5],x([0,1,12]),function(K,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.OperatingSystem=e.setTimeout0=e.setTimeout0IsFaster=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=void 0;const D="en";let F=!1,_=!1,I=!1,p=!1,M=!1,k=!1,Q=!1,j=!1,G=!1,$,z=D,J,N;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let a;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?a=e.globals.vscode.process:typeof process!="undefined"&&(a=process);const w=typeof a?.versions?.electron=="string",m=w&&a?.type==="renderer";if(typeof navigator=="object"&&!m){N=navigator.userAgent,F=N.indexOf("Windows")>=0,_=N.indexOf("Macintosh")>=0,j=(N.indexOf("Macintosh")>=0||N.indexOf("iPad")>=0||N.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,I=N.indexOf("Linux")>=0,k=!0,$=g.getConfiguredDefaultLocale(g.localize(0,null))||D,z=$;const c=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),E=c&&c.getAttribute("data-settings");if(E)try{const O=JSON.parse(E);$=O.locale,J=O._translationsConfigFile,z=O.availableLanguages["*"]||D}catch{}}else if(typeof a=="object"){F=a.platform==="win32",_=a.platform==="darwin",I=a.platform==="linux",p=I&&!!a.env.SNAP&&!!a.env.SNAP_REVISION,Q=w,G=!!a.env.CI||!!a.env.BUILD_ARTIFACTSTAGINGDIRECTORY,$=D,z=D;const n=a.env.VSCODE_NLS_CONFIG;if(n)try{const c=JSON.parse(n),E=c.availableLanguages["*"];$=c.locale,z=E||D,J=c._translationsConfigFile}catch{}M=!0}else console.error("Unable to resolve platform.");var L;(function(n){n[n.Web=0]="Web",n[n.Mac=1]="Mac",n[n.Linux=2]="Linux",n[n.Windows=3]="Windows"})(L=e.Platform||(e.Platform={}));function l(n){switch(n){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=l;let v=0;_?v=1:F?v=3:I&&(v=2),e.isWindows=F,e.isMacintosh=_,e.isLinux=I,e.isLinuxSnap=p,e.isNative=M,e.isElectron=Q,e.isWeb=k,e.isWebWorker=k&&typeof e.globals.importScripts=="function",e.isIOS=j,e.isCI=G,e.platform=v,e.userAgent=N,e.language=z;var o;(function(n){function c(){return e.language}n.value=c;function E(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}n.isDefaultVariant=E;function O(){return e.language==="en"}n.isDefault=O})(o=e.Language||(e.Language={})),e.locale=$,e.translationsConfigFile=J,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const n=[];e.globals.addEventListener("message",E=>{if(E.data&&E.data.vscodeScheduleAsyncWork)for(let O=0,T=n.length;O<T;O++){const y=n[O];if(y.id===E.data.vscodeScheduleAsyncWork){n.splice(O,1),y.callback();return}}});let c=0;return E=>{const O=++c;n.push({id:O,callback:E}),e.globals.postMessage({vscodeScheduleAsyncWork:O},"*")}}return n=>setTimeout(n)})();var f;(function(n){n[n.Windows=1]="Windows",n[n.Macintosh=2]="Macintosh",n[n.Linux=3]="Linux"})(f=e.OperatingSystem||(e.OperatingSystem={})),e.OS=_||j?2:F?1:3;let r=!0,d=!1;function s(){if(!d){d=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,r=new Uint16Array(n.buffer)[0]===(2<<8)+1}return r}e.isLittleEndian=s,e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(X[13],x([0,1,5]),function(K,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const D=g.globals.performance&&typeof g.globals.performance.now=="function";class F{constructor(I){this._highResolution=D&&I,this._startTime=this._now(),this._stopTime=-1}static create(I=!0){return new F(I)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?g.globals.performance.now():Date.now()}}e.StopWatch=F}),define(X[6],x([0,1,2,3,4,9,13]),function(K,e,g,D,F,_,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.EventDeliveryQueue=e.Emitter=e.setGlobalLeakWarningThreshold=e.Event=void 0;const p=!1,M=!1;var k;(function(s){s.None=()=>F.Disposable.None;function n(R){if(M){const{onListenerDidAdd:b}=R,S=z.create();let A=0;R.onListenerDidAdd=()=>{++A==2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),S.print()),b?.()}}}function c(R){return(b,S=null,A)=>{let P=!1,U;return U=R(H=>{if(!P)return U?U.dispose():P=!0,b.call(S,H)},null,A),P&&U.dispose(),U}}s.once=c;function E(R,b,S){return e1((A,P=null,U)=>R(H=>A.call(P,b(H)),null,U),S)}s.map=E;function O(R,b,S){return e1((A,P=null,U)=>R(H=>{b(H),A.call(P,H)},null,U),S)}s.forEach=O;function T(R,b,S){return e1((A,P=null,U)=>R(H=>b(H)&&A.call(P,H),null,U),S)}s.filter=T;function y(R){return R}s.signal=y;function B(...R){return(b,S=null,A)=>(0,F.combinedDisposable)(...R.map(P=>P(U=>b.call(S,U),null,A)))}s.any=B;function W(R,b,S,A){let P=S;return E(R,U=>(P=b(P,U),P),A)}s.reduce=W;function e1(R,b){let S;const A={onFirstListenerAdd(){S=R(P.fire,P)},onLastListenerRemove(){S?.dispose()}};b||n(A);const P=new N(A);return b?.add(P),P.event}function h1(R,b,S=100,A=!1,P,U){let H,Z,f1,m1=0;const b1={leakWarningThreshold:P,onFirstListenerAdd(){H=R(D1=>{m1++,Z=b(Z,D1),A&&!f1&&(u1.fire(Z),Z=void 0),clearTimeout(f1),f1=setTimeout(()=>{const O1=Z;Z=void 0,f1=void 0,(!A||m1>1)&&u1.fire(O1),m1=0},S)})},onLastListenerRemove(){H.dispose()}};U||n(b1);const u1=new N(b1);return U?.add(u1),u1.event}s.debounce=h1;function E1(R,b=(A,P)=>A===P,S){let A=!0,P;return T(R,U=>{const H=A||!b(U,P);return A=!1,P=U,H},S)}s.latch=E1;function g1(R,b,S){return[s.filter(R,b,S),s.filter(R,A=>!b(A),S)]}s.split=g1;function c1(R,b=!1,S=[]){let A=S.slice(),P=R(Z=>{A?A.push(Z):H.fire(Z)});const U=()=>{A?.forEach(Z=>H.fire(Z)),A=null},H=new N({onFirstListenerAdd(){P||(P=R(Z=>H.fire(Z)))},onFirstListenerDidAdd(){A&&(b?setTimeout(U):U())},onLastListenerRemove(){P&&P.dispose(),P=null}});return H.event}s.buffer=c1;class t1{constructor(b){this.event=b,this.disposables=new F.DisposableStore}map(b){return new t1(E(this.event,b,this.disposables))}forEach(b){return new t1(O(this.event,b,this.disposables))}filter(b){return new t1(T(this.event,b,this.disposables))}reduce(b,S){return new t1(W(this.event,b,S,this.disposables))}latch(){return new t1(E1(this.event,void 0,this.disposables))}debounce(b,S=100,A=!1,P){return new t1(h1(this.event,b,S,A,P,this.disposables))}on(b,S,A){return this.event(b,S,A)}once(b,S,A){return c(this.event)(b,S,A)}dispose(){this.disposables.dispose()}}function v1(R){return new t1(R)}s.chain=v1;function L1(R,b,S=A=>A){const A=(...Z)=>H.fire(S(...Z)),P=()=>R.on(b,A),U=()=>R.removeListener(b,A),H=new N({onFirstListenerAdd:P,onLastListenerRemove:U});return H.event}s.fromNodeEventEmitter=L1;function l1(R,b,S=A=>A){const A=(...Z)=>H.fire(S(...Z)),P=()=>R.addEventListener(b,A),U=()=>R.removeEventListener(b,A),H=new N({onFirstListenerAdd:P,onLastListenerRemove:U});return H.event}s.fromDOMEventEmitter=l1;function _1(R){return new Promise(b=>c(R)(b))}s.toPromise=_1;function w1(R,b){return b(void 0),R(S=>b(S))}s.runAndSubscribe=w1;function p1(R,b){let S=null;function A(U){S?.dispose(),S=new F.DisposableStore,b(U,S)}A(void 0);const P=R(U=>A(U));return(0,F.toDisposable)(()=>{P.dispose(),S?.dispose()})}s.runAndSubscribeWithStore=p1;class y1{constructor(b,S){this.obs=b,this._counter=0,this._hasChanged=!1;const A={onFirstListenerAdd:()=>{b.addObserver(this)},onLastListenerRemove:()=>{b.removeObserver(this)}};S||n(A),this.emitter=new N(A),S&&S.add(this.emitter)}beginUpdate(b){this._counter++}handleChange(b,S){this._hasChanged=!0}endUpdate(b){--this._counter==0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function A1(R,b){return new y1(R,b).emitter.event}s.fromObservable=A1})(k=e.Event||(e.Event={}));class Q{constructor(n){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${n}_${Q._idPool++}`}start(n){this._stopWatch=new I.StopWatch(!0),this._listenerCount=n}stop(){if(this._stopWatch){const n=this._stopWatch.elapsed();this._elapsedOverall+=n,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${n.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Q._idPool=0;let j=-1;function G(s){const n=j;return j=s,{dispose(){j=n}}}e.setGlobalLeakWarningThreshold=G;class ${constructor(n,c=Math.random().toString(18).slice(2,5)){this.customThreshold=n,this.name=c,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(n,c){let E=j;if(typeof this.customThreshold=="number"&&(E=this.customThreshold),E<=0||c<E)return;this._stacks||(this._stacks=new Map);const O=this._stacks.get(n.value)||0;if(this._stacks.set(n.value,O+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=E*.5;let T,y=0;for(const[B,W]of this._stacks)(!T||y<W)&&(T=B,y=W);console.warn(`[${this.name}] potential listener LEAK detected, having ${c} listeners already. MOST frequent listener (${y}):`),console.warn(T)}return()=>{const T=this._stacks.get(n.value)||0;this._stacks.set(n.value,T-1)}}}class z{constructor(n){this.value=n}static create(){return new z(new Error().stack??"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class J{constructor(n,c,E){this.callback=n,this.callbackThis=c,this.stack=E,this.subscription=new F.SafeDisposable}invoke(n){this.callback.call(this.callbackThis,n)}}class N{constructor(n){this._disposed=!1,this._options=n,this._leakageMon=j>0?new $(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new Q(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._listeners){if(p){const n=Array.from(this._listeners);queueMicrotask(()=>{for(const c of n)c.subscription.isset()&&(c.subscription.unset(),c.stack?.print())})}this._listeners.clear()}this._deliveryQueue?.clear(this),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose()}}get event(){return this._event||(this._event=(n,c,E)=>{this._listeners||(this._listeners=new _.LinkedList);const O=this._listeners.isEmpty();O&&this._options?.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let T,y;this._leakageMon&&this._listeners.size>=30&&(y=z.create(),T=this._leakageMon.check(y,this._listeners.size+1)),p&&(y=y??z.create());const B=new J(n,c,y),W=this._listeners.push(B);O&&this._options?.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options?.onListenerDidAdd&&this._options.onListenerDidAdd(this,n,c);const e1=B.subscription.set(()=>{T?.(),this._disposed||(W(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return E instanceof F.DisposableStore?E.add(e1):Array.isArray(E)&&E.push(e1),e1}),this._event}fire(n){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new w);for(const c of this._listeners)this._deliveryQueue.push(this,c,n);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}e.Emitter=N;class a{constructor(){this._queue=new _.LinkedList}get size(){return this._queue.size}push(n,c,E){this._queue.push(new m(n,c,E))}clear(n){const c=new _.LinkedList;for(const E of this._queue)E.emitter!==n&&c.push(E);this._queue=c}deliver(){for(;this._queue.size>0;){const n=this._queue.shift();try{n.listener.invoke(n.event)}catch(c){(0,g.onUnexpectedError)(c)}}}}e.EventDeliveryQueue=a;class w extends a{clear(n){this._queue.clear()}}class m{constructor(n,c,E){this.emitter=n,this.listener=c,this.event=E}}class L extends N{async fireAsync(n,c,E){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new _.LinkedList);for(const O of this._listeners)this._asyncDeliveryQueue.push([O,n]);for(;this._asyncDeliveryQueue.size>0&&!c.isCancellationRequested;){const[O,T]=this._asyncDeliveryQueue.shift(),y=[],B={...T,token:c,waitUntil:W=>{if(Object.isFrozen(y))throw new Error("waitUntil can NOT be called asynchronous");E&&(W=E(W,O.callback)),y.push(W)}};try{O.invoke(B)}catch(W){(0,g.onUnexpectedError)(W);continue}Object.freeze(y),await Promise.allSettled(y).then(W=>{for(const e1 of W)e1.status==="rejected"&&(0,g.onUnexpectedError)(e1.reason)})}}}}e.AsyncEmitter=L;class l extends N{constructor(n){super(n);this._isPaused=0,this._eventQueue=new _.LinkedList,this._mergeFn=n?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const n=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(n))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(n){this._listeners&&(this._isPaused!==0?this._eventQueue.push(n):super.fire(n))}}e.PauseableEmitter=l;class v extends l{constructor(n){super(n);this._delay=n.delay??100}fire(n){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(n)}}e.DebounceEmitter=v;class o extends N{constructor(n){super(n);this._queuedEvents=[],this._mergeFn=n?.merge}fire(n){this._queuedEvents.push(n),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(c=>super.fire(c)),this._queuedEvents=[]})}}e.MicrotaskEmitter=o;class f{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new N({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(n){const c={event:n,listener:null};this.events.push(c),this.hasListeners&&this.hook(c);const E=()=>{this.hasListeners&&this.unhook(c);const O=this.events.indexOf(c);this.events.splice(O,1)};return(0,F.toDisposable)((0,D.once)(E))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(n=>this.hook(n))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(n=>this.unhook(n))}hook(n){n.listener=n.event(c=>this.emitter.fire(c))}unhook(n){n.listener&&n.listener.dispose(),n.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=f;class r{constructor(){this.buffers=[]}wrapEvent(n){return(c,E,O)=>n(T=>{const y=this.buffers[this.buffers.length-1];y?y.push(()=>c.call(E,T)):c.call(E,T)},void 0,O)}bufferEvents(n){const c=[];this.buffers.push(c);const E=n();return this.buffers.pop(),c.forEach(O=>O()),E}}e.EventBufferer=r;class d{constructor(){this.listening=!1,this.inputEvent=k.None,this.inputEventListener=F.Disposable.None,this.emitter=new N({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(n){this.inputEvent=n,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=n(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=d}),define(X[14],x([0,1,6]),function(K,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const D=Object.freeze(function(p,M){const k=setTimeout(p.bind(M),0);return{dispose(){clearTimeout(k)}}});var F;(function(p){function M(k){return k===p.None||k===p.Cancelled||k instanceof _?!0:!k||typeof k!="object"?!1:typeof k.isCancellationRequested=="boolean"&&typeof k.onCancellationRequested=="function"}p.isCancellationToken=M,p.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:g.Event.None}),p.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:D})})(F=e.CancellationToken||(e.CancellationToken={}));class _{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?D:(this._emitter||(this._emitter=new g.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class I{constructor(M){this._token=void 0,this._parentListener=void 0,this._parentListener=M&&M.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new _),this._token}cancel(){this._token?this._token instanceof _&&this._token.cancel():this._token=F.Cancelled}dispose(M=!1){M&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof _&&this._token.dispose():this._token=F.None}}e.CancellationTokenSource=I}),define(X[15],x([0,1,14]),function(K,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class D{constructor(p){this.task=p,this.result=null}get(){if(this.result)return this.result;const p=new g.CancellationTokenSource,M=this.task(p.token);return this.result={promise:M,dispose:()=>{this.result=null,p.cancel(),p.dispose()}},this.result}}e.Cache=D;class F{constructor(p){this.fn=p,this.lastCache=void 0,this.lastArgKey=void 0}get(p){const M=JSON.stringify(p);return this.lastArgKey!==M&&(this.lastArgKey=M,this.lastCache=this.fn(p)),this.lastCache}}e.LRUCachedFunction=F;class _{constructor(p){this.fn=p,this._map=new Map}get cachedValues(){return this._map}get(p){if(this._map.has(p))return this._map.get(p);const M=this.fn(p);return this._map.set(p,M),M}}e.CachedFunction=_}),define(X[16],x([0,1,15,8]),function(K,e,g,D){"use strict";var F;Object.defineProperty(e,"__esModule",{value:!0}),e.InvisibleCharacters=e.AmbiguousCharacters=e.noBreakWhitespace=e.getLeftDeleteOffset=e.GraphemeBreakType=e.getGraphemeBreakType=e.singleLetterHash=e.getNLines=e.uppercaseFirstLetter=e.containsUppercaseCharacter=e.fuzzyContains=e.stripUTF8BOM=e.startsWithUTF8BOM=e.UTF8_BOM_CHARACTER=e.removeAnsiEscapeCodes=e.lcut=e.isEmojiImprecise=e.isFullWidthCharacter=e.containsUnusualLineTerminators=e.UNUSUAL_LINE_TERMINATORS=e.isBasicASCII=e.containsRTL=e.getCharContainingOffset=e.prevCharLength=e.nextCharLength=e.GraphemeIterator=e.CodePointIterator=e.getNextCodePoint=e.computeCodePoint=e.isLowSurrogate=e.isHighSurrogate=e.commonSuffixLength=e.commonPrefixLength=e.startsWithIgnoreCase=e.equalsIgnoreCase=e.isUpperAsciiLetter=e.isLowerAsciiLetter=e.isAsciiDigit=e.compareSubstringIgnoreCase=e.compareIgnoreCase=e.compareSubstring=e.compare=e.replaceAsync=e.lastNonWhitespaceIndex=e.getLeadingWhitespace=e.firstNonWhitespaceIndex=e.splitLines=e.regExpFlags=e.regExpContainsBackreference=e.regExpLeadsToEndlessLoop=e.createRegExp=e.stripWildcards=e.convertSimple2RegExpPattern=e.rtrim=e.ltrim=e.trim=e.truncate=e.count=e.escapeRegExpCharacters=e.escape=e.format2=e.format=e.isFalsyOrWhitespace=void 0;function _(t){return!t||typeof t!="string"?!0:t.trim().length===0}e.isFalsyOrWhitespace=_;const I=/{(\d+)}/g;function p(t,...i){return i.length===0?t:t.replace(I,function(u,h){const C=parseInt(h,10);return isNaN(C)||C<0||C>=i.length?u:i[C]})}e.format=p;const M=/{([^}]+)}/g;function k(t,i){return t.replace(M,(u,h)=>i[h]??u)}e.format2=k;function Q(t){return t.replace(/[<>&]/g,function(i){switch(i){case"<":return"<";case">":return">";case"&":return"&";default:return i}})}e.escape=Q;function j(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=j;function G(t,i){let u=0;const h=i.charCodeAt(0);for(let C=t.length-1;C>=0;C--)t.charCodeAt(C)===h&&u++;return u}e.count=G;function $(t,i,u="\u2026"){return t.length<=i?t:`${t.substr(0,i)}${u}`}e.truncate=$;function z(t,i=" "){const u=J(t,i);return N(u,i)}e.trim=z;function J(t,i){if(!t||!i)return t;const u=i.length;if(u===0||t.length===0)return t;let h=0;for(;t.indexOf(i,h)===h;)h=h+u;return t.substring(h)}e.ltrim=J;function N(t,i){if(!t||!i)return t;const u=i.length,h=t.length;if(u===0||h===0)return t;let C=h,q=-1;for(;q=t.lastIndexOf(i,C-1),!(q===-1||q+u!==C);){if(q===0)return"";C=q}return t.substring(0,C)}e.rtrim=N;function a(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=a;function w(t){return t.replace(/\*/g,"")}e.stripWildcards=w;function m(t,i,u={}){if(!t)throw new Error("Cannot create regex from empty string");i||(t=j(t)),u.wholeWord&&(/\B/.test(t.charAt(0))||(t="\\b"+t),/\B/.test(t.charAt(t.length-1))||(t=t+"\\b"));let h="";return u.global&&(h+="g"),u.matchCase||(h+="i"),u.multiline&&(h+="m"),u.unicode&&(h+="u"),new RegExp(t,h)}e.createRegExp=m;function L(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}e.regExpLeadsToEndlessLoop=L;function l(t){return!!t.match(/([^\\]|^)(\\\\)*\\\d+/)}e.regExpContainsBackreference=l;function v(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")}e.regExpFlags=v;function o(t){return t.split(/\r\n|\r|\n/)}e.splitLines=o;function f(t){for(let i=0,u=t.length;i<u;i++){const h=t.charCodeAt(i);if(h!==32&&h!==9)return i}return-1}e.firstNonWhitespaceIndex=f;function r(t,i=0,u=t.length){for(let h=i;h<u;h++){const C=t.charCodeAt(h);if(C!==32&&C!==9)return t.substring(i,h)}return t.substring(i,u)}e.getLeadingWhitespace=r;function d(t,i=t.length-1){for(let u=i;u>=0;u--){const h=t.charCodeAt(u);if(h!==32&&h!==9)return u}return-1}e.lastNonWhitespaceIndex=d;function s(t,i,u){const h=[];let C=0;for(const q of t.matchAll(i)){if(h.push(t.slice(C,q.index)),q.index===void 0)throw new Error("match.index should be defined");C=q.index+q[0].length,h.push(u(q[0],...q.slice(1),q.index,t,q.groups))}return h.push(t.slice(C)),Promise.all(h).then(q=>q.join(""))}e.replaceAsync=s;function n(t,i){return t<i?-1:t>i?1:0}e.compare=n;function c(t,i,u=0,h=t.length,C=0,q=i.length){for(;u<h&&C<q;u++,C++){const s1=t.charCodeAt(u),V=i.charCodeAt(C);if(s1<V)return-1;if(s1>V)return 1}const Y=h-u,a1=q-C;return Y<a1?-1:Y>a1?1:0}e.compareSubstring=c;function E(t,i){return O(t,i,0,t.length,0,i.length)}e.compareIgnoreCase=E;function O(t,i,u=0,h=t.length,C=0,q=i.length){for(;u<h&&C<q;u++,C++){let s1=t.charCodeAt(u),V=i.charCodeAt(C);if(s1===V)continue;if(s1>=128||V>=128)return c(t.toLowerCase(),i.toLowerCase(),u,h,C,q);y(s1)&&(s1-=32),y(V)&&(V-=32);const n1=s1-V;if(n1!==0)return n1}const Y=h-u,a1=q-C;return Y<a1?-1:Y>a1?1:0}e.compareSubstringIgnoreCase=O;function T(t){return t>=48&&t<=57}e.isAsciiDigit=T;function y(t){return t>=97&&t<=122}e.isLowerAsciiLetter=y;function B(t){return t>=65&&t<=90}e.isUpperAsciiLetter=B;function W(t,i){return t.length===i.length&&O(t,i)===0}e.equalsIgnoreCase=W;function e1(t,i){const u=i.length;return i.length>t.length?!1:O(t,i,0,u)===0}e.startsWithIgnoreCase=e1;function h1(t,i){const u=Math.min(t.length,i.length);let h;for(h=0;h<u;h++)if(t.charCodeAt(h)!==i.charCodeAt(h))return h;return u}e.commonPrefixLength=h1;function E1(t,i){const u=Math.min(t.length,i.length);let h;const C=t.length-1,q=i.length-1;for(h=0;h<u;h++)if(t.charCodeAt(C-h)!==i.charCodeAt(q-h))return h;return u}e.commonSuffixLength=E1;function g1(t){return 55296<=t&&t<=56319}e.isHighSurrogate=g1;function c1(t){return 56320<=t&&t<=57343}e.isLowSurrogate=c1;function t1(t,i){return(t-55296<<10)+(i-56320)+65536}e.computeCodePoint=t1;function v1(t,i,u){const h=t.charCodeAt(u);if(g1(h)&&u+1<i){const C=t.charCodeAt(u+1);if(c1(C))return t1(h,C)}return h}e.getNextCodePoint=v1;function L1(t,i){const u=t.charCodeAt(i-1);if(c1(u)&&i>1){const h=t.charCodeAt(i-2);if(g1(h))return t1(h,u)}return u}class l1{constructor(i,u=0){this._str=i,this._len=i.length,this._offset=u}get offset(){return this._offset}setOffset(i){this._offset=i}prevCodePoint(){const i=L1(this._str,this._offset);return this._offset-=i>=65536?2:1,i}nextCodePoint(){const i=v1(this._str,this._len,this._offset);return this._offset+=i>=65536?2:1,i}eol(){return this._offset>=this._len}}e.CodePointIterator=l1;class _1{constructor(i,u=0){this._iterator=new l1(i,u)}get offset(){return this._iterator.offset}nextGraphemeLength(){const i=o1.getInstance(),u=this._iterator,h=u.offset;let C=i.getGraphemeBreakType(u.nextCodePoint());for(;!u.eol();){const q=u.offset,Y=i.getGraphemeBreakType(u.nextCodePoint());if(F1(C,Y)){u.setOffset(q);break}C=Y}return u.offset-h}prevGraphemeLength(){const i=o1.getInstance(),u=this._iterator,h=u.offset;let C=i.getGraphemeBreakType(u.prevCodePoint());for(;u.offset>0;){const q=u.offset,Y=i.getGraphemeBreakType(u.prevCodePoint());if(F1(Y,C)){u.setOffset(q);break}C=Y}return h-u.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=_1;function w1(t,i){return new _1(t,i).nextGraphemeLength()}e.nextCharLength=w1;function p1(t,i){return new _1(t,i).prevGraphemeLength()}e.prevCharLength=p1;function y1(t,i){i>0&&c1(t.charCodeAt(i))&&i--;const u=i+w1(t,i);return[u-p1(t,u),u]}e.getCharContainingOffset=y1;const A1=/(?:[\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 R(t){return A1.test(t)}e.containsRTL=R;const b=/^[\t\n\r\x20-\x7E]*$/;function S(t){return b.test(t)}e.isBasicASCII=S,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function A(t){return e.UNUSUAL_LINE_TERMINATORS.test(t)}e.containsUnusualLineTerminators=A;function P(t){return t>=11904&&t<=55215||t>=63744&&t<=64255||t>=65281&&t<=65374}e.isFullWidthCharacter=P;function U(t){return t>=127462&&t<=127487||t===8986||t===8987||t===9200||t===9203||t>=9728&&t<=10175||t===11088||t===11093||t>=127744&&t<=128591||t>=128640&&t<=128764||t>=128992&&t<=129008||t>=129280&&t<=129535||t>=129648&&t<=129782}e.isEmojiImprecise=U;function H(t,i){if(t.length<i)return t;const u=/\b/g;let h=0;for(;u.test(t)&&!(t.length-u.lastIndex<i);)h=u.lastIndex,u.lastIndex+=1;return t.substring(h).replace(/^\s/,"")}e.lcut=H;const Z=/\x1B\x5B[12]?K/g,f1=/\x1b\[\d+m/g,m1=/\x1b\[0?m/g;function b1(t){return t&&(t=t.replace(Z,""),t=t.replace(f1,""),t=t.replace(m1,"")),t}e.removeAnsiEscapeCodes=b1,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function u1(t){return!!(t&&t.length>0&&t.charCodeAt(0)===65279)}e.startsWithUTF8BOM=u1;function D1(t){return u1(t)?t.substr(1):t}e.stripUTF8BOM=D1;function O1(t,i){if(!t||!i||t.length<i.length)return!1;const u=i.length,h=t.toLowerCase();let C=0,q=-1;for(;C<u;){const Y=h.indexOf(i[C],q+1);if(Y<0)return!1;q=Y,C++}return!0}e.fuzzyContains=O1;function R1(t,i=!1){return t?(i&&(t=t.replace(/\\./g,"")),t.toLowerCase()!==t):!1}e.containsUppercaseCharacter=R1;function M1(t){return t.charAt(0).toUpperCase()+t.slice(1)}e.uppercaseFirstLetter=M1;function k1(t,i=1){if(i===0)return"";let u=-1;do u=t.indexOf(`
`,u+1),i--;while(i>0&&u>=0);return u===-1?t:(t[u-1]==="\r"&&u--,t.substr(0,u))}e.getNLines=k1;function P1(t){const i=90-65+1;return t=t%(2*i),t<i?String.fromCharCode(97+t):String.fromCharCode(65+t-i)}e.singleLetterHash=P1;function q1(t){return o1.getInstance().getGraphemeBreakType(t)}e.getGraphemeBreakType=q1;function F1(t,i){return t===0?i!==5&&i!==7:t===2&&i===3?!1:t===4||t===2||t===3||i===4||i===2||i===3?!0:!(t===8&&(i===8||i===9||i===11||i===12)||(t===11||t===9)&&(i===9||i===10)||(t===12||t===10)&&i===10||i===5||i===13||i===7||t===1||t===13&&i===14||t===6&&i===6)}var N1;(function(t){t[t.Other=0]="Other",t[t.Prepend=1]="Prepend",t[t.CR=2]="CR",t[t.LF=3]="LF",t[t.Control=4]="Control",t[t.Extend=5]="Extend",t[t.Regional_Indicator=6]="Regional_Indicator",t[t.SpacingMark=7]="SpacingMark",t[t.L=8]="L",t[t.V=9]="V",t[t.T=10]="T",t[t.LV=11]="LV",t[t.LVT=12]="LVT",t[t.ZWJ=13]="ZWJ",t[t.Extended_Pictographic=14]="Extended_Pictographic"})(N1=e.GraphemeBreakType||(e.GraphemeBreakType={}));class o1{constructor(){this._data=U1()}static getInstance(){return o1._INSTANCE||(o1._INSTANCE=new o1),o1._INSTANCE}getGraphemeBreakType(i){if(i<32)return i===10?3:i===13?2:4;if(i<127)return 0;const u=this._data,h=u.length/3;let C=1;for(;C<=h;)if(i<u[3*C])C=2*C;else if(i>u[3*C+1])C=2*C+1;else return u[3*C+2];return 0}}o1._INSTANCE=null;function U1(){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,1281