![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/.cursor-server/bin/b753cece5c67c47cb5637199a5a5de2b7100c180/out/ |
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/var Np=function(e,t){return Np=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])},Np(e,t)};export function __extends(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Np(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}export var __assign=function(){return __assign=Object.assign||function(t){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)&&(t[n]=i[n])}return t},__assign.apply(this,arguments)};export function __rest(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(i[s[r]]=e[s[r]]);return i}export function __decorate(e,t,i,s){var r=arguments.length,n=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n}export function __param(e,t){return function(i,s){t(i,s,e)}}export function __esDecorate(e,t,i,s,r,n){function o(S){if(S!==void 0&&typeof S!="function")throw new TypeError("Function expected");return S}for(var a=s.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!t&&e?s.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,s.name):{}),h,f=!1,p=i.length-1;p>=0;p--){var g={};for(var v in s)g[v]=v==="access"?{}:s[v];for(var v in s.access)g.access[v]=s.access[v];g.addInitializer=function(S){if(f)throw new TypeError("Cannot add initializers after decoration has completed");n.push(o(S||null))};var w=(0,i[p])(a==="accessor"?{get:u.get,set:u.set}:u[c],g);if(a==="accessor"){if(w===void 0)continue;if(w===null||typeof w!="object")throw new TypeError("Object expected");(h=o(w.get))&&(u.get=h),(h=o(w.set))&&(u.set=h),(h=o(w.init))&&r.unshift(h)}else(h=o(w))&&(a==="field"?r.unshift(h):u[c]=h)}l&&Object.defineProperty(l,s.name,u),f=!0}export function __runInitializers(e,t,i){for(var s=arguments.length>2,r=0;r<t.length;r++)i=s?t[r].call(e,i):t[r].call(e);return s?i:void 0}export function __propKey(e){return typeof e=="symbol"?e:"".concat(e)}export function __setFunctionName(e,t,i){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:i?"".concat(i," ",t):t})}export function __metadata(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}export function __awaiter(e,t,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{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):r(u.value).then(a,c)}l((s=s.apply(e,t||[])).next())})}export function __generator(e,t){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(l){return function(u){return c([l,u])}}function c(l){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(s=1,r&&(n=l[0]&2?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[l[0]&2,n.value]),l[0]){case 0:case 1:n=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(n=i.trys,!(n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){i.label=l[1];break}if(l[0]===6&&i.label<n[1]){i.label=n[1],n=l;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(l);break}n[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(u){l=[6,u],r=0}finally{s=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}export var __createBinding=Object.create?(function(e,t,i,s){s===void 0&&(s=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,r)}):(function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]});export function __exportStar(e,t){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&__createBinding(t,e,i)}export function __values(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],s=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}export function __read(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var s=i.call(e),r,n=[],o;try{for(;(t===void 0||t-- >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 e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}export function __spreadArrays(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var s=Array(e),r=0,t=0;t<i;t++)for(var n=arguments[t],o=0,a=n.length;o<a;o++,r++)s[r]=n[o];return s}export function __spreadArray(e,t,i){if(i||arguments.length===2)for(var s=0,r=t.length,n;s<r;s++)(n||!(s in t))&&(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))}export function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}export function __asyncGenerator(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(e,t||[]),r,n=[];return r={},a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(p){return function(g){return Promise.resolve(g).then(p,h)}}function a(p,g){s[p]&&(r[p]=function(v){return new Promise(function(w,S){n.push([p,v,w,S])>1||c(p,v)})},g&&(r[p]=g(r[p])))}function c(p,g){try{l(s[p](g))}catch(v){f(n[0][3],v)}}function l(p){p.value instanceof __await?Promise.resolve(p.value.v).then(u,h):f(n[0][2],p)}function u(p){c("next",p)}function h(p){c("throw",p)}function f(p,g){p(g),n.shift(),n.length&&c(n[0][0],n[0][1])}}export function __asyncDelegator(e){var t,i;return t={},s("next"),s("throw",function(r){throw r}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(r,n){t[r]=e[r]?function(o){return(i=!i)?{value:__await(e[r](o)),done:!1}:n?n(o):o}:n}}export function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(n){i[n]=e[n]&&function(o){return new Promise(function(a,c){o=e[n](o),r(a,c,o.done,o.value)})}}function r(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}}export function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var vC=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};export function __importStar(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&__createBinding(t,e,i);return vC(t,e),t}export function __importDefault(e){return e&&e.__esModule?e:{default:e}}export function __classPrivateFieldGet(e,t,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(e):s?s.value:t.get(e)}export function __classPrivateFieldSet(e,t,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 t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?r.call(e,i):r?r.value=i:t.set(e,i),i}export function __classPrivateFieldIn(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}export function __addDisposableResource(e,t,i){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var s,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");s=t[Symbol.asyncDispose]}if(s===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");s=t[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)}}),e.stack.push({value:t,dispose:s,async:i})}else i&&e.stack.push({async:!0});return t}var yC=typeof SuppressedError=="function"?SuppressedError:function(e,t,i){var s=new Error(i);return s.name="SuppressedError",s.error=e,s.suppressed=t,s};export function __disposeResources(e){function t(s){e.error=e.hasError?new yC(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}function i(){for(;e.stack.length;){var s=e.stack.pop();try{var r=s.dispose&&s.dispose.call(s.value);if(s.async)return Promise.resolve(r).then(i,function(n){return t(n),i()})}catch(n){t(n)}}if(e.hasError)throw e.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 wC=Object.create,Op=Object.defineProperty,_C=Object.getOwnPropertyDescriptor,Tp=Object.getOwnPropertyNames,bC=Object.getPrototypeOf,EC=Object.prototype.hasOwnProperty,y=(e,t)=>function(){return e&&(t=(0,e[Tp(e)[0]])(e=0)),t},SC=(e,t)=>function(){return t||(0,e[Tp(e)[0]])((t={exports:{}}).exports,t),t.exports},xC=(e,t)=>{for(var i in t)Op(e,i,{get:t[i],enumerable:!0})},kC=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Tp(t))!EC.call(e,r)&&r!==i&&Op(e,r,{get:()=>t[r],enumerable:!(s=_C(t,r))||s.enumerable});return e},Hy=(e,t,i)=>(i=e!=null?wC(bC(e)):{},kC(t||!e||!e.__esModule?Op(i,"default",{value:e,enumerable:!0}):i,e)),Vy=SC({"node_modules/minimist/index.js"(e,t){t.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(N){a.bools[N]=!0});var c={};Object.keys(o.alias||{}).forEach(function(N){c[N]=[].concat(o.alias[N]),c[N].forEach(function(pe){c[pe]=[N].concat(c[N].filter(function(at){return pe!==at}))})}),[].concat(o.string).filter(Boolean).forEach(function(N){a.strings[N]=!0,c[N]&&(a.strings[c[N]]=!0)});var l=o.default||{},u={_:[]};Object.keys(a.bools).forEach(function(N){p(N,l[N]===void 0?!1:l[N])});var h=[];n.indexOf("--")!==-1&&(h=n.slice(n.indexOf("--")+1),n=n.slice(0,n.indexOf("--")));function f(N,pe){return a.allBools&&/^--[^=]+$/.test(pe)||a.strings[N]||a.bools[N]||c[N]}function p(N,pe,at){if(!(at&&a.unknownFn&&!f(N,at)&&a.unknownFn(at)===!1)){var q=!a.strings[N]&&s(pe)?Number(pe):pe;g(u,N.split("."),q),(c[N]||[]).forEach(function(Ge){g(u,Ge.split("."),q)})}}function g(N,pe,at){for(var q=N,Ge=0;Ge<pe.length-1;Ge++){var C=pe[Ge];if(r(q,C))return;q[C]===void 0&&(q[C]={}),(q[C]===Object.prototype||q[C]===Number.prototype||q[C]===String.prototype)&&(q[C]={}),q[C]===Array.prototype&&(q[C]=[]),q=q[C]}var C=pe[pe.length-1];r(q,C)||((q===Object.prototype||q===Number.prototype||q===String.prototype)&&(q={}),q===Array.prototype&&(q=[]),q[C]===void 0||a.bools[C]||typeof q[C]=="boolean"?q[C]=at:Array.isArray(q[C])?q[C].push(at):q[C]=[q[C],at])}function v(N){return c[N].some(function(pe){return a.bools[pe]})}for(var w=0;w<n.length;w++){var S=n[w];if(/^--.+=/.test(S)){var E=S.match(/^--([^=]+)=([\s\S]*)$/),P=E[1],A=E[2];a.bools[P]&&(A=A!=="false"),p(P,A,S)}else if(/^--no-.+/.test(S)){var P=S.match(/^--no-(.+)/)[1];p(P,!1,S)}else if(/^--.+/.test(S)){var P=S.match(/^--(.+)/)[1],D=n[w+1];D!==void 0&&!/^-/.test(D)&&!a.bools[P]&&!a.allBools&&(!c[P]||!v(P))?(p(P,D,S),w++):/^(true|false)$/.test(D)?(p(P,D==="true",S),w++):p(P,a.strings[P]?"":!0,S)}else if(/^-[^-]+/.test(S)){for(var T=S.slice(1,-1).split(""),$=!1,ne=0;ne<T.length;ne++){var D=S.slice(ne+2);if(D==="-"){p(T[ne],D,S);continue}if(/[A-Za-z]/.test(T[ne])&&/=/.test(D)){p(T[ne],D.split("=")[1],S),$=!0;break}if(/[A-Za-z]/.test(T[ne])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(D)){p(T[ne],D,S),$=!0;break}if(T[ne+1]&&T[ne+1].match(/\W/)){p(T[ne],S.slice(ne+2),S),$=!0;break}else p(T[ne],a.strings[T[ne]]?"":!0,S)}var P=S.slice(-1)[0];!$&&P!=="-"&&(n[w+1]&&!/^(-|--)[^-]/.test(n[w+1])&&!a.bools[P]&&(!c[P]||!v(P))?(p(P,n[w+1],S),w++):n[w+1]&&/^(true|false)$/.test(n[w+1])?(p(P,n[w+1]==="true",S),w++):p(P,a.strings[P]?"":!0,S))}else if((!a.unknownFn||a.unknownFn(S)!==!1)&&u._.push(a.strings._||!s(S)?S:Number(S)),o.stopEarly){u._.push.apply(u._,n.slice(w+1));break}}return Object.keys(l).forEach(function(N){i(u,N.split("."))||(g(u,N.split("."),l[N]),(c[N]||[]).forEach(function(pe){g(u,pe.split("."),l[N])}))}),o["--"]?(u["--"]=new Array,h.forEach(function(N){u["--"].push(N)})):h.forEach(function(N){u._.push(N)}),u};function i(n,o){var a=n;o.slice(0,-1).forEach(function(l){a=a[l]||{}});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__"}}});function Mp(e){const t=[];typeof e=="number"&&t.push("code/timeOrigin",e);function i(r,n){t.push(r,n?.startTime??Date.now())}function s(){const r=[];for(let n=0;n<t.length;n+=2)r.push({name:t[n],startTime:t[n+1]});return r}return{mark:i,getMarks:s}}function PC(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?Mp():{mark(e,t){performance.mark(e,t)},getMarks(){let e=performance.timeOrigin;typeof e!="number"&&(e=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const t=[{name:"code/timeOrigin",startTime:Math.round(e)}];for(const i of performance.getEntriesByType("mark"))t.push({name:i.name,startTime:Math.round(e+i.startTime)});return t}};if(typeof process=="object"){const e=performance?.timeOrigin;return Mp(e)}else return console.trace("perf-util loaded in UNKNOWN environment"),Mp()}function IC(e){return e.MonacoPerformanceMarks||(e.MonacoPerformanceMarks=PC()),e.MonacoPerformanceMarks}var Fp,St,jy,qs=y({"out-build/vs/base/common/performance.js"(){"use strict";Fp=IC(globalThis),St=Fp.mark,jy=Fp.getMarks}});import*as _s from"path";import*as bs from"fs";async function By({userLocale:e,osLocale:t,userDataPath:i,commit:s,nlsMetadataPath:r}){if(St("code/willGenerateNls"),process.env.VSCODE_DEV||e==="pseudo"||e.startsWith("en")||!s||!i)return La(e,t,r);try{const n=await CC(i);if(!n)return La(e,t,r);const o=DC(n,e);if(!o)return La(e,t,r);const a=n[o],c=a?.translations?.vscode;if(!a||typeof a.hash!="string"||!a.translations||typeof c!="string"||!await Up(c))return La(e,t,r);const l=`${a.hash}.${o}`,u=_s.join(i,"clp",l),h=_s.join(u,s),f=_s.join(h,"nls.messages.json"),p=_s.join(u,"tcf.json"),g=_s.join(u,"corrupted.info");await Up(g)&&await bs.promises.rm(u,{recursive:!0,force:!0,maxRetries:3});const v={userLocale:e,osLocale:t,resolvedLanguage:o,defaultMessagesFile:_s.join(r,"nls.messages.json"),languagePack:{translationsConfigFile:p,messagesFile:f,corruptMarkerFile:g},locale:e,availableLanguages:{"*":o},_languagePackId:l,_languagePackSupport:!0,_translationsConfigFile:p,_cacheRoot:u,_resolvedLanguagePackCoreLocation:h,_corruptedFile:g};if(await Up(h))return RC(h).catch(()=>{}),St("code/didGenerateNls"),v;const[,w,S,E]=await Promise.all([bs.promises.mkdir(h,{recursive:!0}),JSON.parse(await bs.promises.readFile(_s.join(r,"nls.keys.json"),"utf-8")),JSON.parse(await bs.promises.readFile(_s.join(r,"nls.messages.json"),"utf-8")),JSON.parse(await bs.promises.readFile(c,"utf-8"))]),P=[];let A=0;for(const[D,T]of w){const $=E.contents[D];for(const ne of T)P.push($?.[ne]||S[A]),A++}return await Promise.all([bs.promises.writeFile(f,JSON.stringify(P),"utf-8"),bs.promises.writeFile(p,JSON.stringify(a.translations),"utf-8")]),St("code/didGenerateNls"),v}catch(n){console.error("Generating translation files failed.",n)}return La(e,t,r)}async function CC(e){const t=_s.join(e,"languagepacks.json");try{return JSON.parse(await bs.promises.readFile(t,"utf-8"))}catch{return}}function DC(e,t){try{for(;t;){if(e[t])return t;const i=t.lastIndexOf("-");if(i>0)t=t.substring(0,i);else return}}catch(i){console.error("Resolving language pack configuration failed.",i)}}function La(e,t,i){return St("code/didGenerateNls"),{userLocale:e,osLocale:t,resolvedLanguage:"en",defaultMessagesFile:_s.join(i,"nls.messages.json"),locale:e,availableLanguages:{}}}async function Up(e){try{return await bs.promises.access(e),!0}catch{return!1}}function RC(e){const t=new Date;return bs.promises.utimes(e,t,t)}var zy=y({"out-build/vs/base/node/nls.js"(){"use strict";qs()}});function qy(e){au.setUnexpectedErrorHandler(e)}function Gy(e){if(!e||typeof e!="object")return!1;const t=e;return t.code==="EPIPE"&&t.syscall?.toUpperCase()==="WRITE"}function Qt(e){xr(e)||au.onUnexpectedError(e)}function xr(e){return e instanceof xt?!0:e instanceof Error&&e.name===Aa&&e.message===Aa}function Qy(){const e=new Error(Aa);return e.name=e.message,e}function Ae(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function Jy(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}function le(e){return e?e.message?e.message:e.stack?e.stack.split(`
`)[0]:String(e):"Error"}var Xy,au,Aa,xt,Gs,Yy,ve=y({"out-build/vs/base/common/errors.js"(){"use strict";Xy=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Gs.isErrorNoTelemetry(e)?new Gs(e.message+`
`+e.stack):new Error(e.message+`
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},au=new Xy,Aa="Canceled",xt=class extends Error{constructor(){super(Aa),this.name=this.message}},Gs=class by extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof by)return t;const i=new by;return i.message=t.message,i.stack=t.stack,i}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Yy=class LI extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,LI.prototype)}}}});function LC(){return globalThis._VSCODE_NLS_MESSAGES}function Zy(){return globalThis._VSCODE_NLS_LANGUAGE}var Ky=y({"out-build/vs/nls.messages.js"(){"use strict"}});function cu(e,t){let i;return t.length===0?i=e:i=e.replace(/\{(\d+)\}/g,(s,r)=>{const n=r[0],o=t[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}),iw&&(i="\uFF3B"+i.replace(/[aouei]/g,"$&$&")+"\uFF3D"),i}function m(e,t,...i){return cu(typeof e=="number"?ew(e,t):t,i)}function ew(e,t){const i=LC()?.[e];if(typeof i!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}function tw(e,t,...i){let s;typeof e=="number"?s=ew(e,t):s=t;const r=cu(s,i);return{value:r,original:t===s?r:cu(t,i)}}var iw,ue=y({"out-build/vs/nls.js"(){"use strict";Ky(),Ky(),iw=Zy()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0}});function sw(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}var kr,eo,to,io,$p,Wp,lu,rw,Hp,nw,ow,Na,Oa,Vp,aw,Es,Ss,Jt,jp,cw,lw,Ta,he,Li,nt,uw,hw,xs,dw,fw,ln,es,Ei,pw,mw,gw,vw,un,Bp,yw,ww,_w,AC,NC,OC,K=y({"out-build/vs/base/common/platform.js"(){"use strict";if(ue(),kr="en",eo=!1,to=!1,io=!1,$p=!1,Wp=!1,lu=!1,rw=!1,Hp=!1,nw=!1,ow=!1,Na=void 0,Oa=kr,Vp=kr,aw=void 0,Es=void 0,Ss=globalThis,Jt=void 0,typeof Ss.vscode<"u"&&typeof Ss.vscode.process<"u"?Jt=Ss.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Jt=process),jp=typeof Jt?.versions?.electron=="string",cw=jp&&Jt?.type==="renderer",typeof Jt=="object"){eo=Jt.platform==="win32",to=Jt.platform==="darwin",io=Jt.platform==="linux",$p=io&&!!Jt.env.SNAP&&!!Jt.env.SNAP_REVISION,rw=jp,nw=!!Jt.env.CI||!!Jt.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Na=kr,Oa=kr;const e=Jt.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);Na=t.userLocale,Vp=t.osLocale,Oa=t.resolvedLanguage||kr,aw=t.languagePack?.translationsConfigFile}catch{}Wp=!0}else typeof navigator=="object"&&!cw?(Es=navigator.userAgent,eo=Es.indexOf("Windows")>=0,to=Es.indexOf("Macintosh")>=0,Hp=(Es.indexOf("Macintosh")>=0||Es.indexOf("iPad")>=0||Es.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,io=Es.indexOf("Linux")>=0,ow=Es?.indexOf("Mobi")>=0,lu=!0,Oa=Zy()||kr,Na=navigator.language.toLowerCase(),Vp=Na):console.error("Unable to resolve platform.");(function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"})(lw||(lw={})),Ta=0,to?Ta=1:eo?Ta=3:io&&(Ta=2),he=eo,Li=to,nt=io,uw=$p,hw=Wp,xs=lu,dw=lu&&typeof Ss.importScripts=="function",fw=dw?Ss.origin:void 0,ln=Ta,es=Es,Ei=Oa,(function(e){function t(){return Ei}e.value=t;function i(){return Ei.length===2?Ei==="en":Ei.length>=3?Ei[0]==="e"&&Ei[1]==="n"&&Ei[2]==="-":!1}e.isDefaultVariant=i;function s(){return Ei==="en"}e.isDefault=s})(pw||(pw={})),mw=typeof Ss.postMessage=="function"&&!Ss.importScripts,gw=(()=>{if(mw){const e=[];Ss.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let s=0,r=e.length;s<r;s++){const n=e[s];if(n.id===i.data.vscodeScheduleAsyncWork){e.splice(s,1),n.callback();return}}});let t=0;return i=>{const s=++t;e.push({id:s,callback:i}),Ss.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),(function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"})(vw||(vw={})),un=to||Hp?2:eo?1:3,Bp=!!(es&&es.indexOf("Chrome")>=0),yw=!!(es&&es.indexOf("Firefox")>=0),ww=!!(!Bp&&es&&es.indexOf("Safari")>=0),_w=!!(es&&es.indexOf("Edg/")>=0),AC=!!(es&&es.indexOf("Android")>=0),NC=Jt?.arch,OC=Jt?.platform}});function TC(e,t){const i=Object.create(null);for(const s of e){const r=t(s);let n=i[r];n||(n=i[r]=[]),n.push(s)}return i}var bw,MC,Ew=y({"out-build/vs/base/common/collections.js"(){"use strict";MC=class{static{bw=Symbol.toStringTag}constructor(e,t){this.toKey=t,this._map=new Map,this[bw]="SetWithKey";for(const i of e)this.add(i)}get size(){return this._map.size}add(e){const t=this.toKey(e);return this._map.set(t,e),this}delete(e){return this._map.delete(this.toKey(e))}has(e){return this._map.has(this.toKey(e))}*entries(){for(const e of this._map.values())yield[e,e]}keys(){return this.values()}*values(){for(const e of this._map.values())yield e}clear(){this._map.clear()}forEach(e,t){this._map.forEach(i=>e.call(t,i,i,this))}[Symbol.iterator](){return this.values()}}}});function uu(e,t){const i=this;let s=!1,r;return function(){if(s)return r;if(s=!0,t)try{r=e.apply(i,arguments)}finally{t()}else r=e.apply(i,arguments);return r}}var hu=y({"out-build/vs/base/common/functional.js"(){"use strict"}});function FC(e,t,i=0,s=e.length){let r=i,n=s;for(;r<n;){const o=Math.floor((r+n)/2);t(e[o])?r=o+1:n=o}return r-1}var UC,$C=y({"out-build/vs/base/common/arraysFind.js"(){"use strict";UC=class AI{static{this.assertInvariants=!1}constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(AI.assertInvariants){if(this._prevFindLastPredicate){for(const s of this._array)if(this._prevFindLastPredicate(s)&&!t(s))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const i=FC(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=i+1,i===-1?void 0:this._array[i]}}}});function Pr(e,t,i=(s,r)=>s===r){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let s=0,r=e.length;s<r;s++)if(!i(e[s],t[s]))return!1;return!0}function WC(e,t,i){return HC(e.length,s=>i(e[s],t))}function HC(e,t){let i=0,s=e-1;for(;i<=s;){const r=(i+s)/2|0,n=t(r);if(n<0)i=r+1;else if(n>0)s=r-1;else return r}return-(i+1)}function ts(e){return e.filter(t=>!!t)}function VC(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function du(e){return Array.isArray(e)&&e.length>0}function ks(e,t=i=>i){const i=new Set;return e.filter(s=>{const r=t(s);return i.has(r)?!1:(i.add(r),!0)})}function Sw(e,t){return e.push(t),()=>jC(e,t)}function jC(e,t){const i=e.indexOf(t);if(i>-1)return e.splice(i,1),t}function xw(e,t){let i;if(typeof t=="number"){let s=t;i=()=>{const r=Math.sin(s++)*179426549;return r-Math.floor(r)}}else i=Math.random;for(let s=e.length-1;s>0;s-=1){const r=Math.floor(i()*(s+1)),n=e[s];e[s]=e[r],e[r]=n}}function kw(e){return Array.isArray(e)?e:[e]}function BC(e){return e[Math.floor(Math.random()*e.length)]}function zC(e,t){return(i,s)=>t(e(i),e(s))}var zp,Pw,qC,kt=y({"out-build/vs/base/common/arrays.js"(){"use strict";$C(),ve(),(function(e){function t(n){return n<0}e.isLessThan=t;function i(n){return n<=0}e.isLessThanOrEqual=i;function s(n){return n>0}e.isGreaterThan=s;function r(n){return n===0}e.isNeitherLessOrGreaterThan=r,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(zp||(zp={})),Pw=(e,t)=>e-t,qC=class gp{static{this.empty=new gp(t=>{})}constructor(t){this.iterate=t}forEach(t){this.iterate(i=>(t(i),!0))}toArray(){const t=[];return this.iterate(i=>(t.push(i),!0)),t}filter(t){return new gp(i=>this.iterate(s=>t(s)?i(s):!0))}map(t){return new gp(i=>this.iterate(s=>i(t(s))))}some(t){let i=!1;return this.iterate(s=>(i=t(s),!i)),i}findFirst(t){let i;return this.iterate(s=>t(s)?(i=s,!1):!0),i}findLast(t){let i;return this.iterate(s=>(t(s)&&(i=s),!0)),i}findLastMaxBy(t){let i,s=!0;return this.iterate(r=>((s||zp.isGreaterThan(t(r,i)))&&(s=!1,i=r),!0)),i}}}});function GC(e){return Array.isArray(e)}var Iw,Cw,Dw,Rw,Pt,fu,Lw,Aw,Nw,Ma,Ow,ri=y({"out-build/vs/base/common/map.js"(){"use strict";Rw=class{constructor(e,t){this.uri=e,this.value=t}},Pt=class Ql{static{this.defaultToKey=t=>t.toString()}constructor(t,i){if(this[Iw]="ResourceMap",t instanceof Ql)this.map=new Map(t.map),this.toKey=i??Ql.defaultToKey;else if(GC(t)){this.map=new Map,this.toKey=i??Ql.defaultToKey;for(const[s,r]of t)this.set(s,r)}else this.map=new Map,this.toKey=t??Ql.defaultToKey}set(t,i){return this.map.set(this.toKey(t),new Rw(t,i)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,i){typeof i<"u"&&(t=t.bind(i));for(const[s,r]of this.map)t(r.value,r.uri,this)}*values(){for(const t of this.map.values())yield t.value}*keys(){for(const t of this.map.values())yield t.uri}*entries(){for(const t of this.map.values())yield[t.uri,t.value]}*[(Iw=Symbol.toStringTag,Symbol.iterator)](){for(const[,t]of this.map)yield[t.uri,t.value]}},fu=class{constructor(e,t){this[Cw]="ResourceSet",!e||typeof e=="function"?this._map=new Pt(e):(this._map=new Pt(t),e.forEach(this.add,this))}get size(){return this._map.size}add(e){return this._map.set(e,e),this}clear(){this._map.clear()}delete(e){return this._map.delete(e)}forEach(e,t){this._map.forEach((i,s)=>e.call(t,s,s,this))}has(e){return this._map.has(e)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(Cw=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},(function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"})(Lw||(Lw={})),Aw=class{constructor(){this[Dw]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return t!==0&&this.touch(i,t),i.value}set(e,t,i=0){let s=this._map.get(e);if(s)s.value=t,i!==0&&this.touch(s,i);else{switch(s={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(e,s),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let s=this._head;for(;s;){if(t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const e=this,t=this._state;let i=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==t)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 e=this,t=this._state;let i=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==t)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 e=this,t=this._state;let i=this._head;const s={[Symbol.iterator](){return s},next(){if(e._state!==t)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}[(Dw=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;const i=e.next,s=e.previous;e===this._tail?(s.next=void 0,this._tail=s):(i.previous=s,s.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;const i=e.next,s=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=s,s.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}},Nw=class extends Aw{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Ma=class extends Nw{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},Ow=class{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),i.size===0&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){const t=this.map.get(e);return t||new Set}}}});function qp(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function QC(e,t="unexpected state"){if(!e)throw typeof t=="string"?new Yy(`Assertion Failed: ${t}`):t}var Fa=y({"out-build/vs/base/common/assert.js"(){"use strict";ve()}});function ye(e){return typeof e=="string"}function ft(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function JC(e){const t=Object.getPrototypeOf(Uint8Array);return typeof e=="object"&&e instanceof t}function Ir(e){return typeof e=="number"&&!isNaN(e)}function XC(e){return!!e&&typeof e[Symbol.iterator]=="function"}function is(e){return e===!0||e===!1}function Ui(e){return typeof e>"u"}function Gp(e){return!It(e)}function It(e){return Ui(e)||e===null}function Qp(e){return QC(e!=null,"Argument is `undefined` or `null`."),e}function Jp(e){if(!ft(e))return!1;for(const t in e)if(Tw.call(e,t))return!1;return!0}function pu(e){return typeof e=="function"}function YC(e,t){if(ye(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(pu(t)){try{if(e instanceof t)return}catch{}if(!It(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var Tw,_e=y({"out-build/vs/base/common/types.js"(){"use strict";Fa(),Tw=Object.prototype.hasOwnProperty}}),Ps,hn=y({"out-build/vs/base/common/iterator.js"(){"use strict";_e(),(function(e){function t(D){return D&&typeof D=="object"&&typeof D[Symbol.iterator]=="function"}e.is=t;const i=Object.freeze([]);function s(){return i}e.empty=s;function*r(D){yield D}e.single=r;function n(D){return t(D)?D:r(D)}e.wrap=n;function o(D){return D||i}e.from=o;function*a(D){for(let T=D.length-1;T>=0;T--)yield D[T]}e.reverse=a;function c(D){return!D||D[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(D){return D[Symbol.iterator]().next().value}e.first=l;function u(D,T){let $=0;for(const ne of D)if(T(ne,$++))return!0;return!1}e.some=u;function h(D,T){for(const $ of D)if(T($))return $}e.find=h;function*f(D,T){for(const $ of D)T($)&&(yield $)}e.filter=f;function*p(D,T){let $=0;for(const ne of D)yield T(ne,$++)}e.map=p;function*g(D,T){let $=0;for(const ne of D)yield*T(ne,$++)}e.flatMap=g;function*v(...D){for(const T of D)XC(T)?yield*T:yield T}e.concat=v;function w(D,T,$){let ne=$;for(const N of D)ne=T(ne,N);return ne}e.reduce=w;function S(D){let T=0;for(const $ of D)T++;return T}e.length=S;function*E(D,T,$=D.length){for(T<-D.length&&(T=0),T<0&&(T+=D.length),$<0?$+=D.length:$>D.length&&($=D.length);T<$;T++)yield D[T]}e.slice=E;function P(D,T=Number.POSITIVE_INFINITY){const $=[];if(T===0)return[$,D];const ne=D[Symbol.iterator]();for(let N=0;N<T;N++){const pe=ne.next();if(pe.done)return[$,e.empty()];$.push(pe.value)}return[$,{[Symbol.iterator](){return ne}}]}e.consume=P;async function A(D){const T=[];for await(const $ of D)T.push($);return Promise.resolve(T)}e.asyncToArray=A})(Ps||(Ps={}))}});function ZC(e){dn=e}function Ua(e){return dn?.trackDisposable(e),e}function $a(e){dn?.markAsDisposed(e)}function Wa(e,t){dn?.setParent(e,t)}function KC(e,t){if(dn)for(const i of e)dn.setParent(i,t)}function Mw(e){return typeof e=="object"&&e!==null&&typeof e.dispose=="function"&&e.dispose.length===0}function Mt(e){if(Ps.is(e)){const t=[];for(const i of e)if(i)try{i.dispose()}catch(s){t.push(s)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Fw(...e){const t=Se(()=>Mt(e));return KC(e,t),t}function Se(e){const t=Ua({dispose:uu(()=>{$a(t),e()})});return t}var Uw,dn,eD,ct,G,Ha,mu,V=y({"out-build/vs/base/common/lifecycle.js"(){"use strict";if(kt(),Ew(),ri(),hu(),hn(),Uw=!1,dn=null,eD=class NI{constructor(){this.livingDisposables=new Map}static{this.idx=0}getDisposableData(t){let i=this.livingDisposables.get(t);return i||(i={parent:null,source:null,isSingleton:!1,value:t,idx:NI.idx++},this.livingDisposables.set(t,i)),i}trackDisposable(t){const i=this.getDisposableData(t);i.source||(i.source=new Error().stack)}setParent(t,i){const s=this.getDisposableData(t);s.parent=i}markAsDisposed(t){this.livingDisposables.delete(t)}markAsSingleton(t){this.getDisposableData(t).isSingleton=!0}getRootParent(t,i){const s=i.get(t);if(s)return s;const r=t.parent?this.getRootParent(this.getDisposableData(t.parent),i):t;return i.set(t,r),r}getTrackedDisposables(){const t=new Map;return[...this.livingDisposables.entries()].filter(([,s])=>s.source!==null&&!this.getRootParent(s,t).isSingleton).flatMap(([s])=>s)}computeLeakingDisposables(t=10,i){let s;if(i)s=i;else{const c=new Map,l=[...this.livingDisposables.values()].filter(h=>h.source!==null&&!this.getRootParent(h,c).isSingleton);if(l.length===0)return;const u=new Set(l.map(h=>h.value));if(s=l.filter(h=>!(h.parent&&u.has(h.parent))),s.length===0)throw new Error("There are cyclic diposable chains!")}if(!s)return;function r(c){function l(h,f){for(;h.length>0&&f.some(p=>typeof p=="string"?p===h[0]:h[0].match(p));)h.shift()}const u=c.source.split(`
`).map(h=>h.trim().replace("at ","")).filter(h=>h!=="");return l(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}const n=new Ow;for(const c of s){const l=r(c);for(let u=0;u<=l.length;u++)n.add(l.slice(0,u).join(`
`),c)}s.sort(zC(c=>c.idx,Pw));let o="",a=0;for(const c of s.slice(0,t)){a++;const l=r(c),u=[];for(let h=0;h<l.length;h++){let f=l[h];f=`(shared with ${n.get(l.slice(0,h+1).join(`
`)).size}/${s.length} leaks) at ${f}`;const g=n.get(l.slice(0,h).join(`
`)),v=TC([...g].map(w=>r(w)[h]),w=>w);delete v[l[h]];for(const[w,S]of Object.entries(v))u.unshift(` - stacktraces of ${S.length} other leaks continue with ${w}`);u.unshift(f)}o+=`
==================== Leaking disposable ${a}/${s.length}: ${c.value.constructor.name} ====================
${u.join(`
`)}
============================================================
`}return s.length>t&&(o+=`
... and ${s.length-t} more leaking disposables
`),{leaks:s,details:o}}},Uw){const e="__is_disposable_tracked__";ZC(new class{trackDisposable(t){const i=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(i)},3e3)}setParent(t,i){if(t&&t!==G.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==G.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}ct=class OI{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,Ua(this)}dispose(){this._isDisposed||($a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Mt(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Wa(t,this),this._isDisposed?OI.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(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),Wa(t,null))}},G=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new ct,Ua(this),Wa(this._store,this)}dispose(){$a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},Ha=class{constructor(){this._isDisposed=!1,Ua(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&Wa(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,$a(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&Wa(e,null),e}},mu=class{constructor(){this._store=new Map,this._isDisposed=!1,Ua(this)}dispose(){$a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Mt(this._store.values())}finally{this._store.clear()}}has(e){return this._store.has(e)}get size(){return this._store.size}get(e){return this._store.get(e)}set(e,t,i=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}deleteAndLeak(e){const t=this._store.get(e);return this._store.delete(e),t}keys(){return this._store.keys()}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}}}}),ot,Xp,$w=y({"out-build/vs/base/common/linkedList.js"(){"use strict";ot=class vp{static{this.Undefined=new vp(void 0)}constructor(t){this.element=t,this.next=vp.Undefined,this.prev=vp.Undefined}},Xp=class{constructor(){this._first=ot.Undefined,this._last=ot.Undefined,this._size=0}get size(){return this._size}get first(){return this._first}isEmpty(){return this._first===ot.Undefined}clear(){let e=this._first;for(;e!==ot.Undefined;){const t=e.next;e.prev=ot.Undefined,e.next=ot.Undefined,e=t}this._first=ot.Undefined,this._last=ot.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new ot(e);if(this._first===ot.Undefined)this._first=i,this._last=i;else if(t){const r=this._last;this._last=i,i.prev=r,r.next=i}else{const r=this._first;this._first=i,i.next=r,r.prev=i}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(i))}}shift(){if(this._first!==ot.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ot.Undefined){const e=this._last.element;return this._remove(this._last),e}}remove(e){this._remove(e)}_remove(e){if(e.prev!==ot.Undefined&&e.next!==ot.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ot.Undefined&&e.next===ot.Undefined?(this._first=ot.Undefined,this._last=ot.Undefined):e.next===ot.Undefined?(this._last=this._last.prev,this._last.next=ot.Undefined):e.prev===ot.Undefined&&(this._first=this._first.next,this._first.prev=ot.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ot.Undefined;)yield e.element,e=e.next}}}}),Ww,Qs,so=y({"out-build/vs/base/common/stopwatch.js"(){"use strict";Ww=globalThis.performance&&typeof globalThis.performance.now=="function",Qs=class TI{static create(t){return new TI(t)}constructor(t){this._now=Ww&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}}}),Yp,Hw,z,Vw,Zp,jw,gu,Bw,zw,qw,Va,Gw,Qw,R,Jw,vu,Xw,Kp,ie=y({"out-build/vs/base/common/event.js"(){"use strict";Ew(),ve(),hu(),V(),$w(),so(),Yp=!1,Hw=!1,(function(e){e.None=()=>G.None;function t(C){if(Hw){const{onDidAddListener:L}=C,F=gu.create();let M=0;C.onDidAddListener=()=>{++M===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),F.print()),L?.()}}}function i(C,L){return p(C,()=>{},0,void 0,!0,void 0,L)}e.defer=i;function s(C){return(L,F=null,M)=>{let J=!1,ae;return ae=C(Pe=>{if(!J)return ae?ae.dispose():J=!0,L.call(F,Pe)},null,M),J&&ae.dispose(),ae}}e.once=s;function r(C,L){return e.once(e.filter(C,L))}e.onceIf=r;function n(C,L,F){return h((M,J=null,ae)=>C(Pe=>M.call(J,L(Pe)),null,ae),F)}e.map=n;function o(C,L,F){return h((M,J=null,ae)=>C(Pe=>{L(Pe),M.call(J,Pe)},null,ae),F)}e.forEach=o;function a(C,L,F){return h((M,J=null,ae)=>C(Pe=>L(Pe)&&M.call(J,Pe),null,ae),F)}e.filter=a;function c(C){return C}e.signal=c;function l(...C){return(L,F=null,M)=>{const J=Fw(...C.map(ae=>ae(Pe=>L.call(F,Pe))));return f(J,M)}}e.any=l;function u(C,L,F,M){let J=F;return n(C,ae=>(J=L(J,ae),J),M)}e.reduce=u;function h(C,L){let F;const M={onWillAddFirstListener(){F=C(J.fire,J)},onDidRemoveLastListener(){F?.dispose()}};L||t(M);const J=new R(M);return L?.add(J),J.event}function f(C,L){return L instanceof Array?L.push(C):L&&L.add(C),C}function p(C,L,F=100,M=!1,J=!1,ae,Pe){let Ze,Ke,ii,on=0,Bs;const Zn={leakWarningThreshold:ae,onWillAddFirstListener(){Ze=C(tu=>{on++,Ke=L(Ke,tu),M&&!ii&&(ys.fire(Ke),Ke=void 0),Bs=()=>{const iu=Ke;Ke=void 0,ii=void 0,(!M||on>1)&&ys.fire(iu),on=0},typeof F=="number"?(clearTimeout(ii),ii=setTimeout(Bs,F)):ii===void 0&&(ii=0,queueMicrotask(Bs))})},onWillRemoveListener(){J&&on>0&&Bs?.()},onDidRemoveLastListener(){Bs=void 0,Ze.dispose()}};Pe||t(Zn);const ys=new R(Zn);return Pe?.add(ys),ys.event}e.debounce=p;function g(C,L=0,F){return e.debounce(C,(M,J)=>M?(M.push(J),M):[J],L,void 0,!0,void 0,F)}e.accumulate=g;function v(C,L=(M,J)=>M===J,F){let M=!0,J;return a(C,ae=>{const Pe=M||!L(ae,J);return M=!1,J=ae,Pe},F)}e.latch=v;function w(C,L,F){return[e.filter(C,L,F),e.filter(C,M=>!L(M),F)]}e.split=w;function S(C,L=!1,F=[],M){let J=F.slice(),ae=C(Ke=>{J?J.push(Ke):Ze.fire(Ke)});M&&M.add(ae);const Pe=()=>{J?.forEach(Ke=>Ze.fire(Ke)),J=null},Ze=new R({onWillAddFirstListener(){ae||(ae=C(Ke=>Ze.fire(Ke)),M&&M.add(ae))},onDidAddFirstListener(){J&&(L?setTimeout(Pe):Pe())},onDidRemoveLastListener(){ae&&ae.dispose(),ae=null}});return M&&M.add(Ze),Ze.event}e.buffer=S;function E(C,L){return(M,J,ae)=>{const Pe=L(new A);return C(function(Ze){const Ke=Pe.evaluate(Ze);Ke!==P&&M.call(J,Ke)},void 0,ae)}}e.chain=E;const P=Symbol("HaltChainable");class A{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(F=>(L(F),F)),this}filter(L){return this.steps.push(F=>L(F)?F:P),this}reduce(L,F){let M=F;return this.steps.push(J=>(M=L(M,J),M)),this}latch(L=(F,M)=>F===M){let F=!0,M;return this.steps.push(J=>{const ae=F||!L(J,M);return F=!1,M=J,ae?J:P}),this}evaluate(L){for(const F of this.steps)if(L=F(L),L===P)break;return L}}function D(C,L,F=M=>M){const M=(...Ze)=>Pe.fire(F(...Ze)),J=()=>C.on(L,M),ae=()=>C.removeListener(L,M),Pe=new R({onWillAddFirstListener:J,onDidRemoveLastListener:ae});return Pe.event}e.fromNodeEventEmitter=D;function T(C,L,F=M=>M){const M=(...Ze)=>Pe.fire(F(...Ze)),J=()=>C.addEventListener(L,M),ae=()=>C.removeEventListener(L,M),Pe=new R({onWillAddFirstListener:J,onDidRemoveLastListener:ae});return Pe.event}e.fromDOMEventEmitter=T;function $(C,L){return new Promise(F=>s(C)(F,null,L))}e.toPromise=$;function ne(C){const L=new R;return C.then(F=>{L.fire(F)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}e.fromPromise=ne;function N(C,L){return C(F=>L.fire(F))}e.forward=N;function pe(C,L,F){return L(F),C(M=>L(M))}e.runAndSubscribe=pe;class at{constructor(L,F){this._observable=L,this._counter=0,this._hasChanged=!1;const M={onWillAddFirstListener:()=>{L.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{L.removeObserver(this)}};F||t(M),this.emitter=new R(M),F&&F.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,F){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function q(C,L){return new at(C,L).emitter.event}e.fromObservable=q;function Ge(C){return(L,F,M)=>{let J=0,ae=!1;const Pe={beginUpdate(){J++},endUpdate(){J--,J===0&&(C.reportChanges(),ae&&(ae=!1,L.call(F)))},handlePossibleChange(){},handleChange(){ae=!0}};C.addObserver(Pe),C.reportChanges();const Ze={dispose(){C.removeObserver(Pe)}};return M instanceof ct?M.add(Ze):Array.isArray(M)&&M.push(Ze),Ze}}e.fromObservableLight=Ge})(z||(z={})),Vw=class Ey{static{this.all=new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Ey._idPool++}`,Ey.all.add(this)}start(t){this._stopWatch=new Qs,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}},Zp=-1,jw=class MI{static{this._idPool=1}constructor(t,i,s=(MI._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=i,this.name=s,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,i){const s=this.threshold;if(s<=0||i<s)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=s*.5;const[n,o]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${o}):`;console.warn(a),console.warn(n);const c=new Bw(a,n);this._errorHandler(c)}return()=>{const n=this._stacks.get(t.value)||0;this._stacks.set(t.value,n-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,i=0;for(const[s,r]of this._stacks)(!t||i<r)&&(t=[s,r],i=r);return t}},gu=class FI{static create(){const t=new Error;return new FI(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},Bw=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},zw=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},qw=0,Va=class{constructor(e){this.value=e,this.id=qw++}},Gw=2,Qw=(e,t)=>{if(e instanceof Va)t(e);else for(let i=0;i<e.length;i++){const s=e[i];s&&t(s)}},R=class{constructor(e){this._size=0,this._options=e,this._leakageMon=Zp>0||this._options?.leakWarningThreshold?new jw(e?.onListenerError??Qt,this._options?.leakWarningThreshold??Zp):void 0,this._perfMon=this._options?._profName?new Vw(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(Yp){const e=this._listeners;queueMicrotask(()=>{Qw(e,t=>t.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);const c=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],l=new zw(`${a}. HINT: Stack shows most frequent listener (${c[1]}-times)`,c[0]);return(this._options?.onListenerError||Qt)(l),G.None}if(this._disposed)return G.None;t&&(e=e.bind(t));const s=new Va(e);let r,n;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=gu.create(),r=this._leakageMon.check(s.stack,this._size+1)),Yp&&(s.stack=n??gu.create()),this._listeners?this._listeners instanceof Va?(this._deliveryQueue??=new Jw,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const o=Se(()=>{r?.(),this._removeListener(s)});return i instanceof ct?i.add(o):Array.isArray(i)&&i.push(o),o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const t=this._listeners,i=t.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[i]=void 0;const s=this._deliveryQueue.current===this;if(this._size*Gw<=t.length){let r=0;for(let n=0;n<t.length;n++)t[n]?t[r++]=t[n]:s&&r<this._deliveryQueue.end&&(this._deliveryQueue.end--,r<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=r}}_deliver(e,t){if(!e)return;const i=this._options?.onListenerError||Qt;if(!i){e.value(t);return}try{e.value(t)}catch(s){i(s)}}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Va)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},Jw=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},vu=class extends R{get isPaused(){return this._isPaused!==0}constructor(e){super(e),this._isPaused=0,this._eventQueue=new Xp,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}},Xw=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new R({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),Se(uu(()=>{this.hasListeners&&this.unhook(t);const s=this.events.indexOf(t);this.events.splice(s,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}},Kp=class{constructor(){this.listening=!1,this.inputEvent=z.None,this.inputEventListener=G.None,this.emitter=new R({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}}}),em,Me,ja,Is,Ft=y({"out-build/vs/base/common/cancellation.js"(){"use strict";ie(),em=Object.freeze(function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}),(function(e){function t(i){return i===e.None||i===e.Cancelled||i instanceof ja?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:z.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:em})})(Me||(Me={})),ja=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?em:(this._emitter||(this._emitter=new R),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Is=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ja),this._token}cancel(){this._token?this._token instanceof ja&&this._token.cancel():this._token=Me.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof ja&&this._token.dispose():this._token=Me.None}}}});function tD(e){return e}var Yw,iD=y({"out-build/vs/base/common/cache.js"(){"use strict";Ft(),Yw=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=tD):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}}}),Cr,Ba=y({"out-build/vs/base/common/lazy.js"(){"use strict";Cr=class{constructor(e){this.executor=e,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}}});function sD(e){return!e||typeof e!="string"?!0:e.trim().length===0}function ro(e,t){return Object.keys(t).length===0?e:e.replace(t_,(i,s)=>t[s]??i)}function Dr(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function rD(e,t){if(!e||!t)return e;const i=t.length;if(i===0||e.length===0)return e;let s=0;for(;e.indexOf(t,s)===s;)s=s+i;return e.substring(s)}function tm(e,t){if(!e||!t)return e;const i=t.length,s=e.length;if(i===0||s===0)return e;let r=s,n=-1;for(;n=e.lastIndexOf(t,r-1),!(n===-1||n+i!==r);){if(n===0)return"";r=n}return e.substring(0,r)}function nD(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=Dr(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let s="";return i.global&&(s+="g"),i.matchCase||(s+="i"),i.multiline&&(s+="m"),i.unicode&&(s+="u"),new RegExp(e,s)}function im(e,t){return e<t?-1:e>t?1:0}function sm(e,t,i=0,s=e.length,r=0,n=t.length){for(;i<s&&r<n;i++,r++){const c=e.charCodeAt(i),l=t.charCodeAt(r);if(c<l)return-1;if(c>l)return 1}const o=s-i,a=n-r;return o<a?-1:o>a?1:0}function yu(e,t){return za(e,t,0,e.length,0,t.length)}function za(e,t,i=0,s=e.length,r=0,n=t.length){for(;i<s&&r<n;i++,r++){let c=e.charCodeAt(i),l=t.charCodeAt(r);if(c===l)continue;if(c>=128||l>=128)return sm(e.toLowerCase(),t.toLowerCase(),i,s,r,n);Zw(c)&&(c-=32),Zw(l)&&(l-=32);const u=c-l;if(u!==0)return u}const o=s-i,a=n-r;return o<a?-1:o>a?1:0}function Zw(e){return e>=97&&e<=122}function Kw(e){return e>=65&&e<=90}function fn(e,t){return e.length===t.length&&za(e,t)===0}function rm(e,t){const i=t.length;return t.length>e.length?!1:za(e,t,0,i)===0}function oD(e){return 55296<=e&&e<=56319}function e_(e){return 56320<=e&&e<=57343}function aD(e,t){return(e-55296<<10)+(t-56320)+65536}function cD(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var t_,i_,s_,r_,lD,uD,n_,hD,o_,dD,fD,lt=y({"out-build/vs/base/common/strings.js"(){"use strict";iD(),Ba(),t_=/{([^}]+)}/g,i_=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,s_=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,r_=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,lD=new RegExp("(?:"+[i_.source,s_.source,r_.source].join("|")+")","g"),uD="\uFEFF",(function(e){e[e.Other=0]="Other",e[e.Prepend=1]="Prepend",e[e.CR=2]="CR",e[e.LF=3]="LF",e[e.Control=4]="Control",e[e.Extend=5]="Extend",e[e.Regional_Indicator=6]="Regional_Indicator",e[e.SpacingMark=7]="SpacingMark",e[e.L=8]="L",e[e.V=9]="V",e[e.T=10]="T",e[e.LV=11]="LV",e[e.LVT=12]="LVT",e[e.ZWJ=13]="ZWJ",e[e.Extended_Pictographic=14]="Extended_Pictographic"})(n_||(n_={})),hD=class Jl{static{this._INSTANCE=null}static getInstance(){return Jl._INSTANCE||(Jl._INSTANCE=new Jl),Jl._INSTANCE}constructor(){this._data=cD()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;const i=this._data,s=i.length/3;let r=1;for(;r<=s;)if(t<i[3*r])r=2*r;else if(t>i[3*r+1])r=2*r+1;else return i[3*r+2];return 0}},(function(e){e[e.zwj=8205]="zwj",e[e.emojiVariantSelector=65039]="emojiVariantSelector",e[e.enclosingKeyCap=8419]="enclosingKeyCap",e[e.space=32]="space"})(o_||(o_={})),dD=class Xl{static{this.ambiguousCharacterData=new Cr(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.cache=new Yw({getCacheKey:JSON.stringify},t=>{function i(u){const h=new Map;for(let f=0;f<u.length;f+=2)h.set(u[f],u[f+1]);return h}function s(u,h){const f=new Map(u);for(const[p,g]of h)f.set(p,g);return f}function r(u,h){if(!u)return h;const f=new Map;for(const[p,g]of u)h.has(p)&&f.set(p,g);return f}const n=this.ambiguousCharacterData.value;let o=t.filter(u=>!u.startsWith("_")&&u in n);o.length===0&&(o=["_default"]);let a;for(const u of o){const h=i(n[u]);a=r(a,h)}const c=i(n._common),l=s(c,a);return new Xl(l)})}static getInstance(t){return Xl.cache.get(Array.from(t))}static{this._locales=new Cr(()=>Object.keys(Xl.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")))}static getLocales(){return Xl._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}containsAmbiguousCharacter(t){for(let i=0;i<t.length;i++){const s=t.codePointAt(i);if(typeof s=="number"&&this.isAmbiguous(s))return!0}return!1}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},fD=class Yl{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(Yl.getRawData())].flat())),this._data}static isInvisibleCharacter(t){return Yl.getData().has(t)}static containsInvisibleCharacter(t){for(let i=0;i<t.length;i++){const s=t.codePointAt(i);if(typeof s=="number"&&(Yl.isInvisibleCharacter(s)||s===32))return!0}return!1}static get codePoints(){return Yl.getData()}}}}),pn,wu,Js,$i,nm,om,ss=y({"out-build/vs/base/common/process.js"(){"use strict";if(K(),wu=globalThis.vscode,typeof wu<"u"&&typeof wu.process<"u"){const e=wu.process;pn={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?pn={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:pn={get platform(){return he?"win32":Li?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};Js=pn.cwd,$i=pn.env,nm=pn.platform,om=pn.arch}});function pD(e,t){if(e===null||typeof e!="object")throw new cm(t,"Object",e)}function pt(e,t){if(typeof e!="string")throw new cm(t,"string",e)}function me(e){return e===At||e===ni}function am(e){return e===At}function Xs(e){return e>=c_&&e<=u_||e>=l_&&e<=h_}function _u(e,t,i,s){let r="",n=0,o=-1,a=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else{if(s(c))break;c=At}if(s(c)){if(!(o===l-1||a===1))if(a===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==Rr||r.charCodeAt(r.length-2)!==Rr){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=l,a=0;continue}else if(r.length!==0){r="",n=0,o=l,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",n=2)}else r.length>0?r+=`${i}${e.slice(o+1,l)}`:r=e.slice(o+1,l),n=l-o-1;o=l,a=0}else c===Rr&&a!==-1?++a:a=-1}return r}function mD(e){return e?`${e[0]==="."?"":"."}${e}`:""}function a_(e,t){pD(t,"pathObject");const i=t.dir||t.root,s=t.base||`${t.name||""}${mD(t.ext)}`;return i?i===t.root?`${i}${s}`:`${i}${e}${s}`:s}var c_,l_,u_,h_,Rr,At,ni,Cs,d_,cm,oi,mt,f_,Ee,Wi,mn,W,Ys,qa,Vt,ut,gn,gD,vD,yD,jt,Ga,de=y({"out-build/vs/base/common/path.js"(){"use strict";ss(),c_=65,l_=97,u_=90,h_=122,Rr=46,At=47,ni=92,Cs=58,d_=63,cm=class extends Error{constructor(e,t,i){let s;typeof t=="string"&&t.indexOf("not ")===0?(s="must not be",t=t.replace(/^not /,"")):s="must be";const r=e.indexOf(".")!==-1?"property":"argument";let n=`The "${e}" ${r} ${s} of type ${t}`;n+=`. Received type ${typeof i}`,super(n),this.code="ERR_INVALID_ARG_TYPE"}},oi=nm==="win32",mt={resolve(...e){let t="",i="",s=!1;for(let r=e.length-1;r>=-1;r--){let n;if(r>=0){if(n=e[r],pt(n,`paths[${r}]`),n.length===0)continue}else t.length===0?n=Js():(n=$i[`=${t}`]||Js(),(n===void 0||n.slice(0,2).toLowerCase()!==t.toLowerCase()&&n.charCodeAt(2)===ni)&&(n=`${t}\\`));const o=n.length;let a=0,c="",l=!1;const u=n.charCodeAt(0);if(o===1)me(u)&&(a=1,l=!0);else if(me(u))if(l=!0,me(n.charCodeAt(1))){let h=2,f=h;for(;h<o&&!me(n.charCodeAt(h));)h++;if(h<o&&h!==f){const p=n.slice(f,h);for(f=h;h<o&&me(n.charCodeAt(h));)h++;if(h<o&&h!==f){for(f=h;h<o&&!me(n.charCodeAt(h));)h++;(h===o||h!==f)&&(c=`\\\\${p}\\${n.slice(f,h)}`,a=h)}}}else a=1;else Xs(u)&&n.charCodeAt(1)===Cs&&(c=n.slice(0,2),a=2,o>2&&me(n.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(s){if(t.length>0)break}else if(i=`${n.slice(a)}\\${i}`,s=l,l&&t.length>0)break}return i=_u(i,!s,"\\",me),s?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){pt(e,"path");const t=e.length;if(t===0)return".";let i=0,s,r=!1;const n=e.charCodeAt(0);if(t===1)return am(n)?"\\":e;if(me(n))if(r=!0,me(e.charCodeAt(1))){let a=2,c=a;for(;a<t&&!me(e.charCodeAt(a));)a++;if(a<t&&a!==c){const l=e.slice(c,a);for(c=a;a<t&&me(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&!me(e.charCodeAt(a));)a++;if(a===t)return`\\\\${l}\\${e.slice(c)}\\`;a!==c&&(s=`\\\\${l}\\${e.slice(c,a)}`,i=a)}}}else i=1;else Xs(n)&&e.charCodeAt(1)===Cs&&(s=e.slice(0,2),i=2,t>2&&me(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?_u(e.slice(i),!r,"\\",me):"";if(o.length===0&&!r&&(o="."),o.length>0&&me(e.charCodeAt(t-1))&&(o+="\\"),!r&&s===void 0&&e.includes(":")){if(o.length>=2&&Xs(o.charCodeAt(0))&&o.charCodeAt(1)===Cs)return`.\\${o}`;let a=e.indexOf(":");do if(a===t-1||me(e.charCodeAt(a+1)))return`.\\${o}`;while((a=e.indexOf(":",a+1))!==-1)}return s===void 0?r?`\\${o}`:o:r?`${s}\\${o}`:`${s}${o}`},isAbsolute(e){pt(e,"path");const t=e.length;if(t===0)return!1;const i=e.charCodeAt(0);return me(i)||t>2&&Xs(i)&&e.charCodeAt(1)===Cs&&me(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,i;for(let n=0;n<e.length;++n){const o=e[n];pt(o,"path"),o.length>0&&(t===void 0?t=i=o:t+=`\\${o}`)}if(t===void 0)return".";let s=!0,r=0;if(typeof i=="string"&&me(i.charCodeAt(0))){++r;const n=i.length;n>1&&me(i.charCodeAt(1))&&(++r,n>2&&(me(i.charCodeAt(2))?++r:s=!1))}if(s){for(;r<t.length&&me(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return mt.normalize(t)},relative(e,t){if(pt(e,"from"),pt(t,"to"),e===t)return"";const i=mt.resolve(e),s=mt.resolve(t);if(i===s||(e=i.toLowerCase(),t=s.toLowerCase(),e===t))return"";if(i.length!==e.length||s.length!==t.length){const g=i.split("\\"),v=s.split("\\");g[g.length-1]===""&&g.pop(),v[v.length-1]===""&&v.pop();const w=g.length,S=v.length,E=w<S?w:S;let P;for(P=0;P<E&&g[P].toLowerCase()===v[P].toLowerCase();P++);return P===0?s:P===E?S>E?v.slice(P).join("\\"):w>E?"..\\".repeat(w-1-P)+"..":"":"..\\".repeat(w-P)+v.slice(P).join("\\")}let r=0;for(;r<e.length&&e.charCodeAt(r)===ni;)r++;let n=e.length;for(;n-1>r&&e.charCodeAt(n-1)===ni;)n--;const o=n-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===ni;)a++;let c=t.length;for(;c-1>a&&t.charCodeAt(c-1)===ni;)c--;const l=c-a,u=o<l?o:l;let h=-1,f=0;for(;f<u;f++){const g=e.charCodeAt(r+f);if(g!==t.charCodeAt(a+f))break;g===ni&&(h=f)}if(f!==u){if(h===-1)return s}else{if(l>u){if(t.charCodeAt(a+f)===ni)return s.slice(a+f+1);if(f===2)return s.slice(a+f)}o>u&&(e.charCodeAt(r+f)===ni?h=f:f===2&&(h=3)),h===-1&&(h=0)}let p="";for(f=r+h+1;f<=n;++f)(f===n||e.charCodeAt(f)===ni)&&(p+=p.length===0?"..":"\\..");return a+=h,p.length>0?`${p}${s.slice(a,c)}`:(s.charCodeAt(a)===ni&&++a,s.slice(a,c))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=mt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ni){if(t.charCodeAt(1)===ni){const i=t.charCodeAt(2);if(i!==d_&&i!==Rr)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Xs(t.charCodeAt(0))&&t.charCodeAt(1)===Cs&&t.charCodeAt(2)===ni)return`\\\\?\\${t}`;return t},dirname(e){pt(e,"path");const t=e.length;if(t===0)return".";let i=-1,s=0;const r=e.charCodeAt(0);if(t===1)return me(r)?e:".";if(me(r)){if(i=s=1,me(e.charCodeAt(1))){let a=2,c=a;for(;a<t&&!me(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&me(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&!me(e.charCodeAt(a));)a++;if(a===t)return e;a!==c&&(i=s=a+1)}}}}else Xs(r)&&e.charCodeAt(1)===Cs&&(i=t>2&&me(e.charCodeAt(2))?3:2,s=i);let n=-1,o=!0;for(let a=t-1;a>=s;--a)if(me(e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;if(n===-1){if(i===-1)return".";n=i}return e.slice(0,n)},basename(e,t){t!==void 0&&pt(t,"suffix"),pt(e,"path");let i=0,s=-1,r=!0,n;if(e.length>=2&&Xs(e.charCodeAt(0))&&e.charCodeAt(1)===Cs&&(i=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const c=e.charCodeAt(n);if(me(c)){if(!r){i=n+1;break}}else a===-1&&(r=!1,a=n+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(s=n):(o=-1,s=a))}return i===s?s=a:s===-1&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=i;--n)if(me(e.charCodeAt(n))){if(!r){i=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":e.slice(i,s)},extname(e){pt(e,"path");let t=0,i=-1,s=0,r=-1,n=!0,o=0;e.length>=2&&e.charCodeAt(1)===Cs&&Xs(e.charCodeAt(0))&&(t=s=2);for(let a=e.length-1;a>=t;--a){const c=e.charCodeAt(a);if(me(c)){if(!n){s=a+1;break}continue}r===-1&&(n=!1,r=a+1),c===Rr?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?"":e.slice(i,r)},format:a_.bind(null,"\\"),parse(e){pt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const i=e.length;let s=0,r=e.charCodeAt(0);if(i===1)return me(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(me(r)){if(s=1,me(e.charCodeAt(1))){let h=2,f=h;for(;h<i&&!me(e.charCodeAt(h));)h++;if(h<i&&h!==f){for(f=h;h<i&&me(e.charCodeAt(h));)h++;if(h<i&&h!==f){for(f=h;h<i&&!me(e.charCodeAt(h));)h++;h===i?s=h:h!==f&&(s=h+1)}}}}else if(Xs(r)&&e.charCodeAt(1)===Cs){if(i<=2)return t.root=t.dir=e,t;if(s=2,me(e.charCodeAt(2))){if(i===3)return t.root=t.dir=e,t;s=3}}s>0&&(t.root=e.slice(0,s));let n=-1,o=s,a=-1,c=!0,l=e.length-1,u=0;for(;l>=s;--l){if(r=e.charCodeAt(l),me(r)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),r===Rr?n===-1?n=l:u!==1&&(u=1):n!==-1&&(u=-1)}return a!==-1&&(n===-1||u===0||u===1&&n===a-1&&n===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,n),t.base=e.slice(o,a),t.ext=e.slice(n,a))),o>0&&o!==s?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},f_=(()=>{if(oi){const e=/\\/g;return()=>{const t=Js().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Js()})(),Ee={resolve(...e){let t="",i=!1;for(let s=e.length-1;s>=0&&!i;s--){const r=e[s];pt(r,`paths[${s}]`),r.length!==0&&(t=`${r}/${t}`,i=r.charCodeAt(0)===At)}if(!i){const s=f_();t=`${s}/${t}`,i=s.charCodeAt(0)===At}return t=_u(t,!i,"/",am),i?`/${t}`:t.length>0?t:"."},normalize(e){if(pt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===At,i=e.charCodeAt(e.length-1)===At;return e=_u(e,!t,"/",am),e.length===0?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return pt(e,"path"),e.length>0&&e.charCodeAt(0)===At},join(...e){if(e.length===0)return".";const t=[];for(let i=0;i<e.length;++i){const s=e[i];pt(s,"path"),s.length>0&&t.push(s)}return t.length===0?".":Ee.normalize(t.join("/"))},relative(e,t){if(pt(e,"from"),pt(t,"to"),e===t||(e=Ee.resolve(e),t=Ee.resolve(t),e===t))return"";const i=1,s=e.length,r=s-i,n=1,o=t.length-n,a=r<o?r:o;let c=-1,l=0;for(;l<a;l++){const h=e.charCodeAt(i+l);if(h!==t.charCodeAt(n+l))break;h===At&&(c=l)}if(l===a)if(o>a){if(t.charCodeAt(n+l)===At)return t.slice(n+l+1);if(l===0)return t.slice(n+l)}else r>a&&(e.charCodeAt(i+l)===At?c=l:l===0&&(c=0));let u="";for(l=i+c+1;l<=s;++l)(l===s||e.charCodeAt(l)===At)&&(u+=u.length===0?"..":"/..");return`${u}${t.slice(n+c)}`},toNamespacedPath(e){return e},dirname(e){if(pt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===At;let i=-1,s=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===At){if(!s){i=r;break}}else s=!1;return i===-1?t?"/":".":t&&i===1?"//":e.slice(0,i)},basename(e,t){t!==void 0&&pt(t,"suffix"),pt(e,"path");let i=0,s=-1,r=!0,n;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const c=e.charCodeAt(n);if(c===At){if(!r){i=n+1;break}}else a===-1&&(r=!1,a=n+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(s=n):(o=-1,s=a))}return i===s?s=a:s===-1&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===At){if(!r){i=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":e.slice(i,s)},extname(e){pt(e,"path");let t=-1,i=0,s=-1,r=!0,n=0;for(let o=e.length-1;o>=0;--o){const a=e[o];if(a==="/"){if(!r){i=o+1;break}continue}s===-1&&(r=!1,s=o+1),a==="."?t===-1?t=o:n!==1&&(n=1):t!==-1&&(n=-1)}return t===-1||s===-1||n===0||n===1&&t===s-1&&t===i+1?"":e.slice(t,s)},format:a_.bind(null,"/"),parse(e){pt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const i=e.charCodeAt(0)===At;let s;i?(t.root="/",s=1):s=0;let r=-1,n=0,o=-1,a=!0,c=e.length-1,l=0;for(;c>=s;--c){const u=e.charCodeAt(c);if(u===At){if(!a){n=c+1;break}continue}o===-1&&(a=!1,o=c+1),u===Rr?r===-1?r=c:l!==1&&(l=1):r!==-1&&(l=-1)}if(o!==-1){const u=n===0&&i?1:n;r===-1||l===0||l===1&&r===o-1&&r===n+1?t.base=t.name=e.slice(u,o):(t.name=e.slice(u,r),t.base=e.slice(u,o),t.ext=e.slice(r,o))}return n>0?t.dir=e.slice(0,n-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},Ee.win32=mt.win32=mt,Ee.posix=mt.posix=Ee,Wi=oi?mt.normalize:Ee.normalize,mn=oi?mt.isAbsolute:Ee.isAbsolute,W=oi?mt.join:Ee.join,Ys=oi?mt.resolve:Ee.resolve,qa=oi?mt.relative:Ee.relative,Vt=oi?mt.dirname:Ee.dirname,ut=oi?mt.basename:Ee.basename,gn=oi?mt.extname:Ee.extname,gD=oi?mt.format:Ee.format,vD=oi?mt.parse:Ee.parse,yD=oi?mt.toNamespacedPath:Ee.toNamespacedPath,jt=oi?mt.sep:Ee.sep,Ga=oi?mt.delimiter:Ee.delimiter}});function bu(e){const t=e;return t?[t.on,t.pause,t.resume,t.destroy].every(i=>typeof i=="function"):!1}function lm(e){const t=e;return t?bu(t.stream)&&Array.isArray(t.buffer)&&typeof t.ended=="boolean":!1}function Eu(e,t){return new g_(e,t)}function wD(e,t){const i=[];let s;for(;(s=e.read())!==null;)i.push(s);return t(i)}function _D(e,t,i){const s=[];let r;for(;(r=e.read())!==null&&s.length<i;)s.push(r);return r===null&&s.length>0?t(s):{read:()=>{if(s.length>0)return s.shift();if(typeof r<"u"){const n=r;return r=void 0,n}return e.read()}}}function p_(e,t){return new Promise((i,s)=>{const r=[];Su(e,{onData:n=>{t&&r.push(n)},onError:n=>{t?s(n):i(void 0)},onEnd:()=>{i(t?t(r):void 0)}})})}function Su(e,t,i){e.on("error",s=>{i?.isCancellationRequested||t.onError(s)}),e.on("end",()=>{i?.isCancellationRequested||t.onEnd()}),e.on("data",s=>{i?.isCancellationRequested||t.onData(s)})}function bD(e,t){return new Promise((i,s)=>{const r=new ct,n=[],o=l=>{if(n.push(l),n.length>t)return r.dispose(),e.pause(),i({stream:e,buffer:n,ended:!1})},a=l=>(r.dispose(),s(l)),c=()=>(r.dispose(),i({stream:e,buffer:n,ended:!0}));r.add(Se(()=>e.removeListener("error",a))),e.on("error",a),r.add(Se(()=>e.removeListener("end",c))),e.on("end",c),r.add(Se(()=>e.removeListener("data",o))),e.on("data",o)})}function ED(e){let t=!1;return{read:()=>t?null:(t=!0,e)}}function m_(e,t,i){const s=Eu(i);return Su(e,{onData:r=>s.write(t.data(r)),onError:r=>s.error(t.error?t.error(r):r),onEnd:()=>s.end()}),s}var g_,Qa=y({"out-build/vs/base/common/stream.js"(){"use strict";ve(),V(),g_=class{constructor(e,t){this.reducer=e,this.options=t,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]},this.pendingWritePromises=[]}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(e){if(!this.state.destroyed){if(this.state.flowing)this.emitData(e);else if(this.buffer.data.push(e),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(t=>this.pendingWritePromises.push(t))}}error(e){this.state.destroyed||(this.state.flowing?this.emitError(e):this.buffer.error.push(e))}end(e){this.state.destroyed||(typeof e<"u"&&this.write(e),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(e){this.listeners.data.slice(0).forEach(t=>t(e))}emitError(e){this.listeners.error.length===0?Qt(e):this.listeners.error.slice(0).forEach(t=>t(e))}emitEnd(){this.listeners.end.slice(0).forEach(e=>e())}on(e,t){if(!this.state.destroyed)switch(e){case"data":this.listeners.data.push(t),this.resume();break;case"end":this.listeners.end.push(t),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(t),this.state.flowing&&this.flowErrors();break}}removeListener(e,t){if(this.state.destroyed)return;let i;switch(e){case"data":i=this.listeners.data;break;case"end":i=this.listeners.end;break;case"error":i=this.listeners.error;break}if(i){const s=i.indexOf(t);s>=0&&i.splice(s,1)}}flowData(){if(this.buffer.data.length===0)return;if(typeof this.reducer=="function"){const t=this.reducer(this.buffer.data);this.emitData(t)}else for(const t of this.buffer.data)this.emitData(t);this.buffer.data.length=0;const e=[...this.pendingWritePromises];this.pendingWritePromises.length=0,e.forEach(t=>t())}flowErrors(){if(this.listeners.error.length>0){for(const e of this.buffer.error)this.emitError(e);this.buffer.error.length=0}}flowEnd(){return this.state.ended?(this.emitEnd(),this.listeners.end.length>0):!1}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0,this.pendingWritePromises.length=0)}}}});function SD(e,t,i=0){const s=t.byteLength,r=e.byteLength;if(s===0)return 0;if(s===1)return e.indexOf(t[0]);if(s>r-i)return-1;const n=y_.value;n.fill(t.length);for(let l=0;l<t.length;l++)n[t[l]]=t.length-l-1;let o=i+t.length-1,a=o,c=-1;for(;o<r;)if(e[o]===t[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(t.length-a,n[e[o]]),a=t.length-1;return c}function xD(e,t){return e[t]*2**24+e[t+1]*2**16+e[t+2]*2**8+e[t+3]}function kD(e,t,i){e[i+3]=t,t=t>>>8,e[i+2]=t,t=t>>>8,e[i+1]=t,t=t>>>8,e[i]=t}function PD(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0|e[t+2]<<16>>>0|e[t+3]<<24>>>0}function ID(e,t,i){e[i+0]=t&255,t=t>>>8,e[i+1]=t&255,t=t>>>8,e[i+2]=t&255,t=t>>>8,e[i+3]=t&255}function CD(e,t){return e[t]}function DD(e,t,i){e[i]=t}function RD(e){return wD(e,t=>O.concat(t))}function LD(e){return ED(e)}function Zs(e){return p_(e,t=>O.concat(t))}async function AD(e){return e.ended?O.concat(e.buffer):O.concat([...e.buffer,await Zs(e.stream)])}function ND(e){return m_(e,{data:t=>typeof t=="string"?O.fromString(t):O.wrap(t)},t=>O.concat(t))}function OD(e){return Eu(t=>O.concat(t),e)}function v_(e){let t=0,i=0,s=0;const r=new Uint8Array(Math.floor(e.length/4*3)),n=a=>{switch(i){case 3:r[s++]=t|a,i=0;break;case 2:r[s++]=t|a>>>2,t=a<<6,i=3;break;case 1:r[s++]=t|a>>>4,t=a<<4,i=2;break;default:t=a<<2,i=1}};for(let a=0;a<e.length;a++){const c=e.charCodeAt(a);if(c>=65&&c<=90)n(c-65);else if(c>=97&&c<=122)n(c-97+26);else if(c>=48&&c<=57)n(c-48+52);else if(c===43||c===45)n(62);else if(c===47||c===95)n(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${e[a]}`)}}const o=s;for(;i>0;)n(0);return O.wrap(r).slice(0,o)}function um({buffer:e},t=!0,i=!1){const s=i?__:w_;let r="";const n=e.byteLength%3;let o=0;for(;o<e.byteLength-n;o+=3){const a=e[o+0],c=e[o+1],l=e[o+2];r+=s[a>>>2],r+=s[(a<<4|c>>>4)&63],r+=s[(c<<2|l>>>6)&63],r+=s[l&63]}if(n===1){const a=e[o+0];r+=s[a>>>2],r+=s[a<<4&63],t&&(r+="==")}else if(n===2){const a=e[o+0],c=e[o+1];r+=s[a>>>2],r+=s[(a<<4|c>>>4)&63],r+=s[c<<2&63],t&&(r+="=")}return r}var Ja,y_,hm,dm,O,w_,__,Fe=y({"out-build/vs/base/common/buffer.js"(){"use strict";Ba(),Qa(),Ja=typeof Buffer<"u",y_=new Cr(()=>new Uint8Array(256)),O=class Yi{static alloc(t){return Ja?new Yi(Buffer.allocUnsafe(t)):new Yi(new Uint8Array(t))}static wrap(t){return Ja&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new Yi(t)}static fromString(t,i){return!(i?.dontUseNodeBuffer||!1)&&Ja?new Yi(Buffer.from(t)):(hm||(hm=new TextEncoder),new Yi(hm.encode(t)))}static fromByteArray(t){const i=Yi.alloc(t.length);for(let s=0,r=t.length;s<r;s++)i.buffer[s]=t[s];return i}static concat(t,i){if(typeof i>"u"){i=0;for(let n=0,o=t.length;n<o;n++)i+=t[n].byteLength}const s=Yi.alloc(i);let r=0;for(let n=0,o=t.length;n<o;n++){const a=t[n];s.set(a,r),r+=a.byteLength}return s}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}clone(){const t=Yi.alloc(this.byteLength);return t.set(this),t}toString(){return Ja?this.buffer.toString():(dm||(dm=new TextDecoder),dm.decode(this.buffer))}slice(t,i){return new Yi(this.buffer.subarray(t,i))}set(t,i){if(t instanceof Yi)this.buffer.set(t.buffer,i);else if(t instanceof Uint8Array)this.buffer.set(t,i);else if(t instanceof ArrayBuffer)this.buffer.set(new Uint8Array(t),i);else if(ArrayBuffer.isView(t))this.buffer.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),i);else throw new Error("Unknown argument 'array'")}readUInt32BE(t){return xD(this.buffer,t)}writeUInt32BE(t,i){kD(this.buffer,t,i)}readUInt32LE(t){return PD(this.buffer,t)}writeUInt32LE(t,i){ID(this.buffer,t,i)}readUInt8(t){return CD(this.buffer,t)}writeUInt8(t,i){DD(this.buffer,t,i)}indexOf(t,i=0){return SD(this.buffer,t instanceof Yi?t.buffer:t,i)}equals(t){return this===t?!0:this.byteLength!==t.byteLength?!1:this.buffer.every((i,s)=>i===t.buffer[s])}},w_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",__="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}});function TD(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!x_.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!k_.test(e.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(P_.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function MD(e,t){return!e&&!t?"file":e}function FD(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Hi&&(t=Hi+t):t=Hi;break}return t}function b_(e){return!e||typeof e!="object"?!1:typeof e.scheme=="string"&&(typeof e.authority=="string"||typeof e.authority>"u")&&(typeof e.path=="string"||typeof e.path>"u")&&(typeof e.query=="string"||typeof e.query>"u")&&(typeof e.fragment=="string"||typeof e.fragment>"u")}function E_(e,t,i){let s,r=-1;for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||i&&o===91||i&&o===93||i&&o===58)r!==-1&&(s+=encodeURIComponent(e.substring(r,n)),r=-1),s!==void 0&&(s+=e.charAt(n));else{s===void 0&&(s=e.substr(0,n));const a=mm[o];a!==void 0?(r!==-1&&(s+=encodeURIComponent(e.substring(r,n)),r=-1),s+=a):r===-1&&(r=n)}}return r!==-1&&(s+=encodeURIComponent(e.substring(r))),s!==void 0?s:e}function UD(e){let t;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);s===35||s===63?(t===void 0&&(t=e.substr(0,i)),t+=mm[s]):t!==void 0&&(t+=e[i])}return t!==void 0?t:e}function xu(e,t){let i;return e.authority&&e.path.length>1&&e.scheme==="file"?i=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?i=e.path.substr(1):i=e.path[1].toLowerCase()+e.path.substr(2):i=e.path,he&&(i=i.replace(/\//g,"\\")),i}function fm(e,t){const i=t?UD:E_;let s="",{scheme:r,authority:n,path:o,query:a,fragment:c}=e;if(r&&(s+=r,s+=":"),(n||r==="file")&&(s+=Hi,s+=Hi),n){let l=n.indexOf("@");if(l!==-1){const u=n.substr(0,l);n=n.substr(l+1),l=u.lastIndexOf(":"),l===-1?s+=i(u,!1,!1):(s+=i(u.substr(0,l),!1,!1),s+=":",s+=i(u.substr(l+1),!1,!0)),s+="@"}n=n.toLowerCase(),l=n.lastIndexOf(":"),l===-1?s+=i(n,!1,!0):(s+=i(n.substr(0,l),!1,!0),s+=n.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}s+=i(o,!0,!1)}return a&&(s+="?",s+=i(a,!1,!1)),c&&(s+="#",s+=t?c:E_(c,!1,!1)),s}function S_(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+S_(e.substr(3)):e}}function ku(e){return e.match(gm)?e.replace(gm,t=>S_(t)):e}var x_,k_,P_,Be,Hi,I_,b,pm,vn,mm,gm,Y=y({"out-build/vs/base/common/uri.js"(){"use strict";de(),K(),xe(),Fe(),x_=/^\w[\w\d+.-]*$/,k_=/^\//,P_=/^\/\//,Be="",Hi="/",I_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,b=class yp{static isUri(t){return t instanceof yp?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,i,s,r,n,o=!1){typeof t=="object"?(this.scheme=t.scheme||Be,this.authority=t.authority||Be,this.path=t.path||Be,this.query=t.query||Be,this.fragment=t.fragment||Be):(this.scheme=MD(t,o),this.authority=i||Be,this.path=FD(this.scheme,s||Be),this.query=r||Be,this.fragment=n||Be,TD(this,o))}get fsPath(){return xu(this,!1)}with(t){if(!t)return this;let{scheme:i,authority:s,path:r,query:n,fragment:o}=t;return i===void 0?i=this.scheme:i===null&&(i=Be),s===void 0?s=this.authority:s===null&&(s=Be),r===void 0?r=this.path:r===null&&(r=Be),n===void 0?n=this.query:n===null&&(n=Be),o===void 0?o=this.fragment:o===null&&(o=Be),i===this.scheme&&s===this.authority&&r===this.path&&n===this.query&&o===this.fragment?this:new vn(i,s,r,n,o)}static parse(t,i=!1){const s=I_.exec(t);return s?new vn(s[2]||Be,ku(s[4]||Be),ku(s[5]||Be),ku(s[7]||Be),ku(s[9]||Be),i):new vn(Be,Be,Be,Be,Be)}static file(t){let i=Be;if(he&&(t=t.replace(/\\/g,Hi)),t[0]===Hi&&t[1]===Hi){const s=t.indexOf(Hi,2);s===-1?(i=t.substring(2),t=Hi):(i=t.substring(2,s),t=t.substring(s)||Hi)}return new vn("file",i,t,Be,Be)}static from(t,i){return new vn(t.scheme,t.authority,t.path,t.query,t.fragment,i)}static joinPath(t,...i){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let s;return he&&t.scheme==="file"?s=yp.file(mt.join(xu(t,!0),...i)).path:s=Ee.join(t.path,...i),t.with({path:s})}toString(t=!1){return fm(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof yp)return t;{const i=new vn(t);return i._formatted=t.external??null,i._fsPath=t._sep===pm?t.fsPath??null:null,i}}else return t}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}},pm=he?1:void 0,vn=class extends b{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=xu(this,!1)),this._fsPath}toString(e=!1){return e?fm(this,!0):(this._formatted||(this._formatted=fm(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=pm),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},mm={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"},gm=/(%[0-9A-Za-z][0-9A-Za-z])+/g}});function C_(e){return`${e.quality??"oss"}-${e.commit??"dev"}`}var Z,Pu,no,D_,R_,L_,A_,N_,Ct,$D,WD,O_,xe=y({"out-build/vs/base/common/network.js"(){"use strict";ve(),K(),lt(),Y(),de(),(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.git="git",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.terminal="terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.aiChat="cursor.aichat",e.notepad="cursor.notepad",e.contextObject="cursor.context-object",e.composer="cursor.composer",e.aiSettings="cursor.aisettings",e.tinderDiffEditor="cursor.tinderdiffeditor",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.cursorDev="cursor-dev-utils",e.outputChannel="output",e.accessibleView="accessible-view",e.backgroundComposer="cursor.backgroundcomposer",e.personalEnvironmentJson="cursor.personalenvironmentjson",e.bugbot="cursor.bugbot",e.aiEditorBox="aiEditorBox",e.backgroundComposerPeek="background-composer-peek"})(Z||(Z={})),Pu="vscode-tkn",no="tkn",D_=class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}setServerRootPath(e,t){this._serverRootPath=Ee.join(t??"/",C_(e))}getServerRootPath(){return this._serverRootPath}get _remoteResourcesPath(){return Ee.join(this._serverRootPath,Z.vscodeRemoteResource)}set(e,t,i){this._hosts[e]=t,this._ports[e]=i}setConnectionToken(e,t){this._connectionTokens[e]=t}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(o){return Qt(o),e}const t=e.authority;let i=this._hosts[t];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const s=this._ports[t],r=this._connectionTokens[t];let n=`path=${encodeURIComponent(e.path)}`;return typeof r=="string"&&(n+=`&${no}=${encodeURIComponent(r)}`),b.from({scheme:xs?this._preferredWebSchema:Z.vscodeRemoteResource,authority:`${i}:${s}`,path:this._remoteResourcesPath,query:n})}},R_=new D_,L_="vs/../../extensions",A_="vscode-app",N_=class wp{static{this.FALLBACK_AUTHORITY=A_}asBrowserUri(t){const i=this.toUri(t);return this.uriToBrowserUri(i)}uriToBrowserUri(t){return t.scheme===Z.vscodeRemote?R_.rewrite(t):t.scheme===Z.file&&(hw||fw===`${Z.vscodeFileResource}://${wp.FALLBACK_AUTHORITY}`)?t.with({scheme:Z.vscodeFileResource,authority:t.authority||wp.FALLBACK_AUTHORITY,query:null,fragment:null}):t}asFileUri(t){const i=this.toUri(t);return this.uriToFileUri(i)}uriToFileUri(t){return t.scheme===Z.vscodeFileResource?t.with({scheme:Z.file,authority:t.authority!==wp.FALLBACK_AUTHORITY?t.authority:null,query:null,fragment:null}):t}toUri(t){if(b.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const i=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(i))return b.joinPath(b.parse(i,!0),t);const s=W(i,t);return b.file(s)}throw new Error("Cannot determine URI for module id!")}},Ct=new N_,$D=Object.freeze({"Cache-Control":"no-cache, no-store"}),WD=Object.freeze({"Document-Policy":"include-js-call-stacks-in-crash-reports, js-profiling"}),(function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";function s(n){let o;typeof n=="string"?o=new URL(n).searchParams:n instanceof URL?o=n.searchParams:b.isUri(n)&&(o=new URL(n.toString(!0)).searchParams);const a=o?.get(i);if(a)return t.get(a)}e.getHeadersFromQuery=s;function r(n,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";n instanceof URLSearchParams?n.set(i,c):n[i]=c}e.addSearchParam=r})(O_||(O_={}))}}),Iu,vm=y({"out-build/vs/platform/instantiation/common/serviceCollection.js"(){"use strict";Iu=class{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}}});function ym(e,t){return t&&(e.stack||e.stacktrace)?m(110,null,M_(e),T_(e.stack)||T_(e.stacktrace)):M_(e)}function T_(e){return Array.isArray(e)?e.join(`
`):e}function M_(e){return e.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof e.code=="string"&&typeof e.errno=="number"&&typeof e.syscall=="string"?m(111,null,e.message):e.message||m(112,null)}function yn(e=null,t=!1){if(!e)return m(113,null);if(Array.isArray(e)){const i=ts(e),s=yn(i[0],t);return i.length>1?m(114,null,s,i.length):s}if(ye(e))return e;if(e.detail){const i=e.detail;if(i.error)return ym(i.error,t);if(i.exception)return ym(i.exception,t)}return e.stack?ym(e,t):e.message?e.message:m(115,null)}var oo=y({"out-build/vs/base/common/errorMessage.js"(){"use strict";kt(),_e(),ue()}});function ao(e){return wm(e,0)}function wm(e,t){switch(typeof e){case"object":return e===null?Ks(349,t):Array.isArray(e)?VD(e,t):jD(e,t);case"string":return F_(e,t);case"boolean":return HD(e,t);case"number":return Ks(e,t);case"undefined":return Ks(937,t);default:return Ks(617,t)}}function Ks(e,t){return(t<<5)-t+e|0}function HD(e,t){return Ks(e?433:863,t)}function F_(e,t){t=Ks(149417,t);for(let i=0,s=e.length;i<s;i++)t=Ks(e.charCodeAt(i),t);return t}function VD(e,t){return t=Ks(104579,t),e.reduce((i,s)=>wm(s,i),t)}function jD(e,t){return t=Ks(181387,t),Object.keys(e).sort().reduce((i,s)=>(i=F_(s,i),wm(e[s],i)),t)}function _m(e,t,i=32){const s=i-t,r=~((1<<s)-1);return(e<<t|(r&e)>>>s)>>>0}function Xa(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(i=>i.toString(16).padStart(2,"0")).join(""):(e>>>0).toString(16).padStart(t/4,"0")}var U_,BD,Ya=y({"out-build/vs/base/common/hash.js"(){"use strict";Fe(),lt(),(function(e){e[e.BLOCK_SIZE=64]="BLOCK_SIZE",e[e.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"})(U_||(U_={})),BD=class UI{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){const i=t.length;if(i===0)return;const s=this._buff;let r=this._buffLen,n=this._leftoverHighSurrogate,o,a;for(n!==0?(o=n,a=-1,n=0):(o=t.charCodeAt(0),a=0);;){let c=o;if(oD(o))if(a+1<i){const l=t.charCodeAt(a+1);e_(l)?(a++,c=aD(o,l)):c=65533}else{n=o;break}else e_(o)&&(c=65533);if(r=this._push(s,r,c),a++,a<i)o=t.charCodeAt(a);else break}this._buffLen=r,this._leftoverHighSurrogate=n}_push(t,i,s){return s<128?t[i++]=s:s<2048?(t[i++]=192|(s&1984)>>>6,t[i++]=128|(s&63)>>>0):s<65536?(t[i++]=224|(s&61440)>>>12,t[i++]=128|(s&4032)>>>6,t[i++]=128|(s&63)>>>0):(t[i++]=240|(s&1835008)>>>18,t[i++]=128|(s&258048)>>>12,t[i++]=128|(s&4032)>>>6,t[i++]=128|(s&63)>>>0),i>=64&&(this._step(),i-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),i}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Xa(this._h0)+Xa(this._h1)+Xa(this._h2)+Xa(this._h3)+Xa(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));const t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){const t=UI._bigBlock32,i=this._buffDV;for(let h=0;h<64;h+=4)t.setUint32(h,i.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)t.setUint32(h,_m(t.getUint32(h-12,!1)^t.getUint32(h-32,!1)^t.getUint32(h-56,!1)^t.getUint32(h-64,!1),1),!1);let s=this._h0,r=this._h1,n=this._h2,o=this._h3,a=this._h4,c,l,u;for(let h=0;h<80;h++)h<20?(c=r&n|~r&o,l=1518500249):h<40?(c=r^n^o,l=1859775393):h<60?(c=r&n|r&o|n&o,l=2400959708):(c=r^n^o,l=3395469782),u=_m(s,5)+c+a+l+t.getUint32(h*4,!1)&4294967295,a=o,o=n,n=_m(r,30),r=s,s=u;this._h0=this._h0+s&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+n&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}}}});function Lr(e){return e===47||e===92}function $_(e){return e.replace(/[\\/]/g,Ee.sep)}function zD(e){return e.indexOf("/")===-1&&(e=$_(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function W_(e,t=Ee.sep){if(!e)return"";const i=e.length,s=e.charCodeAt(0);if(Lr(s)){if(Lr(e.charCodeAt(1))&&!Lr(e.charCodeAt(2))){let n=3;const o=n;for(;n<i&&!Lr(e.charCodeAt(n));n++);if(o!==n&&!Lr(e.charCodeAt(n+1))){for(n+=1;n<i;n++)if(Lr(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}}return t}else if(H_(s)&&e.charCodeAt(1)===58)return Lr(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(r!==-1){for(r+=3;r<i;r++)if(Lr(e.charCodeAt(r)))return e.slice(0,r+1)}return""}function Cu(e,t,i){const s=e===t;return!i||s?s:!e||!t?!1:fn(e,t)}function Ar(e,t,i,s=jt){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(i){if(!rm(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),e.indexOf(t)===0}function H_(e){return e>=65&&e<=90||e>=97&&e<=122}function qD(e){return he?(e=tm(e,jt),e.endsWith(":")&&(e+=jt)):(e=tm(e,jt),e||(e=jt)),e}function GD(e){const t=Wi(e);return he?e.length>3?!1:V_(t)&&(e.length===2||t.charCodeAt(2)===92):t===Ee.sep}function V_(e,t=he){return t?H_(e.charCodeAt(0))&&e.charCodeAt(1)===58:!1}function QD(e,t,i=8){let s="";for(let n=0;n<i;n++){let o;n===0&&he&&!t&&(i===3||i===4)?o=B_:o=j_,s+=o.charAt(Math.floor(Math.random()*o.length))}let r;return t?r=`${t}-${s}`:r=s,e?W(e,r):r}var j_,B_,er=y({"out-build/vs/base/common/extpath.js"(){"use strict";de(),K(),lt(),_e(),j_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",B_="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789"}});function tr(e){return xu(e,!0)}var Za,ke,Du,z_,bm,Em,JD,XD,Nr,q_,G_,oe,Q_,YD,ZD,J_,Sm,xm,KD,eR,X_,_t=y({"out-build/vs/base/common/resources.js"(){"use strict";er(),xe(),de(),K(),lt(),Y(),Za=class{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:im(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}ignorePathCasing(e){return this._ignorePathCasing(e)}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===Z.file)return Ar(tr(e),tr(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(Sm(e.authority,t.authority))return Ar(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return b.joinPath(e,...t)}basenameOrAuthority(e){return Nr(e)||e.authority}basename(e){return Ee.basename(e.path)}extname(e){return Ee.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Z.file?t=b.file(Vt(tr(e))).path:(t=Ee.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Z.file?t=b.file(Wi(tr(e))).path:t=Ee.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Sm(e.authority,t.authority))return;if(e.scheme===Z.file){const r=qa(tr(e),tr(t));return he?$_(r):r}let i=e.path||"/";const s=t.path||"/";if(this._ignorePathCasing(e)){let r=0;for(const n=Math.min(i.length,s.length);r<n&&!(i.charCodeAt(r)!==s.charCodeAt(r)&&i.charAt(r).toLowerCase()!==s.charAt(r).toLowerCase());r++);i=s.substr(0,r)+i.substr(r)}return Ee.relative(i,s)}resolvePath(e,t){if(e.scheme===Z.file){const i=b.file(Ys(tr(e),t));return e.with({authority:i.authority,path:i.path})}return t=zD(t),e.with({path:Ee.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,t){return e===t||e!==void 0&&t!==void 0&&fn(e,t)}hasTrailingPathSeparator(e,t=jt){if(e.scheme===Z.file){const i=tr(e);return i.length>W_(i).length&&i[i.length-1]===t}else{const i=e.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=jt){return xm(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=jt){let i=!1;if(e.scheme===Z.file){const s=tr(e);i=s!==void 0&&s.length===W_(s).length&&s[s.length-1]===t}else{t="/";const s=e.path;i=s.length===1&&s.charCodeAt(s.length-1)===47}return!i&&!xm(e,t)?e.with({path:e.path+"/"}):e}},ke=new Za(()=>!1),Du=new Za(e=>e.scheme===Z.file?!nt:!0),z_=new Za(e=>!0),bm=ke.isEqual.bind(ke),Em=ke.isEqualOrParent.bind(ke),JD=ke.getComparisonKey.bind(ke),XD=ke.basenameOrAuthority.bind(ke),Nr=ke.basename.bind(ke),q_=ke.extname.bind(ke),G_=ke.dirname.bind(ke),oe=ke.joinPath.bind(ke),Q_=ke.normalizePath.bind(ke),YD=ke.relativePath.bind(ke),ZD=ke.resolvePath.bind(ke),J_=ke.isAbsolutePath.bind(ke),Sm=ke.isEqualAuthority.bind(ke),xm=ke.hasTrailingPathSeparator.bind(ke),KD=ke.removeTrailingPathSeparator.bind(ke),eR=ke.addTrailingPathSeparator.bind(ke),(function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime";function t(i){const s=new Map;i.path.substring(i.path.indexOf(";")+1,i.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&s.set(a,c)});const n=i.path.substring(0,i.path.indexOf(";"));return n&&s.set(e.META_DATA_MIME,n),s}e.parseMetaData=t})(X_||(X_={}))}});function km(...e){switch(e.length){case 1:return m(1832,null,e[0]);case 2:return m(1833,null,e[0],e[1]);case 3:return m(1834,null,e[0],e[1],e[2]);default:return}}var Y_,Z_,K_,co,tR=y({"out-build/vs/platform/contextkey/common/scanner.js"(){"use strict";ve(),ue(),(function(e){e[e.LParen=0]="LParen",e[e.RParen=1]="RParen",e[e.Neg=2]="Neg",e[e.Eq=3]="Eq",e[e.NotEq=4]="NotEq",e[e.Lt=5]="Lt",e[e.LtEq=6]="LtEq",e[e.Gt=7]="Gt",e[e.GtEq=8]="GtEq",e[e.RegexOp=9]="RegexOp",e[e.RegexStr=10]="RegexStr",e[e.True=11]="True",e[e.False=12]="False",e[e.In=13]="In",e[e.Not=14]="Not",e[e.And=15]="And",e[e.Or=16]="Or",e[e.Str=17]="Str",e[e.QuotedStr=18]="QuotedStr",e[e.Error=19]="Error",e[e.EOF=20]="EOF"})(Y_||(Y_={})),Z_=m(1835,null),K_=m(1836,null),co=class Sy{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(t){switch(t.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return t.isTripleEq?"===":"==";case 4:return t.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return t.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return t.lexeme;case 18:return t.lexeme;case 19:return t.lexeme;case 20:return"EOF";default:throw Jy(`unhandled token type: ${JSON.stringify(t)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map(t=>t.charCodeAt(0)))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}get errors(){return this._errors}reset(t){return this._input=t,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const i=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:i})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const i=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:i})}else this._match(126)?this._addToken(9):this._error(km("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(km("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(km("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(t){return this._isAtEnd()||this._input.charCodeAt(this._current)!==t?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(t){this._tokens.push({type:t,offset:this._start})}_error(t){const i=this._start,s=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:s};this._errors.push({offset:i,lexeme:s,additionalInfo:t}),this._tokens.push(r)}_string(){this.stringRe.lastIndex=this._start;const t=this.stringRe.exec(this._input);if(t){this._current=this._start+t[0].length;const i=this._input.substring(this._start,this._current),s=Sy._keywords.get(i);s?this._addToken(s):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(Z_);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let t=this._current,i=!1,s=!1;for(;;){if(t>=this._input.length){this._current=t,this._error(K_);return}const n=this._input.charCodeAt(t);if(i)i=!1;else if(n===47&&!s){t++;break}else n===91?s=!0:n===92?i=!0:n===93&&(s=!1);t++}for(;t<this._input.length&&Sy._regexFlags.has(this._input.charCodeAt(t));)t++;this._current=t;const r=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:r,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}}});function iR(e,t,i){t[rs.DI_TARGET]===t?t[rs.DI_DEPENDENCIES].push({id:e,index:i}):(t[rs.DI_DEPENDENCIES]=[{id:e,index:i}],t[rs.DI_TARGET]=t)}function te(e){if(rs.serviceIds.has(e))return rs.serviceIds.get(e);const t=function(i,s,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");iR(t,i,r)};return t.toString=()=>e,rs.serviceIds.set(e,t),t}function eW(e){return e}var rs,wn,se=y({"out-build/vs/platform/instantiation/common/instantiation.js"(){"use strict";(function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies";function t(i){return i[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(rs||(rs={})),wn=te("instantiationService")}});function sR(e,t){return lo.has(e)&&(console.warn(`A context key function with id '${e}' is already registered. Function collisions can lead to unexpected behavior.`),lo.delete(e)),lo.set(e,t),{dispose:()=>{lo.delete(e)}}}function eb(e){return lo.get(e)}function Ka(e,t){return e.cmp(t)}function Ru(e,t){if(typeof e=="string"){const i=parseFloat(e);isNaN(i)||(e=i)}return typeof e=="string"||typeof e=="number"?t(e):Xt.INSTANCE}function tb(e){let t=null;for(let i=0,s=e.length;i<s;i++){const r=e[i].substituteConstants();if(e[i]!==r&&t===null){t=[];for(let n=0;n<i;n++)t[n]=e[n]}t!==null&&(t[i]=r)}return t===null?e:t}function Pm(e,t){return e<t?-1:e>t?1:0}function _n(e,t,i,s){return e<i?-1:e>i?1:t<s?-1:t>s?1:0}function ib(e){return e.type===9?e.expr:[e]}var Dt,lo,sb,rb,nb,ob,ab,cb,Im,lb,ub,hb,db,fb,Ut,Lu,Xt,ai,bn,uo,Au,Nu,ho,En,fo,ec,tc,ic,po,pb,Cm,Ou,sc,rR,Tu=y({"out-build/vs/platform/contextkey/common/contextkey.js"(){"use strict";K(),lt(),tR(),se(),ue(),ve(),Dt=new Map,Dt.set("false",!1),Dt.set("true",!0),Dt.set("isMac",Li),Dt.set("isLinux",nt),Dt.set("isWindows",he),Dt.set("isWeb",xs),Dt.set("isMacNative",Li&&!xs),Dt.set("isEdge",_w),Dt.set("isFirefox",yw),Dt.set("isChrome",Bp),Dt.set("isSafari",ww),lo=new Map,sb=Object.prototype.hasOwnProperty,(function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Defined=2]="Defined",e[e.Not=3]="Not",e[e.Equals=4]="Equals",e[e.NotEquals=5]="NotEquals",e[e.And=6]="And",e[e.Regex=7]="Regex",e[e.NotRegex=8]="NotRegex",e[e.Or=9]="Or",e[e.In=10]="In",e[e.NotIn=11]="NotIn",e[e.Greater=12]="Greater",e[e.GreaterEquals=13]="GreaterEquals",e[e.Smaller=14]="Smaller",e[e.SmallerEquals=15]="SmallerEquals",e[e.Function=16]="Function"})(rb||(rb={})),nb={regexParsingWithErrorRecovery:!0},ob=m(1812,null),ab=m(1813,null),cb=m(1814,null),Im=m(1815,null),lb=m(1816,null),ub=m(1817,null),hb=m(1818,null),db=m(1819,null),fb=class Zl{static{this._parseError=new Error}get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(t=nb){this._config=t,this._scanner=new co,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(t){if(t===""){this._parsingErrors.push({message:ob,offset:0,lexeme:"",additionalInfo:ab});return}this._tokens=this._scanner.reset(t).scan(),this._current=0,this._parsingErrors=[];try{const i=this._expr();if(!this._isAtEnd()){const s=this._peek(),r=s.type===17?ub:void 0;throw this._parsingErrors.push({message:lb,offset:s.offset,lexeme:co.getLexeme(s),additionalInfo:r}),Zl._parseError}return i}catch(i){if(i!==Zl._parseError)throw i;return}}_expr(){return this._or()}_or(){const t=[this._and()];for(;this._matchOne(16);){const i=this._and();t.push(i)}return t.length===1?t[0]:Ut.or(...t)}_and(){const t=[this._term()];for(;this._matchOne(15);){const i=this._term();t.push(i)}return t.length===1?t[0]:Ut.and(...t)}_term(){if(this._matchOne(2)){const t=this._peek();switch(t.type){case 11:return this._advance(),Xt.INSTANCE;case 12:return this._advance(),ai.INSTANCE;case 0:{this._advance();const i=this._expr();return this._consume(1,Im),i?.negate()}case 17:return this._advance(),En.create(t.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",t)}}return this._primary()}_primary(){const t=this._peek();switch(t.type){case 11:return this._advance(),Ut.true();case 12:return this._advance(),Ut.false();case 0:{this._advance();const i=this._expr();return this._consume(1,Im),i}case 17:{if(t.lexeme.startsWith("@")){this._advance();const r=t.lexeme.substring(1);if(r.startsWith("!")){const o=r.substring(1),a=eb(o);if(a)return Lu.createWithoutRegistration(r,()=>!a())}const n=eb(r)||(()=>!1);return Lu.createWithoutRegistration(r,n)}const i=t.lexeme;if(this._advance(),this._matchOne(9)){const r=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),r.type!==10)throw this._errExpectedButGot("REGEX",r);const n=r.lexeme,o=n.lastIndexOf("/"),a=o===n.length-1?void 0:this._removeFlagsGY(n.substring(o+1));let c;try{c=new RegExp(n.substring(1,o),a)}catch{throw this._errExpectedButGot("REGEX",r)}return po.create(i,c)}switch(r.type){case 10:case 19:{const n=[r.lexeme];this._advance();let o=this._peek(),a=0;for(let f=0;f<r.lexeme.length;f++)r.lexeme.charCodeAt(f)===40?a++:r.lexeme.charCodeAt(f)===41&&a--;for(;!this._isAtEnd()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let f=0;f<o.lexeme.length;f++)o.lexeme.charCodeAt(f)===40?a++:r.lexeme.charCodeAt(f)===41&&a--}if(a<0)break;n.push(co.getLexeme(o)),this._advance(),o=this._peek()}const c=n.join(""),l=c.lastIndexOf("/"),u=l===c.length-1?void 0:this._removeFlagsGY(c.substring(l+1));let h;try{h=new RegExp(c.substring(1,l),u)}catch{throw this._errExpectedButGot("REGEX",r)}return Ut.regex(i,h)}case 18:{const n=r.lexeme;this._advance();let o=null;if(!sD(n)){const a=n.indexOf("/"),c=n.lastIndexOf("/");if(a!==c&&a>=0){const l=n.slice(a+1,c),u=n[c+1]==="i"?"i":"";try{o=new RegExp(l,u)}catch{throw this._errExpectedButGot("REGEX",r)}}}if(o===null)throw this._errExpectedButGot("REGEX",r);return po.create(i,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,cb);const r=this._value();return Ut.notIn(i,r)}switch(this._peek().type){case 3:{this._advance();const r=this._value();if(this._previous().type===18)return Ut.equals(i,r);switch(r){case"true":return Ut.has(i);case"false":return Ut.not(i);default:return Ut.equals(i,r)}}case 4:{this._advance();const r=this._value();if(this._previous().type===18)return Ut.notEquals(i,r);switch(r){case"true":return Ut.not(i);case"false":return Ut.has(i);default:return Ut.notEquals(i,r)}}case 5:return this._advance(),tc.create(i,this._value());case 6:return this._advance(),ic.create(i,this._value());case 7:return this._advance(),fo.create(i,this._value());case 8:return this._advance(),ec.create(i,this._value());case 13:return this._advance(),Ut.in(i,this._value());default:return Ut.has(i)}}case 20:throw this._parsingErrors.push({message:hb,offset:t.offset,lexeme:"",additionalInfo:db}),Zl._parseError;default:throw this._errExpectedButGot(`true | false | KEY
| KEY '=~' REGEX
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const t=this._peek();switch(t.type){case 17:case 18:return this._advance(),t.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(t){return t.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(t){return this._check(t)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(t,i){if(this._check(t))return this._advance();throw this._errExpectedButGot(i,this._peek())}_errExpectedButGot(t,i,s){const r=m(1820,null,t,co.getLexeme(i)),n=i.offset,o=co.getLexeme(i);return this._parsingErrors.push({message:r,offset:n,lexeme:o,additionalInfo:s}),Zl._parseError}_check(t){return this._peek().type===t}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},Ut=class{static false(){return Xt.INSTANCE}static true(){return ai.INSTANCE}static has(e){return bn.create(e)}static equals(e,t){return uo.create(e,t)}static notEquals(e,t){return ho.create(e,t)}static regex(e,t){return po.create(e,t)}static in(e,t){return Au.create(e,t)}static notIn(e,t){return Nu.create(e,t)}static not(e){return En.create(e)}static and(...e){return Cm.create(e,null,!0)}static or(...e){return Ou.create(e,null,!0)}static greater(e,t){return fo.create(e,t)}static greaterEquals(e,t){return ec.create(e,t)}static smaller(e,t){return tc.create(e,t)}static smallerEquals(e,t){return ic.create(e,t)}static function(e,t){return Lu.create(e,t)}static{this._parser=new fb({regexParsingWithErrorRecovery:!1})}static deserialize(e){return e==null?void 0:this._parser.parse(e)}},Lu=class _p{static create(t,i){return sR(t,i),new _p(t,i)}static createWithoutRegistration(t,i){return new _p(t,i)}constructor(t,i){this.type=16,this.id=t,this.fn=i}cmp(t){return t.type!==this.type?this.type-t.type:Pm(this.id,t.id)}equals(t){return t.type===this.type&&this.id===t.id}substituteConstants(){return this}evaluate(t){return this.fn()}serialize(){return`@${this.id}`}keys(){return[]}map(t){return this}negate(){return _p.createWithoutRegistration(`!${this.id}`,()=>!this.fn())}},Xt=class $I{static{this.INSTANCE=new $I}constructor(){this.type=0}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!1}serialize(){return"false"}keys(){return[]}map(t){return this}negate(){return ai.INSTANCE}},ai=class WI{static{this.INSTANCE=new WI}constructor(){this.type=1}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!0}serialize(){return"true"}keys(){return[]}map(t){return this}negate(){return Xt.INSTANCE}},bn=class HI{static create(t,i=null){const s=Dt.get(t);return typeof s=="boolean"?s?ai.INSTANCE:Xt.INSTANCE:new HI(t,i)}constructor(t,i){this.key=t,this.negated=i,this.type=2}cmp(t){return t.type!==this.type?this.type-t.type:Pm(this.key,t.key)}equals(t){return t.type===this.type?this.key===t.key:!1}substituteConstants(){const t=Dt.get(this.key);return typeof t=="boolean"?t?ai.INSTANCE:Xt.INSTANCE:this}evaluate(t){return!!t.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(t){return t.mapDefined(this.key)}negate(){return this.negated||(this.negated=En.create(this.key,this)),this.negated}},uo=class VI{static create(t,i,s=null){if(typeof i=="boolean")return i?bn.create(t,s):En.create(t,s);const r=Dt.get(t);return typeof r=="boolean"?i===(r?"true":"false")?ai.INSTANCE:Xt.INSTANCE:new VI(t,i,s)}constructor(t,i,s){this.key=t,this.value=i,this.negated=s,this.type=4}cmp(t){return t.type!==this.type?this.type-t.type:_n(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type?this.key===t.key&&this.value===t.value:!1}substituteConstants(){const t=Dt.get(this.key);if(typeof t=="boolean"){const i=t?"true":"false";return this.value===i?ai.INSTANCE:Xt.INSTANCE}return this}evaluate(t){return t.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(t){return t.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=ho.create(this.key,this.value,this)),this.negated}},Au=class jI{static create(t,i){return new jI(t,i)}constructor(t,i){this.key=t,this.valueKey=i,this.type=10,this.negated=null}cmp(t){return t.type!==this.type?this.type-t.type:_n(this.key,this.valueKey,t.key,t.valueKey)}equals(t){return t.type===this.type?this.key===t.key&&this.valueKey===t.valueKey:!1}substituteConstants(){return this}evaluate(t){const i=t.getValue(this.valueKey),s=t.getValue(this.key);return Array.isArray(i)?i.includes(s):typeof s=="string"&&typeof i=="object"&&i!==null?sb.call(i,s):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(t){return t.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=Nu.create(this.key,this.valueKey)),this.negated}},Nu=class BI{static create(t,i){return new BI(t,i)}constructor(t,i){this.key=t,this.valueKey=i,this.type=11,this._negated=Au.create(t,i)}cmp(t){return t.type!==this.type?this.type-t.type:this._negated.cmp(t._negated)}equals(t){return t.type===this.type?this._negated.equals(t._negated):!1}substituteConstants(){return this}evaluate(t){return!this._negated.evaluate(t)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(t){return t.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}},ho=class zI{static create(t,i,s=null){if(typeof i=="boolean")return i?En.create(t,s):bn.create(t,s);const r=Dt.get(t);return typeof r=="boolean"?i===(r?"true":"false")?Xt.INSTANCE:ai.INSTANCE:new zI(t,i,s)}constructor(t,i,s){this.key=t,this.value=i,this.negated=s,this.type=5}cmp(t){return t.type!==this.type?this.type-t.type:_n(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type?this.key===t.key&&this.value===t.value:!1}substituteConstants(){const t=Dt.get(this.key);if(typeof t=="boolean"){const i=t?"true":"false";return this.value===i?Xt.INSTANCE:ai.INSTANCE}return this}evaluate(t){return t.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(t){return t.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=uo.create(this.key,this.value,this)),this.negated}},En=class qI{static create(t,i=null){const s=Dt.get(t);return typeof s=="boolean"?s?Xt.INSTANCE:ai.INSTANCE:new qI(t,i)}constructor(t,i){this.key=t,this.negated=i,this.type=3}cmp(t){return t.type!==this.type?this.type-t.type:Pm(this.key,t.key)}equals(t){return t.type===this.type?this.key===t.key:!1}substituteConstants(){const t=Dt.get(this.key);return typeof t=="boolean"?t?Xt.INSTANCE:ai.INSTANCE:this}evaluate(t){return!t.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(t){return t.mapNot(this.key)}negate(){return this.negated||(this.negated=bn.create(this.key,this)),this.negated}},fo=class GI{static create(t,i,s=null){return Ru(i,r=>new GI(t,r,s))}constructor(t,i,s){this.key=t,this.value=i,this.negated=s,this.type=12}cmp(t){return t.type!==this.type?this.type-t.type:_n(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type?this.key===t.key&&this.value===t.value:!1}substituteConstants(){return this}evaluate(t){return typeof this.value=="string"?!1:parseFloat(t.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(t){return t.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=ic.create(this.key,this.value,this)),this.negated}},ec=class QI{static create(t,i,s=null){return Ru(i,r=>new QI(t,r,s))}constructor(t,i,s){this.key=t,this.value=i,this.negated=s,this.type=13}cmp(t){return t.type!==this.type?this.type-t.type:_n(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type?this.key===t.key&&this.value===t.value:!1}substituteConstants(){return this}evaluate(t){return typeof this.value=="string"?!1:parseFloat(t.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(t){return t.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=tc.create(this.key,this.value,this)),this.negated}},tc=class JI{static create(t,i,s=null){return Ru(i,r=>new JI(t,r,s))}constructor(t,i,s){this.key=t,this.value=i,this.negated=s,this.type=14}cmp(t){return t.type!==this.type?this.type-t.type:_n(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type?this.key===t.key&&this.value===t.value:!1}substituteConstants(){return this}evaluate(t){return typeof this.value=="string"?!1:parseFloat(t.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(t){return t.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=ec.create(this.key,this.value,this)),this.negated}},ic=class XI{static create(t,i,s=null){return Ru(i,r=>new XI(t,r,s))}constructor(t,i,s){this.key=t,this.value=i,this.negated=s,this.type=15}cmp(t){return t.type!==this.type?this.type-t.type:_n(this.key,this.value,t.key,t.value)}equals(t){return t.type===this.type?this.key===t.key&&this.value===t.value:!1}substituteConstants(){return this}evaluate(t){return typeof this.value=="string"?!1:parseFloat(t.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(t){return t.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=fo.create(this.key,this.value,this)),this.negated}},po=class YI{static create(t,i){return new YI(t,i)}constructor(t,i){this.key=t,this.regexp=i,this.type=7,this.negated=null}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.key<t.key)return-1;if(this.key>t.key)return 1;const i=this.regexp?this.regexp.source:"",s=t.regexp?t.regexp.source:"";return i<s?-1:i>s?1:0}equals(t){if(t.type===this.type){const i=this.regexp?this.regexp.source:"",s=t.regexp?t.regexp.source:"";return this.key===t.key&&i===s}return!1}substituteConstants(){return this}evaluate(t){const i=t.getValue(this.key);return this.regexp?this.regexp.test(i):!1}serialize(){const t=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${t}`}keys(){return[this.key]}map(t){return t.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=pb.create(this)),this.negated}},pb=class xy{static create(t){return new xy(t)}constructor(t){this._actual=t,this.type=8}cmp(t){return t.type!==this.type?this.type-t.type:this._actual.cmp(t._actual)}equals(t){return t.type===this.type?this._actual.equals(t._actual):!1}substituteConstants(){return this}evaluate(t){return!this._actual.evaluate(t)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(t){return new xy(this._actual.map(t))}negate(){return this._actual}},Cm=class Pa{static create(t,i,s){return Pa._normalizeArr(t,i,s)}constructor(t,i){this.expr=t,this.negated=i,this.type=6}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.length<t.expr.length)return-1;if(this.expr.length>t.expr.length)return 1;for(let i=0,s=this.expr.length;i<s;i++){const r=Ka(this.expr[i],t.expr[i]);if(r!==0)return r}return 0}equals(t){if(t.type===this.type){if(this.expr.length!==t.expr.length)return!1;for(let i=0,s=this.expr.length;i<s;i++)if(!this.expr[i].equals(t.expr[i]))return!1;return!0}return!1}substituteConstants(){const t=tb(this.expr);return t===this.expr?this:Pa.create(t,this.negated,!1)}evaluate(t){for(let i=0,s=this.expr.length;i<s;i++)if(!this.expr[i].evaluate(t))return!1;return!0}static _normalizeArr(t,i,s){const r=[];let n=!1;for(const o of t)if(o){if(o.type===1){n=!0;continue}if(o.type===0)return Xt.INSTANCE;if(o.type===6){r.push(...o.expr);continue}r.push(o)}if(r.length===0&&n)return ai.INSTANCE;if(r.length!==0){if(r.length===1)return r[0];r.sort(Ka);for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];for(;r.length>1;){const o=r[r.length-1];if(o.type!==9)break;r.pop();const a=r.pop(),c=r.length===0,l=Ou.create(o.expr.map(u=>Pa.create([u,a],null,s)),null,c);l&&(r.push(l),r.sort(Ka))}if(r.length===1)return r[0];if(s){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return Xt.INSTANCE;if(r.length===1)return r[0]}return new Pa(r,i)}}serialize(){return this.expr.map(t=>t.serialize()).join(" && ")}keys(){const t=[];for(const i of this.expr)t.push(...i.keys());return t}map(t){return new Pa(this.expr.map(i=>i.map(t)),null)}negate(){if(!this.negated){const t=[];for(const i of this.expr)t.push(i.negate());this.negated=Ou.create(t,this,!0)}return this.negated}},Ou=class Jn{static create(t,i,s){return Jn._normalizeArr(t,i,s)}constructor(t,i){this.expr=t,this.negated=i,this.type=9}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.length<t.expr.length)return-1;if(this.expr.length>t.expr.length)return 1;for(let i=0,s=this.expr.length;i<s;i++){const r=Ka(this.expr[i],t.expr[i]);if(r!==0)return r}return 0}equals(t){if(t.type===this.type){if(this.expr.length!==t.expr.length)return!1;for(let i=0,s=this.expr.length;i<s;i++)if(!this.expr[i].equals(t.expr[i]))return!1;return!0}return!1}substituteConstants(){const t=tb(this.expr);return t===this.expr?this:Jn.create(t,this.negated,!1)}evaluate(t){for(let i=0,s=this.expr.length;i<s;i++)if(this.expr[i].evaluate(t))return!0;return!1}static _normalizeArr(t,i,s){let r=[],n=!1;if(t){for(let o=0,a=t.length;o<a;o++){const c=t[o];if(c){if(c.type===0){n=!0;continue}if(c.type===1)return ai.INSTANCE;if(c.type===9){r=r.concat(c.expr);continue}r.push(c)}}if(r.length===0&&n)return Xt.INSTANCE;r.sort(Ka)}if(r.length!==0){if(r.length===1)return r[0];for(let o=1;o<r.length;o++)r[o-1].equals(r[o])&&(r.splice(o,1),o--);if(r.length===1)return r[0];if(s){for(let o=0;o<r.length;o++)for(let a=o+1;a<r.length;a++)if(r[o].negate().equals(r[a]))return ai.INSTANCE;if(r.length===1)return r[0]}return new Jn(r,i)}}serialize(){return this.expr.map(t=>t.serialize()).join(" || ")}keys(){const t=[];for(const i of this.expr)t.push(...i.keys());return t}map(t){return new Jn(this.expr.map(i=>i.map(t)),null)}negate(){if(!this.negated){const t=[];for(const i of this.expr)t.push(i.negate());for(;t.length>1;){const i=t.shift(),s=t.shift(),r=[];for(const n of ib(i))for(const o of ib(s))r.push(Cm.create([n,o],null,!1));t.unshift(Jn.create(r,null,!1))}this.negated=Jn.create(t,this,!0)}return this.negated}},sc=class bp extends bn{static{this._info=[]}static all(){return bp._info.values()}constructor(t,i,s){super(t,null),this._defaultValue=i,typeof s=="object"?bp._info.push({...s,key:t}):s!==!0&&bp._info.push({key:t,description:s,type:i!=null?typeof i:void 0})}bindTo(t){return t.createKey(this.key,this._defaultValue)}getValue(t){return t.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(t){return uo.create(this.key,t)}notEqualsTo(t){return ho.create(this.key,t)}greater(t){return fo.create(this.key,t)}},rR=te("contextKeyService")}});function mb(e){return Ir(e)}function nR(e,t){return e!==j.Off&&e<=t}function oR(e,t,i){switch(t){case j.Trace:e.trace(i);break;case j.Debug:e.debug(i);break;case j.Info:e.info(i);break;case j.Warning:e.warn(i);break;case j.Error:e.error(i);break;case j.Off:break;default:throw new Error(`Invalid log level ${t}`)}}function mo(e,t=!1){let i="";for(let s=0;s<e.length;s++){let r=e[s];if(r instanceof Error&&(r=yn(r,t)),typeof r=="object")try{r=JSON.stringify(r)}catch{}i+=(s>0?" ":"")+r}return i}function Dm(e){if(e.verbose)return j.Trace;if(typeof e.logLevel=="string"){const t=aR(e.logLevel.toLowerCase());if(t!==void 0)return t}return nc}function gb(e){switch(e){case j.Trace:return"trace";case j.Debug:return"debug";case j.Info:return"info";case j.Warning:return"warn";case j.Error:return"error";case j.Off:return"off"}}function aR(e){switch(e){case"trace":return j.Trace;case"debug":return j.Debug;case"info":return j.Info;case"warn":return j.Warning;case"error":return j.Error;case"critical":return j.Error;case"off":return j.Off}}var fe,rc,j,nc,oc,vb,yb,wb,_b,bb,Eb,cR,Ie=y({"out-build/vs/platform/log/common/log.js"(){"use strict";ue(),oo(),ie(),Ya(),V(),ri(),K(),_t(),_e(),Y(),Tu(),se(),fe=te("logService"),rc=te("loggerService"),(function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"})(j||(j={})),nc=j.Info,oc=class extends G{constructor(){super(...arguments),this.level=nc,this._onDidChangeLogLevel=this._register(new R),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return nR(this.level,e)}canLog(e){return this._store.isDisposed?!1:this.checkLogLevel(e)}},vb=class extends oc{constructor(e){super(),this.logAlways=e}checkLogLevel(e){return this.logAlways||super.checkLogLevel(e)}trace(e,...t){this.canLog(j.Trace)&&this.log(j.Trace,mo([e,...t],!0))}debug(e,...t){this.canLog(j.Debug)&&this.log(j.Debug,mo([e,...t]))}info(e,...t){this.canLog(j.Info)&&this.log(j.Info,mo([e,...t]))}warn(e,...t){this.canLog(j.Warning)&&this.log(j.Warning,mo([e,...t]))}error(e,...t){if(this.canLog(j.Error))if(e instanceof Error){const i=Array.prototype.slice.call(arguments);i[0]=e.stack,this.log(j.Error,mo(i))}else this.log(j.Error,mo([e,...t]))}flush(){}},yb=class extends oc{constructor(e=nc,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.canLog(j.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.canLog(j.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.canLog(j.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.canLog(j.Warning)&&(this.useColors?console.warn("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.canLog(j.Error)&&(this.useColors?console.error("%c ERR","color: #f33",e,...t):console.error(e,...t))}flush(){}},wb=class extends oc{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}flush(){for(const e of this.loggers)e.flush()}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}},_b=class extends G{constructor(e,t,i){if(super(),this.logLevel=e,this.logsHome=t,this._loggers=new Pt,this._onDidChangeLoggers=this._register(new R),this.onDidChangeLoggers=this._onDidChangeLoggers.event,this._onDidChangeLogLevel=this._register(new R),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event,this._onDidChangeVisibility=this._register(new R),this.onDidChangeVisibility=this._onDidChangeVisibility.event,i)for(const s of i)this._loggers.set(s.resource,{logger:void 0,info:s})}getLoggerEntry(e){return ye(e)?[...this._loggers.values()].find(t=>t.info.id===e):this._loggers.get(e)}getLogger(e){return this.getLoggerEntry(e)?.logger}createLogger(e,t){const i=this.toResource(e),s=ye(e)?e:t?.id??ao(i.toString()).toString(16);let r=this._loggers.get(i)?.logger;const n=t?.logLevel==="always"?j.Trace:t?.logLevel;r||(r=this.doCreateLogger(i,n??this.getLogLevel(i)??this.logLevel,{...t,id:s}));const o={logger:r,info:{resource:i,id:s,logLevel:n,name:t?.name,hidden:t?.hidden,group:t?.group,extensionId:t?.extensionId,when:t?.when}};return this.registerLogger(o.info),this._loggers.set(i,o),r}toResource(e){return ye(e)?oe(this.logsHome,`${e}.log`):e}setLogLevel(e,t){if(b.isUri(e)){const i=e,s=t,r=this._loggers.get(i);r&&s!==r.info.logLevel&&(r.info.logLevel=s===this.logLevel?void 0:s,r.logger?.setLevel(s),this._loggers.set(r.info.resource,r),this._onDidChangeLogLevel.fire([i,s]))}else{this.logLevel=e;for(const[i,s]of this._loggers.entries())this._loggers.get(i)?.info.logLevel===void 0&&s.logger?.setLevel(this.logLevel);this._onDidChangeLogLevel.fire(this.logLevel)}}setVisibility(e,t){const i=this.getLoggerEntry(e);i&&t!==!i.info.hidden&&(i.info.hidden=!t,this._loggers.set(i.info.resource,i),this._onDidChangeVisibility.fire([i.info.resource,t]))}getLogLevel(e){let t;return e&&(t=this._loggers.get(e)?.info.logLevel),t??this.logLevel}registerLogger(e){const t=this._loggers.get(e.resource);t?t.info.hidden!==e.hidden&&this.setVisibility(e.resource,!e.hidden):(this._loggers.set(e.resource,{info:e,logger:void 0}),this._onDidChangeLoggers.fire({added:[e],removed:[]}))}deregisterLogger(e){const t=this.toResource(e),i=this._loggers.get(t);i&&(i.logger&&i.logger.dispose(),this._loggers.delete(t),this._onDidChangeLoggers.fire({added:[],removed:[i.info]}))}*getRegisteredLoggers(){for(const e of this._loggers.values())yield e.info}getRegisteredLogger(e){return this._loggers.get(e)?.info}dispose(){this._loggers.forEach(e=>e.logger?.dispose()),this._loggers.clear(),super.dispose()}},bb=class{constructor(){this.onDidChangeLogLevel=new R().event}setLevel(e){}getLevel(){return j.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}critical(e,...t){}dispose(){}flush(){}},Eb=class extends bb{},cR=new sc("logLevel",gb(j.Info))}}),ze,Mu=y({"out-build/vs/platform/instantiation/common/descriptors.js"(){"use strict";ze=class{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}}}),Sb,lR=y({"out-build/vs/base/common/symbols.js"(){"use strict";Sb=Symbol("MicrotaskDelay")}});function Rm(e){return!!e&&typeof e.then=="function"}function ir(e){const t=new Is,i=e(t.token);let s=!1;const r=new Promise((n,o)=>{const a=t.token.onCancellationRequested(()=>{s=!0,a.dispose(),o(new xt)});Promise.resolve(i).then(c=>{a.dispose(),t.dispose(),s?Mw(c)&&c.dispose():n(c)},c=>{a.dispose(),t.dispose(),o(c)})});return new class{cancel(){t.cancel(),t.dispose()}then(n,o){return r.then(n,o)}catch(n){return this.then(void 0,n)}finally(n){return r.finally(n)}}}function uR(){let e,t;return{promise:new Promise((s,r)=>{e=s,t=r}),resolve:e,reject:t}}function go(e,t){return t?new Promise((i,s)=>{const r=setTimeout(()=>{n.dispose(),i()},e),n=t.onCancellationRequested(()=>{clearTimeout(r),n.dispose(),s(new xt)})}):ir(i=>go(e,i))}async function hR(e,t,i){let s;for(let r=0;r<i;r++)try{return await e()}catch(n){s=n,await go(t)}throw s}var xb,kb,Pb,Ib,Lm,Sn,Fu,Am,vo,Nm,ac,Om,Cb,Tm,Db,Uu,Rb,Lb,Ab,$u,Yt,Nb,dR,Ne=y({"out-build/vs/base/common/async.js"(){"use strict";Ft(),ve(),ie(),V(),_t(),K(),lR(),Ba(),xb=class{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{if(this.queuedPromise=null,this.isDisposed)return;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(),new Promise((t,i)=>{this.activePromise.then(s=>{this.activePromise=null,t(s)},s=>{this.activePromise=null,i(s)})})}dispose(){this.isDisposed=!0}},kb=class{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e(),()=>e())}},Pb=(e,t)=>{let i=!0;const s=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(s),i=!1}}},Ib=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},Lm=class{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((s,r)=>{this.doResolve=s,this.doReject=r}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const s=this.task;return this.task=null,s()}}));const i=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=t===Sb?Ib(i):Pb(t,i),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new xt),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}},Sn=class{constructor(e){this.delayer=new Lm(e),this.throttler=new xb}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}},Fu=class{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}},Am=class{constructor(e){this._size=0,this._isDisposed=!1,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new R}whenIdle(){return this.size>0?z.toPromise(this.onDrained):Promise.resolve()}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(e){if(this._isDisposed)throw new Error("Object has been disposed");return this._size++,new Promise((t,i)=>{this.outstandingPromises.push({factory:e,c:t,e:i}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._isDisposed||(this.runningPromises--,--this._size===0&&this._onDrained.fire(),this.outstandingPromises.length>0&&this.consume())}clear(){if(this._isDisposed)throw new Error("Object has been disposed");this.outstandingPromises.length=0,this._size=this.runningPromises}dispose(){this._isDisposed=!0,this.outstandingPromises.length=0,this._size=0,this._onDrained.dispose()}},vo=class extends Am{constructor(){super(1)}},Nm=class{constructor(){this.queues=new Map,this.drainers=new Set,this.drainListeners=void 0,this.drainListenerCount=0}async whenDrained(){if(this.isDrained())return;const e=new $u;return this.drainers.add(e),e.p}isDrained(){for(const[,e]of this.queues)if(e.size>0)return!1;return!0}queueSize(e,t=ke){const i=t.getComparisonKey(e);return this.queues.get(i)?.size??0}queueFor(e,t,i=ke){const s=i.getComparisonKey(e);let r=this.queues.get(s);if(!r){r=new vo;const n=this.drainListenerCount++,o=z.once(r.onDrained)(()=>{r?.dispose(),this.queues.delete(s),this.onDidQueueDrain(),this.drainListeners?.deleteAndDispose(n),this.drainListeners?.size===0&&(this.drainListeners.dispose(),this.drainListeners=void 0)});this.drainListeners||(this.drainListeners=new mu),this.drainListeners.set(n,o),this.queues.set(s,r)}return r.queue(t)}onDidQueueDrain(){this.isDrained()&&this.releaseDrainers()}releaseDrainers(){for(const e of this.drainers)e.complete();this.drainers.clear()}dispose(){for(const[,e]of this.queues)e.dispose();this.queues.clear(),this.releaseDrainers(),this.drainListeners?.dispose()}},ac=class{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}flush(){this.isScheduled()&&(this.cancel(),this.doRun())}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}},Om=class{constructor(e,t){t%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${t}ms is not a multiple of 1000ms.`),this.runner=e,this.timeout=t,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(e=this.timeout){e%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${e}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(e/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,!(this.counter>0)&&(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner?.())}},Cb=class extends ac{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){const e=this.units;this.units=[],this.runner?.(e)}dispose(){this.units=[],super.dispose()}},Tm=class extends G{constructor(e,t){super(),this.options=e,this.handler=t,this.pendingWork=[],this.throttler=this._register(new Ha),this.disposed=!1,this.lastExecutionTime=0}get pending(){return this.pendingWork.length}work(e){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+e.length>this.options.maxBufferedWork)return!1}else if(this.pending+e.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}for(const i of e)this.pendingWork.push(i);const t=Date.now()-this.lastExecutionTime;return!this.throttler.value&&(!this.options.waitThrottleDelayBetweenWorkUnits||t>=this.options.throttleDelay)?this.doWork():!this.throttler.value&&this.options.waitThrottleDelayBetweenWorkUnits&&this.scheduleThrottler(Math.max(this.options.throttleDelay-t,0)),!0}doWork(){this.lastExecutionTime=Date.now(),this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&this.scheduleThrottler()}scheduleThrottler(e=this.options.throttleDelay){this.throttler.value=new ac(()=>{this.throttler.clear(),this.doWork()},e),this.throttler.value.schedule()}dispose(){super.dispose(),this.pendingWork.length=0,this.disposed=!0}},(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?Uu=(e,t,i)=>{gw(()=>{if(s)return;const r=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,r-Date.now())}}))});let s=!1;return{dispose(){s||(s=!0)}}}:Uu=(e,t,i)=>{const s=e.requestIdleCallback(t,typeof i=="number"?{timeout:i}:void 0);let r=!1;return{dispose(){r||(r=!0,e.cancelIdleCallback(s))}}},Db=(e,t)=>Uu(globalThis,e,t)})(),Rb=class{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=Uu(e,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},Lb=class extends Rb{constructor(e){super(globalThis,e)}},(function(e){e[e.Resolved=0]="Resolved",e[e.Rejected=1]="Rejected"})(Ab||(Ab={})),$u=class{get isRejected(){return this.outcome?.outcome===1}get isResolved(){return this.outcome?.outcome===0}get isSettled(){return!!this.outcome}get value(){return this.outcome?.outcome===0?this.outcome?.value:void 0}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new xt)}},(function(e){async function t(s){let r;const n=await Promise.all(s.map(o=>o.then(a=>a,a=>{r||(r=a)})));if(typeof r<"u")throw r;return n}e.settled=t;function i(s){return new Promise(async(r,n)=>{try{await s(r,n)}catch(o){n(o)}})}e.withAsyncBody=i})(Yt||(Yt={})),(function(e){e[e.Initial=0]="Initial",e[e.DoneOK=1]="DoneOK",e[e.DoneError=2]="DoneError"})(Nb||(Nb={})),dR=class Mi{static fromArray(t){return new Mi(i=>{i.emitMany(t)})}static fromPromise(t){return new Mi(async i=>{i.emitMany(await t)})}static fromPromisesResolveOrder(t){return new Mi(async i=>{await Promise.all(t.map(async s=>i.emitOne(await s)))})}static merge(t){return new Mi(async i=>{await Promise.all(t.map(async s=>{for await(const r of s)i.emitOne(r)}))})}static{this.EMPTY=Mi.fromArray([])}constructor(t,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new R,queueMicrotask(async()=>{const s={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(t(s)),this.resolve()}catch(r){this.reject(r)}finally{s.emitOne=void 0,s.emitMany=void 0,s.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await z.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,i){return new Mi(async s=>{for await(const r of t)s.emitOne(i(r))})}map(t){return Mi.map(this,t)}static filter(t,i){return new Mi(async s=>{for await(const r of t)i(r)&&s.emitOne(r)})}filter(t){return Mi.filter(this,t)}static coalesce(t){return Mi.filter(t,i=>!!i)}coalesce(){return Mi.coalesce(this)}static async toPromise(t){const i=[];for await(const s of t)i.push(s);return i}toPromise(){return Mi.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}}}});function Ob(e,t=!1){let i=0;const s=e.length;let r="",n=0,o=16,a=0;function c(v){let w=0,S=0;for(;w<v;){const E=e.charCodeAt(i);if(E>=48&&E<=57)S=S*16+E-48;else if(E>=65&&E<=70)S=S*16+E-65+10;else if(E>=97&&E<=102)S=S*16+E-97+10;else break;i++,w++}return w<v&&(S=-1),S}function l(v){i=v,r="",n=0,o=16,a=0}function u(){const v=i;if(e.charCodeAt(i)===48)i++;else for(i++;i<e.length&&yo(e.charCodeAt(i));)i++;if(i<e.length&&e.charCodeAt(i)===46)if(i++,i<e.length&&yo(e.charCodeAt(i)))for(i++;i<e.length&&yo(e.charCodeAt(i));)i++;else return a=3,e.substring(v,i);let w=i;if(i<e.length&&(e.charCodeAt(i)===69||e.charCodeAt(i)===101))if(i++,(i<e.length&&e.charCodeAt(i)===43||e.charCodeAt(i)===45)&&i++,i<e.length&&yo(e.charCodeAt(i))){for(i++;i<e.length&&yo(e.charCodeAt(i));)i++;w=i}else a=3;return e.substring(v,w)}function h(){let v="",w=i;for(;;){if(i>=s){v+=e.substring(w,i),a=2;break}const S=e.charCodeAt(i);if(S===34){v+=e.substring(w,i),i++;break}if(S===92){if(v+=e.substring(w,i),i++,i>=s){a=2;break}switch(e.charCodeAt(i++)){case 34:v+='"';break;case 92:v+="\\";break;case 47:v+="/";break;case 98:v+="\b";break;case 102:v+="\f";break;case 110:v+=`
`;break;case 114:v+="\r";break;case 116:v+=" ";break;case 117:{const P=c(4);P>=0?v+=String.fromCharCode(P):a=4;break}default:a=5}w=i;continue}if(S>=0&&S<=31)if(Wu(S)){v+=e.substring(w,i),a=2;break}else a=6;i++}return v}function f(){if(r="",a=0,n=i,i>=s)return n=s,o=17;let v=e.charCodeAt(i);if(Mm(v)){do i++,r+=String.fromCharCode(v),v=e.charCodeAt(i);while(Mm(v));return o=15}if(Wu(v))return i++,r+=String.fromCharCode(v),v===13&&e.charCodeAt(i)===10&&(i++,r+=`
`),o=14;switch(v){case 123:return i++,o=1;case 125:return i++,o=2;case 91:return i++,o=3;case 93:return i++,o=4;case 58:return i++,o=6;case 44:return i++,o=5;case 34:return i++,r=h(),o=10;case 47:{const w=i-1;if(e.charCodeAt(i+1)===47){for(i+=2;i<s&&!Wu(e.charCodeAt(i));)i++;return r=e.substring(w,i),o=12}if(e.charCodeAt(i+1)===42){i+=2;const S=s-1;let E=!1;for(;i<S;){if(e.charCodeAt(i)===42&&e.charCodeAt(i+1)===47){i+=2,E=!0;break}i++}return E||(i++,a=1),r=e.substring(w,i),o=13}return r+=String.fromCharCode(v),i++,o=16}case 45:if(r+=String.fromCharCode(v),i++,i===s||!yo(e.charCodeAt(i)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=u(),o=11;default:for(;i<s&&p(v);)i++,v=e.charCodeAt(i);if(n!==i){switch(r=e.substring(n,i),r){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return r+=String.fromCharCode(v),i++,o=16}}function p(v){if(Mm(v)||Wu(v))return!1;switch(v){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function g(){let v;do v=f();while(v>=12&&v<=15);return v}return{setPosition:l,getPosition:()=>i,scan:t?g:f,getToken:()=>o,getTokenValue:()=>r,getTokenOffset:()=>n,getTokenLength:()=>i-n,getTokenError:()=>a}}function Mm(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Wu(e){return e===10||e===13||e===8232||e===8233}function yo(e){return e>=48&&e<=57}function wo(e,t=[],i=cc.DEFAULT){let s=null,r=[];const n=[];function o(c){Array.isArray(r)?r.push(c):s!==null&&(r[s]=c)}return Hu(e,{onObjectBegin:()=>{const c={};o(c),n.push(r),r=c,s=null},onObjectProperty:c=>{s=c},onObjectEnd:()=>{r=n.pop()},onArrayBegin:()=>{const c=[];o(c),n.push(r),r=c,s=null},onArrayEnd:()=>{r=n.pop()},onLiteralValue:o,onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},i),r[0]}function fR(e,t=[],i=cc.DEFAULT){let s={type:"array",offset:-1,length:-1,children:[],parent:void 0};function r(c){s.type==="property"&&(s.length=c-s.offset,s=s.parent)}function n(c){return s.children.push(c),c}Hu(e,{onObjectBegin:c=>{s=n({type:"object",offset:c,length:-1,parent:s,children:[]})},onObjectProperty:(c,l,u)=>{s=n({type:"property",offset:l,length:-1,parent:s,children:[]}),s.children.push({type:"string",value:c,offset:l,length:u,parent:s})},onObjectEnd:(c,l)=>{s.length=c+l-s.offset,s=s.parent,r(c+l)},onArrayBegin:(c,l)=>{s=n({type:"array",offset:c,length:-1,parent:s,children:[]})},onArrayEnd:(c,l)=>{s.length=c+l-s.offset,s=s.parent,r(c+l)},onLiteralValue:(c,l,u)=>{n({type:_o(c),offset:l,length:u,parent:s,value:c}),r(l+u)},onSeparator:(c,l,u)=>{s.type==="property"&&(c===":"?s.colonOffset=l:c===","&&r(l))},onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},i);const a=s.children[0];return a&&delete a.parent,a}function Tb(e,t){if(!e)return;let i=e;for(const s of t)if(typeof s=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;let r=!1;for(const n of i.children)if(Array.isArray(n.children)&&n.children[0].value===s){i=n.children[1],r=!0;break}if(!r)return}else{const r=s;if(i.type!=="array"||r<0||!Array.isArray(i.children)||r>=i.children.length)return;i=i.children[r]}return i}function Hu(e,t,i=cc.DEFAULT){const s=Ob(e,!1);function r(N){return N?()=>N(s.getTokenOffset(),s.getTokenLength()):()=>!0}function n(N){return N?pe=>N(pe,s.getTokenOffset(),s.getTokenLength()):()=>!0}const o=r(t.onObjectBegin),a=n(t.onObjectProperty),c=r(t.onObjectEnd),l=r(t.onArrayBegin),u=r(t.onArrayEnd),h=n(t.onLiteralValue),f=n(t.onSeparator),p=r(t.onComment),g=n(t.onError),v=i&&i.disallowComments,w=i&&i.allowTrailingComma;function S(){for(;;){const N=s.scan();switch(s.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:v||E(11);break;case 2:E(12);break;case 6:E(16);break}switch(N){case 12:case 13:v?E(10):p();break;case 16:E(1);break;case 15:case 14:break;default:return N}}}function E(N,pe=[],at=[]){if(g(N),pe.length+at.length>0){let q=s.getToken();for(;q!==17;){if(pe.indexOf(q)!==-1){S();break}else if(at.indexOf(q)!==-1)break;q=S()}}}function P(N){const pe=s.getTokenValue();return N?h(pe):a(pe),S(),!0}function A(){switch(s.getToken()){case 11:{let N=0;try{N=JSON.parse(s.getTokenValue()),typeof N!="number"&&(E(2),N=0)}catch{E(2)}h(N);break}case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return S(),!0}function D(){return s.getToken()!==10?(E(3,[],[2,5]),!1):(P(!1),s.getToken()===6?(f(":"),S(),ne()||E(4,[],[2,5])):E(5,[],[2,5]),!0)}function T(){o(),S();let N=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){if(N||E(4,[],[]),f(","),S(),s.getToken()===2&&w)break}else N&&E(6,[],[]);D()||E(4,[],[2,5]),N=!0}return c(),s.getToken()!==2?E(7,[2],[]):S(),!0}function $(){l(),S();let N=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){if(N||E(4,[],[]),f(","),S(),s.getToken()===4&&w)break}else N&&E(6,[],[]);ne()||E(4,[],[4,5]),N=!0}return u(),s.getToken()!==4?E(8,[4],[]):S(),!0}function ne(){switch(s.getToken()){case 3:return $();case 1:return T();case 10:return P(!0);default:return A()}}return S(),s.getToken()===17?i.allowEmptyContent?!0:(E(4,[],[]),!1):ne()?(s.getToken()!==17&&E(9,[],[]),!0):(E(4,[],[]),!1)}function _o(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}var Mb,Fb,Ub,cc,$b,xn=y({"out-build/vs/base/common/json.js"(){"use strict";(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Mb||(Mb={})),(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Fb||(Fb={})),(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Ub||(Ub={})),(function(e){e.DEFAULT={allowTrailingComma:!0}})(cc||(cc={})),(function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"})($b||($b={}))}});function pR(e,t,i){let s,r,n,o,a;if(t){for(o=t.offset,a=o+t.length,n=o;n>0&&!Vu(e,n-1);)n--;let P=a;for(;P<e.length&&!Vu(e,P);)P++;r=e.substring(n,P),s=mR(r,i)}else r=e,s=0,n=0,o=0,a=e.length;const c=gR(i,e);let l=!1,u=0,h;i.insertSpaces?h=Fm(" ",i.tabSize||4):h=" ";const f=Ob(r,!1);let p=!1;function g(){return c+Fm(h,s+u)}function v(){let P=f.scan();for(l=!1;P===15||P===14;)l=l||P===14,P=f.scan();return p=P===16||f.getTokenError()!==0,P}const w=[];function S(P,A,D){!p&&A<a&&D>o&&e.substring(A,D)!==P&&w.push({offset:A,length:D-A,content:P})}let E=v();if(E!==17){const P=f.getTokenOffset()+n,A=Fm(h,s);S(A,n,P)}for(;E!==17;){let P=f.getTokenOffset()+f.getTokenLength()+n,A=v(),D="";for(;!l&&(A===12||A===13);){const $=f.getTokenOffset()+n;S(" ",P,$),P=f.getTokenOffset()+f.getTokenLength()+n,D=A===12?g():"",A=v()}if(A===2)E!==1&&(u--,D=g());else if(A===4)E!==3&&(u--,D=g());else{switch(E){case 3:case 1:u++,D=g();break;case 5:case 12:D=g();break;case 13:l?D=g():D=" ";break;case 6:D=" ";break;case 10:if(A===6){D="";break}case 7:case 8:case 9:case 11:case 2:case 4:A===12||A===13?D=" ":A!==5&&A!==17&&(p=!0);break;case 16:p=!0;break}l&&(A===12||A===13)&&(D=g())}const T=f.getTokenOffset()+n;S(D,P,T),E=A}return w}function Fm(e,t){let i="";for(let s=0;s<t;s++)i+=e;return i}function mR(e,t){let i=0,s=0;const r=t.tabSize||4;for(;i<e.length;){const n=e.charAt(i);if(n===" ")s++;else if(n===" ")s+=r;else break;i++}return Math.floor(s/r)}function gR(e,t){for(let i=0;i<t.length;i++){const s=t.charAt(i);if(s==="\r")return i+1<t.length&&t.charAt(i+1)===`
`?`\r
`:"\r";if(s===`
`)return`
`}return e&&e.eol||`
`}function Vu(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var vR=y({"out-build/vs/base/common/jsonFormatter.js"(){"use strict";xn()}});function yR(e,t,i,s,r){const n=t.slice(),a=fR(e,[]);let c,l;for(;n.length>0&&(l=n.pop(),c=Tb(a,n),c===void 0&&i!==void 0);)typeof l=="string"?i={[l]:i}:i=[i];if(c)if(c.type==="object"&&typeof l=="string"&&Array.isArray(c.children)){const u=Tb(c,[l]);if(u!==void 0)if(i===void 0){if(!u.parent)throw new Error("Malformed AST");const h=c.children.indexOf(u.parent);let f,p=u.parent.offset+u.parent.length;if(h>0){const g=c.children[h-1];f=g.offset+g.length}else f=c.offset+1,c.children.length>1&&(p=c.children[1].offset);return bo(e,{offset:f,length:p-f,content:""},s)}else return bo(e,{offset:u.offset,length:u.length,content:JSON.stringify(i)},s);else{if(i===void 0)return[];const h=`${JSON.stringify(l)}: ${JSON.stringify(i)}`,f=r?r(c.children.map(g=>g.children[0].value)):c.children.length;let p;if(f>0){const g=c.children[f-1];p={offset:g.offset+g.length,length:0,content:","+h}}else c.children.length===0?p={offset:c.offset+1,length:0,content:h}:p={offset:c.offset+1,length:0,content:h+","};return bo(e,p,s)}}else if(c.type==="array"&&typeof l=="number"&&Array.isArray(c.children))if(i!==void 0){const u=`${JSON.stringify(i)}`;let h;if(c.children.length===0||l===0)h={offset:c.offset+1,length:0,content:c.children.length===0?u:u+","};else{const f=l===-1||l>c.children.length?c.children.length:l,p=c.children[f-1];h={offset:p.offset+p.length,length:0,content:","+u}}return bo(e,h,s)}else{const u=l,h=c.children[u];let f;if(c.children.length===1)f={offset:c.offset+1,length:c.length-2,content:""};else if(c.children.length-1===u){const p=c.children[u-1],g=p.offset+p.length,v=c.offset+c.length;f={offset:g,length:v-2-g,content:""}}else f={offset:h.offset,length:c.children[u+1].offset-h.offset,content:""};return bo(e,f,s)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${c.type}`);else return i===void 0?[]:bo(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(i)},s)}function bo(e,t,i){let s=Um(e,t),r=t.offset,n=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;r>0&&!Vu(s,r-1);)r--;for(;n<s.length&&!Vu(s,n);)n++}const o=pR(s,{offset:r,length:n-r},i);for(let c=o.length-1;c>=0;c--){const l=o[c];s=Um(s,l),r=Math.min(r,l.offset),n=Math.max(n,l.offset+l.length),n+=l.content.length-l.length}const a=e.length-(s.length-n)-r;return[{offset:r,length:a,content:s.substring(r,n)}]}function Um(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function wR(e,t){const i=t.slice(0).sort((r,n)=>{const o=r.offset-n.offset;return o===0?r.length-n.length:o});let s=e.length;for(let r=i.length-1;r>=0;r--){const n=i[r];if(n.offset+n.length<=s)e=Um(e,n);else throw new Error("Overlapping edit");s=n.offset}return e}var _R=y({"out-build/vs/base/common/jsonEdit.js"(){"use strict";xn(),vR()}});function sr(e){if(!e||typeof e!="object"||e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach(([i,s])=>{t[i]=s&&typeof s=="object"?sr(s):s}),t}function bR(e){if(!e||typeof e!="object")return e;const t=[e];for(;t.length>0;){const i=t.shift();Object.freeze(i);for(const s in i)if(Wm.call(i,s)){const r=i[s];typeof r=="object"&&!Object.isFrozen(r)&&!JC(r)&&t.push(r)}}return e}function rr(e,t){return $m(e,t,new Set)}function $m(e,t,i){if(It(e))return e;const s=t(e);if(typeof s<"u")return s;if(Array.isArray(e)){const r=[];for(const n of e)r.push($m(n,t,i));return r}if(ft(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const r={};for(const n in e)Wm.call(e,n)&&(r[n]=$m(e[n],t,i));return i.delete(e),r}return e}function kn(e,t,i=!0){return ft(e)?(ft(t)&&Object.keys(t).forEach(s=>{s in e?i&&(ft(e[s])&&ft(t[s])?kn(e[s],t[s],i):e[s]=t[s]):e[s]=t[s]}),e):t}function Ds(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let i,s;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(!Ds(e[i],t[i]))return!1}else{const r=[];for(s in e)r.push(s);r.sort();const n=[];for(s in t)n.push(s);if(n.sort(),!Ds(r,n))return!1;for(i=0;i<r.length;i++)if(!Ds(e[r[i]],t[r[i]]))return!1}return!0}function ER(e){const t=new Set;return JSON.stringify(e,(i,s)=>{if(ft(s)||Array.isArray(s)){if(t.has(s))return"[Circular]";t.add(s)}return typeof s=="bigint"?`[BigInt ${s.toString()}]`:s})}function Wb(e,t){const i=t.toLowerCase(),s=Object.keys(e).find(r=>r.toLowerCase()===i);return s?e[s]:e[t]}var Wm,Si=y({"out-build/vs/base/common/objects.js"(){"use strict";_e(),Wm=Object.prototype.hasOwnProperty}});function Hm(e){return e&&typeof e=="object"&&(!e.overrideIdentifier||typeof e.overrideIdentifier=="string")&&(!e.resource||e.resource instanceof b)}function SR(e){return e&&typeof e=="object"&&(!e.overrideIdentifiers||Array.isArray(e.overrideIdentifiers))&&!e.overrideIdentifier&&(!e.resource||e.resource instanceof b)}function Vm(e,t){const i=Object.create(null);for(const s in e)Hb(i,s,e[s],t);return i}function Hb(e,t,i,s){const r=t.split("."),n=r.pop();let o=e;for(let a=0;a<r.length;a++){const c=r[a];let l=o[c];switch(typeof l){case"undefined":l=o[c]=Object.create(null);break;case"object":if(l===null){s(`Ignoring ${t} as ${r.slice(0,a+1).join(".")} is null`);return}break;default:s(`Ignoring ${t} as ${r.slice(0,a+1).join(".")} is ${JSON.stringify(l)}`);return}o=l}if(typeof o=="object"&&o!==null)try{o[n]=i}catch{s(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(o)}`)}else s(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(o)}`)}function xR(e,t){const i=t.split(".");Vb(e,i)}function Vb(e,t){if(!e)return;const i=t.shift();if(t.length===0){delete e[i];return}if(Object.keys(e).indexOf(i)!==-1){const s=e[i];typeof s=="object"&&!Array.isArray(s)&&(Vb(s,t),Object.keys(s).length===0&&delete e[i])}}function ju(e,t,i){function s(o,a){let c=o;for(const l of a){if(typeof c!="object"||c===null)return;c=c[l]}return c}const r=t.split("."),n=s(e,r);return typeof n>"u"?i:n}function kR(e){return e.replace(/[\[\]]/g,"")}var Zt,jb,ci=y({"out-build/vs/platform/configuration/common/configuration.js"(){"use strict";Fa(),_e(),Y(),se(),Zt=te("configurationService"),(function(e){e[e.APPLICATION=1]="APPLICATION",e[e.USER=2]="USER",e[e.USER_LOCAL=3]="USER_LOCAL",e[e.USER_REMOTE=4]="USER_REMOTE",e[e.WORKSPACE=5]="WORKSPACE",e[e.WORKSPACE_FOLDER=6]="WORKSPACE_FOLDER",e[e.DEFAULT=7]="DEFAULT",e[e.MEMORY=8]="MEMORY"})(jb||(jb={}))}});function PR(e){let t=!1;const i=new Map,s=new Map;if(IR(e,u=>{if(e===u)return!0;const h=JSON.stringify(u);if(h.length<30)return!0;const f=i.get(h);if(!f){const p={schemas:[u]};return i.set(h,p),s.set(u,p),!0}return f.schemas.push(u),s.set(u,f),t=!0,!1}),i.clear(),!t)return JSON.stringify(e);let n="$defs";for(;e.hasOwnProperty(n);)n+="_";const o=[];function a(u){return JSON.stringify(u,(h,f)=>{if(f!==u){const p=s.get(f);if(p&&p.schemas.length>1)return p.id||(p.id=`_${o.length}`,o.push(p.schemas[0])),{$ref:`#/${n}/${p.id}`}}return f})}const c=a(e),l=[];for(let u=0;u<o.length;u++)l.push(`"_${u}":${a(o[u])}`);return l.length?`${c.substring(0,c.length-1)},"${n}":{${l.join(",")}}}`:c}function Eo(e){return typeof e=="object"&&e!==null}function IR(e,t){if(!e||typeof e!="object")return;const i=(...c)=>{for(const l of c)Eo(l)&&o.push(l)},s=(...c)=>{for(const l of c)if(Eo(l))for(const u in l){const h=l[u];Eo(h)&&o.push(h)}},r=(...c)=>{for(const l of c)if(Array.isArray(l))for(const u of l)Eo(u)&&o.push(u)},n=c=>{if(Array.isArray(c))for(const l of c)Eo(l)&&o.push(l);else Eo(c)&&o.push(c)},o=[e];let a=o.pop();for(;a;)t(a)&&(i(a.additionalItems,a.additionalProperties,a.not,a.contains,a.propertyNames,a.if,a.then,a.else,a.unevaluatedItems,a.unevaluatedProperties),s(a.definitions,a.$defs,a.properties,a.patternProperties,a.dependencies,a.dependentSchemas),r(a.anyOf,a.allOf,a.oneOf,a.prefixItems),n(a.items)),a=o.pop()}var CR=y({"out-build/vs/base/common/jsonSchema.js"(){"use strict"}}),Bb,li,nr=y({"out-build/vs/platform/registry/common/platform.js"(){"use strict";Fa(),_e(),Bb=class{constructor(){this.data=new Map}add(e,t){qp(ye(e)),qp(ft(t)),qp(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}knows(e){return this.data.has(e)}as(e){return this.data.get(e)||null}dispose(){this.data.forEach(e=>{pu(e.dispose)&&e.dispose()}),this.data.clear()}},li=new Bb}});function zb(e){return e.length>0&&e.charAt(e.length-1)==="#"?e.substring(0,e.length-1):e}var jm,qb,Gb,DR=y({"out-build/vs/platform/jsonschemas/common/jsonContributionRegistry.js"(){"use strict";ie(),CR(),V(),nr(),jm={JSONContribution:"base.contributions.json"},qb=class extends G{constructor(){super(...arguments),this.schemasById={},this.schemaAssociations={},this._onDidChangeSchema=this._register(new R),this.onDidChangeSchema=this._onDidChangeSchema.event,this._onDidChangeSchemaAssociations=this._register(new R),this.onDidChangeSchemaAssociations=this._onDidChangeSchemaAssociations.event}registerSchema(e,t,i){const s=zb(e);this.schemasById[s]=t,this._onDidChangeSchema.fire(e),i&&i.add(Se(()=>{delete this.schemasById[s],this._onDidChangeSchema.fire(e)}))}registerSchemaAssociation(e,t){const i=zb(e);return this.schemaAssociations[i]||(this.schemaAssociations[i]=[]),this.schemaAssociations[i].includes(t)||(this.schemaAssociations[i].push(t),this._onDidChangeSchemaAssociations.fire()),Se(()=>{const s=this.schemaAssociations[i];if(s){const r=s.indexOf(t);r!==-1&&(s.splice(r,1),s.length===0&&delete this.schemaAssociations[i],this._onDidChangeSchemaAssociations.fire())}})}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}getSchemaContributions(){return{schemas:this.schemasById}}getSchemaContent(e){const t=this.schemasById[e];return t?PR(t):void 0}hasSchemaContent(e){return!!this.schemasById[e]}getSchemaAssociations(){return this.schemaAssociations}},Gb=new qb,li.add(jm.JSONContribution,Gb)}});function lc(e){const t=[];if(Rs.test(e)){let i=zm.exec(e);for(;i?.length;){const s=i[1].trim();s&&t.push(s),i=zm.exec(e)}}return ks(t)}function RR(e){return e.reduce((t,i)=>`${t}[${i}]`,"")}function LR(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function AR(e,t){return e.trim()?Rs.test(e)?m(1808,null,e):vc.getConfigurationProperties()[e]!==void 0?m(1809,null,e):t.policy?.name&&vc.getPolicyConfigurations().get(t.policy?.name)!==void 0?m(1810,null,e,t.policy?.name,vc.getPolicyConfigurations().get(t.policy?.name)):null:m(1807,null)}var Qb,ns,Jb,uc,hc,dc,fc,pc,mc,So,Or,gc,Xb,Bm,zm,or,Rs,vc,xo=y({"out-build/vs/platform/configuration/common/configurationRegistry.js"(){"use strict";kt(),ie(),_e(),ue(),ci(),DR(),nr(),V(),(function(e){e.Multiline="multilineText",e.Singleline="singlelineText"})(Qb||(Qb={})),ns={Configuration:"base.contributions.configuration"},(function(e){e[e.APPLICATION=1]="APPLICATION",e[e.MACHINE=2]="MACHINE",e[e.APPLICATION_MACHINE=3]="APPLICATION_MACHINE",e[e.WINDOW=4]="WINDOW",e[e.RESOURCE=5]="RESOURCE",e[e.LANGUAGE_OVERRIDABLE=6]="LANGUAGE_OVERRIDABLE",e[e.MACHINE_OVERRIDABLE=7]="MACHINE_OVERRIDABLE"})(Jb||(Jb={})),uc={properties:{},patternProperties:{}},hc={properties:{},patternProperties:{}},dc={properties:{},patternProperties:{}},fc={properties:{},patternProperties:{}},pc={properties:{},patternProperties:{}},mc={properties:{},patternProperties:{}},So={properties:{},patternProperties:{}},Or="vscode://schemas/settings/resourceLanguage",gc=li.as(jm.JSONContribution),Xb=class extends G{constructor(){super(),this.registeredConfigurationDefaults=[],this.overrideIdentifiers=new Set,this._onDidSchemaChange=this._register(new R),this.onDidSchemaChange=this._onDidSchemaChange.event,this._onDidUpdateConfiguration=this._register(new R),this.onDidUpdateConfiguration=this._onDidUpdateConfiguration.event,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:m(1801,null),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},gc.registerSchema(Or,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){return this.registerConfigurations([e],t),e}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),gc.registerSchema(Or,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}deregisterConfigurations(e){const t=new Set;this.doDeregisterConfigurations(e,t),gc.registerSchema(Or,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t})}updateConfigurations({add:e,remove:t}){const i=new Set;this.doDeregisterConfigurations(t,i),this.doRegisterConfigurations(e,!1,i),gc.registerSchema(Or,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){this.registeredConfigurationDefaults.push(...e);const i=[];for(const{overrides:s,source:r}of e)for(const n in s){t.add(n);const o=this.configurationDefaultsOverrides.get(n)??this.configurationDefaultsOverrides.set(n,{configurationDefaultOverrides:[]}).get(n),a=s[n];if(o.configurationDefaultOverrides.push({value:a,source:r}),Rs.test(n)){const c=this.mergeDefaultConfigurationsForOverrideIdentifier(n,a,r,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c,this.updateDefaultOverrideProperty(n,c,r),i.push(...lc(n))}else{const c=this.mergeDefaultConfigurationsForConfigurationProperty(n,a,r,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c;const l=this.configurationProperties[n];l&&(this.updatePropertyDefaultValue(n,l),this.updateSchema(n,l))}}this.doRegisterOverrideIdentifiers(i)}deregisterDefaultConfigurations(e){const t=new Set;this.doDeregisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doDeregisterDefaultConfigurations(e,t){for(const i of e){const s=this.registeredConfigurationDefaults.indexOf(i);s!==-1&&this.registeredConfigurationDefaults.splice(s,1)}for(const{overrides:i,source:s}of e)for(const r in i){const n=this.configurationDefaultsOverrides.get(r);if(!n)continue;const o=n.configurationDefaultOverrides.findIndex(a=>s?a.source?.id===s.id:a.value===i[r]);if(o!==-1){if(n.configurationDefaultOverrides.splice(o,1),n.configurationDefaultOverrides.length===0&&this.configurationDefaultsOverrides.delete(r),Rs.test(r)){let a;for(const c of n.configurationDefaultOverrides)a=this.mergeDefaultConfigurationsForOverrideIdentifier(r,c.value,c.source,a);a&&!Jp(a.value)?(n.configurationDefaultOverrideValue=a,this.updateDefaultOverrideProperty(r,a,s)):(this.configurationDefaultsOverrides.delete(r),delete this.configurationProperties[r],delete this.defaultLanguageConfigurationOverridesNode.properties[r])}else{let a;for(const l of n.configurationDefaultOverrides)a=this.mergeDefaultConfigurationsForConfigurationProperty(r,l.value,l.source,a);n.configurationDefaultOverrideValue=a;const c=this.configurationProperties[r];c&&(this.updatePropertyDefaultValue(r,c),this.updateSchema(r,c))}t.add(r)}}this.updateOverridePropertyPatternKey()}updateDefaultOverrideProperty(e,t,i){const s={type:"object",default:t.value,description:m(1802,null,kR(e)),$ref:Or,defaultDefaultValue:t.value,source:i,defaultValueSource:i};this.configurationProperties[e]=s,this.defaultLanguageConfigurationOverridesNode.properties[e]=s}mergeDefaultConfigurationsForOverrideIdentifier(e,t,i,s){const r=s?.value||{},n=s?.source??new Map;if(!(n instanceof Map)){console.error("objectConfigurationSources is not a Map");return}for(const o of Object.keys(t)){const a=t[o];if(ft(a)&&(Ui(r[o])||ft(r[o]))){if(r[o]={...r[o]??{},...a},i)for(const l in a)n.set(`${o}.${l}`,i)}else r[o]=a,i?n.set(o,i):n.delete(o)}return{value:r,source:n}}mergeDefaultConfigurationsForConfigurationProperty(e,t,i,s){const r=this.configurationProperties[e],n=s?.value??r?.defaultDefaultValue;let o=i;if(ft(t)&&(r!==void 0&&r.type==="object"||r===void 0&&(Ui(n)||ft(n)))){if(o=s?.source??new Map,!(o instanceof Map)){console.error("defaultValueSource is not a Map");return}for(const c in t)i&&o.set(`${e}.${c}`,i);t={...ft(n)?n:{},...t}}return{value:t,source:o}}deltaConfiguration(e){let t=!1;const i=new Set;e.removedDefaults&&(this.doDeregisterDefaultConfigurations(e.removedDefaults,i),t=!0),e.addedDefaults&&(this.doRegisterDefaultConfigurations(e.addedDefaults,i),t=!0),e.removedConfigurations&&this.doDeregisterConfigurations(e.removedConfigurations,i),e.addedConfigurations&&this.doRegisterConfigurations(e.addedConfigurations,!1,i),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:t})}notifyConfigurationSchemaUpdated(...e){this._onDidSchemaChange.fire()}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(s=>{this.validateAndRegisterProperties(s,t,s.extensionInfo,s.restrictedProperties,void 0,i),this.configurationContributors.push(s),this.registerJSONConfiguration(s)})}doDeregisterConfigurations(e,t){const i=s=>{if(s.properties)for(const r in s.properties){t.add(r);const n=this.configurationProperties[r];n?.policy?.name&&this.policyConfigurations.delete(n.policy.name),delete this.configurationProperties[r],this.removeFromSchema(r,s.properties[r])}s.allOf?.forEach(r=>i(r))};for(const s of e){i(s);const r=this.configurationContributors.indexOf(s);r!==-1&&this.configurationContributors.splice(r,1)}}validateAndRegisterProperties(e,t=!0,i,s,r=4,n){r=It(e.scope)?r:e.scope;const o=e.properties;if(o)for(const c in o){const l=o[c];if(t&&AR(c,l)){delete o[c];continue}l.source=i,l.defaultDefaultValue=o[c].default,this.updatePropertyDefaultValue(c,l),Rs.test(c)?l.scope=void 0:(l.scope=It(l.scope)?r:l.scope,l.restricted=It(l.restricted)?!!s?.includes(c):l.restricted);const u=o[c].hasOwnProperty("included")&&!o[c].included,h=o[c].policy?.name;u?(this.excludedConfigurationProperties[c]=o[c],h&&(this.policyConfigurations.set(h,c),n.add(c)),delete o[c]):(n.add(c),h&&this.policyConfigurations.set(h,c),this.configurationProperties[c]=o[c],!o[c].deprecationMessage&&o[c].markdownDeprecationMessage&&(o[c].deprecationMessage=o[c].markdownDeprecationMessage))}const a=e.allOf;if(a)for(const c of a)this.validateAndRegisterProperties(c,t,i,s,r,n)}getConfigurations(){return this.configurationContributors}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties}getRegisteredDefaultConfigurations(){return[...this.registeredConfigurationDefaults]}getConfigurationDefaultsOverrides(){const e=new Map;for(const[t,i]of this.configurationDefaultsOverrides)i.configurationDefaultOverrideValue&&e.set(t,i.configurationDefaultOverrideValue);return e}registerJSONConfiguration(e){const t=i=>{const s=i.properties;if(s)for(const n in s)this.updateSchema(n,s[n]);i.allOf?.forEach(t)};t(e)}updateSchema(e,t){switch(uc.properties[e]=t,t.scope){case 1:hc.properties[e]=t;break;case 2:fc.properties[e]=t;break;case 3:dc.properties[e]=t;break;case 7:pc.properties[e]=t;break;case 4:mc.properties[e]=t;break;case 5:So.properties[e]=t;break;case 6:So.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}removeFromSchema(e,t){switch(delete uc.properties[e],t.scope){case 1:delete hc.properties[e];break;case 2:delete fc.properties[e];break;case 3:delete dc.properties[e];break;case 7:delete pc.properties[e];break;case 4:delete mc.properties[e];break;case 5:case 6:delete So.properties[e],delete this.resourceLanguageSettingsSchema.properties[e];break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:m(1803,null),errorMessage:m(1804,null),$ref:Or};this.updatePropertyDefaultValue(t,i),uc.properties[t]=i,hc.properties[t]=i,dc.properties[t]=i,fc.properties[t]=i,pc.properties[t]=i,mc.properties[t]=i,So.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:m(1805,null),errorMessage:m(1806,null),$ref:Or};uc.patternProperties[or]=e,hc.patternProperties[or]=e,dc.patternProperties[or]=e,fc.patternProperties[or]=e,pc.patternProperties[or]=e,mc.patternProperties[or]=e,So.patternProperties[or]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e)?.configurationDefaultOverrideValue;let s,r;i&&(!t.disallowConfigurationDefault||!i.source)&&(s=i.value,r=i.source),Ui(s)&&(s=t.defaultDefaultValue,r=void 0),Ui(s)&&(s=LR(t.type)),t.default=s,t.defaultValueSource=r}},Bm="\\[([^\\]]+)\\]",zm=new RegExp(Bm,"g"),or=`^(${Bm})+$`,Rs=new RegExp(or),vc=new Xb,li.add(ns.Configuration,vc)}});function yc(e){return Object.isFrozen(e)?e:bR(e)}function Tr(e,t){const{added:i,removed:s,updated:r}=Yb(t?.rawConfiguration,e?.rawConfiguration),n=[],o=e?.getAllOverrideIdentifiers()||[],a=t?.getAllOverrideIdentifiers()||[];if(t){const c=a.filter(l=>!o.includes(l));for(const l of c)n.push([l,t.getKeysForOverrideIdentifier(l)])}if(e){const c=o.filter(l=>!a.includes(l));for(const l of c)n.push([l,e.getKeysForOverrideIdentifier(l)])}if(t&&e){for(const c of o)if(a.includes(c)){const l=Yb({contents:e.getOverrideValue(void 0,c)||{},keys:e.getKeysForOverrideIdentifier(c)},{contents:t.getOverrideValue(void 0,c)||{},keys:t.getKeysForOverrideIdentifier(c)});n.push([c,[...l.added,...l.removed,...l.updated]])}}return{added:i,removed:s,updated:r,overrides:n}}function Yb(e,t){const i=e?t?e.keys.filter(n=>t.keys.indexOf(n)===-1):[...e.keys]:[],s=t?e?t.keys.filter(n=>e.keys.indexOf(n)===-1):[...t.keys]:[],r=[];if(e&&t){for(const n of t.keys)if(e.keys.indexOf(n)!==-1){const o=ju(t.contents,n),a=ju(e.contents,n);Ds(o,a)||r.push(n)}}return{added:i,removed:s,updated:r}}var gt,qm,Zb,Kb,Bu,eE,tE=y({"out-build/vs/platform/configuration/common/configurationModels.js"(){"use strict";kt(),ie(),xn(),V(),ri(),Si(),_e(),Y(),ci(),xo(),nr(),gt=class Xn{static createEmptyModel(t){return new Xn({},[],[],void 0,t)}constructor(t,i,s,r,n){this._contents=t,this._keys=i,this._overrides=s,this.raw=r,this.logService=n,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw){const t=(Array.isArray(this.raw)?this.raw:[this.raw]).map(i=>{if(i instanceof Xn)return i;const s=new qm("",this.logService);return s.parseRaw(i),s.configurationModel});this._rawConfiguration=t.reduce((i,s)=>s===i?s:i.merge(s),t[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(t){return t?ju(this.contents,t):this.contents}inspect(t,i){const s=this;return{get value(){return yc(s.rawConfiguration.getValue(t))},get override(){return i?yc(s.rawConfiguration.getOverrideValue(t,i)):void 0},get merged(){return yc(i?s.rawConfiguration.override(i).getValue(t):s.rawConfiguration.getValue(t))},get overrides(){const r=[];for(const{contents:n,identifiers:o,keys:a}of s.rawConfiguration.overrides){const c=new Xn(n,a,[],void 0,s.logService).getValue(t);c!==void 0&&r.push({identifiers:o,value:c})}return r.length?yc(r):void 0}}}getOverrideValue(t,i){const s=this.getContentsForOverrideIdentifer(i);return s?t?ju(s,t):s:void 0}getKeysForOverrideIdentifier(t){const i=[];for(const s of this.overrides)s.identifiers.includes(t)&&i.push(...s.keys);return ks(i)}getAllOverrideIdentifiers(){const t=[];for(const i of this.overrides)t.push(...i.identifiers);return ks(t)}override(t){let i=this.overrideConfigurations.get(t);return i||(i=this.createOverrideConfigurationModel(t),this.overrideConfigurations.set(t,i)),i}merge(...t){const i=sr(this.contents),s=sr(this.overrides),r=[...this.keys],n=this.raw?Array.isArray(this.raw)?[...this.raw]:[this.raw]:[this];for(const o of t)if(n.push(...o.raw?Array.isArray(o.raw)?o.raw:[o.raw]:[o]),!o.isEmpty()){this.mergeContents(i,o.contents);for(const a of o.overrides){const[c]=s.filter(l=>Pr(l.identifiers,a.identifiers));c?(this.mergeContents(c.contents,a.contents),c.keys.push(...a.keys),c.keys=ks(c.keys)):s.push(sr(a))}for(const a of o.keys)r.indexOf(a)===-1&&r.push(a)}return new Xn(i,r,s,!n.length||n.every(o=>o instanceof Xn)?void 0:n,this.logService)}createOverrideConfigurationModel(t){const i=this.getContentsForOverrideIdentifer(t);if(!i||typeof i!="object"||!Object.keys(i).length)return this;const s={};for(const r of ks([...Object.keys(this.contents),...Object.keys(i)])){let n=this.contents[r];const o=i[r];o&&(typeof n=="object"&&typeof o=="object"?(n=sr(n),this.mergeContents(n,o)):n=o),s[r]=n}return new Xn(s,this.keys,this.overrides,void 0,this.logService)}mergeContents(t,i){for(const s of Object.keys(i)){if(s in t&&ft(t[s])&&ft(i[s])){this.mergeContents(t[s],i[s]);continue}t[s]=sr(i[s])}}getContentsForOverrideIdentifer(t){let i=null,s=null;const r=n=>{n&&(s?this.mergeContents(s,n):s=sr(n))};for(const n of this.overrides)n.identifiers.length===1&&n.identifiers[0]===t?i=n.contents:n.identifiers.includes(t)&&r(n.contents);return r(i),s}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(t,i){this.updateValue(t,i,!0)}setValue(t,i){this.updateValue(t,i,!1)}removeValue(t){const i=this.keys.indexOf(t);i!==-1&&(this.keys.splice(i,1),xR(this.contents,t),Rs.test(t)&&this.overrides.splice(this.overrides.findIndex(s=>Pr(s.identifiers,lc(t))),1))}updateValue(t,i,s){if(Hb(this.contents,t,i,r=>this.logService.error(r)),s=s||this.keys.indexOf(t)===-1,s&&this.keys.push(t),Rs.test(t)){const r=lc(t),n={identifiers:r,keys:Object.keys(this.contents[t]),contents:Vm(this.contents[t],a=>this.logService.error(a))},o=this.overrides.findIndex(a=>Pr(a.identifiers,r));o!==-1?this.overrides[o]=n:this.overrides.push(n)}}},qm=class{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[],this._parseErrors=[]}get configurationModel(){return this._configurationModel||gt.createEmptyModel(this.logService)}get restrictedConfigurations(){return this._restrictedConfigurations}get errors(){return this._parseErrors}parse(e,t){if(!It(e)){const i=this.doParseContent(e);this.parseRaw(i,t)}}reparse(e){this._raw&&this.parseRaw(this._raw,e)}parseRaw(e,t){this._raw=e;const{contents:i,keys:s,overrides:r,restricted:n,hasExcludedProperties:o}=this.doParseRaw(e,t);this._configurationModel=new gt(i,s,r,o?[e]:void 0,this.logService),this._restrictedConfigurations=n||[]}doParseContent(e){let t={},i=null,s=[];const r=[],n=[];function o(c){Array.isArray(s)?s.push(c):i!==null&&(s[i]=c)}const a={onObjectBegin:()=>{const c={};o(c),r.push(s),s=c,i=null},onObjectProperty:c=>{i=c},onObjectEnd:()=>{s=r.pop()},onArrayBegin:()=>{const c=[];o(c),r.push(s),s=c,i=null},onArrayEnd:()=>{s=r.pop()},onLiteralValue:o,onError:(c,l,u)=>{n.push({error:c,offset:l,length:u})}};if(e)try{Hu(e,a),t=s[0]||{}}catch(c){this.logService.error(`Error while parsing settings file ${this._name}: ${c}`),this._parseErrors=[c]}return t}doParseRaw(e,t){const i=li.as(ns.Configuration).getConfigurationProperties(),s=this.filter(e,i,!0,t);e=s.raw;const r=Vm(e,a=>this.logService.error(`Conflict in settings file ${this._name}: ${a}`)),n=Object.keys(e),o=this.toOverrides(e,a=>this.logService.error(`Conflict in settings file ${this._name}: ${a}`));return{contents:r,keys:n,overrides:o,restricted:s.restricted,hasExcludedProperties:s.hasExcludedProperties}}filter(e,t,i,s){let r=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:r};const n={},o=[];for(const a in e)if(Rs.test(a)&&i){const c=this.filter(e[a],t,!1,s);n[a]=c.raw,r=r||c.hasExcludedProperties,o.push(...c.restricted)}else{const c=t[a];c?.restricted&&o.push(a),this.shouldInclude(a,c,s)?n[a]=e[a]:r=!0}return{raw:n,restricted:o,hasExcludedProperties:r}}shouldInclude(e,t,i){if(i.exclude?.includes(e))return!1;if(i.include?.includes(e))return!0;if(i.skipRestricted&&t?.restricted||i.skipUnregistered&&!t)return!1;const s=t?typeof t.scope<"u"?t.scope:4:void 0;return s===void 0||i.scopes===void 0?!0:i.scopes.includes(s)}toOverrides(e,t){const i=[];for(const s of Object.keys(e))if(Rs.test(s)){const r={};for(const n in e[s])r[n]=e[s][n];i.push({identifiers:lc(s),keys:Object.keys(r),contents:Vm(r,t)})}return i}},Zb=class extends G{constructor(e,t,i,s,r){super(),this.userSettingsResource=e,this.parseOptions=t,this.fileService=s,this.logService=r,this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,this.parser=new qm(this.userSettingsResource.toString(),r),this._register(this.fileService.watch(i.dirname(this.userSettingsResource))),this._register(this.fileService.watch(this.userSettingsResource)),this._register(z.any(z.filter(this.fileService.onDidFilesChange,n=>n.contains(this.userSettingsResource)),z.filter(this.fileService.onDidRunOperation,n=>(n.isOperation(0)||n.isOperation(3)||n.isOperation(1)||n.isOperation(4))&&i.isEqual(n.resource,e)))(()=>this._onDidChange.fire()))}async loadConfiguration(){try{const e=await this.fileService.readFile(this.userSettingsResource);return this.parser.parse(e.value.toString()||"{}",this.parseOptions),this.parser.configurationModel}catch{return gt.createEmptyModel(this.logService)}}reparse(e){return e&&(this.parseOptions=e),this.parser.reparse(this.parseOptions),this.parser.configurationModel}getRestrictedSettings(){return this.parser.restrictedConfigurations}},Kb=class{constructor(e,t,i,s,r,n,o,a,c,l,u,h,f){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=s,this.defaultConfiguration=r,this.policyConfiguration=n,this.applicationConfiguration=o,this.userConfiguration=a,this.localUserConfiguration=c,this.remoteUserConfiguration=l,this.workspaceConfiguration=u,this.folderConfigurationModel=h,this.memoryConfigurationModel=f}get value(){return yc(this._value)}toInspectValue(e){return e?.value!==void 0||e?.override!==void 0||e?.overrides!==void 0?e:void 0}get defaultInspectValue(){return this._defaultInspectValue||(this._defaultInspectValue=this.defaultConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._defaultInspectValue}get defaultValue(){return this.defaultInspectValue.merged}get default(){return this.toInspectValue(this.defaultInspectValue)}get policyInspectValue(){return this._policyInspectValue===void 0&&(this._policyInspectValue=this.policyConfiguration?this.policyConfiguration.inspect(this.key):null),this._policyInspectValue}get policyValue(){return this.policyInspectValue?.merged}get policy(){return this.policyInspectValue?.value!==void 0?{value:this.policyInspectValue.value}:void 0}get applicationInspectValue(){return this._applicationInspectValue===void 0&&(this._applicationInspectValue=this.applicationConfiguration?this.applicationConfiguration.inspect(this.key):null),this._applicationInspectValue}get applicationValue(){return this.applicationInspectValue?.merged}get application(){return this.toInspectValue(this.applicationInspectValue)}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get userValue(){return this.userInspectValue.merged}get user(){return this.toInspectValue(this.userInspectValue)}get userLocalInspectValue(){return this._userLocalInspectValue||(this._userLocalInspectValue=this.localUserConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userLocalInspectValue}get userLocalValue(){return this.userLocalInspectValue.merged}get userLocal(){return this.toInspectValue(this.userLocalInspectValue)}get userRemoteInspectValue(){return this._userRemoteInspectValue||(this._userRemoteInspectValue=this.remoteUserConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userRemoteInspectValue}get userRemoteValue(){return this.userRemoteInspectValue.merged}get userRemote(){return this.toInspectValue(this.userRemoteInspectValue)}get workspaceInspectValue(){return this._workspaceInspectValue===void 0&&(this._workspaceInspectValue=this.workspaceConfiguration?this.workspaceConfiguration.inspect(this.key,this.overrides.overrideIdentifier):null),this._workspaceInspectValue}get workspaceValue(){return this.workspaceInspectValue?.merged}get workspace(){return this.toInspectValue(this.workspaceInspectValue)}get workspaceFolderInspectValue(){return this._workspaceFolderInspectValue===void 0&&(this._workspaceFolderInspectValue=this.folderConfigurationModel?this.folderConfigurationModel.inspect(this.key,this.overrides.overrideIdentifier):null),this._workspaceFolderInspectValue}get workspaceFolderValue(){return this.workspaceFolderInspectValue?.merged}get workspaceFolder(){return this.toInspectValue(this.workspaceFolderInspectValue)}get memoryInspectValue(){return this._memoryInspectValue===void 0&&(this._memoryInspectValue=this.memoryConfigurationModel.inspect(this.key,this.overrides.overrideIdentifier)),this._memoryInspectValue}get memoryValue(){return this.memoryInspectValue.merged}get memory(){return this.toInspectValue(this.memoryInspectValue)}},Bu=class ZI{constructor(t,i,s,r,n,o,a,c,l,u){this._defaultConfiguration=t,this._policyConfiguration=i,this._applicationConfiguration=s,this._localUserConfiguration=r,this._remoteUserConfiguration=n,this._workspaceConfiguration=o,this._folderConfigurations=a,this._memoryConfiguration=c,this._memoryConfigurationByResource=l,this.logService=u,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Pt,this._userConfiguration=null}getValue(t,i,s){return this.getConsolidatedConfigurationModel(t,i,s).getValue(t)}updateValue(t,i,s={}){let r;s.resource?(r=this._memoryConfigurationByResource.get(s.resource),r||(r=gt.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(s.resource,r))):r=this._memoryConfiguration,i===void 0?r.removeValue(t):r.setValue(t,i),s.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(t,i,s){const r=this.getConsolidatedConfigurationModel(t,i,s),n=this.getFolderConfigurationModelForResource(i.resource,s),o=i.resource?this._memoryConfigurationByResource.get(i.resource)||this._memoryConfiguration:this._memoryConfiguration,a=new Set;for(const c of r.overrides)for(const l of c.identifiers)r.getOverrideValue(t,l)!==void 0&&a.add(l);return new Kb(t,i,r.getValue(t),a.size?[...a]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,s?this._workspaceConfiguration:void 0,n||void 0,o)}keys(t){const i=this.getFolderConfigurationModelForResource(void 0,t);return{default:this._defaultConfiguration.keys.slice(0),user:this.userConfiguration.keys.slice(0),workspace:this._workspaceConfiguration.keys.slice(0),workspaceFolder:i?i.keys.slice(0):[]}}updateDefaultConfiguration(t){this._defaultConfiguration=t,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updatePolicyConfiguration(t){this._policyConfiguration=t}updateApplicationConfiguration(t){this._applicationConfiguration=t,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateLocalUserConfiguration(t){this._localUserConfiguration=t,this._userConfiguration=null,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateRemoteUserConfiguration(t){this._remoteUserConfiguration=t,this._userConfiguration=null,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateWorkspaceConfiguration(t){this._workspaceConfiguration=t,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateFolderConfiguration(t,i){this._folderConfigurations.set(t,i),this._foldersConsolidatedConfigurations.delete(t)}deleteFolderConfiguration(t){this.folderConfigurations.delete(t),this._foldersConsolidatedConfigurations.delete(t)}compareAndUpdateDefaultConfiguration(t,i){const s=[];if(!i){const{added:r,updated:n,removed:o}=Tr(this._defaultConfiguration,t);i=[...r,...n,...o]}for(const r of i)for(const n of lc(r)){const o=this._defaultConfiguration.getKeysForOverrideIdentifier(n),a=t.getKeysForOverrideIdentifier(n),c=[...a.filter(l=>o.indexOf(l)===-1),...o.filter(l=>a.indexOf(l)===-1),...o.filter(l=>!Ds(this._defaultConfiguration.override(n).getValue(l),t.override(n).getValue(l)))];s.push([n,c])}return this.updateDefaultConfiguration(t),{keys:i,overrides:s}}compareAndUpdatePolicyConfiguration(t){const{added:i,updated:s,removed:r}=Tr(this._policyConfiguration,t),n=[...i,...s,...r];return n.length&&this.updatePolicyConfiguration(t),{keys:n,overrides:[]}}compareAndUpdateApplicationConfiguration(t){const{added:i,updated:s,removed:r,overrides:n}=Tr(this.applicationConfiguration,t),o=[...i,...s,...r];return o.length&&this.updateApplicationConfiguration(t),{keys:o,overrides:n}}compareAndUpdateLocalUserConfiguration(t){const{added:i,updated:s,removed:r,overrides:n}=Tr(this.localUserConfiguration,t),o=[...i,...s,...r];return o.length&&this.updateLocalUserConfiguration(t),{keys:o,overrides:n}}compareAndUpdateRemoteUserConfiguration(t){const{added:i,updated:s,removed:r,overrides:n}=Tr(this.remoteUserConfiguration,t),o=[...i,...s,...r];return o.length&&this.updateRemoteUserConfiguration(t),{keys:o,overrides:n}}compareAndUpdateWorkspaceConfiguration(t){const{added:i,updated:s,removed:r,overrides:n}=Tr(this.workspaceConfiguration,t),o=[...i,...s,...r];return o.length&&this.updateWorkspaceConfiguration(t),{keys:o,overrides:n}}compareAndUpdateFolderConfiguration(t,i){const s=this.folderConfigurations.get(t),{added:r,updated:n,removed:o,overrides:a}=Tr(s,i),c=[...r,...n,...o];return(c.length||!s)&&this.updateFolderConfiguration(t,i),{keys:c,overrides:a}}compareAndDeleteFolderConfiguration(t){const i=this.folderConfigurations.get(t);if(!i)throw new Error("Unknown folder");this.deleteFolderConfiguration(t);const{added:s,updated:r,removed:n,overrides:o}=Tr(i,void 0);return{keys:[...s,...r,...n],overrides:o}}get defaults(){return this._defaultConfiguration}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){if(!this._userConfiguration)if(this._remoteUserConfiguration.isEmpty())this._userConfiguration=this._localUserConfiguration;else{const t=this._localUserConfiguration.merge(this._remoteUserConfiguration);this._userConfiguration=new gt(t.contents,t.keys,t.overrides,void 0,this.logService)}return this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}get workspaceConfiguration(){return this._workspaceConfiguration}get folderConfigurations(){return this._folderConfigurations}getConsolidatedConfigurationModel(t,i,s){let r=this.getConsolidatedConfigurationModelForResource(i,s);if(i.overrideIdentifier&&(r=r.override(i.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(t)!==void 0){r=r.merge();for(const n of this._policyConfiguration.keys)r.setValue(n,this._policyConfiguration.getValue(n))}return r}getConsolidatedConfigurationModelForResource({resource:t},i){let s=this.getWorkspaceConsolidatedConfiguration();if(i&&t){const r=i.getFolder(t);r&&(s=this.getFolderConsolidatedConfiguration(r.uri)||s);const n=this._memoryConfigurationByResource.get(t);n&&(s=s.merge(n))}return s}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(t){let i=this._foldersConsolidatedConfigurations.get(t);if(!i){const s=this.getWorkspaceConsolidatedConfiguration(),r=this._folderConfigurations.get(t);r?(i=s.merge(r),this._foldersConsolidatedConfigurations.set(t,i)):i=s}return i}getFolderConfigurationModelForResource(t,i){if(i&&t){const s=i.getFolder(t);if(s)return this._folderConfigurations.get(s.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys,raw:Array.isArray(this.applicationConfiguration.raw)?void 0:this.applicationConfiguration.raw},userLocal:{contents:this.localUserConfiguration.contents,overrides:this.localUserConfiguration.overrides,keys:this.localUserConfiguration.keys,raw:Array.isArray(this.localUserConfiguration.raw)?void 0:this.localUserConfiguration.raw},userRemote:{contents:this.remoteUserConfiguration.contents,overrides:this.remoteUserConfiguration.overrides,keys:this.remoteUserConfiguration.keys,raw:Array.isArray(this.remoteUserConfiguration.raw)?void 0:this.remoteUserConfiguration.raw},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((t,i)=>{const{contents:s,overrides:r,keys:n}=this._folderConfigurations.get(i);return t.push([i,{contents:s,overrides:r,keys:n}]),t},[])}}allKeys(){const t=new Set;return this._defaultConfiguration.keys.forEach(i=>t.add(i)),this.userConfiguration.keys.forEach(i=>t.add(i)),this._workspaceConfiguration.keys.forEach(i=>t.add(i)),this._folderConfigurations.forEach(i=>i.keys.forEach(s=>t.add(s))),[...t.values()]}allOverrideIdentifiers(){const t=new Set;return this._defaultConfiguration.getAllOverrideIdentifiers().forEach(i=>t.add(i)),this.userConfiguration.getAllOverrideIdentifiers().forEach(i=>t.add(i)),this._workspaceConfiguration.getAllOverrideIdentifiers().forEach(i=>t.add(i)),this._folderConfigurations.forEach(i=>i.getAllOverrideIdentifiers().forEach(s=>t.add(s))),[...t.values()]}getAllKeysForOverrideIdentifier(t){const i=new Set;return this._defaultConfiguration.getKeysForOverrideIdentifier(t).forEach(s=>i.add(s)),this.userConfiguration.getKeysForOverrideIdentifier(t).forEach(s=>i.add(s)),this._workspaceConfiguration.getKeysForOverrideIdentifier(t).forEach(s=>i.add(s)),this._folderConfigurations.forEach(s=>s.getKeysForOverrideIdentifier(t).forEach(r=>i.add(r))),[...i.values()]}static parse(t,i){const s=this.parseConfigurationModel(t.defaults,i),r=this.parseConfigurationModel(t.policy,i),n=this.parseConfigurationModel(t.application,i),o=this.parseConfigurationModel(t.userLocal,i),a=this.parseConfigurationModel(t.userRemote,i),c=this.parseConfigurationModel(t.workspace,i),l=t.folders.reduce((u,h)=>(u.set(b.revive(h[0]),this.parseConfigurationModel(h[1],i)),u),new Pt);return new ZI(s,r,n,o,a,c,l,gt.createEmptyModel(i),new Pt,i)}static parseConfigurationModel(t,i){return new gt(t.contents,t.keys,t.overrides,t.raw,i)}},eE=class{constructor(e,t,i,s,r){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=s,this.logService=r,this._marker=`
`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const n of e.keys)this.affectedKeys.add(n);for(const[,n]of e.overrides)for(const o of n)this.affectedKeys.add(o);this._affectsConfigStr=this._marker;for(const n of this.affectedKeys)this._affectsConfigStr+=n+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Bu.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){const i=this._marker+e,s=this._affectsConfigStr.indexOf(i);if(s<0)return!1;const r=s+i.length;if(r>=this._affectsConfigStr.length)return!1;const n=this._affectsConfigStr.charCodeAt(r);if(n!==this._markerCode1&&n!==this._markerCode2)return!1;if(t){const o=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.previous?.workspace):void 0,a=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!Ds(o,a)}return!0}}}}),iE,zu,qu=y({"out-build/vs/platform/policy/common/policy.js"(){"use strict";ie(),hn(),V(),se(),iE=te("policy"),zu=class{constructor(){this.onDidChange=z.None,this.policyDefinitions={}}async updatePolicyDefinitions(){return{}}getPolicyValue(){}serialize(){}}}}),sE,rE,Gu,NR=y({"out-build/vs/platform/configuration/common/configurations.js"(){"use strict";kt(),ie(),V(),Si(),_e(),tE(),xo(),Ie(),qu(),nr(),ve(),xn(),sE=class extends G{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._onDidChangeConfiguration=this._register(new R),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configurationModel=gt.createEmptyModel(this.logService)}async initialize(){return this.resetConfigurationModel(),this._register(li.as(ns.Configuration).onDidUpdateConfiguration(({properties:e,defaultsOverrides:t})=>this.onDidUpdateConfiguration(Array.from(e),t))),this.configurationModel}reload(){return this.resetConfigurationModel(),this.configurationModel}onDidUpdateConfiguration(e,t){this.updateConfigurationModel(e,li.as(ns.Configuration).getConfigurationProperties()),this._onDidChangeConfiguration.fire({defaults:this.configurationModel,properties:e})}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=gt.createEmptyModel(this.logService);const e=li.as(ns.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const s of e){const r=i[s],n=t[s];r!==void 0?this._configurationModel.setValue(s,r):n?this._configurationModel.setValue(s,sr(n.default)):this._configurationModel.removeValue(s)}}},rE=class{constructor(){this.onDidChangeConfiguration=z.None,this.configurationModel=gt.createEmptyModel(new Eb)}async initialize(){return this.configurationModel}},Gu=class extends G{get configurationModel(){return this._configurationModel}constructor(t,i,s){super(),this.defaultConfiguration=t,this.policyService=i,this.logService=s,this._onDidChangeConfiguration=this._register(new R),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configurationModel=gt.createEmptyModel(this.logService),this.configurationRegistry=li.as(ns.Configuration)}async initialize(){return this.logService.trace("PolicyConfiguration#initialize"),this.update(await this.updatePolicyDefinitions(this.defaultConfiguration.configurationModel.keys),!1),this.update(await this.updatePolicyDefinitions(Object.keys(this.configurationRegistry.getExcludedConfigurationProperties())),!1),this._register(this.policyService.onDidChange(t=>this.onDidChangePolicies(t))),this._register(this.defaultConfiguration.onDidChangeConfiguration(async({properties:t})=>this.update(await this.updatePolicyDefinitions(t),!0))),this._configurationModel}async updatePolicyDefinitions(t){this.logService.trace("PolicyConfiguration#updatePolicyDefinitions",t);const i={},s=[],r=this.configurationRegistry.getConfigurationProperties(),n=this.configurationRegistry.getExcludedConfigurationProperties();for(const o of t){const a=r[o]??n[o];if(!a){s.push(o);continue}if(a.policy){if(a.type!=="string"&&a.type!=="number"&&a.type!=="array"&&a.type!=="object"&&a.type!=="boolean"){this.logService.warn(`Policy ${a.policy.name} has unsupported type ${a.type}`);continue}const{defaultValue:c,previewFeature:l}=a.policy;s.push(o),i[a.policy.name]={type:a.type==="number"?"number":a.type==="boolean"?"boolean":"string",previewFeature:l,defaultValue:c}}}return Jp(i)||await this.policyService.updatePolicyDefinitions(i),s}onDidChangePolicies(t){this.logService.trace("PolicyConfiguration#onDidChangePolicies",t);const i=this.configurationRegistry.getPolicyConfigurations(),s=ts(t.map(r=>i.get(r)));this.update(s,!0)}update(t,i){this.logService.trace("PolicyConfiguration#update",t);const s=this.configurationRegistry.getConfigurationProperties(),r=this.configurationRegistry.getExcludedConfigurationProperties(),n=[],o=this._configurationModel.isEmpty();for(const a of t){const c=s[a]??r[a],l=c?.policy?.name;if(l){let u=this.policyService.getPolicyValue(l);if(ye(u)&&c.type!=="string")try{u=this.parse(u)}catch(h){this.logService.error(`Error parsing policy value ${l}:`,le(h));continue}(o?u!==void 0:!Ds(this._configurationModel.getValue(a),u))&&n.push([a,u])}else this._configurationModel.getValue(a)!==void 0&&n.push([a,void 0])}if(n.length){this.logService.trace("PolicyConfiguration#changed",n);const a=this._configurationModel;this._configurationModel=gt.createEmptyModel(this.logService);for(const c of a.keys)this._configurationModel.setValue(c,a.getValue(c));for(const[c,l]of n)l===void 0?this._configurationModel.removeValue(c):this._configurationModel.setValue(c,l);i&&this._onDidChangeConfiguration.fire(this._configurationModel)}}parse(t){let i={},s=null,r=[];const n=[],o=[];function a(l){if(Array.isArray(r))r.push(l);else if(s!==null){if(r[s]!==void 0)throw new Error(`Duplicate property found: ${s}`);r[s]=l}}if(t&&(Hu(t,{onObjectBegin:()=>{const l={};a(l),n.push(r),r=l,s=null},onObjectProperty:l=>{s=l},onObjectEnd:()=>{r=n.pop()},onArrayBegin:()=>{const l=[];a(l),n.push(r),r=l,s=null},onArrayEnd:()=>{r=n.pop()},onLiteralValue:a,onError:(l,u,h)=>{o.push({error:l,offset:u,length:h})}}),i=r[0]||{}),o.length>0)throw new Error(o.map(l=>le(l.error)).join(`
`));return i}},Gu=__decorate([__param(1,iE),__param(2,fe)],Gu)}}),Gm,nE,oE=y({"out-build/vs/platform/configuration/common/configurationService.js"(){"use strict";kt(),Ne(),Fe(),ie(),xn(),_R(),V(),ri(),Si(),K(),_t(),ci(),tE(),xo(),NR(),qu(),Gm=class extends G{constructor(e,t,i,s){super(),this.settingsResource=e,this.logService=s,this._onDidChangeConfiguration=this._register(new R),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this.defaultConfiguration=this._register(new sE(s)),this.policyConfiguration=i instanceof zu?new rE:this._register(new Gu(this.defaultConfiguration,i,s)),this.userConfiguration=this._register(new Zb(this.settingsResource,{},Du,t,s)),this.configuration=new Bu(this.defaultConfiguration.configurationModel,this.policyConfiguration.configurationModel,gt.createEmptyModel(s),gt.createEmptyModel(s),gt.createEmptyModel(s),gt.createEmptyModel(s),new Pt,gt.createEmptyModel(s),new Pt,s),this.configurationEditing=new nE(e,t,this),this.reloadConfigurationScheduler=this._register(new ac(()=>this.reloadConfiguration(),50)),this._register(this.defaultConfiguration.onDidChangeConfiguration(({defaults:r,properties:n})=>this.onDidDefaultConfigurationChange(r,n))),this._register(this.policyConfiguration.onDidChangeConfiguration(r=>this.onDidPolicyConfigurationChange(r))),this._register(this.userConfiguration.onDidChange(()=>this.reloadConfigurationScheduler.schedule()))}async initialize(){const[e,t,i]=await Promise.all([this.defaultConfiguration.initialize(),this.policyConfiguration.initialize(),this.userConfiguration.loadConfiguration()]);this.configuration=new Bu(e,t,gt.createEmptyModel(this.logService),i,gt.createEmptyModel(this.logService),gt.createEmptyModel(this.logService),new Pt,gt.createEmptyModel(this.logService),new Pt,this.logService)}getConfigurationData(){return this.configuration.toData()}getValue(e,t){const i=typeof e=="string"?e:void 0,s=Hm(e)?e:Hm(t)?t:{};return this.configuration.getValue(i,s,void 0)}async updateValue(e,t,i,s,r){const n=SR(i)?i:Hm(i)?{resource:i.resource,overrideIdentifiers:i.overrideIdentifier?[i.overrideIdentifier]:void 0}:void 0,o=n?s:i;if(o!==void 0&&o!==3&&o!==2)throw new Error(`Unable to write ${e} to target ${o}.`);n?.overrideIdentifiers&&(n.overrideIdentifiers=ks(n.overrideIdentifiers),n.overrideIdentifiers=n.overrideIdentifiers.length?n.overrideIdentifiers:void 0);const a=this.inspect(e,{resource:n?.resource,overrideIdentifier:n?.overrideIdentifiers?n.overrideIdentifiers[0]:void 0});if(a.policyValue!==void 0)throw new Error(`Unable to write ${e} because it is configured in system policy.`);if(Ds(t,a.defaultValue)&&(t=void 0),n?.overrideIdentifiers?.length&&n.overrideIdentifiers.length>1){const l=n.overrideIdentifiers.sort(),u=this.configuration.localUserConfiguration.overrides.find(h=>Pr([...h.identifiers].sort(),l));u&&(n.overrideIdentifiers=u.identifiers)}const c=n?.overrideIdentifiers?.length?[RR(n.overrideIdentifiers),e]:[e];await this.configurationEditing.write(c,t),await this.reloadConfiguration()}inspect(e,t={}){return this.configuration.inspect(e,t,void 0)}keys(){return this.configuration.keys(void 0)}async reloadConfiguration(){const e=await this.userConfiguration.loadConfiguration();this.onDidChangeUserConfiguration(e)}onDidChangeUserConfiguration(e){const t=this.configuration.toData(),i=this.configuration.compareAndUpdateLocalUserConfiguration(e);this.trigger(i,t,2)}onDidDefaultConfigurationChange(e,t){const i=this.configuration.toData(),s=this.configuration.compareAndUpdateDefaultConfiguration(e,t);this.trigger(s,i,7)}onDidPolicyConfigurationChange(e){const t=this.configuration.toData(),i=this.configuration.compareAndUpdatePolicyConfiguration(e);this.trigger(i,t,7)}trigger(e,t,i){const s=new eE(e,{data:t},this.configuration,void 0,this.logService);s.source=i,this._onDidChangeConfiguration.fire(s)}},nE=class{constructor(e,t,i){this.settingsResource=e,this.fileService=t,this.configurationService=i,this.queue=new vo}write(e,t){return this.queue.queue(()=>this.doWriteConfiguration(e,t))}async doWriteConfiguration(e,t){let i;try{i=(await this.fileService.readFile(this.settingsResource)).value.toString()}catch(n){if(n.fileOperationResult===1)i="{}";else throw n}const s=[];if(wo(i,s,{allowTrailingComma:!0,allowEmptyContent:!0}),s.length>0)throw new Error("Unable to write into the settings file. Please open the file to correct errors/warnings in the file and try again.");const r=this.getEdits(i,e,t);i=wR(i,r),await this.fileService.writeFile(this.settingsResource,O.fromString(i))}getEdits(e,t,i){const{tabSize:s,insertSpaces:r,eol:n}=this.formattingOptions;if(!t.length){const o=JSON.stringify(i,null,r?" ".repeat(s):" ");return[{content:o,length:o.length,offset:0}]}return yR(e,t,i,{tabSize:s,insertSpaces:r,eol:n})}get formattingOptions(){if(!this._formattingOptions){let e=un===3||un===2?`
`:`\r
`;const t=this.configurationService.getValue("files.eol",{overrideIdentifier:"jsonc"});t&&typeof t=="string"&&t!=="auto"&&(e=t),this._formattingOptions={eol:e,insertSpaces:!!this.configurationService.getValue("editor.insertSpaces",{overrideIdentifier:"jsonc"}),tabSize:this.configurationService.getValue("editor.tabSize",{overrideIdentifier:"jsonc"})}}return this._formattingOptions}}}});function Qm(e){return e.res.statusCode&&e.res.statusCode>=200&&e.res.statusCode<300||e.res.statusCode===1223}function aE(e){return e.res.statusCode===204}async function OR(e){return aE(e)?null:(await Zs(e.stream)).toString()}async function Pn(e){if(!Qm(e))throw new Error("Server returned "+e.res.statusCode);return OR(e)}async function Qu(e){if(!Qm(e))throw new Error("Server returned "+e.res.statusCode);if(aE(e))return null;const i=(await Zs(e.stream)).toString();try{return JSON.parse(i)}catch(s){throw s.message+=`:
`+i,s}}function TR(e=!0,t=!0){if(Jm===e&&Xm===t)return;Jm=e,Xm=t;const i=li.as(ns.Configuration),s=Ju;Ju=[{id:"http",order:15,title:m(2209,null),type:"object",scope:2,properties:{"http.useLocalProxyConfiguration":{type:"boolean",default:t,markdownDescription:m(2210,null),restricted:!0}}},{id:"http",order:15,title:m(2211,null),type:"object",scope:1,properties:{"http.electronFetch":{type:"boolean",default:!1,description:m(2212,null),restricted:!0}}},{id:"http",order:15,title:m(2213,null),type:"object",scope:e?1:2,properties:{"http.proxy":{type:"string",pattern:"^(https?|socks|socks4a?|socks5h?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$",markdownDescription:m(2214,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyStrictSSL":{type:"boolean",default:!0,markdownDescription:m(2215,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyKerberosServicePrincipal":{type:"string",markdownDescription:m(2216,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.noProxy":{type:"array",items:{type:"string"},markdownDescription:m(2217,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyAuthorization":{type:["null","string"],default:null,markdownDescription:m(2218,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxySupport":{type:"string",enum:["off","on","fallback","override"],enumDescriptions:[m(2219,null),m(2220,null),m(2221,null),m(2222,null)],default:"override",markdownDescription:m(2223,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.systemCertificates":{type:"boolean",default:!0,markdownDescription:m(2224,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.experimental.systemCertificatesV2":{type:"boolean",tags:["experimental"],default:!1,markdownDescription:m(2225,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.fetchAdditionalSupport":{type:"boolean",default:!0,markdownDescription:m(2226,null,"`#http.useLocalProxyConfiguration#`","`#http.proxySupport#`","`#http.systemCertificates#`"),restricted:!0}}}],i.updateConfigurations({add:Ju,remove:s})}var ar,cE,lE,Ju,Jm,Xm,ko=y({"out-build/vs/platform/request/common/request.js"(){"use strict";Fe(),ve(),V(),ue(),xo(),se(),nr(),ar=te("requestService"),cE=class{constructor(e){this.original=e}toJSON(){if(!this.headers){const e=Object.create(null);for(const t in this.original)t.toLowerCase()==="authorization"||t.toLowerCase()==="proxy-authorization"?e[t]="*****":e[t]=this.original[t];this.headers=e}return this.headers}},lE=class extends G{constructor(e){super(),this.logService=e,this.counter=0}async logAndRequest(e,t){const i=`#${++this.counter}: ${e.url}`;this.logService.trace(`${i} - begin`,e.type,new cE(e.headers??{}));try{const s=await t();return this.logService.trace(`${i} - end`,e.type,s.res.statusCode,s.res.headers),s}catch(s){throw this.logService.error(`${i} - error`,e.type,le(s)),s}}},Ju=[],Jm=void 0,Xm=void 0,TR()}}),xi,Vi,ui=y({"out-build/vs/platform/environment/common/environment.js"(){"use strict";se(),xi=te("environmentService"),Vi=xi}});function MR(e){return uE.test(e)}var uE,Ve,Bt=y({"out-build/vs/base/common/uuid.js"(){"use strict";uE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ve=(function(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let s=0,r="";return r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+="-",r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r+=t[e[s++]],r}})()}});function Ym(e){return FR(e,"NFC",hE)}function FR(e,t,i){if(!e)return e;const s=i.get(e);if(s)return s;let r;return dE.test(e)?r=e.normalize(t):r=e,i.set(e,r),r}var hE,UR,dE,fE=y({"out-build/vs/base/common/normalization.js"(){"use strict";ri(),hE=new Ma(1e4),UR=new Ma(1e4),dE=/[^\u0000-\u0080]/}});import*as $e from"fs";import{tmpdir as $R}from"os";import{promisify as wc}from"util";async function pE(e,t=Po.UNLINK,i){if(GD(e))throw new Error("rimraf - will refuse to recursively delete root");return t===Po.UNLINK?Zm(e):WR(e,i)}async function WR(e,t=QD($R())){try{try{await $e.promises.rename(e,t)}catch(i){return i.code==="ENOENT"?void 0:Zm(e)}Zm(t).catch(i=>{})}catch(i){if(i.code!=="ENOENT")throw i}}async function Zm(e){return $e.promises.rm(e,{recursive:!0,force:!0,maxRetries:3})}async function Xu(e,t){return VR(await(t?HR(e):$e.promises.readdir(e)))}async function HR(e){try{return await $e.promises.readdir(e,{withFileTypes:!0})}catch(s){console.warn("[node.js fs] readdir with filetypes failed with error: ",s)}const t=[],i=await Xu(e);for(const s of i){let r=!1,n=!1,o=!1;try{const a=await $e.promises.lstat(W(e,s));r=a.isFile(),n=a.isDirectory(),o=a.isSymbolicLink()}catch(a){console.warn("[node.js fs] unexpected error from lstat after readdir: ",a)}t.push({name:s,isFile:()=>r,isDirectory:()=>n,isSymbolicLink:()=>o})}return t}function VR(e){return e.map(t=>typeof t=="string"?Li?Ym(t):t:(t.name=Li?Ym(t.name):t.name,t))}async function jR(e){const t=await Xu(e),i=[];for(const s of t)await hi.existsDirectory(W(e,s))&&i.push(s);return i}function BR(e,t,i){return yE.queueFor(b.file(e),()=>{const s=GR(i);return new Promise((r,n)=>qR(e,t,s,o=>o?n(o):r()))},Du)}function zR(e){Km=e}function qR(e,t,i,s){if(!Km)return $e.writeFile(e,t,{mode:i.mode,flag:i.flag},s);$e.open(e,i.flag,i.mode,(r,n)=>{if(r)return s(r);$e.writeFile(n,t,o=>{if(o)return $e.close(n,()=>s(o));$e.fdatasync(n,a=>(a&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",a),zR(!1)),$e.close(n,c=>s(c))))})})}function GR(e){return e?{mode:typeof e.mode=="number"?e.mode:438,flag:typeof e.flag=="string"?e.flag:"w"}:{mode:438,flag:"w"}}async function QR(e,t,i=6e4){if(e!==t)try{he&&typeof i=="number"?await mE(e,t,Date.now(),i):await $e.promises.rename(e,t)}catch(s){if(e.toLowerCase()!==t.toLowerCase()&&s.code==="EXDEV"||e.endsWith("."))await gE(e,t,{preserveSymlinks:!1}),await pE(e,Po.MOVE);else throw s}}async function mE(e,t,i,s,r=0){try{return await $e.promises.rename(e,t)}catch(n){if(n.code!=="EACCES"&&n.code!=="EPERM"&&n.code!=="EBUSY")throw n;if(Date.now()-i>=s)throw console.error(`[node.js fs] rename failed after ${r} retries with error: ${n}`),n;if(r===0){let o=!1;try{const{stat:a}=await hi.stat(t);a.isFile()||(o=!0)}catch{}if(o)throw n}return await go(Math.min(100,r*10)),mE(e,t,i,s,r+1)}}async function gE(e,t,i){return vE(e,t,{root:{source:e,target:t},options:i,handledSourcePaths:new Set})}async function vE(e,t,i){if(i.handledSourcePaths.has(e))return;i.handledSourcePaths.add(e);const{stat:s,symbolicLink:r}=await hi.stat(e);if(r){if(i.options.preserveSymlinks)try{return await YR(e,t,i)}catch{}if(r.dangling)return}return s.isDirectory()?JR(e,t,s.mode&eg,i):XR(e,t,s.mode&eg)}async function JR(e,t,i,s){await $e.promises.mkdir(t,{recursive:!0,mode:i});const r=await Xu(e);for(const n of r)await vE(W(e,n),W(t,n),s)}async function XR(e,t,i){await $e.promises.copyFile(e,t),await $e.promises.chmod(t,i)}async function YR(e,t,i){let s=await $e.promises.readlink(e);Ar(s,i.root.source,!nt)&&(s=W(i.root.target,s.substr(i.root.source.length+1))),await $e.promises.symlink(s,t)}var Po,hi,yE,Km,eg,Ce,di=y({"out-build/vs/base/node/pfs.js"(){"use strict";Ne(),er(),fE(),de(),K(),_t(),Y(),(function(e){e[e.UNLINK=0]="UNLINK",e[e.MOVE=1]="MOVE"})(Po||(Po={})),(function(e){async function t(r){let n;try{if(n=await $e.promises.lstat(r),!n.isSymbolicLink())return{stat:n}}catch{}try{return{stat:await $e.promises.stat(r),symbolicLink:n?.isSymbolicLink()?{dangling:!1}:void 0}}catch(o){if(o.code==="ENOENT"&&n)return{stat:n,symbolicLink:{dangling:!0}};if(he&&o.code==="EACCES")try{return{stat:await $e.promises.stat(await $e.promises.readlink(r)),symbolicLink:{dangling:!1}}}catch(a){if(a.code==="ENOENT"&&n)return{stat:n,symbolicLink:{dangling:!0}};throw a}throw o}}e.stat=t;async function i(r){try{const{stat:n,symbolicLink:o}=await e.stat(r);return n.isFile()&&o?.dangling!==!0}catch{}return!1}e.existsFile=i;async function s(r){try{const{stat:n,symbolicLink:o}=await e.stat(r);return n.isDirectory()&&o?.dangling!==!0}catch{}return!1}e.existsDirectory=s})(hi||(hi={})),yE=new Nm,Km=!0,eg=511,Ce=new class{get read(){return(e,t,i,s,r)=>new Promise((n,o)=>{$e.read(e,t,i,s,r,(a,c,l)=>a?o(a):n({bytesRead:c,buffer:l}))})}get write(){return(e,t,i,s,r)=>new Promise((n,o)=>{$e.write(e,t,i,s,r,(a,c,l)=>a?o(a):n({bytesWritten:c,buffer:l}))})}get fdatasync(){return wc($e.fdatasync)}get open(){return wc($e.open)}get close(){return wc($e.close)}get realpath(){return wc($e.realpath)}get ftruncate(){return wc($e.ftruncate)}async exists(e){try{return await $e.promises.access(e),!0}catch{return!1}}get readdir(){return Xu}get readDirsInDir(){return jR}get writeFile(){return BR}get rm(){return pE}get rename(){return QR}get copy(){return gE}}}});import*as wE from"os";function ZR({useAlternateBitness:e=!1}={}){return e?_c===0?process.env["ProgramFiles(x86)"]||null:Io===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function Yu({useAlternateBitness:e=!1,findPreview:t=!1}={}){const i=ZR({useAlternateBitness:e});if(!i)return null;const s=W(i,"PowerShell");if(!await hi.existsDirectory(s))return null;let r=-1,n=null;for(const c of await Ce.readdir(s)){let l=-1;if(t){const h=c.indexOf("-");if(h<0)continue;const f=c.substring(0,h);if(!tg.test(f)||c.substring(h+1)!=="preview")continue;l=parseInt(f,10)}else{if(!tg.test(c))continue;l=parseInt(c,10)}if(l<=r)continue;const u=W(s,c,"pwsh.exe");await hi.existsFile(u)&&(n=u,r=l)}if(!n)return null;const o=i.includes("x86")?" (x86)":"",a=t?" Preview":"";return new Co(n,`PowerShell${a}${o}`,!0)}async function _E({findPreview:e}={}){if(!process.env.LOCALAPPDATA)return null;const t=W(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await hi.existsDirectory(t))return null;const{pwshMsixDirRegex:i,pwshMsixName:s}=e?{pwshMsixDirRegex:SE,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:EE,pwshMsixName:"PowerShell (Store)"};for(const r of await Ce.readdir(t))if(i.test(r)){const n=W(t,r,"pwsh.exe");return new Co(n,s)}return null}function KR(){const e=W(wE.homedir(),".dotnet","tools","pwsh.exe");return new Co(e,".NET Core PowerShell Global Tool")}function eL(){const e=W(wE.homedir(),"scoop","apps"),t=W(e,"pwsh","current","pwsh.exe");return new Co(t,"PowerShell (Scoop)")}function tL(){const e=W(process.env.windir,_c===1&&Io!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new Co(e,"Windows PowerShell",!0)}async function*iL(){let e=await Yu();e&&(yield e),e=await Yu({useAlternateBitness:!0}),e&&(yield e),e=await _E(),e&&(yield e),e=KR(),e&&(yield e),e=await Yu({findPreview:!0}),e&&(yield e),e=await _E({findPreview:!0}),e&&(yield e),e=await Yu({useAlternateBitness:!0,findPreview:!0}),e&&(yield e),e=await eL(),e&&(yield e),e=tL(),e&&(yield e)}async function*bE(){for await(const e of iL())await e.exists()&&(yield e)}async function sL(){for await(const e of bE())return e;return null}var tg,EE,SE,xE,_c,Io,Co,kE=y({"out-build/vs/base/node/powershell.js"(){"use strict";switch(de(),di(),tg=/^\d+$/,EE=/^Microsoft.PowerShell_.*/,SE=/^Microsoft.PowerShellPreview_.*/,(function(e){e[e.x64=0]="x64",e[e.x86=1]="x86",e[e.ARM=2]="ARM"})(xE||(xE={})),process.arch){case"ia32":_c=1;break;case"arm":case"arm64":_c=2;break;default:_c=0;break}process.env.PROCESSOR_ARCHITEW6432?Io=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?Io=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?Io=1:Io=0,Co=class{constructor(e,t,i){this.exePath=e,this.displayName=t,this.knownToExist=i}async exists(){return this.knownToExist===void 0&&(this.knownToExist=await hi.existsFile(this.exePath)),this.knownToExist}}}});function rL(e,...t){const i=t.reduce((n,o)=>(n[o]=!0,n),{}),s=[/^ELECTRON_.+$/,/^VSCODE_(?!(PORTABLE|SHELL_LOGIN|ENV_REPLACE|ENV_APPEND|ENV_PREPEND)).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/];Object.keys(e).filter(n=>!i[n]).forEach(n=>{for(let o=0;o<s.length;o++)if(n.search(s[o])!==-1){delete e[n];break}})}function PE(e){e&&(delete e.DEBUG,nt&&delete e.LD_PRELOAD)}var IE,CE,Zu=y({"out-build/vs/base/common/processes.js"(){"use strict";K(),(function(e){e[e.stdout=0]="stdout",e[e.stderr=1]="stderr"})(IE||(IE={})),(function(e){e[e.Success=0]="Success",e[e.Unknown=1]="Unknown",e[e.AccessDenied=2]="AccessDenied",e[e.ProcessNotFound=3]="ProcessNotFound"})(CE||(CE={}))}});import{promises as DE}from"fs";function nL(e=$i){return e.comspec||"cmd.exe"}function oL(e){let t=[],i=!1;const s=function(r){if(i){t.push(r);return}(!e.send(r,o=>{if(o&&console.error(o),i=!1,t.length>0){const a=t.slice(0);t=[],a.forEach(c=>s(c))}})||he)&&(i=!0)};return{send:s}}async function aL(e){if(await Ce.exists(e)){let t;try{t=await DE.stat(e)}catch(i){i.message.startsWith("EACCES")&&(t=await DE.lstat(e))}return t?!t.isDirectory():!1}return!1}async function RE(e,t,i,s=$i,r=aL){if(mn(e))return await r(e)?e:void 0;if(t===void 0&&(t=Js()),Vt(e)!=="."){const c=W(t,e);return await r(c)?c:void 0}const o=Wb(s,"PATH");if(i===void 0&&ye(o)&&(i=o.split(Ga)),i===void 0||i.length===0){const c=W(t,e);return await r(c)?c:void 0}for(const c of i){let l;if(mn(c)?l=W(c,e):l=W(t,c,e),he){const h=(Wb(s,"PATHEXT")||".COM;.EXE;.BAT;.CMD").split(";").map(async f=>{const p=l+f;return await r(p)?p:void 0});for(const f of h){const p=await f;if(p)return p}}if(await r(l))return l}const a=W(t,e);return await r(a)?a:void 0}var ig=y({"out-build/vs/base/node/processes.js"(){"use strict";Si(),de(),K(),ss(),Zu(),_e(),di()}});import{userInfo as cL}from"os";async function LE(e,t){return e===1?he?uL():nL(t):lL(e,t)}function lL(e,t){if(nt&&e===2||Li&&e===3)return"/bin/bash";if(!Ku){let i;if(he)i="/bin/bash";else{if(i=t.SHELL,!i)try{i=cL().shell}catch{}i||(i="sh"),i==="/bin/false"&&(i="/bin/bash")}Ku=i}return Ku}async function uL(){return eh||(eh=(await sL()).exePath),eh}var Ku,eh,AE=y({"out-build/vs/base/node/shell.js"(){"use strict";K(),kE(),ig(),Ku=null,eh=null}});function NE(e,t,i=UE){const s=e.find(f=>f.length>0&&f[0]!=="-"),r={},n=["_"],o=[],a={};let c;for(const f in t){const p=t[f];p.type==="subcommand"?f===s&&(c=p):(p.alias&&(r[f]=p.alias),p.type==="string"||p.type==="string[]"?(n.push(f),p.deprecates&&n.push(...p.deprecates)):p.type==="boolean"&&(o.push(f),p.deprecates&&o.push(...p.deprecates)),p.global&&(a[f]=p))}if(c&&s){const f=a;for(const w in c.options)f[w]=c.options[w];const p=e.filter(w=>w!==s),g=i.getSubcommandReporter?i.getSubcommandReporter(s):void 0,v=NE(p,f,g);return{[s]:v,_:[]}}const l=(0,ME.default)(e,{string:n,boolean:o,alias:r}),u={},h=l;u._=l._.map(f=>String(f)).filter(f=>f.length>0),delete h._;for(const f in t){const p=t[f];if(p.type==="subcommand")continue;p.alias&&delete h[p.alias];let g=h[f];if(p.deprecates)for(const v of p.deprecates)h.hasOwnProperty(v)&&(g||(g=h[v],g&&i.onDeprecatedOption(v,p.deprecationMessage||m(1894,null,f))),delete h[v]);if(typeof g<"u"){if(p.type==="string[]"){if(Array.isArray(g)||(g=[g]),!p.allowEmptyValue){const v=g.filter(w=>w.length>0);v.length!==g.length&&(i.onEmptyValue(f),g=v.length>0?v:void 0)}}else p.type==="string"&&(Array.isArray(g)?(g=g.pop(),i.onMultipleValues(f,g)):!g&&!p.allowEmptyValue&&(i.onEmptyValue(f),g=void 0));u[f]=g,p.deprecationMessage&&i.onDeprecatedOption(f,p.deprecationMessage)}delete h[f]}for(const f in h)i.onUnknownOption(f);return u}function hL(e,t){let i="";return t.args&&(Array.isArray(t.args)?i=` <${t.args.join("> <")}>`:i=` <${t.args}>`),t.alias?`-${t.alias} --${e}${i}`:`--${e}${i}`}function dL(e,t){const i=[];for(const s in e){const r=e[s],n=hL(s,r);i.push([n,r.description])}return OE(i,t)}function OE(e,t){const s=e.reduce((o,a)=>Math.max(o,a[0].length),12)+2+1;if(t-s<25)return e.reduce((o,a)=>o.concat([` ${a[0]}`,` ${a[1]}`]),[]);const r=t-s-1,n=[];for(const o of e){const a=o[0],c=fL(o[1],r),l=TE(s-a.length-2);n.push(" "+a+l+c[0]);for(let u=1;u<c.length;u++)n.push(TE(s)+c[u])}return n}function TE(e){return" ".repeat(e)}function fL(e,t){const i=[];for(;e.length;){let s=e.length<t?e.length:e.lastIndexOf(" ",t);s===0&&(s=t);const r=e.slice(0,s).trim();e=e.slice(s).trimStart(),i.push(r)}return i}function pL(e,t,i,s,r){const n=process.stdout.isTTY&&process.stdout.columns||80,o=r?.noInputFiles!==!0?`[${m(1895,null)}...]`:"",a=[`${e} ${i}`];a.push(""),a.push(`${m(1896,null)}: ${t} [${m(1897,null)}]${o}`),a.push(""),r?.noPipe!==!0&&(he?a.push(m(1898,null,t)):a.push(m(1899,null,t)),a.push(""));const c={},l=[];for(const u in s){const h=s[u];if(h.type==="subcommand")h.description&&l.push({command:u,description:h.description});else if(h.description&&h.cat){let f=c[h.cat];f||(c[h.cat]=f={}),f[u]=h}}for(const u in c){const h=u,f=c[h];f&&(a.push(FE[h]),a.push(...dL(f,n)),a.push(""))}return l.length&&(a.push(m(1900,null)),a.push(...OE(l.map(u=>[u.command,u.description]),n)),a.push("")),a.join(`
`)}function mL(e,t){return`${e||m(1901,null)}
${t||m(1902,null)}
${process.arch}`}var ME,FE,Je,UE,th=y({"out-build/vs/platform/environment/node/argv.js"(){"use strict";ME=Hy(Vy(),1),K(),ue(),FE={o:m(1852,null),e:m(1853,null),t:m(1854,null)},Je={tunnel:{type:"subcommand",description:"Make the current machine accessible from vscode.dev or other machines through a secure tunnel",options:{"cli-data-dir":{type:"string",args:"dir",description:m(1855,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"},user:{type:"subcommand",options:{login:{type:"subcommand",options:{provider:{type:"string"},"access-token":{type:"string"}}}}}}},"serve-web":{type:"subcommand",description:"Run a server that displays the editor UI in browsers.",options:{"cli-data-dir":{type:"string",args:"dir",description:m(1856,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"}}},diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:m(1857,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:m(1858,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:m(1859,null)},remove:{type:"boolean",cat:"o",args:"folder",description:m(1860,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:m(1861,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:m(1862,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:m(1863,null)},wait:{type:"boolean",cat:"o",alias:"w",description:m(1864,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:m(1865,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:m(1866,null)},profile:{type:"string",cat:"o",args:"profileName",description:m(1867,null)},help:{type:"boolean",cat:"o",alias:"h",description:m(1868,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:m(1869,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:m(1870,null)},"show-versions":{type:"boolean",cat:"e",description:m(1871,null)},category:{type:"string",allowEmptyValue:!0,cat:"e",description:m(1872,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:m(1873,null)},"pre-release":{type:"boolean",cat:"e",description:m(1874,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:m(1875,null)},"update-extensions":{type:"boolean",cat:"e",description:m(1876,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:m(1877,null)},"add-mcp":{type:"string[]",cat:"o",args:"json",description:m(1878,null)},version:{type:"boolean",cat:"t",alias:"v",description:m(1879,null)},verbose:{type:"boolean",cat:"t",global:!0,description:m(1880,null)},log:{type:"string[]",cat:"t",args:"level",global:!0,description:m(1881,null)},status:{type:"boolean",alias:"s",cat:"t",description:m(1882,null)},"prof-startup":{type:"boolean",cat:"t",description:m(1883,null)},"prof-append-timers":{type:"string"},"prof-duration-markers":{type:"string[]"},"prof-duration-markers-file":{type:"string"},"no-cached-data":{type:"boolean"},"prof-startup-prefix":{type:"string"},"prof-v8-extensions":{type:"boolean"},"disable-extensions":{type:"boolean",deprecates:["disableExtensions"],cat:"t",description:m(1884,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:m(1885,null)},sync:{type:"string",cat:"t",description:m(1886,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:m(1887,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:m(1888,null)},"disable-lcd-text":{type:"boolean",cat:"t",description:m(1889,null)},"disable-gpu":{type:"boolean",cat:"t",description:m(1890,null)},"disable-chromium-sandbox":{type:"boolean",cat:"t",description:m(1891,null)},sandbox:{type:"boolean"},"locate-shell-integration-path":{type:"string",cat:"t",args:["shell"],description:m(1892,null)},telemetry:{type:"boolean",cat:"t",description:m(1893,null)},remote:{type:"string",allowEmptyValue:!0},"folder-uri":{type:"string[]",cat:"o",args:"uri"},"file-uri":{type:"string[]",cat:"o",args:"uri"},"locate-extension":{type:"string[]"},extensionDevelopmentPath:{type:"string[]"},extensionDevelopmentKind:{type:"string[]"},extensionTestsPath:{type:"string"},extensionEnvironment:{type:"string"},debugId:{type:"string"},debugRenderer:{type:"boolean"},"inspect-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-brk-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-search":{type:"string",deprecates:["debugSearch"],allowEmptyValue:!0},"inspect-brk-search":{type:"string",deprecates:["debugBrkSearch"],allowEmptyValue:!0},"inspect-sharedprocess":{type:"string",allowEmptyValue:!0},"inspect-brk-sharedprocess":{type:"string",allowEmptyValue:!0},"export-default-configuration":{type:"string"},"install-source":{type:"string"},"enable-smoke-test-driver":{type:"boolean"},logExtensionHostCommunication:{type:"boolean"},"skip-release-notes":{type:"boolean"},"skip-welcome":{type:"boolean"},"skip-onboarding":{type:"boolean"},"override-cursor-auth-token":{type:"string"},"disable-telemetry":{type:"boolean"},"disable-updates":{type:"boolean"},"use-inmemory-secretstorage":{type:"boolean",deprecates:["disable-keytar"]},"password-store":{type:"string"},"disable-workspace-trust":{type:"boolean"},"disable-crash-reporter":{type:"boolean"},"crash-reporter-directory":{type:"string"},"crash-reporter-id":{type:"string"},"skip-add-to-recently-opened":{type:"boolean"},"open-url":{type:"boolean"},"file-write":{type:"boolean"},"file-chmod":{type:"boolean"},"install-builtin-extension":{type:"string[]"},force:{type:"boolean"},"do-not-sync":{type:"boolean"},"do-not-include-pack-dependencies":{type:"boolean"},trace:{type:"boolean"},"trace-memory-infra":{type:"boolean"},"trace-category-filter":{type:"string"},"trace-options":{type:"string"},"preserve-env":{type:"boolean"},"force-user-env":{type:"boolean"},"force-disable-user-env":{type:"boolean"},"open-devtools":{type:"boolean"},"shadow-window-for-workspace-id":{type:"string"},"disable-gpu-sandbox":{type:"boolean"},logsPath:{type:"string"},"__enable-file-policy":{type:"boolean"},editSessionId:{type:"string"},continueOn:{type:"string"},"enable-coi":{type:"boolean"},"unresponsive-sample-interval":{type:"string"},"unresponsive-sample-period":{type:"string"},"no-proxy-server":{type:"boolean"},"no-sandbox":{type:"boolean",alias:"sandbox"},"proxy-server":{type:"string"},"proxy-bypass-list":{type:"string"},"proxy-pac-url":{type:"string"},"js-flags":{type:"string"},inspect:{type:"string",allowEmptyValue:!0},"inspect-brk":{type:"string",allowEmptyValue:!0},nolazy:{type:"boolean"},"force-device-scale-factor":{type:"string"},"force-renderer-accessibility":{type:"boolean"},"ignore-certificate-errors":{type:"boolean"},"allow-insecure-localhost":{type:"boolean"},"log-net-log":{type:"string"},vmodule:{type:"string"},_urls:{type:"string[]"},"disable-dev-shm-usage":{type:"boolean"},"profile-temp":{type:"boolean"},"ozone-platform":{type:"string"},"enable-tracing":{type:"string"},"trace-startup-format":{type:"string"},"trace-startup-file":{type:"string"},"trace-startup-duration":{type:"string"},"xdg-portal-required-version":{type:"string"},hmr:{type:"boolean"},_:{type:"string[]"}},UE={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}}}});import"assert";function $E(e){return e.VSCODE_CLI==="1"}var gL=y({"out-build/vs/platform/environment/node/argvHelper.js"(){"use strict";ue(),th()}});function vL(e,t,i){return Math.min(Math.max(e,t),i)}var yL=y({"out-build/vs/base/common/numbers.js"(){"use strict";Fa()}});import{spawn as wL}from"child_process";async function sg(e,t,i,s){return i["force-disable-user-env"]?(t.trace("resolveShellEnv(): skipped (--force-disable-user-env)"),{}):he?(t.trace("resolveShellEnv(): skipped (Windows)"),{}):$E(s)&&!i["force-user-env"]?(t.trace("resolveShellEnv(): skipped (VSCODE_CLI is set)"),{}):($E(s)?t.trace("resolveShellEnv(): running (--force-user-env)"):t.trace("resolveShellEnv(): running (macOS/Linux)"),ih||(ih=Yt.withAsyncBody(async(r,n)=>{const o=new Is;let a=1e4;const c=e.getValue("application.shellEnvironmentResolutionTimeout");typeof c=="number"&&(a=vL(c,1,120)*1e3);const l=setTimeout(()=>{o.dispose(!0),n(new Error(m(2227,null)))},a);try{r(await _L(t,o.token))}catch(u){!xr(u)&&!o.token.isCancellationRequested?n(new Error(m(2228,null,yn(u)))):r({})}finally{clearTimeout(l),o.dispose()}})),ih)}async function _L(e,t){const i=process.env.ELECTRON_RUN_AS_NODE;e.trace("getUnixShellEnvironment#runAsNode",i);const s=process.env.ELECTRON_NO_ATTACH_CONSOLE;e.trace("getUnixShellEnvironment#noAttach",s);const r=Ve().replace(/-/g,"").substr(0,12),n=new RegExp(r+"({.*})"+r),o={...process.env,ELECTRON_RUN_AS_NODE:"1",ELECTRON_NO_ATTACH_CONSOLE:"1",VSCODE_RESOLVING_ENVIRONMENT:"1"};e.trace("getUnixShellEnvironment#env",o);const a=await LE(un,o);return e.trace("getUnixShellEnvironment#shell",a),new Promise((c,l)=>{if(t.isCancellationRequested)return l(new xt);const u=ut(a);let h,f;const p="";/^(?:pwsh|powershell)(?:-preview)?$/.test(u)?(h=`& '${process.execPath}' ${p} -p '''${r}'' + JSON.stringify(process.env) + ''${r}'''`,f=["-Login","-Command"]):u==="nu"?(h=`^'${process.execPath}' ${p} -p '"${r}" + JSON.stringify(process.env) + "${r}"'`,f=["-i","-l","-c"]):u==="xonsh"?(h=`import os, json; print("${r}", json.dumps(dict(os.environ)), "${r}")`,f=["-i","-l","-c"]):(h=`'${process.execPath}' ${p} -p '"${r}" + JSON.stringify(process.env) + "${r}"'`,u==="tcsh"||u==="csh"?f=["-ic"]:f=["-i","-l","-c"]),e.trace("getUnixShellEnvironment#spawn",JSON.stringify(f),h);const g=wL(a,[...f,h],{detached:!0,stdio:["ignore","pipe","pipe"],env:o});t.onCancellationRequested(()=>(g.kill(),l(new xt))),g.on("error",S=>{e.error("getUnixShellEnvironment#errorChildProcess",yn(S)),l(S)});const v=[];g.stdout.on("data",S=>v.push(S));const w=[];g.stderr.on("data",S=>w.push(S)),g.on("close",(S,E)=>{const P=Buffer.concat(v).toString("utf8");e.trace("getUnixShellEnvironment#raw",P);const A=Buffer.concat(w).toString("utf8");if(A.trim()&&e.trace("getUnixShellEnvironment#stderr",A),S||E)return l(new Error(m(2229,null,S,E)));const D=n.exec(P),T=D?D[1]:"{}";try{const $=JSON.parse(T);i?$.ELECTRON_RUN_AS_NODE=i:delete $.ELECTRON_RUN_AS_NODE,s?$.ELECTRON_NO_ATTACH_CONSOLE=s:delete $.ELECTRON_NO_ATTACH_CONSOLE,delete $.VSCODE_RESOLVING_ENVIRONMENT,delete $.XDG_RUNTIME_DIR,e.trace("getUnixShellEnvironment#result",$),c($)}catch($){e.error("getUnixShellEnvironment#errorCaught",yn($)),l($)}})})}var ih,rg=y({"out-build/vs/platform/shell/node/shellEnv.js"(){"use strict";de(),ue(),Ft(),oo(),ve(),K(),Bt(),AE(),gL(),Ne(),yL(),ih=void 0}});import{parse as WE}from"url";function bL(e,t){return e.protocol==="http:"?t.HTTP_PROXY||t.http_proxy||null:e.protocol==="https:"&&(t.HTTPS_PROXY||t.https_proxy||t.HTTP_PROXY||t.http_proxy)||null}async function EL(e,t,i={}){const s=WE(e),r=i.proxyUrl||bL(s,t);if(!r)return null;const n=WE(r);if(!/^https?:$/.test(n.protocol||""))return null;const o={host:n.hostname||"",port:(n.port?+n.port:0)||(n.protocol==="https"?443:80),auth:n.auth,rejectUnauthorized:is(i.strictSSL)?i.strictSSL:!0};if(s.protocol==="http:"){const{default:a}=await import("http-proxy-agent");return new a.HttpProxyAgent(r,o)}else{const{default:a}=await import("https-proxy-agent");return new a.HttpsProxyAgent(r,o)}}var SL=y({"out-build/vs/platform/request/node/proxy.js"(){"use strict";_e()}});import{parse as HE}from"url";import{createGunzip as xL}from"zlib";async function kL(e,t,i,s){const r=await import("kerberos"),n=r.default||r,o=new URL(e),a=t||(process.platform==="win32"?`HTTP/${o.hostname}`:`HTTP@${o.hostname}`);return i.debug(`${s} Kerberos authentication lookup`,`proxyURL:${o}`,`spn:${a}`),(await n.initializeClient(a)).step("")}async function PL(e){return(HE(e.url).protocol==="https:"?await import("https"):await import("http")).request}async function ng(e,t){return Yt.withAsyncBody(async(i,s)=>{const r=HE(e.url),n=e.getRawRequest?e.getRawRequest(e):await PL(e),o={hostname:r.hostname,port:r.port?parseInt(r.port):r.protocol==="https:"?443:80,protocol:r.protocol,path:r.path,method:e.type||"GET",headers:e.headers,agent:e.agent,rejectUnauthorized:is(e.strictSSL)?e.strictSSL:!0};e.user&&e.password&&(o.auth=e.user+":"+e.password),e.disableCache&&(o.cache="no-store");const a=n(o,c=>{const l=Ir(e.followRedirects)?e.followRedirects:3;if(c.statusCode&&c.statusCode>=300&&c.statusCode<400&&l>0&&c.headers.location)c.statusCode===303?ng({...e,url:c.headers.location,type:"GET",followRedirects:l-1},t).then(i,s):ng({...e,url:c.headers.location,followRedirects:l-1},t).then(i,s);else{let u=c;!e.isChromiumNetwork&&c.headers["content-encoding"]==="gzip"&&(u=c.pipe(xL())),i({res:c,stream:ND(u)})}});if(a.on("error",s),e.timeout)if(e.isChromiumNetwork){const c=setTimeout(()=>{a.abort(),s(new Error(`Request timeout after ${e.timeout}ms`))},e.timeout);a.on("response",()=>clearTimeout(c)),a.on("error",()=>clearTimeout(c)),a.on("abort",()=>clearTimeout(c))}else a.setTimeout(e.timeout);e.isChromiumNetwork&&a.removeHeader("Content-Length"),e.data&&typeof e.data=="string"&&a.write(e.data),a.end(),t.onCancellationRequested(()=>{a.abort(),s(new xt)})})}var bc,VE=y({"out-build/vs/platform/request/node/requestService.js"(){"use strict";Ne(),Fe(),ve(),_e(),ci(),ui(),rg(),Ie(),ko(),SL(),bc=class extends lE{constructor(t,i,s,r){super(r),this.machine=t,this.configurationService=i,this.environmentService=s,this.configure(),this._register(i.onDidChangeConfiguration(n=>{n.affectsConfiguration("http")&&this.configure()}))}configure(){this.proxyUrl=this.getConfigValue("http.proxy"),this.strictSSL=!!this.getConfigValue("http.proxyStrictSSL"),this.authorization=this.getConfigValue("http.proxyAuthorization")}async request(t,i){const{proxyUrl:s,strictSSL:r}=this;let n;try{n=await sg(this.configurationService,this.logService,this.environmentService.args,process.env)}catch(c){this.shellEnvErrorLogged||(this.shellEnvErrorLogged=!0,this.logService.error("resolving shell environment failed",le(c)))}const o={...process.env,...n},a=t.agent?t.agent:await EL(t.url||"",o,{proxyUrl:s,strictSSL:r});return t.agent=a,t.strictSSL=r,this.authorization&&(t.headers={...t.headers||{},"Proxy-Authorization":this.authorization}),this.logAndRequest(t,()=>ng(t,i))}async resolveProxy(t){}async lookupAuthorization(t){}async lookupKerberosAuthorization(t){try{const i=this.getConfigValue("http.proxyKerberosServicePrincipal");return"Negotiate "+await kL(t,i,this.logService,"RequestService#lookupKerberosAuthorization")}catch(i){this.logService.debug("RequestService#lookupKerberosAuthorization Kerberos authentication failed",i);return}}async loadCertificates(){return(await import("@vscode/proxy-agent")).loadSystemCertificates({log:this.logService})}getConfigValue(t){if(this.machine==="remote")return this.configurationService.getValue(t);const i=this.configurationService.inspect(t);return i.userLocalValue||i.defaultValue}},bc=__decorate([__param(1,Zt),__param(2,Vi),__param(3,fe)],bc)}});function jE(e){if(!e)return;const t=e.indexOf("+");return t<0?e:e.substr(0,t)}var og=y({"out-build/vs/platform/remote/common/remoteHosts.js"(){"use strict";xe()}});function IL(e){if(ln===2&&/^penguin(\.|$)/i.test(e))return"chromebook"}function CL(e,t,i,s,r,n,o,a,c,l,u){const h=Object.create(null);h["common.machineId"]=n,h["common.macMachineId"]=o,h["common.sqmId"]=a,h["common.devDeviceId"]=c,h.sessionID=Ve()+Date.now(),h.commitHash=s,h.version=r,h["common.platformVersion"]=(e||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),h["common.platform"]=sw(ln),h["common.nodePlatform"]=nm,h["common.nodeArch"]=i,h["common.product"]=u||"desktop",l&&(h["common.msftInternal"]=l);let f=0;const p=Date.now();Object.defineProperties(h,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-p,enumerable:!0},"common.sequence":{get:()=>f++,enumerable:!0}}),uw&&(h["common.snap"]="true");const g=IL(t);return g&&(h["common.platformDetail"]=g),h}function DL(e){const t=$i.USERDNSDOMAIN;if(!t)return!1;const i=t.toLowerCase();return e.some(s=>i===s)}var BE=y({"out-build/vs/platform/telemetry/common/commonProperties.js"(){"use strict";K(),ss(),Bt()}}),fi,RL,zE,Ec,ag,sh,qE,GE,LL,ji=y({"out-build/vs/platform/telemetry/common/telemetry.js"(){"use strict";se(),fi=te("telemetryService"),RL=te("customEndpointTelemetryService"),zE="crashReporting",Ec="crashReporting.enabled",ag="telemetry.enableCrashReporter",sh="telemetry.enableTelemetry",(function(e){e[e.NONE=0]="NONE",e[e.CRASH=1]="CRASH",e[e.ERROR=2]="ERROR",e[e.USAGE=3]="USAGE"})(qE||(qE={})),(function(e){e.OFF="off",e.ON="all"})(GE||(GE={})),LL=te("mainProcessPerformanceTelemetryService")}});function QE(e,t){return!t.isBuilt&&!t.disableTelemetry?!0:!(t.disableTelemetry||!e.enableTelemetry)}function AL(e,t){return t.extensionTestsLocationURI?!0:!(t.isBuilt||t.disableTelemetry||e.enableTelemetry&&e.aiConfig?.ariaKey)}function JE(e){const t=e.getValue(Ec),i=e.getValue(ag);if(e.getValue(sh)===!1||i===!1)return 0;switch(t??"all"){case"all":return 3;case"off":return 0}}function NL(e){if(!e)return"none";const t=jE(e);return e4.has(t)?t:"other"}function OL(e,t){const i=e.msftInternalDomains||[],s=t.getValue("telemetry.internalTesting");return DL(i)||s}function TL(e){return[e.appRoot,e.extensionsPath,e.userHome.fsPath,e.tmpDir.fsPath,e.userDataPath]}function ML(e,t){if(!e||!e.includes("/")&&!e.includes("\\"))return e;let i=e;const s=[];for(const a of t)for(;;){const c=a.exec(e);if(!c)break;s.push([c.index,a.lastIndex])}const r=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,n=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g;let o=0;for(i="";;){const a=n.exec(e);if(!a)break;const c=s.some(([l,u])=>a.index<u&&l<n.lastIndex);!r.test(a[0])&&!c&&(i+=e.substring(o,a.index)+"<REDACTED: user-file-path>",o=n.lastIndex)}return o<e.length&&(i+=e.substr(o)),i}function FL(e){if(!e)return e;const t=[{label:"Google API Key",regex:/AIza[A-Za-z0-9_\\\-]{35}/},{label:"Slack Token",regex:/xox[pbar]\-[A-Za-z0-9]/},{label:"GitHub Token",regex:/(gh[psuro]_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59})/},{label:"Generic Secret",regex:/(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/i},{label:"CLI Credentials",regex:/((login|psexec|(certutil|psexec)\.exe).{1,50}(\s-u(ser(name)?)?\s+.{3,100})?\s-(admin|user|vm|root)?p(ass(word)?)?\s+["']?[^$\-\/\s]|(^|[\s\r\n\\])net(\.exe)?.{1,5}(user\s+|share\s+\/user:| user -? secrets ? set) \s + [^ $\s \/])/},{label:"Microsoft Entra ID",regex:/eyJ(?:0eXAiOiJKV1Qi|hbGci|[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.)/},{label:"Email",regex:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/}];for(const i of t)if(i.regex.test(e))return`<REDACTED: ${i.label}>`;return e}function rh(e,t){return rr(e,i=>{if(i instanceof Sc||Object.hasOwnProperty.call(i,"isTrustedTelemetryValue"))return i.value;if(typeof i=="string"){let s=i.replaceAll("%20"," ");s=ML(s,t);for(const r of t)s=s.replace(r,"");return s=FL(s),s}})}var Sc,cg,XE,YE,ZE,KE,e4,Mr=y({"out-build/vs/platform/telemetry/common/telemetryUtils.js"(){"use strict";Si(),_e(),ue(),og(),BE(),ji(),Sc=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},cg=class{constructor(){this.telemetryLevel=0,this.sessionId="someValue.sessionId",this.machineId="someValue.machineId",this.macMachineId="someValue.macMachineId",this.sqmId="someValue.sqmId",this.devDeviceId="someValue.devDeviceId",this.firstSessionDate="someValue.firstSessionDate",this.sendErrorTelemetry=!1}registerAuthId(){}publicLog(){}publicLog2(){}publicLogError(){}publicLogError2(){}publicLogCapture(){}setExperimentProperty(){}},XE=new cg,YE="telemetry",ZE={id:YE,name:m(2238,null)},KE={registerAuthId:()=>null,log:()=>null,flush:()=>Promise.resolve(null),capture:()=>null},e4=new Set(["ssh-remote","dev-container","attached-container","wsl","tunnel","codespaces","amlext"])}});function t4(e){switch(e){case"win32-x64":return"Windows 64 bit";case"win32-arm64":return"Windows ARM";case"linux-x64":return"Linux 64 bit";case"linux-arm64":return"Linux ARM 64";case"linux-armhf":return"Linux ARM";case"alpine-x64":return"Alpine Linux 64 bit";case"alpine-arm64":return"Alpine ARM 64";case"darwin-x64":return"Mac";case"darwin-arm64":return"Mac Silicon";case"web":return"Web";case"universal":return"universal";case"unknown":return"unknown";case"undefined":return"undefined"}}function UL(e){switch(e){case"win32-x64":return"win32-x64";case"win32-arm64":return"win32-arm64";case"linux-x64":return"linux-x64";case"linux-arm64":return"linux-arm64";case"linux-armhf":return"linux-armhf";case"alpine-x64":return"alpine-x64";case"alpine-arm64":return"alpine-arm64";case"darwin-x64":return"darwin-x64";case"darwin-arm64":return"darwin-arm64";case"web":return"web";case"universal":return"universal";default:return"unknown"}}function i4(e,t){switch(e){case 3:return t==="x64"?"win32-x64":t==="arm64"?"win32-arm64":"unknown";case 2:return t==="x64"?"linux-x64":t==="arm64"?"linux-arm64":t==="arm"?"linux-armhf":"unknown";case"alpine":return t==="x64"?"alpine-x64":t==="arm64"?"alpine-arm64":"unknown";case 1:return t==="x64"?"darwin-x64":t==="arm64"?"darwin-arm64":"unknown";case 0:return"web"}}function Do(e,t){return t==="web"&&!e.includes("web")}function lg(e,t,i){return Do(t,i)?!1:e==="undefined"||e==="universal"?!0:e==="unknown"?!1:e===i}function $L(e){return e&&typeof e=="object"&&typeof e.id=="string"&&(!e.uuid||typeof e.uuid=="string")}async function ug(e,t){let i;try{i=await t.resolve(e)}catch(s){if(s.fileOperationResult===1)return 0;throw s}return i.children?(await Promise.all(i.children.map(r=>ug(r.resource,t)))).reduce((r,n)=>r+n,0):i.size??0}var s4,nh,r4,hg,n4,o4,a4,c4,l4,u4,h4,d4,os,f4,xc,p4,bt,et,oh,WL,HL,cr,VL,jL,m4,ah,ki=y({"out-build/vs/platform/extensionManagement/common/extensionManagement.js"(){"use strict";ue(),se(),s4="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",nh=new RegExp(s4),r4="__web_extension",hg="extensionInstallSource",n4="dependecyOrPackExtensionInstall",o4="clientTargetPlatform",(function(e){e.COMMAND="command",e.SETTINGS_SYNC="settingsSync"})(a4||(a4={})),(function(e){e.NoneOrRelevance="NoneOrRelevance",e.LastUpdatedDate="LastUpdatedDate",e.Title="Title",e.PublisherName="PublisherName",e.InstallCount="InstallCount",e.PublishedDate="PublishedDate",e.AverageRating="AverageRating",e.WeightedRating="WeightedRating"})(c4||(c4={})),(function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"})(l4||(l4={})),(function(e){e.Category="Category",e.ExtensionId="ExtensionId",e.ExtensionName="ExtensionName",e.ExcludeWithFlags="ExcludeWithFlags",e.Featured="Featured",e.SearchText="SearchText",e.Tag="Tag",e.Target="Target"})(u4||(u4={})),(function(e){e.Install="install",e.Uninstall="uninstall"})(h4||(h4={})),(function(e){e[e.None=1]="None",e[e.Install=2]="Install",e[e.Update=3]="Update",e[e.Migrate=4]="Migrate"})(d4||(d4={})),os=te("extensionGalleryService"),(function(e){e.Timeout="Timeout",e.Cancelled="Cancelled",e.Failed="Failed",e.DownloadFailedWriting="DownloadFailedWriting",e.Offline="Offline"})(f4||(f4={})),xc=class extends Error{constructor(e,t){super(e),this.code=t,this.name=t}},(function(e){e.NotFound="NotFound",e.Unsupported="Unsupported",e.Deprecated="Deprecated",e.Malicious="Malicious",e.Incompatible="Incompatible",e.IncompatibleApi="IncompatibleApi",e.IncompatibleTargetPlatform="IncompatibleTargetPlatform",e.ReleaseVersionNotFound="ReleaseVersionNotFound",e.Invalid="Invalid",e.Download="Download",e.DownloadSignature="DownloadSignature",e.DownloadFailedWriting="DownloadFailedWriting",e.UpdateMetadata="UpdateMetadata",e.Extract="Extract",e.Scanning="Scanning",e.ScanningExtension="ScanningExtension",e.ReadRemoved="ReadRemoved",e.UnsetRemoved="UnsetRemoved",e.Delete="Delete",e.Rename="Rename",e.IntializeDefaultProfile="IntializeDefaultProfile",e.AddToProfile="AddToProfile",e.InstalledExtensionNotFound="InstalledExtensionNotFound",e.PostInstall="PostInstall",e.CorruptZip="CorruptZip",e.IncompleteZip="IncompleteZip",e.PackageNotSigned="PackageNotSigned",e.SignatureVerificationInternal="SignatureVerificationInternal",e.SignatureVerificationFailed="SignatureVerificationFailed",e.NotAllowed="NotAllowed",e.Gallery="Gallery",e.Cancelled="Cancelled",e.Unknown="Unknown",e.Internal="Internal"})(p4||(p4={})),(function(e){e.NotSigned="NotSigned",e.Success="Success",e.RequiredArgumentMissing="RequiredArgumentMissing",e.InvalidArgument="InvalidArgument",e.PackageIsUnreadable="PackageIsUnreadable",e.UnhandledException="UnhandledException",e.SignatureManifestIsMissing="SignatureManifestIsMissing",e.SignatureManifestIsUnreadable="SignatureManifestIsUnreadable",e.SignatureIsMissing="SignatureIsMissing",e.SignatureIsUnreadable="SignatureIsUnreadable",e.CertificateIsUnreadable="CertificateIsUnreadable",e.SignatureArchiveIsUnreadable="SignatureArchiveIsUnreadable",e.FileAlreadyExists="FileAlreadyExists",e.SignatureArchiveIsInvalidZip="SignatureArchiveIsInvalidZip",e.SignatureArchiveHasSameSignatureFile="SignatureArchiveHasSameSignatureFile",e.PackageIntegrityCheckFailed="PackageIntegrityCheckFailed",e.SignatureIsInvalid="SignatureIsInvalid",e.SignatureManifestIsInvalid="SignatureManifestIsInvalid",e.SignatureIntegrityCheckFailed="SignatureIntegrityCheckFailed",e.EntryIsMissing="EntryIsMissing",e.EntryIsTampered="EntryIsTampered",e.Untrusted="Untrusted",e.CertificateRevoked="CertificateRevoked",e.SignatureIsNotValid="SignatureIsNotValid",e.UnknownError="UnknownError",e.PackageIsInvalidZip="PackageIsInvalidZip",e.SignatureArchiveHasTooManyEntries="SignatureArchiveHasTooManyEntries"})(bt||(bt={})),et=class extends Error{constructor(e,t){super(e),this.code=t,this.name=t}},oh=te("extensionManagementService"),WL=te("IGlobalExtensionEnablementService"),HL=te("IExtensionTipsService"),cr=te("IAllowedExtensionsService"),VL=tw(1930,"Extensions"),jL=tw(1931,"Preferences"),m4="extensions.gallery.useUnpkgResourceApi",ah="extensions.allowed"}});function g4(e){return e instanceof v4?!0:e instanceof Error&&e.name===ch&&e.message===ch}var ch,v4,BL=y({"out-build/vs/base/parts/request/common/request.js"(){"use strict";ch="Offline",v4=class extends Error{constructor(){super(ch),this.name=this.message}}}});function y4(e){return zL(e)}function zL(e){return e.contributes&&e.contributes.localizations?e.contributes.localizations.length>0:!1}function qL(e){return e.map(t=>{const[i,s]=t.split("@");return{proposalName:i,version:s?parseInt(s):void 0}})}function GL(e){return e.map(t=>t.split("@")[0])}var dg,w4,fg,_4,b4,E4,as,pg,QL,cs=y({"out-build/vs/platform/extensions/common/extensions.js"(){"use strict";lt(),se(),og(),dg="extensions.user.cache",w4="extensions.builtin.cache",fg="undefined_publisher",_4=["AI","Azure","Chat","Data Science","Debuggers","Extension Packs","Education","Formatters","Keymaps","Language Packs","Linters","Machine Learning","Notebooks","Programming Languages","SCM Providers","Snippets","Testing","Themes","Visualization","Other"],(function(e){e[e.System=0]="System",e[e.User=1]="User"})(b4||(b4={})),(function(e){e.WIN32_X64="win32-x64",e.WIN32_ARM64="win32-arm64",e.LINUX_X64="linux-x64",e.LINUX_ARM64="linux-arm64",e.LINUX_ARMHF="linux-armhf",e.ALPINE_X64="alpine-x64",e.ALPINE_ARM64="alpine-arm64",e.DARWIN_X64="darwin-x64",e.DARWIN_ARM64="darwin-arm64",e.WEB="web",e.UNIVERSAL="universal",e.UNKNOWN="unknown",e.UNDEFINED="undefined"})(E4||(E4={})),as=class{constructor(e){this.value=e,this._lower=e.toLowerCase()}static equals(e,t){if(typeof e>"u"||e===null)return typeof t>"u"||t===null;if(typeof t>"u"||t===null)return!1;if(typeof e=="string"||typeof t=="string"){const i=typeof e=="string"?e:e.value,s=typeof t=="string"?t:t.value;return fn(i,s)}return e._lower===t._lower}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}},pg=class{constructor(){this._map=new Map}clear(){this._map.clear()}delete(e){this._map.delete(as.toKey(e))}get(e){return this._map.get(as.toKey(e))}has(e){return this._map.has(as.toKey(e))}set(e,t){this._map.set(as.toKey(e),t)}values(){return this._map.values()}forEach(e){this._map.forEach(e)}[Symbol.iterator](){return this._map[Symbol.iterator]()}},QL=te("IBuiltinExtensionsScannerService")}});function ge(e,t){return e.uuid&&t.uuid?e.uuid===t.uuid:e.id===t.id?!0:yu(e.id,t.id)===0}function mg(e){const t=P4.exec(e);return t&&t[1]?[lh(t[1]),t[2]]:[lh(e),void 0]}function gg(e,t){return`${e}.${t}`}function lh(e){return e.toLowerCase()}function Ai(e,t){return lh(gg(e??fg,t))}function S4(e,t){const i=[],s=r=>{for(const n of i)if(n.some(o=>ge(t(o),t(r))))return n;return null};for(const r of e){const n=s(r);n?n.push(r):i.push([r])}return i}function JL(e){return{id:e.identifier.id,name:e.manifest.name,galleryId:null,publisherId:e.publisherId,publisherName:e.manifest.publisher,publisherDisplayName:e.publisherDisplayName,dependencies:e.manifest.extensionDependencies&&e.manifest.extensionDependencies.length>0}}function vg(e){return{id:new Sc(e.identifier.id),name:new Sc(e.name),extensionVersion:e.version,galleryId:e.identifier.uuid,publisherId:e.publisherId,publisherName:e.publisher,publisherDisplayName:e.publisherDisplayName,isPreReleaseVersion:e.properties.isPreReleaseVersion,dependencies:!!(e.properties.dependencies&&e.properties.dependencies.length>0),isSigned:e.isSigned,...e.telemetryData}}async function XL(e,t){if(!nt)return!1;let i;try{i=(await e.readFile(b.file("/etc/os-release"))).value.toString()}catch{try{i=(await e.readFile(b.file("/usr/lib/os-release"))).value.toString()}catch(r){t.debug("Error while getting the os-release file.",le(r))}}return!!i&&(i.match(/^ID=([^\u001b\r\n]*)/m)||[])[1]==="alpine"}async function x4(e,t){const i=await XL(e,t),s=i4(i?"alpine":ln,om);return t.debug("ComputeTargetPlatform:",s),s}function YL(e,t){return t.some(i=>ye(i)?yu(e.id.split(".")[0],i)===0:ge(e,i))}var k4,pi,P4,ZL,ls=y({"out-build/vs/platform/extensionManagement/common/extensionManagementUtil.js"(){"use strict";lt(),ki(),cs(),K(),Y(),ve(),ss(),Mr(),_e(),k4=/^([^.]+\..+)-(\d+\.\d+\.\d+)(-(.+))?$/,pi=class Ep{static create(t){const i=t.manifest?t.manifest.version:t.version,s=t.manifest?t.targetPlatform:t.properties.targetPlatform;return new Ep(t.identifier,i,s)}static parse(t){const i=k4.exec(t);return i&&i[1]&&i[2]?new Ep({id:i[1]},i[2],i[4]||void 0):null}constructor(t,i,s="undefined"){this.identifier=t,this.version=i,this.targetPlatform=s,this.id=t.id}toString(){return`${this.id}-${this.version}${this.targetPlatform!=="undefined"?`-${this.targetPlatform}`:""}`}equals(t){return t instanceof Ep?ge(this,t)&&this.version===t.version&&this.targetPlatform===t.targetPlatform:!1}},P4=/^([^.]+\..+)@((prerelease)|(\d+\.\d+\.\d+(-.*)?))$/,ZL=new as("pprice.better-merge")}});async function KL(e,t,i){let s=i&&i.get("storage.serviceMachineId",-1)||null;if(s)return s;try{const n=(await t.readFile(e.serviceMachineIdResource)).value.toString();s=MR(n)?n:null}catch{s=null}if(!s){s=Ve();try{await t.writeFile(e.serviceMachineIdResource,O.fromString(s))}catch{}}return i?.store("storage.serviceMachineId",s,-1,1),s}var eA=y({"out-build/vs/platform/externalServices/common/serviceMachineId.js"(){"use strict";Fe(),Bt()}});async function tA(e,t,i,s,r,n){const o={"X-Market-Client-Id":`VSCode ${I4(e)}`,"User-Agent":`VSCode ${I4(e)} (Code)`};if(QE(e,t)&&JE(i)===3){const a=await KL(t,s,r);o["X-Market-User-Id"]=a,o["VSCode-SessionId"]=n.machineId||a}return o}function I4(e){return e.vscodeVersion}var iA=y({"out-build/vs/platform/externalServices/common/marketplace.js"(){"use strict";eA(),Mr()}}),kc,je,uh=y({"out-build/vs/base/common/severity.js"(){"use strict";lt(),(function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.AI=4]="AI"})(kc||(kc={})),(function(e){const t="error",i="warning",s="warn",r="info",n="ignore";function o(c){return c?fn(t,c)?e.Error:fn(i,c)||fn(s,c)?e.Warning:fn(r,c)?e.Info:e.Ignore:e.Ignore}e.fromValue=o;function a(c){switch(c){case e.Error:return t;case e.Warning:return i;case e.Info:return r;default:return n}}e.toString=a})(kc||(kc={})),je=kc}}),Pc,we,sA,rA,C4,nA,oA,aA,cA,lA,uA,hA,hh,yg,dA,D4,R4,fA,pA,mA,wg,gA,vA,yA,wA,_A,bA,EA,SA,xA,kA,PA,IA,CA,DA,RA,LA,AA,NA,In=y({"out-build/vs/base/common/semver/semver.js"(){"use strict";Pc={},we={exports:Pc},(function(e,t){if(typeof Pc=="object"&&typeof we=="object")we.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var i=t();for(var s in i)(typeof Pc=="object"?Pc:e)[s]=i[s]}})(typeof self<"u"?self:void 0,(function(){return(function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(s,r,n){i.o(s,r)||Object.defineProperty(s,r,{enumerable:!0,get:n})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,r){if(1&r&&(s=i(s)),8&r||4&r&&typeof s=="object"&&s&&s.__esModule)return s;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:s}),2&r&&typeof s!="string")for(var o in s)i.d(n,o,function(a){return s[a]}.bind(null,o));return n},i.n=function(s){var r=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(r,"a",r),r},i.o=function(s,r){return Object.prototype.hasOwnProperty.call(s,r)},i.p="",i(i.s=0)})([function(e,t,i){(function(s){var r;t=e.exports=Re,r=typeof s=="object"&&s.env&&s.env.NODE_DEBUG&&/\bsemver\b/i.test(s.env.NODE_DEBUG)?function(){var _=Array.prototype.slice.call(arguments,0);_.unshift("SEMVER"),console.log.apply(console,_)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],c=t.src=[],l=0,u=l++;c[u]="0|[1-9]\\d*";var h=l++;c[h]="[0-9]+";var f=l++;c[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=l++;c[p]="("+c[u]+")\\.("+c[u]+")\\.("+c[u]+")";var g=l++;c[g]="("+c[h]+")\\.("+c[h]+")\\.("+c[h]+")";var v=l++;c[v]="(?:"+c[u]+"|"+c[f]+")";var w=l++;c[w]="(?:"+c[h]+"|"+c[f]+")";var S=l++;c[S]="(?:-("+c[v]+"(?:\\."+c[v]+")*))";var E=l++;c[E]="(?:-?("+c[w]+"(?:\\."+c[w]+")*))";var P=l++;c[P]="[0-9A-Za-z-]+";var A=l++;c[A]="(?:\\+("+c[P]+"(?:\\."+c[P]+")*))";var D=l++,T="v?"+c[p]+c[S]+"?"+c[A]+"?";c[D]="^"+T+"$";var $="[v=\\s]*"+c[g]+c[E]+"?"+c[A]+"?",ne=l++;c[ne]="^"+$+"$";var N=l++;c[N]="((?:<|>)?=?)";var pe=l++;c[pe]=c[h]+"|x|X|\\*";var at=l++;c[at]=c[u]+"|x|X|\\*";var q=l++;c[q]="[v=\\s]*("+c[at]+")(?:\\.("+c[at]+")(?:\\.("+c[at]+")(?:"+c[S]+")?"+c[A]+"?)?)?";var Ge=l++;c[Ge]="[v=\\s]*("+c[pe]+")(?:\\.("+c[pe]+")(?:\\.("+c[pe]+")(?:"+c[E]+")?"+c[A]+"?)?)?";var C=l++;c[C]="^"+c[N]+"\\s*"+c[q]+"$";var L=l++;c[L]="^"+c[N]+"\\s*"+c[Ge]+"$";var F=l++;c[F]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var M=l++;c[M]="(?:~>?)";var J=l++;c[J]="(\\s*)"+c[M]+"\\s+",a[J]=new RegExp(c[J],"g");var ae=l++;c[ae]="^"+c[M]+c[q]+"$";var Pe=l++;c[Pe]="^"+c[M]+c[Ge]+"$";var Ze=l++;c[Ze]="(?:\\^)";var Ke=l++;c[Ke]="(\\s*)"+c[Ze]+"\\s+",a[Ke]=new RegExp(c[Ke],"g");var ii=l++;c[ii]="^"+c[Ze]+c[q]+"$";var on=l++;c[on]="^"+c[Ze]+c[Ge]+"$";var Bs=l++;c[Bs]="^"+c[N]+"\\s*("+$+")$|^$";var Zn=l++;c[Zn]="^"+c[N]+"\\s*("+T+")$|^$";var ys=l++;c[ys]="(\\s*)"+c[N]+"\\s*("+$+"|"+c[q]+")",a[ys]=new RegExp(c[ys],"g");var tu=l++;c[tu]="^\\s*("+c[q]+")\\s+-\\s+("+c[q]+")\\s*$";var iu=l++;c[iu]="^\\s*("+c[Ge]+")\\s+-\\s+("+c[Ge]+")\\s*$";var Fy=l++;c[Fy]="(<|>)?=?\\s*\\*";for(var an=0;an<35;an++)r(an,c[an]),a[an]||(a[an]=new RegExp(c[an]));function cn(_,x){if(_ instanceof Re)return _;if(typeof _!="string"||_.length>n||!(x?a[ne]:a[D]).test(_))return null;try{return new Re(_,x)}catch{return null}}function Re(_,x){if(_ instanceof Re){if(_.loose===x)return _;_=_.version}else if(typeof _!="string")throw new TypeError("Invalid Version: "+_);if(_.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof Re))return new Re(_,x);r("SemVer",_,x),this.loose=x;var I=_.trim().match(x?a[ne]:a[D]);if(!I)throw new TypeError("Invalid Version: "+_);if(this.raw=_,this.major=+I[1],this.minor=+I[2],this.patch=+I[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");I[4]?this.prerelease=I[4].split(".").map((function(Q){if(/^[0-9]+$/.test(Q)){var re=+Q;if(re>=0&&re<o)return re}return Q})):this.prerelease=[],this.build=I[5]?I[5].split("."):[],this.format()}t.parse=cn,t.valid=function(_,x){var I=cn(_,x);return I?I.version:null},t.clean=function(_,x){var I=cn(_.trim().replace(/^[=v]+/,""),x);return I?I.version:null},t.SemVer=Re,Re.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Re.prototype.toString=function(){return this.version},Re.prototype.compare=function(_){return r("SemVer.compare",this.version,this.loose,_),_ instanceof Re||(_=new Re(_,this.loose)),this.compareMain(_)||this.comparePre(_)},Re.prototype.compareMain=function(_){return _ instanceof Re||(_=new Re(_,this.loose)),Kn(this.major,_.major)||Kn(this.minor,_.minor)||Kn(this.patch,_.patch)},Re.prototype.comparePre=function(_){if(_ instanceof Re||(_=new Re(_,this.loose)),this.prerelease.length&&!_.prerelease.length)return-1;if(!this.prerelease.length&&_.prerelease.length)return 1;if(!this.prerelease.length&&!_.prerelease.length)return 0;var x=0;do{var I=this.prerelease[x],Q=_.prerelease[x];if(r("prerelease compare",x,I,Q),I===void 0&&Q===void 0)return 0;if(Q===void 0)return 1;if(I===void 0)return-1;if(I!==Q)return Kn(I,Q)}while(++x)},Re.prototype.inc=function(_,x){switch(_){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",x);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",x);break;case"prepatch":this.prerelease.length=0,this.inc("patch",x),this.inc("pre",x);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",x),this.inc("pre",x);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var I=this.prerelease.length;--I>=0;)typeof this.prerelease[I]=="number"&&(this.prerelease[I]++,I=-2);I===-1&&this.prerelease.push(0)}x&&(this.prerelease[0]===x?isNaN(this.prerelease[1])&&(this.prerelease=[x,0]):this.prerelease=[x,0]);break;default:throw new Error("invalid increment argument: "+_)}return this.format(),this.raw=this.version,this},t.inc=function(_,x,I,Q){typeof I=="string"&&(Q=I,I=void 0);try{return new Re(_,I).inc(x,Q).version}catch{return null}},t.diff=function(_,x){if(Dp(_,x))return null;var I=cn(_),Q=cn(x);if(I.prerelease.length||Q.prerelease.length){for(var re in I)if((re==="major"||re==="minor"||re==="patch")&&I[re]!==Q[re])return"pre"+re;return"prerelease"}for(var re in I)if((re==="major"||re==="minor"||re==="patch")&&I[re]!==Q[re])return re},t.compareIdentifiers=Kn;var Uy=/^[0-9]+$/;function Kn(_,x){var I=Uy.test(_),Q=Uy.test(x);return I&&Q&&(_=+_,x=+x),I&&!Q?-1:Q&&!I?1:_<x?-1:_>x?1:0}function zs(_,x,I){return new Re(_,I).compare(new Re(x,I))}function su(_,x,I){return zs(_,x,I)>0}function ru(_,x,I){return zs(_,x,I)<0}function Dp(_,x,I){return zs(_,x,I)===0}function $y(_,x,I){return zs(_,x,I)!==0}function Rp(_,x,I){return zs(_,x,I)>=0}function Lp(_,x,I){return zs(_,x,I)<=0}function nu(_,x,I,Q){var re;switch(x){case"===":typeof _=="object"&&(_=_.version),typeof I=="object"&&(I=I.version),re=_===I;break;case"!==":typeof _=="object"&&(_=_.version),typeof I=="object"&&(I=I.version),re=_!==I;break;case"":case"=":case"==":re=Dp(_,I,Q);break;case"!=":re=$y(_,I,Q);break;case">":re=su(_,I,Q);break;case">=":re=Rp(_,I,Q);break;case"<":re=ru(_,I,Q);break;case"<=":re=Lp(_,I,Q);break;default:throw new TypeError("Invalid operator: "+x)}return re}function Fi(_,x){if(_ instanceof Fi){if(_.loose===x)return _;_=_.value}if(!(this instanceof Fi))return new Fi(_,x);r("comparator",_,x),this.loose=x,this.parse(_),this.semver===Ca?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(_,x){return Kn(x,_)},t.major=function(_,x){return new Re(_,x).major},t.minor=function(_,x){return new Re(_,x).minor},t.patch=function(_,x){return new Re(_,x).patch},t.compare=zs,t.compareLoose=function(_,x){return zs(_,x,!0)},t.rcompare=function(_,x,I){return zs(x,_,I)},t.sort=function(_,x){return _.sort((function(I,Q){return t.compare(I,Q,x)}))},t.rsort=function(_,x){return _.sort((function(I,Q){return t.rcompare(I,Q,x)}))},t.gt=su,t.lt=ru,t.eq=Dp,t.neq=$y,t.gte=Rp,t.lte=Lp,t.cmp=nu,t.Comparator=Fi;var Ca={};function dt(_,x){if(_ instanceof dt)return _.loose===x?_:new dt(_.raw,x);if(_ instanceof Fi)return new dt(_.value,x);if(!(this instanceof dt))return new dt(_,x);if(this.loose=x,this.raw=_,this.set=_.split(/\s*\|\|\s*/).map((function(I){return this.parseRange(I.trim())}),this).filter((function(I){return I.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+_);this.format()}function si(_){return!_||_.toLowerCase()==="x"||_==="*"}function mC(_,x,I,Q,re,Tt,Le,_i,yt,Gt,ws,wt,Wt){return((x=si(I)?"":si(Q)?">="+I+".0.0":si(re)?">="+I+"."+Q+".0":">="+x)+" "+(_i=si(yt)?"":si(Gt)?"<"+(+yt+1)+".0.0":si(ws)?"<"+yt+"."+(+Gt+1)+".0":wt?"<="+yt+"."+Gt+"."+ws+"-"+wt:"<="+_i)).trim()}function gC(_,x){for(var I=0;I<_.length;I++)if(!_[I].test(x))return!1;if(x.prerelease.length){for(I=0;I<_.length;I++)if(r(_[I].semver),_[I].semver!==Ca&&_[I].semver.prerelease.length>0){var Q=_[I].semver;if(Q.major===x.major&&Q.minor===x.minor&&Q.patch===x.patch)return!0}return!1}return!0}function ou(_,x,I){try{x=new dt(x,I)}catch{return!1}return x.test(_)}function Ap(_,x,I,Q){var re,Tt,Le,_i,yt;switch(_=new Re(_,Q),x=new dt(x,Q),I){case">":re=su,Tt=Lp,Le=ru,_i=">",yt=">=";break;case"<":re=ru,Tt=Rp,Le=su,_i="<",yt="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ou(_,x,Q))return!1;for(var Gt=0;Gt<x.set.length;++Gt){var ws=x.set[Gt],wt=null,Wt=null;if(ws.forEach((function(bi){bi.semver===Ca&&(bi=new Fi(">=0.0.0")),wt=wt||bi,Wt=Wt||bi,re(bi.semver,wt.semver,Q)?wt=bi:Le(bi.semver,Wt.semver,Q)&&(Wt=bi)})),wt.operator===_i||wt.operator===yt||(!Wt.operator||Wt.operator===_i)&&Tt(_,Wt.semver)||Wt.operator===yt&&Le(_,Wt.semver))return!1}return!0}Fi.prototype.parse=function(_){var x=this.loose?a[Bs]:a[Zn],I=_.match(x);if(!I)throw new TypeError("Invalid comparator: "+_);this.operator=I[1],this.operator==="="&&(this.operator=""),I[2]?this.semver=new Re(I[2],this.loose):this.semver=Ca},Fi.prototype.toString=function(){return this.value},Fi.prototype.test=function(_){return r("Comparator.test",_,this.loose),this.semver===Ca||(typeof _=="string"&&(_=new Re(_,this.loose)),nu(_,this.operator,this.semver,this.loose))},Fi.prototype.intersects=function(_,x){if(!(_ instanceof Fi))throw new TypeError("a Comparator is required");var I;if(this.operator==="")return I=new dt(_.value,x),ou(this.value,I,x);if(_.operator==="")return I=new dt(this.value,x),ou(_.semver,I,x);var Q=!(this.operator!==">="&&this.operator!==">"||_.operator!==">="&&_.operator!==">"),re=!(this.operator!=="<="&&this.operator!=="<"||_.operator!=="<="&&_.operator!=="<"),Tt=this.semver.version===_.semver.version,Le=!(this.operator!==">="&&this.operator!=="<="||_.operator!==">="&&_.operator!=="<="),_i=nu(this.semver,"<",_.semver,x)&&(this.operator===">="||this.operator===">")&&(_.operator==="<="||_.operator==="<"),yt=nu(this.semver,">",_.semver,x)&&(this.operator==="<="||this.operator==="<")&&(_.operator===">="||_.operator===">");return Q||re||Tt&&Le||_i||yt},t.Range=dt,dt.prototype.format=function(){return this.range=this.set.map((function(_){return _.join(" ").trim()})).join("||").trim(),this.range},dt.prototype.toString=function(){return this.range},dt.prototype.parseRange=function(_){var x=this.loose;_=_.trim(),r("range",_,x);var I=x?a[iu]:a[tu];_=_.replace(I,mC),r("hyphen replace",_),_=_.replace(a[ys],"$1$2$3"),r("comparator trim",_,a[ys]),_=(_=(_=_.replace(a[J],"$1~")).replace(a[Ke],"$1^")).split(/\s+/).join(" ");var Q=x?a[Bs]:a[Zn],re=_.split(" ").map((function(Tt){return(function(Le,_i){return r("comp",Le),Le=(function(yt,Gt){return yt.trim().split(/\s+/).map((function(ws){return(function(wt,Wt){r("caret",wt,Wt);var bi=Wt?a[on]:a[ii];return wt.replace(bi,(function(Ki,ce,be,Qe,rt){var Ht;return r("caret",wt,Ki,ce,be,Qe,rt),si(ce)?Ht="":si(be)?Ht=">="+ce+".0.0 <"+(+ce+1)+".0.0":si(Qe)?Ht=ce==="0"?">="+ce+"."+be+".0 <"+ce+"."+(+be+1)+".0":">="+ce+"."+be+".0 <"+(+ce+1)+".0.0":rt?(r("replaceCaret pr",rt),rt.charAt(0)!=="-"&&(rt="-"+rt),Ht=ce==="0"?be==="0"?">="+ce+"."+be+"."+Qe+rt+" <"+ce+"."+be+"."+(+Qe+1):">="+ce+"."+be+"."+Qe+rt+" <"+ce+"."+(+be+1)+".0":">="+ce+"."+be+"."+Qe+rt+" <"+(+ce+1)+".0.0"):(r("no pr"),Ht=ce==="0"?be==="0"?">="+ce+"."+be+"."+Qe+" <"+ce+"."+be+"."+(+Qe+1):">="+ce+"."+be+"."+Qe+" <"+ce+"."+(+be+1)+".0":">="+ce+"."+be+"."+Qe+" <"+(+ce+1)+".0.0"),r("caret return",Ht),Ht}))})(ws,Gt)})).join(" ")})(Le,_i),r("caret",Le),Le=(function(yt,Gt){return yt.trim().split(/\s+/).map((function(ws){return(function(wt,Wt){var bi=Wt?a[Pe]:a[ae];return wt.replace(bi,(function(Ki,ce,be,Qe,rt){var Ht;return r("tilde",wt,Ki,ce,be,Qe,rt),si(ce)?Ht="":si(be)?Ht=">="+ce+".0.0 <"+(+ce+1)+".0.0":si(Qe)?Ht=">="+ce+"."+be+".0 <"+ce+"."+(+be+1)+".0":rt?(r("replaceTilde pr",rt),rt.charAt(0)!=="-"&&(rt="-"+rt),Ht=">="+ce+"."+be+"."+Qe+rt+" <"+ce+"."+(+be+1)+".0"):Ht=">="+ce+"."+be+"."+Qe+" <"+ce+"."+(+be+1)+".0",r("tilde return",Ht),Ht}))})(ws,Gt)})).join(" ")})(Le,_i),r("tildes",Le),Le=(function(yt,Gt){return r("replaceXRanges",yt,Gt),yt.split(/\s+/).map((function(ws){return(function(wt,Wt){wt=wt.trim();var bi=Wt?a[L]:a[C];return wt.replace(bi,(function(Ki,ce,be,Qe,rt,Ht){r("xRange",wt,Ki,ce,be,Qe,rt,Ht);var Wy=si(be),Da=Wy||si(Qe),Ra=Da||si(rt);return ce==="="&&Ra&&(ce=""),Wy?Ki=ce===">"||ce==="<"?"<0.0.0":"*":ce&&Ra?(Da&&(Qe=0),Ra&&(rt=0),ce===">"?(ce=">=",Da?(be=+be+1,Qe=0,rt=0):Ra&&(Qe=+Qe+1,rt=0)):ce==="<="&&(ce="<",Da?be=+be+1:Qe=+Qe+1),Ki=ce+be+"."+Qe+"."+rt):Da?Ki=">="+be+".0.0 <"+(+be+1)+".0.0":Ra&&(Ki=">="+be+"."+Qe+".0 <"+be+"."+(+Qe+1)+".0"),r("xRange return",Ki),Ki}))})(ws,Gt)})).join(" ")})(Le,_i),r("xrange",Le),Le=(function(yt,Gt){return r("replaceStars",yt,Gt),yt.trim().replace(a[Fy],"")})(Le,_i),r("stars",Le),Le})(Tt,x)})).join(" ").split(/\s+/);return this.loose&&(re=re.filter((function(Tt){return!!Tt.match(Q)}))),re=re.map((function(Tt){return new Fi(Tt,x)}))},dt.prototype.intersects=function(_,x){if(!(_ instanceof dt))throw new TypeError("a Range is required");return this.set.some((function(I){return I.every((function(Q){return _.set.some((function(re){return re.every((function(Tt){return Q.intersects(Tt,x)}))}))}))}))},t.toComparators=function(_,x){return new dt(_,x).set.map((function(I){return I.map((function(Q){return Q.value})).join(" ").trim().split(" ")}))},dt.prototype.test=function(_){if(!_)return!1;typeof _=="string"&&(_=new Re(_,this.loose));for(var x=0;x<this.set.length;x++)if(gC(this.set[x],_))return!0;return!1},t.satisfies=ou,t.maxSatisfying=function(_,x,I){var Q=null,re=null;try{var Tt=new dt(x,I)}catch{return null}return _.forEach((function(Le){Tt.test(Le)&&(Q&&re.compare(Le)!==-1||(re=new Re(Q=Le,I)))})),Q},t.minSatisfying=function(_,x,I){var Q=null,re=null;try{var Tt=new dt(x,I)}catch{return null}return _.forEach((function(Le){Tt.test(Le)&&(Q&&re.compare(Le)!==1||(re=new Re(Q=Le,I)))})),Q},t.validRange=function(_,x){try{return new dt(_,x).range||"*"}catch{return null}},t.ltr=function(_,x,I){return Ap(_,x,"<",I)},t.gtr=function(_,x,I){return Ap(_,x,">",I)},t.outside=Ap,t.prerelease=function(_,x){var I=cn(_,x);return I&&I.prerelease.length?I.prerelease:null},t.intersects=function(_,x,I){return _=new dt(_,I),x=new dt(x,I),_.intersects(x)},t.coerce=function(_){if(_ instanceof Re)return _;if(typeof _!="string")return null;var x=_.match(a[F]);return x==null?null:cn((x[1]||"0")+"."+(x[2]||"0")+"."+(x[3]||"0"))}}).call(this,i(1))},function(e,t){var i,s,r=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(w){if(i===setTimeout)return setTimeout(w,0);if((i===n||!i)&&setTimeout)return i=setTimeout,setTimeout(w,0);try{return i(w,0)}catch{try{return i.call(null,w,0)}catch{return i.call(this,w,0)}}}(function(){try{i=typeof setTimeout=="function"?setTimeout:n}catch{i=n}try{s=typeof clearTimeout=="function"?clearTimeout:o}catch{s=o}})();var c,l=[],u=!1,h=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!u){var w=a(f);u=!0;for(var S=l.length;S;){for(c=l,l=[];++h<S;)c&&c[h].run();h=-1,S=l.length}c=null,u=!1,(function(E){if(s===clearTimeout)return clearTimeout(E);if((s===o||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(E);try{s(E)}catch{try{return s.call(null,E)}catch{return s.call(this,E)}}})(w)}}function g(w,S){this.fun=w,this.array=S}function v(){}r.nextTick=function(w){var S=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)S[E-1]=arguments[E];l.push(new g(w,S)),l.length!==1||u||a(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(w){return[]},r.binding=function(w){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(w){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}])})),sA=we.exports.SEMVER_SPEC_VERSION,rA=we.exports.parse,C4=we.exports.valid,nA=we.exports.coerce,oA=we.exports.clean,aA=we.exports.inc,cA=we.exports.major,lA=we.exports.minor,uA=we.exports.patch,hA=we.exports.prerelease,hh=we.exports.gt,yg=we.exports.gte,dA=we.exports.lt,D4=we.exports.lte,R4=we.exports.eq,fA=we.exports.neq,pA=we.exports.cmp,mA=we.exports.compare,wg=we.exports.rcompare,gA=we.exports.compareIdentifiers,vA=we.exports.rcompareIdentifiers,yA=we.exports.compareBuild,wA=we.exports.sort,_A=we.exports.rsort,bA=we.exports.diff,EA=we.exports.validRange,SA=we.exports.satisfies,xA=we.exports.maxSatisfying,kA=we.exports.minSatisfying,PA=we.exports.minVersion,IA=we.exports.gtr,CA=we.exports.ltr,DA=we.exports.outside,RA=we.exports.intersects,LA=we.exports.SemVer,AA=we.exports.Comparator,NA=we.exports.Range}}),L4,A4,OA=y({"out-build/vs/platform/extensions/common/extensionsApiProposals.js"(){"use strict";L4={activeComment:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.activeComment.d.ts"},aiRelatedInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts"},aiTextSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts",version:2},authLearnMore:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authLearnMore.d.ts"},authSession:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authSession.d.ts"},canonicalUriProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts"},chatEditing:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatEditing.d.ts"},chatParticipantAdditions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts"},chatParticipantPrivate:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts",version:6},chatProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatProvider.d.ts"},chatReferenceBinaryData:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts"},chatReferenceDiagnostic:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatReferenceDiagnostic.d.ts"},chatStatusItem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatStatusItem.d.ts"},chatTab:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatTab.d.ts"},codeActionAI:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codeActionAI.d.ts"},codeActionRanges:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codeActionRanges.d.ts"},codiconDecoration:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codiconDecoration.d.ts"},commentReactor:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentReactor.d.ts"},commentReveal:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentReveal.d.ts"},commentThreadApplicability:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts"},commentingRangeHint:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentingRangeHint.d.ts"},commentsDraftState:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentsDraftState.d.ts"},contribAccessibilityHelpContent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts"},contribChatParticipantDetection:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribChatParticipantDetection.d.ts"},contribCommentEditorActionsMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts"},contribCommentPeekContext:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts"},contribCommentThreadAdditionalMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts"},contribCommentsViewThreadMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts"},contribDebugCreateConfiguration:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts"},contribDiffEditorGutterToolBarMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts"},contribEditSessions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditSessions.d.ts"},contribEditorContentMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts"},contribLabelFormatterWorkspaceTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts"},contribMenuBarHome:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts"},contribMergeEditorMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts"},contribMultiDiffEditorMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts"},contribNotebookStaticPreloads:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts"},contribRemoteHelp:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts"},contribShareMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribShareMenu.d.ts"},contribSourceControlHistoryItemMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts"},contribSourceControlHistoryTitleMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlHistoryTitleMenu.d.ts"},contribSourceControlInputBoxMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts"},contribSourceControlTitleMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts"},contribStatusBarItems:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts"},contribViewContainerTitle:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewContainerTitle.d.ts"},contribViewsRemote:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsRemote.d.ts"},contribViewsWelcome:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts"},control:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.control.d.ts"},cursor:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.cursor.d.ts"},cursorNoDeps:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.cursorNoDeps.d.ts"},cursorPublic:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.cursorPublic.d.ts"},cursorTracing:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.cursorTracing.d.ts"},customEditorMove:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.customEditorMove.d.ts"},debugVisualization:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.debugVisualization.d.ts"},defaultChatParticipant:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts",version:3},diffCommand:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffCommand.d.ts"},diffContentOptions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffContentOptions.d.ts"},documentFiltersExclusive:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts"},editSessionIdentityProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts"},editorHoverVerbosityLevel:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts"},editorInsets:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorInsets.d.ts"},embeddings:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.embeddings.d.ts"},extensionRuntime:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionRuntime.d.ts"},extensionsAny:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionsAny.d.ts"},externalUriOpener:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.externalUriOpener.d.ts"},fileSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileSearchProvider.d.ts"},fileSearchProvider2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileSearchProvider2.d.ts"},findFiles2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findFiles2.d.ts",version:2},findTextInFiles:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findTextInFiles.d.ts"},findTextInFiles2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findTextInFiles2.d.ts"},fsChunks:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fsChunks.d.ts"},idToken:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.idToken.d.ts"},inlineCompletionsAdditions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts"},inlineEdit:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineEdit.d.ts"},interactive:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactive.d.ts"},interactiveWindow:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts"},ipc:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.ipc.d.ts"},languageModelCapabilities:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts"},languageModelDataPart:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelDataPart.d.ts"},languageModelSystem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelSystem.d.ts"},languageModelToolsForAgent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelToolsForAgent.d.ts"},languageStatusText:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageStatusText.d.ts"},mappedEditsProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts"},mcpConfigurationProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.mcpConfigurationProvider.d.ts"},multiDocumentHighlightProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts"},nativeWindowHandle:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.nativeWindowHandle.d.ts"},newSymbolNamesProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts"},notebookCellExecution:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCellExecution.d.ts"},notebookCellExecutionState:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts"},notebookControllerAffinityHidden:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts"},notebookDeprecated:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookDeprecated.d.ts"},notebookExecution:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookExecution.d.ts"},notebookKernelSource:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookKernelSource.d.ts"},notebookLiveShare:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookLiveShare.d.ts"},notebookMessaging:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMessaging.d.ts"},notebookMime:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMime.d.ts"},notebookReplDocument:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookReplDocument.d.ts"},notebookVariableProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts"},portsAttributes:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.portsAttributes.d.ts"},profileContentHandlers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.profileContentHandlers.d.ts"},quickDiffProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickDiffProvider.d.ts"},quickInputButtonLocation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts"},quickPickItemTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts"},quickPickSortByLabel:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts"},resolvers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.resolvers.d.ts"},scmActionButton:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmActionButton.d.ts"},scmHistoryProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts"},scmMultiDiffEditor:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts"},scmRemotes:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmRemotes.d.ts"},scmSelectedProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts"},scmTextDocument:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmTextDocument.d.ts"},scmValidation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmValidation.d.ts"},shareProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.shareProvider.d.ts"},speech:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.speech.d.ts"},statusBarItemTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.statusBarItemTooltip.d.ts"},tabInputMultiDiff:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts"},tabInputTextMerge:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts"},taskPresentationGroup:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts"},taskProblemMatcherStatus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.taskProblemMatcherStatus.d.ts"},telemetry:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.telemetry.d.ts"},terminalCompletionProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts"},terminalDataWriteEvent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts"},terminalDimensions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDimensions.d.ts"},terminalExecuteCommandEvent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts"},terminalQuickFixProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts"},terminalSelection:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalSelection.d.ts"},terminalShellEnv:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalShellEnv.d.ts"},testObserver:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testObserver.d.ts"},testRelatedCode:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testRelatedCode.d.ts"},textDocumentEncoding:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textDocumentEncoding.d.ts"},textEditorDiffInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textEditorDiffInformation.d.ts"},textSearchComplete2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchComplete2.d.ts"},textSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts"},textSearchProvider2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider2.d.ts"},timeline:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.timeline.d.ts"},tokenInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tokenInformation.d.ts"},treeViewActiveItem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts"},treeViewMarkdownMessage:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts"},treeViewReveal:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewReveal.d.ts"},tunnelFactory:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnelFactory.d.ts"},tunnels:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnels.d.ts"},valueSelectionInQuickPick:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.valueSelectionInQuickPick.d.ts"},workspaceTrust:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.workspaceTrust.d.ts"}},A4=Object.freeze(L4)}});function TA(e){return e=e.trim(),e==="*"||Sg.test(e)}function _g(e){if(!TA(e))return null;if(e=e.trim(),e==="*")return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};const t=e.match(Sg);return t?{hasCaret:t[1]==="^",hasGreaterEquals:t[1]===">=",majorBase:t[2]==="x"?0:parseInt(t[2],10),majorMustEqual:t[2]!=="x",minorBase:t[4]==="x"?0:parseInt(t[4],10),minorMustEqual:t[4]!=="x",patchBase:t[6]==="x"?0:parseInt(t[6],10),patchMustEqual:t[6]!=="x",preRelease:t[8]||null}:null}function bg(e){if(!e)return null;const t=e.majorBase,i=e.majorMustEqual,s=e.minorBase;let r=e.minorMustEqual;const n=e.patchBase;let o=e.patchMustEqual;e.hasCaret&&(t===0||(r=!1),o=!1);let a=0;if(e.preRelease){const c=T4.exec(e.preRelease);if(c){const[,l,u,h]=c;a=Date.UTC(Number(l),Number(u)-1,Number(h))}}return{majorBase:t,majorMustEqual:i,minorBase:s,minorMustEqual:r,patchBase:n,patchMustEqual:o,isMinimum:e.hasGreaterEquals,notBefore:a}}function MA(e,t,i){let s;typeof e=="string"?s=bg(_g(e)):s=e;let r;t instanceof Date?r=t.getTime():typeof t=="string"&&(r=new Date(t).getTime());let n;if(typeof i=="string"?n=bg(_g(i)):n=i,!s||!n)return!1;const o=s.majorBase,a=s.minorBase,c=s.patchBase;let l=n.majorBase,u=n.minorBase,h=n.patchBase;const f=n.notBefore;let p=n.majorMustEqual,g=n.minorMustEqual,v=n.patchMustEqual;return n.isMinimum?o>l?!0:o<l?!1:a>u?!0:a<u||r&&r<f?!1:c>=h:(o===1&&l===0&&(!p||!g||!v)&&(l=1,u=0,h=0,p=!0,g=!1,v=!1),o<l?!1:o>l?!p:a<u?!1:a>u?!g:c<h?!1:c>h?!v:!(r&&r<f))}function FA(e,t,i,s,r,n){const o=[];if(typeof s.publisher<"u"&&typeof s.publisher!="string")return o.push([je.Error,m(1983,null)]),o;if(typeof s.name!="string")return o.push([je.Error,m(1984,null,"name")]),o;if(typeof s.version!="string")return o.push([je.Error,m(1985,null,"version")]),o;if(!s.engines)return o.push([je.Error,m(1986,null,"engines")]),o;if(typeof s.engines.vscode!="string")return o.push([je.Error,m(1987,null,"engines.vscode")]),o;if(typeof s.extensionDependencies<"u"&&!O4(s.extensionDependencies))return o.push([je.Error,m(1988,null,"extensionDependencies")]),o;if(typeof s.activationEvents<"u"){if(!O4(s.activationEvents))return o.push([je.Error,m(1989,null,"activationEvents")]),o;if(typeof s.main>"u"&&typeof s.browser>"u")return o.push([je.Error,m(1990,null,"activationEvents","main","browser")]),o}if(typeof s.extensionKind<"u"&&typeof s.main>"u"&&o.push([je.Warning,m(1991,null,"extensionKind")]),typeof s.main<"u"){if(typeof s.main!="string")return o.push([je.Error,m(1992,null,"main")]),o;{const l=oe(i,s.main);Em(l,i)||o.push([je.Warning,m(1993,null,l.path,i.path)])}}if(typeof s.browser<"u"){if(typeof s.browser!="string")return o.push([je.Error,m(1994,null,"browser")]),o;{const l=oe(i,s.browser);Em(l,i)||o.push([je.Warning,m(1995,null,l.path,i.path)])}}if(!C4(s.version))return o.push([je.Error,m(1996,null)]),o;const a=[];if(!UA(e,t,s,r,a))for(const l of a)o.push([je.Error,l]);if(n&&s.enabledApiProposals?.length){const l=[];if(!Eg([...s.enabledApiProposals],l))for(const u of l)o.push([je.Error,u])}return o}function UA(e,t,i,s,r){return s||typeof i.main>"u"&&typeof i.browser>"u"||i.publisher==="TypeScriptTeam"&&i.name==="native-preview"?!0:N4(e,t,i.engines.vscode,r)}function Ic(e,t,i){return e==="*"||N4(t,i,e)}function Eg(e,t){if(e.length===0)return!0;const i=Array.isArray(t)?t:void 0,s=(i?void 0:t)??A4,r=[],n=qL(e);for(const{proposalName:o,version:a}of n){if(!a)continue;s[o]?.version!==a&&r.push(o)}return r.length?(i&&(r.length===1?i.push(m(1997,null,r[0])):i.push(m(1998,null,r.slice(0,r.length-1).map(o=>`'${o}'`).join(", "),r[r.length-1]))),!1):!0}function N4(e,t,i,s=[]){const r=bg(_g(i));if(!r)return s.push(m(1999,null,i)),!1;if(r.majorBase===0){if(!r.majorMustEqual||!r.minorMustEqual)return s.push(m(2e3,null,i)),!1}else if(!r.majorMustEqual)return s.push(m(2001,null,i)),!1;return MA(e,t,r)?!0:(s.push(m(2002,null,e,i)),!1)}function O4(e){if(!Array.isArray(e))return!1;for(let t=0,i=e.length;t<i;t++)if(typeof e[t]!="string")return!1;return!0}var Sg,T4,dh=y({"out-build/vs/platform/extensions/common/extensionValidator.js"(){"use strict";_t(),uh(),ue(),In(),cs(),OA(),Sg=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/,T4=/^-(\d{4})(\d{2})(\d{2})$/}}),M4,F4,xg,U4,$4,Fr,Cc,W4,Ro,fh=y({"out-build/vs/base/common/ternarySearchTree.js"(){"use strict";kt(),lt(),M4=class{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const t=e.charCodeAt(0),i=this._value.charCodeAt(this._pos);return t-i}value(){return this._value[this._pos]}},F4=class{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?sm(e,this._value,0,e.length,this._from,this._to):za(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}},xg=class{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){this._from=0,this._to=0,this._value=e,this._valueLen=e.length;for(let t=e.length-1;t>=0;t--,this._valueLen--){const i=this._value.charCodeAt(t);if(!(i===47||this._splitOnBackslash&&i===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let e=!0;for(;this._to<this._valueLen;this._to++){const t=this._value.charCodeAt(this._to);if(t===47||this._splitOnBackslash&&t===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?sm(e,this._value,0,e.length,this._from,this._to):za(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}},(function(e){e[e.Scheme=1]="Scheme",e[e.Authority=2]="Authority",e[e.Path=3]="Path",e[e.Query=4]="Query",e[e.Fragment=5]="Fragment"})(U4||(U4={})),$4=class{constructor(e,t){this._ignorePathCasing=e,this._ignoreQueryAndFragment=t,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new xg(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(e)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return yu(e,this._value.scheme);if(this._states[this._stateIdx]===2)return yu(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return im(e,this._value.query);if(this._states[this._stateIdx]===5)return im(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}},Fr=class ky{static{this.Val=Symbol("undefined_placeholder")}static wrap(t){return t===void 0?ky.Val:t}static unwrap(t){return t===ky.Val?void 0:t}},Cc=class{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&this.value===void 0}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}},(function(e){e[e.Left=-1]="Left",e[e.Mid=0]="Mid",e[e.Right=1]="Right"})(W4||(W4={})),Ro=class Kl{static forUris(t=()=>!1,i=()=>!1){return new Kl(new $4(t,i))}static forPaths(t=!1){return new Kl(new xg(void 0,!t))}static forStrings(){return new Kl(new M4)}static forConfigKeys(){return new Kl(new F4)}constructor(t){this._iter=t}clear(){this._root=void 0}fill(t,i){if(i){const s=i.slice(0);xw(s);for(const r of s)this.set(r,t)}else{const s=t.slice(0);xw(s);for(const r of s)this.set(r[0],r[1])}}set(t,i){const s=this._iter.reset(t);let r;this._root||(this._root=new Cc,this._root.segment=s.value());const n=[];for(r=this._root;;){const a=s.cmp(r.segment);if(a>0)r.left||(r.left=new Cc,r.left.segment=s.value()),n.push([-1,r]),r=r.left;else if(a<0)r.right||(r.right=new Cc,r.right.segment=s.value()),n.push([1,r]),r=r.right;else if(s.hasNext())s.next(),r.mid||(r.mid=new Cc,r.mid.segment=s.value()),n.push([0,r]),r=r.mid;else break}const o=Fr.unwrap(r.value);r.value=Fr.wrap(i),r.key=t;for(let a=n.length-1;a>=0;a--){const c=n[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const u=n[a][0],h=n[a+1][0];if(u===1&&h===1)n[a][1]=c.rotateLeft();else if(u===-1&&h===-1)n[a][1]=c.rotateRight();else if(u===1&&h===-1)c.right=n[a+1][1]=n[a+1][1].rotateRight(),n[a][1]=c.rotateLeft();else if(u===-1&&h===1)c.left=n[a+1][1]=n[a+1][1].rotateLeft(),n[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(n[a-1][0]){case-1:n[a-1][1].left=n[a][1];break;case 1:n[a-1][1].right=n[a][1];break;case 0:n[a-1][1].mid=n[a][1];break}else this._root=n[0][1]}}return o}get(t){return Fr.unwrap(this._getNode(t)?.value)}_getNode(t){const i=this._iter.reset(t);let s=this._root;for(;s;){const r=i.cmp(s.segment);if(r>0)s=s.left;else if(r<0)s=s.right;else if(i.hasNext())i.next(),s=s.mid;else break}return s}has(t){const i=this._getNode(t);return!(i?.value===void 0&&i?.mid===void 0)}delete(t){return this._delete(t,!1)}deleteSuperstr(t){return this._delete(t,!0)}_delete(t,i){const s=this._iter.reset(t),r=[];let n=this._root;for(;n;){const o=s.cmp(n.segment);if(o>0)r.push([-1,n]),n=n.left;else if(o<0)r.push([1,n]),n=n.right;else if(s.hasNext())s.next(),r.push([0,n]),n=n.mid;else break}if(n){if(i?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const o=this._min(n.right);if(o.key){const{key:a,value:c,segment:l}=o;this._delete(o.key,!1),n.key=a,n.value=c,n.segment=l}}else{const o=n.left??n.right;if(r.length>0){const[a,c]=r[r.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this._root=o}for(let o=r.length-1;o>=0;o--){const a=r[o][1];a.updateHeight();const c=a.balanceFactor();if(c>1?(a.right.balanceFactor()>=0||(a.right=a.right.rotateRight()),r[o][1]=a.rotateLeft()):c<-1&&(a.left.balanceFactor()<=0||(a.left=a.left.rotateLeft()),r[o][1]=a.rotateRight()),o>0)switch(r[o-1][0]){case-1:r[o-1][1].left=r[o][1];break;case 1:r[o-1][1].right=r[o][1];break;case 0:r[o-1][1].mid=r[o][1];break}else this._root=r[0][1]}}}_min(t){for(;t.left;)t=t.left;return t}findSubstr(t){const i=this._iter.reset(t);let s=this._root,r;for(;s;){const n=i.cmp(s.segment);if(n>0)s=s.left;else if(n<0)s=s.right;else if(i.hasNext())i.next(),r=Fr.unwrap(s.value)||r,s=s.mid;else break}return s&&Fr.unwrap(s.value)||r}findSuperstr(t){return this._findSuperstrOrElement(t,!1)}_findSuperstrOrElement(t,i){const s=this._iter.reset(t);let r=this._root;for(;r;){const n=s.cmp(r.segment);if(n>0)r=r.left;else if(n<0)r=r.right;else if(s.hasNext())s.next(),r=r.mid;else return r.mid?this._entries(r.mid):i?Fr.unwrap(r.value):void 0}}hasElementOrSubtree(t){return this._findSuperstrOrElement(t,!0)!==void 0}forEach(t){for(const[i,s]of this)t(s,i)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(t){const i=[];return this._dfsEntries(t,i),i[Symbol.iterator]()}_dfsEntries(t,i){t&&(t.left&&this._dfsEntries(t.left,i),t.value!==void 0&&i.push([t.key,Fr.unwrap(t.value)]),t.mid&&this._dfsEntries(t.mid,i),t.right&&this._dfsEntries(t.right,i))}_isBalanced(){const t=i=>{if(!i)return!0;const s=i.balanceFactor();return s<-1||s>1?!1:t(i.left)&&t(i.right)};return t(this._root)}}}});function Lo(e){return e.create===!0}function Bi(e){return!!(e.capabilities&2)}function H4(e){return!!(e.capabilities&8)}function $A(e){return!!(e.capabilities&131072)}function Ur(e){return!!(e.capabilities&4)}function kg(e){return!!(e.capabilities&16)}function Pg(e){return Bi(e)?!!(e.capabilities&16384):!1}function V4(e){return Bi(e)?!!(e.capabilities&32768):!1}function WA(e){return!!(e.capabilities&65536)}function lr(e,t){return mh.create(e,t)}function Cn(e){return e||lr(m(2018,null),ee.Unknown)}function j4(e,t){return e.name=t?`${t} (FileSystemError)`:"FileSystemError",e}function ph(e){if(!e)return ee.Unknown;if(e instanceof mh)return e.code;const t=/^(.+) \(FileSystemError\)$/.exec(e.name);if(!t)return ee.Unknown;switch(t[1]){case ee.FileExists:return ee.FileExists;case ee.FileIsADirectory:return ee.FileIsADirectory;case ee.FileNotADirectory:return ee.FileNotADirectory;case ee.FileNotFound:return ee.FileNotFound;case ee.FileTooLarge:return ee.FileTooLarge;case ee.FileWriteLocked:return ee.FileWriteLocked;case ee.NoPermissions:return ee.NoPermissions;case ee.Unavailable:return ee.Unavailable}return ee.Unknown}function Nt(e){if(e instanceof zt)return e.fileOperationResult;switch(ph(e)){case ee.FileNotFound:return 1;case ee.FileIsADirectory:return 0;case ee.FileNotADirectory:return 9;case ee.FileWriteLocked:return 5;case ee.NoPermissions:return 6;case ee.FileExists:return 4;case ee.FileTooLarge:return 7;default:return 10}}function HA(e,t,i){return!e||!t||e===t||t.length>e.length?!1:(t.charAt(t.length-1)!==jt&&(t+=jt),i?rm(e,t):e.indexOf(t)===0)}function B4(e){if(!(typeof e.size!="number"||typeof e.mtime!="number"))return e.mtime.toString(29)+e.size.toString(31)}var ht,Pi,Ao,z4,q4,ee,mh,G4,Dn,Q4,J4,zt,gh,vh,X4,Y4,yh,Rn,Xe=y({"out-build/vs/platform/files/common/files.js"(){"use strict";fh(),de(),lt(),_e(),Y(),ue(),se(),K(),xe(),Ba(),ht=te("fileService"),(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(Pi||(Pi={})),(function(e){e[e.Readonly=1]="Readonly",e[e.Locked=2]="Locked"})(Ao||(Ao={})),(function(e){e[e.UPDATED=2]="UPDATED",e[e.ADDED=4]="ADDED",e[e.DELETED=8]="DELETED"})(z4||(z4={})),(function(e){e[e.None=0]="None",e[e.FileReadWrite=2]="FileReadWrite",e[e.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",e[e.FileReadStream=16]="FileReadStream",e[e.FileFolderCopy=8]="FileFolderCopy",e[e.PathCaseSensitive=1024]="PathCaseSensitive",e[e.Readonly=2048]="Readonly",e[e.Trash=4096]="Trash",e[e.FileWriteUnlock=8192]="FileWriteUnlock",e[e.FileAtomicRead=16384]="FileAtomicRead",e[e.FileAtomicWrite=32768]="FileAtomicWrite",e[e.FileAtomicDelete=65536]="FileAtomicDelete",e[e.FileClone=131072]="FileClone"})(q4||(q4={})),(function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.FileExceedsStorageQuota="EntryExceedsStorageQuota",e.FileTooLarge="EntryTooLarge",e.FileWriteLocked="EntryWriteLocked",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"})(ee||(ee={})),mh=class KI extends Error{static create(t,i){const s=new KI(t.toString(),i);return j4(s,i),s}constructor(t,i){super(t),this.code=i}},(function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY",e[e.WRITE=4]="WRITE"})(G4||(G4={})),Dn=class{constructor(e,t,i){this.resource=e,this.operation=t,this.target=i}isOperation(e){return this.operation===e}},(function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"})(Q4||(Q4={})),J4=class Sp{static{this.MIXED_CORRELATION=null}constructor(t,i){this.ignorePathCasing=i,this.correlationId=void 0,this.added=new Cr(()=>{const s=Ro.forUris(()=>this.ignorePathCasing);return s.fill(this.rawAdded.map(r=>[r,!0])),s}),this.updated=new Cr(()=>{const s=Ro.forUris(()=>this.ignorePathCasing);return s.fill(this.rawUpdated.map(r=>[r,!0])),s}),this.deleted=new Cr(()=>{const s=Ro.forUris(()=>this.ignorePathCasing);return s.fill(this.rawDeleted.map(r=>[r,!0])),s}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const s of t){switch(s.type){case 1:this.rawAdded.push(s.resource);break;case 0:this.rawUpdated.push(s.resource);break;case 2:this.rawDeleted.push(s.resource);break}this.correlationId!==Sp.MIXED_CORRELATION&&(typeof s.cId=="number"?this.correlationId===void 0?this.correlationId=s.cId:this.correlationId!==s.cId&&(this.correlationId=Sp.MIXED_CORRELATION):this.correlationId!==void 0&&(this.correlationId=Sp.MIXED_CORRELATION))}}contains(t,...i){return this.doContains(t,{includeChildren:!1},...i)}affects(t,...i){return this.doContains(t,{includeChildren:!0},...i)}doContains(t,i,...s){if(!t)return!1;const r=s.length>0;return!!((!r||s.includes(1))&&(this.added.value.get(t)||i.includeChildren&&this.added.value.findSuperstr(t))||(!r||s.includes(0))&&(this.updated.value.get(t)||i.includeChildren&&this.updated.value.findSuperstr(t))||(!r||s.includes(2))&&(this.deleted.value.findSubstr(t)||i.includeChildren&&this.deleted.value.findSuperstr(t)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(t){return this.correlationId===t}hasCorrelation(){return typeof this.correlationId=="number"}},zt=class extends Error{constructor(e,t,i){super(e),this.fileOperationResult=t,this.options=i}},gh=class extends zt{constructor(e,t,i,s){super(e,t,s),this.fileOperationResult=t,this.size=i}},vh=class extends zt{constructor(e,t,i){super(e,2,i),this.stat=t}},(function(e){e[e.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",e[e.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",e[e.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",e[e.FILE_NOT_DIRECTORY=9]="FILE_NOT_DIRECTORY",e[e.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"})(X4||(X4={})),(function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER",e[e.PULL_REQUEST=3]="PULL_REQUEST"})(Y4||(Y4={})),yh="",Rn=class wi{static{this.KB=1024}static{this.MB=wi.KB*wi.KB}static{this.GB=wi.MB*wi.KB}static{this.TB=wi.GB*wi.KB}static formatSize(t){return Ir(t)||(t=0),t<wi.KB?m(2019,null,t.toFixed(0)):t<wi.MB?m(2020,null,(t/wi.KB).toFixed(2)):t<wi.GB?m(2021,null,(t/wi.MB).toFixed(2)):t<wi.TB?m(2022,null,(t/wi.GB).toFixed(2)):m(2023,null,(t/wi.TB).toFixed(2))}}}}),Et,mi=y({"out-build/vs/platform/product/common/productService.js"(){"use strict";Y(),se(),Et=te("productService")}});function VA(e){return JSON.stringify(e,jA)}function Z4(e){let t=JSON.parse(e);return t=zi(t),t}function jA(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function zi(e,t=0){if(!e||t>200)return e;if(typeof e=="object"){switch(e.$mid){case 1:return b.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof O||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i<e.length;++i)e[i]=zi(e[i],t+1);else for(const i in e)Object.hasOwnProperty.call(e,i)&&(e[i]=zi(e[i],t+1))}return e}var Dc=y({"out-build/vs/base/common/marshalling.js"(){"use strict";Fe(),Y()}}),Rc,us,BA,zA=y({"out-build/vs/base/parts/storage/common/storage.js"(){"use strict";Ne(),ie(),V(),Dc(),_e(),(function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"})(Rc||(Rc={})),(function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"})(us||(us={})),BA=class eC extends G{static{this.DEFAULT_FLUSH_DELAY=100}constructor(t,i=Object.create(null)){super(),this.database=t,this.options=i,this._onDidChangeStorage=this._register(new vu),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=us.None,this.cache=new Map,this.flushDelayer=this._register(new Sn(eC.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.pendingClose=void 0,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(t=>this.onDidChangeItemsExternal(t)))}onDidChangeItemsExternal(t){this._onDidChangeStorage.pause();try{t.changed?.forEach((i,s)=>this.acceptExternal(s,i)),t.deleted?.forEach(i=>this.acceptExternal(i,void 0))}finally{this._onDidChangeStorage.resume()}}acceptExternal(t,i){if(this.state===us.Closed)return;let s=!1;It(i)?s=this.cache.delete(t):this.cache.get(t)!==i&&(this.cache.set(t,i),s=!0),s&&this._onDidChangeStorage.fire({key:t,external:!0})}get items(){return this.cache}get size(){return this.cache.size}async init(){this.state===us.None&&(this.state=us.Initialized,this.options.hint!==Rc.STORAGE_DOES_NOT_EXIST&&(this.cache=await this.database.getItems()))}cursorDiskKVGet(t){return this.database.cursorDiskKVGet(t)}cursorDiskKVSet(t,i){return this.database.cursorDiskKVSet(t,i)}cursorDiskKVClearPrefix(t){return this.database.cursorDiskKVClearPrefix(t)}get(t,i){const s=this.cache.get(t);return It(s)?i:s}getBoolean(t,i){const s=this.get(t);return It(s)?i:s==="true"}getNumber(t,i){const s=this.get(t);return It(s)?i:parseInt(s,10)}getObject(t,i){const s=this.get(t);return It(s)?i:Z4(s)}async set(t,i,s=!1){if(this.state===us.Closed)return;if(It(i))return this.delete(t,s);const r=ft(i)||Array.isArray(i)?VA(i):String(i);if(this.cache.get(t)!==r)return this.cache.set(t,r),this.pendingInserts.set(t,r),this.pendingDeletes.delete(t),this._onDidChangeStorage.fire({key:t,external:s}),this.doFlush()}async delete(t,i=!1){if(!(this.state===us.Closed||!this.cache.delete(t)))return this.pendingDeletes.has(t)||this.pendingDeletes.add(t),this.pendingInserts.delete(t),this._onDidChangeStorage.fire({key:t,external:i}),this.doFlush()}async optimize(){if(this.state!==us.Closed)return await this.flush(0),this.database.optimize()}async close(){return this.pendingClose||(this.pendingClose=this.doClose()),this.pendingClose}async doClose(){this.state=us.Closed;try{await this.doFlush(0)}catch{}await this.database.close(()=>this.cache)}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const t={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(t).finally(()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()})}async flush(t){if(!(this.state===us.Closed||this.pendingClose))return this.doFlush(t)}async doFlush(t){return this.options.hint===Rc.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger(()=>this.flushPending(),t)}async whenFlushed(){if(this.hasPending)return new Promise(t=>this.whenFlushedCallbacks.push(t))}isInMemory(){return this.options.hint===Rc.STORAGE_IN_MEMORY}}}});function qA(e){const t=e;return typeof t?.id=="string"&&b.isUri(t.uri)}function GA(e){const t=e;return typeof t?.id=="string"&&b.isUri(t.configPath)}function QA(e){return(typeof e=="string"?gn(e):q_(e))===tS}var K4,eS,Ig,tS,JA,Cg=y({"out-build/vs/platform/workspace/common/workspace.js"(){"use strict";ue(),de(),fh(),_t(),Y(),se(),xe(),K4=te("contextService"),(function(e){e[e.EMPTY=1]="EMPTY",e[e.FOLDER=2]="FOLDER",e[e.WORKSPACE=3]="WORKSPACE"})(eS||(eS={})),Ig="code-workspace",tS=`.${Ig}`,JA=[{name:m(2652,null),extensions:[Ig]}]}}),Ot,qi=y({"out-build/vs/platform/uriIdentity/common/uriIdentity.js"(){"use strict";se(),Ot=te("IUriIdentityService")}});function XA(e){const t=e;return!!(t&&typeof t=="object"&&typeof t.id=="string"&&typeof t.isDefault=="boolean"&&typeof t.name=="string"&&b.isUri(t.location)&&b.isUri(t.globalStorageHome)&&b.isUri(t.settingsResource)&&b.isUri(t.keybindingsResource)&&b.isUri(t.tasksResource)&&b.isUri(t.snippetsHome)&&b.isUri(t.promptsHome)&&b.isUri(t.extensionsResource))}function iS(e,t){return{id:e.id,isDefault:e.isDefault,name:e.name,icon:e.icon,location:b.revive(e.location).with({scheme:t}),globalStorageHome:b.revive(e.globalStorageHome).with({scheme:t}),settingsResource:b.revive(e.settingsResource).with({scheme:t}),keybindingsResource:b.revive(e.keybindingsResource).with({scheme:t}),tasksResource:b.revive(e.tasksResource).with({scheme:t}),snippetsHome:b.revive(e.snippetsHome).with({scheme:t}),promptsHome:b.revive(e.promptsHome).with({scheme:t}),extensionsResource:b.revive(e.extensionsResource).with({scheme:t}),cacheHome:b.revive(e.cacheHome).with({scheme:t}),useDefaultFlags:e.useDefaultFlags,isTransient:e.isTransient,workspaces:e.workspaces?.map(i=>b.revive(i))}}function wh(e,t,i,s,r,n){return{id:e,name:t,location:i,isDefault:!1,icon:r?.icon,globalStorageHome:n&&r?.useDefaultFlags?.globalState?n.globalStorageHome:oe(i,"globalStorage"),settingsResource:n&&r?.useDefaultFlags?.settings?n.settingsResource:oe(i,"settings.json"),keybindingsResource:n&&r?.useDefaultFlags?.keybindings?n.keybindingsResource:oe(i,"keybindings.json"),tasksResource:n&&r?.useDefaultFlags?.tasks?n.tasksResource:oe(i,"tasks.json"),snippetsHome:n&&r?.useDefaultFlags?.snippets?n.snippetsHome:oe(i,"snippets"),promptsHome:n&&r?.useDefaultFlags?.prompts?n.promptsHome:oe(i,"prompts"),extensionsResource:n&&r?.useDefaultFlags?.extensions?n.extensionsResource:oe(i,"extensions.json"),cacheHome:oe(s,e),useDefaultFlags:r?.useDefaultFlags,isTransient:r?.transient,workspaces:r?.workspaces}}var sS,Gi,_h,Qi=y({"out-build/vs/platform/userDataProfile/common/userDataProfile.js"(){"use strict";Ya(),ie(),V(),_t(),Y(),ue(),ui(),Xe(),se(),Ie(),Cg(),qi(),Ne(),Bt(),lt(),_e(),(function(e){e.Settings="settings",e.Keybindings="keybindings",e.Snippets="snippets",e.Prompts="prompts",e.Tasks="tasks",e.Extensions="extensions",e.GlobalState="globalState"})(sS||(sS={})),Gi=te("IUserDataProfilesService"),_h=class extends G{static{this.PROFILES_KEY="userDataProfiles"}static{this.PROFILE_ASSOCIATIONS_KEY="profileAssociations"}get defaultProfile(){return this.profiles[0]}get profiles(){return[...this.profilesObject.profiles,...this.transientProfilesObject.profiles]}constructor(t,i,s,r){super(),this.environmentService=t,this.fileService=i,this.uriIdentityService=s,this.logService=r,this._onDidChangeProfiles=this._register(new R),this.onDidChangeProfiles=this._onDidChangeProfiles.event,this._onWillCreateProfile=this._register(new R),this.onWillCreateProfile=this._onWillCreateProfile.event,this._onWillRemoveProfile=this._register(new R),this.onWillRemoveProfile=this._onWillRemoveProfile.event,this._onDidResetWorkspaces=this._register(new R),this.onDidResetWorkspaces=this._onDidResetWorkspaces.event,this.profileCreationPromises=new Map,this.transientProfilesObject={profiles:[],emptyWindows:new Map},this.profilesHome=oe(this.environmentService.userRoamingDataHome,"profiles"),this.profilesCacheHome=oe(this.environmentService.cacheHome,"CachedProfilesData")}init(){this._profilesObject=void 0}get profilesObject(){if(!this._profilesObject){const t=this.createDefaultProfile(),i=[t];try{for(const r of this.getStoredProfiles()){if(!r.name||!ye(r.name)||!r.location){this.logService.warn("Skipping the invalid stored profile",r.location||r.name);continue}i.push(wh(Nr(r.location),r.name,r.location,this.profilesCacheHome,{icon:r.icon,useDefaultFlags:r.useDefaultFlags},t))}}catch(r){this.logService.error(r)}const s=new Map;if(i.length)try{const r=this.getStoredProfileAssociations();if(r.workspaces)for(const[n,o]of Object.entries(r.workspaces)){const a=b.parse(n),c=i.find(l=>l.id===o);if(c){const l=c.workspaces?c.workspaces.slice(0):[];l.push(a),c.workspaces=l}}if(r.emptyWindows)for(const[n,o]of Object.entries(r.emptyWindows)){const a=i.find(c=>c.id===o);a&&s.set(n,a)}}catch(r){this.logService.error(r)}this._profilesObject={profiles:i,emptyWindows:s}}return this._profilesObject}createDefaultProfile(){const t=wh("__default__profile__",m(2605,null),this.environmentService.userRoamingDataHome,this.profilesCacheHome);return{...t,extensionsResource:this.getDefaultProfileExtensionsLocation()??t.extensionsResource,isDefault:!0}}async createTransientProfile(t){const i="Temp",s=new RegExp(`${Dr(i)}\\s(\\d+)`);let r=0;for(const o of this.profiles){const a=s.exec(o.name),c=a?parseInt(a[1]):0;r=c>r?c:r}const n=`${i} ${r+1}`;return this.createProfile(ao(Ve()).toString(16),n,{transient:!0},t)}async createNamedProfile(t,i,s){return this.createProfile(ao(Ve()).toString(16),t,i,s)}async createProfile(t,i,s,r){return await this.doCreateProfile(t,i,s,r)}async doCreateProfile(t,i,s,r){if(!ye(i)||!i)throw new Error("Name of the profile is mandatory and must be of type `string`");let n=this.profileCreationPromises.get(i);return n||(n=(async()=>{try{if(this.profiles.find(u=>u.id===t||!u.isTransient&&!s?.transient&&u.name===i))throw new Error(`Profile with ${i} name already exists`);const a=r?this.getWorkspace(r):void 0;b.isUri(a)&&(s={...s,workspaces:[a]});const c=wh(t,i,oe(this.profilesHome,t),this.profilesCacheHome,s,this.defaultProfile);await this.fileService.createFolder(c.location);const l=[];return this._onWillCreateProfile.fire({profile:c,join(u){l.push(u)}}),await Yt.settled(l),a&&!b.isUri(a)&&this.updateEmptyWindowAssociation(a,c,!!c.isTransient),this.updateProfiles([c],[],[]),c}finally{this.profileCreationPromises.delete(i)}})(),this.profileCreationPromises.set(i,n)),n}async updateProfile(t,i){const s=[];for(const n of this.profiles){let o;if(t.id===n.id)n.isDefault?i.workspaces&&(o=n,o.workspaces=i.workspaces):o=wh(n.id,i.name??n.name,n.location,this.profilesCacheHome,{icon:i.icon===null?void 0:i.icon??n.icon,transient:i.transient??n.isTransient,useDefaultFlags:i.useDefaultFlags??n.useDefaultFlags,workspaces:i.workspaces??n.workspaces},this.defaultProfile);else if(i.workspaces){const a=n.workspaces?.filter(c=>!i.workspaces?.some(l=>this.uriIdentityService.extUri.isEqual(c,l)));n.workspaces?.length!==a?.length&&(o=n,o.workspaces=a)}o&&s.push(o)}if(!s.length)throw t.isDefault?new Error("Cannot update default profile"):new Error(`Profile '${t.name}' does not exist`);this.updateProfiles([],[],s);const r=this.profiles.find(n=>n.id===t.id);if(!r)throw new Error(`Profile '${t.name}' was not updated`);return r}async removeProfile(t){if(t.isDefault)throw new Error("Cannot remove default profile");const i=this.profiles.find(r=>r.id===t.id);if(!i)throw new Error(`Profile '${t.name}' does not exist`);const s=[];this._onWillRemoveProfile.fire({profile:i,join(r){s.push(r)}});try{await Promise.allSettled(s)}catch(r){this.logService.error(r)}this.updateProfiles([],[i],[]);try{await this.fileService.del(i.cacheHome,{recursive:!0})}catch(r){Nt(r)!==1&&this.logService.error(r)}}async setProfileForWorkspace(t,i){const s=this.profiles.find(n=>n.id===i.id);if(!s)throw new Error(`Profile '${i.name}' does not exist`);const r=this.getWorkspace(t);if(b.isUri(r)){const n=s.workspaces?[...s.workspaces]:[];n.some(o=>this.uriIdentityService.extUri.isEqual(o,r))||(n.push(r),await this.updateProfile(s,{workspaces:n}))}else this.updateEmptyWindowAssociation(r,s,!1),this.updateStoredProfiles(this.profiles)}unsetWorkspace(t,i=!1){const s=this.getWorkspace(t);if(b.isUri(s)){const r=this.getProfileForWorkspace(t);r&&this.updateProfile(r,{workspaces:r.workspaces?.filter(n=>!this.uriIdentityService.extUri.isEqual(n,s))})}else this.updateEmptyWindowAssociation(s,void 0,i),this.updateStoredProfiles(this.profiles)}async resetWorkspaces(){this.transientProfilesObject.emptyWindows.clear(),this.profilesObject.emptyWindows.clear();for(const t of this.profiles)t.workspaces=void 0;this.updateProfiles([],[],this.profiles),this._onDidResetWorkspaces.fire()}async cleanUp(){if(await this.fileService.exists(this.profilesHome)){const t=await this.fileService.resolve(this.profilesHome);await Promise.all((t.children||[]).filter(i=>i.isDirectory&&this.profiles.every(s=>!this.uriIdentityService.extUri.isEqual(s.location,i.resource))).map(i=>this.fileService.del(i.resource,{recursive:!0})))}}async cleanUpTransientProfiles(){const t=this.transientProfilesObject.profiles.filter(i=>!this.isProfileAssociatedToWorkspace(i));await Promise.allSettled(t.map(i=>this.removeProfile(i)))}getProfileForWorkspace(t){const i=this.getWorkspace(t);return b.isUri(i)?this.profiles.find(s=>s.workspaces?.some(r=>this.uriIdentityService.extUri.isEqual(r,i))):this.profilesObject.emptyWindows.get(i)??this.transientProfilesObject.emptyWindows.get(i)}getWorkspace(t){return qA(t)?t.uri:GA(t)?t.configPath:t.id}isProfileAssociatedToWorkspace(t){return!!(t.workspaces?.length||[...this.profilesObject.emptyWindows.values()].some(i=>this.uriIdentityService.extUri.isEqual(i.location,t.location))||[...this.transientProfilesObject.emptyWindows.values()].some(i=>this.uriIdentityService.extUri.isEqual(i.location,t.location)))}updateProfiles(t,i,s){const r=[...this.profiles,...t],n=this.transientProfilesObject.profiles;this.transientProfilesObject.profiles=[];const o=[];for(let a of r){if(i.some(c=>a.id===c.id)){for(const c of[...this.profilesObject.emptyWindows.keys()])a.id===this.profilesObject.emptyWindows.get(c)?.id&&this.profilesObject.emptyWindows.delete(c);continue}if(!a.isDefault){a=s.find(l=>a.id===l.id)??a;const c=n.find(l=>a.id===l.id);if(a.isTransient)this.transientProfilesObject.profiles.push(a);else if(c){for(const[l,u]of this.transientProfilesObject.emptyWindows.entries())if(a.id===u.id){this.transientProfilesObject.emptyWindows.delete(l),this.profilesObject.emptyWindows.set(l,a);break}}}a.workspaces?.length===0&&(a.workspaces=void 0),o.push(a)}this.updateStoredProfiles(o),this.triggerProfilesChanges(t,i,s)}triggerProfilesChanges(t,i,s){this._onDidChangeProfiles.fire({added:t,removed:i,updated:s,all:this.profiles})}updateEmptyWindowAssociation(t,i,s){s=i?.isTransient?!0:s,s?i?this.transientProfilesObject.emptyWindows.set(t,i):this.transientProfilesObject.emptyWindows.delete(t):(this.transientProfilesObject.emptyWindows.delete(t),i?this.profilesObject.emptyWindows.set(t,i):this.profilesObject.emptyWindows.delete(t))}updateStoredProfiles(t){const i=[],s={},r={};for(const n of t)if(!n.isTransient&&(n.isDefault||i.push({location:n.location,name:n.name,icon:n.icon,useDefaultFlags:n.useDefaultFlags}),n.workspaces))for(const o of n.workspaces)s[o.toString()]=n.id;for(const[n,o]of this.profilesObject.emptyWindows.entries())r[n.toString()]=o.id;this.saveStoredProfileAssociations({workspaces:s,emptyWindows:r}),this.saveStoredProfiles(i),this._profilesObject=void 0}getStoredProfiles(){return[]}saveStoredProfiles(t){throw new Error("not implemented")}getStoredProfileAssociations(){return{}}saveStoredProfileAssociations(t){throw new Error("not implemented")}getDefaultProfileExtensionsLocation(){}},_h=__decorate([__param(0,xi),__param(1,ht),__param(2,Ot),__param(3,fe)],_h)}});function YA(e){const t=e.get(Lc);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}function rS(e){return e.isDefault||!!e.useDefaultFlags?.globalState}async function ZA(e,t,i,s,r,n){const o=v=>{try{return JSON.parse(v)}catch{return v}},a=new Map,c=new Map;e.forEach((v,w)=>{a.set(w,v),c.set(w,o(v))});const l=new Map,u=new Map;t.forEach((v,w)=>{l.set(w,v),u.set(w,o(v))});const h=new Map,f=new Map;i.forEach((v,w)=>{h.set(w,v),f.set(w,o(v))}),console.group(s!==r?`Storage: Application (path: ${s})`:`Storage: Application & Profile (path: ${s}, default profile)`);const p=[];if(a.forEach((v,w)=>{p.push({key:w,value:v})}),console.table(p),console.groupEnd(),console.log(c),s!==r){console.group(`Storage: Profile (path: ${r}, profile specific)`);const v=[];l.forEach((w,S)=>{v.push({key:S,value:w})}),console.table(v),console.groupEnd(),console.log(u)}console.group(`Storage: Workspace (path: ${n})`);const g=[];h.forEach((v,w)=>{g.push({key:w,value:v})}),console.table(g),console.groupEnd(),console.log(f)}var nS,Lc,oS,No,aS,cS,KA,eN=y({"out-build/vs/platform/storage/common/storage.js"(){"use strict";Ne(),ie(),V(),qs(),_e(),zA(),se(),Qi(),nS="__$__isNewStorageMarker",Lc="__$__targetStorageMarker",oS=te("storageService"),(function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"})(No||(No={})),(function(e){e[e.APPLICATION=-1]="APPLICATION",e[e.PROFILE=0]="PROFILE",e[e.WORKSPACE=1]="WORKSPACE"})(aS||(aS={})),(function(e){e[e.USER=0]="USER",e[e.MACHINE=1]="MACHINE"})(cS||(cS={})),KA=class tC extends G{static{this.DEFAULT_FLUSH_INTERVAL=60*1e3}constructor(t={flushInterval:tC.DEFAULT_FLUSH_INTERVAL}){super(),this._onDidChangeValue=this._register(new vu),this._onDidChangeTarget=this._register(new vu),this.onDidChangeTarget=this._onDidChangeTarget.event,this._onWillSaveState=this._register(new R),this.onWillSaveState=this._onWillSaveState.event,this.runFlushWhenIdle=this._register(new Ha),this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0,this.onDiskShouldSaveCallbacks=[],this.flushWhenIdleScheduler=this._register(new ac(()=>this.doFlushWhenIdle(),t.flushInterval))}onDidChangeValue(t,i,s){return z.filter(this._onDidChangeValue.event,r=>r.scope===t&&(i===void 0||r.key===i),s)}doFlushWhenIdle(){this.runFlushWhenIdle.value=Db(()=>{this.shouldFlushWhenIdle()&&this.flush(),this.flushWhenIdleScheduler.schedule()})}shouldFlushWhenIdle(){return!0}stopFlushWhenIdle(){Mt([this.runFlushWhenIdle,this.flushWhenIdleScheduler])}initialize(){return this.initializationPromise||(this.initializationPromise=(async()=>{St("code/willInitStorage");try{await this.doInitialize()}finally{St("code/didInitStorage")}this.flushWhenIdleScheduler.schedule()})()),this.initializationPromise}emitDidChangeValue(t,i){const{key:s,external:r}=i;if(s===Lc){switch(t){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:t})}else this._onDidChangeValue.fire({scope:t,key:s,target:this.getKeyTargets(t)[s],external:r})}emitWillSaveState(t){this._onWillSaveState.fire({reason:t})}get(t,i,s){return this.getStorage(i)?.get(t,s)}getBoolean(t,i,s){return this.getStorage(i)?.getBoolean(t,s)}getNumber(t,i,s){return this.getStorage(i)?.getNumber(t,s)}getObject(t,i,s){return this.getStorage(i)?.getObject(t,s)}storeAll(t,i){this.withPausedEmitters(()=>{for(const s of t)this.store(s.key,s.value,s.scope,s.target,i)})}store(t,i,s,r,n=!1){if(It(i)){this.remove(t,s,n);return}this.withPausedEmitters(()=>{this.updateKeyTarget(t,s,r),this.getStorage(s)?.set(t,i,n)})}remove(t,i,s=!1){this.withPausedEmitters(()=>{this.updateKeyTarget(t,i,void 0),this.getStorage(i)?.delete(t,s)})}withPausedEmitters(t){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{t()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}keys(t,i){const s=[],r=this.getKeyTargets(t);for(const n of Object.keys(r))r[n]===i&&s.push(n);return s}updateKeyTarget(t,i,s,r=!1){const n=this.getKeyTargets(i);typeof s=="number"?n[t]!==s&&(n[t]=s,this.getStorage(i)?.set(Lc,JSON.stringify(n),r)):typeof n[t]=="number"&&(delete n[t],this.getStorage(i)?.set(Lc,JSON.stringify(n),r))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(t){switch(t){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(t){const i=this.getStorage(t);return i?YA(i):Object.create(null)}isNew(t){return this.getBoolean(nS,t)===!0}async cursorDiskKVGet(t){return this.getStorage(-1)?.cursorDiskKVGet(t)}async cursorDiskKVSet(t,i){return this.getStorage(-1)?.cursorDiskKVSet(t,i)}async cursorDiskKVClearPrefix(t){return this.getStorage(-1)?.cursorDiskKVClearPrefix(t)}cursorDiskKVOnShouldSave(t){return this.onDiskShouldSaveCallbacks.push(t),{dispose:()=>{this.onDiskShouldSaveCallbacks=this.onDiskShouldSaveCallbacks.filter(i=>i!==t)}}}async flush(t=No.NONE){this._onWillSaveState.fire({reason:t});const i=this.getStorage(-1),s=this.getStorage(0),r=this.getStorage(1);switch(t){case No.NONE:for(const n of this.onDiskShouldSaveCallbacks)try{n().catch(console.error)}catch{}await Yt.settled([i?.whenFlushed()??Promise.resolve(),s?.whenFlushed()??Promise.resolve(),r?.whenFlushed()??Promise.resolve()]);break;case No.SHUTDOWN:for(const n of this.onDiskShouldSaveCallbacks)try{await n()}catch(o){console.error(o)}await Yt.settled([i?.flush(0)??Promise.resolve(),s?.flush(0)??Promise.resolve(),r?.flush(0)??Promise.resolve()]);break}}async log(){const t=this.getStorage(-1)?.items??new Map,i=this.getStorage(0)?.items??new Map,s=this.getStorage(1)?.items??new Map;return ZA(t,i,s,this.getLogDetails(-1)??"",this.getLogDetails(0)??"",this.getLogDetails(1)??"")}async optimize(t){return await this.flush(),this.getStorage(t)?.optimize()}async switch(t,i){return this.emitWillSaveState(No.NONE),XA(t)?this.switchToProfile(t,i):this.switchToWorkspace(t,i)}canSwitchProfile(t,i){return!(t.id===i.id||rS(i)&&rS(t))}switchData(t,i,s){this.withPausedEmitters(()=>{const r=new Set;for(const[n,o]of t)r.add(n),i.get(n)!==o&&this.emitDidChangeValue(s,{key:n,external:!0});for(const[n]of i.items)r.has(n)||this.emitDidChangeValue(s,{key:n,external:!0})})}}}}),Ii,bh,Rt,Oo=y({"out-build/vs/platform/product/common/product.js"(){"use strict";if(ss(),bh=globalThis.vscode,typeof bh<"u"&&typeof bh.context<"u"){const e=bh.context.configuration();if(e)Ii=e.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(Ii=globalThis._VSCODE_PRODUCT_JSON,$i.VSCODE_DEV,$i.VSCODE_DEV_ONBOARDING&&Object.assign(Ii,{nameShort:`${Ii.nameShort} Onboarding`,nameLong:`${Ii.nameLong} Onboarding`,dataFolderName:`${Ii.dataFolderName}-onboarding`,serverDataFolderName:Ii.serverDataFolderName?`${Ii.serverDataFolderName}-onboarding`:void 0}),!Ii.version){const e=globalThis._VSCODE_PACKAGE_JSON;Object.assign(Ii,{version:e.version})}}else Ii={quality:"stable",licenseName:"MIT",licenseUrl:"https://cursor.com/license.txt",serverGreeting:[],serverLicense:[],vscodeVersion:"1.99.3",serverLicensePrompt:"",serverApplicationName:"cursor-server",serverDataFolderName:".cursor-server",tunnelApplicationName:"cursor-tunnel",serverDownloadUrlTemplate:"https://cursor.blob.core.windows.net/remote-releases/${commit}/vscode-reh-${os}-${arch}.tar.gz",win32x64AppId:"{{D7D7D7D7-7D7D-7D7D-7D7D-7D7D7D7D7D7D}}",win32arm64AppId:"{{D8D8D8D8-8D8D-8D8D-8D8D-8D8D8D8D8D8D}}",win32x64UserAppId:"{{DADADADA-ADAD-ADAD-ADAD-ADADADADADAD}}",win32arm64UserAppId:"{{DBDBDBDB-BDBD-BDBD-BDBD-BDBDBDBDBDBD}}",win32TunnelMutex:"cursor-tunnel-mutex",win32TunnelServiceMutex:"cursor-tunnel-service-mutex",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/getcursor/cursor/issues/new",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",aiConfig:{ariaKey:"control-key"},statsigClientKey:"client-Bm4HJ0aDjXHQVsoACMREyLNxm5p6zzuzhO50MgtoT5D",statsigLogEventProxyUrl:"https://api3.cursor.sh/tev1/v1",downloadUrl:"https://cursor.com/downloads",updateUrl:"https://api2.cursor.sh/updates",backupUpdateUrl:"http://cursorapi.com/updates",releaseNotesUrl:"https://www.cursor.com/changelog",extensionReplacementMapForImports:{"ms-vscode-remote.remote-ssh":"anysphere.remote-ssh","ms-vscode-remote.remote-containers":"anysphere.remote-containers","ms-vscode-remote.remote-wsl":"anysphere.remote-wsl","jeanp413.open-remote-ssh":"anysphere.remote-ssh","jeanp413.open-remote-wsl":"anysphere.remote-wsl","ms-python.vscode-pylance":"anysphere.cursorpyright","ms-vscode.cpptools":"anysphere.cpptools","ms-dotnettools.csharp":"anysphere.csharp"},nodejsRepository:"https://nodejs.org",extensionMaxVersions:{"ms-python.python":{maxVersion:"2025.6.1"},"ms-vscode.cpptools":{maxVersion:"1.23.6",minVersion:"1.20.5"},"ms-python.vscode-pylance":{maxVersion:"2024.8.1",minVersion:"2024.4.1"},"ms-vscode-remote.remote-containers":{maxVersion:"0.394.0",minVersion:"0.394.0"},"ms-vscode-remote.remote-wsl":{maxVersion:"0.81.8",minVersion:"0.81.8"},"ms-vscode-remote.remote-ssh":{maxVersion:"0.113.1",minVersion:"0.113.1"},"ms-vscode-remote.remote-server":{maxVersion:"1.5.1",minVersion:"1.5.1"},"ms-dotnettools.csharp":{maxVersion:"2.63.32"},"ms-dotnettools.csdevkit":{maxVersion:"1.16.6"}},getExtensionOverrides:{"amazonwebservices.aws-toolkit-vscode":{"ms-vscode-remote.remote-ssh":"anysphere.remote-ssh"},"amazonwebservices.amazon-q-vscode":{"ms-vscode-remote.remote-ssh":"anysphere.remote-ssh"}},skipPackagingLocalExtensions:["cursor-experiments","cursor-context-ast-typescript","cursor-browser"],cannotImportExtensions:["github.copilot-chat","github.copilot","ms-vscode.remote-explorer"],trustedExtensionAuthAccess:{github:["vscode.github","github.remotehub","ms-vscode.remote-server","github.vscode-pull-request-github","github.codespaces","github.copilot","github.copilot-chat","ms-vsliveshare.vsliveshare","ms-azuretools.vscode-azure-github-copilot"],"github-enterprise":["vscode.github","github.remotehub","ms-vscode.remote-server","github.vscode-pull-request-github","github.codespaces","github.copilot","github.copilot-chat","ms-vsliveshare.vsliveshare","ms-azuretools.vscode-azure-github-copilot"],microsoft:["ms-vscode.azure-repos","ms-vscode.remote-server","ms-vsliveshare.vsliveshare","ms-azuretools.vscode-azure-github-copilot","ms-azuretools.vscode-azureresourcegroups","ms-edu.vscode-learning","ms-toolsai.vscode-ai","ms-toolsai.vscode-ai-remote"],"microsoft-sovereign-cloud":["ms-vscode.azure-repos","ms-vscode.remote-server","ms-vsliveshare.vsliveshare","ms-azuretools.vscode-azure-github-copilot","ms-azuretools.vscode-azureresourcegroups","ms-edu.vscode-learning","ms-toolsai.vscode-ai","ms-toolsai.vscode-ai-remote"],"__GitHub.copilot-chat":["ms-azuretools.vscode-azure-github-copilot"]},aiGeneratedWorkspaceTrust:{title:"This workspace was generated by GitHub Copilot",checkboxText:"Trust the contents of all files in this workspace",trustOption:"Yes, I trust the contents",dontTrustOption:"No, I don't trust the contents",startupTrustRequestLearnMore:"If you don't trust the contents of the files generated by GitHub Copilot, we recommend continuing in restricted mode. See [our docs](https://aka.ms/vscode-workspace-trust) to learn more. "},gitHubEntitlement:{providerId:"github",command:{title:"Install GitHub Copilot (Paid for by {{org}})...",titleWithoutPlaceHolder:"Install GitHub Copilot",action:"workbench.extensions.installExtension",when:"workbench.accounts.experimental.showEntitlements"},entitlementUrl:"https://api.github.com/copilot_internal/user",extensionId:"github.copilot",enablementKey:"chat_enabled",confirmationAction:"Install",confirmationMessage:"Are you sure you want to install GitHub Copilot?"},defaultChatAgent:{extensionId:"GitHub.copilot",chatExtensionId:"GitHub.copilot-chat",documentationUrl:"https://aka.ms/github-copilot-overview",termsStatementUrl:"https://aka.ms/github-copilot-terms-statement",privacyStatementUrl:"https://aka.ms/github-copilot-privacy-statement",skusDocumentationUrl:"https://aka.ms/github-copilot-plans",publicCodeMatchesUrl:"https://aka.ms/github-copilot-match-public-code",manageSettingsUrl:"https://aka.ms/github-copilot-settings",managePlanUrl:"https://aka.ms/github-copilot-manage-plan",upgradePlanUrl:"https://aka.ms/github-copilot-upgrade-plan",providerId:"github",providerName:"GitHub",enterpriseProviderId:"github-enterprise",enterpriseProviderName:"GHE.com",providerUriSetting:"github-enterprise.uri",providerScopes:[["user:email"],["read:user"],["read:user","user:email","repo","workflow"]],entitlementUrl:"https://api.github.com/copilot_internal/user",entitlementSignupLimitedUrl:"https://api.github.com/copilot_internal/subscribe_limited_user",chatQuotaExceededContext:"github.copilot.chat.quotaExceeded",completionsQuotaExceededContext:"github.copilot.completions.quotaExceeded",walkthroughCommand:"github.copilot.open.walkthrough",completionsMenuCommand:"github.copilot.toggleStatusMenu",completionsRefreshTokenCommand:"github.copilot.signIn",chatRefreshTokenCommand:"github.copilot.refreshToken",completionsAdvancedSetting:"github.copilot.advanced",completionsEnablementSetting:"github.copilot.enable",nextEditSuggestionsSetting:"github.copilot.nextEditSuggestions.enabled"},cursorTrustedExtensionAuthAccess:["anysphere.cursor-retrieval"],trustedExtensionProtocolHandlers:["vscode.git","vscode.github-authentication","vscode.microsoft-authentication","anysphere.cursor-deeplink"],linkProtectionTrustedDomains:["https://marketplace.visualstudio.com","https://marketplace.cursorapi.com","https://cursor-cdn.com","https://cursor-marketplace.com","https://open-vsx.org","https://cursor.so","https://cursor.sh","https://cursor.com","https://www.cursor.so","https://cursor.com","https://www.cursor.com","https://docs.cursor.com","https://docs.cursor.sh","https://www.cursor.sh","https://changelog.cursor.sh","https://changelog.cursor.com","https://github.com","https://www.github.com","https://docs.github.com","https://portal.azure.com","https://portal.azure.com","https://raw.githubusercontent.com","https://private-user-images.githubusercontent.com","https://avatars.githubusercontent.com","https://mcp.notion.com","https://mcp.sentry.dev","https://mcp.atlassian.com","https://mcp.intercom.com","https://mcp.asana.com","https://mcp.linear.app","https://api.dashboard.plaid.com","https://mcp.squareup.com","https://app.datadoghq.com/","https://mcp.figma.com","https://mcp.context7.com"],commonlyUsedSettings:["files.autoSave","editor.fontSize","editor.fontFamily","GitHub.copilot.manageExtension","editor.tabSize","editor.renderWhitespace","editor.cursorStyle","editor.multiCursorModifier","editor.insertSpaces","editor.wordWrap","files.exclude","files.associations","workbench.editor.enablePreview"],extensionsEnabledWithApiProposalVersion:["GitHub.copilot-chat","ms-vscode.vscode-commander","ms-vscode.vscode-copilot-vision"],extensionEnabledApiProposals:{"ms-azuretools.vscode-dev-azurecloudshell":["contribEditSessions"],"ms-vscode.vscode-selfhost-test-provider":["testObserver","testRelatedCode"],"VisualStudioExptTeam.vscodeintellicode-completions":["inlineCompletionsAdditions"],"ms-toolsai.datawrangler":["debugFocus"],"ms-vscode.vscode-commander":[],"ms-vscode.vscode-websearchforcopilot":[],"ms-vscode.vscode-copilot-data-analysis":["chatVariableResolver","chatProvider"],"ms-vscode.vscode-copilot-vision":["chatReferenceBinaryData","codeActionAI"],"ms-vsliveshare.vsliveshare":["contribMenuBarHome","contribShareMenu","contribStatusBarItems","diffCommand","documentFiltersExclusive","fileSearchProvider","findTextInFiles","notebookCellExecutionState","notebookLiveShare","terminalDimensions","terminalDataWriteEvent","textSearchProvider"],"ms-vscode.js-debug":["portsAttributes","findTextInFiles","workspaceTrust","tunnels"],"ms-toolsai.vscode-ai-remote":["resolvers"],"ms-python.python":["codeActionAI","contribEditorContentMenu","quickPickSortByLabel","portsAttributes","testObserver","quickPickItemTooltip","terminalDataWriteEvent","terminalExecuteCommandEvent","notebookReplDocument","notebookVariableProvider","terminalShellEnv","terminalShellType"],"ms-python.vscode-python-envs":["terminalShellEnv","terminalShellType"],"ms-dotnettools.dotnet-interactive-vscode":["notebookMessaging"],"GitHub.codespaces":["contribEditSessions","contribMenuBarHome","contribRemoteHelp","contribViewsRemote","resolvers","tunnels","terminalDataWriteEvent","treeViewReveal","notebookKernelSource"],"ms-vscode.azure-repos":["extensionRuntime","fileSearchProvider","textSearchProvider"],"ms-vscode.remote-repositories":["canonicalUriProvider","contribEditSessions","contribRemoteHelp","contribMenuBarHome","contribViewsRemote","contribViewsWelcome","contribShareMenu","documentFiltersExclusive","editSessionIdentityProvider","extensionRuntime","fileSearchProvider","quickPickSortByLabel","workspaceTrust","shareProvider","scmActionButton","scmSelectedProvider","scmValidation","textSearchProvider","timeline"],"ms-vscode-remote.remote-wsl":["resolvers","contribRemoteHelp","contribViewsRemote","telemetry"],"ms-vscode-remote.remote-ssh":["resolvers","tunnels","terminalDataWriteEvent","contribRemoteHelp","contribViewsRemote","telemetry"],"ms-vscode.remote-server":["resolvers","tunnels","contribViewsWelcome"],"ms-vscode.remote-explorer":["contribRemoteHelp","contribViewsRemote","extensionsAny"],"ms-vscode-remote.remote-containers":["contribEditSessions","resolvers","portsAttributes","tunnels","workspaceTrust","terminalDimensions","contribRemoteHelp","contribViewsRemote"],"ms-vscode.js-debug-nightly":["portsAttributes","findTextInFiles","workspaceTrust","tunnels"],"ms-vscode.lsif-browser":["documentFiltersExclusive"],"ms-vscode.vscode-speech":["speech"],"GitHub.vscode-pull-request-github":["activeComment","codiconDecoration","codeActionRanges","commentingRangeHint","commentReactor","commentReveal","commentThreadApplicability","contribAccessibilityHelpContent","contribCommentEditorActionsMenu","contribCommentPeekContext","contribCommentThreadAdditionalMenu","contribCommentsViewThreadMenus","contribEditorContentMenu","contribMultiDiffEditorMenus","contribShareMenu","diffCommand","quickDiffProvider","shareProvider","tabInputTextMerge","tokenInformation","treeViewMarkdownMessage"],"GitHub.copilot":["inlineCompletionsAdditions"],"GitHub.copilot-nightly":["inlineCompletionsAdditions"],"GitHub.copilot-chat":["interactive","terminalDataWriteEvent","terminalExecuteCommandEvent","terminalSelection","terminalQuickFixProvider","chatParticipantAdditions","defaultChatParticipant","embeddings","chatEditing","chatProvider","mappedEditsProvider","aiRelatedInformation","codeActionAI","findTextInFiles","findTextInFiles2","textSearchProvider","textSearchProvider2","activeComment","commentReveal","contribSourceControlInputBoxMenu","contribCommentEditorActionsMenu","contribCommentThreadAdditionalMenu","contribCommentsViewThreadMenus","newSymbolNamesProvider","findFiles2","chatReferenceDiagnostic","extensionsAny","authLearnMore","testObserver","aiTextSearchProvider","chatReadonlyPromptReference","documentFiltersExclusive","chatParticipantPrivate","contribDebugCreateConfiguration","inlineEdit","inlineCompletionsAdditions","chatReferenceBinaryData","languageModelSystem","languageModelCapabilities","languageModelDataPart","chatStatusItem"],"GitHub.remotehub":["contribRemoteHelp","contribMenuBarHome","contribViewsRemote","contribViewsWelcome","documentFiltersExclusive","extensionRuntime","fileSearchProvider","quickPickSortByLabel","workspaceTrust","scmSelectedProvider","scmValidation","textSearchProvider","timeline"],"ms-python.gather":["notebookCellExecutionState"],"ms-python.vscode-pylance":[],"ms-python.debugpy":["contribViewsWelcome","debugVisualization","portsAttributes"],"ms-toolsai.jupyter-renderers":["contribNotebookStaticPreloads"],"ms-toolsai.jupyter":["notebookDeprecated","notebookMessaging","notebookMime","notebookCellExecutionState","quickPickSortByLabel","notebookKernelSource","interactiveWindow","notebookControllerAffinityHidden","contribNotebookStaticPreloads","quickPickItemTooltip","notebookExecution","notebookCellExecution","notebookVariableProvider","notebookReplDocument"],"ms-toolsai.tensorboard":["portsAttributes"],"dbaeumer.vscode-eslint":[],"ms-vscode.azure-sphere-tools-ui":["tunnels"],"ms-azuretools.vscode-azureappservice":["terminalDataWriteEvent"],"ms-azuretools.vscode-azure-github-copilot":["lmTools"],"ms-vscode.anycode":["extensionsAny"],"ms-vscode.cpptools":["terminalDataWriteEvent","chatParticipantAdditions"],"vscjava.vscode-java-pack":["lmTools"],"ms-dotnettools.csdevkit":["inlineCompletionsAdditions"],"ms-dotnettools.vscodeintellicode-csharp":["inlineCompletionsAdditions"],"microsoft-IsvExpTools.powerplatform-vscode":["fileSearchProvider","textSearchProvider"],"microsoft-IsvExpTools.powerplatform-vscode-preview":["fileSearchProvider","textSearchProvider"],"TeamsDevApp.ms-teams-vscode-extension":["chatParticipantAdditions","languageModelSystem"],"apidev.azure-api-center":["chatParticipant","languageModels"],"jeanp413.open-remote-ssh":["resolvers","tunnels","terminalDataWriteEvent","contribRemoteHelp","contribViewsRemote","telemetry","cursor"],"anysphere.remote-wsl":["resolvers","tunnels","terminalDataWriteEvent","contribRemoteHelp","contribViewsRemote","telemetry","cursorTracing"],"anysphere.remote-ssh":["resolvers","tunnels","terminalDataWriteEvent","contribRemoteHelp","contribViewsRemote","telemetry","cursorTracing"],"anysphere.remote-containers":["resolvers","tunnels","terminalDataWriteEvent","contribRemoteHelp","contribViewsRemote","telemetry","cursorTracing"],"anysphere.remote-tunnels":["resolvers","tunnels","terminalDataWriteEvent","contribRemoteHelp","contribViewsRemote","telemetry","cursorTracing"],"anysphere.cpptools":["cursorTracing"],"anysphere.cursorpyright":["cursorTracing"]},builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.1.3",repo:"https://github.com/microsoft/vscode-js-debug-companion",sha256:"7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.93.0",sha256:"9339cb8e6b77f554df54d79e71f533279cb76b0f9b04c207f633bfd507442b6a",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.9",sha256:"3b62ee4276a2bbea3fe230f94b1d5edd915b05966090ea56f882e1e0ab53e1a6",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}],nameShort:"Cursor",nameLong:"Cursor",applicationName:"cursor",dataFolderName:".cursor",win32MutexName:"cursor",win32DirName:"cursor",win32NameVersion:"Cursor",win32RegValueName:"Cursor",win32AppUserModelId:"Anysphere.Cursor",win32ShellNameShort:"C&ursor",darwinBundleIdentifier:"com.todesktop.230313mzl4w4u92",linuxIconName:"co.anysphere.cursor",urlProtocol:"cursor",darwinProfileUUID:"A54CAD6F-1FDA-4B8B-BC75-BBA24E65010E",darwinProfilePayloadUUID:"CDDDF49A-638D-4AC1-AE2D-348EDE0F558B",commitLastCharacter:"0",extensionsGallery:{galleryId:"cursor",serviceUrl:"https://marketplace.cursorapi.com/_apis/public/gallery",itemUrl:"https://marketplace.cursorapi.com/items",resourceUrlTemplate:"https://marketplace.cursorapi.com/{publisher}/{name}/{version}/{path}",controlUrl:"https://api2.cursor.sh/extensions-control",recommendationsUrl:"",nlsBaseUrl:"",publisherUrl:""},trustedExtensionPublishers:["microsoft","github","anysphere"],extensionRecommendations:{"ms-python.python":{onFileOpen:[{pathGlob:"{**/*.py}",important:!0},{languages:["python"],important:!0},{pathGlob:"{**/*.ipynb}"}]},"ms-toolsai.jupyter":{onFileOpen:[{pathGlob:"{**/*.py}",contentPattern:"^#\\s*%%$",important:!0,whenInstalled:["ms-python.python"]},{pathGlob:"{**/*.ipynb}"}]},"golang.Go":{onFileOpen:[{pathGlob:"**/*.go",important:!0},{languages:["go"],important:!0}]},"vscjava.vscode-java-pack":{onFileOpen:[{pathGlob:"{**/*.java}",important:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]},{languages:["java"],important:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}]},"ms-vscode.PowerShell":{onFileOpen:[{pathGlob:"{**/*.ps1,**/*.psd1,**/*.psm1}",important:!0},{languages:["powershell"],important:!0},{pathGlob:"{**/*.ps.config,**/*.ps1.config}"}]},"ms-toolsai.prompty":{onFileOpen:[{pathGlob:"{**/*.prompty}",important:!1}]},"typespec.typespec-vscode":{onFileOpen:[{pathGlob:"{**/*.tsp,**/tspconfig.yaml}",important:!0}]},"ms-vscode.cpptools-extension-pack":{onFileOpen:[{pathGlob:"{**/*.c,**/*.cpp,**/*.cc,**/.cxx,**/*.hh,**/*.hpp,**/*.hxx,**/*.h}",important:!0,whenNotInstalled:["llvm-vs-code-extensions.vscode-clangd"]},{languages:["c","cpp"],important:!0,whenNotInstalled:["llvm-vs-code-extensions.vscode-clangd"]}]},"ms-azuretools.vscode-docker":{onFileOpen:[{pathGlob:"{**/dockerfile,**/Dockerfile,**/docker-compose.yml,**/docker-compose.*.yml}",important:!0},{languages:["dockerfile"],important:!0},{pathGlob:"{**/*.cs,**/project.json,**/global.json,**/*.csproj,**/*.cshtml,**/*.sln,**/appsettings.json,**/*.py,**/*.ipynb,**/*.js,**/*.ts,**/package.json}"}]},"vue.volar":{onFileOpen:[{pathGlob:"{**/*.vue}",important:!0},{languages:["vue"],important:!0}]},"ms-vscode.makefile-tools":{onFileOpen:[{pathGlob:"{**/makefile,**/Makefile}",important:!0},{languages:["makefile"],important:!0}]},"ms-vscode.cmake-tools":{onFileOpen:[{pathGlob:"{**/CMakeLists.txt}",important:!0}]},"ms-azure-devops.azure-pipelines":{onFileOpen:[{pathGlob:"{**/azure-pipelines.yaml}",important:!0}]},"msazurermtools.azurerm-vscode-tools":{onFileOpen:[{pathGlob:"{**/azuredeploy.json}",important:!0}]},"anysphere.remote-containers":{onFileOpen:[{pathGlob:"{**/devcontainer.json}",important:!0}]},"ms-azuretools.vscode-bicep":{onFileOpen:[{pathGlob:"{**/*.bicep}",important:!0,whenNotInstalled:["ms-azuretools.rad-vscode-bicep"]}]},"svelte.svelte-vscode":{onFileOpen:[{pathGlob:"{**/*.svelte}",important:!0}]},"ms-vscode.vscode-github-issue-notebooks":{onFileOpen:[{pathGlob:"{**/*.github-issues}",important:!0}]},"ms-playwright.playwright":{onFileOpen:[{pathGlob:"{**/*playwright*.config.ts,**/*playwright*.config.js,**/*playwright*.config.mjs}",important:!0}]},"vscjava.vscode-gradle":{onFileOpen:[{pathGlob:"{**/gradlew,**/gradlew.bat,**/build.gradle,**/build.gradle.kts,**/settings.gradle,**/settings.gradle.kts}",important:!0}]},"REditorSupport.r":{onFileOpen:[{pathGlob:"{**/*.r}",important:!0},{languages:["r"],important:!0}]},"firefox-devtools.vscode-firefox-debug":{onFileOpen:[{pathGlob:"{**/*.ts,**/*.tsx,**/*.js,**/*.jsx,**/*.es6,**/.babelrc}"}]},"ms-edgedevtools.vscode-edge-devtools":{onFileOpen:[{pathGlob:"{**/*.ts,**/*.tsx,**/*.js,**/*.css,**/*.html}"}]},"Ionide.Ionide-fsharp":{onFileOpen:[{pathGlob:"{**/*.fsx,**/*.fsi,**/*.fs,**/*.ml,**/*.mli}"}]},"dbaeumer.vscode-eslint":{onFileOpen:[{pathGlob:"{**/*.js,**/*.jsx,**/*.es6,**/.eslintrc.*,**/.eslintrc,**/.babelrc,**/jsconfig.json}"}]},"bmewburn.vscode-intelephense-client":{onFileOpen:[{pathGlob:"{**/*.php,**/php.ini}"}]},"xdebug.php-debug":{onFileOpen:[{pathGlob:"{**/*.php,**/php.ini}"}]},"rust-lang.rust-analyzer":{onFileOpen:[{pathGlob:"{**/*.rs,**/*.rslib}"}]},"DavidAnson.vscode-markdownlint":{onFileOpen:[{pathGlob:"{**/*.md}"}]},"EditorConfig.EditorConfig":{onFileOpen:[{pathGlob:"{**/.editorconfig}"}]},"HookyQR.beautify":{onFileOpen:[{pathGlob:"{**/.jsbeautifyrc}"}]},"donjayamanne.githistory":{onFileOpen:[{pathGlob:"{**/.gitignore,**/.git}"}]},"eamodio.gitlens":{onFileOpen:[{pathGlob:"{**/.gitignore,**/.git}"}]},"Shopify.ruby-lsp":{onFileOpen:[{pathGlob:"{**/*.rb,**/*.erb,**/*.reek,**/.fasterer.yml,**/ruby-lint.yml,**/.rubocop.yml}"}]},"DotJoshJohnson.xml":{onFileOpen:[{pathGlob:"{**/*.xml}"}]},"stylelint.vscode-stylelint":{onFileOpen:[{pathGlob:"{**/.stylelintrc,**/stylelint.config.js}"}]},"ms-mssql.mssql":{onFileOpen:[{pathGlob:"{**/*.sql}"}]},"mtxr.sqltools":{onFileOpen:[{pathGlob:"{**/*.sql}"}]},"usqlextpublisher.usql-vscode-ext":{onFileOpen:[{pathGlob:"{**/*.usql}"}]},"ms-vscode.sublime-keybindings":{onFileOpen:[{pathGlob:"{**/.sublime-project,**/.sublime-workspace}"}]},"k--kato.intellij-idea-keybindings":{onFileOpen:[{pathGlob:"{**/.idea}"}]},"christian-kohler.npm-intellisense":{onFileOpen:[{pathGlob:"{**/package.json}"}]},"cake-build.cake-vscode":{onFileOpen:[{pathGlob:"{**/build.cake}"}]},"Angular.ng-template":{onFileOpen:[{pathGlob:"{**/.angular-cli.json,**/angular.json,**/*.ng.html,**/*.ng,**/*.ngml}"}]},"vscjava.vscode-maven":{onFileOpen:[{pathGlob:"**/pom.xml"}]},"ms-azuretools.vscode-azureterraform":{onFileOpen:[{pathGlob:"**/*.tf"}]},"HashiCorp.terraform":{onFileOpen:[{pathGlob:"**/*.tf"}]},"vsciot-vscode.vscode-arduino":{onFileOpen:[{pathGlob:"**/*.ino"}]},"ms-kubernetes-tools.vscode-kubernetes-tools":{onFileOpen:[{pathGlob:"{**/Chart.yaml}"}]},"Oracle.oracledevtools":{onFileOpen:[{pathGlob:"{**/*.sql}"}]},"betterthantomorrow.calva":{onFileOpen:[{pathGlob:"{**/*.clj,**/*.cljs}"}]},"vmware.vscode-boot-dev-pack":{onFileOpen:[{pathGlob:"{**/application.properties}"}]},"GitHub.vscode-github-actions":{onFileOpen:[{pathGlob:"{**/.github/workflows/*.yml}",important:!0}]},"circleci.circleci":{onFileOpen:[{pathGlob:"{**/.circleci/config.yml}"}]},"mechatroner.rainbow-csv":{onFileOpen:[{pathGlob:"**/*.csv",important:!0}]},"tomoki1207.pdf":{onFileOpen:[{pathGlob:"**/*.pdf",important:!0}]},"Redis.redis-for-vscode":{onFileOpen:[{pathGlob:"{**/redis.*,**/redis-server.*,**/redis_*,**/redisinsight.*}",important:!0}]}},extensionVirtualWorkspacesSupport:{"esbenp.prettier-vscode":{default:!1},"msjsdiag.debugger-for-chrome":{default:!1},"redhat.java":{default:!1},"HookyQR.beautify":{default:!1},"ritwickdey.LiveServer":{default:!1},"VisualStudioExptTeam.vscodeintellicode":{default:!1},"octref.vetur":{default:!1},"formulahendry.code-runner":{default:!1},"xdebug.php-debug":{default:!1},"ms-mssql.mssql":{default:!1},"christian-kohler.path-intellisense":{default:!1},"eg2.tslint":{default:!1},"eg2.vscode-npm-script":{default:!1},"donjayamanne.githistory":{default:!1},"Zignd.html-css-class-completion":{default:!1},"christian-kohler.npm-intellisense":{default:!1},"EditorConfig.EditorConfig":{default:!1},"austin.code-gnu-global":{default:!1},"johnpapa.Angular2":{default:!1},"ms-vscode.vscode-typescript-tslint-plugin":{default:!1},"DotJoshJohnson.xml":{default:!1},"techer.open-in-browser":{default:!1},"tht13.python":{default:!1},"bmewburn.vscode-intelephense-client":{default:!1},"Angular.ng-template":{default:!1},"xdebug.php-pack":{default:!1},"dbaeumer.jshint":{default:!1},"yzhang.markdown-all-in-one":{default:!1},"Dart-Code.flutter":{default:!1},"streetsidesoftware.code-spell-checker":{default:!1},"rebornix.Ruby":{default:!1},"ms-vscode.sublime-keybindings":{default:!1},"mitaki28.vscode-clang":{default:!1},"steoates.autoimport":{default:!1},"donjayamanne.python-extension-pack":{default:!1},"shd101wyy.markdown-preview-enhanced":{default:!1},"mikestead.dotenv":{default:!1},"pranaygp.vscode-css-peek":{default:!1},"ikappas.phpcs":{default:!1},"platformio.platformio-ide":{default:!1},"jchannon.csharpextensions":{default:!1},"gruntfuggly.todo-tree":{default:!1}},extensionSyncedKeys:{"ritwickdey.liveserver":["liveServer.setup.version"]},extensionKind:{"Shan.code-settings-sync":["ui"],"shalldie.background":["ui"],"techer.open-in-browser":["ui"],"CoenraadS.bracket-pair-colorizer-2":["ui"],"CoenraadS.bracket-pair-colorizer":["ui","workspace"],"hiro-sun.vscode-emacs":["ui","workspace"],"hnw.vscode-auto-open-markdown-preview":["ui","workspace"],"wayou.vscode-todo-highlight":["ui","workspace"],"aaron-bond.better-comments":["ui","workspace"],"vscodevim.vim":["ui"],"ollyhayes.colmak-vim":["ui"]},extensionPointExtensionKind:{typescriptServerPlugins:["workspace"]},extensionAllowedBadgeProvidersRegex:["^https:\\/\\/github\\.com\\/[^/]+\\/[^/]+\\/(actions\\/)?workflows\\/.*badge\\.svg"],extensionAllowedBadgeProviders:["api.bintray.com","api.travis-ci.com","api.travis-ci.org","app.fossa.io","badge.buildkite.com","badge.fury.io","badge.waffle.io","badgen.net","badges.frapsoft.com","badges.gitter.im","badges.greenkeeper.io","cdn.travis-ci.com","cdn.travis-ci.org","ci.appveyor.com","circleci.com","cla.opensource.microsoft.com","codacy.com","codeclimate.com","codecov.io","coveralls.io","david-dm.org","deepscan.io","dev.azure.com","docs.rs","flat.badgen.net","gemnasium.com","githost.io","gitlab.com","godoc.org","goreportcard.com","img.shields.io","isitmaintained.com","marketplace.visualstudio.com","nodesecurity.io","opencollective.com","snyk.io","travis-ci.com","travis-ci.org","visualstudio.com","vsmarketplacebadge.apphb.com","www.bithound.io","www.versioneye.com"],extensionKeywords:{md:["Markdown"],js:["JavaScript"],jsx:["JavaScript"],es6:["JavaScript"],html:["Html"],ts:["TypeScript"],tsx:["TypeScript"],css:["CSS"],scss:["SASS"],txt:["Text"],php:["PHP"],php3:["PHP"],php4:["PHP"],ph3:["PHP"],ph4:["PHP"],xml:["XML"],py:["Python"],pyc:["Python"],pyd:["Python"],pyo:["Python"],pyw:["Python"],pyz:["Python"],java:["Java"],class:["Java"],jar:["Java"],c:["c","objective c","objective-c"],m:["objective c","objective-c"],mm:["objective c","objective-c"],cpp:["cpp","c plus plus","c","c++"],cc:["cpp","c plus plus","c","c++"],cxx:["cpp","c plus plus","c++"],hh:["cpp","c plus plus","c++"],hpp:["cpp","c++"],h:["cpp","c plus plus","c++","c","objective c","objective-c"],sql:["sql"],sh:["bash"],bash:["bash"],zsh:["bash","zshell"],cs:["c#","csharp"],csproj:["c#","csharp"],sln:["c#","csharp"],go:["go"],sty:["latex"],tex:["latex"],ps:["powershell"],ps1:["powershell"],rs:["rust"],rslib:["rust"],hs:["haskell"],lhs:["haskell"],scm:["scheme"],ss:["scheme"],clj:["clojure"],cljs:["clojure"],cljc:["clojure"],edn:["clojure"],erl:["erlang"],hrl:["erlang"],scala:["scala"],sc:["scala"],pl:["perl"],pm:["perl"],t:["perl"],pod:["perl"],groovy:["groovy"],swift:["swift"],rb:["ruby"],rbw:["ruby"],jl:["julia"],f:["fortran"],for:["fortran"],f90:["fortran"],f95:["fortran"],coffee:["CoffeeScript"],litcoffee:["CoffeeScript"],yaml:["yaml"],yml:["yaml"],dart:["dart"],json:["json"]},remoteExtensionTips:{wsl:{friendlyName:"WSL",extensionId:"anysphere.remote-wsl",supportedPlatforms:["Windows","Web"],startEntry:{helpLink:"https://aka.ms/vscode-remote/wsl",startConnectLabel:"WSL",startCommand:"remote-wsl.connect",priority:3}},"ssh-remote":{friendlyName:"Remote - SSH",extensionId:"anysphere.remote-ssh",supportedPlatforms:["Windows","Linux","Mac"],startEntry:{helpLink:"https://aka.ms/vscode-remote/ssh",startConnectLabel:"SSH ",startCommand:"opensshremotes.openEmptyWindowInCurrentWindow",priority:1}},"dev-container":{friendlyName:"Dev Containers",extensionId:"anysphere.remote-containers",supportedPlatforms:["Windows","Linux","Mac"],startEntry:{helpLink:"https://aka.ms/vscode-remote/containers",startConnectLabel:"Dev Container",startCommand:"remote-containers.reopenInContainer",priority:2}},"attached-container":{friendlyName:"Dev Containers",extensionId:"anysphere.remote-containers"},codespaces:{friendlyName:"GitHub Codespaces",extensionId:"github.codespaces",startEntry:{helpLink:"https://aka.ms/vscode-remote-codespaces",startConnectLabel:"GitHub Codespace ",startCommand:"github.codespaces.connect",priority:4}},tunnel:{friendlyName:"Remote - Tunnels",extensionId:"ms-vscode.remote-server",startEntry:{helpLink:"https://aka.ms/remote-tunnels-doc",startConnectLabel:"Tunnel",startCommand:"remote-tunnels.connectCurrentWindowToTunnel",priority:0}}},virtualWorkspaceExtensionTips:{"vscode-vfs":{friendlyName:"Remote Repositories",extensionId:"ms-vscode.remote-repositories",startEntry:{helpLink:"https://aka.ms/vscode-remote/remote-repositories",startConnectLabel:"Remote Repository",startCommand:"remoteHub.continueOn.openRepository",priority:5}}},webExtensionTips:["tyriar.luna-paint","codespaces-contrib.codeswing","ms-vscode.vscode-github-issue-notebooks","esbenp.prettier-vscode","hediet.vscode-drawio"],configBasedExtensionTips:{git:{configPath:".git/config",configName:"Git",recommendations:{"github.vscode-pull-request-github":{name:"GitHub Pull Request",contentPattern:"^\\s*url\\s*=\\s*https:\\/\\/github\\.com.*$"},"eamodio.gitlens":{name:"GitLens"}}},devContainer:{configPath:".devcontainer/devcontainer.json",configName:"Dev Container",recommendations:{"anysphere.remote-containers":{name:"Dev Containers",important:!0}}},maven:{configPath:"pom.xml",configName:"Maven",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]},"vmware.vscode-boot-dev-pack":{name:"Spring Boot Extension Pack",isExtensionPack:!0}}},gradle:{configPath:"build.gradle",configName:"Gradle",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}}},"github-pull-request":{configPath:".vscode/.github-pull-request.rec",configName:"GitHub",configScheme:"vscode-vfs",recommendations:{"github.vscode-pull-request-github":{name:"GitHub Pull Request",important:!0}}},"pyproject-formatter":{configPath:"pyproject.toml",configName:"Python Formatter",recommendations:{"ms-python.black-formatter":{name:"Black Formatter",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?black"?\\s*[\\].])|("black\\s*["[(<=>!~;@])'},"ms-python.autopep8":{name:"Autopep8",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?autopep8"?\\s*[\\].])|("autopep8\\s*["[(<=>!~;@])'}}},"pep8-formatter":{configPath:".pep8",configName:"Python Formatter",recommendations:{"ms-python.autopep8":{name:"Autopep8"}}},"python-setup-cgf-formatter":{configPath:"setup.cfg",configName:"Python Formatter",recommendations:{"ms-python.autopep8":{name:"Autopep8",contentPattern:"^\\[pep8\\]"}}},"tox-ini-formatter":{configPath:"tox.ini",configName:"Python Formatter",recommendations:{"ms-python.autopep8":{name:"Autopep8",contentPattern:"^\\[pep8\\]"}}},"pyproject-linter":{configPath:"pyproject.toml",configName:"Python Linter",recommendations:{"ms-python.pylint":{name:"Pylint",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?pylint"?\\s*[\\].])|("pylint\\s*["[(<=>!~;@])'},"charliermarsh.ruff":{name:"Ruff",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?ruff"?\\s*[\\].])|("ruff\\s*["[(<=>!~;@])'},"ms-python.mypy-type-checker":{name:"Mypy Type Checker",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?mypy"?\\s*[\\].])|("mypy\\s*["[(<=>!~;@])'},"ms-python.flake8":{name:"Flake8",contentPattern:'(^\\s*\\[\\[?\\s*"?tool"?\\s*\\.\\s*"?flake8"?\\s*[\\].])|("flake8\\s*["[(<=>!~;@])'}}},".pylintrc-linter":{configPath:".pylintrc",configName:"Python Linter",recommendations:{"ms-python.pylint":{name:"Pylint"}}},"pylintrc-linter":{configPath:"pylintrc",configName:"Python Linter",recommendations:{"ms-python.pylint":{name:"Pylint"}}},"mypy-ini-linter":{configPath:".mypy.ini",configName:"Python Linter",recommendations:{"ms-python.mypy-type-checker":{name:"Mypy Type Checker"}}},"tox-ini-linter":{configPath:"tox.ini",configName:"Python Linter",recommendations:{"ms-python.flake8":{name:"Flake8",contentPattern:"^\\[flake8\\]"}}},".flake8-linter":{configPath:".flake8",configName:"Python Linter",recommendations:{"ms-python.flake8":{name:"Flake8"}}},"python-setup-cgf-linter":{configPath:"setup.cfg",configName:"Python Linter",recommendations:{"ms-python.flake8":{name:"Flake8",contentPattern:"^\\[flake8\\]"}}}},exeBasedExtensionTips:{az:{friendlyName:"Azure CLI",windowsPath:"%ProgramFiles(x86)%\\Microsoft SDKs\\Azure\\CLI2\\wbin\\az.cmd",recommendations:{"ms-vscode.vscode-node-azure-pack":{name:"Azure Tools"},"ms-azuretools.vscode-azure-github-copilot":{name:"GitHub Copilot for Azure"}}},azd:{friendlyName:"Azure Dev CLI",windowsPath:"%USERPROFILE%\\AppData\\Local\\Programs\\Azure Dev CLI\\azd.exe",recommendations:{"ms-vscode.vscode-node-azure-pack":{name:"Azure Tools"},"ms-azuretools.vscode-azure-github-copilot":{name:"GitHub Copilot for Azure"}}},"azd-user":{friendlyName:"Azure Dev CLI",windowsPath:"%ProgramFiles%\\Azure Dev CLI\\azd.exe",recommendations:{"ms-vscode.vscode-node-azure-pack":{name:"Azure Tools"},"ms-azuretools.vscode-azure-github-copilot":{name:"GitHub Copilot for Azure"}}},heroku:{friendlyName:"Heroku CLI",windowsPath:"%ProgramFiles%\\Heroku\\bin\\heroku.cmd",recommendations:{"ms-azuretools.vscode-azureappservice":{name:"Azure App Service"},"pkosta2005.heroku-command":{name:"heroku-cli"}}},mongo:{friendlyName:"Mongo",windowsPath:"%ProgramFiles%\\MongoDB\\Server\\3.6\\bin\\mongod.exe",recommendations:{"ms-azuretools.vscode-cosmosdb":{name:"Azure Databases"}}},serverless:{friendlyName:"Serverless framework",windowsPath:"%APPDATA%\\npm\\serverless.cmd",recommendations:{"ms-azuretools.vscode-azurefunctions":{name:"Azure Functions"}}},func:{friendlyName:"Azure Function SDK",windowsPath:"%APPDATA%\\npm\\func.cmd",recommendations:{"ms-azuretools.vscode-azurefunctions":{name:"Azure Functions"}}},mysql:{friendlyName:"MySQL",windowsPath:"%ProgramFiles%\\MySQL\\MySQL Server 8.0\\bin\\mysqld.exe",recommendations:{"mtxr.sqltools":{name:"SQLTools"}}},postgres:{friendlyName:"PostgreSQL",windowsPath:"%ProgramFiles%\\PostgreSQL\\11\\bin\\psql.exe",recommendations:{"ms-ossdata.vscode-postgresql":{name:"PostgreSQL"},"mtxr.sqltools":{name:"SQLTools"}}},sqlcmd:{friendlyName:"SQL CLI",recommendations:{"ms-mssql.mssql":{name:"SQL Server (mssql)"}}},now:{friendlyName:"Now CLI",windowsPath:"%APPDATA%\\npm\\now.cmd",recommendations:{"ms-azuretools.vscode-azureappservice":{name:"Azure App Service"},"ms-azuretools.vscode-docker":{name:"Docker"}}},docker:{friendlyName:"Docker",windowsPath:"%ProgramFiles%\\Docker\\Docker\\Resources\\bin\\docker.exe",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker"},"anysphere.remote-containers":{name:"Dev Containers"},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"}}},kubectl:{friendlyName:"Kubernetes",windowsPath:"%ProgramFiles%\\Docker\\Docker\\Resources\\bin\\kubectl.exe",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker"},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"},"anysphere.remote-containers":{name:"Dev Containers"}}},ng:{friendlyName:"Angular CLI",windowsPath:"%APPDATA%\\npmexit\\ng.cmd",recommendations:{"johnpapa.Angular2":{name:"Angular Snippets"}}},"create-react-app":{friendlyName:"Create React App",windowsPath:"%APPDATA%\\npm\\create-react-app.cmd",recommendations:{"msjsdiag.vscode-react-native":{name:"React Native Tools"}}},"react-native":{friendlyName:"React Native",windowsPath:"%APPDATA%\\npm\\react-native-cli",recommendations:{"msjsdiag.vscode-react-native":{name:"React Native Tools"}}},p4:{friendlyName:"Perforce",recommendations:{"slevesque.perforce":{name:"Perforce for VS Code"}}},hg:{friendlyName:"Mercurial",recommendations:{"mrcrowl.hg":{name:"Hg"}}},git:{friendlyName:"Git",windowsPath:"%ProgramFiles%\\Git\\git-bash.exe",recommendations:{"eamodio.gitlens":{name:"GitLens"}}},svn:{friendlyName:"Subversion",windowsPath:"%ProgramFiles%\\TortoiseSVN\\bin\\TortoiseProc.exe",recommendations:{"johnstoncode.svn-scm":{name:"SVN"}}},subl:{friendlyName:"Sublime",windowsPath:"%ProgramFiles%\\Sublime Text3\\sublime_text.exe",recommendations:{"ms-vscode.sublime-keybindings":{name:"Sublime Text Keymap and Settings Importer"}}},atom:{friendlyName:"Atom",windowsPath:"%USERPROFILE%\\AppData\\Local\\atom\\bin\\atom.cmd",recommendations:{"ms-vscode.atom-keybindings":{name:"Atom Keymap"}}},brackets:{friendlyName:"Brackets",windowsPath:"%ProgramFiles(x86)%\\Brackets\\Brackets.exe",recommendations:{"ms-vscode.brackets-keybindings":{name:"Brackets Keymap"}}},notepadplusplus:{friendlyName:"Notepad++",windowsPath:"%ProgramFiles%\\Notepad++\\Notepad++.exe",recommendations:{"ms-vscode.notepadplusplus-keybindings":{name:"Notepad++ keymap"}}},vi:{friendlyName:"VIM",windowsPath:"%ProgramFiles(x86)%\\Vim\\vim80\\gvim.exe",recommendations:{"vscodevim.vim":{name:"Vim"}}},mvn:{friendlyName:"Maven",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}}},gradle:{friendlyName:"Gradle",recommendations:{"vscjava.vscode-java-pack":{name:"Java",important:!0,isExtensionPack:!0,whenNotInstalled:["ASF.apache-netbeans-java","Oracle.oracle-java"]}}},"Microsoft Edge":{friendlyName:"Microsoft Edge",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Microsoft Edge Dev":{friendlyName:"Microsoft Edge Dev",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge Dev\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Microsoft Edge Beta":{friendlyName:"Microsoft Edge Beta",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge Beta\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Microsoft Edge Canary":{friendlyName:"Microsoft Edge Canary",windowsPath:"%USERPROFILE%\\AppData\\Local\\Microsoft\\Edge SxS\\Application\\msedge.exe",recommendations:{"ms-edgedevtools.vscode-edge-devtools":{name:"Microsoft Edge Developer Tools"}}},"Mozilla Firefox (x86)":{friendlyName:"Mozilla Firefox",windowsPath:"%ProgramFiles(x86)%\\Mozilla Firefox\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},"Mozilla Firefox Developer Edition (x86)":{friendlyName:"Mozilla Firefox Developer Edition",windowsPath:"%ProgramFiles(x86)%\\Firefox Developer Edition\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},"Mozilla Firefox":{friendlyName:"Mozilla Firefox",windowsPath:"%ProgramFiles%\\Mozilla Firefox\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},"Mozilla Firefox Developer Edition":{friendlyName:"Mozilla Firefox Developer Edition",windowsPath:"%ProgramFiles%\\Firefox Developer Edition\\firefox.exe",recommendations:{"firefox-devtools.vscode-firefox-debug":{name:"Debugger for Firefox"}}},cordova:{friendlyName:"Cordova",windowsPath:"%APPDATA%\\npm\\cordova",recommendations:{"msjsdiag.cordova-tools":{name:"Cordova Tools"}}},gcloud:{friendlyName:"Google GCloud CLI",windowsPath:"%ProgramFiles(x86)%\\Google\\Cloud SDK\\google-cloud-sdk\\bin\\gcloud.cmd",recommendations:{"GoogleCloudTools.cloudcode":{name:"Cloud Code"}}},skaffold:{friendlyName:"Skaffold Code to Cluster",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker"},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"}}},minikube:{friendlyName:"MiniKube Local Kubernetes Cluster",recommendations:{"ms-azuretools.vscode-docker":{name:"Docker"},"ms-kubernetes-tools.vscode-kubernetes-tools":{name:"Kubernetes"},"anysphere.remote-containers":{name:"Dev Containers"}}},podman:{friendlyName:"Podman",recommendations:{"anysphere.remote-containers":{name:"Dev Containers"}}},wsl:{friendlyName:"Windows Subsystem for Linux (WSL)",windowsPath:"%WINDIR%\\system32\\lxss\\LxssManager.dll",important:!0,recommendations:{"anysphere.remote-wsl":{name:"WSL",important:!0}}}},keymapExtensionTips:["vscodevim.vim","ms-vscode.sublime-keybindings","ms-vscode.atom-keybindings","ms-vscode.brackets-keybindings","ms-vscode.vs-keybindings","ms-vscode.notepadplusplus-keybindings","k--kato.intellij-idea-keybindings","lfs.vscode-emacs-friendly","alphabotsec.vscode-eclipse-keybindings","alefragnani.delphi-keybindings"],languageExtensionTips:["ms-python.python","ms-vscode.cpptools-extension-pack","ms-dotnettools.csdevkit","ms-toolsai.jupyter","vscjava.vscode-java-pack","ecmel.vscode-html-css","vue.volar","bmewburn.vscode-intelephense-client","dsznajder.es7-react-js-snippets","golang.go","ms-vscode.powershell","dart-code.dart-code","rust-lang.rust-analyzer","Shopify.ruby-lsp"],version:"1.6.35",removeTelemetryMachineId:!0,enabledTelemetryLevels:{error:!0,usage:!0},enableTelemetry:!0,openToWelcomeMainPage:!0,removeLinesBeforeCompilingIfTheyContainTheseWords:["__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____EXTENSION_IS_DEV__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_development_tooling__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_separate_product_json_for_remote_ssh__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_composer_handle_debugging__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_backend_selection_keyboard_shortcuts__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____remove_to_default_use_prod_backend__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_console_log__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_cpp_control_token__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_cursoreval__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_ai_assert__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____dont_print_all_stack_traces_when_listener_leak__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_cpp_this_is_set_in_prod_and_nightly__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_ai_debugger__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_shadow_workspace_debugging__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_context_ast_typescript_fork__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_cpp_eval__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_dev_flush_logs__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_multi_file_applies__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_embedding_model_switch__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_cursor_prediction_options__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_ttft_logging__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_always_on_fast_apply_chunk_speculation__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_runnable_code_blocks__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_auto_import_experiments__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_warning_on_too_many_update_locks__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_dev_only_prompt_quality_link__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_embeddings_quick_access__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_menubar_debugging__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_multiple_embeddings__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_hmr__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_resume__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_console_error__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_composer_migration_warning__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_rcp_server__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_agent_cli_formatter__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_performance_events__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____allow_skip_privacy_mode_grace_period__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_kill_all_modes_and_surface_bg__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_special_rules__","__GULPFILE_REMOVE_LINE_BEFORE_COMPILING____disable_statsig__"],commit:"b753cece5c67c47cb5637199a5a5de2b7100c180",realCommit:"b753cece5c67c47cb5637199a5a5de2b7100c18f",date:"2025-09-19T17:39:38.846Z"},Object.keys(Ii).length===0&&Object.assign(Ii,{version:"1.94.0-dev",nameShort:"Cursor Dev",nameLong:"Cursor Dev",applicationName:"cursor",dataFolderName:".cursor",urlProtocol:"cursor",reportIssueUrl:"https://github.com/getcursor/cursor/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/getcursor/cursor/",serverLicenseUrl:"https://github.com/getcursor/cursor/"});Rt=Ii}});function Ln(e,t){const[i,s]=t.split("/");for(const r of e.resources){const[n,o]=r.type.split("/");if(n===i){if(!s||o===s)return r.id;break}}}var lS,uS,An,Eh=y({"out-build/vs/platform/extensionManagement/common/extensionGalleryManifest.js"(){"use strict";se(),(function(e){e.ExtensionQueryService="ExtensionQueryService",e.ExtensionLatestVersionUri="ExtensionLatestVersionUriTemplate",e.ExtensionStatisticsUri="ExtensionStatisticsUriTemplate",e.WebExtensionStatisticsUri="WebExtensionStatisticsUriTemplate",e.PublisherViewUri="PublisherViewUriTemplate",e.ExtensionDetailsViewUri="ExtensionDetailsViewUriTemplate",e.ExtensionRatingViewUri="ExtensionRatingViewUriTemplate",e.ExtensionResourceUri="ExtensionResourceUriTemplate",e.ContactSupportUri="ContactSupportUri",e.ReportIssueUri="ReportIssueUri"})(lS||(lS={})),(function(e){e.None="None",e.IncludeVersions="IncludeVersions",e.IncludeFiles="IncludeFiles",e.IncludeCategoryAndTags="IncludeCategoryAndTags",e.IncludeSharedAccounts="IncludeSharedAccounts",e.IncludeVersionProperties="IncludeVersionProperties",e.ExcludeNonValidated="ExcludeNonValidated",e.IncludeInstallationTargets="IncludeInstallationTargets",e.IncludeAssetUri="IncludeAssetUri",e.IncludeStatistics="IncludeStatistics",e.IncludeLatestVersionOnly="IncludeLatestVersionOnly",e.Unpublished="Unpublished",e.IncludeNameConflictInfo="IncludeNameConflictInfo",e.IncludeLatestPrereleaseAndStableVersionOnly="IncludeLatestPrereleaseAndStableVersionOnly"})(uS||(uS={})),An=te("IExtensionGalleryManifestService")}});function Dg(e,t){const i=(e||[]).filter(s=>s.statisticName===t)[0];return i?i.value:0}function tN(e){const t="Microsoft.VisualStudio.Code.Translation.";return e.files.filter(s=>s.assetType.indexOf(t)===0).reduce((s,r)=>{const n=ur(e,r.assetType);return n&&s.push([r.assetType.substring(t.length),n]),s},[])}function iN(e){if(e.properties){const t=e.properties.filter(r=>r.key===$t.Repository),i=new RegExp("((git|ssh|http(s)?)|(git@[\\w.]+))(:(//)?)([\\w.@:/\\-~]+)(.git)(/)?"),s=t.filter(r=>i.test(r.value))[0];return s?{uri:s.value,fallbackUri:s.value}:null}return ur(e,$t.Repository)}function sN(e){return{uri:`${e.fallbackAssetUri}/${$t.VSIX}?redirect=true${e.targetPlatform?`&targetPlatform=${e.targetPlatform}`:""}`,fallbackUri:`${e.fallbackAssetUri}/${$t.VSIX}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`}}function ur(e,t){return e.files.filter(s=>s.assetType===t)[0]?{uri:`${e.assetUri}/${t}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`,fallbackUri:`${e.fallbackAssetUri}/${t}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`}:null}function hS(e,t){const i=e.properties?e.properties.filter(r=>r.key===t):[],s=i.length>0&&i[0].value;return s?s.split(",").map(r=>lh(r)):[]}function rN(e){return hS(e,hs.Dependency)}function Rg(e){const t=e.properties?e.properties.filter(i=>i.key===hs.Engine):[];return t.length>0&&t[0].value||""}function Ac(e){const t=e.properties?e.properties.filter(i=>i.key===hs.PreRelease):[];return t.length>0&&t[0].value==="true"}function nN(e){const t=e.properties?e.properties.filter(i=>i.key===hs.Private):[];return t.length>0&&t[0].value==="true"}function oN(e){const t=e.properties?e.properties.filter(i=>i.key===hs.ExecutesCode):[];return t.length>0?t[0].value==="true":void 0}function Lg(e){const t=e.properties?e.properties.filter(s=>s.key===hs.EnabledApiProposals):[],i=t.length>0&&t[0].value||"";return i?i.split(","):[]}function aN(e){const t=e.properties?e.properties.filter(s=>s.key===hs.LocalizedLanguages):[],i=t.length>0&&t[0].value||"";return i?i.split(","):[]}function cN(e){return e.properties?.find(t=>t.key===hs.SponsorLink)?.value}function lN(e){return e.properties?.find(t=>t.key===hs.SupportLink)?.value}function uN(e){return e.indexOf("preview")!==-1}function Sh(e){return e.targetPlatform?UL(e.targetPlatform):"undefined"}function Nc(e){const t=ks(e.versions.map(Sh)),i=!!e.tags?.includes(r4),s=t.indexOf("web");return i?s===-1&&t.push("web"):s!==-1&&t.splice(s,1),t}function dS(e,t){for(let i=0;i<e.length;i++){const s=e[i];if(s.version===e[i-1]?.version){let r=i;if(Sh(s)===t)for(;r>0&&e[r-1].version===s.version;)r--;r!==i&&(e.splice(i,1),e.splice(r,0,s))}}return e}function fS(e,t,i){e.telemetryData={index:t,querySource:i,queryActivityId:e.queryContext?.[Mo]}}function xh(e,t,i,s,r){const n=e.versions[0],o={manifest:ur(t,$t.Manifest),readme:ur(t,$t.Details),changelog:ur(t,$t.Changelog),license:ur(t,$t.License),repository:iN(t),download:sN(t),icon:ur(t,$t.Icon),signature:ur(t,$t.Signature),coreTranslations:tN(t)},a=Ln(s,"ExtensionDetailsViewUriTemplate"),c=Ln(s,"PublisherViewUriTemplate"),l=Ln(s,"ExtensionRatingViewUriTemplate");return{type:"gallery",identifier:{id:Ai(e.publisher.publisherName,e.extensionName),uuid:e.extensionId},name:e.extensionName,version:t.version,displayName:e.displayName,publisherId:e.publisher.publisherId,publisher:e.publisher.publisherName,publisherDisplayName:e.publisher.displayName,publisherDomain:e.publisher.domain?{link:e.publisher.domain,verified:!!e.publisher.isDomainVerified}:void 0,publisherSponsorLink:cN(n),description:e.shortDescription??"",installCount:Dg(e.statistics,"install"),rating:Dg(e.statistics,"averagerating"),ratingCount:Dg(e.statistics,"ratingcount"),categories:e.categories||[],tags:e.tags||[],releaseDate:Date.parse(e.releaseDate),lastUpdated:Date.parse(e.lastUpdated),allTargetPlatforms:i,assets:o,properties:{dependencies:rN(t),extensionPack:hS(t,hs.ExtensionPack),engine:Rg(t),enabledApiProposals:Lg(t),localizedLanguages:aN(t),targetPlatform:Sh(t),isPreReleaseVersion:Ac(t),executesCode:oN(t)},hasPreReleaseVersion:Ac(n),hasReleaseVersion:!0,private:nN(n),preview:uN(e.flags),isSigned:!!o.signature,queryContext:r,supportLink:lN(n),detailsLink:a?ro(a,{publisher:e.publisher.publisherName,name:e.extensionName}):void 0,publisherLink:c?ro(c,{publisher:e.publisher.publisherName}):void 0,ratingLink:l?ro(l,{publisher:e.publisher.publisherName,name:e.extensionName}):void 0}}var kh,pS,mS,gS,vS,yS,wS,To,Mo,Ph,Ih,Ch,$t,hs,_S,bS,ES,Oc,Tc,Ag,Mc,Ng=y({"out-build/vs/platform/extensionManagement/common/extensionGalleryService.js"(){"use strict";kt(),Ft(),ve(),K(),ss(),_e(),Y(),BL(),ci(),ui(),ki(),ls(),iA(),dh(),Xe(),Ie(),mi(),ko(),eN(),ji(),so(),Oo(),In(),lt(),Eh(),kh=xs?"web":i4(ln,om),pS="https://marketplace.cursorapi.com/",mS="https://localhost:8000/",gS=(Rt.extensionMaxVersions?Object.keys(Rt.extensionMaxVersions):[]).map(e=>e.toLowerCase()),vS=["39a52826-2472-403d-8410-37905302f26a","94d8b289-9db0-4c3c-b4f3-a3294c789678","d7f9f831-2239-4783-9d06-18d27f285818","033f8d91-0c9e-44cd-a3d2-b35fc4fd12da","73a45d83-83c7-4b22-bebf-c9130b0ab3f3","5dfd8b1d-4334-491c-87dc-399d73599a8a","1b129845-b202-4b23-8fe1-724f80b0bdc6"],yS="1b129845-b202-4b23-8fe1-724f80b0",wS=e=>{const t=Rt.extensionMaxVersions;return t?t[e.toLowerCase()]!==void 0:!1},To=e=>{const t=Rt.extensionMaxVersions;if(!t)return!0;for(const i of gS)if(i===Ai(e.publisher,e.name).toLowerCase()){const s=t[i].maxVersion,r=s===void 0?!0:D4(e.version,s),n=t[i].minVersion,o=n===void 0?!0:yg(e.version,n);return r&&o}return!0},Mo="X-Market-Search-Activity-Id",Ph="Activityid",Ih="Server",Ch="X-Vss-E2eid",$t={Icon:"Microsoft.VisualStudio.Services.Icons.Default",Details:"Microsoft.VisualStudio.Services.Content.Details",Changelog:"Microsoft.VisualStudio.Services.Content.Changelog",Manifest:"Microsoft.VisualStudio.Code.Manifest",VSIX:"Microsoft.VisualStudio.Services.VSIXPackage",License:"Microsoft.VisualStudio.Services.Content.License",Repository:"Microsoft.VisualStudio.Services.Links.Source",Signature:"Microsoft.VisualStudio.Services.VsixSignature"},hs={Dependency:"Microsoft.VisualStudio.Code.ExtensionDependencies",ExtensionPack:"Microsoft.VisualStudio.Code.ExtensionPack",Engine:"Microsoft.VisualStudio.Code.Engine",PreRelease:"Microsoft.VisualStudio.Code.PreRelease",EnabledApiProposals:"Microsoft.VisualStudio.Code.EnabledApiProposals",LocalizedLanguages:"Microsoft.VisualStudio.Code.LocalizedLanguages",WebExtension:"Microsoft.VisualStudio.Code.WebExtension",SponsorLink:"Microsoft.VisualStudio.Code.SponsorLink",SupportLink:"Microsoft.VisualStudio.Services.Links.Support",ExecutesCode:"Microsoft.VisualStudio.Code.ExecutesCode",Private:"PrivateMarketplace"},_S=10,bS={pageNumber:1,pageSize:_S,sortBy:"NoneOrRelevance",sortOrder:0,flags:[],criteria:[],assetTypes:[]},(function(e){e[e.Release=0]="Release",e[e.Prerelease=1]="Prerelease",e[e.Latest=2]="Latest"})(ES||(ES={})),Oc=class rn{constructor(t=bS){this.state=t}get pageNumber(){return this.state.pageNumber}get pageSize(){return this.state.pageSize}get sortBy(){return this.state.sortBy}get sortOrder(){return this.state.sortOrder}get flags(){return this.state.flags}get criteria(){return this.state.criteria}get assetTypes(){return this.state.assetTypes}get source(){return this.state.source}get searchText(){const t=this.state.criteria.filter(i=>i.filterType==="SearchText")[0];return t&&t.value?t.value:""}withPage(t,i=this.state.pageSize){return new rn({...this.state,pageNumber:t,pageSize:i})}withFilter(t,...i){const s=[...this.state.criteria,...i.length?i.map(r=>({filterType:t,value:r})):[{filterType:t}]];return new rn({...this.state,criteria:s})}withSortBy(t){return new rn({...this.state,sortBy:t})}withSortOrder(t){return new rn({...this.state,sortOrder:t})}withFlags(...t){return new rn({...this.state,flags:ks(t)})}withAssetTypes(...t){return new rn({...this.state,assetTypes:t})}withSource(t){return new rn({...this.state,source:t})}},Tc=class{constructor(t,i,s,r,n,o,a,c,l,u,h){this.assignmentService=i,this.requestService=s,this.logService=r,this.environmentService=n,this.telemetryService=o,this.fileService=a,this.productService=c,this.configurationService=l,this.allowedExtensionsService=u,this.extensionGalleryManifestService=h,this.bearerTokenProvider=()=>Promise.resolve(void 0),this.extensionsControlUrl=c.extensionsGallery?.controlUrl,this.unpkgResourceApi=c.extensionsGallery?.extensionUrlTemplate,this.extensionsEnabledWithApiProposalVersion=c.extensionsEnabledWithApiProposalVersion?.map(f=>f.toLowerCase())??[],this.commonHeadersPromise=tA(c,this.environmentService,this.configurationService,this.fileService,t,this.telemetryService)}registerBearerTokenProvider(t){this.bearerTokenProvider=t}isEnabled(){return this.extensionGalleryManifestService.isEnabled()}async getExtensions(t,i,s){const r=await this.extensionGalleryManifestService.getExtensionGalleryManifest();if(!r)throw new Error("No extension gallery service configured.");const n=Me.isCancellationToken(i)?{}:i,o=Me.isCancellationToken(i)?i:s,a=n.preferResourceApi&&(this.configurationService.getValue(m4)??!1)?await this.getResourceApi(r):void 0,c=a?await this.getExtensionsUsingResourceApi(t,n,a,r,o):await this.getExtensionsUsingQueryApi(t,n,r,o),l=c.map(h=>h.identifier.uuid),u=[];for(const h of t)h.uuid&&!l.includes(h.uuid)&&u.push({...h,uuid:void 0});if(u.length){this.telemetryService.publicLog2("galleryService:additionalQueryByName",{count:u.length});const h=await this.getExtensionsUsingQueryApi(u,n,r,o);c.push(...h)}return c}async getResourceApi(t){const i=Ln(t,"ExtensionLatestVersionUriTemplate");if(!i)return;if(this.productService.quality!=="stable")return{uri:i,fallback:this.unpkgResourceApi};const s=await this.assignmentService?.getTreatment("extensions.gallery.useResourceApi")??"unpkg";if(s==="marketplace")return{uri:i,fallback:this.unpkgResourceApi};if(s==="unpkg"&&this.unpkgResourceApi)return{uri:this.unpkgResourceApi}}async getExtensionsUsingQueryApi(t,i,s,r){const n=[],o=[],a=[],c=[];let l=!0;for(const f of t)f.uuid?o.push(f.uuid):n.push(f.id),f.version?c.push({id:f.id,uuid:f.uuid,version:f.version}):a.push({id:f.id,uuid:f.uuid,includePreRelease:!!f.preRelease}),l=l&&!!f.hasPreRelease&&!f.preRelease;if(!o.length&&!n.length)return[];let u=new Oc().withPage(1,t.length);o.length&&(u=u.withFilter("ExtensionId",...o)),n.length&&(u=u.withFilter("ExtensionName",...n)),i.queryAllVersions&&(u=u.withFlags(...u.flags,"IncludeVersions")),i.source&&(u=u.withSource(i.source));const{extensions:h}=await this.queryGalleryExtensions(u,{targetPlatform:i.targetPlatform??kh,includePreRelease:a,versions:c,compatible:!!i.compatible,productVersion:i.productVersion??{version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion},isQueryForReleaseVersionFromPreReleaseVersion:l},s,r);return i.source&&h.forEach((f,p)=>fS(f,p,i.source)),h}async getExtensionsUsingResourceApi(t,i,s,r,n){const o=[],a=[],c=[];for(const l of t)nh.test(l.id)&&(l.version?a.push(l):c.push(l));if(await Promise.allSettled(c.map(async l=>{let u;try{try{u=await this.getLatestGalleryExtension(l,i,s.uri,r,n)}catch(h){if(!s.fallback)throw h;this.logService.error(`Error while getting the latest version for the extension ${l.id} from ${s.uri}. Trying the fallback ${s.fallback}`,le(h)),this.telemetryService.publicLog2("galleryService:fallbacktounpkg",{extension:l.id,preRelease:!!l.preRelease,compatible:!!i.compatible}),u=await this.getLatestGalleryExtension(l,i,s.fallback,r,n)}if(u==="NOT_FOUND"){l.uuid&&a.push(l);return}u&&o.push(u)}catch(h){this.logService.error(`Error while getting the latest version for the extension ${l.id}.`,le(h)),this.telemetryService.publicLog2("galleryService:fallbacktoquery",{extension:l.id,preRelease:!!l.preRelease,compatible:!!i.compatible,fromFallback:!!s.fallback}),a.push(l)}})),a.length){const l=await this.getExtensionsUsingQueryApi(a,i,r,n);o.push(...l)}return o}async getLatestGalleryExtension(t,i,s,r,n){const[o,a]=t.id.split("."),c=b.parse(ro(s,{publisher:o,name:a})),l=await this.getLatestRawGalleryExtension(t.id,c,n);if(!l)return"NOT_FOUND";const u=Nc(l),h=await this.getRawGalleryExtensionVersion(l,{targetPlatform:i.targetPlatform??kh,compatible:!!i.compatible,productVersion:i.productVersion??{version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion},version:t.preRelease?1:0},u);return h?xh(l,h,u,r):null}async getCompatibleExtension(t,i,s,r={version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion}){return Do(t.allTargetPlatforms,s)?null:await this.isExtensionCompatible(t,i,s)?t:this.allowedExtensionsService.isAllowed({id:t.identifier.id,publisherDisplayName:t.publisherDisplayName})!==!0?null:(await this.getExtensions([{...t.identifier,preRelease:i,hasPreRelease:t.hasPreReleaseVersion}],{compatible:!0,productVersion:r,queryAllVersions:!0,targetPlatform:s},Me.None))[0]??null}async isExtensionCompatible(t,i,s,r={version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion}){if(!To(t)||this.allowedExtensionsService.isAllowed(t)!==!0||!lg(t.properties.targetPlatform,t.allTargetPlatforms,s)||!i&&t.properties.isPreReleaseVersion)return!1;let n=t.properties.engine;if(!n){const o=await this.getManifest(t,Me.None);if(!o)throw new Error("Manifest was not found");n=o.engines.vscode}return t.identifier.id==="typescriptteam.native-preview"?!0:!(!Ic(n,r.vscodeVersion,r.date)||!this.areApiProposalsCompatible(t.identifier,t.properties.enabledApiProposals))}areApiProposalsCompatible(t,i){return!i||!this.extensionsEnabledWithApiProposalVersion.includes(t.id.toLowerCase())?!0:Eg(i)}async isValidVersion(t,i,{targetPlatform:s,compatible:r,productVersion:n,version:o},a,c){if(ye(o)){if(i.version!==o)return!1}else if((o===0||o===1)&&Ac(i)!==(o===1))return!1;const l=Sh(i);if(!lg(l,c,s))return!1;if(r){if(this.allowedExtensionsService.isAllowed({id:t,publisherDisplayName:a,version:i.version,prerelease:Ac(i),targetPlatform:l})!==!0)return!1;try{const u=await this.getEngine(t,i);if(!Ic(u,n.vscodeVersion,n.date))return!1}catch(u){return this.logService.error(`Error while getting the engine for the version ${i.version}.`,le(u)),!1}}return!0}async query(t,i){const s=await this.extensionGalleryManifestService.getExtensionGalleryManifest();if(!s)throw new Error("No extension gallery service configured.");let r=t.text||"";const n=t.pageSize??50;let o=new Oc().withPage(1,n);r?(r=r.replace(/\bcategory:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(h,f,p)=>(o=o.withFilter("Category",p||f),"")),r=r.replace(/\btag:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(h,f,p)=>(o=o.withFilter("Tag",p||f),"")),r=r.replace(/\bfeatured(\s+|\b|$)/g,()=>(o=o.withFilter("Featured"),"")),r=r.trim(),r&&(r=r.length<200?r:r.substring(0,200),o=o.withFilter("SearchText",r)),s.capabilities.extensionQuery.sorting?.some(h=>h.name==="NoneOrRelevance")&&(o=o.withSortBy("NoneOrRelevance"))):s.capabilities.extensionQuery.sorting?.some(h=>h.name==="InstallCount")&&(o=o.withSortBy("InstallCount")),t.sortBy&&s.capabilities.extensionQuery.sorting?.some(h=>h.name===t.sortBy)&&(o=o.withSortBy(t.sortBy)),typeof t.sortOrder=="number"&&(o=o.withSortOrder(t.sortOrder)),t.source&&(o=o.withSource(t.source));const a=async(h,f)=>{const{extensions:p,total:g}=await this.queryGalleryExtensions(h,{targetPlatform:kh,compatible:!1,includePreRelease:!!t.includePreRelease,productVersion:t.productVersion??{version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion}},s,f);return p.forEach((v,w)=>fS(v,(h.pageNumber-1)*h.pageSize+w,t.source)),{extensions:p,total:g}},{extensions:c,total:l}=await a(o,i),u=async(h,f)=>{if(f.isCancellationRequested)throw new xt;const{extensions:p}=await a(o.withPage(h+1),f);return p};return{firstPage:c,total:l,pageSize:o.pageSize,getPage:u}}async queryGalleryExtensions(t,i,s,r){return this.productService.quality!=="stable"&&await this.assignmentService?.getTreatment("useLatestPrereleaseAndStableVersionFlag")?this.queryGalleryExtensionsUsingIncludeLatestPrereleaseAndStableVersionFlag(t,i,s,r):this.queryGalleryExtensionsWithAllVersionsAsFallback(t,i,s,r)}async queryGalleryExtensionsWithAllVersionsAsFallback(t,i,s,r){const n=t.flags;t.flags.includes("IncludeLatestVersionOnly")&&t.flags.includes("IncludeVersions")&&(t=t.withFlags(...t.flags.filter(f=>f!=="IncludeVersions"))),!t.flags.includes("IncludeLatestVersionOnly")&&!t.flags.includes("IncludeVersions")&&(t=t.withFlags(...t.flags,"IncludeLatestVersionOnly")),(i.versions?.length||i.isQueryForReleaseVersionFromPreReleaseVersion)&&(t=t.withFlags(...t.flags.filter(f=>f!=="IncludeLatestVersionOnly"),"IncludeVersions")),t=t.withFlags(...t.flags,"IncludeAssetUri","IncludeCategoryAndTags","IncludeFiles","IncludeStatistics","IncludeVersionProperties");const{galleryExtensions:o,total:a,context:c}=await this.queryRawGalleryExtensions(t,s,r);if(!t.flags.includes("IncludeLatestVersionOnly")){const f=[];for(const p of o){const g=Nc(p),v={id:Ai(p.publisher.publisherName,p.extensionName),uuid:p.extensionId},w=is(i.includePreRelease)?i.includePreRelease:!!i.includePreRelease.find(E=>ge(E,v))?.includePreRelease,S=await this.getRawGalleryExtensionVersion(p,{compatible:i.compatible,targetPlatform:i.targetPlatform,productVersion:i.productVersion,version:i.versions?.find(E=>ge(E,v))?.version??(w?2:0)},g);S&&f.push(xh(p,S,g,s,c))}return{extensions:f,total:a}}const u=[],h=new Map;for(let f=0;f<o.length;f++){const p=o[f],g={id:Ai(p.publisher.publisherName,p.extensionName),uuid:p.extensionId},v=is(i.includePreRelease)?i.includePreRelease:!!i.includePreRelease.find(P=>ge(P,g))?.includePreRelease,w=Nc(p);if(i.compatible&&(Do(w,i.targetPlatform)||this.allowedExtensionsService.isAllowed({id:g.id,publisherDisplayName:p.publisher.displayName})!==!0))continue;const S=await this.getRawGalleryExtensionVersion(p,{compatible:i.compatible,targetPlatform:i.targetPlatform,productVersion:i.productVersion,version:i.versions?.find(P=>ge(P,g))?.version??(v?2:0)},w),E=S?xh(p,S,w,s,c):null;!E||E.properties.isPreReleaseVersion&&(!v||!E.hasReleaseVersion)||!E.properties.isPreReleaseVersion&&E.properties.targetPlatform!==i.targetPlatform&&E.hasPreReleaseVersion?h.set(p.extensionId,f):u.push([f,E])}if(h.size){const f=new Qs,p=new Oc().withFlags(...n.filter(v=>v!=="IncludeLatestVersionOnly"),"IncludeVersions").withPage(1,h.size).withFilter("ExtensionId",...h.keys()),{extensions:g}=await this.queryGalleryExtensions(p,i,s,r);this.telemetryService.publicLog2("galleryService:additionalQuery",{duration:f.elapsed(),count:h.size});for(const v of g){const w=h.get(v.identifier.uuid);u.push([w,v])}}return{extensions:u.sort((f,p)=>f[0]-p[0]).map(([,f])=>f),total:a}}async queryGalleryExtensionsUsingIncludeLatestPrereleaseAndStableVersionFlag(t,i,s,r){i.versions?.length?t=t.withFlags(...t.flags.filter(l=>l!=="IncludeLatestVersionOnly"&&l!=="IncludeLatestPrereleaseAndStableVersionOnly"),"IncludeVersions"):t.flags.includes("IncludeVersions")||(t=(is(i.includePreRelease)?i.includePreRelease:i.includePreRelease.every(({includePreRelease:u})=>u))?t.withFlags(...t.flags.filter(u=>u!=="IncludeLatestPrereleaseAndStableVersionOnly"),"IncludeLatestVersionOnly"):t.withFlags(...t.flags.filter(u=>u!=="IncludeLatestVersionOnly"),"IncludeLatestPrereleaseAndStableVersionOnly")),t.flags.includes("IncludeVersions")&&(t.flags.includes("IncludeLatestVersionOnly")||t.flags.includes("IncludeLatestPrereleaseAndStableVersionOnly"))&&(t=t.withFlags(...t.flags.filter(l=>l!=="IncludeLatestVersionOnly"&&l!=="IncludeLatestPrereleaseAndStableVersionOnly"),"IncludeVersions")),t=t.withFlags(...t.flags,"IncludeAssetUri","IncludeCategoryAndTags","IncludeFiles","IncludeStatistics","IncludeVersionProperties");const{galleryExtensions:n,total:o,context:a}=await this.queryRawGalleryExtensions(t,s,r),c=[];for(let l=0;l<n.length;l++){const u=n[l],h={id:Ai(u.publisher.publisherName,u.extensionName),uuid:u.extensionId},f=Nc(u);if(i.compatible&&(Do(f,i.targetPlatform)||this.allowedExtensionsService.isAllowed({id:h.id,publisherDisplayName:u.publisher.displayName})!==!0))continue;const p=i.versions?.find(v=>ge(v,h))?.version??((is(i.includePreRelease)?i.includePreRelease:i.includePreRelease.find(v=>ge(v,h))?.includePreRelease)?2:0),g=await this.getRawGalleryExtensionVersion(u,{compatible:i.compatible,targetPlatform:i.targetPlatform,productVersion:i.productVersion,version:p},f);g&&c.push(xh(u,g,f,s,a))}return{extensions:c,total:o}}async getRawGalleryExtensionVersion(t,i,s){const r={id:Ai(t.publisher.publisherName,t.extensionName),uuid:t.extensionId},n=dS(t.versions,i.targetPlatform);if(i.compatible&&Do(s,i.targetPlatform))return null;const o=ye(i.version)?i.version:void 0;for(let a=0;a<n.length;a++){const c=n[a];if(await this.isValidVersion(r.id,c,i,t.publisher.displayName,s)){if(i.compatible&&!this.areApiProposalsCompatible(r,Lg(c)))continue;return c}if(o&&c.version===o)return null}return o||i.compatible?null:t.versions[0]}isCursorMarketplaceUrlForAuthHeaders(t){return t.startsWith(pS)?!0:this.environmentService.isBuilt?!1:t.startsWith(mS)?(this.logService.info("isCursorMarketplaceUrlForAuthHeaders: permitting localhost authentication for dev build",t),!0):!1}async queryRawGalleryExtensions(t,i,s){const r=Ln(i,"ExtensionQueryService");if(!r)throw new Error("No extension gallery query service configured.");t=t.withFlags(...t.flags,"ExcludeNonValidated").withFilter("Target","Microsoft.VisualStudio.Code");const n=i.capabilities.extensionQuery.flags?.find(g=>g.name==="Unpublished");n&&(t=t.withFilter("ExcludeWithFlags",String(n.value)));const o={filters:[{criteria:t.criteria.reduce((g,v)=>{const w=i.capabilities.extensionQuery.filtering?.find(S=>S.name===v.filterType);return w&&g.push({filterType:w.value,value:v.value}),g},[]),pageNumber:t.pageNumber,pageSize:t.pageSize,sortBy:i.capabilities.extensionQuery.sorting?.find(g=>g.name===t.sortBy)?.value,sortOrder:t.sortOrder}],assetTypes:t.assetTypes,flags:t.flags.reduce((g,v)=>{const w=i.capabilities.extensionQuery.flags?.find(S=>S.name===v);return w&&(g|=w.value),g},0)};this.isCursorMarketplaceUrlForAuthHeaders(r)||o.filters.forEach(g=>{g.criteria=g.criteria.filter(v=>{const w=v.value;if(!w)return!0;const S=i.capabilities.extensionQuery.filtering?.find(E=>E.value===v.filterType);return!(S?.name==="ExtensionName"&&w.toLowerCase().startsWith("anysphere.")||S?.name==="ExtensionId"&&(vS.includes(w.toLowerCase())||w.toLowerCase().startsWith(yS)))})});const a=JSON.stringify(o),l={...await this.commonHeadersPromise,"Content-Type":"application/json",Accept:"application/json;api-version=3.0-preview.1","Accept-Encoding":"gzip","Content-Length":String(a.length)};if(this.isCursorMarketplaceUrlForAuthHeaders(r)){const g=await this.bearerTokenProvider();g&&(l.Authorization=`Bearer ${g}`),l["x-cursor-client-version"]=this.productService.version}const u=new Qs;let h,f,p=0;try{if(h=await this.requestService.request({type:"POST",url:r,data:a,headers:l},s),h.res.statusCode&&h.res.statusCode>=400&&h.res.statusCode<500)return{galleryExtensions:[],total:p};const g=await Qu(h);if(g){const v=g.results[0];let w=v.extensions;const S=v.resultMetadata&&v.resultMetadata.filter(E=>E.metadataType==="ResultCount")[0];return p=S&&S.metadataItems.filter(E=>E.name==="TotalCount")[0].count||0,w.forEach((E,P)=>{let A=E.versions;wS(Ai(E.publisher.publisherName,E.extensionName))&&A.find(T=>To({name:E.extensionName,publisher:E.publisher.publisherName,version:T.version}))!==void 0&&(A=A.filter(T=>To({name:E.extensionName,publisher:E.publisher.publisherName,version:T.version})),A.length>0&&(w[P]={...E,versions:A}));const D=A.filter(T=>{const $=Rg(T);return $===""||Ic($,this.productService.vscodeVersion,this.productService.date)});D.length<A.length&&(A=D,A.length>0&&(w[P]={...E,versions:A}))}),{galleryExtensions:w,total:p,context:h.res.headers.activityid?{[Mo]:h.res.headers.activityid}:{}}}return{galleryExtensions:[],total:p}}catch(g){if(xr(g))throw f="Cancelled",g;{const v=le(g);throw f=g4(g)?"Offline":v.startsWith("XHR timeout")?"Timeout":"Failed",new xc(v,f)}}finally{this.telemetryService.publicLog2("galleryService:query",{filterTypes:t.criteria.map(g=>g.filterType),flags:t.flags,sortBy:t.sortBy,sortOrder:String(t.sortOrder),pageNumber:String(t.pageNumber),source:t.source,searchTextLength:t.searchText.length,requestBodySize:String(a.length),duration:u.elapsed(),success:!!h&&Qm(h),responseBodySize:h?.res.headers["Content-Length"],statusCode:h?String(h.res.statusCode):void 0,errorCode:f,count:String(p),server:this.getHeaderValue(h?.res.headers,Ih),activityId:this.getHeaderValue(h?.res.headers,Ph),endToEndId:this.getHeaderValue(h?.res.headers,Ch)})}}getHeaderValue(t,i){const s=t?.[i.toLowerCase()];return Array.isArray(s)?s[0]:s}async getLatestRawGalleryExtension(t,i,s){let r;const n=new Qs;let o;try{const c={...await this.commonHeadersPromise,"Content-Type":"application/json",Accept:"application/json;api-version=7.2-preview","Accept-Encoding":"gzip"};if(o=await this.requestService.request({type:"GET",url:i.toString(!0),headers:c,timeout:1e4},s),o.res.statusCode===404)return r="NotFound",null;if(o.res.statusCode&&o.res.statusCode!==200)throw r="GalleryServiceError:"+o.res.statusCode,new Error("Unexpected HTTP response: "+o.res.statusCode);const l=await Qu(o);return l||(r="NoData"),l}catch(a){if(xr(a))r="Cancelled";else{const c=le(a);r=g4(a)?"Offline":c.startsWith("XHR timeout")?"Timeout":"Failed"}throw a}finally{this.telemetryService.publicLog2("galleryService:getLatest",{extension:t,host:i.authority,duration:n.elapsed(),errorCode:r,server:this.getHeaderValue(o?.res.headers,Ih),activityId:this.getHeaderValue(o?.res.headers,Ph),endToEndId:this.getHeaderValue(o?.res.headers,Ch)})}}async reportStatistic(t,i,s,r){const n=await this.extensionGalleryManifestService.getExtensionGalleryManifest();if(!n)return;let o;if(xs){const u=Ln(n,"WebExtensionStatisticsUriTemplate");if(!u)return;o=ro(u,{publisher:t,name:i,version:s,statTypeValue:r==="install"?"1":"3"})}else{const u=Ln(n,"ExtensionStatisticsUriTemplate");if(!u)return;o=ro(u,{publisher:t,name:i,version:s,statTypeName:r})}if(!this.isCursorMarketplaceUrlForAuthHeaders(o))return;const a=xs?"api-version=6.1-preview.1":"*/*;api-version=4.0-preview.1",l={...await this.commonHeadersPromise,Accept:a};try{await this.requestService.request({type:"POST",url:o,headers:l},Me.None)}catch{}}async download(t,i,s){this.logService.trace("ExtensionGalleryService#download",t.identifier.id);const r=vg(t),n=new Date().getTime(),o=s===2?"install":s===3?"update":"",a=o?{uri:`${t.assets.download.uri}${b.parse(t.assets.download.uri).query?"&":"?"}${o}=true`,fallbackUri:`${t.assets.download.fallbackUri}${b.parse(t.assets.download.fallbackUri).query?"&":"?"}${o}=true`}:t.assets.download,c=t.queryContext?.[Mo]?{[Mo]:t.queryContext[Mo]}:void 0,l=await this.getAsset(t.identifier.id,a,$t.VSIX,t.version,c?{headers:c}:void 0);try{await this.fileService.writeFile(i,l.stream)}catch(u){try{await this.fileService.del(i)}catch(h){this.logService.warn(`Error while deleting the file ${i.toString()}`,le(h))}throw new xc(le(u),"DownloadFailedWriting")}this.telemetryService.publicLog("galleryService:downloadVSIX",{...r,duration:new Date().getTime()-n})}async downloadSignatureArchive(t,i){if(!t.assets.signature)throw new Error("No signature asset found");this.logService.trace("ExtensionGalleryService#downloadSignatureArchive",t.identifier.id);const s=await this.getAsset(t.identifier.id,t.assets.signature,$t.Signature,t.version);try{await this.fileService.writeFile(i,s.stream)}catch(r){try{await this.fileService.del(i)}catch(n){this.logService.warn(`Error while deleting the file ${i.toString()}`,le(n))}throw new xc(le(r),"DownloadFailedWriting")}}async getReadme(t,i){if(t.assets.readme){const s=await this.getAsset(t.identifier.id,t.assets.readme,$t.Details,t.version,{},i);return await Pn(s)||""}return""}async getManifest(t,i){if(t.assets.manifest){const s=await this.getAsset(t.identifier.id,t.assets.manifest,$t.Manifest,t.version,{},i),r=await Pn(s);return r?JSON.parse(r):null}return null}async getManifestFromRawExtensionVersion(t,i,s){const r=ur(i,$t.Manifest);if(!r)throw new Error("Manifest was not found");const n={"Accept-Encoding":"gzip"},o=await this.getAsset(t,r,$t.Manifest,i.version,{headers:n});return await Qu(o)}async getCoreTranslation(t,i){const s=t.assets.coreTranslations.filter(r=>r[0]===i.toUpperCase())[0];if(s){const r=await this.getAsset(t.identifier.id,s[1],s[0],t.version),n=await Pn(r);return n?JSON.parse(n):null}return null}async getChangelog(t,i){if(t.assets.changelog){const s=await this.getAsset(t.identifier.id,t.assets.changelog,$t.Changelog,t.version,{},i);return await Pn(s)||""}return""}async getAllCompatibleVersions(t,i,s){const r=await this.extensionGalleryManifestService.getExtensionGalleryManifest();if(!r)throw new Error("No extension gallery service configured.");let n=new Oc().withFlags("IncludeVersions","IncludeCategoryAndTags","IncludeFiles","IncludeVersionProperties").withPage(1,1);t.uuid?n=n.withFilter("ExtensionId",t.uuid):n=n.withFilter("ExtensionName",t.id);const{galleryExtensions:o}=await this.queryRawGalleryExtensions(n,r,Me.None);if(!o.length)return[];const a=Nc(o[0]);if(Do(a,s))return[];const c=[],l={version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion};await Promise.all(o[0].versions.map(async f=>{try{await this.isValidVersion(t.id,f,{compatible:!0,productVersion:l,targetPlatform:s,version:i?2:0},o[0].publisher.displayName,a)&&this.areApiProposalsCompatible(t,Lg(f))&&c.push(f)}catch{}}));const u=[],h=new Set;for(const f of dS(c,s))h.has(f.version)||(h.add(f.version),u.push({version:f.version,date:f.lastUpdated,isPreReleaseVersion:Ac(f)}));return u}async getAsset(t,i,s,r,n={},o=Me.None){const a=await this.commonHeadersPromise,c={type:"GET"},l={...a,...n.headers||{}};n={...n,...c,headers:l};const u=i.uri,h=i.fallbackUri,f={...n,url:u};let p;try{if(p=await this.requestService.request(f,o),p.res.statusCode===200)return p;const g=await Pn(p);throw new Error(`Expected 200, got back ${p.res.statusCode} instead.
${g}`)}catch(g){if(xr(g))throw g;const v=le(g);this.telemetryService.publicLog2("galleryService:cdnFallback",{extension:t,assetType:s,message:v,extensionVersion:r,server:this.getHeaderValue(p?.res.headers,Ih),activityId:this.getHeaderValue(p?.res.headers,Ph),endToEndId:this.getHeaderValue(p?.res.headers,Ch)});const w={...n,url:h};return this.requestService.request(w,o)}}async getEngine(t,i){let s=Rg(i);if(!s){this.telemetryService.publicLog2("galleryService:engineFallback",{extension:t,extensionVersion:i.version});const r=await this.getManifestFromRawExtensionVersion(t,i,Me.None);if(!r)throw new Error("Manifest was not found");s=r.engines.vscode}return s}async getExtensionsControlManifest(){if(!this.isEnabled())throw new Error("No extension gallery service configured.");if(!this.extensionsControlUrl)return{malicious:[],deprecated:{},search:[]};let t;this.logService.info("Getting extensions control");try{if(t=await Promise.race([this.requestService.request({type:"GET",url:this.extensionsControlUrl,timeout:3e3},Me.None),new Promise((a,c)=>{setTimeout(()=>{c(new Error("Timeout getting extensions control"))},3e3)})]),t.res.statusCode!==200)throw new Error("Could not get extensions report.")}catch(a){return this.logService.error("Error getting extensions control manifest",a),{malicious:[],deprecated:{},search:[]}}const i=await Qu(t),s=[],r={},n=[],o=[];if(i){for(const a of i.malicious)nh.test(a)?s.push({id:a}):s.push(a);if(i.migrateToPreRelease)for(const[a,c]of Object.entries(i.migrateToPreRelease))(!c.engine||Ic(c.engine,this.productService.vscodeVersion,this.productService.date))&&(r[a.toLowerCase()]={disallowInstall:!0,extension:{id:c.id,displayName:c.displayName,autoMigrate:{storage:!!c.migrateStorage},preRelease:!0}});if(i.deprecated)for(const[a,c]of Object.entries(i.deprecated))c&&(r[a.toLowerCase()]=is(c)?{}:c);if(i.search)for(const a of i.search)n.push(a);if(Array.isArray(i.extensionsEnabledWithPreRelease))for(const a of i.extensionsEnabledWithPreRelease)o.push(a.toLowerCase())}return{malicious:s,deprecated:r,search:n,extensionsEnabledWithPreRelease:o}}},Tc=__decorate([__param(2,ar),__param(3,fe),__param(4,xi),__param(5,fi),__param(6,ht),__param(7,Et),__param(8,Zt),__param(9,cr),__param(10,An)],Tc),Ag=class extends Tc{constructor(t,i,s,r,n,o,a,c,l,u){super(t,void 0,i,s,r,n,o,a,c,l,u)}},Ag=__decorate([__param(0,oS),__param(1,ar),__param(2,fe),__param(3,xi),__param(4,fi),__param(5,ht),__param(6,Et),__param(7,Zt),__param(8,cr),__param(9,An)],Ag),Mc=class extends Tc{constructor(t,i,s,r,n,o,a,c,l){super(void 0,void 0,t,i,s,r,n,o,a,c,l)}},Mc=__decorate([__param(0,ar),__param(1,fe),__param(2,xi),__param(3,fi),__param(4,ht),__param(5,Et),__param(6,Zt),__param(7,cr),__param(8,An)],Mc)}});import{createWriteStream as SS,promises as xS}from"fs";function hN(e){const t=e.externalFileAttributes>>16||33188;return[448,56,7].map(i=>t&i).reduce((i,s)=>i+s,t&61440)}function kS(e){if(e instanceof Fc)return e;let t;return DS.test(e.message)&&(t="CorruptZip"),new Fc(t,e)}function dN(e,t,i,s,r,n){const o=Vt(t),a=W(s,o);if(!a.startsWith(s))return Promise.reject(new Error(m(145,null,t)));const c=W(s,t);let l;return n.onCancellationRequested(()=>{l?.destroy()}),Promise.resolve(xS.mkdir(a,{recursive:!0})).then(()=>new Promise((u,h)=>{if(!n.isCancellationRequested)try{l=SS(c,{mode:i}),l.once("close",()=>u()),l.once("error",h),e.once("error",h),e.pipe(l)}catch(f){h(f)}}))}function fN(e,t,i,s){let r=ir(()=>Promise.resolve()),n=0;const o=s.onCancellationRequested(()=>{r.cancel(),e.close()});return new Promise((a,c)=>{const l=new kb,u=h=>{h.isCancellationRequested||(n++,e.readEntry())};e.once("error",c),e.once("close",()=>r.then(()=>{s.isCancellationRequested||e.entryCount===n?a():c(new Fc("Incomplete",new Error(m(146,null,n,e.entryCount))))},c)),e.readEntry(),e.on("entry",h=>{if(s.isCancellationRequested)return;if(!i.sourcePathRegex.test(h.fileName)){u(s);return}const f=h.fileName.replace(i.sourcePathRegex,"");if(/\/$/.test(f)){const v=W(t,f);r=ir(w=>xS.mkdir(v,{recursive:!0}).then(()=>u(w)).then(void 0,c));return}const p=IS(e,h),g=hN(h);r=ir(v=>l.queue(()=>p.then(w=>dN(w,f,g,t,i,v).then(()=>u(v)))).then(null,c))})}).finally(()=>o.dispose())}async function PS(e,t=!1){const{open:i}=await import("yauzl");return new Promise((s,r)=>{i(e,t?{lazyEntries:!0}:void 0,(n,o)=>{n?r(kS(n)):s(Qp(o))})})}function IS(e,t){return new Promise((i,s)=>{e.openReadStream(t,(r,n)=>{r?s(kS(r)):i(Qp(n))})})}async function pN(e,t){const{ZipFile:i}=await import("yazl");return new Promise((s,r)=>{const n=new i;t.forEach(a=>{a.contents?n.addBuffer(typeof a.contents=="string"?Buffer.from(a.contents,"utf8"):a.contents,a.path):a.localPath&&n.addFile(a.localPath,a.path)}),n.end();const o=SS(e);n.outputStream.pipe(o),n.outputStream.once("error",r),o.once("error",r),o.once("finish",()=>s(e))})}function mN(e,t,i={},s){const r=new RegExp(i.sourcePath?`^${i.sourcePath}`:"");let n=PS(e,!0);return i.overwrite&&(n=n.then(o=>Ce.rm(t).then(()=>o))),n.then(o=>fN(o,t,{sourcePathRegex:r},s))}function gN(e,t){return PS(e).then(i=>new Promise((s,r)=>{i.on("entry",n=>{n.fileName===t&&IS(i,n).then(o=>s(o),o=>r(o))}),i.once("close",()=>r(new Error(m(147,null,t))))}))}function CS(e,t){return gN(e,t).then(i=>new Promise((s,r)=>{const n=[];i.once("error",r),i.on("data",o=>n.push(o)),i.on("end",()=>s(Buffer.concat(n)))}))}var Og,DS,Fc,Tg=y({"out-build/vs/base/node/zip.js"(){"use strict";Ne(),de(),_e(),di(),ue(),Og="end of central directory record signature not found",DS=new RegExp(Og),Fc=class extends Error{constructor(e,t){let i=t.message;switch(e){case"CorruptZip":i=`Corrupt ZIP: ${i}`;break}super(i),this.type=e,this.cause=t}}}}),Dh,Mg=y({"out-build/vs/platform/download/common/download.js"(){"use strict";se(),Dh=te("downloadService")}}),vN,RS,LS,AS,yN,wN,_N,bN,EN=y({"out-build/vs/base/common/naturalLanguage/korean.js"(){"use strict";vN=new Uint32Array(10),(function(e){e[e.InitialConsonant=4352]="InitialConsonant",e[e.Vowel=4449]="Vowel",e[e.FinalConsonant=4520]="FinalConsonant",e[e.CompatibilityJamo=12593]="CompatibilityJamo"})(RS||(RS={})),(function(e){e[e.NUL=0]="NUL",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z"})(LS||(LS={})),(function(e){e[e.fa=24934]="fa",e[e.fg=26470]="fg",e[e.fq=29030]="fq",e[e.fr=29286]="fr",e[e.ft=29798]="ft",e[e.fv=30310]="fv",e[e.fx=30822]="fx",e[e.hk=27496]="hk",e[e.hl=27752]="hl",e[e.ho=28520]="ho",e[e.ml=27757]="ml",e[e.nj=27246]="nj",e[e.nl=27758]="nl",e[e.np=28782]="np",e[e.qt=29809]="qt",e[e.rt=29810]="rt",e[e.sg=26483]="sg",e[e.sw=30579]="sw"})(AS||(AS={})),yN=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),wN=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),_N=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),bN=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108])}});function NS(...e){return function(t,i){for(let s=0,r=e.length;s<r;s++){const n=e[s](t,i);if(n)return n}return null}}function OS(e,t,i){if(!i||i.length<t.length)return null;let s;return e?s=rm(i,t):s=i.indexOf(t)===0,s?t.length>0?[{start:0,end:t.length}]:[]:null}function SN(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return i===-1?null:[{start:i,end:i+e.length}]}function xN(e,t){return Fg(e.toLowerCase(),t.toLowerCase(),0,0)}function Fg(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]===t[s]){let r=null;return(r=Fg(e,t,i+1,s+1))?MS({start:s,end:s+1},r):null}return Fg(e,t,i,s+1)}function Ug(e){return 97<=e&&e<=122}function Rh(e){return 65<=e&&e<=90}function $g(e){return 48<=e&&e<=57}function kN(e){return e===32||e===9||e===10||e===13}function TS(e){return Ug(e)||Rh(e)||$g(e)}function MS(e,t){return t.length===0?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function FS(e,t){for(let i=t;i<e.length;i++){const s=e.charCodeAt(i);if(Rh(s)||$g(s)||i>0&&!TS(e.charCodeAt(i-1)))return i}return e.length}function Wg(e,t,i,s){if(i===e.length)return[];if(s===t.length)return null;if(e[i]!==t[s].toLowerCase())return null;{let r=null,n=s+1;for(r=Wg(e,t,i+1,s+1);!r&&(n=FS(t,n))<t.length;)r=Wg(e,t,i+1,n),n++;return r===null?null:MS({start:s,end:s+1},r)}}function PN(e){let t=0,i=0,s=0,r=0,n=0;for(let u=0;u<e.length;u++)n=e.charCodeAt(u),Rh(n)&&t++,Ug(n)&&i++,TS(n)&&s++,$g(n)&&r++;const o=t/e.length,a=i/e.length,c=s/e.length,l=r/e.length;return{upperPercent:o,lowerPercent:a,alphaPercent:c,numericPercent:l}}function IN(e){const{upperPercent:t,lowerPercent:i}=e;return i===0&&t>.6}function CN(e){const{upperPercent:t,lowerPercent:i,alphaPercent:s,numericPercent:r}=e;return i>.2&&t<.8&&s>.6&&r<.2}function DN(e){let t=0,i=0,s=0,r=0;for(let n=0;n<e.length;n++)s=e.charCodeAt(n),Rh(s)&&t++,Ug(s)&&i++,kN(s)&&r++;return(t===0||i===0)&&r===0?e.length<=30:t<=5}function US(e,t){if(!t||(t=t.trim(),t.length===0)||!DN(e))return null;t.length>60&&(t=t.substring(0,60));const i=PN(t);if(!CN(i)){if(!IN(i))return null;t=t.toLowerCase()}let s=null,r=0;for(e=e.toLowerCase();r<t.length&&(s=Wg(e,t,0,r))===null;)r=FS(t,r+1);return s}function Hg(){const e=[],t=[];for(let i=0;i<=Uc;i++)t[i]=0;for(let i=0;i<=Uc;i++)e.push(t.slice(0));return e}function $S(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}var RN,Vg,WS,LN,AN,NN,Uc,ON,TN,MN,FN,UN,HS,VS,$N,WN=y({"out-build/vs/base/common/filters.js"(){"use strict";ri(),EN(),lt(),RN=OS.bind(void 0,!1),Vg=OS.bind(void 0,!0),WS=new Set,"()[]{}<>`'\"-/;:,.?!".split("").forEach(e=>WS.add(e.charCodeAt(0))),LN=NS(Vg,US,SN),AN=NS(Vg,US,xN),NN=new Ma(1e4),Uc=128,ON=$S(2*Uc),TN=$S(2*Uc),MN=Hg(),FN=Hg(),UN=Hg(),(function(e){e[e.Diag=1]="Diag",e[e.Left=2]="Left",e[e.LeftLeft=3]="LeftLeft"})(HS||(HS={})),(function(e){e.Default=[-100,0];function t(i){return!i||i.length===2&&i[0]===-100&&i[1]===0}e.isDefault=t})(VS||(VS={})),$N=class{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}}});function d(e,t){if(ye(t)){const i=jg[t];if(i===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return jg[e]=t,{id:e}}var jg,jS=y({"out-build/vs/base/common/codiconsUtil.js"(){"use strict";_e(),jg=Object.create(null)}}),BS,HN=y({"out-build/vs/base/common/codiconsLibrary.js"(){"use strict";jS(),BS={semantic:d("semantic",62e3),githubCopilot:d("github-copilot",62001),plusCircle:d("plus-circle",62002),smileySad:d("smiley-sad",62003),smileyHappy:d("smiley-happy",62004),smileyMedium:d("smiley-medium",62005),sparkleStrikethrough:d("sparkle-strikethrough",62006),keyPlusSparkle:d("key-plus-sparkle",62007),paperclip:d("paperclip",60500),atSign:d("at-sign",60501),image:d("image",60502),logo:d("logo",60503),sparkleTwo:d("sparkle-two",60504),logoSlash:d("logo-slash",60505),arrowsExpand:d("arrows-expand",60506),arrowsContract:d("arrows-contract",60507),expandDiffUp:d("expand-diff-up",60508),expandDiffDown:d("expand-diff-down",60509),add:d("add",6e4),plus:d("plus",6e4),gistNew:d("gist-new",6e4),repoCreate:d("repo-create",6e4),lightbulb:d("lightbulb",60001),lightBulb:d("light-bulb",60001),repo:d("repo",60002),repoDelete:d("repo-delete",60002),gistFork:d("gist-fork",60003),repoForked:d("repo-forked",60003),gitPullRequest:d("git-pull-request",60004),gitPullRequestAbandoned:d("git-pull-request-abandoned",60004),recordKeys:d("record-keys",60005),keyboard:d("keyboard",60005),tag:d("tag",60006),gitPullRequestLabel:d("git-pull-request-label",60006),tagAdd:d("tag-add",60006),tagRemove:d("tag-remove",60006),person:d("person",60007),personFollow:d("person-follow",60007),personOutline:d("person-outline",60007),personFilled:d("person-filled",60007),gitBranch:d("git-branch",60008),gitBranchCreate:d("git-branch-create",60008),gitBranchDelete:d("git-branch-delete",60008),sourceControl:d("source-control",60008),mirror:d("mirror",60009),mirrorPublic:d("mirror-public",60009),star:d("star",60010),starAdd:d("star-add",60010),starDelete:d("star-delete",60010),starEmpty:d("star-empty",60010),comment:d("comment",60011),commentAdd:d("comment-add",60011),alert:d("alert",60012),warning:d("warning",60012),search:d("search",60013),searchSave:d("search-save",60013),logOut:d("log-out",60014),signOut:d("sign-out",60014),logIn:d("log-in",60015),signIn:d("sign-in",60015),eye:d("eye",60016),eyeUnwatch:d("eye-unwatch",60016),eyeWatch:d("eye-watch",60016),circleFilled:d("circle-filled",60017),primitiveDot:d("primitive-dot",60017),closeDirty:d("close-dirty",60017),debugBreakpoint:d("debug-breakpoint",60017),debugBreakpointDisabled:d("debug-breakpoint-disabled",60017),debugHint:d("debug-hint",60017),terminalDecorationSuccess:d("terminal-decoration-success",60017),primitiveSquare:d("primitive-square",60018),edit:d("edit",60019),pencil:d("pencil",60019),info:d("info",60020),issueOpened:d("issue-opened",60020),gistPrivate:d("gist-private",60021),gitForkPrivate:d("git-fork-private",60021),lock:d("lock",60021),mirrorPrivate:d("mirror-private",60021),close:d("close",60022),removeClose:d("remove-close",60022),x:d("x",60022),repoSync:d("repo-sync",60023),sync:d("sync",60023),clone:d("clone",60024),desktopDownload:d("desktop-download",60024),beaker:d("beaker",60025),microscope:d("microscope",60025),vm:d("vm",60026),deviceDesktop:d("device-desktop",60026),file:d("file",60027),fileText:d("file-text",60027),more:d("more",60028),ellipsis:d("ellipsis",60028),kebabHorizontal:d("kebab-horizontal",60028),mailReply:d("mail-reply",60029),reply:d("reply",60029),organization:d("organization",60030),organizationFilled:d("organization-filled",60030),organizationOutline:d("organization-outline",60030),newFile:d("new-file",60031),fileAdd:d("file-add",60031),newFolder:d("new-folder",60032),fileDirectoryCreate:d("file-directory-create",60032),trash:d("trash",60033),trashcan:d("trashcan",60033),history:d("history",60034),clock:d("clock",60034),folder:d("folder",60035),fileDirectory:d("file-directory",60035),symbolFolder:d("symbol-folder",60035),logoGithub:d("logo-github",60036),markGithub:d("mark-github",60036),github:d("github",60036),terminal:d("terminal",60037),console:d("console",60037),repl:d("repl",60037),zap:d("zap",60038),symbolEvent:d("symbol-event",60038),error:d("error",60039),stop:d("stop",60039),variable:d("variable",60040),symbolVariable:d("symbol-variable",60040),array:d("array",60042),symbolArray:d("symbol-array",60042),symbolModule:d("symbol-module",60043),symbolPackage:d("symbol-package",60043),symbolNamespace:d("symbol-namespace",60043),symbolObject:d("symbol-object",60043),symbolMethod:d("symbol-method",60044),symbolFunction:d("symbol-function",60044),symbolConstructor:d("symbol-constructor",60044),symbolBoolean:d("symbol-boolean",60047),symbolNull:d("symbol-null",60047),symbolNumeric:d("symbol-numeric",60048),symbolNumber:d("symbol-number",60048),symbolStructure:d("symbol-structure",60049),symbolStruct:d("symbol-struct",60049),symbolParameter:d("symbol-parameter",60050),symbolTypeParameter:d("symbol-type-parameter",60050),symbolKey:d("symbol-key",60051),symbolText:d("symbol-text",60051),symbolReference:d("symbol-reference",60052),goToFile:d("go-to-file",60052),symbolEnum:d("symbol-enum",60053),symbolValue:d("symbol-value",60053),symbolRuler:d("symbol-ruler",60054),symbolUnit:d("symbol-unit",60054),activateBreakpoints:d("activate-breakpoints",60055),archive:d("archive",60056),arrowBoth:d("arrow-both",60057),arrowDown:d("arrow-down",60058),arrowLeft:d("arrow-left",60059),arrowRight:d("arrow-right",60060),arrowSmallDown:d("arrow-small-down",60061),arrowSmallLeft:d("arrow-small-left",60062),arrowSmallRight:d("arrow-small-right",60063),arrowSmallUp:d("arrow-small-up",60064),arrowUp:d("arrow-up",60065),bell:d("bell",60066),bold:d("bold",60067),book:d("book",60068),bookmark:d("bookmark",60069),debugBreakpointConditionalUnverified:d("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:d("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:d("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:d("debug-breakpoint-data-unverified",60072),debugBreakpointData:d("debug-breakpoint-data",60073),debugBreakpointDataDisabled:d("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:d("debug-breakpoint-log-unverified",60074),debugBreakpointLog:d("debug-breakpoint-log",60075),debugBreakpointLogDisabled:d("debug-breakpoint-log-disabled",60075),briefcase:d("briefcase",60076),broadcast:d("broadcast",60077),browser:d("browser",60078),bug:d("bug",60079),calendar:d("calendar",60080),caseSensitive:d("case-sensitive",60081),check:d("check",60082),checklist:d("checklist",60083),chevronDown:d("chevron-down",60084),chevronLeft:d("chevron-left",60085),chevronRight:d("chevron-right",60086),chevronUp:d("chevron-up",60087),chromeClose:d("chrome-close",60088),chromeMaximize:d("chrome-maximize",60089),chromeMinimize:d("chrome-minimize",60090),chromeRestore:d("chrome-restore",60091),circleOutline:d("circle-outline",60092),circle:d("circle",60092),debugBreakpointUnverified:d("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:d("terminal-decoration-incomplete",60092),circleSlash:d("circle-slash",60093),circuitBoard:d("circuit-board",60094),clearAll:d("clear-all",60095),clippy:d("clippy",60096),closeAll:d("close-all",60097),cloudDownload:d("cloud-download",60098),cloudUpload:d("cloud-upload",60099),code:d("code",60100),collapseAll:d("collapse-all",60101),colorMode:d("color-mode",60102),commentDiscussion:d("comment-discussion",60103),creditCard:d("credit-card",60105),dash:d("dash",60108),dashboard:d("dashboard",60109),database:d("database",60110),debugContinue:d("debug-continue",60111),debugDisconnect:d("debug-disconnect",60112),debugPause:d("debug-pause",60113),debugRestart:d("debug-restart",60114),debugStart:d("debug-start",60115),debugStepInto:d("debug-step-into",60116),debugStepOut:d("debug-step-out",60117),debugStepOver:d("debug-step-over",60118),debugStop:d("debug-stop",60119),debug:d("debug",60120),deviceCameraVideo:d("device-camera-video",60121),deviceCamera:d("device-camera",60122),deviceMobile:d("device-mobile",60123),diffAdded:d("diff-added",60124),diffIgnored:d("diff-ignored",60125),diffModified:d("diff-modified",60126),diffRemoved:d("diff-removed",60127),diffRenamed:d("diff-renamed",60128),diff:d("diff",60129),diffSidebyside:d("diff-sidebyside",60129),discard:d("discard",60130),editorLayout:d("editor-layout",60131),emptyWindow:d("empty-window",60132),exclude:d("exclude",60133),extensions:d("extensions",60134),eyeClosed:d("eye-closed",60135),fileBinary:d("file-binary",60136),fileCode:d("file-code",60137),fileMedia:d("file-media",60138),filePdf:d("file-pdf",60139),fileSubmodule:d("file-submodule",60140),fileSymlinkDirectory:d("file-symlink-directory",60141),fileSymlinkFile:d("file-symlink-file",60142),fileZip:d("file-zip",60143),files:d("files",60144),filter:d("filter",60145),flame:d("flame",60146),foldDown:d("fold-down",60147),foldUp:d("fold-up",60148),fold:d("fold",60149),folderActive:d("folder-active",60150),folderOpened:d("folder-opened",60151),gear:d("gear",60152),gift:d("gift",60153),gistSecret:d("gist-secret",60154),gist:d("gist",60155),gitCommit:d("git-commit",60156),gitCompare:d("git-compare",60157),compareChanges:d("compare-changes",60157),gitMerge:d("git-merge",60158),githubAction:d("github-action",60159),githubAlt:d("github-alt",60160),globe:d("globe",60161),grabber:d("grabber",60162),graph:d("graph",60163),gripper:d("gripper",60164),heart:d("heart",60165),home:d("home",60166),horizontalRule:d("horizontal-rule",60167),hubot:d("hubot",60168),inbox:d("inbox",60169),issueReopened:d("issue-reopened",60171),issues:d("issues",60172),italic:d("italic",60173),jersey:d("jersey",60174),json:d("json",60175),kebabVertical:d("kebab-vertical",60176),key:d("key",60177),law:d("law",60178),lightbulbAutofix:d("lightbulb-autofix",60179),linkExternal:d("link-external",60180),link:d("link",60181),listOrdered:d("list-ordered",60182),listUnordered:d("list-unordered",60183),liveShare:d("live-share",60184),loading:d("loading",60185),location:d("location",60186),mailRead:d("mail-read",60187),mail:d("mail",60188),markdown:d("markdown",60189),megaphone:d("megaphone",60190),mention:d("mention",60191),milestone:d("milestone",60192),gitPullRequestMilestone:d("git-pull-request-milestone",60192),mortarBoard:d("mortar-board",60193),move:d("move",60194),multipleWindows:d("multiple-windows",60195),mute:d("mute",60196),noNewline:d("no-newline",60197),note:d("note",60198),octoface:d("octoface",60199),openPreview:d("open-preview",60200),package:d("package",60201),paintcan:d("paintcan",60202),pin:d("pin",60203),play:d("play",60204),run:d("run",60204),plug:d("plug",60205),preserveCase:d("preserve-case",60206),preview:d("preview",60207),project:d("project",60208),pulse:d("pulse",60209),question:d("question",60210),quote:d("quote",60211),radioTower:d("radio-tower",60212),reactions:d("reactions",60213),references:d("references",60214),refresh:d("refresh",60215),regex:d("regex",60216),remoteExplorer:d("remote-explorer",60217),remote:d("remote",60218),remove:d("remove",60219),replaceAll:d("replace-all",60220),replace:d("replace",60221),repoClone:d("repo-clone",60222),repoForcePush:d("repo-force-push",60223),repoPull:d("repo-pull",60224),repoPush:d("repo-push",60225),report:d("report",60226),requestChanges:d("request-changes",60227),rocket:d("rocket",60228),rootFolderOpened:d("root-folder-opened",60229),rootFolder:d("root-folder",60230),rss:d("rss",60231),ruby:d("ruby",60232),saveAll:d("save-all",60233),saveAs:d("save-as",60234),save:d("save",60235),screenFull:d("screen-full",60236),screenNormal:d("screen-normal",60237),searchStop:d("search-stop",60238),server:d("server",60240),settingsGear:d("settings-gear",60241),settings:d("settings",60242),shield:d("shield",60243),smiley:d("smiley",60244),sortPrecedence:d("sort-precedence",60245),splitHorizontal:d("split-horizontal",60246),splitVertical:d("split-vertical",60247),squirrel:d("squirrel",60248),starFull:d("star-full",60249),starHalf:d("star-half",60250),symbolClass:d("symbol-class",60251),symbolColor:d("symbol-color",60252),symbolConstant:d("symbol-constant",60253),symbolEnumMember:d("symbol-enum-member",60254),symbolField:d("symbol-field",60255),symbolFile:d("symbol-file",60256),symbolInterface:d("symbol-interface",60257),symbolKeyword:d("symbol-keyword",60258),symbolMisc:d("symbol-misc",60259),symbolOperator:d("symbol-operator",60260),symbolProperty:d("symbol-property",60261),wrench:d("wrench",60261),wrenchSubaction:d("wrench-subaction",60261),symbolSnippet:d("symbol-snippet",60262),tasklist:d("tasklist",60263),telescope:d("telescope",60264),textSize:d("text-size",60265),threeBars:d("three-bars",60266),thumbsdown:d("thumbsdown",60267),thumbsup:d("thumbsup",60268),tools:d("tools",60269),triangleDown:d("triangle-down",60270),triangleLeft:d("triangle-left",60271),triangleRight:d("triangle-right",60272),triangleUp:d("triangle-up",60273),twitter:d("twitter",60274),unfold:d("unfold",60275),unlock:d("unlock",60276),unmute:d("unmute",60277),unverified:d("unverified",60278),verified:d("verified",60279),versions:d("versions",60280),vmActive:d("vm-active",60281),vmOutline:d("vm-outline",60282),vmRunning:d("vm-running",60283),watch:d("watch",60284),whitespace:d("whitespace",60285),wholeWord:d("whole-word",60286),window:d("window",60287),wordWrap:d("word-wrap",60288),zoomIn:d("zoom-in",60289),zoomOut:d("zoom-out",60290),listFilter:d("list-filter",60291),listFlat:d("list-flat",60292),listSelection:d("list-selection",60293),selection:d("selection",60293),listTree:d("list-tree",60294),debugBreakpointFunctionUnverified:d("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:d("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:d("debug-breakpoint-function-disabled",60296),debugStackframeActive:d("debug-stackframe-active",60297),circleSmallFilled:d("circle-small-filled",60298),debugStackframeDot:d("debug-stackframe-dot",60298),terminalDecorationMark:d("terminal-decoration-mark",60298),debugStackframe:d("debug-stackframe",60299),debugStackframeFocused:d("debug-stackframe-focused",60299),debugBreakpointUnsupported:d("debug-breakpoint-unsupported",60300),symbolString:d("symbol-string",60301),debugReverseContinue:d("debug-reverse-continue",60302),debugStepBack:d("debug-step-back",60303),debugRestartFrame:d("debug-restart-frame",60304),debugAlt:d("debug-alt",60305),callIncoming:d("call-incoming",60306),callOutgoing:d("call-outgoing",60307),menu:d("menu",60308),expandAll:d("expand-all",60309),feedback:d("feedback",60310),gitPullRequestReviewer:d("git-pull-request-reviewer",60310),groupByRefType:d("group-by-ref-type",60311),ungroupByRefType:d("ungroup-by-ref-type",60312),account:d("account",60313),gitPullRequestAssignee:d("git-pull-request-assignee",60313),bellDot:d("bell-dot",60314),debugConsole:d("debug-console",60315),library:d("library",60316),output:d("output",60317),runAll:d("run-all",60318),syncIgnored:d("sync-ignored",60319),pinned:d("pinned",60320),githubInverted:d("github-inverted",60321),serverProcess:d("server-process",60322),serverEnvironment:d("server-environment",60323),pass:d("pass",60324),issueClosed:d("issue-closed",60324),stopCircle:d("stop-circle",60325),playCircle:d("play-circle",60326),record:d("record",60327),debugAltSmall:d("debug-alt-small",60328),vmConnect:d("vm-connect",60329),cloud:d("cloud",60330),merge:d("merge",60331),export:d("export",60332),graphLeft:d("graph-left",60333),magnet:d("magnet",60334),notebook:d("notebook",60335),redo:d("redo",60336),checkAll:d("check-all",60337),pinnedDirty:d("pinned-dirty",60338),passFilled:d("pass-filled",60339),circleLargeFilled:d("circle-large-filled",60340),circleLarge:d("circle-large",60341),circleLargeOutline:d("circle-large-outline",60341),combine:d("combine",60342),gather:d("gather",60342),table:d("table",60343),variableGroup:d("variable-group",60344),typeHierarchy:d("type-hierarchy",60345),typeHierarchySub:d("type-hierarchy-sub",60346),typeHierarchySuper:d("type-hierarchy-super",60347),gitPullRequestCreate:d("git-pull-request-create",60348),runAbove:d("run-above",60349),runBelow:d("run-below",60350),notebookTemplate:d("notebook-template",60351),debugRerun:d("debug-rerun",60352),workspaceTrusted:d("workspace-trusted",60353),workspaceUntrusted:d("workspace-untrusted",60354),workspaceUnknown:d("workspace-unknown",60355),terminalCmd:d("terminal-cmd",60356),terminalDebian:d("terminal-debian",60357),terminalLinux:d("terminal-linux",60358),terminalPowershell:d("terminal-powershell",60359),terminalTmux:d("terminal-tmux",60360),terminalUbuntu:d("terminal-ubuntu",60361),terminalBash:d("terminal-bash",60362),arrowSwap:d("arrow-swap",60363),copy:d("copy",60364),personAdd:d("person-add",60365),filterFilled:d("filter-filled",60366),wand:d("wand",60367),debugLineByLine:d("debug-line-by-line",60368),inspect:d("inspect",60369),layers:d("layers",60370),layersDot:d("layers-dot",60371),layersActive:d("layers-active",60372),compass:d("compass",60373),compassDot:d("compass-dot",60374),compassActive:d("compass-active",60375),azure:d("azure",60376),issueDraft:d("issue-draft",60377),gitPullRequestClosed:d("git-pull-request-closed",60378),gitPullRequestDraft:d("git-pull-request-draft",60379),debugAll:d("debug-all",60380),debugCoverage:d("debug-coverage",60381),runErrors:d("run-errors",60382),folderLibrary:d("folder-library",60383),debugContinueSmall:d("debug-continue-small",60384),beakerStop:d("beaker-stop",60385),graphLine:d("graph-line",60386),graphScatter:d("graph-scatter",60387),pieChart:d("pie-chart",60388),bracket:d("bracket",60175),bracketDot:d("bracket-dot",60389),bracketError:d("bracket-error",60390),lockSmall:d("lock-small",60391),azureDevops:d("azure-devops",60392),verifiedFilled:d("verified-filled",60393),newline:d("newline",60394),layout:d("layout",60395),layoutActivitybarLeft:d("layout-activitybar-left",60396),layoutActivitybarRight:d("layout-activitybar-right",60397),layoutPanelLeft:d("layout-panel-left",60398),layoutPanelCenter:d("layout-panel-center",60399),layoutPanelJustify:d("layout-panel-justify",60400),layoutPanelRight:d("layout-panel-right",60401),layoutPanel:d("layout-panel",60402),layoutSidebarLeft:d("layout-sidebar-left",60403),layoutSidebarRight:d("layout-sidebar-right",60404),layoutStatusbar:d("layout-statusbar",60405),layoutMenubar:d("layout-menubar",60406),layoutCentered:d("layout-centered",60407),target:d("target",60408),indent:d("indent",60409),recordSmall:d("record-small",60410),errorSmall:d("error-small",60411),terminalDecorationError:d("terminal-decoration-error",60411),arrowCircleDown:d("arrow-circle-down",60412),arrowCircleLeft:d("arrow-circle-left",60413),arrowCircleRight:d("arrow-circle-right",60414),arrowCircleUp:d("arrow-circle-up",60415),layoutSidebarRightOff:d("layout-sidebar-right-off",60416),layoutPanelOff:d("layout-panel-off",60417),layoutSidebarLeftOff:d("layout-sidebar-left-off",60418),blank:d("blank",60419),heartFilled:d("heart-filled",60420),map:d("map",60421),mapHorizontal:d("map-horizontal",60421),foldHorizontal:d("fold-horizontal",60421),mapFilled:d("map-filled",60422),mapHorizontalFilled:d("map-horizontal-filled",60422),foldHorizontalFilled:d("fold-horizontal-filled",60422),circleSmall:d("circle-small",60423),bellSlash:d("bell-slash",60424),bellSlashDot:d("bell-slash-dot",60425),commentUnresolved:d("comment-unresolved",60426),gitPullRequestGoToChanges:d("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:d("git-pull-request-new-changes",60428),searchFuzzy:d("search-fuzzy",60429),commentDraft:d("comment-draft",60430),send:d("send",60431),sparkle:d("sparkle",60432),insert:d("insert",60433),mic:d("mic",60434),thumbsdownFilled:d("thumbsdown-filled",60435),thumbsupFilled:d("thumbsup-filled",60436),coffee:d("coffee",60437),snake:d("snake",60438),game:d("game",60439),vr:d("vr",60440),chip:d("chip",60441),piano:d("piano",60442),music:d("music",60443),micFilled:d("mic-filled",60444),repoFetch:d("repo-fetch",60445),copilot:d("copilot",60446),lightbulbSparkle:d("lightbulb-sparkle",60447),robot:d("robot",60448),sparkleFilled:d("sparkle-filled",60449),diffSingle:d("diff-single",60450),diffMultiple:d("diff-multiple",60451),surroundWith:d("surround-with",60452),share:d("share",60453),gitStash:d("git-stash",60454),gitStashApply:d("git-stash-apply",60455),gitStashPop:d("git-stash-pop",60456),vscode:d("vscode",60457),vscodeInsiders:d("vscode-insiders",60458),codeOss:d("code-oss",60459),runCoverage:d("run-coverage",60460),runAllCoverage:d("run-all-coverage",60461),coverage:d("coverage",60462),githubProject:d("github-project",60463),mapVertical:d("map-vertical",60464),foldVertical:d("fold-vertical",60464),mapVerticalFilled:d("map-vertical-filled",60465),foldVerticalFilled:d("fold-vertical-filled",60465),goToSearch:d("go-to-search",60466),percentage:d("percentage",60467),sortPercentage:d("sort-percentage",60467),attach:d("attach",60468),goToEditingSession:d("go-to-editing-session",60469),editSession:d("edit-session",60470),codeReview:d("code-review",60471),copilotWarning:d("copilot-warning",60472),python:d("python",60473),copilotLarge:d("copilot-large",60474),copilotWarningLarge:d("copilot-warning-large",60475),keyboardTab:d("keyboard-tab",60476),copilotBlocked:d("copilot-blocked",60477),copilotNotConnected:d("copilot-not-connected",60478),flag:d("flag",60479),lightbulbEmpty:d("lightbulb-empty",60480),symbolMethodArrow:d("symbol-method-arrow",60481),copilotUnavailable:d("copilot-unavailable",60482),repoPinned:d("repo-pinned",60483),keyboardTabAbove:d("keyboard-tab-above",60484),keyboardTabBelow:d("keyboard-tab-below",60485),gitPullRequestDone:d("git-pull-request-done",60486),mcp:d("mcp",60487),extensionsLarge:d("extensions-large",60488),layoutPanelDock:d("layout-panel-dock",60489),layoutSidebarLeftDock:d("layout-sidebar-left-dock",60490),layoutSidebarRightDock:d("layout-sidebar-right-dock",60491),terminalTwo:d("terminal-two",60800),checkTwo:d("check-two",60801),xTwo:d("x-two",60802),expander:d("expander",60803),restore:d("restore",60804),pinTwo:d("pin-two",60805),stopTwo:d("stop-two",60806),brain:d("brain",60807),magnifyingGlass:d("magnifying-glass",60808),imageTwo:d("image-two",60809),microphone:d("microphone",60810),submit:d("submit",60811),running:d("running",60812),fileAddTwo:d("file-add-two",60813),infinity:d("infinity",60814),editTwo:d("edit-two",60815),stopThree:d("stop-three",60816),warningTwo:d("warning-two",60817),arrowLeftTwo:d("arrow-left-two",60818),redoTwo:d("redo-two",60819),infoTwo:d("info-two",60820),chat:d("chat",60821),thumbsDown:d("thumbs-down",60822),thumbsUp:d("thumbs-up",60823),thumbsDownFilled:d("thumbs-down-filled",60824),thumbsUpFilled:d("thumbs-up-filled",60825),copyTwo:d("copy-two",60826),ellipsisTwo:d("ellipsis-two",60827),eyeTwo:d("eye-two",60828),globeTwo:d("globe-two",60829),reload:d("reload",60830),folderTwo:d("folder-two",60831),eraser:d("eraser",60832),swirlSparkle:d("swirl-sparkle",60833),sendTwo:d("send-two",60834),inboxTwo:d("inbox-two",60835),fileTwo:d("file-two",60836),list:d("list",60837),calendarTwo:d("calendar-two",60838),openNotebook:d("open-notebook",60839),paperWords:d("paper-words",60840),mortarboard:d("mortarboard",60841),lightning:d("lightning",60842),hammer:d("hammer",60843),keyboardTwo:d("keyboard-two",60844),arrowUpTwo:d("arrow-up-two",60845),import:d("import",60846),targetTwo:d("target-two",60847),tab:d("tab",60848),magic:d("magic",60849),cloneTwo:d("clone-two",60850),brush:d("brush",60851),branch:d("branch",60852),addTwo:d("add-two",60853),historyTwo:d("history-two",60854),cloudTwo:d("cloud-two",60855),review:d("review",60856),plusSquare:d("plus-square",60857),checkCircled:d("check-circled",60858),dottedCircle:d("dotted-circle",60859),warnCircle:d("warn-circle",60860),downLocalMachine:d("down-local-machine",60861),mergeUpwards:d("merge-upwards",60862),asterisk:d("asterisk",60863),time:d("time",60864),arrowUpRight:d("arrow-up-right",60865),arrowUpRightSquare:d("arrow-up-right-square",60866),bubbleAndPencil:d("bubble-and-pencil",60867),downloadOnSquare:d("download-on-square",60868),shippingBox:d("shipping-box",60869),chevronForwardDotted:d("chevron-forward-dotted",60870),cylinderSplit:d("cylinder-split",60871),cubeNodes:d("cube-nodes",60872),clipboardList:d("clipboard-list",60873),circleShine:d("circle-shine",60874),chevronUpDown:d("chevron-up-down",60875),cube:d("cube",60876),telecom:d("telecom",60877),micTwo:d("mic-two",60878),hourglass:d("hourglass",60879),todos:d("todos",60880),hourglassTwo:d("hourglass-two",60881),laptop:d("laptop",60882),grep:d("grep",60883),chevronDblLeft:d("chevron-dbl-left",60884),squareAndPencil:d("square-and-pencil",60885),doubleTerminal:d("double-terminal",60886),sidebarLeft:d("sidebar-left",60887),filesTwo:d("files-two",60888),cursor:d("cursor",60889),compose:d("compose",60894),cursorBiggest:d("cursor-biggest",60899),terminalFilled:d("terminal-filled",60900),rectangleDashed:d("rectangle-dashed",60901),squareArrow:d("square-arrow",60902),unfoldDashed:d("unfold-dashed",60904),foldDashed:d("fold-dashed",60905)}}});function zS(){return Object.values(U)}var qS,U,$c=y({"out-build/vs/base/common/codicons.js"(){"use strict";jS(),HN(),qS={dialogError:d("dialog-error","error"),dialogWarning:d("dialog-warning","warning"),dialogInfo:d("dialog-info","info"),dialogClose:d("dialog-close","close"),treeItemExpanded:d("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:d("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:d("tree-filter-on-type-off","list-selection"),treeFilterClear:d("tree-filter-clear","close"),treeItemLoading:d("tree-item-loading","loading"),menuSelection:d("menu-selection","check"),menuSubmenu:d("menu-submenu","chevron-right"),menuBarMore:d("menubar-more","more"),scrollbarButtonLeft:d("scrollbar-button-left","triangle-left"),scrollbarButtonRight:d("scrollbar-button-right","triangle-right"),scrollbarButtonUp:d("scrollbar-button-up","triangle-up"),scrollbarButtonDown:d("scrollbar-button-down","triangle-down"),toolBarMore:d("toolbar-more","more"),quickInputBack:d("quick-input-back","arrow-left"),dropDownButton:d("drop-down-button",60084),symbolCustomColor:d("symbol-customcolor",60252),exportIcon:d("export",60332),workspaceUnspecified:d("workspace-unspecified",60355),newLine:d("newline",60394),gitFetch:d("git-fetch",60445),lightbulbSparkleAutofix:d("lightbulb-sparkle-autofix",60447),debugBreakpointPending:d("debug-breakpoint-pending",60377)},U={...BS,...qS}}}),Bg,$r,zg=y({"out-build/vs/base/common/themables.js"(){"use strict";$c(),(function(e){function t(i){return i&&typeof i=="object"&&typeof i.id=="string"}e.isThemeColor=t})(Bg||(Bg={})),(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(f){const p=t.exec(f.id);if(!p)return i(U.error);const[,g,v]=p,w=["codicon","codicon-"+g];return v&&w.push("codicon-modifier-"+v.substring(1)),w}e.asClassNameArray=i;function s(f){const p=t.exec(f.id);if(!p)return s(U.error);const[,g,v]=p;let w=`codicon codicon-${g}`;return v&&(w+=` codicon-modifier-${v.substring(1)}`),w}e.asClassName=s;function r(f){const p=t.exec(f.id);if(!p)return r(U.error);const[,g,v]=p;let w=`.codicon.codicon-${g}`;return v&&(w+=`.codicon-modifier-${v.substring(1)}`),w}e.asCSSSelector=r;function n(f){return f&&typeof f=="object"&&typeof f.id=="string"&&(typeof f.color>"u"||Bg.isThemeColor(f.color))}e.isThemeIcon=n;const o=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);function a(f){const p=o.exec(f);if(!p)return;const[,g]=p;return{id:g}}e.fromString=a;function c(f){return{id:f}}e.fromId=c;function l(f,p){let g=f.id;const v=g.lastIndexOf("~");return v!==-1&&(g=g.substring(0,v)),p&&(g=`${g}~${p}`),{id:g}}e.modify=l;function u(f){const p=f.id.lastIndexOf("~");if(p!==-1)return f.id.substring(p+1)}e.getModifier=u;function h(f,p){return f.id===p.id&&f.color?.id===p.color?.id}e.isEqual=h})($r||($r={}))}});function VN(e){return e.replace(GS,(t,i)=>i?t:`\\${t}`)}var Lh,GS,jN,BN,zN,qN=y({"out-build/vs/base/common/iconLabels.js"(){"use strict";WN(),lt(),zg(),Lh=new RegExp(`\\$\\(${$r.iconNameExpression}(?:${$r.iconModifierExpression})?\\)`,"g"),GS=new RegExp(`(\\\\)?${Lh.source}`,"g"),jN=new RegExp(`\\\\${Lh.source}`,"g"),BN=new RegExp(`(\\s)?(\\\\)?${Lh.source}(\\s)?`,"g"),zN=new RegExp(`\\$\\(${$r.iconNameCharacter}+\\)`,"g")}});function Wc(e){return e instanceof Ls?!0:e&&typeof e=="object"?typeof e.value=="string"&&(typeof e.isTrusted=="boolean"||typeof e.isTrusted=="object"||e.isTrusted===void 0)&&(typeof e.supportThemeIcons=="boolean"||e.supportThemeIcons===void 0):!1}function GN(e){return e.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function QN(e,t){const i=e.match(/^`+/gm)?.reduce((r,n)=>r.length>n.length?r:n).length??0,s=i>=3?i+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join(`
`)}function JN(e){const t=[],i=e.split("|").map(r=>r.trim());e=i[0];const s=i[1];if(s){const r=/height=(\d+)/.exec(s),n=/width=(\d+)/.exec(s),o=r?r[1]:"",a=n?n[1]:"",c=isFinite(parseInt(a)),l=isFinite(parseInt(o));c&&t.push(`width="${a}"`),l&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}var QS,Ls,Ah=y({"out-build/vs/base/common/htmlContent.js"(){"use strict";ve(),qN(),xe(),_t(),lt(),Y(),(function(e){e[e.Paragraph=0]="Paragraph",e[e.Break=1]="Break"})(QS||(QS={})),Ls=class iC{static lift(t){const i=new iC(t.value,t);return i.uris=t.uris,i.baseUri=t.baseUri?b.revive(t.baseUri):void 0,i}constructor(t="",i=!1){if(this.value=t,typeof this.value!="string")throw Ae("value");typeof i=="boolean"?(this.isTrusted=i,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=i.isTrusted??void 0,this.supportThemeIcons=i.supportThemeIcons??!1,this.supportHtml=i.supportHtml??!1)}appendText(t,i=0){return this.value+=GN(this.supportThemeIcons?VN(t):t).replace(/([ \t]+)/g,(s,r)=>" ".repeat(r.length)).replace(/\>/gm,"\\>").replace(/\n/g,i===1?`\\
`:`
`),this}appendMarkdown(t){return this.value+=t,this}appendCodeblock(t,i){return this.value+=`
${QN(i,t)}
`,this}appendLink(t,i,s){return this.value+="[",this.value+=this._escape(i,"]"),this.value+="](",this.value+=this._escape(String(t),")"),s&&(this.value+=` "${this._escape(this._escape(s,'"'),")")}"`),this.value+=")",this}_escape(t,i){const s=new RegExp(Dr(i),"g");return t.replace(s,(r,n)=>t.charAt(n-1)!=="\\"?`\\${r}`:r)}}}});function vt(e,t){if(e instanceof et)return e;let i;return e instanceof xc?i=new et(e.message,e.code==="DownloadFailedWriting"?"DownloadFailedWriting":"Gallery"):i=new et(e.message,xr(e)?"Cancelled":t??"Internal"),i.stack=e.stack,i}function qg(e,t,{extensionData:i,verificationStatus:s,duration:r,error:n,source:o,durationSinceUpdate:a}){e.publicLog(t,{...i,source:o,duration:r,durationSinceUpdate:a,success:!n,errorcode:n?.code,verificationStatus:s===bt.Success?"Verified":s??"Unverified"})}var Nh,Oh,Gg,Th=y({"out-build/vs/platform/extensionManagement/common/abstractExtensionManagementService.js"(){"use strict";kt(),Ne(),Ft(),ve(),ie(),V(),ri(),K(),Y(),ue(),Ng(),ki(),ls(),cs(),dh(),Ie(),mi(),ji(),qi(),Qi(),Ah(),Nh=class extends G{constructor(t,i){super(),this.productService=t,this.allowedExtensionsService=i}async canInstall(t){const i=this.allowedExtensionsService.isAllowed({id:t.identifier.id,publisherDisplayName:t.publisherDisplayName});if(i!==!0)return new Ls(m(1909,null,i.value));if(!await this.isExtensionPlatformCompatible(t)){const s=xs?"https://aka.ms/vscode-web-extensions-guide":"https://aka.ms/vscode-platform-specific-extensions";return new Ls(`${m(1910,null,t.displayName??t.identifier.id,this.productService.nameLong,t4(await this.getTargetPlatform()))} [${m(1911,null)}](${s})`)}return!0}async isExtensionPlatformCompatible(t){const i=await this.getTargetPlatform();return t.allTargetPlatforms.some(s=>lg(s,t.allTargetPlatforms,i))}},Nh=__decorate([__param(0,Et),__param(1,cr)],Nh),Oh=class extends Nh{get onInstallExtension(){return this._onInstallExtension.event}get onDidInstallExtensions(){return this._onDidInstallExtensions.event}get onUninstallExtension(){return this._onUninstallExtension.event}get onDidUninstallExtension(){return this._onDidUninstallExtension.event}get onDidUpdateExtensionMetadata(){return this._onDidUpdateExtensionMetadata.event}constructor(t,i,s,r,n,o,a){super(n,o),this.galleryService=t,this.telemetryService=i,this.uriIdentityService=s,this.logService=r,this.userDataProfilesService=a,this.lastReportTimestamp=0,this.installingExtensions=new Map,this.uninstallingExtensions=new Map,this._onInstallExtension=this._register(new R),this._onDidInstallExtensions=this._register(new R),this._onUninstallExtension=this._register(new R),this._onDidUninstallExtension=this._register(new R),this._onDidUpdateExtensionMetadata=this._register(new R),this.participants=[],this._register(Se(()=>{this.installingExtensions.forEach(({task:c})=>c.cancel()),this.uninstallingExtensions.forEach(c=>c.cancel()),this.installingExtensions.clear(),this.uninstallingExtensions.clear()}))}async installFromGallery(t,i={}){try{const r=(await this.installGalleryExtensions([{extension:t,options:i}])).find(({identifier:n})=>ge(n,t.identifier));if(r?.local)return r?.local;throw r?.error?r.error:new et(`Unknown error while installing extension ${t.identifier.id}`,"Unknown")}catch(s){throw vt(s)}}async installGalleryExtensions(t){if(!this.galleryService.isEnabled())throw new et(m(1912,null),"NotAllowed");const i=[],s=[];return await Promise.allSettled(t.map(async({extension:r,options:n})=>{try{const o=await this.checkAndGetCompatibleVersion(r,!!n?.installGivenVersion,!!n?.installPreReleaseVersion,n.productVersion??{version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion});s.push({...o,options:n})}catch(o){i.push({identifier:r.identifier,operation:2,source:r,error:o,profileLocation:n.profileLocation??this.getCurrentExtensionsManifestLocation()})}})),s.length&&i.push(...await this.installExtensions(s)),i}async uninstall(t,i){return this.logService.trace("ExtensionManagementService#uninstall",t.identifier.id),this.uninstallExtensions([{extension:t,options:i}])}async toggleAppliationScope(t,i){if(y4(t.manifest)||t.isBuiltin)return t;if(t.isApplicationScoped){let s=await this.updateMetadata(t,{isApplicationScoped:!1},this.userDataProfilesService.defaultProfile.extensionsResource);this.uriIdentityService.extUri.isEqual(i,this.userDataProfilesService.defaultProfile.extensionsResource)||(s=await this.copyExtension(t,this.userDataProfilesService.defaultProfile.extensionsResource,i));for(const r of this.userDataProfilesService.profiles){const n=(await this.getInstalled(1,r.extensionsResource)).find(o=>ge(o.identifier,t.identifier));n?this._onDidUpdateExtensionMetadata.fire({local:n,profileLocation:r.extensionsResource}):this._onDidUninstallExtension.fire({identifier:t.identifier,profileLocation:r.extensionsResource})}return s}else{const s=this.uriIdentityService.extUri.isEqual(i,this.userDataProfilesService.defaultProfile.extensionsResource)?await this.updateMetadata(t,{isApplicationScoped:!0},this.userDataProfilesService.defaultProfile.extensionsResource):await this.copyExtension(t,i,this.userDataProfilesService.defaultProfile.extensionsResource,{isApplicationScoped:!0});return this._onDidInstallExtensions.fire([{identifier:s.identifier,operation:2,local:s,profileLocation:this.userDataProfilesService.defaultProfile.extensionsResource,applicationScoped:!0}]),s}}getExtensionsControlManifest(){const t=new Date().getTime();return(!this.extensionsControlManifest||t-this.lastReportTimestamp>1e3*60*5)&&(this.extensionsControlManifest=this.updateControlCache(),this.lastReportTimestamp=t),this.extensionsControlManifest}registerParticipant(t){this.participants.push(t)}async resetPinnedStateForAllUserExtensions(t){try{await this.joinAllSettled(this.userDataProfilesService.profiles.map(async i=>{const s=await this.getInstalled(1,i.extensionsResource);await this.joinAllSettled(s.map(async r=>{r.pinned!==t&&await this.updateMetadata(r,{pinned:t},i.extensionsResource)}))}))}catch(i){throw this.logService.error("Error while resetting pinned state for all user extensions",le(i)),i}}async installExtensions(t){const i=new Map,s=new Map,r=[],n=(c,l)=>`${pi.create(c).toString()}-${l.toString()}`,o=(c,l,u,h)=>{if(!b.isUri(l)){if(s.has(`${l.identifier.id.toLowerCase()}-${u.profileLocation.toString()}`))return;const g=this.installingExtensions.get(n(l,u.profileLocation));if(g){if(h&&this.canWaitForTask(h,g.task)){const v=g.task.identifier;this.logService.info("Waiting for already requested installing extension",v.id,h.identifier.id,u.profileLocation.toString()),g.waitingTasks.push(h),r.push(z.toPromise(z.filter(this.onDidInstallExtensions,w=>w.some(S=>ge(S.identifier,v)))).then(w=>{if(this.logService.info("Finished waiting for already requested installing extension",v.id,h.identifier.id,u.profileLocation.toString()),!w.find(E=>ge(E.identifier,v))?.local)throw new Error(`Extension ${v.id} is not installed`)}))}return}}const f=this.createInstallExtensionTask(c,l,u),p=`${Ai(c.publisher,c.name)}-${u.profileLocation.toString()}`;s.set(p,{task:f,root:h}),this._onInstallExtension.fire({identifier:f.identifier,source:l,profileLocation:u.profileLocation}),this.logService.info("Installing extension:",f.identifier.id,u),b.isUri(l)||this.installingExtensions.set(n(l,u.profileLocation),{task:f,waitingTasks:[]})};try{for(const{manifest:l,extension:u,options:h}of t){const f=h.isApplicationScoped||h.isBuiltin||y4(l),p={...h,installOnlyNewlyAddedFromExtensionPack:h.installOnlyNewlyAddedFromExtensionPack??!b.isUri(u),isApplicationScoped:f,profileLocation:f?this.userDataProfilesService.defaultProfile.extensionsResource:h.profileLocation??this.getCurrentExtensionsManifestLocation(),productVersion:h.productVersion??{version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion}},g=b.isUri(u)?void 0:this.installingExtensions.get(n(u,p.profileLocation));g?(this.logService.info("Extension is already requested to install",g.task.identifier.id,p.profileLocation.toString()),r.push(g.task.waitUntilTaskIsFinished())):o(l,u,p,void 0)}await Promise.all([...s.values()].map(async({task:l})=>{if(l.options.donotIncludePackAndDependencies)this.logService.info("Installing the extension without checking dependencies and pack",l.identifier.id);else try{const u=await this.getAllDepsAndPackExtensions(l.identifier,l.manifest,!!l.options.installOnlyNewlyAddedFromExtensionPack,!!l.options.installPreReleaseVersion,l.options.productVersion,b.isUri(l.source)?void 0:l.source.queryContext),h=await this.getInstalled(void 0,l.options.profileLocation,l.options.productVersion),f={...l.options,context:{...l.options.context,[n4]:!0}};for(const{gallery:p,manifest:g}of ks(u,({gallery:v})=>v.identifier.id)){const v=h.find(w=>ge(w.identifier,p.identifier));v&&v.isApplicationScoped===!!f.isApplicationScoped||o(g,p,f,l)}}catch(u){if(b.isUri(l.source))du(l.manifest.extensionDependencies)&&this.logService.warn("Cannot install dependencies of extension:",l.identifier.id,u.message),du(l.manifest.extensionPack)&&this.logService.warn("Cannot install packed extensions of extension:",l.identifier.id,u.message);else throw this.logService.error("Error while preparing to install dependencies and extension packs of the extension:",l.identifier.id),u}}));const c=await this.getOtherProfilesToUpdateExtension([...s.values()].map(({task:l})=>l));for(const[l,u]of c)o(u.manifest,u.source,{...u.options,profileLocation:l},void 0);await this.joinAllSettled([...s.entries()].map(async([l,{task:u}])=>{const h=new Date().getTime();let f;try{f=await u.run(),await this.joinAllSettled(this.participants.map(p=>p.postInstall(f,u.source,u.options,Me.None)),"PostInstall")}catch(p){const g=vt(p);throw b.isUri(u.source)||qg(this.telemetryService,u.operation===3?"extensionGallery:update":"extensionGallery:install",{extensionData:vg(u.source),error:g,source:u.options.context?.[hg]}),i.set(l,{error:g,identifier:u.identifier,operation:u.operation,source:u.source,context:u.options.context,profileLocation:u.options.profileLocation,applicationScoped:u.options.isApplicationScoped}),this.logService.error("Error while installing the extension",u.identifier.id,le(g),u.options.profileLocation.toString()),g}if(!b.isUri(u.source)){const p=u.operation===3,g=p?void 0:(new Date().getTime()-u.source.lastUpdated)/1e3;if(qg(this.telemetryService,p?"extensionGallery:update":"extensionGallery:install",{extensionData:vg(u.source),verificationStatus:u.verificationStatus,duration:new Date().getTime()-h,durationSinceUpdate:g,source:u.options.context?.[hg]}),xs&&u.operation!==3)try{await this.galleryService.reportStatistic(f.manifest.publisher,f.manifest.name,f.manifest.version,"install")}catch{}}i.set(l,{local:f,identifier:u.identifier,operation:u.operation,source:u.source,context:u.options.context,profileLocation:u.options.profileLocation,applicationScoped:f.isApplicationScoped})})),r.length&&await this.joinAllSettled(r)}catch(c){const l=(f,p,g)=>{const v=[];f.manifest.extensionDependencies?.length&&v.push(...f.manifest.extensionDependencies),f.manifest.extensionPack?.length&&v.push(...f.manifest.extensionPack);for(const w of v){if(g.includes(w.toLowerCase()))continue;g.push(w.toLowerCase());const S=i.get(`${w.toLowerCase()}-${p.toString()}`);S?.local&&(g=l(S.local,p,g))}return g},u=f=>({identifier:f.identifier,operation:2,source:f.source,context:f.options.context,profileLocation:f.options.profileLocation,error:c}),h=[];for(const[f,{task:p,root:g}]of s){const v=i.get(f);v?v.local&&g&&!i.get(`${g.identifier.id.toLowerCase()}-${p.options.profileLocation.toString()}`)?.local&&(h.push(this.createUninstallExtensionTask(v.local,{versionOnly:!0,profileLocation:p.options.profileLocation})),i.set(f,u(p))):(p.cancel(),i.set(f,u(p)))}for(const[f,{task:p}]of s){const g=i.get(f);if(!g?.local||p.options.donotIncludePackAndDependencies)continue;l(g.local,p.options.profileLocation,[g.local.identifier.id.toLowerCase()]).slice(1).some(w=>s.has(`${w.toLowerCase()}-${p.options.profileLocation.toString()}`)&&!i.get(`${w.toLowerCase()}-${p.options.profileLocation.toString()}`)?.local)&&(h.push(this.createUninstallExtensionTask(g.local,{versionOnly:!0,profileLocation:p.options.profileLocation})),i.set(f,u(p)))}h.length&&await Promise.allSettled(h.map(async f=>{try{await f.run(),this.logService.info("Rollback: Uninstalled extension",f.extension.identifier.id)}catch(p){this.logService.warn("Rollback: Error while uninstalling extension",f.extension.identifier.id,le(p))}}))}finally{for(const{task:c}of s.values())c.source&&!b.isUri(c.source)&&this.installingExtensions.delete(n(c.source,c.options.profileLocation))}const a=[...i.values()];for(const c of a)c.local&&this.logService.info("Extension installed successfully:",c.identifier.id,c.profileLocation.toString());return this._onDidInstallExtensions.fire(a),a}async getOtherProfilesToUpdateExtension(t){const i=[],s=new Pt;for(const r of t)if(!(r.operation!==3||r.options.isApplicationScoped||r.options.pinned||r.options.installGivenVersion||b.isUri(r.source)))for(const n of this.userDataProfilesService.profiles){if(this.uriIdentityService.extUri.isEqual(n.extensionsResource,r.options.profileLocation))continue;let o=s.get(n.extensionsResource);o||(o=await this.getInstalled(1,n.extensionsResource),s.set(n.extensionsResource,o));const a=o.find(c=>ge(c.identifier,r.identifier));a&&!a.pinned&&i.push([n.extensionsResource,r])}return i}canWaitForTask(t,i){for(const[,{task:s,waitingTasks:r}]of this.installingExtensions.entries())if(s===t&&(r.includes(i)||r.some(n=>this.canWaitForTask(n,i)))||s===i&&r[0]&&!this.canWaitForTask(t,r[0]))return!1;return!0}async joinAllSettled(t,i){const s=[],r=[],n=await Promise.allSettled(t);for(const a of n)a.status==="fulfilled"?s.push(a.value):r.push(vt(a.reason,i));if(!r.length)return s;if(r.length===1)throw r[0];let o=new et("","Unknown");for(const a of r)o=new et(o.message?`${o.message}, ${a.message}`:a.message,a.code!=="Unknown"&&a.code!=="Internal"?a.code:o.code);throw o}async getAllDepsAndPackExtensions(t,i,s,r,n,o){if(!this.galleryService.isEnabled())return[];const a=[],c=[],l=async(u,h)=>{a.push(u);let f=h.extensionDependencies||[];const p=[...f];if(h.extensionPack)for(const g of h.extensionPack)p.every(v=>!ge({id:v},{id:g}))&&p.push(g);if(p.length){const g=p.filter(v=>a.every(w=>!ge(w,{id:v})));if(g.length){const v=await this.galleryService.getExtensions(g.map(w=>({id:w,preRelease:r})),{},Me.None,o);for(const w of v){if(a.find(P=>ge(P,w.identifier)))continue;const S=f.some(P=>ge({id:P},w.identifier));let E;try{E=await this.checkAndGetCompatibleVersion(w,!1,r,n)}catch(P){if(S)throw P;this.logService.info("Skipping the packed extension as it cannot be installed",w.identifier.id,le(P));continue}c.push({gallery:E.extension,manifest:E.manifest}),await l(E.extension.identifier,E.manifest)}}}};return await l(t,i),c}async checkAndGetCompatibleVersion(t,i,s,r){let n;const o=await this.getExtensionsControlManifest();if(YL(t.identifier,o.malicious))throw new et(m(1913,null,t.identifier.id),"Malicious");const a=o.deprecated[t.identifier.id.toLowerCase()];if(a?.extension?.autoMigrate){if(this.logService.info(`The '${t.identifier.id}' extension is deprecated, fetching the compatible '${a.extension.id}' extension instead.`),n=(await this.galleryService.getExtensions([{id:a.extension.id,preRelease:a.extension.preRelease}],{targetPlatform:await this.getTargetPlatform(),compatible:!0,productVersion:r},Me.None))[0],!n)throw new et(m(1914,null,t.identifier.id,a.extension.id),"Deprecated")}else{if(await this.canInstall(t)!==!0){const l=await this.getTargetPlatform();throw new et(m(1915,null,t.identifier.id,this.productService.nameLong,t4(l)),"IncompatibleTargetPlatform")}if(n=await this.getCompatibleVersion(t,i,s,r),!n){const l=[];throw Eg(t.properties.enabledApiProposals??[],l)?!s&&t.properties.isPreReleaseVersion&&(await this.galleryService.getExtensions([t.identifier],{},Me.None,t.queryContext))[0]?new et(m(1917,null,t.displayName??t.identifier.id),"ReleaseVersionNotFound"):new et(m(1918,null,t.identifier.id,this.productService.nameLong,this.productService.version,this.productService.vscodeVersion),"Incompatible"):new et(m(1916,null,t.displayName??t.identifier.id,l[0]),"IncompatibleApi")}}this.logService.info("Getting Manifest...",n.identifier.id);const c=await this.galleryService.getManifest(n,Me.None);if(c===null)throw new et(`Missing manifest for extension ${n.identifier.id}`,"Invalid");if(c.version!==n.version)throw new et(`Cannot install '${n.identifier.id}' extension because of version mismatch in Marketplace`,"Invalid");return{extension:n,manifest:c}}async getCompatibleVersion(t,i,s,r){const n=await this.getTargetPlatform();let o=null;return!i&&t.hasPreReleaseVersion&&t.properties.isPreReleaseVersion!==s&&(o=(await this.galleryService.getExtensions([{...t.identifier,preRelease:s}],{targetPlatform:n,compatible:!0,productVersion:r},Me.None,t.queryContext)).filter(To)[0]||null),!o&&await this.galleryService.isExtensionCompatible(t,s,n,r)&&(o=t),o||(i?o=(await this.galleryService.getExtensions([{...t.identifier,version:t.version}],{targetPlatform:n,compatible:!0,productVersion:r},Me.None,t.queryContext)).filter(To)[0]||null:o=await this.galleryService.getCompatibleExtension(t,s,n,r)),o}async uninstallExtensions(t){const i=(h,f)=>`${h.identifier.id.toLowerCase()}${f.versionOnly?`-${h.manifest.version}`:""}@${f.profileLocation.toString()}`,s=(h,f)=>{const p=this.createUninstallExtensionTask(h,f);return this.uninstallingExtensions.set(i(p.extension,f),p),this.logService.info("Uninstalling extension from the profile:",`${h.identifier.id}@${h.manifest.version}`,f.profileLocation.toString()),this._onUninstallExtension.fire({identifier:h.identifier,profileLocation:f.profileLocation,applicationScoped:h.isApplicationScoped}),p},r=(h,f,p)=>{p?this.logService.error("Failed to uninstall extension from the profile:",`${h.identifier.id}@${h.manifest.version}`,f.profileLocation.toString(),p.message):this.logService.info("Successfully uninstalled extension from the profile",`${h.identifier.id}@${h.manifest.version}`,f.profileLocation.toString()),qg(this.telemetryService,"extensionGallery:uninstall",{extensionData:JL(h),error:p}),this._onDidUninstallExtension.fire({identifier:h.identifier,error:p?.code,profileLocation:f.profileLocation,applicationScoped:h.isApplicationScoped})},n=[],o=[],a=[],c=[],l=new Pt,u=async h=>{let f=l.get(h);return f||l.set(h,f=await this.getInstalled(1,h)),f};for(const{extension:h,options:f}of t){const p={...f,profileLocation:h.isApplicationScoped?this.userDataProfilesService.defaultProfile.extensionsResource:f?.profileLocation??this.getCurrentExtensionsManifestLocation()},g=this.uninstallingExtensions.get(i(h,p));if(g?(this.logService.info("Extensions is already requested to uninstall",h.identifier.id),a.push(g.waitUntilTaskIsFinished())):n.push(s(h,p)),p.remove){c.push(h);for(const v of this.userDataProfilesService.profiles){if(this.uriIdentityService.extUri.isEqual(v.extensionsResource,p.profileLocation))continue;const S=(await u(v.extensionsResource)).find(E=>ge(E.identifier,h.identifier));if(S){const E={...p,profileLocation:v.extensionsResource},P=this.uninstallingExtensions.get(i(S,E));P?(this.logService.info("Extensions is already requested to uninstall",S.identifier.id),a.push(P.waitUntilTaskIsFinished())):n.push(s(S,E))}}}}try{for(const h of n.slice(0)){const f=await u(h.options.profileLocation);if(h.options.donotIncludePack)this.logService.info("Uninstalling the extension without including packed extension",`${h.extension.identifier.id}@${h.extension.manifest.version}`);else{const p=this.getAllPackExtensionsToUninstall(h.extension,f);for(const g of p)this.uninstallingExtensions.has(i(g,h.options))?this.logService.info("Extensions is already requested to uninstall",g.identifier.id):n.push(s(g,h.options))}h.options.donotCheckDependents?this.logService.info("Uninstalling the extension without checking dependents",`${h.extension.identifier.id}@${h.extension.manifest.version}`):this.checkForDependents(n.map(p=>p.extension),f,h.extension)}await this.joinAllSettled(n.map(async h=>{try{if(await h.run(),await this.joinAllSettled(this.participants.map(f=>f.postUninstall(h.extension,h.options,Me.None))),h.extension.identifier.uuid)try{await this.galleryService.reportStatistic(h.extension.manifest.publisher,h.extension.manifest.name,h.extension.manifest.version,"uninstall")}catch{}}catch(f){const p=vt(f);throw r(h.extension,h.options,p),p}finally{o.push(h)}})),a.length&&await this.joinAllSettled(a);for(const h of n)r(h.extension,h.options);c.length&&await this.joinAllSettled(c.map(h=>this.removeExtension(h)))}catch(h){const f=vt(h);for(const p of n){try{p.cancel()}catch{}o.includes(p)||r(p.extension,p.options,f)}throw f}finally{for(const h of n)this.uninstallingExtensions.delete(i(h.extension,h.options))||this.logService.warn("Uninstallation task is not found in the cache",h.extension.identifier.id)}}checkForDependents(t,i,s){for(const r of t){const n=this.getDependents(r,i);if(n.length){const o=n.filter(a=>!t.some(c=>ge(c.identifier,a.identifier)));if(o.length)throw new Error(this.getDependentsErrorMessage(r,o,s))}}}getDependentsErrorMessage(t,i,s){return s===t?i.length===1?m(1919,null,s.manifest.displayName||s.manifest.name,i[0].manifest.displayName||i[0].manifest.name):i.length===2?m(1920,null,s.manifest.displayName||s.manifest.name,i[0].manifest.displayName||i[0].manifest.name,i[1].manifest.displayName||i[1].manifest.name):m(1921,null,s.manifest.displayName||s.manifest.name,i[0].manifest.displayName||i[0].manifest.name,i[1].manifest.displayName||i[1].manifest.name):i.length===1?m(1922,null,s.manifest.displayName||s.manifest.name,t.manifest.displayName||t.manifest.name,i[0].manifest.displayName||i[0].manifest.name):i.length===2?m(1923,null,s.manifest.displayName||s.manifest.name,t.manifest.displayName||t.manifest.name,i[0].manifest.displayName||i[0].manifest.name,i[1].manifest.displayName||i[1].manifest.name):m(1924,null,s.manifest.displayName||s.manifest.name,t.manifest.displayName||t.manifest.name,i[0].manifest.displayName||i[0].manifest.name,i[1].manifest.displayName||i[1].manifest.name)}getAllPackExtensionsToUninstall(t,i,s=[]){if(s.indexOf(t)!==-1)return[];s.push(t);const r=t.manifest.extensionPack?t.manifest.extensionPack:[];if(r.length){const n=i.filter(a=>!a.isBuiltin&&r.some(c=>ge({id:c},a.identifier))),o=[];for(const a of n)o.push(...this.getAllPackExtensionsToUninstall(a,i,s));return[...n,...o]}return[]}getDependents(t,i){return i.filter(s=>s.manifest.extensionDependencies&&s.manifest.extensionDependencies.some(r=>ge({id:r},t.identifier)))}async updateControlCache(){try{return this.logService.trace("ExtensionManagementService.updateControlCache"),await this.galleryService.getExtensionsControlManifest()}catch(t){return this.logService.trace("ExtensionManagementService.refreshControlCache - failed to get extension control manifest",le(t)),{malicious:[],deprecated:{},search:[]}}}},Oh=__decorate([__param(0,os),__param(1,fi),__param(2,Ot),__param(3,fe),__param(4,Et),__param(5,cr),__param(6,Gi)],Oh),Gg=class{constructor(){this.barrier=new Fu}async waitUntilTaskIsFinished(){return await this.barrier.wait(),this.cancellablePromise}run(){return this.cancellablePromise||(this.cancellablePromise=ir(e=>this.doRun(e))),this.barrier.open(),this.cancellablePromise}cancel(){this.cancellablePromise||(this.cancellablePromise=ir(e=>new Promise((t,i)=>{const s=e.onCancellationRequested(()=>{s.dispose(),i(new xt)})})),this.barrier.open()),this.cancellablePromise.cancel()}}}});function JS(e){return ft(e)&&$L(e.identifier)&&(XN(e.location)||ye(e.location)&&e.location)&&(Ui(e.relativeLocation)||ye(e.relativeLocation))&&e.version&&ye(e.version)}function XN(e){return e?ye(e.path)&&ye(e.scheme):!1}var XS,Hc,As,Mh,Fo=y({"out-build/vs/platform/extensionManagement/common/extensionsProfileScannerService.js"(){"use strict";Ne(),Fe(),V(),ie(),ri(),Y(),ki(),ls(),Xe(),se(),Ie(),Qi(),qi(),_e(),ve(),(function(e){e.ERROR_PROFILE_NOT_FOUND="ERROR_PROFILE_NOT_FOUND",e.ERROR_INVALID_CONTENT="ERROR_INVALID_CONTENT"})(XS||(XS={})),Hc=class extends Error{constructor(e,t){super(e),this.code=t}},As=te("IExtensionsProfileScannerService"),Mh=class extends G{constructor(t,i,s,r,n){super(),this.extensionsLocation=t,this.fileService=i,this.userDataProfilesService=s,this.uriIdentityService=r,this.logService=n,this._onAddExtensions=this._register(new R),this.onAddExtensions=this._onAddExtensions.event,this._onDidAddExtensions=this._register(new R),this.onDidAddExtensions=this._onDidAddExtensions.event,this._onRemoveExtensions=this._register(new R),this.onRemoveExtensions=this._onRemoveExtensions.event,this._onDidRemoveExtensions=this._register(new R),this.onDidRemoveExtensions=this._onDidRemoveExtensions.event,this.resourcesAccessQueueMap=new Pt}scanProfileExtensions(t,i){return this.withProfileExtensions(t,void 0,i)}async addExtensionsToProfile(t,i,s){const r=[],n=[];try{return await this.withProfileExtensions(i,o=>{const a=[];if(s)a.push(...o);else for(const c of o)t.some(([l])=>ge(l.identifier,c.identifier)&&(l.manifest.version!==c.version||l.location.toString()!==c.location.toString()))?r.push(c):a.push(c);for(const[c,l]of t){const u=a.findIndex(f=>ge(f.identifier,c.identifier)&&f.version===c.manifest.version&&f.location.toString()===c.location.toString()),h={identifier:c.identifier,version:c.manifest.version,location:c.location,metadata:l};u===-1?(n.push(h),a.push(h)):a.splice(u,1,h)}return n.length&&this._onAddExtensions.fire({extensions:n,profileLocation:i}),r.length&&this._onRemoveExtensions.fire({extensions:r,profileLocation:i}),a}),n.length&&this._onDidAddExtensions.fire({extensions:n,profileLocation:i}),r.length&&this._onDidRemoveExtensions.fire({extensions:r,profileLocation:i}),n}catch(o){throw n.length&&this._onDidAddExtensions.fire({extensions:n,error:o,profileLocation:i}),r.length&&this._onDidRemoveExtensions.fire({extensions:r,error:o,profileLocation:i}),o}}async updateMetadata(t,i){const s=[];return await this.withProfileExtensions(i,r=>{const n=[];for(const o of r){const a=t.find(([c])=>ge(c.identifier,o.identifier)&&c.manifest.version===o.version);a&&(o.metadata={...o.metadata,...a[1]},s.push(o)),n.push(o)}return n}),s}async removeExtensionsFromProfile(t,i){const s=[];try{await this.withProfileExtensions(i,r=>{const n=[];for(const o of r)t.some(a=>ge(o.identifier,a))?s.push(o):n.push(o);return s.length&&this._onRemoveExtensions.fire({extensions:s,profileLocation:i}),n}),s.length&&this._onDidRemoveExtensions.fire({extensions:s,profileLocation:i})}catch(r){throw s.length&&this._onDidRemoveExtensions.fire({extensions:s,error:r,profileLocation:i}),r}}async withProfileExtensions(t,i,s){return this.getResourceAccessQueue(t).queue(async()=>{let r=[],n;try{const o=await this.fileService.readFile(t);n=JSON.parse(o.value.toString().trim()||"[]")}catch(o){if(Nt(o)!==1)throw o;if(this.uriIdentityService.extUri.isEqual(t,this.userDataProfilesService.defaultProfile.extensionsResource)&&(n=await this.migrateFromOldDefaultProfileExtensionsLocation()),!n&&s?.bailOutWhenFileNotFound)throw new Hc(le(o),"ERROR_PROFILE_NOT_FOUND")}if(n){Array.isArray(n)||this.throwInvalidConentError(t);let o=!1;for(const a of n){JS(a)||this.throwInvalidConentError(t);let c;if(ye(a.relativeLocation)&&a.relativeLocation)c=this.resolveExtensionLocation(a.relativeLocation);else if(ye(a.location)){this.logService.warn(`Extensions profile: Ignoring extension with invalid location: ${a.location}`);continue}else{c=b.revive(a.location);const u=this.toRelativePath(c);u&&(o=!0,a.relativeLocation=u)}Ui(a.metadata?.hasPreReleaseVersion)&&a.metadata?.preRelease&&(o=!0,a.metadata.hasPreReleaseVersion=!0);const l=a.metadata?.id??a.identifier.uuid;r.push({identifier:l?{id:a.identifier.id,uuid:l}:{id:a.identifier.id},location:c,version:a.version,metadata:a.metadata})}o&&await this.fileService.writeFile(t,O.fromString(JSON.stringify(n)))}if(i){r=i(r);const o=r.map(a=>({identifier:a.identifier,version:a.version,location:a.location.toJSON(),relativeLocation:this.toRelativePath(a.location),metadata:a.metadata}));await this.fileService.writeFile(t,O.fromString(JSON.stringify(o)))}return r})}throwInvalidConentError(t){throw new Hc(`Invalid extensions content in ${t.toString()}`,"ERROR_INVALID_CONTENT")}toRelativePath(t){return this.uriIdentityService.extUri.isEqual(this.uriIdentityService.extUri.dirname(t),this.extensionsLocation)?this.uriIdentityService.extUri.basename(t):void 0}resolveExtensionLocation(t){return this.uriIdentityService.extUri.joinPath(this.extensionsLocation,t)}async migrateFromOldDefaultProfileExtensionsLocation(){return this._migrationPromise||(this._migrationPromise=(async()=>{const t=this.uriIdentityService.extUri.joinPath(this.userDataProfilesService.defaultProfile.location,"extensions.json"),i=this.uriIdentityService.extUri.joinPath(this.extensionsLocation,".init-default-profile-extensions");let s;try{s=(await this.fileService.readFile(t)).value.toString()}catch(n){if(Nt(n)===1)return;throw n}this.logService.info("Migrating extensions from old default profile location",t.toString());let r;try{const n=JSON.parse(s);Array.isArray(n)&&n.every(o=>JS(o))?r=n:this.logService.warn("Skipping migrating from old default profile locaiton: Found invalid data",n)}catch(n){this.logService.error(n)}if(r)try{await this.fileService.createFile(this.userDataProfilesService.defaultProfile.extensionsResource,O.fromString(JSON.stringify(r)),{overwrite:!1}),this.logService.info("Migrated extensions from old default profile location to new location",t.toString(),this.userDataProfilesService.defaultProfile.extensionsResource.toString())}catch(n){if(Nt(n)===3)this.logService.info("Migration from old default profile location to new location is done by another window",t.toString(),this.userDataProfilesService.defaultProfile.extensionsResource.toString());else throw n}try{await this.fileService.del(t)}catch(n){Nt(n)!==1&&this.logService.error(n)}try{await this.fileService.del(i)}catch(n){Nt(n)!==1&&this.logService.error(n)}return r})()),this._migrationPromise}getResourceAccessQueue(t){let i=this.resourcesAccessQueueMap.get(t);return i||(i=new vo,this.resourcesAccessQueueMap.set(t,i)),i}},Mh=__decorate([__param(1,ht),__param(2,Gi),__param(3,Ot),__param(4,fe)],Mh)}});function Qg(e){switch(e){case 1:return m(116,null);case 2:return m(117,null);case 3:return m(118,null);case 4:return m(119,null);case 5:return m(120,null);case 6:return m(121,null);case 7:return m(122,null);case 8:return m(123,null);case 9:return m(124,null);default:return""}}var YN=y({"out-build/vs/base/common/jsonErrorMessages.js"(){"use strict";ue()}});function ZN(e,t,i,s){try{KN(e,t,i,s)}catch(r){e.error(r?.message??r)}return t}function KN(e,t,i,s){const r=(n,o,a)=>{const c=n[o];if(ye(c)){const l=c,u=l.length;if(u>1&&l[0]==="%"&&l[u-1]==="%"){const h=l.substr(1,u-2);let f=i[h];f===void 0&&s&&(f=s[h]);const p=typeof f=="string"?f:f?.message,g=s?.[h],v=typeof g=="string"?g:g?.message;if(!p){v||e.warn(`[${t.name}]: ${m(1964,null,h)}`);return}if(a&&(o==="title"||o==="category")&&v&&v!==p){const w={value:p,original:v};n[o]=w}else n[o]=p}}else if(ft(c))for(const l in c)c.hasOwnProperty(l)&&(l==="commands"?r(c,l,!0):r(c,l,a));else if(Array.isArray(c))for(let l=0;l<c.length;l++)r(c,l,a)};for(const n in t)t.hasOwnProperty(n)&&r(t,n)}var eO=y({"out-build/vs/platform/extensionManagement/common/extensionNls.js"(){"use strict";_e(),ue()}});function Fh(e,t){const i=gg(e.manifest.publisher,e.manifest.name);return{id:i,identifier:new as(i),isBuiltin:e.type===0,isUserBuiltin:e.type===1&&e.isBuiltin,isUnderDevelopment:t,extensionLocation:e.location,uuid:e.identifier.uuid,targetPlatform:e.targetPlatform,publisherDisplayName:e.publisherDisplayName,preRelease:e.preRelease,...e.manifest}}var Jg,Nn,Uh,Uo,Vc,jc,Bc=y({"out-build/vs/platform/extensionManagement/common/extensionsScannerService.js"(){"use strict";kt(),Ne(),Si(),Fe(),ve(),xn(),YN(),V(),xe(),de(),K(),_t(),In(),uh(),Y(),ue(),ui(),ls(),cs(),dh(),Xe(),se(),Ie(),mi(),ie(),Dc(),Fo(),Qi(),qi(),eO(),(function(e){function t(i,s){if(i===s)return!0;const r=Object.keys(i),n=new Set;for(const o of Object.keys(s))n.add(o);if(r.length!==n.size)return!1;for(const o of r){if(i[o]!==s[o])return!1;n.delete(o)}return n.size===0}e.equals=t})(Jg||(Jg={})),Nn=te("IExtensionsScannerService"),Uh=class extends G{constructor(t,i,s,r,n,o,a,c,l,u,h,f){super(),this.systemExtensionsLocation=t,this.userExtensionsLocation=i,this.extensionsControlLocation=s,this.currentProfile=r,this.userDataProfilesService=n,this.extensionsProfileScannerService=o,this.fileService=a,this.logService=c,this.environmentService=l,this.productService=u,this.uriIdentityService=h,this.instantiationService=f,this._onDidChangeCache=this._register(new R),this.onDidChangeCache=this._onDidChangeCache.event,this.systemExtensionsCachedScanner=this._register(this.instantiationService.createInstance(jc,this.currentProfile)),this.userExtensionsCachedScanner=this._register(this.instantiationService.createInstance(jc,this.currentProfile)),this.extensionsScanner=this._register(this.instantiationService.createInstance(Vc)),this.initializeDefaultProfileExtensionsPromise=void 0,this._register(this.systemExtensionsCachedScanner.onDidChangeCache(()=>this._onDidChangeCache.fire(0))),this._register(this.userExtensionsCachedScanner.onDidChangeCache(()=>this._onDidChangeCache.fire(1)))}getTargetPlatform(){return this._targetPlatformPromise||(this._targetPlatformPromise=x4(this.fileService,this.logService)),this._targetPlatformPromise}async scanAllExtensions(t,i){const[s,r]=await Promise.all([this.scanSystemExtensions(t),this.scanUserExtensions(i)]);return this.dedupExtensions(s,r,[],await this.getTargetPlatform(),!0)}async scanSystemExtensions(t){const i=[];i.push(this.scanDefaultSystemExtensions(t.language)),i.push(this.scanDevSystemExtensions(t.language,!!t.checkControlFile));const[s,r]=await Promise.all(i);return this.applyScanOptions([...s,...r],0,{pickLatest:!1})}async scanUserExtensions(t){this.logService.trace("Started scanning user extensions",t.profileLocation);const i=this.uriIdentityService.extUri.isEqual(t.profileLocation,this.userDataProfilesService.defaultProfile.extensionsResource)?{bailOutWhenFileNotFound:!0}:void 0,s=await this.createExtensionScannerInput(t.profileLocation,!0,1,t.language,!0,i,t.productVersion??this.getProductVersion()),r=t.useCache&&!s.devMode?this.userExtensionsCachedScanner:this.extensionsScanner;let n;try{n=await r.scanExtensions(s)}catch(o){if(o instanceof Hc&&o.code==="ERROR_PROFILE_NOT_FOUND")await this.doInitializeDefaultProfileExtensions(),n=await r.scanExtensions(s);else throw o}return n=await this.applyScanOptions(n,1,{includeInvalid:t.includeInvalid,pickLatest:!0}),this.logService.trace("Scanned user extensions:",n.length),n}async scanAllUserExtensions(t={includeInvalid:!0,includeAllVersions:!0}){const i=await this.createExtensionScannerInput(this.userExtensionsLocation,!1,1,void 0,!0,void 0,this.getProductVersion()),s=await this.extensionsScanner.scanExtensions(i);return this.applyScanOptions(s,1,{includeAllVersions:t.includeAllVersions,includeInvalid:t.includeInvalid})}async scanExtensionsUnderDevelopment(t,i){if(this.environmentService.isExtensionDevelopment&&this.environmentService.extensionDevelopmentLocationURI){const s=(await Promise.all(this.environmentService.extensionDevelopmentLocationURI.filter(r=>r.scheme===Z.file).map(async r=>{const n=await this.createExtensionScannerInput(r,!1,1,i.language,!1,void 0,this.getProductVersion());return(await this.extensionsScanner.scanOneOrMultipleExtensions(n)).map(a=>(a.type=t.find(c=>ge(c.identifier,a.identifier))?.type??a.type,this.extensionsScanner.validate(a,n)))}))).flat();return this.applyScanOptions(s,"development",{includeInvalid:i.includeInvalid,pickLatest:!0})}return[]}async scanExistingExtension(t,i,s){const r=await this.createExtensionScannerInput(t,!1,i,s.language,!0,void 0,this.getProductVersion()),n=await this.extensionsScanner.scanExtension(r);return!n||!s.includeInvalid&&!n.isValid?null:n}async scanOneOrMultipleExtensions(t,i,s){const r=await this.createExtensionScannerInput(t,!1,i,s.language,!0,void 0,this.getProductVersion()),n=await this.extensionsScanner.scanOneOrMultipleExtensions(r);return this.applyScanOptions(n,i,{includeInvalid:s.includeInvalid,pickLatest:!0})}async scanMultipleExtensions(t,i,s){const r=[];return await Promise.all(t.map(async n=>{const o=await this.scanOneOrMultipleExtensions(n,i,s);r.push(...o)})),this.applyScanOptions(r,i,{includeInvalid:s.includeInvalid,pickLatest:!0})}async updateManifestMetadata(t,i){const s=oe(t,"package.json"),r=(await this.fileService.readFile(s)).value.toString(),n=JSON.parse(r);n.__metadata={...n.__metadata,...i},await this.fileService.writeFile(oe(t,"package.json"),O.fromString(JSON.stringify(n,null," ")))}async initializeDefaultProfileExtensions(){try{await this.extensionsProfileScannerService.scanProfileExtensions(this.userDataProfilesService.defaultProfile.extensionsResource,{bailOutWhenFileNotFound:!0})}catch(t){if(t instanceof Hc&&t.code==="ERROR_PROFILE_NOT_FOUND")await this.doInitializeDefaultProfileExtensions();else throw t}}async doInitializeDefaultProfileExtensions(){return this.initializeDefaultProfileExtensionsPromise||(this.initializeDefaultProfileExtensionsPromise=(async()=>{try{this.logService.info("Started initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString());const t=await this.scanAllUserExtensions({includeInvalid:!0});if(t.length)await this.extensionsProfileScannerService.addExtensionsToProfile(t.map(i=>[i,i.metadata]),this.userDataProfilesService.defaultProfile.extensionsResource);else try{await this.fileService.createFile(this.userDataProfilesService.defaultProfile.extensionsResource,O.fromString(JSON.stringify([])))}catch(i){Nt(i)!==1&&this.logService.warn("Failed to create default profile extensions manifest in extensions installation folder.",this.userExtensionsLocation.toString(),le(i))}this.logService.info("Completed initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString())}catch(t){this.logService.error(t)}finally{this.initializeDefaultProfileExtensionsPromise=void 0}})()),this.initializeDefaultProfileExtensionsPromise}async applyScanOptions(t,i,s={}){return s.includeAllVersions||(t=this.dedupExtensions(i===0?t:void 0,i===1?t:void 0,i==="development"?t:void 0,await this.getTargetPlatform(),!!s.pickLatest)),s.includeInvalid||(t=t.filter(r=>r.isValid)),t.sort((r,n)=>{const o=ut(r.location.fsPath),a=ut(n.location.fsPath);return o<a?-1:o>a?1:0})}dedupExtensions(t,i,s,r,n){const o=(c,l,u)=>{if(c.isValid&&!l.isValid)return!1;if(c.isValid===l.isValid){if(n&&hh(c.manifest.version,l.manifest.version))return this.logService.debug(`Skipping extension ${l.location.path} with lower version ${l.manifest.version} in favour of ${c.location.path} with version ${c.manifest.version}`),!1;if(R4(c.manifest.version,l.manifest.version)){if(c.type===0)return this.logService.debug(`Skipping extension ${l.location.path} in favour of system extension ${c.location.path} with same version`),!1;if(c.targetPlatform===r)return this.logService.debug(`Skipping extension ${l.location.path} from different target platform ${l.targetPlatform}`),!1}}return u?this.logService.warn(`Overwriting user extension ${c.location.path} with ${l.location.path}.`):this.logService.debug(`Overwriting user extension ${c.location.path} with ${l.location.path}.`),!0},a=new pg;return t?.forEach(c=>{const l=a.get(c.identifier.id);(!l||o(l,c,!1))&&a.set(c.identifier.id,c)}),i?.forEach(c=>{const l=a.get(c.identifier.id);if(!l&&t&&c.type===0){this.logService.debug(`Skipping obsolete system extension ${c.location.path}.`);return}(!l||o(l,c,!1))&&a.set(c.identifier.id,c)}),s?.forEach(c=>{const l=a.get(c.identifier.id);(!l||o(l,c,!0))&&a.set(c.identifier.id,c),a.set(c.identifier.id,c)}),[...a.values()]}async scanDefaultSystemExtensions(t){this.logService.trace("Started scanning system extensions");const i=await this.createExtensionScannerInput(this.systemExtensionsLocation,!1,0,t,!0,void 0,this.getProductVersion()),r=await(i.devMode?this.extensionsScanner:this.systemExtensionsCachedScanner).scanExtensions(i);return this.logService.trace("Scanned system extensions:",r.length),r}async scanDevSystemExtensions(t,i){const s=this.environmentService.isBuilt?[]:this.productService.builtInExtensions;if(!s?.length)return[];this.logService.trace("Started scanning dev system extensions");const r=i?await this.getBuiltInExtensionControl():{},n=[],o=b.file(Wi(W(Ct.asFileUri("").fsPath,"..",".build","builtInExtensions")));for(const c of s){const l=r[c.name]||"marketplace";switch(l){case"disabled":break;case"marketplace":n.push(oe(o,c.name));break;default:n.push(b.file(l));break}}const a=await Promise.all(n.map(async c=>this.extensionsScanner.scanExtension(await this.createExtensionScannerInput(c,!1,0,t,!0,void 0,this.getProductVersion()))));return this.logService.trace("Scanned dev system extensions:",a.length),ts(a)}async getBuiltInExtensionControl(){try{const t=await this.fileService.readFile(this.extensionsControlLocation);return JSON.parse(t.value.toString())}catch{return{}}}async createExtensionScannerInput(t,i,s,r,n,o,a){const c=await this.getTranslations(r??Ei),l=await this.getMtime(t),u=i&&!this.uriIdentityService.extUri.isEqual(t,this.userDataProfilesService.defaultProfile.extensionsResource)?this.userDataProfilesService.defaultProfile.extensionsResource:void 0,h=u?await this.getMtime(u):void 0;return new Uo(t,l,u,h,i,o,s,n,a.vscodeVersion,a.date,this.productService.commit,!this.environmentService.isBuilt,r,c)}async getMtime(t){try{const i=await this.fileService.stat(t);if(typeof i.mtime=="number")return i.mtime}catch{}}getProductVersion(){return{vscodeVersion:this.productService.vscodeVersion,version:this.productService.version,date:this.productService.date}}},Uh=__decorate([__param(4,Gi),__param(5,As),__param(6,ht),__param(7,fe),__param(8,xi),__param(9,Et),__param(10,Ot),__param(11,wn)],Uh),Uo=class{constructor(e,t,i,s,r,n,o,a,c,l,u,h,f,p){this.location=e,this.mtime=t,this.applicationExtensionslocation=i,this.applicationExtensionslocationMtime=s,this.profile=r,this.profileScanOptions=n,this.type=o,this.validate=a,this.productVersion=c,this.productDate=l,this.productCommit=u,this.devMode=h,this.language=f,this.translations=p}static createNlsConfiguration(e){return{language:e.language,pseudo:e.language==="pseudo",devMode:e.devMode,translations:e.translations}}static equals(e,t){return bm(e.location,t.location)&&e.mtime===t.mtime&&bm(e.applicationExtensionslocation,t.applicationExtensionslocation)&&e.applicationExtensionslocationMtime===t.applicationExtensionslocationMtime&&e.profile===t.profile&&Ds(e.profileScanOptions,t.profileScanOptions)&&e.type===t.type&&e.validate===t.validate&&e.productVersion===t.productVersion&&e.productDate===t.productDate&&e.productCommit===t.productCommit&&e.devMode===t.devMode&&e.language===t.language&&Jg.equals(e.translations,t.translations)}},Vc=class extends G{constructor(t,i,s,r,n,o){super(),this.extensionsProfileScannerService=t,this.uriIdentityService=i,this.fileService=s,this.environmentService=n,this.logService=o,this.extensionsEnabledWithApiProposalVersion=r.extensionsEnabledWithApiProposalVersion?.map(a=>a.toLowerCase())??[]}async scanExtensions(t){return t.profile?this.scanExtensionsFromProfile(t):this.scanExtensionsFromLocation(t)}async scanExtensionsFromLocation(t){const i=await this.fileService.resolve(t.location);if(!i.children?.length)return[];const s=await Promise.all(i.children.map(async r=>{if(!r.isDirectory||t.type===1&&Nr(r.resource).indexOf(".")===0)return null;const n=new Uo(r.resource,t.mtime,t.applicationExtensionslocation,t.applicationExtensionslocationMtime,t.profile,t.profileScanOptions,t.type,t.validate,t.productVersion,t.productDate,t.productCommit,t.devMode,t.language,t.translations);return this.scanExtension(n)}));return ts(s).sort((r,n)=>r.location.path<n.location.path?-1:1)}async scanExtensionsFromProfile(t){let i=await this.scanExtensionsFromProfileResource(t.location,()=>!0,t);if(t.applicationExtensionslocation&&!this.uriIdentityService.extUri.isEqual(t.location,t.applicationExtensionslocation)){i=i.filter(r=>!r.metadata?.isApplicationScoped);const s=await this.scanExtensionsFromProfileResource(t.applicationExtensionslocation,r=>!!r.metadata?.isBuiltin||!!r.metadata?.isApplicationScoped,t);i.push(...s)}return i}async scanExtensionsFromProfileResource(t,i,s){const r=await this.extensionsProfileScannerService.scanProfileExtensions(t,s.profileScanOptions);if(!r.length)return[];const n=await Promise.all(r.map(async o=>{if(i(o)){const a=new Uo(o.location,s.mtime,s.applicationExtensionslocation,s.applicationExtensionslocationMtime,s.profile,s.profileScanOptions,s.type,s.validate,s.productVersion,s.productDate,s.productCommit,s.devMode,s.language,s.translations);return this.scanExtension(a,o)}return null}));return ts(n)}async scanOneOrMultipleExtensions(t){try{if(await this.fileService.exists(oe(t.location,"package.json"))){const i=await this.scanExtension(t);return i?[i]:[]}else return await this.scanExtensions(t)}catch(i){return this.logService.error(`Error scanning extensions at ${t.location.path}:`,le(i)),[]}}async scanExtension(t,i){const s=[];let r=!0,n;try{n=await this.scanExtensionManifest(t.location)}catch(f){if(i){s.push([je.Error,le(f)]),r=!1;const[p,g]=i.identifier.id.split(".");n={name:g,publisher:p,version:i.version,engines:{vscode:""}}}else return t.type!==0&&this.logService.error(f),null}n.publisher||(n.publisher=fg);let o;i?o={...i.metadata,size:n.__metadata?.size}:n.__metadata&&(o={installedTimestamp:n.__metadata.installedTimestamp,size:n.__metadata.size,targetPlatform:n.__metadata.targetPlatform}),delete n.__metadata;const a=Ai(n.publisher,n.name),c=o?.id?{id:a,uuid:o.id}:{id:a},l=o?.isSystem?0:t.type,u=l===0||!!o?.isBuiltin;try{n=await this.translateManifest(t.location,n,Uo.createNlsConfiguration(t))}catch(f){this.logService.warn("Failed to translate manifest",le(f))}let h={type:l,identifier:c,manifest:n,location:t.location,isBuiltin:u,targetPlatform:o?.targetPlatform??"undefined",publisherDisplayName:o?.publisherDisplayName,metadata:o,isValid:r,validations:s,preRelease:!!o?.preRelease};return t.validate&&(h=this.validate(h,t)),n.enabledApiProposals&&(!this.environmentService.isBuilt||this.extensionsEnabledWithApiProposalVersion.includes(a.toLowerCase()))&&(n.originalEnabledApiProposals=n.enabledApiProposals,n.enabledApiProposals=GL([...n.enabledApiProposals])),h}validate(t,i){let s=t.isValid;const r=this.environmentService.isBuilt&&this.extensionsEnabledWithApiProposalVersion.includes(t.identifier.id.toLowerCase()),n=FA(i.productVersion,i.productDate,i.location,t.manifest,t.isBuiltin,r);for(const[o,a]of n)o===je.Error&&(s=!1,this.logService.error(this.formatMessage(i.location,a)));return t.isValid=s,t.validations=[...t.validations,...n],t}async scanExtensionManifest(t){const i=oe(t,"package.json");let s;try{s=(await this.fileService.readFile(i)).value.toString()}catch(n){throw Nt(n)!==1&&this.logService.error(this.formatMessage(t,m(1965,null,i.path,n.message))),n}let r;try{r=JSON.parse(s)}catch(n){const o=[];wo(s,o);for(const a of o)this.logService.error(this.formatMessage(t,m(1966,null,i.path,a.offset,a.length,Qg(a.error))));throw n}if(_o(r)!=="object"){const n=this.formatMessage(t,m(1967,null,i.path));throw this.logService.error(n),new Error(n)}return r}async translateManifest(t,i,s){const r=await this.getLocalizedMessages(t,i,s);if(r)try{const n=[],o=await this.resolveOriginalMessageBundle(r.default,n);if(n.length>0)return n.forEach(c=>{this.logService.error(this.formatMessage(t,m(1968,null,r.default?.path,Qg(c.error))))}),i;if(_o(r)!=="object")return this.logService.error(this.formatMessage(t,m(1969,null,r.default?.path))),i;const a=r.values||Object.create(null);return ZN(this.logService,i,a,o)}catch{}return i}async getLocalizedMessages(t,i,s){const r=oe(t,"package.nls.json"),n=(l,u)=>{u.forEach(h=>{this.logService.error(this.formatMessage(t,m(1970,null,l?.path,Qg(h.error))))})},o=l=>{this.logService.error(this.formatMessage(t,m(1971,null,l?.path)))},a=`${i.publisher}.${i.name}`,c=s.translations[a];if(c)try{const l=b.file(c),u=(await this.fileService.readFile(l)).value.toString(),h=[],f=wo(u,h);return h.length>0?(n(l,h),{values:void 0,default:r}):_o(f)!=="object"?(o(l),{values:void 0,default:r}):{values:f.contents?f.contents.package:void 0,default:r}}catch{return{values:void 0,default:r}}else{if(!await this.fileService.exists(r))return;let u;try{u=await this.findMessageBundles(t,s)}catch{return}if(!u.localized)return{values:void 0,default:u.original};try{const h=(await this.fileService.readFile(u.localized)).value.toString(),f=[],p=wo(h,f);return f.length>0?(n(u.localized,f),{values:void 0,default:u.original}):_o(p)!=="object"?(o(u.localized),{values:void 0,default:u.original}):{values:p,default:u.original}}catch{return{values:void 0,default:u.original}}}}async resolveOriginalMessageBundle(t,i){if(t)try{const s=(await this.fileService.readFile(t)).value.toString();return wo(s,i)}catch{}}findMessageBundles(t,i){return new Promise((s,r)=>{const n=o=>{const a=oe(t,`package.nls.${o}.json`);this.fileService.exists(a).then(c=>{c&&s({localized:a,original:oe(t,"package.nls.json")});const l=o.lastIndexOf("-");l===-1?s({localized:oe(t,"package.nls.json"),original:null}):(o=o.substring(0,l),n(o))})};if(i.devMode||i.pseudo||!i.language)return s({localized:oe(t,"package.nls.json"),original:null});n(i.language)})}formatMessage(t,i){return`[${t.path}]: ${i}`}},Vc=__decorate([__param(0,As),__param(1,Ot),__param(2,ht),__param(3,Et),__param(4,xi),__param(5,fe)],Vc),jc=class extends Vc{constructor(t,i,s,r,n,o,a,c){super(s,r,n,o,a,c),this.currentProfile=t,this.userDataProfilesService=i,this.cacheValidatorThrottler=this._register(new Sn(3e3)),this._onDidChangeCache=this._register(new R),this.onDidChangeCache=this._onDidChangeCache.event}async scanExtensions(t){const i=this.getCacheFile(t),s=await this.readExtensionCache(i);if(this.input=t,s&&s.input&&Uo.equals(s.input,this.input))return this.logService.debug("Using cached extensions scan result",t.type===0?"system":"user",t.location.toString()),this.cacheValidatorThrottler.trigger(()=>this.validateCache()),s.result.map(n=>(n.location=b.revive(n.location),n));const r=await super.scanExtensions(t);return await this.writeExtensionCache(i,{input:t,result:r}),r}async readExtensionCache(t){try{const i=await this.fileService.readFile(t),s=JSON.parse(i.value.toString());return{result:s.result,input:zi(s.input)}}catch(i){this.logService.debug("Error while reading the extension cache file:",t.path,le(i))}return null}async writeExtensionCache(t,i){try{await this.fileService.writeFile(t,O.fromString(JSON.stringify(i)))}catch(s){this.logService.debug("Error while writing the extension cache file:",t.path,le(s))}}async validateCache(){if(!this.input)return;const t=this.getCacheFile(this.input),i=await this.readExtensionCache(t);if(!i)return;const s=i.result,r=JSON.parse(JSON.stringify(await super.scanExtensions(this.input)));if(!Ds(r,s))try{this.logService.info("Invalidating Cache",s,r),await this.fileService.del(t),this._onDidChangeCache.fire()}catch(n){this.logService.error(n)}}getCacheFile(t){const i=this.getProfile(t);return this.uriIdentityService.extUri.joinPath(i.cacheHome,t.type===0?w4:dg)}getProfile(t){return t.type===0?this.userDataProfilesService.defaultProfile:t.profile?this.uriIdentityService.extUri.isEqual(t.location,this.currentProfile.extensionsResource)?this.currentProfile:this.userDataProfilesService.profiles.find(i=>this.uriIdentityService.extUri.isEqual(t.location,i.extensionsResource))??this.currentProfile:this.userDataProfilesService.defaultProfile}},jc=__decorate([__param(1,Gi),__param(2,As),__param(3,Ot),__param(4,ht),__param(5,Et),__param(6,xi),__param(7,fe)],jc)}});function Xg(e){let t="Extract";return e instanceof Fc&&(e.type==="CorruptZip"?t="CorruptZip":e.type==="Incomplete"&&(t="IncompleteZip")),vt(e,t)}async function Yg(e){let t;try{t=await CS(e,"extension/package.json")}catch(i){throw Xg(i)}try{return JSON.parse(t.toString("utf8"))}catch{throw new et(m(1982,null),"Invalid")}}var YS=y({"out-build/vs/platform/extensionManagement/node/extensionManagementUtil.js"(){"use strict";Tg(),ue(),Th(),ki()}}),$h,zc,Zg=y({"out-build/vs/platform/extensionManagement/node/extensionSignatureVerificationService.js"(){"use strict";ve(),_e(),se(),Ie(),ji(),ki(),$h=te("IExtensionSignatureVerificationService"),zc=class{constructor(t,i){this.logService=t,this.telemetryService=i}vsceSign(){return this.moduleLoadingPromise||(this.moduleLoadingPromise=this.resolveVsceSign()),this.moduleLoadingPromise}async resolveVsceSign(){return import("@vscode/vsce-sign")}async verify(t,i,s,r,n){let o;try{o=await this.vsceSign()}catch(u){this.logService.error("Could not load vsce-sign module",le(u)),this.logService.info(`Extension signature verification is not done: ${t}`);return}const a=new Date().getTime();let c;try{this.logService.trace(`Verifying extension signature for ${t}...`),c=await o.verify(s,r,this.logService.getLevel()===j.Trace)}catch(u){c={code:bt.UnknownError,didExecute:!1,output:le(u)}}const l=new Date().getTime()-a;return this.logService.info(`Extension signature verification result for ${t}: ${c.code}. ${Gp(c.internalCode)?`Internal Code: ${c.internalCode}. `:""}Executed: ${c.didExecute}. Duration: ${l}ms.`),this.logService.trace(`Extension signature verification output for ${t}:
${c.output}`),this.telemetryService.publicLog2("extensionsignature:verification",{extensionId:t,extensionVersion:i,code:c.code,internalCode:c.internalCode,duration:l,didExecute:c.didExecute,clientTargetPlatform:n}),{code:c.code}}},zc=__decorate([__param(0,fe),__param(1,fi)],zc)}}),Wh,Hh,tO=y({"out-build/vs/platform/extensionManagement/node/extensionDownloader.js"(){"use strict";Ne(),ve(),V(),xe(),_t(),In(),Bt(),di(),Tg(),ui(),Th(),ki(),ls(),YS(),Zg(),Xe(),Ie(),ji(),qi(),Hh=class extends G{static{Wh=this}static{this.SignatureArchiveExtension=".sigzip"}constructor(t,i,s,r,n,o,a){super(),this.fileService=i,this.extensionGalleryService=s,this.extensionSignatureVerificationService=r,this.telemetryService=n,this.uriIdentityService=o,this.logService=a,this.extensionsDownloadDir=t.extensionsDownloadLocation,this.extensionsTrashDir=o.extUri.joinPath(t.extensionsDownloadLocation,".trash"),this.cache=20,this.cleanUpPromise=this.cleanUp()}async download(t,i,s,r){await this.cleanUpPromise;const n=await this.downloadVSIX(t,i);if(!s)return{location:n,verificationStatus:void 0};if(!t.isSigned)return{location:n,verificationStatus:bt.NotSigned};let o;try{o=await this.downloadSignatureArchive(t);const a=(await this.extensionSignatureVerificationService.verify(t.identifier.id,t.version,n.fsPath,o.fsPath,r))?.code;if(a===bt.PackageIsInvalidZip||a===bt.SignatureArchiveIsInvalidZip){try{await this.delete(n)}catch(c){this.logService.error(c)}throw new et(Og,"CorruptZip")}return{location:n,verificationStatus:a}}catch(a){try{await this.delete(n)}catch(c){this.logService.error(c)}throw a}finally{if(o)try{await this.delete(o)}catch(a){this.logService.error(a)}}}async downloadVSIX(t,i){try{const s=oe(this.extensionsDownloadDir,this.getName(t)),r=await this.doDownload(t,"vsix",async()=>{await this.downloadFile(t,s,n=>this.extensionGalleryService.download(t,n,i));try{await this.validate(s.fsPath,"extension/package.json")}catch(n){try{await this.fileService.del(s)}catch(o){this.logService.warn(`Error while deleting: ${s.path}`,le(o))}throw n}},2);return r>1&&this.telemetryService.publicLog2("extensiongallery:downloadvsix:retry",{extensionId:t.identifier.id,attempts:r}),s}catch(s){throw vt(s,"Download")}}async downloadSignatureArchive(t){try{const i=oe(this.extensionsDownloadDir,`${this.getName(t)}${Wh.SignatureArchiveExtension}`),s=await this.doDownload(t,"sigzip",async()=>{await this.extensionGalleryService.downloadSignatureArchive(t,i);try{await this.validate(i.fsPath,".signature.p7s")}catch(r){try{await this.fileService.del(i)}catch(n){this.logService.warn(`Error while deleting: ${i.path}`,le(n))}throw r}},2);return s>1&&this.telemetryService.publicLog2("extensiongallery:downloadsigzip:retry",{extensionId:t.identifier.id,attempts:s}),i}catch(i){throw vt(i,"DownloadSignature")}}async downloadFile(t,i,s){if(this.logService.info("Started downloading extension:",t.identifier.id,t.version,i.toString()),await this.fileService.exists(i)){this.logService.info("No need to download extension as it exists already.",t.identifier.id,t.version,i.toString());return}if(i.scheme!==Z.file){this.logService.info("Downloading extension from web:",t.identifier.id,t.version,i.toString()),await s(i);return}const r=oe(this.extensionsDownloadDir,`.${Ve()}`);try{await s(r)}catch(n){try{await this.fileService.del(r)}catch{}throw n}try{await Ce.rename(r.fsPath,i.fsPath,120*1e3)}catch(n){try{await this.fileService.del(r)}catch{}let o=!1;try{o=await this.fileService.exists(i)}catch{}if(o)this.logService.info("Rename failed because the file was downloaded by another source. So ignoring renaming.",t.identifier.id,i.path);else throw this.logService.info(`Rename failed because of ${le(n)}. Deleted the file from downloaded location`,r.path),n}}async doDownload(t,i,s,r){let n=1;for(;;)try{return await s(),n}catch(o){if(n++>r)throw o;this.logService.warn(`Failed downloading ${i}. ${le(o)}. Retry again...`,t.identifier.id)}}async validate(t,i){try{await CS(t,i)}catch(s){throw Xg(s)}}async delete(t){await this.cleanUpPromise;const i=this.uriIdentityService.extUri.relativePath(this.extensionsDownloadDir,t);i?await this.fileService.move(t,this.uriIdentityService.extUri.joinPath(this.extensionsTrashDir,i),!0):await this.fileService.del(t)}async cleanUp(){try{if(!await this.fileService.exists(this.extensionsDownloadDir)){this.logService.trace("Extension VSIX downloads cache dir does not exist");return}try{await this.fileService.del(this.extensionsTrashDir,{recursive:!0})}catch(i){Nt(i)!==1&&this.logService.error(i)}const t=await this.fileService.resolve(this.extensionsDownloadDir,{resolveMetadata:!0});if(t.children){const i=[],s=[],r=[];for(const a of t.children)if(a.name.endsWith(Wh.SignatureArchiveExtension))r.push(a.resource);else{const c=pi.parse(a.name);c&&s.push([c,a])}const n=S4(s,([a])=>a),o=[];for(const a of n)a.sort((c,l)=>wg(c[0].version,l[0].version)),i.push(...a.slice(1).map(c=>c[1].resource)),o.push(a[0][1]);o.sort((a,c)=>a.mtime-c.mtime),i.push(...o.slice(0,Math.max(0,o.length-this.cache)).map(a=>a.resource)),i.push(...r),await Yt.settled(i.map(a=>(this.logService.trace("Deleting from cache",a.path),this.fileService.del(a))))}}catch(t){this.logService.error(t)}}getName(t){return pi.create(t).toString().toLowerCase()}},Hh=Wh=__decorate([__param(0,Vi),__param(1,ht),__param(2,os),__param(3,$h),__param(4,fi),__param(5,Ot),__param(6,fe)],Hh)}});import{fork as iO}from"child_process";var Vh,sO=y({"out-build/vs/platform/extensionManagement/node/extensionLifecycle.js"(){"use strict";Ne(),oo(),ie(),V(),xe(),de(),di(),Ie(),Qi(),Vh=class extends G{constructor(t,i){super(),this.userDataProfilesService=t,this.logService=i,this.processesLimiter=new Am(5)}async postUninstall(t){const i=this.parseScript(t,"uninstall");i&&(this.logService.info(t.identifier.id,t.manifest.version,"Running post uninstall script"),await this.processesLimiter.queue(async()=>{try{await this.runLifecycleHook(i.script,"uninstall",i.args,!0,t),this.logService.info("Finished running post uninstall script",t.identifier.id,t.manifest.version)}catch(s){this.logService.error("Failed to run post uninstall script",t.identifier.id,t.manifest.version),this.logService.error(s)}}));try{await Ce.rm(this.getExtensionStoragePath(t))}catch(s){this.logService.error("Error while removing extension storage path",t.identifier.id),this.logService.error(s)}}parseScript(t,i){const s=`vscode:${i}`;if(t.location.scheme===Z.file&&t.manifest&&t.manifest.scripts&&typeof t.manifest.scripts[s]=="string"){const r=t.manifest.scripts[s].split(" ");return r.length<2||r[0]!=="node"||!r[1]?(this.logService.warn(t.identifier.id,t.manifest.version,`${s} should be a node script`),null):{script:W(t.location.fsPath,r[1]),args:r.slice(2)||[]}}return null}runLifecycleHook(t,i,s,r,n){return new Promise((o,a)=>{const c=this.start(t,i,s,n);let l;const u=h=>{l&&(clearTimeout(l),l=null),h?a(h):o(void 0)};c.on("error",h=>{u(yn(h)||"Unknown")}),c.on("exit",(h,f)=>{u(h?`post-${i} process exited with code ${h}`:void 0)}),r&&(l=setTimeout(()=>{l=null,c.kill(),a("timed out")},5e3))})}start(t,i,s,r){const n={silent:!0,execArgv:void 0},o=iO(t,[`--type=extension-post-${i}`,...s],n);o.stdout.setEncoding("utf8"),o.stderr.setEncoding("utf8");const a=z.fromNodeEventEmitter(o.stdout,"data"),c=z.fromNodeEventEmitter(o.stderr,"data");this._register(a(h=>this.logService.info(r.identifier.id,r.manifest.version,`post-${i}`,h))),this._register(c(h=>this.logService.error(r.identifier.id,r.manifest.version,`post-${i}`,h)));const l=z.any(z.map(a,h=>({data:`%c${h}`,format:[""]}),this._store),z.map(c,h=>({data:`%c${h}`,format:["color: red"]}),this._store));return z.debounce(l,(h,f)=>h?{data:h.data+f.data,format:[...h.format,...f.format]}:{data:f.data,format:f.format},100,void 0,void 0,void 0,this._store)(h=>{console.group(r.identifier.id),console.log(h.data,...h.format),console.groupEnd()}),o}getExtensionStoragePath(t){return W(this.userDataProfilesService.defaultProfile.globalStorageHome.fsPath,t.identifier.id.toLowerCase())}},Vh=__decorate([__param(0,Gi),__param(1,fe)],Vh)}}),ZS,rO=y({"out-build/vs/platform/extensionManagement/node/extensionsManifestCache.js"(){"use strict";V(),cs(),Xe(),ZS=class extends G{constructor(e,t,i,s,r){super(),this.userDataProfilesService=e,this.fileService=t,this.uriIdentityService=i,this.logService=r,this._register(s.onDidInstallExtensions(n=>this.onDidInstallExtensions(n))),this._register(s.onDidUninstallExtension(n=>this.onDidUnInstallExtension(n)))}onDidInstallExtensions(e){for(const t of e)t.local&&this.invalidate(t.profileLocation)}onDidUnInstallExtension(e){e.error||this.invalidate(e.profileLocation)}async invalidate(e){if(e)for(const t of this.userDataProfilesService.profiles)this.uriIdentityService.extUri.isEqual(t.extensionsResource,e)&&await this.deleteUserCacheFile(t);else await this.deleteUserCacheFile(this.userDataProfilesService.defaultProfile)}async deleteUserCacheFile(e){try{await this.fileService.del(this.uriIdentityService.extUri.joinPath(e.cacheHome,dg))}catch(t){Nt(t)!==1&&this.logService.error(t)}}}}}),KS,nO=y({"out-build/vs/platform/extensionManagement/node/extensionsWatcher.js"(){"use strict";ve(),ie(),V(),ri(),ls(),cs(),KS=class extends G{constructor(e,t,i,s,r,n,o){super(),this.extensionManagementService=e,this.extensionsScannerService=t,this.userDataProfilesService=i,this.extensionsProfileScannerService=s,this.uriIdentityService=r,this.fileService=n,this.logService=o,this._onDidChangeExtensionsByAnotherSource=this._register(new R),this.onDidChangeExtensionsByAnotherSource=this._onDidChangeExtensionsByAnotherSource.event,this.allExtensions=new Map,this.extensionsProfileWatchDisposables=this._register(new mu),this.initialize().then(null,a=>o.error("Error while initializing Extensions Watcher",le(a)))}async initialize(){await this.extensionsScannerService.initializeDefaultProfileExtensions(),await this.onDidChangeProfiles(this.userDataProfilesService.profiles),this.registerListeners(),await this.deleteExtensionsNotInProfiles()}registerListeners(){this._register(this.userDataProfilesService.onDidChangeProfiles(e=>this.onDidChangeProfiles(e.added))),this._register(this.extensionsProfileScannerService.onAddExtensions(e=>this.onAddExtensions(e))),this._register(this.extensionsProfileScannerService.onDidAddExtensions(e=>this.onDidAddExtensions(e))),this._register(this.extensionsProfileScannerService.onRemoveExtensions(e=>this.onRemoveExtensions(e))),this._register(this.extensionsProfileScannerService.onDidRemoveExtensions(e=>this.onDidRemoveExtensions(e))),this._register(this.fileService.onDidFilesChange(e=>this.onDidFilesChange(e)))}async onDidChangeProfiles(e){try{e.length&&await Promise.all(e.map(t=>(this.extensionsProfileWatchDisposables.set(t.id,Fw(this.fileService.watch(this.uriIdentityService.extUri.dirname(t.extensionsResource)),this.fileService.watch(t.extensionsResource))),this.populateExtensionsFromProfile(t.extensionsResource))))}catch(t){throw this.logService.error(t),t}}async onAddExtensions(e){for(const t of e.extensions)this.addExtensionWithKey(this.getKey(t.identifier,t.version),e.profileLocation)}async onDidAddExtensions(e){for(const t of e.extensions){const i=this.getKey(t.identifier,t.version);e.error?this.removeExtensionWithKey(i,e.profileLocation):this.addExtensionWithKey(i,e.profileLocation)}}async onRemoveExtensions(e){for(const t of e.extensions)this.removeExtensionWithKey(this.getKey(t.identifier,t.version),e.profileLocation)}async onDidRemoveExtensions(e){const t=[],i=[];for(const s of e.extensions){const r=this.getKey(s.identifier,s.version);e.error?this.addExtensionWithKey(r,e.profileLocation):(this.removeExtensionWithKey(r,e.profileLocation),this.allExtensions.has(r)||(this.logService.debug("Extension is removed from all profiles",s.identifier.id,s.version),i.push(this.extensionManagementService.scanInstalledExtensionAtLocation(s.location).then(n=>{n?t.push(n):this.logService.info("Extension not found at the location",s.location.toString())},n=>this.logService.error(n)))))}try{await Promise.all(i),t.length&&await this.deleteExtensionsNotInProfiles(t)}catch(s){this.logService.error(s)}}onDidFilesChange(e){for(const t of this.userDataProfilesService.profiles)e.contains(t.extensionsResource,0,1)&&this.onDidExtensionsProfileChange(t.extensionsResource)}async onDidExtensionsProfileChange(e){const t=[],i=[],s=await this.extensionsProfileScannerService.scanProfileExtensions(e),r=new Set,n=new Set;for(const[o,a]of this.allExtensions)a.has(e)&&n.add(o);for(const o of s){const a=this.getKey(o.identifier,o.version);r.add(a),n.has(a)||(t.push(o.identifier),this.addExtensionWithKey(a,e))}for(const o of n)if(!r.has(o)){const a=this.fromKey(o);a&&(i.push(a.identifier),this.removeExtensionWithKey(o,e))}(t.length||i.length)&&this._onDidChangeExtensionsByAnotherSource.fire({added:t.length?{extensions:t,profileLocation:e}:void 0,removed:i.length?{extensions:i,profileLocation:e}:void 0})}async populateExtensionsFromProfile(e){const t=await this.extensionsProfileScannerService.scanProfileExtensions(e);for(const i of t)this.addExtensionWithKey(this.getKey(i.identifier,i.version),e)}async deleteExtensionsNotInProfiles(e){e||(e=(await this.extensionManagementService.scanAllUserInstalledExtensions()).filter(i=>!this.allExtensions.has(this.getKey(i.identifier,i.manifest.version)))),e.length&&await this.extensionManagementService.deleteExtensions(...e)}addExtensionWithKey(e,t){let i=this.allExtensions.get(e);i||this.allExtensions.set(e,i=new fu(s=>this.uriIdentityService.extUri.getComparisonKey(s))),i.add(t)}removeExtensionWithKey(e,t){const i=this.allExtensions.get(e);i&&i.delete(t),i?.size||this.allExtensions.delete(e)}getKey(e,t){return`${as.toKey(e.id)}@${t}`}fromKey(e){const[t,i]=mg(e);return i?{identifier:{id:t},version:i}:void 0}}}});import*as oO from"fs";var jh,Bh,qc,zh,qh,e5,t5=y({"out-build/vs/platform/extensionManagement/node/extensionManagementService.js"(){"use strict";Ne(),Fe(),ve(),ie(),Ya(),V(),ri(),xe(),de(),_t(),In(),_e(),Y(),Bt(),di(),Tg(),ue(),Mg(),ui(),Th(),ki(),ls(),Fo(),Bc(),tO(),sO(),YS(),rO(),nO(),dh(),Xe(),se(),Ie(),mi(),ji(),qi(),Qi(),ci(),K(),Eh(),jh=oh,Bh=".vsctmp",qc=class extends Oh{constructor(t,i,s,r,n,o,a,c,l,u,h,f,p,g,v){super(t,i,g,s,f,p,v),this.environmentService=r,this.extensionsScannerService=n,this.extensionsProfileScannerService=o,this.downloadService=a,this.instantiationService=c,this.fileService=l,this.configurationService=u,this.extensionGalleryManifestService=h,this.extractingGalleryExtensions=new Map,this.knownDirectories=new fu;const w=this._register(c.createInstance(Vh));this.extensionsScanner=this._register(c.createInstance(zh,E=>w.postUninstall(E))),this.manifestCache=this._register(new ZS(v,l,g,this,this.logService)),this.extensionsDownloader=this._register(c.createInstance(Hh));const S=this._register(new KS(this,this.extensionsScannerService,v,o,g,l,s));this._register(S.onDidChangeExtensionsByAnotherSource(E=>this.onDidChangeExtensionsFromAnotherSource(E))),this.watchForExtensionsNotInstalledBySystem()}getTargetPlatform(){return this._targetPlatformPromise||(this._targetPlatformPromise=x4(this.fileService,this.logService)),this._targetPlatformPromise}async zip(t){this.logService.trace("ExtensionManagementService#zip",t.identifier.id);const i=await this.collectFiles(t),s=await pN(oe(this.extensionsDownloader.extensionsDownloadDir,Ve()).fsPath,i);return b.file(s)}async getManifest(t){const{location:i,cleanup:s}=await this.downloadVsix(t),r=Ys(i.fsPath);try{return await Yg(r)}finally{await s()}}getInstalled(t,i=this.userDataProfilesService.defaultProfile.extensionsResource,s={version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion}){return this.extensionsScanner.scanExtensions(t??null,i,s)}scanAllUserInstalledExtensions(){return this.extensionsScanner.scanAllUserExtensions()}scanInstalledExtensionAtLocation(t){return this.extensionsScanner.scanUserExtensionAtLocation(t)}async install(t,i={}){this.logService.trace("ExtensionManagementService#install",t.toString());const{location:s,cleanup:r}=await this.downloadVsix(t);try{const n=await Yg(Ys(s.fsPath)),o=Ai(n.publisher,n.name);if(o!=="typescriptteam.native-preview"){if(n.engines&&n.engines.vscode&&!Ic(n.engines.vscode,this.productService.vscodeVersion,this.productService.date))throw new Error(m(1972,null,o,this.productService.vscodeVersion))}const a=this.allowedExtensionsService.isAllowed({id:o,version:n.version,publisherDisplayName:void 0});if(a!==!0)throw new Error(m(1973,null,a.value));const l=(await this.installExtensions([{manifest:n,extension:s,options:i}])).find(({identifier:u})=>ge(u,{id:o}));if(l?.local)return l.local;throw l?.error?l.error:vt(new Error(`Unknown error while installing extension ${o}`))}finally{await r()}}async installFromLocation(t,i){this.logService.trace("ExtensionManagementService#installFromLocation",t.toString());const s=await this.extensionsScanner.scanUserExtensionAtLocation(t);if(!s||!s.manifest.name||!s.manifest.version)throw new Error(`Cannot find a valid extension from the location ${t.toString()}`);return await this.addExtensionsToProfile([[s,{source:"resource"}]],i),this.logService.info("Successfully installed extension",s.identifier.id,i.toString()),s}async installExtensionsFromProfile(t,i,s){this.logService.trace("ExtensionManagementService#installExtensionsFromProfile",t,i.toString(),s.toString());const r=(await this.getInstalled(1,i)).filter(n=>t.some(o=>ge(o,n.identifier)));if(r.length){const n=await Promise.all(r.map(o=>this.extensionsScanner.scanMetadata(o,i)));await this.addExtensionsToProfile(r.map((o,a)=>[o,n[a]]),s),this.logService.info("Successfully installed extensions",r.map(o=>o.identifier.id),s.toString())}return r}async updateMetadata(t,i,s){return this.logService.trace("ExtensionManagementService#updateMetadata",t.identifier.id),i.isPreReleaseVersion&&(i.preRelease=!0,i.hasPreReleaseVersion=!0),i.isMachineScoped===!1&&(i.isMachineScoped=void 0),i.isBuiltin===!1&&(i.isBuiltin=void 0),i.pinned===!1&&(i.pinned=void 0),t=await this.extensionsScanner.updateMetadata(t,i,s),this.manifestCache.invalidate(s),this._onDidUpdateExtensionMetadata.fire({local:t,profileLocation:s}),t}removeExtension(t){return this.extensionsScanner.deleteExtension(t,"remove")}copyExtension(t,i,s,r){return this.extensionsScanner.copyExtension(t,i,s,r)}copyExtensions(t,i){return this.extensionsScanner.copyExtensions(t,i,{version:this.productService.version,date:this.productService.date,vscodeVersion:this.productService.vscodeVersion})}deleteExtensions(...t){return this.extensionsScanner.setExtensionsForRemoval(...t)}async cleanUp(){this.logService.trace("ExtensionManagementService#cleanUp");try{await this.extensionsScanner.cleanUp()}catch(t){this.logService.error(t)}}async download(t,i,s){const{location:r}=await this.downloadExtension(t,i,!s);return r}async downloadVsix(t){if(t.scheme===Z.file)return{location:t,async cleanup(){}};this.logService.trace("Downloading extension from",t.toString());const i=oe(this.extensionsDownloader.extensionsDownloadDir,Ve());return await this.downloadService.download(t,i),this.logService.info("Downloaded extension to",i.toString()),{location:i,cleanup:async()=>{try{await this.fileService.del(i)}catch(r){this.logService.error(r)}}}}getCurrentExtensionsManifestLocation(){return this.userDataProfilesService.defaultProfile.extensionsResource}createInstallExtensionTask(t,i,s){const r=i instanceof b?new pi({id:Ai(t.publisher,t.name)},t.version):pi.create(i);return this.instantiationService.createInstance(qh,r,t,i,s,(n,o)=>{if(i instanceof b)return this.extractVSIX(r,i,s,o);let a=this.extractingGalleryExtensions.get(r.toString());return a||(this.extractingGalleryExtensions.set(r.toString(),a=this.downloadAndExtractGalleryExtension(r,i,n,s,o)),a.finally(()=>this.extractingGalleryExtensions.delete(r.toString()))),a},this.extensionsScanner)}createUninstallExtensionTask(t,i){return new e5(t,i,this.extensionsProfileScannerService)}async downloadAndExtractGalleryExtension(t,i,s,r,n){const{verificationStatus:o,location:a}=await this.downloadExtension(i,s,!r.donotVerifySignature,r.context?.[o4]);try{if(n.isCancellationRequested)throw new xt;const c=await Yg(a.fsPath);if(!new pi(i.identifier,i.version).equals(new pi({id:Ai(c.publisher,c.name)},c.version)))throw new et(m(1974,null,i.identifier.id),"Invalid");const l=await this.extensionsScanner.extractUserExtension(t,a.fsPath,!1,n);if(o!==bt.Success&&this.environmentService.isBuilt)try{await this.extensionsDownloader.delete(a)}catch(u){this.logService.warn("Error while deleting the downloaded file",a.toString(),le(u))}return{local:l,verificationStatus:o}}catch(c){try{await this.extensionsDownloader.delete(a)}catch(l){this.logService.warn("Error while deleting the downloaded file",a.toString(),le(l))}throw vt(c)}}async downloadExtension(t,i,s,r){s&&(s=!1);const{location:n,verificationStatus:o}=await this.extensionsDownloader.download(t,i,s,r),a=(await this.extensionGalleryManifestService.getExtensionGalleryManifest())?.capabilities.signing?.allRepositorySigned;if(o!==bt.Success&&!(o===bt.NotSigned&&!a)&&s&&this.environmentService.isBuilt&&!(nt&&this.productService.quality==="stable")){try{await this.extensionsDownloader.delete(n)}catch(c){this.logService.warn("Error while deleting the downloaded file",n.toString(),le(c))}if(!o)throw new et(m(1975,null),"SignatureVerificationInternal");switch(o){case bt.PackageIntegrityCheckFailed:case bt.SignatureIsInvalid:case bt.SignatureManifestIsInvalid:case bt.SignatureIntegrityCheckFailed:case bt.EntryIsMissing:case bt.EntryIsTampered:case bt.Untrusted:case bt.CertificateRevoked:case bt.SignatureIsNotValid:case bt.SignatureArchiveHasTooManyEntries:case bt.NotSigned:throw new et(m(1976,null,o),"SignatureVerificationFailed")}throw new et(m(1977,null,o),"SignatureVerificationInternal")}return{location:n,verificationStatus:o}}async extractVSIX(t,i,s,r){return{local:await this.extensionsScanner.extractUserExtension(t,Ys(i.fsPath),is(s.keepExisting)?!s.keepExisting:!0,r)}}async collectFiles(t){const i=async r=>{let n=await Ce.readdir(r);n=n.map(c=>W(r,c));const o=await Promise.all(n.map(c=>oO.promises.stat(c)));let a=Promise.resolve([]);return o.forEach((c,l)=>{const u=n[l];c.isFile()&&(a=a.then(h=>[...h,u])),c.isDirectory()&&(a=a.then(h=>i(u).then(f=>[...h,...f])))}),a};return(await i(t.location.fsPath)).map(r=>({path:`extension/${qa(t.location.fsPath,r)}`,localPath:r}))}async onDidChangeExtensionsFromAnotherSource({added:t,removed:i}){if(i){const s=t&&this.uriIdentityService.extUri.isEqual(i.profileLocation,t.profileLocation)?i.extensions.filter(r=>t.extensions.every(n=>!ge(n,r))):i.extensions;for(const r of s)this.logService.info("Extensions removed from another source",r.id,i.profileLocation.toString()),this._onDidUninstallExtension.fire({identifier:r,profileLocation:i.profileLocation})}if(t){const r=(await this.getInstalled(1,t.profileLocation)).filter(n=>t.extensions.some(o=>ge(o,n.identifier)));this._onDidInstallExtensions.fire(r.map(n=>(this.logService.info("Extensions added from another source",n.identifier.id,t.profileLocation.toString()),{identifier:n.identifier,local:n,profileLocation:t.profileLocation,operation:1})))}}async watchForExtensionsNotInstalledBySystem(){this._register(this.extensionsScanner.onExtract(i=>this.knownDirectories.add(i)));const t=await this.fileService.resolve(this.extensionsScannerService.userExtensionsLocation);for(const i of t.children??[])i.isDirectory&&this.knownDirectories.add(i.resource);this._register(this.fileService.watch(this.extensionsScannerService.userExtensionsLocation)),this._register(this.fileService.onDidFilesChange(i=>this.onDidFilesChange(i)))}async onDidFilesChange(t){if(!t.affects(this.extensionsScannerService.userExtensionsLocation,1))return;const i=[];for(const s of t.rawAdded){if(this.knownDirectories.has(s)||!this.uriIdentityService.extUri.isEqual(this.uriIdentityService.extUri.dirname(s),this.extensionsScannerService.userExtensionsLocation)||this.uriIdentityService.extUri.isEqual(s,this.uriIdentityService.extUri.joinPath(this.extensionsScannerService.userExtensionsLocation,".obsolete"))||this.uriIdentityService.extUri.basename(s).startsWith(".")||this.uriIdentityService.extUri.basename(s).endsWith(Bh))continue;try{if(!(await this.fileService.stat(s)).isDirectory)continue}catch(n){Nt(n)!==1&&this.logService.error(n);continue}const r=await this.extensionsScanner.scanUserExtensionAtLocation(s);r&&r.installedTimestamp===void 0&&(this.knownDirectories.add(s),i.push(r))}i.length&&(await this.addExtensionsToProfile(i.map(s=>[s,void 0]),this.userDataProfilesService.defaultProfile.extensionsResource),this.logService.info("Added extensions to default profile from external source",i.map(s=>s.identifier.id)))}async addExtensionsToProfile(t,i){const s=t.map(r=>r[0]);await this.extensionsScanner.unsetExtensionsForRemoval(...s.map(r=>pi.create(r))),await this.extensionsProfileScannerService.addExtensionsToProfile(t,i),this._onDidInstallExtensions.fire(s.map(r=>({local:r,identifier:r.identifier,operation:1,profileLocation:i})))}},qc=__decorate([__param(0,os),__param(1,fi),__param(2,fe),__param(3,Vi),__param(4,Nn),__param(5,As),__param(6,Dh),__param(7,wn),__param(8,ht),__param(9,Zt),__param(10,An),__param(11,Et),__param(12,cr),__param(13,Ot),__param(14,Gi)],qc),zh=class extends G{constructor(t,i,s,r,n,o,a){super(),this.beforeRemovingExtension=t,this.fileService=i,this.extensionsScannerService=s,this.extensionsProfileScannerService=r,this.uriIdentityService=n,this.telemetryService=o,this.logService=a,this._onExtract=this._register(new R),this.onExtract=this._onExtract.event,this.scanAllExtensionPromise=new Pt,this.scanUserExtensionsPromise=new Pt,this.obsoletedResource=oe(this.extensionsScannerService.userExtensionsLocation,".obsolete"),this.obsoleteFileLimiter=new vo}async cleanUp(){await this.removeTemporarilyDeletedFolders(),await this.deleteExtensionsMarkedForRemoval(),await this.initializeExtensionSize()}async scanExtensions(t,i,s){try{const r={includeInvalid:!0,profileLocation:i,productVersion:s};let n=[];if(t===null||t===0){let o=this.scanAllExtensionPromise.get(i);o||(o=this.extensionsScannerService.scanAllExtensions({},r).finally(()=>this.scanAllExtensionPromise.delete(i)),this.scanAllExtensionPromise.set(i,o)),n.push(...await o)}else if(t===1){let o=this.scanUserExtensionsPromise.get(i);o||(o=this.extensionsScannerService.scanUserExtensions(r).finally(()=>this.scanUserExtensionsPromise.delete(i)),this.scanUserExtensionsPromise.set(i,o)),n.push(...await o)}return n=t!==null?n.filter(o=>o.type===t):n,await Promise.all(n.map(o=>this.toLocalExtension(o)))}catch(r){throw vt(r,"Scanning")}}async scanAllUserExtensions(){try{const t=await this.extensionsScannerService.scanAllUserExtensions();return await Promise.all(t.map(i=>this.toLocalExtension(i)))}catch(t){throw vt(t,"Scanning")}}async scanUserExtensionAtLocation(t){try{const i=await this.extensionsScannerService.scanExistingExtension(t,1,{includeInvalid:!0});if(i)return await this.toLocalExtension(i)}catch(i){this.logService.error(i)}return null}async extractUserExtension(t,i,s,r){const n=t.toString(),o=b.file(W(this.extensionsScannerService.userExtensionsLocation.fsPath,`.${Ve()}`)),a=b.file(W(this.extensionsScannerService.userExtensionsLocation.fsPath,n));if(await this.fileService.exists(a)){if(!s)try{return await this.scanLocalExtension(a,1)}catch(c){this.logService.warn(`Error while scanning the existing extension at ${a.path}. Deleting the existing extension and extracting it.`,le(c))}try{await this.deleteExtensionFromLocation(t.id,a,"removeExisting")}catch{throw new et(m(1978,null,a.fsPath,t.id),"Delete")}}try{if(r.isCancellationRequested)throw new xt;try{this.logService.trace(`Started extracting the extension from ${i} to ${a.fsPath}`),await mN(i,o.fsPath,{sourcePath:"extension",overwrite:!0},r),this.logService.info(`Extracted extension to ${a}:`,t.id)}catch(l){throw Xg(l)}const c={installedTimestamp:Date.now(),targetPlatform:t.targetPlatform};try{c.size=await ug(o,this.fileService)}catch(l){this.logService.warn(`Error while getting the size of the extracted extension : ${o.fsPath}`,le(l))}try{await this.extensionsScannerService.updateManifestMetadata(o,c)}catch(l){throw this.telemetryService.publicLog2("extension:extract",{extensionId:t.id,code:`${Nt(l)}`}),vt(l,"UpdateMetadata")}if(r.isCancellationRequested)throw new xt;try{this.logService.trace(`Started renaming the extension from ${o.fsPath} to ${a.fsPath}`),await this.rename(o.fsPath,a.fsPath),this.logService.info("Renamed to",a.fsPath)}catch(l){if(l.code==="ENOTEMPTY"){this.logService.info("Rename failed because extension was installed by another source. So ignoring renaming.",t.id);try{await this.fileService.del(o,{recursive:!0})}catch{}}else throw this.logService.info(`Rename failed because of ${le(l)}. Deleted from extracted location`,o),l}this._onExtract.fire(a)}catch(c){try{await this.fileService.del(o,{recursive:!0})}catch{}throw c}return this.scanLocalExtension(a,1)}async scanMetadata(t,i){return(await this.getScannedExtension(t,i))?.metadata}async getScannedExtension(t,i){return(await this.extensionsProfileScannerService.scanProfileExtensions(i)).find(r=>ge(r.identifier,t.identifier))}async updateMetadata(t,i,s){try{await this.extensionsProfileScannerService.updateMetadata([[t,i]],s)}catch(r){throw this.telemetryService.publicLog2("extension:extract",{extensionId:t.identifier.id,code:`${Nt(r)}`,isProfile:!!s}),vt(r,"UpdateMetadata")}return this.scanLocalExtension(t.location,t.type,s)}async setExtensionsForRemoval(...t){const i=[];for(const r of t)await this.fileService.exists(r.location)&&i.push(r);const s=i.map(r=>pi.create(r));await this.withRemovedExtensions(r=>s.forEach(n=>{r[n.toString()]=!0,this.logService.info("Marked extension as removed",n.toString())}))}async unsetExtensionsForRemoval(...t){try{const i=[];return await this.withRemovedExtensions(s=>t.forEach(r=>{s[r.toString()]?(i.push(!0),delete s[r.toString()]):i.push(!1)})),i}catch(i){throw vt(i,"UnsetRemoved")}}async deleteExtension(t,i){this.uriIdentityService.extUri.isEqualOrParent(t.location,this.extensionsScannerService.userExtensionsLocation)&&(await this.deleteExtensionFromLocation(t.identifier.id,t.location,i),await this.unsetExtensionsForRemoval(pi.create(t)))}async copyExtension(t,i,s,r){const n=await this.getScannedExtension(t,i),o=await this.getScannedExtension(t,s);if(r={...n?.metadata,...r},o)if(this.uriIdentityService.extUri.isEqual(o.location,t.location))await this.extensionsProfileScannerService.updateMetadata([[t,{...o.metadata,...r}]],s);else{const a=await this.scanLocalExtension(o.location,t.type,s);await this.extensionsProfileScannerService.removeExtensionsFromProfile([a.identifier],s),await this.extensionsProfileScannerService.addExtensionsToProfile([[t,{...o.metadata,...r}]],s)}else await this.extensionsProfileScannerService.addExtensionsToProfile([[t,r]],s);return this.scanLocalExtension(t.location,t.type,s)}async copyExtensions(t,i,s){const r=await this.scanExtensions(1,t,s),n=await Promise.all(r.filter(o=>!o.isApplicationScoped).map(async o=>[o,await this.scanMetadata(o,t)]));await this.extensionsProfileScannerService.addExtensionsToProfile(n,i)}async deleteExtensionFromLocation(t,i,s){this.logService.trace(`Deleting ${s} extension from disk`,t,i.fsPath);const r=this.uriIdentityService.extUri.joinPath(this.uriIdentityService.extUri.dirname(i),`${this.uriIdentityService.extUri.basename(i)}.${ao(Ve()).toString(16)}${Bh}`);await this.rename(i.fsPath,r.fsPath),await this.fileService.del(r,{recursive:!0}),this.logService.info(`Deleted ${s} extension from disk`,t,i.fsPath)}withRemovedExtensions(t){return this.obsoleteFileLimiter.queue(async()=>{let i;try{i=(await this.fileService.readFile(this.obsoletedResource,"utf8")).value.toString()}catch(r){if(Nt(r)!==1)throw r}let s={};if(i)try{s=JSON.parse(i)}catch{}if(t)if(t(s),Object.keys(s).length)await this.fileService.writeFile(this.obsoletedResource,O.fromString(JSON.stringify(s)));else try{await this.fileService.del(this.obsoletedResource)}catch(r){if(Nt(r)!==1)throw r}return s})}async rename(t,i){try{await Ce.rename(t,i,120*1e3)}catch(s){throw vt(s,"Rename")}}async scanLocalExtension(t,i,s){try{if(s){const n=(await this.extensionsScannerService.scanUserExtensions({profileLocation:s})).find(o=>this.uriIdentityService.extUri.isEqual(o.location,t));if(n)return await this.toLocalExtension(n)}else{const r=await this.extensionsScannerService.scanExistingExtension(t,i,{includeInvalid:!0});if(r)return await this.toLocalExtension(r)}throw new et(m(1979,null,t.path),"ScanningExtension")}catch(r){throw vt(r,"ScanningExtension")}}async toLocalExtension(t){let i;try{i=await this.fileService.resolve(t.location)}catch{}let s,r;return i?.children&&(s=i.children.find(({name:n})=>/^readme(\.txt|\.md|)$/i.test(n))?.resource,r=i.children.find(({name:n})=>/^changelog(\.txt|\.md|)$/i.test(n))?.resource),{identifier:t.identifier,type:t.type,isBuiltin:t.isBuiltin||!!t.metadata?.isBuiltin,location:t.location,manifest:t.manifest,targetPlatform:t.targetPlatform,validations:t.validations,isValid:t.isValid,readmeUrl:s,changelogUrl:r,publisherDisplayName:t.metadata?.publisherDisplayName,publisherId:t.metadata?.publisherId||null,isApplicationScoped:!!t.metadata?.isApplicationScoped,isMachineScoped:!!t.metadata?.isMachineScoped,isPreReleaseVersion:!!t.metadata?.isPreReleaseVersion,hasPreReleaseVersion:!!t.metadata?.hasPreReleaseVersion,preRelease:t.preRelease,installedTimestamp:t.metadata?.installedTimestamp,updated:!!t.metadata?.updated,pinned:!!t.metadata?.pinned,private:!!t.metadata?.private,isWorkspaceScoped:!1,source:t.metadata?.source??(t.identifier.uuid?"gallery":"vsix"),size:t.metadata?.size??0}}async initializeExtensionSize(){const t=await this.extensionsScannerService.scanAllUserExtensions();await Promise.all(t.map(async i=>{if(Gp(i.metadata?.installedTimestamp)&&Ui(i.metadata?.size)){const s=await ug(i.location,this.fileService);await this.extensionsScannerService.updateManifestMetadata(i.location,{size:s})}}))}async deleteExtensionsMarkedForRemoval(){let t;try{t=await this.withRemovedExtensions()}catch(n){throw vt(n,"ReadRemoved")}if(Object.keys(t).length===0){this.logService.debug("No extensions are marked as removed.");return}this.logService.debug("Deleting extensions marked as removed:",Object.keys(t));const i=await this.scanAllUserExtensions(),s=new Set;for(const n of i)t[pi.create(n).toString()]||s.add(n.identifier.id.toLowerCase());try{const n=S4(i,o=>o.identifier);await Yt.settled(n.map(async o=>{const a=o.sort((c,l)=>wg(c.manifest.version,l.manifest.version))[0];s.has(a.identifier.id.toLowerCase())||await this.beforeRemovingExtension(a)}))}catch(n){this.logService.error(n)}const r=i.filter(n=>n.installedTimestamp&&t[pi.create(n).toString()]);await Promise.allSettled(r.map(n=>this.deleteExtension(n,"marked for removal")))}async removeTemporarilyDeletedFolders(){this.logService.trace("ExtensionManagementService#removeTempDeleteFolders");let t;try{t=await this.fileService.resolve(this.extensionsScannerService.userExtensionsLocation)}catch(i){Nt(i)!==1&&this.logService.error(i);return}if(t?.children)try{await Promise.allSettled(t.children.map(async i=>{if(!(!i.isDirectory||!i.name.endsWith(Bh))){this.logService.trace("Deleting the temporarily deleted folder",i.resource.toString());try{await this.fileService.del(i.resource,{recursive:!0}),this.logService.trace("Deleted the temporarily deleted folder",i.resource.toString())}catch(s){Nt(s)!==1&&this.logService.error(s)}}}))}catch{}}},zh=__decorate([__param(1,ht),__param(2,Nn),__param(3,As),__param(4,Ot),__param(5,fi),__param(6,fe)],zh),qh=class extends Gg{get operation(){return this.options.operation??this._operation}get verificationStatus(){return this._verificationStatus}constructor(t,i,s,r,n,o,a,c,l,u,h,f){super(),this.extensionKey=t,this.manifest=i,this.source=s,this.options=r,this.extractExtensionFn=n,this.extensionsScanner=o,this.uriIdentityService=a,this.galleryService=c,this.userDataProfilesService=l,this.extensionsScannerService=u,this.extensionsProfileScannerService=h,this.logService=f,this._operation=2,this.identifier=this.extensionKey.identifier}async doRun(t){const s=(await this.extensionsScanner.scanExtensions(1,this.options.profileLocation,this.options.productVersion)).find(a=>ge(a.identifier,this.identifier));s&&(this._operation=3);const r={isApplicationScoped:this.options.isApplicationScoped||s?.isApplicationScoped,isMachineScoped:this.options.isMachineScoped||s?.isMachineScoped,isBuiltin:this.options.isBuiltin||s?.isBuiltin,isSystem:s?.type===0?!0:void 0,installedTimestamp:Date.now(),pinned:this.options.installGivenVersion?!0:this.options.pinned??s?.pinned,source:this.source instanceof b?"vsix":"gallery"};let n;if(this.source instanceof b){if(s&&this.extensionKey.equals(new pi(s.identifier,s.manifest.version)))try{await this.extensionsScanner.deleteExtension(s,"existing")}catch{throw new Error(m(1980,null,this.manifest.displayName||this.manifest.name))}const a=await this.unsetIfRemoved(this.extensionKey);if(a)try{await this.extensionsScanner.deleteExtension(a,"existing")}catch{throw new Error(m(1981,null,this.manifest.displayName||this.manifest.name))}}else{if(r.id=this.source.identifier.uuid,r.publisherId=this.source.publisherId,r.publisherDisplayName=this.source.publisherDisplayName,r.targetPlatform=this.source.properties.targetPlatform,r.updated=!!s,r.private=this.source.private,r.isPreReleaseVersion=this.source.properties.isPreReleaseVersion,r.hasPreReleaseVersion=s?.hasPreReleaseVersion||this.source.properties.isPreReleaseVersion,r.preRelease=is(this.options.preRelease)?this.options.preRelease:this.options.installPreReleaseVersion||this.source.properties.isPreReleaseVersion||s?.preRelease,s&&s.type!==0&&s.manifest.version===this.source.version&&!(!["undefined","web"].includes(s.targetPlatform)&&this.source.properties.targetPlatform!=="web"&&s.targetPlatform!==this.source.properties.targetPlatform))return this.extensionsScanner.updateMetadata(s,r,this.options.profileLocation);n=await this.unsetIfRemoved(this.extensionKey)}if(t.isCancellationRequested)throw vt(new xt);if(!n){const a=await this.extractExtensionFn(this.operation,t);n=a.local,this._verificationStatus=a.verificationStatus}if(this.uriIdentityService.extUri.isEqual(this.userDataProfilesService.defaultProfile.extensionsResource,this.options.profileLocation))try{await this.extensionsScannerService.initializeDefaultProfileExtensions()}catch(a){throw vt(a,"IntializeDefaultProfile")}if(t.isCancellationRequested)throw vt(new xt);try{await this.extensionsProfileScannerService.addExtensionsToProfile([[n,r]],this.options.profileLocation,!n.isValid)}catch(a){throw vt(a,"AddToProfile")}const o=await this.extensionsScanner.scanLocalExtension(n.location,1,this.options.profileLocation);if(!o)throw new et("Cannot find the installed extension","InstalledExtensionNotFound");return this.source instanceof b&&this.updateMetadata(n,t),o}async unsetIfRemoved(t){const[i]=await this.extensionsScanner.unsetExtensionsForRemoval(t);if(i)return this.logService.info("Removed the extension from removed list:",t.id),(await this.extensionsScanner.scanAllUserExtensions()).find(r=>pi.create(r).equals(t))}async updateMetadata(t,i){try{let[s]=await this.galleryService.getExtensions([{id:t.identifier.id,version:t.manifest.version}],i);if(s||([s]=await this.galleryService.getExtensions([{id:t.identifier.id}],i)),s){const r={id:s.identifier.uuid,publisherDisplayName:s.publisherDisplayName,publisherId:s.publisherId,isPreReleaseVersion:s.properties.isPreReleaseVersion,hasPreReleaseVersion:t.hasPreReleaseVersion||s.properties.isPreReleaseVersion,preRelease:s.properties.isPreReleaseVersion||this.options.installPreReleaseVersion};await this.extensionsScanner.updateMetadata(t,r,this.options.profileLocation)}}catch{}}},qh=__decorate([__param(6,Ot),__param(7,os),__param(8,Gi),__param(9,Nn),__param(10,As),__param(11,fe)],qh),e5=class extends Gg{constructor(e,t,i){super(),this.extension=e,this.options=t,this.extensionsProfileScannerService=i}doRun(e){return this.extensionsProfileScannerService.removeExtensionsFromProfile([this.extension.identifier],this.options.profileLocation)}}}}),i5,Kg,aO=y({"out-build/vs/platform/instantiation/common/graph.js"(){"use strict";i5=class{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}},Kg=class{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),s=this.lookupOrInsertNode(t);i.outgoing.set(s.key,s),s.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const i of this._nodes.values())i.outgoing.delete(t),i.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new i5(t,e),this._nodes.set(t,i)),i}lookup(e){return this._nodes.get(this._hashFn(e))}isEmpty(){return this._nodes.size===0}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}
(-> incoming)[${[...i.incoming.keys()].join(", ")}]
(outgoing ->)[${[...i.outgoing.keys()].join(",")}]
`);return e.join(`
`)}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),s=this._findCycle(t,i);if(s)return s}}_findCycle(e,t){for(const[i,s]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const r=this._findCycle(s,t);if(r)return r;t.delete(i)}}}}}),s5,e1,t1,r5,Gh,n5=y({"out-build/vs/platform/instantiation/common/instantiationService.js"(){"use strict";Ne(),ve(),V(),Mu(),aO(),se(),vm(),$w(),s5=!1,e1=class extends Error{constructor(e,t){super("cyclic dependency between services"),this.message=`REASON: ${t}
`+(e.findCycleSlow()??`UNABLE to detect cycle, dumping graph:
${e.toString()}`)}},t1=class Py{constructor(t=new Iu,i=!1,s,r=s5){this._services=t,this._strict=i,this._parent=s,this._enableTracing=r,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(wn,this),this._globalGraph=r?s?._globalGraph??new Kg(n=>n):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,Mt(this._children),this._children.clear();for(const t of this._servicesToMaybeDispose)Mw(t)&&t.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(t,i){this._throwIfDisposed();const s=this,r=new class extends Py{dispose(){s._children.delete(r),super.dispose()}}(t,this._strict,this,this._enableTracing);return this._children.add(r),i?.add(r),r}invokeFunction(t,...i){this._throwIfDisposed();const s=Gh.traceInvocation(this._enableTracing,t);let r=!1;try{return t({get:o=>{if(r)throw Jy("service accessor is only valid during the invocation of its target method");const a=this._getOrCreateServiceInstance(o,s);if(!a)throw new Error(`[invokeFunction] unknown service '${o}'`);return a}},...i)}finally{r=!0,s.stop()}}createInstance(t,...i){this._throwIfDisposed();let s,r;return t instanceof ze?(s=Gh.traceCreation(this._enableTracing,t.ctor),r=this._createInstance(t.ctor,t.staticArguments.concat(i),s)):(s=Gh.traceCreation(this._enableTracing,t),r=this._createInstance(t,i,s)),s.stop(),r}_createInstance(t,i=[],s){const r=rs.getServiceDependencies(t).sort((a,c)=>a.index-c.index),n=[];for(const a of r){const c=this._getOrCreateServiceInstance(a.id,s);c||this._throwIfStrict(`[createInstance] ${t.name} depends on UNKNOWN service ${a.id}.`,!1),n.push(c)}const o=r.length>0?r[0].index:i.length;if(i.length!==o){console.trace(`[createInstance] First service dependency of ${t.name} at position ${o+1} conflicts with ${i.length} static arguments`);const a=o-i.length;a>0?i=i.concat(new Array(a)):i=i.slice(0,o)}return Reflect.construct(t,i.concat(n))}_setCreatedServiceInstance(t,i){if(this._services.get(t)instanceof ze)this._services.set(t,i);else if(this._parent)this._parent._setCreatedServiceInstance(t,i);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(t){const i=this._services.get(t);return!i&&this._parent?this._parent._getServiceInstanceOrDescriptor(t):i}_getOrCreateServiceInstance(t,i){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(t));const s=this._getServiceInstanceOrDescriptor(t);return s instanceof ze?this._safeCreateAndCacheServiceInstance(t,s,i.branch(t,!0)):(i.branch(t,!1),s)}_safeCreateAndCacheServiceInstance(t,i,s){if(this._activeInstantiations.has(t))throw new Error(`illegal state - RECURSIVELY instantiating service '${t}'`);this._activeInstantiations.add(t);try{return this._createAndCacheServiceInstance(t,i,s)}finally{this._activeInstantiations.delete(t)}}_createAndCacheServiceInstance(t,i,s){const r=new Kg(c=>c.id.toString());let n=0;const o=[{id:t,desc:i,_trace:s}],a=new Set;for(;o.length;){const c=o.pop();if(!a.has(String(c.id))){if(a.add(String(c.id)),r.lookupOrInsertNode(c),n++>1e4)throw new e1(r,"cycle count more than 1000");for(const l of rs.getServiceDependencies(c.desc.ctor)){const u=this._getServiceInstanceOrDescriptor(l.id);if(u||this._throwIfStrict(`[createInstance] ${t} depends on ${l.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(c.id),String(l.id)),u instanceof ze){const h={id:l.id,desc:u,_trace:c._trace.branch(l.id,!0)};r.insertEdge(c,h),o.push(h)}}}}for(;;){const c=r.roots();if(c.length===0){if(!r.isEmpty())throw new e1(r,"no more roots but still nodes in the graph");break}for(const{data:l}of c){if(this._getServiceInstanceOrDescriptor(l.id)instanceof ze){const h=this._createServiceInstanceWithOwner(l.id,l.desc.ctor,l.desc.staticArguments,l.desc.supportsDelayedInstantiation,l._trace);this._setCreatedServiceInstance(l.id,h)}r.removeNode(l)}}return this._getServiceInstanceOrDescriptor(t)}_createServiceInstanceWithOwner(t,i,s=[],r,n){if(this._services.get(t)instanceof ze)return this._createServiceInstance(t,i,s,r,n,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(t,i,s,r,n);throw new Error(`illegalState - creating UNKNOWN service instance ${i.name}`)}_createServiceInstance(t,i,s=[],r,n,o){if(r){const a=new Py(void 0,this._strict,this,this._enableTracing);a._globalGraphImplicitDependency=String(t);const c=new Map,l=new Lb(()=>{const u=a._createInstance(i,s,n);for(const[h,f]of c){const p=u[h];if(typeof p=="function")for(const g of f)g.disposable=p.apply(u,g.listener)}return c.clear(),o.add(u),u});return new Proxy(Object.create(null),{get(u,h){if(!l.isInitialized&&typeof h=="string"&&(h.startsWith("onDid")||h.startsWith("onWill"))){let g=c.get(h);return g||(g=new Xp,c.set(h,g)),(w,S,E)=>{if(l.isInitialized)return l.value[h](w,S,E);{const P={listener:[w,S,E],disposable:void 0},A=g.push(P);return Se(()=>{A(),P.disposable?.dispose()})}}}if(h in u)return u[h];const f=l.value;let p=f[h];return typeof p!="function"||(p=p.bind(f),u[h]=p),p},set(u,h,f){return l.value[h]=f,!0},getPrototypeOf(u){return i.prototype}})}else{const a=this._createInstance(i,s,n);return o.add(a),a}}_throwIfStrict(t,i){if(i&&console.warn(t),this._strict)throw new Error(t)}},(function(e){e[e.None=0]="None",e[e.Creation=1]="Creation",e[e.Invocation=2]="Invocation",e[e.Branch=3]="Branch"})(r5||(r5={})),Gh=class Vs{static{this.all=new Set}static{this._None=new class extends Vs{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(t,i){return t?new Vs(2,i.name||new Error().stack.split(`
`).slice(3,4).join(`
`)):Vs._None}static traceCreation(t,i){return t?new Vs(1,i.name):Vs._None}static{this._totals=0}constructor(t,i){this.type=t,this.name=i,this._start=Date.now(),this._dep=[]}branch(t,i){const s=new Vs(3,t.toString());return this._dep.push([t,i,s]),s}stop(){const t=Date.now()-this._start;Vs._totals+=t;let i=!1;function s(n,o){const a=[],c=new Array(n+1).join(" ");for(const[l,u,h]of o._dep)if(u&&h){i=!0,a.push(`${c}CREATES -> ${l}`);const f=s(n+1,h);f&&a.push(f)}else a.push(`${c}uses -> ${l}`);return a.join(`
`)}const r=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${s(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${Vs._totals.toFixed(2)}ms)`];(t>2||i)&&Vs.all.add(r.join(`
`))}}}});async function o5(e,t,i,s,r,n){let o;try{await cO(e,t,i,s,r,n)}catch(a){o=a}finally{o&&r.errorTransformer&&(o=r.errorTransformer(o)),typeof o<"u"&&i.error(o),i.end()}}async function cO(e,t,i,s,r,n){i1(n);const o=await e.open(t,{create:!1});try{i1(n);let a=0,c=0,l=r&&typeof r.length=="number"?r.length:void 0,u=O.alloc(Math.min(r.bufferSize,typeof l=="number"?l:r.bufferSize)),h=r&&typeof r.position=="number"?r.position:0,f=0;do c=await e.read(o,h,u.buffer,f,u.byteLength-f),h+=c,f+=c,a+=c,typeof l=="number"&&(l-=c),f===u.byteLength&&(await i.write(s(u)),u=O.alloc(Math.min(r.bufferSize,typeof l=="number"?l:r.bufferSize)),f=0);while(c>0&&(typeof l!="number"||l>0)&&i1(n)&&lO(a,r));if(f>0){let p=f;typeof l=="number"&&(p=Math.min(f,l)),i.write(s(u.slice(0,p)))}}catch(a){throw Cn(a)}finally{await e.close(o)}}function i1(e){if(e.isCancellationRequested)throw Qy();return!0}function lO(e,t){if(typeof t?.limits?.size=="number"&&e>t.limits.size)throw lr(m(2051,null),ee.FileTooLarge);return!0}var a5=y({"out-build/vs/platform/files/common/io.js"(){"use strict";Fe(),ve(),ue(),Xe()}});function uO(e){return(e.scheme==="file"||e.scheme==="vscode-remote")&&e.path.endsWith(".mdc")}var c5,hO=y({"out-build/vs/base/common/mdc.js"(){"use strict";xe(),c5=`---
description:
globs:
alwaysApply: true
---
`}}),s1,Gc,l5=y({"out-build/vs/platform/files/common/fileService.js"(){"use strict";kt(),Ne(),Fe(),Ft(),ie(),Ya(),hn(),V(),fh(),xe(),qs(),_t(),Qa(),ue(),Xe(),a5(),Ie(),ve(),hO(),Gc=class extends G{static{s1=this}constructor(t){super(),this.logService=t,this.BUFFER_SIZE=256*1024,this._onDidChangeFileSystemProviderRegistrations=this._register(new R),this.onDidChangeFileSystemProviderRegistrations=this._onDidChangeFileSystemProviderRegistrations.event,this._onWillActivateFileSystemProvider=this._register(new R),this.onWillActivateFileSystemProvider=this._onWillActivateFileSystemProvider.event,this._onDidChangeFileSystemProviderCapabilities=this._register(new R),this.onDidChangeFileSystemProviderCapabilities=this._onDidChangeFileSystemProviderCapabilities.event,this.provider=new Map,this._onDidRunOperation=this._register(new R),this.onDidRunOperation=this._onDidRunOperation.event,this.internalOnDidFilesChange=this._register(new R),this._onDidUncorrelatedFilesChange=this._register(new R),this.onDidFilesChange=this._onDidUncorrelatedFilesChange.event,this._onDidWatchError=this._register(new R),this.onDidWatchError=this._onDidWatchError.event,this.activeWatchers=new Map,this.writeQueue=this._register(new Nm)}registerNotebookCellChecker(t){return this.notebookCellExistsChecker=t,Se(()=>{this.notebookCellExistsChecker=void 0})}registerProvider(t,i){if(this.provider.has(t))throw new Error(`A filesystem provider for the scheme '${t}' is already registered.`);St(`code/registerFilesystem/${t}`);const s=new ct;return this.provider.set(t,i),this._onDidChangeFileSystemProviderRegistrations.fire({added:!0,scheme:t,provider:i}),s.add(i.onDidChangeFile(r=>{const n=new J4(r,!this.isPathCaseSensitive(i));this.internalOnDidFilesChange.fire(n),n.hasCorrelation()||this._onDidUncorrelatedFilesChange.fire(n)})),typeof i.onDidWatchError=="function"&&s.add(i.onDidWatchError(r=>this._onDidWatchError.fire(new Error(r)))),s.add(i.onDidChangeCapabilities(()=>this._onDidChangeFileSystemProviderCapabilities.fire({provider:i,scheme:t}))),Se(()=>{this._onDidChangeFileSystemProviderRegistrations.fire({added:!1,scheme:t,provider:i}),this.provider.delete(t),Mt(s)})}getProvider(t){return this.provider.get(t)}async activateProvider(t){const i=[];this._onWillActivateFileSystemProvider.fire({scheme:t,join(s){i.push(s)}}),!this.provider.has(t)&&await Yt.settled(i)}async canHandleResource(t){return await this.activateProvider(t.scheme),this.hasProvider(t)}hasProvider(t){return this.provider.has(t.scheme)}hasCapability(t,i){const s=this.provider.get(t.scheme);return!!(s&&s.capabilities&i)}listCapabilities(){return Ps.map(this.provider,([t,i])=>({scheme:t,capabilities:i.capabilities}))}async withProvider(t){if(!J_(t))throw new zt(m(2024,null,this.resourceForError(t)),8);await this.activateProvider(t.scheme);const i=this.provider.get(t.scheme);if(!i){const s=new Gs;throw s.message=m(2025,null,t.toString()),s}return i}async withReadProvider(t){const i=await this.withProvider(t);if(Ur(i)||Bi(i)||kg(i))return i;throw new Error(`Filesystem provider for scheme '${t.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`)}async withWriteProvider(t){const i=await this.withProvider(t);if(Ur(i)||Bi(i))return i;throw new Error(`Filesystem provider for scheme '${t.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`)}async resolve(t,i){try{return await this.doResolveFile(t,i)}catch(s){throw ph(s)===ee.FileNotFound?new zt(m(2026,null,this.resourceForError(t)),1):Cn(s)}}async doResolveFile(t,i){const s=await this.withProvider(t),r=this.isPathCaseSensitive(s),n=i?.resolveTo,o=i?.resolveSingleChildDescendants,a=i?.resolveMetadata,c=await s.stat(t);let l;return this.toFileStat(s,t,c,void 0,!!a,(u,h)=>(l||(l=Ro.forUris(()=>!r),l.set(t,!0),n&&l.fill(!0,n)),l.get(u.resource)||l.findSuperstr(u.resource.with({query:null,fragment:null}))?!0:u.isDirectory&&o?h===1:!1))}async toFileStat(t,i,s,r,n,o){const{providerExtUri:a}=this.getExtUri(t),c={resource:i,name:a.basename(i),isFile:(s.type&Pi.File)!==0,isDirectory:(s.type&Pi.Directory)!==0,isSymbolicLink:(s.type&Pi.SymbolicLink)!==0,mtime:s.mtime,ctime:s.ctime,size:s.size,readonly:!!((s.permissions??0)&Ao.Readonly)||!!(t.capabilities&2048),locked:!!((s.permissions??0)&Ao.Locked),etag:B4({mtime:s.mtime,size:s.size}),children:void 0};if(c.isDirectory&&o(c,r)){try{const l=await t.readdir(i),u=await Yt.settled(l.map(async([h,f])=>{try{const p=a.joinPath(i,h),g=n?await t.stat(p):{type:f};return await this.toFileStat(t,p,g,l.length,n,o)}catch(p){return this.logService.trace(p),null}}));c.children=ts(u)}catch(l){this.logService.trace(l),c.children=[]}return c}return c}async resolveAll(t){return Yt.settled(t.map(async i=>{try{return{stat:await this.doResolveFile(i.resource,i.options),success:!0}}catch(s){return this.logService.trace(s),{stat:void 0,success:!1}}}))}async stat(t){const i=await this.withProvider(t),s=await i.stat(t);return this.toFileStat(i,t,s,void 0,!0,()=>!1)}async exists(t){if(t.scheme===Z.vscodeNotebookCell)return this.notebookCellExistsChecker?await this.notebookCellExistsChecker(t):(console.log(`[fileService.exists] Can't check if notebook cell exists: ${t.toString()}`),!1);const i=await this.withProvider(t);try{return!!await i.stat(t)}catch{return!1}}async canCreateFile(t,i){try{await this.doValidateCreateFile(t,i)}catch(s){return s}return!0}async doValidateCreateFile(t,i){if(!i?.overwrite&&await this.exists(t))throw new zt(m(2027,null,this.resourceForError(t)),3,i)}async createFile(t,i=O.fromString(""),s){uO(t)&&i.toString().trim()===""&&(i=O.fromString(c5)),await this.doValidateCreateFile(t,s);const r=await this.writeFile(t,i);return this._onDidRunOperation.fire(new Dn(t,0,r)),r}async writeFile(t,i,s){const r=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(t),t),{providerExtUri:n}=this.getExtUri(r);let o=s;if(V4(r)&&!o?.atomic){const a=r.enforceAtomicWriteFile?.(t);a&&(o={...s,atomic:a})}try{let{stat:a,buffer:c}=await this.validateWriteFile(r,t,i,o);a||await this.mkdirp(r,n.dirname(t)),c||(c=await this.peekBufferForWriting(r,i)),!Ur(r)||Bi(r)&&c instanceof O||Bi(r)&&V4(r)&&o?.atomic?await this.doWriteUnbuffered(r,t,o,c):await this.doWriteBuffered(r,t,o,c instanceof O?LD(c):c),this._onDidRunOperation.fire(new Dn(t,4))}catch(a){throw new zt(m(2028,null,this.resourceForError(t),Cn(a).toString()),Nt(a),o)}return this.resolve(t,{resolveMetadata:!0})}async peekBufferForWriting(t,i){let s;if(Bi(t)&&!(i instanceof O))if(bu(i)){const r=await bD(i,3);r.ended?s=O.concat(r.buffer):s=r}else s=_D(i,r=>O.concat(r),3);else s=i;return s}async validateWriteFile(t,i,s,r){const n=!!r?.unlock;if(n&&!(t.capabilities&8192))throw new Error(m(2029,null,this.resourceForError(i)));if(!!r?.atomic){if(!(t.capabilities&32768))throw new Error(m(2030,null,this.resourceForError(i)));if(!(t.capabilities&2))throw new Error(m(2031,null,this.resourceForError(i)));if(n)throw new Error(m(2032,null,this.resourceForError(i)))}let a;try{a=await t.stat(i)}catch{return Object.create(null)}if((a.type&Pi.Directory)!==0)throw new zt(m(2033,null,this.resourceForError(i)),0,r);this.throwIfFileIsReadonly(i,a);let c;if(typeof r?.mtime=="number"&&typeof r.etag=="string"&&r.etag!==yh&&typeof a.mtime=="number"&&typeof a.size=="number"&&r.mtime<a.mtime&&r.etag!==B4({mtime:r.mtime,size:a.size})){if(c=await this.peekBufferForWriting(t,s),c instanceof O&&c.byteLength===a.size)try{const{value:l}=await this.readFile(i,{limits:{size:a.size}});if(c.equals(l))return{stat:a,buffer:c}}catch{}throw new zt(m(2034,null),3,r)}return{stat:a,buffer:c}}async readFile(t,i,s){const r=await this.withReadProvider(t);return i?.atomic?this.doReadFileAtomic(r,t,i,s):this.doReadFile(r,t,i,s)}async doReadFileAtomic(t,i,s,r){return new Promise((n,o)=>{this.writeQueue.queueFor(i,async()=>{try{const a=await this.doReadFile(t,i,s,r);n(a)}catch(a){o(a)}},this.getExtUri(t).providerExtUri)})}async doReadFile(t,i,s,r){const n=await this.doReadFileStream(t,i,{...s,preferUnbuffered:!0},r);return{...n,value:await Zs(n.value)}}async readFileStream(t,i,s){const r=await this.withReadProvider(t);return this.doReadFileStream(r,t,i,s)}async doReadFileStream(t,i,s,r){const n=new Is(r);let o=s;Pg(t)&&t.enforceAtomicReadFile?.(i)&&(o={...s,atomic:!0});const a=this.validateReadFile(i,o).then(l=>l,l=>{throw n.dispose(!0),l});let c;try{return typeof o?.etag=="string"&&o.etag!==yh&&await a,o?.atomic&&Pg(t)||!(Ur(t)||kg(t))||Bi(t)&&o?.preferUnbuffered?c=this.readFileUnbuffered(t,i,o):kg(t)?c=this.readFileStreamed(t,i,n.token,o):c=this.readFileBuffered(t,i,n.token,o),c.on("end",()=>n.dispose()),c.on("error",()=>n.dispose()),{...await a,value:c}}catch(l){throw c&&await p_(c),this.restoreReadError(l,i,o)}}restoreReadError(t,i,s){const r=m(2035,null,this.resourceForError(i),Cn(t).toString());return t instanceof vh?new vh(r,t.stat,s):t instanceof gh?new gh(r,t.fileOperationResult,t.size,t.options):new zt(r,Nt(t),s)}readFileStreamed(t,i,s,r=Object.create(null)){const n=t.readFileStream(i,r,s);return m_(n,{data:o=>o instanceof O?o:O.wrap(o),error:o=>this.restoreReadError(o,i,r)},o=>O.concat(o))}readFileBuffered(t,i,s,r=Object.create(null)){const n=OD();return o5(t,i,n,o=>o,{...r,bufferSize:this.BUFFER_SIZE,errorTransformer:o=>this.restoreReadError(o,i,r)},s),n}readFileUnbuffered(t,i,s){const r=Eu(n=>O.concat(n));return(async()=>{try{let n;s?.atomic&&Pg(t)?n=await t.readFile(i,{atomic:!0}):n=await t.readFile(i),typeof s?.position=="number"&&(n=n.slice(s.position)),typeof s?.length=="number"&&(n=n.slice(0,s.length)),this.validateReadFileLimits(i,n.byteLength,s),r.end(O.wrap(n))}catch(n){r.error(n),r.end()}})(),r}async validateReadFile(t,i){const s=await this.resolve(t,{resolveMetadata:!0});if(s.isDirectory)throw new zt(m(2036,null,this.resourceForError(t)),0,i);if(typeof i?.etag=="string"&&i.etag!==yh&&i.etag===s.etag)throw new vh(m(2037,null),s,i);return this.validateReadFileLimits(t,s.size,i),s}validateReadFileLimits(t,i,s){if(typeof s?.limits?.size=="number"&&i>s.limits.size)throw new gh(m(2038,null,this.resourceForError(t)),7,i,s)}async canMove(t,i,s){return this.doCanMoveCopy(t,i,"move",s)}async canCopy(t,i,s){return this.doCanMoveCopy(t,i,"copy",s)}async doCanMoveCopy(t,i,s,r){if(t.toString()!==i.toString())try{const n=s==="move"?this.throwIfFileSystemIsReadonly(await this.withWriteProvider(t),t):await this.withReadProvider(t),o=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i);await this.doValidateMoveCopy(n,t,o,i,s,r)}catch(n){return n}return!0}async move(t,i,s){const r=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(t),t),n=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i),o=await this.doMoveCopy(r,t,n,i,"move",!!s),a=await this.resolve(i,{resolveMetadata:!0});return this._onDidRunOperation.fire(new Dn(t,o==="move"?2:3,a)),a}async copy(t,i,s){const r=await this.withReadProvider(t),n=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i),o=await this.doMoveCopy(r,t,n,i,"copy",!!s),a=await this.resolve(i,{resolveMetadata:!0});return this._onDidRunOperation.fire(new Dn(t,o==="copy"?3:2,a)),a}async doMoveCopy(t,i,s,r,n,o){if(i.toString()===r.toString())return n;const{exists:a,isSameResourceWithDifferentPathCase:c}=await this.doValidateMoveCopy(t,i,s,r,n,o);if(a&&!c&&o&&await this.del(r,{recursive:!0}),await this.mkdirp(s,this.getExtUri(s).providerExtUri.dirname(r)),n==="copy"){if(t===s&&H4(t))await t.copy(i,r,{overwrite:o});else{const l=await this.resolve(i);l.isDirectory?await this.doCopyFolder(t,l,s,r):await this.doCopyFile(t,i,s,r)}return n}else return t===s?(await t.rename(i,r,{overwrite:o}),n):(await this.doMoveCopy(t,i,s,r,"copy",o),await this.del(i,{recursive:!0}),"copy")}async doCopyFile(t,i,s,r){if(Ur(t)&&Ur(s))return this.doPipeBuffered(t,i,s,r);if(Ur(t)&&Bi(s))return this.doPipeBufferedToUnbuffered(t,i,s,r);if(Bi(t)&&Ur(s))return this.doPipeUnbufferedToBuffered(t,i,s,r);if(Bi(t)&&Bi(s))return this.doPipeUnbuffered(t,i,s,r)}async doCopyFolder(t,i,s,r){await s.mkdir(r),Array.isArray(i.children)&&await Yt.settled(i.children.map(async n=>{const o=this.getExtUri(s).providerExtUri.joinPath(r,n.name);return n.isDirectory?this.doCopyFolder(t,await this.resolve(n.resource),s,o):this.doCopyFile(t,n.resource,s,o)}))}async doValidateMoveCopy(t,i,s,r,n,o){let a=!1;if(t===s){const{providerExtUri:l,isPathCaseSensitive:u}=this.getExtUri(t);if(u||(a=l.isEqual(i,r)),a&&n==="copy")throw new Error(m(2039,null,this.resourceForError(i),this.resourceForError(r)));if(!a&&l.isEqualOrParent(r,i))throw new Error(m(2040,null,this.resourceForError(i),this.resourceForError(r)))}const c=await this.exists(r);if(c&&!a){if(!o)throw new zt(m(2041,null,this.resourceForError(i),this.resourceForError(r)),4);if(t===s){const{providerExtUri:l}=this.getExtUri(t);if(l.isEqualOrParent(i,r))throw new Error(m(2042,null,this.resourceForError(i),this.resourceForError(r)))}}return{exists:c,isSameResourceWithDifferentPathCase:a}}getExtUri(t){const i=this.isPathCaseSensitive(t);return{providerExtUri:i?ke:z_,isPathCaseSensitive:i}}isPathCaseSensitive(t){return!!(t.capabilities&1024)}async createFolder(t){const i=this.throwIfFileSystemIsReadonly(await this.withProvider(t),t);await this.mkdirp(i,t);const s=await this.resolve(t,{resolveMetadata:!0});return this._onDidRunOperation.fire(new Dn(t,0,s)),s}async mkdirp(t,i){const s=[],{providerExtUri:r}=this.getExtUri(t);for(;!r.isEqual(i,r.dirname(i));)try{if(((await t.stat(i)).type&Pi.Directory)===0)throw new Error(m(2043,null,this.resourceForError(i)));break}catch(n){if(ph(n)!==ee.FileNotFound)throw n;s.push(r.basename(i)),i=r.dirname(i)}for(let n=s.length-1;n>=0;n--){i=r.joinPath(i,s[n]);try{await t.mkdir(i)}catch(o){if(ph(o)!==ee.FileExists)throw o}}}async canDelete(t,i){try{await this.doValidateDelete(t,i)}catch(s){return s}return!0}async doValidateDelete(t,i){const s=this.throwIfFileSystemIsReadonly(await this.withProvider(t),t),r=!!i?.useTrash;if(r&&!(s.capabilities&4096))throw new Error(m(2044,null,this.resourceForError(t)));const n=i?.atomic;if(n&&!(s.capabilities&65536))throw new Error(m(2045,null,this.resourceForError(t)));if(r&&n)throw new Error(m(2046,null,this.resourceForError(t)));let o;try{o=await s.stat(t)}catch{}if(o)this.throwIfFileIsReadonly(t,o);else throw new zt(m(2047,null,this.resourceForError(t)),1);if(!!!i?.recursive){const c=await this.resolve(t);if(c.isDirectory&&Array.isArray(c.children)&&c.children.length>0)throw new Error(m(2048,null,this.resourceForError(t)))}return s}async del(t,i){const s=await this.doValidateDelete(t,i);let r=i;if(WA(s)&&!r?.atomic){const c=s.enforceAtomicDelete?.(t);c&&(r={...i,atomic:c})}const n=!!r?.useTrash,o=!!r?.recursive,a=r?.atomic??!1;await s.delete(t,{recursive:o,useTrash:n,atomic:a}),this._onDidRunOperation.fire(new Dn(t,1))}async cloneFile(t,i){const s=await this.withProvider(t),r=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i);if(!(s===r&&this.getExtUri(s).providerExtUri.isEqual(t,i)))return s===r&&$A(s)?s.cloneFile(t,i):(await this.mkdirp(r,this.getExtUri(r).providerExtUri.dirname(i)),s===r&&H4(s)?this.writeQueue.queueFor(t,()=>s.copy(t,i,{overwrite:!0}),this.getExtUri(s).providerExtUri):this.writeQueue.queueFor(t,()=>this.doCopyFile(s,t,r,i),this.getExtUri(s).providerExtUri))}static{this.WATCHER_CORRELATION_IDS=0}createWatcher(t,i){return this.watch(t,{...i,correlationId:s1.WATCHER_CORRELATION_IDS++})}watch(t,i={recursive:!1,excludes:[]}){const s=new ct;let r=!1,n=()=>{r=!0};s.add(Se(()=>n())),(async()=>{try{const a=await this.doWatch(t,i);r?Mt(a):n=()=>Mt(a)}catch(a){this.logService.error(a)}})();const o=i.correlationId;if(typeof o=="number"){const a=s.add(new R);return s.add(this.internalOnDidFilesChange.event(l=>{l.correlates(o)&&a.fire(l)})),{onDidChange:a.event,dispose:()=>s.dispose()}}return s}async doWatch(t,i){const s=await this.withProvider(t),r=ao([this.getExtUri(s).providerExtUri.getComparisonKey(t),i]);let n=this.activeWatchers.get(r);return n||(n={count:0,disposable:s.watch(t,i)},this.activeWatchers.set(r,n)),n.count+=1,Se(()=>{n&&(n.count--,n.count===0&&(Mt(n.disposable),this.activeWatchers.delete(r)))})}dispose(){super.dispose();for(const[,t]of this.activeWatchers)Mt(t.disposable);this.activeWatchers.clear()}async doWriteBuffered(t,i,s,r){return this.writeQueue.queueFor(i,async()=>{const n=await t.open(i,{create:!0,unlock:s?.unlock??!1});try{bu(r)||lm(r)?await this.doWriteStreamBufferedQueued(t,n,r):await this.doWriteReadableBufferedQueued(t,n,r)}catch(o){throw Cn(o)}finally{await t.close(n)}},this.getExtUri(t).providerExtUri)}async doWriteStreamBufferedQueued(t,i,s){let r=0,n;if(lm(s)){if(s.buffer.length>0){const o=O.concat(s.buffer);await this.doWriteBuffer(t,i,o,o.byteLength,r,0),r+=o.byteLength}if(s.ended)return;n=s.stream}else n=s;return new Promise((o,a)=>{Su(n,{onData:async c=>{n.pause();try{await this.doWriteBuffer(t,i,c,c.byteLength,r,0)}catch(l){return a(l)}r+=c.byteLength,setTimeout(()=>n.resume())},onError:c=>a(c),onEnd:()=>o()})})}async doWriteReadableBufferedQueued(t,i,s){let r=0,n;for(;(n=s.read())!==null;)await this.doWriteBuffer(t,i,n,n.byteLength,r,0),r+=n.byteLength}async doWriteBuffer(t,i,s,r,n,o){let a=0;for(;a<r;){const c=await t.write(i,n+a,s.buffer,o+a,r-a);a+=c}}async doWriteUnbuffered(t,i,s,r){return this.writeQueue.queueFor(i,()=>this.doWriteUnbufferedQueued(t,i,s,r),this.getExtUri(t).providerExtUri)}async doWriteUnbufferedQueued(t,i,s,r){let n;r instanceof O?n=r:bu(r)?n=await Zs(r):lm(r)?n=await AD(r):n=RD(r),await t.writeFile(i,n.buffer,{create:!0,overwrite:!0,unlock:s?.unlock??!1,atomic:s?.atomic??!1})}async doPipeBuffered(t,i,s,r){return this.writeQueue.queueFor(r,()=>this.doPipeBufferedQueued(t,i,s,r),this.getExtUri(s).providerExtUri)}async doPipeBufferedQueued(t,i,s,r){let n,o;try{n=await t.open(i,{create:!1}),o=await s.open(r,{create:!0,unlock:!1});const a=O.alloc(this.BUFFER_SIZE);let c=0,l=0,u=0;do u=await t.read(n,c,a.buffer,l,a.byteLength-l),await this.doWriteBuffer(s,o,a,u,c,l),c+=u,l+=u,l===a.byteLength&&(l=0);while(u>0)}catch(a){throw Cn(a)}finally{await Yt.settled([typeof n=="number"?t.close(n):Promise.resolve(),typeof o=="number"?s.close(o):Promise.resolve()])}}async doPipeUnbuffered(t,i,s,r){return this.writeQueue.queueFor(r,()=>this.doPipeUnbufferedQueued(t,i,s,r),this.getExtUri(s).providerExtUri)}async doPipeUnbufferedQueued(t,i,s,r){return s.writeFile(r,await t.readFile(i),{create:!0,overwrite:!0,unlock:!1,atomic:!1})}async doPipeUnbufferedToBuffered(t,i,s,r){return this.writeQueue.queueFor(r,()=>this.doPipeUnbufferedToBufferedQueued(t,i,s,r),this.getExtUri(s).providerExtUri)}async doPipeUnbufferedToBufferedQueued(t,i,s,r){const n=await s.open(r,{create:!0,unlock:!1});try{const o=await t.readFile(i);await this.doWriteBuffer(s,n,O.wrap(o),o.byteLength,0,0)}catch(o){throw Cn(o)}finally{await s.close(n)}}async doPipeBufferedToUnbuffered(t,i,s,r){const n=await Zs(this.readFileBuffered(t,i,Me.None));await this.doWriteUnbuffered(s,r,void 0,n)}throwIfFileSystemIsReadonly(t,i){if(t.capabilities&2048)throw new zt(m(2049,null,this.resourceForError(i)),6);return t}throwIfFileIsReadonly(t,i){if((i.permissions??0)&Ao.Readonly)throw new zt(m(2050,null,this.resourceForError(t)),6)}resourceForError(t){return t.scheme===Z.file?t.fsPath:t.toString(!0)}async realpath(t){try{const i=await this.withProvider(t);return"realpath"in i&&typeof i.realpath=="function"?i.realpath(t):t}catch{return t}}},Gc=s1=__decorate([__param(0,fe)],Gc)}});import*as u5 from"fs";async function h5(e){try{return await Ce.realpath(e)}catch{const i=dO(e);return await u5.promises.access(i,u5.constants.R_OK),i}}function dO(e){return tm(Wi(e),jt)}var d5=y({"out-build/vs/base/node/extpath.js"(){"use strict";de(),K(),lt(),di()}});function f5(e,t){switch(e){case 0:return"";case 1:return`${Jc}*?`;default:return`(?:${Qc}|${Jc}+${Qc}${t?`|${Qc}${Jc}+`:""})*?`}}function p5(e,t){if(!e)return[];const i=[];let s=!1,r=!1,n="";for(const o of e){switch(o){case t:if(!s&&!r){i.push(n),n="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":r=!0;break;case"]":r=!1;break}n+=o}return n&&i.push(n),i}function m5(e){if(!e)return"";let t="";const i=p5(e,o1);if(i.every(s=>s===$o))t=".*";else{let s=!1;i.forEach((r,n)=>{if(r===$o){if(s)return;t+=f5(2,n===i.length-1)}else{let o=!1,a="",c=!1,l="";for(const u of r){if(u!=="}"&&o){a+=u;continue}if(c&&(u!=="]"||!l)){let h;u==="-"?h=u:(u==="^"||u==="!")&&!l?h="^":u===o1?h="":h=Dr(u),l+=h;continue}switch(u){case"{":o=!0;continue;case"[":c=!0;continue;case"}":{const f=`(?:${p5(a,",").map(p=>m5(p)).join("|")})`;t+=f,o=!1,a="";break}case"]":{t+="["+l+"]",c=!1,l="";break}case"?":t+=Jc;continue;case"*":t+=f5(1);continue;default:t+=Dr(u)}}n<i.length-1&&(i[n+1]!==$o||n+2<i.length)&&(t+=Qc)}s=r===$o})}return t}function r1(e,t){if(!e)return ds;let i;typeof e!="string"?i=e.pattern:i=e,i=i.trim();const s=`${i}_${!!t.trimForExclusions}`;let r=a1.get(s);if(r)return g5(r,e);let n;return b5.test(i)?r=fO(i.substr(4),i):(n=E5.exec(n1(i,t)))?r=pO(n[1],i):(t.trimForExclusions?x5:S5).test(i)?r=mO(i,t):(n=k5.exec(n1(i,t)))?r=v5(n[1].substr(1),i,!0):(n=P5.exec(n1(i,t)))?r=v5(n[1],i,!1):r=gO(i),a1.set(s,r),g5(r,e)}function g5(e,t){if(typeof t=="string")return e;const i=function(s,r){return Ar(s,t.base,!nt)?e(rD(s.substr(t.base.length),jt),r):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function n1(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function fO(e,t){return function(i,s){return typeof i=="string"&&i.endsWith(e)?t:null}}function pO(e,t){const i=`/${e}`,s=`\\${e}`,r=function(o,a){return typeof o!="string"?null:a?a===e?t:null:o===e||o.endsWith(i)||o.endsWith(s)?t:null},n=[e];return r.basenames=n,r.patterns=[t],r.allBasenames=n,r}function mO(e,t){const i=y5(e.slice(1,-1).split(",").map(a=>r1(a,t)).filter(a=>a!==ds),e),s=i.length;if(!s)return ds;if(s===1)return i[0];const r=function(a,c){for(let l=0,u=i.length;l<u;l++)if(i[l](a,c))return e;return null},n=i.find(a=>!!a.allBasenames);n&&(r.allBasenames=n.allBasenames);const o=i.reduce((a,c)=>c.allPaths?a.concat(c.allPaths):a,[]);return o.length&&(r.allPaths=o),r}function v5(e,t,i){const s=jt===Ee.sep,r=s?e:e.replace(_5,jt),n=jt+r,o=Ee.sep+e;let a;return i?a=function(c,l){return typeof c=="string"&&(c===r||c.endsWith(n)||!s&&(c===e||c.endsWith(o)))?t:null}:a=function(c,l){return typeof c=="string"&&(c===r||!s&&c===e)?t:null},a.allPaths=[(i?"*/":"./")+e],a}function gO(e){try{const t=new RegExp(`^${m5(e)}$`);return function(i){return t.lastIndex=0,typeof i=="string"&&t.test(i)?e:null}}catch{return ds}}function vO(e,t={}){if(!e)return c1;if(typeof e=="string"||yO(e)){const i=r1(e,t);if(i===ds)return c1;const s=function(r,n){return!!i(r,n)};return i.allBasenames&&(s.allBasenames=i.allBasenames),i.allPaths&&(s.allPaths=i.allPaths),s}return wO(e,t)}function yO(e){const t=e;return t?typeof t.base=="string"&&typeof t.pattern=="string":!1}function wO(e,t){const i=y5(Object.getOwnPropertyNames(e).map(a=>_O(a,e[a],t)).filter(a=>a!==ds)),s=i.length;if(!s)return ds;if(!i.some(a=>!!a.requiresSiblings)){if(s===1)return i[0];const a=function(u,h){let f;for(let p=0,g=i.length;p<g;p++){const v=i[p](u,h);if(typeof v=="string")return v;Rm(v)&&(f||(f=[]),f.push(v))}return f?(async()=>{for(const p of f){const g=await p;if(typeof g=="string")return g}return null})():null},c=i.find(u=>!!u.allBasenames);c&&(a.allBasenames=c.allBasenames);const l=i.reduce((u,h)=>h.allPaths?u.concat(h.allPaths):u,[]);return l.length&&(a.allPaths=l),a}const r=function(a,c,l){let u,h;for(let f=0,p=i.length;f<p;f++){const g=i[f];g.requiresSiblings&&l&&(c||(c=ut(a)),u||(u=c.substr(0,c.length-gn(a).length)));const v=g(a,c,u,l);if(typeof v=="string")return v;Rm(v)&&(h||(h=[]),h.push(v))}return h?(async()=>{for(const f of h){const p=await f;if(typeof p=="string")return p}return null})():null},n=i.find(a=>!!a.allBasenames);n&&(r.allBasenames=n.allBasenames);const o=i.reduce((a,c)=>c.allPaths?a.concat(c.allPaths):a,[]);return o.length&&(r.allPaths=o),r}function _O(e,t,i){if(t===!1)return ds;const s=r1(e,i);if(s===ds)return ds;if(typeof t=="boolean")return s;if(t){const r=t.when;if(typeof r=="string"){const n=(o,a,c,l)=>{if(!l||!s(o,a))return null;const u=r.replace("$(basename)",()=>c),h=l(u);return Rm(h)?h.then(f=>f?e:null):h?e:null};return n.requiresSiblings=!0,n}}return s}function y5(e,t){const i=e.filter(a=>!!a.basenames);if(i.length<2)return e;const s=i.reduce((a,c)=>{const l=c.basenames;return l?a.concat(l):a},[]);let r;if(t){r=[];for(let a=0,c=s.length;a<c;a++)r.push(t)}else r=i.reduce((a,c)=>{const l=c.patterns;return l?a.concat(l):a},[]);const n=function(a,c){if(typeof a!="string")return null;if(!c){let u;for(u=a.length;u>0;u--){const h=a.charCodeAt(u-1);if(h===47||h===92)break}c=a.substr(u)}const l=s.indexOf(c);return l!==-1?r[l]:null};n.basenames=s,n.patterns=r,n.allBasenames=s;const o=e.filter(a=>!a.basenames);return o.push(n),o}function w5(e,t){return Pr(e,t,(i,s)=>typeof i=="string"&&typeof s=="string"?i===s:typeof i!="string"&&typeof s!="string"?i.base===s.base&&i.pattern===s.pattern:!1)}var $o,o1,Qc,Jc,_5,b5,E5,S5,x5,k5,P5,a1,c1,ds,l1=y({"out-build/vs/base/common/glob.js"(){"use strict";kt(),Ne(),er(),ri(),de(),K(),lt(),$o="**",o1="/",Qc="[/\\\\]",Jc="[^/\\\\]",_5=/\//g,b5=/^\*\*\/\*\.[\w\.-]+$/,E5=/^\*\*\/([\w\.-]+)\/?$/,S5=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,x5=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,k5=/^\*\*((\/[\w\.-]+)+)\/?$/,P5=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,a1=new Ma(1e4),c1=function(){return!1},ds=function(){return null}}});function I5(e){return typeof e.correlationId=="number"}function bO(e){return e.recursive===!0}function C5(e){return e.map(t=>({type:t.type,resource:b.revive(t.resource),cId:t.cId}))}function EO(e){const t=new A5;for(const i of e)t.processEvent(i);return t.coalesce()}function SO(e,t){return typeof t=="string"&&!t.startsWith($o)&&!mn(t)?{base:e,pattern:t}:t}function D5(e,t){const i=[];for(const s of t)i.push(vO(SO(e,s)));return i}function xO(e,t){if(typeof t=="number")switch(e.type){case 1:return(t&4)===0;case 2:return(t&8)===0;case 0:return(t&2)===0}return!1}function kO(e){if(typeof e=="number"){const t=[];return e&4&&t.push("Added"),e&8&&t.push("Deleted"),e&2&&t.push("Updated"),t.length===0?"<all>":`[${t.join(", ")}]`}return"<none>"}var u1,R5,L5,A5,Wo=y({"out-build/vs/platform/files/common/watcher.js"(){"use strict";l1(),V(),de(),K(),Y(),Xe(),u1=class sC extends G{static{this.MAX_RESTARTS=5}constructor(t,i,s,r){super(),this.onFileChanges=t,this.onLogMessage=i,this.verboseLogging=s,this.options=r,this.watcherDisposables=this._register(new Ha),this.requests=void 0,this.restartCounter=0}init(){const t=new ct;this.watcherDisposables.value=t,this.watcher=this.createWatcher(t),this.watcher.setVerboseLogging(this.verboseLogging),t.add(this.watcher.onDidChangeFile(i=>this.onFileChanges(i))),t.add(this.watcher.onDidLogMessage(i=>this.onLogMessage(i))),t.add(this.watcher.onDidError(i=>this.onError(i.error,i.request)))}onError(t,i){this.canRestart(t,i)?this.restartCounter<sC.MAX_RESTARTS&&this.requests?(this.error(`restarting watcher after unexpected error: ${t}`),this.restart(this.requests)):this.error(`gave up attempting to restart watcher after unexpected error: ${t}`):this.error(t)}canRestart(t,i){return!(!this.options.restartOnError||i||t.indexOf("No space left on device")!==-1||t.indexOf("EMFILE")!==-1)}restart(t){this.restartCounter++,this.init(),this.watch(t)}async watch(t){this.requests=t,await this.watcher?.watch(t)}async setVerboseLogging(t){this.verboseLogging=t,await this.watcher?.setVerboseLogging(t)}error(t){this.onLogMessage({type:"error",message:`[File Watcher (${this.options.type})] ${t}`})}trace(t){this.onLogMessage({type:"trace",message:`[File Watcher (${this.options.type})] ${t}`})}dispose(){return this.watcher=void 0,super.dispose()}},R5=class extends u1{constructor(e,t,i){super(e,t,i,{type:"node.js",restartOnError:!1})}},L5=class extends u1{constructor(e,t,i){super(e,t,i,{type:"universal",restartOnError:!0})}},A5=class{constructor(){this.coalesced=new Set,this.mapPathToChange=new Map}toKey(e){return nt?e.resource.fsPath:e.resource.fsPath.toLowerCase()}processEvent(e){const t=this.mapPathToChange.get(this.toKey(e));let i=!1;if(t){const s=t.type,r=e.type;t.resource.fsPath!==e.resource.fsPath&&(e.type===2||e.type===1)?i=!0:s===1&&r===2?(this.mapPathToChange.delete(this.toKey(e)),this.coalesced.delete(t)):s===2&&r===1?t.type=0:s===1&&r===0||(t.type=r)}else i=!0;i&&(this.coalesced.add(e),this.mapPathToChange.set(this.toKey(e),e))}coalesce(){const e=[],t=[];return Array.from(this.coalesced).filter(i=>i.type!==2?(e.push(i),!1):!0).sort((i,s)=>i.resource.fsPath.length-s.resource.fsPath.length).filter(i=>t.some(s=>HA(i.resource.fsPath,s,!nt))?!1:(t.push(i.resource.fsPath),!0)).concat(e)}}}}),N5,PO=y({"out-build/vs/platform/files/common/diskFileSystemProvider.js"(){"use strict";kt(),Ne(),ve(),ie(),er(),V(),de(),Wo(),Ie(),N5=class extends G{constructor(e,t){super(),this.logService=e,this.options=t,this._onDidChangeFile=this._register(new R),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidWatchError=this._register(new R),this.onDidWatchError=this._onDidWatchError.event,this.universalWatchRequests=[],this.universalWatchRequestDelayer=this._register(new Sn(this.getRefreshWatchersDelay(this.universalWatchRequests.length))),this.nonRecursiveWatchRequests=[],this.nonRecursiveWatchRequestDelayer=this._register(new Sn(this.getRefreshWatchersDelay(this.nonRecursiveWatchRequests.length)))}watch(e,t){return t.recursive||this.options?.watcher?.forceUniversal?this.watchUniversal(e,t):this.watchNonRecursive(e,t)}getRefreshWatchersDelay(e){return e>200?500:0}watchUniversal(e,t){const i=this.toWatchRequest(e,t),s=Sw(this.universalWatchRequests,i);return this.refreshUniversalWatchers(),Se(()=>{s(),this.refreshUniversalWatchers()})}toWatchRequest(e,t){const i={path:this.toWatchPath(e),excludes:t.excludes,includes:t.includes,recursive:t.recursive,filter:t.filter,correlationId:t.correlationId};if(bO(i)){const s=this.options?.watcher?.recursive?.usePolling;s===!0?i.pollingInterval=this.options?.watcher?.recursive?.pollingInterval??5e3:Array.isArray(s)&&s.includes(i.path)&&(i.pollingInterval=this.options?.watcher?.recursive?.pollingInterval??5e3)}return i}refreshUniversalWatchers(){this.universalWatchRequestDelayer.trigger(()=>this.doRefreshUniversalWatchers(),this.getRefreshWatchersDelay(this.universalWatchRequests.length)).catch(e=>Qt(e))}doRefreshUniversalWatchers(){return this.universalWatcher||(this.universalWatcher=this._register(this.createUniversalWatcher(e=>this._onDidChangeFile.fire(C5(e)),e=>this.onWatcherLogMessage(e),this.logService.getLevel()===j.Trace)),this._register(this.logService.onDidChangeLogLevel(()=>{this.universalWatcher?.setVerboseLogging(this.logService.getLevel()===j.Trace)}))),this.universalWatcher.watch(this.universalWatchRequests)}watchNonRecursive(e,t){const i={path:this.toWatchPath(e),excludes:t.excludes,includes:t.includes,recursive:!1,filter:t.filter,correlationId:t.correlationId},s=Sw(this.nonRecursiveWatchRequests,i);return this.refreshNonRecursiveWatchers(),Se(()=>{s(),this.refreshNonRecursiveWatchers()})}refreshNonRecursiveWatchers(){this.nonRecursiveWatchRequestDelayer.trigger(()=>this.doRefreshNonRecursiveWatchers(),this.getRefreshWatchersDelay(this.nonRecursiveWatchRequests.length)).catch(e=>Qt(e))}doRefreshNonRecursiveWatchers(){return this.nonRecursiveWatcher||(this.nonRecursiveWatcher=this._register(this.createNonRecursiveWatcher(e=>this._onDidChangeFile.fire(C5(e)),e=>this.onWatcherLogMessage(e),this.logService.getLevel()===j.Trace)),this._register(this.logService.onDidChangeLogLevel(()=>{this.nonRecursiveWatcher?.setVerboseLogging(this.logService.getLevel()===j.Trace)}))),this.nonRecursiveWatcher.watch(this.nonRecursiveWatchRequests)}onWatcherLogMessage(e){e.type==="error"&&this._onDidWatchError.fire(e.message),this.logWatcherMessage(e)}logWatcherMessage(e){this.logService[e.type](e.message)}toFilePath(e){return Wi(e.fsPath)}toWatchPath(e){const t=this.toFilePath(e);return qD(t)}}}}),IO=y({"out-build/vs/base/common/decorators/cancelPreviousCalls.js"(){"use strict";_e(),V(),Ft()}});function Oe(e,t,i){let s=null,r=null;if(typeof i.value=="function"?(s="value",r=i.value,r.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof i.get=="function"&&(s="get",r=i.get),!r)throw new Error("not supported");const n=`$memoize$${t}`;i[s]=function(...o){return this.hasOwnProperty(n)||Object.defineProperty(this,n,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,o)}),this[n]}}var h1=y({"out-build/vs/base/common/decorators.js"(){"use strict";IO()}});function Ho(e){switch(e){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}function Qh(e){switch(e){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}function Vo(e){let t=0;for(let i=0;;i+=7){const s=e.read(1);if(t|=(s.buffer[0]&127)<<i,!(s.buffer[0]&128))return t}}function jo(e,t){if(t===0){e.write(F5);return}let i=0;for(let r=t;r!==0;r=r>>>7)i++;const s=O.alloc(i);for(let r=0;t!==0;r++)s.buffer[r]=t&127,t=t>>>7,t>0&&(s.buffer[r]|=128);e.write(s)}function Wr(e){const t=O.alloc(1);return t.writeUInt8(e,0),t}function Xc(e,t){if(typeof t>"u")e.write(Hr.Undefined);else if(typeof t=="string"){const i=O.fromString(t);e.write(Hr.String),jo(e,i.byteLength),e.write(i)}else if(U5&&Buffer.isBuffer(t)){const i=O.wrap(t);e.write(Hr.Buffer),jo(e,i.byteLength),e.write(i)}else if(t instanceof O)e.write(Hr.VSBuffer),jo(e,t.byteLength),e.write(t);else if(Array.isArray(t)){e.write(Hr.Array),jo(e,t.length);for(const i of t)Xc(e,i)}else if(typeof t=="number"&&(t|0)===t)e.write(Hr.Uint),jo(e,t);else{const i=O.fromString(JSON.stringify(t));e.write(Hr.Object),jo(e,i.byteLength),e.write(i)}}function Bo(e){switch(e.read(1).readUInt8(0)){case Kt.Undefined:return;case Kt.String:return e.read(Vo(e)).toString();case Kt.Buffer:return e.read(Vo(e)).buffer;case Kt.VSBuffer:return e.read(Vo(e));case Kt.Array:{const i=Vo(e),s=[];for(let r=0;r<i;r++)s.push(Bo(e));return s}case Kt.Object:return JSON.parse(e.read(Vo(e)).toString());case Kt.Int:return Vo(e)}}function O5(e){return{call(t,i,s){return e.then(r=>r.call(t,i,s))},listen(t,i){const s=new Kp;return e.then(r=>s.input=r.listen(t,i)),s.event}}}function CO(e){let t=!1;return{call(i,s,r){return t?e.call(i,s,r):go(0).then(()=>t=!0).then(()=>e.call(i,s,r))},listen(i,s){if(t)return e.listen(i,s);const r=new Kp;return go(0).then(()=>t=!0).then(()=>r.input=e.listen(i,s)),r.event}}}var T5,M5,On,F5,Jh,d1,Kt,Hr,U5,$5,W5,Xh,H5,V5,Yc,zo=y({"out-build/vs/base/parts/ipc/common/ipc.js"(){"use strict";kt(),Ne(),Fe(),Ft(),h1(),ve(),ie(),hu(),V(),Dc(),lt(),_e(),(function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"})(T5||(T5={})),(function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"})(M5||(M5={})),(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"})(On||(On={})),F5=Wr(0),Jh=class{constructor(e){this.buffer=e,this.pos=0}read(e){const t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.byteLength,t}},d1=class{constructor(){this.buffers=[]}get buffer(){return O.concat(this.buffers)}write(e){this.buffers.push(e)}},(function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.VSBuffer=3]="VSBuffer",e[e.Array=4]="Array",e[e.Object=5]="Object",e[e.Int=6]="Int"})(Kt||(Kt={})),Hr={Undefined:Wr(Kt.Undefined),String:Wr(Kt.String),Buffer:Wr(Kt.Buffer),VSBuffer:Wr(Kt.VSBuffer),Array:Wr(Kt.Array),Object:Wr(Kt.Object),Uint:Wr(Kt.Int)},U5=typeof Buffer<"u",$5=class{constructor(e,t,i=null,s=1e3){this.protocol=e,this.ctx=t,this.logger=i,this.timeoutDelay=s,this.channels=new Map,this.activeRequests=new Map,this.pendingRequests=new Map,this.protocolListener=this.protocol.onMessage(r=>this.onRawMessage(r)),this.sendResponse({type:200})}registerChannel(e,t){this.channels.set(e,t),setTimeout(()=>this.flushPendingRequests(e),0)}sendResponse(e){switch(e.type){case 200:{const t=this.send([e.type]);this.logger?.logOutgoing(t,0,1,Qh(e.type));return}case 201:case 202:case 204:case 203:{const t=this.send([e.type,e.id],e.data);this.logger?.logOutgoing(t,e.id,1,Qh(e.type),e.data);return}}}send(e,t=void 0){const i=new d1;return Xc(i,e),Xc(i,t),this.sendBuffer(i.buffer)}sendBuffer(e){try{return this.protocol.send(e),e.byteLength}catch{return 0}}onRawMessage(e){const t=new Jh(e),i=Bo(t),s=Bo(t),r=i[0];switch(r){case 100:return this.logger?.logIncoming(e.byteLength,i[1],1,`${Ho(r)}: ${i[2]}.${i[3]}`,s),this.onPromise({type:r,id:i[1],channelName:i[2],name:i[3],arg:s});case 102:return this.logger?.logIncoming(e.byteLength,i[1],1,`${Ho(r)}: ${i[2]}.${i[3]}`,s),this.onEventListen({type:r,id:i[1],channelName:i[2],name:i[3],arg:s});case 101:return this.logger?.logIncoming(e.byteLength,i[1],1,`${Ho(r)}`),this.disposeActiveRequest({type:r,id:i[1]});case 103:return this.logger?.logIncoming(e.byteLength,i[1],1,`${Ho(r)}`),this.disposeActiveRequest({type:r,id:i[1]})}}onPromise(e){const t=this.channels.get(e.channelName);if(!t){this.collectPendingRequest(e);return}const i=new Is;let s;try{s=t.call(this.ctx,e.name,e.arg,i.token)}catch(o){s=Promise.reject(o)}const r=e.id;s.then(o=>{this.sendResponse({id:r,data:o,type:201})},o=>{o instanceof Error?this.sendResponse({id:r,data:{message:o.message,name:o.name,stack:o.stack?o.stack.split(`
`):void 0},type:202}):this.sendResponse({id:r,data:o,type:203})}).finally(()=>{n.dispose(),this.activeRequests.delete(e.id)});const n=Se(()=>i.cancel());this.activeRequests.set(e.id,n)}onEventListen(e){const t=this.channels.get(e.channelName);if(!t){this.collectPendingRequest(e);return}const i=e.id,r=t.listen(this.ctx,e.name,e.arg)(n=>this.sendResponse({id:i,data:n,type:204}));this.activeRequests.set(e.id,r)}disposeActiveRequest(e){const t=this.activeRequests.get(e.id);t&&(t.dispose(),this.activeRequests.delete(e.id))}collectPendingRequest(e){let t=this.pendingRequests.get(e.channelName);t||(t=[],this.pendingRequests.set(e.channelName,t));const i=setTimeout(()=>{console.error(`Unknown channel: ${e.channelName}`),e.type===100&&this.sendResponse({id:e.id,data:{name:"Unknown channel",message:`Channel name '${e.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);t.push({request:e,timeoutTimer:i})}flushPendingRequests(e){const t=this.pendingRequests.get(e);if(t){for(const i of t)switch(clearTimeout(i.timeoutTimer),i.request.type){case 100:this.onPromise(i.request);break;case 102:this.onEventListen(i.request);break}this.pendingRequests.delete(e)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),Mt(this.activeRequests.values()),this.activeRequests.clear()}},(function(e){e[e.LocalSide=0]="LocalSide",e[e.OtherSide=1]="OtherSide"})(W5||(W5={})),Xh=class{constructor(e,t=null){this.protocol=e,this.isDisposed=!1,this.state=On.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new R,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(i=>this.onBuffer(i)),this.logger=t}getChannel(e){const t=this;return{call(i,s,r){return t.isDisposed?Promise.reject(new xt):t.requestPromise(e,i,s,r)},listen(i,s){return t.isDisposed?z.None:t.requestEvent(e,i,s)}}}requestPromise(e,t,i,s=Me.None){const r=this.lastRequestId++,o={id:r,type:100,channelName:e,name:t,arg:i};if(s.isCancellationRequested)return Promise.reject(new xt);let a,c;return new Promise((u,h)=>{if(s.isCancellationRequested)return h(new xt);const f=()=>{const v=w=>{switch(w.type){case 201:this.handlers.delete(r),u(w.data);break;case 202:{this.handlers.delete(r);const S=new Error(w.data.message);S.stack=Array.isArray(w.data.stack)?w.data.stack.join(`
`):w.data.stack,S.name=w.data.name,h(S);break}case 203:this.handlers.delete(r),h(w.data);break}};this.handlers.set(r,v),this.sendRequest(o)};let p=null;this.state===On.Idle?f():(p=ir(v=>this.whenInitialized()),p.then(()=>{p=null,f()}));const g=()=>{p?(p.cancel(),p=null):this.sendRequest({id:r,type:101}),h(new xt)};a=s.onCancellationRequested(g),c={dispose:uu(()=>{g(),a.dispose()})},this.activeRequests.add(c)}).finally(()=>{a?.dispose(),this.activeRequests.delete(c)})}requestEvent(e,t,i){const s=this.lastRequestId++,n={id:s,type:102,channelName:e,name:t,arg:i};let o=null;const a=new R({onWillAddFirstListener:()=>{const l=()=>{this.activeRequests.add(a),this.sendRequest(n)};this.state===On.Idle?l():(o=ir(u=>this.whenInitialized()),o.then(()=>{o=null,l()}))},onDidRemoveLastListener:()=>{o?(o.cancel(),o=null):(this.activeRequests.delete(a),this.sendRequest({id:s,type:103}))}}),c=l=>a.fire(l.data);return this.handlers.set(s,c),a.event}sendRequest(e){switch(e.type){case 100:case 102:{const t=this.send([e.type,e.id,e.channelName,e.name],e.arg);this.logger?.logOutgoing(t,e.id,0,`${Ho(e.type)}: ${e.channelName}.${e.name}`,e.arg);return}case 101:case 103:{const t=this.send([e.type,e.id]);this.logger?.logOutgoing(t,e.id,0,Ho(e.type));return}}}send(e,t=void 0){const i=new d1;return Xc(i,e),Xc(i,t),this.sendBuffer(i.buffer)}sendBuffer(e){try{return this.protocol.send(e),e.byteLength}catch{return 0}}onBuffer(e){const t=new Jh(e),i=Bo(t),s=Bo(t),r=i[0];switch(r){case 200:return this.logger?.logIncoming(e.byteLength,0,0,Qh(r)),this.onResponse({type:i[0]});case 201:case 202:case 204:case 203:return this.logger?.logIncoming(e.byteLength,i[1],0,Qh(r),s),this.onResponse({type:i[0],id:i[1],data:s})}}onResponse(e){if(e.type===200){this.state=On.Idle,this._onDidInitialize.fire();return}this.handlers.get(e.id)?.(e)}get onDidInitializePromise(){return z.toPromise(this.onDidInitialize)}whenInitialized(){return this.state===On.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.isDisposed=!0,this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),Mt(this.activeRequests.values()),this.activeRequests.clear()}},__decorate([Oe],Xh.prototype,"onDidInitializePromise",null),H5=class{get connections(){const e=[];return this._connections.forEach(t=>e.push(t)),e}constructor(e,t,i){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new R,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new R,this.onDidRemoveConnection=this._onDidRemoveConnection.event,this.disposables=new ct,this.disposables.add(e(({protocol:s,onDidClientDisconnect:r})=>{const n=z.once(s.onMessage);this.disposables.add(n(o=>{const a=new Jh(o),c=Bo(a),l=new $5(s,c,t,i),u=new Xh(s,t);this.channels.forEach((f,p)=>l.registerChannel(p,f));const h={channelServer:l,channelClient:u,ctx:c};this._connections.add(h),this._onDidAddConnection.fire(h),this.disposables.add(r(()=>{l.dispose(),u.dispose(),this._connections.delete(h),this._onDidRemoveConnection.fire(h)}))}))}))}getChannel(e,t){const i=this;return{call(s,r,n){let o;if(pu(t)){const c=BC(i.connections.filter(t));o=c?Promise.resolve(c):z.toPromise(z.filter(i.onDidAddConnection,t))}else o=t.routeCall(i,s,r);const a=o.then(c=>c.channelClient.getChannel(e));return O5(a).call(s,r,n)},listen(s,r){if(pu(t))return i.getMulticastEvent(e,t,s,r);const n=t.routeEvent(i,s,r).then(o=>o.channelClient.getChannel(e));return O5(n).listen(s,r)}}}getMulticastEvent(e,t,i,s){const r=this;let n;const o=new R({onWillAddFirstListener:()=>{n=new ct;const a=new Xw,c=new Map,l=h=>{const p=h.channelClient.getChannel(e).listen(i,s),g=a.add(p);c.set(h,g)},u=h=>{const f=c.get(h);f&&(f.dispose(),c.delete(h))};r.connections.filter(t).forEach(l),z.filter(r.onDidAddConnection,t)(l,void 0,n),r.onDidRemoveConnection(u,void 0,n),a.event(o.fire,o,n),n.add(a)},onDidRemoveLastListener:()=>{n?.dispose(),n=void 0}});return r.disposables.add(o),o.event}registerChannel(e,t){this.channels.set(e,t);for(const i of this._connections)i.channelServer.registerChannel(e,t)}dispose(){this.disposables.dispose();for(const e of this._connections)e.channelClient.dispose(),e.channelServer.dispose();this._connections.clear(),this.channels.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}},V5=class{constructor(e){this.fn=e}routeCall(e){return this.route(e)}routeEvent(e){return this.route(e)}async route(e){for(const t of e.connections)if(await Promise.resolve(this.fn(t.ctx)))return Promise.resolve(t);return await z.toPromise(e.onDidAddConnection),await this.route(e)}},(function(e){function t(n,o,a){const c=n,l=a&&a.disableMarshalling,u=new Map;for(const h in c)s(h)&&u.set(h,z.buffer(c[h],!0,void 0,o));return new class{listen(h,f,p){const g=u.get(f);if(g)return g;const v=c[f];if(typeof v=="function"){if(r(f))return v.call(c,p);if(s(f))return u.set(f,z.buffer(c[f],!0,void 0,o)),u.get(f)}throw new Gs(`Event not found: ${f}`)}call(h,f,p){const g=c[f];if(typeof g=="function"){if(!l&&Array.isArray(p))for(let w=0;w<p.length;w++)p[w]=zi(p[w]);let v=g.apply(c,p);return v instanceof Promise||(v=Promise.resolve(v)),v}throw new Gs(`Method not found: ${f}`)}}}e.fromService=t;function i(n,o){const a=o&&o.disableMarshalling;return new Proxy({},{get(c,l){if(typeof l=="string")return o?.properties?.has(l)?o.properties.get(l):r(l)?function(u){return n.listen(l,u)}:s(l)?n.listen(l):async function(...u){let h;o&&!It(o.context)?h=[o.context,...u]:h=u;const f=await n.call(l,h);return a?f:zi(f)};throw new Gs(`Property not found: ${String(l)}`)}})}e.toService=i;function s(n){return n[0]==="o"&&n[1]==="n"&&Kw(n.charCodeAt(2))}function r(n){return/^onDynamic/.test(n)&&Kw(n.charCodeAt(9))}})(Yc||(Yc={}))}});function DO(e){const t=e;return t&&typeof t.type=="string"&&typeof t.severity=="string"}function RO(e){const t=[];let i;try{const s=JSON.parse(e.arguments),r=s[s.length-1];r&&r.__$stack&&(s.pop(),i=r.__$stack),t.push(...s)}catch{t.push("Unable to log remote console arguments",e.arguments)}return{args:t,stack:i}}function LO(e){if(!e)return e;const t=e.indexOf(`
`);return t===-1?e:e.substring(0,t)}function AO(e,t){const{args:i,stack:s}=RO(e),r=typeof i[0]=="string"&&i.length===1;let n=LO(s);n&&(n=`(${n.trim()})`);let o=[];if(typeof i[0]=="string"?n&&r?o=[`%c[${t}] %c${i[0]} %c${n}`,qo("blue"),qo(""),qo("grey")]:o=[`%c[${t}] %c${i[0]}`,qo("blue"),qo(""),...i.slice(1)]:o=[`%c[${t}]%`,qo("blue"),...i],n&&!r&&o.push(n),typeof console[e.severity]!="function")throw new Error("Unknown console method");console[e.severity].apply(console,o)}function qo(e){return`color: ${e}`}var NO=y({"out-build/vs/base/common/console.js"(){"use strict";Y()}});import{fork as OO}from"child_process";var f1,j5=y({"out-build/vs/base/parts/ipc/node/ipc.cp.js"(){"use strict";Ne(),Fe(),Ft(),NO(),ve(),ie(),V(),Si(),ig(),Zu(),zo(),f1=class{constructor(e,t){this.modulePath=e,this.options=t,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new R,this.onDidProcessExit=this._onDidProcessExit.event;const i=t&&t.timeout?t.timeout:6e4;this.disposeDelayer=new Lm(i),this.child=null,this._client=null}getChannel(e){const t=this;return{call(i,s,r){return t.requestPromise(e,i,s,r)},listen(i,s){return t.requestEvent(e,i,s)}}}requestPromise(e,t,i,s=Me.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(s.isCancellationRequested)return Promise.reject(Qy());this.disposeDelayer.cancel();const r=this.getCachedChannel(e),n=ir(c=>r.call(t,i,c)),o=s.onCancellationRequested(()=>n.cancel()),a=Se(()=>n.cancel());return this.activeRequests.add(a),n.finally(()=>{o.dispose(),this.activeRequests.delete(a),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),n}requestEvent(e,t,i){if(!this.disposeDelayer)return z.None;this.disposeDelayer.cancel();let s;const r=new R({onWillAddFirstListener:()=>{s=this.getCachedChannel(e).listen(t,i)(r.fire,r),this.activeRequests.add(s)},onDidRemoveLastListener:()=>{this.activeRequests.delete(s),s.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return r.event}get client(){if(!this._client){const e=this.options&&this.options.args?this.options.args:[],t=Object.create(null);t.env={...sr(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(t.env={...t.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(t.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(t.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(t.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),t.execArgv===void 0&&(t.execArgv=process.execArgv.filter(u=>!/^--inspect(-brk)?=/.test(u)).filter(u=>!u.startsWith("--vscode-"))),PE(t.env),this.child=OO(this.modulePath,e,t);const i=new R,r=z.fromNodeEventEmitter(this.child,"message",u=>u)(u=>{if(DO(u)){AO(u,`IPC Library: ${this.options.serverName}`);return}i.fire(O.wrap(Buffer.from(u,"base64")))}),n=this.options.useQueue?oL(this.child):this.child,o=u=>this.child&&this.child.connected&&n.send(u.buffer.toString("base64")),a=i.event,c={send:o,onMessage:a};this._client=new Xh(c);const l=()=>this.disposeClient();process.once("exit",l),this.child.on("error",u=>console.warn('IPC "'+this.options.serverName+'" errored with '+u)),this.child.on("exit",(u,h)=>{process.removeListener("exit",l),r.dispose(),this.activeRequests.forEach(f=>Mt(f)),this.activeRequests.clear(),u!==0&&h!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+u+" and signal "+h),this.disposeDelayer?.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:u,signal:h})})}return this._client}getCachedChannel(e){let t=this.channels.get(e);return t||(t=this.client.getChannel(e),this.channels.set(e,t)),t}disposeClient(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer?.cancel(),this.disposeDelayer=void 0,this.disposeClient(),this.activeRequests.clear()}}}}),B5,TO=y({"out-build/vs/platform/files/node/watcher/watcherClient.js"(){"use strict";xe(),zo(),j5(),Wo(),B5=class extends L5{constructor(e,t,i){super(e,t,i),this.init()}createWatcher(e){const t=e.add(new f1(Ct.asFileUri("bootstrap-fork").fsPath,{serverName:"File Watcher",args:["--type=fileWatcher"],env:{VSCODE_ESM_ENTRYPOINT:"vs/platform/files/node/watcher/watcherMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true"}}));return e.add(t.onDidProcessExit(({code:i,signal:s})=>this.onError(`terminated by itself with code ${i}, signal: ${s} (ETERM)`))),Yc.toService(CO(t.getChannel("watcher")))}}}});import{watchFile as MO,unwatchFile as FO}from"fs";var z5,UO=y({"out-build/vs/platform/files/node/watcher/baseWatcher.js"(){"use strict";V(),Wo(),ie(),Y(),Ne(),Ya(),ve(),z5=class extends G{constructor(){super(),this._onDidChangeFile=this._register(new R),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidLogMessage=this._register(new R),this.onDidLogMessage=this._onDidLogMessage.event,this._onDidWatchFail=this._register(new R),this.onDidWatchFail=this._onDidWatchFail.event,this.correlatedWatchRequests=new Map,this.nonCorrelatedWatchRequests=new Map,this.suspendedWatchRequests=this._register(new mu),this.suspendedWatchRequestsWithPolling=new Set,this.updateWatchersDelayer=this._register(new Sn(this.getUpdateWatchersDelay())),this.suspendedWatchRequestPollingInterval=5007,this.joinWatch=new $u,this.verboseLogging=!1,this._register(this.onDidWatchFail(e=>this.suspendWatchRequest({id:this.computeId(e),correlationId:this.isCorrelated(e)?e.correlationId:void 0,path:e.path})))}isCorrelated(e){return I5(e)}computeId(e){return this.isCorrelated(e)?e.correlationId:ao(e)}async watch(e){this.joinWatch.isSettled||this.joinWatch.complete(),this.joinWatch=new $u;try{this.correlatedWatchRequests.clear(),this.nonCorrelatedWatchRequests.clear();for(const t of e)this.isCorrelated(t)?this.correlatedWatchRequests.set(t.correlationId,t):this.nonCorrelatedWatchRequests.set(this.computeId(t),t);for(const[t]of this.suspendedWatchRequests)!this.nonCorrelatedWatchRequests.has(t)&&!this.correlatedWatchRequests.has(t)&&(this.suspendedWatchRequests.deleteAndDispose(t),this.suspendedWatchRequestsWithPolling.delete(t));return await this.updateWatchers(!1)}finally{this.joinWatch.complete()}}updateWatchers(e){const t=[];for(const[i,s]of[...this.nonCorrelatedWatchRequests,...this.correlatedWatchRequests])this.suspendedWatchRequests.has(i)||t.push(s);return this.updateWatchersDelayer.trigger(()=>this.doWatch(t),e?this.getUpdateWatchersDelay():0).catch(i=>Qt(i))}getUpdateWatchersDelay(){return 800}isSuspended(e){const t=this.computeId(e);return this.suspendedWatchRequestsWithPolling.has(t)?"polling":this.suspendedWatchRequests.has(t)}async suspendWatchRequest(e){if(this.suspendedWatchRequests.has(e.id))return;const t=new ct;this.suspendedWatchRequests.set(e.id,t),await this.joinWatch.p,!t.isDisposed&&(this.monitorSuspendedWatchRequest(e,t),this.updateWatchers(!0))}resumeWatchRequest(e){this.suspendedWatchRequests.deleteAndDispose(e.id),this.suspendedWatchRequestsWithPolling.delete(e.id),this.updateWatchers(!1)}monitorSuspendedWatchRequest(e,t){this.doMonitorWithExistingWatcher(e,t)?(this.trace(`reusing an existing recursive watcher to monitor ${e.path}`),this.suspendedWatchRequestsWithPolling.delete(e.id)):(this.doMonitorWithNodeJS(e,t),this.suspendedWatchRequestsWithPolling.add(e.id))}doMonitorWithExistingWatcher(e,t){const i=this.recursiveWatcher?.subscribe(e.path,(s,r)=>{t.isDisposed||(s?this.monitorSuspendedWatchRequest(e,t):r?.type===1&&this.onMonitoredPathAdded(e))});return i?(t.add(i),!0):!1}doMonitorWithNodeJS(e,t){let i=!1;const s=(r,n)=>{if(t.isDisposed)return;const o=this.isPathNotFound(r),a=this.isPathNotFound(n),c=i;i=o,!o&&(a||c)&&this.onMonitoredPathAdded(e)};this.trace(`starting fs.watchFile() on ${e.path} (correlationId: ${e.correlationId})`);try{MO(e.path,{persistent:!1,interval:this.suspendedWatchRequestPollingInterval},s)}catch(r){this.warn(`fs.watchFile() failed with error ${r} on path ${e.path} (correlationId: ${e.correlationId})`)}t.add(Se(()=>{this.trace(`stopping fs.watchFile() on ${e.path} (correlationId: ${e.correlationId})`);try{FO(e.path,s)}catch(r){this.warn(`fs.unwatchFile() failed with error ${r} on path ${e.path} (correlationId: ${e.correlationId})`)}}))}onMonitoredPathAdded(e){this.trace(`detected ${e.path} exists again, resuming watcher (correlationId: ${e.correlationId})`);const t={resource:b.file(e.path),type:1,cId:e.correlationId};this._onDidChangeFile.fire([t]),this.traceEvent(t,e),this.resumeWatchRequest(e)}isPathNotFound(e){return e.ctimeMs===0&&e.ino===0}async stop(){this.suspendedWatchRequests.clearAndDisposeAll(),this.suspendedWatchRequestsWithPolling.clear()}traceEvent(e,t){if(this.verboseLogging){const i=` >> normalized ${e.type===1?"[ADDED]":e.type===2?"[DELETED]":"[CHANGED]"} ${e.resource.fsPath}`;this.traceWithCorrelation(i,t)}}traceWithCorrelation(e,t){this.verboseLogging&&this.trace(`${e}${typeof t.correlationId=="number"?` <${t.correlationId}> `:""}`)}requestToString(e){return`${e.path} (excludes: ${e.excludes.length>0?e.excludes:"<none>"}, includes: ${e.includes&&e.includes.length>0?JSON.stringify(e.includes):"<all>"}, filter: ${kO(e.filter)}, correlationId: ${typeof e.correlationId=="number"?e.correlationId:"<none>"})`}async setVerboseLogging(e){this.verboseLogging=e}}}});import{watch as $O,promises as WO}from"fs";var q5,HO=y({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcherLib.js"(){"use strict";Ne(),Ft(),er(),V(),fE(),de(),K(),_t(),Y(),d5(),di(),Wo(),Ba(),q5=class xp extends G{static{this.FILE_DELETE_HANDLER_DELAY=100}static{this.FILE_CHANGES_HANDLER_DELAY=75}get isReusingRecursiveWatcher(){return this._isReusingRecursiveWatcher}get failed(){return this.didFail}constructor(t,i,s,r,n,o){super(),this.request=t,this.recursiveWatcher=i,this.onDidFilesChange=s,this.onDidWatchFail=r,this.onLogMessage=n,this.verboseLogging=o,this.throttledFileChangesEmitter=this._register(new Tm({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},a=>this.onDidFilesChange(a))),this.fileChangesAggregator=this._register(new Cb(a=>this.handleFileChanges(a),xp.FILE_CHANGES_HANDLER_DELAY)),this.cts=new Is,this.realPath=new Cr(async()=>{let a=this.request.path;try{a=await h5(this.request.path),this.request.path!==a&&this.trace(`correcting a path to watch that seems to be a symbolic link (original: ${this.request.path}, real: ${a})`)}catch{}return a}),this._isReusingRecursiveWatcher=!1,this.didFail=!1,this.excludes=D5(this.request.path,this.request.excludes),this.includes=this.request.includes?D5(this.request.path,this.request.includes):void 0,this.filter=I5(this.request)?this.request.filter:void 0,this.ready=this.watch()}async watch(){try{const t=await WO.stat(this.request.path);if(this.cts.token.isCancellationRequested)return;this._register(await this.doWatch(t.isDirectory()))}catch(t){t.code!=="ENOENT"?this.error(t):this.trace(`ignoring a path for watching who's stat info failed to resolve: ${this.request.path} (error: ${t})`),this.notifyWatchFailed()}}notifyWatchFailed(){this.didFail=!0,this.onDidWatchFail?.()}async doWatch(t){const i=new ct;return this.doWatchWithExistingWatcher(t,i)?(this.trace(`reusing an existing recursive watcher for ${this.request.path}`),this._isReusingRecursiveWatcher=!0):(this._isReusingRecursiveWatcher=!1,await this.doWatchWithNodeJS(t,i)),i}doWatchWithExistingWatcher(t,i){if(t)return!1;const s=b.file(this.request.path),r=this.recursiveWatcher?.subscribe(this.request.path,async(n,o)=>{if(!i.isDisposed)if(n){const a=await this.doWatch(t);i.isDisposed?a.dispose():i.add(a)}else o&&(typeof o.cId=="number"||typeof this.request.correlationId=="number")&&this.onFileChange({resource:s,type:o.type,cId:this.request.correlationId},!0)});return r?(i.add(r),!0):!1}async doWatchWithNodeJS(t,i){const s=await this.realPath.value;if(this.cts.token.isCancellationRequested)return;if(Li&&Ar(s,"/Volumes/",!0)){this.error(`Refusing to watch ${s} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`);return}const r=new Is(this.cts.token);i.add(Se(()=>r.dispose(!0)));const n=new ct;i.add(n);try{const o=b.file(this.request.path),a=ut(s),c=$O(s);n.add(Se(()=>{c.removeAllListeners(),c.close()})),this.trace(`Started watching: '${s}'`);const l=new Set;if(t)try{for(const h of await Ce.readdir(s))l.add(h)}catch(h){this.error(h)}if(r.token.isCancellationRequested)return;const u=new Map;n.add(Se(()=>{for(const[,h]of u)h.dispose();u.clear()})),c.on("error",(h,f)=>{r.token.isCancellationRequested||(this.error(`Failed to watch ${s} for changes using fs.watch() (${h}, ${f})`),this.notifyWatchFailed())}),c.on("change",(h,f)=>{if(r.token.isCancellationRequested)return;this.verboseLogging&&this.traceWithCorrelation(`[raw] ["${h}"] ${f}`);let p="";if(f&&(p=f.toString(),Li&&(p=Ym(p))),!(!p||h!=="change"&&h!=="rename"))if(t)if(h==="rename"){u.get(p)?.dispose();const g=setTimeout(async()=>{if(u.delete(p),Cu(p,a,!nt)&&!await Ce.exists(s)){this.onWatchedPathDeleted(o);return}if(r.token.isCancellationRequested)return;const v=await this.existsChildStrictCase(W(s,p));if(r.token.isCancellationRequested)return;let w;v?l.has(p)?w=0:(w=1,l.add(p)):(l.delete(p),w=2),this.onFileChange({resource:oe(o,p),type:w,cId:this.request.correlationId})},xp.FILE_DELETE_HANDLER_DELAY);u.set(p,Se(()=>clearTimeout(g)))}else{let g;l.has(p)?g=0:(g=1,l.add(p)),this.onFileChange({resource:oe(o,p),type:g,cId:this.request.correlationId})}else if(h==="rename"||!Cu(p,a,!nt)){const g=setTimeout(async()=>{const v=await Ce.exists(s);r.token.isCancellationRequested||(v?(this.onFileChange({resource:o,type:0,cId:this.request.correlationId},!0),n.add(await this.doWatch(!1))):this.onWatchedPathDeleted(o))},xp.FILE_DELETE_HANDLER_DELAY);n.clear(),n.add(Se(()=>clearTimeout(g)))}else this.onFileChange({resource:o,type:0,cId:this.request.correlationId},!0)})}catch(o){if(r.token.isCancellationRequested)return;this.error(`Failed to watch ${s} for changes using fs.watch() (${o.toString()})`),this.notifyWatchFailed()}}onWatchedPathDeleted(t){this.warn("Watcher shutdown because watched path got deleted"),this.onFileChange({resource:t,type:2,cId:this.request.correlationId},!0),this.fileChangesAggregator.flush(),this.notifyWatchFailed()}onFileChange(t,i=!1){this.cts.token.isCancellationRequested||(this.verboseLogging&&this.traceWithCorrelation(`${t.type===1?"[ADDED]":t.type===2?"[DELETED]":"[CHANGED]"} ${t.resource.fsPath}`),!i&&this.excludes.some(s=>s(t.resource.fsPath))?this.verboseLogging&&this.traceWithCorrelation(` >> ignored (excluded) ${t.resource.fsPath}`):!i&&this.includes&&this.includes.length>0&&!this.includes.some(s=>s(t.resource.fsPath))?this.verboseLogging&&this.traceWithCorrelation(` >> ignored (not included) ${t.resource.fsPath}`):this.fileChangesAggregator.work(t))}handleFileChanges(t){const i=EO(t),s=[];for(const n of i){if(xO(n,this.filter)){this.verboseLogging&&this.traceWithCorrelation(` >> ignored (filtered) ${n.resource.fsPath}`);continue}s.push(n)}if(s.length===0)return;if(this.verboseLogging)for(const n of s)this.traceWithCorrelation(` >> normalized ${n.type===1?"[ADDED]":n.type===2?"[DELETED]":"[CHANGED]"} ${n.resource.fsPath}`);this.throttledFileChangesEmitter.work(s)?this.throttledFileChangesEmitter.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesEmitter.pending}, most recent change: ${s[0].resource.fsPath}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${s.length}, most recent change: ${s[0].resource.fsPath}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}async existsChildStrictCase(t){if(nt)return Ce.exists(t);try{const i=ut(t);return(await Ce.readdir(Vt(t))).some(r=>r===i)}catch(i){return this.trace(i),!1}}setVerboseLogging(t){this.verboseLogging=t}error(t){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"error",message:`[File Watcher (node.js)] ${t}`})}warn(t){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"warn",message:`[File Watcher (node.js)] ${t}`})}trace(t){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.onLogMessage?.({type:"trace",message:`[File Watcher (node.js)] ${t}`})}traceWithCorrelation(t){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.trace(`${t}${typeof this.request.correlationId=="number"?` <${this.request.correlationId}> `:""}`)}dispose(){this.cts.dispose(!0),super.dispose()}}}}),G5,VO=y({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcher.js"(){"use strict";ie(),l1(),UO(),K(),HO(),Ne(),V(),G5=class extends z5{get watchers(){return this._watchers.values()}constructor(e){super(),this.recursiveWatcher=e,this.onDidError=z.None,this._watchers=new Map,this.worker=this._register(new Ha)}async doWatch(e){e=this.removeDuplicateRequests(e);const t=[],i=new Set(Array.from(this.watchers));for(const s of e){const r=this._watchers.get(this.requestToWatcherKey(s));r&&w5(r.request.excludes,s.excludes)&&w5(r.request.includes,s.includes)?i.delete(r):t.push(s)}t.length&&this.trace(`Request to start watching: ${t.map(s=>this.requestToString(s)).join(",")}`),i.size&&this.trace(`Request to stop watching: ${Array.from(i).map(s=>this.requestToString(s.request)).join(",")}`),this.worker.clear();for(const s of i)this.stopWatching(s);this.createWatchWorker().work(t)}createWatchWorker(){return this.worker.value=new Tm({maxWorkChunkSize:100,throttleDelay:100,maxBufferedWork:Number.MAX_VALUE},e=>{for(const t of e)this.startWatching(t)}),this.worker.value}requestToWatcherKey(e){return typeof e.correlationId=="number"?e.correlationId:this.pathToWatcherKey(e.path)}pathToWatcherKey(e){return nt?e:e.toLowerCase()}startWatching(e){const t=new q5(e,this.recursiveWatcher,s=>this._onDidChangeFile.fire(s),()=>this._onDidWatchFail.fire(e),s=>this._onDidLogMessage.fire(s),this.verboseLogging),i={request:e,instance:t};this._watchers.set(this.requestToWatcherKey(e),i)}async stop(){await super.stop();for(const e of this.watchers)this.stopWatching(e)}stopWatching(e){this.trace("stopping file watcher",e),this._watchers.delete(this.requestToWatcherKey(e.request)),e.instance.dispose()}removeDuplicateRequests(e){const t=new Map;for(const i of e){let s=t.get(i.correlationId);s||(s=new Map,t.set(i.correlationId,s));const r=this.pathToWatcherKey(i.path);s.has(r)&&this.trace(`ignoring a request for watching who's path is already watched: ${this.requestToString(i)}`),s.set(r,i)}return Array.from(t.values()).map(i=>Array.from(i.values())).flat()}async setVerboseLogging(e){super.setVerboseLogging(e);for(const t of this.watchers)t.instance.setVerboseLogging(e)}trace(e,t){this.verboseLogging&&this._onDidLogMessage.fire({type:"trace",message:this.toMessage(e,t)})}warn(e){this._onDidLogMessage.fire({type:"warn",message:this.toMessage(e)})}toMessage(e,t){return t?`[File Watcher (node.js)] ${e} (${this.requestToString(t.request)})`:`[File Watcher (node.js)] ${e}`}}}}),Q5,jO=y({"out-build/vs/platform/files/node/watcher/nodejs/nodejsClient.js"(){"use strict";Wo(),VO(),Q5=class extends R5{constructor(e,t,i){super(e,t,i),this.init()}createWatcher(e){return e.add(new G5(void 0))}}}});import{promises as Vr}from"fs";var Zc,Yh=y({"out-build/vs/platform/files/node/diskFileSystemProvider.js"(){"use strict";Ne(),ri(),Fe(),ie(),er(),d5(),V(),de(),K(),_t(),Qa(),Y(),di(),ue(),Xe(),a5(),PO(),TO(),jO(),Zc=class eu extends N5{static{this.TRACE_LOG_RESOURCE_LOCKS=!1}constructor(t,i){super(t,i),this.onDidChangeCapabilities=z.None,this.resourceLocks=new Pt(s=>Du.getComparisonKey(s)),this.mapHandleToPos=new Map,this.mapHandleToLock=new Map,this.writeHandles=new Map}get capabilities(){return this._capabilities||(this._capabilities=253982,nt&&(this._capabilities|=1024)),this._capabilities}async stat(t){try{const{stat:i,symbolicLink:s}=await hi.stat(this.toFilePath(t));return{type:this.toType(i,s),ctime:i.birthtime.getTime(),mtime:i.mtime.getTime(),size:i.size,permissions:(i.mode&128)===0?Ao.Locked:void 0}}catch(i){throw this.toFileSystemProviderError(i)}}async statIgnoreError(t){try{return await this.stat(t)}catch{return}}async realpath(t){try{const i=this.toFilePath(t),s=await h5(i);return b.file(s)}catch(i){throw this.toFileSystemProviderError(i)}}async readdir(t){try{const i=await Ce.readdir(this.toFilePath(t),{withFileTypes:!0}),s=[];return await Promise.all(i.map(async r=>{try{let n;r.isSymbolicLink()?n=(await this.stat(oe(t,r.name))).type:n=this.toType(r),s.push([r.name,n])}catch(n){this.logService.trace(n)}})),s}catch(i){throw this.toFileSystemProviderError(i)}}toType(t,i){let s;return i?.dangling?s=Pi.Unknown:t.isFile()?s=Pi.File:t.isDirectory()?s=Pi.Directory:s=Pi.Unknown,i&&(s|=Pi.SymbolicLink),s}async createResourceLock(t){const i=this.toFilePath(t);this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - request to acquire resource lock (${i})`);let s;for(;s=this.resourceLocks.get(t);)this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - waiting for resource lock to be released (${i})`),await s.wait();const r=new Fu;return this.resourceLocks.set(t,r),this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - new resource lock created (${i})`),Se(()=>{this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - resource lock dispose() (${i})`),this.resourceLocks.get(t)===r&&(this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - resource lock removed from resource-lock map (${i})`),this.resourceLocks.delete(t)),this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - resource lock barrier open() (${i})`),r.open()})}async readFile(t,i){let s;try{i?.atomic&&(this.traceLock(`[Disk FileSystemProvider]: atomic read operation started (${this.toFilePath(t)})`),s=await this.createResourceLock(t));const r=this.toFilePath(t);return await Vr.readFile(r)}catch(r){throw this.toFileSystemProviderError(r)}finally{s?.dispose()}}traceLock(t){eu.TRACE_LOG_RESOURCE_LOCKS&&this.logService.trace(t)}readFileStream(t,i,s){const r=Eu(n=>O.concat(n.map(o=>O.wrap(o))).buffer);return o5(this,t,r,n=>n.buffer,{...i,bufferSize:256*1024},s),r}async writeFile(t,i,s){return s?.atomic!==!1&&s?.atomic?.postfix&&await this.canWriteFileAtomic(t)?this.doWriteFileAtomic(t,oe(G_(t),`${Nr(t)}${s.atomic.postfix}`),i,s):this.doWriteFile(t,i,s)}async canWriteFileAtomic(t){try{const i=this.toFilePath(t),{symbolicLink:s}=await hi.stat(i);if(s)return!1}catch{}return!0}async doWriteFileAtomic(t,i,s,r){const n=new ct;try{n.add(await this.createResourceLock(t)),n.add(await this.createResourceLock(i)),await this.doWriteFile(i,s,r,!0);try{await this.rename(i,t,{overwrite:!0})}catch(o){try{await this.delete(i,{recursive:!1,useTrash:!1,atomic:!1})}catch{}throw o}}finally{n.dispose()}}async doWriteFile(t,i,s,r){let n;try{const o=this.toFilePath(t);if(!s.create||!s.overwrite){if(await Ce.exists(o)){if(!s.overwrite)throw lr(m(2054,null),ee.FileExists)}else if(!s.create)throw lr(m(2055,null),ee.FileNotFound)}if(n=await this.open(t,{create:!0,unlock:s.unlock},r),await this.write(n,0,i,0,i.byteLength),o.endsWith(".cursor/mcp.json")&&!he)try{await Vr.chmod(o,384),this.logService.trace(`Set secure permissions on MCP config file: ${o}`)}catch(a){this.logService.error(`Failed to set secure permissions on MCP config file: ${o}`,a)}}catch(o){throw await this.toFileSystemProviderWriteError(t,o)}finally{typeof n=="number"&&await this.close(n)}}static{this.canFlush=!0}static configureFlushOnWrite(t){eu.canFlush=t}async open(t,i,s){const r=this.toFilePath(t);let n;Lo(i)&&!s&&(n=await this.createResourceLock(t));let o;try{if(Lo(i)&&i.unlock)try{const{stat:a}=await hi.stat(r);a.mode&128||await Vr.chmod(r,a.mode|128)}catch(a){a.code!=="ENOENT"&&this.logService.trace(a)}if(he&&Lo(i))try{o=await Ce.open(r,"r+"),await Ce.ftruncate(o,0)}catch(a){if(a.code!=="ENOENT"&&this.logService.trace(a),typeof o=="number"){try{await Ce.close(o)}catch(c){this.logService.trace(c)}o=void 0}}typeof o!="number"&&(o=await Ce.open(r,Lo(i)?"w":"r"))}catch(a){throw n?.dispose(),Lo(i)?await this.toFileSystemProviderWriteError(t,a):this.toFileSystemProviderError(a)}if(this.mapHandleToPos.set(o,0),Lo(i)&&this.writeHandles.set(o,t),n){const a=this.mapHandleToLock.get(o);this.traceLock(`[Disk FileSystemProvider]: open() - storing lock for handle ${o} (${r})`),this.mapHandleToLock.set(o,n),a&&(this.traceLock(`[Disk FileSystemProvider]: open() - disposing a previous lock that was still stored on same handle ${o} (${r})`),a.dispose())}return o}async close(t){const i=this.mapHandleToLock.get(t);try{if(this.mapHandleToPos.delete(t),this.writeHandles.delete(t)&&eu.canFlush)try{await Ce.fdatasync(t)}catch(s){eu.configureFlushOnWrite(!1),this.logService.error(s)}return await Ce.close(t)}catch(s){throw this.toFileSystemProviderError(s)}finally{i&&(this.mapHandleToLock.get(t)===i&&(this.traceLock(`[Disk FileSystemProvider]: close() - resource lock removed from handle-lock map ${t}`),this.mapHandleToLock.delete(t)),this.traceLock(`[Disk FileSystemProvider]: close() - disposing lock for handle ${t}`),i.dispose())}}async read(t,i,s,r,n){const o=this.normalizePos(t,i);let a=null;try{a=(await Ce.read(t,s,r,n,o)).bytesRead}catch(c){throw this.toFileSystemProviderError(c)}finally{this.updatePos(t,o,a)}return a}normalizePos(t,i){return i===this.mapHandleToPos.get(t)?null:i}updatePos(t,i,s){const r=this.mapHandleToPos.get(t);typeof r=="number"&&(typeof i=="number"||(typeof s=="number"?this.mapHandleToPos.set(t,r+s):this.mapHandleToPos.delete(t)))}async write(t,i,s,r,n){return hR(()=>this.doWrite(t,i,s,r,n),100,3)}async doWrite(t,i,s,r,n){const o=this.normalizePos(t,i);let a=null;try{a=(await Ce.write(t,s,r,n,o)).bytesWritten}catch(c){throw await this.toFileSystemProviderWriteError(this.writeHandles.get(t),c)}finally{this.updatePos(t,o,a)}return a}async mkdir(t){try{await Vr.mkdir(this.toFilePath(t))}catch(i){throw this.toFileSystemProviderError(i)}}async delete(t,i){try{const s=this.toFilePath(t);if(i.recursive){let r;i?.atomic!==!1&&i.atomic.postfix&&(r=W(Vt(s),`${ut(s)}${i.atomic.postfix}`)),await Ce.rm(s,Po.MOVE,r)}else try{await Vr.unlink(s)}catch(r){if(r.code==="EPERM"||r.code==="EISDIR"){let n=!1;try{const{stat:o,symbolicLink:a}=await hi.stat(s);n=o.isDirectory()&&!a}catch{}if(n)await Vr.rmdir(s);else throw r}else throw r}}catch(s){throw this.toFileSystemProviderError(s)}}async rename(t,i,s){const r=this.toFilePath(t),n=this.toFilePath(i);if(r!==n)try{await this.validateMoveCopy(t,i,"move",s.overwrite),await Ce.rename(r,n)}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(m(2056,null,ut(r),ut(Vt(n)),o.toString()))),this.toFileSystemProviderError(o)}}async copy(t,i,s){const r=this.toFilePath(t),n=this.toFilePath(i);if(r!==n)try{await this.validateMoveCopy(t,i,"copy",s.overwrite),await Ce.copy(r,n,{preserveSymlinks:!0})}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(m(2057,null,ut(r),ut(Vt(n)),o.toString()))),this.toFileSystemProviderError(o)}}async validateMoveCopy(t,i,s,r){const n=this.toFilePath(t),o=this.toFilePath(i);let a=!1;if(!!(this.capabilities&1024)||(a=Cu(n,o,!0)),a){if(s==="copy")throw lr(m(2058,null),ee.FileExists);if(s==="move")return}const l=await this.statIgnoreError(t);if(!l)throw lr(m(2059,null),ee.FileNotFound);const u=await this.statIgnoreError(i);if(u){if(!r)throw lr(m(2060,null),ee.FileExists);(l.type&Pi.File)!==0&&(u.type&Pi.File)!==0||await this.delete(i,{recursive:!0,useTrash:!1,atomic:!1})}}async cloneFile(t,i){return this.doCloneFile(t,i,!1)}async doCloneFile(t,i,s){const r=this.toFilePath(t),n=this.toFilePath(i),o=!!(this.capabilities&1024);if(Cu(r,n,!o))return;const a=new ct;try{a.add(await this.createResourceLock(t)),a.add(await this.createResourceLock(i)),s&&await Vr.mkdir(Vt(n),{recursive:!0}),await Vr.copyFile(r,n)}catch(c){if(c.code==="ENOENT"&&!s)return this.doCloneFile(t,i,!0);throw this.toFileSystemProviderError(c)}finally{a.dispose()}}createUniversalWatcher(t,i,s){return new B5(r=>t(r),r=>i(r),s)}createNonRecursiveWatcher(t,i,s){return new Q5(r=>t(r),r=>i(r),s)}toFileSystemProviderError(t){if(t instanceof mh)return t;let i=t,s;switch(t.code){case"ENOENT":s=ee.FileNotFound;break;case"EISDIR":s=ee.FileIsADirectory;break;case"ENOTDIR":s=ee.FileNotADirectory;break;case"EEXIST":s=ee.FileExists;break;case"EPERM":case"EACCES":s=ee.NoPermissions;break;case"ERR_UNC_HOST_NOT_ALLOWED":i=`${t.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`,s=ee.Unknown;break;default:s=ee.Unknown}return lr(i,s)}async toFileSystemProviderWriteError(t,i){let s=this.toFileSystemProviderError(i);if(t&&s.code===ee.NoPermissions)try{const{stat:r}=await hi.stat(this.toFilePath(t));r.mode&128||(s=lr(i,ee.FileWriteLocked))}catch(r){this.logService.trace(r)}return s}}}});function BO(e){return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")+"T"+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}var J5,X5,Zh,zO,qO,GO,QO=y({"out-build/vs/base/common/date.js"(){"use strict";ue(),K(),J5=60,X5=J5*60,Zh=X5*24,zO=Zh*7,qO=Zh*30,GO=Zh*365}});function JO(e,t){return Y5(e["inspect-extensions"],e["inspect-brk-extensions"],5870,t,e.debugId,e.extensionEnvironment)}function Y5(e,t,i,s,r,n){const a=Number(t||e)||(s?null:i),c=a?!!t:!1;let l;if(n)try{l=JSON.parse(n)}catch{}return{port:a,break:c,debugId:r,env:l}}var p1,Te,XO=y({"out-build/vs/platform/environment/common/environmentService.js"(){"use strict";QO(),h1(),xe(),de(),ss(),_t(),Y(),p1=/^([^.]+\..+)[:=](.+)$/,Te=class{get appRoot(){return Vt(Ct.asFileUri("").fsPath)}get userHome(){return b.file(this.paths.homeDir)}get userDataPath(){return this.paths.userDataDir}get appSettingsHome(){return b.file(W(this.userDataPath,"User"))}get tmpDir(){return b.file(this.paths.tmpDir)}get cacheHome(){return b.file(this.userDataPath)}get stateResource(){return oe(this.appSettingsHome,"globalStorage","storage.json")}get userRoamingDataHome(){return this.appSettingsHome.with({scheme:Z.vscodeUserData})}get userDataSyncHome(){return oe(this.appSettingsHome,"sync")}get logsHome(){if(!this.args.logsPath){const e=BO(new Date).replace(/-|:|\.\d+Z$/g,"");this.args.logsPath=W(this.userDataPath,"logs",e)}return b.file(this.args.logsPath)}get sync(){return this.args.sync}get machineSettingsResource(){return oe(b.file(W(this.userDataPath,"Machine")),"settings.json")}get workspaceStorageHome(){return oe(this.appSettingsHome,"workspaceStorage")}get localHistoryHome(){return oe(this.appSettingsHome,"History")}get keyboardLayoutResource(){return oe(this.userRoamingDataHome,"keyboardLayout.json")}get argvResource(){const e=$i.VSCODE_PORTABLE;return e?b.file(W(e,"argv.json")):oe(this.userHome,this.productService.dataFolderName,"argv.json")}get isExtensionDevelopment(){return!!this.args.extensionDevelopmentPath}get untitledWorkspacesHome(){return b.file(W(this.userDataPath,"Workspaces"))}get builtinExtensionsPath(){const e=this.args["builtin-extensions-dir"];return e?Ys(e):Wi(W(Ct.asFileUri("").fsPath,"..","extensions"))}get extensionsDownloadLocation(){const e=this.args["extensions-download-dir"];return e?b.file(Ys(e)):b.file(W(this.userDataPath,"CachedExtensionVSIXs"))}get extensionsPath(){const e=this.args["extensions-dir"];if(e)return Ys(e);const t=$i.VSCODE_EXTENSIONS;if(t)return t;const i=$i.VSCODE_PORTABLE;return i?W(i,"extensions"):oe(this.userHome,this.productService.dataFolderName,"extensions").fsPath}get extensionDevelopmentLocationURI(){const e=this.args.extensionDevelopmentPath;if(Array.isArray(e))return e.map(t=>/^[^:/?#]+?:\/\//.test(t)?b.parse(t):b.file(Wi(t)))}get extensionDevelopmentKind(){return this.args.extensionDevelopmentKind?.map(e=>e==="ui"||e==="workspace"||e==="web"?e:"workspace")}get extensionTestsLocationURI(){const e=this.args.extensionTestsPath;if(e)return/^[^:/?#]+?:\/\//.test(e)?b.parse(e):b.file(Wi(e))}get disableExtensions(){if(this.args["disable-extensions"])return!0;const e=this.args["disable-extension"];if(e){if(typeof e=="string")return[e];if(Array.isArray(e)&&e.length>0)return e}return!1}get debugExtensionHost(){return JO(this.args,this.isBuilt)}get debugRenderer(){return!!this.args.debugRenderer}get isBuilt(){return!$i.VSCODE_DEV}get verbose(){return!!this.args.verbose}get logLevel(){return this.args.log?.find(e=>!p1.test(e))}get extensionLogLevel(){const e=[];for(const t of this.args.log||[]){const i=p1.exec(t);i&&i[1]&&i[2]&&e.push([i[1],i[2]])}return e.length?e:void 0}get serviceMachineIdResource(){return oe(b.file(this.userDataPath),"machineid")}get crashReporterId(){return this.args["crash-reporter-id"]}get crashReporterDirectory(){return this.args["crash-reporter-directory"]}get disableTelemetry(){return!!this.args["disable-telemetry"]}get disableWorkspaceTrust(){return!!this.args["disable-workspace-trust"]}get useInMemorySecretStorage(){return!!this.args["use-inmemory-secretstorage"]}get policyFile(){if(this.args["__enable-file-policy"]){const e=$i.VSCODE_PORTABLE;return e?b.file(W(e,"policy.json")):oe(this.userHome,this.productService.dataFolderName,"policy.json")}}get editSessionId(){return this.args.editSessionId}get continueOn(){return this.args.continueOn}set continueOn(e){this.args.continueOn=e}get args(){return this._args}constructor(e,t,i){this._args=e,this.paths=t,this.productService=i}},__decorate([Oe],Te.prototype,"appRoot",null),__decorate([Oe],Te.prototype,"userHome",null),__decorate([Oe],Te.prototype,"userDataPath",null),__decorate([Oe],Te.prototype,"appSettingsHome",null),__decorate([Oe],Te.prototype,"tmpDir",null),__decorate([Oe],Te.prototype,"cacheHome",null),__decorate([Oe],Te.prototype,"stateResource",null),__decorate([Oe],Te.prototype,"userRoamingDataHome",null),__decorate([Oe],Te.prototype,"userDataSyncHome",null),__decorate([Oe],Te.prototype,"sync",null),__decorate([Oe],Te.prototype,"machineSettingsResource",null),__decorate([Oe],Te.prototype,"workspaceStorageHome",null),__decorate([Oe],Te.prototype,"localHistoryHome",null),__decorate([Oe],Te.prototype,"keyboardLayoutResource",null),__decorate([Oe],Te.prototype,"argvResource",null),__decorate([Oe],Te.prototype,"isExtensionDevelopment",null),__decorate([Oe],Te.prototype,"untitledWorkspacesHome",null),__decorate([Oe],Te.prototype,"builtinExtensionsPath",null),__decorate([Oe],Te.prototype,"extensionsPath",null),__decorate([Oe],Te.prototype,"extensionDevelopmentLocationURI",null),__decorate([Oe],Te.prototype,"extensionDevelopmentKind",null),__decorate([Oe],Te.prototype,"extensionTestsLocationURI",null),__decorate([Oe],Te.prototype,"debugExtensionHost",null),__decorate([Oe],Te.prototype,"logLevel",null),__decorate([Oe],Te.prototype,"extensionLogLevel",null),__decorate([Oe],Te.prototype,"serviceMachineIdResource",null),__decorate([Oe],Te.prototype,"disableTelemetry",null),__decorate([Oe],Te.prototype,"disableWorkspaceTrust",null),__decorate([Oe],Te.prototype,"useInMemorySecretStorage",null),__decorate([Oe],Te.prototype,"policyFile",null)}});import*as Z5 from"os";import*as jr from"path";function YO(e,t){const i=ZO(e,t),s=[i];return jr.isAbsolute(i)||s.unshift(K5),jr.resolve(...s)}function ZO(e,t){process.env.VSCODE_DEV&&(t="code-oss-dev");const i=process.env.VSCODE_PORTABLE;if(i)return jr.join(i,"user-data");let s=process.env.VSCODE_APPDATA;if(s)return jr.join(s,t);const r=e["user-data-dir"];if(r)return r;switch(process.platform){case"win32":if(s=process.env.APPDATA,!s){const n=process.env.USERPROFILE;if(typeof n!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");s=jr.join(n,"AppData","Roaming")}break;case"darwin":s=jr.join(Z5.homedir(),"Library","Application Support");break;case"linux":s=process.env.XDG_CONFIG_HOME||jr.join(Z5.homedir(),".config");break;default:throw new Error("Platform not supported")}return jr.join(s,t)}var K5,KO=y({"out-build/vs/platform/environment/node/userDataPath.js"(){"use strict";K5=process.env.VSCODE_CWD||process.cwd()}});import{homedir as eT,tmpdir as tT}from"os";function iT(e,t){return Y5(e["inspect-ptyhost"],e["inspect-brk-ptyhost"],5877,t,e.extensionEnvironment)}var ex,tx=y({"out-build/vs/platform/environment/node/environmentService.js"(){"use strict";XO(),KO(),ex=class extends Te{constructor(e,t){super(e,{homeDir:eT(),tmpDir:tT(),userDataDir:YO(e,t.nameShort)},t)}}}}),m1,Kc,Kh,Go=y({"out-build/vs/server/node/serverEnvironmentService.js"(){"use strict";ue(),tx(),th(),se(),ui(),h1(),m1={host:{type:"string",cat:"o",args:"ip-address",description:m(2667,null)},port:{type:"string",cat:"o",args:"port | port range",description:m(2668,null)},"socket-path":{type:"string",cat:"o",args:"path",description:m(2669,null)},"server-base-path":{type:"string",cat:"o",args:"path",description:m(2670,null)},"connection-token":{type:"string",cat:"o",args:"token",deprecates:["connectionToken"],description:m(2671,null)},"connection-token-file":{type:"string",cat:"o",args:"path",deprecates:["connection-secret","connectionTokenFile"],description:m(2672,null)},"without-connection-token":{type:"boolean",cat:"o",description:m(2673,null)},"disable-websocket-compression":{type:"boolean"},"print-startup-performance":{type:"boolean"},"print-ip-address":{type:"boolean"},"accept-server-license-terms":{type:"boolean",cat:"o",description:m(2674,null)},"server-data-dir":{type:"string",cat:"o",description:m(2675,null)},"telemetry-level":{type:"string",cat:"o",args:"level",description:m(2676,null)},"user-data-dir":Je["user-data-dir"],"enable-smoke-test-driver":Je["enable-smoke-test-driver"],"disable-telemetry":Je["disable-telemetry"],"disable-workspace-trust":Je["disable-workspace-trust"],"file-watcher-polling":{type:"string",deprecates:["fileWatcherPolling"]},log:Je.log,logsPath:Je.logsPath,"force-disable-user-env":Je["force-disable-user-env"],folder:{type:"string",deprecationMessage:"No longer supported. Folder needs to be provided in the browser URL or with `default-folder`."},workspace:{type:"string",deprecationMessage:"No longer supported. Workspace needs to be provided in the browser URL or with `default-workspace`."},"default-folder":{type:"string",description:m(2677,null)},"default-workspace":{type:"string",description:m(2678,null)},"enable-sync":{type:"boolean"},"github-auth":{type:"string"},"use-test-resolver":{type:"boolean"},"extensions-dir":Je["extensions-dir"],"extensions-download-dir":Je["extensions-download-dir"],"builtin-extensions-dir":Je["builtin-extensions-dir"],"install-extension":Je["install-extension"],"install-builtin-extension":Je["install-builtin-extension"],"update-extensions":Je["update-extensions"],"uninstall-extension":Je["uninstall-extension"],"list-extensions":Je["list-extensions"],"locate-extension":Je["locate-extension"],"show-versions":Je["show-versions"],category:Je.category,force:Je.force,"do-not-sync":Je["do-not-sync"],"do-not-include-pack-dependencies":Je["do-not-include-pack-dependencies"],"pre-release":Je["pre-release"],"start-server":{type:"boolean",cat:"e",description:m(2679,null)},"enable-remote-auto-shutdown":{type:"boolean"},"remote-auto-shutdown-without-delay":{type:"boolean"},"use-host-proxy":{type:"boolean"},"without-browser-env-var":{type:"boolean"},help:Je.help,version:Je.version,"locate-shell-integration-path":Je["locate-shell-integration-path"],compatibility:{type:"string"},_:Je._},Kc=xi,Kh=class extends ex{get userRoamingDataHome(){return this.appSettingsHome}get args(){return super.args}},__decorate([Oe],Kh.prototype,"userRoamingDataHome",null)}}),ix,g1,el,sx=y({"out-build/vs/platform/extensionManagement/common/extensionManagementCLI.js"(){"use strict";Ft(),ve(),xe(),_t(),In(),Y(),ue(),ki(),ls(),cs(),ix=e=>m(1932,null,e),g1=m(1933,null,"anysphere.csharp"),el=class{constructor(t,i,s){this.logger=t,this.extensionManagementService=i,this.extensionGalleryService=s}get location(){}async listExtensions(t,i,s){let r=await this.extensionManagementService.getInstalled(1,s);const n=_4.map(a=>a.toLowerCase());if(i&&i!==""){if(n.indexOf(i.toLowerCase())<0){this.logger.info("Invalid category please enter a valid category. To list valid categories run --category without a category specified");return}r=r.filter(a=>a.manifest.categories?a.manifest.categories.map(l=>l.toLowerCase()).indexOf(i.toLowerCase())>-1:!1)}else if(i===""){this.logger.info("Possible Categories: "),n.forEach(a=>{this.logger.info(a)});return}this.location&&this.logger.info(m(1934,null,this.location)),r=r.sort((a,c)=>a.identifier.id.localeCompare(c.identifier.id));let o;for(const a of r)o!==a.identifier.id&&(o=a.identifier.id,this.logger.info(t?`${o}@${a.manifest.version}`:o))}async installExtensions(t,i,s,r){const n=[];try{t.length&&this.logger.info(this.location?m(1935,null,this.location):m(1936,null));const o=[],a=[],c=(u,h,f)=>{a.push({id:u,version:h!=="prerelease"?h:void 0,installOptions:{...s,isBuiltin:f,installPreReleaseVersion:h==="prerelease"||s.installPreReleaseVersion}})};for(const u of t)if(u instanceof b)o.push({vsix:u,installOptions:s});else{const[h,f]=mg(u);c(h,f,!1)}for(const u of i)if(u instanceof b)o.push({vsix:u,installOptions:{...s,isBuiltin:!0,donotIncludePackAndDependencies:!0}});else{const[h,f]=mg(u);c(h,f,!0)}const l=await this.extensionManagementService.getInstalled(void 0,s.profileLocation);if(o.length&&await Promise.all(o.map(async({vsix:u,installOptions:h})=>{try{await this.installVSIX(u,h,r,l)}catch(f){this.logger.error(f),n.push(u.toString())}})),a.length){const u=await this.installGalleryExtensions(a,l,r);n.push(...u)}}catch(o){throw this.logger.error(m(1937,null,le(o))),o}if(n.length)throw new Error(m(1938,null,n.join(", ")))}async updateExtensions(t){const i=await this.extensionManagementService.getInstalled(1,t),s=[];for(const a of i)a.identifier.uuid&&s.push({...a.identifier,preRelease:a.preRelease});this.logger.trace(m(1939,null,s.length));const r=await this.extensionGalleryService.getExtensions(s,{compatible:!0},Me.None),n=[];for(const a of r)for(const c of i)ge(c.identifier,a.identifier)&&hh(a.version,c.manifest.version)&&n.push({extension:a,options:{operation:3,installPreReleaseVersion:c.preRelease,profileLocation:t,isApplicationScoped:c.isApplicationScoped}});if(!n.length){this.logger.info(m(1940,null));return}this.logger.info(m(1941,null,n.map(a=>a.extension.identifier.id).join(", ")));const o=await this.extensionManagementService.installGalleryExtensions(n);for(const a of o)a.error?this.logger.error(m(1942,null,a.identifier.id,le(a.error))):this.logger.info(m(1943,null,a.identifier.id,a.local?.manifest.version))}async installGalleryExtensions(t,i,s){if(t=t.filter(a=>{const{id:c,version:l,installOptions:u}=a,h=i.find(f=>ge(f.identifier,{id:c}));if(h){if(!s&&(!l||l==="prerelease"&&h.preRelease))return this.logger.info(m(1944,null,c,h.manifest.version,c)),!1;if(l&&h.manifest.version===l)return this.logger.info(m(1945,null,`${c}@${l}`)),!1;h.preRelease&&l!=="prerelease"&&(u.preRelease=!1)}return!0}),!t.length)return[];const r=[],n=[],o=await this.getGalleryExtensions(t);if(await Promise.all(t.map(async({id:a,version:c,installOptions:l})=>{const u=o.get(a.toLowerCase());if(!u){this.logger.error(`${ix(c?`${a}@${c}`:a)}
${g1}`),r.push(a);return}try{const f=await this.extensionGalleryService.getManifest(u,Me.None);if(f&&!this.validateExtensionKind(f))return}catch(f){this.logger.error(f.message||f.stack||f),r.push(a);return}const h=i.find(f=>ge(f.identifier,u.identifier));if(h){if(u.version===h.manifest.version){this.logger.info(m(1946,null,c?`${a}@${c}`:a));return}this.logger.info(m(1947,null,a,u.version))}l.isBuiltin?this.logger.info(c?m(1948,null,a,c):m(1949,null,a)):this.logger.info(c?m(1950,null,a,c):m(1951,null,a)),n.push({extension:u,options:{...l,installGivenVersion:!!c,isApplicationScoped:l.isApplicationScoped||h?.isApplicationScoped}})})),n.length){const a=await this.extensionManagementService.installGalleryExtensions(n);for(const c of a)c.error?(this.logger.error(m(1952,null,c.identifier.id,le(c.error))),r.push(c.identifier.id)):this.logger.info(m(1953,null,c.identifier.id,c.local?.manifest.version))}return r}async installVSIX(t,i,s,r){const n=await this.extensionManagementService.getManifest(t);if(!n)throw new Error("Invalid vsix");if(await this.validateVSIX(n,s,i.profileLocation,r))try{await this.extensionManagementService.install(t,{...i,installGivenVersion:!0}),this.logger.info(m(1954,null,Nr(t)))}catch(a){if(xr(a))this.logger.info(m(1955,null,Nr(t)));else throw a}}async getGalleryExtensions(t){const i=new Map,s=t.some(n=>n.installOptions.installPreReleaseVersion),r=await this.extensionManagementService.getTargetPlatform();for(const n of t)if(nh.test(n.id)){const o=await this.extensionGalleryService.getExtensions([{...n,preRelease:s}],{targetPlatform:r},Me.None);for(const a of o)i.set(a.identifier.id.toLowerCase(),a),i.set(n.id.toLowerCase(),a)}return i}validateExtensionKind(t){return!0}async validateVSIX(t,i,s,r){if(!i){const n={id:Ai(t.publisher,t.name)},o=r.find(a=>ge(n,a.identifier)&&hh(a.manifest.version,t.version));if(o)return this.logger.info(m(1956,null,o.identifier.id,o.manifest.version,t.version)),!1}return this.validateExtensionKind(t)}async uninstallExtensions(t,i,s){const r=async o=>{if(o instanceof b){const a=await this.extensionManagementService.getManifest(o);return gg(a.publisher,a.name)}return o},n=[];for(const o of t){const a=await r(o),l=(await this.extensionManagementService.getInstalled(void 0,s)).filter(u=>ge(u.identifier,{id:a}));if(!l.length)throw new Error(`${this.notInstalled(a)}
${g1}`);if(l.some(u=>u.type===0)){this.logger.info(m(1957,null,a));return}if(!i&&l.some(u=>u.isBuiltin)){this.logger.info(m(1958,null,a));return}this.logger.info(m(1959,null,a));for(const u of l)await this.extensionManagementService.uninstall(u,{profileLocation:s}),n.push(u);this.location?this.logger.info(m(1960,null,a,this.location)):this.logger.info(m(1961,null,a))}}async locateExtension(t){const i=await this.extensionManagementService.getInstalled();t.forEach(s=>{i.forEach(r=>{if(r.identifier.id===s&&r.location.scheme===Z.file){this.logger.info(r.location.fsPath);return}})})}notInstalled(t){return this.location?m(1962,null,t,this.location):m(1963,null,t)}},el=__decorate([__param(1,oh),__param(2,os)],el)}});function sT(e){return e.tags.find(t=>t.startsWith("lp-"))?.split("lp-")[1]}var ed,td,v1=y({"out-build/vs/platform/languagePacks/common/languagePacks.js"(){"use strict";Ft(),V(),K(),ue(),ki(),se(),ed=te("languagePackService"),td=class extends G{constructor(t){super(),this.extensionGalleryService=t}async getAvailableLanguages(){const t=new Is;setTimeout(()=>t.cancel(),1e3);let i;try{i=await this.extensionGalleryService.query({text:'category:"language packs"',pageSize:20},t.token)}catch{return[]}const r=i.firstPage.filter(n=>n.properties.localizedLanguages?.length&&n.tags.some(o=>o.startsWith("lp-"))).map(n=>{const o=n.properties.localizedLanguages?.[0],a=sT(n);return{...this.createQuickPickItem(a,o,n),extensionId:n.identifier.id,galleryExtension:n}});return r.push(this.createQuickPickItem("en","English")),r}createQuickPickItem(t,i,s){const r=i??t;let n;if(r!==t&&(n=`(${t})`),t.toLowerCase()===Ei.toLowerCase()&&(n??="",n+=m(2069,null)),s?.installCount){n??="";const o=s.installCount;let a;o>1e6?a=`${Math.floor(o/1e5)/10}M`:o>1e3?a=`${Math.floor(o/1e3)}K`:a=String(o),n+=` $(cloud-download) ${a}`}return{id:t,label:r,description:n}}},td=__decorate([__param(0,os)],td)}});import*as rT from"fs";import{createHash as nT}from"crypto";function oT(e){if(typeof e.languageId!="string"||!Array.isArray(e.translations)||e.translations.length===0)return!1;for(const t of e.translations)if(typeof t.id!="string"||typeof t.path!="string")return!1;return!(e.languageName&&typeof e.languageName!="string"||e.localizedLanguageName&&typeof e.localizedLanguageName!="string")}var tl,id,rx=y({"out-build/vs/platform/languagePacks/node/languagePacks.js"(){"use strict";kt(),Ne(),V(),xe(),de(),di(),ui(),ki(),ls(),Ie(),v1(),Y(),tl=class extends td{constructor(t,i,s,r){super(s),this.extensionManagementService=t,this.logService=r,this.cache=this._register(new id(i,r)),this.extensionManagementService.registerParticipant({postInstall:async n=>this.postInstallExtension(n),postUninstall:async n=>this.postUninstallExtension(n)})}async getBuiltInExtensionTranslationsUri(t,i){const r=(await this.cache.getLanguagePacks())[i];if(!r){this.logService.warn(`No language pack found for ${i}`);return}const n=r.translations[t];return n?b.file(n):void 0}async getInstalledLanguages(){const t=await this.cache.getLanguagePacks(),i=Object.keys(t).map(s=>{const r=t[s];return{...this.createQuickPickItem(s,r.label),extensionId:r.extensions[0].extensionIdentifier.id}});return i.push(this.createQuickPickItem("en","English")),i.sort((s,r)=>s.label.localeCompare(r.label)),i}async postInstallExtension(t){t&&t.manifest&&t.manifest.contributes&&t.manifest.contributes.localizations&&t.manifest.contributes.localizations.length&&(this.logService.info("Adding language packs from the extension",t.identifier.id),await this.update())}async postUninstallExtension(t){const i=await this.cache.getLanguagePacks();Object.keys(i).some(s=>i[s]&&i[s].extensions.some(r=>ge(r.extensionIdentifier,t.identifier)))&&(this.logService.info("Removing language packs from the extension",t.identifier.id),await this.update())}async update(){const[t,i]=await Promise.all([this.cache.getLanguagePacks(),this.extensionManagementService.getInstalled()]),s=await this.cache.update(i);return!Pr(Object.keys(t),Object.keys(s))}},tl=__decorate([__param(0,oh),__param(1,Vi),__param(2,os),__param(3,fe)],tl),id=class extends G{constructor(t,i){super(),this.logService=i,this.languagePacks={},this.languagePacksFilePath=W(t.userDataPath,"languagepacks.json"),this.languagePacksFileLimiter=new vo}getLanguagePacks(){return this.languagePacksFileLimiter.size||!this.initializedCache?this.withLanguagePacks().then(()=>this.languagePacks):Promise.resolve(this.languagePacks)}update(t){return this.withLanguagePacks(i=>{Object.keys(i).forEach(s=>delete i[s]),this.createLanguagePacksFromExtensions(i,...t)}).then(()=>this.languagePacks)}createLanguagePacksFromExtensions(t,...i){for(const s of i)s&&s.manifest&&s.manifest.contributes&&s.manifest.contributes.localizations&&s.manifest.contributes.localizations.length&&this.createLanguagePacksFromExtension(t,s);Object.keys(t).forEach(s=>this.updateHash(t[s]))}createLanguagePacksFromExtension(t,i){const s=i.identifier,r=i.manifest.contributes&&i.manifest.contributes.localizations?i.manifest.contributes.localizations:[];for(const n of r)if(i.location.scheme===Z.file&&oT(n)){let o=t[n.languageId];o||(o={hash:"",extensions:[],translations:{},label:n.localizedLanguageName??n.languageName},t[n.languageId]=o);const a=o.extensions.filter(c=>ge(c.extensionIdentifier,s))[0];a?a.version=i.manifest.version:o.extensions.push({extensionIdentifier:s,version:i.manifest.version});for(const c of n.translations)o.translations[c.id]=W(i.location.fsPath,c.path)}}updateHash(t){if(t){const i=nT("md5");for(const s of t.extensions)i.update(s.extensionIdentifier.uuid||s.extensionIdentifier.id).update(s.version);t.hash=i.digest("hex")}}withLanguagePacks(t=()=>null){return this.languagePacksFileLimiter.queue(()=>{let i=null;return rT.promises.readFile(this.languagePacksFilePath,"utf8").then(void 0,s=>s.code==="ENOENT"?Promise.resolve("{}"):Promise.reject(s)).then(s=>{try{return JSON.parse(s)}catch{return{}}}).then(s=>(i=t(s),s)).then(s=>{for(const n of Object.keys(s))s[n]||delete s[n];this.languagePacks=s,this.initializedCache=!0;const r=JSON.stringify(this.languagePacks);return this.logService.debug("Writing language packs",r),Ce.writeFile(this.languagePacksFilePath,r)}).then(()=>i,s=>this.logService.error(s))})}},id=__decorate([__param(0,Vi),__param(1,fe)],id)}}),sd,aT=y({"out-build/vs/platform/download/common/downloadService.js"(){"use strict";Ft(),xe(),Xe(),ko(),sd=class{constructor(t,i){this.requestService=t,this.fileService=i}async download(t,i,s=Me.None){if(t.scheme===Z.file||t.scheme===Z.vscodeRemote){await this.fileService.copy(t,i);return}const r={type:"GET",url:t.toString(!0)},n=await this.requestService.request(r,s);if(n.res.statusCode===200)await this.fileService.writeFile(i,n.stream);else{const o=await Pn(n);throw new Error(`Expected 200, got back ${n.res.statusCode} instead.
${o}`)}}},sd=__decorate([__param(0,ar),__param(1,ht)],sd)}});function nx(e,t,i){t instanceof ze||(t=new ze(t,[],!!i)),ox.push([e,t])}var ox,ax,cx=y({"out-build/vs/platform/instantiation/common/extensions.js"(){"use strict";Mu(),ox=[],(function(e){e[e.Eager=0]="Eager",e[e.Delayed=1]="Delayed"})(ax||(ax={}))}}),lx,rd,Qo,ux,cT=y({"out-build/vs/base/common/skipList.js"(){"use strict";rd=class{constructor(e,t,i){this.level=e,this.key=t,this.value=i,this.forward=[]}},Qo=void 0,ux=class Ia{constructor(t,i=2**16){this.comparator=t,this[lx]="SkipList",this._level=0,this._size=0,this._maxLevel=Math.max(1,Math.log2(i)|0),this._header=new rd(this._maxLevel,Qo,Qo)}get size(){return this._size}clear(){this._header=new rd(this._maxLevel,Qo,Qo),this._size=0}has(t){return!!Ia._search(this,t,this.comparator)}get(t){return Ia._search(this,t,this.comparator)?.value}set(t,i){return Ia._insert(this,t,i,this.comparator)&&(this._size+=1),this}delete(t){const i=Ia._delete(this,t,this.comparator);return i&&(this._size-=1),i}forEach(t,i){let s=this._header.forward[0];for(;s;)t.call(i,s.value,s.key,this),s=s.forward[0]}[(lx=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*entries(){let t=this._header.forward[0];for(;t;)yield[t.key,t.value],t=t.forward[0]}*keys(){let t=this._header.forward[0];for(;t;)yield t.key,t=t.forward[0]}*values(){let t=this._header.forward[0];for(;t;)yield t.value,t=t.forward[0]}toString(){let t="[SkipList]:",i=this._header.forward[0];for(;i;)t+=`node(${i.key}, ${i.value}, lvl:${i.level})`,i=i.forward[0];return t}static _search(t,i,s){let r=t._header;for(let n=t._level-1;n>=0;n--)for(;r.forward[n]&&s(r.forward[n].key,i)<0;)r=r.forward[n];if(r=r.forward[0],r&&s(r.key,i)===0)return r}static _insert(t,i,s,r){const n=[];let o=t._header;for(let a=t._level-1;a>=0;a--){for(;o.forward[a]&&r(o.forward[a].key,i)<0;)o=o.forward[a];n[a]=o}if(o=o.forward[0],o&&r(o.key,i)===0)return o.value=s,!1;{const a=Ia._randomLevel(t);if(a>t._level){for(let c=t._level;c<a;c++)n[c]=t._header;t._level=a}o=new rd(a,i,s);for(let c=0;c<a;c++)o.forward[c]=n[c].forward[c],n[c].forward[c]=o;return!0}}static _randomLevel(t,i=.5){let s=1;for(;Math.random()<i&&s<t._maxLevel;)s+=1;return s}static _delete(t,i,s){const r=[];let n=t._header;for(let o=t._level-1;o>=0;o--){for(;n.forward[o]&&s(n.forward[o].key,i)<0;)n=n.forward[o];r[o]=n}if(n=n.forward[0],!n||s(n.key,i)!==0)return!1;for(let o=0;o<t._level&&r[o].forward[o]===n;o++)r[o].forward[o]=n.forward[o];for(;t._level>0&&t._header.forward[t._level-1]===Qo;)t._level-=1;return!0}}}}),y1,Jo,hx=y({"out-build/vs/platform/uriIdentity/common/uriIdentityService.js"(){"use strict";qi(),cx(),Xe(),_t(),cT(),ie(),V(),y1=class Iy{static{this._clock=0}constructor(t){this.uri=t,this.time=Iy._clock++}touch(){return this.time=Iy._clock++,this}},Jo=class{constructor(t){this._fileService=t,this._dispooables=new ct,this._limit=2**16;const i=new Map,s=r=>{let n=i.get(r.scheme);return n===void 0&&(n=t.hasProvider(r)&&!this._fileService.hasCapability(r,1024),i.set(r.scheme,n)),n};this._dispooables.add(z.any(t.onDidChangeFileSystemProviderRegistrations,t.onDidChangeFileSystemProviderCapabilities)(r=>{i.delete(r.scheme)})),this.extUri=new Za(s),this._canonicalUris=new ux((r,n)=>this.extUri.compare(r,n,!0),this._limit)}dispose(){this._dispooables.dispose(),this._canonicalUris.clear()}asCanonicalUri(t){this._fileService.hasProvider(t)&&(t=Q_(t));const i=this._canonicalUris.get(t);return i?i.touch().uri.with({fragment:t.fragment}):(this._canonicalUris.set(t,new y1(t)),this._checkTrim(),t)}_checkTrim(){if(this._canonicalUris.size<this._limit)return;const t=[...this._canonicalUris.entries()].sort((s,r)=>s[1].time<r[1].time?1:s[1].time>r[1].time?-1:0);y1._clock=0,this._canonicalUris.clear();const i=this._limit*.5;for(let s=0;s<i;s++)this._canonicalUris.set(t[s][0],t[s][1].touch())}},Jo=__decorate([__param(0,ht)],Jo),nx(Ot,Jo,1)}});async function dx(e,t){if(!Rt.commit||!await Ce.exists(_1))return{userLocale:"en",osLocale:"en",resolvedLanguage:"en",defaultMessagesFile:_1,locale:"en",availableLanguages:{}};const i=`${e}||${t}`;let s=b1.get(i);return s||(s=By({userLocale:e,osLocale:e,commit:Rt.commit,userDataPath:t,nlsMetadataPath:w1}),b1.set(i,s)),s}var w1,_1,b1,fx=y({"out-build/vs/server/node/remoteLanguagePacks.js"(){"use strict";xe(),de(),zy(),di(),Oo(),w1=W(Ct.asFileUri("").fsPath),_1=W(w1,"nls.messages.json"),b1=new Map}}),il,px=y({"out-build/vs/server/node/extensionsScannerService.js"(){"use strict";_t(),Y(),ui(),Fo(),Bc(),Xe(),se(),Ie(),mi(),qi(),Qi(),fx(),il=class extends Uh{constructor(t,i,s,r,n,o,a,c){super(b.file(n.builtinExtensionsPath),b.file(n.extensionsPath),oe(n.userHome,".cursor-dev","extensions","control.json"),t.defaultProfile,t,i,s,r,n,o,a,c),this.nativeEnvironmentService=n}async getTranslations(t){const i=await dx(t,this.nativeEnvironmentService.userDataPath);if(i.languagePack)try{const s=await this.fileService.readFile(b.file(i.languagePack.translationsConfigFile));return JSON.parse(s.value.toString())}catch{}return Object.create(null)}},il=__decorate([__param(0,Gi),__param(1,As),__param(2,ht),__param(3,fe),__param(4,Vi),__param(5,Et),__param(6,Ot),__param(7,wn)],il)}}),mx,gx,lT=y({"out-build/vs/platform/state/node/state.js"(){"use strict";se(),mx=te("stateReadService"),gx=te("stateService")}}),vx,yx,nd,wx,uT=y({"out-build/vs/platform/state/node/stateService.js"(){"use strict";Ne(),Fe(),V(),_e(),ui(),Xe(),Ie(),(function(e){e[e.IMMEDIATE=0]="IMMEDIATE",e[e.DELAYED=1]="DELAYED"})(vx||(vx={})),yx=class extends G{constructor(e,t,i,s){super(),this.storagePath=e,this.logService=i,this.fileService=s,this.storage=Object.create(null),this.lastSavedStorageContents="",this.initializing=void 0,this.closing=void 0,this.flushDelayer=this._register(new Sn(t===0?0:100))}init(){return this.initializing||(this.initializing=this.doInit()),this.initializing}async doInit(){try{this.lastSavedStorageContents=(await this.fileService.readFile(this.storagePath)).value.toString(),this.storage=JSON.parse(this.lastSavedStorageContents)}catch(e){e.fileOperationResult!==1&&this.logService.error(e)}}getItem(e,t){const i=this.storage[e];return It(i)?t:i}setItem(e,t){this.setItems([{key:e,data:t}])}setItems(e){let t=!1;for(const{key:i,data:s}of e)this.storage[i]!==s&&(It(s)?Ui(this.storage[i])||(this.storage[i]=void 0,t=!0):(this.storage[i]=s,t=!0));t&&this.save()}removeItem(e){Ui(this.storage[e])||(this.storage[e]=void 0,this.save())}async save(){if(!this.closing)return this.flushDelayer.trigger(()=>this.doSave())}async doSave(){if(!this.initializing)return;await this.initializing;const e=JSON.stringify(this.storage,null,4);if(e!==this.lastSavedStorageContents)try{await this.fileService.writeFile(this.storagePath,O.fromString(e),{atomic:{postfix:".vsctmp"}}),this.lastSavedStorageContents=e}catch(t){this.logService.error(t)}}async close(){return this.closing||(this.closing=this.flushDelayer.trigger(()=>this.doSave(),0)),this.closing}},nd=class extends G{constructor(t,i,s,r){super(),this.fileStorage=this._register(new yx(i.stateResource,t,s,r))}async init(){await this.fileStorage.init()}getItem(t,i){return this.fileStorage.getItem(t,i)}},nd=__decorate([__param(1,xi),__param(2,fe),__param(3,ht)],nd),wx=class extends nd{setItem(e,t){this.fileStorage.setItem(e,t)}setItems(e){this.fileStorage.setItems(e)}removeItem(e){this.fileStorage.removeItem(e)}close(){return this.fileStorage.close()}}}}),od,Xo,ad,cd,sl,_x=y({"out-build/vs/platform/userDataProfile/node/userDataProfile.js"(){"use strict";Y(),ui(),Xe(),Ie(),lT(),qi(),Qi(),_e(),uT(),ad=od=class extends _h{constructor(t,i,s,r,n){super(s,r,i,n),this.stateReadonlyService=t,this.nativeEnvironmentService=s}getStoredProfiles(){return this.stateReadonlyService.getItem(od.PROFILES_KEY,[]).map(i=>({...i,location:ye(i.location)?this.uriIdentityService.extUri.joinPath(this.profilesHome,i.location):b.revive(i.location)}))}getStoredProfileAssociations(){return this.stateReadonlyService.getItem(od.PROFILE_ASSOCIATIONS_KEY,{})}getDefaultProfileExtensionsLocation(){return this.uriIdentityService.extUri.joinPath(b.file(this.nativeEnvironmentService.extensionsPath).with({scheme:this.profilesHome.scheme}),"extensions.json")}},ad=od=__decorate([__param(0,mx),__param(1,Ot),__param(2,Vi),__param(3,ht),__param(4,fe)],ad),cd=Xo=class extends ad{constructor(t,i,s,r,n){super(t,i,s,r,n),this.stateService=t}saveStoredProfiles(t){t.length?this.stateService.setItem(Xo.PROFILES_KEY,t.map(i=>({...i,location:this.uriIdentityService.extUri.basename(i.location)}))):this.stateService.removeItem(Xo.PROFILES_KEY)}saveStoredProfileAssociations(t){t.emptyWindows||t.workspaces?this.stateService.setItem(Xo.PROFILE_ASSOCIATIONS_KEY,t):this.stateService.removeItem(Xo.PROFILE_ASSOCIATIONS_KEY)}},cd=Xo=__decorate([__param(0,gx),__param(1,Ot),__param(2,Vi),__param(3,ht),__param(4,fe)],cd),sl=class extends cd{constructor(t,i,s,r){super(new wx(0,i,r,s),t,i,s,r)}async init(){return await this.stateService.init(),super.init()}},sl=__decorate([__param(0,Ot),__param(1,Vi),__param(2,ht),__param(3,fe)],sl)}}),rl,bx=y({"out-build/vs/platform/extensionManagement/node/extensionsProfileScannerService.js"(){"use strict";Ie(),Qi(),qi(),Fo(),Xe(),ui(),Y(),rl=class extends Mh{constructor(t,i,s,r,n){super(b.file(t.extensionsPath),i,s,r,n)}},rl=__decorate([__param(0,Vi),__param(1,ht),__param(2,Gi),__param(3,Ot),__param(4,fe)],rl)}}),E1,Ex=y({"out-build/vs/platform/log/common/logService.js"(){"use strict";V(),Ie(),E1=class extends G{constructor(e,t=[]){super(),this.logger=new wb([e,...t]),this._register(e.onDidChangeLogLevel(i=>this.setLevel(i)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}flush(){this.logger.flush()}}}});async function hT(e,t,i,s,r){try{const n=await import("@vscode/spdlog");n.setFlushOn(hr.Trace);const o=await n.createAsyncRotatingLogger(e,t,i,s);return r?o.clearFormatters():o.setPattern("%Y-%m-%d %H:%M:%S.%e [%l] %v"),o}catch(n){console.error(n)}return null}function Sx(e,t,i){switch(t){case j.Trace:e.trace(i);break;case j.Debug:e.debug(i);break;case j.Info:e.info(i);break;case j.Warning:e.warn(i);break;case j.Error:e.error(i);break;case j.Off:break;default:throw new Error(`Invalid log level ${t}`)}}function xx(e,t){switch(t){case j.Trace:e.setLevel(hr.Trace);break;case j.Debug:e.setLevel(hr.Debug);break;case j.Info:e.setLevel(hr.Info);break;case j.Warning:e.setLevel(hr.Warning);break;case j.Error:e.setLevel(hr.Error);break;case j.Off:e.setLevel(hr.Off);break;default:throw new Error(`Invalid log level ${t}`)}}var hr,kx,dT=y({"out-build/vs/platform/log/node/spdlogLog.js"(){"use strict";Xe(),Ie(),(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"})(hr||(hr={})),kx=class extends vb{constructor(e,t,i,s,r){super(),this.buffer=[],this.setLevel(r),this._loggerCreationPromise=this._createSpdLogLogger(e,t,i,s),this._register(this.onDidChangeLogLevel(n=>{this._logger&&xx(this._logger,n)}))}async _createSpdLogLogger(e,t,i,s){const r=i?6:1,n=30/r*Rn.MB,o=await hT(e,t,n,r,s);if(o){this._logger=o,xx(this._logger,this.getLevel());for(const{level:a,message:c}of this.buffer)Sx(this._logger,a,c);this.buffer=[]}}log(e,t){this._logger?Sx(this._logger,e,t):this.getLevel()<=e&&this.buffer.push({level:e,message:t})}flush(){this._logger?this.flushLogger():this._loggerCreationPromise.then(()=>this.flushLogger())}dispose(){this._logger?this.disposeLogger():this._loggerCreationPromise.then(()=>this.disposeLogger()),super.dispose()}flushLogger(){this._logger&&this._logger.flush()}disposeLogger(){this._logger&&(this._logger.drop(),this._logger=void 0)}}}}),S1,Px=y({"out-build/vs/platform/log/node/loggerService.js"(){"use strict";Bt(),Ie(),dT(),S1=class extends _b{doCreateLogger(e,t,i){return new kx(Ve(),e.fsPath,!i?.donotRotate,!!i?.donotUseFormatters,t)}}}});function fT(){return process.uncHostAllowlist}function x1(e){if(process.platform!=="win32")return;const t=fT();if(t)if(typeof e=="string")t.add(e.toLowerCase());else for(const i of pT(e))x1(i)}function pT(e){const t=new Set;if(Array.isArray(e))for(const i of e)typeof i=="string"&&t.add(i);return Array.from(t)}function Ix(){process.platform==="win32"&&(process.restrictUNCAccess=!1)}var Cx=y({"out-build/vs/base/node/unc.js"(){"use strict"}});function mT(e){return e.type==="gallery"}function gT(e){return e.type===1||e.type===0}var Dx,nl,Rx=y({"out-build/vs/platform/extensionManagement/common/allowedExtensionsService.js"(){"use strict";V(),Y(),ue(),ki(),mi(),Ah(),ci(),_e(),ie(),Dx=/^(?<version>\d+\.\d+\.\d+(-.*)?)(@(?<platform>.+))?$/,nl=class extends G{get allowedExtensionsConfigValue(){return this._allowedExtensionsConfigValue}constructor(t,i){super(),this.configurationService=i,this._onDidChangeAllowedExtensions=this._register(new R),this.onDidChangeAllowedExtensionsConfigValue=this._onDidChangeAllowedExtensions.event,this.publisherOrgs=t.extensionPublisherOrgs?.map(s=>s.toLowerCase())??[],this._allowedExtensionsConfigValue=this.getAllowedExtensionsValue(),this._register(this.configurationService.onDidChangeConfiguration(s=>{s.affectsConfiguration(ah)&&(this._allowedExtensionsConfigValue=this.getAllowedExtensionsValue(),this._onDidChangeAllowedExtensions.fire())}))}getAllowedExtensionsValue(){const t=this.configurationService.getValue(ah);if(!ft(t)||Array.isArray(t))return;const i=Object.entries(t).map(([s,r])=>[s.toLowerCase(),r]);if(!(i.length===1&&i[0][0]==="*"&&i[0][1]===!0))return Object.fromEntries(i)}isAllowed(t){if(!this._allowedExtensionsConfigValue)return!0;let i,s,r,n,o,a;mT(t)?(i=t.identifier.id.toLowerCase(),s=t.version,n=t.properties.isPreReleaseVersion,o=t.publisher.toLowerCase(),a=t.publisherDisplayName.toLowerCase(),r=t.properties.targetPlatform):gT(t)?(i=t.identifier.id.toLowerCase(),s=t.manifest.version,n=t.preRelease,o=t.manifest.publisher.toLowerCase(),a=t.publisherDisplayName?.toLowerCase(),r=t.targetPlatform):(i=t.id.toLowerCase(),s=t.version??"*",r=t.targetPlatform??"universal",n=t.prerelease??!1,o=t.id.substring(0,t.id.indexOf(".")).toLowerCase(),a=t.publisherDisplayName?.toLowerCase());const c=b.parse(`command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify({query:`@id:${ah}`}))}`).toString(),l=this._allowedExtensionsConfigValue[i],u=new Ls(m(1925,null,c));if(!Ui(l))return is(l)?l?!0:u:l==="stable"&&n?new Ls(m(1926,null,c)):s!=="*"&&Array.isArray(l)&&!l.some(p=>{const g=Dx.exec(p);if(g&&g.groups){const{platform:v,version:w}=g.groups;return!(w!==s||r!=="universal"&&v&&r!==v)}return!1})?new Ls(m(1927,null,s,c)):!0;const h=a&&this.publisherOrgs.includes(a)?a:o,f=this._allowedExtensionsConfigValue[h];return Ui(f)?this._allowedExtensionsConfigValue["*"]===!0?!0:u:is(f)?f?!0:new Ls(m(1928,null,h,c)):f==="stable"&&n?new Ls(m(1929,null,h,c)):!0}},nl=__decorate([__param(0,Et),__param(1,Zt)],nl)}});function vT(e){if(!e?.serviceUrl)return null;const t=[{id:`${e.serviceUrl}/extensionquery`,type:"ExtensionQueryService"},{id:`${e.serviceUrl}/vscode/{publisher}/{name}/latest`,type:"ExtensionLatestVersionUriTemplate"},{id:`${e.serviceUrl}/publishers/{publisher}/extensions/{name}/{version}/stats?statType={statTypeName}`,type:"ExtensionStatisticsUriTemplate"},{id:`${e.serviceUrl}/itemName/{publisher}.{name}/version/{version}/statType/{statTypeValue}/vscodewebextension`,type:"WebExtensionStatisticsUriTemplate"}];return e.publisherUrl&&t.push({id:`${e.publisherUrl}/{publisher}`,type:"PublisherViewUriTemplate"}),e.itemUrl&&(t.push({id:`${e.itemUrl}/?itemName={publisher}.{name}`,type:"ExtensionDetailsViewUriTemplate"}),t.push({id:`${e.itemUrl}/?itemName={publisher}.{name}&ssr=false#review-details`,type:"ExtensionRatingViewUriTemplate"})),e.resourceUrlTemplate&&t.push({id:e.resourceUrlTemplate,type:"ExtensionResourceUriTemplate"}),{version:"",resources:t,capabilities:{extensionQuery:{filtering:[{name:"Tag",value:1},{name:"ExtensionId",value:4},{name:"Category",value:5},{name:"ExtensionName",value:7},{name:"Target",value:8},{name:"Featured",value:9},{name:"SearchText",value:10},{name:"ExcludeWithFlags",value:12}],sorting:[{name:"NoneOrRelevance",value:0},{name:"LastUpdatedDate",value:1},{name:"Title",value:2},{name:"PublisherName",value:3},{name:"InstallCount",value:4},{name:"AverageRating",value:6},{name:"PublishedDate",value:10},{name:"WeightedRating",value:12}],flags:[{name:"None",value:0},{name:"IncludeVersions",value:1},{name:"IncludeFiles",value:2},{name:"IncludeCategoryAndTags",value:4},{name:"IncludeSharedAccounts",value:8},{name:"IncludeVersionProperties",value:16},{name:"ExcludeNonValidated",value:32},{name:"IncludeInstallationTargets",value:64},{name:"IncludeAssetUri",value:128},{name:"IncludeStatistics",value:256},{name:"IncludeLatestVersionOnly",value:512},{name:"Unpublished",value:4096},{name:"IncludeNameConflictInfo",value:32768},{name:"IncludeLatestPrereleaseAndStableVersionOnly",value:65536}]},signing:{allRepositorySigned:!0,allPublicRepositorySigned:!0}}}}var ol,Lx=y({"out-build/vs/platform/extensionManagement/common/extensionGalleryManifestService.js"(){"use strict";ie(),V(),mi(),ol=class extends G{constructor(t){super(),this.productService=t,this.onDidChangeExtensionGalleryManifest=z.None}isEnabled(){return!!this.productService.extensionsGallery?.serviceUrl}async getExtensionGalleryManifest(){return vT(this.productService.extensionsGallery)}},ol=__decorate([__param(0,Et)],ol)}});function Ax(e){setTimeout(()=>process.exit(e),0)}async function yT(e,t,i){if(e.help){const r=Rt.serverApplicationName+(he?".cmd":"");console.log(pL(Rt.nameLong,r,Rt.version,i,{noInputFiles:!0,noPipe:!0}));return}if(e.version){console.log(mL(Rt.version,Rt.commit));return}const s=new Nx(e,t);try{await s.run(),Ax(0)}catch{Ax(1)}finally{s.dispose()}}var Nx,wT=y({"out-build/vs/server/node/remoteExtensionHostAgentCli.js"(){"use strict";vm(),Ie(),Mu(),oE(),ci(),ko(),VE(),Mr(),ji(),ki(),Ng(),t5(),Zg(),n5(),Oo(),V(),l5(),Yh(),xe(),Xe(),mi(),Go(),sx(),v1(),rx(),ve(),Y(),de(),ss(),aT(),Mg(),qi(),hx(),th(),K(),Bc(),px(),Qi(),Fo(),qu(),_x(),bx(),Ex(),Px(),ue(),Cx(),Rx(),Eh(),Lx(),Nx=class extends G{constructor(e,t){super(),this.args=e,this.remoteDataFolder=t,this.registerListeners()}registerListeners(){process.once("exit",()=>this.dispose())}async run(){const e=await this.initServices();await e.invokeFunction(async t=>{const i=t.get(Zt),s=t.get(fe);he&&(i.getValue("security.restrictUNCAccess")===!1?Ix():x1(i.getValue("security.allowedUNCHosts")));try{await this.doRun(e.createInstance(el,new yb(s.getLevel(),!1)))}catch(r){throw s.error(r),console.error(le(r)),r}})}async initServices(){const e=new Iu,t={_serviceBrand:void 0,...Rt};e.set(Et,t);const i=new Kh(this.args,t);e.set(Kc,i);const s=new S1(Dm(i),i.logsHome);e.set(rc,s);const r=new E1(this._register(s.createLogger("remoteCLI",{name:m(2666,null)})));e.set(fe,r),r.trace(`Remote configuration data at ${this.remoteDataFolder}`),r.trace("process arguments:",this.args);const n=this._register(new Gc(r));e.set(ht,n),n.registerProvider(Z.file,this._register(new Zc(r)));const o=new Jo(n);e.set(Ot,o);const a=this._register(new sl(o,i,n,r));e.set(Gi,a);const c=this._register(new Gm(a.defaultProfile.settingsResource,n,new zu,r));return e.set(Zt,c),await Promise.all([c.initialize(),a.init()]),e.set(ar,new ze(bc,["remote"])),e.set(Dh,new ze(sd)),e.set(fi,XE),e.set(An,new ze(ol)),e.set(os,new ze(Mc)),e.set(As,new ze(rl)),e.set(Nn,new ze(il)),e.set($h,new ze(zc)),e.set(cr,new ze(nl)),e.set(jh,new ze(qc)),e.set(ed,new ze(tl)),new t1(e)}async doRun(e){if(this.args["list-extensions"])return e.listExtensions(!!this.args["show-versions"],this.args.category);if(this.args["install-extension"]||this.args["install-builtin-extension"]){const t={isMachineScoped:!!this.args["do-not-sync"],installPreReleaseVersion:!!this.args["pre-release"],donotIncludePackAndDependencies:!!this.args["do-not-include-pack-dependencies"]};return e.installExtensions(this.asExtensionIdOrVSIX(this.args["install-extension"]||[]),this.asExtensionIdOrVSIX(this.args["install-builtin-extension"]||[]),t,!!this.args.force)}else{if(this.args["uninstall-extension"])return e.uninstallExtensions(this.asExtensionIdOrVSIX(this.args["uninstall-extension"]),!!this.args.force);if(this.args["update-extensions"])return e.updateExtensions();if(this.args["locate-extension"])return e.locateExtension(this.args["locate-extension"])}}asExtensionIdOrVSIX(e){return e.map(t=>/\.vsix$/i.test(t)?b.file(mn(t)?t:W(Js(),t)):t)}}}});import{constants as _T,promises as bT}from"fs";import{createInterface as ET}from"readline";async function ST(e){if(Li||he)return;let t;for(const i of["/etc/os-release","/usr/lib/os-release","/etc/lsb-release"])try{t=await bT.open(i,_T.R_OK);break}catch{}if(!t){e("Unable to retrieve release information from known identifier paths.");return}try{const i=new Set(["ID","DISTRIB_ID","ID_LIKE","VERSION_ID","DISTRIB_RELEASE"]),s={id:"unknown"};for await(const r of ET({input:t.createReadStream(),crlfDelay:1/0})){if(!r.includes("="))continue;const n=r.split("=")[0].toUpperCase().trim();if(i.has(n)){const o=r.split("=")[1].replace(/"/g,"").toLowerCase().trim();n==="ID"||n==="DISTRIB_ID"?s.id=o:n==="ID_LIKE"?s.id_like=o:(n==="VERSION_ID"||n==="DISTRIB_RELEASE")&&(s.version_id=o)}}return s}catch(i){e(i)}}var xT=y({"out-build/vs/base/node/osReleaseInfo.js"(){"use strict";K()}});import*as kT from"net";function PT(e,t,i,s=1){let r=!1;return new Promise(n=>{const o=setTimeout(()=>{if(!r)return r=!0,n(0)},i);k1(e,t,s,a=>{if(!r)return r=!0,clearTimeout(o),n(a)})})}function k1(e,t,i,s){if(t===0)return s(0);const r=new kT.Socket;r.once("connect",()=>(Ox(r),k1(e+i,t-1,i,s))),r.once("data",()=>{}),r.once("error",n=>(Ox(r),n.code!=="ECONNREFUSED"?k1(e+i,t-1,i,s):s(e))),r.connect(e,"127.0.0.1")}function Ox(e){try{e.removeAllListeners("connect"),e.removeAllListeners("error"),e.end(),e.destroy(),e.unref()}catch(t){console.error(t)}}var IT=y({"out-build/vs/base/node/ports.js"(){"use strict"}});function Br(){return ld||(ld=O.alloc(0)),ld}function Tx(e){switch(e){case 0:return"None";case 1:return"Regular";case 2:return"Control";case 3:return"Ack";case 5:return"Disconnect";case 6:return"ReplayRequest";case 7:return"PauseWriting";case 8:return"ResumeWriting";case 9:return"KeepAlive"}}var Mx,P1,Fx,ld,I1,Ux,$x,fs,C1,D1,Yo,Wx,Hx,Vx,jx,Bx=y({"out-build/vs/base/parts/ipc/common/ipc.net.js"(){"use strict";Fe(),ie(),V(),zo(),(function(e){e.Created="created",e.Read="read",e.Write="write",e.Open="open",e.Error="error",e.Close="close",e.BrowserWebSocketBlobReceived="browserWebSocketBlobReceived",e.NodeEndReceived="nodeEndReceived",e.NodeEndSent="nodeEndSent",e.NodeDrainBegin="nodeDrainBegin",e.NodeDrainEnd="nodeDrainEnd",e.zlibInflateError="zlibInflateError",e.zlibInflateData="zlibInflateData",e.zlibInflateInitialWrite="zlibInflateInitialWrite",e.zlibInflateInitialFlushFired="zlibInflateInitialFlushFired",e.zlibInflateWrite="zlibInflateWrite",e.zlibInflateFlushFired="zlibInflateFlushFired",e.zlibDeflateError="zlibDeflateError",e.zlibDeflateData="zlibDeflateData",e.zlibDeflateWrite="zlibDeflateWrite",e.zlibDeflateFlushFired="zlibDeflateFlushFired",e.WebSocketNodeSocketWrite="webSocketNodeSocketWrite",e.WebSocketNodeSocketPeekedHeader="webSocketNodeSocketPeekedHeader",e.WebSocketNodeSocketReadHeader="webSocketNodeSocketReadHeader",e.WebSocketNodeSocketReadData="webSocketNodeSocketReadData",e.WebSocketNodeSocketUnmaskedData="webSocketNodeSocketUnmaskedData",e.WebSocketNodeSocketDrainBegin="webSocketNodeSocketDrainBegin",e.WebSocketNodeSocketDrainEnd="webSocketNodeSocketDrainEnd",e.ProtocolHeaderRead="protocolHeaderRead",e.ProtocolMessageRead="protocolMessageRead",e.ProtocolHeaderWrite="protocolHeaderWrite",e.ProtocolMessageWrite="protocolMessageWrite",e.ProtocolWrite="protocolWrite"})(Mx||(Mx={})),(function(e){e.enableDiagnostics=!1,e.records=[];const t=new WeakMap;let i=0;function s(n,o){if(!t.has(n)){const a=String(++i);t.set(n,a)}return t.get(n)}function r(n,o,a,c){if(!e.enableDiagnostics)return;const l=s(n,o);if(c instanceof O||c instanceof Uint8Array||c instanceof ArrayBuffer||ArrayBuffer.isView(c)){const u=O.alloc(c.byteLength);u.set(c),e.records.push({timestamp:Date.now(),id:l,label:o,type:a,buff:u})}else e.records.push({timestamp:Date.now(),id:l,label:o,type:a,data:c})}e.traceSocketEvent=r})(P1||(P1={})),(function(e){e[e.NodeSocketCloseEvent=0]="NodeSocketCloseEvent",e[e.WebSocketCloseEvent=1]="WebSocketCloseEvent"})(Fx||(Fx={})),ld=null,I1=class{get byteLength(){return this._totalLength}constructor(){this._chunks=[],this._totalLength=0}acceptChunk(e){this._chunks.push(e),this._totalLength+=e.byteLength}read(e){return this._read(e,!0)}peek(e){return this._read(e,!1)}_read(e,t){if(e===0)return Br();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const n=this._chunks[0];return t&&(this._chunks.shift(),this._totalLength-=e),n}if(this._chunks[0].byteLength>e){const n=this._chunks[0].slice(0,e);return t&&(this._chunks[0]=this._chunks[0].slice(e),this._totalLength-=e),n}const i=O.alloc(e);let s=0,r=0;for(;e>0;){const n=this._chunks[r];if(n.byteLength>e){const o=n.slice(0,e);i.set(o,s),s+=e,t&&(this._chunks[r]=n.slice(e),this._totalLength-=e),e-=e}else i.set(n,s),s+=n.byteLength,t?(this._chunks.shift(),this._totalLength-=n.byteLength):r++,e-=n.byteLength}return i}},(function(e){e[e.None=0]="None",e[e.Regular=1]="Regular",e[e.Control=2]="Control",e[e.Ack=3]="Ack",e[e.Disconnect=5]="Disconnect",e[e.ReplayRequest=6]="ReplayRequest",e[e.Pause=7]="Pause",e[e.Resume=8]="Resume",e[e.KeepAlive=9]="KeepAlive"})(Ux||(Ux={})),(function(e){e[e.HeaderLength=13]="HeaderLength",e[e.AcknowledgeTime=2e3]="AcknowledgeTime",e[e.TimeoutTime=2e4]="TimeoutTime",e[e.ReconnectionGraceTime=108e5]="ReconnectionGraceTime",e[e.ReconnectionShortGraceTime=3e5]="ReconnectionShortGraceTime",e[e.KeepAliveSendTime=5e3]="KeepAliveSendTime"})($x||($x={})),fs=class{constructor(e,t,i,s){this.type=e,this.id=t,this.ack=i,this.data=s,this.writtenTime=0}get size(){return this.data.byteLength}},C1=class extends G{constructor(e){super(),this._onMessage=this._register(new R),this.onMessage=this._onMessage.event,this._state={readHead:!0,readLen:13,messageType:0,id:0,ack:0},this._socket=e,this._isDisposed=!1,this._incomingData=new I1,this._register(this._socket.onData(t=>this.acceptChunk(t))),this.lastReadTime=Date.now()}acceptChunk(e){if(!(!e||e.byteLength===0))for(this.lastReadTime=Date.now(),this._incomingData.acceptChunk(e);this._incomingData.byteLength>=this._state.readLen;){const t=this._incomingData.read(this._state.readLen);if(this._state.readHead)this._state.readHead=!1,this._state.readLen=t.readUInt32BE(9),this._state.messageType=t.readUInt8(0),this._state.id=t.readUInt32BE(1),this._state.ack=t.readUInt32BE(5),this._socket.traceSocketEvent("protocolHeaderRead",{messageType:Tx(this._state.messageType),id:this._state.id,ack:this._state.ack,messageSize:this._state.readLen});else{const i=this._state.messageType,s=this._state.id,r=this._state.ack;if(this._state.readHead=!0,this._state.readLen=13,this._state.messageType=0,this._state.id=0,this._state.ack=0,this._socket.traceSocketEvent("protocolMessageRead",t),this._onMessage.fire(new fs(i,s,r,t)),this._isDisposed)break}}}readEntireBuffer(){return this._incomingData.read(this._incomingData.byteLength)}dispose(){this._isDisposed=!0,super.dispose()}},D1=class{constructor(e){this._writeNowTimeout=null,this._isDisposed=!1,this._isPaused=!1,this._socket=e,this._data=[],this._totalLength=0,this.lastWriteTime=0}dispose(){try{this.flush()}catch{}this._isDisposed=!0}drain(){return this.flush(),this._socket.drain()}flush(){this._writeNow()}pause(){this._isPaused=!0}resume(){this._isPaused=!1,this._scheduleWriting()}write(e){if(this._isDisposed)return;e.writtenTime=Date.now(),this.lastWriteTime=Date.now();const t=O.alloc(13);t.writeUInt8(e.type,0),t.writeUInt32BE(e.id,1),t.writeUInt32BE(e.ack,5),t.writeUInt32BE(e.data.byteLength,9),this._socket.traceSocketEvent("protocolHeaderWrite",{messageType:Tx(e.type),id:e.id,ack:e.ack,messageSize:e.data.byteLength}),this._socket.traceSocketEvent("protocolMessageWrite",e.data),this._writeSoon(t,e.data)}_bufferAdd(e,t){const i=this._totalLength===0;return this._data.push(e,t),this._totalLength+=e.byteLength+t.byteLength,i}_bufferTake(){const e=O.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e}_writeSoon(e,t){this._bufferAdd(e,t)&&this._scheduleWriting()}_scheduleWriting(){this._writeNowTimeout||(this._writeNowTimeout=setTimeout(()=>{this._writeNowTimeout=null,this._writeNow()}))}_writeNow(){if(this._totalLength===0||this._isPaused)return;const e=this._bufferTake();this._socket.traceSocketEvent("protocolWrite",{byteLength:e.byteLength}),this._socket.write(e)}},Yo=class{constructor(){this._hasListeners=!1,this._isDeliveringMessages=!1,this._bufferedMessages=[],this._emitter=new R({onWillAddFirstListener:()=>{this._hasListeners=!0,queueMicrotask(()=>this._deliverMessages())},onDidRemoveLastListener:()=>{this._hasListeners=!1}}),this.event=this._emitter.event}_deliverMessages(){if(!this._isDeliveringMessages){for(this._isDeliveringMessages=!0;this._hasListeners&&this._bufferedMessages.length>0;)this._emitter.fire(this._bufferedMessages.shift());this._isDeliveringMessages=!1}}fire(e){this._hasListeners?this._bufferedMessages.length>0?this._bufferedMessages.push(e):this._emitter.fire(e):this._bufferedMessages.push(e)}flushBuffer(){this._bufferedMessages=[]}},Wx=class{constructor(e){this.data=e,this.next=null}},Hx=class{constructor(){this._first=null,this._last=null}length(){let e=0,t=this._first;for(;t;)t=t.next,e++;return e}peek(){return this._first?this._first.data:null}toArray(){const e=[];let t=0,i=this._first;for(;i;)e[t++]=i.data,i=i.next;return e}pop(){if(this._first){if(this._first===this._last){this._first=null,this._last=null;return}this._first=this._first.next}}push(e){const t=new Wx(e);if(!this._first){this._first=t,this._last=t;return}this._last.next=t,this._last=t}},Vx=class js{static{this._HISTORY_LENGTH=10}static{this._INSTANCE=null}static getInstance(){return js._INSTANCE||(js._INSTANCE=new js),js._INSTANCE}constructor(){this.lastRuns=[];const t=Date.now();for(let i=0;i<js._HISTORY_LENGTH;i++)this.lastRuns[i]=t-1e3*i;setInterval(()=>{for(let i=js._HISTORY_LENGTH;i>=1;i--)this.lastRuns[i]=this.lastRuns[i-1];this.lastRuns[0]=Date.now()},1e3)}load(){const t=Date.now(),i=(1+js._HISTORY_LENGTH)*1e3;let s=0;for(let r=0;r<js._HISTORY_LENGTH;r++)t-this.lastRuns[r]<=i&&s++;return 1-s/js._HISTORY_LENGTH}hasHighLoad(){return this.load()>=.5}},jx=class{get unacknowledgedCount(){return this._outgoingMsgId-this._outgoingAckId}constructor(e){this._onControlMessage=new Yo,this.onControlMessage=this._onControlMessage.event,this._onMessage=new Yo,this.onMessage=this._onMessage.event,this._onDidDispose=new Yo,this.onDidDispose=this._onDidDispose.event,this._onSocketClose=new Yo,this.onSocketClose=this._onSocketClose.event,this._onSocketTimeout=new Yo,this.onSocketTimeout=this._onSocketTimeout.event,this._loadEstimator=e.loadEstimator??Vx.getInstance(),this._shouldSendKeepAlive=e.sendKeepAlive??!0,this._isReconnecting=!1,this._outgoingUnackMsg=new Hx,this._outgoingMsgId=0,this._outgoingAckId=0,this._outgoingAckTimeout=null,this._incomingMsgId=0,this._incomingAckId=0,this._incomingMsgLastTime=0,this._incomingAckTimeout=null,this._lastReplayRequestTime=0,this._lastSocketTimeoutTime=Date.now(),this._socketDisposables=new ct,this._socket=e.socket,this._socketWriter=this._socketDisposables.add(new D1(this._socket)),this._socketReader=this._socketDisposables.add(new C1(this._socket)),this._socketDisposables.add(this._socketReader.onMessage(t=>this._receiveMessage(t))),this._socketDisposables.add(this._socket.onClose(t=>this._onSocketClose.fire(t))),e.initialChunk&&this._socketReader.acceptChunk(e.initialChunk),this._shouldSendKeepAlive?this._keepAliveInterval=setInterval(()=>{this._sendKeepAlive()},5e3):this._keepAliveInterval=null}dispose(){this._outgoingAckTimeout&&(clearTimeout(this._outgoingAckTimeout),this._outgoingAckTimeout=null),this._incomingAckTimeout&&(clearTimeout(this._incomingAckTimeout),this._incomingAckTimeout=null),this._keepAliveInterval&&(clearInterval(this._keepAliveInterval),this._keepAliveInterval=null),this._socketDisposables.dispose()}drain(){return this._socketWriter.drain()}sendDisconnect(){if(!this._didSendDisconnect){this._didSendDisconnect=!0;const e=new fs(5,0,0,Br());this._socketWriter.write(e),this._socketWriter.flush()}}sendPause(){const e=new fs(7,0,0,Br());this._socketWriter.write(e)}sendResume(){const e=new fs(8,0,0,Br());this._socketWriter.write(e)}pauseSocketWriting(){this._socketWriter.pause()}getSocket(){return this._socket}getMillisSinceLastIncomingData(){return Date.now()-this._socketReader.lastReadTime}beginAcceptReconnection(e,t){this._isReconnecting=!0,this._socketDisposables.dispose(),this._socketDisposables=new ct,this._onControlMessage.flushBuffer(),this._onSocketClose.flushBuffer(),this._onSocketTimeout.flushBuffer(),this._socket.dispose(),this._lastReplayRequestTime=0,this._lastSocketTimeoutTime=Date.now(),this._socket=e,this._socketWriter=this._socketDisposables.add(new D1(this._socket)),this._socketReader=this._socketDisposables.add(new C1(this._socket)),this._socketDisposables.add(this._socketReader.onMessage(i=>this._receiveMessage(i))),this._socketDisposables.add(this._socket.onClose(i=>this._onSocketClose.fire(i))),this._socketReader.acceptChunk(t)}endAcceptReconnection(){this._isReconnecting=!1,this._incomingAckId=this._incomingMsgId;const e=new fs(3,0,this._incomingAckId,Br());this._socketWriter.write(e);const t=this._outgoingUnackMsg.toArray();for(let i=0,s=t.length;i<s;i++)this._socketWriter.write(t[i]);this._recvAckCheck()}acceptDisconnect(){this._onDidDispose.fire()}_receiveMessage(e){if(e.ack>this._outgoingAckId){this._outgoingAckId=e.ack;do{const t=this._outgoingUnackMsg.peek();if(t&&t.id<=e.ack)this._outgoingUnackMsg.pop();else break}while(!0)}switch(e.type){case 0:break;case 1:{if(e.id>this._incomingMsgId)if(e.id!==this._incomingMsgId+1){const t=Date.now();t-this._lastReplayRequestTime>1e4&&(this._lastReplayRequestTime=t,this._socketWriter.write(new fs(6,0,0,Br())))}else this._incomingMsgId=e.id,this._incomingMsgLastTime=Date.now(),this._sendAckCheck(),this._onMessage.fire(e.data);break}case 2:{this._onControlMessage.fire(e.data);break}case 3:break;case 5:{this._onDidDispose.fire();break}case 6:{const t=this._outgoingUnackMsg.toArray();for(let i=0,s=t.length;i<s;i++)this._socketWriter.write(t[i]);this._recvAckCheck();break}case 7:{this._socketWriter.pause();break}case 8:{this._socketWriter.resume();break}case 9:break}}readEntireBuffer(){return this._socketReader.readEntireBuffer()}flush(){this._socketWriter.flush()}send(e){const t=++this._outgoingMsgId;this._incomingAckId=this._incomingMsgId;const i=new fs(1,t,this._incomingAckId,e);this._outgoingUnackMsg.push(i),this._isReconnecting||(this._socketWriter.write(i),this._recvAckCheck())}sendControl(e){const t=new fs(2,0,0,e);this._socketWriter.write(t)}_sendAckCheck(){if(this._incomingMsgId<=this._incomingAckId||this._incomingAckTimeout)return;const e=Date.now()-this._incomingMsgLastTime;if(e>=2e3){this._sendAck();return}this._incomingAckTimeout=setTimeout(()=>{this._incomingAckTimeout=null,this._sendAckCheck()},2e3-e+5)}_recvAckCheck(){if(this._outgoingMsgId<=this._outgoingAckId||this._outgoingAckTimeout||this._isReconnecting)return;const e=this._outgoingUnackMsg.peek(),t=Date.now()-e.writtenTime,i=Date.now()-this._socketReader.lastReadTime,s=Date.now()-this._lastSocketTimeoutTime;if(t>=2e4&&i>=2e4&&s>=2e4&&!this._loadEstimator.hasHighLoad()){this._lastSocketTimeoutTime=Date.now(),this._onSocketTimeout.fire({unacknowledgedMsgCount:this._outgoingUnackMsg.length(),timeSinceOldestUnacknowledgedMsg:t,timeSinceLastReceivedSomeData:i});return}const r=Math.max(2e4-t,2e4-i,2e4-s,500);this._outgoingAckTimeout=setTimeout(()=>{this._outgoingAckTimeout=null,this._recvAckCheck()},r)}_sendAck(){if(this._incomingMsgId<=this._incomingAckId)return;this._incomingAckId=this._incomingMsgId;const e=new fs(3,0,this._incomingAckId,Br());this._socketWriter.write(e)}_sendKeepAlive(){this._incomingAckId=this._incomingMsgId;const e=new fs(9,0,this._incomingAckId,Br());this._socketWriter.write(e)}}}});import"crypto";import"net";import{tmpdir as CT}from"os";import{createDeflateRaw as DT,createInflateRaw as RT}from"zlib";function LT(e,t){if(t===0)return;const i=e.byteLength>>>2;for(let c=0;c<i;c++){const l=e.readUInt32BE(c*4);e.writeUInt32BE(l^t,c*4)}const s=i*4,r=e.byteLength-s,n=t>>>24&255,o=t>>>16&255,a=t>>>8&255;r>=1&&e.writeUInt8(e.readUInt8(s)^n,s),r>=2&&e.writeUInt8(e.readUInt8(s+1)^o,s+1),r>=3&&e.writeUInt8(e.readUInt8(s+2)^a,s+2)}function R1(){const e=Ve();if(process.platform==="win32")return`\\\\.\\pipe\\vscode-ipc-${e}-sock`;const t=process.platform!=="darwin"&&L1?L1:CT(),i=W(t,`vscode-ipc-${e}.sock`);return AT(i),i}function AT(e){const t=Zx[ln];typeof t=="number"&&e.length>=t&&console.warn(`WARNING: IPC handle "${e}" is longer than ${t} chars, try a shorter --user-data-dir`)}var zx,Zo,qx,Gx,Qx,Jx,Xx,Yx,L1,Zx,ud=y({"out-build/vs/base/parts/ipc/node/ipc.net.js"(){"use strict";Fe(),ve(),ie(),V(),de(),K(),Bt(),zo(),Bx(),zx=3e4,Zo=class{traceSocketEvent(e,t){P1.traceSocketEvent(this.socket,this.debugLabel,e,t)}constructor(e,t=""){this._canWrite=!0,this.debugLabel=t,this.socket=e,this.traceSocketEvent("created",{type:"NodeSocket"}),this._errorListener=s=>{if(this.traceSocketEvent("error",{code:s?.code,message:s?.message}),s){if(s.code==="EPIPE")return;Qt(s)}},this.socket.on("error",this._errorListener);let i;this._closeListener=s=>{this.traceSocketEvent("close",{hadError:s}),this._canWrite=!1,i&&clearTimeout(i)},this.socket.on("close",this._closeListener),this._endListener=()=>{this.traceSocketEvent("nodeEndReceived"),this._canWrite=!1,i=setTimeout(()=>e.destroy(),zx)},this.socket.on("end",this._endListener)}dispose(){this.socket.off("error",this._errorListener),this.socket.off("close",this._closeListener),this.socket.off("end",this._endListener),this.socket.destroy()}onData(e){const t=i=>{this.traceSocketEvent("read",i),e(O.wrap(i))};return this.socket.on("data",t),{dispose:()=>this.socket.off("data",t)}}onClose(e){const t=i=>{e({type:0,hadError:i,error:void 0})};return this.socket.on("close",t),{dispose:()=>this.socket.off("close",t)}}onEnd(e){const t=()=>{e()};return this.socket.on("end",t),{dispose:()=>this.socket.off("end",t)}}write(e){if(!(this.socket.destroyed||!this._canWrite))try{this.traceSocketEvent("write",e),this.socket.write(e.buffer,t=>{if(t){if(t.code==="EPIPE")return;Qt(t)}})}catch(t){if(t.code==="EPIPE")return;Qt(t)}}end(){this.traceSocketEvent("nodeEndSent"),this.socket.end()}drain(){return this.traceSocketEvent("nodeDrainBegin"),new Promise((e,t)=>{if(this.socket.bufferSize===0){this.traceSocketEvent("nodeDrainEnd"),e();return}const i=()=>{this.socket.off("close",i),this.socket.off("end",i),this.socket.off("error",i),this.socket.off("timeout",i),this.socket.off("drain",i),this.traceSocketEvent("nodeDrainEnd"),e()};this.socket.on("close",i),this.socket.on("end",i),this.socket.on("error",i),this.socket.on("timeout",i),this.socket.on("drain",i)})}},(function(e){e[e.MinHeaderByteSize=2]="MinHeaderByteSize",e[e.MaxWebSocketMessageLength=262144]="MaxWebSocketMessageLength"})(qx||(qx={})),(function(e){e[e.PeekHeader=1]="PeekHeader",e[e.ReadHeader=2]="ReadHeader",e[e.ReadBody=3]="ReadBody",e[e.Fin=4]="Fin"})(Gx||(Gx={})),Qx=class extends G{get permessageDeflate(){return this._flowManager.permessageDeflate}get recordedInflateBytes(){return this._flowManager.recordedInflateBytes}traceSocketEvent(e,t){this.socket.traceSocketEvent(e,t)}constructor(e,t,i,s){super(),this._onData=this._register(new R),this._onClose=this._register(new R),this._isEnded=!1,this._state={state:1,readLen:2,fin:0,compressed:!1,firstFrameOfMessage:!0,mask:0,opcode:0},this.socket=e,this.traceSocketEvent("created",{type:"WebSocketNodeSocket",permessageDeflate:t,inflateBytesLength:i?.byteLength||0,recordInflateBytes:s}),this._flowManager=this._register(new Jx(this,t,i,s,this._onData,(r,n)=>this._write(r,n))),this._register(this._flowManager.onError(r=>{console.error(r),Qt(r),this._onClose.fire({type:0,hadError:!0,error:r})})),this._incomingData=new I1,this._register(this.socket.onData(r=>this._acceptChunk(r))),this._register(this.socket.onClose(async r=>{this._flowManager.isProcessingReadQueue()&&await z.toPromise(this._flowManager.onDidFinishProcessingReadQueue),this._onClose.fire(r)}))}dispose(){this._flowManager.isProcessingWriteQueue()?this._register(this._flowManager.onDidFinishProcessingWriteQueue(()=>{this.dispose()})):(this.socket.dispose(),super.dispose())}onData(e){return this._onData.event(e)}onClose(e){return this._onClose.event(e)}onEnd(e){return this.socket.onEnd(e)}write(e){let t=0;for(;t<e.byteLength;)this._flowManager.writeMessage(e.slice(t,Math.min(t+262144,e.byteLength)),{compressed:!0,opcode:2}),t+=262144}_write(e,{compressed:t,opcode:i}){if(this._isEnded)return;this.traceSocketEvent("webSocketNodeSocketWrite",e);let s=2;e.byteLength<126?s+=0:e.byteLength<2**16?s+=2:s+=8;const r=O.alloc(s),n=t?64:0,o=i&15;if(r.writeUInt8(128|n|o,0),e.byteLength<126)r.writeUInt8(e.byteLength,1);else if(e.byteLength<2**16){r.writeUInt8(126,1);let a=1;r.writeUInt8(e.byteLength>>>8&255,++a),r.writeUInt8(e.byteLength>>>0&255,++a)}else{r.writeUInt8(127,1);let a=1;r.writeUInt8(0,++a),r.writeUInt8(0,++a),r.writeUInt8(0,++a),r.writeUInt8(0,++a),r.writeUInt8(e.byteLength>>>24&255,++a),r.writeUInt8(e.byteLength>>>16&255,++a),r.writeUInt8(e.byteLength>>>8&255,++a),r.writeUInt8(e.byteLength>>>0&255,++a)}this.socket.write(O.concat([r,e]))}end(){this._isEnded=!0,this.socket.end()}_acceptChunk(e){if(e.byteLength!==0){for(this._incomingData.acceptChunk(e);this._incomingData.byteLength>=this._state.readLen;)if(this._state.state===1){const t=this._incomingData.peek(this._state.readLen),i=t.readUInt8(0),s=(i&128)>>>7,r=(i&64)>>>6,n=i&15,o=t.readUInt8(1),a=(o&128)>>>7,c=o&127;this._state.state=2,this._state.readLen=2+(a?4:0)+(c===126?2:0)+(c===127?8:0),this._state.fin=s,this._state.firstFrameOfMessage&&(this._state.compressed=!!r),this._state.firstFrameOfMessage=!!s,this._state.mask=0,this._state.opcode=n,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{headerSize:this._state.readLen,compressed:this._state.compressed,fin:this._state.fin,opcode:this._state.opcode})}else if(this._state.state===2){const t=this._incomingData.read(this._state.readLen),i=t.readUInt8(1),s=(i&128)>>>7;let r=i&127,n=1;r===126?r=t.readUInt8(++n)*2**8+t.readUInt8(++n):r===127&&(r=t.readUInt8(++n)*0+t.readUInt8(++n)*0+t.readUInt8(++n)*0+t.readUInt8(++n)*0+t.readUInt8(++n)*2**24+t.readUInt8(++n)*2**16+t.readUInt8(++n)*2**8+t.readUInt8(++n));let o=0;s&&(o=t.readUInt8(++n)*2**24+t.readUInt8(++n)*2**16+t.readUInt8(++n)*2**8+t.readUInt8(++n)),this._state.state=3,this._state.readLen=r,this._state.mask=o,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{bodySize:this._state.readLen,compressed:this._state.compressed,fin:this._state.fin,mask:this._state.mask,opcode:this._state.opcode})}else if(this._state.state===3){const t=this._incomingData.read(this._state.readLen);this.traceSocketEvent("webSocketNodeSocketReadData",t),LT(t,this._state.mask),this.traceSocketEvent("webSocketNodeSocketUnmaskedData",t),this._state.state=1,this._state.readLen=2,this._state.mask=0,this._state.opcode<=2?this._flowManager.acceptFrame(t,this._state.compressed,!!this._state.fin):this._state.opcode===9&&this._flowManager.writeMessage(t,{compressed:!1,opcode:10})}}}async drain(){this.traceSocketEvent("webSocketNodeSocketDrainBegin"),this._flowManager.isProcessingWriteQueue()&&await z.toPromise(this._flowManager.onDidFinishProcessingWriteQueue),await this.socket.drain(),this.traceSocketEvent("webSocketNodeSocketDrainEnd")}},Jx=class extends G{get permessageDeflate(){return!!(this._zlibInflateStream&&this._zlibDeflateStream)}get recordedInflateBytes(){return this._zlibInflateStream?this._zlibInflateStream.recordedInflateBytes:O.alloc(0)}constructor(e,t,i,s,r,n){super(),this._tracer=e,this._onData=r,this._writeFn=n,this._onError=this._register(new R),this.onError=this._onError.event,this._writeQueue=[],this._readQueue=[],this._onDidFinishProcessingReadQueue=this._register(new R),this.onDidFinishProcessingReadQueue=this._onDidFinishProcessingReadQueue.event,this._onDidFinishProcessingWriteQueue=this._register(new R),this.onDidFinishProcessingWriteQueue=this._onDidFinishProcessingWriteQueue.event,this._isProcessingWriteQueue=!1,this._isProcessingReadQueue=!1,t?(this._zlibInflateStream=this._register(new Xx(this._tracer,s,i,{windowBits:15})),this._zlibDeflateStream=this._register(new Yx(this._tracer,{windowBits:15})),this._register(this._zlibInflateStream.onError(o=>this._onError.fire(o))),this._register(this._zlibDeflateStream.onError(o=>this._onError.fire(o)))):(this._zlibInflateStream=null,this._zlibDeflateStream=null)}writeMessage(e,t){this._writeQueue.push({data:e,options:t}),this._processWriteQueue()}async _processWriteQueue(){if(!this._isProcessingWriteQueue){for(this._isProcessingWriteQueue=!0;this._writeQueue.length>0;){const{data:e,options:t}=this._writeQueue.shift();if(this._zlibDeflateStream&&t.compressed){const i=await this._deflateMessage(this._zlibDeflateStream,e);this._writeFn(i,t)}else this._writeFn(e,{...t,compressed:!1})}this._isProcessingWriteQueue=!1,this._onDidFinishProcessingWriteQueue.fire()}}isProcessingWriteQueue(){return this._isProcessingWriteQueue}_deflateMessage(e,t){return new Promise((i,s)=>{e.write(t),e.flush(r=>i(r))})}acceptFrame(e,t,i){this._readQueue.push({data:e,isCompressed:t,isLastFrameOfMessage:i}),this._processReadQueue()}async _processReadQueue(){if(!this._isProcessingReadQueue){for(this._isProcessingReadQueue=!0;this._readQueue.length>0;){const e=this._readQueue.shift();if(this._zlibInflateStream&&e.isCompressed){const t=await this._inflateFrame(this._zlibInflateStream,e.data,e.isLastFrameOfMessage);this._onData.fire(t)}else this._onData.fire(e.data)}this._isProcessingReadQueue=!1,this._onDidFinishProcessingReadQueue.fire()}}isProcessingReadQueue(){return this._isProcessingReadQueue}_inflateFrame(e,t,i){return new Promise((s,r)=>{e.write(t),i&&e.write(O.fromByteArray([0,0,255,255])),e.flush(n=>s(n))})}},Xx=class extends G{get recordedInflateBytes(){return this._recordInflateBytes?O.concat(this._recordedInflateBytes):O.alloc(0)}constructor(e,t,i,s){super(),this._tracer=e,this._recordInflateBytes=t,this._onError=this._register(new R),this.onError=this._onError.event,this._recordedInflateBytes=[],this._pendingInflateData=[],this._zlibInflate=RT(s),this._zlibInflate.on("error",r=>{this._tracer.traceSocketEvent("zlibInflateError",{message:r?.message,code:r?.code}),this._onError.fire(r)}),this._zlibInflate.on("data",r=>{this._tracer.traceSocketEvent("zlibInflateData",r),this._pendingInflateData.push(O.wrap(r))}),i&&(this._tracer.traceSocketEvent("zlibInflateInitialWrite",i.buffer),this._zlibInflate.write(i.buffer),this._zlibInflate.flush(()=>{this._tracer.traceSocketEvent("zlibInflateInitialFlushFired"),this._pendingInflateData.length=0}))}write(e){this._recordInflateBytes&&this._recordedInflateBytes.push(e.clone()),this._tracer.traceSocketEvent("zlibInflateWrite",e),this._zlibInflate.write(e.buffer)}flush(e){this._zlibInflate.flush(()=>{this._tracer.traceSocketEvent("zlibInflateFlushFired");const t=O.concat(this._pendingInflateData);this._pendingInflateData.length=0,e(t)})}},Yx=class extends G{constructor(e,t){super(),this._tracer=e,this._onError=this._register(new R),this.onError=this._onError.event,this._pendingDeflateData=[],this._zlibDeflate=DT({windowBits:15}),this._zlibDeflate.on("error",i=>{this._tracer.traceSocketEvent("zlibDeflateError",{message:i?.message,code:i?.code}),this._onError.fire(i)}),this._zlibDeflate.on("data",i=>{this._tracer.traceSocketEvent("zlibDeflateData",i),this._pendingDeflateData.push(O.wrap(i))})}write(e){this._tracer.traceSocketEvent("zlibDeflateWrite",e.buffer),this._zlibDeflate.write(e.buffer)}flush(e){this._zlibDeflate.flush(2,()=>{this._tracer.traceSocketEvent("zlibDeflateFlushFired");let t=O.concat(this._pendingDeflateData);this._pendingDeflateData.length=0,t=t.slice(0,t.byteLength-4),e(t)})}},L1=process.env.XDG_RUNTIME_DIR,Zx={2:107,1:103}}}),A1,Kx,e6=y({"out-build/vs/server/node/extensionHostStatusService.js"(){"use strict";se(),A1=te("extensionHostStatusService"),Kx=class{constructor(){this._exitInfo=new Map}setExitInfo(e,t){this._exitInfo.set(e,t)}getExitInfo(e){return this._exitInfo.get(e)||null}}}});function NT(e){delete e[N1.ENV_KEY],delete e[O1.ENV_KEY],delete e[s6.ENV_KEY]}function t6(e,t){NT(t),e.serialize(t)}var i6,N1,O1,s6,OT=y({"out-build/vs/workbench/services/extensions/common/extensionHostEnv.js"(){"use strict";(function(e){e[e.IPC=1]="IPC",e[e.Socket=2]="Socket",e[e.MessagePort=3]="MessagePort"})(i6||(i6={})),N1=class rC{static{this.ENV_KEY="VSCODE_EXTHOST_IPC_HOOK"}constructor(t){this.pipeName=t,this.type=1}serialize(t){t[rC.ENV_KEY]=this.pipeName}},O1=class nC{constructor(){this.type=2}static{this.ENV_KEY="VSCODE_EXTHOST_WILL_SEND_SOCKET"}serialize(t){t[nC.ENV_KEY]="1"}},s6=class oC{constructor(){this.type=3}static{this.ENV_KEY="VSCODE_WILL_SEND_MESSAGE_PORT"}serialize(t){t[oC.ENV_KEY]="1"}}}});import*as TT from"child_process";import*as MT from"net";async function r6(e={},t,i,s,r,n){const o=await dx(i,s.userDataPath);let a={};if(t)try{a=await sg(n,r,s.args,process.env)}catch(p){r.error("ExtensionHostConnection#buildUserEnvironment resolving shell environment failed",p)}const l={...process.env,...a,VSCODE_ESM_ENTRYPOINT:"vs/workbench/api/node/extensionHostProcess",VSCODE_HANDLES_UNCAUGHT_ERRORS:"true",VSCODE_NLS_CONFIG:JSON.stringify(o),...e},u=s.isBuilt?W(s.appRoot,"bin"):W(s.appRoot,"resources","server","bin-dev"),h=W(u,"remote-cli");let f=FT(l,"PATH");return f?f=h+Ga+f:f=h,UT(l,"PATH",f),s.args["without-browser-env-var"]||(l.BROWSER=W(u,"helpers",he?"browser.cmd":"browser.sh")),$T(l),l}function FT(e,t){const i=Object.keys(e).filter(r=>r.toLowerCase()===t.toLowerCase()),s=i.length>0?i[0]:t;return e[s]}function UT(e,t,i){const s=Object.keys(e).filter(n=>n.toLowerCase()===t.toLowerCase()),r=s.length>0?s[0]:t;e[r]=i}function $T(e){for(const t of Object.keys(e))e[t]===null&&delete e[t]}var T1,hd,n6=y({"out-build/vs/server/node/extensionHostConnection.js"(){"use strict";Fe(),ie(),V(),xe(),de(),K(),Zu(),ud(),ci(),Ie(),rg(),e6(),fx(),Go(),OT(),T1=class{constructor(e,t){this.socket=e,this.initialDataChunk=t}socketDrain(){return this.socket.drain()}toIExtHostSocketMessage(){let e,t,i;return this.socket instanceof Zo?(e=!0,t=!1,i=O.alloc(0)):(e=!1,t=this.socket.permessageDeflate,i=this.socket.recordedInflateBytes),{type:"VSCODE_EXTHOST_IPC_SOCKET",initialDataChunk:this.initialDataChunk.buffer.toString("base64"),skipWebSocketFrames:e,permessageDeflate:t,inflateBytes:i.buffer.toString("base64")}}},hd=class extends G{constructor(t,i,s,r,n,o,a,c){super(),this._reconnectionToken=t,this._environmentService=n,this._logService=o,this._extensionHostStatusService=a,this._configurationService=c,this._onClose=new R,this.onClose=this._onClose.event,this._canSendSocket=!he||!this._environmentService.args["socket-path"],this._disposed=!1,this._remoteAddress=i,this._extensionHostProcess=null,this._connectionData=new T1(s,r),this._log("New connection established.")}dispose(){this._cleanResources(),super.dispose()}get _logPrefix(){return`[${this._remoteAddress}][${this._reconnectionToken.substr(0,8)}][ExtensionHostConnection] `}_log(t){this._logService.info(`${this._logPrefix}${t}`)}_logError(t){this._logService.error(`${this._logPrefix}${t}`)}async _pipeSockets(t,i){const s=new ct;s.add(i.socket),s.add(Se(()=>{t.destroy()}));const r=()=>{s.dispose()};s.add(i.socket.onEnd(r)),s.add(i.socket.onClose(r)),s.add(z.fromNodeEventEmitter(t,"end")(r)),s.add(z.fromNodeEventEmitter(t,"close")(r)),s.add(z.fromNodeEventEmitter(t,"error")(r)),s.add(i.socket.onData(n=>t.write(n.buffer))),s.add(z.fromNodeEventEmitter(t,"data")(n=>{i.socket.write(O.wrap(n))})),i.initialDataChunk.byteLength>0&&t.write(i.initialDataChunk.buffer)}async _sendSocketToExtensionHost(t,i){if(!t.connected)return;await i.socketDrain();const s=i.toIExtHostSocketMessage();let r;i.socket instanceof Zo?r=i.socket.socket:r=i.socket.socket.socket,t.send(s,r)}shortenReconnectionGraceTimeIfNecessary(){if(!this._extensionHostProcess||!this._extensionHostProcess.connected)return;const t={type:"VSCODE_EXTHOST_IPC_REDUCE_GRACE_TIME"};this._extensionHostProcess.send(t)}acceptReconnection(t,i,s){this._remoteAddress=t,this._log("The client has reconnected.");const r=new T1(i,s);if(!this._extensionHostProcess){this._connectionData=r;return}this._sendSocketToExtensionHost(this._extensionHostProcess,r)}_cleanResources(){this._disposed||(this._disposed=!0,this._connectionData&&(this._connectionData.socket.end(),this._connectionData=null),this._extensionHostProcess&&(this._extensionHostProcess.kill(),this._extensionHostProcess=null),this._onClose.fire(void 0))}async start(t){try{let i=process.execArgv?process.execArgv.filter(h=>!/^--inspect(-brk)?=/.test(h)):[];t.port&&!process.pkg&&(i=[`--inspect${t.break?"-brk":""}=${t.port}`]);const s=await r6(t.env,!0,t.language,this._environmentService,this._logService,this._configurationService);PE(s);let r;if(this._canSendSocket)t6(new O1,s),r=null;else{const{namedPipeServer:h,pipeName:f}=await this._listenOnPipe();t6(new N1(f),s),r=h}const n={env:s,execArgv:i,silent:!0};n.execArgv.unshift("--dns-result-order=ipv4first");const o=["--type=extensionHost","--transformURIs"],a=this._environmentService.args["use-host-proxy"];o.push(`--useHostProxy=${a?"true":"false"}`),this._extensionHostProcess=TT.fork(Ct.asFileUri("bootstrap-fork").fsPath,o,n);const c=this._extensionHostProcess.pid;this._log(`<${c}> Launched Extension Host Process.`),this._extensionHostProcess.stdout.setEncoding("utf8"),this._extensionHostProcess.stderr.setEncoding("utf8");const l=z.fromNodeEventEmitter(this._extensionHostProcess.stdout,"data"),u=z.fromNodeEventEmitter(this._extensionHostProcess.stderr,"data");if(this._register(l(h=>this._log(`<${c}> ${h}`))),this._register(u(h=>this._log(`<${c}><stderr> ${h}`))),this._extensionHostProcess.on("error",h=>{this._logError(`<${c}> Extension Host Process had an error`),this._logService.error(h),this._cleanResources()}),this._extensionHostProcess.on("exit",(h,f)=>{this._extensionHostStatusService.setExitInfo(this._reconnectionToken,{code:h,signal:f}),this._log(`<${c}> Extension Host Process exited with code: ${h}, signal: ${f}.`),this._cleanResources()}),r)r.on("connection",h=>{r.close(),this._pipeSockets(h,this._connectionData)});else{const h=f=>{f.type==="VSCODE_EXTHOST_IPC_READY"&&(this._extensionHostProcess.removeListener("message",h),this._sendSocketToExtensionHost(this._extensionHostProcess,this._connectionData),this._connectionData=null)};this._extensionHostProcess.on("message",h)}return c}catch(i){console.error("ExtensionHostConnection errored"),i&&console.error(i);return}}_listenOnPipe(){return new Promise((t,i)=>{const s=R1(),r=MT.createServer();r.on("error",i),r.listen(s,()=>{r?.removeListener("error",i),t({pipeName:s,namedPipeServer:r})})})}},hd=__decorate([__param(4,Kc),__param(5,fe),__param(6,A1),__param(7,Zt)],hd)}});function dd(e){let t=0,i=0,s=0;e>=1e3&&(s=Math.floor(e/1e3),e-=s*1e3),s>=60&&(i=Math.floor(s/60),s-=i*60),i>=60&&(t=Math.floor(i/60),i-=t*60);const r=t?`${t}h`:"",n=i?`${i}m`:"",o=s?`${s}s`:"",a=e?`${e}ms`:"";return`${r}${n}${o}${a}`}var o6,WT=y({"out-build/vs/server/node/remoteExtensionManagement.js"(){"use strict";ie(),Ne(),o6=class{constructor(e,t,i,s){this._logService=e,this._reconnectionToken=t,this._onClose=new R,this.onClose=this._onClose.event,this._reconnectionGraceTime=108e5,this._reconnectionShortGraceTime=3e5,this._remoteAddress=i,this.protocol=s,this._disposed=!1,this._disconnectRunner1=new Om(()=>{this._log(`The reconnection grace time of ${dd(this._reconnectionGraceTime)} has expired, so the connection will be disposed.`),this._cleanResources()},this._reconnectionGraceTime),this._disconnectRunner2=new Om(()=>{this._log(`The reconnection short grace time of ${dd(this._reconnectionShortGraceTime)} has expired, so the connection will be disposed.`),this._cleanResources()},this._reconnectionShortGraceTime),this.protocol.onDidDispose(()=>{this._log("The client has disconnected gracefully, so the connection will be disposed."),this._cleanResources()}),this.protocol.onSocketClose(()=>{this._log(`The client has disconnected, will wait for reconnection ${dd(this._reconnectionGraceTime)} before disposing...`),this._disconnectRunner1.schedule()}),this._log("New connection established.")}_log(e){this._logService.info(`[${this._remoteAddress}][${this._reconnectionToken.substr(0,8)}][ManagementConnection] ${e}`)}shortenReconnectionGraceTimeIfNecessary(){this._disconnectRunner2.isScheduled()||this._disconnectRunner1.isScheduled()&&(this._log(`Another client has connected, will shorten the wait for reconnection ${dd(this._reconnectionShortGraceTime)} before disposing...`),this._disconnectRunner2.schedule())}_cleanResources(){if(this._disposed)return;this._disposed=!0,this._disconnectRunner1.dispose(),this._disconnectRunner2.dispose();const e=this.protocol.getSocket();this.protocol.sendDisconnect(),this.protocol.dispose(),e.end(),this._onClose.fire(void 0)}acceptReconnection(e,t,i){this._remoteAddress=e,this._log("The client has reconnected."),this._disconnectRunner1.cancel(),this._disconnectRunner2.cancel(),this.protocol.beginAcceptReconnection(t,i),this.protocol.endAcceptReconnection()}}}});import*as HT from"cookie";import*as a6 from"fs";async function VT(e,t){const i=e["without-connection-token"],s=e["connection-token"],r=e["connection-token-file"];if(i)return typeof s<"u"||typeof r<"u"?new Tn("Please do not use the argument '--connection-token' or '--connection-token-file' at the same time as '--without-connection-token'."):new l6;if(typeof r<"u"){if(typeof s<"u")return new Tn("Please do not use the argument '--connection-token' at the same time as '--connection-token-file'.");let n;try{n=a6.readFileSync(r).toString().replace(/\r?\n$/,"")}catch{return new Tn(`Unable to read the connection token file at '${r}'.`)}return fd.test(n)?new pd(n):new Tn(`The connection token defined in '${r} does not adhere to the characters 0-9, a-z, A-Z, _, or -.`)}return typeof s<"u"?fd.test(s)?new pd(s):new Tn(`The connection token '${s} does not adhere to the characters 0-9, a-z, A-Z or -.`):new pd(await t())}async function jT(e){return VT(e,async()=>{if(!e["user-data-dir"])return Ve();const i=W(e["user-data-dir"],"token");try{const n=(await a6.promises.readFile(i)).toString().replace(/\r?\n$/,"");if(fd.test(n))return n}catch{}const s=Ve();try{await Ce.writeFile(i,s,{mode:384})}catch{}return s})}function BT(e,t,i){if(e.validate(i.query[no]))return!0;const s=HT.parse(t.headers.cookie||"");return e.validate(s[Pu])}var fd,c6,l6,pd,Tn,zT=y({"out-build/vs/server/node/serverConnectionToken.js"(){"use strict";de(),Bt(),xe(),di(),fd=/^[0-9A-Za-z_-]+$/,(function(e){e[e.None=0]="None",e[e.Optional=1]="Optional",e[e.Mandatory=2]="Mandatory"})(c6||(c6={})),l6=class{constructor(){this.type=0}validate(e){return!0}},pd=class{constructor(e){this.value=e,this.type=2}validate(e){return e===this.value}},Tn=class{constructor(e){this.message=e}}}});import{networkInterfaces as qT}from"os";function GT(e){const t=e.replace(/\-/g,":").toLowerCase();return!u6.has(t)}function QT(){const e=qT();for(const t in e){const i=e[t];if(i){for(const{mac:s}of i)if(GT(s))return s}}throw new Error("Unable to retrieve mac address (unexpected format)")}var u6,JT=y({"out-build/vs/base/node/macAddress.js"(){"use strict";u6=new Set(["00:00:00:00:00:00","ff:ff:ff:ff:ff:ff","ac:de:48:00:11:22"])}});import{networkInterfaces as XT}from"os";import{platform as M1}from"process";import{execSync as YT}from"child_process";async function ZT(e){return U1||(U1=(async()=>{let t;try{t=await iM(!1)}catch(i){e(i)}return t||Ve()})()),U1}async function KT(e){try{const t=await import("crypto"),i=QT();return t.createHash("sha256").update(i,"utf8").digest("hex")}catch(t){e(t);return}}function eM(){return M1!=="win32"?"notdefined":process.arch==="ia32"&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"}function tM(e){switch(M1){case"darwin":return e.split("IOPlatformUUID")[1].split(`
`)[0].replace(/\=|\s+|\"/ig,"").toLowerCase();case"win32":return e.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/ig,"").toLowerCase();case"linux":return e.toString().replace(/\r+|\n+|\s+/ig,"").toLowerCase();case"freebsd":return e.toString().replace(/\r+|\n+|\s+/ig,"").toLowerCase();default:throw new Error(`Unsupported platform: ${process.platform}`)}}async function iM(e){let t=tM(YT(d6[M1],{timeout:5e3}).toString()),i;try{i=(await import("crypto")).createHash("sha256").update(t,"utf8").digest("hex")}catch{i=Ve()}return e?t:i}async function sM(e){if(he){const t=await import("@vscode/windows-registry");try{return t.GetStringRegKey("HKEY_LOCAL_MACHINE",f6,"MachineId")||""}catch(i){return e(i),""}}return""}async function rM(e){try{return await(await import("@vscode/deviceid")).getDeviceId()}catch(t){return e(t),Ve()}}var F1,U1,h6,d6,f6,p6=y({"out-build/vs/base/node/id.js"(){"use strict";fh(),Bt(),JT(),K(),F1=new class{_isVirtualMachineMacAddress(e){return this._virtualMachineOUIs||(this._virtualMachineOUIs=Ro.forStrings(),this._virtualMachineOUIs.set("00-50-56",!0),this._virtualMachineOUIs.set("00-0C-29",!0),this._virtualMachineOUIs.set("00-05-69",!0),this._virtualMachineOUIs.set("00-03-FF",!0),this._virtualMachineOUIs.set("00-1C-42",!0),this._virtualMachineOUIs.set("00-16-3E",!0),this._virtualMachineOUIs.set("08-00-27",!0),this._virtualMachineOUIs.set("00:50:56",!0),this._virtualMachineOUIs.set("00:0C:29",!0),this._virtualMachineOUIs.set("00:05:69",!0),this._virtualMachineOUIs.set("00:03:FF",!0),this._virtualMachineOUIs.set("00:1C:42",!0),this._virtualMachineOUIs.set("00:16:3E",!0),this._virtualMachineOUIs.set("08:00:27",!0)),!!this._virtualMachineOUIs.findSubstr(e)}value(){if(this._value===void 0){let e=0,t=0;const i=XT();for(const s in i){const r=i[s];if(r)for(const{mac:n,internal:o}of r)o||(t+=1,this._isVirtualMachineMacAddress(n.toUpperCase())&&(e+=1))}this._value=t>0?e/t:0}return this._value}},h6={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32",notdefined:""},d6={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:`${h6[eM()]}\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`,linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"},f6="Software\\Microsoft\\SQMClient"}}),$1,nM=y({"out-build/vs/platform/debug/common/extensionHostDebugIpc.js"(){"use strict";ie(),V(),$1=class{constructor(){this._onCloseEmitter=new R,this._onReloadEmitter=new R,this._onTerminateEmitter=new R,this._onAttachEmitter=new R}static{this.ChannelName="extensionhostdebugservice"}call(e,t,i){switch(t){case"close":return Promise.resolve(this._onCloseEmitter.fire({sessionId:i[0]}));case"reload":return Promise.resolve(this._onReloadEmitter.fire({sessionId:i[0]}));case"terminate":return Promise.resolve(this._onTerminateEmitter.fire({sessionId:i[0]}));case"attach":return Promise.resolve(this._onAttachEmitter.fire({sessionId:i[0],port:i[1],subId:i[2]}))}throw new Error("Method not implemented.")}listen(e,t,i){switch(t){case"close":return this._onCloseEmitter.event;case"reload":return this._onReloadEmitter.event;case"terminate":return this._onTerminateEmitter.event;case"attach":return this._onAttachEmitter.event}throw new Error("Method not implemented.")}}}}),m6,oM=y({"out-build/vs/platform/download/common/downloadIpc.js"(){"use strict";Y(),m6=class{constructor(e,t){this.channel=e,this.getUriTransformer=t}async download(e,t){const i=this.getUriTransformer();i&&(e=i.transformOutgoingURI(e),t=i.transformOutgoingURI(t)),await this.channel.call("download",[e,t])}}}});function g6(e){return e.toJSON()}function v6(e,t,i){if(!e||i>200)return null;if(typeof e=="object"){if(e instanceof b)return t.transformOutgoing(e);for(const s in e)if(Object.hasOwnProperty.call(e,s)){const r=v6(e[s],t,i+1);r!==null&&(e[s]=r)}}return null}function dr(e,t){const i=v6(e,t,0);return i===null?e:i}function W1(e,t,i,s){if(!e||s>200)return null;if(typeof e=="object"){if(e.$mid===1)return i?b.revive(t.transformIncoming(e)):t.transformIncoming(e);if(e instanceof O)return null;for(const r in e)if(Object.hasOwnProperty.call(e,r)){const n=W1(e[r],t,i,s+1);n!==null&&(e[r]=n)}}return null}function y6(e,t){const i=W1(e,t,!1,0);return i===null?e:i}function w6(e,t){const i=W1(e,t,!0,0);return i===null?e:i}var _6,H1,Ko=y({"out-build/vs/base/common/uriIpc.js"(){"use strict";Fe(),Y(),_6=class{constructor(e){this._uriTransformer=e}transformIncoming(e){const t=this._uriTransformer.transformIncoming(e);return t===e?e:g6(b.from(t))}transformOutgoing(e){const t=this._uriTransformer.transformOutgoing(e);return t===e?e:g6(b.from(t))}transformOutgoingURI(e){const t=this._uriTransformer.transformOutgoing(e);return t===e?e:b.from(t)}transformOutgoingScheme(e){return this._uriTransformer.transformOutgoingScheme(e)}},H1=new class{transformIncoming(e){return e}transformOutgoing(e){return e}transformOutgoingURI(e){return e}transformOutgoingScheme(e){return e}}}});function ps(e,t){return e?b.revive(t?t.transformIncoming(e):e):void 0}function ea(e,t){return t?t.transformOutgoingURI(e):e}function al(e,t){t=t||H1;const i=e.manifest;return{...w6({...e,manifest:void 0},t),manifest:i}}function cl(e,t){return e?.profileLocation?w6(e,t??H1):e}function ll(e,t){return t?rr(e,i=>i instanceof b?t.transformOutgoingURI(i):void 0):e}var b6,aM=y({"out-build/vs/platform/extensionManagement/common/extensionManagementIpc.js"(){"use strict";ie(),Si(),Y(),Ko(),Th(),b6=class{constructor(e,t){this.service=e,this.getUriTransformer=t,this.onInstallExtension=z.buffer(e.onInstallExtension,!0),this.onDidInstallExtensions=z.buffer(e.onDidInstallExtensions,!0),this.onUninstallExtension=z.buffer(e.onUninstallExtension,!0),this.onDidUninstallExtension=z.buffer(e.onDidUninstallExtension,!0),this.onDidUpdateExtensionMetadata=z.buffer(e.onDidUpdateExtensionMetadata,!0)}listen(e,t){const i=this.getUriTransformer(e);switch(t){case"onInstallExtension":return z.map(this.onInstallExtension,s=>({...s,profileLocation:s.profileLocation?ea(s.profileLocation,i):s.profileLocation}));case"onDidInstallExtensions":return z.map(this.onDidInstallExtensions,s=>s.map(r=>({...r,local:r.local?ll(r.local,i):r.local,profileLocation:r.profileLocation?ea(r.profileLocation,i):r.profileLocation})));case"onUninstallExtension":return z.map(this.onUninstallExtension,s=>({...s,profileLocation:s.profileLocation?ea(s.profileLocation,i):s.profileLocation}));case"onDidUninstallExtension":return z.map(this.onDidUninstallExtension,s=>({...s,profileLocation:s.profileLocation?ea(s.profileLocation,i):s.profileLocation}));case"onDidUpdateExtensionMetadata":return z.map(this.onDidUpdateExtensionMetadata,s=>({local:ll(s.local,i),profileLocation:ea(s.profileLocation,i)}))}throw new Error("Invalid listen")}async call(e,t,i){const s=this.getUriTransformer(e);switch(t){case"zip":{const r=al(i[0],s),n=await this.service.zip(r);return ea(n,s)}case"install":return this.service.install(ps(i[0],s),cl(i[1],s));case"installFromLocation":return this.service.installFromLocation(ps(i[0],s),ps(i[1],s));case"installExtensionsFromProfile":return this.service.installExtensionsFromProfile(i[0],ps(i[1],s),ps(i[2],s));case"getManifest":return this.service.getManifest(ps(i[0],s));case"getTargetPlatform":return this.service.getTargetPlatform();case"installFromGallery":return this.service.installFromGallery(i[0],cl(i[1],s));case"installGalleryExtensions":{const r=i[0];return this.service.installGalleryExtensions(r.map(({extension:n,options:o})=>({extension:n,options:cl(o,s)??{}})))}case"uninstall":return this.service.uninstall(al(i[0],s),cl(i[1],s));case"uninstallExtensions":{const r=i[0];return this.service.uninstallExtensions(r.map(({extension:n,options:o})=>({extension:al(n,s),options:cl(o,s)})))}case"getInstalled":return(await this.service.getInstalled(i[0],ps(i[1],s),i[2])).map(n=>ll(n,s));case"toggleAppliationScope":{const r=await this.service.toggleAppliationScope(al(i[0],s),ps(i[1],s));return ll(r,s)}case"copyExtensions":return this.service.copyExtensions(ps(i[0],s),ps(i[1],s));case"updateMetadata":{const r=await this.service.updateMetadata(al(i[0],s),i[1],ps(i[2],s));return ll(r,s)}case"resetPinnedStateForAllUserExtensions":return this.service.resetPinnedStateForAllUserExtensions(i[0]);case"getExtensionsControlManifest":return this.service.getExtensionsControlManifest();case"download":return this.service.download(i[0],i[1],i[2]);case"cleanUp":return this.service.cleanUp()}throw new Error("Invalid call")}}}}),E6,cM=y({"out-build/vs/platform/request/common/requestIpc.js"(){"use strict";Fe(),Ft(),E6=class{constructor(e){this.service=e}listen(e,t){throw new Error("Invalid listen")}call(e,t,i,s=Me.None){switch(t){case"request":return this.service.request(i[0],s).then(async({res:r,stream:n})=>{const o=await Zs(n);return[{statusCode:r.statusCode,headers:r.headers},o]});case"resolveProxy":return this.service.resolveProxy(i[0]);case"lookupAuthorization":return this.service.lookupAuthorization(i[0]);case"lookupKerberosAuthorization":return this.service.lookupKerberosAuthorization(i[0]);case"loadCertificates":return this.service.loadCertificates()}throw new Error("Invalid call")}}}}),V1,S6,lM=y({"out-build/vs/platform/telemetry/common/errorTelemetry.js"(){"use strict";kt(),ve(),V(),Si(),Xe(),(function(e){function t(i,s){return i.callstack<s.callstack?-1:i.callstack>s.callstack?1:0}e.compare=t})(V1||(V1={})),S6=class aC{static{this.ERROR_FLUSH_TIMEOUT=5*1e3}constructor(t,i=aC.ERROR_FLUSH_TIMEOUT){this._flushHandle=-1,this._buffer=[],this._disposables=new ct,this._telemetryService=t,this._flushDelay=i;const s=au.addListener(r=>this._onErrorEvent(r));this._disposables.add(Se(s)),this.installErrorListeners()}dispose(){clearTimeout(this._flushHandle),this._flushBuffer(),this._disposables.dispose()}installErrorListeners(){}_onErrorEvent(t){if(!t||t.code||(t.detail&&t.detail.stack&&(t=t.detail),Gs.isErrorNoTelemetry(t)||t instanceof zt||typeof t?.message=="string"&&t.message.includes("Unable to read file")))return;const i=Array.isArray(t.stack)?t.stack.join(`
`):t.stack,s=t.message?t.message:ER(t);i&&this._enqueue({msg:s,callstack:i})}_enqueue(t){const i=WC(this._buffer,t,V1.compare);i<0?(t.count=1,this._buffer.splice(~i,0,t)):(this._buffer[i].count||(this._buffer[i].count=0),this._buffer[i].count+=1),this._flushHandle===-1&&(this._flushHandle=setTimeout(()=>{this._flushBuffer(),this._flushHandle=-1},this._flushDelay))}_flushBuffer(){for(const t of this._buffer)this._telemetryService.publicLogError2("UnhandledError",t);this._buffer.length=0}}}}),x6,uM=y({"out-build/vs/platform/telemetry/node/errorTelemetry.js"(){"use strict";ve(),lM(),x6=class extends S6{installErrorListeners(){qy(t=>console.error(t));const e=[];process.on("unhandledRejection",(t,i)=>{e.push(i),setTimeout(()=>{const s=e.indexOf(i);s>=0&&i.catch(r=>{e.splice(s,1),xr(r)||(console.warn(`rejected promise not handled within 1 second: ${r}`),r.stack&&console.warn(`stack trace: ${r.stack}`),t&&Qt(t))})},1e3)}),process.on("rejectionHandled",t=>{const i=e.indexOf(t);i>=0&&e.splice(i,1)}),process.on("uncaughtException",t=>{Gy(t)||Qt(t)})}}}}),hM,k6,P6,I6,C6,D6,R6,ul,L6,A6,gi,N6,O6,T6,M6,F6,U6,$6,W6,H6,dM,V6,j1=y({"out-build/vs/platform/terminal/common/terminal.js"(){"use strict";se(),Tu(),nr(),hM=new sc("terminalTabFocusMode",!1,!0),(function(e){e.AutomationProfile="terminal.integrated.automationProfile.",e.DefaultProfile="terminal.integrated.defaultProfile.",e.Profiles="terminal.integrated.profiles."})(k6||(k6={})),(function(e){e.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",e.AutomationProfileLinux="terminal.integrated.automationProfile.linux",e.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",e.AutomationProfileWindows="terminal.integrated.automationProfile.windows",e.ProfilesWindows="terminal.integrated.profiles.windows",e.ProfilesMacOs="terminal.integrated.profiles.osx",e.ProfilesLinux="terminal.integrated.profiles.linux",e.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",e.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",e.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",e.UseWslProfiles="terminal.integrated.useWslProfiles",e.TabsDefaultColor="terminal.integrated.tabs.defaultColor",e.TabsDefaultIcon="terminal.integrated.tabs.defaultIcon",e.TabsEnabled="terminal.integrated.tabs.enabled",e.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",e.TabsHideCondition="terminal.integrated.tabs.hideCondition",e.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",e.TabsShowActions="terminal.integrated.tabs.showActions",e.TabsLocation="terminal.integrated.tabs.location",e.TabsFocusMode="terminal.integrated.tabs.focusMode",e.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",e.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",e.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",e.CopyOnSelection="terminal.integrated.copyOnSelection",e.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",e.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",e.FontFamily="terminal.integrated.fontFamily",e.FontSize="terminal.integrated.fontSize",e.LetterSpacing="terminal.integrated.letterSpacing",e.LineHeight="terminal.integrated.lineHeight",e.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",e.TabStopWidth="terminal.integrated.tabStopWidth",e.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",e.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",e.BellDuration="terminal.integrated.bellDuration",e.FontWeight="terminal.integrated.fontWeight",e.FontWeightBold="terminal.integrated.fontWeightBold",e.CursorBlinking="terminal.integrated.cursorBlinking",e.CursorStyle="terminal.integrated.cursorStyle",e.CursorStyleInactive="terminal.integrated.cursorStyleInactive",e.CursorWidth="terminal.integrated.cursorWidth",e.Scrollback="terminal.integrated.scrollback",e.DetectLocale="terminal.integrated.detectLocale",e.DefaultLocation="terminal.integrated.defaultLocation",e.GpuAcceleration="terminal.integrated.gpuAcceleration",e.TerminalTitleSeparator="terminal.integrated.tabs.separator",e.TerminalTitle="terminal.integrated.tabs.title",e.TerminalDescription="terminal.integrated.tabs.description",e.RightClickBehavior="terminal.integrated.rightClickBehavior",e.MiddleClickBehavior="terminal.integrated.middleClickBehavior",e.Cwd="terminal.integrated.cwd",e.ConfirmOnExit="terminal.integrated.confirmOnExit",e.ConfirmOnKill="terminal.integrated.confirmOnKill",e.EnableBell="terminal.integrated.enableBell",e.EnableVisualBell="terminal.integrated.enableVisualBell",e.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",e.AllowChords="terminal.integrated.allowChords",e.AllowMnemonics="terminal.integrated.allowMnemonics",e.TabFocusMode="terminal.integrated.tabFocusMode",e.EnvMacOs="terminal.integrated.env.osx",e.EnvLinux="terminal.integrated.env.linux",e.EnvWindows="terminal.integrated.env.windows",e.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",e.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",e.ShowExitAlert="terminal.integrated.showExitAlert",e.SplitCwd="terminal.integrated.splitCwd",e.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",e.WindowsUseConptyDll="terminal.integrated.windowsUseConptyDll",e.WordSeparators="terminal.integrated.wordSeparators",e.EnableFileLinks="terminal.integrated.enableFileLinks",e.AllowedLinkSchemes="terminal.integrated.allowedLinkSchemes",e.UnicodeVersion="terminal.integrated.unicodeVersion",e.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",e.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",e.HideOnStartup="terminal.integrated.hideOnStartup",e.HideOnLastClosed="terminal.integrated.hideOnLastClosed",e.CustomGlyphs="terminal.integrated.customGlyphs",e.RescaleOverlappingGlyphs="terminal.integrated.rescaleOverlappingGlyphs",e.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",e.InheritEnv="terminal.integrated.inheritEnv",e.ShowLinkHover="terminal.integrated.showLinkHover",e.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",e.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",e.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",e.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",e.ShellIntegrationEnvironmentReporting="terminal.integrated.shellIntegration.environmentReporting",e.EnableImages="terminal.integrated.enableImages",e.SmoothScrolling="terminal.integrated.smoothScrolling",e.IgnoreBracketedPasteMode="terminal.integrated.ignoreBracketedPasteMode",e.FocusAfterRun="terminal.integrated.focusAfterRun",e.FontLigaturesEnabled="terminal.integrated.fontLigatures.enabled",e.FontLigaturesFeatureSettings="terminal.integrated.fontLigatures.featureSettings",e.FontLigaturesFallbackLigatures="terminal.integrated.fontLigatures.fallbackLigatures",e.DeveloperPtyHostLatency="terminal.integrated.developer.ptyHost.latency",e.DeveloperPtyHostStartupDelay="terminal.integrated.developer.ptyHost.startupDelay",e.DevMode="terminal.integrated.developer.devMode"})(P6||(P6={})),(function(e){e.Bash="bash",e.Fish="fish",e.Sh="sh",e.Csh="csh",e.Ksh="ksh",e.Zsh="zsh"})(I6||(I6={})),(function(e){e.CommandPrompt="cmd",e.Wsl="wsl",e.GitBash="gitbash"})(C6||(C6={})),(function(e){e.PowerShell="pwsh",e.Python="python",e.Julia="julia",e.NuShell="nu",e.Node="node"})(D6||(D6={})),(function(e){e[e.Api=0]="Api",e[e.Process=1]="Process",e[e.Sequence=2]="Sequence",e[e.Config=3]="Config"})(R6||(R6={})),(function(e){e.LocalPty="localPty",e.PtyHost="ptyHost",e.PtyHostWindow="ptyHostWindow",e.Logger="logger",e.Heartbeat="heartbeat"})(ul||(ul={})),(function(e){e.Cwd="cwd",e.InitialCwd="initialCwd",e.FixedDimensions="fixedDimensions",e.Title="title",e.ShellType="shellType",e.HasChildProcesses="hasChildProcesses",e.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",e.OverrideDimensions="overrideDimensions",e.FailedShellIntegrationActivation="failedShellIntegrationActivation",e.UsedShellIntegrationInjection="usedShellIntegrationInjection"})(L6||(L6={})),A6=te("ptyService"),(function(e){e[e.BeatInterval=5e3]="BeatInterval",e[e.ConnectingBeatInterval=2e4]="ConnectingBeatInterval",e[e.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",e[e.SecondWaitMultiplier=1]="SecondWaitMultiplier",e[e.CreateProcessTimeout=5e3]="CreateProcessTimeout"})(gi||(gi={})),(function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"})(N6||(N6={})),(function(e){e.TerminalView="view",e.Editor="editor"})(O6||(O6={})),(function(e){e[e.GraceTime=6e4]="GraceTime",e[e.ShortGraceTime=6e3]="ShortGraceTime"})(T6||(T6={})),(function(e){e[e.HighWatermarkChars=1e5]="HighWatermarkChars",e[e.LowWatermarkChars=5e3]="LowWatermarkChars",e[e.CharCountAckSize=5e3]="CharCountAckSize"})(M6||(M6={})),(function(e){e.GitBash="Git Bash",e.Pwsh="PowerShell"})(F6||(F6={})),(function(e){e[e.Off=0]="Off",e[e.FinalTerm=1]="FinalTerm",e[e.VSCode=2]="VSCode"})(U6||(U6={})),(function(e){e[e.Unknown=0]="Unknown",e[e.Shutdown=1]="Shutdown",e[e.Process=2]="Process",e[e.User=3]="User",e[e.Extension=4]="Extension"})($6||($6={})),W6={Backend:"workbench.contributions.terminal.processBackend"},H6=class{constructor(){this._backends=new Map}get backends(){return this._backends}registerTerminalBackend(e){const t=this._sanitizeRemoteAuthority(e.remoteAuthority);if(this._backends.has(t))throw new Error(`A terminal backend with remote authority '${t}' was already registered.`);this._backends.set(t,e)}getTerminalBackend(e){return this._backends.get(this._sanitizeRemoteAuthority(e))}_sanitizeRemoteAuthority(e){return e?.toLowerCase()??""}},li.add(W6.Backend,new H6),dM=te("localPtyService"),V6=te("terminalLogService")}}),j6,B6,z6=y({"out-build/vs/platform/log/common/logIpc.js"(){"use strict";Y(),ie(),Ie(),V(),j6=class{constructor(e,t){this.loggerService=e,this.getUriTransformer=t}listen(e,t){const i=this.getUriTransformer(e);switch(t){case"onDidChangeLoggers":return z.map(this.loggerService.onDidChangeLoggers,s=>({added:[...s.added].map(r=>this.transformLogger(r,i)),removed:[...s.removed].map(r=>this.transformLogger(r,i))}));case"onDidChangeVisibility":return z.map(this.loggerService.onDidChangeVisibility,s=>[i.transformOutgoingURI(s[0]),s[1]]);case"onDidChangeLogLevel":return z.map(this.loggerService.onDidChangeLogLevel,s=>mb(s)?s:[i.transformOutgoingURI(s[0]),s[1]])}throw new Error(`Event not found: ${t}`)}async call(e,t,i){const s=this.getUriTransformer(e);switch(t){case"setLogLevel":return mb(i[0])?this.loggerService.setLogLevel(i[0]):this.loggerService.setLogLevel(b.revive(s.transformIncoming(i[0][0])),i[0][1]);case"getRegisteredLoggers":return Promise.resolve([...this.loggerService.getRegisteredLoggers()].map(r=>this.transformLogger(r,s)))}throw new Error(`Call not found: ${t}`)}transformLogger(e,t){return{...e,resource:t.transformOutgoingURI(e.resource)}}},B6=class extends G{constructor(e,t){super(),t.call("setLogLevel",[e.getLogLevel()]),this._register(e.onDidChangeLogLevel(i=>t.call("setLogLevel",[i]))),t.call("getRegisteredLoggers").then(i=>{for(const s of i)e.registerLogger({...s,resource:b.revive(s.resource)})}),this._register(t.listen("onDidChangeVisibility")(([i,s])=>e.setVisibility(b.revive(i),s))),this._register(t.listen("onDidChangeLoggers")(({added:i,removed:s})=>{for(const r of i)e.registerLogger({...r,resource:b.revive(r.resource)});for(const r of s)e.deregisterLogger(r.resource)}))}}}}),md,fM=y({"out-build/vs/platform/terminal/common/requestStore.js"(){"use strict";Ne(),Ft(),ie(),V(),Ie(),md=class extends G{constructor(t,i){super(),this._logService=i,this._lastRequestId=0,this._pendingRequests=new Map,this._pendingRequestDisposables=new Map,this._onCreateRequest=this._register(new R),this.onCreateRequest=this._onCreateRequest.event,this._timeout=t===void 0?15e3:t,this._register(Se(()=>{for(const s of this._pendingRequestDisposables.values())Mt(s)}))}createRequest(t){return new Promise((i,s)=>{const r=++this._lastRequestId;this._pendingRequests.set(r,i),this._onCreateRequest.fire({requestId:r,...t});const n=new Is;go(this._timeout,n.token).then(()=>s(`Request ${r} timed out (${this._timeout}ms)`)),this._pendingRequestDisposables.set(r,[Se(()=>n.cancel())])})}acceptReply(t,i){const s=this._pendingRequests.get(t);s?(this._pendingRequests.delete(t),Mt(this._pendingRequestDisposables.get(t)||[]),this._pendingRequestDisposables.delete(t),s(i)):this._logService.warn(`RequestStore#acceptReply was called without receiving a matching request ${t}`)}},md=__decorate([__param(1,fe)],md)}});function pM(e,t){const i=[{name:null,description:m(2271,null)}];return i.push(...e.map(s=>({name:s.profileName,description:mM(s)}))),t&&i.push(...t.map(s=>({name:s.title,description:gM(s)}))),{values:i.map(s=>s.name),markdownDescriptions:i.map(s=>s.description)}}function mM(e){let t=`$(${$r.isThemeIcon(e.icon)?e.icon.id:e.icon?e.icon:U.terminal.id}) ${e.profileName}
- path: ${e.path}`;return e.args&&(typeof e.args=="string"?t+=`
- args: "${e.args}"`:t+=`
- args: [${e.args.length===0?"":`'${e.args.join("','")}'`}]`),e.overrideName!==void 0&&(t+=`
- overrideName: ${e.overrideName}`),e.color&&(t+=`
- color: ${e.color}`),e.env&&(t+=`
- env: ${JSON.stringify(e.env)}`),t}function gM(e){return`$(${$r.isThemeIcon(e.icon)?e.icon.id:e.icon?e.icon:U.terminal.id}) ${e.title}
- extensionIdentifier: ${e.extensionIdentifier}`}var vM=y({"out-build/vs/platform/terminal/common/terminalProfiles.js"(){"use strict";$c(),Y(),ue(),zg()}});function B1(e){const t=e===2?"linux":e===1?"osx":"windows";return m(2247,null,sw(e),'```json\n"terminal.integrated.profile.'+t+'": {\n "bash": null\n}\n```',"[","](https://code.visualstudio.com/docs/terminal/profiles)")}function yM(){li.as(ns.Configuration).registerConfiguration(Q6),wM()}function wM(e,t){const i=li.as(ns.Configuration);let s;e&&(s=pM(e?.profiles,t));const r=z1;z1={id:"terminal",order:100,title:m(2267,null),type:"object",properties:{"terminal.integrated.defaultProfile.linux":{restricted:!0,markdownDescription:m(2268,null),type:["string","null"],default:null,enum:e?.os===3?s?.values:void 0,markdownEnumDescriptions:e?.os===3?s?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.osx":{restricted:!0,markdownDescription:m(2269,null),type:["string","null"],default:null,enum:e?.os===2?s?.values:void 0,markdownEnumDescriptions:e?.os===2?s?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.windows":{restricted:!0,markdownDescription:m(2270,null),type:["string","null"],default:null,enum:e?.os===1?s?.values:void 0,markdownEnumDescriptions:e?.os===1?s?.markdownDescriptions:void 0}}},i.updateConfigurations({add:[z1],remove:r?[r]:[]})}var q6,G6,Mn,gd,vd,Q6,z1,_M=y({"out-build/vs/platform/terminal/common/terminalPlatformConfiguration.js"(){"use strict";$c(),K(),ue(),xo(),nr(),vM(),q6={type:["string","null"],enum:["terminal.ansiBlack","terminal.ansiRed","terminal.ansiGreen","terminal.ansiYellow","terminal.ansiBlue","terminal.ansiMagenta","terminal.ansiCyan","terminal.ansiWhite"],default:null},G6={type:"string",enum:Array.from(zS(),e=>e.id),markdownEnumDescriptions:Array.from(zS(),e=>`$(${e.id})`)},Mn={args:{description:m(2240,null),type:"array",items:{type:"string"}},overrideName:{description:m(2241,null),type:"boolean"},icon:{description:m(2242,null),...G6},color:{description:m(2243,null),...q6},env:{markdownDescription:m(2244,null),type:"object",additionalProperties:{type:["string","null"]},default:{}}},gd={type:"object",required:["path"],properties:{path:{description:m(2245,null),type:["string","array"],items:{type:"string"}},...Mn}},vd={type:"object",required:["path"],properties:{path:{description:m(2246,null),type:["string"],items:{type:"string"}},...Mn}},Q6={id:"terminal",order:100,title:m(2248,null),type:"object",properties:{"terminal.integrated.automationProfile.linux":{restricted:!0,markdownDescription:m(2249,null),type:["object","null"],default:null,anyOf:[{type:"null"},vd],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.osx":{restricted:!0,markdownDescription:m(2250,null),type:["object","null"],default:null,anyOf:[{type:"null"},vd],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.windows":{restricted:!0,markdownDescription:m(2251,null,"`terminal.integrated.automationShell.windows`"),type:["object","null"],default:null,anyOf:[{type:"null"},vd],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.profiles.windows":{restricted:!0,markdownDescription:B1(3),type:"object",default:{PowerShell:{source:"PowerShell",icon:"terminal-powershell"},"Command Prompt":{path:["${env:windir}\\Sysnative\\cmd.exe","${env:windir}\\System32\\cmd.exe"],args:[],icon:"terminal-cmd"},"Git Bash":{source:"Git Bash"}},additionalProperties:{anyOf:[{type:"object",required:["source"],properties:{source:{description:m(2252,null),enum:["PowerShell","Git Bash"]},...Mn}},{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2253,null),type:"string"},id:{description:m(2254,null),type:"string"},title:{description:m(2255,null),type:"string"},...Mn}},{type:"null"},gd]}},"terminal.integrated.profiles.osx":{restricted:!0,markdownDescription:B1(1),type:"object",default:{bash:{path:"bash",args:["-l"],icon:"terminal-bash"},zsh:{path:"zsh",args:["-l"]},fish:{path:"fish",args:["-l"]},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2256,null),type:"string"},id:{description:m(2257,null),type:"string"},title:{description:m(2258,null),type:"string"},...Mn}},{type:"null"},gd]}},"terminal.integrated.profiles.linux":{restricted:!0,markdownDescription:B1(2),type:"object",default:{bash:{path:"bash",icon:"terminal-bash"},zsh:{path:"zsh"},fish:{path:"fish"},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2259,null),type:"string"},id:{description:m(2260,null),type:"string"},title:{description:m(2261,null),type:"string"},...Mn}},{type:"null"},gd]}},"terminal.integrated.useWslProfiles":{description:m(2262,null),type:"boolean",default:!0},"terminal.integrated.inheritEnv":{scope:1,description:m(2263,null),type:"boolean",default:!0},"terminal.integrated.persistentSessionScrollback":{scope:1,markdownDescription:m(2264,null),type:"number",default:100},"terminal.integrated.showLinkHover":{scope:1,description:m(2265,null),type:"boolean",default:!0},"terminal.integrated.ignoreProcessNames":{markdownDescription:m(2266,null,"`#terminal.integrated.confirmOnKill#`"),type:"array",items:{type:"string",uniqueItems:!0},default:["starship","oh-my-posh","bash","zsh"]}}}}}),fr,J6=y({"out-build/vs/platform/terminal/common/environmentVariable.js"(){"use strict";(function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"})(fr||(fr={}))}});function bM(e){return[...e.entries()]}function EM(e){return e?[...e.entries()]:[]}function SM(e){return new Map(e)}function xM(e){return new Map(e??[])}var q1=y({"out-build/vs/platform/terminal/common/environmentVariableShared.js"(){"use strict"}});function X6(e,t,i=!1){return e.scope?!!(e.scope.workspaceFolder&&t?.workspaceFolder&&e.scope.workspaceFolder.index===t.workspaceFolder.index):i?t===e.scope:!0}function Y6(e,t){if(!t)return e;const i=new Set;t.forEach(r=>i.add(r.extensionIdentifier));const s=[];return e.forEach(r=>{i.has(r.extensionIdentifier)||s.push(r)}),s.length===0?void 0:s}function kM(e,t){if(!t)return;const i=new Map;t.forEach(r=>i.set(r.extensionIdentifier,r));const s=[];return e.forEach(r=>{const n=i.get(r.extensionIdentifier);n&&(r.type!==n.type||r.value!==n.value||r.scope?.workspaceFolder?.index!==n.scope?.workspaceFolder?.index)&&s.push(n)}),s.length===0?void 0:s}var Z6,K6,e9=y({"out-build/vs/platform/terminal/common/environmentVariableCollection.js"(){"use strict";K(),J6(),Z6=new Map([[fr.Append,"APPEND"],[fr.Prepend,"PREPEND"],[fr.Replace,"REPLACE"]]),K6=class{constructor(e){this.collections=e,this.map=new Map,this.descriptionMap=new Map,e.forEach((t,i)=>{this.populateDescriptionMap(t,i);const s=t.map.entries();let r=s.next();for(;!r.done;){const n=r.value[1],o=r.value[0];let a=this.map.get(o);if(a||(a=[],this.map.set(o,a)),a.length>0&&a[0].type===fr.Replace){r=s.next();continue}const c={extensionIdentifier:i,value:n.value,type:n.type,scope:n.scope,variable:n.variable,options:n.options};c.scope||delete c.scope,a.unshift(c),r=s.next()}})}async applyToProcessEnvironment(e,t,i){let s;he&&(s={},Object.keys(e).forEach(r=>s[r.toLowerCase()]=r));for(const[r,n]of this.getVariableMap(t)){const o=he&&s[r.toLowerCase()]||r;for(const a of n){const c=i?await i(a.value):a.value;if(a.options?.applyAtProcessCreation??!0)switch(a.type){case fr.Append:e[o]=(e[o]||"")+c;break;case fr.Prepend:e[o]=c+(e[o]||"");break;case fr.Replace:e[o]=c;break}if(a.options?.applyAtShellIntegration??!1){const l=`VSCODE_ENV_${Z6.get(a.type)}`;e[l]=(e[l]?e[l]+":":"")+r+"="+this._encodeColons(c)}}}}_encodeColons(e){return e.replaceAll(":","\\x3a")}diff(e,t){const i=new Map,s=new Map,r=new Map;if(e.getVariableMap(t).forEach((n,o)=>{const a=this.getVariableMap(t).get(o),c=Y6(n,a);c&&i.set(o,c)}),this.getVariableMap(t).forEach((n,o)=>{const a=e.getVariableMap(t).get(o),c=Y6(n,a);c&&r.set(o,c)}),this.getVariableMap(t).forEach((n,o)=>{const a=e.getVariableMap(t).get(o),c=kM(n,a);c&&s.set(o,c)}),!(i.size===0&&s.size===0&&r.size===0))return{added:i,changed:s,removed:r}}getVariableMap(e){const t=new Map;for(const i of this.map.values()){const s=i.filter(r=>X6(r,e));s.length>0&&t.set(s[0].variable,s)}return t}getDescriptionMap(e){const t=new Map;for(const i of this.descriptionMap.values()){const s=i.filter(r=>X6(r,e,!0));for(const r of s)t.set(r.extensionIdentifier,r.description)}return t}populateDescriptionMap(e,t){if(!e.descriptionMap)return;const i=e.descriptionMap.entries();let s=i.next();for(;!s.done;){const r=s.value[1],n=s.value[0];let o=this.descriptionMap.get(n);o||(o=[],this.descriptionMap.set(n,o));const a={extensionIdentifier:t,scope:r.scope,description:r.description};a.scope||delete a.scope,o.push(a),s=i.next()}}}}});import*as PM from"os";import"fs";import"util";function IM(){const e=/(\d+)\.(\d+)\.(\d+)/g.exec(PM.release());let t=0;return e&&e.length===4&&(t=parseInt(e[3])),t}var ms,Ns,CM=y({"out-build/vs/platform/terminal/node/terminalEnvironment.js"(){"use strict";xe(),de(),K(),ss(),lt(),J6(),q1(),e9(),(function(e){e.WindowsPwsh="windows-pwsh",e.WindowsPwshLogin="windows-pwsh-login",e.Pwsh="pwsh",e.PwshLogin="pwsh-login",e.Zsh="zsh",e.ZshLogin="zsh-login",e.Bash="bash",e.Fish="fish",e.FishLogin="fish-login"})(ms||(ms={})),Ns=new Map,Ns.set(ms.WindowsPwsh,["-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),Ns.set(ms.WindowsPwshLogin,["-l","-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),Ns.set(ms.Pwsh,["-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"{1}']),Ns.set(ms.PwshLogin,["-l","-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"']),Ns.set(ms.Zsh,["-i"]),Ns.set(ms.ZshLogin,["-il"]),Ns.set(ms.Bash,["--init-file","{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh"]),Ns.set(ms.Fish,["--init-command",'source "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.fish"']),Ns.set(ms.FishLogin,["-l","--init-command",'source "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.fish"'])}});import*as DM from"fs";import*as RM from"child_process";import{dirname as LM,resolve as AM}from"path";function NM(e,t,i,s,r=process.env,n,o,a,c){return n=n||{existsFile:hi.existsFile,readFile:DM.promises.readFile},he?OM(i,n,r,o,s.getValue("terminal.integrated.useWslProfiles")!==!1,e&&typeof e=="object"?{...e}:s.getValue("terminal.integrated.profiles.windows"),typeof t=="string"?t:s.getValue("terminal.integrated.defaultProfile.windows"),c,a):HM(n,o,i,e&&typeof e=="object"?{...e}:s.getValue(nt?"terminal.integrated.profiles.linux":"terminal.integrated.profiles.osx"),typeof t=="string"?t:s.getValue(nt?"terminal.integrated.defaultProfile.linux":"terminal.integrated.defaultProfile.osx"),c,a,r)}async function OM(e,t,i,s,r,n,o,a,c){const l=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432"),u=`${process.env.windir}\\${l?"Sysnative":"System32"}`;let h=!1;IM()>=16299&&(h=!0),await MM(a);const f=new Map;if(e){f.set("PowerShell",{source:"PowerShell",icon:U.terminalPowershell,isAutoDetected:!0}),f.set("Windows PowerShell",{path:`${u}\\WindowsPowerShell\\v1.0\\powershell.exe`,icon:U.terminalPowershell,isAutoDetected:!0}),f.set("Git Bash",{source:"Git Bash",isAutoDetected:!0}),f.set("Command Prompt",{path:`${u}\\cmd.exe`,icon:U.terminalCmd,isAutoDetected:!0}),f.set("Cygwin",{path:[{path:`${process.env.HOMEDRIVE}\\cygwin64\\bin\\bash.exe`,isUnsafe:!0},{path:`${process.env.HOMEDRIVE}\\cygwin\\bin\\bash.exe`,isUnsafe:!0}],args:["--login"],isAutoDetected:!0}),f.set("bash (MSYS2)",{path:[{path:`${process.env.HOMEDRIVE}\\msys64\\usr\\bin\\bash.exe`,isUnsafe:!0}],args:["--login","-i"],env:{CHERE_INVOKING:"1"},icon:U.terminalBash,isAutoDetected:!0});const g=`${process.env.CMDER_ROOT||`${process.env.HOMEDRIVE}\\cmder`}\\vendor\\bin\\vscode_init.cmd`;f.set("Cmder",{path:`${u}\\cmd.exe`,args:["/K",g],requiresPath:process.env.CMDER_ROOT?g:{path:g,isUnsafe:!0},isAutoDetected:!0})}s9(n,f);const p=await t9(f.entries(),o,t,i,s,c);if(e&&r)try{const g=await $M(`${u}\\${h?"wsl":"bash"}.exe`,o);for(const v of g)(!n||!(v.profileName in n))&&p.push(v)}catch{G1&&(s?.trace("WSL is not installed, so could not detect WSL profiles"),G1=!1)}return p}async function t9(e,t,i,s=process.env,r,n){const o=[];for(const[a,c]of e)o.push(TM(a,c,t,i,s,r,n));return(await Promise.all(o)).filter(a=>!!a)}async function TM(e,t,i,s,r=process.env,n,o){if(t===null)return;let a,c,l;if("source"in t&&!("path"in t)){const p=hl?.get(t.source);if(!p)return;a=p.paths,c=t.args||p.args,t.icon?l=i9(t.icon):p.icon&&(l=p.icon)}else a=Array.isArray(t.path)?t.path:[t.path],c=he||Array.isArray(t.args)?t.args:void 0,l=i9(t.icon);let u;if(o){const p=a.map(v=>typeof v=="string"?v:v.path),g=await o(p);u=new Array(a.length);for(let v=0;v<a.length;v++)typeof a[v]=="string"?u[v]=g[v]:u[v]={path:g[v],isUnsafe:!0}}else u=a.slice();let h;if(t.requiresPath){let p;if(ye(t.requiresPath)?p=t.requiresPath:(p=t.requiresPath.path,t.requiresPath.isUnsafe&&(h=p)),!await s.existsFile(p))return}const f=await yd(e,i,u,s,r,c,t.env,t.overrideName,t.isAutoDetected,h);if(!f){n?.debug("Terminal profile not validated",e,a);return}return f.isAutoDetected=t.isAutoDetected,f.icon=l,f.color=t.color,f}function i9(e){return typeof e=="string"?{id:e}:e}async function MM(e){if(hl&&!e)return;const[t,i]=await Promise.all([FM(),e||UM()]);hl=new Map,hl.set("Git Bash",{profileName:"Git Bash",paths:t,args:["--login","-i"]}),hl.set("PowerShell",{profileName:"PowerShell",paths:i,icon:U.terminalPowershell})}async function FM(){const e=new Set,t=await RE("git.exe");if(t){const r=LM(t);e.add(AM(r,"../.."))}function i(r,n){n&&r.add(n)}i(e,process.env.ProgramW6432),i(e,process.env.ProgramFiles),i(e,process.env["ProgramFiles(X86)"]),i(e,`${process.env.LocalAppData}\\Program`);const s=[];for(const r of e)s.push(`${r}\\Git\\bin\\bash.exe`,`${r}\\Git\\usr\\bin\\bash.exe`,`${r}\\usr\\bin\\bash.exe`);return s.push(`${process.env.UserProfile}\\scoop\\apps\\git\\current\\bin\\bash.exe`),s.push(`${process.env.UserProfile}\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe`),s}async function UM(){const e=[];for await(const t of bE())e.push(t.exePath);return e}async function $M(e,t){const i=[],s=await new Promise((o,a)=>{RM.exec("wsl.exe -l -q",{encoding:"utf16le",timeout:1e3},(c,l)=>{if(c)return a("Problem occurred when getting wsl distros");o(l)})});if(!s)return[];const r=new RegExp(/[\r?\n]/),n=s.split(r).filter(o=>o.trim().length>0&&o!=="");for(const o of n){if(o===""||o.startsWith("docker-desktop"))continue;const a=`${o} (WSL)`,c={profileName:a,path:e,args:["-d",`${o}`],isDefault:a===t,icon:WM(o),isAutoDetected:!1};i.push(c)}return i}function WM(e){return e.includes("Ubuntu")?U.terminalUbuntu:e.includes("Debian")?U.terminalDebian:U.terminalLinux}async function HM(e,t,i,s,r,n,o,a){const c=new Map;if(i&&await e.existsFile("/etc/shells")){const l=(await e.readFile("/etc/shells")).toString(),u=(n||l.split(`
`)).map(f=>{const p=f.indexOf("#");return p===-1?f:f.substring(0,p)}).filter(f=>f.trim().length>0),h=new Map;for(const f of u){let p=ut(f),g=h.get(p)||0;g++,g>1&&(p=`${p} (${g})`),h.set(p,g),c.set(p,{path:f,isAutoDetected:!0})}}return s9(s,c),await t9(c.entries(),r,e,a,t,o)}function s9(e,t){if(e)for(const[i,s]of Object.entries(e))s===null||typeof s!="object"||!("path"in s)&&!("source"in s)?t.delete(i):(s.icon=s.icon||t.get(i)?.icon,t.set(i,s))}async function yd(e,t,i,s,r,n,o,a,c,l){if(i.length===0)return Promise.resolve(void 0);const u=i.shift();if(u==="")return yd(e,t,i,s,r,n,o,a,c);const h=typeof u!="string"&&u.isUnsafe,f=typeof u=="string"?u:u.path,p={profileName:e,path:f,args:n,env:o,overrideName:a,isAutoDetected:c,isDefault:e===t,isUnsafePath:h,requiresUnsafePath:l};if(ut(f)===f){const v=r.PATH?r.PATH.split(Ga):void 0,w=await RE(f,void 0,v,void 0,s.existsFile);return w?(p.path=w,p.isFromPath=!0,p):yd(e,t,i,s,r,n)}return await s.existsFile(Wi(f))?p:yd(e,t,i,s,r,n,o,a,c)}var r9,hl,G1,VM=y({"out-build/vs/platform/terminal/node/terminalProfiles.js"(){"use strict";$c(),de(),K(),ig(),_e(),di(),kE(),CM(),(function(e){e.UnixShellsPath="/etc/shells"})(r9||(r9={})),G1=!0}}),Q1,wd,jM=y({"out-build/vs/platform/terminal/node/ptyHostService.js"(){"use strict";ie(),V(),K(),zo(),ci(),Ie(),z6(),rg(),fM(),j1(),_M(),VM(),AE(),so(),(function(e){e[e.MaxRestarts=5]="MaxRestarts"})(Q1||(Q1={})),wd=class extends G{get _connection(){return this._ensurePtyHost(),this.__connection}get _proxy(){return this._ensurePtyHost(),this.__proxy}get _optionalProxy(){return this.__proxy}_ensurePtyHost(){this.__connection||this._startPtyHost()}constructor(t,i,s,r){super(),this._ptyHostStarter=t,this._configurationService=i,this._logService=s,this._loggerService=r,this._wasQuitRequested=!1,this._restartCount=0,this._isResponsive=!0,this._onPtyHostExit=this._register(new R),this.onPtyHostExit=this._onPtyHostExit.event,this._onPtyHostStart=this._register(new R),this.onPtyHostStart=this._onPtyHostStart.event,this._onPtyHostUnresponsive=this._register(new R),this.onPtyHostUnresponsive=this._onPtyHostUnresponsive.event,this._onPtyHostResponsive=this._register(new R),this.onPtyHostResponsive=this._onPtyHostResponsive.event,this._onPtyHostRequestResolveVariables=this._register(new R),this.onPtyHostRequestResolveVariables=this._onPtyHostRequestResolveVariables.event,this._onProcessData=this._register(new R),this.onProcessData=this._onProcessData.event,this._onProcessReady=this._register(new R),this.onProcessReady=this._onProcessReady.event,this._onProcessReplay=this._register(new R),this.onProcessReplay=this._onProcessReplay.event,this._onProcessOrphanQuestion=this._register(new R),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidRequestDetach=this._register(new R),this.onDidRequestDetach=this._onDidRequestDetach.event,this._onDidChangeProperty=this._register(new R),this.onDidChangeProperty=this._onDidChangeProperty.event,this._onProcessExit=this._register(new R),this.onProcessExit=this._onProcessExit.event,yM(),this._register(this._ptyHostStarter),this._register(Se(()=>this._disposePtyHost())),this._resolveVariablesRequestStore=this._register(new md(void 0,this._logService)),this._register(this._resolveVariablesRequestStore.onCreateRequest(this._onPtyHostRequestResolveVariables.fire,this._onPtyHostRequestResolveVariables)),this._ptyHostStarter.onRequestConnection&&this._register(z.once(this._ptyHostStarter.onRequestConnection)(()=>this._ensurePtyHost())),this._ptyHostStarter.onWillShutdown&&this._register(this._ptyHostStarter.onWillShutdown(()=>this._wasQuitRequested=!0))}get _ignoreProcessNames(){return this._configurationService.getValue("terminal.integrated.ignoreProcessNames")}async _refreshIgnoreProcessNames(){return this._optionalProxy?.refreshIgnoreProcessNames?.(this._ignoreProcessNames)}async _resolveShellEnv(){if(he)return process.env;try{return await sg(this._configurationService,this._logService,{_:[]},process.env)}catch(t){return this._logService.error("ptyHost was unable to resolve shell environment",t),{}}}_startPtyHost(){const t=this._ptyHostStarter.start(),i=t.client;this._logService.getLevel()===j.Trace&&this._logService.trace("PtyHostService#_startPtyHost",new Error().stack?.replace(/^Error/,"")),Yc.toService(i.getChannel(ul.Heartbeat)).onBeat(()=>this._handleHeartbeat()),this._handleHeartbeat(!0),this._register(t.onDidProcessExit(n=>{this._onPtyHostExit.fire(n.code),!this._wasQuitRequested&&!this._store.isDisposed&&(this._restartCount<=Q1.MaxRestarts?(this._logService.error(`ptyHost terminated unexpectedly with code ${n.code}`),this._restartCount++,this.restartPtyHost()):this._logService.error(`ptyHost terminated unexpectedly with code ${n.code}, giving up`))}));const r=Yc.toService(i.getChannel(ul.PtyHost));return this._register(r.onProcessData(n=>this._onProcessData.fire(n))),this._register(r.onProcessReady(n=>this._onProcessReady.fire(n))),this._register(r.onProcessExit(n=>this._onProcessExit.fire(n))),this._register(r.onDidChangeProperty(n=>this._onDidChangeProperty.fire(n))),this._register(r.onProcessReplay(n=>this._onProcessReplay.fire(n))),this._register(r.onProcessOrphanQuestion(n=>this._onProcessOrphanQuestion.fire(n))),this._register(r.onDidRequestDetach(n=>this._onDidRequestDetach.fire(n))),this._register(new B6(this._loggerService,i.getChannel(ul.Logger))),this.__connection=t,this.__proxy=r,this._onPtyHostStart.fire(),this._register(this._configurationService.onDidChangeConfiguration(async n=>{n.affectsConfiguration("terminal.integrated.ignoreProcessNames")&&await this._refreshIgnoreProcessNames()})),this._refreshIgnoreProcessNames(),[t,r]}async createProcess(t,i,s,r,n,o,a,c,l,u,h){const f=setTimeout(()=>this._handleUnresponsiveCreateProcess(),gi.CreateProcessTimeout),p=await this._proxy.createProcess(t,i,s,r,n,o,a,c,l,u,h);return clearTimeout(f),p}updateTitle(t,i,s){return this._proxy.updateTitle(t,i,s)}updateIcon(t,i,s,r){return this._proxy.updateIcon(t,i,s,r)}attachToProcess(t){return this._proxy.attachToProcess(t)}detachFromProcess(t,i){return this._proxy.detachFromProcess(t,i)}shutdownAll(){return this._proxy.shutdownAll()}listProcesses(){return this._proxy.listProcesses()}async getPerformanceMarks(){return this._optionalProxy?.getPerformanceMarks()??[]}async reduceConnectionGraceTime(){return this._optionalProxy?.reduceConnectionGraceTime()}start(t){return this._proxy.start(t)}shutdown(t,i){return this._proxy.shutdown(t,i)}input(t,i){return this._proxy.input(t,i)}processBinary(t,i){return this._proxy.processBinary(t,i)}resize(t,i,s){return this._proxy.resize(t,i,s)}clearBuffer(t){return this._proxy.clearBuffer(t)}acknowledgeDataEvent(t,i){return this._proxy.acknowledgeDataEvent(t,i)}setUnicodeVersion(t,i){return this._proxy.setUnicodeVersion(t,i)}getInitialCwd(t){return this._proxy.getInitialCwd(t)}getCwd(t){return this._proxy.getCwd(t)}async getLatency(){const t=new Qs,i=await this._proxy.getLatency();return t.stop(),[{label:"ptyhostservice<->ptyhost",latency:t.elapsed()},...i]}orphanQuestionReply(t){return this._proxy.orphanQuestionReply(t)}installAutoReply(t,i){return this._proxy.installAutoReply(t,i)}uninstallAllAutoReplies(){return this._proxy.uninstallAllAutoReplies()}getDefaultSystemShell(t){return this._optionalProxy?.getDefaultSystemShell(t)??LE(t??un,process.env)}async getProfiles(t,i,s,r=!1){const n=await this._resolveShellEnv();return NM(i,s,r,this._configurationService,n,void 0,this._logService,this._resolveVariables.bind(this,t))}async getEnvironment(){return this.__proxy?this._proxy.getEnvironment():{...process.env}}getWslPath(t,i){return this._proxy.getWslPath(t,i)}getRevivedPtyNewId(t,i){return this._proxy.getRevivedPtyNewId(t,i)}setTerminalLayoutInfo(t){return this._proxy.setTerminalLayoutInfo(t)}async getTerminalLayoutInfo(t){return this._optionalProxy?.getTerminalLayoutInfo(t)}async requestDetachInstance(t,i){return this._proxy.requestDetachInstance(t,i)}async acceptDetachInstanceReply(t,i){return this._proxy.acceptDetachInstanceReply(t,i)}async freePortKillProcess(t){if(!this._proxy.freePortKillProcess)throw new Error("freePortKillProcess does not exist on the pty proxy");return this._proxy.freePortKillProcess(t)}async serializeTerminalState(t){return this._proxy.serializeTerminalState(t)}async reviveTerminalProcesses(t,i,s){return this._proxy.reviveTerminalProcesses(t,i,s)}async refreshProperty(t,i){return this._proxy.refreshProperty(t,i)}async updateProperty(t,i,s){return this._proxy.updateProperty(t,i,s)}async restartPtyHost(){this._disposePtyHost(),this._isResponsive=!0,this._startPtyHost()}_disposePtyHost(){this._proxy.shutdownAll(),this._connection.store.dispose()}_handleHeartbeat(t){this._clearHeartbeatTimeouts(),this._heartbeatFirstTimeout=setTimeout(()=>this._handleHeartbeatFirstTimeout(),t?gi.ConnectingBeatInterval:gi.BeatInterval*gi.FirstWaitMultiplier),this._isResponsive||(this._isResponsive=!0,this._onPtyHostResponsive.fire())}_handleHeartbeatFirstTimeout(){this._logService.warn(`No ptyHost heartbeat after ${gi.BeatInterval*gi.FirstWaitMultiplier/1e3} seconds`),this._heartbeatFirstTimeout=void 0,this._heartbeatSecondTimeout=setTimeout(()=>this._handleHeartbeatSecondTimeout(),gi.BeatInterval*gi.SecondWaitMultiplier)}_handleHeartbeatSecondTimeout(){this._logService.error(`No ptyHost heartbeat after ${(gi.BeatInterval*gi.FirstWaitMultiplier+gi.BeatInterval*gi.FirstWaitMultiplier)/1e3} seconds`),this._heartbeatSecondTimeout=void 0,this._isResponsive&&(this._isResponsive=!1,this._onPtyHostUnresponsive.fire())}_handleUnresponsiveCreateProcess(){this._clearHeartbeatTimeouts(),this._logService.error(`No ptyHost response to createProcess after ${gi.CreateProcessTimeout/1e3} seconds`),this._isResponsive&&(this._isResponsive=!1,this._onPtyHostUnresponsive.fire())}_clearHeartbeatTimeouts(){this._heartbeatFirstTimeout&&(clearTimeout(this._heartbeatFirstTimeout),this._heartbeatFirstTimeout=void 0),this._heartbeatSecondTimeout&&(clearTimeout(this._heartbeatSecondTimeout),this._heartbeatSecondTimeout=void 0)}_resolveVariables(t,i){return this._resolveVariablesRequestStore.createRequest({workspaceId:t,originalText:i})}async acceptPtyHostResolvedVariables(t,i){this._resolveVariablesRequestStore.acceptReply(t,i)}},wd=__decorate([__param(1,Zt),__param(2,fe),__param(3,rc)],wd)}});function BM(e){return{transformIncoming:t=>t.scheme==="vscode-remote"?{scheme:"file",path:t.path,query:t.query,fragment:t.fragment}:t.scheme==="file"?{scheme:"vscode-local",path:t.path,query:t.query,fragment:t.fragment}:t,transformOutgoing:t=>t.scheme==="file"?{scheme:"vscode-remote",authority:e,path:t.path,query:t.query,fragment:t.fragment}:t.scheme==="vscode-local"?{scheme:"file",path:t.path,query:t.query,fragment:t.fragment}:t,transformOutgoingScheme:t=>t==="file"?"vscode-remote":t==="vscode-local"?"file":t}}function dl(e){return new _6(BM(e))}var _d=y({"out-build/vs/workbench/api/node/uriTransformer.js"(){"use strict";Ko()}});import{exec as bd}from"child_process";function J1(e){return new Promise((t,i)=>{let s;const r=new Map;function n(c,l,u,h,f){const p=r.get(l);if(c===e||p){const g={name:o(u),cmd:u,pid:c,ppid:l,load:h,mem:f};r.set(c,g),c===e&&(s=g),p&&(p.children||(p.children=[]),p.children.push(g),p.children.length>1&&(p.children=p.children.sort((v,w)=>v.pid-w.pid)))}}function o(c){const l=/--utility-sub-type=network/i,u=/--crashes-directory/i,h=/\\pipe\\winpty-control/i,f=/conhost\.exe.+--headless/i,p=/--type=([a-zA-Z-]+)/;if(u.exec(c))return"electron-crash-reporter";if(h.exec(c))return"winpty-agent";if(f.exec(c))return"conpty-agent";let g=p.exec(c);if(g&&g.length===2)return g[1]==="renderer"?"window":g[1]==="utility"?l.exec(c)?"utility-network-service":"utility-process":g[1]==="extensionHost"?"extension-host":g[1];const v=/[a-zA-Z-]+\.js/g;let w="";do g=v.exec(c),g&&(w+=g+" ");while(g);return w&&c.indexOf("node ")<0&&c.indexOf("node.exe")<0?`electron-nodejs (${w})`:c}if(process.platform==="win32"){const c=l=>l.indexOf("\\\\?\\")===0||l.indexOf("\\??\\")===0?l.substring(4):l.indexOf('"\\\\?\\')===0||l.indexOf('"\\??\\')===0?'"'+l.substring(5):l;import("@vscode/windows-process-tree").then(l=>{l.getProcessList(e,u=>{if(!u){i(new Error(`Root process ${e} not found`));return}l.getProcessCpuUsage(u,h=>{const f=new Map;h.forEach(p=>{const g=c(p.commandLine||"");f.set(p.pid,{name:o(g),cmd:g,pid:p.pid,ppid:p.ppid,load:p.cpu||0,mem:p.memory||0})}),s=f.get(e),s?(f.forEach(p=>{const g=f.get(p.ppid);g&&(g.children||(g.children=[]),g.children.push(p))}),f.forEach(p=>{p.children&&(p.children=p.children.sort((g,v)=>g.pid-v.pid))}),t(s)):i(new Error(`Root process ${e} not found`))})},l.ProcessDataFlag.CommandLine|l.ProcessDataFlag.Memory)})}else{let c=function(){let l=[s];const u=[];for(;l.length;){const f=l.shift();f&&(u.push(f.pid),f.children&&(l=l.concat(f.children)))}let h=JSON.stringify(Ct.asFileUri("vs/base/node/cpuUsage.sh").fsPath);h+=" "+u.join(" "),bd(h,{},(f,p,g)=>{if(f||g)i(f||new Error(g.toString()));else{const v=p.toString().split(`
`);for(let w=0;w<u.length;w++){const S=r.get(u[w]);S.load=parseFloat(v[w])}if(!s){i(new Error(`Root process ${e} not found`));return}t(s)}})};var a=c;bd("which ps",{},(l,u,h)=>{if(l||h)if(process.platform!=="linux")i(l||new Error(h.toString()));else{const f=JSON.stringify(Ct.asFileUri("vs/base/node/ps.sh").fsPath);bd(f,{},(p,g,v)=>{p||v?i(p||new Error(v.toString())):(n9(g,n),c())})}else{const f=u.toString().trim();bd(`${f} -ax -o pid=,ppid=,pcpu=,pmem=,command=`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(g,v,w)=>{g||w&&!w.includes("screen size is bogus")?i(g||new Error(w.toString())):(n9(v,n),process.platform==="linux"?c():s?t(s):i(new Error(`Root process ${e} not found`)))})}})}})}function n9(e,t){const i=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,s=e.toString().split(`
`);for(const r of s){const n=i.exec(r.trim());n&&n.length===6&&t(parseInt(n[1]),parseInt(n[2]),n[5],parseFloat(n[3]),parseFloat(n[4]))}}var o9=y({"out-build/vs/base/node/ps.js"(){"use strict";xe()}});function a9(e){return!!e.hostName&&!!e.errorMessage}var c9,zM,qM=y({"out-build/vs/platform/diagnostics/common/diagnostics.js"(){"use strict";se(),c9="diagnosticsService",zM=te(c9)}});import*as GM from"fs";import*as vi from"os";async function Ed(e,t){const i=`${e}::${t.join(":")}`,s=Y1.get(i);if(s)return s;const r=[{tag:"grunt.js",filePattern:/^gruntfile\.js$/i},{tag:"gulp.js",filePattern:/^gulpfile\.js$/i},{tag:"tsconfig.json",filePattern:/^tsconfig\.json$/i},{tag:"package.json",filePattern:/^package\.json$/i},{tag:"jsconfig.json",filePattern:/^jsconfig\.json$/i},{tag:"tslint.json",filePattern:/^tslint\.json$/i},{tag:"eslint.json",filePattern:/^eslint\.json$/i},{tag:"tasks.json",filePattern:/^tasks\.json$/i},{tag:"launch.json",filePattern:/^launch\.json$/i},{tag:"mcp.json",filePattern:/^mcp\.json$/i},{tag:"settings.json",filePattern:/^settings\.json$/i},{tag:"webpack.config.js",filePattern:/^webpack\.config\.js$/i},{tag:"project.json",filePattern:/^project\.json$/i},{tag:"makefile",filePattern:/^makefile$/i},{tag:"sln",filePattern:/^.+\.sln$/i},{tag:"csproj",filePattern:/^.+\.csproj$/i},{tag:"cmake",filePattern:/^.+\.cmake$/i},{tag:"github-actions",filePattern:/^.+\.ya?ml$/i,relativePathPattern:/^\.github(?:\/|\\)workflows$/i},{tag:"devcontainer.json",filePattern:/^devcontainer\.json$/i},{tag:"dockerfile",filePattern:/^(dockerfile|docker\-compose\.ya?ml)$/i},{tag:"cursorrules",filePattern:/^\.cursorrules$/i}],n=new Map,o=new Map,a=2e4;function c(u,h,f,p){const g=h.substring(u.length+1);return Yt.withAsyncBody(async v=>{let w;p.readdirCount++;try{w=await Ce.readdir(h,{withFileTypes:!0})}catch{v();return}if(p.count>=a){p.count+=w.length,p.maxReached=!0,v();return}let S=w.length;if(S===0){v();return}let E=w;p.count+w.length>a&&(p.maxReached=!0,S=a-p.count,E=w.slice(0,S)),p.count+=w.length;for(const P of E)if(P.isDirectory()){if(f.includes(P.name)||await c(u,W(h,P.name),f,p),--S===0){v();return}}else{const A=P.name.lastIndexOf(".");if(A>=0){const D=P.name.substring(A+1);D&&n.set(D,(n.get(D)??0)+1)}for(const D of r)D.relativePathPattern?.test(g)!==!1&&D.filePattern.test(P.name)&&o.set(D.tag,(o.get(D.tag)??0)+1);if(--S===0){v();return}}})}const l=Yt.withAsyncBody(async u=>{const h={count:0,maxReached:!1,readdirCount:0},f=new Qs(!0);await c(e,e,t,h);const p=await QM(e);u({configFiles:X1(o),fileTypes:X1(n),fileCount:h.count,maxFilesReached:h.maxReached,launchConfigFiles:p,totalScanTime:f.elapsed(),totalReaddirCount:h.readdirCount})});return Y1.set(i,l),l}function X1(e){return Array.from(e.entries(),([t,i])=>({name:t,count:i})).sort((t,i)=>i.count-t.count)}function l9(){const e={os:`${vi.type()} ${vi.arch()} ${vi.release()}`,memory:`${(vi.totalmem()/Rn.GB).toFixed(2)}GB (${(vi.freemem()/Rn.GB).toFixed(2)}GB free)`,vmHint:`${Math.round(F1.value()*100)}%`},t=vi.cpus();return t&&t.length>0&&(e.cpus=`${t[0].model} (${t.length} x ${t[0].speed})`),e}async function QM(e){try{const t=new Map,i=W(e,".vscode","launch.json"),s=await GM.promises.readFile(i),r=[],n=wo(s.toString(),r);if(r.length)return console.log(`Unable to parse ${i}`),[];if(_o(n)==="object"&&n.configurations)for(const o of n.configurations){const a=o.type;a&&(t.has(a)?t.set(a,t.get(a)+1):t.set(a,1))}return X1(t)}catch{return[]}}var Y1,Z1,JM=y({"out-build/vs/platform/diagnostics/node/diagnosticsService.js"(){"use strict";Ne(),xn(),xe(),de(),K(),so(),Y(),p6(),di(),o9(),qM(),Xe(),mi(),ji(),Y1=new Map,Z1=class{constructor(t,i){this.telemetryService=t,this.productService=i}formatMachineInfo(t){const i=[];return i.push(`OS Version: ${t.os}`),i.push(`CPUs: ${t.cpus}`),i.push(`Memory (System): ${t.memory}`),i.push(`VM: ${t.vmHint}`),i.join(`
`)}formatEnvironment(t){const i=[];i.push(`Version: ${this.productService.nameShort} ${this.productService.version} (${this.productService.commit||"Commit unknown"}, ${this.productService.date||"Date unknown"})`),i.push(`OS Version: ${vi.type()} ${vi.arch()} ${vi.release()}`);const s=vi.cpus();return s&&s.length>0&&i.push(`CPUs: ${s[0].model} (${s.length} x ${s[0].speed})`),i.push(`Memory (System): ${(vi.totalmem()/Rn.GB).toFixed(2)}GB (${(vi.freemem()/Rn.GB).toFixed(2)}GB free)`),he||i.push(`Load (avg): ${vi.loadavg().map(r=>Math.round(r)).join(", ")}`),i.push(`VM: ${Math.round(F1.value()*100)}%`),i.push(`Screen Reader: ${t.screenReader?"yes":"no"}`),i.push(`Process Argv: ${t.mainArguments.join(" ")}`),i.push(`GPU Status: ${this.expandGPUFeatures(t.gpuFeatureStatus)}`),i.join(`
`)}async getPerformanceInfo(t,i){return Promise.all([J1(t.mainPID),this.formatWorkspaceMetadata(t)]).then(async s=>{let[r,n]=s,o=this.formatProcessList(t,r);return i.forEach(a=>{if(a9(a))o+=`
${a.errorMessage}`,n+=`
${a.errorMessage}`;else if(o+=`
Remote: ${a.hostName}`,a.processes&&(o+=`
${this.formatProcessList(t,a.processes)}`),a.workspaceMetadata){n+=`
| Remote: ${a.hostName}`;for(const c of Object.keys(a.workspaceMetadata)){const l=a.workspaceMetadata[c];let u=`${l.fileCount} files`;l.maxFilesReached&&(u=`more than ${u}`),n+=`| Folder (${c}): ${u}`,n+=this.formatWorkspaceStats(l)}}}),{processInfo:o,workspaceInfo:n}})}async getSystemInfo(t,i){const{memory:s,vmHint:r,os:n,cpus:o}=l9(),a={os:n,memory:s,cpus:o,vmHint:r,processArgs:`${t.mainArguments.join(" ")}`,gpuStatus:t.gpuFeatureStatus,screenReader:`${t.screenReader?"yes":"no"}`,remoteData:i};return he||(a.load=`${vi.loadavg().map(c=>Math.round(c)).join(", ")}`),nt&&(a.linuxEnv={desktopSession:process.env.DESKTOP_SESSION,xdgSessionDesktop:process.env.XDG_SESSION_DESKTOP,xdgCurrentDesktop:process.env.XDG_CURRENT_DESKTOP,xdgSessionType:process.env.XDG_SESSION_TYPE}),Promise.resolve(a)}async getDiagnostics(t,i){const s=[];return J1(t.mainPID).then(async r=>(s.push(""),s.push(this.formatEnvironment(t)),s.push(""),s.push(this.formatProcessList(t,r)),t.windows.some(n=>n.folderURIs&&n.folderURIs.length>0&&!n.remoteAuthority)&&(s.push(""),s.push("Workspace Stats: "),s.push(await this.formatWorkspaceMetadata(t))),i.forEach(n=>{if(a9(n))s.push(`
${n.errorMessage}`);else if(s.push(`
`),s.push(`Remote: ${n.hostName}`),s.push(this.formatMachineInfo(n.machineInfo)),n.processes&&s.push(this.formatProcessList(t,n.processes)),n.workspaceMetadata)for(const o of Object.keys(n.workspaceMetadata)){const a=n.workspaceMetadata[o];let c=`${a.fileCount} files`;a.maxFilesReached&&(c=`more than ${c}`),s.push(`Folder (${o}): ${c}`),s.push(this.formatWorkspaceStats(a))}}),s.push(""),s.push(""),s.join(`
`)))}formatWorkspaceStats(t){const i=[];let r=0;const n=(l,u)=>{const h=` ${l}(${u})`;r+h.length>60?(i.push(o),o="| ",r=o.length):r+=h.length,o+=h};let o="| File types:";const a=10,c=t.fileTypes.length>a?a:t.fileTypes.length;for(let l=0;l<c;l++){const u=t.fileTypes[l];n(u.name,u.count)}if(i.push(o),t.configFiles.length>=0&&(o="| Conf files:",r=0,t.configFiles.forEach(l=>{n(l.name,l.count)}),i.push(o)),t.launchConfigFiles.length>0){let l="| Launch Configs:";t.launchConfigFiles.forEach(u=>{const h=u.count>1?` ${u.name}(${u.count})`:` ${u.name}`;l+=h}),i.push(l)}return i.join(`
`)}expandGPUFeatures(t){const i=Math.max(...Object.keys(t).map(s=>s.length));return Object.keys(t).map(s=>`${s}: ${" ".repeat(i-s.length)} ${t[s]}`).join(`
`)}formatWorkspaceMetadata(t){const i=[],s=[];return t.windows.forEach(r=>{r.folderURIs.length===0||r.remoteAuthority||(i.push(`| Window (${r.title})`),r.folderURIs.forEach(n=>{const o=b.revive(n);if(o.scheme===Z.file){const a=o.fsPath;s.push(Ed(a,["node_modules",".git"]).then(c=>{let l=`${c.fileCount} files`;c.maxFilesReached&&(l=`more than ${l}`),i.push(`| Folder (${ut(a)}): ${l}`),i.push(this.formatWorkspaceStats(c))}).catch(c=>{i.push(`| Error: Unable to collect workspace stats for folder ${a} (${c.toString()})`)}))}else i.push(`| Folder (${o.toString()}): Workspace stats not available.`)}))}),Promise.all(s).then(r=>i.join(`
`)).catch(r=>`Unable to collect workspace stats: ${r}`)}formatProcessList(t,i){const s=new Map;t.windows.forEach(n=>s.set(n.pid,`window [${n.id}] (${n.title})`)),t.pidToNames.forEach(({pid:n,name:o})=>s.set(n,o));const r=[];return r.push("CPU % Mem MB PID Process"),i&&this.formatProcessItem(t.mainPID,s,r,i,0),r.join(`
`)}formatProcessItem(t,i,s,r,n){const o=n===0;let a;o?a=r.pid===t?`${this.productService.applicationName} main`:"remote agent":i.has(r.pid)?a=i.get(r.pid):a=`${" ".repeat(n)} ${r.name}`;const c=process.platform==="win32"?r.mem:vi.totalmem()*(r.mem/100);s.push(`${r.load.toFixed(0).padStart(5," ")} ${(c/Rn.MB).toFixed(0).padStart(6," ")} ${r.pid.toFixed(0).padStart(6," ")} ${a}`),Array.isArray(r.children)&&r.children.forEach(l=>this.formatProcessItem(t,i,s,l,n+1))}async getWorkspaceFileExtensions(t){const i=new Set;for(const{uri:s}of t.folders){const r=b.revive(s);if(r.scheme!==Z.file)continue;const n=r.fsPath;try{(await Ed(n,["node_modules",".git"])).fileTypes.forEach(a=>i.add(a.name))}catch{}}return{extensions:[...i]}}async reportWorkspaceStats(t){for(const{uri:i}of t.folders){const s=b.revive(i);if(s.scheme!==Z.file)continue;const r=s.fsPath;try{const n=await Ed(r,["node_modules",".git"]);this.telemetryService.publicLog2("workspace.stats",{"workspace.id":t.telemetryId,rendererSessionId:t.rendererSessionId}),n.fileTypes.forEach(o=>{this.telemetryService.publicLog2("workspace.stats.file",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),n.launchConfigFiles.forEach(o=>{this.telemetryService.publicLog2("workspace.stats.launchConfigFile",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),n.configFiles.forEach(o=>{this.telemetryService.publicLog2("workspace.stats.configFiles",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),this.telemetryService.publicLog2("workspace.stats.metadata",{duration:n.totalScanTime,reachedLimit:n.maxFilesReached,fileCount:n.fileCount,readdirCount:n.totalReaddirCount})}catch{}}}},Z1=__decorate([__param(0,fi),__param(1,Et)],Z1)}});import*as XM from"node:inspector";var u9,YM=y({"out-build/vs/server/node/remoteAgentEnvironmentImpl.js"(){"use strict";K(),qs(),Y(),_d(),Ko(),o9(),JM(),de(),_t(),u9=class cC{static{this._namePool=1}constructor(t,i,s,r){this._connectionToken=t,this._environmentService=i,this._userDataProfilesService=s,this._extensionHostStatusService=r}async call(t,i,s){switch(i){case"getEnvironmentData":{const r=s,n=dl(r.remoteAuthority);let o=await this._getEnvironmentData(r.profile);return o=dr(o,n),o}case"getExtensionHostExitInfo":{const r=s;return this._extensionHostStatusService.getExitInfo(r.reconnectionToken)}case"getDiagnosticInfo":{const r=s,n={machineInfo:l9()},o=r.includeProcesses?J1(process.pid):Promise.resolve();let a=[];const c={};if(r.folders){const l=dl("");a=r.folders.map(h=>b.revive(l.transformIncoming(h))).filter(h=>h.scheme==="file").map(h=>Ed(h.fsPath,["node_modules",".git"]).then(f=>{c[ut(h.fsPath)]=f}))}return Promise.all([o,...a]).then(([l,u])=>(n.processes=l||void 0,n.workspaceMetadata=r.folders?c:void 0,n))}}throw new Error(`IPC Command ${i} not found`)}listen(t,i,s){throw new Error("Not supported")}async _waitForInspectorPort(t=5e3){const i=Date.now()+t;for(;Date.now()<i;){const s=XM.url();if(s){const r=/:(\d+)\//.exec(s);return r?+r[1]:void 0}await new Promise(r=>setTimeout(r,100))}}async _getEnvironmentData(t){t&&!this._userDataProfilesService.profiles.some(s=>s.id===t)&&await this._userDataProfilesService.createProfile(t,t);let i=!1;if(process.platform==="linux"){const s=process.glibcVersion;i=(s?parseInt(s.split(".")[1]):28)<=27||!!process.env.VSCODE_SERVER_CUSTOM_GLIBC_LINKER}return{pid:process.pid,connectionToken:this._connectionToken.type!==0?this._connectionToken.value:"",appRoot:b.file(this._environmentService.appRoot),settingsPath:this._environmentService.machineSettingsResource,logsPath:this._environmentService.logsHome,extensionHostLogsPath:oe(this._environmentService.logsHome,`exthost${cC._namePool++}`),globalStorageHome:this._userDataProfilesService.defaultProfile.globalStorageHome,workspaceStorageHome:this._environmentService.workspaceStorageHome,localHistoryHome:this._environmentService.localHistoryHome,userHome:this._environmentService.userHome,os:un,arch:process.arch,marks:jy(),useHostProxy:!!this._environmentService.args["use-host-proxy"],profiles:{home:this._userDataProfilesService.profilesHome,all:[...this._userDataProfilesService.profiles].map(s=>({...s}))},isUnsupportedGlibc:i}}}}}),h9,d9,ZM=y({"out-build/vs/platform/files/node/diskFileSystemProviderServer.js"(){"use strict";ie(),Yh(),V(),Fe(),Qa(),Ft(),h9=class extends G{constructor(e,t){super(),this.provider=e,this.logService=t,this.sessionToWatcher=new Map,this.watchRequests=new Map}call(e,t,i){const s=this.getUriTransformer(e);switch(t){case"stat":return this.stat(s,i[0]);case"readdir":return this.readdir(s,i[0]);case"realpath":return this.realpath(s,i[0]);case"open":return this.open(s,i[0],i[1]);case"close":return this.close(i[0]);case"read":return this.read(i[0],i[1],i[2]);case"readFile":return this.readFile(s,i[0],i[1]);case"write":return this.write(i[0],i[1],i[2],i[3],i[4]);case"writeFile":return this.writeFile(s,i[0],i[1],i[2]);case"rename":return this.rename(s,i[0],i[1],i[2]);case"copy":return this.copy(s,i[0],i[1],i[2]);case"cloneFile":return this.cloneFile(s,i[0],i[1]);case"mkdir":return this.mkdir(s,i[0]);case"delete":return this.delete(s,i[0],i[1]);case"watch":return this.watch(s,i[0],i[1],i[2],i[3]);case"unwatch":return this.unwatch(i[0],i[1])}throw new Error(`IPC Command ${t} not found`)}listen(e,t,i){const s=this.getUriTransformer(e);switch(t){case"fileChange":return this.onFileChange(s,i[0]);case"readFileStream":return this.onReadFileStream(s,i[0],i[1])}throw new Error(`Unknown event ${t}`)}stat(e,t){const i=this.transformIncoming(e,t,!0);return this.provider.stat(i)}readdir(e,t){const i=this.transformIncoming(e,t);return this.provider.readdir(i)}async realpath(e,t){const i=this.transformIncoming(e,t),s=await this.provider.realpath(i);return e.transformOutgoingURI(s)}async readFile(e,t,i){const s=this.transformIncoming(e,t,!0),r=await this.provider.readFile(s,i);return O.wrap(r)}onReadFileStream(e,t,i){const s=this.transformIncoming(e,t,!0),r=new Is,n=new R({onDidRemoveLastListener:()=>{r.cancel()}}),o=this.provider.readFileStream(s,i,r.token);return Su(o,{onData:a=>n.fire(O.wrap(a)),onError:a=>n.fire(a),onEnd:()=>{n.fire("end"),n.dispose(),r.dispose()}}),n.event}writeFile(e,t,i,s){const r=this.transformIncoming(e,t);return this.provider.writeFile(r,i.buffer,s)}open(e,t,i){const s=this.transformIncoming(e,t,!0);return this.provider.open(s,i)}close(e){return this.provider.close(e)}async read(e,t,i){const s=O.alloc(i),n=await this.provider.read(e,t,s.buffer,0,i);return[s,n]}write(e,t,i,s,r){return this.provider.write(e,t,i.buffer,s,r)}mkdir(e,t){const i=this.transformIncoming(e,t);return this.provider.mkdir(i)}delete(e,t,i){const s=this.transformIncoming(e,t);return this.provider.delete(s,i)}rename(e,t,i,s){const r=this.transformIncoming(e,t),n=this.transformIncoming(e,i);return this.provider.rename(r,n,s)}copy(e,t,i,s){const r=this.transformIncoming(e,t),n=this.transformIncoming(e,i);return this.provider.copy(r,n,s)}cloneFile(e,t,i){const s=this.transformIncoming(e,t),r=this.transformIncoming(e,i);return this.provider.cloneFile(s,r)}onFileChange(e,t){const i=new R({onWillAddFirstListener:()=>{this.sessionToWatcher.set(t,this.createSessionFileWatcher(e,i))},onDidRemoveLastListener:()=>{Mt(this.sessionToWatcher.get(t)),this.sessionToWatcher.delete(t)}});return i.event}async watch(e,t,i,s,r){const n=this.sessionToWatcher.get(t);if(n){const o=this.transformIncoming(e,s),a=n.watch(i,o,r);this.watchRequests.set(t+i,a)}}async unwatch(e,t){const i=e+t,s=this.watchRequests.get(i);s&&(Mt(s),this.watchRequests.delete(i))}dispose(){super.dispose();for(const[,e]of this.watchRequests)e.dispose();this.watchRequests.clear();for(const[,e]of this.sessionToWatcher)e.dispose();this.sessionToWatcher.clear()}},d9=class extends G{constructor(e,t,i,s){super(),this.uriTransformer=e,this.environmentService=s,this.watcherRequests=new Map,this.fileWatcher=this._register(new Zc(i)),this.registerListeners(t)}registerListeners(e){const t=this._register(new R);this._register(t.event(i=>{e.fire(i.map(s=>({resource:this.uriTransformer.transformOutgoingURI(s.resource),type:s.type,cId:s.cId})))})),this._register(this.fileWatcher.onDidChangeFile(i=>t.fire(i))),this._register(this.fileWatcher.onDidWatchError(i=>e.fire(i)))}getRecursiveWatcherOptions(e){}getExtraExcludes(e){}watch(e,t,i){const s=this.getExtraExcludes(this.environmentService);return Array.isArray(s)&&(i.excludes=[...i.excludes,...s]),this.watcherRequests.set(e,this.fileWatcher.watch(t,i)),Se(()=>{Mt(this.watcherRequests.get(e)),this.watcherRequests.delete(e)})}dispose(){for(const[,e]of this.watcherRequests)e.dispose();this.watcherRequests.clear(),super.dispose()}}}}),f9,p9,KM=y({"out-build/vs/server/node/remoteFileSystemProviderServer.js"(){"use strict";Y(),_d(),Yh(),de(),ZM(),f9=class extends h9{constructor(e,t,i){super(new Zc(e),e),this.environmentService=t,this.configurationService=i,this.uriTransformerCache=new Map,this._register(this.provider)}getUriTransformer(e){let t=this.uriTransformerCache.get(e.remoteAuthority);return t||(t=dl(e.remoteAuthority),this.uriTransformerCache.set(e.remoteAuthority,t)),t}transformIncoming(e,t,i=!1){if(i&&t.path==="/vscode-resource"&&t.query){const s=JSON.parse(t.query).requestResourcePath;return b.from({scheme:"file",path:s})}return b.revive(e.transformIncoming(t))}createSessionFileWatcher(e,t){return new p9(e,t,this.logService,this.environmentService,this.configurationService)}},p9=class extends d9{constructor(e,t,i,s,r){super(e,t,i,s)}getRecursiveWatcherOptions(e){const t=e.args["file-watcher-polling"];if(t){const i=t.split(Ga),s=Number(i[0]);if(s>0)return{usePolling:i.length>1?i.slice(1):!0,pollingInterval:s}}}getExtraExcludes(e){if(e.extensionsPath)return[Ee.join(e.extensionsPath,"**")]}}}}),m9,eF=y({"out-build/vs/platform/telemetry/common/remoteTelemetryChannel.js"(){"use strict";V(),m9=class extends G{constructor(e,t){super(),this.telemetryService=e,this.telemetryAppender=t}async call(e,t,i){switch(t){case"updateTelemetryLevel":{const{telemetryLevel:s}=i;return this.telemetryService.updateInjectedTelemetryLevel(s)}case"registerAuthId":{const{authId:s}=i;return this.telemetryService.registerAuthId(s)}case"logTelemetry":{const{eventName:s,data:r}=i;return this.telemetryAppender?this.telemetryAppender.log(s,r):Promise.resolve()}case"flushTelemetry":return this.telemetryAppender?this.telemetryAppender.flush():Promise.resolve();case"ping":return}throw new Error(`IPC Command ${t} not found`)}listen(e,t,i){throw new Error("Not supported")}dispose(){this.telemetryService.updateInjectedTelemetryLevel(0),super.dispose()}}}});function tF(){const e=m(2231,null,Rt.nameLong),t=m(2232,null,"https://cursor.com/privacy","https://cursor.com/security"),i=xs?"":m(2233,null);return`
${e} ${t} ${i}
`}var Sd,g9,iF=y({"out-build/vs/platform/telemetry/common/telemetryService.js"(){"use strict";V(),Si(),K(),lt(),ue(),ci(),xo(),Oo(),mi(),nr(),ji(),Mr(),Sd=class{static{this.IDLE_START_EVENT_NAME="UserIdleStart"}static{this.IDLE_STOP_EVENT_NAME="UserIdleStop"}constructor(t,i,s){this._configurationService=i,this._productService=s,this._experimentProperties={},this._disposables=new ct,this._cleanupPatterns=[],this._appenders=t.appenders,this._commonProperties=t.commonProperties??Object.create(null),this.sessionId=this._commonProperties.sessionID,this.machineId=this._commonProperties["common.machineId"],this.macMachineId=this._commonProperties["common.macMachineId"],this.sqmId=this._commonProperties["common.sqmId"],this.devDeviceId=this._commonProperties["common.devDeviceId"],this.firstSessionDate=this._commonProperties["common.firstSessionDate"],this.msftInternal=this._commonProperties["common.msftInternal"],this._piiPaths=t.piiPaths||[],this._telemetryLevel=3,this._sendErrorTelemetry=!!t.sendErrorTelemetry,this._cleanupPatterns=[/(vscode-)?file:\/\/\/.*?\/resources\/app\//gi];for(const r of this._piiPaths)this._cleanupPatterns.push(new RegExp(Dr(r),"gi")),r.indexOf("\\")>=0&&this._cleanupPatterns.push(new RegExp(Dr(r.replace(/\\/g,"/")),"gi"));this._updateTelemetryLevel(),this._disposables.add(this._configurationService.onDidChangeConfiguration(r=>{(r.affectsConfiguration(Ec)||r.affectsConfiguration(sh)||r.affectsConfiguration(ag))&&this._updateTelemetryLevel()}))}setExperimentProperty(t,i){this._experimentProperties[t]=i}_updateTelemetryLevel(){let t=JE(this._configurationService);const i=this._productService.enabledTelemetryLevels;if(i){this._sendErrorTelemetry=this.sendErrorTelemetry?i.error:!1;const s=i.usage?3:i.error?2:0;t=Math.min(t,s)}this._telemetryLevel=t}get sendErrorTelemetry(){return this._sendErrorTelemetry}get telemetryLevel(){return this._telemetryLevel}dispose(){this._disposables.dispose()}_log(t,i,s){this._telemetryLevel<i||(s=kn(s,this._experimentProperties),s=rh(s,this._cleanupPatterns),s=kn(s,this._commonProperties),this._appenders.forEach(r=>r.log(t,s)))}_capture(t,i,s){this._telemetryLevel<i||(s=kn(s,this._experimentProperties),s=rh(s,this._cleanupPatterns),s=kn(s,this._commonProperties),this._appenders.forEach(r=>{r.capture(t,s)}))}registerAuthId(t){this._appenders.forEach(i=>i.registerAuthId(t))}publicLog(t,i){this._log(t,3,i)}publicLog2(t,i){this.publicLog(t,i)}publicLogError(t,i){this._sendErrorTelemetry&&this._log(t,2,i)}publicLogError2(t,i){this.publicLogError(t,i)}publicLogCapture(t,i){this._capture(t,3,i)}},Sd=__decorate([__param(1,Zt),__param(2,Et)],Sd),g9=li.as(ns.Configuration),g9.registerConfiguration({id:zE,order:1,type:"object",title:"Crash Reporting",properties:{[Ec]:{type:"string",enum:["all","off"],enumDescriptions:["Send OS-level crash reports.","Disable crash reporting."],markdownDescription:tF(),default:"all",restricted:!0,scope:1,tags:["usesOnlineServices","telemetry"]},"telemetry.feedback.enabled":{type:"boolean",default:!1,description:m(2234,null)},[sh]:{type:"boolean",markdownDescription:Rt.privacyStatementUrl?m(2236,null,Rt.nameLong,Rt.privacyStatementUrl):m(2235,null,Rt.nameLong),default:!0,restricted:!0,markdownDeprecationMessage:m(2237,null,`\`#${Ec}#\``),scope:1,tags:["usesOnlineServices","telemetry"]}}})}}),xd,v9,kd,sF=y({"out-build/vs/platform/telemetry/common/serverTelemetryService.js"(){"use strict";ci(),se(),mi(),ji(),iF(),Mr(),xd=class extends Sd{constructor(t,i,s,r){super(t,s,r),this._injectedTelemetryLevel=i}publicLog(t,i){if(!(this._injectedTelemetryLevel<3))return super.publicLog(t,i)}publicLog2(t,i){return this.publicLog(t,i)}publicLogError(t,i){return this._injectedTelemetryLevel<2?Promise.resolve(void 0):super.publicLogError(t,i)}publicLogError2(t,i){return this.publicLogError(t,i)}async updateInjectedTelemetryLevel(t){if(t===void 0)throw this._injectedTelemetryLevel=0,new Error("Telemetry level cannot be undefined. This will cause infinite looping!");this._injectedTelemetryLevel=this._injectedTelemetryLevel?Math.min(this._injectedTelemetryLevel,t):t,this._injectedTelemetryLevel===0&&this.dispose()}},xd=__decorate([__param(2,Zt),__param(3,Et)],xd),v9=new class extends cg{async updateInjectedTelemetryLevel(){}},kd=fi}});function rF(e){const t=gn(e);return w9[t.toLowerCase()]}function y9(e,t){const i=_9.exec(e);return i?`${i[1].toLowerCase()}/${i[2].toLowerCase()}${i[3]??""}`:t?void 0:e}var Os,w9,_9,Pd=y({"out-build/vs/base/common/mime.js"(){"use strict";de(),Os=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list",html:"text/html"}),w9={".aac":"audio/x-aac",".avi":"video/x-msvideo",".bmp":"image/bmp",".flv":"video/x-flv",".gif":"image/gif",".ico":"image/x-icon",".jpe":"image/jpg",".jpeg":"image/jpg",".jpg":"image/jpg",".m1v":"video/mpeg",".m2a":"audio/mpeg",".m2v":"video/mpeg",".m3a":"audio/mpeg",".mid":"audio/midi",".midi":"audio/midi",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".mkv":"video/x-matroska",".mov":"video/quicktime",".movie":"video/x-sgi-movie",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".mp4":"video/mp4",".mp4a":"audio/mp4",".mp4v":"video/mp4",".mpe":"video/mpeg",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpg4":"video/mp4",".mpga":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".opus":"audio/opus",".ogv":"video/ogg",".png":"image/png",".psd":"image/vnd.adobe.photoshop",".qt":"video/quicktime",".spx":"audio/ogg",".svg":"image/svg+xml",".tga":"image/x-tga",".tif":"image/tiff",".tiff":"image/tiff",".wav":"audio/x-wav",".webm":"video/webm",".webp":"image/webp",".wma":"audio/x-ms-wma",".wmv":"video/x-ms-wmv",".woff":"application/font-woff"},_9=/^(.+)\/(.+?)(;.+)?$/}}),b9,E9,S9,x9=y({"out-build/vs/platform/remote/common/remoteAuthorityResolver.js"(){"use strict";ve(),se(),b9=te("remoteAuthorityResolverService"),(function(e){e[e.WebSocket=0]="WebSocket",e[e.Managed=1]="Managed"})(E9||(E9={})),(function(e){e.Unknown="Unknown",e.NotAvailable="NotAvailable",e.TemporarilyNotAvailable="TemporarilyNotAvailable",e.NoResolverFound="NoResolverFound",e.InvalidAuthority="InvalidAuthority"})(S9||(S9={}))}});function K1(e){if(e.scheme!==Z.vscodeNotebookCell)return;const t=e.fragment.indexOf("s");if(t<0)return;const i=parseInt(e.fragment.substring(0,t).replace(I9,""),ev),s=v_(e.fragment.substring(t+1)).toString();if(!isNaN(i))return{handle:i,notebook:e.with({scheme:s,fragment:null})}}function nF(e,t){const i=t.toString(ev),r=`${i.length<Id.length?Id[i.length-1]:"z"}${i}s${um(O.fromString(e.scheme),!0,!0)}`;return e.with({scheme:Z.vscodeNotebookCell,fragment:r})}function oF(e){if(e.scheme!==Z.vscodeNotebookMetadata)return;const t=v_(e.fragment).toString();return e.with({scheme:t,fragment:null})}function aF(e){const t=`${um(O.fromString(e.scheme),!0,!0)}`;return e.with({scheme:Z.vscodeNotebookMetadata,fragment:t})}function k9(e){if(e.scheme!==Z.vscodeNotebookCellOutput)return;const t=new URLSearchParams(e.query),i=t.get("openIn");if(!i)return;const s=t.get("outputId")??void 0,r=K1(e.with({scheme:Z.vscodeNotebookCell,query:null})),n=t.get("outputIndex")?parseInt(t.get("outputIndex")||"",10):void 0;return{notebook:r?r.notebook:e.with({scheme:t.get("notebookScheme")||Z.file,fragment:null,query:null}),openIn:i,outputId:s,outputIndex:n,cellHandle:r?.handle,cellFragment:e.fragment}}var P9,Id,I9,ev,C9,cF=y({"out-build/vs/workbench/services/notebook/common/notebookDocumentService.js"(){"use strict";Fe(),ri(),xe(),cx(),se(),P9=te("notebookDocumentService"),Id=["W","X","Y","Z","a","b","c","d","e","f"],I9=new RegExp(`^[${Id.join("")}]+`),ev=7,C9=class{constructor(){this._documents=new Pt}getNotebook(e){if(e.scheme===Z.vscodeNotebookCell){const t=K1(e);if(t){const i=this._documents.get(t.notebook);if(i)return i}}if(e.scheme===Z.vscodeNotebookCellOutput){const t=k9(e);if(t){const i=this._documents.get(t.notebook);if(i)return i}}return this._documents.get(e)}addNotebookDocument(e){this._documents.set(e.uri,e)}removeNotebookDocument(e){this._documents.delete(e.uri)}},nx(P9,C9,1)}});function lF(e){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(e)}var ta,uF,hF,D9,fl,R9,L9,A9,N9,O9,T9,M9,F9,dF,fF,U9,$9,W9,pF,mF,H9,gF,vF,yF,V9=y({"out-build/vs/workbench/contrib/notebook/common/notebookCommon.js"(){"use strict";Fe(),l1(),hn(),Pd(),xe(),de(),K(),Tu(),cF(),(function(e){e[e.Markup=1]="Markup",e[e.Code=2]="Code"})(ta||(ta={})),uF=["application/json","application/javascript","text/html","image/svg+xml",Os.latex,Os.markdown,"image/png","image/jpeg",Os.text],hF=[Os.latex,Os.markdown,"application/json","text/html","image/svg+xml","image/png","image/jpeg",Os.text],(function(e){e[e.Running=1]="Running",e[e.Idle=2]="Idle"})(D9||(D9={})),(function(e){e[e.Unconfirmed=1]="Unconfirmed",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"})(fl||(fl={})),(function(e){e[e.Unconfirmed=1]="Unconfirmed",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"})(R9||(R9={})),(function(e){e[e.WithHardKernelDependency=0]="WithHardKernelDependency",e[e.WithOptionalKernelDependency=1]="WithOptionalKernelDependency",e[e.Pure=2]="Pure",e[e.Never=3]="Never"})(L9||(L9={})),(function(e){e.Always="always",e.Never="never",e.Optional="optional"})(A9||(A9={})),(function(e){e[e.ModelChange=1]="ModelChange",e[e.Move=2]="Move",e[e.ChangeCellLanguage=5]="ChangeCellLanguage",e[e.Initialize=6]="Initialize",e[e.ChangeCellMetadata=7]="ChangeCellMetadata",e[e.Output=8]="Output",e[e.OutputItem=9]="OutputItem",e[e.ChangeCellContent=10]="ChangeCellContent",e[e.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",e[e.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",e[e.ChangeCellMime=13]="ChangeCellMime",e[e.Unknown=100]="Unknown"})(N9||(N9={})),(function(e){e[e.Handle=0]="Handle",e[e.Index=1]="Index"})(O9||(O9={})),(function(e){e[e.Replace=1]="Replace",e[e.Output=2]="Output",e[e.Metadata=3]="Metadata",e[e.CellLanguage=4]="CellLanguage",e[e.DocumentMetadata=5]="DocumentMetadata",e[e.Move=6]="Move",e[e.OutputItems=7]="OutputItems",e[e.PartialMetadata=8]="PartialMetadata",e[e.PartialInternalMetadata=9]="PartialInternalMetadata"})(T9||(T9={})),(function(e){e.scheme=Z.vscodeNotebookMetadata;function t(s){return aF(s)}e.generate=t;function i(s){return oF(s)}e.parse=i})(M9||(M9={})),(function(e){e.scheme=Z.vscodeNotebookCell;function t(c,l){return nF(c,l)}e.generate=t;function i(c){return K1(c)}e.parse=i;function s(c,l){return c.with({scheme:Z.vscodeNotebookCellOutput,query:new URLSearchParams({openIn:"editor",outputId:l??"",notebookScheme:c.scheme!==Z.file?c.scheme:""}).toString()})}e.generateCellOutputUriWithId=s;function r(c,l,u){return c.with({scheme:Z.vscodeNotebookCellOutput,fragment:l.fragment,query:new URLSearchParams({openIn:"notebook",outputIndex:String(u)}).toString()})}e.generateCellOutputUriWithIndex=r;function n(c){return k9(c)}e.parseCellOutputUri=n;function o(c,l,u){return e.generate(c,l).with({scheme:u})}e.generateCellPropertyUri=o;function a(c,l){if(c.scheme===l)return e.parse(c.with({scheme:e.scheme}))}e.parseCellPropertyUri=a})(F9||(F9={})),dF=new sc("notebookEditorCursorAtBoundary","none"),fF=new sc("notebookEditorCursorAtLineBoundary","none"),(function(e){e.default="default",e.option="option"})(U9||(U9={})),(function(e){e.Cells="cells",e.Text="text",e.None="none"})($9||($9={})),(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(W9||(W9={})),pF=class kp{static{this._prefix="notebook/"}static create(t,i){return`${kp._prefix}${t}/${i??t}`}static parse(t){if(t.startsWith(kp._prefix)){const i=t.substring(kp._prefix.length).split("/");if(i.length===2)return{notebookType:i[0],viewType:i[1]}}}},mF=new TextDecoder,H9="\x1B[A",gF=H9.split("").map(e=>e.charCodeAt(0)),vF=8,yF=13}});function B(e){return Object.assign(e,{apply:function(...i){if(i.length===0)return Reflect.construct(e,[]);{const s=i.length===1?[]:i[1];return Reflect.construct(e,s,i[0].constructor)}},call:function(...i){if(i.length===0)return Reflect.construct(e,[]);{const[s,...r]=i;return Reflect.construct(e,r,s.constructor)}}})}function j9(e){return e.isEmpty?`[${e.start.line}:${e.start.character})`:`[${e.start.line}:${e.start.character} -> ${e.end.line}:${e.end.character})`}function wF(e){let t=j9(e);return e.isEmpty||(e.active.isEqual(e.start)?t=`|${t}`:t=`${t}|`),t}function B9(e){let t="";for(let i=0;i<e.length;i++)t+=e[i].replace(/,/g,",,")+",";return t}function Cd(e){if(e){if(e.covered>e.total)throw new Error(`The total number of covered items (${e.covered}) cannot be greater than the total (${e.total})`);if(e.total<0)throw new Error(`The number of covered items (${e.total}) cannot be negative`)}}var tv,Fn,pr,iv,Un,zr,$n,sv,rv,Dd,pl,nv,Ts,Ms,ov,yi,av,z9,q9,ml,De,tt,gl,ia,G9,Wn,Rd,cv,Q9,vl,sa,ra,Ni,mr,yl,Ld,Ad,Nd,J9,Od,Td,Md,We,Fd,Ud,$d,Wd,lv,it,Hd,uv,X9,Y9,Z9,hv,gr,dv,fv,pv,K9,e8,Vd,jd,wl,X,Bd,zd,mv,gv,vv,na,qd,t8,Fs,_l,i8,Gd,s8,r8,oa,Qd,Jd,bl,yv,Xd,n8,o8,a8,c8,l8,u8,h8,d8,f8,p8,wv,Yd,Zd,m8,Kd,g8,_v,El,v8,bv,Sl,ef,tf,sf,y8,w8,rf,Ev,_8,Hn,qr,Sv,b8,aa,E8,ca,xv,kv,Pv,Iv,Cv,Dv,Rv,nf,S8,of,af,cf,lf,x8,k8,P8,Lv,Av,Gr,I8,C8,D8,R8,L8,A8,N8,O8,Nv,T8,M8,F8,Ov,U8,Vn,Tv,$8,W8,H8,la,uf,Mv,V8,j8,B8,z8,q8,Fv,G8,Q8,ua,J8,xl,X8,Uv,hf,kl,df,Y8,Z8,K8,e7,t7,i7,s7,$v,r7,n7,o7,ha,a7,c7,Wv,Hv,l7,Vv,jv,Bv,zv,qv,Gv,Qv,u7,Jv,Xv,h7,Ji,d7,f7,p7,Xi,Pl,m7,g7,v7,Il,Lt,Yv,y7,Qr,Zv,w7,_7,b7,E7,S7,x7,Kv=y({"out-build/vs/workbench/api/common/extHostTypes.js"(){"use strict";kt(),ve(),Ah(),ri(),Pd(),lt(),_e(),Y(),Bt(),cs(),Xe(),x9(),V9(),(function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"})(z9||(z9={})),(function(e){e[e.TerminalCommand=0]="TerminalCommand",e[e.Opener=1]="Opener",e[e.Command=3]="Command"})(q9||(q9={})),ml=tv=class{static from(...t){let i=t;return new tv(function(){if(i){for(const s of i)s&&typeof s.dispose=="function"&&s.dispose();i=void 0}})}#e;constructor(t){this.#e=t}dispose(){typeof this.#e=="function"&&(this.#e(),this.#e=void 0)}},ml=tv=__decorate([B],ml),De=Fn=class{static Min(...t){if(t.length===0)throw new TypeError;let i=t[0];for(let s=1;s<t.length;s++){const r=t[s];r.isBefore(i)&&(i=r)}return i}static Max(...t){if(t.length===0)throw new TypeError;let i=t[0];for(let s=1;s<t.length;s++){const r=t[s];r.isAfter(i)&&(i=r)}return i}static isPosition(t){if(!t)return!1;if(t instanceof Fn)return!0;const{line:i,character:s}=t;return typeof i=="number"&&typeof s=="number"}static of(t){if(t instanceof Fn)return t;if(this.isPosition(t))return new Fn(t.line,t.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}constructor(t,i){if(t<0)throw Ae("line must be non-negative");if(i<0)throw Ae("character must be non-negative");this._line=t,this._character=i}isBefore(t){return this._line<t._line?!0:t._line<this._line?!1:this._character<t._character}isBeforeOrEqual(t){return this._line<t._line?!0:t._line<this._line?!1:this._character<=t._character}isAfter(t){return!this.isBeforeOrEqual(t)}isAfterOrEqual(t){return!this.isBefore(t)}isEqual(t){return this._line===t._line&&this._character===t._character}compareTo(t){return this._line<t._line?-1:this._line>t.line?1:this._character<t._character?-1:this._character>t._character?1:0}translate(t,i=0){if(t===null||i===null)throw Ae();let s;return typeof t>"u"?s=0:typeof t=="number"?s=t:(s=typeof t.lineDelta=="number"?t.lineDelta:0,i=typeof t.characterDelta=="number"?t.characterDelta:0),s===0&&i===0?this:new Fn(this.line+s,this.character+i)}with(t,i=this.character){if(t===null||i===null)throw Ae();let s;return typeof t>"u"?s=this.line:typeof t=="number"?s=t:(s=typeof t.line=="number"?t.line:this.line,i=typeof t.character=="number"?t.character:this.character),s===this.line&&i===this.character?this:new Fn(s,i)}toJSON(){return{line:this.line,character:this.character}}[Symbol.for("debug.description")](){return`(${this.line}:${this.character})`}},De=Fn=__decorate([B],De),tt=pr=class{static isRange(t){return t instanceof pr?!0:t?De.isPosition(t.start)&&De.isPosition(t.end):!1}static of(t){if(t instanceof pr)return t;if(this.isRange(t))return new pr(t.start,t.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}constructor(t,i,s,r){let n,o;if(typeof t=="number"&&typeof i=="number"&&typeof s=="number"&&typeof r=="number"?(n=new De(t,i),o=new De(s,r)):De.isPosition(t)&&De.isPosition(i)&&(n=De.of(t),o=De.of(i)),!n||!o)throw new Error("Invalid arguments");n.isBefore(o)?(this._start=n,this._end=o):(this._start=o,this._end=n)}contains(t){return pr.isRange(t)?this.contains(t.start)&&this.contains(t.end):De.isPosition(t)?!(De.of(t).isBefore(this._start)||this._end.isBefore(t)):!1}isEqual(t){return this._start.isEqual(t._start)&&this._end.isEqual(t._end)}intersection(t){const i=De.Max(t.start,this._start),s=De.Min(t.end,this._end);if(!i.isAfter(s))return new pr(i,s)}union(t){if(this.contains(t))return this;if(t.contains(this))return t;const i=De.Min(t.start,this._start),s=De.Max(t.end,this.end);return new pr(i,s)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(t,i=this.end){if(t===null||i===null)throw Ae();let s;return t?De.isPosition(t)?s=t:(s=t.start||this.start,i=t.end||this.end):s=this.start,s.isEqual(this._start)&&i.isEqual(this.end)?this:new pr(s,i)}toJSON(){return[this.start,this.end]}[Symbol.for("debug.description")](){return j9(this)}},tt=pr=__decorate([B],tt),gl=iv=class extends tt{static isSelection(t){return t instanceof iv?!0:t?tt.isRange(t)&&De.isPosition(t.anchor)&&De.isPosition(t.active)&&typeof t.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}constructor(t,i,s,r){let n,o;if(typeof t=="number"&&typeof i=="number"&&typeof s=="number"&&typeof r=="number"?(n=new De(t,i),o=new De(s,r)):De.isPosition(t)&&De.isPosition(i)&&(n=De.of(t),o=De.of(i)),!n||!o)throw new Error("Invalid arguments");super(n,o),this._anchor=n,this._active=o}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}[Symbol.for("debug.description")](){return wF(this)}},gl=iv=__decorate([B],gl),(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(ia||(ia={})),(function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"})(G9||(G9={})),Wn=Un=class{static isTextEdit(t){return t instanceof Un?!0:t?tt.isRange(t)&&typeof t.newText=="string":!1}static replace(t,i){return new Un(t,i)}static insert(t,i){return Un.replace(new tt(t,t),i)}static delete(t){return Un.replace(t,"")}static setEndOfLine(t){const i=new Un(new tt(new De(0,0),new De(0,0)),"");return i.newEol=t,i}get range(){return this._range}set range(t){if(t&&!tt.isRange(t))throw Ae("range");this._range=t}get newText(){return this._newText||""}set newText(t){if(t&&typeof t!="string")throw Ae("newText");this._newText=t}get newEol(){return this._newEol}set newEol(t){if(t&&typeof t!="number")throw Ae("newEol");this._newEol=t}constructor(t,i){this._range=t,this._newText=i}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}},Wn=Un=__decorate([B],Wn),Rd=zr=class{static isNotebookCellEdit(t){return t instanceof zr?!0:t?Vn.isNotebookRange(t)&&Array.isArray(t.newCells):!1}static replaceCells(t,i){return new zr(t,i)}static insertCells(t,i){return new zr(new Vn(t,t),i)}static deleteCells(t){return new zr(t,[])}static updateCellMetadata(t,i){const s=new zr(new Vn(t,t),[]);return s.newCellMetadata=i,s}static updateNotebookMetadata(t){const i=new zr(new Vn(0,0),[]);return i.newNotebookMetadata=t,i}constructor(t,i){this.range=t,this.newCells=i}},Rd=zr=__decorate([B],Rd),cv=class Pp{static isSnippetTextEdit(t){return t instanceof Pp?!0:t?tt.isRange(t.range)&&sa.isSnippetString(t.snippet):!1}static replace(t,i){return new Pp(t,i)}static insert(t,i){return Pp.replace(new tt(t,t),i)}constructor(t,i){this.range=t,this.snippet=i}},(function(e){e[e.File=1]="File",e[e.Text=2]="Text",e[e.Cell=3]="Cell",e[e.CellReplace=5]="CellReplace",e[e.Snippet=6]="Snippet"})(Q9||(Q9={})),vl=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(t,i,s,r){this._edits.push({_type:1,from:t,to:i,options:s,metadata:r})}createFile(t,i,s){this._edits.push({_type:1,from:void 0,to:t,options:i,metadata:s})}deleteFile(t,i,s){this._edits.push({_type:1,from:t,to:void 0,options:i,metadata:s})}replaceNotebookMetadata(t,i,s){this._edits.push({_type:3,metadata:s,uri:t,edit:{editType:5,metadata:i}})}replaceNotebookCells(t,i,s,r){const n=i.start,o=i.end;(n!==o||s.length>0)&&this._edits.push({_type:5,uri:t,index:n,count:o-n,cells:s,metadata:r})}replaceNotebookCellMetadata(t,i,s,r){this._edits.push({_type:3,metadata:r,uri:t,edit:{editType:3,index:i,metadata:s}})}replace(t,i,s,r){this._edits.push({_type:2,uri:t,edit:new Wn(i,s),metadata:r})}insert(t,i,s,r){this.replace(t,new tt(i,i),s,r)}delete(t,i,s){this.replace(t,i,"",s)}has(t){return this._edits.some(i=>i._type===2&&i.uri.toString()===t.toString())}set(t,i){if(i)for(const s of i){if(!s)continue;let r,n;Array.isArray(s)?(r=s[0],n=s[1]):r=s,Rd.isNotebookCellEdit(r)?r.newCellMetadata?this.replaceNotebookCellMetadata(t,r.range.start,r.newCellMetadata,n):r.newNotebookMetadata?this.replaceNotebookMetadata(t,r.newNotebookMetadata,n):this.replaceNotebookCells(t,r.range,r.newCells,n):cv.isSnippetTextEdit(r)?this._edits.push({_type:6,uri:t,range:r.range,edit:r.snippet,metadata:n,keepWhitespace:r.keepWhitespace}):this._edits.push({_type:2,uri:t,edit:r,metadata:n})}else{for(let s=0;s<this._edits.length;s++){const r=this._edits[s];switch(r._type){case 2:case 6:case 3:case 5:r.uri.toString()===t.toString()&&(this._edits[s]=void 0);break}}VC(this._edits)}}get(t){const i=[];for(const s of this._edits)s._type===2&&s.uri.toString()===t.toString()&&i.push(s.edit);return i}entries(){const t=new Pt;for(const i of this._edits)if(i._type===2){let s=t.get(i.uri);s||(s=[i.uri,[]],t.set(i.uri,s)),s[1].push(i.edit)}return[...t.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}},vl=__decorate([B],vl),sa=$n=class{static isSnippetString(t){return t instanceof $n?!0:t?typeof t.value=="string":!1}static _escape(t){return t.replace(/\$|}|\\/g,"\\$&")}constructor(t){this._tabstop=1,this.value=t||""}appendText(t){return this.value+=$n._escape(t),this}appendTabstop(t=this._tabstop++){return this.value+="$",this.value+=t,this}appendPlaceholder(t,i=this._tabstop++){if(typeof t=="function"){const s=new $n;s._tabstop=this._tabstop,t(s),this._tabstop=s._tabstop,t=s.value}else t=$n._escape(t);return this.value+="${",this.value+=i,this.value+=":",this.value+=t,this.value+="}",this}appendChoice(t,i=this._tabstop++){const s=t.map(r=>r.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=i,this.value+="|",this.value+=s,this.value+="|}",this}appendVariable(t,i){if(typeof i=="function"){const s=new $n;s._tabstop=this._tabstop,i(s),this._tabstop=s._tabstop,i=s.value}else typeof i=="string"&&(i=i.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=t,i&&(this.value+=":",this.value+=i),this.value+="}",this}},sa=$n=__decorate([B],sa),(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(ra||(ra={})),(function(e){e[e.Hint=3]="Hint",e[e.Information=2]="Information",e[e.Warning=1]="Warning",e[e.Error=0]="Error"})(Ni||(Ni={})),mr=sv=class{static isLocation(t){return t instanceof sv?!0:t?tt.isRange(t.range)&&b.isUri(t.uri):!1}constructor(t,i){if(this.uri=t,i)if(tt.isRange(i))this.range=tt.of(i);else if(De.isPosition(i))this.range=new tt(i,i);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}},mr=sv=__decorate([B],mr),yl=class{static is(t){return t?typeof t.message=="string"&&t.location&&tt.isRange(t.location.range)&&b.isUri(t.location.uri):!1}constructor(t,i){this.location=t,this.message=i}static isEqual(t,i){return t===i?!0:!t||!i?!1:t.message===i.message&&t.location.range.isEqual(i.location.range)&&t.location.uri.toString()===i.location.uri.toString()}},yl=__decorate([B],yl),Ld=class{constructor(t,i,s=Ni.Error){if(!tt.isRange(t))throw new TypeError("range must be set");if(!i)throw new TypeError("message must be set");this.range=t,this.message=i,this.severity=s}toJSON(){return{severity:Ni[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(t,i){return t===i?!0:!t||!i?!1:t.message===i.message&&t.severity===i.severity&&t.code===i.code&&t.severity===i.severity&&t.source===i.source&&t.range.isEqual(i.range)&&Pr(t.tags,i.tags)&&Pr(t.relatedInformation,i.relatedInformation,yl.isEqual)}},Ld=__decorate([B],Ld),Ad=class{constructor(t,i){if(!t)throw new Error("Illegal argument, contents must be defined");Array.isArray(t)?this.contents=t:this.contents=[t],this.range=i}},Ad=__decorate([B],Ad),Nd=class extends Ad{constructor(t,i,s,r){super(t,i),this.canIncreaseVerbosity=s,this.canDecreaseVerbosity=r}},Nd=__decorate([B],Nd),(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(J9||(J9={})),(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Od||(Od={})),Td=class{constructor(t,i=Od.Text){this.range=t,this.kind=i}toJSON(){return{range:this.range,kind:Od[this.kind]}}},Td=__decorate([B],Td),Md=class{constructor(t,i){this.uri=t,this.highlights=i}toJSON(){return{uri:this.uri,highlights:this.highlights.map(t=>t.toJSON())}}},Md=__decorate([B],Md),(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(We||(We={})),(function(e){e[e.Deprecated=1]="Deprecated"})(Fd||(Fd={})),Ud=rv=class{static validate(t){if(!t.name)throw new Error("name must not be falsy")}constructor(t,i,s,r,n){this.name=t,this.kind=i,this.containerName=n,typeof s=="string"&&(this.containerName=s),r instanceof mr?this.location=r:s instanceof tt&&(this.location=new mr(r,s)),rv.validate(this)}toJSON(){return{name:this.name,kind:We[this.kind],location:this.location,containerName:this.containerName}}},Ud=rv=__decorate([B],Ud),$d=Dd=class{static validate(t){if(!t.name)throw new Error("name must not be falsy");if(!t.range.contains(t.selectionRange))throw new Error("selectionRange must be contained in fullRange");t.children?.forEach(Dd.validate)}constructor(t,i,s,r,n){this.name=t,this.detail=i,this.kind=s,this.range=r,this.selectionRange=n,this.children=[],Dd.validate(this)}},$d=Dd=__decorate([B],$d),(function(e){e[e.Invoke=1]="Invoke",e[e.Automatic=2]="Automatic"})(Wd||(Wd={})),lv=class{constructor(t,i){this.title=t,this.kind=i}},lv=__decorate([B],lv),it=class{static{pl=this}static{this.sep="."}constructor(t){this.value=t}append(t){return new pl(this.value?this.value+pl.sep+t:t)}intersects(t){return this.contains(t)||t.contains(this)}contains(t){return this.value===t.value||t.value.startsWith(this.value+pl.sep)}},it=pl=__decorate([B],it),it.Empty=new it(""),it.QuickFix=it.Empty.append("quickfix"),it.Refactor=it.Empty.append("refactor"),it.RefactorExtract=it.Refactor.append("extract"),it.RefactorInline=it.Refactor.append("inline"),it.RefactorMove=it.Refactor.append("move"),it.RefactorRewrite=it.Refactor.append("rewrite"),it.Source=it.Empty.append("source"),it.SourceOrganizeImports=it.Source.append("organizeImports"),it.SourceFixAll=it.Source.append("fixAll"),it.Notebook=it.Empty.append("notebook"),Hd=class{constructor(t,i){if(this.range=t,this.parent=i,i&&!i.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}},Hd=__decorate([B],Hd),uv=class{constructor(e,t,i,s,r,n){this.kind=e,this.name=t,this.detail=i,this.uri=s,this.range=r,this.selectionRange=n}},X9=class{constructor(e,t){this.fromRanges=t,this.from=e}},Y9=class{constructor(e,t){this.fromRanges=t,this.to=e}},(function(e){e[e.Information=0]="Information",e[e.Warning=1]="Warning",e[e.Error=2]="Error"})(Z9||(Z9={})),hv=class{constructor(t,i){this.range=t,this.command=i}get isResolved(){return!!this.command}},hv=__decorate([B],hv),gr=nv=class{#e;static isMarkdownString(t){return t instanceof nv?!0:t&&t.appendCodeblock&&t.appendMarkdown&&t.appendText&&t.value!==void 0}constructor(t,i=!1){this.#e=new Ls(t,{supportThemeIcons:i})}get value(){return this.#e.value}set value(t){this.#e.value=t}get isTrusted(){return this.#e.isTrusted}set isTrusted(t){this.#e.isTrusted=t}get supportThemeIcons(){return this.#e.supportThemeIcons}set supportThemeIcons(t){this.#e.supportThemeIcons=t}get supportHtml(){return this.#e.supportHtml}set supportHtml(t){this.#e.supportHtml=t}get baseUri(){return this.#e.baseUri}set baseUri(t){this.#e.baseUri=t}appendText(t){return this.#e.appendText(t),this}appendMarkdown(t){return this.#e.appendMarkdown(t),this}appendCodeblock(t,i){return this.#e.appendCodeblock(i??"",t),this}},gr=nv=__decorate([B],gr),dv=class{constructor(t,i){this.label=t,this.documentation=i}},dv=__decorate([B],dv),fv=class{constructor(t,i){this.label=t,this.documentation=i,this.parameters=[]}},fv=__decorate([B],fv),pv=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}},pv=__decorate([B],pv),(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(K9||(K9={})),(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(e8||(e8={})),Vd=class{constructor(t){this.value=t}},Vd=__decorate([B],Vd),jd=class{constructor(t,i,s){this.position=t,this.label=i,this.kind=s}},jd=__decorate([B],jd),(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(wl||(wl={})),(function(e){e[e.Text=0]="Text",e[e.Method=1]="Method",e[e.Function=2]="Function",e[e.Constructor=3]="Constructor",e[e.Field=4]="Field",e[e.Variable=5]="Variable",e[e.Class=6]="Class",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Unit=10]="Unit",e[e.Value=11]="Value",e[e.Enum=12]="Enum",e[e.Keyword=13]="Keyword",e[e.Snippet=14]="Snippet",e[e.Color=15]="Color",e[e.File=16]="File",e[e.Reference=17]="Reference",e[e.Folder=18]="Folder",e[e.EnumMember=19]="EnumMember",e[e.Constant=20]="Constant",e[e.Struct=21]="Struct",e[e.Event=22]="Event",e[e.Operator=23]="Operator",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue"})(X||(X={})),(function(e){e[e.Deprecated=1]="Deprecated"})(Bd||(Bd={})),zd=class{constructor(t,i){this.label=t,this.kind=i}toJSON(){return{label:this.label,kind:this.kind&&X[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}},zd=__decorate([B],zd),mv=class{constructor(t=[],i=!1){this.items=t,this.isIncomplete=i}},mv=__decorate([B],mv),gv=class{constructor(t,i,s){this.insertText=t,this.range=i,this.command=s}},gv=__decorate([B],gv),vv=class{constructor(t){this.commands=void 0,this.suppressSuggestions=void 0,this.items=t}},vv=__decorate([B],vv),(function(e){e[e.Unknown=0]="Unknown",e[e.Word=1]="Word",e[e.Line=2]="Line",e[e.Suggest=3]="Suggest"})(na||(na={})),(function(e){e[e.Active=-1]="Active",e[e.Beside=-2]="Beside",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Three=3]="Three",e[e.Four=4]="Four",e[e.Five=5]="Five",e[e.Six=6]="Six",e[e.Seven=7]="Seven",e[e.Eight=8]="Eight",e[e.Nine=9]="Nine"})(qd||(qd={})),(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(t8||(t8={})),(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval"})(Fs||(Fs={})),(function(e){e[e.Manual=1]="Manual",e[e.AfterDelay=2]="AfterDelay",e[e.FocusOut=3]="FocusOut"})(_l||(_l={})),(function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"})(i8||(i8={})),(function(e){e[e.Keyboard=1]="Keyboard",e[e.Mouse=2]="Mouse",e[e.Command=3]="Command"})(Gd||(Gd={})),(function(e){e[e.Addition=1]="Addition",e[e.Deletion=2]="Deletion",e[e.Modification=3]="Modification"})(s8||(s8={})),(function(e){e[e.Undo=1]="Undo",e[e.Redo=2]="Redo"})(r8||(r8={})),(function(e){e[e.OpenOpen=0]="OpenOpen",e[e.ClosedClosed=1]="ClosedClosed",e[e.OpenClosed=2]="OpenClosed",e[e.ClosedOpen=3]="ClosedOpen"})(oa||(oa={})),(function(e){function t(i){switch(i){case"keyboard":return e.Keyboard;case"mouse":return e.Mouse;case"api":case"code.jump":case"code.navigation":return e.Command}}e.fromValue=t})(Gd||(Gd={})),(function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"})(Qd||(Qd={})),(function(e){function t(i){switch(i){case e.Other:return"other";case e.Comment:return"comment";case e.String:return"string";case e.RegEx:return"regex"}return"other"}e.toString=t})(Qd||(Qd={})),Jd=class{constructor(t,i){if(i&&!b.isUri(i))throw Ae("target");if(!tt.isRange(t)||t.isEmpty)throw Ae("range");this.range=t,this.target=i}},Jd=__decorate([B],Jd),bl=class{constructor(t,i,s,r){this.red=t,this.green=i,this.blue=s,this.alpha=r}},bl=__decorate([B],bl),yv=class{constructor(t,i){if(i&&!(i instanceof bl))throw Ae("color");if(!tt.isRange(t)||t.isEmpty)throw Ae("range");this.range=t,this.color=i}},yv=__decorate([B],yv),Xd=class{constructor(t){if(!t||typeof t!="string")throw Ae("label");this.label=t}},Xd=__decorate([B],Xd),(function(e){e[e.RGB=0]="RGB",e[e.HEX=1]="HEX",e[e.HSL=2]="HSL"})(n8||(n8={})),(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information"})(o8||(o8={})),(function(e){e[e.Unknown=0]="Unknown",e[e.Shutdown=1]="Shutdown",e[e.Process=2]="Process",e[e.User=3]="User",e[e.Extension=4]="Extension"})(a8||(a8={})),(function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"})(c8||(c8={})),(function(e){e[e.Sh=1]="Sh",e[e.Bash=2]="Bash",e[e.Fish=3]="Fish",e[e.Csh=4]="Csh",e[e.Ksh=5]="Ksh",e[e.Zsh=6]="Zsh",e[e.CommandPrompt=7]="CommandPrompt",e[e.GitBash=8]="GitBash",e[e.PowerShell=9]="PowerShell",e[e.Python=10]="Python",e[e.Julia=11]="Julia",e[e.NuShell=12]="NuShell",e[e.Node=13]="Node"})(l8||(l8={})),(function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"})(u8||(u8={})),(function(e){e[e.File=0]="File",e[e.Folder=1]="Folder",e[e.Method=2]="Method",e[e.Alias=3]="Alias",e[e.Argument=4]="Argument",e[e.Option=5]="Option",e[e.OptionValue=6]="OptionValue",e[e.Flag=7]="Flag"})(h8||(h8={})),(function(e){e[e.Always=1]="Always",e[e.Silent=2]="Silent",e[e.Never=3]="Never"})(d8||(d8={})),(function(e){e.Changed="changed",e.ProcessStarted="processStarted",e.ProcessEnded="processEnded",e.Terminated="terminated",e.Start="start",e.AcquiredInput="acquiredInput",e.DependsOnStarted="dependsOnStarted",e.Active="active",e.Inactive="inactive",e.End="end",e.ProblemMatcherStarted="problemMatcherStarted",e.ProblemMatcherEnded="problemMatcherEnded",e.ProblemMatcherFoundErrors="problemMatcherFoundErrors"})(f8||(f8={})),(function(e){e[e.Shared=1]="Shared",e[e.Dedicated=2]="Dedicated",e[e.New=3]="New"})(p8||(p8={})),wv=class{static{Ts=this}static{this.Clean=new Ts("clean","Clean")}static{this.Build=new Ts("build","Build")}static{this.Rebuild=new Ts("rebuild","Rebuild")}static{this.Test=new Ts("test","Test")}static from(t){switch(t){case"clean":return Ts.Clean;case"build":return Ts.Build;case"rebuild":return Ts.Rebuild;case"test":return Ts.Test;default:return}}constructor(t,i){if(this.label=i,typeof t!="string"||typeof i!="string")throw Ae("name");this._id=t}get id(){return this._id}},wv=Ts=__decorate([B],wv),Yd=class{constructor(t,i,s){if(typeof t!="string")throw Ae("process");this._args=[],this._process=t,i!==void 0&&(Array.isArray(i)?(this._args=i,this._options=s):this._options=i)}get process(){return this._process}set process(t){if(typeof t!="string")throw Ae("process");this._process=t}get args(){return this._args}set args(t){Array.isArray(t)||(t=[]),this._args=t}get options(){return this._options}set options(t){this._options=t}computeId(){const t=[];if(t.push("process"),this._process!==void 0&&t.push(this._process),this._args&&this._args.length>0)for(const i of this._args)t.push(i);return B9(t)}},Yd=__decorate([B],Yd),Zd=class{constructor(t,i,s){if(this._args=[],Array.isArray(i)){if(!t)throw Ae("command can't be undefined or null");if(typeof t!="string"&&typeof t.value!="string")throw Ae("command");this._command=t,i&&(this._args=i),this._options=s}else{if(typeof t!="string")throw Ae("commandLine");this._commandLine=t,this._options=i}}get commandLine(){return this._commandLine}set commandLine(t){if(typeof t!="string")throw Ae("commandLine");this._commandLine=t}get command(){return this._command?this._command:""}set command(t){if(typeof t!="string"&&typeof t.value!="string")throw Ae("command");this._command=t}get args(){return this._args}set args(t){this._args=t||[]}get options(){return this._options}set options(t){this._options=t}computeId(){const t=[];if(t.push("shell"),this._commandLine!==void 0&&t.push(this._commandLine),this._command!==void 0&&t.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const i of this._args)t.push(typeof i=="string"?i:i.value);return B9(t)}},Zd=__decorate([B],Zd),(function(e){e[e.Escape=1]="Escape",e[e.Strong=2]="Strong",e[e.Weak=3]="Weak"})(m8||(m8={})),(function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace"})(Kd||(Kd={})),g8=class{constructor(e){this._callback=e}computeId(){return"customExecution"+Ve()}set callback(e){this._callback=e}get callback(){return this._callback}},_v=class{static{Ms=this}static{this.ExtensionCallbackType="customExecution"}static{this.ProcessType="process"}static{this.ShellType="shell"}static{this.EmptyType="$empty"}constructor(t,i,s,r,n,o){this.__deprecated=!1,this._definition=this.definition=t;let a;typeof i=="string"?(this._name=this.name=i,this._source=this.source=s,this.execution=r,a=n,this.__deprecated=!0):i===Kd.Global||i===Kd.Workspace?(this.target=i,this._name=this.name=s,this._source=this.source=r,this.execution=n,a=o):(this.target=i,this._name=this.name=s,this._source=this.source=r,this.execution=n,a=o),typeof a=="string"?(this._problemMatchers=[a],this._hasDefinedMatchers=!0):Array.isArray(a)?(this._problemMatchers=a,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(t){this.__id=t}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof Yd?this._definition={type:Ms.ProcessType,id:this._execution.computeId()}:this._execution instanceof Zd?this._definition={type:Ms.ShellType,id:this._execution.computeId()}:this._execution instanceof g8?this._definition={type:Ms.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:Ms.EmptyType,id:Ve()}}get definition(){return this._definition}set definition(t){if(t==null)throw Ae("Kind can't be undefined or null");this.clear(),this._definition=t}get scope(){return this._scope}set target(t){this.clear(),this._scope=t}get name(){return this._name}set name(t){if(typeof t!="string")throw Ae("name");this.clear(),this._name=t}get execution(){return this._execution}set execution(t){t===null&&(t=void 0),this.clear(),this._execution=t;const i=this._definition.type;(Ms.EmptyType===i||Ms.ProcessType===i||Ms.ShellType===i||Ms.ExtensionCallbackType===i)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(t){if(Array.isArray(t))this.clear(),this._problemMatchers=t,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(t){t!==!0&&t!==!1&&(t=!1),this.clear(),this._isBackground=t}get source(){return this._source}set source(t){if(typeof t!="string"||t.length===0)throw Ae("source must be a string of length > 0");this.clear(),this._source=t}get group(){return this._group}set group(t){t===null&&(t=void 0),this.clear(),this._group=t}get detail(){return this._detail}set detail(t){t===null&&(t=void 0),this._detail=t}get presentationOptions(){return this._presentationOptions}set presentationOptions(t){t==null&&(t=Object.create(null)),this.clear(),this._presentationOptions=t}get runOptions(){return this._runOptions}set runOptions(t){t==null&&(t=Object.create(null)),this.clear(),this._runOptions=t}},_v=Ms=__decorate([B],_v),(function(e){e[e.SourceControl=1]="SourceControl",e[e.Window=10]="Window",e[e.Notification=15]="Notification"})(El||(El={})),(function(e){function t(i){const s=i;return Ir(s.value)?s.tooltip&&!ye(s.tooltip)?(console.log("INVALID view badge, invalid tooltip",s.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",s.value),!1)}e.isViewBadge=t})(v8||(v8={})),bv=ov=class{static isTreeItem(t,i){const s=t;if(s.checkboxState!==void 0){const r=Ir(s.checkboxState)?s.checkboxState:ft(s.checkboxState)&&Ir(s.checkboxState.state)?s.checkboxState.state:void 0,n=!Ir(s.checkboxState)&&ft(s.checkboxState)?s.checkboxState.tooltip:void 0;if(r===void 0||r!==ef.Checked&&r!==ef.Unchecked||n!==void 0&&!ye(n))return console.log("INVALID tree item, invalid checkboxState",s.checkboxState),!1}if(t instanceof ov)return!0;if(s.label!==void 0&&!ye(s.label)&&!s.label?.label)return console.log("INVALID tree item, invalid label",s.label),!1;if(s.id!==void 0&&!ye(s.id))return console.log("INVALID tree item, invalid id",s.id),!1;if(s.iconPath!==void 0&&!ye(s.iconPath)&&!b.isUri(s.iconPath)&&(!s.iconPath||!ye(s.iconPath.id))){const r=s.iconPath;if(!r||!ye(r.light)&&!b.isUri(r.light)&&!ye(r.dark)&&!b.isUri(r.dark))return console.log("INVALID tree item, invalid iconPath",s.iconPath),!1}return s.description!==void 0&&!ye(s.description)&&typeof s.description!="boolean"?(console.log("INVALID tree item, invalid description",s.description),!1):s.resourceUri!==void 0&&!b.isUri(s.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",s.resourceUri),!1):s.tooltip!==void 0&&!ye(s.tooltip)&&!(s.tooltip instanceof gr)?(console.log("INVALID tree item, invalid tooltip",s.tooltip),!1):s.command!==void 0&&!s.command.command?(console.log("INVALID tree item, invalid command",s.command),!1):s.collapsibleState!==void 0&&s.collapsibleState<Sl.None&&s.collapsibleState>Sl.Expanded?(console.log("INVALID tree item, invalid collapsibleState",s.collapsibleState),!1):s.contextValue!==void 0&&!ye(s.contextValue)?(console.log("INVALID tree item, invalid contextValue",s.contextValue),!1):s.accessibilityInformation!==void 0&&!s.accessibilityInformation?.label?(console.log("INVALID tree item, invalid accessibilityInformation",s.accessibilityInformation),!1):!0}constructor(t,i=Sl.None){this.collapsibleState=i,b.isUri(t)?this.resourceUri=t:this.label=t}},bv=ov=__decorate([B],bv),(function(e){e[e.None=0]="None",e[e.Collapsed=1]="Collapsed",e[e.Expanded=2]="Expanded"})(Sl||(Sl={})),(function(e){e[e.Unchecked=0]="Unchecked",e[e.Checked=1]="Checked"})(ef||(ef={})),tf=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(t){this.value=t}},tf=__decorate([B],tf),sf=class extends tf{},y8=class extends sf{#e;constructor(e){super(""),this.#e=e}asFile(){return this.#e}},w8=class{constructor(e,t,i,s){this.name=e,this.uri=t,this._itemId=i,this._getData=s}data(){return this._getData()}},rf=class{#e=new Map;constructor(t){for(const[i,s]of t??[]){const r=this.#e.get(this.#t(i));r?r.push(s):this.#e.set(this.#t(i),[s])}}get(t){return this.#e.get(this.#t(t))?.[0]}set(t,i){this.#e.set(this.#t(t),[i])}forEach(t,i){for(const[s,r]of this.#e)for(const n of r)t.call(i,n,s,this)}*[Symbol.iterator](){for(const[t,i]of this.#e)for(const s of i)yield[t,s]}#t(t){return t.toLowerCase()}},rf=__decorate([B],rf),Ev=class{constructor(t,i,s){this.insertText=t,this.title=i,this.kind=s}},Ev=__decorate([B],Ev),(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(_8||(_8={})),Hn=class Ip{static{this.sep="."}constructor(t){this.value=t}append(...t){return new Ip((this.value?[this.value,...t]:t).join(Ip.sep))}intersects(t){return this.contains(t)||t.contains(this)}contains(t){return this.value===t.value||t.value.startsWith(this.value+Ip.sep)}},Hn.Empty=new Hn(""),Hn.Text=new Hn("text"),Hn.TextUpdateImports=Hn.Text.append("updateImports"),qr=class{constructor(t,i){this.id=t,this.color=i}static isThemeIcon(t){return typeof t.id!="string"?(console.log("INVALID ThemeIcon, invalid id",t.id),!1):!0}},qr=__decorate([B],qr),qr.File=new qr("file"),qr.Folder=new qr("folder"),Sv=class{constructor(t){this.id=t}},Sv=__decorate([B],Sv),(function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace",e[e.WorkspaceFolder=3]="WorkspaceFolder"})(b8||(b8={})),aa=class{get base(){return this._base}set base(t){this._base=t,this._baseUri=b.file(t)}get baseUri(){return this._baseUri}set baseUri(t){this._baseUri=t,this._base=t.fsPath}constructor(t,i){if(typeof t!="string"&&(!t||!b.isUri(t)&&!b.isUri(t.uri)))throw Ae("base");if(typeof i!="string")throw Ae("pattern");typeof t=="string"?this.baseUri=b.file(t):b.isUri(t)?this.baseUri=t:this.baseUri=t.uri,this.pattern=i}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}},aa=__decorate([B],aa),E8=new WeakMap,ca=class{constructor(t,i,s,r,n){this.enabled=typeof t=="boolean"?t:!0,typeof i=="string"&&(this.condition=i),typeof s=="string"&&(this.hitCondition=s),typeof r=="string"&&(this.logMessage=r),typeof n=="string"&&(this.mode=n)}get id(){return this._id||(this._id=E8.get(this)??Ve()),this._id}},ca=__decorate([B],ca),xv=class extends ca{constructor(t,i,s,r,n,o){if(super(i,s,r,n,o),t===null)throw Ae("location");this.location=t}},xv=__decorate([B],xv),kv=class extends ca{constructor(t,i,s,r,n,o){super(i,s,r,n,o),this.functionName=t}},kv=__decorate([B],kv),Pv=class extends ca{constructor(t,i,s,r,n,o,a,c){if(super(r,n,o,a,c),!i)throw Ae("dataId");this.label=t,this.dataId=i,this.canPersist=s}},Pv=__decorate([B],Pv),Iv=class{constructor(t,i,s){this.command=t,this.args=i||[],this.options=s}},Iv=__decorate([B],Iv),Cv=class{constructor(t,i){this.port=t,this.host=i}},Cv=__decorate([B],Cv),Dv=class{constructor(t){this.path=t}},Dv=__decorate([B],Dv),Rv=class{constructor(t){this.implementation=t}},Rv=__decorate([B],Rv),nf=class{constructor(t,i){this.range=t,this.expression=i}},nf=__decorate([B],nf),(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(S8||(S8={})),of=class{constructor(t,i){this.range=t,this.text=i}},of=__decorate([B],of),af=class{constructor(t,i,s=!0){this.range=t,this.variableName=i,this.caseSensitiveLookup=s}},af=__decorate([B],af),cf=class{constructor(t,i){this.range=t,this.expression=i}},cf=__decorate([B],cf),lf=class{constructor(t,i){this.frameId=t,this.stoppedLocation=i}},lf=__decorate([B],lf),(function(e){e[e.AIGenerated=1]="AIGenerated"})(x8||(x8={})),(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(k8||(k8={})),(function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"})(P8||(P8={})),Lv=yi=class extends Error{static FileExists(t){return new yi(t,ee.FileExists,yi.FileExists)}static FileNotFound(t){return new yi(t,ee.FileNotFound,yi.FileNotFound)}static FileNotADirectory(t){return new yi(t,ee.FileNotADirectory,yi.FileNotADirectory)}static FileIsADirectory(t){return new yi(t,ee.FileIsADirectory,yi.FileIsADirectory)}static NoPermissions(t){return new yi(t,ee.NoPermissions,yi.NoPermissions)}static Unavailable(t){return new yi(t,ee.Unavailable,yi.Unavailable)}constructor(t,i=ee.Unknown,s){super(b.isUri(t)?t.toString(!0):t),this.code=s?.name??"Unknown",j4(this,i),Object.setPrototypeOf(this,yi.prototype),typeof Error.captureStackTrace=="function"&&typeof s=="function"&&Error.captureStackTrace(this,s)}},Lv=yi=__decorate([B],Lv),Av=class{constructor(t,i,s){this.start=t,this.end=i,this.kind=s}},Av=__decorate([B],Av),(function(e){e[e.Comment=1]="Comment",e[e.Imports=2]="Imports",e[e.Region=3]="Region"})(Gr||(Gr={})),(function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"})(I8||(I8={})),(function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"})(C8||(C8={})),(function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"})(D8||(D8={})),(function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"})(R8||(R8={})),(function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"})(L8||(L8={})),(function(e){e[e.Reply=1]="Reply",e[e.Comment=2]="Comment"})(A8||(A8={})),(function(e){e[e.Separate=0]="Separate",e[e.MergeWithParent=1]="MergeWithParent"})(N8||(N8={})),(function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"})(O8||(O8={})),Nv=class{static{this.Back={iconPath:new qr("arrow-left")}}constructor(){}},Nv=__decorate([B],Nv),(function(e){e[e.Separator=-1]="Separator",e[e.Default=0]="Default"})(T8||(T8={})),(function(e){e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"})(M8||(M8={})),(function(e){e[e.UI=1]="UI",e[e.Workspace=2]="Workspace"})(F8||(F8={})),Ov=class{constructor(t){this.kind=t}},Ov=__decorate([B],Ov),(function(e){e[e.Light=1]="Light",e[e.Dark=2]="Dark",e[e.HighContrast=3]="HighContrast",e[e.HighContrastLight=4]="HighContrastLight"})(U8||(U8={})),Vn=class Cy{static isNotebookRange(t){return t instanceof Cy?!0:t?typeof t.start=="number"&&typeof t.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}constructor(t,i){if(t<0)throw Ae("start must be positive");if(i<0)throw Ae("end must be positive");t<=i?(this._start=t,this._end=i):(this._start=i,this._end=t)}with(t){let i=this._start,s=this._end;return t.start!==void 0&&(i=t.start),t.end!==void 0&&(s=t.end),i===this._start&&s===this._end?this:new Cy(i,s)}},Tv=class Dy{static validate(t){if(typeof t.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof t.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof t.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(t){return Array.isArray(t)&&t.every(i=>Dy.isNotebookCellData(i))}static isNotebookCellData(t){return!0}constructor(t,i,s,r,n,o,a){this.kind=t,this.value=i,this.languageId=s,this.mime=r,this.outputs=n??[],this.metadata=o,this.executionSummary=a,Dy.validate(this)}},$8=class{constructor(e){this.cells=e}},W8=class Sr{static isNotebookCellOutputItem(t){return t instanceof Sr?!0:t?typeof t.mime=="string"&&t.data instanceof Uint8Array:!1}static error(t){const i={name:t.name,message:t.message,stack:t.stack};return Sr.json(i,"application/vnd.code.notebook.error")}static stdout(t){return Sr.text(t,"application/vnd.code.notebook.stdout")}static stderr(t){return Sr.text(t,"application/vnd.code.notebook.stderr")}static bytes(t,i="application/octet-stream"){return new Sr(t,i)}static#e=new TextEncoder;static text(t,i=Os.text){const s=Sr.#e.encode(String(t));return new Sr(s,i)}static json(t,i="text/x-json"){const s=JSON.stringify(t,void 0," ");return Sr.text(s,i)}constructor(t,i){this.data=t,this.mime=i;const s=y9(i,!0);if(!s)throw new Error(`INVALID mime type: ${i}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=s}},H8=class Ry{static isNotebookCellOutput(t){return t instanceof Ry?!0:!t||typeof t!="object"?!1:typeof t.id=="string"&&Array.isArray(t.items)}static ensureUniqueMimeTypes(t,i=!1){const s=new Set,r=new Set;for(let n=0;n<t.length;n++){const o=t[n],a=y9(o.mime);if(!s.has(a)||lF(a)){s.add(a);continue}r.add(n),i&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return r.size===0?t:t.filter((n,o)=>!r.has(o))}constructor(t,i,s){this.items=Ry.ensureUniqueMimeTypes(t,!0),typeof i=="string"?(this.id=i,this.metadata=s):(this.id=Ve(),this.metadata=i??s)}},(function(e){e[e.Markup=1]="Markup",e[e.Code=2]="Code"})(la||(la={})),(function(e){e[e.Idle=1]="Idle",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"})(uf||(uf={})),(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Mv||(Mv={})),(function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"})(V8||(V8={})),(function(e){e[e.Default=1]="Default",e[e.Preferred=2]="Preferred"})(j8||(j8={})),(function(e){e[e.Default=1]="Default",e[e.Preferred=2]="Preferred",e[e.Hidden=-1]="Hidden"})(B8||(B8={})),z8=class{constructor(e,t=[]){this.uri=e,this.provides=kw(t)}},(function(e){e[e.Named=1]="Named",e[e.Indexed=2]="Indexed"})(q8||(q8={})),Fv=class{constructor(t,i){this.label=t,this.timestamp=i}},Fv=__decorate([B],Fv),(function(e){e[e.Production=1]="Production",e[e.Development=2]="Development",e[e.Test=3]="Test"})(G8||(G8={})),(function(e){e[e.Node=1]="Node",e[e.Webworker=2]="Webworker"})(Q8||(Q8={})),(function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"})(ua||(ua={})),(function(e){e[e.Queued=1]="Queued",e[e.Running=2]="Running",e[e.Passed=3]="Passed",e[e.Failed=4]="Failed",e[e.Skipped=5]="Skipped",e[e.Errored=6]="Errored"})(J8||(J8={})),(function(e){e[e.Run=1]="Run",e[e.Debug=2]="Debug",e[e.Coverage=3]="Coverage"})(xl||(xl={})),X8=class{constructor(e,t,i){this.controllerId=e,this.profileId=t,this.kind=i}},Uv=class{constructor(t=void 0,i=void 0,s=void 0,r=!1,n=!0){this.include=t,this.exclude=i,this.profile=s,this.continuous=r,this.preserveFocus=n}},Uv=__decorate([B],Uv),hf=av=class{static diff(t,i,s){const r=new av(t);return r.expectedOutput=i,r.actualOutput=s,r}constructor(t){this.message=t}},hf=av=__decorate([B],hf),kl=class{constructor(t){this.id=t}},kl=__decorate([B],kl),df=class{constructor(e,t){this.covered=e,this.total=t,Cd(this)}},Y8=class lC{static fromDetails(t,i){const s=new df(0,0),r=new df(0,0),n=new df(0,0);for(const a of i)if("branches"in a){s.total+=1,s.covered+=a.executed?1:0;for(const c of a.branches)r.total+=1,r.covered+=c.executed?1:0}else n.total+=1,n.covered+=a.executed?1:0;const o=new lC(t,s,r.total>0?r:void 0,n.total>0?n:void 0);return o.detailedCoverage=i,o}constructor(t,i,s,r,n=[]){this.uri=t,this.statementCoverage=i,this.branchCoverage=s,this.declarationCoverage=r,this.includesTests=n}},Z8=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,i=[]){this.executed=e,this.location=t,this.branches=i}},K8=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,i){this.executed=e,this.location=t,this.label=i}},e7=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,i){this.name=e,this.executed=t,this.location=i}},(function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"})(t7||(t7={})),(function(e){e[e.Untrusted=0]="Untrusted",e[e.Trusted=1]="Trusted",e[e.Unspecified=2]="Unspecified"})(i7||(i7={})),(function(e){e[e.Notify=1]="Notify",e[e.OpenBrowser=2]="OpenBrowser",e[e.OpenPreview=3]="OpenPreview",e[e.Silent=4]="Silent",e[e.Ignore=5]="Ignore",e[e.OpenBrowserOnce=6]="OpenBrowserOnce"})(s7||(s7={})),$v=class{constructor(e,t,i,s,r,n){this.kind=e,this.name=t,this.detail=i,this.uri=s,this.range=r,this.selectionRange=n}},(function(e){e[e.Down=0]="Down",e[e.Up=1]="Up"})(r7||(r7={})),(function(e){e[e.Action=1]="Action",e[e.Toolbar=2]="Toolbar"})(n7||(n7={})),(function(e){e[e.Short=1]="Short",e[e.Medium=2]="Medium",e[e.Full=3]="Full"})(o7||(o7={})),(function(e){e[e.Accepted=1]="Accepted",e[e.Rejected=2]="Rejected",e[e.Saved=3]="Saved"})(ha||(ha={})),(function(e){e[e.Unhelpful=0]="Unhelpful",e[e.Helpful=1]="Helpful",e[e.Undone=2]="Undone",e[e.Accepted=3]="Accepted",e[e.Bug=4]="Bug"})(a7||(a7={})),(function(e){e[e.Unhelpful=0]="Unhelpful",e[e.Helpful=1]="Helpful"})(c7||(c7={})),Wv=class{constructor(e){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new gr(e):e}},Hv=class{constructor(e,t){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new gr(e):e,this.vulnerabilities=t}},l7=class{constructor(e,t,i,s){this.title=e,this.message=t,this.data=i,this.buttons=s}},Vv=class{constructor(e,t){this.value=e,this.baseUri=t}},jv=class{constructor(e,t){this.value=e,this.value2=e,this.title=t}},Bv=class{constructor(e){this.value=e}},zv=class{constructor(e){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new gr(e):e}},qv=class{constructor(e){this.value=e}},Gv=class{constructor(e,t,i){this.value=e,this.iconPath=t,this.options=i}},Qv=class{constructor(e,t){this.value=e,this.isEdit=t}},u7=class{constructor(e,t,i){this.value=e,this.license=t,this.snippet=i}},Jv=class{constructor(e,t){this.uri=e,this.range=t}},Xv=class{constructor(e,t){this.uri=e,t===!0?(this.isDone=!0,this.edits=[]):this.edits=Array.isArray(t)?t:[t]}},h7=class{constructor(e,t){this.uri=e,t===!0?(this.isDone=!0,this.edits=[]):this.edits=Array.isArray(t)?t:[t]}},(function(e){e[e.Panel=1]="Panel",e[e.Terminal=2]="Terminal",e[e.Notebook=3]="Notebook",e[e.Editor=4]="Editor",e[e.EditingSession=5]="EditingSession"})(Ji||(Ji={})),(function(e){e[e.Complete=1]="Complete",e[e.Partial=2]="Partial",e[e.Omitted=3]="Omitted"})(d7||(d7={})),f7=class{constructor(e,t,i){this.mimeType=e,this.data=t,this.reference=i}},p7=class{constructor(e){this.diagnostics=e}},(function(e){e[e.User=1]="User",e[e.Assistant=2]="Assistant",e[e.System=3]="System"})(Xi||(Xi={})),Pl=class{constructor(e,t,i){this.callId=e,this.content=t,this.isError=i??!1}},(function(e){e[e.Info=0]="Info",e[e.Warning=1]="Warning",e[e.Error=2]="Error"})(m7||(m7={})),g7=class Ly{static User(t,i){return new Ly(Xi.User,t,i)}static Assistant(t,i){return new Ly(Xi.Assistant,t,i)}set content(t){typeof t=="string"?this._content=[new Lt(t)]:this._content=t}get content(){return this._content}set content2(t){t&&(this.content=t.map(i=>typeof i=="string"?new Lt(i):i))}get content2(){return this.content.map(t=>t instanceof Lt?t.value:t)}constructor(t,i,s){this._content=[],this.role=t,this.content=i,this.name=s}},v7=class Ay{static User(t,i){return new Ay(Xi.User,t,i)}static Assistant(t,i){return new Ay(Xi.Assistant,t,i)}set content(t){typeof t=="string"?this._content=[new Lt(t)]:this._content=t}get content(){return this._content}set content2(t){t&&(this.content=t.map(i=>typeof i=="string"?new Lt(i):i))}get content2(){return this.content.map(t=>t instanceof Lt?t.value:t)}constructor(t,i,s){this._content=[],this.role=t,this.content=i,this.name=s}},Il=class{constructor(e,t,i){this.callId=e,this.name=t,this.input=i}},Lt=class{constructor(e){this.value=e}toJSON(){return{$mid:21,value:this.value}}},Yv=class{constructor(e){this.value=e}toJSON(){return{$mid:23,value:this.value}}},(function(e){e.PNG="image/png",e.JPEG="image/jpeg",e.GIF="image/gif",e.WEBP="image/webp",e.BMP="image/bmp"})(y7||(y7={})),Qr=class{constructor(e){this.value=e}toJSON(){return{$mid:22,value:this.value}}},Zv=class{constructor(e){this.content=e}toJSON(){return{$mid:20,content:this.content}}},(function(e){e[e.Auto=1]="Auto",e[e.Required=2]="Required"})(w7||(w7={})),(function(e){e[e.SymbolInformation=1]="SymbolInformation",e[e.CommandInformation=2]="CommandInformation",e[e.SearchInformation=3]="SearchInformation",e[e.SettingInformation=4]="SettingInformation"})(_7||(_7={})),(function(e){e[e.Started=1]="Started",e[e.Recognizing=2]="Recognizing",e[e.Recognized=3]="Recognized",e[e.Stopped=4]="Stopped",e[e.Error=5]="Error"})(b7||(b7={})),(function(e){e[e.Started=1]="Started",e[e.Stopped=2]="Stopped",e[e.Error=3]="Error"})(E7||(E7={})),(function(e){e[e.Recognized=1]="Recognized",e[e.Stopped=2]="Stopped"})(S7||(S7={})),(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(x7||(x7={}))}}),ff,_F=y({"out-build/vs/base/common/dataTransfer.js"(){"use strict";kt(),hn(),Bt(),ff=Object.freeze({create:e=>ks(e.map(t=>t.toString())).join(`\r
`),split:e=>e.split(`\r
`),parse:e=>ff.split(e).filter(t=>!t.startsWith("#"))})}});function e0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function k7(e){Jr=e}function Oi(e,t){if(t){if(t0.test(e))return e.replace(D7,s0)}else if(i0.test(e))return e.replace(R7,s0);return e}function qe(e,t){let i=typeof e=="string"?e:e.source;t=t||"";const s={replace:(r,n)=>{let o=typeof n=="string"?n:n.source;return o=o.replace(A7,"$1"),i=i.replace(r,o),s},getRegex:()=>new RegExp(i,t)};return s}function P7(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}function I7(e,t){const i=e.replace(/\|/g,(n,o,a)=>{let c=!1,l=o;for(;--l>=0&&a[l]==="\\";)c=!c;return c?"|":" |"}),s=i.split(/ \|/);let r=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(/\\\|/g,"|");return s}function Cl(e,t,i){const s=e.length;if(s===0)return"";let r=0;for(;r<s;){const n=e.charAt(s-r-1);if(n===t&&!i)r++;else if(n!==t&&i)r++;else break}return e.slice(0,s-r)}function bF(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return-1}function C7(e,t,i,s){const r=t.href,n=t.title?Oi(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:i,href:r,title:n,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}return{type:"image",raw:i,href:r,title:n,text:Oi(o)}}function EF(e,t){const i=e.match(/^(\s+)(?:```)/);if(i===null)return t;const s=i[1];return t.split(`
`).map(r=>{const n=r.match(/^\s+/);if(n===null)return r;const[o]=n;return o.length>=s.length?r.slice(s.length):r}).join(`
`)}function He(e,t){return Zr.parse(e,t)}var Jr,t0,D7,i0,R7,L7,s0,A7,da,Dl,N7,O7,T7,fa,M7,r0,n0,pf,F7,mf,U7,$7,Rl,gf,W7,o0,H7,vf,a0,V7,j7,c0,B7,l0,z7,pa,q7,G7,Q7,J7,X7,Y7,Z7,K7,e2,Ll,t2,u0,h0,i2,yf,s2,wf,r2,Al,ma,Xr,Nl,_f,Yr,Ol,n2,Zr,SF,xF,kF,PF,IF,CF,DF,RF=y({"out-build/vs/base/common/marked/marked.js"(){"use strict";Jr=e0(),t0=/[&<>"']/,D7=new RegExp(t0.source,"g"),i0=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,R7=new RegExp(i0.source,"g"),L7={"&":"&","<":"<",">":">",'"':""","'":"'"},s0=e=>L7[e],A7=/(^|[^\[])\^/g,da={exec:()=>null},Dl=class{options;rules;lexer;constructor(e){this.options=e||Jr}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Cl(i,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const i=t[0],s=EF(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(/#$/.test(i)){const s=Cl(i,"#");(this.options.pedantic||!s||/ $/.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Cl(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let i=Cl(t[0],`
`).split(`
`),s="",r="";const n=[];for(;i.length>0;){let o=!1;const a=[];let c;for(c=0;c<i.length;c++)if(/^ {0,3}>/.test(i[c]))a.push(i[c]),o=!0;else if(!o)a.push(i[c]);else break;i=i.slice(c);const l=a.join(`
`),u=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");s=s?`${s}
${l}`:l,r=r?`${r}
${u}`:u;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,n,!0),this.lexer.state.top=h,i.length===0)break;const f=n[n.length-1];if(f?.type==="code")break;if(f?.type==="blockquote"){const p=f,g=p.raw+`
`+i.join(`
`),v=this.blockquote(g);n[n.length-1]=v,s=s.substring(0,s.length-p.raw.length)+v.raw,r=r.substring(0,r.length-p.text.length)+v.text;break}else if(f?.type==="list"){const p=f,g=p.raw+`
`+i.join(`
`),v=this.list(g);n[n.length-1]=v,s=s.substring(0,s.length-f.raw.length)+v.raw,r=r.substring(0,r.length-p.raw.length)+v.raw,i=g.substring(n[n.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:s,tokens:n,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim();const s=i.length>1,r={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");const n=new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let a=!1,c="",l="";if(!(t=n.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let u=t[2].split(`
`,1)[0].replace(/^\t+/,w=>" ".repeat(3*w.length)),h=e.split(`
`,1)[0],f=!u.trim(),p=0;if(this.options.pedantic?(p=2,l=u.trimStart()):f?p=t[1].length+1:(p=t[2].search(/[^ ]/),p=p>4?1:p,l=u.slice(p),p+=t[1].length),f&&/^ *$/.test(h)&&(c+=h+`
`,e=e.substring(h.length+1),a=!0),!a){const w=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),S=new RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),E=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),P=new RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;e;){const A=e.split(`
`,1)[0];if(h=A,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),E.test(h)||P.test(h)||w.test(h)||S.test(e))break;if(h.search(/[^ ]/)>=p||!h.trim())l+=`
`+h.slice(p);else{if(f||u.search(/[^ ]/)>=4||E.test(u)||P.test(u)||S.test(u))break;l+=`
`+h}!f&&!h.trim()&&(f=!0),c+=A+`
`,e=e.substring(A.length+1),u=h.slice(p)}}r.loose||(o?r.loose=!0:/\n *\n *$/.test(c)&&(o=!0));let g=null,v;this.options.gfm&&(g=/^\[[ xX]\] /.exec(l),g&&(v=g[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:c,task:!!g,checked:v,loose:!1,text:l,tokens:[]}),r.raw+=c}r.items[r.items.length-1].raw=r.items[r.items.length-1].raw.trimEnd(),r.items[r.items.length-1].text=r.items[r.items.length-1].text.trimEnd(),r.raw=r.raw.trimEnd();for(let a=0;a<r.items.length;a++)if(this.lexer.state.top=!1,r.items[a].tokens=this.lexer.blockTokens(r.items[a].text,[]),!r.loose){const c=r.items[a].tokens.filter(u=>u.type==="space"),l=c.length>0&&c.some(u=>/\n.*\n/.test(u.raw));r.loose=l}if(r.loose)for(let a=0;a<r.items.length;a++)r.items[a].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const i=t[1].toLowerCase().replace(/\s+/g," "),s=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const i=I7(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[],n={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(const o of s)/^ *-+: *$/.test(o)?n.align.push("right"):/^ *:-+: *$/.test(o)?n.align.push("center"):/^ *:-+ *$/.test(o)?n.align.push("left"):n.align.push(null);for(let o=0;o<i.length;o++)n.header.push({text:i[o],tokens:this.lexer.inline(i[o]),header:!0,align:n.align[o]});for(const o of r)n.rows.push(I7(o,n.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:n.align[c]})));return n}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const i=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Oi(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const n=Cl(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{const n=bF(t[2],"()");if(n>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+n;t[2]=t[2].substring(0,n),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],r="";if(this.options.pedantic){const n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);n&&(s=n[1],r=n[3])}else r=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(i)?s=s.slice(1):s=s.slice(1,-1)),C7(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const s=(i[2]||i[1]).replace(/\s+/g," "),r=t[s.toLowerCase()];if(!r){const n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return C7(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const n=[...s[0]].length-1;let o,a,c=n,l=0;const u=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+n);(s=u.exec(t))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(a=[...o].length,s[3]||s[4]){c+=a;continue}else if((s[5]||s[6])&&n%3&&!((n+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);const h=[...s[0]][0].length,f=e.slice(0,n+s.index+h+a);if(Math.min(n,a)%2){const g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}const p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," ");const s=/[^ ]/.test(i),r=/^ /.test(i)&&/ $/.test(i);return s&&r&&(i=i.substring(1,i.length-1)),i=Oi(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=Oi(t[1]),s="mailto:"+i):(i=Oi(t[1]),s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=Oi(t[0]),s="mailto:"+i;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);i=Oi(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let i;return this.lexer.state.inRawBlock?i=t[0]:i=Oi(t[0]),{type:"text",raw:t[0],text:i}}}},N7=/^(?: *(?:\n|$))+/,O7=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,T7=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,fa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,M7=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,r0=/(?:[*+-]|\d{1,9}[.)])/,n0=qe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,r0).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),pf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,F7=/^[^\n]+/,mf=/(?!\s*\])(?:\\.|[^\[\]\\])+/,U7=qe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",mf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$7=qe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,r0).getRegex(),Rl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",gf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,W7=qe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",gf).replace("tag",Rl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),o0=qe(pf).replace("hr",fa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rl).getRegex(),H7=qe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",o0).getRegex(),vf={blockquote:H7,code:O7,def:U7,fences:T7,heading:M7,hr:fa,html:W7,lheading:n0,list:$7,newline:N7,paragraph:o0,table:da,text:F7},a0=qe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",fa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rl).getRegex(),V7={...vf,table:a0,paragraph:qe(pf).replace("hr",fa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",a0).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rl).getRegex()},j7={...vf,html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:da,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qe(pf).replace("hr",fa).replace("heading",` *#{1,6} *[^
]`).replace("lheading",n0).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},c0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,B7=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,l0=/^( {2,}|\\)\n(?!\s*$)/,z7=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,pa="\\p{P}\\p{S}",q7=qe(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,pa).getRegex(),G7=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Q7=qe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,pa).getRegex(),J7=qe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,pa).getRegex(),X7=qe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,pa).getRegex(),Y7=qe(/\\([punct])/,"gu").replace(/punct/g,pa).getRegex(),Z7=qe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),K7=qe(gf).replace("(?:-->|$)","-->").getRegex(),e2=qe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",K7).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ll=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,t2=qe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ll).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),u0=qe(/^!?\[(label)\]\[(ref)\]/).replace("label",Ll).replace("ref",mf).getRegex(),h0=qe(/^!?\[(ref)\](?:\[\])?/).replace("ref",mf).getRegex(),i2=qe("reflink|nolink(?!\\()","g").replace("reflink",u0).replace("nolink",h0).getRegex(),yf={_backpedal:da,anyPunctuation:Y7,autolink:Z7,blockSkip:G7,br:l0,code:B7,del:da,emStrongLDelim:Q7,emStrongRDelimAst:J7,emStrongRDelimUnd:X7,escape:c0,link:t2,nolink:h0,punctuation:q7,reflink:u0,reflinkSearch:i2,tag:e2,text:z7,url:da},s2={...yf,link:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",Ll).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ll).getRegex()},wf={...yf,escape:qe(c0).replace("])","~|])").getRegex(),url:qe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},r2={...wf,br:qe(l0).replace("{2,}","*").getRegex(),text:qe(wf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Al={normal:vf,gfm:V7,pedantic:j7},ma={normal:yf,gfm:wf,breaks:r2,pedantic:s2},Xr=class Ny{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Jr,this.options.tokenizer=this.options.tokenizer||new Dl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const i={block:Al.normal,inline:ma.normal};this.options.pedantic?(i.block=Al.pedantic,i.inline=ma.pedantic):this.options.gfm&&(i.block=Al.gfm,this.options.breaks?i.inline=ma.breaks:i.inline=ma.gfm),this.tokenizer.rules=i}static get rules(){return{block:Al,inline:ma}}static lex(t,i){return new Ny(i).lex(t)}static lexInline(t,i){return new Ny(i).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){const s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[],s=!1){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,c,l)=>c+" ".repeat(l.length));let r,n,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(r=a.call({lexer:this},t,i))?(t=t.substring(r.raw.length),i.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&i.length>0?i[i.length-1].raw+=`
`:i.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),n=i[i.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),n=i[i.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
`+r.raw,n.text+=`
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),i.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=t.slice(1);let l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},c),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){n=i[i.length-1],s&&n?.type==="paragraph"?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(r),s=o.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),n=i[i.length-1],n&&n.type==="text"?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(r);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let s,r,n,o=t,a,c,l;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(s=u.call({lexer:this},t,i))?(t=t.substring(s.raw.length),i.push(s),!0):!1))){if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),r=i[i.length-1],r&&s.type==="text"&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):i.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length),r=i[i.length-1],r&&s.type==="text"&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):i.push(s);continue}if(s=this.tokenizer.emStrong(t,o,l)){t=t.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),i.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),i.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),i.push(s);continue}if(n=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const h=t.slice(1);let f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(n=t.substring(0,u+1))}if(s=this.tokenizer.inlineText(n)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(l=s.raw.slice(-1)),c=!0,r=i[i.length-1],r&&r.type==="text"?(r.raw+=s.raw,r.text+=s.text):i.push(s);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return i}},Nl=class{options;parser;constructor(e){this.options=e||Jr}space(e){return""}code({text:e,lang:t,escaped:i}){const s=(t||"").match(/^\S*/)?.[0],r=e.replace(/\n$/,"")+`
`;return s?'<pre><code class="language-'+Oi(s)+'">'+(i?r:Oi(r,!0))+`</code></pre>
`:"<pre><code>"+(i?r:Oi(r,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,i=e.start;let s="";for(let o=0;o<e.items.length;o++){const a=e.items[o];s+=this.listitem(a)}const r=t?"ol":"ul",n=t&&i!==1?' start="'+i+'"':"";return"<"+r+n+`>
`+s+"</"+r+`>
`}listitem(e){let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" "}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",i="";for(let r=0;r<e.header.length;r++)i+=this.tablecell(e.header[r]);t+=this.tablerow({text:i});let s="";for(let r=0;r<e.rows.length;r++){const n=e.rows[r];i="";for(let o=0;o<n.length;o++)i+=this.tablecell(n[o]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+s+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const s=this.parser.parseInline(i),r=P7(e);if(r===null)return s;e=r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+s+"</a>",n}image({href:e,title:t,text:i}){const s=P7(e);if(s===null)return i;e=s;let r=`<img src="${e}" alt="${i}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},_f=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Yr=class Oy{options;renderer;textRenderer;constructor(t){this.options=t||Jr,this.options.renderer=this.options.renderer||new Nl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _f}static parse(t,i){return new Oy(i).parse(t)}static parseInline(t,i){return new Oy(i).parseInline(t)}parse(t,i=!0){let s="";for(let r=0;r<t.length;r++){const n=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const a=n,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){s+=c||"";continue}}const o=n;switch(o.type){case"space":{s+=this.renderer.space(o);continue}case"hr":{s+=this.renderer.hr(o);continue}case"heading":{s+=this.renderer.heading(o);continue}case"code":{s+=this.renderer.code(o);continue}case"table":{s+=this.renderer.table(o);continue}case"blockquote":{s+=this.renderer.blockquote(o);continue}case"list":{s+=this.renderer.list(o);continue}case"html":{s+=this.renderer.html(o);continue}case"paragraph":{s+=this.renderer.paragraph(o);continue}case"text":{let a=o,c=this.renderer.text(a);for(;r+1<t.length&&t[r+1].type==="text";)a=t[++r],c+=`
`+this.renderer.text(a);i?s+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):s+=c;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}parseInline(t,i){i=i||this.renderer;let s="";for(let r=0;r<t.length;r++){const n=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){const a=this.options.extensions.renderers[n.type].call({parser:this},n);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){s+=a||"";continue}}const o=n;switch(o.type){case"escape":{s+=i.text(o);break}case"html":{s+=i.html(o);break}case"link":{s+=i.link(o);break}case"image":{s+=i.image(o);break}case"strong":{s+=i.strong(o);break}case"em":{s+=i.em(o);break}case"codespan":{s+=i.codespan(o);break}case"br":{s+=i.br(o);break}case"del":{s+=i.del(o);break}case"text":{s+=i.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}},Ol=class{options;constructor(e){this.options=e||Jr}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}},n2=class{defaults=e0();options=this.setOptions;parse=this.parseMarkdown(Xr.lex,Yr.parse);parseInline=this.parseMarkdown(Xr.lexInline,Yr.parseInline);Parser=Yr;Renderer=Nl;TextRenderer=_f;Lexer=Xr;Tokenizer=Dl;Hooks=Ol;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(const s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{const r=s;for(const n of r.header)i=i.concat(this.walkTokens(n.tokens,t));for(const n of r.rows)for(const o of n)i=i.concat(this.walkTokens(o.tokens,t));break}case"list":{const r=s;i=i.concat(this.walkTokens(r.items,t));break}default:{const r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(n=>{const o=r[n].flat(1/0);i=i.concat(this.walkTokens(o,t))}):r.tokens&&(i=i.concat(this.walkTokens(r.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{const s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const n=t.renderers[r.name];n?t.renderers[r.name]=function(...o){let a=r.renderer.apply(this,o);return a===!1&&(a=n.apply(this,o)),a}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const n=t[r.level];n?n.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),s.extensions=t),i.renderer){const r=this.defaults.renderer||new Nl(this.defaults);for(const n in i.renderer){if(!(n in r))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const o=n,a=i.renderer[o],c=r[o];r[o]=(...l)=>{let u=a.apply(r,l);return u===!1&&(u=c.apply(r,l)),u||""}}s.renderer=r}if(i.tokenizer){const r=this.defaults.tokenizer||new Dl(this.defaults);for(const n in i.tokenizer){if(!(n in r))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const o=n,a=i.tokenizer[o],c=r[o];r[o]=(...l)=>{let u=a.apply(r,l);return u===!1&&(u=c.apply(r,l)),u}}s.tokenizer=r}if(i.hooks){const r=this.defaults.hooks||new Ol;for(const n in i.hooks){if(!(n in r))throw new Error(`hook '${n}' does not exist`);if(n==="options")continue;const o=n,a=i.hooks[o],c=r[o];Ol.passThroughHooks.has(n)?r[o]=l=>{if(this.defaults.async)return Promise.resolve(a.call(r,l)).then(h=>c.call(r,h));const u=a.call(r,l);return c.call(r,u)}:r[o]=(...l)=>{let u=a.apply(r,l);return u===!1&&(u=c.apply(r,l)),u}}s.hooks=r}if(i.walkTokens){const r=this.defaults.walkTokens,n=i.walkTokens;s.walkTokens=function(o){let a=[];return a.push(n.call(this,o)),r&&(a=a.concat(r.call(this,o))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Xr.lex(e,t??this.defaults)}parser(e,t){return Yr.parse(e,t??this.defaults)}parseMarkdown(e,t){return(s,r)=>{const n={...r},o={...this.defaults,...n},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&n.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(s):s).then(c=>e(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>t(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(a);try{o.hooks&&(s=o.hooks.preprocess(s));let c=e(s,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let l=t(c,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(c){return a(c)}}}onError(e,t){return i=>{if(i.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+Oi(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},Zr=new n2,He.options=He.setOptions=function(e){return Zr.setOptions(e),He.defaults=Zr.defaults,k7(He.defaults),He},He.getDefaults=e0,He.defaults=Jr,He.use=function(...e){return Zr.use(...e),He.defaults=Zr.defaults,k7(He.defaults),He},He.walkTokens=function(e,t){return Zr.walkTokens(e,t)},He.parseInline=Zr.parseInline,He.Parser=Yr,He.parser=Yr.parse,He.Renderer=Nl,He.TextRenderer=_f,He.Lexer=Xr,He.lexer=Xr.lex,He.Tokenizer=Dl,He.Hooks=Ol,He.parse=He,SF=He.options,xF=He.setOptions,kF=He.use,PF=He.walkTokens,IF=He.parseInline,CF=Yr.parse,DF=Xr.lex}});function*o2(e){const t=[e];for(;t.length>0;){const i=t.pop();if(yield i,i.children)for(const s of i.children.values())t.push(s)}}var qt,a2,bf,LF=y({"out-build/vs/base/common/prefixTree.js"(){"use strict";hn(),qt=Symbol("unset"),a2=class{constructor(){this.root=new bf,this._size=0}get size(){return this._size}get nodes(){return this.root.children?.values()||Ps.empty()}get entries(){return this.root.children?.entries()||Ps.empty()}insert(e,t,i){this.opNode(e,s=>s._value=t,i)}mutate(e,t){this.opNode(e,i=>i._value=t(i._value===qt?void 0:i._value))}mutatePath(e,t){this.opNode(e,()=>{},i=>t(i))}delete(e){const t=this.getPathToKey(e);if(!t)return;let i=t.length-1;const s=t[i].node._value;if(s!==qt){for(this._size--,t[i].node._value=qt;i>0;i--){const{node:r,part:n}=t[i];if(r.children?.size||r._value!==qt)break;t[i-1].node.children.delete(n)}return s}}*deleteRecursive(e){const t=this.getPathToKey(e);if(!t)return;const i=t[t.length-1].node;for(let s=t.length-1;s>0;s--){const r=t[s-1];if(r.node.children.delete(t[s].part),r.node.children.size>0||r.node._value!==qt)break}for(const s of o2(i))s._value!==qt&&(this._size--,yield s._value);i===this.root&&(this.root._value=qt,this.root.children=void 0)}find(e){let t=this.root;for(const i of e){const s=t.children?.get(i);if(!s)return;t=s}return t._value===qt?void 0:t._value}hasKeyOrParent(e){let t=this.root;for(const i of e){const s=t.children?.get(i);if(!s)return!1;if(s._value!==qt)return!0;t=s}return!1}hasKeyOrChildren(e){let t=this.root;for(const i of e){const s=t.children?.get(i);if(!s)return!1;t=s}return!0}hasKey(e){let t=this.root;for(const i of e){const s=t.children?.get(i);if(!s)return!1;t=s}return t._value!==qt}getPathToKey(e){const t=[{part:"",node:this.root}];let i=0;for(const s of e){const r=t[i].node.children?.get(s);if(!r)return;t.push({part:s,node:r}),i++}return t}opNode(e,t,i){let s=this.root;for(const o of e){if(s.children)if(s.children.has(o))s=s.children.get(o);else{const a=new bf;s.children.set(o,a),s=a}else{const a=new bf;s.children=new Map([[o,a]]),s=a}i?.(s)}const r=s._value===qt?0:1;t(s);const n=s._value===qt?0:1;this._size+=n-r}*values(){for(const{_value:e}of o2(this.root))e!==qt&&(yield e)}},bf=class{constructor(){this._value=qt}get value(){return this._value===qt?void 0:this._value}set value(e){this._value=e===void 0?qt:e}}}}),jn,d0=y({"out-build/vs/editor/common/core/position.js"(){"use strict";jn=class Yn{constructor(t,i){this.lineNumber=t,this.column=i}with(t=this.lineNumber,i=this.column){return t===this.lineNumber&&i===this.column?this:new Yn(t,i)}delta(t=0,i=0){return this.with(Math.max(1,this.lineNumber+t),Math.max(1,this.column+i))}equals(t){return Yn.equals(this,t)}static equals(t,i){return!t&&!i?!0:!!t&&!!i&&t.lineNumber===i.lineNumber&&t.column===i.column}isBefore(t){return Yn.isBefore(this,t)}static isBefore(t,i){return t.lineNumber<i.lineNumber?!0:i.lineNumber<t.lineNumber?!1:t.column<i.column}isBeforeOrEqual(t){return Yn.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,i){return t.lineNumber<i.lineNumber?!0:i.lineNumber<t.lineNumber?!1:t.column<=i.column}static compare(t,i){const s=t.lineNumber|0,r=i.lineNumber|0;if(s===r){const n=t.column|0,o=i.column|0;return n-o}return s-r}clone(){return new Yn(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new Yn(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}}}),gs,ga=y({"out-build/vs/editor/common/core/range.js"(){"use strict";d0(),gs=class st{constructor(t,i,s,r){let n,o,a,c;t==null||typeof t=="number"||Number.isNaN(t)?(n=t,o=i,a=s,c=r):"startLineNumber"in t&&"startColumn"in t?(n=t.startLineNumber,o=t.startColumn,a=t.endLineNumber,c=t.endColumn):(n=t.startLineNumber,o=1,a=t.endLineNumberExclusive,c=1),n>a||n===a&&o>c?(this.startLineNumber=a,this.startColumn=c,this.endLineNumber=n,this.endColumn=o):(this.startLineNumber=n,this.startColumn=o,this.endLineNumber=a,this.endColumn=c)}asIRange(){return{startLineNumber:this.startLineNumber,startColumn:this.startColumn,endLineNumber:this.endLineNumber,endColumn:this.endColumn}}isEmpty(){return st.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return st.containsPosition(this,t)}static containsPosition(t,i){return!(i.lineNumber<t.startLineNumber||i.lineNumber>t.endLineNumber||i.lineNumber===t.startLineNumber&&i.column<t.startColumn||i.lineNumber===t.endLineNumber&&i.column>t.endColumn)}static strictContainsPosition(t,i){return!(i.lineNumber<t.startLineNumber||i.lineNumber>t.endLineNumber||i.lineNumber===t.startLineNumber&&i.column<=t.startColumn||i.lineNumber===t.endLineNumber&&i.column>=t.endColumn)}containsRange(t){return st.containsRange(this,t)}static containsRange(t,i){return!(i.startLineNumber<t.startLineNumber||i.endLineNumber<t.startLineNumber||i.startLineNumber>t.endLineNumber||i.endLineNumber>t.endLineNumber||i.startLineNumber===t.startLineNumber&&i.startColumn<t.startColumn||i.endLineNumber===t.endLineNumber&&i.endColumn>t.endColumn)}strictContainsRange(t){return st.strictContainsRange(this,t)}static strictContainsRange(t,i){return!(i.startLineNumber<t.startLineNumber||i.endLineNumber<t.startLineNumber||i.startLineNumber>t.endLineNumber||i.endLineNumber>t.endLineNumber||i.startLineNumber===t.startLineNumber&&i.startColumn<=t.startColumn||i.endLineNumber===t.endLineNumber&&i.endColumn>=t.endColumn)}plusRange(t){return st.plusRange(this,t)}static getRangeAbove(t,i){const s=Math.max(t.startLineNumber-i,1),r=t.startLineNumber;return new st(s,t.startColumn,r,t.startColumn)}static getRangeOnBelow(t,i,s){const r=t.endLineNumber,n=Math.min(t.endLineNumber+i,s);return new st(r,t.endColumn,n,t.endColumn)}static getExtendedRange(t,i,s){const r=Math.max(t.startLineNumber-i,0),n=Math.min(t.endLineNumber+i,s);return new st(r,t.startColumn,n,t.endColumn)}static plusRange(t,i){let s,r,n,o;return i.startLineNumber<t.startLineNumber?(s=i.startLineNumber,r=i.startColumn):i.startLineNumber===t.startLineNumber?(s=i.startLineNumber,r=Math.min(i.startColumn,t.startColumn)):(s=t.startLineNumber,r=t.startColumn),i.endLineNumber>t.endLineNumber?(n=i.endLineNumber,o=i.endColumn):i.endLineNumber===t.endLineNumber?(n=i.endLineNumber,o=Math.max(i.endColumn,t.endColumn)):(n=t.endLineNumber,o=t.endColumn),new st(s,r,n,o)}intersectRanges(t){return st.intersectRanges(this,t)}static intersectRanges(t,i){let s=t.startLineNumber,r=t.startColumn,n=t.endLineNumber,o=t.endColumn;const a=i.startLineNumber,c=i.startColumn,l=i.endLineNumber,u=i.endColumn;return s<a?(s=a,r=c):s===a&&(r=Math.max(r,c)),n>l?(n=l,o=u):n===l&&(o=Math.min(o,u)),s>n||s===n&&r>o?null:new st(s,r,n,o)}static inverseEditRange(t,i){return{startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.startLineNumber+i.split(`
`).length-1,endColumn:i.lastIndexOf(`
`)===-1?t.startColumn+i.length:i.length-i.lastIndexOf(`
`)}}whereIs(t){return t.endLineNumber<this.startLineNumber||t.endLineNumber===this.startLineNumber&&t.endColumn<=this.startColumn?"before":t.startLineNumber>this.endLineNumber||t.startLineNumber===this.endLineNumber&&t.startColumn>=this.endColumn?"after":"overlapping"}static rangeAfterEdit(t,i){const s=st.lift(t).whereIs(i.range);switch(s){case"overlapping":throw new Error("Range is overlapping. The range after edit is ambiguous.");case"after":return t;case"before":{const r=i.text.split(`
`).length-1-(i.range.endLineNumber-i.range.startLineNumber);if(i.range.endLineNumber<t.startLineNumber)return{startLineNumber:t.startLineNumber+r,startColumn:t.startColumn,endLineNumber:t.endLineNumber+r,endColumn:t.endColumn};{const n=i.text.lastIndexOf(`
`)===-1?i.text.length:i.text.length-i.text.lastIndexOf(`
`)-1,o=i.range.startLineNumber===i.range.endLineNumber?i.range.endColumn-i.range.startColumn:i.range.endColumn-1,a=n-o;return{startLineNumber:t.startLineNumber+r,startColumn:t.startColumn+a,endLineNumber:t.endLineNumber+r,endColumn:t.startLineNumber===t.endLineNumber?t.endColumn+a:t.endColumn}}}default:{const r=s;return t}}}equalsRange(t){return st.equalsRange(this,t)}static equalsRange(t,i){return!t&&!i?!0:!!t&&!!i&&t.startLineNumber===i.startLineNumber&&t.startColumn===i.startColumn&&t.endLineNumber===i.endLineNumber&&t.endColumn===i.endColumn}getEndPosition(){return st.getEndPosition(this)}static getEndPosition(t){return new jn(t.endLineNumber,t.endColumn)}getStartPosition(){return st.getStartPosition(this)}static getStartPosition(t){return new jn(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,i){return new st(this.startLineNumber,this.startColumn,t,i)}setStartPosition(t,i){return new st(t,i,this.endLineNumber,this.endColumn)}collapseToStart(){return st.collapseToStart(this)}static collapseToStart(t){return new st(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return st.collapseToEnd(this)}static collapseToEnd(t){return new st(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new st(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,i=t){return new st(t.lineNumber,t.column,i.lineNumber,i.column)}static lift(t){return t?new st(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,i){return!(t.endLineNumber<i.startLineNumber||t.endLineNumber===i.startLineNumber&&t.endColumn<i.startColumn||i.endLineNumber<t.startLineNumber||i.endLineNumber===t.startLineNumber&&i.endColumn<t.startColumn)}static areIntersecting(t,i){return!(t.endLineNumber<i.startLineNumber||t.endLineNumber===i.startLineNumber&&t.endColumn<=i.startColumn||i.endLineNumber<t.startLineNumber||i.endLineNumber===t.startLineNumber&&i.endColumn<=t.startColumn)}static areOnlyIntersecting(t,i){return!(t.endLineNumber<i.startLineNumber-1||t.endLineNumber===i.startLineNumber&&t.endColumn<i.startColumn-1||i.endLineNumber<t.startLineNumber-1||i.endLineNumber===t.startLineNumber&&i.endColumn<t.startColumn-1)}static compareRangesUsingStarts(t,i){if(t&&i){const n=t.startLineNumber|0,o=i.startLineNumber|0;if(n===o){const a=t.startColumn|0,c=i.startColumn|0;if(a===c){const l=t.endLineNumber|0,u=i.endLineNumber|0;if(l===u){const h=t.endColumn|0,f=i.endColumn|0;return h-f}return l-u}return a-c}return n-o}return(t?1:0)-(i?1:0)}static compareRangesUsingEnds(t,i){return t.endLineNumber===i.endLineNumber?t.endColumn===i.endColumn?t.startLineNumber===i.startLineNumber?t.startColumn-i.startColumn:t.startLineNumber-i.startLineNumber:t.endColumn-i.endColumn:t.endLineNumber-i.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}}}}),AF=y({"out-build/vs/editor/common/core/editOperation.js"(){"use strict";ga()}}),f0,c2,NF=y({"out-build/vs/editor/common/tokenizationRegistry.js"(){"use strict";ie(),V(),f0=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new R,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),Se(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const i=new c2(this,e,t);this._factories.set(e,i);const s=new WeakRef(i);return Se(()=>{const r=this._factories.get(e),n=s.deref();!r||!n||r!==n||(this._factories.delete(e),r.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},c2=class extends G{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}}}),l2,u2,h2,d2,f2,p2,m2,g2,v2,y2,w2,_2,b2,OF,E2,S2,Bn,x2,k2,p0,P2,I2,C2,D2,R2,L2,TF,MF,A2,N2,FF=y({"out-build/vs/editor/common/languages.js"(){"use strict";$c(),Y(),AF(),ga(),NF(),ue(),(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(l2||(l2={})),(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(u2||(u2={})),(function(e){const t=new Map;t.set(0,U.symbolMethod),t.set(1,U.symbolFunction),t.set(2,U.symbolConstructor),t.set(3,U.symbolField),t.set(4,U.symbolVariable),t.set(5,U.symbolClass),t.set(6,U.symbolStruct),t.set(7,U.symbolInterface),t.set(8,U.symbolModule),t.set(9,U.symbolProperty),t.set(10,U.symbolEvent),t.set(11,U.symbolOperator),t.set(12,U.symbolUnit),t.set(13,U.symbolValue),t.set(15,U.symbolEnum),t.set(14,U.symbolConstant),t.set(15,U.symbolEnum),t.set(16,U.symbolEnumMember),t.set(17,U.symbolKeyword),t.set(27,U.symbolSnippet),t.set(18,U.symbolText),t.set(19,U.symbolColor),t.set(20,U.symbolFile),t.set(21,U.symbolReference),t.set(22,U.symbolCustomColor),t.set(23,U.symbolFolder),t.set(24,U.symbolTypeParameter),t.set(25,U.account),t.set(26,U.issues);function i(o){let a=t.get(o);return a||(console.info("No codicon found for CompletionItemKind "+o),a=U.symbolProperty),a}e.toIcon=i;function s(o){switch(o){case 0:return m(824,null);case 1:return m(825,null);case 2:return m(826,null);case 3:return m(827,null);case 4:return m(828,null);case 5:return m(829,null);case 6:return m(830,null);case 7:return m(831,null);case 8:return m(832,null);case 9:return m(833,null);case 10:return m(834,null);case 11:return m(835,null);case 12:return m(836,null);case 13:return m(837,null);case 14:return m(838,null);case 15:return m(839,null);case 16:return m(840,null);case 17:return m(841,null);case 18:return m(842,null);case 19:return m(843,null);case 20:return m(844,null);case 21:return m(845,null);case 22:return m(846,null);case 23:return m(847,null);case 24:return m(848,null);case 25:return m(849,null);case 26:return m(850,null);case 27:return m(851,null);default:return""}}e.toLabel=s;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function n(o,a){let c=r.get(o);return typeof c>"u"&&!a&&(c=9),c}e.fromString=n})(h2||(h2={})),(function(e){e[e.Deprecated=1]="Deprecated"})(d2||(d2={})),(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(f2||(f2={})),(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(p2||(p2={})),(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(m2||(m2={})),(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(g2||(g2={})),(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(v2||(v2={})),(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(y2||(y2={})),(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(w2||(w2={})),(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(_2||(_2={})),(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(b2||(b2={})),OF={17:m(852,null),16:m(853,null),4:m(854,null),13:m(855,null),8:m(856,null),9:m(857,null),21:m(858,null),23:m(859,null),7:m(860,null),0:m(861,null),11:m(862,null),10:m(863,null),19:m(864,null),5:m(865,null),1:m(866,null),2:m(867,null),20:m(868,null),15:m(869,null),18:m(870,null),24:m(871,null),3:m(872,null),6:m(873,null),14:m(874,null),22:m(875,null),25:m(876,null),12:m(877,null)},(function(e){e[e.Deprecated=1]="Deprecated"})(E2||(E2={})),(function(e){const t=new Map;t.set(0,U.symbolFile),t.set(1,U.symbolModule),t.set(2,U.symbolNamespace),t.set(3,U.symbolPackage),t.set(4,U.symbolClass),t.set(5,U.symbolMethod),t.set(6,U.symbolProperty),t.set(7,U.symbolField),t.set(8,U.symbolConstructor),t.set(9,U.symbolEnum),t.set(10,U.symbolInterface),t.set(11,U.symbolFunction),t.set(12,U.symbolVariable),t.set(13,U.symbolConstant),t.set(14,U.symbolString),t.set(15,U.symbolNumber),t.set(16,U.symbolBoolean),t.set(17,U.symbolArray),t.set(18,U.symbolObject),t.set(19,U.symbolKey),t.set(20,U.symbolNull),t.set(21,U.symbolEnumMember),t.set(22,U.symbolStruct),t.set(23,U.symbolEvent),t.set(24,U.symbolOperator),t.set(25,U.symbolTypeParameter);function i(n){let o=t.get(n);return o||(console.info("No codicon found for SymbolKind "+n),o=U.symbolProperty),o}e.toIcon=i;const s=new Map;s.set(0,20),s.set(1,8),s.set(2,8),s.set(3,8),s.set(4,5),s.set(5,0),s.set(6,9),s.set(7,3),s.set(8,2),s.set(9,15),s.set(10,7),s.set(11,1),s.set(12,4),s.set(13,14),s.set(14,18),s.set(15,13),s.set(16,13),s.set(17,13),s.set(18,13),s.set(19,17),s.set(20,13),s.set(21,16),s.set(22,6),s.set(23,10),s.set(24,11),s.set(25,24);function r(n){let o=s.get(n);return o===void 0&&(console.info("No completion kind found for SymbolKind "+n),o=20),o}e.toCompletionKind=r})(S2||(S2={})),Bn=class nn{static{this.Comment=new nn("comment")}static{this.Imports=new nn("imports")}static{this.Region=new nn("region")}static fromValue(t){switch(t){case"comment":return nn.Comment;case"imports":return nn.Imports;case"region":return nn.Region}return new nn(t)}constructor(t){this.value=t}},(function(e){e[e.AIGenerated=1]="AIGenerated"})(x2||(x2={})),(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(k2||(k2={})),(function(e){function t(i){return!i||typeof i!="object"?!1:typeof i.id=="string"&&typeof i.title=="string"}e.is=t})(p0||(p0={})),(function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"})(P2||(P2={})),(function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"})(I2||(I2={})),(function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"})(C2||(C2={})),(function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"})(D2||(D2={})),(function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"})(R2||(R2={})),(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(L2||(L2={})),TF=new f0,MF=new f0,(function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"})(A2||(A2={})),(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(N2||(N2={}))}}),O2,Ci,T2,UF,$F=y({"out-build/vs/platform/markers/common/markers.js"(){"use strict";uh(),ue(),se(),(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(O2||(O2={})),(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.AI=3]="AI",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Ci||(Ci={})),(function(e){function t(c,l){return l-c}e.compare=t;const i=Object.create(null);i[e.Error]=m(2106,null),i[e.Warning]=m(2107,null),i[e.Info]=m(2108,null),i[e.AI]="AI Hint";function s(c){return i[c]||""}e.toString=s;const r=Object.create(null);r[e.Error]=m(2109,null),r[e.Warning]=m(2110,null),r[e.Info]=m(2111,null);function n(c){return r[c]||""}e.toStringPlural=n;function o(c){switch(c){case je.Error:return e.Error;case je.Warning:return e.Warning;case je.Info:return e.Info;case je.Ignore:return e.Hint;case je.AI:return e.AI}}e.fromSeverity=o;function a(c){switch(c){case e.Error:return je.Error;case e.Warning:return je.Warning;case e.Info:return je.Info;case e.Hint:return je.Ignore;case e.AI:return je.AI}}e.toSeverity=a})(Ci||(Ci={})),(function(e){function i(r){return s(r,!0)}e.makeKey=i;function s(r,n){const o=[""];return r.source?o.push(r.source.replace("\xA6","\\\xA6")):o.push(""),r.code?typeof r.code=="string"?o.push(r.code.replace("\xA6","\\\xA6")):o.push(r.code.value.replace("\xA6","\\\xA6")):o.push(""),r.severity!==void 0&&r.severity!==null?o.push(Ci.toString(r.severity)):o.push(""),r.message&&n?o.push(r.message.replace("\xA6","\\\xA6")):o.push(""),r.startLineNumber!==void 0&&r.startLineNumber!==null?o.push(r.startLineNumber.toString()):o.push(""),r.startColumn!==void 0&&r.startColumn!==null?o.push(r.startColumn.toString()):o.push(""),r.endLineNumber!==void 0&&r.endLineNumber!==null?o.push(r.endLineNumber.toString()):o.push(""),r.endColumn!==void 0&&r.endColumn!==null?o.push(r.endColumn.toString()):o.push(""),o.push(""),o.join("\xA6")}e.makeKeyOptionalMessage=s})(T2||(T2={})),UF=te("markerService")}}),M2,WF,HF,VF=y({"out-build/vs/base/common/actions.js"(){"use strict";ie(),V(),ue(),M2=class extends G{constructor(e,t="",i="",s=!0,r){super(),this._onDidChange=this._register(new R),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=s,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}},WF=class Ty{constructor(){this.id=Ty.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...t){let i=[];for(const s of t)s.length&&(i.length?i=[...i,new Ty,...s]:i=s);return i}static{this.ID="vs.actions.separator"}async run(){}},HF=class uC extends M2{static{this.ID="vs.actions.empty"}constructor(){super(uC.ID,m(44,null),void 0,!1)}}}});function Ef(e){if(vr(e))return!1;const t=e;return t?.original!==void 0&&t.modified!==void 0}function F2(e){if(vr(e))return!1;const t=e;return!t||t.resources&&!Array.isArray(t.resources)?!1:!!t.resources||!!t.multiDiffSource}function U2(e){if(vr(e))return!1;const t=e;return Array.isArray(t?.resources)&&t.resources.every(i=>b.isUri(i))}function m0(e){if(vr(e)||Ef(e))return!1;const t=e;return t?.primary!==void 0&&t.secondary!==void 0}function Sf(e){if(vr(e))return!1;const t=e;return b.isUri(t?.base?.resource)&&b.isUri(t?.input1?.resource)&&b.isUri(t?.input2?.resource)&&b.isUri(t?.result?.resource)}function vr(e){return e instanceof G2}function jF(e){const t=e;return b.isUri(t?.preferredResource)}function BF(e){const t=e;return vr(t?.primary)&&vr(t?.secondary)}function zF(e){const t=e;return vr(t?.modified)&&vr(t?.original)}var $2,W2,H2,V2,j2,B2,z2,qF,q2,G2,Q2,J2,yr,X2,Y2,xf,Z2,K2,ek,g0=y({"out-build/vs/workbench/common/editor.js"(){"use strict";ue(),_e(),Y(),V(),se(),nr(),Xe(),xe(),oo(),VF(),uh(),$2={EditorPane:"workbench.contributions.editors",EditorFactory:"workbench.contributions.editor.inputFactories"},W2={id:"default",displayName:m(4273,null),providerDisplayName:m(4274,null)},(function(e){e[e.PROGRAMMATIC=1]="PROGRAMMATIC",e[e.USER=2]="USER",e[e.EDIT=3]="EDIT",e[e.NAVIGATION=4]="NAVIGATION",e[e.JUMP=5]="JUMP"})(H2||(H2={})),(function(e){e[e.IDENTICAL=1]="IDENTICAL",e[e.SIMILAR=2]="SIMILAR",e[e.DIFFERENT=3]="DIFFERENT"})(V2||(V2={})),(function(e){e[e.SHORT=0]="SHORT",e[e.MEDIUM=1]="MEDIUM",e[e.LONG=2]="LONG"})(j2||(j2={})),(function(e){e[e.EXPLICIT=1]="EXPLICIT",e[e.AUTO=2]="AUTO",e[e.FOCUS_CHANGE=3]="FOCUS_CHANGE",e[e.WINDOW_CHANGE=4]="WINDOW_CHANGE"})(B2||(B2={})),z2=class{constructor(){this.mapIdToSaveSource=new Map}registerSource(e,t){let i=this.mapIdToSaveSource.get(e);return i||(i={source:e,label:t},this.mapIdToSaveSource.set(e,i)),i.source}getSourceLabel(e){return this.mapIdToSaveSource.get(e)?.label??e}},qF=new z2,(function(e){e[e.None=0]="None",e[e.Readonly=2]="Readonly",e[e.Untitled=4]="Untitled",e[e.Singleton=8]="Singleton",e[e.RequiresTrust=16]="RequiresTrust",e[e.CanSplitInGroup=32]="CanSplitInGroup",e[e.ForceDescription=64]="ForceDescription",e[e.CanDropIntoEditor=128]="CanDropIntoEditor",e[e.MultipleEditors=256]="MultipleEditors",e[e.Scratchpad=512]="Scratchpad"})(q2||(q2={})),G2=class extends G{},(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.REPLACE=1]="REPLACE",e[e.MOVE=2]="MOVE",e[e.UNPIN=3]="UNPIN"})(Q2||(Q2={})),(function(e){e[e.GROUP_ACTIVE=0]="GROUP_ACTIVE",e[e.GROUP_INDEX=1]="GROUP_INDEX",e[e.GROUP_LABEL=2]="GROUP_LABEL",e[e.GROUP_LOCKED=3]="GROUP_LOCKED",e[e.EDITORS_SELECTION=4]="EDITORS_SELECTION",e[e.EDITOR_OPEN=5]="EDITOR_OPEN",e[e.EDITOR_CLOSE=6]="EDITOR_CLOSE",e[e.EDITOR_MOVE=7]="EDITOR_MOVE",e[e.EDITOR_ACTIVE=8]="EDITOR_ACTIVE",e[e.EDITOR_LABEL=9]="EDITOR_LABEL",e[e.EDITOR_CAPABILITIES=10]="EDITOR_CAPABILITIES",e[e.EDITOR_PIN=11]="EDITOR_PIN",e[e.EDITOR_TRANSIENT=12]="EDITOR_TRANSIENT",e[e.EDITOR_STICKY=13]="EDITOR_STICKY",e[e.EDITOR_DIRTY=14]="EDITOR_DIRTY",e[e.EDITOR_WILL_DISPOSE=15]="EDITOR_WILL_DISPOSE"})(J2||(J2={})),(function(e){e[e.PRIMARY=1]="PRIMARY",e[e.SECONDARY=2]="SECONDARY",e[e.BOTH=3]="BOTH",e[e.ANY=4]="ANY"})(yr||(yr={})),X2=class{getOriginalUri(e,t){if(!e)return;if(Sf(e))return xf.getOriginalUri(e.result,t);if(t?.supportSideBySide){const{primary:s,secondary:r}=this.getSideEditors(e);if(s&&r){if(t?.supportSideBySide===yr.BOTH)return{primary:this.getOriginalUri(s,{filterByScheme:t.filterByScheme}),secondary:this.getOriginalUri(r,{filterByScheme:t.filterByScheme})};if(t?.supportSideBySide===yr.ANY)return this.getOriginalUri(s,{filterByScheme:t.filterByScheme})??this.getOriginalUri(r,{filterByScheme:t.filterByScheme});e=t.supportSideBySide===yr.PRIMARY?s:r}}if(Ef(e)||F2(e)||m0(e)||Sf(e)||U2(e))return;const i=jF(e)?e.preferredResource:e.resource;return!i||!t||!t.filterByScheme?i:this.filterUri(i,t.filterByScheme)}getSideEditors(e){return BF(e)||m0(e)?{primary:e.primary,secondary:e.secondary}:zF(e)||Ef(e)?{primary:e.modified,secondary:e.original}:{primary:void 0,secondary:void 0}}getCanonicalUri(e,t){if(!e)return;if(Sf(e))return xf.getCanonicalUri(e.result,t);if(t?.supportSideBySide){const{primary:s,secondary:r}=this.getSideEditors(e);if(s&&r){if(t?.supportSideBySide===yr.BOTH)return{primary:this.getCanonicalUri(s,{filterByScheme:t.filterByScheme}),secondary:this.getCanonicalUri(r,{filterByScheme:t.filterByScheme})};if(t?.supportSideBySide===yr.ANY)return this.getCanonicalUri(s,{filterByScheme:t.filterByScheme})??this.getCanonicalUri(r,{filterByScheme:t.filterByScheme});e=t.supportSideBySide===yr.PRIMARY?s:r}}if(Ef(e)||F2(e)||m0(e)||Sf(e)||U2(e))return;const i=e.resource;return!i||!t||!t.filterByScheme?i:this.filterUri(i,t.filterByScheme)}filterUri(e,t){if(Array.isArray(t)){if(t.some(i=>e.scheme===i))return e}else if(t===e.scheme)return e}},(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.KEYBOARD=1]="KEYBOARD",e[e.MOUSE=2]="MOUSE"})(Y2||(Y2={})),xf=new X2,(function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"})(Z2||(Z2={})),K2=class{constructor(){this.editorSerializerConstructors=new Map,this.editorSerializerInstances=new Map}start(e){const t=this.instantiationService=e.get(wn);for(const[i,s]of this.editorSerializerConstructors)this.createEditorSerializer(i,s,t);this.editorSerializerConstructors.clear()}createEditorSerializer(e,t,i){const s=i.createInstance(t);this.editorSerializerInstances.set(e,s)}registerFileEditorFactory(e){if(this.fileEditorFactory)throw new Error("Can only register one file editor factory.");this.fileEditorFactory=e}getFileEditorFactory(){return Qp(this.fileEditorFactory)}registerEditorSerializer(e,t){if(this.editorSerializerConstructors.has(e)||this.editorSerializerInstances.has(e))throw new Error(`A editor serializer with type ID '${e}' was already registered.`);return this.instantiationService?this.createEditorSerializer(e,t,this.instantiationService):this.editorSerializerConstructors.set(e,t),Se(()=>{this.editorSerializerConstructors.delete(e),this.editorSerializerInstances.delete(e)})}getEditorSerializer(e){return this.editorSerializerInstances.get(typeof e=="string"?e:e.typeId)}},li.add($2.EditorFactory,new K2),(function(e){e[e.MOST_RECENTLY_ACTIVE=0]="MOST_RECENTLY_ACTIVE",e[e.SEQUENTIAL=1]="SEQUENTIAL"})(ek||(ek={}))}}),tk,ik,va,kf=y({"out-build/vs/workbench/contrib/testing/common/testId.js"(){"use strict";(function(e){e.Delimiter="\0"})(tk||(tk={})),(function(e){e[e.IsSame=0]="IsSame",e[e.Disconnected=1]="Disconnected",e[e.IsChild=2]="IsChild",e[e.IsParent=3]="IsParent"})(ik||(ik={})),va=class Zi{static fromExtHostTestItem(t,i,s=t.parent){if(t._isRoot)return new Zi([i]);const r=[t.id];for(let n=s;n&&n.id!==i;n=n.parent)r.push(n.id);return r.push(i),new Zi(r.reverse())}static isRoot(t){return!t.includes("\0")}static root(t){const i=t.indexOf("\0");return i===-1?t:t.slice(0,i)}static fromString(t){return new Zi(t.split("\0"))}static join(t,i){return new Zi([...t.path,i])}static split(t){return t.split("\0")}static joinToString(t,i){return t.toString()+"\0"+i}static parentId(t){const i=t.lastIndexOf("\0");return i===-1?void 0:t.slice(0,i)}static localId(t){const i=t.lastIndexOf("\0");return i===-1?t:t.slice(i+1)}static isChild(t,i){return i[t.length]==="\0"&&i.startsWith(t)}static compare(t,i){return t===i?0:Zi.isChild(t,i)?2:Zi.isChild(i,t)?3:1}static getLengthOfCommonPrefix(t,i){if(t===0)return 0;let s=0;for(;s<t-1;){for(let r=1;r<t;r++){const n=i(r-1),o=i(r);if(n.path[s]!==o.path[s])return s}s++}return s}constructor(t,i=t.length){if(this.path=t,this.viewEnd=i,t.length===0||i<1)throw new Error("cannot create test with empty path")}get rootId(){return new Zi(this.path,1)}get parentId(){return this.viewEnd>1?new Zi(this.path,this.viewEnd-1):void 0}get localId(){return this.path[this.viewEnd-1]}get controllerId(){return this.path[0]}get isRoot(){return this.viewEnd===1}*idsFromRoot(){for(let t=1;t<=this.viewEnd;t++)yield new Zi(this.path,t)}*idsToRoot(){for(let t=this.viewEnd;t>0;t--)yield new Zi(this.path,t)}compare(t){if(typeof t=="string")return Zi.compare(this.toString(),t);for(let i=0;i<t.viewEnd&&i<this.viewEnd;i++)if(t.path[i]!==this.path[i])return 1;return t.viewEnd>this.viewEnd?2:t.viewEnd<this.viewEnd?3:0}toJSON(){return this.toString()}toString(){if(!this.stringifed){this.stringifed=this.path[0];for(let t=1;t<this.viewEnd;t++)this.stringifed+="\0",this.stringifed+=this.path[t]}return this.stringifed}}}});function v0(e){return{...e,location:e.location?.toJSON()}}function y0(e){return e.location=e.location?jn.isIPosition(e.location)?jn.lift(e.location):gs.lift(e.location):void 0,e}var sk,rk,nk,ok,GF,ya,ak,Pf,If,Cf,Df,Tl,w0,ck,lk,Rf,uk,zn,Lf,hk,_0,dk,fk,pk,Af,Nf,Of,mk,gk,b0=y({"out-build/vs/workbench/contrib/testing/common/testTypes.js"(){"use strict";Y(),d0(),ga(),ue(),kf(),(function(e){e[e.Unset=0]="Unset",e[e.Queued=1]="Queued",e[e.Running=2]="Running",e[e.Passed=3]="Passed",e[e.Failed=4]="Failed",e[e.Skipped=5]="Skipped",e[e.Errored=6]="Errored"})(sk||(sk={})),(function(e){e[e.Run=1]="Run",e[e.Debug=2]="Debug",e[e.Coverage=3]="Coverage"})(rk||(rk={})),(function(e){e[e.Refresh=2]="Refresh",e[e.CodeRelatedToTest=4]="CodeRelatedToTest",e[e.TestRelatedToCode=8]="TestRelatedToCode"})(nk||(nk={})),(function(e){e[e.Run=2]="Run",e[e.Debug=4]="Debug",e[e.Coverage=8]="Coverage",e[e.HasNonDefaultProfile=16]="HasNonDefaultProfile",e[e.HasConfigurable=32]="HasConfigurable",e[e.SupportsContinuousRun=64]="SupportsContinuousRun"})(ok||(ok={})),GF={2:m(12142,null),4:m(12143,null),8:m(12144,null)},(function(e){e.serialize=t=>({range:t.range.toJSON(),uri:t.uri.toJSON()}),e.deserialize=(t,i)=>({range:gs.lift(i.range),uri:t.asCanonicalUri(b.revive(i.uri))})})(ya||(ya={})),(function(e){e[e.Error=0]="Error",e[e.Output=1]="Output"})(ak||(ak={})),(function(e){e.serialize=t=>({label:t.label,uri:t.uri?.toJSON(),position:t.position?.toJSON()}),e.deserialize=(t,i)=>({label:i.label,uri:i.uri?t.asCanonicalUri(b.revive(i.uri)):void 0,position:i.position?jn.lift(i.position):void 0})})(Pf||(Pf={})),(function(e){e.serialize=t=>({message:t.message,type:0,expected:t.expected,actual:t.actual,contextValue:t.contextValue,location:t.location&&ya.serialize(t.location),stackTrace:t.stackTrace?.map(Pf.serialize)}),e.deserialize=(t,i)=>({message:i.message,type:0,expected:i.expected,actual:i.actual,contextValue:i.contextValue,location:i.location&&ya.deserialize(t,i.location),stackTrace:i.stackTrace&&i.stackTrace.map(s=>Pf.deserialize(t,s))})})(If||(If={})),(function(e){e.serialize=t=>({message:t.message,type:1,offset:t.offset,length:t.length,location:t.location&&ya.serialize(t.location)}),e.deserialize=(t,i)=>({message:i.message,type:1,offset:i.offset,length:i.length,location:i.location&&ya.deserialize(t,i.location)})})(Cf||(Cf={})),(function(e){e.serialize=t=>t.type===0?If.serialize(t):Cf.serialize(t),e.deserialize=(t,i)=>i.type===0?If.deserialize(t,i):Cf.deserialize(t,i),e.isDiffable=t=>t.type===0&&t.actual!==void 0&&t.expected!==void 0})(Df||(Df={})),(function(e){e.serializeWithoutMessages=t=>({state:t.state,duration:t.duration,messages:[]}),e.serialize=t=>({state:t.state,duration:t.duration,messages:t.messages.map(Df.serialize)}),e.deserialize=(t,i)=>({state:i.state,duration:i.duration,messages:i.messages.map(s=>Df.deserialize(t,s))})})(Tl||(Tl={})),w0="\0",ck=(e,t)=>e+w0+t,lk=e=>{const t=e.indexOf(w0);return{ctrlId:e.slice(0,t),tagId:e.slice(t+1)}},(function(e){e.serialize=t=>({extId:t.extId,label:t.label,tags:t.tags,busy:t.busy,children:void 0,uri:t.uri?.toJSON(),range:t.range?.toJSON()||null,description:t.description,error:t.error,sortText:t.sortText}),e.deserialize=(t,i)=>({extId:i.extId,label:i.label,tags:i.tags,busy:i.busy,children:void 0,uri:i.uri?t.asCanonicalUri(b.revive(i.uri)):void 0,range:i.range?gs.lift(i.range):null,description:i.description,error:i.error,sortText:i.sortText})})(Rf||(Rf={})),(function(e){e[e.NotExpandable=0]="NotExpandable",e[e.Expandable=1]="Expandable",e[e.BusyExpanding=2]="BusyExpanding",e[e.Expanded=3]="Expanded"})(uk||(uk={})),(function(e){e.serialize=t=>({expand:t.expand,item:Rf.serialize(t.item)}),e.deserialize=(t,i)=>({controllerId:va.root(i.item.extId),expand:i.expand,item:Rf.deserialize(t,i.item)})})(zn||(zn={})),(function(e){e.serialize=t=>{let i;return t.item&&(i={},t.item.label!==void 0&&(i.label=t.item.label),t.item.tags!==void 0&&(i.tags=t.item.tags),t.item.busy!==void 0&&(i.busy=t.item.busy),t.item.uri!==void 0&&(i.uri=t.item.uri?.toJSON()),t.item.range!==void 0&&(i.range=t.item.range?.toJSON()),t.item.description!==void 0&&(i.description=t.item.description),t.item.error!==void 0&&(i.error=t.item.error),t.item.sortText!==void 0&&(i.sortText=t.item.sortText)),{extId:t.extId,expand:t.expand,item:i}},e.deserialize=t=>{let i;return t.item&&(i={},t.item.label!==void 0&&(i.label=t.item.label),t.item.tags!==void 0&&(i.tags=t.item.tags),t.item.busy!==void 0&&(i.busy=t.item.busy),t.item.range!==void 0&&(i.range=t.item.range?gs.lift(t.item.range):null),t.item.description!==void 0&&(i.description=t.item.description),t.item.error!==void 0&&(i.error=t.item.error),t.item.sortText!==void 0&&(i.sortText=t.item.sortText)),{extId:t.extId,expand:t.expand,item:i}}})(Lf||(Lf={})),(function(e){e.serializeWithoutMessages=t=>({...zn.serialize(t),ownComputedState:t.ownComputedState,computedState:t.computedState,tasks:t.tasks.map(Tl.serializeWithoutMessages)}),e.serialize=t=>({...zn.serialize(t),ownComputedState:t.ownComputedState,computedState:t.computedState,tasks:t.tasks.map(Tl.serialize)}),e.deserialize=(t,i)=>({...zn.deserialize(t,i),ownComputedState:i.ownComputedState,computedState:i.computedState,tasks:i.tasks.map(s=>Tl.deserialize(t,s)),retired:!0})})(hk||(hk={})),(function(e){e.empty=()=>({covered:0,total:0}),e.sum=(t,i)=>{t.covered+=i.covered,t.total+=i.total}})(_0||(_0={})),(function(e){e.serialize=t=>({id:t.id,statement:t.statement,branch:t.branch,declaration:t.declaration,testIds:t.testIds,uri:t.uri.toJSON()}),e.deserialize=(t,i)=>({id:i.id,statement:i.statement,branch:i.branch,declaration:i.declaration,testIds:i.testIds,uri:t.asCanonicalUri(b.revive(i.uri))}),e.empty=(t,i)=>({id:t,uri:i,statement:_0.empty()})})(dk||(dk={})),(function(e){e[e.Declaration=0]="Declaration",e[e.Statement=1]="Statement",e[e.Branch=2]="Branch"})(fk||(fk={})),(function(e){e.serialize=t=>t.type===0?Nf.serialize(t):Of.serialize(t),e.deserialize=t=>t.type===0?Nf.deserialize(t):Of.deserialize(t)})(pk||(pk={})),(function(e){e.serialize=v0,e.deserialize=y0})(Af||(Af={})),(function(e){e.serialize=v0,e.deserialize=y0})(Nf||(Nf={})),(function(e){e.serialize=t=>({...v0(t),branches:t.branches?.map(Af.serialize)}),e.deserialize=t=>({...y0(t),branches:t.branches?.map(Af.deserialize)})})(Of||(Of={})),(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.DocumentSynced=2]="DocumentSynced",e[e.Remove=3]="Remove",e[e.IncrementPendingExtHosts=4]="IncrementPendingExtHosts",e[e.Retire=5]="Retire",e[e.AddTag=6]="AddTag",e[e.RemoveTag=7]="RemoveTag"})(mk||(mk={})),(function(e){e.deserialize=(t,i)=>i.op===0?{op:i.op,item:zn.deserialize(t,i.item)}:i.op===1?{op:i.op,item:Lf.deserialize(i.item)}:i.op===2?{op:i.op,uri:t.asCanonicalUri(b.revive(i.uri)),docv:i.docv}:i,e.serialize=t=>t.op===0?{op:t.op,item:zn.serialize(t.item)}:t.op===1?{op:t.op,item:Lf.serialize(t.item)}:t})(gk||(gk={}))}}),QF,vk,yk,wk,_k,bk,Ek,Sk,JF=y({"out-build/vs/workbench/services/editor/common/editorGroupsService.js"(){"use strict";se(),g0(),QF=te("editorGroupsService"),(function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"})(vk||(vk={})),(function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.VERTICAL=1]="VERTICAL"})(yk||(yk={})),(function(e){e[e.FIRST=0]="FIRST",e[e.LAST=1]="LAST",e[e.NEXT=2]="NEXT",e[e.PREVIOUS=3]="PREVIOUS"})(wk||(wk={})),(function(e){e[e.MAXIMIZE=0]="MAXIMIZE",e[e.EXPAND=1]="EXPAND",e[e.EVEN=2]="EVEN"})(_k||(_k={})),(function(e){e[e.COPY_EDITORS=0]="COPY_EDITORS",e[e.MOVE_EDITORS=1]="MOVE_EDITORS"})(bk||(bk={})),(function(e){e[e.CREATION_TIME=0]="CREATION_TIME",e[e.MOST_RECENTLY_ACTIVE=1]="MOST_RECENTLY_ACTIVE",e[e.GRID_APPEARANCE=2]="GRID_APPEARANCE"})(Ek||(Ek={})),(function(e){e[e.NEW_EDITOR=1]="NEW_EDITOR",e[e.MOVE_EDITOR=2]="MOVE_EDITOR",e[e.COPY_EDITOR=3]="COPY_EDITOR"})(Sk||(Sk={}))}}),xk,kk,Pk,Ik=y({"out-build/vs/workbench/services/editor/common/editorService.js"(){"use strict";se(),JF(),xk=te("editorService"),kk=-1,Pk=-2}}),Ck,XF,YF=y({"out-build/vs/platform/extensionManagement/common/implicitActivationEvents.js"(){"use strict";ve(),cs(),Ck=class{constructor(){this._generators=new Map,this._cache=new WeakMap}register(e,t){this._generators.set(e,t)}readActivationEvents(e){return this._cache.has(e)||this._cache.set(e,this._readActivationEvents(e)),this._cache.get(e)}createActivationEventsMap(e){const t=Object.create(null);for(const i of e){const s=this.readActivationEvents(i);s.length>0&&(t[as.toKey(i.identifier)]=s)}return t}_readActivationEvents(e){if(typeof e.main>"u"&&typeof e.browser>"u")return[];const t=Array.isArray(e.activationEvents)?e.activationEvents.slice(0):[];for(let i=0;i<t.length;i++)t[i]==="onUri"&&(t[i]=`onUri:${as.toKey(e.identifier)}`);if(!e.contributes)return t;for(const i in e.contributes){const s=this._generators.get(i);if(!s)continue;const r=e.contributes[i],n=Array.isArray(r)?r:[r];try{s(n,t)}catch(o){Qt(o)}}return t}},XF=new Ck}});function ZF(e,t){return(t==="control"||t==="cursor"||t==="cursorNoDeps")&&!e.isBuiltin||!e.enabledApiProposals?!1:e.enabledApiProposals.includes(t)}function KF(e,t){if(!ZF(e,t))throw new Error(`Extension '${e.identifier.value}' CANNOT use API proposal: ${t}.
Its package.json#enabledApiProposals-property declares: ${e.enabledApiProposals?.join(", ")??"[]"} but NOT ${t}.
The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ${e.identifier.value}. Note that the cursor and control proposals are only available for built-in extensions`)}var eU,tU,Dk,Rk,iU=y({"out-build/vs/workbench/services/extensions/common/extensions.js"(){"use strict";ie(),Y(),ls(),YF(),cs(),se(),eU=Object.freeze({identifier:new as("nullExtensionDescription"),name:"Null Extension Description",version:"0.0.0",publisher:"vscode",engines:{vscode:""},extensionLocation:b.parse("void:location"),isBuiltin:!1,targetPlatform:"undefined",isUserBuiltin:!1,isUnderDevelopment:!1,preRelease:!1}),tU=te("extensionService"),(function(e){e[e.EagerAutoStart=1]="EagerAutoStart",e[e.EagerManualStart=2]="EagerManualStart",e[e.Lazy=3]="Lazy"})(Dk||(Dk={})),(function(e){e[e.Normal=0]="Normal",e[e.Immediate=1]="Immediate"})(Rk||(Rk={}))}}),Lk,wa,Ak,sU,Nk,Tf,Ok,Tk,Mk=y({"out-build/vs/workbench/contrib/testing/common/testItemCollection.js"(){"use strict";Ne(),ie(),V(),Fa(),b0(),kf(),(function(e){e[e.Upsert=0]="Upsert",e[e.SetTags=1]="SetTags",e[e.UpdateCanResolveChildren=2]="UpdateCanResolveChildren",e[e.RemoveChild=3]="RemoveChild",e[e.SetProp=4]="SetProp",e[e.Bulk=5]="Bulk",e[e.DocumentSynced=6]="DocumentSynced"})(Lk||(Lk={})),wa=(e,t)=>e===t,Ak={range:(e,t)=>e===t?!0:!e||!t?!1:e.equalsRange(t),busy:wa,label:wa,description:wa,error:wa,sortText:wa,tags:(e,t)=>!(e.length!==t.length||e.some(i=>!t.includes(i)))},sU=Object.entries(Ak),Nk=class extends Error{constructor(e){super(`Attempted to insert a duplicate test item ID ${e}`)}},Tf=class extends Error{constructor(e){super(`TestItem with ID "${e}" is invalid. Make sure to create it from the createTestItem method.`)}},Ok=class extends Error{constructor(e,t,i){super(`TestItem with ID "${e}" is from controller "${t}" and cannot be added as a child of an item from controller "${i}".`)}},Tk=(e,t,i)=>{let s=new Map;return{get size(){return s.size},forEach(r,n){for(const o of s.values())r.call(n,o,this)},[Symbol.iterator](){return s.entries()},replace(r){const n=new Map,o=new Set(s.keys()),a={op:5,ops:[]};for(const c of r){if(!(c instanceof i))throw new Tf(c.id);const l=t(c).controllerId;if(l!==e.controllerId)throw new Ok(c.id,l,e.controllerId);if(n.has(c.id))throw new Nk(c.id);n.set(c.id,c),o.delete(c.id),a.ops.push({op:0,item:c})}for(const c of o.keys())a.ops.push({op:3,id:c});e.listener?.(a),s=n},add(r){if(!(r instanceof i))throw new Tf(r.id);s.set(r.id,r),e.listener?.({op:0,item:r})},delete(r){s.delete(r)&&e.listener?.({op:3,id:r})},get(r){return s.get(r)},toJSON(){return Array.from(s.values())}}}}}),E0,Fk,S0,Uk=y({"out-build/vs/workbench/api/common/extHostTestingPrivateApi.js"(){"use strict";Mk(),E0=new WeakMap,Fk=(e,t)=>{const i={controllerId:t};return E0.set(e,i),i},S0=e=>{const t=E0.get(e);if(!t)throw new Tf(e?.id||"<unknown>");return t}}}),$k,Wk,Di,rU=y({"out-build/vs/workbench/contrib/chat/common/constants.js"(){"use strict";(function(e){e.UnifiedChatView="chat.unifiedChatView",e.UseFileStorage="chat.useFileStorage",e.AgentEnabled="chat.agent.enabled",e.Edits2Enabled="chat.edits2.enabled",e.ExtensionToolsEnabled="chat.extensionTools.enabled"})($k||($k={})),(function(e){e.Ask="ask",e.Edit="edit",e.Agent="agent"})(Wk||(Wk={})),(function(e){e.Panel="panel",e.Terminal="terminal",e.Notebook="notebook",e.Editor="editor",e.EditingSession="editing-session"})(Di||(Di={})),(function(e){function t(i){switch(i){case"panel":return e.Panel;case"terminal":return e.Terminal;case"notebook":return e.Notebook;case"editor":return e.Editor;case"editing-session":return e.EditingSession}return e.Panel}e.fromRaw=t})(Di||(Di={}))}});function x0(e){return typeof e>"u"?e:typeof e=="string"?b.file(e):e}var k0,H,wr,Hk,_r,Vk,Mf,jk,Ff,Ml,Bk,Ye,_a,Uf,P0,zk,vs,qk,Us,Kr,$f,Gk,Fl,Qk,Jk,en,Xk,Yk,Zk,Kk,eP,Wf,tP,I0,iP,C0,D0,sP,Hf,Vf,rP,nP,R0,L0,oP,aP,cP,lP,uP,hP,jf,dP,fP,Bf,pP,$s,mP,A0,zf,gP,qf,vP,ba,Gf,Qf,yP,wP,_P,bP,EP,N0,tn,O0,T0,Jf,SP,xP,kP,M0,PP,Ul,IP,F0,Ea,CP,DP,Xf,U0,$0,W0,Yf,Zf,H0,V0,j0,RP,LP,Kf,B0,z0,q0,ep,G0,AP,NP,OP,Q0,J0,X0,TP,Y0,MP,FP,tp,UP,Z0,$P,K0,WP,HP,VP,jP,BP=y({"out-build/vs/workbench/api/common/extHostTypeConverters.js"(){"use strict";kt(),Fe(),_F(),hu(),Ah(),ri(),RF(),Dc(),Pd(),Si(),K(),LF(),_t(),zg(),_e(),Y(),Bt(),ga(),FF(),$F(),g0(),V9(),kf(),b0(),Ik(),iU(),Uk(),Kv(),Kv(),rU(),(function(e){function t(s){const{selectionStartLineNumber:r,selectionStartColumn:n,positionLineNumber:o,positionColumn:a}=s,c=new De(r-1,n-1),l=new De(o-1,a-1);return new gl(c,l)}e.to=t;function i(s){const{anchor:r,active:n}=s;return{selectionStartLineNumber:r.line+1,selectionStartColumn:r.character+1,positionLineNumber:n.line+1,positionColumn:n.character+1}}e.from=i})(k0||(k0={})),(function(e){function t(s){if(!s)return;const{start:r,end:n}=s;return{startLineNumber:r.line+1,startColumn:r.character+1,endLineNumber:n.line+1,endColumn:n.character+1}}e.from=t;function i(s){if(!s)return;const{startLineNumber:r,startColumn:n,endLineNumber:o,endColumn:a}=s;return new tt(r-1,n-1,o-1,a-1)}e.to=i})(H||(H={})),(function(e){function t(s){return{uri:s.uri,range:H.from(s.range)}}e.from=t;function i(s){return new mr(b.revive(s.uri),H.to(s.range))}e.to=i})(wr||(wr={})),(function(e){function t(i){switch(i){case 1:return ua.Comment;case 0:return ua.Other;case 3:return ua.RegEx;case 2:return ua.String}}e.to=t})(Hk||(Hk={})),(function(e){function t(s){return new De(s.lineNumber-1,s.column-1)}e.to=t;function i(s){return{lineNumber:s.line+1,column:s.character+1}}e.from=i})(_r||(_r={})),(function(e){function t(r,n,o){return ts(kw(r).map(a=>i(a,n,o)))}e.from=t;function i(r,n,o){if(typeof r=="string")return{$serialized:!0,language:r,isBuiltin:o?.isBuiltin};if(r)return{$serialized:!0,language:r.language,scheme:s(r.scheme,n),pattern:$s.from(r.pattern)??void 0,exclusive:r.exclusive,notebookType:r.notebookType,isBuiltin:o?.isBuiltin}}function s(r,n){return n&&typeof r=="string"?n.transformOutgoingScheme(r):r}})(Vk||(Vk={})),(function(e){function t(s){switch(s){case ra.Unnecessary:return 1;case ra.Deprecated:return 2}}e.from=t;function i(s){switch(s){case 1:return ra.Unnecessary;case 2:return ra.Deprecated;default:return}}e.to=i})(Mf||(Mf={})),(function(e){function t(s){let r;return s.code&&(ye(s.code)||Ir(s.code)?r=String(s.code):r={value:String(s.code.value),target:s.code.target}),{...H.from(s.range),message:s.message,source:s.source,code:r,severity:Ml.from(s.severity),relatedInformation:s.relatedInformation&&s.relatedInformation.map(Ff.from),tags:Array.isArray(s.tags)?ts(s.tags.map(Mf.from)):void 0}}e.from=t;function i(s){const r=new Ld(H.to(s),s.message,Ml.to(s.severity));return r.source=s.source,r.code=ye(s.code)?s.code:s.code?.value,r.relatedInformation=s.relatedInformation&&s.relatedInformation.map(Ff.to),r.tags=s.tags&&ts(s.tags.map(Mf.to)),r}e.to=i})(jk||(jk={})),(function(e){function t(s){return{...H.from(s.location.range),message:s.message,resource:s.location.uri}}e.from=t;function i(s){return new yl(new mr(s.resource,H.to(s)),s.message)}e.to=i})(Ff||(Ff={})),(function(e){function t(s){switch(s){case Ni.Error:return Ci.Error;case Ni.Warning:return Ci.Warning;case Ni.Information:return Ci.Info;case Ni.Hint:return Ci.Hint}return Ci.Error}e.from=t;function i(s){switch(s){case Ci.Info:return Ni.Information;case Ci.Warning:return Ni.Warning;case Ci.Error:return Ni.Error;case Ci.Hint:return Ni.Hint;default:return Ni.Error}}e.to=i})(Ml||(Ml={})),(function(e){function t(s){return typeof s=="number"&&s>=qd.One?s-1:s===qd.Beside?Pk:kk}e.from=t;function i(s){if(typeof s=="number"&&s>=0)return s+1;throw new Error("invalid 'EditorGroupColumn'")}e.to=i})(Bk||(Bk={})),(function(e){function t(a){return a.map(e.from)}e.fromMany=t;function i(a){return a&&typeof a=="object"&&typeof a.language=="string"&&typeof a.value=="string"}function s(a){let c;if(i(a)){const{language:h,value:f}=a;c={value:"```"+h+`
`+f+"\n```\n"}}else gr.isMarkdownString(a)?c={value:a.value,isTrusted:a.isTrusted,supportThemeIcons:a.supportThemeIcons,supportHtml:a.supportHtml,baseUri:a.baseUri}:typeof a=="string"?c={value:a}:c={value:""};const l=Object.create(null);c.uris=l;const u=({href:h})=>{try{let f=b.parse(h,!0);f=f.with({query:r(f.query,l)}),l[h]=f}catch{}return""};return He.walkTokens(He.lexer(c.value),h=>{h.type==="link"?u({href:h.href}):h.type==="image"&&typeof h.href=="string"&&u(JN(h.href))}),c}e.from=s;function r(a,c){if(!a)return a;let l;try{l=Z4(a)}catch{}if(!l)return a;let u=!1;return l=rr(l,h=>{if(b.isUri(h)){const f=`__uri_${Math.random().toString(16).slice(2,8)}`;return c[f]=h,u=!0,f}else return}),u?JSON.stringify(l):a}function n(a){const c=new gr(a.value,a.supportThemeIcons);return c.isTrusted=a.isTrusted,c.supportHtml=a.supportHtml,c.baseUri=a.baseUri?b.from(a.baseUri):void 0,c}e.to=n;function o(a){if(a)return typeof a=="string"?a:e.from(a)}e.fromStrict=o})(Ye||(Ye={})),(function(e){function t(i){return typeof i>"u"?i:{contentText:i.contentText,contentIconPath:i.contentIconPath?x0(i.contentIconPath):void 0,border:i.border,borderColor:i.borderColor,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration,color:i.color,backgroundColor:i.backgroundColor,margin:i.margin,width:i.width,height:i.height}}e.from=t})(_a||(_a={})),(function(e){function t(i){return typeof i>"u"?i:{backgroundColor:i.backgroundColor,outline:i.outline,outlineColor:i.outlineColor,outlineStyle:i.outlineStyle,outlineWidth:i.outlineWidth,border:i.border,borderColor:i.borderColor,borderRadius:i.borderRadius,borderSpacing:i.borderSpacing,borderStyle:i.borderStyle,borderWidth:i.borderWidth,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration,cursor:i.cursor,color:i.color,opacity:i.opacity,letterSpacing:i.letterSpacing,gutterIconPath:i.gutterIconPath?x0(i.gutterIconPath):void 0,gutterIconSize:i.gutterIconSize,overviewRulerColor:i.overviewRulerColor,before:i.before?_a.from(i.before):void 0,after:i.after?_a.from(i.after):void 0}}e.from=t})(Uf||(Uf={})),(function(e){function t(i){if(typeof i>"u")return i;switch(i){case oa.OpenOpen:return 0;case oa.ClosedClosed:return 1;case oa.OpenClosed:return 2;case oa.ClosedOpen:return 3}}e.from=t})(P0||(P0={})),(function(e){function t(i){return{isWholeLine:i.isWholeLine,rangeBehavior:i.rangeBehavior?P0.from(i.rangeBehavior):void 0,overviewRulerLane:i.overviewRulerLane,light:i.light?Uf.from(i.light):void 0,dark:i.dark?Uf.from(i.dark):void 0,backgroundColor:i.backgroundColor,outline:i.outline,outlineColor:i.outlineColor,outlineStyle:i.outlineStyle,outlineWidth:i.outlineWidth,border:i.border,borderColor:i.borderColor,borderRadius:i.borderRadius,borderSpacing:i.borderSpacing,borderStyle:i.borderStyle,borderWidth:i.borderWidth,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration,cursor:i.cursor,color:i.color,opacity:i.opacity,letterSpacing:i.letterSpacing,gutterIconPath:i.gutterIconPath?x0(i.gutterIconPath):void 0,gutterIconSize:i.gutterIconSize,overviewRulerColor:i.overviewRulerColor,before:i.before?_a.from(i.before):void 0,after:i.after?_a.from(i.after):void 0}}e.from=t})(zk||(zk={})),(function(e){function t(s){return{text:s.newText,eol:s.newEol&&jf.from(s.newEol),range:H.from(s.range)}}e.from=t;function i(s){const r=new Wn(H.to(s.range),s.text);return r.newEol=typeof s.eol>"u"?void 0:jf.to(s.eol),r}e.to=i})(vs||(vs={})),(function(e){function t(s,r){const n={edits:[]};if(s instanceof vl){const o=new fu;for(const a of s._allEntries())a._type===1&&b.isUri(a.to)&&a.from===void 0&&o.add(a.to);for(const a of s._allEntries())if(a._type===1){let c;a.options?.contents&&(ArrayBuffer.isView(a.options.contents)?c={type:"base64",value:um(O.wrap(a.options.contents))}:c={type:"dataTransferItem",id:a.options.contents._itemId}),n.edits.push({oldResource:a.from,newResource:a.to,options:{...a.options,contents:c},metadata:a.metadata})}else a._type===2?n.edits.push({resource:a.uri,textEdit:vs.from(a.edit),versionId:o.has(a.uri)?void 0:r?.getTextDocumentVersion(a.uri),metadata:a.metadata}):a._type===6?n.edits.push({resource:a.uri,textEdit:{range:H.from(a.range),text:a.edit.value,insertAsSnippet:!0,keepWhitespace:a.keepWhitespace},versionId:o.has(a.uri)?void 0:r?.getTextDocumentVersion(a.uri),metadata:a.metadata}):a._type===3?n.edits.push({metadata:a.metadata,resource:a.uri,cellEdit:a.edit,notebookVersionId:r?.getNotebookDocumentVersion(a.uri)}):a._type===5&&n.edits.push({metadata:a.metadata,resource:a.uri,notebookVersionId:r?.getNotebookDocumentVersion(a.uri),cellEdit:{editType:1,index:a.index,count:a.count,cells:a.cells.map(ba.from)}})}return n}e.from=t;function i(s){const r=new vl,n=new Pt;for(const o of s.edits)if(o.textEdit){const a=o,c=b.revive(a.resource),l=H.to(a.textEdit.range),u=a.textEdit.text,h=a.textEdit.insertAsSnippet;let f;h?f=cv.replace(l,new sa(u)):f=Wn.replace(l,u);const p=n.get(c);p?p.push(f):n.set(c,[f])}else r.renameFile(b.revive(o.oldResource),b.revive(o.newResource),o.options);for(const[o,a]of n)r.set(o,a);return r}e.to=i})(qk||(qk={})),(function(e){const t=Object.create(null);t[We.File]=0,t[We.Module]=1,t[We.Namespace]=2,t[We.Package]=3,t[We.Class]=4,t[We.Method]=5,t[We.Property]=6,t[We.Field]=7,t[We.Constructor]=8,t[We.Enum]=9,t[We.Interface]=10,t[We.Function]=11,t[We.Variable]=12,t[We.Constant]=13,t[We.String]=14,t[We.Number]=15,t[We.Boolean]=16,t[We.Array]=17,t[We.Object]=18,t[We.Key]=19,t[We.Null]=20,t[We.EnumMember]=21,t[We.Struct]=22,t[We.Event]=23,t[We.Operator]=24,t[We.TypeParameter]=25;function i(r){return typeof t[r]=="number"?t[r]:6}e.from=i;function s(r){for(const n in t)if(t[n]===r)return Number(n);return We.Property}e.to=s})(Us||(Us={})),(function(e){function t(s){switch(s){case Fd.Deprecated:return 1}}e.from=t;function i(s){switch(s){case 1:return Fd.Deprecated}}e.to=i})(Kr||(Kr={})),(function(e){function t(s){return{name:s.name,kind:Us.from(s.kind),tags:s.tags&&s.tags.map(Kr.from),containerName:s.containerName,location:en.from(s.location)}}e.from=t;function i(s){const r=new Ud(s.name,Us.to(s.kind),s.containerName,en.to(s.location));return r.tags=s.tags&&s.tags.map(Kr.to),r}e.to=i})($f||($f={})),(function(e){function t(s){const r={name:s.name||"!!MISSING: name!!",detail:s.detail,range:H.from(s.range),selectionRange:H.from(s.selectionRange),kind:Us.from(s.kind),tags:s.tags?.map(Kr.from)??[]};return s.children&&(r.children=s.children.map(t)),r}e.from=t;function i(s){const r=new $d(s.name,s.detail,Us.to(s.kind),H.to(s.range),H.to(s.selectionRange));return du(s.tags)&&(r.tags=s.tags.map(Kr.to)),s.children&&(r.children=s.children.map(i)),r}e.to=i})(Gk||(Gk={})),(function(e){function t(s){const r=new uv(Us.to(s.kind),s.name,s.detail||"",b.revive(s.uri),H.to(s.range),H.to(s.selectionRange));return r._sessionId=s._sessionId,r._itemId=s._itemId,r}e.to=t;function i(s,r,n){if(r=r??s._sessionId,n=n??s._itemId,r===void 0||n===void 0)throw new Error("invalid item");return{_sessionId:r,_itemId:n,name:s.name,detail:s.detail,kind:Us.from(s.kind),uri:s.uri,range:H.from(s.range),selectionRange:H.from(s.selectionRange),tags:s.tags?.map(Kr.from)}}e.from=i})(Fl||(Fl={})),(function(e){function t(i){return new X9(Fl.to(i.from),i.fromRanges.map(s=>H.to(s)))}e.to=t})(Qk||(Qk={})),(function(e){function t(i){return new Y9(Fl.to(i.to),i.fromRanges.map(s=>H.to(s)))}e.to=t})(Jk||(Jk={})),(function(e){function t(s){return{range:s.range&&H.from(s.range),uri:s.uri}}e.from=t;function i(s){return new mr(b.revive(s.uri),H.to(s.range))}e.to=i})(en||(en={})),(function(e){function t(s){const r=s,n=s;return{originSelectionRange:r.originSelectionRange?H.from(r.originSelectionRange):void 0,uri:r.targetUri?r.targetUri:n.uri,range:H.from(r.targetRange?r.targetRange:n.range),targetSelectionRange:r.targetSelectionRange?H.from(r.targetSelectionRange):void 0}}e.from=t;function i(s){return{targetUri:b.revive(s.uri),targetRange:H.to(s.range),targetSelectionRange:s.targetSelectionRange?H.to(s.targetSelectionRange):void 0,originSelectionRange:s.originSelectionRange?H.to(s.originSelectionRange):void 0}}e.to=i})(Xk||(Xk={})),(function(e){function t(s){return{range:H.from(s.range),contents:Ye.fromMany(s.contents),canIncreaseVerbosity:s.canIncreaseVerbosity,canDecreaseVerbosity:s.canDecreaseVerbosity}}e.from=t;function i(s){const r=s.contents.map(Ye.to),n=H.to(s.range),o=s.canIncreaseVerbosity,a=s.canDecreaseVerbosity;return new Nd(r,n,o,a)}e.to=i})(Yk||(Yk={})),(function(e){function t(s){return{range:H.from(s.range),expression:s.expression}}e.from=t;function i(s){return new nf(H.to(s.range),s.expression)}e.to=i})(Zk||(Zk={})),(function(e){function t(s){if(s instanceof of)return{type:"text",range:H.from(s.range),text:s.text};if(s instanceof af)return{type:"variable",range:H.from(s.range),variableName:s.variableName,caseSensitiveLookup:s.caseSensitiveLookup};if(s instanceof cf)return{type:"expression",range:H.from(s.range),expression:s.expression};throw new Error("Unknown 'InlineValue' type")}e.from=t;function i(s){switch(s.type){case"text":return{range:H.to(s.range),text:s.text};case"variable":return{range:H.to(s.range),variableName:s.variableName,caseSensitiveLookup:s.caseSensitiveLookup};case"expression":return{range:H.to(s.range),expression:s.expression}}}e.to=i})(Kk||(Kk={})),(function(e){function t(s){return{frameId:s.frameId,stoppedLocation:H.from(s.stoppedLocation)}}e.from=t;function i(s){return new lf(s.frameId,H.to(s.stoppedLocation))}e.to=i})(eP||(eP={})),(function(e){function t(s){return{range:H.from(s.range),kind:s.kind}}e.from=t;function i(s){return new Td(H.to(s.range),s.kind)}e.to=i})(Wf||(Wf={})),(function(e){function t(s){return{uri:s.uri,highlights:s.highlights.map(Wf.from)}}e.from=t;function i(s){return new Md(b.revive(s.uri),s.highlights.map(Wf.to))}e.to=i})(tP||(tP={})),(function(e){function t(i){switch(i){case 1:return wl.TriggerCharacter;case 2:return wl.TriggerForIncompleteCompletions;case 0:default:return wl.Invoke}}e.to=t})(I0||(I0={})),(function(e){function t(i){return{triggerKind:I0.to(i.triggerKind),triggerCharacter:i.triggerCharacter}}e.to=t})(iP||(iP={})),(function(e){function t(s){switch(s){case Bd.Deprecated:return 1}}e.from=t;function i(s){switch(s){case 1:return Bd.Deprecated}}e.to=i})(C0||(C0={})),(function(e){const t=new Map([[X.Method,0],[X.Function,1],[X.Constructor,2],[X.Field,3],[X.Variable,4],[X.Class,5],[X.Interface,7],[X.Struct,6],[X.Module,8],[X.Property,9],[X.Unit,12],[X.Value,13],[X.Constant,14],[X.Enum,15],[X.EnumMember,16],[X.Keyword,17],[X.Snippet,27],[X.Text,18],[X.Color,19],[X.File,20],[X.Reference,21],[X.Folder,23],[X.Event,10],[X.Operator,11],[X.TypeParameter,24],[X.Issue,26],[X.User,25]]);function i(n){return t.get(n)??9}e.from=i;const s=new Map([[0,X.Method],[1,X.Function],[2,X.Constructor],[3,X.Field],[4,X.Variable],[5,X.Class],[7,X.Interface],[6,X.Struct],[8,X.Module],[9,X.Property],[12,X.Unit],[13,X.Value],[14,X.Constant],[15,X.Enum],[16,X.EnumMember],[17,X.Keyword],[27,X.Snippet],[18,X.Text],[19,X.Color],[20,X.File],[21,X.Reference],[23,X.Folder],[10,X.Event],[11,X.Operator],[24,X.TypeParameter],[25,X.User],[26,X.Issue]]);function r(n){return s.get(n)??X.Property}e.to=r})(D0||(D0={})),(function(e){function t(i,s){const r=new zd(i.label);return r.insertText=i.insertText,r.kind=D0.to(i.kind),r.tags=i.tags?.map(C0.to),r.detail=i.detail,r.documentation=Wc(i.documentation)?Ye.to(i.documentation):i.documentation,r.sortText=i.sortText,r.filterText=i.filterText,r.preselect=i.preselect,r.commitCharacters=i.commitCharacters,gs.isIRange(i.range)?r.range=H.to(i.range):typeof i.range=="object"&&(r.range={inserting:H.to(i.range.insert),replacing:H.to(i.range.replace)}),r.keepWhitespace=typeof i.insertTextRules>"u"?!1:!!(i.insertTextRules&1),typeof i.insertTextRules<"u"&&i.insertTextRules&4?r.insertText=new sa(i.insertText):(r.insertText=i.insertText,r.textEdit=r.range instanceof tt?new Wn(r.range,r.insertText):void 0),i.additionalTextEdits&&i.additionalTextEdits.length>0&&(r.additionalTextEdits=i.additionalTextEdits.map(n=>vs.to(n))),r.command=s&&i.command?s.fromInternal(i.command):void 0,r}e.to=t})(sP||(sP={})),(function(e){function t(s){if(typeof s.label!="string"&&!Array.isArray(s.label))throw new TypeError("Invalid label");return{label:s.label,documentation:Ye.fromStrict(s.documentation)}}e.from=t;function i(s){return{label:s.label,documentation:Wc(s.documentation)?Ye.to(s.documentation):s.documentation}}e.to=i})(Hf||(Hf={})),(function(e){function t(s){return{label:s.label,documentation:Ye.fromStrict(s.documentation),parameters:Array.isArray(s.parameters)?s.parameters.map(Hf.from):[],activeParameter:s.activeParameter}}e.from=t;function i(s){return{label:s.label,documentation:Wc(s.documentation)?Ye.to(s.documentation):s.documentation,parameters:Array.isArray(s.parameters)?s.parameters.map(Hf.to):[],activeParameter:s.activeParameter}}e.to=i})(Vf||(Vf={})),(function(e){function t(s){return{activeSignature:s.activeSignature,activeParameter:s.activeParameter,signatures:Array.isArray(s.signatures)?s.signatures.map(Vf.from):[]}}e.from=t;function i(s){return{activeSignature:s.activeSignature,activeParameter:s.activeParameter,signatures:Array.isArray(s.signatures)?s.signatures.map(Vf.to):[]}}e.to=i})(rP||(rP={})),(function(e){function t(i,s){const r=new jd(_r.to(s.position),typeof s.label=="string"?s.label:s.label.map(R0.to.bind(void 0,i)),s.kind&&L0.to(s.kind));return r.textEdits=s.textEdits&&s.textEdits.map(vs.to),r.tooltip=Wc(s.tooltip)?Ye.to(s.tooltip):s.tooltip,r.paddingLeft=s.paddingLeft,r.paddingRight=s.paddingRight,r}e.to=t})(nP||(nP={})),(function(e){function t(i,s){const r=new Vd(s.label);return r.tooltip=Wc(s.tooltip)?Ye.to(s.tooltip):s.tooltip,p0.is(s.command)&&(r.command=i.fromInternal(s.command)),s.location&&(r.location=en.to(s.location)),r}e.to=t})(R0||(R0={})),(function(e){function t(s){return s}e.from=t;function i(s){return s}e.to=i})(L0||(L0={})),(function(e){function t(s){return{range:H.from(s.range),url:s.target,tooltip:s.tooltip}}e.from=t;function i(s){let r;if(s.url)try{r=typeof s.url=="string"?b.parse(s.url,!0):b.revive(s.url)}catch{}const n=new Jd(H.to(s.range),r);return n.tooltip=s.tooltip,n}e.to=i})(oP||(oP={})),(function(e){function t(s){const r=new Xd(s.label);return s.textEdit&&(r.textEdit=vs.to(s.textEdit)),s.additionalTextEdits&&(r.additionalTextEdits=s.additionalTextEdits.map(n=>vs.to(n))),r}e.to=t;function i(s){return{label:s.label,textEdit:s.textEdit?vs.from(s.textEdit):void 0,additionalTextEdits:s.additionalTextEdits?s.additionalTextEdits.map(r=>vs.from(r)):void 0}}e.from=i})(aP||(aP={})),(function(e){function t(s){return new bl(s[0],s[1],s[2],s[3])}e.to=t;function i(s){return[s.red,s.green,s.blue,s.alpha]}e.from=i})(cP||(cP={})),(function(e){function t(s){return{range:H.from(s.range)}}e.from=t;function i(s){return new Hd(H.to(s.range))}e.to=i})(lP||(lP={})),(function(e){function t(i){switch(i){case 2:return _l.AfterDelay;case 1:return _l.Manual;case 3:case 4:return _l.FocusOut}}e.to=t})(uP||(uP={})),(function(e){function t(s){switch(s){case Fs.Off:return 0;case Fs.Relative:return 2;case Fs.Interval:return 3;case Fs.On:default:return 1}}e.from=t;function i(s){switch(s){case 0:return Fs.Off;case 2:return Fs.Relative;case 3:return Fs.Interval;case 1:default:return Fs.On}}e.to=i})(hP||(hP={})),(function(e){function t(s){if(s===ia.CRLF)return 1;if(s===ia.LF)return 0}e.from=t;function i(s){if(s===1)return ia.CRLF;if(s===0)return ia.LF}e.to=i})(jf||(jf={})),(function(e){function t(i){if(typeof i=="object")return i.viewId;switch(i){case El.SourceControl:return 3;case El.Window:return 10;case El.Notification:return 15}throw new Error("Unknown 'ProgressLocation'")}e.from=t})(dP||(dP={})),(function(e){function t(s){const r={start:s.start+1,end:s.end+1};return s.kind&&(r.kind=Bf.from(s.kind)),r}e.from=t;function i(s){const r={start:s.start-1,end:s.end-1};return s.kind&&(r.kind=Bf.to(s.kind)),r}e.to=i})(fP||(fP={})),(function(e){function t(s){if(s)switch(s){case Gr.Comment:return Bn.Comment;case Gr.Imports:return Bn.Imports;case Gr.Region:return Bn.Region}}e.from=t;function i(s){if(s)switch(s.value){case Bn.Comment.value:return Gr.Comment;case Bn.Imports.value:return Gr.Imports;case Bn.Region.value:return Gr.Region}}e.to=i})(Bf||(Bf={})),(function(e){function t(i){if(i)return{pinned:typeof i.preview=="boolean"?!i.preview:void 0,inactive:i.background,preserveFocus:i.preserveFocus,selection:typeof i.selection=="object"?H.from(i.selection):void 0,override:typeof i.override=="boolean"?W2.id:void 0}}e.from=t})(pP||(pP={})),(function(e){function t(n){return n instanceof aa?n.toJSON():typeof n=="string"?n:i(n)||s(n)?new aa(n.baseUri??n.base,n.pattern).toJSON():n}e.from=t;function i(n){const o=n;return o?b.isUri(o.baseUri)&&typeof o.pattern=="string":!1}function s(n){const o=n;return o?typeof o.base=="string"&&typeof o.pattern=="string":!1}function r(n){return typeof n=="string"?n:new aa(b.revive(n.baseUri),n.pattern)}e.to=r})($s||($s={})),(function(e){function t(i){if(i){if(Array.isArray(i))return i.map(t);if(typeof i=="string")return i;{const s=i;return{language:s.language,scheme:s.scheme,pattern:$s.from(s.pattern)??void 0,exclusive:s.exclusive,notebookType:s.notebookType}}}else return}e.from=t})(mP||(mP={})),(function(e){function t(s){return{start:s.start,end:s.end}}e.from=t;function i(s){return new Vn(s.start,s.end)}e.to=i})(A0||(A0={})),(function(e){function t(s){return{timing:typeof s.runStartTime=="number"&&typeof s.runEndTime=="number"?{startTime:s.runStartTime,endTime:s.runEndTime}:void 0,executionOrder:s.executionOrder,success:s.lastRunSuccess}}e.to=t;function i(s){return{lastRunSuccess:s.success,runStartTime:s.timing?.startTime,runEndTime:s.timing?.endTime,executionOrder:s.executionOrder}}e.from=i})(zf||(zf={})),(function(e){function t(i){if(i===fl.Unconfirmed)return uf.Pending;if(i===fl.Pending)return;if(i===fl.Executing)return uf.Executing;throw new Error(`Unknown state: ${i}`)}e.to=t})(gP||(gP={})),(function(e){function t(s){switch(s){case la.Markup:return ta.Markup;case la.Code:default:return ta.Code}}e.from=t;function i(s){switch(s){case ta.Markup:return la.Markup;case ta.Code:default:return la.Code}}e.to=i})(qf||(qf={})),(function(e){function t(s){const r={metadata:s.metadata??Object.create(null),cells:[]};for(const n of s.cells)Tv.validate(n),r.cells.push(ba.from(n));return r}e.from=t;function i(s){const r=new $8(s.cells.map(ba.to));return Jp(s.metadata)||(r.metadata=s.metadata),r}e.to=i})(vP||(vP={})),(function(e){function t(s){return{cellKind:qf.from(s.kind),language:s.languageId,mime:s.mime,source:s.value,metadata:s.metadata,internalMetadata:zf.from(s.executionSummary??{}),outputs:s.outputs?s.outputs.map(Qf.from):[]}}e.from=t;function i(s){return new Tv(qf.to(s.cellKind),s.source,s.language,s.mime,s.outputs?s.outputs.map(Qf.to):void 0,s.metadata,s.internalMetadata?zf.to(s.internalMetadata):void 0)}e.to=i})(ba||(ba={})),(function(e){function t(s){return{mime:s.mime,valueBytes:O.wrap(s.data)}}e.from=t;function i(s){return new W8(s.valueBytes.buffer,s.mime)}e.to=i})(Gf||(Gf={})),(function(e){function t(s){return{outputId:s.id,items:s.items.map(Gf.from),metadata:s.metadata}}e.from=t;function i(s){const r=s.items.map(Gf.to);return new H8(r,s.outputId,s.metadata)}e.to=i})(Qf||(Qf={})),(function(e){function t(r){return s(r)?{include:$s.from(r.include)??void 0,exclude:$s.from(r.exclude)??void 0}:$s.from(r)??void 0}e.from=t;function i(r){return s(r)?{include:$s.to(r.include),exclude:$s.to(r.exclude)}:$s.to(r)}e.to=i;function s(r){const n=r;return n?!It(n.include)&&!It(n.exclude):!1}})(yP||(yP={})),(function(e){function t(i,s,r){const n=typeof i.command=="string"?{title:"",command:i.command}:i.command;return{alignment:i.alignment===Mv.Left?1:2,command:s.toInternal(n,r),text:i.text,tooltip:i.tooltip,accessibilityInformation:i.accessibilityInformation,priority:i.priority}}e.from=t})(wP||(wP={})),(function(e){function t(i,s,r){const n=typeof i.command=="string"?{title:"",command:i.command}:i.command;return{command:s.toInternal(n,r),label:i.label,description:i.description,detail:i.detail,documentation:i.documentation}}e.from=t})(_P||(_P={})),(function(e){function t(i){return{transientOutputs:i?.transientOutputs??!1,transientCellMetadata:i?.transientCellMetadata??{},transientDocumentMetadata:i?.transientDocumentMetadata??{},cellContentMetadata:i?.cellContentMetadata??{}}}e.from=t})(bP||(bP={})),(function(e){function t(s){return{uri:s.uri,provides:s.provides}}e.from=t;function i(s){return new z8(b.revive(s.uri),s.provides)}e.to=i})(EP||(EP={})),(function(e){function t(s){return{message:Ye.fromStrict(s.message)||"",type:0,expected:s.expectedOutput,actual:s.actualOutput,contextValue:s.contextValue,location:s.location&&{range:H.from(s.location.range),uri:s.location.uri},stackTrace:s.stackTrace?.map(r=>({label:r.label,position:r.position&&_r.from(r.position),uri:r.uri&&b.revive(r.uri).toJSON()}))}}e.from=t;function i(s){const r=new hf(typeof s.message=="string"?s.message:Ye.to(s.message));return r.actualOutput=s.actual,r.expectedOutput=s.expected,r.contextValue=s.contextValue,r.location=s.location?en.to(s.location):void 0,r}e.to=i})(N0||(N0={})),(function(e){e.namespace=ck,e.denamespace=lk})(tn||(tn={})),(function(e){function t(i){return{controllerId:i.controllerId,profileId:i.profileId,group:T0.from(i.kind)}}e.from=t})(O0||(O0={})),(function(e){const t={[xl.Coverage]:8,[xl.Debug]:4,[xl.Run]:2};function i(s){return t.hasOwnProperty(s)?t[s]:2}e.from=i})(T0||(T0={})),(function(e){function t(s){const r=S0(s).controllerId;return{extId:va.fromExtHostTestItem(s,r).toString(),label:s.label,uri:b.revive(s.uri),busy:s.busy,tags:s.tags.map(n=>tn.namespace(r,n.id)),range:gs.lift(H.from(s.range)),description:s.description||null,sortText:s.sortText||null,error:s.error&&Ye.fromStrict(s.error)||null}}e.from=t;function i(s){return{parent:void 0,error:void 0,id:va.fromString(s.extId).localId,label:s.label,uri:b.revive(s.uri),tags:(s.tags||[]).map(r=>{const{tagId:n}=tn.denamespace(r);return new kl(n)}),children:{add:()=>{},delete:()=>{},forEach:()=>{},*[Symbol.iterator](){},get:()=>{},replace:()=>{},size:0},range:H.to(s.range||void 0),canResolveChildren:!1,busy:s.busy,description:s.description||void 0,sortText:s.sortText||void 0}}e.toPlain=i})(Jf||(Jf={})),(function(e){function t(s){return{id:s.id}}e.from=t;function i(s){return new kl(s.id)}e.to=i})(tn||(tn={})),(function(e){const t=(s,r)=>{const n=s.value;if(!n)return;const o={...Jf.toPlain(n.item),parent:r,taskStates:n.tasks.map(a=>({state:a.state,duration:a.duration,messages:a.messages.filter(c=>c.type===0).map(N0.to)})),children:[]};if(s.children)for(const a of s.children.values()){const c=t(a,o);c&&o.children.push(c)}return o};function i(s){const r=new a2;for(const a of s.items)r.insert(va.fromString(a.item.extId).path,a);const n=[r.nodes],o=[];for(;n.length;)for(const a of n.pop())a.value?o.push(a):a.children&&n.push(a.children.values());return{completedAt:s.completedAt,results:o.map(a=>t(a)).filter(Gp)}}e.to=i})(SP||(SP={})),(function(e){function t(a){return{covered:a.covered,total:a.total}}function i(a){return"line"in a?_r.from(a):H.from(a)}function s(a){if(a)return"endLineNumber"in a?H.to(a):_r.to(a)}function r(a){if(a.type===1){const c=[];if(a.branches)for(const l of a.branches)c.push({executed:l.count,location:s(l.location),label:l.label});return new Z8(a.count,s(a.location),a.branches?.map(l=>new K8(l.count,s(l.location),l.label)))}else return new e7(a.name,a.count,s(a.location))}e.to=r;function n(a){if(typeof a.executed=="number"&&a.executed<0)throw new Error(`Invalid coverage count ${a.executed}`);return"branches"in a?{count:a.executed,location:i(a.location),type:1,branches:a.branches.length?a.branches.map(c=>({count:c.executed,location:c.location&&i(c.location),label:c.label})):void 0}:{type:0,name:a.name,count:a.executed,location:i(a.location)}}e.fromDetails=n;function o(a,c,l){return Cd(l.statementCoverage),Cd(l.branchCoverage),Cd(l.declarationCoverage),{id:c,uri:l.uri,statement:t(l.statementCoverage),branch:l.branchCoverage&&t(l.branchCoverage),declaration:l.declarationCoverage&&t(l.declarationCoverage),testIds:l instanceof Y8&&l.includesTests.length?l.includesTests.map(u=>va.fromExtHostTestItem(u,a).toString()):void 0}}e.fromFile=o})(xP||(xP={})),(function(e){function t(i){switch(i){case 1:return Wd.Invoke;case 2:return Wd.Automatic}}e.to=t})(kP||(kP={})),(function(e){function t(s){const r=new $v(Us.to(s.kind),s.name,s.detail||"",b.revive(s.uri),H.to(s.range),H.to(s.selectionRange));return r._sessionId=s._sessionId,r._itemId=s._itemId,r}e.to=t;function i(s,r,n){if(r=r??s._sessionId,n=n??s._itemId,r===void 0||n===void 0)throw new Error("invalid item");return{_sessionId:r,_itemId:n,kind:Us.from(s.kind),name:s.name,detail:s.detail??"",uri:s.uri,range:H.from(s.range),selectionRange:H.from(s.selectionRange),tags:s.tags?.map(Kr.from)}}e.from=i})(M0||(M0={})),(function(e){function t(i){if(i)return{value:i.value,tooltip:i.tooltip}}e.from=t})(PP||(PP={})),(function(e){function t(n,o,a){const c=o.fileData;return c?new y8(new w8(c.name,b.revive(c.uri),c.id,uu(()=>a(c.id)))):n===Os.uriList&&o.uriListData?new sf(r(o.uriListData)):new sf(o.asString)}e.to=t;async function i(n,o,a=Ve()){const c=await o.asString();if(n===Os.uriList)return{id:a,asString:c,fileData:void 0,uriListData:s(c)};const l=o.asFile();return{id:a,asString:c,fileData:l?{name:l.name,uri:l.uri,id:l._itemId??l.id}:void 0}}e.from=i;function s(n){return ff.split(n).map(o=>{if(o.startsWith("#"))return o;try{return b.parse(o)}catch{}return o})}function r(n){return ff.create(n.map(o=>typeof o=="string"?o:b.revive(o)))}})(Ul||(Ul={})),(function(e){function t(r,n){const o=r.items.map(([a,c])=>[a,Ul.to(a,c,n)]);return new rf(o)}e.toDataTransfer=t;async function i(r){return{items:await Promise.all(Array.from(r,async([o,a])=>[o,await Ul.from(o,a)]))}}e.from=i;async function s(r){return{items:await Promise.all(Array.from(r,async([o,a])=>[o,await Ul.from(o,a,a.id)]))}}e.fromList=s})(IP||(IP={})),(function(e){function t(s,r){return{kind:"reply",agentId:s.participant??r?.agentId??"",subCommand:s.command??r?.command,message:s.prompt,title:s.label}}e.from=t;function i(s){return{prompt:s.message,label:s.title,participant:s.agentId,command:s.subCommand}}e.to=i})(F0||(F0={})),(function(e){function t(s){switch(s){case 0:return Xi.System;case 1:return Xi.User;case 2:return Xi.Assistant}}e.to=t;function i(s){switch(s){case Xi.System:return 0;case Xi.User:return 1;case Xi.Assistant:return 2}return 1}e.from=i})(Ea||(Ea={})),(function(e){function t(s){const r=s.content.map(a=>{if(a.type==="text")return new Lt(a.value);if(a.type==="tool_result"){const c=a.value.map(l=>l.type==="text"?new Lt(l.value):new Qr(l.value));return new Pl(a.toolCallId,c,a.isError)}else return a.type==="image_url"?void 0:new Il(a.toolCallId,a.name,a.parameters)}).filter(a=>a!==void 0),n=Ea.to(s.role);return new g7(n,r,s.name)}e.to=t;function i(s){const r=Ea.from(s.role),n=s.name;let o=s.content;typeof o=="string"&&(o=[new Lt(o)]);const a=o.map(c=>{if(c instanceof Pl)return{type:"tool_result",toolCallId:c.callId,value:ts(c.content.map(l=>l instanceof Lt?{type:"text",value:l.value}:l instanceof Qr?{type:"prompt_tsx",value:l.value}:void 0)),isError:c.isError};if(c instanceof Il)return{type:"tool_use",toolCallId:c.callId,name:c.name,parameters:c.input};if(c instanceof Lt)return{type:"text",value:c.value};if(typeof c!="string")throw new Error("Unexpected chat message content type");return{type:"text",value:c}});return{role:r,name:n,content:a}}e.from=i})(CP||(CP={})),(function(e){function t(s){const r=s.content.map(a=>{if(a.type==="text")return new Lt(a.value);if(a.type==="tool_result"){const c=a.value.map(l=>l.type==="text"?new Lt(l.value):new Qr(l.value));return new Pl(a.toolCallId,c,a.isError)}else if(a.type==="image_url"){const c={mimeType:a.value.mimeType,data:a.value.data.buffer};return new Yv(c)}else return new Il(a.toolCallId,a.name,a.parameters)}),n=Ea.to(s.role);return new v7(n,r,s.name)}e.to=t;function i(s){const r=Ea.from(s.role),n=s.name;let o=s.content;typeof o=="string"&&(o=[new Lt(o)]);const a=o.map(c=>{if(c instanceof Pl)return{type:"tool_result",toolCallId:c.callId,value:ts(c.content.map(l=>l instanceof Lt?{type:"text",value:l.value}:l instanceof Qr?{type:"prompt_tsx",value:l.value}:void 0)),isError:c.isError};if(c instanceof Yv)return{type:"image_url",value:{mimeType:c.value.mimeType,data:O.wrap(c.value.data)}};if(c instanceof Il)return{type:"tool_use",toolCallId:c.callId,name:c.name,parameters:c.input};if(c instanceof Lt)return{type:"text",value:c.value};if(typeof c!="string")throw new Error("Unexpected chat message content type");return{type:"text",value:c}});return{role:r,name:n,content:a}}e.from=i})(DP||(DP={})),(function(e){function t(s){return{kind:"markdownContent",content:Ye.from(s.value)}}e.from=t;function i(s){return new Wv(Ye.to(s.content))}e.to=i})(Xf||(Xf={})),(function(e){function t(s){return{kind:"codeblockUri",uri:s.value,isEdit:s.isEdit}}e.from=t;function i(s){return new Qv(b.revive(s.uri),s.isEdit)}e.to=i})(U0||(U0={})),(function(e){function t(s){return{kind:"markdownVuln",content:Ye.from(s.value),vulnerabilities:s.vulnerabilities}}e.from=t;function i(s){return new Hv(Ye.to(s.content),s.vulnerabilities)}e.to=i})($0||($0={})),(function(e){function t(i){return{kind:"confirmation",title:i.title,message:i.message,data:i.data,buttons:i.buttons}}e.from=t})(W0||(W0={})),(function(e){function t(s){const{value:r,baseUri:n}=s;function o(a,c){return a.map(l=>{const u=b.joinPath(c,l.name);return{label:l.name,uri:u,children:l.children&&o(l.children,u)}})}return{kind:"treeData",treeData:{label:Nr(n),uri:n,children:o(r,n)}}}e.from=t;function i(s){const r=zi(s.treeData);function n(c){return c.map(l=>({name:l.label,children:l.children&&n(l.children)}))}const o=r.uri,a=r.children?n(r.children):[];return new Vv(a,o)}e.to=i})(Yf||(Yf={})),(function(e){function t(s){const r=o=>b.isUri(o),n=o=>"name"in o;return{kind:"inlineReference",name:s.title,inlineReference:r(s.value)?s.value:n(s.value)?$f.from(s.value):wr.from(s.value)}}e.from=t;function i(s){const r=zi(s);return new jv(b.isUri(r.inlineReference)?r.inlineReference:"location"in r.inlineReference?$f.to(r.inlineReference):wr.to(r.inlineReference),s.name)}e.to=i})(Zf||(Zf={})),(function(e){function t(s){return{kind:"progressMessage",content:Ye.from(s.value)}}e.from=t;function i(s){return new Bv(s.content.value)}e.to=i})(H0||(H0={})),(function(e){function t(s){return{kind:"warning",content:Ye.from(s.value)}}e.from=t;function i(s){return new zv(s.content.value)}e.to=i})(V0||(V0={})),(function(e){function t(s){return{kind:"move",uri:s.uri,range:H.from(s.range)}}e.from=t;function i(s){return new Jv(b.revive(s.uri),H.to(s.range))}e.to=i})(j0||(j0={})),(function(e){function t(i){return{kind:"progressTask",content:Ye.from(i.value)}}e.from=t})(RP||(RP={})),(function(e){function t(i){return{kind:"progressTaskResult",content:typeof i=="string"?Ye.from(i):void 0}}e.from=t})(LP||(LP={})),(function(e){function t(s,r,n){return{kind:"command",command:r.toInternal(s.value,n)??{command:s.value.command,title:s.value.title}}}e.from=t;function i(s,r){return new qv(r.fromInternal(s.command)??{command:s.command.id,title:s.command.title})}e.to=i})(Kf||(Kf={})),(function(e){function t(s){return{kind:"textEdit",uri:s.uri,edits:s.edits.map(r=>vs.from(r)),done:s.isDone}}e.from=t;function i(s){const r=new Xv(b.revive(s.uri),s.edits.map(n=>vs.to(n)));return r.isDone=s.done,r}e.to=i})(B0||(B0={})),(function(e){function t(i){return i.newCellMetadata?{editType:3,index:i.range.start,metadata:i.newCellMetadata}:i.newNotebookMetadata?{editType:5,metadata:i.newNotebookMetadata}:{editType:1,index:i.range.start,count:i.range.end-i.range.start,cells:i.newCells.map(ba.from)}}e.from=t})(z0||(z0={})),(function(e){function t(i){return{kind:"notebookEdit",uri:i.uri,edits:i.edits.map(z0.from),done:i.isDone}}e.from=t})(q0||(q0={})),(function(e){function t(s){const r=$r.isThemeIcon(s.iconPath)?s.iconPath:b.isUri(s.iconPath)?{light:b.revive(s.iconPath)}:s.iconPath&&"light"in s.iconPath&&"dark"in s.iconPath&&b.isUri(s.iconPath.light)&&b.isUri(s.iconPath.dark)?{light:b.revive(s.iconPath.light),dark:b.revive(s.iconPath.dark)}:void 0;return typeof s.value=="object"&&"variableName"in s.value?{kind:"reference",reference:{variableName:s.value.variableName,value:b.isUri(s.value.value)||!s.value.value?s.value.value:wr.from(s.value.value)},iconPath:r,options:s.options}:{kind:"reference",reference:b.isUri(s.value)||typeof s.value=="string"?s.value:wr.from(s.value),iconPath:r,options:s.options}}e.from=t;function i(s){const r=zi(s),n=o=>b.isUri(o)?o:wr.to(o);return new Gv(typeof r.reference=="string"?r.reference:"variableName"in r.reference?{variableName:r.reference.variableName,value:r.reference.value&&n(r.reference.value)}:n(r.reference))}e.to=i})(ep||(ep={})),(function(e){function t(i){return{kind:"codeCitation",value:i.value,license:i.license,snippet:i.snippet}}e.from=t})(G0||(G0={})),(function(e){function t(r,n,o){return r instanceof Wv?Xf.from(r):r instanceof jv?Zf.from(r):r instanceof Gv?ep.from(r):r instanceof Bv?H0.from(r):r instanceof Vv?Yf.from(r):r instanceof qv?Kf.from(r,n,o):r instanceof Xv?B0.from(r):r instanceof h7?q0.from(r):r instanceof Hv?$0.from(r):r instanceof Qv?U0.from(r):r instanceof zv?V0.from(r):r instanceof l7?W0.from(r):r instanceof u7?G0.from(r):r instanceof Jv?j0.from(r):{kind:"markdownContent",content:Ye.from("")}}e.from=t;function i(r,n){switch(r.kind){case"reference":return ep.to(r);case"markdownContent":case"inlineReference":case"progressMessage":case"treeData":case"command":return s(r,n)}}e.to=i;function s(r,n){switch(r.kind){case"markdownContent":return Xf.to(r);case"inlineReference":return Zf.to(r);case"progressMessage":return;case"treeData":return Yf.to(r);case"command":return Kf.to(r,n)}}e.toContent=s})(AP||(AP={})),(function(e){function t(i,s,r,n,o){const a=i.variables.variables.filter(u=>u.isTool),c=i.variables.variables.filter(u=>!u.isTool),l={prompt:i.message,command:i.command,attempt:i.attempt??0,enableCommandDetection:i.enableCommandDetection??!0,isParticipantDetected:i.isParticipantDetected??!1,references:c.map(u=>J0.to(u,n)),toolReferences:a.map(X0.to),location:Q0.to(i.location),acceptedConfirmationData:i.acceptedConfirmationData,rejectedConfirmationData:i.rejectedConfirmationData,location2:s,toolInvocationToken:Object.freeze({sessionId:i.sessionId}),tools:o,model:r};return i.requestId?{...l,id:i.requestId}:l}e.to=t})(NP||(NP={})),(function(e){function t(i){return{prompt:i.prompt,files:i.files.map(s=>b.revive(s))}}e.to=t})(OP||(OP={})),(function(e){function t(s){switch(s){case Di.Notebook:return Ji.Notebook;case Di.Terminal:return Ji.Terminal;case Di.Panel:return Ji.Panel;case Di.Editor:return Ji.Editor;case Di.EditingSession:return Ji.EditingSession}}e.to=t;function i(s){switch(s){case Ji.Notebook:return Di.Notebook;case Ji.Terminal:return Di.Terminal;case Ji.Panel:return Di.Panel;case Ji.Editor:return Di.Editor;case Ji.EditingSession:return Di.EditingSession}}e.from=i})(Q0||(Q0={})),(function(e){function t(i,s){let r=i.value;if(!r)throw new Error("Invalid value reference");if(b_(r))r=b.revive(r);else if(r&&typeof r=="object"&&"uri"in r&&"range"in r&&b_(r.uri))r=wr.to(zi(r));else if(i.isImage){const n=i.references?.[0]?.reference;r=new f7(i.mimeType??"image/png",()=>Promise.resolve(new Uint8Array(Object.values(i.value))),n&&b.isUri(n)?n:void 0)}else if(i.kind==="diagnostic"){const n=i.filterSeverity&&Ml.to(i.filterSeverity),o=i.filterUri&&b.revive(i.filterUri).toString();r=new p7(s.map(([a,c])=>i.filterUri&&a.toString()!==o?[a,[]]:[a,c.filter(l=>!(n&&l.severity>n||i.filterRange&&!gs.areIntersectingOrTouching(i.filterRange,H.from(l.range))))]).filter(([,a])=>a.length>0))}return{id:i.id,name:i.name,range:i.range&&[i.range.start,i.range.endExclusive],value:r,modelDescription:i.modelDescription}}e.to=t})(J0||(J0={})),(function(e){function t(i){if(i.value)throw new Error("Invalid tool reference");return{name:i.id,range:i.range&&[i.range.start,i.range.endExclusive]}}e.to=t})(X0||(X0={})),(function(e){function t(i,s,r){return{id:i.id,label:i.label,fullName:i.fullName,icon:i.icon?.id,value:i.values[0].value,insertText:i.insertText,detail:i.detail,documentation:i.documentation,command:s.toInternal(i.command,r)}}e.from=t})(TP||(TP={})),(function(e){function t(r){return{errorDetails:r.errorDetails,metadata:s(r.metadata),nextQuestion:r.nextQuestion}}e.to=t;function i(r){return{errorDetails:r.errorDetails,metadata:r.metadata,nextQuestion:r.nextQuestion}}e.from=i;function s(r){return rr(r,n=>{if(n.$mid===20)return new Zv(rr(n.content,s));if(n.$mid===21)return new Lt(n.value);if(n.$mid===22)return new Qr(n.value)})}})(Y0||(Y0={})),(function(e){function t(i,s,r){if(s.action.kind==="vote")return;const n=Y0.to(i);if(s.action.kind==="command"){const o=s.action.commandButton.command;return{action:{kind:"command",commandButton:{command:r.fromInternal(o)??{command:o.id,title:o.title}}},result:n}}else return s.action.kind==="followUp"?{action:{kind:"followUp",followup:F0.to(s.action.followup)},result:n}:s.action.kind==="inlineChat"?{action:{kind:"editor",accepted:s.action.action==="accepted"},result:n}:s.action.kind==="chatEditingSessionAction"?{action:{kind:"chatEditingSessionAction",outcome:new Map([["accepted",ha.Accepted],["rejected",ha.Rejected],["saved",ha.Saved]]).get(s.action.outcome)??ha.Rejected,uri:b.revive(s.action.uri),hasRemainingEdits:s.action.hasRemainingEdits},result:n}:{action:s.action,result:n}}e.to=t})(MP||(MP={})),(function(e){function t(i,s,r){return"terminalCommand"in i?{terminalCommand:i.terminalCommand,shouldExecute:i.shouldExecute}:"uri"in i?{uri:i.uri}:s.toInternal(i,r)}e.from=t})(FP||(FP={})),(function(e){function t(i){return{...i,documentation:Ye.fromStrict(i.documentation)}}e.from=t})(tp||(tp={})),(function(e){function t(i){return Array.isArray(i)?{items:i.map(s=>tp.from(s))}:{items:i.items.map(s=>tp.from(s)),resourceRequestConfig:i.resourceRequestConfig?Z0.from(i.resourceRequestConfig):void 0}}e.from=t})(UP||(UP={})),(function(e){function t(i){return{...i,pathSeparator:he?"\\":"/",cwd:i.cwd?b.revive(i.cwd):void 0}}e.from=t})(Z0||(Z0={})),(function(e){function t(i){return{kind:K0.to(i.kind),acceptedLength:i.acceptedLength}}e.to=t})($P||($P={})),(function(e){function t(i){switch(i){case 0:return na.Word;case 1:return na.Line;case 2:return na.Suggest;default:return na.Unknown}}e.to=t})(K0||(K0={})),(function(e){function t(i,s){return{id:s,label:i.label,description:i.description,canEdit:i.canEdit,collapsibleState:i.collapsibleState||0,contextValue:i.contextValue}}e.from=t})(WP||(WP={})),(function(e){function t(i){return{name:i.id,description:i.modelDescription,inputSchema:i.inputSchema,tags:i.tags??[]}}e.to=t})(HP||(HP={})),(function(e){function t(s){return new Zv(s.content.map(r=>r.kind==="text"?new Lt(r.value):new Qr(r.value)))}e.to=t;function i(s,r){return s.toolResultMessage&&KF(r,"chatParticipantPrivate"),{content:s.content.map(n=>{if(n instanceof Lt)return{kind:"text",value:n.value};if(n instanceof Qr)return{kind:"promptTsx",value:n.value};throw new Error("Unknown LanguageModelToolResult part type")}),toolResultMessage:Ye.fromStrict(s.toolResultMessage),toolResultDetails:s.toolResultDetails?.map(n=>b.isUri(n)?n:wr.from(n))}}e.from=i})(VP||(VP={})),(function(e){function t(i){return i}e.fromThemeIcon=t})(jP||(jP={}))}});function k(e){const t=new zP(e);return qP[t.nid]=t,t}var zP,qP,GP,QP=y({"out-build/vs/workbench/services/extensions/common/proxyIdentifier.js"(){"use strict";zP=class hC{static{this.count=0}constructor(t){this._proxyIdentifierBrand=void 0,this.sid=t,this.nid=++hC.count}},qP=[],GP=class{constructor(e){this.value=e}}}}),JP,XP,YP,ZP,KP,e3,t3,i3,nU,s3,r3,n3,ey,oU,aU=y({"out-build/vs/workbench/api/common/extHost.protocol.js"(){"use strict";QP(),(function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"})(JP||(JP={})),(function(e){e[e.UnknownInput=0]="UnknownInput",e[e.TextInput=1]="TextInput",e[e.TextDiffInput=2]="TextDiffInput",e[e.TextMergeInput=3]="TextMergeInput",e[e.NotebookInput=4]="NotebookInput",e[e.NotebookDiffInput=5]="NotebookDiffInput",e[e.CustomEditorInput=6]="CustomEditorInput",e[e.WebviewEditorInput=7]="WebviewEditorInput",e[e.TerminalEditorInput=8]="TerminalEditorInput",e[e.InteractiveEditorInput=9]="InteractiveEditorInput",e[e.ChatEditorInput=10]="ChatEditorInput",e[e.MultiDiffEditorInput=11]="MultiDiffEditorInput"})(XP||(XP={})),(function(e){e[e.TAB_OPEN=0]="TAB_OPEN",e[e.TAB_CLOSE=1]="TAB_CLOSE",e[e.TAB_UPDATE=2]="TAB_UPDATE",e[e.TAB_MOVE=3]="TAB_MOVE"})(YP||(YP={})),(function(e){e[e.Editable=0]="Editable",e[e.SupportsHotExit=1]="SupportsHotExit"})(ZP||(ZP={})),(function(e){e[e.Int8Array=1]="Int8Array",e[e.Uint8Array=2]="Uint8Array",e[e.Uint8ClampedArray=3]="Uint8ClampedArray",e[e.Int16Array=4]="Int16Array",e[e.Uint16Array=5]="Uint16Array",e[e.Int32Array=6]="Int32Array",e[e.Uint32Array=7]="Uint32Array",e[e.Float32Array=8]="Float32Array",e[e.Float64Array=9]="Float64Array",e[e.BigInt64Array=10]="BigInt64Array",e[e.BigUint64Array=11]="BigUint64Array"})(KP||(KP={})),(function(e){e[e.Text=1]="Text",e[e.Error=2]="Error",e[e.Rich=3]="Rich"})(e3||(e3={})),(function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"})(t3||(t3={})),(function(e){e[e.None=0]="None",e[e.Process=1]="Process",e[e.Output=2]="Output",e[e.Hybrid=3]="Hybrid"})(i3||(i3={})),nU=class dC{static{this._n=0}static mixin(t){return t._id=dC._n++,t}},(function(e){e.label="a",e.kind="b",e.detail="c",e.documentation="d",e.sortText="e",e.filterText="f",e.preselect="g",e.insertText="h",e.insertTextRules="i",e.range="j",e.commitCharacters="k",e.additionalTextEdits="l",e.kindModifier="m",e.commandIdent="n",e.commandId="o",e.commandArguments="p"})(s3||(s3={})),(function(e){e.defaultRanges="a",e.completions="b",e.isIncomplete="c",e.duration="d"})(r3||(r3={})),(function(e){e[e.Workspace=0]="Workspace",e[e.TextDocument=1]="TextDocument"})(n3||(n3={})),ey={MainThreadAuthentication:k("MainThreadAuthentication"),MainThreadBulkEdits:k("MainThreadBulkEdits"),MainThreadLanguageModels:k("MainThreadLanguageModels"),MainThreadEmbeddings:k("MainThreadEmbeddings"),MainThreadChatAgents2:k("MainThreadChatAgents2"),MainThreadCodeMapper:k("MainThreadCodeMapper"),MainThreadLanguageModelTools:k("MainThreadChatSkills"),MainThreadClipboard:k("MainThreadClipboard"),MainThreadCommands:k("MainThreadCommands"),MainThreadComments:k("MainThreadComments"),MainThreadConfiguration:k("MainThreadConfiguration"),MainThreadConsole:k("MainThreadConsole"),MainThreadDebugService:k("MainThreadDebugService"),MainThreadDecorations:k("MainThreadDecorations"),MainThreadDiagnostics:k("MainThreadDiagnostics"),MainThreadDialogs:k("MainThreadDiaglogs"),MainThreadDocuments:k("MainThreadDocuments"),MainThreadDocumentContentProviders:k("MainThreadDocumentContentProviders"),MainThreadTextEditors:k("MainThreadTextEditors"),MainThreadEditorInsets:k("MainThreadEditorInsets"),MainThreadEditorTabs:k("MainThreadEditorTabs"),MainThreadErrors:k("MainThreadErrors"),MainThreadTreeViews:k("MainThreadTreeViews"),MainThreadDownloadService:k("MainThreadDownloadService"),MainThreadLanguageFeatures:k("MainThreadLanguageFeatures"),MainThreadLanguages:k("MainThreadLanguages"),MainThreadLogger:k("MainThreadLogger"),MainThreadMessageService:k("MainThreadMessageService"),MainThreadOutputService:k("MainThreadOutputService"),MainThreadProgress:k("MainThreadProgress"),MainThreadQuickDiff:k("MainThreadQuickDiff"),MainThreadQuickOpen:k("MainThreadQuickOpen"),MainThreadStatusBar:k("MainThreadStatusBar"),MainThreadSecretState:k("MainThreadSecretState"),MainThreadStorage:k("MainThreadStorage"),MainThreadSpeech:k("MainThreadSpeechProvider"),MainThreadTelemetry:k("MainThreadTelemetry"),MainThreadTerminalService:k("MainThreadTerminalService"),MainThreadTerminalShellIntegration:k("MainThreadTerminalShellIntegration"),MainThreadWebviews:k("MainThreadWebviews"),MainThreadWebviewPanels:k("MainThreadWebviewPanels"),MainThreadWebviewViews:k("MainThreadWebviewViews"),MainThreadCustomEditors:k("MainThreadCustomEditors"),MainThreadUrls:k("MainThreadUrls"),MainThreadUriOpeners:k("MainThreadUriOpeners"),MainThreadProfileContentHandlers:k("MainThreadProfileContentHandlers"),MainThreadWorkspace:k("MainThreadWorkspace"),MainThreadFileSystem:k("MainThreadFileSystem"),MainThreadFileSystemEventService:k("MainThreadFileSystemEventService"),MainThreadExtensionService:k("MainThreadExtensionService"),MainThreadSCM:k("MainThreadSCM"),MainThreadSearch:k("MainThreadSearch"),MainThreadShare:k("MainThreadShare"),MainThreadTask:k("MainThreadTask"),MainThreadWindow:k("MainThreadWindow"),MainThreadLabelService:k("MainThreadLabelService"),MainThreadNotebook:k("MainThreadNotebook"),MainThreadNotebookDocuments:k("MainThreadNotebookDocumentsShape"),MainThreadNotebookEditors:k("MainThreadNotebookEditorsShape"),MainThreadNotebookKernels:k("MainThreadNotebookKernels"),MainThreadNotebookRenderers:k("MainThreadNotebookRenderers"),MainThreadInteractive:k("MainThreadInteractive"),MainThreadTheming:k("MainThreadTheming"),MainThreadTunnelService:k("MainThreadTunnelService"),MainThreadManagedSockets:k("MainThreadManagedSockets"),MainThreadTimeline:k("MainThreadTimeline"),MainThreadTesting:k("MainThreadTesting"),MainThreadLocalization:k("MainThreadLocalizationShape"),MainThreadMcp:k("MainThreadMcpShape"),MainThreadAiRelatedInformation:k("MainThreadAiRelatedInformation"),MainThreadAiEmbeddingVector:k("MainThreadAiEmbeddingVector"),MainThreadChatStatus:k("MainThreadChatStatus"),MainThreadCursor:k("MainThreadCursor"),MainThreadShellExec:k("MainThreadShellExec")},oU={ExtHostCodeMapper:k("ExtHostCodeMapper"),ExtHostCommands:k("ExtHostCommands"),ExtHostConfiguration:k("ExtHostConfiguration"),ExtHostDiagnostics:k("ExtHostDiagnostics"),ExtHostDebugService:k("ExtHostDebugService"),ExtHostDecorations:k("ExtHostDecorations"),ExtHostDocumentsAndEditors:k("ExtHostDocumentsAndEditors"),ExtHostDocuments:k("ExtHostDocuments"),ExtHostDocumentContentProviders:k("ExtHostDocumentContentProviders"),ExtHostDocumentSaveParticipant:k("ExtHostDocumentSaveParticipant"),ExtHostEditors:k("ExtHostEditors"),ExtHostTreeViews:k("ExtHostTreeViews"),ExtHostFileSystem:k("ExtHostFileSystem"),ExtHostFileSystemInfo:k("ExtHostFileSystemInfo"),ExtHostFileSystemEventService:k("ExtHostFileSystemEventService"),ExtHostLanguages:k("ExtHostLanguages"),ExtHostLanguageFeatures:k("ExtHostLanguageFeatures"),ExtHostQuickOpen:k("ExtHostQuickOpen"),ExtHostQuickDiff:k("ExtHostQuickDiff"),ExtHostStatusBar:k("ExtHostStatusBar"),ExtHostShare:k("ExtHostShare"),ExtHostExtensionService:k("ExtHostExtensionService"),ExtHostLogLevelServiceShape:k("ExtHostLogLevelServiceShape"),ExtHostTerminalService:k("ExtHostTerminalService"),ExtHostTerminalShellIntegration:k("ExtHostTerminalShellIntegration"),ExtHostSCM:k("ExtHostSCM"),ExtHostSearch:k("ExtHostSearch"),ExtHostTask:k("ExtHostTask"),ExtHostWorkspace:k("ExtHostWorkspace"),ExtHostWindow:k("ExtHostWindow"),ExtHostWebviews:k("ExtHostWebviews"),ExtHostWebviewPanels:k("ExtHostWebviewPanels"),ExtHostCustomEditors:k("ExtHostCustomEditors"),ExtHostWebviewViews:k("ExtHostWebviewViews"),ExtHostEditorInsets:k("ExtHostEditorInsets"),ExtHostEditorTabs:k("ExtHostEditorTabs"),ExtHostProgress:k("ExtHostProgress"),ExtHostComments:k("ExtHostComments"),ExtHostSecretState:k("ExtHostSecretState"),ExtHostStorage:k("ExtHostStorage"),ExtHostUrls:k("ExtHostUrls"),ExtHostUriOpeners:k("ExtHostUriOpeners"),ExtHostProfileContentHandlers:k("ExtHostProfileContentHandlers"),ExtHostOutputService:k("ExtHostOutputService"),ExtHostLabelService:k("ExtHostLabelService"),ExtHostNotebook:k("ExtHostNotebook"),ExtHostNotebookDocuments:k("ExtHostNotebookDocuments"),ExtHostNotebookEditors:k("ExtHostNotebookEditors"),ExtHostNotebookKernels:k("ExtHostNotebookKernels"),ExtHostNotebookRenderers:k("ExtHostNotebookRenderers"),ExtHostNotebookDocumentSaveParticipant:k("ExtHostNotebookDocumentSaveParticipant"),ExtHostInteractive:k("ExtHostInteractive"),ExtHostChatAgents2:k("ExtHostChatAgents"),ExtHostLanguageModelTools:k("ExtHostChatSkills"),ExtHostChatProvider:k("ExtHostChatProvider"),ExtHostSpeech:k("ExtHostSpeech"),ExtHostEmbeddings:k("ExtHostEmbeddings"),ExtHostAiRelatedInformation:k("ExtHostAiRelatedInformation"),ExtHostAiEmbeddingVector:k("ExtHostAiEmbeddingVector"),ExtHostTheming:k("ExtHostTheming"),ExtHostTunnelService:k("ExtHostTunnelService"),ExtHostManagedSockets:k("ExtHostManagedSockets"),ExtHostAuthentication:k("ExtHostAuthentication"),ExtHostTimeline:k("ExtHostTimeline"),ExtHostTesting:k("ExtHostTesting"),ExtHostTelemetry:k("ExtHostTelemetry"),ExtHostLocalization:k("ExtHostLocalization"),ExtHostMcp:k("ExtHostMcp"),ExtHostCursor:k("ExtHostCursor"),ExtHostShellExec:k("ExtHostShellExec")}}}),o3,cU=y({"out-build/vs/workbench/api/common/extHostRpcService.js"(){"use strict";se(),o3=te("IExtHostRpcService")}}),sn,qn,br,Gn,a3,ty,c3,lU=y({"out-build/vs/workbench/api/common/extHostTestItem.js"(){"use strict";Y(),ga(),kf(),Mk(),b0(),Uk(),BP(),sn=(e,t,i,s)=>{let r=t;return{enumerable:!0,configurable:!1,get(){return r},set(n){if(!i(r,n)){const o=r;r=n,e.listener?.(s(n,o))}}}},qn=(e,t)=>e===t,br={range:(e,t)=>e===t?!0:!e||!t?!1:e.isEqual(t),label:qn,description:qn,sortText:qn,busy:qn,error:qn,canResolveChildren:qn,tags:(e,t)=>!(e.length!==t.length||e.some(i=>!t.find(s=>i.id===s.id)))},Gn=e=>t=>({op:4,update:e(t)}),a3=(e,t)=>({range:(()=>{let i;const s=Gn(r=>({range:gs.lift(H.from(r))}));return{enumerable:!0,configurable:!1,get(){return i},set(r){e.listener?.({op:6}),br.range(i,r)||(i=r,e.listener?.(s(r)))}}})(),label:sn(e,t,br.label,Gn(i=>({label:i}))),description:sn(e,void 0,br.description,Gn(i=>({description:i}))),sortText:sn(e,void 0,br.sortText,Gn(i=>({sortText:i}))),canResolveChildren:sn(e,!1,br.canResolveChildren,i=>({op:2,state:i})),busy:sn(e,!1,br.busy,Gn(i=>({busy:i}))),error:sn(e,void 0,br.error,Gn(i=>({error:Ye.fromStrict(i)||null}))),tags:sn(e,[],br.tags,(i,s)=>({op:1,new:i.map(tn.from),old:s.map(tn.from)}))}),ty=class fC{constructor(t,i,s,r){if(i.includes("\0"))throw new Error(`Test IDs may not include the ${JSON.stringify(i)} symbol`);const n=Fk(this,t);Object.defineProperties(this,{id:{value:i,enumerable:!0,writable:!1},uri:{value:r,enumerable:!0,writable:!1},parent:{enumerable:!1,get(){return n.parent instanceof c3?void 0:n.parent}},children:{value:Tk(n,S0,fC),enumerable:!0,writable:!1},...a3(n,s)})}},c3=class extends ty{constructor(e,t){super(e,e,t,void 0),this._isRoot=!0}}}}),l3,uU=y({"out-build/vs/workbench/api/common/extHostInitDataService.js"(){"use strict";se(),l3=te("IExtHostInitDataService")}}),ip,u3,h3,d3,hU=y({"out-build/vs/workbench/services/extensions/common/extensionHostProtocol.js"(){"use strict";Fe(),(function(e){e[e.Desktop=1]="Desktop",e[e.Web=2]="Web"})(ip||(ip={})),(function(e){e[e.VersionMismatch=55]="VersionMismatch",e[e.UnexpectedError=81]="UnexpectedError"})(u3||(u3={})),(function(e){e[e.Initialized=0]="Initialized",e[e.Ready=1]="Ready",e[e.Terminate=2]="Terminate"})(h3||(h3={})),(function(e){e.Start="START_NATIVE_LOG",e.End="END_NATIVE_LOG"})(d3||(d3={}))}});function dU(e){const t=Date.now()-new Date(e).getTime();return isNaN(t)?!1:t<1e3*60*60*24}var iy,f3,p3,fU=y({"out-build/vs/workbench/api/common/extHostTelemetry.js"(){"use strict";se(),ie(),Ie(),uU(),hU(),og(),Mr(),Si(),V(),ue(),iy=class extends G{constructor(t,i,s){super(),this.initData=i,this._onDidChangeTelemetryEnabled=this._register(new R),this.onDidChangeTelemetryEnabled=this._onDidChangeTelemetryEnabled.event,this._onDidChangeTelemetryConfiguration=this._register(new R),this.onDidChangeTelemetryConfiguration=this._onDidChangeTelemetryConfiguration.event,this._productConfig={usage:!0,error:!0},this._level=0,this._inLoggingOnlyMode=!1,this._telemetryLoggers=new Map,this._inLoggingOnlyMode=this.initData.environment.isExtensionTelemetryLoggingOnly;const r=i.remote.isRemote?"remoteExtHostTelemetry":t?"workerExtHostTelemetry":"extHostTelemetry";this._outputLogger=this._register(s.createLogger(r,{name:m(2884,null,this._inLoggingOnlyMode?" (Not Sent)":""),hidden:!0,group:ZE}))}getTelemetryConfiguration(){return this._level===3}getTelemetryDetails(){return{isCrashEnabled:this._level>=1,isErrorsEnabled:this._productConfig.error?this._level>=2:!1,isUsageEnabled:this._productConfig.usage?this._level>=3:!1}}instantiateLogger(t,i,s){const r=this.getTelemetryDetails(),n=new f3(i,s,t,this._outputLogger,this._inLoggingOnlyMode,this.getBuiltInCommonProperties(t),{isUsageEnabled:r.isUsageEnabled,isErrorsEnabled:r.isErrorsEnabled}),o=this._telemetryLoggers.get(t.identifier.value)??[];return this._telemetryLoggers.set(t.identifier.value,[...o,n]),n.apiTelemetryLogger}$initializeTelemetryLevel(t,i,s){this._level=t,this._productConfig=s??{usage:!0,error:!0}}getBuiltInCommonProperties(t){const i=Object.create(null);switch(i["common.extname"]=`${t.publisher}.${t.name}`,i["common.extversion"]=t.version,i["common.vscodemachineid"]=this.initData.telemetryInfo.machineId,i["common.vscodesessionid"]=this.initData.telemetryInfo.sessionId,i["common.macMachineId"]=this.initData.telemetryInfo.macMachineId,i["common.vscodecommithash"]=this.initData.commit,i["common.sqmid"]=this.initData.telemetryInfo.sqmId,i["common.devDeviceId"]=this.initData.telemetryInfo.devDeviceId,i["common.vscodeversion"]=this.initData.version,i["common.isnewappinstall"]=dU(this.initData.telemetryInfo.firstSessionDate),i["common.product"]=this.initData.environment.appHost,this.initData.uiKind){case ip.Web:i["common.uikind"]="web";break;case ip.Desktop:i["common.uikind"]="desktop";break;default:i["common.uikind"]="unknown"}return i["common.remotename"]=jE(NL(this.initData.remote.authority)),i}$onDidChangeTelemetryLevel(t){this._oldTelemetryEnablement=this.getTelemetryConfiguration(),this._level=t;const i=this.getTelemetryDetails();this._telemetryLoggers.forEach((s,r)=>{const n=s.filter(o=>!o.isDisposed);n.length===0?this._telemetryLoggers.delete(r):this._telemetryLoggers.set(r,n)}),this._telemetryLoggers.forEach(s=>{for(const r of s)r.updateTelemetryEnablements(i.isUsageEnabled,i.isErrorsEnabled)}),this._oldTelemetryEnablement!==this.getTelemetryConfiguration()&&this._onDidChangeTelemetryEnabled.fire(this.getTelemetryConfiguration()),this._onDidChangeTelemetryConfiguration.fire(this.getTelemetryDetails())}onExtensionError(t,i){const r=this._telemetryLoggers.get(t.value)?.filter(o=>!o.isDisposed);if(!r)return this._telemetryLoggers.delete(t.value),!1;let n=!1;for(const o of r)o.ignoreUnhandledExtHostErrors||(o.logError(i),n=!0);return n}},iy=__decorate([__param(1,l3),__param(2,rc)],iy),f3=class{static validateSender(e){if(typeof e!="object")throw new TypeError("TelemetrySender argument is invalid");if(typeof e.sendEventData!="function")throw new TypeError("TelemetrySender.sendEventData must be a function");if(typeof e.sendErrorData!="function")throw new TypeError("TelemetrySender.sendErrorData must be a function");if(typeof e.flush<"u"&&typeof e.flush!="function")throw new TypeError("TelemetrySender.flush must be a function or undefined")}constructor(e,t,i,s,r,n,o){this._extension=i,this._logger=s,this._inLoggingOnlyMode=r,this._commonProperties=n,this._onDidChangeEnableStates=new R,this.ignoreUnhandledExtHostErrors=t?.ignoreUnhandledErrors??!1,this._ignoreBuiltinCommonProperties=t?.ignoreBuiltInCommonProperties??!1,this._additionalCommonProperties=t?.additionalCommonProperties,this._sender=e,this._telemetryEnablements={isUsageEnabled:o.isUsageEnabled,isErrorsEnabled:o.isErrorsEnabled}}updateTelemetryEnablements(e,t){this._apiObject&&(this._telemetryEnablements={isUsageEnabled:e,isErrorsEnabled:t},this._onDidChangeEnableStates.fire(this._apiObject))}mixInCommonPropsAndCleanData(e){let t="properties"in e?e.properties??{}:e;return t=rh(t,[]),this._additionalCommonProperties&&(t=kn(t,this._additionalCommonProperties)),this._ignoreBuiltinCommonProperties||(t=kn(t,this._commonProperties)),"properties"in e?e.properties=t:e=t,e}logEvent(e,t){this._sender&&(this._extension.publisher==="vscode"?e=this._extension.name+"/"+e:e=this._extension.identifier.value+"/"+e,t=this.mixInCommonPropsAndCleanData(t||{}),this._inLoggingOnlyMode||this._sender?.sendEventData(e,t),this._logger.trace(e,t))}logUsage(e,t){this._telemetryEnablements.isUsageEnabled&&this.logEvent(e,t)}logError(e,t){if(!(!this._telemetryEnablements.isErrorsEnabled||!this._sender))if(typeof e=="string")this.logEvent(e,t);else{const i={name:e.name,message:e.message,stack:e.stack,cause:e.cause},s=rh(i,[]),r=new Error(s.message,{cause:s.cause});r.stack=s.stack,r.name=s.name,t=this.mixInCommonPropsAndCleanData(t||{}),this._inLoggingOnlyMode||this._sender.sendErrorData(r,t),this._logger.trace("exception",t)}}get apiTelemetryLogger(){if(!this._apiObject){const e=this,t={logUsage:e.logUsage.bind(e),get isUsageEnabled(){return e._telemetryEnablements.isUsageEnabled},get isErrorsEnabled(){return e._telemetryEnablements.isErrorsEnabled},logError:e.logError.bind(e),dispose:e.dispose.bind(e),onDidChangeEnableStates:e._onDidChangeEnableStates.event.bind(e)};this._apiObject=Object.freeze(t)}return this._apiObject}get isDisposed(){return!this._sender}dispose(){if(this._sender?.flush){let e=this._sender;this._sender=void 0,Promise.resolve(e.flush()).then(e=void 0),this._apiObject=void 0}else this._sender=void 0}},p3=te("IExtHostTelemetry")}}),sy,m3,g3,pU,v3,mU=y({"out-build/vs/workbench/api/common/extHostCommands.js"(){"use strict";_e(),Kv(),BP(),Si(),aU(),kt(),Ie(),Dc(),ga(),d0(),Y(),V(),se(),cU(),lU(),Fe(),QP(),oo(),so(),Mr(),fU(),Bt(),sy=class{#e;#t;#i;constructor(t,i,s){this._commands=new Map,this._apiCommands=new Map,this.#e=t.getProxy(ey.MainThreadCommands),this._logService=i,this.#i=s,this.#t=t.getProxy(ey.MainThreadTelemetry),this.converter=new g3(this,r=>{const n=this._apiCommands.get(r);return n?.result===v3.Void?n:void 0},i),this._argumentProcessors=[{processArgument(r){return zi(r)}},{processArgument(r){return rr(r,function(n){if(gs.isIRange(n))return H.to(n);if(jn.isIPosition(n))return _r.to(n);if(gs.isIRange(n.range)&&b.isUri(n.uri))return en.to(n);if(n instanceof O)return n.buffer.buffer;if(!Array.isArray(n))return n})}}]}registerArgumentProcessor(t){this._argumentProcessors.push(t)}registerApiCommand(t){const i=this.registerCommand(!1,t.id,async(...s)=>{const r=t.args.map((o,a)=>{if(!o.validate(s[a]))throw new Error(`Invalid argument '${o.name}' when running '${t.id}', received: ${typeof s[a]=="object"?JSON.stringify(s[a],null," "):s[a]} `);return o.convert(s[a])}),n=await this.executeCommand(t.internalId,...r);return t.result.convert(n,s,this.converter)},void 0,{description:t.description,args:t.args,returns:t.result.description});return this._apiCommands.set(t.id,t),new ml(()=>{i.dispose(),this._apiCommands.delete(t.id)})}registerCommand(t,i,s,r,n,o){if(this._logService.trace("ExtHostCommands#registerCommand",i),!i.trim().length)throw new Error("invalid id");if(this._commands.has(i))throw new Error(`command '${i}' already exists`);return this._commands.set(i,{callback:s,thisArg:r,metadata:n,extension:o}),t&&this.#e.$registerCommand(i),new ml(()=>{this._commands.delete(i)&&t&&this.#e.$unregisterCommand(i)})}executeCommand(t,...i){return this._logService.trace("ExtHostCommands#executeCommand",t),this._doExecuteCommand(t,i,!0)}async _doExecuteCommand(t,i,s){if(this._commands.has(t))return this.#e.$fireCommandActivationEvent(t),this._executeContributedCommand(t,i,!1);{let r=!1;const n=rr(i,function(o){if(o instanceof De)return _r.from(o);if(o instanceof tt)return H.from(o);if(o instanceof mr)return en.from(o);if(Vn.isNotebookRange(o))return A0.from(o);if(o instanceof ArrayBuffer)return r=!0,O.wrap(new Uint8Array(o));if(o instanceof Uint8Array)return r=!0,O.wrap(o);if(o instanceof O)return r=!0,o;if(!Array.isArray(o))return o});try{const o=await this.#e.$executeCommand(t,r?new GP(n):n,s);return zi(o)}catch(o){if(o instanceof Error&&o.message==="$executeCommand:retry")return this._doExecuteCommand(t,i,!1);throw o}}}async _executeContributedCommand(t,i,s){const r=this._commands.get(t);if(!r)throw new Error("Unknown command");const{callback:n,thisArg:o,metadata:a}=r;if(a?.args)for(let l=0;l<a.args.length;l++)try{YC(i[l],a.args[l].constraint)}catch{throw new Error(`Running the contributed command: '${t}' failed. Illegal argument '${a.args[l].name}' - ${a.args[l].description}`)}const c=Qs.create();try{return await n.apply(o,i)}catch(l){if(t===this.converter.delegatingCommandId){const u=this.converter.getActualCommand(...i);u&&(t=u.command)}if(this._logService.error(l,t,r.extension?.identifier),!s)throw l;if(r.extension?.identifier){const u=this.#i.onExtensionError(r.extension.identifier,l);this._logService.trace("forwarded error to extension?",u,r.extension?.identifier)}throw new class extends Error{constructor(){super(yn(l)),this.id=t,this.source=r.extension?.displayName??r.extension?.name}}}finally{this._reportTelemetry(r,t,c.elapsed())}}_reportTelemetry(t,i,s){t.extension&&this.#t.$publicLog2("Extension:ActionExecuted",{extensionId:t.extension.identifier.value,id:new Sc(i),duration:s})}$executeContributedCommand(t,...i){this._logService.trace("ExtHostCommands#$executeContributedCommand",t);const s=this._commands.get(t);return s?(i=i.map(r=>this._argumentProcessors.reduce((n,o)=>o.processArgument(n,s.extension),r)),this._executeContributedCommand(t,i,!0)):Promise.reject(new Error(`Contributed command '${t}' does not exist.`))}getCommands(t=!1){return this._logService.trace("ExtHostCommands#getCommands",t),this.#e.$getCommands().then(i=>(t&&(i=i.filter(s=>s[0]!=="_")),i))}$getContributedCommandMetadata(){const t=Object.create(null);for(const[i,s]of this._commands){const{metadata:r}=s;r&&(t[i]=r)}return Promise.resolve(t)}},sy=__decorate([__param(0,o3),__param(1,fe),__param(2,p3)],sy),m3=te("IExtHostCommands"),g3=class{constructor(e,t,i){this._commands=e,this._lookupApiCommand=t,this._logService=i,this.delegatingCommandId=`__vsc${Ve()}`,this._cache=new Map,this._cachIdPool=0,this._commands.registerCommand(!0,this.delegatingCommandId,this._executeConvertedCommand,this)}toInternal(e,t){if(!e)return;const i={$ident:void 0,id:e.command,title:e.title,tooltip:e.tooltip};if(!e.command)return i;const s=this._lookupApiCommand(e.command);if(s)i.id=s.internalId,i.arguments=s.args.map((r,n)=>r.convert(e.arguments&&e.arguments[n]));else if(du(e.arguments)){const r=`${e.command} /${++this._cachIdPool}`;this._cache.set(r,e),t.add(Se(()=>{this._cache.delete(r),this._logService.trace("CommandsConverter#DISPOSE",r)})),i.$ident=r,i.id=this.delegatingCommandId,i.arguments=[r],this._logService.trace("CommandsConverter#CREATE",e.command,r)}return i}fromInternal(e){return typeof e.$ident=="string"?this._cache.get(e.$ident):{command:e.id,title:e.title,arguments:e.arguments}}getActualCommand(...e){return this._cache.get(e[0])}_executeConvertedCommand(...e){const t=this.getActualCommand(...e);return this._logService.trace("CommandsConverter#EXECUTE",e[0],t?t.command:"MISSING"),t?this._commands.executeCommand(t.command,...t.arguments||[]):Promise.reject(`Actual command not found, wanted to execute ${e[0]}`)}},pU=class ti{static{this.Uri=new ti("uri","Uri of a text document",t=>b.isUri(t),t=>t)}static{this.Position=new ti("position","A position in a text document",t=>De.isPosition(t),_r.from)}static{this.Range=new ti("range","A range in a text document",t=>tt.isRange(t),H.from)}static{this.Selection=new ti("selection","A selection in a text document",t=>gl.isSelection(t),k0.from)}static{this.Number=new ti("number","",t=>typeof t=="number",t=>t)}static{this.String=new ti("string","",t=>typeof t=="string",t=>t)}static{this.StringArray=ti.Arr(ti.String)}static Arr(t){return new ti(`${t.name}_array`,`Array of ${t.name}, ${t.description}`,i=>Array.isArray(i)&&i.every(s=>t.validate(s)),i=>i.map(s=>t.convert(s)))}static{this.CallHierarchyItem=new ti("item","A call hierarchy item",t=>t instanceof uv,Fl.from)}static{this.TypeHierarchyItem=new ti("item","A type hierarchy item",t=>t instanceof $v,M0.from)}static{this.TestItem=new ti("testItem","A VS Code TestItem",t=>t instanceof ty,Jf.from)}static{this.TestProfile=new ti("testProfile","A VS Code test profile",t=>t instanceof X8,O0.from)}constructor(t,i,s,r){this.name=t,this.description=i,this.validate=s,this.convert=r}optional(){return new ti(this.name,`(optional) ${this.description}`,t=>t==null||this.validate(t),t=>t===void 0?void 0:t===null?null:this.convert(t))}with(t,i){return new ti(t??this.name,i??this.description,this.validate,this.convert)}},v3=class pC{static{this.Void=new pC("no result",t=>t)}constructor(t,i){this.description=t,this.convert=i}}}});import*as gU from"http";import*as y3 from"fs";var ry,ny,vU=y({"out-build/vs/workbench/api/node/extHostCLIServer.js"(){"use strict";ud(),mU(),Y(),Ie(),Cg(),ry=class{constructor(e,t,i){this._commands=e,this.logService=t,this._ipcHandlePath=i,this._server=gU.createServer((s,r)=>this.onRequest(s,r)),this.setup().catch(s=>(t.error(s),""))}get ipcHandlePath(){return this._ipcHandlePath}async setup(){try{this._server.listen(this.ipcHandlePath),this._server.on("error",e=>this.logService.error(e))}catch{this.logService.error("Could not start open from terminal server.")}return this._ipcHandlePath}onRequest(e,t){const i=(r,n)=>{t.writeHead(r,{"content-type":"application/json"}),t.end(JSON.stringify(n||null),o=>o&&this.logService.error(o))},s=[];e.setEncoding("utf8"),e.on("data",r=>s.push(r)),e.on("end",async()=>{try{const r=JSON.parse(s.join(""));let n;switch(r.type){case"open":n=await this.open(r);break;case"openExternal":n=await this.openExternal(r);break;case"status":n=await this.getStatus(r);break;case"extensionManagement":n=await this.manageExtensions(r);break;default:i(404,`Unknown message type: ${r.type}`);break}i(200,n)}catch(r){const n=r instanceof Error?r.message:JSON.stringify(r);i(500,n),this.logService.error("Error while processing pipe request",r)}})}async open(e){const{fileURIs:t,folderURIs:i,forceNewWindow:s,diffMode:r,mergeMode:n,addMode:o,removeMode:a,forceReuseWindow:c,gotoLineMode:l,waitMarkerFilePath:u,remoteAuthority:h}=e,f=[];if(Array.isArray(i))for(const w of i)try{f.push({folderUri:b.parse(w)})}catch{}if(Array.isArray(t))for(const w of t)try{QA(w)?f.push({workspaceUri:b.parse(w)}):f.push({fileUri:b.parse(w)})}catch{}const p=u?b.file(u):void 0,v={forceNewWindow:s,diffMode:r,mergeMode:n,addMode:o,removeMode:a,gotoLineMode:l,forceReuseWindow:c,preferNewWindow:!c&&!p&&!o&&!a,waitMarkerFileURI:p,remoteAuthority:h};this._commands.executeCommand("_remoteCLI.windowOpen",f,v)}async openExternal(e){for(const t of e.uris){const i=b.parse(t),s=i.scheme==="file"?i:t;await this._commands.executeCommand("_remoteCLI.openExternal",s)}}async manageExtensions(e){const t=s=>s?.map(r=>/\.vsix$/i.test(r)?b.parse(r):r),i={list:e.list,install:t(e.install),uninstall:t(e.uninstall),force:e.force};return await this._commands.executeCommand("_remoteCLI.manageExtensions",i)}async getStatus(e){return await this._commands.executeCommand("_remoteCLI.getSystemStatus")}dispose(){this._server.close(),this._ipcHandlePath&&process.platform!=="win32"&&y3.existsSync(this._ipcHandlePath)&&y3.unlinkSync(this._ipcHandlePath)}},ny=class extends ry{constructor(t,i){super(t,i,R1())}},ny=__decorate([__param(0,m3),__param(1,fe)],ny)}});function w3(e){return e.match(/^['"].*['"]$/)&&(e=e.substring(1,e.length-1)),un===1&&e&&e[1]===":"?e[0].toUpperCase()+e.substring(1):e}function yU(e){return!e.strictEnv}var _3=y({"out-build/vs/platform/terminal/common/terminalEnvironment.js"(){"use strict";K()}});function b3(e,t){if(t)if(he)for(const i in t){let s=i;for(const n in e)if(i.toLowerCase()===n.toLowerCase()){s=n;break}const r=t[i];r!==void 0&&E3(e,s,r)}else Object.keys(t).forEach(i=>{const s=t[i];s!==void 0&&E3(e,i,s)})}function E3(e,t,i){typeof i=="string"?e[t]=i:delete e[t]}function wU(e,t,i,s){e.TERM_PROGRAM="vscode",t&&(e.TERM_PROGRAM_VERSION=t),_U(e,s)&&(e.LANG=bU(i)),e.COLORTERM="truecolor"}function S3(e,t){if(t)for(const i of Object.keys(t)){const s=t[i];s!=null&&(e[i]=s)}}async function x3(e,t){return await Promise.all(Object.entries(t).map(async([i,s])=>{if(typeof s=="string")try{t[i]=await e(s)}catch{t[i]=s}})),t}function _U(e,t){if(t==="on")return!0;if(t==="auto"){const i=e.LANG;return!i||i.search(/\.UTF\-8$/)===-1&&i.search(/\.utf8$/)===-1&&i.search(/\.euc.+/)===-1}return!1}function bU(e){const t=e?e.split("-"):[],i=t.length;if(i===0)return"en_US.UTF-8";if(i===1){const s={af:"ZA",am:"ET",be:"BY",bg:"BG",ca:"ES",cs:"CZ",da:"DK",de:"DE",el:"GR",en:"US",es:"ES",et:"EE",eu:"ES",fi:"FI",fr:"FR",he:"IL",hr:"HR",hu:"HU",hy:"AM",is:"IS",it:"IT",ja:"JP",kk:"KZ",ko:"KR",lt:"LT",nl:"NL",no:"NO",pl:"PL",pt:"BR",ro:"RO",ru:"RU",sk:"SK",sl:"SI",sr:"YU",sv:"SE",tr:"TR",uk:"UA",zh:"CN"};t[0]in s&&t.push(s[t[0]])}else t[1]=t[1].toUpperCase();return t.join("_")+".UTF-8"}async function EU(e,t,i,s,r,n){if(e.cwd){const a=typeof e.cwd=="object"?e.cwd.fsPath:e.cwd,c=await k3(a,i);return w3(c||a)}let o;return!e.ignoreConfigurationCwd&&r&&(i&&(r=await k3(r,i,n)),r&&(mn(r)?o=r:s&&(o=W(s.fsPath,r)))),o||(o=s?s.fsPath:t||""),w3(o)}async function k3(e,t,i){if(t)try{return await t(e)}catch(s){i?.error("Could not resolve terminal cwd",s);return}return e}function SU(e,t,i){if(i)return s=>i.resolveWithEnvironment(t,e,s)}async function xU(e,t,i,s,r,n){const o={};if(e.strictEnv)S3(o,e.env);else{S3(o,n);const a={...t};i&&(a&&await x3(i,a),e.env&&await x3(i,e.env)),Li&&(o.VSCODE_NODE_OPTIONS&&(o.NODE_OPTIONS=o.VSCODE_NODE_OPTIONS,delete o.VSCODE_NODE_OPTIONS),o.VSCODE_NODE_REPL_EXTERNAL_MODULE&&(o.NODE_REPL_EXTERNAL_MODULE=o.VSCODE_NODE_REPL_EXTERNAL_MODULE,delete o.VSCODE_NODE_REPL_EXTERNAL_MODULE)),rL(o,"VSCODE_IPC_HOOK_CLI"),b3(o,a),b3(o,e.env),wU(o,s,Ei,r)}return o}var kU=y({"out-build/vs/workbench/contrib/terminal/common/terminalEnvironment.js"(){"use strict";de(),Y(),Zu(),K(),_3(),_e()}});function $l(e,t=he){return V_(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}var P3,PU=y({"out-build/vs/base/common/labels.js"(){"use strict";er(),de(),K(),_t(),lt(),(function(e){e[e.TEXT=0]="TEXT",e[e.VARIABLE=1]="VARIABLE",e[e.SEPARATOR=2]="SEPARATOR"})(P3||(P3={}))}}),I3,Ue,C3,ei,D3=y({"out-build/vs/workbench/services/configurationResolver/common/configurationResolver.js"(){"use strict";ve(),se(),I3=te("configurationResolverService"),(function(e){e.Unknown="unknown",e.Env="env",e.Config="config",e.Command="command",e.Input="input",e.ExtensionInstallFolder="extensionInstallFolder",e.WorkspaceFolder="workspaceFolder",e.Cwd="cwd",e.WorkspaceFolderBasename="workspaceFolderBasename",e.UserHome="userHome",e.LineNumber="lineNumber",e.ColumnNumber="columnNumber",e.SelectedText="selectedText",e.File="file",e.FileWorkspaceFolder="fileWorkspaceFolder",e.FileWorkspaceFolderBasename="fileWorkspaceFolderBasename",e.RelativeFile="relativeFile",e.RelativeFileDirname="relativeFileDirname",e.FileDirname="fileDirname",e.FileExtname="fileExtname",e.FileBasename="fileBasename",e.FileBasenameNoExtension="fileBasenameNoExtension",e.FileDirnameBasename="fileDirnameBasename",e.ExecPath="execPath",e.ExecInstallFolder="execInstallFolder",e.PathSeparator="pathSeparator",e.PathSeparatorAlias="/"})(Ue||(Ue={})),C3=Object.values(Ue).filter(e=>typeof e=="string"),ei=class extends Gs{constructor(e,t){super(t),this.variable=e}}}}),sp,R3=y({"out-build/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js"(){"use strict";hn(),K(),sp=class My{static{this.VARIABLE_LHS="${"}constructor(t){this.locations=new Map,typeof t=="string"?(this.stringRoot=!0,this.root={value:t}):(this.stringRoot=!1,this.root=structuredClone(t))}static parse(t){if(t instanceof My)return t;const i=new My(t);return i.applyPlatformSpecificKeys(),i.parseObject(i.root),i}applyPlatformSpecificKeys(){const t=this.root,i=he?"windows":Li?"osx":nt?"linux":void 0;i===void 0||!t||typeof t!="object"||!t.hasOwnProperty(i)||(Object.keys(t[i]).forEach(s=>t[s]=t[i][s]),delete t.windows,delete t.osx,delete t.linux)}parseVariable(t,i){if(t[i]!=="$"||t[i+1]!=="{")return;let s=i+2,r=1;for(;s<t.length;){if(t[s]==="{")r++;else if(t[s]==="}"&&(r--,r===0))break;s++}if(r!==0)return;const n=t.slice(i,s+1),o=t.substring(i+2,s),a=o.indexOf(":");return a===-1?{replacement:{id:n,name:o,inner:o},end:s}:{replacement:{id:n,inner:o,name:o.slice(0,a),arg:o.slice(a+1)},end:s}}parseObject(t){if(!(typeof t!="object"||t===null)){if(Array.isArray(t)){for(let i=0;i<t.length;i++){const s=t[i];typeof s=="string"?this.parseString(t,i,s):this.parseObject(s)}return}for(const[i,s]of Object.entries(t))typeof s=="string"?this.parseString(t,i,s):this.parseObject(s)}}parseString(t,i,s){let r=0;for(;r<s.length;){const n=s.indexOf("${",r);if(n===-1)break;const o=this.parseVariable(s,n);if(o){const a=this.locations.get(o.replacement.id)||{locations:[],replacement:o.replacement};a.locations.push({object:t,propertyName:i}),this.locations.set(o.replacement.id,a),r=o.end+1}else r=n+2}}unresolved(){return Ps.map(Ps.filter(this.locations.values(),t=>t.resolved===void 0),t=>t.replacement)}resolved(){return Ps.map(Ps.filter(this.locations.values(),t=>!!t.resolved),t=>[t.replacement,t.resolved])}resolve(t,i){typeof i!="object"&&(i={value:String(i)});const s=this.locations.get(t.id);if(s){if(i.value!==void 0)for(const{object:r,propertyName:n}of s.locations||[]){const o=r[n].replaceAll(t.id,i.value);r[n]=o}s.resolved=i}}toObject(){return this.stringRoot?this.root.value:this.root}}}}),L3,IU=y({"out-build/vs/workbench/services/configurationResolver/common/variableResolver.js"(){"use strict";PU(),de(),K(),ss(),_e(),ue(),D3(),R3(),L3=class{constructor(e,t,i,s){this._contributedVariables=new Map,this.resolvableVariables=new Set(C3),this._context=e,this._labelService=t,this._userHomePromise=i,s&&(this._envVariablesPromise=s.then(r=>this.prepareEnv(r)))}prepareEnv(e){if(he){const t=Object.create(null);return Object.keys(e).forEach(i=>{t[i.toLowerCase()]=e[i]}),t}return e}async resolveWithEnvironment(e,t,i){const s=sp.parse(i),r={env:this.prepareEnv(e),userHome:void 0};for(const n of s.unresolved()){const o=await this.evaluateSingleVariable(r,n,t?.uri);o!==void 0&&s.resolve(n,o)}return s.toObject()}async resolveAsync(e,t){const i=sp.parse(t),s={env:await this._envVariablesPromise,userHome:await this._userHomePromise};for(const r of i.unresolved()){const n=await this.evaluateSingleVariable(s,r,e?.uri);n!==void 0&&i.resolve(r,n)}return i.toObject()}resolveWithInteractionReplace(e,t){throw new Error("resolveWithInteractionReplace not implemented.")}resolveWithInteraction(e,t){throw new Error("resolveWithInteraction not implemented.")}contributeVariable(e,t){if(this._contributedVariables.has(e))throw new Error("Variable "+e+" is contributed twice.");this.resolvableVariables.add(e),this._contributedVariables.set(e,t)}fsPath(e){return this._labelService?this._labelService.getUriLabel(e,{noPrefix:!0}):e.fsPath}async evaluateSingleVariable(e,t,i,s){const{name:r,arg:n}=t,o=l=>{const u=this._context.getFilePath();if(u)return $l(u);throw new ei(l,m(13436,null,t.id))},a=l=>{const u=o(l);if(this._context.getWorkspaceFolderPathForFile){const h=this._context.getWorkspaceFolderPathForFile();if(h)return $l(h)}throw new ei(l,m(13437,null,t.id,ut(u)))},c=l=>{if(n){const u=this._context.getFolderUri(n);if(u)return u;throw new ei(l,m(13438,null,l,n))}if(i)return i;throw this._context.getWorkspaceFolderCount()>1?new ei(l,m(13439,null,l)):new ei(l,m(13440,null,l))};switch(r){case"env":if(n){if(e.env){const l=e.env[he?n.toLowerCase():n];if(ye(l))return l}return""}throw new ei(Ue.Env,m(13441,null,t.id));case"config":if(n){const l=this._context.getConfigurationValue(i,n);if(It(l))throw new ei(Ue.Config,m(13442,null,t.id,n));if(ft(l))throw new ei(Ue.Config,m(13443,null,t.id,n));return l}throw new ei(Ue.Config,m(13444,null,t.id));case"command":return this.resolveFromMap(Ue.Command,t.id,n,s,"command");case"input":return this.resolveFromMap(Ue.Input,t.id,n,s,"input");case"extensionInstallFolder":if(n){const l=await this._context.getExtension(n);if(!l)throw new ei(Ue.ExtensionInstallFolder,m(13445,null,t.id,n));return this.fsPath(l.extensionLocation)}throw new ei(Ue.ExtensionInstallFolder,m(13446,null,t.id));default:switch(r){case"workspaceRoot":case"workspaceFolder":{const l=c(Ue.WorkspaceFolder);return l?$l(this.fsPath(l)):void 0}case"cwd":{if(!i&&!n)return Js();const l=c(Ue.Cwd);return l?$l(this.fsPath(l)):void 0}case"workspaceRootFolderName":case"workspaceFolderBasename":{const l=c(Ue.WorkspaceFolderBasename);return l?$l(ut(this.fsPath(l))):void 0}case"userHome":if(e.userHome)return e.userHome;throw new ei(Ue.UserHome,m(13447,null,t.id));case"lineNumber":{const l=this._context.getLineNumber();if(l)return l;throw new ei(Ue.LineNumber,m(13448,null,t.id))}case"columnNumber":{const l=this._context.getColumnNumber();if(l)return l;throw new Error(m(13449,null,t.id))}case"selectedText":{const l=this._context.getSelectedText();if(l)return l;throw new ei(Ue.SelectedText,m(13450,null,t.id))}case"file":return o(Ue.File);case"fileWorkspaceFolder":return a(Ue.FileWorkspaceFolder);case"fileWorkspaceFolderBasename":return ut(a(Ue.FileWorkspaceFolderBasename));case"relativeFile":return i||n?qa(this.fsPath(c(Ue.RelativeFile)),o(Ue.RelativeFile)):o(Ue.RelativeFile);case"relativeFileDirname":{const l=Vt(o(Ue.RelativeFileDirname));if(i||n){const u=qa(this.fsPath(c(Ue.RelativeFileDirname)),l);return u.length===0?".":u}return l}case"fileDirname":return Vt(o(Ue.FileDirname));case"fileExtname":return gn(o(Ue.FileExtname));case"fileBasename":return ut(o(Ue.FileBasename));case"fileBasenameNoExtension":{const l=ut(o(Ue.FileBasenameNoExtension));return l.slice(0,l.length-gn(l).length)}case"fileDirnameBasename":return ut(Vt(o(Ue.FileDirnameBasename)));case"execPath":{const l=this._context.getExecPath();return l||t.id}case"execInstallFolder":{const l=this._context.getAppRoot();return l||t.id}case"pathSeparator":case"/":return jt;default:try{return this.resolveFromMap(Ue.Unknown,t.id,n,s,void 0)}catch{return t.id}}}}resolveFromMap(e,t,i,s,r){if(i&&s){const n=r===void 0?s[i]:s[r+":"+i];if(typeof n=="string")return n;throw new ei(e,m(13451,null,t))}return t}}}});import*as A3 from"os";function N3(e){throw new Error(`Unexpected value: ${e}`)}var O3,T3,CU=y({"out-build/vs/server/node/remoteTerminalChannel.js"(){"use strict";ie(),Si(),V(),de(),K(),Y(),ud(),_d(),vU(),e9(),q1(),kU(),IU(),n6(),Ne(),_3(),O3=class extends L3{constructor(e,t,i,s,r){super({getFolderUri:n=>{const o=t.filter(a=>a.name===n);if(o&&o.length>0)return o[0].uri},getWorkspaceFolderCount:()=>t.length,getConfigurationValue:(n,o)=>s[`config:${o}`],getExecPath:()=>e.VSCODE_EXEC_PATH,getAppRoot:()=>e.VSCODE_CWD,getFilePath:()=>{if(i)return Wi(i.fsPath)},getSelectedText:()=>s.selectedText,getLineNumber:()=>s.lineNumber,getColumnNumber:()=>s.columnNumber,getExtension:async n=>{const a=(await r.getInstalled()).find(c=>c.identifier.id===n);return a&&{extensionLocation:a.location}}},void 0,Promise.resolve(A3.homedir()),Promise.resolve(e))}},T3=class extends G{constructor(e,t,i,s,r,n){super(),this._environmentService=e,this._logService=t,this._ptyHostService=i,this._productService=s,this._extensionManagementService=r,this._configurationService=n,this._lastReqId=0,this._pendingCommands=new Map,this._onExecuteCommand=this._register(new R),this.onExecuteCommand=this._onExecuteCommand.event}async call(e,t,i){switch(t){case"$restartPtyHost":return this._ptyHostService.restartPtyHost.apply(this._ptyHostService,i);case"$createProcess":{const s=dl(e.remoteAuthority);return this._createProcess(s,i)}case"$attachToProcess":return this._ptyHostService.attachToProcess.apply(this._ptyHostService,i);case"$detachFromProcess":return this._ptyHostService.detachFromProcess.apply(this._ptyHostService,i);case"$listProcesses":return this._ptyHostService.listProcesses.apply(this._ptyHostService,i);case"$getLatency":return this._ptyHostService.getLatency.apply(this._ptyHostService,i);case"$getPerformanceMarks":return this._ptyHostService.getPerformanceMarks.apply(this._ptyHostService,i);case"$orphanQuestionReply":return this._ptyHostService.orphanQuestionReply.apply(this._ptyHostService,i);case"$acceptPtyHostResolvedVariables":return this._ptyHostService.acceptPtyHostResolvedVariables.apply(this._ptyHostService,i);case"$start":return this._ptyHostService.start.apply(this._ptyHostService,i);case"$input":return this._ptyHostService.input.apply(this._ptyHostService,i);case"$acknowledgeDataEvent":return this._ptyHostService.acknowledgeDataEvent.apply(this._ptyHostService,i);case"$shutdown":return this._ptyHostService.shutdown.apply(this._ptyHostService,i);case"$resize":return this._ptyHostService.resize.apply(this._ptyHostService,i);case"$clearBuffer":return this._ptyHostService.clearBuffer.apply(this._ptyHostService,i);case"$getInitialCwd":return this._ptyHostService.getInitialCwd.apply(this._ptyHostService,i);case"$getCwd":return this._ptyHostService.getCwd.apply(this._ptyHostService,i);case"$processBinary":return this._ptyHostService.processBinary.apply(this._ptyHostService,i);case"$sendCommandResult":return this._sendCommandResult(i[0],i[1],i[2]);case"$installAutoReply":return this._ptyHostService.installAutoReply.apply(this._ptyHostService,i);case"$uninstallAllAutoReplies":return this._ptyHostService.uninstallAllAutoReplies.apply(this._ptyHostService,i);case"$getDefaultSystemShell":return this._getDefaultSystemShell.apply(this,i);case"$getProfiles":return this._getProfiles.apply(this,i);case"$getEnvironment":return this._getEnvironment();case"$getWslPath":return this._getWslPath(i[0],i[1]);case"$getTerminalLayoutInfo":return this._ptyHostService.getTerminalLayoutInfo(i);case"$setTerminalLayoutInfo":return this._ptyHostService.setTerminalLayoutInfo(i);case"$serializeTerminalState":return this._ptyHostService.serializeTerminalState.apply(this._ptyHostService,i);case"$reviveTerminalProcesses":return this._ptyHostService.reviveTerminalProcesses.apply(this._ptyHostService,i);case"$getRevivedPtyNewId":return this._ptyHostService.getRevivedPtyNewId.apply(this._ptyHostService,i);case"$setUnicodeVersion":return this._ptyHostService.setUnicodeVersion.apply(this._ptyHostService,i);case"$reduceConnectionGraceTime":return this._reduceConnectionGraceTime();case"$updateIcon":return this._ptyHostService.updateIcon.apply(this._ptyHostService,i);case"$updateTitle":return this._ptyHostService.updateTitle.apply(this._ptyHostService,i);case"$updateProperty":return this._ptyHostService.updateProperty.apply(this._ptyHostService,i);case"$refreshProperty":return this._ptyHostService.refreshProperty.apply(this._ptyHostService,i);case"$requestDetachInstance":return this._ptyHostService.requestDetachInstance(i[0],i[1]);case"$acceptDetachedInstance":return this._ptyHostService.acceptDetachInstanceReply(i[0],i[1]);case"$freePortKillProcess":return this._ptyHostService.freePortKillProcess.apply(this._ptyHostService,i);case"$acceptDetachInstanceReply":return this._ptyHostService.acceptDetachInstanceReply.apply(this._ptyHostService,i);default:return N3(t)}}listen(e,t,i){switch(t){case"$onPtyHostExitEvent":return this._ptyHostService.onPtyHostExit||z.None;case"$onPtyHostStartEvent":return this._ptyHostService.onPtyHostStart||z.None;case"$onPtyHostUnresponsiveEvent":return this._ptyHostService.onPtyHostUnresponsive||z.None;case"$onPtyHostResponsiveEvent":return this._ptyHostService.onPtyHostResponsive||z.None;case"$onPtyHostRequestResolveVariablesEvent":return this._ptyHostService.onPtyHostRequestResolveVariables||z.None;case"$onProcessDataEvent":return this._ptyHostService.onProcessData;case"$onProcessReadyEvent":return this._ptyHostService.onProcessReady;case"$onProcessExitEvent":return this._ptyHostService.onProcessExit;case"$onProcessReplayEvent":return this._ptyHostService.onProcessReplay;case"$onProcessOrphanQuestion":return this._ptyHostService.onProcessOrphanQuestion;case"$onExecuteCommand":return this.onExecuteCommand;case"$onDidRequestDetach":return this._ptyHostService.onDidRequestDetach||z.None;case"$onDidChangeProperty":return this._ptyHostService.onDidChangeProperty;default:return N3(t)}}async _createProcess(e,t){const i={name:t.shellLaunchConfig.name,executable:t.shellLaunchConfig.executable,args:t.shellLaunchConfig.args,cwd:typeof t.shellLaunchConfig.cwd=="string"||typeof t.shellLaunchConfig.cwd>"u"?t.shellLaunchConfig.cwd:b.revive(e.transformIncoming(t.shellLaunchConfig.cwd)),env:t.shellLaunchConfig.env,useShellEnvironment:t.shellLaunchConfig.useShellEnvironment,reconnectionProperties:t.shellLaunchConfig.reconnectionProperties,type:t.shellLaunchConfig.type,isFeatureTerminal:t.shellLaunchConfig.isFeatureTerminal,tabActions:t.shellLaunchConfig.tabActions,shellIntegrationEnvironmentReporting:t.shellLaunchConfig.shellIntegrationEnvironmentReporting},s=await r6(t.resolverEnv,!!t.shellLaunchConfig.useShellEnvironment,Ei,this._environmentService,this._logService,this._configurationService);this._logService.trace("baseEnv",s);const r=E=>({uri:b.revive(e.transformIncoming(E.uri)),name:E.name,index:E.index,toResource:()=>{throw new Error("Not implemented")}}),n=t.workspaceFolders.map(r),o=t.activeWorkspaceFolder?r(t.activeWorkspaceFolder):void 0,a=t.activeFileResource?b.revive(e.transformIncoming(t.activeFileResource)):void 0,c=new O3(s,n,a,t.resolvedVariables,this._extensionManagementService),l=SU(o,process.env,c),u=await EU(i,A3.homedir(),l,o?.uri,t.configuration["terminal.integrated.cwd"],this._logService);i.cwd=u;const h=he?"terminal.integrated.env.windows":Li?"terminal.integrated.env.osx":"terminal.integrated.env.linux",f=t.configuration[h],p=await xU(i,f,l,this._productService.version,t.configuration["terminal.integrated.detectLocale"],s);if(yU(i)){const E=[];for(const[T,$,ne]of t.envVariableCollections)E.push([T,{map:SM($),descriptionMap:xM(ne)}]);const P=new Map(E),A=new K6(P),D=o?o??void 0:void 0;await A.applyToProcessEnvironment(p,{workspaceFolder:D},l)}this._logService.debug("Terminal process launching on remote agent",{shellLaunchConfig:i,initialCwd:u,cols:t.cols,rows:t.rows,env:p});const g=R1();p.VSCODE_IPC_HOOK_CLI=g;const v=await this._ptyHostService.createProcess(i,u,t.cols,t.rows,t.unicodeVersion,p,s,t.options,t.shouldPersistTerminal,t.workspaceId,t.workspaceName),w={executeCommand:(E,...P)=>this._executeCommand(v,E,P,e)},S=new ry(w,this._logService,g);return this._ptyHostService.onProcessExit(E=>E.id===v&&S.dispose()),{persistentTerminalId:v,resolvedShellLaunchConfig:i}}_executeCommand(e,t,i,s){const{resolve:r,reject:n,promise:o}=uR(),a=++this._lastReqId;this._pendingCommands.set(a,{resolve:r,reject:n,uriTransformer:s});const c=rr(i,l=>{if(l&&l.$mid===1)return s.transformOutgoing(l);if(l&&l instanceof b)return s.transformOutgoingURI(l)});return this._onExecuteCommand.fire({reqId:a,persistentProcessId:e,commandId:t,commandArgs:c}),o}_sendCommandResult(e,t,i){const s=this._pendingCommands.get(e);if(!s)return;this._pendingCommands.delete(e);const r=rr(i,n=>{if(n&&n.$mid===1)return s.uriTransformer.transformIncoming(n)});t?s.reject(r):s.resolve(r)}_getDefaultSystemShell(e){return this._ptyHostService.getDefaultSystemShell(e)}async _getProfiles(e,t,i,s){return this._ptyHostService.getProfiles(e,t,i,s)||[]}_getEnvironment(){return{...process.env}}_getWslPath(e,t){return this._ptyHostService.getWslPath(e,t)}_reduceConnectionGraceTime(){return this._ptyHostService.reduceConnectionGraceTime()}}}}),Wl,M3,DU,F3,RU,Hl,oy,Vl,rp,ay,U3,LU=y({"out-build/vs/workbench/services/configuration/common/configuration.js"(){"use strict";ci(),se(),Wl=".vscode",M3="settings",DU=`${Wl}/${M3}.json`,F3=[4,5,6],RU=[1,...F3],Hl="tasks",oy="launch",Vl="mcp",rp=Object.create(null),rp[Hl]=`${Wl}/${Hl}.json`,rp[oy]=`${Wl}/${oy}.json`,rp[Vl]=`${Wl}/${Vl}.json`,ay=Object.create(null),ay[Hl]=`${Hl}.json`,ay[Vl]=`${Vl}.json`,U3=Zt}}),$3,W3,AU=y({"out-build/vs/platform/label/common/label.js"(){"use strict";se(),$3=te("labelService"),(function(e){e[e.SHORT=0]="SHORT",e[e.MEDIUM=1]="MEDIUM",e[e.LONG=2]="LONG"})(W3||(W3={}))}}),H3,NU=y({"out-build/vs/workbench/contrib/terminal/common/environmentVariable.js"(){"use strict";se(),H3=te("environmentVariableService")}}),V3,cy,OU=y({"out-build/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js"(){"use strict";LU(),x9(),Cg(),q1(),D3(),g0(),Ik(),xe(),AU(),NU(),j1(),R3(),V3="remoteterminal",cy=class{get onPtyHostExit(){return this._channel.listen("$onPtyHostExitEvent")}get onPtyHostStart(){return this._channel.listen("$onPtyHostStartEvent")}get onPtyHostUnresponsive(){return this._channel.listen("$onPtyHostUnresponsiveEvent")}get onPtyHostResponsive(){return this._channel.listen("$onPtyHostResponsiveEvent")}get onPtyHostRequestResolveVariables(){return this._channel.listen("$onPtyHostRequestResolveVariablesEvent")}get onProcessData(){return this._channel.listen("$onProcessDataEvent")}get onProcessExit(){return this._channel.listen("$onProcessExitEvent")}get onProcessReady(){return this._channel.listen("$onProcessReadyEvent")}get onProcessReplay(){return this._channel.listen("$onProcessReplayEvent")}get onProcessOrphanQuestion(){return this._channel.listen("$onProcessOrphanQuestion")}get onExecuteCommand(){return this._channel.listen("$onExecuteCommand")}get onDidRequestDetach(){return this._channel.listen("$onDidRequestDetach")}get onDidChangeProperty(){return this._channel.listen("$onDidChangeProperty")}constructor(t,i,s,r,n,o,a,c,l,u){this._remoteAuthority=t,this._channel=i,this._configurationService=s,this._workspaceContextService=r,this._resolverService=n,this._environmentVariableService=o,this._remoteAuthorityResolverService=a,this._logService=c,this._editorService=l,this._labelService=u}restartPtyHost(){return this._channel.call("$restartPtyHost",[])}async createProcess(t,i,s,r,n,o,a,c){await this._configurationService.whenRemoteConfigurationLoaded();const l=Object.create(null),u=s?this._workspaceContextService.getWorkspaceFolder(s)??void 0:void 0,h=sp.parse({shellLaunchConfig:t,configuration:i});try{await this._resolverService.resolveAsync(u,h)}catch(A){this._logService.error(A)}for(const[{inner:A},D]of h.resolved())(/^config:/.test(A)||A==="selectedText"||A==="lineNumber")&&(l[A]=D.value);const f=[];for(const[A,D]of this._environmentVariableService.collections.entries())f.push([A,bM(D.map),EM(D.descriptionMap)]);const p=await this._remoteAuthorityResolverService.resolveAuthority(this._remoteAuthority),g=p.options&&p.options.extensionHostEnv,v=this._workspaceContextService.getWorkspace(),w=v.folders,S=s?this._workspaceContextService.getWorkspaceFolder(s):null,E=xf.getOriginalUri(this._editorService.activeEditor,{supportSideBySide:yr.PRIMARY,filterByScheme:[Z.file,Z.vscodeUserData,Z.vscodeRemote]}),P={configuration:i,resolvedVariables:l,envVariableCollections:f,shellLaunchConfig:t,workspaceId:v.id,workspaceName:this._labelService.getWorkspaceLabel(v),workspaceFolders:w,activeWorkspaceFolder:S,activeFileResource:E,shouldPersistTerminal:n,options:r,cols:o,rows:a,unicodeVersion:c,resolverEnv:g};return await this._channel.call("$createProcess",P)}requestDetachInstance(t,i){return this._channel.call("$requestDetachInstance",[t,i])}acceptDetachInstanceReply(t,i){return this._channel.call("$acceptDetachInstanceReply",[t,i])}attachToProcess(t){return this._channel.call("$attachToProcess",[t])}detachFromProcess(t,i){return this._channel.call("$detachFromProcess",[t,i])}listProcesses(){return this._channel.call("$listProcesses")}getLatency(){return this._channel.call("$getLatency")}getPerformanceMarks(){return this._channel.call("$getPerformanceMarks")}reduceConnectionGraceTime(){return this._channel.call("$reduceConnectionGraceTime")}processBinary(t,i){return this._channel.call("$processBinary",[t,i])}start(t){return this._channel.call("$start",[t])}input(t,i){return this._channel.call("$input",[t,i])}acknowledgeDataEvent(t,i){return this._channel.call("$acknowledgeDataEvent",[t,i])}setUnicodeVersion(t,i){return this._channel.call("$setUnicodeVersion",[t,i])}shutdown(t,i){return this._channel.call("$shutdown",[t,i])}resize(t,i,s){return this._channel.call("$resize",[t,i,s])}clearBuffer(t){return this._channel.call("$clearBuffer",[t])}getInitialCwd(t){return this._channel.call("$getInitialCwd",[t])}getCwd(t){return this._channel.call("$getCwd",[t])}orphanQuestionReply(t){return this._channel.call("$orphanQuestionReply",[t])}sendCommandResult(t,i,s){return this._channel.call("$sendCommandResult",[t,i,s])}freePortKillProcess(t){return this._channel.call("$freePortKillProcess",[t])}getDefaultSystemShell(t){return this._channel.call("$getDefaultSystemShell",[t])}getProfiles(t,i,s){return this._channel.call("$getProfiles",[this._workspaceContextService.getWorkspace().id,t,i,s])}acceptPtyHostResolvedVariables(t,i){return this._channel.call("$acceptPtyHostResolvedVariables",[t,i])}getEnvironment(){return this._channel.call("$getEnvironment")}getWslPath(t,i){return this._channel.call("$getWslPath",[t,i])}setTerminalLayoutInfo(t){const s={workspaceId:this._workspaceContextService.getWorkspace().id,tabs:t?t.tabs:[]};return this._channel.call("$setTerminalLayoutInfo",s)}updateTitle(t,i,s){return this._channel.call("$updateTitle",[t,i,s])}updateIcon(t,i,s,r){return this._channel.call("$updateIcon",[t,i,s,r])}refreshProperty(t,i){return this._channel.call("$refreshProperty",[t,i])}updateProperty(t,i,s){return this._channel.call("$updateProperty",[t,i,s])}getTerminalLayoutInfo(){const i={workspaceId:this._workspaceContextService.getWorkspace().id};return this._channel.call("$getTerminalLayoutInfo",i)}reviveTerminalProcesses(t,i,s){return this._channel.call("$reviveTerminalProcesses",[t,i,s])}getRevivedPtyNewId(t){return this._channel.call("$getRevivedPtyNewId",[t])}serializeTerminalState(t){return this._channel.call("$serializeTerminalState",[t])}installAutoReply(t,i){return this._channel.call("$installAutoReply",[t,i])}uninstallAllAutoReplies(){return this._channel.call("$uninstallAllAutoReplies",[])}},cy=__decorate([__param(2,U3),__param(3,K4),__param(4,I3),__param(5,H3),__param(6,b9),__param(7,V6),__param(8,xk),__param(9,$3)],cy)}}),TU=y({"out-build/vs/platform/files/common/diskFileSystemProviderClient.js"(){"use strict";Fe(),oo(),ve(),ie(),V(),Qa(),Y(),Bt(),Xe(),Wo()}}),j3,MU=y({"out-build/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js"(){"use strict";ve(),V(),xe(),TU(),j3="remoteFilesystem"}}),B3,FU=y({"out-build/vs/platform/telemetry/common/1dsAppender.js"(){"use strict";B3=class{constructor(e,t,i,s,r){this._isInternalTelemetry=e,this._eventPrefix=t,this._defaultData=i,this._xhrOverride=r,this._defaultData||(this._defaultData={}),typeof s=="function"?this._faroCoreOrKey=s():this._faroCoreOrKey=s,this._asyncFaroCore=null}registerAuthId(e){this._authId=e}_withAIClient(e){}log(e,t){}capture(e,t){}flush(){return this._faroCoreOrKey?new Promise(e=>{this._withAIClient(t=>{t.unload(!0,()=>{this._faroCoreOrKey=void 0,e(void 0)})})}):Promise.resolve(void 0)}}}});import*as UU from"https";import $U from"node-fetch";async function WU(e,t){const i=await t.request(e,Me.None),s=(await Zs(i.stream)).toString(),r=i.res.statusCode??200;return{headers:i.res.headers,statusCode:r,responseData:s}}async function HU(e){const t={method:e.type,headers:e.headers};return new Promise((s,r)=>{const n=UU.request(e.url??"",t,o=>{o.on("data",function(a){s({headers:o.headers,statusCode:o.statusCode??200,responseData:a.toString()})}),o.on("error",function(a){r(a)})});n.write(e.data,o=>{o&&r(o)}),n.end()})}async function VU(e,t,i){const s=typeof t.data=="string"?t.data:new TextDecoder().decode(t.data),r={type:"POST",headers:{...t.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(t.data).toString()},url:t.urlString,data:s};try{const n=e?await WU(r,e):await HU(r);i(n.statusCode,n.headers,n.responseData)}catch{i(0,{})}}var z3,jU=y({"out-build/vs/platform/telemetry/node/1dsAppender.js"(){"use strict";Fe(),Ft(),FU(),z3=class extends B3{constructor(e,t,i,s,r){const n={sendPOST:(o,a)=>{VU(e,o,a)}};super(t,i,s,r,n)}fetch(e,t){return $U(e,t)}}}});function BU(e,t,i,s,r){const n=new pg;return e.forEach(o=>{const a=n.get(o.identifier);a&&r.warn(m(13788,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath)),n.set(o.identifier,o)}),t.forEach(o=>{const a=n.get(o.identifier);if(a)if(a.isBuiltin){if(yg(a.version,o.version)){r.warn(`Skipping extension ${o.extensionLocation.path} in favour of the builtin extension ${a.extensionLocation.path}.`);return}o.isBuiltin=!0}else r.warn(m(13789,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath));else if(o.isBuiltin){r.warn(`Skipping obsolete builtin extension ${o.extensionLocation.path}`);return}n.set(o.identifier,o)}),i.forEach(o=>{const a=n.get(o.identifier);a&&r.warn(m(13790,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath)),n.set(o.identifier,o)}),s.forEach(o=>{r.info(m(13791,null,o.extensionLocation.fsPath));const a=n.get(o.identifier);a&&a.isBuiltin&&(o.isBuiltin=!0),n.set(o.identifier,o)}),Array.from(n.values())}var zU=y({"out-build/vs/workbench/services/extensions/common/extensionsUtil.js"(){"use strict";cs(),ue(),In()}}),q3,G3,qU=y({"out-build/vs/server/node/remoteExtensionsScanner.js"(){"use strict";de(),K(),ss(),Y(),qs(),Ko(),Tu(),Bc(),zU(),xe(),ls(),q3=class{constructor(e,t,i,s,r,n,o,a){this._extensionManagementCLI=e,this._userDataProfilesService=i,this._extensionsScannerService=s,this._logService=r,this._extensionGalleryService=n,this._languagePackService=o,this._extensionManagementService=a,this._whenBuiltinExtensionsReady=Promise.resolve({failed:[]}),this._whenExtensionsReady=Promise.resolve({failed:[]});const c=t.args["install-builtin-extension"];if(c){r.trace("Installing builtin extensions passed via args...");const u={isMachineScoped:!!t.args["do-not-sync"],installPreReleaseVersion:!!t.args["pre-release"]};St("code/server/willInstallBuiltinExtensions"),this._whenExtensionsReady=this._whenBuiltinExtensionsReady=e.installExtensions([],this._asExtensionIdOrVSIX(c),u,!!t.args.force).then(()=>(St("code/server/didInstallBuiltinExtensions"),r.trace("Finished installing builtin extensions"),{failed:[]}),h=>(r.error(h),{failed:[]}))}const l=t.args["install-extension"];if(l){r.trace("Installing extensions passed via args...");const u={isMachineScoped:!!t.args["do-not-sync"],installPreReleaseVersion:!!t.args["pre-release"],isApplicationScoped:!0};this._whenExtensionsReady=this._whenBuiltinExtensionsReady.then(()=>e.installExtensions(this._asExtensionIdOrVSIX(l),[],u,!!t.args.force)).then(async()=>(r.trace("Finished installing extensions"),{failed:[]}),async h=>{r.error(h);const f=[],p=await this._extensionManagementService.getInstalled(1);for(const g of this._asExtensionIdOrVSIX(l))typeof g=="string"&&(p.some(v=>ge(v.identifier,{id:g}))||f.push({id:g,installOptions:u}));return f.length?(r.info(`Relaying the following extensions to install later: ${f.map(g=>g.id).join(", ")}`),{failed:f}):(r.trace("No extensions to report as failed"),{failed:[]})})}}_asExtensionIdOrVSIX(e){return e.map(t=>/\.vsix$/i.test(t)?b.file(mn(t)?t:W(Js(),t)):t)}whenExtensionsReady(){return this._whenExtensionsReady}async scanExtensions(e,t,i,s,r){St("code/server/willScanExtensions"),this._logService.trace(`Scanning extensions using UI language: ${e}`),await this._whenBuiltinExtensionsReady;const n=s?s.filter(a=>a.scheme===Z.file).map(a=>a.fsPath):void 0;t=t??this._userDataProfilesService.defaultProfile.extensionsResource;const o=await this._scanExtensions(t,e??Ei,i,n,r);return this._logService.trace("Scanned Extensions",o),this._massageWhenConditions(o),St("code/server/didScanExtensions"),o}async _scanExtensions(e,t,i,s,r){await this._ensureLanguagePackIsInstalled(t,r);const[n,o,a,c]=await Promise.all([this._scanBuiltinExtensions(t),this._scanInstalledExtensions(e,t),this._scanWorkspaceInstalledExtensions(t,i),this._scanDevelopedExtensions(t,s)]);return BU(n,o,a,c,this._logService)}async _scanDevelopedExtensions(e,t){return t?(await Promise.all(t.map(i=>this._extensionsScannerService.scanOneOrMultipleExtensions(b.file(Ys(i)),1,{language:e})))).flat().map(i=>Fh(i,!0)):[]}async _scanWorkspaceInstalledExtensions(e,t){const i=[];if(t?.length){const s=await Promise.all(t.map(r=>this._extensionsScannerService.scanExistingExtension(r,1,{language:e})));for(const r of s)r&&i.push(Fh(r,!1))}return i}async _scanBuiltinExtensions(e){return(await this._extensionsScannerService.scanSystemExtensions({language:e})).map(i=>Fh(i,!1))}async _scanInstalledExtensions(e,t){return(await this._extensionsScannerService.scanUserExtensions({profileLocation:e,language:t,useCache:!0})).map(s=>Fh(s,!1))}async _ensureLanguagePackIsInstalled(e,t){if(!(e===kr||!this._extensionGalleryService.isEnabled())){try{if((await this._languagePackService.getInstalledLanguages()).find(s=>s.id===e)){this._logService.trace(`Language Pack ${e} is already installed. Skipping language pack installation.`);return}}catch(i){this._logService.error(i)}if(!t){this._logService.trace(`No language pack id provided for language ${e}. Skipping language pack installation.`);return}this._logService.trace(`Language Pack ${t} for language ${e} is not installed. It will be installed now.`);try{await this._extensionManagementCLI.installExtensions([t],[],{isMachineScoped:!0},!0)}catch(i){this._logService.error(i)}}}_massageWhenConditions(e){const t=(a,c)=>a.replace(/file/g,"vscode-remote"),i=a=>{let c="";return c+=a.global?"g":"",c+=a.ignoreCase?"i":"",c+=a.multiline?"m":"",new RegExp(t(a.source,!0),c)},s=new class{mapDefined(a){return bn.create(a)}mapNot(a){return En.create(a)}mapEquals(a,c){return a==="resourceScheme"&&typeof c=="string"?uo.create(a,t(c,!1)):uo.create(a,c)}mapNotEquals(a,c){return a==="resourceScheme"&&typeof c=="string"?ho.create(a,t(c,!1)):ho.create(a,c)}mapGreater(a,c){return fo.create(a,c)}mapGreaterEquals(a,c){return ec.create(a,c)}mapSmaller(a,c){return tc.create(a,c)}mapSmallerEquals(a,c){return ic.create(a,c)}mapRegex(a,c){return a==="resourceScheme"&&c?po.create(a,i(c)):po.create(a,c)}mapIn(a,c){return Au.create(a,c)}mapNotIn(a,c){return Nu.create(a,c)}},r=a=>{if(!a||!a.when||!/resourceScheme/.test(a.when))return;const c=Ut.deserialize(a.when);if(!c)return;const l=c.map(s);a.when=l.serialize()},n=a=>{if(Array.isArray(a))for(const c of a)r(c);else r(a)},o=a=>{for(const c in a)n(a[c])};e.forEach(a=>{a.contributes&&(a.contributes.menus&&o(a.contributes.menus),a.contributes.keybindings&&n(a.contributes.keybindings),a.contributes.views&&o(a.contributes.views))})}},G3=class{constructor(e,t){this.service=e,this.getUriTransformer=t}listen(e,t){throw new Error("Invalid listen")}async call(e,t,i){const s=this.getUriTransformer(e);switch(t){case"whenExtensionsReady":return await this.service.whenExtensionsReady();case"scanExtensions":{const r=i[0],n=i[1]?b.revive(s.transformIncoming(i[1])):void 0,o=Array.isArray(i[2])?i[2].map(u=>b.revive(s.transformIncoming(u))):void 0,a=Array.isArray(i[3])?i[3].map(u=>b.revive(s.transformIncoming(u))):void 0,c=i[4];return(await this.service.scanExtensions(r,n,o,a,c)).map(u=>dr(u,s))}}throw new Error("Invalid call")}}}}),GU,Q3,QU=y({"out-build/vs/platform/remote/common/remoteExtensionsScanner.js"(){"use strict";se(),GU=te("IRemoteExtensionsScannerService"),Q3="remoteExtensionsScanner"}}),J3,JU=y({"out-build/vs/platform/userDataProfile/common/userDataProfileIpc.js"(){"use strict";ie(),V(),Qi(),Ko(),J3=class{constructor(e,t){this.service=e,this.getUriTransformer=t}listen(e,t){const i=this.getUriTransformer(e);switch(t){case"onDidChangeProfiles":return z.map(this.service.onDidChangeProfiles,s=>({all:s.all.map(r=>dr({...r},i)),added:s.added.map(r=>dr({...r},i)),removed:s.removed.map(r=>dr({...r},i)),updated:s.updated.map(r=>dr({...r},i))}))}throw new Error(`Invalid listen ${t}`)}async call(e,t,i){const s=this.getUriTransformer(e);switch(t){case"createProfile":{const r=await this.service.createProfile(i[0],i[1],i[2]);return dr({...r},s)}case"updateProfile":{let r=iS(y6(i[0],s),this.service.profilesHome.scheme);return r=await this.service.updateProfile(r,i[1]),dr({...r},s)}case"removeProfile":{const r=iS(y6(i[0],s),this.service.profilesHome.scheme);return this.service.removeProfile(r)}}throw new Error(`Invalid call ${t}`)}}}}),np,XU=y({"out-build/vs/platform/terminal/node/nodePtyHostStarter.js"(){"use strict";V(),xe(),j5(),ui(),tx(),np=class extends G{constructor(t,i){super(),this._reconnectConstants=t,this._environmentService=i}start(){const t={serverName:"Pty Host",args:["--type=ptyHost","--logsPath",this._environmentService.logsHome.with({scheme:Z.file}).fsPath],env:{VSCODE_ESM_ENTRYPOINT:"vs/platform/terminal/node/ptyHostMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true",VSCODE_RECONNECT_GRACE_TIME:this._reconnectConstants.graceTime,VSCODE_RECONNECT_SHORT_GRACE_TIME:this._reconnectConstants.shortGraceTime,VSCODE_RECONNECT_SCROLLBACK:this._reconnectConstants.scrollback}},i=iT(this._environmentService.args,this._environmentService.isBuilt);i&&(i.break&&i.port?t.debugBrk=i.port:!i.break&&i.port&&(t.debug=i.port));const s=new f1(Ct.asFileUri("bootstrap-fork").fsPath,t),r=new ct;return r.add(s),{client:s,store:r,onDidProcessExit:s.onDidProcessExit}}},np=__decorate([__param(1,xi)],np)}});import{spawn as YU}from"child_process";import{relative as X3,join as Y3}from"path";import{createHash as Z3}from"crypto";import{promises as K3}from"fs";var ly,op,eI=y({"out-build/vs/platform/cssDev/node/cssDevService.js"(){"use strict";xe(),so(),ui(),se(),Ie(),ie(),V(),Xe(),Y(),ly=te("ICSSDevelopmentService"),op=class extends G{constructor(t,i,s){super(),this.envService=t,this.logService=i,this.fileService=s,this._watchedFiles=new Set,this._onDidChangeCssModules=this._register(new R),this.onDidChangeCssModules=this._onDidChangeCssModules.event,this.isEnabled&&(this._register(this.fileService.onDidFilesChange(this.onDidFilesChange.bind(this))),this.initializeWatcher())}get isEnabled(){return!this.envService.isBuilt}getCssModules(t){return t&&(this._cssModules=void 0),this._cssModules??=this.computeCssModules(),this._cssModules}async computeCssModules(){if(!this.isEnabled)return new Map;const t=await import("@vscode/ripgrep");return await new Promise(i=>{const s=Qs.create(),r=[],n=Ct.asFileUri("").fsPath,o=YU(t.rgPath,["-g","**/*.css","-g","!**/fixtures/**","--files","--no-ignore",n],{});o.stdout.on("data",a=>{r.push(a)}),o.on("error",a=>{i(new Map)}),o.on("close",async()=>{const a=Buffer.concat(r).toString("utf8"),c=a.split(`
`).filter(Boolean).map(u=>X3(n,u).replace(/\\/g,"/")).filter(Boolean).sort(),l=new Map;c.some(u=>u.indexOf("vs/")!==0)&&this.logService.error(`[CSS_DEV] Detected invalid paths in css modules, raw output: ${a}`);for(const u of c)try{const h=Y3(n,u),f=await K3.readFile(h),p=Z3("sha256").update(f).digest("hex");l.set(u,p)}catch{l.set(u,Date.now().toString())}i(l)})})}async initializeWatcher(){const t=await this.getCssModules();for(const[i]of t){const s=b.file(Y3(Ct.asFileUri("").fsPath,i));this._watchedFiles.add(i),this._register(this.fileService.watch(s))}}async onDidFilesChange(t){if(!this.isEnabled)return;const i=Ct.asFileUri("").fsPath,s=[];for(const r of t.rawUpdated){const n=X3(i,r.fsPath).replace(/\\/g,"/");if(this._watchedFiles.has(n)){let o;try{const a=await K3.readFile(r.fsPath);o=Z3("sha256").update(a).digest("hex")}catch{continue}s.push({path:n,newHash:o})}}s.length>0&&(this._onDidChangeCssModules.fire(new Map(s.map(r=>[r.path,r.newHash]))),this._cssModules=void 0)}},op=__decorate([__param(0,xi),__param(1,fe),__param(2,ht)],op)}}),uy,tI,iI=y({"out-build/vs/platform/mcp/common/nativeMcpDiscoveryHelper.js"(){"use strict";se(),uy=te("INativeMcpDiscoveryHelperService"),tI="NativeMcpDiscoveryHelper"}}),ap,ZU=y({"out-build/vs/platform/mcp/node/nativeMcpDiscoveryHelperChannel.js"(){"use strict";Ko(),iI(),ap=class{constructor(t,i){this.getUriTransformer=t,this.nativeMcpDiscoveryHelperService=i}listen(t,i){throw new Error("Invalid listen")}async call(t,i,s){const r=this.getUriTransformer?.(t);switch(i){case"load":{const n=await this.nativeMcpDiscoveryHelperService.load();return r?dr(n,r):n}}throw new Error("Invalid call")}},ap=__decorate([__param(1,uy)],ap)}});import{homedir as KU}from"os";var sI,e$=y({"out-build/vs/platform/mcp/node/nativeMcpDiscoveryHelperService.js"(){"use strict";K(),Y(),sI=class{constructor(){}load(){return Promise.resolve({platform:ln,homedir:b.file(KU()),winAppData:this.uriFromEnvVariable("APPDATA"),xdgHome:this.uriFromEnvVariable("XDG_CONFIG_HOME")})}uriFromEnvVariable(e){const t=process.env[e];if(t)return b.file(t)}}}}),cp,t$=y({"out-build/vs/platform/extensionManagement/common/extensionGalleryManifestServiceIpc.js"(){"use strict";Ne(),ie(),mi(),Lx(),cp=class extends ol{constructor(t,i){super(i),this._onDidChangeExtensionGalleryManifest=this._register(new R),this.onDidChangeExtensionGalleryManifest=this._onDidChangeExtensionGalleryManifest.event,this.barrier=new Fu,t.registerChannel("extensionGalleryManifest",{listen:()=>z.None,call:async(s,r,n)=>{switch(r){case"setExtensionGalleryManifest":return Promise.resolve(this.setExtensionGalleryManifest(n[0]))}throw new Error("Invalid call")}})}async getExtensionGalleryManifest(){return await this.barrier.wait(),this.extensionGalleryManifest??null}setExtensionGalleryManifest(t){this.extensionGalleryManifest=t,this._onDidChangeExtensionGalleryManifest.fire(t),this.barrier.open()}},cp=__decorate([__param(1,Et)],cp)}});import*as hy from"os";import rI from"pidusage";var lp,i$=y({"out-build/vs/server/node/remotePerformanceTelemetryChannel.js"(){"use strict";ie(),V(),Ie(),lp=class extends G{constructor(t){super(),this.logService=t,this._onDidCollectMetrics=this._register(new R),this.onDidCollectMetrics=this._onDidCollectMetrics.event,this._isCollecting=!1,this._monitoredProcesses=new Map,this._monitoredProcessesTimeouts=new Map,this._readingsBuffer=[],this._batchSize=10,this._processMonitorInterval=5e3,this._commonTags=this._getCommonTags()}async call(t,i,s){switch(i){case"startCollection":return this._startCollection();case"stopCollection":return this._stopCollection();case"pushReading":return this._pushReading(s);default:throw new Error(`Unknown command: ${i}`)}}listen(t,i,s){switch(i){case"onDidCollectMetrics":return this._isCollecting||this._startCollection(),this._onDidCollectMetrics.event;default:throw new Error(`Unknown event: ${i}`)}}_startCollection(){if(this._isCollecting)return;this._isCollecting=!0;const t=2;let i=1;const s=()=>{this._serverMemoryCpuTimeout=setTimeout(async()=>{try{await this._recordServerReadings(),i=1}catch(r){if(!this._isCollecting)return;if(i>=t){this.logService.error(`[RemotePerformance] Failed to record server readings after ${t} attempts. Last error:`,r);return}i++}s()},this._processMonitorInterval)};s()}_stopCollection(){this._isCollecting&&(this._isCollecting=!1,this._serverMemoryCpuTimeout&&(clearTimeout(this._serverMemoryCpuTimeout),this._serverMemoryCpuTimeout=void 0),this._monitoredProcessesTimeouts.forEach(t=>clearTimeout(t)),this._monitoredProcessesTimeouts.clear(),this._readingsBuffer.length>0&&this._flushReadings())}async _recordServerReadings(){const t=await rI(process.pid),i=t.memory/1024/1024,s=process.memoryUsage(),r={process:"server",memory:{rssMB:i,heapUsedMB:s.heapUsed/1024/1024,heapTotalMB:s.heapTotal/1024/1024,externalMB:s.external/1024/1024,arrayBuffersMB:s.arrayBuffers/1024/1024},cpuPct:t.cpu,tags:this._commonTags};this._pushReading(r)}async _recordProcessReadings(t,i){if(!this._isCollecting||!this._monitoredProcesses.has(i))return;const s=await rI(i),r=s.memory/1024/1024,n={process:t,memory:{rssMB:r},cpuPct:s.cpu,tags:this._commonTags};this._pushReading(n)}_flushReadings(){if(this._readingsBuffer.length===0)return;const t={readings:[...this._readingsBuffer],timestamp:Date.now()};this._readingsBuffer.length=0,this._onDidCollectMetrics.fire(t)}_pushReading(t){this._readingsBuffer.push(t),this._readingsBuffer.length>=this._batchSize&&this._flushReadings()}_getCommonTags(){return{"remote.os.platform":hy.platform(),"remote.os.arch":hy.arch(),"remote.os.release":hy.release()}}_scheduleProcessReadings(t){let s=1;const r=()=>{const n=setTimeout(async()=>{const o=this._monitoredProcesses.get(t);if(!(!this._isCollecting||!o)){try{await this._recordProcessReadings(o,t),s=1}catch(a){if(!this._isCollecting||!this._monitoredProcesses.has(t))return;if(s>=2){this.logService.error(`[RemotePerformance] Failed to record process readings after 2 attempts for pid ${t}. Last error:`,a),this._monitoredProcesses.delete(t);return}s++}r()}},this._processMonitorInterval);this._monitoredProcessesTimeouts.set(t,n)};r()}recordReading(t){this._pushReading(t)}registerProcess(t,i){this._monitoredProcesses.has(i)||(this._monitoredProcesses.set(i,t),this._scheduleProcessReadings(i))}unregisterProcess(t){this._monitoredProcesses.delete(t);const i=this._monitoredProcessesTimeouts.get(t);i&&(clearTimeout(i),this._monitoredProcessesTimeouts.delete(t))}dispose(){this._monitoredProcesses.clear(),this._stopCollection(),super.dispose()}},lp=__decorate([__param(0,fe)],lp)}}),dy,nI=y({"out-build/vs/workbench/contrib/remotePerformanceTelemetry/common/remotePerformanceTelemetry.js"(){"use strict";se(),dy=te("remotePerformanceTelemetryService")}});import{hostname as s$,release as r$}from"os";async function n$(e,t,i,s){const r=new Iu,n=new aI,o={_serviceBrand:void 0,...Rt};r.set(Et,o);const a=new Kh(t,o);r.set(xi,a),r.set(Vi,a);const c=new S1(Dm(a),a.logsHome);r.set(rc,c),n.registerChannel("logger",new j6(c,q=>Sa(q.remoteAuthority)));const l=c.createLogger("remoteagent",{name:m(2680,null)}),u=new E1(l,[new cI(Dm(a))]);r.set(fe,u),setTimeout(()=>o$(a.logsHome.with({scheme:Z.file}).fsPath).then(null,q=>u.error(q)),1e4),u.onDidChangeLogLevel(q=>oR(u,q,`Log level changed to ${gb(u.getLevel())}`)),u.trace(`Remote configuration data at ${i}`),u.trace("process arguments:",a.args),Array.isArray(o.serverGreeting)&&u.info(`
${o.serverGreeting.join(`
`)}
`),n.registerChannel($1.ChannelName,new $1);const h=new V5(q=>q.clientId==="renderer"),f=s.add(new Gc(u));r.set(ht,f),f.registerProvider(Z.file,s.add(new Zc(u)));const p=new Jo(f);r.set(Ot,p);const g=new Gm(a.machineSettingsResource,f,new zu,u);r.set(Zt,g);const v=new sl(p,a,f,u);r.set(Gi,v),n.registerChannel("userDataProfiles",new J3(v,q=>Sa(q.remoteAuthority))),r.set(ly,new ze(op,void 0,!0));const[,,w,S,E,P]=await Promise.all([g.initialize(),v.init(),ZT(u.error.bind(u)),KT(u.error.bind(u)),sM(u.error.bind(u)),rM(u.error.bind(u))]),A=new Kx;r.set(A1,A);const D=new bc("remote",g,a,u);r.set(ar,D);let T=KE;const $=OL(o,g);if(QE(o,a)){!AL(o,a)&&o.aiConfig?.ariaKey&&(T=new z3(D,$,oI,null,o.aiConfig.ariaKey),s.add(Se(()=>T?.flush())));const q={appenders:[T],commonProperties:CL(r$(),s$(),process.arch,o.commit,o.version+"-remote",w,S,E,P,$,"remoteAgent"),piiPaths:TL(a)},Ge=a.args["telemetry-level"];let C=3;Ge==="all"?C=3:Ge==="error"?C=2:Ge==="crash"?C=1:Ge!==void 0&&(C=0),r.set(kd,new ze(xd,[q,C]))}else r.set(kd,v9);r.set(An,new cp(n,o)),r.set(os,new ze(Mc));const ne=n.getChannel("download",h);r.set(Dh,new m6(ne,()=>Sa("renderer"))),r.set(As,new ze(rl)),r.set(Nn,new ze(il)),r.set($h,new ze(zc)),r.set(cr,new ze(nl)),r.set(jh,new ze(qc)),r.set(uy,new ze(sI));const N=new t1(r);r.set(ed,N.createInstance(tl));const pe=N.createInstance(np,{graceTime:108e5,shortGraceTime:3e5,scrollback:g.getValue("terminal.integrated.persistentSessionScrollback")??100}),at=N.createInstance(wd,pe);return r.set(A6,at),N.invokeFunction(q=>{const Ge=q.get(jh),C=q.get(Nn),L=q.get(os),F=q.get(ed),M=new u9(e,a,v,A);n.registerChannel("remoteextensionsenvironment",M);const J=new m9(q.get(kd),T);n.registerChannel("telemetry",J),n.registerChannel(V3,new T3(a,u,at,o,Ge,g));const ae=new q3(N.createInstance(el,u),a,v,C,u,L,F,Ge);n.registerChannel(Q3,new G3(ae,ii=>Sa(ii.remoteAuthority))),n.registerChannel(tI,N.createInstance(ap,ii=>Sa(ii.remoteAuthority)));const Pe=s.add(new f9(u,a,g));n.registerChannel(j3,Pe),n.registerChannel("request",new E6(q.get(ar)));const Ze=new b6(Ge,ii=>Sa(ii.remoteAuthority));n.registerChannel("extensions",Ze);const Ke=N.createInstance(lp);return s.add(Ke),n.registerChannel("remotePerformanceTelemetry",Ke),r.set(dy,Ke),ae.whenExtensionsReady().then(()=>Ge.cleanUp()),s.add(new x6(q.get(fi))),{telemetryService:q.get(fi)}}),{socketServer:n,instantiationService:N}}function Sa(e){return up[e]||(up[e]=dl(e)),up[e]}function Ws(){const e=new Date;return`${fy(e.getHours())}:${fy(e.getMinutes())}:${fy(e.getSeconds())}`}function fy(e){return e<10?`0${e}`:String(e)}async function o$(e){const t=ut(e),i=Vt(e),n=(await Ce.readdir(i)).filter(a=>/^\d{8}T\d{6}$/.test(a)).sort().filter(a=>a!==t),o=n.slice(0,Math.max(0,n.length-9));await Promise.all(o.map(a=>Ce.rm(W(i,a))))}var oI,up,aI,cI,a$=y({"out-build/vs/server/node/serverServices.js"(){"use strict";ie(),V(),xe(),de(),p6(),di(),zo(),ci(),oE(),nM(),Mg(),oM(),ui(),Ng(),ki(),Zg(),sx(),aM(),t5(),Xe(),l5(),Yh(),Mu(),n5(),vm(),v1(),rx(),Ie(),Oo(),mi(),ko(),cM(),VE(),BE(),ji(),Mr(),uM(),j1(),jM(),qi(),hx(),YM(),KM(),eF(),sF(),CU(),_d(),Go(),OU(),MU(),e6(),Bc(),px(),Fo(),Qi(),qu(),jU(),Px(),_x(),bx(),Ex(),z6(),ue(),qU(),QU(),JU(),XU(),eI(),Rx(),iI(),ZU(),e$(),Eh(),t$(),i$(),nI(),oI="monacoworkbench",up=Object.create(null),aI=class extends H5{constructor(){const e=new R;super(e.event),this._onDidConnectEmitter=e}acceptConnection(e,t){this._onDidConnectEmitter.fire({protocol:e,onDidClientDisconnect:t})}},cI=class extends oc{constructor(e=nc){super(),this.setLevel(e),this.useColors=!!process.stdout.isTTY}trace(e,...t){this.canLog(j.Trace)&&(this.useColors?console.log(`\x1B[90m[${Ws()}]\x1B[0m`,e,...t):console.log(`[${Ws()}]`,e,...t))}debug(e,...t){this.canLog(j.Debug)&&(this.useColors?console.log(`\x1B[90m[${Ws()}]\x1B[0m`,e,...t):console.log(`[${Ws()}]`,e,...t))}info(e,...t){this.canLog(j.Info)&&(this.useColors?console.log(`\x1B[90m[${Ws()}]\x1B[0m`,e,...t):console.log(`[${Ws()}]`,e,...t))}warn(e,...t){this.canLog(j.Warning)&&(this.useColors?console.warn(`\x1B[93m[${Ws()}]\x1B[0m`,e,...t):console.warn(`[${Ws()}]`,e,...t))}error(e,...t){this.canLog(j.Error)&&(this.useColors?console.error(`\x1B[91m[${Ws()}]\x1B[0m`,e,...t):console.error(`[${Ws()}]`,e,...t))}flush(){}}}});import{createReadStream as c$,promises as jl}from"fs";import*as l$ from"path";import*as u$ from"url";import*as py from"cookie";import*as h$ from"crypto";async function Ti(e,t,i,s){t.writeHead(i,{"Content-Type":"text/plain"}),t.end(s)}async function lI(e,t,i,s,r,n){try{const o=await jl.stat(e);if(t===1){const a=`W/"${[o.ino,o.size,o.mtime.getTime()].join("-")}"`;if(s.headers["if-none-match"]===a)return r.writeHead(304),void r.end();n.Etag=a}else t===2?n["Cache-Control"]="public, max-age=31536000":t===0&&(n["Cache-Control"]="no-store");n["Content-Type"]=uI[gn(e)]||rF(e)||"text/plain",r.writeHead(200,n),c$(e).pipe(r)}catch(o){return o.code!=="ENOENT"?(i.error(o),console.error(o.toString())):console.error(`File not found: ${e}`),r.writeHead(404,{"Content-Type":"text/plain"}),void r.end("Not found")}}var uI,hI,hp,Bl,my,zl,dp,d$=y({"out-build/vs/server/node/webClientServer.js"(){"use strict";er(),Pd(),K(),Ie(),Go(),de(),xe(),Bt(),mi(),ko(),Ft(),Y(),Fe(),_e(),eI(),uI={".html":"text/html",".js":"text/javascript",".json":"application/json",".css":"text/css",".svg":"image/svg+xml"},(function(e){e[e.NO_CACHING=0]="NO_CACHING",e[e.ETAG=1]="ETAG",e[e.NO_EXPIRY=2]="NO_EXPIRY"})(hI||(hI={})),hp=Vt(Ct.asFileUri("").fsPath),Bl="/static",my="/callback",zl="/web-extension-resource",dp=class{constructor(t,i,s,r,n,o,a,c){this._connectionToken=t,this._basePath=i,this._productPath=s,this._environmentService=r,this._logService=n,this._requestService=o,this._productService=a,this._cssDevService=c,this._webExtensionResourceUrlTemplate=this._productService.extensionsGallery?.resourceUrlTemplate?b.parse(this._productService.extensionsGallery.resourceUrlTemplate):void 0}async handle(t,i,s,r){try{return r.startsWith(Bl)&&r.charCodeAt(Bl.length)===47?this._handleStatic(t,i,r.substring(Bl.length)):r==="/"?this._handleRoot(t,i,s):r===my?this._handleCallback(i):r.startsWith(zl)&&r.charCodeAt(zl.length)===47?this._handleWebExtensionResource(t,i,r.substring(zl.length)):Ti(t,i,404,"Not found.")}catch(n){return this._logService.error(n),console.error(n.toString()),Ti(t,i,500,"Internal Server Error.")}}async _handleStatic(t,i,s){const r=Object.create(null),n=decodeURIComponent(s),o=W(hp,n);return Ar(o,hp,!nt)?lI(o,this._environmentService.isBuilt?2:1,this._logService,t,i,r):Ti(t,i,400,"Bad request.")}_getResourceURLTemplateAuthority(t){const i=t.authority.indexOf(".");return i!==-1?t.authority.substring(i+1):void 0}async _handleWebExtensionResource(t,i,s){if(!this._webExtensionResourceUrlTemplate)return Ti(t,i,500,"No extension gallery service configured.");const r=decodeURIComponent(s),n=Wi(r),o=b.parse(n).with({scheme:this._webExtensionResourceUrlTemplate.scheme,authority:n.substring(0,n.indexOf("/")),path:n.substring(n.indexOf("/")+1)});if(this._getResourceURLTemplateAuthority(this._webExtensionResourceUrlTemplate)!==this._getResourceURLTemplateAuthority(o))return Ti(t,i,403,"Request Forbidden");const a={},c=g=>{const v=t.headers[g];v&&(ye(v)||v[0])?a[g]=ye(v)?v:v[0]:g!==g.toLowerCase()&&c(g.toLowerCase())};c("X-Client-Name"),c("X-Client-Version"),c("X-Machine-Id"),c("X-Client-Commit");const l=await this._requestService.request({type:"GET",url:o.toString(!0),headers:a},Me.None),u=l.res.statusCode||500;if(u!==200){let g=null;try{g=await Pn(l)}catch{}return Ti(t,i,u,g||`Request failed with status ${u}`)}const h=Object.create(null),f=g=>{const v=l.res.headers[g];v?h[g]=v:g!==g.toLowerCase()&&f(g.toLowerCase())};f("Cache-Control"),f("Content-Type"),i.writeHead(200,h);const p=await Zs(l.stream);return void i.end(p.buffer)}async _handleRoot(t,i,s){const r=C=>{const L=t.headers[C];return Array.isArray(L)?L[0]:L},n=r("x-forwarded-prefix")||this._basePath,o=s.query[no];if(typeof o=="string"){const C=Object.create(null);C["Set-Cookie"]=py.serialize(Pu,o,{sameSite:"lax",maxAge:3600*24*7});const L=Object.create(null);for(const M in s.query)M!==no&&(L[M]=s.query[M]);const F=u$.format({pathname:n,query:L});return C.Location=F,i.writeHead(302,C),void i.end()}const a=(C,L)=>{const F=C?.indexOf(":");return F!==-1&&(C=C?.substring(0,F)),C+=`:${L}`,C},c=!this._environmentService.isBuilt&&this._environmentService.args["use-test-resolver"];let l=c?"test+test":r("x-original-host")||r("x-forwarded-host")||t.headers.host;if(!l)return Ti(t,i,400,"Bad request.");const u=r("x-forwarded-port");u&&(l=a(l,u));function h(C){return JSON.stringify(C).replace(/"/g,""")}let f;this._environmentService.args["enable-smoke-test-driver"]&&(f=!1),this._logService.getLevel()===j.Trace&&(["x-original-host","x-forwarded-host","x-forwarded-port","host"].forEach(C=>{const L=r(C);L&&this._logService.trace(`[WebClientServer] ${C}: ${L}`)}),this._logService.trace(`[WebClientServer] Request URL: ${t.url}, basePath: ${n}, remoteAuthority: ${l}`));const p=Ee.join(n,this._productPath,Bl),g=Ee.join(n,this._productPath,my),v=Ee.join(n,this._productPath,zl),w=C=>C&&b.file(l$.resolve(C)).with({scheme:Z.vscodeRemote,authority:l}),S=Ct.asFileUri(`vs/code/browser/workbench/workbench${this._environmentService.isBuilt?"":"-dev"}.html`).fsPath,E=!this._environmentService.isBuilt&&this._environmentService.args["github-auth"]?{id:Ve(),providerId:"github",accessToken:this._environmentService.args["github-auth"],scopes:[["user:email"],["repo"]]}:void 0,P={embedderIdentifier:"server-distro",extensionsGallery:this._webExtensionResourceUrlTemplate&&this._productService.extensionsGallery?{...this._productService.extensionsGallery,resourceUrlTemplate:this._webExtensionResourceUrlTemplate.with({scheme:"http",authority:l,path:`${v}/${this._webExtensionResourceUrlTemplate.authority}${this._webExtensionResourceUrlTemplate.path}`}).toString(!0)}:void 0};if(!this._environmentService.isBuilt)try{const C=JSON.parse((await jl.readFile(W(hp,"product.overrides.json"))).toString());Object.assign(P,C)}catch{}const A={remoteAuthority:l,serverBasePath:n,_wrapWebWorkerExtHostInIframe:f,developmentOptions:{enableSmokeTestDriver:this._environmentService.args["enable-smoke-test-driver"]?!0:void 0,logLevel:this._logService.getLevel()},settingsSyncOptions:!this._environmentService.isBuilt&&this._environmentService.args["enable-sync"]?{enabled:!0}:void 0,enableWorkspaceTrust:!this._environmentService.args["disable-workspace-trust"],folderUri:w(this._environmentService.args["default-folder"]),workspaceUri:w(this._environmentService.args["default-workspace"]),productConfiguration:P,callbackRoute:g},T=py.parse(t.headers.cookie||"")["vscode.nls.locale"]||t.headers["accept-language"]?.split(",")[0]?.toLowerCase()||"en";let $,ne;!T.startsWith("en")&&this._productService.nlsCoreBaseUrl?($=this._productService.nlsCoreBaseUrl,ne=`${$}${this._productService.commit}/${this._productService.version}/${T}/nls.messages.js`):ne="";const N={WORKBENCH_WEB_CONFIGURATION:h(A),WORKBENCH_AUTH_SESSION:E?h(E):"",WORKBENCH_WEB_BASE_URL:p,WORKBENCH_NLS_URL:ne,WORKBENCH_NLS_FALLBACK_URL:`${p}/out/nls.messages.js`};if(this._cssDevService.isEnabled){const C=await this._cssDevService.getCssModules();N.WORKBENCH_DEV_CSS_MODULES=JSON.stringify(Object.fromEntries(C))}if(c){const C=[];for(const L of["vscode-test-resolver","github-authentication"]){const F=JSON.parse((await jl.readFile(Ct.asFileUri(`${L_}/${L}/package.json`).fsPath)).toString());C.push({extensionPath:L,packageJSON:F})}N.WORKBENCH_BUILTIN_EXTENSIONS=h(C)}let pe;try{pe=(await jl.readFile(S)).toString().replace(/\{\{([^}]+)\}\}/g,(L,F)=>N[F]??"undefined")}catch{return i.writeHead(404,{"Content-Type":"text/plain"}),void i.end("Not found")}const Ge={"Content-Type":"text/html","Content-Security-Policy":["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'self';",`script-src 'self' 'unsafe-eval' ${$??""} blob: 'nonce-1nline-m4p' ${this._getScriptCspHashes(pe).join(" ")} 'sha256-2Q+j4hfT09+1+imS46J2YlkCtHWQt0/BE79PXjJ0ZJ8=' 'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' ${c?"":`http://${l}`};`,"child-src 'self';","frame-src 'self' https://*.vscode-cdn.net data:;","worker-src 'self' data: blob:;","style-src 'self' 'unsafe-inline';","connect-src 'self' ws: wss: https:;","font-src 'self' blob:;","manifest-src 'self';"].join(" ")};return this._connectionToken.type!==0&&(Ge["Set-Cookie"]=py.serialize(Pu,this._connectionToken.value,{sameSite:"lax",maxAge:3600*24*7})),i.writeHead(200,Ge),void i.end(pe)}_getScriptCspHashes(t){const i=/<script>([\s\S]+?)<\/script>/img,s=[];let r;for(;r=i.exec(t);){const n=h$.createHash("sha256"),o=r[1].replace(/\r\n/g,`
`),a=n.update(Buffer.from(o)).digest().toString("base64");s.push(`'sha256-${a}'`)}return s}async _handleCallback(t){const i=Ct.asFileUri("vs/code/browser/workbench/callback.html").fsPath,s=(await jl.readFile(i)).toString(),r=["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'none';",`script-src 'self' ${this._getScriptCspHashes(s).join(" ")};`,"style-src 'self' 'unsafe-inline';","font-src 'self' blob:;"].join(" ");return t.writeHead(200,{"Content-Type":"text/html","Content-Security-Policy":r}),void t.end(s)}},dp=__decorate([__param(3,Kc),__param(4,fe),__param(5,ar),__param(6,Et),__param(7,ly)],dp)}});import*as f$ from"crypto";import*as fp from"fs";import*as p$ from"net";import{performance as m$}from"perf_hooks";import*as dI from"url";import{createRequire as g$}from"node:module";async function v$(e,t,i){const s=await jT(t);s instanceof Tn&&(console.warn(s.message),process.exit(1));function r(E){qy(P=>{Gy(P)&&P.stack&&/unexpectedErrorHandler/.test(P.stack)||E(P)})}const n=[];r(E=>{n.push(E),console.error(E)});let o=!1;process.on("SIGPIPE",()=>{o||(o=!0,Qt(new Error("Unexpected SIGPIPE")))});const a=new ct,{socketServer:c,instantiationService:l}=await n$(s,t,i,a);l.invokeFunction(E=>{const P=E.get(fe);n.forEach(A=>P.error(A)),n.length=0,r(A=>P.error(A))}),l.invokeFunction(E=>{const P=E.get(Zt);he&&(P.getValue("security.restrictUNCAccess")===!1?Ix():x1(P.getValue("security.allowedUNCHosts")))}),l.invokeFunction(E=>{const P=E.get(fe);if(he&&process.env.HOMEDRIVE&&process.env.HOMEPATH){const A=W(process.env.HOMEDRIVE,"node_modules"),D=Vt(W(process.env.HOMEDRIVE,process.env.HOMEPATH)),T=W(D,"node_modules");if(fp.existsSync(A)||fp.existsSync(T)){const $=`
*
* !!!! Server terminated due to presence of CVE-2020-1416 !!!!
*
* Please remove the following directories and re-try
* ${A}
* ${T}
*
* For more information on the vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-1416
*
`;P.warn($),console.warn($),process.exit(0)}}});const u=l.invokeFunction(E=>{const P=E.get(fe);if(fp.existsSync(W(Ct.asFileUri("").fsPath,"../node_modules/vsda")))try{return fI("vsda")}catch(D){P.error(D)}return null});let h=t["server-base-path"];h&&!h.startsWith("/")&&(h=`/${h}`);const f=fp.existsSync(Ct.asFileUri("vs/code/browser/workbench/workbench.html").fsPath);if(f&&e&&typeof e!="string"){const E=s.type!==0?`?${no}=${s.value}`:"";console.log(`Web UI available at http://localhost${e.port===80?"":`:${e.port}`}${h??""}${E}`)}const p=l.createInstance(pp,c,s,u,f,h);St("code/server/ready");const g=m$.now(),v=global.vscodeServerStartTime,w=global.vscodeServerListenTime,S=global.vscodeServerCodeLoadedTime;if(l.invokeFunction(async E=>{const P=E.get(fi);if(P.publicLog2("serverStart",{startTime:v,startedTime:w,codeLoadedTime:S,readyTime:g}),nt){const A=E.get(fe),D=await ST(A.error.bind(A));D&&P.publicLog2("serverPlatformInfo",{platformId:D.id,platformVersionId:D.version_id,platformIdLike:D.id_like})}}),t["print-startup-performance"]){let E="";E+=`Start-up time: ${w-v}
`,E+=`Code loading time: ${S-v}
`,E+=`Initialized time: ${g-v}
`,E+=`
`,console.log(E)}return p}var fI,ql,pp,pI,y$=y({"out-build/vs/server/node/remoteExtensionHostAgentServer.js"(){"use strict";Fe(),ve(),er(),V(),xe(),de(),qs(),K(),lt(),Y(),Bt(),xT(),IT(),Cx(),Bx(),ud(),ci(),se(),Ie(),mi(),ji(),n6(),WT(),zT(),Go(),a$(),d$(),nI(),fI=g$(import.meta.url),ql=300*1e3,process.env.VSCODE_SERVER_SHUTDOWN_TIMEOUT&&(ql=parseInt(process.env.VSCODE_SERVER_SHUTDOWN_TIMEOUT,10)*1e3,isNaN(ql)&&(console.error(`Invalid VSCODE_SERVER_SHUTDOWN_TIMEOUT: ${process.env.VSCODE_SERVER_SHUTDOWN_TIMEOUT}`),ql=300*1e3)),pp=class extends G{constructor(t,i,s,r,n,o,a,c,l,u){super(),this._socketServer=t,this._connectionToken=i,this._vsdaMod=s,this._environmentService=o,this._productService=a,this._logService=c,this._instantiationService=l,this._remotePerformanceTelemetryService=u,this._webEndpointOriginChecker=pI.create(this._productService),n!==void 0&&n.charCodeAt(n.length-1)===47&&(n=n.substring(0,n.length-1)),this._serverBasePath=n,this._serverProductPath=`/${C_(a)}`,this._extHostConnections=Object.create(null),this._managementConnections=Object.create(null),this._allReconnectionTokens=new Set,this._webClientServer=r?this._instantiationService.createInstance(dp,this._connectionToken,n??"/",this._serverProductPath):null,this._logService.info("Extension host agent started."),this._waitThenShutdown(!0)}async handleRequest(t,i){if(t.method!=="GET")return Ti(t,i,405,`Unsupported method ${t.method}`);if(!t.url)return Ti(t,i,400,"Bad request.");const s=dI.parse(t.url,!0);let r=s.pathname;if(!r)return Ti(t,i,400,"Bad request.");if(this._serverBasePath!==void 0&&r.startsWith(this._serverBasePath)&&(r=r.substring(this._serverBasePath.length)||"/"),r.startsWith(this._serverProductPath)&&r.charCodeAt(this._serverProductPath.length)===47&&(r=r.substring(this._serverProductPath.length)),r==="/version")return i.writeHead(200,{"Content-Type":"text/plain"}),void i.end(this._productService.commit||"");if(r==="/delay-shutdown")return this._delayShutdown(),i.writeHead(200),void i.end("OK");if(!BT(this._connectionToken,t,s))return Ti(t,i,403,"Forbidden.");if(r==="/vscode-remote-resource"){const n=s.query.path;if(typeof n!="string")return Ti(t,i,400,"Bad request.");let o;try{o=b.from({scheme:Z.file,path:n}).fsPath}catch{return Ti(t,i,400,"Bad request.")}const a=Object.create(null);this._environmentService.isBuilt&&(Ar(o,this._environmentService.builtinExtensionsPath,!nt)||Ar(o,this._environmentService.extensionsPath,!nt))&&(a["Cache-Control"]="public, max-age=31536000"),a.Vary="Origin";const c=t.headers.origin;return c&&this._webEndpointOriginChecker.matches(c)&&(a["Access-Control-Allow-Origin"]=c),lI(o,1,this._logService,t,i,a)}if(this._webClientServer){this._webClientServer.handle(t,i,s,r);return}return i.writeHead(404,{"Content-Type":"text/plain"}),void i.end("Not found")}handleUpgrade(t,i){let s=Ve(),r=!1,n=!1;if(t.url){const h=dI.parse(t.url,!0).query;typeof h.reconnectionToken=="string"&&(s=h.reconnectionToken),h.reconnection==="true"&&(r=!0),h.skipWebSocketFrames==="true"&&(n=!0)}if(t.headers.upgrade===void 0||t.headers.upgrade.toLowerCase()!=="websocket"){i.end("HTTP/1.1 400 Bad Request");return}const o=t.headers["sec-websocket-key"],a=f$.createHash("sha1");a.update(o+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");const l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${a.digest("base64")}`];let u=!1;if(!n&&!this._environmentService.args["disable-websocket-compression"]&&t.headers["sec-websocket-extensions"]){const h=Array.isArray(t.headers["sec-websocket-extensions"])?t.headers["sec-websocket-extensions"]:[t.headers["sec-websocket-extensions"]];for(const f of h)if(!/\b((server_max_window_bits)|(server_no_context_takeover)|(client_no_context_takeover))\b/.test(f)){if(/\b(permessage-deflate)\b/.test(f)){u=!0,l.push("Sec-WebSocket-Extensions: permessage-deflate");break}if(/\b(x-webkit-deflate-frame)\b/.test(f)){u=!0,l.push("Sec-WebSocket-Extensions: x-webkit-deflate-frame");break}}}i.write(l.join(`\r
`)+`\r
\r
`),i.setTimeout(0),i.setNoDelay(!0),n?this._handleWebSocketConnection(new Zo(i,`server-connection-${s}`),r,s):this._handleWebSocketConnection(new Qx(new Zo(i,`server-connection-${s}`),u,null,!0),r,s)}handleServerError(t){this._logService.error("Error occurred in server"),this._logService.error(t)}_getRemoteAddress(t){let i;return t instanceof Zo?i=t.socket:i=t.socket.socket,i.remoteAddress||"<unknown>"}async _rejectWebSocketConnection(t,i,s){const r=i.getSocket();this._logService.error(`${t} ${s}.`);const n={type:"error",reason:s};i.sendControl(O.fromString(JSON.stringify(n))),i.dispose(),await r.drain(),r.dispose()}_handleWebSocketConnection(t,i,s){const r=this._getRemoteAddress(t),n=`[${r}][${s.substr(0,8)}]`,o=new jx({socket:t}),a=this._vsdaMod?new this._vsdaMod.validator:null,c=this._vsdaMod?new this._vsdaMod.signer:null;let l;(function(p){p[p.WaitingForAuth=0]="WaitingForAuth",p[p.WaitingForConnectionType=1]="WaitingForConnectionType",p[p.Done=2]="Done",p[p.Error=3]="Error"})(l||(l={}));let u=0;const h=p=>{u=3,f.dispose(),this._rejectWebSocketConnection(n,o,p)},f=o.onControlMessage(p=>{if(u===0){let g;try{g=JSON.parse(p.toString())}catch{return h("Malformed first message")}if(g.type!=="auth")return h("Invalid first message");if(this._connectionToken.type===2&&!this._connectionToken.validate(g.auth))return h("Unauthorized client refused: auth mismatch");let v=Ve();if(c)try{v=c.sign(g.data)}catch{}let w=Ve();if(a)try{w=a.createNewMessage(w)}catch{}const S={type:"sign",data:w,signedData:v};o.sendControl(O.fromString(JSON.stringify(S))),u=1}else if(u===1){let g;try{g=JSON.parse(p.toString())}catch{return h("Malformed second message")}if(g.type!=="connectionType")return h("Invalid second message");if(typeof g.signedData!="string")return h("Invalid second message field type");const v=g.commit,w=this._productService.commit;if(v&&w&&v!==w)return h(`Client refused: version mismatch: renderer: ${v} !== server: ${w}`);let S=!1;if(!a)S=!0;else if(this._connectionToken.validate(g.signedData))S=!0;else try{S=a.validate(g.signedData)==="ok"}catch{}if(!S){if(this._environmentService.isBuilt)return h("Unauthorized client refused");this._logService.error(`${n} Unauthorized client handshake failed but we proceed because of dev mode.`)}for(const E in this._managementConnections)this._managementConnections[E].shortenReconnectionGraceTimeIfNecessary();for(const E in this._extHostConnections)this._extHostConnections[E].shortenReconnectionGraceTimeIfNecessary();u=2,f.dispose(),this._handleConnectionType(r,n,o,t,i,s,g)}})}async _handleConnectionType(t,i,s,r,n,o,a){const c=a.desiredConnectionType===1?`${i}[ManagementConnection]`:a.desiredConnectionType===2?`${i}[ExtensionHostConnection]`:i;if(a.desiredConnectionType===1)if(n){if(!this._managementConnections[o])return this._allReconnectionTokens.has(o)?this._rejectWebSocketConnection(c,s,"Unknown reconnection token (seen before)"):this._rejectWebSocketConnection(c,s,"Unknown reconnection token (never seen)");s.sendControl(O.fromString(JSON.stringify({type:"ok"})));const l=s.readEntireBuffer();s.dispose(),this._managementConnections[o].acceptReconnection(t,r,l)}else{if(this._managementConnections[o])return this._rejectWebSocketConnection(c,s,"Duplicate reconnection token");s.sendControl(O.fromString(JSON.stringify({type:"ok"})));const l=new o6(this._logService,o,t,s);this._socketServer.acceptConnection(l.protocol,l.onClose),this._managementConnections[o]=l,this._allReconnectionTokens.add(o),l.onClose(()=>{delete this._managementConnections[o]})}else if(a.desiredConnectionType===2){const l=a.args||{language:"en"},u=await this._updateWithFreeDebugPort(l);if(u.port&&this._logService.trace(`${c} - startParams debug port ${u.port}`),this._logService.trace(`${c} - startParams language: ${u.language}`),this._logService.trace(`${c} - startParams env: ${JSON.stringify(u.env)}`),n){if(!this._extHostConnections[o])return this._allReconnectionTokens.has(o)?this._rejectWebSocketConnection(c,s,"Unknown reconnection token (seen before)"):this._rejectWebSocketConnection(c,s,"Unknown reconnection token (never seen)");s.sendPause(),s.sendControl(O.fromString(JSON.stringify(u.port?{debugPort:u.port}:{})));const h=s.readEntireBuffer();s.dispose(),this._extHostConnections[o].acceptReconnection(t,r,h)}else{if(this._extHostConnections[o])return this._rejectWebSocketConnection(c,s,"Duplicate reconnection token");s.sendPause(),s.sendControl(O.fromString(JSON.stringify(u.port?{debugPort:u.port}:{})));const h=s.readEntireBuffer();s.dispose();const f=this._instantiationService.createInstance(hd,o,t,r,h);this._extHostConnections[o]=f,this._allReconnectionTokens.add(o);let p,g=!1;f.onClose(()=>{g=!0,f.dispose(),delete this._extHostConnections[o],this._onDidCloseExtHostConnection(),p&&this._remotePerformanceTelemetryService.unregisterProcess(p)}),f.start(u).then(v=>{v&&(p=v.toString(),g||this._remotePerformanceTelemetryService.registerProcess("reh",p))})}}else if(a.desiredConnectionType===3){const l=a.args;this._createTunnel(s,l)}else return this._rejectWebSocketConnection(c,s,"Unknown initial data received")}async _createTunnel(t,i){const s=t.getSocket().socket,r=t.readEntireBuffer();t.dispose(),s.pause();const n=await this._connectTunnelSocket(i.host,i.port);r.byteLength>0&&n.write(r.buffer),n.on("end",()=>s.end()),n.on("close",()=>s.end()),n.on("error",()=>s.destroy()),s.on("end",()=>n.end()),s.on("close",()=>n.end()),s.on("error",()=>n.destroy()),n.pipe(s),s.pipe(n)}_connectTunnelSocket(t,i){return new Promise((s,r)=>{const n=p$.createConnection({host:t,port:i,autoSelectFamily:!0},()=>{n.removeListener("error",r),n.pause(),s(n)});n.once("error",r)})}_updateWithFreeDebugPort(t){return typeof t.port=="number"?PT(t.port,10,5e3).then(i=>(t.port=i,t)):(t.debugId=void 0,t.port=void 0,t.break=void 0,Promise.resolve(t))}async _onDidCloseExtHostConnection(){if(!this._environmentService.args["enable-remote-auto-shutdown"])return;this._cancelShutdown(),!!Object.keys(this._extHostConnections).length||(console.log("Last EH closed, waiting before shutting down"),this._logService.info("Last EH closed, waiting before shutting down"),this._waitThenShutdown())}_waitThenShutdown(t=!1){this._environmentService.args["enable-remote-auto-shutdown"]&&(this._environmentService.args["remote-auto-shutdown-without-delay"]&&!t?this._shutdown():this.shutdownTimer=setTimeout(()=>{this.shutdownTimer=void 0,this._shutdown()},ql))}_shutdown(){if(!!Object.keys(this._extHostConnections).length){console.log("New EH opened, aborting shutdown"),this._logService.info("New EH opened, aborting shutdown");return}else console.log("Last EH closed, shutting down"),this._logService.info("Last EH closed, shutting down"),this.dispose(),process.exit(0)}_delayShutdown(){this.shutdownTimer&&(console.log("Got delay-shutdown request while in shutdown timeout, delaying"),this._logService.info("Got delay-shutdown request while in shutdown timeout, delaying"),this._cancelShutdown(),this._waitThenShutdown())}_cancelShutdown(){this.shutdownTimer&&(console.log("Cancelling previous shutdown timeout"),this._logService.info("Cancelling previous shutdown timeout"),clearTimeout(this.shutdownTimer),this.shutdownTimer=void 0)}},pp=__decorate([__param(5,Kc),__param(6,Et),__param(7,fe),__param(8,wn),__param(9,dy)],pp),pI=class Cp{static create(t){const i=t.webEndpointUrlTemplate,s=t.commit,r=t.quality;if(!i||!s||!r)return new Cp(null);const n=Ve(),a=new URL(i.replace("{{uuid}}",n).replace("{{commit}}",s).replace("{{quality}}",r)).origin,c=Dr(a).replace(n,"[a-zA-Z0-9\\-]+");try{const l=nD(`^${c}$`,!0,{matchCase:!1});return new Cp(l)}catch{return new Cp(null)}}constructor(t){this._originRegExp=t}matches(t){return this._originRegExp?this._originRegExp.test(t):!1}}}}),mI={};xC(mI,{createServer:()=>E$,spawnCli:()=>b$});import*as w$ from"os";import*as gI from"fs";import{performance as _$}from"perf_hooks";function b$(){yT(Er,xa,m1)}function E$(e){return v$(e,Er,xa)}var vI,Er,xa,Gl,mp,yI,wI,_I,bI,EI,S$=y({"out-build/vs/server/node/server.main.js"(){"use strict";xe(),wT(),y$(),th(),de(),Go(),Oo(),qs(),St("code/server/codeLoaded"),global.vscodeServerCodeLoadedTime=_$.now(),vI={onMultipleValues:(e,t)=>{console.error(`Option '${e}' can only be defined once. Using value ${t}.`)},onEmptyValue:e=>{console.error(`Ignoring option '${e}': Value must not be empty.`)},onUnknownOption:e=>{console.error(`Ignoring option '${e}': not supported for server.`)},onDeprecatedOption:(e,t)=>{console.warn(`Option '${e}' is deprecated: ${t}`)}},Er=NE(process.argv.slice(2),m1,vI),xa=Er["server-data-dir"]||process.env.VSCODE_AGENT_FOLDER||W(w$.homedir(),Rt.serverDataFolderName||".vscode-remote"),Gl=W(xa,"data"),mp=W(Gl,"User"),yI=W(mp,"globalStorage"),wI=W(mp,"History"),_I=W(Gl,"Machine"),Er["user-data-dir"]=Gl,bI=Vt(Ct.asFileUri("").fsPath),EI=W(bI,"extensions"),Er["builtin-extensions-dir"]=EI,Er["extensions-dir"]=Er["extensions-dir"]||W(xa,"extensions"),[xa,Er["extensions-dir"],Gl,mp,_I,yI,wI].forEach(e=>{try{gI.existsSync(e)||gI.mkdirSync(e,{mode:448})}catch(t){console.error(t)}})}});delete process.env.ELECTRON_RUN_AS_NODE;var x$=Hy(Vy(),1);import*as SI from"path";import*as xI from"http";import*as k$ from"os";import*as P$ from"readline";import{performance as kI}from"perf_hooks";import{fileURLToPath as I$}from"url";import*as Qn from"path";import"fs";import{fileURLToPath as C$}from"url";import{createRequire as D$}from"node:module";var PI=D$(import.meta.url),R$=Qn.dirname(C$(import.meta.url)),L$=process.platform==="win32";if(Error.stackTraceLimit=100,!process.env.VSCODE_HANDLES_SIGPIPE){let e=!1;process.on("SIGPIPE",()=>{e||(e=!0,console.error(new Error("Unexpected SIGPIPE")))})}function A$(){try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(Qn.dirname(process.execPath))}catch(e){console.error(e)}}A$();function N$(e){if(!process.env.VSCODE_DEV)return;PI("node:module").register("./bootstrap-import.js",{parentURL:import.meta.url,data:{injectPath:e,dirname:R$}})}function O$(){if(typeof process?.versions?.electron=="string")return;const e=PI("module"),t=e.globalPaths,i=e._resolveLookupPaths;e._resolveLookupPaths=function(r,n){const o=i(r,n);if(Array.isArray(o)){let a=0;for(;a<o.length&&o[o.length-1-a]===t[t.length-1-a];)a++;return o.slice(0,o.length-a)}return o};const s=e._nodeModulePaths;e._nodeModulePaths=function(r){let n=s(r);if(!L$)return n;const o=a=>a.length>=3&&a.endsWith(":\\");if(o(r)||(n=n.filter(a=>!o(Qn.dirname(a)))),process.env.HOMEDRIVE&&process.env.HOMEPATH){const a=Qn.dirname(Qn.join(process.env.HOMEDRIVE,process.env.HOMEPATH)),c=l=>Qn.relative(l,a).length===0;c(r)||(n=n.filter(l=>!c(Qn.dirname(l))))}return n}}import*as T$ from"path";import*as gy from"fs";import{fileURLToPath as M$}from"url";import{createRequire as F$,register as U$}from"node:module";import{createRequire as $$}from"node:module";var vy=$$(import.meta.url),ka={BUILD_INSERT_PRODUCT_CONFIGURATION:"BUILD_INSERT_PRODUCT_CONFIGURATION"};ka.BUILD_INSERT_PRODUCT_CONFIGURATION&&(ka=vy("../product.json"));var yy={"name":"Cursor","version":"1.6.35","private":true,"overrides":{"node-gyp-build":"4.8.1","import-in-the-middle":"1.13.1","kerberos@2.1.1":{"node-addon-api":"7.1.0"}},"type":"module"};yy.BUILD_INSERT_PACKAGE_CONFIGURATION&&(yy=vy("../package.json"));var Hs=ka,W$=yy;if(!("commit"in ka)||ka.commit===void 0)try{const{execSync:e}=vy("child_process"),t=process.cwd(),i=e("git rev-parse HEAD",{cwd:t,encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim();i&&(ka.devCommit=i)}catch{}qs();var H$=F$(import.meta.url),V$=T$.dirname(M$(import.meta.url));if((process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&U$(`data:text/javascript;base64,${Buffer.from(`
export async function resolve(specifier, context, nextResolve) {
if (specifier === 'fs') {
return {
format: 'builtin',
shortCircuit: true,
url: 'node:original-fs'
};
}
// Defer to the next hook in the chain, which would be the
// Node.js default resolve if this is the last user-specified loader.
return nextResolve(specifier, context);
}`).toString("base64")}`,import.meta.url),globalThis._VSCODE_PRODUCT_JSON={...Hs},process.env.VSCODE_DEV)try{const e=H$("../product.overrides.json");globalThis._VSCODE_PRODUCT_JSON=Object.assign(globalThis._VSCODE_PRODUCT_JSON,e)}catch{}globalThis._VSCODE_PACKAGE_JSON={...W$},globalThis._VSCODE_FILE_ROOT=V$;var wy=void 0;function j$(){return wy||(wy=B$()),wy}async function B$(){St("code/willLoadNls");let e,t;if(process.env.VSCODE_NLS_CONFIG)try{e=JSON.parse(process.env.VSCODE_NLS_CONFIG),e?.languagePack?.messagesFile?t=e.languagePack.messagesFile:e?.defaultMessagesFile&&(t=e.defaultMessagesFile),globalThis._VSCODE_NLS_LANGUAGE=e?.resolvedLanguage}catch(i){console.error(`Error reading VSCODE_NLS_CONFIG from environment: ${i}`)}if(!(process.env.VSCODE_DEV||!t)){try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await gy.promises.readFile(t)).toString())}catch(i){if(console.error(`Error reading NLS messages file ${t}: ${i}`),e?.languagePack?.corruptMarkerFile)try{await gy.promises.writeFile(e.languagePack.corruptMarkerFile,"corrupted")}catch(s){console.error(`Error writing corrupted NLS marker file: ${s}`)}if(e?.defaultMessagesFile&&e.defaultMessagesFile!==t)try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await gy.promises.readFile(e.defaultMessagesFile)).toString())}catch(s){console.error(`Error reading default NLS messages file ${e.defaultMessagesFile}: ${s}`)}}return St("code/didLoadNls"),e}}async function z$(){await j$()}zy(),qs();var II=SI.dirname(I$(import.meta.url));St("code/server/start"),globalThis.vscodeServerStartTime=kI.now();var Ri=(0,x$.default)(process.argv.slice(2),{boolean:["start-server","list-extensions","print-ip-address","help","version","accept-server-license-terms","update-extensions"],string:["install-extension","install-builtin-extension","uninstall-extension","locate-extension","socket-path","host","port","compatibility"],alias:{help:"h",version:"v"}});["host","port","accept-server-license-terms"].forEach(e=>{if(!Ri[e]){const t=process.env[`VSCODE_SERVER_${e.toUpperCase().replace("-","_")}`];t&&(Ri[e]=t)}});var q$=["list-extensions","locate-extension"],G$=["install-extension","install-builtin-extension","uninstall-extension","update-extensions"],Q$=Ri.help||Ri.version||q$.some(e=>!!Ri[e])||G$.some(e=>!!Ri[e])&&!Ri["start-server"],CI=await By({userLocale:"en",osLocale:"en",commit:Hs.commit,userDataPath:"",nlsMetadataPath:II});if(Q$)DI(CI).then(e=>{e.spawnCli()});else{let e=null,t=null;const i=()=>(t||(t=DI(CI).then(async l=>{const u=await l.createServer(n);return e=u,u})),t);if(Array.isArray(Hs.serverLicense)&&Hs.serverLicense.length&&(console.log(Hs.serverLicense.join(`
`)),Hs.serverLicensePrompt&&Ri["accept-server-license-terms"]!==!0)){Z$()&&(console.log("To accept the license terms, start the server with --accept-server-license-terms"),process.exit(1));try{await RI(Hs.serverLicensePrompt)||process.exit(1)}catch(l){console.log(l),process.exit(1)}}let s=!0,r=!0,n=null;const o=xI.createServer(async(l,u)=>(s&&(s=!1,St("code/server/firstRequest")),(await i()).handleRequest(l,u)));o.on("upgrade",async(l,u)=>(r&&(r=!1,St("code/server/firstWebSocket")),(await i()).handleUpgrade(l,u))),o.on("error",async l=>(await i()).handleServerError(l));const a=_y(Ri.host)||(Ri.compatibility!=="1.63"?"localhost":void 0),c=Ri["socket-path"]?{path:_y(Ri["socket-path"])}:{host:a,port:await J$(a,_y(Ri.port))};o.listen(c,async()=>{let l=Array.isArray(Hs.serverGreeting)&&Hs.serverGreeting.length?`
${Hs.serverGreeting.join(`
`)}
`:"";if(typeof c.port=="number"&&Ri["print-ip-address"]){const u=k$.networkInterfaces();Object.keys(u).forEach(function(h){u[h]?.forEach(function(f){!f.internal&&f.family==="IPv4"&&(l+=`IP Address: ${f.address}
`)})})}if(n=o.address(),n===null)throw new Error("Unexpected server address");l+=`Server bound to ${typeof n=="string"?n:`${n.address}:${n.port} (${n.family})`}
`,l+=`Extension host agent listening on ${typeof n=="string"?n:n.port}
`,console.log(l),St("code/server/started"),globalThis.vscodeServerListenTime=kI.now(),await i()}),process.on("exit",()=>{o.close(),e&&e.dispose()})}function _y(e){return Array.isArray(e)&&(e=e.pop()),typeof e=="string"?e:void 0}async function J$(e,t){if(t){let i;if(t.match(/^\d+$/))return parseInt(t,10);if(i=X$(t)){const s=await Y$(e,i.start,i.end);if(s!==void 0)return s;console.warn(`--port: Could not find free port in range: ${i.start} - ${i.end} (inclusive).`),process.exit(1)}else console.warn(`--port "${t}" is not a valid number or range. Ranges must be in the form 'from-to' with 'from' an integer larger than 0 and not larger than 'end'.`),process.exit(1)}return 8e3}function X$(e){const t=e.match(/^(\d+)-(\d+)$/);if(t){const i=parseInt(t[1],10),s=parseInt(t[2],10);if(i>0&&i<=s&&s<=65535)return{start:i,end:s}}}async function Y$(e,t,i){const s=r=>new Promise(n=>{const o=xI.createServer();o.listen(r,e,()=>{o.close(),n(!0)}).on("error",()=>{n(!1)})});for(let r=t;r<=i;r++)if(await s(r))return r}async function DI(e){return process.env.VSCODE_NLS_CONFIG=JSON.stringify(e),process.env.VSCODE_HANDLES_SIGPIPE="true",process.env.VSCODE_DEV?(process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH=process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH||SI.join(II,"..","remote","node_modules"),N$(process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH)):delete process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH,O$(),await z$(),Promise.resolve().then(()=>(S$(),mI))}function Z$(){try{return!process.stdin.isTTY}catch{}return!1}function RI(e){const t=P$.createInterface({input:process.stdin,output:process.stdout});return new Promise((i,s)=>{t.question(e+" ",async function(r){t.close();const n=r.toString().trim().toLowerCase();n===""||n==="y"||n==="yes"?i(!0):n==="n"||n==="no"?i(!1):(process.stdout.write(`
Invalid Response. Answer either yes (y, yes) or no (n, no)
`),i(await RI(e)))})})}
//# sourceMappingURL=http://go/sourcemap/sourcemaps/b753cece5c67c47cb5637199a5a5de2b7100c180/core/server-main.js.map