UNPKG

code-server

Version:

Run VS Code on a remote server.

24 lines (16 loc) • 321 kB
"use strict";/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/var Ui=function(t,e){return Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(i[r]=s[r])},Ui(t,e)};export function __extends(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ui(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}export var __assign=function(){return __assign=Object.assign||function(e){for(var i,s=1,r=arguments.length;s<r;s++){i=arguments[s];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},__assign.apply(this,arguments)};export function __rest(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]]);return i}export function __decorate(t,e,i,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,i):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n}export function __param(t,e){return function(i,s){e(i,s,t)}}export function __esDecorate(t,e,i,s,r,n){function o(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var a=s.kind,c=a==="getter"?"get":a==="setter"?"set":"value",h=!e&&t?s.static?t:t.prototype:null,u=e||(h?Object.getOwnPropertyDescriptor(h,s.name):{}),l,f=!1,d=i.length-1;d>=0;d--){var p={};for(var b in s)p[b]=b==="access"?{}:s[b];for(var b in s.access)p.access[b]=s.access[b];p.addInitializer=function(v){if(f)throw new TypeError("Cannot add initializers after decoration has completed");n.push(o(v||null))};var m=(0,i[d])(a==="accessor"?{get:u.get,set:u.set}:u[c],p);if(a==="accessor"){if(m===void 0)continue;if(m===null||typeof m!="object")throw new TypeError("Object expected");(l=o(m.get))&&(u.get=l),(l=o(m.set))&&(u.set=l),(l=o(m.init))&&r.unshift(l)}else(l=o(m))&&(a==="field"?r.unshift(l):u[c]=l)}h&&Object.defineProperty(h,s.name,u),f=!0}export function __runInitializers(t,e,i){for(var s=arguments.length>2,r=0;r<e.length;r++)i=s?e[r].call(t,i):e[r].call(t);return s?i:void 0}export function __propKey(t){return typeof t=="symbol"?t:"".concat(t)}export function __setFunctionName(t,e,i){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:i?"".concat(i," ",e):e})}export function __metadata(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}export function __awaiter(t,e,i,s){function r(n){return n instanceof i?n:new i(function(o){o(n)})}return new(i||(i=Promise))(function(n,o){function a(u){try{h(s.next(u))}catch(l){o(l)}}function c(u){try{h(s.throw(u))}catch(l){o(l)}}function h(u){u.done?n(u.value):r(u.value).then(a,c)}h((s=s.apply(t,e||[])).next())})}export function __generator(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,r,n,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(h){return function(u){return c([h,u])}}function c(h){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,h[0]&&(i=0)),i;)try{if(s=1,r&&(n=h[0]&2?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[h[0]&2,n.value]),h[0]){case 0:case 1:n=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,r=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(n=i.trys,!(n=n.length>0&&n[n.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!n||h[1]>n[0]&&h[1]<n[3])){i.label=h[1];break}if(h[0]===6&&i.label<n[1]){i.label=n[1],n=h;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(h);break}n[2]&&i.ops.pop(),i.trys.pop();continue}h=e.call(t,i)}catch(u){h=[6,u],r=0}finally{s=n=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}export var __createBinding=Object.create?function(t,e,i,s){s===void 0&&(s=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,s,r)}:function(t,e,i,s){s===void 0&&(s=i),t[s]=e[i]};export function __exportStar(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&__createBinding(e,t,i)}export function __values(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],s=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&s>=t.length&&(t=void 0),{value:t&&t[s++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}export function __read(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var s=i.call(t),r,n=[],o;try{for(;(e===void 0||e-- >0)&&!(r=s.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return n}export function __spread(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(__read(arguments[e]));return t}export function __spreadArrays(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var s=Array(t),r=0,e=0;e<i;e++)for(var n=arguments[e],o=0,a=n.length;o<a;o++,r++)s[r]=n[o];return s}export function __spreadArray(t,e,i){if(i||arguments.length===2)for(var s=0,r=e.length,n;s<r;s++)(n||!(s in e))&&(n||(n=Array.prototype.slice.call(e,0,s)),n[s]=e[s]);return t.concat(n||Array.prototype.slice.call(e))}export function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}export function __asyncGenerator(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(t,e||[]),r,n=[];return r={},a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(d){return function(p){return Promise.resolve(p).then(d,l)}}function a(d,p){s[d]&&(r[d]=function(b){return new Promise(function(m,v){n.push([d,b,m,v])>1||c(d,b)})},p&&(r[d]=p(r[d])))}function c(d,p){try{h(s[d](p))}catch(b){f(n[0][3],b)}}function h(d){d.value instanceof __await?Promise.resolve(d.value.v).then(u,l):f(n[0][2],d)}function u(d){c("next",d)}function l(d){c("throw",d)}function f(d,p){d(p),n.shift(),n.length&&c(n[0][0],n[0][1])}}export function __asyncDelegator(t){var e,i;return e={},s("next"),s("throw",function(r){throw r}),s("return"),e[Symbol.iterator]=function(){return this},e;function s(r,n){e[r]=t[r]?function(o){return(i=!i)?{value:__await(t[r](o)),done:!1}:n?n(o):o}:n}}export function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(n){i[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),r(a,c,o.done,o.value)})}}function r(n,o,a,c){Promise.resolve(c).then(function(h){n({value:h,done:a})},o)}}export function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var fo=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};export function __importStar(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i in t)i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)&&__createBinding(e,t,i);return fo(e,t),e}export function __importDefault(t){return t&&t.__esModule?t:{default:t}}export function __classPrivateFieldGet(t,e,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(t):s?s.value:e.get(t)}export function __classPrivateFieldSet(t,e,i,s,r){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?r.call(t,i):r?r.value=i:e.set(t,i),i}export function __classPrivateFieldIn(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}export function __addDisposableResource(t,e,i){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var s,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");s=e[Symbol.asyncDispose]}if(s===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");s=e[Symbol.dispose],i&&(r=s)}if(typeof s!="function")throw new TypeError("Object not disposable.");r&&(s=function(){try{r.call(this)}catch(n){return Promise.reject(n)}}),t.stack.push({value:e,dispose:s,async:i})}else i&&t.stack.push({async:!0});return e}var po=typeof SuppressedError=="function"?SuppressedError:function(t,e,i){var s=new Error(i);return s.name="SuppressedError",s.error=t,s.suppressed=e,s};export function __disposeResources(t){function e(s){t.error=t.hasError?new po(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}function i(){for(;t.stack.length;){var s=t.stack.pop();try{var r=s.dispose&&s.dispose.call(s.value);if(s.async)return Promise.resolve(r).then(i,function(n){return e(n),i()})}catch(n){e(n)}}if(t.hasError)throw t.error}return i()}export default{__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};var mo=Object.create,Hs=Object.defineProperty,go=Object.getOwnPropertyDescriptor,Vs=Object.getOwnPropertyNames,vo=Object.getPrototypeOf,wo=Object.prototype.hasOwnProperty,yo=(t,e)=>function(){return e||(0,t[Vs(t)[0]])((e={exports:{}}).exports,e),e.exports},bo=(t,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Vs(e))!wo.call(t,r)&&r!==i&&Hs(t,r,{get:()=>e[r],enumerable:!(s=go(e,r))||s.enumerable});return t},Co=(t,e,i)=>(i=t!=null?mo(vo(t)):{},bo(e||!t||!t.__esModule?Hs(i,"default",{value:t,enumerable:!0}):i,t)),Eo=yo({"node_modules/minimist/index.js"(t,e){"use strict";function i(n,o){var a=n;o.slice(0,-1).forEach(function(h){a=a[h]||{}});var c=o[o.length-1];return c in a}function s(n){return typeof n=="number"||/^0x[0-9a-f]+$/i.test(n)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n)}function r(n,o){return o==="constructor"&&typeof n[o]=="function"||o==="__proto__"}e.exports=function(n,o){o||(o={});var a={bools:{},strings:{},unknownFn:null};typeof o.unknown=="function"&&(a.unknownFn=o.unknown),typeof o.boolean=="boolean"&&o.boolean?a.allBools=!0:[].concat(o.boolean).filter(Boolean).forEach(function(P){a.bools[P]=!0});var c={};function h(P){return c[P].some(function(Z){return a.bools[Z]})}Object.keys(o.alias||{}).forEach(function(P){c[P]=[].concat(o.alias[P]),c[P].forEach(function(Z){c[Z]=[P].concat(c[P].filter(function(wt){return Z!==wt}))})}),[].concat(o.string).filter(Boolean).forEach(function(P){a.strings[P]=!0,c[P]&&[].concat(c[P]).forEach(function(Z){a.strings[Z]=!0})});var u=o.default||{},l={_:[]};function f(P,Z){return a.allBools&&/^--[^=]+$/.test(Z)||a.strings[P]||a.bools[P]||c[P]}function d(P,Z,wt){for(var z=P,zt=0;zt<Z.length-1;zt++){var y=Z[zt];if(r(z,y))return;z[y]===void 0&&(z[y]={}),(z[y]===Object.prototype||z[y]===Number.prototype||z[y]===String.prototype)&&(z[y]={}),z[y]===Array.prototype&&(z[y]=[]),z=z[y]}var g=Z[Z.length-1];r(z,g)||((z===Object.prototype||z===Number.prototype||z===String.prototype)&&(z={}),z===Array.prototype&&(z=[]),z[g]===void 0||a.bools[g]||typeof z[g]=="boolean"?z[g]=wt:Array.isArray(z[g])?z[g].push(wt):z[g]=[z[g],wt])}function p(P,Z,wt){if(!(wt&&a.unknownFn&&!f(P,wt)&&a.unknownFn(wt)===!1)){var z=!a.strings[P]&&s(Z)?Number(Z):Z;d(l,P.split("."),z),(c[P]||[]).forEach(function(zt){d(l,zt.split("."),z)})}}Object.keys(a.bools).forEach(function(P){p(P,u[P]===void 0?!1:u[P])});var b=[];n.indexOf("--")!==-1&&(b=n.slice(n.indexOf("--")+1),n=n.slice(0,n.indexOf("--")));for(var m=0;m<n.length;m++){var v=n[m],I,F;if(/^--.+=/.test(v)){var ee=v.match(/^--([^=]+)=([\s\S]*)$/);I=ee[1];var S=ee[2];a.bools[I]&&(S=S!=="false"),p(I,S,v)}else if(/^--no-.+/.test(v))I=v.match(/^--no-(.+)/)[1],p(I,!1,v);else if(/^--.+/.test(v))I=v.match(/^--(.+)/)[1],F=n[m+1],F!==void 0&&!/^(-|--)[^-]/.test(F)&&!a.bools[I]&&!a.allBools&&(!c[I]||!h(I))?(p(I,F,v),m+=1):/^(true|false)$/.test(F)?(p(I,F==="true",v),m+=1):p(I,a.strings[I]?"":!0,v);else if(/^-[^-]+/.test(v)){for(var L=v.slice(1,-1).split(""),N=!1,q=0;q<L.length;q++){if(F=v.slice(q+2),F==="-"){p(L[q],F,v);continue}if(/[A-Za-z]/.test(L[q])&&F[0]==="="){p(L[q],F.slice(1),v),N=!0;break}if(/[A-Za-z]/.test(L[q])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(F)){p(L[q],F,v),N=!0;break}if(L[q+1]&&L[q+1].match(/\W/)){p(L[q],v.slice(q+2),v),N=!0;break}else p(L[q],a.strings[L[q]]?"":!0,v)}I=v.slice(-1)[0],!N&&I!=="-"&&(n[m+1]&&!/^(-|--)[^-]/.test(n[m+1])&&!a.bools[I]&&(!c[I]||!h(I))?(p(I,n[m+1],v),m+=1):n[m+1]&&/^(true|false)$/.test(n[m+1])?(p(I,n[m+1]==="true",v),m+=1):p(I,a.strings[I]?"":!0,v))}else if((!a.unknownFn||a.unknownFn(v)!==!1)&&l._.push(a.strings._||!s(v)?v:Number(v)),o.stopEarly){l._.push.apply(l._,n.slice(m+1));break}}return Object.keys(u).forEach(function(P){i(l,P.split("."))||(d(l,P.split("."),u[P]),(c[P]||[]).forEach(function(Z){d(l,Z.split("."),u[P])}))}),o["--"]?l["--"]=b.slice():b.forEach(function(P){l._.push(P)}),l}}}),se=class{constructor(t){this.d=t,this.a=!1}get hasValue(){return this.a}get value(){if(!this.a)try{this.b=this.d()}catch(t){this.c=t}finally{this.a=!0}if(this.c)throw this.c;return this.b}get rawValue(){return this.b}},xo=class{constructor(){this.b=[],this.a=function(t){setTimeout(()=>{throw t.stack?re.isErrorNoTelemetry(t)?new re(t.message+` `+t.stack):new Error(t.message+` `+t.stack):t},0)}}addListener(t){return this.b.push(t),()=>{this.d(t)}}c(t){this.b.forEach(e=>{e(t)})}d(t){this.b.splice(this.b.indexOf(t),1)}setUnexpectedErrorHandler(t){this.a=t}getUnexpectedErrorHandler(){return this.a}onUnexpectedError(t){this.a(t),this.c(t)}onUnexpectedExternalError(t){this.a(t)}},So=new xo;function si(t){ko(t)||So.onUnexpectedError(t)}var ji="Canceled";function ko(t){return t instanceof _t?!0:t instanceof Error&&t.name===ji&&t.message===ji}var _t=class extends Error{constructor(){super(ji),this.name=this.message}};function Lo(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}var re=class Bs extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Bs)return e;const i=new Bs;return i.message=e.message,i.stack=e.stack,i}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}};function Do(t,e,i=0,s=t.length){let r=i,n=s;for(;r<n;){const o=Math.floor((r+n)/2);e(t[o])?r=o+1:n=o}return r-1}var fu=class W1{static{this.assertInvariants=!1}constructor(e){this.e=e,this.c=0}findLastMonotonous(e){if(W1.assertInvariants){if(this.d){for(const s of this.e)if(this.d(s)&&!e(s))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this.d=e}const i=Do(this.e,e,this.c);return this.c=i+1,i===-1?void 0:this.e[i]}};function Po(t){return t.filter(e=>!!e)}function qs(t,e){let i;if(typeof e=="number"){let s=e;i=()=>{const r=Math.sin(s++)*179426549;return r-Math.floor(r)}}else i=Math.random;for(let s=t.length-1;s>0;s-=1){const r=Math.floor(i()*(s+1)),n=t[s];t[s]=t[r],t[r]=n}}function $o(t){return t[Math.floor(Math.random()*t.length)]}var Wi;(function(t){function e(n){return n<0}t.isLessThan=e;function i(n){return n<=0}t.isLessThanOrEqual=i;function s(n){return n>0}t.isGreaterThan=s;function r(n){return n===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Wi||(Wi={}));function Ao(t,e){return(i,s)=>e(t(i),t(s))}var Mo=(t,e)=>t-e,du=class Ri{static{this.empty=new Ri(e=>{})}constructor(e){this.iterate=e}forEach(e){this.iterate(i=>(e(i),!0))}toArray(){const e=[];return this.iterate(i=>(e.push(i),!0)),e}filter(e){return new Ri(i=>this.iterate(s=>e(s)?i(s):!0))}map(e){return new Ri(i=>this.iterate(s=>i(e(s))))}some(e){let i=!1;return this.iterate(s=>(i=e(s),!i)),i}findFirst(e){let i;return this.iterate(s=>e(s)?(i=s,!1):!0),i}findLast(e){let i;return this.iterate(s=>(e(s)&&(i=s),!0)),i}findLastMaxBy(e){let i,s=!0;return this.iterate(r=>((s||Wi.isGreaterThan(e(r,i)))&&(s=!1,i=r),!0)),i}},Xs;function Io(t,e){const i=Object.create(null);for(const s of t){const r=e(s);let n=i[r];n||(n=i[r]=[]),n.push(s)}return i}var pu=class{static{Xs=Symbol.toStringTag}constructor(t,e){this.b=e,this.a=new Map,this[Xs]="SetWithKey";for(const i of t)this.add(i)}get size(){return this.a.size}add(t){const e=this.b(t);return this.a.set(e,t),this}delete(t){return this.a.delete(this.b(t))}has(t){return this.a.has(this.b(t))}*entries(){for(const t of this.a.values())yield[t,t]}keys(){return this.values()}*values(){for(const t of this.a.values())yield t}clear(){this.a.clear()}forEach(t,e){this.a.forEach(i=>t.call(e,i,i,this))}[Symbol.iterator](){return this.values()}},Gs,Ys,Js,Oo=class{constructor(t,e){this.uri=t,this.value=e}};function Ro(t){return Array.isArray(t)}var zi=class Ye{static{this.c=e=>e.toString()}constructor(e,i){if(this[Gs]="ResourceMap",e instanceof Ye)this.d=new Map(e.d),this.e=i??Ye.c;else if(Ro(e)){this.d=new Map,this.e=i??Ye.c;for(const[s,r]of e)this.set(s,r)}else this.d=new Map,this.e=e??Ye.c}set(e,i){return this.d.set(this.e(e),new Oo(e,i)),this}get(e){return this.d.get(this.e(e))?.value}has(e){return this.d.has(this.e(e))}get size(){return this.d.size}clear(){this.d.clear()}delete(e){return this.d.delete(this.e(e))}forEach(e,i){typeof i<"u"&&(e=e.bind(i));for(const[s,r]of this.d)e(r.value,r.uri,this)}*values(){for(const e of this.d.values())yield e.value}*keys(){for(const e of this.d.values())yield e.uri}*entries(){for(const e of this.d.values())yield[e.uri,e.value]}*[(Gs=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.d)yield[e.uri,e.value]}},mu=class{constructor(t,e){this[Ys]="ResourceSet",!t||typeof t=="function"?this.c=new zi(t):(this.c=new zi(e),t.forEach(this.add,this))}get size(){return this.c.size}add(t){return this.c.set(t,t),this}clear(){this.c.clear()}delete(t){return this.c.delete(t)}forEach(t,e){this.c.forEach((i,s)=>t.call(e,s,s,this))}has(t){return this.c.has(t)}entries(){return this.c.entries()}keys(){return this.c.keys()}values(){return this.c.keys()}[(Ys=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},Zs;(function(t){t[t.None=0]="None",t[t.AsOld=1]="AsOld",t[t.AsNew=2]="AsNew"})(Zs||(Zs={}));var _o=class{constructor(){this[Js]="LinkedMap",this.c=new Map,this.d=void 0,this.e=void 0,this.f=0,this.g=0}clear(){this.c.clear(),this.d=void 0,this.e=void 0,this.f=0,this.g++}isEmpty(){return!this.d&&!this.e}get size(){return this.f}get first(){return this.d?.value}get last(){return this.e?.value}has(t){return this.c.has(t)}get(t,e=0){const i=this.c.get(t);if(i)return e!==0&&this.n(i,e),i.value}set(t,e,i=0){let s=this.c.get(t);if(s)s.value=e,i!==0&&this.n(s,i);else{switch(s={key:t,value:e,next:void 0,previous:void 0},i){case 0:this.l(s);break;case 1:this.k(s);break;case 2:this.l(s);break;default:this.l(s);break}this.c.set(t,s),this.f++}return this}delete(t){return!!this.remove(t)}remove(t){const e=this.c.get(t);if(e)return this.c.delete(t),this.m(e),this.f--,e.value}shift(){if(!this.d&&!this.e)return;if(!this.d||!this.e)throw new Error("Invalid list");const t=this.d;return this.c.delete(t.key),this.m(t),this.f--,t.value}forEach(t,e){const i=this.g;let s=this.d;for(;s;){if(e?t.bind(e)(s.value,s.key,this):t(s.value,s.key,this),this.g!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const t=this,e=this.g;let i=this.d;const s={[Symbol.iterator](){return s},next(){if(t.g!==e)throw new Error("LinkedMap got modified during iteration.");if(i){const r={value:i.key,done:!1};return i=i.next,r}else return{value:void 0,done:!0}}};return s}values(){const t=this,e=this.g;let i=this.d;const s={[Symbol.iterator](){return s},next(){if(t.g!==e)throw new Error("LinkedMap got modified during iteration.");if(i){const r={value:i.value,done:!1};return i=i.next,r}else return{value:void 0,done:!0}}};return s}entries(){const t=this,e=this.g;let i=this.d;const s={[Symbol.iterator](){return s},next(){if(t.g!==e)throw new Error("LinkedMap got modified during iteration.");if(i){const r={value:[i.key,i.value],done:!1};return i=i.next,r}else return{value:void 0,done:!0}}};return s}[(Js=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}h(t){if(t>=this.size)return;if(t===0){this.clear();return}let e=this.d,i=this.size;for(;e&&i>t;)this.c.delete(e.key),e=e.next,i--;this.d=e,this.f=i,e&&(e.previous=void 0),this.g++}j(t){if(t>=this.size)return;if(t===0){this.clear();return}let e=this.e,i=this.size;for(;e&&i>t;)this.c.delete(e.key),e=e.previous,i--;this.e=e,this.f=i,e&&(e.next=void 0),this.g++}k(t){if(!this.d&&!this.e)this.e=t;else if(this.d)t.next=this.d,this.d.previous=t;else throw new Error("Invalid list");this.d=t,this.g++}l(t){if(!this.d&&!this.e)this.d=t;else if(this.e)t.previous=this.e,this.e.next=t;else throw new Error("Invalid list");this.e=t,this.g++}m(t){if(t===this.d&&t===this.e)this.d=void 0,this.e=void 0;else if(t===this.d){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this.d=t.next}else if(t===this.e){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this.e=t.previous}else{const e=t.next,i=t.previous;if(!e||!i)throw new Error("Invalid list");e.previous=i,i.next=e}t.next=void 0,t.previous=void 0,this.g++}n(t,e){if(!this.d||!this.e)throw new Error("Invalid list");if(!(e!==1&&e!==2)){if(e===1){if(t===this.d)return;const i=t.next,s=t.previous;t===this.e?(s.next=void 0,this.e=s):(i.previous=s,s.next=i),t.previous=void 0,t.next=this.d,this.d.previous=t,this.d=t,this.g++}else if(e===2){if(t===this.e)return;const i=t.next,s=t.previous;t===this.d?(i.previous=void 0,this.d=i):(i.previous=s,s.next=i),t.next=void 0,t.previous=this.e,this.e.next=t,this.e=t,this.g++}}}toJSON(){const t=[];return this.forEach((e,i)=>{t.push([i,e])}),t}fromJSON(t){this.clear();for(const[e,i]of t)this.set(e,i)}},No=class extends _o{constructor(t,e=1){super(),this.o=t,this.p=Math.min(Math.max(0,e),1)}get limit(){return this.o}set limit(t){this.o=t,this.q()}get ratio(){return this.p}set ratio(t){this.p=Math.min(Math.max(0,t),1),this.q()}get(t,e=2){return super.get(t,e)}peek(t){return super.get(t,0)}set(t,e){return super.set(t,e,2),this}q(){this.size>this.o&&this.r(Math.round(this.o*this.p))}},Qs=class extends No{constructor(t,e=1){super(t,e)}r(t){this.h(t)}set(t,e){return super.set(t,e),this.q(),this}},To=class{constructor(){this.c=new Map}add(t,e){let i=this.c.get(t);i||(i=new Set,this.c.set(t,i)),i.add(e)}delete(t,e){const i=this.c.get(t);i&&(i.delete(e),i.size===0&&this.c.delete(t))}forEach(t,e){const i=this.c.get(t);i&&i.forEach(e)}get(t){const e=this.c.get(t);return e||new Set}};function Bo(t,e){if(t===e)return!0;if(t.size!==e.size)return!1;for(const[i,s]of t)if(!e.has(i)||e.get(i)!==s)return!1;for(const[i]of e)if(!t.has(i))return!1;return!0}function Hi(t,e){const i=this;let s=!1,r;return function(){if(s)return r;if(s=!0,e)try{r=t.apply(i,arguments)}finally{e()}else r=t.apply(i,arguments);return r}}function Vi(t,e){if(!t)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function ne(t){return typeof t=="string"}function Fo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function Ks(t){return typeof t=="number"&&!isNaN(t)}function Uo(t){return!!t&&typeof t[Symbol.iterator]=="function"}function jo(t){return typeof t>"u"}function Wo(t){return jo(t)||t===null}function zo(t,e){if(!t)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function tr(t){return typeof t=="function"}var qi;(function(t){function e(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}t.is=e;const i=Object.freeze([]);function s(){return i}t.empty=s;function*r(S){yield S}t.single=r;function n(S){return e(S)?S:r(S)}t.wrap=n;function o(S){return S||i}t.from=o;function*a(S){for(let L=S.length-1;L>=0;L--)yield S[L]}t.reverse=a;function c(S){return!S||S[Symbol.iterator]().next().done===!0}t.isEmpty=c;function h(S){return S[Symbol.iterator]().next().value}t.first=h;function u(S,L){let N=0;for(const q of S)if(L(q,N++))return!0;return!1}t.some=u;function l(S,L){for(const N of S)if(L(N))return N}t.find=l;function*f(S,L){for(const N of S)L(N)&&(yield N)}t.filter=f;function*d(S,L){let N=0;for(const q of S)yield L(q,N++)}t.map=d;function*p(S,L){let N=0;for(const q of S)yield*L(q,N++)}t.flatMap=p;function*b(...S){for(const L of S)Uo(L)?yield*L:yield L}t.concat=b;function m(S,L,N){let q=N;for(const P of S)q=L(q,P);return q}t.reduce=m;function v(S){let L=0;for(const N of S)L++;return L}t.length=v;function*I(S,L,N=S.length){for(L<-S.length&&(L=0),L<0&&(L+=S.length),N<0?N+=S.length:N>S.length&&(N=S.length);L<N;L++)yield S[L]}t.slice=I;function F(S,L=Number.POSITIVE_INFINITY){const N=[];if(L===0)return[N,S];const q=S[Symbol.iterator]();for(let P=0;P<L;P++){const Z=q.next();if(Z.done)return[N,t.empty()];N.push(Z.value)}return[N,{[Symbol.iterator](){return q}}]}t.consume=F;async function ee(S){const L=[];for await(const N of S)L.push(N);return Promise.resolve(L)}t.asyncToArray=ee})(qi||(qi={}));var Ho=!1,oe=null,gu=class z1{constructor(){this.b=new Map}static{this.a=0}c(e){let i=this.b.get(e);return i||(i={parent:null,source:null,isSingleton:!1,value:e,idx:z1.a++},this.b.set(e,i)),i}trackDisposable(e){const i=this.c(e);i.source||(i.source=new Error().stack)}setParent(e,i){const s=this.c(e);s.parent=i}markAsDisposed(e){this.b.delete(e)}markAsSingleton(e){this.c(e).isSingleton=!0}f(e,i){const s=i.get(e);if(s)return s;const r=e.parent?this.f(this.c(e.parent),i):e;return i.set(e,r),r}getTrackedDisposables(){const e=new Map;return[...this.b.entries()].filter(([,s])=>s.source!==null&&!this.f(s,e).isSingleton).flatMap(([s])=>s)}computeLeakingDisposables(e=10,i){let s;if(i)s=i;else{const c=new Map,h=[...this.b.values()].filter(l=>l.source!==null&&!this.f(l,c).isSingleton);if(h.length===0)return;const u=new Set(h.map(l=>l.value));if(s=h.filter(l=>!(l.parent&&u.has(l.parent))),s.length===0)throw new Error("There are cyclic diposable chains!")}if(!s)return;function r(c){function h(l,f){for(;l.length>0&&f.some(d=>typeof d=="string"?d===l[0]:l[0].match(d));)l.shift()}const u=c.source.split(` `).map(l=>l.trim().replace("at ","")).filter(l=>l!=="");return h(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}const n=new To;for(const c of s){const h=r(c);for(let u=0;u<=h.length;u++)n.add(h.slice(0,u).join(` `),c)}s.sort(Ao(c=>c.idx,Mo));let o="",a=0;for(const c of s.slice(0,e)){a++;const h=r(c),u=[];for(let l=0;l<h.length;l++){let f=h[l];f=`(shared with ${n.get(h.slice(0,l+1).join(` `)).size}/${s.length} leaks) at ${f}`;const p=n.get(h.slice(0,l).join(` `)),b=Io([...p].map(m=>r(m)[l]),m=>m);delete b[h[l]];for(const[m,v]of Object.entries(b))u.unshift(` - stacktraces of ${v.length} other leaks continue with ${m}`);u.unshift(f)}o+=` ==================== Leaking disposable ${a}/${s.length}: ${c.value.constructor.name} ==================== ${u.join(` `)} ============================================================ `}return s.length>e&&(o+=` ... and ${s.length-e} more leaking disposables `),{leaks:s,details:o}}};function Vo(t){oe=t}if(Ho){const t="__is_disposable_tracked__";Vo(new class{trackDisposable(e){const i=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[t]||console.log(i)},3e3)}setParent(e,i){if(e&&e!==X.None)try{e[t]=!0}catch{}}markAsDisposed(e){if(e&&e!==X.None)try{e[t]=!0}catch{}}markAsSingleton(e){}})}function ye(t){return oe?.trackDisposable(t),t}function be(t){oe?.markAsDisposed(t)}function Ce(t,e){oe?.setParent(t,e)}function qo(t,e){if(oe)for(const i of t)oe.setParent(i,e)}function Nt(t){if(qi.is(t)){const e=[];for(const i of t)if(i)try{i.dispose()}catch(s){e.push(s)}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 Xo(...t){const e=yt(()=>Nt(t));return qo(t,e),e}function yt(t){const e=ye({dispose:Hi(()=>{be(e),t()})});return e}var Ht=class H1{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this.f=new Set,this.g=!1,ye(this)}dispose(){this.g||(be(this),this.g=!0,this.clear())}get isDisposed(){return this.g}clear(){if(this.f.size!==0)try{Nt(this.f)}finally{this.f.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return Ce(e,this),this.g?H1.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.f.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this.f.delete(e),e.dispose()}}deleteAndLeak(e){e&&this.f.has(e)&&(this.f.delete(e),Ce(e,null))}},X=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this.q=new Ht,ye(this),Ce(this.q,this)}dispose(){be(this),this.q.dispose()}B(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this.q.add(t)}},er=class{constructor(){this.b=!1,ye(this)}get value(){return this.b?void 0:this.a}set value(t){this.b||t===this.a||(this.a?.dispose(),t&&Ce(t,this),this.a=t)}clear(){this.value=void 0}dispose(){this.b=!0,be(this),this.a?.dispose(),this.a=void 0}clearAndLeak(){const t=this.a;return this.a=void 0,t&&Ce(t,null),t}},Go=class{constructor(t){this.a=new er,this.b=!1,this.a.value=t}get value(){return this.a.value}set value(t){this.b||t===this.a.value||(this.a.value=t)}dispose(){this.b=!0,this.a.dispose()}},Yo=class{constructor(){this.a=new Map,this.b=!1,ye(this)}dispose(){be(this),this.b=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this.a.size)try{Nt(this.a.values())}finally{this.a.clear()}}has(t){return this.a.has(t)}get size(){return this.a.size}get(t){return this.a.get(t)}set(t,e,i=!1){this.b&&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.a.get(t)?.dispose(),this.a.set(t,e)}deleteAndDispose(t){this.a.get(t)?.dispose(),this.a.delete(t)}deleteAndLeak(t){const e=this.a.get(t);return this.a.delete(t),e}keys(){return this.a.keys()}values(){return this.a.values()}[Symbol.iterator](){return this.a[Symbol.iterator]()}},ri=typeof Buffer<"u",Jo=new se(()=>new Uint8Array(256)),Xi,Gi,bt=class vt{static alloc(e){return ri?new vt(Buffer.allocUnsafe(e)):new vt(new Uint8Array(e))}static wrap(e){return ri&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new vt(e)}static fromString(e,i){return!(i?.dontUseNodeBuffer||!1)&&ri?new vt(Buffer.from(e)):(Xi||(Xi=new TextEncoder),new vt(Xi.encode(e)))}static fromByteArray(e){const i=vt.alloc(e.length);for(let s=0,r=e.length;s<r;s++)i.buffer[s]=e[s];return i}static concat(e,i){if(typeof i>"u"){i=0;for(let n=0,o=e.length;n<o;n++)i+=e[n].byteLength}const s=vt.alloc(i);let r=0;for(let n=0,o=e.length;n<o;n++){const a=e[n];s.set(a,r),r+=a.byteLength}return s}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){const e=vt.alloc(this.byteLength);return e.set(this),e}toString(){return ri?this.buffer.toString():(Gi||(Gi=new TextDecoder),Gi.decode(this.buffer))}slice(e,i){return new vt(this.buffer.subarray(e,i))}set(e,i){if(e instanceof vt)this.buffer.set(e.buffer,i);else if(e instanceof Uint8Array)this.buffer.set(e,i);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),i);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),i);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return Qo(this.buffer,e)}writeUInt32BE(e,i){Ko(this.buffer,e,i)}readUInt32LE(e){return ta(this.buffer,e)}writeUInt32LE(e,i){ea(this.buffer,e,i)}readUInt8(e){return ia(this.buffer,e)}writeUInt8(e,i){sa(this.buffer,e,i)}indexOf(e,i=0){return Zo(this.buffer,e instanceof vt?e.buffer:e,i)}equals(e){return this===e?!0:this.byteLength!==e.byteLength?!1:this.buffer.every((i,s)=>i===e.buffer[s])}};function Zo(t,e,i=0){const s=e.byteLength,r=t.byteLength;if(s===0)return 0;if(s===1)return t.indexOf(e[0]);if(s>r-i)return-1;const n=Jo.value;n.fill(e.length);for(let h=0;h<e.length;h++)n[e[h]]=e.length-h-1;let o=i+e.length-1,a=o,c=-1;for(;o<r;)if(t[o]===e[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(e.length-a,n[t[o]]),a=e.length-1;return c}function Qo(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function Ko(t,e,i){t[i+3]=e,e=e>>>8,t[i+2]=e,e=e>>>8,t[i+1]=e,e=e>>>8,t[i]=e}function ta(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function ea(t,e,i){t[i+0]=e&255,e=e>>>8,t[i+1]=e&255,e=e>>>8,t[i+2]=e&255,e=e>>>8,t[i+3]=e&255}function ia(t,e){return t[e]}function sa(t,e,i){t[i]=e}function ra(){return globalThis._VSCODE_NLS_MESSAGES}function ir(){return globalThis._VSCODE_NLS_LANGUAGE}var na=ir()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function sr(t,e){let i;return e.length===0?i=t:i=t.replace(/\{(\d+)\}/g,(s,r)=>{const n=r[0],o=e[n];let a=s;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),na&&(i="\uFF3B"+i.replace(/[aouei]/g,"$&$&")+"\uFF3D"),i}function w(t,e,...i){return sr(typeof t=="number"?oa(t,e):e,i)}function oa(t,e){const i=ra()?.[t];if(typeof i!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return i}var ae="en",Ee=!1,xe=!1,Se=!1,aa=!1,rr=!1,Yi=!1,ha=!1,nr=!1,ca=!1,la=!1,ni=void 0,oi=ae,or=ae,ua=void 0,kt=void 0,Lt=globalThis,pt=void 0;typeof Lt.vscode<"u"&&typeof Lt.vscode.process<"u"?pt=Lt.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(pt=process);var ar=typeof pt?.versions?.electron=="string",fa=ar&&pt?.type==="renderer";if(typeof pt=="object"){Ee=pt.platform==="win32",xe=pt.platform==="darwin",Se=pt.platform==="linux",aa=Se&&!!pt.env.SNAP&&!!pt.env.SNAP_REVISION,ha=ar,ca=!!pt.env.CI||!!pt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ni=ae,oi=ae;const t=pt.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);ni=e.userLocale,or=e.osLocale,oi=e.resolvedLanguage||ae,ua=e.languagePack?.translationsConfigFile}catch{}rr=!0}else typeof navigator=="object"&&!fa?(kt=navigator.userAgent,Ee=kt.indexOf("Windows")>=0,xe=kt.indexOf("Macintosh")>=0,nr=(kt.indexOf("Macintosh")>=0||kt.indexOf("iPad")>=0||kt.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Se=kt.indexOf("Linux")>=0,la=kt?.indexOf("Mobi")>=0,Yi=!0,oi=ir()||ae,ni=navigator.language.toLowerCase(),or=ni):console.error("Unable to resolve platform.");var hr;(function(t){t[t.Web=0]="Web",t[t.Mac=1]="Mac",t[t.Linux=2]="Linux",t[t.Windows=3]="Windows"})(hr||(hr={}));var ai=0;xe?ai=1:Ee?ai=3:Se&&(ai=2);var _=Ee,Tt=xe,ke=Se,da=rr,hi=Yi,pa=Yi&&typeof Lt.importScripts=="function",ma=pa?Lt.origin:void 0,ga=ai,xt=kt,Bt=oi,cr;(function(t){function e(){return Bt}t.value=e;function i(){return Bt.length===2?Bt==="en":Bt.length>=3?Bt[0]==="e"&&Bt[1]==="n"&&Bt[2]==="-":!1}t.isDefaultVariant=i;function s(){return Bt==="en"}t.isDefault=s})(cr||(cr={}));var va=typeof Lt.postMessage=="function"&&!Lt.importScripts,wa=(()=>{if(va){const t=[];Lt.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let s=0,r=t.length;s<r;s++){const n=t[s];if(n.id===i.data.vscodeScheduleAsyncWork){t.splice(s,1),n.callback();return}}});let e=0;return i=>{const s=++e;t.push({id:s,callback:i}),Lt.postMessage({vscodeScheduleAsyncWork:s},"*")}}return t=>setTimeout(t)})(),lr;(function(t){t[t.Windows=1]="Windows",t[t.Macintosh=2]="Macintosh",t[t.Linux=3]="Linux"})(lr||(lr={}));var ur=xe||nr?2:Ee?1:3,fr=!!(xt&&xt.indexOf("Chrome")>=0),ya=!!(xt&&xt.indexOf("Firefox")>=0),ba=!!(!fr&&xt&&xt.indexOf("Safari")>=0),Ca=!!(xt&&xt.indexOf("Edg/")>=0),vu=!!(xt&&xt.indexOf("Android")>=0),Vt,Ji=globalThis.vscode;if(typeof Ji<"u"&&typeof Ji.process<"u"){const t=Ji.process;Vt={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"?Vt={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Vt={get platform(){return _?"win32":Tt?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var Le=Vt.cwd,gt=Vt.env,dr=Vt.platform,wu=Vt.arch,Ea=65,xa=97,Sa=90,ka=122,qt=46,rt=47,ut=92,Dt=58,La=63,pr=class extends Error{constructor(t,e,i){let s;typeof e=="string"&&e.indexOf("not ")===0?(s="must not be",e=e.replace(/^not /,"")):s="must be";const r=t.indexOf(".")!==-1?"property":"argument";let n=`The "${t}" ${r} ${s} of type ${e}`;n+=`. Received type ${typeof i}`,super(n),this.code="ERR_INVALID_ARG_TYPE"}};function Da(t,e){if(t===null||typeof t!="object")throw new pr(e,"Object",t)}function K(t,e){if(typeof t!="string")throw new pr(e,"string",t)}var ft=dr==="win32";function $(t){return t===rt||t===ut}function Zi(t){return t===rt}function Pt(t){return t>=Ea&&t<=Sa||t>=xa&&t<=ka}function ci(t,e,i,s){let r="",n=0,o=-1,a=0,c=0;for(let h=0;h<=t.length;++h){if(h<t.length)c=t.charCodeAt(h);else{if(s(c))break;c=rt}if(s(c)){if(!(o===h-1||a===1))if(a===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==qt||r.charCodeAt(r.length-2)!==qt){if(r.length>2){const u=r.lastIndexOf(i);u===-1?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf(i)),o=h,a=0;continue}else if(r.length!==0){r="",n=0,o=h,a=0;continue}}e&&(r+=r.length>0?`${i}..`:"..",n=2)}else r.length>0?r+=`${i}${t.slice(o+1,h)}`:r=t.slice(o+1,h),n=h-o-1;o=h,a=0}else c===qt&&a!==-1?++a:a=-1}return r}function Pa(t){return t?`${t[0]==="."?"":"."}${t}`:""}function mr(t,e){Da(e,"pathObject");const i=e.dir||e.root,s=e.base||`${e.name||""}${Pa(e.ext)}`;return i?i===e.root?`${i}${s}`:`${i}${t}${s}`:s}var tt={resolve(...t){let e="",i="",s=!1;for(let r=t.length-1;r>=-1;r--){let n;if(r>=0){if(n=t[r],K(n,`paths[${r}]`),n.length===0)continue}else e.length===0?n=Le():(n=gt[`=${e}`]||Le(),(n===void 0||n.slice(0,2).toLowerCase()!==e.toLowerCase()&&n.charCodeAt(2)===ut)&&(n=`${e}\\`));const o=n.length;let a=0,c="",h=!1;const u=n.charCodeAt(0);if(o===1)$(u)&&(a=1,h=!0);else if($(u))if(h=!0,$(n.charCodeAt(1))){let l=2,f=l;for(;l<o&&!$(n.charCodeAt(l));)l++;if(l<o&&l!==f){const d=n.slice(f,l);for(f=l;l<o&&$(n.charCodeAt(l));)l++;if(l<o&&l!==f){for(f=l;l<o&&!$(n.charCodeAt(l));)l++;(l===o||l!==f)&&(c=`\\\\${d}\\${n.slice(f,l)}`,a=l)}}}else a=1;else Pt(u)&&n.charCodeAt(1)===Dt&&(c=n.slice(0,2),a=2,o>2&&$(n.charCodeAt(2))&&(h=!0,a=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(s){if(e.length>0)break}else if(i=`${n.slice(a)}\\${i}`,s=h,h&&e.length>0)break}return i=ci(i,!s,"\\",$),s?`${e}\\${i}`:`${e}${i}`||"."},normalize(t){K(t,"path");const e=t.length;if(e===0)return".";let i=0,s,r=!1;const n=t.charCodeAt(0);if(e===1)return Zi(n)?"\\":t;if($(n))if(r=!0,$(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!$(t.charCodeAt(a));)a++;if(a<e&&a!==c){const h=t.slice(c,a);for(c=a;a<e&&$(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!$(t.charCodeAt(a));)a++;if(a===e)return`\\\\${h}\\${t.slice(c)}\\`;a!==c&&(s=`\\\\${h}\\${t.slice(c,a)}`,i=a)}}}else i=1;else Pt(n)&&t.charCodeAt(1)===Dt&&(s=t.slice(0,2),i=2,e>2&&$(t.charCodeAt(2))&&(r=!0,i=3));let o=i<e?ci(t.slice(i),!r,"\\",$):"";if(o.length===0&&!r&&(o="."),o.length>0&&$(t.charCodeAt(e-1))&&(o+="\\"),!r&&s===void 0&&t.includes(":")){if(o.length>=2&&Pt(o.charCodeAt(0))&&o.charCodeAt(1)===Dt)return`.\\${o}`;let a=t.indexOf(":");do if(a===e-1||$(t.charCodeAt(a+1)))return`.\\${o}`;while((a=t.indexOf(":",a+1))!==-1)}return s===void 0?r?`\\${o}`:o:r?`${s}\\${o}`:`${s}${o}`},isAbsolute(t){K(t,"path");const e=t.length;if(e===0)return!1;const i=t.charCodeAt(0);return $(i)||e>2&&Pt(i)&&t.charCodeAt(1)===Dt&&$(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,i;for(let n=0;n<t.length;++n){const o=t[n];K(o,"path"),o.length>0&&(e===void 0?e=i=o:e+=`\\${o}`)}if(e===void 0)return".";let s=!0,r=0;if(typeof i=="string"&&$(i.charCodeAt(0))){++r;const n=i.length;n>1&&$(i.charCodeAt(1))&&(++r,n>2&&($(i.charCodeAt(2))?++r:s=!1))}if(s){for(;r<e.length&&$(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return tt.normalize(e)},relative(t,e){if(K(t,"from"),K(e,"to"),t===e)return"";const i=tt.resolve(t),s=tt.resolve(e);if(i===s||(t=i.toLowerCase(),e=s.toLowerCase(),t===e))return"";if(i.length!==t.length||s.length!==e.length){const p=i.split("\\"),b=s.split("\\");p[p.length-1]===""&&p.pop(),b[b.length-1]===""&&b.pop();const m=p.length,v=b.length,I=m<v?m:v;let F;for(F=0;F<I&&p[F].toLowerCase()===b[F].toLowerCase();F++);return F===0?s:F===I?v>I?b.slice(F).join("\\"):m>I?"..\\".repeat(m-1-F)+"..":"":"..\\".repeat(m-F)+b.slice(F).join("\\")}let r=0;for(;r<t.length&&t.charCodeAt(r)===ut;)r++;let n=t.length;for(;n-1>r&&t.charCodeAt(n-1)===ut;)n--;const o=n-r;let a=0;for(;a<e.length&&e.charCodeAt(a)===ut;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===ut;)c--;const h=c-a,u=o<h?o:h;let l=-1,f=0;for(;f<u;f++){const p=t.charCodeAt(r+f);if(p!==e.charCodeAt(a+f))break;p===ut&&(l=f)}if(f!==u){if(l===-1)return s}else{if(h>u){if(e.charCodeAt(a+f)===ut)return s.slice(a+f+1);if(f===2)return s.slice(a+f)}o>u&&(t.charCodeAt(r+f)===ut?l=f:f===2&&(l=3)),l===-1&&(l=0)}let d="";for(f=r+l+1;f<=n;++f)(f===n||t.charCodeAt(f)===ut)&&(d+=d.length===0?"..":"\\..");return a+=l,d.length>0?`${d}${s.slice(a,c)}`:(s.charCodeAt(a)===ut&&++a,s.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=tt.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===ut){if(e.charCodeAt(1)===ut){const i=e.charCodeAt(2);if(i!==La&&i!==qt)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Pt(e.charCodeAt(0))&&e.charCodeAt(1)===Dt&&e.charCodeAt(2)===ut)return`\\\\?\\${e}`;return e},dirname(t){K(t,"path");const e=t.length;if(e===0)return".";let i=-1,s=0;const r=t.charCodeAt(0);if(e===1)return $(r)?t:".";if($(r)){if(i=s=1,$(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!$(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&$(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!$(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(i=s=a+1)}}}}else Pt(r)&&t.charCodeAt(1)===Dt&&(i=e>2&&$(t.charCodeAt(2))?3:2,s=i);let n=-1,o=!0;for(let a=e-1;a>=s;--a)if($(t.charCodeAt(a))){if(!o){n=a;break}}else o=!1;if(n===-1){if(i===-1)return".";n=i}return t.slice(0,n)},basename(t,e){e!==void 0&&K(e,"suffix"),K(t,"path");let i=0,s=-1,r=!0,n;if(t.length>=2&&Pt(t.charCodeAt(0))&&t.charCodeAt(1)===Dt&&(i=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(n=t.length-1;n>=i;--n){const c=t.charCodeAt(n);if($(c)){if(!r){i=n+1;break}}else a===-1&&(r=!1,a=n+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(s=n):(o=-1,s=a))}return i===s?s=a:s===-1&&(s=t.length),t.slice(i,s)}for(n=t.length-1;n>=i;--n)if($(t.charCodeAt(n))){if(!r){i=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":t.slice(i,s)},extname(t){K(t,"path");let e=0,i=-1,s=0,r=-1,n=!0,o=0;t.length>=2&&t.charCodeAt(1)===Dt&&Pt(t.charCodeAt(0))&&(e=s=2);for(let a=t.length-1;a>=e;--a){const c=t.charCodeAt(a);if($(c)){if(!n){s=a+1;break}continue}r===-1&&(n=!1,r=a+1),c===qt?i===-1?i=a:o!==1&&(o=1):i!==-1&&(o=-1)}return i===-1||r===-1||o===0||o===1&&i===r-1&&i===s+1?"":t.slice(i,r)},format:mr.bind(null,"\\"),parse(t){K(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const i=t.length;let s=0,r=t.charCodeAt(0);if(i===1)return $(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if($(r)){if(s=1,$(t.charCodeAt(1))){let l=2,f=l;for(;l<i&&!$(t.charCodeAt(l));)l++;if(l<i&&l!==f){for(f=l;l<i&&$(t.charCodeAt(l));)l++;if(l<i&&l!==f){for(f=l;l<i&&!$(t.charCodeAt(l));)l++;l===i?s=l:l!==f&&(s=l+1)}}}}else if(Pt(r)&&t.charCodeAt(1)===Dt){if(i<=2)return e.root=e.dir=t,e;if(s=2,$(t.charCodeAt(2))){if(i===3)return e.root=e.dir=t,e;s=3}}s>0&&(e.root=t.slice(0,s));let n=-1,o=s,a=-1,c=!0,h=t.length-1,u=0;for(;h>=s;--h){if(r=t.charCodeAt(h),$(r)){if(!c){o=h+1;break}continue}a===-1&&(c=!1,a=h+1),r===qt?n===-1?n=h:u!==1&&(u=1):n!==-1&&(u=-1)}return a!==-1&&(n===-1||u===0||u===1&&n===a-1&&n===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,n),e.base=t.slice(o,a),e.ext=t.slice(n,a))),o>0&&o!==s?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},$a=(()=>{if(ft){const t=/\\/g;return()=>{const e=Le().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Le()})(),j={resolve(...t){let e="",i=!1;for(let s=t.length-1;s>=0&&!i;s--){const r=t[s];K(r,`paths[${s}]`),r.length!==0&&(e=`${r}/${e}`,i=r.charCodeAt(0)===rt)}if(!i){const s=$a();e=`${s}/${e}`,i=s.charCodeAt(0)===rt}return e=ci(e,!i,"/",Zi),i?`/${e}`:e.length>0?e:"."},normalize(t){if(K(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===rt,i=t.charCodeAt(t.length-1)===rt;return t=ci(t,!e,"/",Zi),t.length===0?e?"/":i?"./":".":(i&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return K(t,"path"),t.length>0&&t.charCodeAt(0)===rt},join(...t){if(t.length===0)return".";const e=[];for(let i=0;i<t.length;++i){const s=t[i];K(s,"path"),s.length>0&&e.push(s)}return e.length===0?".":j.normalize(e.join("/"))},relative(t,e){if(K(t,"from"),K(e,"to"),t===e||(t=j.resolve(t),e=j.resolve(e),t===e))return"";const i=1,s=t.length,r=s-i,n=1,o=e.length-n,a=r<o?r:o;let c=-1,h=0;for(;h<a;h++){const l=t.charCodeAt(i+h);if(l!==e.charCodeAt(n+h))break;l===rt&&(c=h)}if(h===a)if(o>a){if(e.charCodeAt(n+h)===rt)return e.slice(n+h+1);if(h===0)return e.slice(n+h)}else r>a&&(t.charCodeAt(i+h)===rt?c=h:h===0&&(c=0));let u="";for(h=i+c+1;h<=s;++h)(h===s||t.charCodeAt(h)===rt)&&(u+=u.length===0?"..":"/..");return`${u}${e.slice(n+c)}`},toNamespacedPath(t){return t},dirname(t){if(K(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===rt;let i=-1,s=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===rt){if(!s){i=r;break}}else s=!1;return i===-1?e?"/":".":e&&i===1?"//":t.slice(0,i)},basename(t,e){e!==void 0&&K(e,"suffix"),K(t,"path");let i=0,s=-1,r=!0,n;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(n=t.length-1;n>=0;--n){const c=t.charCodeAt(n);if(c===rt){if(!r){i=n+1;break}}else a===-1&&(r=!1,a=n+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(s=n):(o=-1,s=a))}return i===s?s=a:s===-1&&(s=t.length),t.slice(i,s)}for(n=t.length-1;n>=0;--n)if(t.charCodeAt(n)===rt){if(!r){i=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":t.slice(i,s)},extname(t){K(t,"path");let e=-1,i=0,s=-1,r=!0,n=0;for(let o=t.length-1;o>=0;--o){const a=t[o];if(a==="/"){if(!r){i=o+1;break}continue}s===-1&&(r=!1,s=o+1),a==="."?e===-1?e=o:n!==1&&(n=1):e!==-1&&(n=-1)}return e===-1||s===-1||n===0||n===1&&e===s-1&&e===i+1?"":t.slice(e,s)},format:mr.bind(null,"/"),parse(t){K(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const i=t.charCodeAt(0)===rt;let s;i?(e.root="/",s=1):s=0;let r=-1,n=0,o=-1,a=!0,c=t.length-1,h=0;for(;c>=s;--c){const u=t.charCodeAt(c);if(u===rt){if(!a){n=c+1;break}continue}o===-1&&(a=!1,o=c+1),u===qt?r===-1?r=c:h!==1&&(h=1):r!==-1&&(h=-1)}if(o!==-1){const u=n===0&&i?1:n;r===-1||h===0||h===1&&r===o-1&&r===n+1?e.base=e.name=t.slice(u,o):(e.name=t.slice(u,r),e.base=t.slice(u,o),e.ext=t.slice(r,o))}return n>0?e.dir=t.slice(0,n-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};j.win32=tt.win32=tt,j.posix=tt.posix=j;var De=ft?tt.normalize:j.normalize,gr=ft?tt.isAbsolute:j.isAbsolute,O=ft?tt.join:j.join,li=ft?tt.resolve:j.resolve,Aa=ft?tt.relative:j.relative,Pe=ft?tt.dirname:j.dirname,ui=ft?tt.basename:j.basename,yu=ft?tt.extname:j.extname,bu=ft?tt.format:j.format,Ma=ft?tt.parse:j.parse,Cu=ft?tt.toNamespacedPath:j.toNamespacedPath,fi=ft?tt.sep:j.sep,vr=ft?tt.delimiter:j.delimiter,Ia=/^\w[\w\d+.-]*$/,Oa=/^\//,Ra=/^\/\//;function _a(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Ia.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Oa.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Ra.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Na(t,e){return!t&&!e?"file":t}function Ta(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Ct&&(e=Ct+e):e=Ct;break}return e}var G="",Ct="/",Ba=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,B=class