File: //usr/share/code/resources/app/out/main.js
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/var md=function(t,e){return md=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])},md(t,e)};export function __extends(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");md(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}export var __assign=function(){return __assign=Object.assign||function(e){for(var i,s=1,r=arguments.length;s<r;s++){i=arguments[s];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},__assign.apply(this,arguments)};export function __rest(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]]);return i}export function __decorate(t,e,i,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,i):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n}export function __param(t,e){return function(i,s){e(i,s,t)}}export function __esDecorate(t,e,i,s,r,n){function o(b){if(b!==void 0&&typeof b!="function")throw new TypeError("Function expected");return b}for(var a=s.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!e&&t?s.static?t:t.prototype:null,h=e||(l?Object.getOwnPropertyDescriptor(l,s.name):{}),u,f=!1,p=i.length-1;p>=0;p--){var m={};for(var w in s)m[w]=w==="access"?{}:s[w];for(var w in s.access)m.access[w]=s.access[w];m.addInitializer=function(b){if(f)throw new TypeError("Cannot add initializers after decoration has completed");n.push(o(b||null))};var y=(0,i[p])(a==="accessor"?{get:h.get,set:h.set}:h[c],m);if(a==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(u=o(y.get))&&(h.get=u),(u=o(y.set))&&(h.set=u),(u=o(y.init))&&r.unshift(u)}else(u=o(y))&&(a==="field"?r.unshift(u):h[c]=u)}l&&Object.defineProperty(l,s.name,h),f=!0}export function __runInitializers(t,e,i){for(var s=arguments.length>2,r=0;r<e.length;r++)i=s?e[r].call(t,i):e[r].call(t);return s?i:void 0}export function __propKey(t){return typeof t=="symbol"?t:"".concat(t)}export function __setFunctionName(t,e,i){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:i?"".concat(i," ",e):e})}export function __metadata(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}export function __awaiter(t,e,i,s){function r(n){return n instanceof i?n:new i(function(o){o(n)})}return new(i||(i=Promise))(function(n,o){function a(h){try{l(s.next(h))}catch(u){o(u)}}function c(h){try{l(s.throw(h))}catch(u){o(u)}}function l(h){h.done?n(h.value):r(h.value).then(a,c)}l((s=s.apply(t,e||[])).next())})}export function __generator(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,r,n,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(h){return c([l,h])}}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=e.call(t,i)}catch(h){l=[6,h],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(t,e,i,s){s===void 0&&(s=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,s,r)}:function(t,e,i,s){s===void 0&&(s=i),t[s]=e[i]};export function __exportStar(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&__createBinding(e,t,i)}export function __values(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],s=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&s>=t.length&&(t=void 0),{value:t&&t[s++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}export function __read(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var s=i.call(t),r,n=[],o;try{for(;(e===void 0||e-- >0)&&!(r=s.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return n}export function __spread(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(__read(arguments[e]));return t}export function __spreadArrays(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var s=Array(t),r=0,e=0;e<i;e++)for(var n=arguments[e],o=0,a=n.length;o<a;o++,r++)s[r]=n[o];return s}export function __spreadArray(t,e,i){if(i||arguments.length===2)for(var s=0,r=e.length,n;s<r;s++)(n||!(s in e))&&(n||(n=Array.prototype.slice.call(e,0,s)),n[s]=e[s]);return t.concat(n||Array.prototype.slice.call(e))}export function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}export function __asyncGenerator(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(t,e||[]),r,n=[];return r={},a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(p){return function(m){return Promise.resolve(m).then(p,u)}}function a(p,m){s[p]&&(r[p]=function(w){return new Promise(function(y,b){n.push([p,w,y,b])>1||c(p,w)})},m&&(r[p]=m(r[p])))}function c(p,m){try{l(s[p](m))}catch(w){f(n[0][3],w)}}function l(p){p.value instanceof __await?Promise.resolve(p.value.v).then(h,u):f(n[0][2],p)}function h(p){c("next",p)}function u(p){c("throw",p)}function f(p,m){p(m),n.shift(),n.length&&c(n[0][0],n[0][1])}}export function __asyncDelegator(t){var e,i;return e={},s("next"),s("throw",function(r){throw r}),s("return"),e[Symbol.iterator]=function(){return this},e;function s(r,n){e[r]=t[r]?function(o){return(i=!i)?{value:__await(t[r](o)),done:!1}:n?n(o):o}:n}}export function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(n){i[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),r(a,c,o.done,o.value)})}}function r(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}}export function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var P6=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};export function __importStar(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i in t)i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)&&__createBinding(e,t,i);return P6(e,t),e}export function __importDefault(t){return t&&t.__esModule?t:{default:t}}export function __classPrivateFieldGet(t,e,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(t):s?s.value:e.get(t)}export function __classPrivateFieldSet(t,e,i,s,r){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?r.call(t,i):r?r.value=i:e.set(t,i),i}export function __classPrivateFieldIn(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}export function __addDisposableResource(t,e,i){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var s,r;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");s=e[Symbol.asyncDispose]}if(s===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");s=e[Symbol.dispose],i&&(r=s)}if(typeof s!="function")throw new TypeError("Object not disposable.");r&&(s=function(){try{r.call(this)}catch(n){return Promise.reject(n)}}),t.stack.push({value:e,dispose:s,async:i})}else i&&t.stack.push({async:!0});return e}var $6=typeof SuppressedError=="function"?SuppressedError:function(t,e,i){var s=new Error(i);return s.name="SuppressedError",s.error=t,s.suppressed=e,s};export function __disposeResources(t){function e(s){t.error=t.hasError?new $6(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}function i(){for(;t.stack.length;){var s=t.stack.pop();try{var r=s.dispose&&s.dispose.call(s.value);if(s.async)return Promise.resolve(r).then(i,function(n){return e(n),i()})}catch(n){e(n)}}if(t.hasError)throw t.error}return i()}export default{__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};var A6=Object.create,Fm=Object.defineProperty,D6=Object.getOwnPropertyDescriptor,gd=Object.getOwnPropertyNames,I6=Object.getPrototypeOf,C6=Object.prototype.hasOwnProperty,v=(t,e)=>function(){return t&&(e=(0,t[gd(t)[0]])(t=0)),e},R6=(t,e)=>function(){return e||(0,t[gd(t)[0]])((e={exports:{}}).exports,e),e.exports},O6=(t,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of gd(e))!C6.call(t,r)&&r!==i&&Fm(t,r,{get:()=>e[r],enumerable:!(s=D6(e,r))||s.enumerable});return t},Nm=(t,e,i)=>(i=t!=null?A6(I6(t)):{},O6(e||!t||!t.__esModule?Fm(i,"default",{value:t,enumerable:!0}):i,t));function wd(t){const e=[];typeof t=="number"&&e.push("code/timeOrigin",t);function i(r,n){e.push(r,n?.startTime??Date.now())}function s(){const r=[];for(let n=0;n<e.length;n+=2)r.push({name:e[n],startTime:e[n+1]});return r}return{mark:i,getMarks:s}}function L6(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?wd():{mark(t,e){performance.mark(t,e)},getMarks(){let t=performance.timeOrigin;typeof t!="number"&&(t=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const e=[{name:"code/timeOrigin",startTime:Math.round(t)}];for(const i of performance.getEntriesByType("mark"))e.push({name:i.name,startTime:Math.round(t+i.startTime)});return e}};if(typeof process=="object"){const t=performance?.timeOrigin;return wd(t)}else return console.trace("perf-util loaded in UNKNOWN environment"),wd()}function M6(t){return t.MonacoPerformanceMarks||(t.MonacoPerformanceMarks=L6()),t.MonacoPerformanceMarks}var vd,Ne,yd,Ms=v({"out-build/vs/base/common/performance.js"(){"use strict";vd=M6(globalThis),Ne=vd.mark,yd=vd.getMarks}}),Wm=R6({"node_modules/minimist/index.js"(t,e){"use strict";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__"}e.exports=function(n,o){o||(o={});var a={bools:{},strings:{},unknownFn:null};typeof o.unknown=="function"&&(a.unknownFn=o.unknown),typeof o.boolean=="boolean"&&o.boolean?a.allBools=!0:[].concat(o.boolean).filter(Boolean).forEach(function(C){a.bools[C]=!0});var c={};function l(C){return c[C].some(function(ie){return a.bools[ie]})}Object.keys(o.alias||{}).forEach(function(C){c[C]=[].concat(o.alias[C]),c[C].forEach(function(ie){c[ie]=[C].concat(c[C].filter(function(qe){return ie!==qe}))})}),[].concat(o.string).filter(Boolean).forEach(function(C){a.strings[C]=!0,c[C]&&[].concat(c[C]).forEach(function(ie){a.strings[ie]=!0})});var h=o.default||{},u={_:[]};function f(C,ie){return a.allBools&&/^--[^=]+$/.test(ie)||a.strings[C]||a.bools[C]||c[C]}function p(C,ie,qe){for(var ne=C,Ut=0;Ut<ie.length-1;Ut++){var U=ie[Ut];if(r(ne,U))return;ne[U]===void 0&&(ne[U]={}),(ne[U]===Object.prototype||ne[U]===Number.prototype||ne[U]===String.prototype)&&(ne[U]={}),ne[U]===Array.prototype&&(ne[U]=[]),ne=ne[U]}var L=ie[ie.length-1];r(ne,L)||((ne===Object.prototype||ne===Number.prototype||ne===String.prototype)&&(ne={}),ne===Array.prototype&&(ne=[]),ne[L]===void 0||a.bools[L]||typeof ne[L]=="boolean"?ne[L]=qe:Array.isArray(ne[L])?ne[L].push(qe):ne[L]=[ne[L],qe])}function m(C,ie,qe){if(!(qe&&a.unknownFn&&!f(C,qe)&&a.unknownFn(qe)===!1)){var ne=!a.strings[C]&&s(ie)?Number(ie):ie;p(u,C.split("."),ne),(c[C]||[]).forEach(function(Ut){p(u,Ut.split("."),ne)})}}Object.keys(a.bools).forEach(function(C){m(C,h[C]===void 0?!1:h[C])});var w=[];n.indexOf("--")!==-1&&(w=n.slice(n.indexOf("--")+1),n=n.slice(0,n.indexOf("--")));for(var y=0;y<n.length;y++){var b=n[y],E,A;if(/^--.+=/.test(b)){var R=b.match(/^--([^=]+)=([\s\S]*)$/);E=R[1];var W=R[2];a.bools[E]&&(W=W!=="false"),m(E,W,b)}else if(/^--no-.+/.test(b))E=b.match(/^--no-(.+)/)[1],m(E,!1,b);else if(/^--.+/.test(b))E=b.match(/^--(.+)/)[1],A=n[y+1],A!==void 0&&!/^(-|--)[^-]/.test(A)&&!a.bools[E]&&!a.allBools&&(!c[E]||!l(E))?(m(E,A,b),y+=1):/^(true|false)$/.test(A)?(m(E,A==="true",b),y+=1):m(E,a.strings[E]?"":!0,b);else if(/^-[^-]+/.test(b)){for(var se=b.slice(1,-1).split(""),F=!1,H=0;H<se.length;H++){if(A=b.slice(H+2),A==="-"){m(se[H],A,b);continue}if(/[A-Za-z]/.test(se[H])&&A[0]==="="){m(se[H],A.slice(1),b),F=!0;break}if(/[A-Za-z]/.test(se[H])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(A)){m(se[H],A,b),F=!0;break}if(se[H+1]&&se[H+1].match(/\W/)){m(se[H],b.slice(H+2),b),F=!0;break}else m(se[H],a.strings[se[H]]?"":!0,b)}E=b.slice(-1)[0],!F&&E!=="-"&&(n[y+1]&&!/^(-|--)[^-]/.test(n[y+1])&&!a.bools[E]&&(!c[E]||!l(E))?(m(E,n[y+1],b),y+=1):n[y+1]&&/^(true|false)$/.test(n[y+1])?(m(E,n[y+1]==="true",b),y+=1):m(E,a.strings[E]?"":!0,b))}else if((!a.unknownFn||a.unknownFn(b)!==!1)&&u._.push(a.strings._||!s(b)?b:Number(b)),o.stopEarly){u._.push.apply(u._,n.slice(y+1));break}}return Object.keys(h).forEach(function(C){i(u,C.split("."))||(p(u,C.split("."),h[C]),(c[C]||[]).forEach(function(ie){p(u,ie.split("."),h[C])}))}),o["--"]?u["--"]=w.slice():w.forEach(function(C){u._.push(C)}),u}}});function F6(t){return t.replace(Tm,function(e,i,s,r,n,o){if(r)return"";if(n){const a=n.length;return n[a-1]===`
`?n[a-2]==="\r"?`\r
`:`
`:""}else return o?e.substring(1):e})}function _m(t){const e=F6(t);try{return JSON.parse(e)}catch{const s=e.replace(/,\s*([}\]])/g,"$1");return JSON.parse(s)}}var Tm,Bm=v({"out-build/vs/base/common/jsonc.js"(){"use strict";Tm=/("[^"\\]*(?:\\.[^"\\]*)*")|('[^'\\]*(?:\\.[^'\\]*)*')|(\/\*[^\/\*]*(?:(?:\*|\/)[^\/\*]*)*?\*\/)|(\/{2,}.*?(?:(?:\r?\n)|$))|(,\s*[}\]])/g}});import{homedir as Um}from"os";import{resolve as N6,isAbsolute as W6,join as Pn}from"path";function jm(t,e){const i=_6(t,e),s=[i];return W6(i)||s.unshift(zm),N6(...s)}function _6(t,e){process.env.VSCODE_DEV&&(e="code-oss-dev");const i=process.env.VSCODE_PORTABLE;if(i)return Pn(i,"user-data");let s=process.env.VSCODE_APPDATA;if(s)return Pn(s,e);const r=t["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=Pn(n,"AppData","Roaming")}break;case"darwin":s=Pn(Um(),"Library","Application Support");break;case"linux":s=process.env.XDG_CONFIG_HOME||Pn(Um(),".config");break;default:throw new Error("Platform not supported")}return Pn(s,e)}var zm,Hm=v({"out-build/vs/platform/environment/node/userDataPath.js"(){"use strict";zm=process.env.VSCODE_CWD||process.cwd()}});function Vm(){return globalThis._VSCODE_NLS_MESSAGES}function bd(){return globalThis._VSCODE_NLS_LANGUAGE}var qm=v({"out-build/vs/nls.messages.js"(){"use strict"}});function qc(t,e){let i;return e.length===0?i=t:i=t.replace(/\{(\d+)\}/g,(s,r)=>{const n=r[0],o=e[n];let a=s;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),Km&&(i="\uFF3B"+i.replace(/[aouei]/g,"$&$&")+"\uFF3D"),i}function g(t,e,...i){return qc(typeof t=="number"?Gm(t,e):e,i)}function Gm(t,e){const i=Vm()?.[t];if(typeof i!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return i}function Jm(t,e,...i){let s;typeof t=="number"?s=Gm(t,e):s=e;const r=qc(s,i);return{value:r,original:e===s?r:qc(e,i)}}var Km,we=v({"out-build/vs/nls.js"(){"use strict";qm(),qm(),Km=bd()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0}});function Zm(t){switch(t){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}function T6(t){return parseFloat(t)>=20}var Lr,$n,An,Dn,kd,Sd,Gc,Ym,Ed,xd,Qm,To,Bo,Pd,$d,ss,rs,fi,Ad,Xm,e0,Uo,B,N,Se,Dd,Id,Vi,t0,i0,s0,In,qi,Ri,r0,Cd,n0,o0,a0,bi,Rd,c0,l0,h0,B6,G=v({"out-build/vs/base/common/platform.js"(){"use strict";if(we(),Lr="en",$n=!1,An=!1,Dn=!1,kd=!1,Sd=!1,Gc=!1,Ym=!1,Ed=!1,xd=!1,Qm=!1,To=void 0,Bo=Lr,Pd=Lr,$d=void 0,ss=void 0,rs=globalThis,fi=void 0,typeof rs.vscode<"u"&&typeof rs.vscode.process<"u"?fi=rs.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(fi=process),Ad=typeof fi?.versions?.electron=="string",Xm=Ad&&fi?.type==="renderer",typeof fi=="object"){$n=fi.platform==="win32",An=fi.platform==="darwin",Dn=fi.platform==="linux",kd=Dn&&!!fi.env.SNAP&&!!fi.env.SNAP_REVISION,Ym=Ad,xd=!!fi.env.CI||!!fi.env.BUILD_ARTIFACTSTAGINGDIRECTORY,To=Lr,Bo=Lr;const t=fi.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);To=e.userLocale,Pd=e.osLocale,Bo=e.resolvedLanguage||Lr,$d=e.languagePack?.translationsConfigFile}catch{}Sd=!0}else typeof navigator=="object"&&!Xm?(ss=navigator.userAgent,$n=ss.indexOf("Windows")>=0,An=ss.indexOf("Macintosh")>=0,Ed=(ss.indexOf("Macintosh")>=0||ss.indexOf("iPad")>=0||ss.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Dn=ss.indexOf("Linux")>=0,Qm=ss?.indexOf("Mobi")>=0,Gc=!0,Bo=bd()||Lr,To=navigator.language.toLowerCase(),Pd=To):console.error("Unable to resolve platform.");(function(t){t[t.Web=0]="Web",t[t.Mac=1]="Mac",t[t.Linux=2]="Linux",t[t.Windows=3]="Windows"})(e0||(e0={})),Uo=0,An?Uo=1:$n?Uo=3:Dn&&(Uo=2),B=$n,N=An,Se=Dn,Dd=kd,Id=Sd,Vi=Gc,t0=Gc&&typeof rs.importScripts=="function",i0=t0?rs.origin:void 0,s0=xd,In=Uo,qi=ss,Ri=Bo,function(t){function e(){return Ri}t.value=e;function i(){return Ri.length===2?Ri==="en":Ri.length>=3?Ri[0]==="e"&&Ri[1]==="n"&&Ri[2]==="-":!1}t.isDefaultVariant=i;function s(){return Ri==="en"}t.isDefault=s}(r0||(r0={})),Cd=$d,n0=typeof rs.postMessage=="function"&&!rs.importScripts,o0=(()=>{if(n0){const t=[];rs.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let s=0,r=t.length;s<r;s++){const n=t[s];if(n.id===i.data.vscodeScheduleAsyncWork){t.splice(s,1),n.callback();return}}});let e=0;return i=>{const s=++e;t.push({id:s,callback:i}),rs.postMessage({vscodeScheduleAsyncWork:s},"*")}}return t=>setTimeout(t)})(),function(t){t[t.Windows=1]="Windows",t[t.Macintosh=2]="Macintosh",t[t.Linux=3]="Linux"}(a0||(a0={})),bi=An||Ed?2:$n?1:3,Rd=!!(qi&&qi.indexOf("Chrome")>=0),c0=!!(qi&&qi.indexOf("Firefox")>=0),l0=!!(!Rd&&qi&&qi.indexOf("Safari")>=0),h0=!!(qi&&qi.indexOf("Edg/")>=0),B6=!!(qi&&qi.indexOf("Android")>=0)}}),Mr,Jc,Fs,Oi,Od,u0,ns=v({"out-build/vs/base/common/process.js"(){"use strict";if(G(),Jc=globalThis.vscode,typeof Jc<"u"&&typeof Jc.process<"u"){const t=Jc.process;Mr={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Mr={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Mr={get platform(){return B?"win32":N?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};Fs=Mr.cwd,Oi=Mr.env,Od=Mr.platform,u0=Mr.arch}});function U6(t,e){if(t===null||typeof t!="object")throw new Md(e,"Object",t)}function st(t,e){if(typeof t!="string")throw new Md(e,"string",t)}function me(t){return t===bt||t===Jt}function Ld(t){return t===bt}function Ns(t){return t>=f0&&t<=m0||t>=p0&&t<=g0}function Kc(t,e,i,s){let r="",n=0,o=-1,a=0,c=0;for(let l=0;l<=t.length;++l){if(l<t.length)c=t.charCodeAt(l);else{if(s(c))break;c=bt}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 h=r.lastIndexOf(i);h===-1?(r="",n=0):(r=r.slice(0,h),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}}e&&(r+=r.length>0?`${i}..`:"..",n=2)}else r.length>0?r+=`${i}${t.slice(o+1,l)}`:r=t.slice(o+1,l),n=l-o-1;o=l,a=0}else c===rr&&a!==-1?++a:a=-1}return r}function j6(t){return t?`${t[0]==="."?"":"."}${t}`:""}function d0(t,e){U6(e,"pathObject");const i=e.dir||e.root,s=e.base||`${e.name||""}${j6(e.ext)}`;return i?i===e.root?`${i}${s}`:`${i}${t}${s}`:s}var f0,p0,m0,g0,rr,bt,Jt,os,w0,Md,Kt,Ge,v0,ce,Zt,Cn,M,nr,Fd,dt,ze,jo,z6,H6,V6,Ft,Nd,ge=v({"out-build/vs/base/common/path.js"(){"use strict";ns(),f0=65,p0=97,m0=90,g0=122,rr=46,bt=47,Jt=92,os=58,w0=63,Md=class extends Error{constructor(t,e,i){let s;typeof e=="string"&&e.indexOf("not ")===0?(s="must not be",e=e.replace(/^not /,"")):s="must be";const r=t.indexOf(".")!==-1?"property":"argument";let n=`The "${t}" ${r} ${s} of type ${e}`;n+=`. Received type ${typeof i}`,super(n),this.code="ERR_INVALID_ARG_TYPE"}},Kt=Od==="win32",Ge={resolve(...t){let e="",i="",s=!1;for(let r=t.length-1;r>=-1;r--){let n;if(r>=0){if(n=t[r],st(n,`paths[${r}]`),n.length===0)continue}else e.length===0?n=Fs():(n=Oi[`=${e}`]||Fs(),(n===void 0||n.slice(0,2).toLowerCase()!==e.toLowerCase()&&n.charCodeAt(2)===Jt)&&(n=`${e}\\`));const o=n.length;let a=0,c="",l=!1;const h=n.charCodeAt(0);if(o===1)me(h)&&(a=1,l=!0);else if(me(h))if(l=!0,me(n.charCodeAt(1))){let u=2,f=u;for(;u<o&&!me(n.charCodeAt(u));)u++;if(u<o&&u!==f){const p=n.slice(f,u);for(f=u;u<o&&me(n.charCodeAt(u));)u++;if(u<o&&u!==f){for(f=u;u<o&&!me(n.charCodeAt(u));)u++;(u===o||u!==f)&&(c=`\\\\${p}\\${n.slice(f,u)}`,a=u)}}}else a=1;else Ns(h)&&n.charCodeAt(1)===os&&(c=n.slice(0,2),a=2,o>2&&me(n.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(e.length>0){if(c.toLowerCase()!==e.toLowerCase())continue}else e=c;if(s){if(e.length>0)break}else if(i=`${n.slice(a)}\\${i}`,s=l,l&&e.length>0)break}return i=Kc(i,!s,"\\",me),s?`${e}\\${i}`:`${e}${i}`||"."},normalize(t){st(t,"path");const e=t.length;if(e===0)return".";let i=0,s,r=!1;const n=t.charCodeAt(0);if(e===1)return Ld(n)?"\\":t;if(me(n))if(r=!0,me(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!me(t.charCodeAt(a));)a++;if(a<e&&a!==c){const l=t.slice(c,a);for(c=a;a<e&&me(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!me(t.charCodeAt(a));)a++;if(a===e)return`\\\\${l}\\${t.slice(c)}\\`;a!==c&&(s=`\\\\${l}\\${t.slice(c,a)}`,i=a)}}}else i=1;else Ns(n)&&t.charCodeAt(1)===os&&(s=t.slice(0,2),i=2,e>2&&me(t.charCodeAt(2))&&(r=!0,i=3));let o=i<e?Kc(t.slice(i),!r,"\\",me):"";if(o.length===0&&!r&&(o="."),o.length>0&&me(t.charCodeAt(e-1))&&(o+="\\"),!r&&s===void 0&&t.includes(":")){if(o.length>=2&&Ns(o.charCodeAt(0))&&o.charCodeAt(1)===os)return`.\\${o}`;let a=t.indexOf(":");do if(a===e-1||me(t.charCodeAt(a+1)))return`.\\${o}`;while((a=t.indexOf(":",a+1))!==-1)}return s===void 0?r?`\\${o}`:o:r?`${s}\\${o}`:`${s}${o}`},isAbsolute(t){st(t,"path");const e=t.length;if(e===0)return!1;const i=t.charCodeAt(0);return me(i)||e>2&&Ns(i)&&t.charCodeAt(1)===os&&me(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,i;for(let n=0;n<t.length;++n){const o=t[n];st(o,"path"),o.length>0&&(e===void 0?e=i=o:e+=`\\${o}`)}if(e===void 0)return".";let s=!0,r=0;if(typeof i=="string"&&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<e.length&&me(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return Ge.normalize(e)},relative(t,e){if(st(t,"from"),st(e,"to"),t===e)return"";const i=Ge.resolve(t),s=Ge.resolve(e);if(i===s||(t=i.toLowerCase(),e=s.toLowerCase(),t===e))return"";if(i.length!==t.length||s.length!==e.length){const m=i.split("\\"),w=s.split("\\");m[m.length-1]===""&&m.pop(),w[w.length-1]===""&&w.pop();const y=m.length,b=w.length,E=y<b?y:b;let A;for(A=0;A<E&&m[A].toLowerCase()===w[A].toLowerCase();A++);return A===0?s:A===E?b>E?w.slice(A).join("\\"):y>E?"..\\".repeat(y-1-A)+"..":"":"..\\".repeat(y-A)+w.slice(A).join("\\")}let r=0;for(;r<t.length&&t.charCodeAt(r)===Jt;)r++;let n=t.length;for(;n-1>r&&t.charCodeAt(n-1)===Jt;)n--;const o=n-r;let a=0;for(;a<e.length&&e.charCodeAt(a)===Jt;)a++;let c=e.length;for(;c-1>a&&e.charCodeAt(c-1)===Jt;)c--;const l=c-a,h=o<l?o:l;let u=-1,f=0;for(;f<h;f++){const m=t.charCodeAt(r+f);if(m!==e.charCodeAt(a+f))break;m===Jt&&(u=f)}if(f!==h){if(u===-1)return s}else{if(l>h){if(e.charCodeAt(a+f)===Jt)return s.slice(a+f+1);if(f===2)return s.slice(a+f)}o>h&&(t.charCodeAt(r+f)===Jt?u=f:f===2&&(u=3)),u===-1&&(u=0)}let p="";for(f=r+u+1;f<=n;++f)(f===n||t.charCodeAt(f)===Jt)&&(p+=p.length===0?"..":"\\..");return a+=u,p.length>0?`${p}${s.slice(a,c)}`:(s.charCodeAt(a)===Jt&&++a,s.slice(a,c))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Ge.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Jt){if(e.charCodeAt(1)===Jt){const i=e.charCodeAt(2);if(i!==w0&&i!==rr)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ns(e.charCodeAt(0))&&e.charCodeAt(1)===os&&e.charCodeAt(2)===Jt)return`\\\\?\\${e}`;return e},dirname(t){st(t,"path");const e=t.length;if(e===0)return".";let i=-1,s=0;const r=t.charCodeAt(0);if(e===1)return me(r)?t:".";if(me(r)){if(i=s=1,me(t.charCodeAt(1))){let a=2,c=a;for(;a<e&&!me(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&me(t.charCodeAt(a));)a++;if(a<e&&a!==c){for(c=a;a<e&&!me(t.charCodeAt(a));)a++;if(a===e)return t;a!==c&&(i=s=a+1)}}}}else Ns(r)&&t.charCodeAt(1)===os&&(i=e>2&&me(t.charCodeAt(2))?3:2,s=i);let n=-1,o=!0;for(let a=e-1;a>=s;--a)if(me(t.charCodeAt(a))){if(!o){n=a;break}}else o=!1;if(n===-1){if(i===-1)return".";n=i}return t.slice(0,n)},basename(t,e){e!==void 0&&st(e,"suffix"),st(t,"path");let i=0,s=-1,r=!0,n;if(t.length>=2&&Ns(t.charCodeAt(0))&&t.charCodeAt(1)===os&&(i=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(n=t.length-1;n>=i;--n){const c=t.charCodeAt(n);if(me(c)){if(!r){i=n+1;break}}else a===-1&&(r=!1,a=n+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(s=n):(o=-1,s=a))}return i===s?s=a:s===-1&&(s=t.length),t.slice(i,s)}for(n=t.length-1;n>=i;--n)if(me(t.charCodeAt(n))){if(!r){i=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":t.slice(i,s)},extname(t){st(t,"path");let e=0,i=-1,s=0,r=-1,n=!0,o=0;t.length>=2&&t.charCodeAt(1)===os&&Ns(t.charCodeAt(0))&&(e=s=2);for(let a=t.length-1;a>=e;--a){const c=t.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?"":t.slice(i,r)},format:d0.bind(null,"\\"),parse(t){st(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const i=t.length;let s=0,r=t.charCodeAt(0);if(i===1)return me(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(me(r)){if(s=1,me(t.charCodeAt(1))){let u=2,f=u;for(;u<i&&!me(t.charCodeAt(u));)u++;if(u<i&&u!==f){for(f=u;u<i&&me(t.charCodeAt(u));)u++;if(u<i&&u!==f){for(f=u;u<i&&!me(t.charCodeAt(u));)u++;u===i?s=u:u!==f&&(s=u+1)}}}}else if(Ns(r)&&t.charCodeAt(1)===os){if(i<=2)return e.root=e.dir=t,e;if(s=2,me(t.charCodeAt(2))){if(i===3)return e.root=e.dir=t,e;s=3}}s>0&&(e.root=t.slice(0,s));let n=-1,o=s,a=-1,c=!0,l=t.length-1,h=0;for(;l>=s;--l){if(r=t.charCodeAt(l),me(r)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),r===rr?n===-1?n=l:h!==1&&(h=1):n!==-1&&(h=-1)}return a!==-1&&(n===-1||h===0||h===1&&n===a-1&&n===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,n),e.base=t.slice(o,a),e.ext=t.slice(n,a))),o>0&&o!==s?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},v0=(()=>{if(Kt){const t=/\\/g;return()=>{const e=Fs().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Fs()})(),ce={resolve(...t){let e="",i=!1;for(let s=t.length-1;s>=0&&!i;s--){const r=t[s];st(r,`paths[${s}]`),r.length!==0&&(e=`${r}/${e}`,i=r.charCodeAt(0)===bt)}if(!i){const s=v0();e=`${s}/${e}`,i=s.charCodeAt(0)===bt}return e=Kc(e,!i,"/",Ld),i?`/${e}`:e.length>0?e:"."},normalize(t){if(st(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===bt,i=t.charCodeAt(t.length-1)===bt;return t=Kc(t,!e,"/",Ld),t.length===0?e?"/":i?"./":".":(i&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return st(t,"path"),t.length>0&&t.charCodeAt(0)===bt},join(...t){if(t.length===0)return".";const e=[];for(let i=0;i<t.length;++i){const s=t[i];st(s,"path"),s.length>0&&e.push(s)}return e.length===0?".":ce.normalize(e.join("/"))},relative(t,e){if(st(t,"from"),st(e,"to"),t===e||(t=ce.resolve(t),e=ce.resolve(e),t===e))return"";const i=1,s=t.length,r=s-i,n=1,o=e.length-n,a=r<o?r:o;let c=-1,l=0;for(;l<a;l++){const u=t.charCodeAt(i+l);if(u!==e.charCodeAt(n+l))break;u===bt&&(c=l)}if(l===a)if(o>a){if(e.charCodeAt(n+l)===bt)return e.slice(n+l+1);if(l===0)return e.slice(n+l)}else r>a&&(t.charCodeAt(i+l)===bt?c=l:l===0&&(c=0));let h="";for(l=i+c+1;l<=s;++l)(l===s||t.charCodeAt(l)===bt)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(n+c)}`},toNamespacedPath(t){return t},dirname(t){if(st(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===bt;let i=-1,s=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===bt){if(!s){i=r;break}}else s=!1;return i===-1?e?"/":".":e&&i===1?"//":t.slice(0,i)},basename(t,e){e!==void 0&&st(e,"suffix"),st(t,"path");let i=0,s=-1,r=!0,n;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(n=t.length-1;n>=0;--n){const c=t.charCodeAt(n);if(c===bt){if(!r){i=n+1;break}}else a===-1&&(r=!1,a=n+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(s=n):(o=-1,s=a))}return i===s?s=a:s===-1&&(s=t.length),t.slice(i,s)}for(n=t.length-1;n>=0;--n)if(t.charCodeAt(n)===bt){if(!r){i=n+1;break}}else s===-1&&(r=!1,s=n+1);return s===-1?"":t.slice(i,s)},extname(t){st(t,"path");let e=-1,i=0,s=-1,r=!0,n=0;for(let o=t.length-1;o>=0;--o){const a=t[o];if(a==="/"){if(!r){i=o+1;break}continue}s===-1&&(r=!1,s=o+1),a==="."?e===-1?e=o:n!==1&&(n=1):e!==-1&&(n=-1)}return e===-1||s===-1||n===0||n===1&&e===s-1&&e===i+1?"":t.slice(e,s)},format:d0.bind(null,"/"),parse(t){st(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const i=t.charCodeAt(0)===bt;let s;i?(e.root="/",s=1):s=0;let r=-1,n=0,o=-1,a=!0,c=t.length-1,l=0;for(;c>=s;--c){const h=t.charCodeAt(c);if(h===bt){if(!a){n=c+1;break}continue}o===-1&&(a=!1,o=c+1),h===rr?r===-1?r=c:l!==1&&(l=1):r!==-1&&(l=-1)}if(o!==-1){const h=n===0&&i?1:n;r===-1||l===0||l===1&&r===o-1&&r===n+1?e.base=e.name=t.slice(h,o):(e.name=t.slice(h,r),e.base=t.slice(h,o),e.ext=t.slice(r,o))}return n>0?e.dir=t.slice(0,n-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null},ce.win32=Ge.win32=Ge,ce.posix=Ge.posix=ce,Zt=Kt?Ge.normalize:ce.normalize,Cn=Kt?Ge.isAbsolute:ce.isAbsolute,M=Kt?Ge.join:ce.join,nr=Kt?Ge.resolve:ce.resolve,Fd=Kt?Ge.relative:ce.relative,dt=Kt?Ge.dirname:ce.dirname,ze=Kt?Ge.basename:ce.basename,jo=Kt?Ge.extname:ce.extname,z6=Kt?Ge.format:ce.format,H6=Kt?Ge.parse:ce.parse,V6=Kt?Ge.toNamespacedPath:ce.toNamespacedPath,Ft=Kt?Ge.sep:ce.sep,Nd=Kt?Ge.delimiter:ce.delimiter}});function q6(t,e){const i=Object.create(null);for(const s of t){const r=e(s);let n=i[r];n||(n=i[r]=[]),n.push(s)}return i}var y0,G6,b0=v({"out-build/vs/base/common/collections.js"(){"use strict";G6=class{static{y0=Symbol.toStringTag}constructor(t,e){this.b=e,this.a=new Map,this[y0]="SetWithKey";for(const i of t)this.add(i)}get size(){return this.a.size}add(t){const e=this.b(t);return this.a.set(e,t),this}delete(t){return this.a.delete(this.b(t))}has(t){return this.a.has(this.b(t))}*entries(){for(const t of this.a.values())yield[t,t]}keys(){return this.values()}*values(){for(const t of this.a.values())yield t}clear(){this.a.clear()}forEach(t,e){this.a.forEach(i=>t.call(e,i,i,this))}[Symbol.iterator](){return this.values()}}}});function k0(t){zo.setUnexpectedErrorHandler(t)}function J6(t){if(!t||typeof t!="object")return!1;const e=t;return e.code==="EPIPE"&&e.syscall?.toUpperCase()==="WRITE"}function Ct(t){Wd(t)||zo.onUnexpectedError(t)}function Wd(t){return t instanceof Yt?!0:t instanceof Error&&t.name===Ho&&t.message===Ho}function Rn(){const t=new Error(Ho);return t.name=t.message,t}function S0(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}function Li(t){return t?t.message?t.message:t.stack?t.stack.split(`
`)[0]:String(t):"Error"}var E0,zo,Ho,Yt,K6,Zc,Ws,x0,De=v({"out-build/vs/base/common/errors.js"(){"use strict";E0=class{constructor(){this.b=[],this.a=function(t){setTimeout(()=>{throw t.stack?Ws.isErrorNoTelemetry(t)?new Ws(t.message+`
`+t.stack):new Error(t.message+`
`+t.stack):t},0)}}addListener(t){return this.b.push(t),()=>{this.d(t)}}c(t){this.b.forEach(e=>{e(t)})}d(t){this.b.splice(this.b.indexOf(t),1)}setUnexpectedErrorHandler(t){this.a=t}getUnexpectedErrorHandler(){return this.a}onUnexpectedError(t){this.a(t),this.c(t)}onUnexpectedExternalError(t){this.a(t)}},zo=new E0,Ho="Canceled",Yt=class extends Error{constructor(){super(Ho),this.name=this.message}},K6=class td extends Error{static{this.a="PendingMigrationError"}static is(e){return e instanceof td||e instanceof Error&&e.name===td.a}constructor(e){super(e),this.name=td.a}},Zc=class extends Error{constructor(){super(...arguments),this.isExpected=!0}},Ws=class xm extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof xm)return e;const i=new xm;return i.message=e.message,i.stack=e.stack,i}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}},x0=class T9 extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,T9.prototype)}}}});function Yc(t,e){const i=this;let s=!1,r;return function(){if(s)return r;if(s=!0,e)try{r=t.apply(i,arguments)}finally{e()}else r=t.apply(i,arguments);return r}}var Qc=v({"out-build/vs/base/common/functional.js"(){"use strict"}});function Z6(t,e,i=0,s=t.length){let r=i,n=s;for(;r<n;){const o=Math.floor((r+n)/2);e(t[o])?r=o+1:n=o}return r-1}function Y6(t,e,i=0,s=t.length){let r=i,n=s;for(;r<n;){const o=Math.floor((r+n)/2);e(t[o])?n=o:r=o+1}return r}var Q6,X6=v({"out-build/vs/base/common/arraysFind.js"(){"use strict";Q6=class B9{static{this.assertInvariants=!1}constructor(e){this.e=e,this.c=0}findLastMonotonous(e){if(B9.assertInvariants){if(this.d){for(const s of this.e)if(this.d(s)&&!e(s))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this.d=e}const i=Z6(this.e,e,this.c);return this.c=i+1,i===-1?void 0:this.e[i]}}}});function Vo(t,e,i=(s,r)=>s===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let s=0,r=t.length;s<r;s++)if(!i(t[s],e[s]))return!1;return!0}function e7(t,e,i){return t7(t.length,s=>i(t[s],e))}function t7(t,e){let i=0,s=t-1;for(;i<=s;){const r=(i+s)/2|0,n=e(r);if(n<0)i=r+1;else if(n>0)s=r-1;else return r}return-(i+1)}function i7(t,e,i){if(i===0)return[];const s=t.slice(0,i).sort(e);return s7(t,e,s,i,t.length),s}function s7(t,e,i,s,r){for(const n=i.length;s<r;s++){const o=t[s];if(e(o,i[n-1])<0){i.pop();const a=Y6(i,c=>e(o,c)<0);i.splice(a,0,o)}}}function ft(t){return t.filter(e=>!!e)}function Gi(t,e=i=>i){const i=new Set;return t.filter(s=>{const r=e(s);return i.has(r)?!1:(i.add(r),!0)})}function P0(t,e){return t.push(e),()=>r7(t,e)}function r7(t,e){const i=t.indexOf(e);if(i>-1)return t.splice(i,1),e}function $0(t,e){let i;if(typeof e=="number"){let s=e;i=()=>{const r=Math.sin(s++)*179426549;return r-Math.floor(r)}}else i=Math.random;for(let s=t.length-1;s>0;s-=1){const r=Math.floor(i()*(s+1)),n=t[s];t[s]=t[r],t[r]=n}}function n7(t){return t[Math.floor(Math.random()*t.length)]}function o7(t,e){return(i,s)=>e(t(i),t(s))}var _d,A0,a7,kt=v({"out-build/vs/base/common/arrays.js"(){"use strict";X6(),De(),function(t){function e(n){return n<0}t.isLessThan=e;function i(n){return n<=0}t.isLessThanOrEqual=i;function s(n){return n>0}t.isGreaterThan=s;function r(n){return n===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0}(_d||(_d={})),A0=(t,e)=>t-e,a7=class id{static{this.empty=new id(e=>{})}constructor(e){this.iterate=e}forEach(e){this.iterate(i=>(e(i),!0))}toArray(){const e=[];return this.iterate(i=>(e.push(i),!0)),e}filter(e){return new id(i=>this.iterate(s=>e(s)?i(s):!0))}map(e){return new id(i=>this.iterate(s=>i(e(s))))}some(e){let i=!1;return this.iterate(s=>(i=e(s),!i)),i}findFirst(e){let i;return this.iterate(s=>e(s)?(i=s,!1):!0),i}findLast(e){let i;return this.iterate(s=>(e(s)&&(i=s),!0)),i}findLastMaxBy(e){let i,s=!0;return this.iterate(r=>((s||_d.isGreaterThan(e(r,i)))&&(s=!1,i=r),!0)),i}}}});function c7(t){const e=[];return t.forEach((i,s)=>{e.push(`${s} => ${i}`)}),`Map(${t.size}) {${e.join(", ")}}`}function l7(t){const e=[];return t.forEach(i=>{e.push(i)}),`Set(${t.size}) {${e.join(", ")}}`}function h7(t){return Array.isArray(t)}var D0,I0,C0,R0,Rt,Td,O0,L0,M0,Xc,F0,Qt=v({"out-build/vs/base/common/map.js"(){"use strict";R0=class{constructor(t,e){this.uri=t,this.value=e}},Rt=class Oc{static{this.c=e=>e.toString()}constructor(e,i){if(this[D0]="ResourceMap",e instanceof Oc)this.d=new Map(e.d),this.e=i??Oc.c;else if(h7(e)){this.d=new Map,this.e=i??Oc.c;for(const[s,r]of e)this.set(s,r)}else this.d=new Map,this.e=e??Oc.c}set(e,i){return this.d.set(this.e(e),new R0(e,i)),this}get(e){return this.d.get(this.e(e))?.value}has(e){return this.d.has(this.e(e))}get size(){return this.d.size}clear(){this.d.clear()}delete(e){return this.d.delete(this.e(e))}forEach(e,i){typeof i<"u"&&(e=e.bind(i));for(const[s,r]of this.d)e(r.value,r.uri,this)}*values(){for(const e of this.d.values())yield e.value}*keys(){for(const e of this.d.values())yield e.uri}*entries(){for(const e of this.d.values())yield[e.uri,e.value]}*[(D0=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.d)yield[e.uri,e.value]}},Td=class{constructor(t,e){this[I0]="ResourceSet",!t||typeof t=="function"?this.c=new Rt(t):(this.c=new Rt(e),t.forEach(this.add,this))}get size(){return this.c.size}add(t){return this.c.set(t,t),this}clear(){this.c.clear()}delete(t){return this.c.delete(t)}forEach(t,e){this.c.forEach((i,s)=>t.call(e,s,s,this))}has(t){return this.c.has(t)}entries(){return this.c.entries()}keys(){return this.c.keys()}values(){return this.c.keys()}[(I0=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},function(t){t[t.None=0]="None",t[t.AsOld=1]="AsOld",t[t.AsNew=2]="AsNew"}(O0||(O0={})),L0=class{constructor(){this[C0]="LinkedMap",this.c=new Map,this.d=void 0,this.e=void 0,this.f=0,this.g=0}clear(){this.c.clear(),this.d=void 0,this.e=void 0,this.f=0,this.g++}isEmpty(){return!this.d&&!this.e}get size(){return this.f}get first(){return this.d?.value}get last(){return this.e?.value}has(t){return this.c.has(t)}get(t,e=0){const i=this.c.get(t);if(i)return e!==0&&this.n(i,e),i.value}set(t,e,i=0){let s=this.c.get(t);if(s)s.value=e,i!==0&&this.n(s,i);else{switch(s={key:t,value:e,next:void 0,previous:void 0},i){case 0:this.l(s);break;case 1:this.k(s);break;case 2:this.l(s);break;default:this.l(s);break}this.c.set(t,s),this.f++}return this}delete(t){return!!this.remove(t)}remove(t){const e=this.c.get(t);if(e)return this.c.delete(t),this.m(e),this.f--,e.value}shift(){if(!this.d&&!this.e)return;if(!this.d||!this.e)throw new Error("Invalid list");const t=this.d;return this.c.delete(t.key),this.m(t),this.f--,t.value}forEach(t,e){const i=this.g;let s=this.d;for(;s;){if(e?t.bind(e)(s.value,s.key,this):t(s.value,s.key,this),this.g!==i)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const t=this,e=this.g;let i=this.d;const s={[Symbol.iterator](){return s},next(){if(t.g!==e)throw new Error("LinkedMap got modified during iteration.");if(i){const r={value:i.key,done:!1};return i=i.next,r}else return{value:void 0,done:!0}}};return s}values(){const t=this,e=this.g;let i=this.d;const s={[Symbol.iterator](){return s},next(){if(t.g!==e)throw new Error("LinkedMap got modified during iteration.");if(i){const r={value:i.value,done:!1};return i=i.next,r}else return{value:void 0,done:!0}}};return s}entries(){const t=this,e=this.g;let i=this.d;const s={[Symbol.iterator](){return s},next(){if(t.g!==e)throw new Error("LinkedMap got modified during iteration.");if(i){const r={value:[i.key,i.value],done:!1};return i=i.next,r}else return{value:void 0,done:!0}}};return s}[(C0=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}h(t){if(t>=this.size)return;if(t===0){this.clear();return}let e=this.d,i=this.size;for(;e&&i>t;)this.c.delete(e.key),e=e.next,i--;this.d=e,this.f=i,e&&(e.previous=void 0),this.g++}j(t){if(t>=this.size)return;if(t===0){this.clear();return}let e=this.e,i=this.size;for(;e&&i>t;)this.c.delete(e.key),e=e.previous,i--;this.e=e,this.f=i,e&&(e.next=void 0),this.g++}k(t){if(!this.d&&!this.e)this.e=t;else if(this.d)t.next=this.d,this.d.previous=t;else throw new Error("Invalid list");this.d=t,this.g++}l(t){if(!this.d&&!this.e)this.d=t;else if(this.e)t.previous=this.e,this.e.next=t;else throw new Error("Invalid list");this.e=t,this.g++}m(t){if(t===this.d&&t===this.e)this.d=void 0,this.e=void 0;else if(t===this.d){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this.d=t.next}else if(t===this.e){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this.e=t.previous}else{const e=t.next,i=t.previous;if(!e||!i)throw new Error("Invalid list");e.previous=i,i.next=e}t.next=void 0,t.previous=void 0,this.g++}n(t,e){if(!this.d||!this.e)throw new Error("Invalid list");if(!(e!==1&&e!==2)){if(e===1){if(t===this.d)return;const i=t.next,s=t.previous;t===this.e?(s.next=void 0,this.e=s):(i.previous=s,s.next=i),t.previous=void 0,t.next=this.d,this.d.previous=t,this.d=t,this.g++}else if(e===2){if(t===this.e)return;const i=t.next,s=t.previous;t===this.d?(i.previous=void 0,this.d=i):(i.previous=s,s.next=i),t.next=void 0,t.previous=this.e,this.e.next=t,this.e=t,this.g++}}}toJSON(){const t=[];return this.forEach((e,i)=>{t.push([i,e])}),t}fromJSON(t){this.clear();for(const[e,i]of t)this.set(e,i)}},M0=class extends L0{constructor(t,e=1){super(),this.o=t,this.p=Math.min(Math.max(0,e),1)}get limit(){return this.o}set limit(t){this.o=t,this.q()}get ratio(){return this.p}set ratio(t){this.p=Math.min(Math.max(0,t),1),this.q()}get(t,e=2){return super.get(t,e)}peek(t){return super.get(t,0)}set(t,e){return super.set(t,e,2),this}q(){this.size>this.o&&this.r(Math.round(this.o*this.p))}},Xc=class extends M0{constructor(t,e=1){super(t,e)}r(t){this.h(t)}set(t,e){return super.set(t,e),this.q(),this}},F0=class{constructor(){this.c=new Map}add(t,e){let i=this.c.get(t);i||(i=new Set,this.c.set(t,i)),i.add(e)}delete(t,e){const i=this.c.get(t);i&&(i.delete(e),i.size===0&&this.c.delete(t))}forEach(t,e){const i=this.c.get(t);i&&i.forEach(e)}get(t){const e=this.c.get(t);return e||new Set}}}});function Bd(t,e){if(!t)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function Ud(t,e="unexpected state"){if(!t)throw typeof e=="string"?new x0(`Assertion Failed: ${e}`):e}var qo=v({"out-build/vs/base/common/assert.js"(){"use strict";De()}});function pt(t){return typeof t=="string"}function St(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}function u7(t){const e=Object.getPrototypeOf(Uint8Array);return typeof t=="object"&&t instanceof e}function el(t){return typeof t=="number"&&!isNaN(t)}function d7(t){return!!t&&typeof t[Symbol.iterator]=="function"}function N0(t){return t===!0||t===!1}function _s(t){return typeof t>"u"}function Xt(t){return _s(t)||t===null}function f7(t,e){if(!t)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Go(t){return Ud(t!=null,"Argument is `undefined` or `null`."),t}function W0(t){if(!St(t))return!1;for(const e in t)if(_0.call(t,e))return!1;return!0}function jd(t){return typeof t=="function"}function VI(t){return t}var _0,$e=v({"out-build/vs/base/common/types.js"(){"use strict";qo(),_0=Object.prototype.hasOwnProperty}}),Fr,tl=v({"out-build/vs/base/common/iterator.js"(){"use strict";$e(),function(t){function e(F){return!!F&&typeof F=="object"&&typeof F[Symbol.iterator]=="function"}t.is=e;const i=Object.freeze([]);function s(){return i}t.empty=s;function*r(F){yield F}t.single=r;function n(F){return e(F)?F:r(F)}t.wrap=n;function o(F){return F||i}t.from=o;function*a(F){for(let H=F.length-1;H>=0;H--)yield F[H]}t.reverse=a;function c(F){return!F||F[Symbol.iterator]().next().done===!0}t.isEmpty=c;function l(F){return F[Symbol.iterator]().next().value}t.first=l;function h(F,H){let C=0;for(const ie of F)if(H(ie,C++))return!0;return!1}t.some=h;function u(F,H){let C=0;for(const ie of F)if(!H(ie,C++))return!1;return!0}t.every=u;function f(F,H){for(const C of F)if(H(C))return C}t.find=f;function*p(F,H){for(const C of F)H(C)&&(yield C)}t.filter=p;function*m(F,H){let C=0;for(const ie of F)yield H(ie,C++)}t.map=m;function*w(F,H){let C=0;for(const ie of F)yield*H(ie,C++)}t.flatMap=w;function*y(...F){for(const H of F)d7(H)?yield*H:yield H}t.concat=y;function b(F,H,C){let ie=C;for(const qe of F)ie=H(ie,qe);return ie}t.reduce=b;function E(F){let H=0;for(const C of F)H++;return H}t.length=E;function*A(F,H,C=F.length){for(H<-F.length&&(H=0),H<0&&(H+=F.length),C<0?C+=F.length:C>F.length&&(C=F.length);H<C;H++)yield F[H]}t.slice=A;function R(F,H=Number.POSITIVE_INFINITY){const C=[];if(H===0)return[C,F];const ie=F[Symbol.iterator]();for(let qe=0;qe<H;qe++){const ne=ie.next();if(ne.done)return[C,t.empty()];C.push(ne.value)}return[C,{[Symbol.iterator](){return ie}}]}t.consume=R;async function W(F){const H=[];for await(const C of F)H.push(C);return H}t.asyncToArray=W;async function se(F){let H=[];for await(const C of F)H=H.concat(C);return H}t.asyncToArrayFlat=se}(Fr||(Fr={}))}});function p7(t){Nr=t}function Jo(t){return Nr?.trackDisposable(t),t}function Ko(t){Nr?.markAsDisposed(t)}function Zo(t,e){Nr?.setParent(t,e)}function m7(t,e){if(Nr)for(const i of t)Nr.setParent(i,e)}function T0(t){return typeof t=="object"&&t!==null&&typeof t.dispose=="function"&&t.dispose.length===0}function mt(t){if(Fr.is(t)){const e=[];for(const i of t)if(i)try{i.dispose()}catch(s){e.push(s)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function g7(...t){const e=be(()=>mt(t));return m7(t,e),e}function be(t){const e=Jo({dispose:Yc(()=>{Ko(e),t()})});return e}var B0,Nr,w7,Ae,j,or,zd,T=v({"out-build/vs/base/common/lifecycle.js"(){"use strict";if(kt(),b0(),Qt(),Qc(),tl(),B0=!1,Nr=null,w7=class U9{constructor(){this.b=new Map}static{this.a=0}c(e){let i=this.b.get(e);return i||(i={parent:null,source:null,isSingleton:!1,value:e,idx:U9.a++},this.b.set(e,i)),i}trackDisposable(e){const i=this.c(e);i.source||(i.source=new Error().stack)}setParent(e,i){const s=this.c(e);s.parent=i}markAsDisposed(e){this.b.delete(e)}markAsSingleton(e){this.c(e).isSingleton=!0}f(e,i){const s=i.get(e);if(s)return s;const r=e.parent?this.f(this.c(e.parent),i):e;return i.set(e,r),r}getTrackedDisposables(){const e=new Map;return[...this.b.entries()].filter(([,s])=>s.source!==null&&!this.f(s,e).isSingleton).flatMap(([s])=>s)}computeLeakingDisposables(e=10,i){let s;if(i)s=i;else{const c=new Map,l=[...this.b.values()].filter(u=>u.source!==null&&!this.f(u,c).isSingleton);if(l.length===0)return;const h=new Set(l.map(u=>u.value));if(s=l.filter(u=>!(u.parent&&h.has(u.parent))),s.length===0)throw new Error("There are cyclic diposable chains!")}if(!s)return;function r(c){function l(u,f){for(;u.length>0&&f.some(p=>typeof p=="string"?p===u[0]:u[0].match(p));)u.shift()}const h=c.source.split(`
`).map(u=>u.trim().replace("at ","")).filter(u=>u!=="");return l(h,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),h.reverse()}const n=new F0;for(const c of s){const l=r(c);for(let h=0;h<=l.length;h++)n.add(l.slice(0,h).join(`
`),c)}s.sort(o7(c=>c.idx,A0));let o="",a=0;for(const c of s.slice(0,e)){a++;const l=r(c),h=[];for(let u=0;u<l.length;u++){let f=l[u];f=`(shared with ${n.get(l.slice(0,u+1).join(`
`)).size}/${s.length} leaks) at ${f}`;const m=n.get(l.slice(0,u).join(`
`)),w=q6([...m].map(y=>r(y)[u]),y=>y);delete w[l[u]];for(const[y,b]of Object.entries(w))h.unshift(` - stacktraces of ${b.length} other leaks continue with ${y}`);h.unshift(f)}o+=`
==================== Leaking disposable ${a}/${s.length}: ${c.value.constructor.name} ====================
${h.join(`
`)}
============================================================
`}return s.length>e&&(o+=`
... and ${s.length-e} more leaking disposables
`),{leaks:s,details:o}}},B0){const t="__is_disposable_tracked__";p7(new class{trackDisposable(e){const i=new Error("Potentially leaked disposable").stack;setTimeout(()=>{e[t]||console.log(i)},3e3)}setParent(e,i){if(e&&e!==j.None)try{e[t]=!0}catch{}}markAsDisposed(e){if(e&&e!==j.None)try{e[t]=!0}catch{}}markAsSingleton(e){}})}Ae=class j9{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this.f=new Set,this.g=!1,Jo(this)}dispose(){this.g||(Ko(this),this.g=!0,this.clear())}get isDisposed(){return this.g}clear(){if(this.f.size!==0)try{mt(this.f)}finally{this.f.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return Zo(e,this),this.g?j9.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this.f.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this.f.delete(e),e.dispose()}}deleteAndLeak(e){e&&this.f.has(e)&&(this.f.delete(e),Zo(e,null))}},j=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this.q=new Ae,Jo(this),Zo(this.q,this)}dispose(){Ko(this),this.q.dispose()}B(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this.q.add(t)}},or=class{constructor(){this.b=!1,Jo(this)}get value(){return this.b?void 0:this.a}set value(t){this.b||t===this.a||(this.a?.dispose(),t&&Zo(t,this),this.a=t)}clear(){this.value=void 0}dispose(){this.b=!0,Ko(this),this.a?.dispose(),this.a=void 0}clearAndLeak(){const t=this.a;return this.a=void 0,t&&Zo(t,null),t}},zd=class{constructor(){this.a=new Map,this.b=!1,Jo(this)}dispose(){Ko(this),this.b=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this.a.size)try{mt(this.a.values())}finally{this.a.clear()}}has(t){return this.a.has(t)}get size(){return this.a.size}get(t){return this.a.get(t)}set(t,e,i=!1){this.b&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||this.a.get(t)?.dispose(),this.a.set(t,e)}deleteAndDispose(t){this.a.get(t)?.dispose(),this.a.delete(t)}deleteAndLeak(t){const e=this.a.get(t);return this.a.delete(t),e}keys(){return this.a.keys()}values(){return this.a.values()}[Symbol.iterator](){return this.a[Symbol.iterator]()}}}}),Qe,Hd,U0=v({"out-build/vs/base/common/linkedList.js"(){"use strict";Qe=class sd{static{this.Undefined=new sd(void 0)}constructor(e){this.element=e,this.next=sd.Undefined,this.prev=sd.Undefined}},Hd=class{constructor(){this.a=Qe.Undefined,this.b=Qe.Undefined,this.c=0}get size(){return this.c}isEmpty(){return this.a===Qe.Undefined}clear(){let t=this.a;for(;t!==Qe.Undefined;){const e=t.next;t.prev=Qe.Undefined,t.next=Qe.Undefined,t=e}this.a=Qe.Undefined,this.b=Qe.Undefined,this.c=0}unshift(t){return this.d(t,!1)}push(t){return this.d(t,!0)}d(t,e){const i=new Qe(t);if(this.a===Qe.Undefined)this.a=i,this.b=i;else if(e){const r=this.b;this.b=i,i.prev=r,r.next=i}else{const r=this.a;this.a=i,i.next=r,r.prev=i}this.c+=1;let s=!1;return()=>{s||(s=!0,this.e(i))}}shift(){if(this.a!==Qe.Undefined){const t=this.a.element;return this.e(this.a),t}}pop(){if(this.b!==Qe.Undefined){const t=this.b.element;return this.e(this.b),t}}e(t){if(t.prev!==Qe.Undefined&&t.next!==Qe.Undefined){const e=t.prev;e.next=t.next,t.next.prev=e}else t.prev===Qe.Undefined&&t.next===Qe.Undefined?(this.a=Qe.Undefined,this.b=Qe.Undefined):t.next===Qe.Undefined?(this.b=this.b.prev,this.b.next=Qe.Undefined):t.prev===Qe.Undefined&&(this.a=this.a.next,this.a.prev=Qe.Undefined);this.c-=1}*[Symbol.iterator](){let t=this.a;for(;t!==Qe.Undefined;)yield t.element,t=t.next}}}}),j0,Wr,On=v({"out-build/vs/base/common/stopwatch.js"(){"use strict";j0=globalThis.performance.now.bind(globalThis.performance),Wr=class z9{static create(e){return new z9(e)}constructor(e){this.c=e===!1?Date.now:j0,this.a=this.c(),this.b=-1}stop(){this.b=this.c()}reset(){this.a=this.c(),this.b=-1}elapsed(){return this.b!==-1?this.b-this.a:this.c()-this.a}}}}),Vd,z0,x,H0,qd,V0,il,q0,G0,J0,Yo,K0,Z0,D,Y0,sl,Q0,Gd,J=v({"out-build/vs/base/common/event.js"(){"use strict";b0(),De(),Qc(),T(),U0(),On(),Vd=!1,z0=!1,function(t){t.None=()=>j.None;function e(U){if(z0){const{onDidAddListener:L}=U,_=il.create();let z=0;U.onDidAddListener=()=>{++z===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),_.print()),L?.()}}}function i(U,L){return p(U,()=>{},0,void 0,!0,void 0,L)}t.defer=i;function s(U){return(L,_=null,z)=>{let ee=!1,fe;return fe=U(Pe=>{if(!ee)return fe?fe.dispose():ee=!0,L.call(_,Pe)},null,z),ee&&fe.dispose(),fe}}t.once=s;function r(U,L){return t.once(t.filter(U,L))}t.onceIf=r;function n(U,L,_){return u((z,ee=null,fe)=>U(Pe=>z.call(ee,L(Pe)),null,fe),_)}t.map=n;function o(U,L,_){return u((z,ee=null,fe)=>U(Pe=>{L(Pe),z.call(ee,Pe)},null,fe),_)}t.forEach=o;function a(U,L,_){return u((z,ee=null,fe)=>U(Pe=>L(Pe)&&z.call(ee,Pe),null,fe),_)}t.filter=a;function c(U){return U}t.signal=c;function l(...U){return(L,_=null,z)=>{const ee=g7(...U.map(fe=>fe(Pe=>L.call(_,Pe))));return f(ee,z)}}t.any=l;function h(U,L,_,z){let ee=_;return n(U,fe=>(ee=L(ee,fe),ee),z)}t.reduce=h;function u(U,L){let _;const z={onWillAddFirstListener(){_=U(ee.fire,ee)},onDidRemoveLastListener(){_?.dispose()}};L||e(z);const ee=new D(z);return L?.add(ee),ee.event}function f(U,L){return L instanceof Array?L.push(U):L&&L.add(U),U}function p(U,L,_=100,z=!1,ee=!1,fe,Pe){let Xe,at,es,Cr=0,Os;const En={leakWarningThreshold:fe,onWillAddFirstListener(){Xe=U(Bc=>{Cr++,at=L(at,Bc),z&&!es&&(ts.fire(at),at=void 0),Os=()=>{const Uc=at;at=void 0,es=void 0,(!z||Cr>1)&&ts.fire(Uc),Cr=0},typeof _=="number"?(es&&clearTimeout(es),es=setTimeout(Os,_)):es===void 0&&(es=null,queueMicrotask(Os))})},onWillRemoveListener(){ee&&Cr>0&&Os?.()},onDidRemoveLastListener(){Os=void 0,Xe.dispose()}};Pe||e(En);const ts=new D(En);return Pe?.add(ts),ts.event}t.debounce=p;function m(U,L=0,_){return t.debounce(U,(z,ee)=>z?(z.push(ee),z):[ee],L,void 0,!0,void 0,_)}t.accumulate=m;function w(U,L=(z,ee)=>z===ee,_){let z=!0,ee;return a(U,fe=>{const Pe=z||!L(fe,ee);return z=!1,ee=fe,Pe},_)}t.latch=w;function y(U,L,_){return[t.filter(U,L,_),t.filter(U,z=>!L(z),_)]}t.split=y;function b(U,L=!1,_=[],z){let ee=_.slice(),fe=U(at=>{ee?ee.push(at):Xe.fire(at)});z&&z.add(fe);const Pe=()=>{ee?.forEach(at=>Xe.fire(at)),ee=null},Xe=new D({onWillAddFirstListener(){fe||(fe=U(at=>Xe.fire(at)),z&&z.add(fe))},onDidAddFirstListener(){ee&&(L?setTimeout(Pe):Pe())},onDidRemoveLastListener(){fe&&fe.dispose(),fe=null}});return z&&z.add(Xe),Xe.event}t.buffer=b;function E(U,L){return(z,ee,fe)=>{const Pe=L(new R);return U(function(Xe){const at=Pe.evaluate(Xe);at!==A&&z.call(ee,at)},void 0,fe)}}t.chain=E;const A=Symbol("HaltChainable");class R{constructor(){this.f=[]}map(L){return this.f.push(L),this}forEach(L){return this.f.push(_=>(L(_),_)),this}filter(L){return this.f.push(_=>L(_)?_:A),this}reduce(L,_){let z=_;return this.f.push(ee=>(z=L(z,ee),z)),this}latch(L=(_,z)=>_===z){let _=!0,z;return this.f.push(ee=>{const fe=_||!L(ee,z);return _=!1,z=ee,fe?ee:A}),this}evaluate(L){for(const _ of this.f)if(L=_(L),L===A)break;return L}}function W(U,L,_=z=>z){const z=(...Xe)=>Pe.fire(_(...Xe)),ee=()=>U.on(L,z),fe=()=>U.removeListener(L,z),Pe=new D({onWillAddFirstListener:ee,onDidRemoveLastListener:fe});return Pe.event}t.fromNodeEventEmitter=W;function se(U,L,_=z=>z){const z=(...Xe)=>Pe.fire(_(...Xe)),ee=()=>U.addEventListener(L,z),fe=()=>U.removeEventListener(L,z),Pe=new D({onWillAddFirstListener:ee,onDidRemoveLastListener:fe});return Pe.event}t.fromDOMEventEmitter=se;function F(U,L){let _;const z=new Promise((ee,fe)=>{const Pe=s(U)(ee,null,L);_=()=>Pe.dispose()});return z.cancel=_,z}t.toPromise=F;function H(U){const L=new D;return U.then(_=>{L.fire(_)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}t.fromPromise=H;function C(U,L){return U(_=>L.fire(_))}t.forward=C;function ie(U,L,_){return L(_),U(z=>L(z))}t.runAndSubscribe=ie;class qe{constructor(L,_){this._observable=L,this.f=0,this.g=!1;const z={onWillAddFirstListener:()=>{L.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{L.removeObserver(this)}};_||e(z),this.emitter=new D(z),_&&_.add(this.emitter)}beginUpdate(L){this.f++}handlePossibleChange(L){}handleChange(L,_){this.g=!0}endUpdate(L){this.f--,this.f===0&&(this._observable.reportChanges(),this.g&&(this.g=!1,this.emitter.fire(this._observable.get())))}}function ne(U,L){return new qe(U,L).emitter.event}t.fromObservable=ne;function Ut(U){return(L,_,z)=>{let ee=0,fe=!1;const Pe={beginUpdate(){ee++},endUpdate(){ee--,ee===0&&(U.reportChanges(),fe&&(fe=!1,L.call(_)))},handlePossibleChange(){},handleChange(){fe=!0}};U.addObserver(Pe),U.reportChanges();const Xe={dispose(){U.removeObserver(Pe)}};return z instanceof Ae?z.add(Xe):Array.isArray(z)&&z.push(Xe),Xe}}t.fromObservableLight=Ut}(x||(x={})),H0=class Pm{static{this.all=new Set}static{this.f=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Pm.f++}`,Pm.all.add(this)}start(e){this.g=new Wr,this.listenerCount=e}stop(){if(this.g){const e=this.g.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this.g=void 0}}},qd=-1,V0=class H9{static{this.f=1}constructor(e,i,s=(H9.f++).toString(16).padStart(3,"0")){this.j=e,this.threshold=i,this.name=s,this.h=0}dispose(){this.g?.clear()}check(e,i){const s=this.threshold;if(s<=0||i<s)return;this.g||(this.g=new Map);const r=this.g.get(e.value)||0;if(this.g.set(e.value,r+1),this.h-=1,this.h<=0){this.h=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 q0(a,n);this.j(c)}return()=>{const n=this.g.get(e.value)||0;this.g.set(e.value,n-1)}}getMostFrequentStack(){if(!this.g)return;let e,i=0;for(const[s,r]of this.g)(!e||i<r)&&(e=[s,r],i=r);return e}},il=class V9{static create(){const e=new Error;return new V9(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},q0=class extends Error{constructor(t,e){super(t),this.name="ListenerLeakError",this.stack=e}},G0=class extends Error{constructor(t,e){super(t),this.name="ListenerRefusalError",this.stack=e}},J0=0,Yo=class{constructor(t){this.value=t,this.id=J0++}},K0=2,Z0=(t,e)=>{if(t instanceof Yo)e(t);else for(let i=0;i<t.length;i++){const s=t[i];s&&e(s)}},D=class{constructor(t){this.z=0,this.f=t,this.g=qd>0||this.f?.leakWarningThreshold?new V0(t?.onListenerError??Ct,this.f?.leakWarningThreshold??qd):void 0,this.j=this.f?._profName?new H0(this.f._profName):void 0,this.w=this.f?.deliveryQueue}dispose(){if(!this.m){if(this.m=!0,this.w?.current===this&&this.w.reset(),this.u){if(Vd){const t=this.u;queueMicrotask(()=>{Z0(t,e=>e.stack?.print())})}this.u=void 0,this.z=0}this.f?.onDidRemoveLastListener?.(),this.g?.dispose()}}get event(){return this.q??=(t,e,i)=>{if(this.g&&this.z>this.g.threshold**2){const a=`[${this.g.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this.z} vs ${this.g.threshold})`;console.warn(a);const c=this.g.getMostFrequentStack()??["UNKNOWN stack",-1],l=new G0(`${a}. HINT: Stack shows most frequent listener (${c[1]}-times)`,c[0]);return(this.f?.onListenerError||Ct)(l),j.None}if(this.m)return j.None;e&&(t=t.bind(e));const s=new Yo(t);let r,n;this.g&&this.z>=Math.ceil(this.g.threshold*.2)&&(s.stack=il.create(),r=this.g.check(s.stack,this.z+1)),Vd&&(s.stack=n??il.create()),this.u?this.u instanceof Yo?(this.w??=new Y0,this.u=[this.u,s]):this.u.push(s):(this.f?.onWillAddFirstListener?.(this),this.u=s,this.f?.onDidAddFirstListener?.(this)),this.f?.onDidAddListener?.(this),this.z++;const o=be(()=>{r?.(),this.A(s)});return i instanceof Ae?i.add(o):Array.isArray(i)&&i.push(o),o},this.q}A(t){if(this.f?.onWillRemoveListener?.(this),!this.u)return;if(this.z===1){this.u=void 0,this.f?.onDidRemoveLastListener?.(this),this.z=0;return}const e=this.u,i=e.indexOf(t);if(i===-1)throw console.log("disposed?",this.m),console.log("size?",this.z),console.log("arr?",JSON.stringify(this.u)),new Error("Attempted to dispose unknown listener");this.z--,e[i]=void 0;const s=this.w.current===this;if(this.z*K0<=e.length){let r=0;for(let n=0;n<e.length;n++)e[n]?e[r++]=e[n]:s&&r<this.w.end&&(this.w.end--,r<this.w.i&&this.w.i--);e.length=r}}B(t,e){if(!t)return;const i=this.f?.onListenerError||Ct;if(!i){t.value(e);return}try{t.value(e)}catch(s){i(s)}}C(t){const e=t.current.u;for(;t.i<t.end;)this.B(e[t.i++],t.value);t.reset()}fire(t){if(this.w?.current&&(this.C(this.w),this.j?.stop()),this.j?.start(this.z),this.u)if(this.u instanceof Yo)this.B(this.u,t);else{const e=this.w;e.enqueue(this,t,this.u.length),this.C(e)}this.j?.stop()}hasListeners(){return this.z>0}},Y0=class{constructor(){this.i=-1,this.end=0}enqueue(t,e,i){this.i=0,this.end=i,this.current=t,this.value=e}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},sl=class extends D{get isPaused(){return this.h!==0}constructor(t){super(t),this.h=0,this.s=new Hd,this.t=t?.merge}pause(){this.h++}resume(){if(this.h!==0&&--this.h===0)if(this.t){if(this.s.size>0){const t=Array.from(this.s);this.s.clear(),super.fire(this.t(t))}}else for(;!this.h&&this.s.size!==0;)super.fire(this.s.shift())}fire(t){this.z&&(this.h!==0?this.s.push(t):super.fire(t))}},Q0=class{constructor(){this.g=!1,this.h=[],this.f=new D({onWillAddFirstListener:()=>this.j(),onDidRemoveLastListener:()=>this.k()})}get event(){return this.f.event}add(t){const e={event:t,listener:null};return this.h.push(e),this.g&&this.m(e),be(Yc(()=>{this.g&&this.o(e);const s=this.h.indexOf(e);this.h.splice(s,1)}))}j(){this.g=!0,this.h.forEach(t=>this.m(t))}k(){this.g=!1,this.h.forEach(t=>this.o(t))}m(t){t.listener=t.event(e=>this.f.fire(e))}o(t){t.listener?.dispose(),t.listener=null}dispose(){this.f.dispose();for(const t of this.h)t.listener?.dispose();this.h=[]}},Gd=class{constructor(){this.f=!1,this.g=x.None,this.h=j.None,this.j=new D({onDidAddFirstListener:()=>{this.f=!0,this.h=this.g(this.j.fire,this.j)},onDidRemoveLastListener:()=>{this.f=!1,this.h.dispose()}}),this.event=this.j.event}set input(t){this.g=t,this.f&&(this.h.dispose(),this.h=t(this.j.fire,this.j))}dispose(){this.h.dispose(),this.j.dispose()}}}}),Jd,Je,Qo,Ji,Et=v({"out-build/vs/base/common/cancellation.js"(){"use strict";J(),Jd=Object.freeze(function(t,e){const i=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(i)}}}),function(t){function e(i){return i===t.None||i===t.Cancelled||i instanceof Qo?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:x.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Jd})}(Je||(Je={})),Qo=class{constructor(){this.a=!1,this.b=null}cancel(){this.a||(this.a=!0,this.b&&(this.b.fire(void 0),this.dispose()))}get isCancellationRequested(){return this.a}get onCancellationRequested(){return this.a?Jd:(this.b||(this.b=new D),this.b.event)}dispose(){this.b&&(this.b.dispose(),this.b=null)}},Ji=class{constructor(t){this.f=void 0,this.g=void 0,this.g=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this.f||(this.f=new Qo),this.f}cancel(){this.f?this.f instanceof Qo&&this.f.cancel():this.f=Je.Cancelled}dispose(t=!1){t&&this.cancel(),this.g?.dispose(),this.f?this.f instanceof Qo&&this.f.dispose():this.f=Je.None}}}});function v7(t){return t}var X0,y7=v({"out-build/vs/base/common/cache.js"(){"use strict";Et(),X0=class{constructor(t,e){this.a=void 0,this.b=void 0,typeof t=="function"?(this.c=t,this.d=v7):(this.c=e,this.d=t.getCacheKey)}get(t){const e=this.d(t);return this.b!==e&&(this.b=e,this.a=this.c(t)),this.a}}}}),Ts,_r=v({"out-build/vs/base/common/lazy.js"(){"use strict";Ts=class{constructor(t){this.d=t,this.a=!1}get hasValue(){return this.a}get value(){if(!this.a)try{this.b=this.d()}catch(t){this.c=t}finally{this.a=!0}if(this.c)throw this.c;return this.b}get rawValue(){return this.b}}}});function b7(t){return!t||typeof t!="string"?!0:t.trim().length===0}function Xo(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function eg(t,e=" "){const i=tg(t,e);return Tr(i,e)}function tg(t,e){if(!t||!e)return t;const i=e.length;if(i===0||t.length===0)return t;let s=0;for(;t.indexOf(e,s)===s;)s=s+i;return t.substring(s)}function Tr(t,e){if(!t||!e)return t;const i=e.length,s=t.length;if(i===0||s===0)return t;let r=s,n=-1;for(;n=t.lastIndexOf(e,r-1),!(n===-1||n+i!==r);){if(n===0)return"";r=n}return t.substring(0,r)}function Kd(t,e){return t<e?-1:t>e?1:0}function Zd(t,e,i=0,s=t.length,r=0,n=e.length){for(;i<s&&r<n;i++,r++){const c=t.charCodeAt(i),l=e.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 Yd(t,e){return ea(t,e,0,t.length,0,e.length)}function ea(t,e,i=0,s=t.length,r=0,n=e.length){for(;i<s&&r<n;i++,r++){let c=t.charCodeAt(i),l=e.charCodeAt(r);if(c===l)continue;if(c>=128||l>=128)return Zd(t.toLowerCase(),e.toLowerCase(),i,s,r,n);ig(c)&&(c-=32),ig(l)&&(l-=32);const h=c-l;if(h!==0)return h}const o=s-i,a=n-r;return o<a?-1:o>a?1:0}function ig(t){return t>=97&&t<=122}function sg(t){return t>=65&&t<=90}function Bs(t,e){return t.length===e.length&&ea(t,e)===0}function rl(t,e){const i=e.length;return e.length>t.length?!1:ea(t,e,0,i)===0}function k7(t){return 55296<=t&&t<=56319}function rg(t){return 56320<=t&&t<=57343}function S7(t,e){return(t-55296<<10)+(e-56320)+65536}function E7(){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 ng,og,ag,x7,P7,cg,$7,lg,A7,D7,xt=v({"out-build/vs/base/common/strings.js"(){"use strict";y7(),_r(),ng=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,og=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,ag=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,x7=new RegExp("(?:"+[ng.source,og.source,ag.source].join("|")+")","g"),P7="\uFEFF",function(t){t[t.Other=0]="Other",t[t.Prepend=1]="Prepend",t[t.CR=2]="CR",t[t.LF=3]="LF",t[t.Control=4]="Control",t[t.Extend=5]="Extend",t[t.Regional_Indicator=6]="Regional_Indicator",t[t.SpacingMark=7]="SpacingMark",t[t.L=8]="L",t[t.V=9]="V",t[t.T=10]="T",t[t.LV=11]="LV",t[t.LVT=12]="LVT",t[t.ZWJ=13]="ZWJ",t[t.Extended_Pictographic=14]="Extended_Pictographic"}(cg||(cg={})),$7=class Lc{static{this.c=null}static getInstance(){return Lc.c||(Lc.c=new Lc),Lc.c}constructor(){this.d=E7()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const i=this.d,s=i.length/3;let r=1;for(;r<=s;)if(e<i[3*r])r=2*r;else if(e>i[3*r+1])r=2*r+1;else return i[3*r+2];return 0}},function(t){t[t.zwj=8205]="zwj",t[t.emojiVariantSelector=65039]="emojiVariantSelector",t[t.enclosingKeyCap=8419]="enclosingKeyCap",t[t.space=32]="space"}(lg||(lg={})),A7=class Mc{static{this.c=new Ts(()=>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.d=new X0({getCacheKey:JSON.stringify},e=>{function i(h){const u=new Map;for(let f=0;f<h.length;f+=2)u.set(h[f],h[f+1]);return u}function s(h,u){const f=new Map(h);for(const[p,m]of u)f.set(p,m);return f}function r(h,u){if(!h)return u;const f=new Map;for(const[p,m]of h)u.has(p)&&f.set(p,m);return f}const n=this.c.value;let o=e.filter(h=>!h.startsWith("_")&&h in n);o.length===0&&(o=["_default"]);let a;for(const h of o){const u=i(n[h]);a=r(a,u)}const c=i(n._common),l=s(c,a);return new Mc(l)})}static getInstance(e){return Mc.d.get(Array.from(e))}static{this.e=new Ts(()=>Object.keys(Mc.c.value).filter(e=>!e.startsWith("_")))}static getLocales(){return Mc.e.value}constructor(e){this.f=e}isAmbiguous(e){return this.f.has(e)}containsAmbiguousCharacter(e){for(let i=0;i<e.length;i++){const s=e.codePointAt(i);if(typeof s=="number"&&this.isAmbiguous(s))return!0}return!1}getPrimaryConfusable(e){return this.f.get(e)}getConfusableCodePoints(){return new Set(this.f.keys())}},D7=class Fc{static c(){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.d=void 0}static e(){return this.d||(this.d=new Set([...Object.values(Fc.c())].flat())),this.d}static isInvisibleCharacter(e){return Fc.e().has(e)}static containsInvisibleCharacter(e){for(let i=0;i<e.length;i++){const s=e.codePointAt(i);if(typeof s=="number"&&(Fc.isInvisibleCharacter(s)||s===32))return!0}return!1}static get codePoints(){return Fc.e()}}}});function ar(t){return t===47||t===92}function Ln(t){return t.replace(/[\\/]/g,ce.sep)}function I7(t){return t.indexOf("/")===-1&&(t=Ln(t)),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t),t}function hg(t,e=ce.sep){if(!t)return"";const i=t.length,s=t.charCodeAt(0);if(ar(s)){if(ar(t.charCodeAt(1))&&!ar(t.charCodeAt(2))){let n=3;const o=n;for(;n<i&&!ar(t.charCodeAt(n));n++);if(o!==n&&!ar(t.charCodeAt(n+1))){for(n+=1;n<i;n++)if(ar(t.charCodeAt(n)))return t.slice(0,n+1).replace(/[\\/]/g,e)}}return e}else if(Qd(s)&&t.charCodeAt(1)===58)return ar(t.charCodeAt(2))?t.slice(0,2)+e:t.slice(0,2);let r=t.indexOf("://");if(r!==-1){for(r+=3;r<i;r++)if(ar(t.charCodeAt(r)))return t.slice(0,r+1)}return""}function C7(t){if(!B||!t||t.length<5)return!1;let e=t.charCodeAt(0);if(e!==92||(e=t.charCodeAt(1),e!==92))return!1;let i=2;const s=i;for(;i<t.length&&(e=t.charCodeAt(i),e!==92);i++);return!(s===i||(e=t.charCodeAt(i+1),isNaN(e)||e===92))}function R7(t,e=B){const i=e?pg:mg;return!(!t||t.length===0||/^\s+$/.test(t)||(i.lastIndex=0,i.test(t))||e&&gg.test(t)||t==="."||t===".."||e&&t[t.length-1]==="."||e&&t.length!==t.trim().length||t.length>255)}function ta(t,e,i){const s=t===e;return!i||s?s:!t||!e?!1:Bs(t,e)}function ia(t,e,i,s=Ft){if(t===e)return!0;if(!t||!e||e.length>t.length)return!1;if(i){if(!rl(t,e))return!1;if(e.length===t.length)return!0;let n=e.length;return e.charAt(e.length-1)===s&&n--,t.charAt(n)===s}return e.charAt(e.length-1)!==s&&(e+=s),t.indexOf(e)===0}function Qd(t){return t>=65&&t<=90||t>=97&&t<=122}function ug(t,e){return B&&t.endsWith(":")&&(t+=Ft),Cn(t)||(t=M(e,t)),t=Zt(t),dg(t)}function dg(t){return B?(t=Tr(t,Ft),t.endsWith(":")&&(t+=Ft)):(t=Tr(t,Ft),t||(t=Ft)),t}function O7(t){const e=Zt(t);return B?t.length>3?!1:fg(e)&&(t.length===2||e.charCodeAt(2)===92):e===ce.sep}function fg(t,e=B){return e?Qd(t.charCodeAt(0))&&t.charCodeAt(1)===58:!1}function nl(t){const e=t.split(":");let i,s,r;for(const n of e){const o=Number(n);el(o)?s===void 0?s=o:r===void 0&&(r=o):i=i?[i,n].join(":"):n}if(!i)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:i,line:s!==void 0?s:void 0,column:r!==void 0?r:s!==void 0?1:void 0}}function ol(t,e,i=8){let s="";for(let n=0;n<i;n++){let o;n===0&&B&&!e&&(i===3||i===4)?o=vg:o=wg,s+=o.charAt(Math.floor(Math.random()*o.length))}let r;return e?r=`${e}-${s}`:r=s,t?M(t,r):r}var pg,mg,gg,wg,vg,ki=v({"out-build/vs/base/common/extpath.js"(){"use strict";ge(),G(),xt(),$e(),pg=/[\\/:\*\?"<>\|]/g,mg=/[/]/g,gg=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i,wg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",vg="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789"}});function L7(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!kg.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Sg.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Eg.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function M7(t,e){return!t&&!e?"file":t}function F7(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Mi&&(e=Mi+e):e=Mi;break}return e}function yg(t,e,i){let s,r=-1;for(let n=0;n<t.length;n++){const o=t.charCodeAt(n);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47||i&&o===91||i&&o===93||i&&o===58)r!==-1&&(s+=encodeURIComponent(t.substring(r,n)),r=-1),s!==void 0&&(s+=t.charAt(n));else{s===void 0&&(s=t.substr(0,n));const a=tf[o];a!==void 0?(r!==-1&&(s+=encodeURIComponent(t.substring(r,n)),r=-1),s+=a):r===-1&&(r=n)}}return r!==-1&&(s+=encodeURIComponent(t.substring(r))),s!==void 0?s:t}function N7(t){let e;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);s===35||s===63?(e===void 0&&(e=t.substr(0,i)),e+=tf[s]):e!==void 0&&(e+=t[i])}return e!==void 0?e:t}function al(t,e){let i;return t.authority&&t.path.length>1&&t.scheme==="file"?i=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,B&&(i=i.replace(/\//g,"\\")),i}function Xd(t,e){const i=e?N7:yg;let s="",{scheme:r,authority:n,path:o,query:a,fragment:c}=t;if(r&&(s+=r,s+=":"),(n||r==="file")&&(s+=Mi,s+=Mi),n){let l=n.indexOf("@");if(l!==-1){const h=n.substr(0,l);n=n.substr(l+1),l=h.lastIndexOf(":"),l===-1?s+=i(h,!1,!1):(s+=i(h.substr(0,l),!1,!1),s+=":",s+=i(h.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+=e?c:yg(c,!1,!1)),s}function bg(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+bg(t.substr(3)):t}}function cl(t){return t.match(sf)?t.replace(sf,e=>bg(e)):t}var kg,Sg,Eg,Te,Mi,xg,$,ef,Br,tf,sf,re=v({"out-build/vs/base/common/uri.js"(){"use strict";ge(),G(),kg=/^\w[\w\d+.-]*$/,Sg=/^\//,Eg=/^\/\//,Te="",Mi="/",xg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,$=class rd{static isUri(e){return e instanceof rd?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,i,s,r,n,o=!1){typeof e=="object"?(this.scheme=e.scheme||Te,this.authority=e.authority||Te,this.path=e.path||Te,this.query=e.query||Te,this.fragment=e.fragment||Te):(this.scheme=M7(e,o),this.authority=i||Te,this.path=F7(this.scheme,s||Te),this.query=r||Te,this.fragment=n||Te,L7(this,o))}get fsPath(){return al(this,!1)}with(e){if(!e)return this;let{scheme:i,authority:s,path:r,query:n,fragment:o}=e;return i===void 0?i=this.scheme:i===null&&(i=Te),s===void 0?s=this.authority:s===null&&(s=Te),r===void 0?r=this.path:r===null&&(r=Te),n===void 0?n=this.query:n===null&&(n=Te),o===void 0?o=this.fragment:o===null&&(o=Te),i===this.scheme&&s===this.authority&&r===this.path&&n===this.query&&o===this.fragment?this:new Br(i,s,r,n,o)}static parse(e,i=!1){const s=xg.exec(e);return s?new Br(s[2]||Te,cl(s[4]||Te),cl(s[5]||Te),cl(s[7]||Te),cl(s[9]||Te),i):new Br(Te,Te,Te,Te,Te)}static file(e){let i=Te;if(B&&(e=e.replace(/\\/g,Mi)),e[0]===Mi&&e[1]===Mi){const s=e.indexOf(Mi,2);s===-1?(i=e.substring(2),e=Mi):(i=e.substring(2,s),e=e.substring(s)||Mi)}return new Br("file",i,e,Te,Te)}static from(e,i){return new Br(e.scheme,e.authority,e.path,e.query,e.fragment,i)}static joinPath(e,...i){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let s;return B&&e.scheme==="file"?s=rd.file(Ge.join(al(e,!0),...i)).path:s=ce.join(e.path,...i),e.with({path:s})}toString(e=!1){return Xd(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof rd)return e;{const i=new Br(e);return i._formatted=e.external??null,i._fsPath=e._sep===ef?e.fsPath??null:null,i}}else return e}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}},ef=B?1:void 0,Br=class extends ${constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=al(this,!1)),this._fsPath}toString(t=!1){return t?Xd(this,!0):(this._formatted||(this._formatted=Xd(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=ef),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},tf={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"},sf=/(%[0-9A-Za-z][0-9A-Za-z])+/g}});function W7(t,e){return $.isUri(t)?Bs(t.scheme,e):rl(t,e+":")}function _7(t,...e){return e.some(i=>W7(t,i))}function T7(t){return`${t.quality??"oss"}-${t.commit??"dev"}`}var O,Pg,$g,rf,sa,Ag,ei,Dg,Ig,ra,Oe=v({"out-build/vs/base/common/network.js"(){"use strict";De(),G(),xt(),re(),ge(),function(t){t.inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.vscodeManagedRemoteResource="vscode-managed-remote-resource",t.vscodeUserData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",t.vscodeNotebookMetadata="vscode-notebook-metadata",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.vscodeChatCodeBlock="vscode-chat-code-block",t.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",t.vscodeChatSesssion="vscode-chat-editor",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp",t.vsls="vsls",t.vscodeSourceControl="vscode-scm",t.commentsInput="comment",t.codeSetting="code-setting",t.outputChannel="output",t.accessibleView="accessible-view"}(O||(O={})),Pg="tkn",$g=class{constructor(){this.a=Object.create(null),this.b=Object.create(null),this.c=Object.create(null),this.d="http",this.e=null,this.f="/"}setPreferredWebSchema(t){this.d=t}setDelegate(t){this.e=t}setServerRootPath(t,e){this.f=ce.join(e??"/",T7(t))}getServerRootPath(){return this.f}get g(){return ce.join(this.f,O.vscodeRemoteResource)}set(t,e,i){this.a[t]=e,this.b[t]=i}setConnectionToken(t,e){this.c[t]=e}getPreferredWebSchema(){return this.d}rewrite(t){if(this.e)try{return this.e(t)}catch(o){return Ct(o),t}const e=t.authority;let i=this.a[e];i&&i.indexOf(":")!==-1&&i.indexOf("[")===-1&&(i=`[${i}]`);const s=this.b[e],r=this.c[e];let n=`path=${encodeURIComponent(t.path)}`;return typeof r=="string"&&(n+=`&${Pg}=${encodeURIComponent(r)}`),$.from({scheme:Vi?this.d:O.vscodeRemoteResource,authority:`${i}:${s}`,path:this.g,query:n})}},rf=new $g,sa="vscode-app",Ag=class nd{static{this.a=sa}asBrowserUri(e){const i=this.b(e);return this.uriToBrowserUri(i)}uriToBrowserUri(e){return e.scheme===O.vscodeRemote?rf.rewrite(e):e.scheme===O.file&&(Id||i0===`${O.vscodeFileResource}://${nd.a}`)?e.with({scheme:O.vscodeFileResource,authority:e.authority||nd.a,query:null,fragment:null}):e}asFileUri(e){const i=this.b(e);return this.uriToFileUri(i)}uriToFileUri(e){return e.scheme===O.vscodeFileResource?e.with({scheme:O.file,authority:e.authority!==nd.a?e.authority:null,query:null,fragment:null}):e}b(e){if($.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const i=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(i))return $.joinPath($.parse(i,!0),e);const s=M(i,e);return $.file(s)}throw new Error("Cannot determine URI for module id!")}},ei=new Ag,Dg=Object.freeze({"Cache-Control":"no-cache, no-store"}),Ig=Object.freeze({"Document-Policy":"include-js-call-stacks-in-crash-reports"}),function(t){const e=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);t.CoopAndCoep=Object.freeze(e.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:$.isUri(n)&&(o=new URL(n.toString(!0)).searchParams);const a=o?.get(i);if(a)return e.get(a)}t.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}t.addSearchParam=r}(ra||(ra={}))}});function pi(t){return al(t,!0)}var na,Ee,Ze,nf,of,af,B7,U7,as,Cg,Rg,pe,cf,j7,z7,Og,ti,lf,Lg,H7,Mg,et=v({"out-build/vs/base/common/resources.js"(){"use strict";ki(),Oe(),ge(),G(),xt(),re(),na=class{constructor(t){this.a=t}compare(t,e,i=!1){return t===e?0:Kd(this.getComparisonKey(t,i),this.getComparisonKey(e,i))}isEqual(t,e,i=!1){return t===e?!0:!t||!e?!1:this.getComparisonKey(t,i)===this.getComparisonKey(e,i)}getComparisonKey(t,e=!1){return t.with({path:this.a(t)?t.path.toLowerCase():void 0,fragment:e?null:void 0}).toString()}ignorePathCasing(t){return this.a(t)}isEqualOrParent(t,e,i=!1){if(t.scheme===e.scheme){if(t.scheme===O.file)return ia(pi(t),pi(e),this.a(t))&&t.query===e.query&&(i||t.fragment===e.fragment);if(ti(t.authority,e.authority))return ia(t.path,e.path,this.a(t),"/")&&t.query===e.query&&(i||t.fragment===e.fragment)}return!1}joinPath(t,...e){return $.joinPath(t,...e)}basenameOrAuthority(t){return as(t)||t.authority}basename(t){return ce.basename(t.path)}extname(t){return ce.extname(t.path)}dirname(t){if(t.path.length===0)return t;let e;return t.scheme===O.file?e=$.file(dt(pi(t))).path:(e=ce.dirname(t.path),t.authority&&e.length&&e.charCodeAt(0)!==47&&(console.error(`dirname("${t.toString})) resulted in a relative path`),e="/")),t.with({path:e})}normalizePath(t){if(!t.path.length)return t;let e;return t.scheme===O.file?e=$.file(Zt(pi(t))).path:e=ce.normalize(t.path),t.with({path:e})}relativePath(t,e){if(t.scheme!==e.scheme||!ti(t.authority,e.authority))return;if(t.scheme===O.file){const r=Fd(pi(t),pi(e));return B?Ln(r):r}let i=t.path||"/";const s=e.path||"/";if(this.a(t)){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 ce.relative(i,s)}resolvePath(t,e){if(t.scheme===O.file){const i=$.file(nr(pi(t),e));return t.with({authority:i.authority,path:i.path})}return e=I7(e),t.with({path:ce.resolve(t.path,e)})}isAbsolutePath(t){return!!t.path&&t.path[0]==="/"}isEqualAuthority(t,e){return t===e||t!==void 0&&e!==void 0&&Bs(t,e)}hasTrailingPathSeparator(t,e=Ft){if(t.scheme===O.file){const i=pi(t);return i.length>hg(i).length&&i[i.length-1]===e}else{const i=t.path;return i.length>1&&i.charCodeAt(i.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(t.fsPath)}}removeTrailingPathSeparator(t,e=Ft){return lf(t,e)?t.with({path:t.path.substr(0,t.path.length-1)}):t}addTrailingPathSeparator(t,e=Ft){let i=!1;if(t.scheme===O.file){const s=pi(t);i=s!==void 0&&s.length===hg(s).length&&s[s.length-1]===e}else{e="/";const s=t.path;i=s.length===1&&s.charCodeAt(s.length-1)===47}return!i&&!lf(t,e)?t.with({path:t.path+"/"}):t}},Ee=new na(()=>!1),Ze=new na(t=>t.scheme===O.file?!Se:!0),nf=new na(t=>!0),of=Ee.isEqual.bind(Ee),af=Ee.isEqualOrParent.bind(Ee),B7=Ee.getComparisonKey.bind(Ee),U7=Ee.basenameOrAuthority.bind(Ee),as=Ee.basename.bind(Ee),Cg=Ee.extname.bind(Ee),Rg=Ee.dirname.bind(Ee),pe=Ee.joinPath.bind(Ee),cf=Ee.normalizePath.bind(Ee),j7=Ee.relativePath.bind(Ee),z7=Ee.resolvePath.bind(Ee),Og=Ee.isAbsolutePath.bind(Ee),ti=Ee.isEqualAuthority.bind(Ee),lf=Ee.hasTrailingPathSeparator.bind(Ee),Lg=Ee.removeTrailingPathSeparator.bind(Ee),H7=Ee.addTrailingPathSeparator.bind(Ee),function(t){t.META_DATA_LABEL="label",t.META_DATA_DESCRIPTION="description",t.META_DATA_SIZE="size",t.META_DATA_MIME="mime";function e(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(t.META_DATA_MIME,n),s}t.parseMetaData=e}(Mg||(Mg={}))}}),Fg,V7=v({"out-build/vs/base/common/symbols.js"(){"use strict";Fg=Symbol("MicrotaskDelay")}});function hf(t){return!!t&&typeof t.then=="function"}function Mn(t){const e=new Ji,i=t(e.token);let s=!1;const r=new Promise((n,o)=>{const a=e.token.onCancellationRequested(()=>{s=!0,a.dispose(),o(new Yt)});Promise.resolve(i).then(c=>{a.dispose(),e.dispose(),s?T0(c)&&c.dispose():n(c)},c=>{a.dispose(),e.dispose(),o(c)})});return new class{cancel(){e.cancel(),e.dispose()}then(n,o){return r.then(n,o)}catch(n){return this.then(void 0,n)}finally(n){return r.finally(n)}}}function q7(){let t,e;return{promise:new Promise((s,r)=>{t=s,e=r}),resolve:t,reject:e}}function mi(t,e){return e?new Promise((i,s)=>{const r=setTimeout(()=>{n.dispose(),i()},t),n=e.onCancellationRequested(()=>{clearTimeout(r),n.dispose(),s(new Yt)})}):Mn(i=>mi(t,i))}function G7(t,e=0,i){const s=setTimeout(()=>{t(),i&&r.dispose()},e),r=be(()=>{clearTimeout(s),i?.delete(r)});return i?.add(r),r}function Ng(t,e=s=>!!s,i=null){let s=0;const r=t.length,n=()=>{if(s>=r)return Promise.resolve(i);const o=t[s++];return Promise.resolve(o()).then(c=>e(c)?Promise.resolve(c):n())};return n()}async function J7(t,e,i){let s;for(let r=0;r<i;r++)try{return await t()}catch(n){s=n,await mi(e)}throw s}var uf,Wg,_g,ll,Us,oa,df,Fn,ff,Ki,Tg,pf,mf,hl,Bg,Ug,jg,js,Ot,zg,K7,le=v({"out-build/vs/base/common/async.js"(){"use strict";Et(),De(),J(),T(),et(),G(),V7(),_r(),uf=class{constructor(){this.f=!1,this.a=null,this.b=null,this.d=null}queue(t){if(this.f)return Promise.reject(new Error("Throttler is disposed"));if(this.a){if(this.d=t,!this.b){const e=()=>{if(this.b=null,this.f)return;const i=this.queue(this.d);return this.d=null,i};this.b=new Promise(i=>{this.a.then(e,e).then(i)})}return new Promise((e,i)=>{this.b.then(e,i)})}return this.a=t(),new Promise((e,i)=>{this.a.then(s=>{this.a=null,e(s)},s=>{this.a=null,i(s)})})}dispose(){this.f=!0}},Wg=(t,e)=>{let i=!0;const s=setTimeout(()=>{i=!1,e()},t);return{isTriggered:()=>i,dispose:()=>{clearTimeout(s),i=!1}}},_g=t=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,t())}),{isTriggered:()=>e,dispose:()=>{e=!1}}},ll=class{constructor(t){this.defaultDelay=t,this.a=null,this.b=null,this.d=null,this.f=null,this.g=null}trigger(t,e=this.defaultDelay){this.g=t,this.h(),this.b||(this.b=new Promise((s,r)=>{this.d=s,this.f=r}).then(()=>{if(this.b=null,this.d=null,this.g){const s=this.g;return this.g=null,s()}}));const i=()=>{this.a=null,this.d?.(null)};return this.a=e===Fg?_g(i):Wg(e,i),this.b}isTriggered(){return!!this.a?.isTriggered()}cancel(){this.h(),this.b&&(this.f?.(new Yt),this.b=null)}h(){this.a?.dispose(),this.a=null}dispose(){this.cancel()}},Us=class{constructor(t){this.a=new ll(t),this.b=new uf}trigger(t,e){return this.a.trigger(()=>this.b.queue(t),e)}isTriggered(){return this.a.isTriggered()}cancel(){this.a.cancel()}dispose(){this.a.dispose(),this.b.dispose()}},oa=class{constructor(){this.a=!1,this.b=new Promise((t,e)=>{this.d=t})}isOpen(){return this.a}open(){this.a=!0,this.d(!0)}wait(){return this.b}},df=class{constructor(t){this.a=0,this.b=!1,this.f=t,this.g=[],this.d=0,this.h=new D}whenIdle(){return this.size>0?x.toPromise(this.onDrained):Promise.resolve()}get onDrained(){return this.h.event}get size(){return this.a}queue(t){if(this.b)throw new Error("Object has been disposed");return this.a++,new Promise((e,i)=>{this.g.push({factory:t,c:e,e:i}),this.j()})}j(){for(;this.g.length&&this.d<this.f;){const t=this.g.shift();this.d++;const e=t.factory();e.then(t.c,t.e),e.then(()=>this.k(),()=>this.k())}}k(){this.b||(this.d--,--this.a===0&&this.h.fire(),this.g.length>0&&this.j())}clear(){if(this.b)throw new Error("Object has been disposed");this.g.length=0,this.a=this.d}dispose(){this.b=!0,this.g.length=0,this.a=0,this.h.dispose()}},Fn=class extends df{constructor(){super(1)}},ff=class{constructor(){this.a=new Map,this.b=new Set,this.d=void 0,this.f=0}async whenDrained(){if(this.g())return;const t=new js;return this.b.add(t),t.p}g(){for(const[,t]of this.a)if(t.size>0)return!1;return!0}queueSize(t,e=Ee){const i=e.getComparisonKey(t);return this.a.get(i)?.size??0}queueFor(t,e,i=Ee){const s=i.getComparisonKey(t);let r=this.a.get(s);if(!r){r=new Fn;const n=this.f++,o=x.once(r.onDrained)(()=>{r?.dispose(),this.a.delete(s),this.h(),this.d?.deleteAndDispose(n),this.d?.size===0&&(this.d.dispose(),this.d=void 0)});this.d||(this.d=new zd),this.d.set(n,o),this.a.set(s,r)}return r.queue(e)}h(){this.g()&&this.j()}j(){for(const t of this.b)t.complete();this.b.clear()}dispose(){for(const[,t]of this.a)t.dispose();this.a.clear(),this.j(),this.d?.dispose()}},Ki=class{constructor(t,e){this.b=void 0,this.a=t,this.d=e,this.f=this.g.bind(this)}dispose(){this.cancel(),this.a=null}cancel(){this.isScheduled()&&(clearTimeout(this.b),this.b=void 0)}schedule(t=this.d){this.cancel(),this.b=setTimeout(this.f,t)}get delay(){return this.d}set delay(t){this.d=t}isScheduled(){return this.b!==void 0}flush(){this.isScheduled()&&(this.cancel(),this.h())}g(){this.b=void 0,this.a&&this.h()}h(){this.a?.()}},Tg=class extends Ki{constructor(t,e){super(t,e),this.j=[]}work(t){this.j.push(t),this.isScheduled()||this.schedule()}h(){const t=this.j;this.j=[],this.a?.(t)}dispose(){this.j=[],super.dispose()}},pf=class extends j{constructor(t,e){super(),this.h=t,this.j=e,this.a=[],this.b=this.B(new or),this.f=!1,this.g=0}get pending(){return this.a.length}work(t){if(this.f)return!1;if(typeof this.h.maxBufferedWork=="number"){if(this.b.value){if(this.pending+t.length>this.h.maxBufferedWork)return!1}else if(this.pending+t.length-this.h.maxWorkChunkSize>this.h.maxBufferedWork)return!1}for(const i of t)this.a.push(i);const e=Date.now()-this.g;return!this.b.value&&(!this.h.waitThrottleDelayBetweenWorkUnits||e>=this.h.throttleDelay)?this.m():!this.b.value&&this.h.waitThrottleDelayBetweenWorkUnits&&this.r(Math.max(this.h.throttleDelay-e,0)),!0}m(){this.g=Date.now(),this.j(this.a.splice(0,this.h.maxWorkChunkSize)),this.a.length>0&&this.r()}r(t=this.h.throttleDelay){this.b.value=new Ki(()=>{this.b.clear(),this.m()},t),this.b.value.schedule()}dispose(){super.dispose(),this.a.length=0,this.f=!0}},function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?hl=(t,e,i)=>{o0(()=>{if(s)return;const r=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,r-Date.now())}}))});let s=!1;return{dispose(){s||(s=!0)}}}:hl=(t,e,i)=>{const s=t.requestIdleCallback(e,typeof i=="number"?{timeout:i}:void 0);let r=!1;return{dispose(){r||(r=!0,t.cancelIdleCallback(s))}}},mf=(t,e)=>hl(globalThis,t,e)}(),Bg=class{constructor(t,e){this.g=!1,this.d=()=>{try{this.j=e()}catch(i){this.l=i}finally{this.g=!0}},this.f=hl(t,()=>this.d())}dispose(){this.f.dispose()}get value(){if(this.g||(this.f.dispose(),this.d()),this.l)throw this.l;return this.j}get isInitialized(){return this.g}},Ug=class extends Bg{constructor(t){super(globalThis,t)}},function(t){t[t.Resolved=0]="Resolved",t[t.Rejected=1]="Rejected"}(jg||(jg={})),js=class{get isRejected(){return this.d?.outcome===1}get isResolved(){return this.d?.outcome===0}get isSettled(){return!!this.d}get value(){return this.d?.outcome===0?this.d?.value:void 0}constructor(){this.p=new Promise((t,e)=>{this.a=t,this.b=e})}complete(t){return new Promise(e=>{this.a(t),this.d={outcome:0,value:t},e()})}error(t){return new Promise(e=>{this.b(t),this.d={outcome:1,value:t},e()})}settleWith(t){return t.then(e=>this.complete(e),e=>this.error(e))}cancel(){return this.error(new Yt)}},function(t){async function e(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}t.settled=e;function i(s){return new Promise(async(r,n)=>{try{await s(r,n)}catch(o){n(o)}})}t.withAsyncBody=i}(Ot||(Ot={})),function(t){t[t.Initial=0]="Initial",t[t.DoneOK=1]="DoneOK",t[t.DoneError=2]="DoneError"}(zg||(zg={})),K7=class Ii{static fromArray(e){return new Ii(i=>{i.emitMany(e)})}static fromPromise(e){return new Ii(async i=>{i.emitMany(await e)})}static fromPromisesResolveOrder(e){return new Ii(async i=>{await Promise.all(e.map(async s=>i.emitOne(await s)))})}static merge(e){return new Ii(async i=>{await Promise.all(e.map(async s=>{for await(const r of s)i.emitOne(r)}))})}static{this.EMPTY=Ii.fromArray([])}constructor(e,i){this.a=0,this.b=[],this.d=null,this.f=i,this.g=new D,queueMicrotask(async()=>{const s={emitOne:r=>this.h(r),emitMany:r=>this.j(r),reject:r=>this.l(r)};try{await Promise.resolve(e(s)),this.k()}catch(r){this.l(r)}finally{s.emitOne=void 0,s.emitMany=void 0,s.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this.a===2)throw this.d;if(e<this.b.length)return{done:!1,value:this.b[e++]};if(this.a===1)return{done:!0,value:void 0};await x.toPromise(this.g.event)}while(!0)},return:async()=>(this.f?.(),{done:!0,value:void 0})}}static map(e,i){return new Ii(async s=>{for await(const r of e)s.emitOne(i(r))})}map(e){return Ii.map(this,e)}static filter(e,i){return new Ii(async s=>{for await(const r of e)i(r)&&s.emitOne(r)})}filter(e){return Ii.filter(this,e)}static coalesce(e){return Ii.filter(e,i=>!!i)}coalesce(){return Ii.coalesce(this)}static async toPromise(e){const i=[];for await(const s of e)i.push(s);return i}toPromise(){return Ii.toPromise(this)}h(e){this.a===0&&(this.b.push(e),this.g.fire())}j(e){this.a===0&&(this.b=this.b.concat(e),this.g.fire())}k(){this.a===0&&(this.a=1,this.g.fire())}l(e){this.a===0&&(this.a=2,this.d=e,this.g.fire())}}}});function Nn(t){return Z7(t,"NFC",Hg)}function Z7(t,e,i){if(!t)return t;const s=i.get(t);if(s)return s;let r;return Vg.test(t)?r=t.normalize(e):r=t,i.set(t,r),r}var Hg,Y7,Vg,ul=v({"out-build/vs/base/common/normalization.js"(){"use strict";Qt(),Hg=new Xc(1e4),Y7=new Xc(1e4),Vg=/[^\u0000-\u0080]/}});import*as Me from"fs";import{tmpdir as Q7}from"os";import{promisify as aa}from"util";async function qg(t,e=Ur.UNLINK,i){if(O7(t))throw new Error("rimraf - will refuse to recursively delete root");return e===Ur.UNLINK?gf(t):X7(t,i)}async function X7(t,e=ol(Q7())){try{try{await Me.promises.rename(t,e)}catch(i){return i.code==="ENOENT"?void 0:gf(t)}gf(e).catch(i=>{})}catch(i){if(i.code!=="ENOENT")throw i}}async function gf(t){return Me.promises.rm(t,{recursive:!0,force:!0,maxRetries:3})}async function dl(t,e){return t8(await(e?e8(t):Me.promises.readdir(t)))}async function e8(t){try{return await Me.promises.readdir(t,{withFileTypes:!0})}catch(s){console.warn("[node.js fs] readdir with filetypes failed with error: ",s)}const e=[],i=await dl(t);for(const s of i){let r=!1,n=!1,o=!1;try{const a=await Me.promises.lstat(M(t,s));r=a.isFile(),n=a.isDirectory(),o=a.isSymbolicLink()}catch(a){console.warn("[node.js fs] unexpected error from lstat after readdir: ",a)}e.push({name:s,isFile:()=>r,isDirectory:()=>n,isSymbolicLink:()=>o})}return e}function t8(t){return t.map(e=>typeof e=="string"?N?Nn(e):e:(e.name=N?Nn(e.name):e.name,e))}async function i8(t){const e=await dl(t),i=[];for(const s of e)await Nt.existsDirectory(M(t,s))&&i.push(s);return i}function s8(t,e=1e3){return new Promise(i=>{let s=!1;const r=setInterval(()=>{s||(s=!0,Me.access(t,n=>{s=!1,n&&(clearInterval(r),i(void 0))}))},e)})}function r8(t,e,i){return Zg.queueFor($.file(t),()=>{const s=a8(i);return new Promise((r,n)=>o8(t,e,s,o=>o?n(o):r()))},Ze)}function n8(t){wf=t}function o8(t,e,i,s){if(!wf)return Me.writeFile(t,e,{mode:i.mode,flag:i.flag},s);Me.open(t,i.flag,i.mode,(r,n)=>{if(r)return s(r);Me.writeFile(n,e,o=>{if(o)return Me.close(n,()=>s(o));Me.fdatasync(n,a=>(a&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",a),n8(!1)),Me.close(n,c=>s(c))))})})}function a8(t){return t?{mode:typeof t.mode=="number"?t.mode:438,flag:typeof t.flag=="string"?t.flag:"w"}:{mode:438,flag:"w"}}async function c8(t,e,i=6e4){if(t!==e)try{B&&typeof i=="number"?await Gg(t,e,Date.now(),i):await Me.promises.rename(t,e)}catch(s){if(t.toLowerCase()!==e.toLowerCase()&&s.code==="EXDEV"||t.endsWith("."))await Jg(t,e,{preserveSymlinks:!1}),await qg(t,Ur.MOVE);else throw s}}async function Gg(t,e,i,s,r=0){try{return await Me.promises.rename(t,e)}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 Nt.stat(e);a.isFile()||(o=!0)}catch{}if(o)throw n}return await mi(Math.min(100,r*10)),Gg(t,e,i,s,r+1)}}async function Jg(t,e,i){return Kg(t,e,{root:{source:t,target:e},options:i,handledSourcePaths:new Set})}async function Kg(t,e,i){if(i.handledSourcePaths.has(t))return;i.handledSourcePaths.add(t);const{stat:s,symbolicLink:r}=await Nt.stat(t);if(r){if(i.options.preserveSymlinks)try{return await u8(t,e,i)}catch{}if(r.dangling)return}return s.isDirectory()?l8(t,e,s.mode&vf,i):h8(t,e,s.mode&vf)}async function l8(t,e,i,s){await Me.promises.mkdir(e,{recursive:!0,mode:i});const r=await dl(t);for(const n of r)await Kg(M(t,n),M(e,n),s)}async function h8(t,e,i){await Me.promises.copyFile(t,e),await Me.promises.chmod(e,i)}async function u8(t,e,i){let s=await Me.promises.readlink(t);ia(s,i.root.source,!Se)&&(s=M(i.root.target,s.substr(i.root.source.length+1))),await Me.promises.symlink(s,e)}var Ur,Nt,Zg,wf,vf,te,gt=v({"out-build/vs/base/node/pfs.js"(){"use strict";le(),ki(),ul(),ge(),G(),et(),re(),function(t){t[t.UNLINK=0]="UNLINK",t[t.MOVE=1]="MOVE"}(Ur||(Ur={})),function(t){async function e(r){let n;try{if(n=await Me.promises.lstat(r),!n.isSymbolicLink())return{stat:n}}catch{}try{return{stat:await Me.promises.stat(r),symbolicLink:n?.isSymbolicLink()?{dangling:!1}:void 0}}catch(o){if(o.code==="ENOENT"&&n)return{stat:n,symbolicLink:{dangling:!0}};if(B&&o.code==="EACCES")try{return{stat:await Me.promises.stat(await Me.promises.readlink(r)),symbolicLink:{dangling:!1}}}catch(a){if(a.code==="ENOENT"&&n)return{stat:n,symbolicLink:{dangling:!0}};throw a}throw o}}t.stat=e;async function i(r){try{const{stat:n,symbolicLink:o}=await t.stat(r);return n.isFile()&&o?.dangling!==!0}catch{}return!1}t.existsFile=i;async function s(r){try{const{stat:n,symbolicLink:o}=await t.stat(r);return n.isDirectory()&&o?.dangling!==!0}catch{}return!1}t.existsDirectory=s}(Nt||(Nt={})),Zg=new ff,wf=!0,vf=511,te=new class{get read(){return(t,e,i,s,r)=>new Promise((n,o)=>{Me.read(t,e,i,s,r,(a,c,l)=>a?o(a):n({bytesRead:c,buffer:l}))})}get write(){return(t,e,i,s,r)=>new Promise((n,o)=>{Me.write(t,e,i,s,r,(a,c,l)=>a?o(a):n({bytesWritten:c,buffer:l}))})}get fdatasync(){return aa(Me.fdatasync)}get open(){return aa(Me.open)}get close(){return aa(Me.close)}get realpath(){return aa(Me.realpath)}get ftruncate(){return aa(Me.ftruncate)}async exists(t){try{return await Me.promises.access(t),!0}catch{return!1}}get readdir(){return dl}get readDirsInDir(){return i8}get writeFile(){return r8}get rm(){return qg}get rename(){return c8}get copy(){return Jg}}}});function d8(){const t=Yg();return t?Array.from(t):[]}function Yg(){return process.uncHostAllowlist}function ca(t){if(process.platform!=="win32")return;const e=Yg();if(e)if(typeof t=="string")e.add(t.toLowerCase());else for(const i of f8(t))ca(i)}function f8(t){const e=new Set;if(Array.isArray(t))for(const i of t)typeof i=="string"&&e.add(i);return Array.from(e)}function Qg(t){if(typeof t!="string")return;const e=["\\\\.\\UNC\\","\\\\?\\UNC\\","\\\\"];let i;for(const s of e){if(t.indexOf(s)!==0)continue;const n=t.indexOf("\\",s.length);if(n===-1)continue;const o=t.substring(s.length,n);if(o){i=o;break}}return i}function p8(){process.platform==="win32"&&(process.restrictUNCAccess=!1)}function m8(){return process.platform!=="win32"?!0:process.restrictUNCAccess===!1}var la=v({"out-build/vs/base/node/unc.js"(){"use strict"}});function g8(t,e,i){e[Zi.DI_TARGET]===e?e[Zi.DI_DEPENDENCIES].push({id:t,index:i}):(e[Zi.DI_DEPENDENCIES]=[{id:t,index:i}],e[Zi.DI_TARGET]=e)}function V(t){if(Zi.serviceIds.has(t))return Zi.serviceIds.get(t);const e=function(i,s,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");g8(e,i,r)};return e.toString=()=>t,Zi.serviceIds.set(t,e),e}function JI(t){return t}var Zi,cs,Z=v({"out-build/vs/platform/instantiation/common/instantiation.js"(){"use strict";(function(t){t.serviceIds=new Map,t.DI_TARGET="$di$target",t.DI_DEPENDENCIES="$di$dependencies";function e(i){return i[t.DI_DEPENDENCIES]||[]}t.getServiceDependencies=e})(Zi||(Zi={})),cs=V("instantiationService")}});function yf(t){return t&&typeof t=="object"&&(!t.overrideIdentifier||typeof t.overrideIdentifier=="string")&&(!t.resource||t.resource instanceof $)}function w8(t){return t&&typeof t=="object"&&(!t.overrideIdentifiers||Array.isArray(t.overrideIdentifiers))&&!t.overrideIdentifier&&(!t.resource||t.resource instanceof $)}function bf(t,e){const i=Object.create(null);for(const s in t)Xg(i,s,t[s],e);return i}function Xg(t,e,i,s){const r=e.split("."),n=r.pop();let o=t;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 ${e} as ${r.slice(0,a+1).join(".")} is null`);return}break;default:s(`Ignoring ${e} 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 ${e} as ${r.join(".")} is ${JSON.stringify(o)}`)}else s(`Ignoring ${e} as ${r.join(".")} is ${JSON.stringify(o)}`)}function v8(t,e){const i=e.split(".");ew(t,i)}function ew(t,e){if(!t)return;const i=e.shift();if(e.length===0){delete t[i];return}if(Object.keys(t).indexOf(i)!==-1){const s=t[i];typeof s=="object"&&!Array.isArray(s)&&(ew(s,e),Object.keys(s).length===0&&delete t[i])}}function fl(t,e,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=e.split("."),n=s(t,r);return typeof n>"u"?i:n}function y8(t){return t.replace(/[\[\]]/g,"")}var Be,tw,Ue=v({"out-build/vs/platform/configuration/common/configuration.js"(){"use strict";qo(),$e(),re(),Z(),Be=V("configurationService"),function(t){t[t.APPLICATION=1]="APPLICATION",t[t.USER=2]="USER",t[t.USER_LOCAL=3]="USER_LOCAL",t[t.USER_REMOTE=4]="USER_REMOTE",t[t.WORKSPACE=5]="WORKSPACE",t[t.WORKSPACE_FOLDER=6]="WORKSPACE_FOLDER",t[t.DEFAULT=7]="DEFAULT",t[t.MEMORY=8]="MEMORY"}(tw||(tw={}))}});function b8(t){let e=!1;const i=new Map,s=new Map;if(k8(t,h=>{if(t===h)return!0;const u=JSON.stringify(h);if(u.length<30)return!0;const f=i.get(u);if(!f){const p={schemas:[h]};return i.set(u,p),s.set(h,p),!0}return f.schemas.push(h),s.set(h,f),e=!0,!1}),i.clear(),!e)return JSON.stringify(t);let n="$defs";for(;t.hasOwnProperty(n);)n+="_";const o=[];function a(h){return JSON.stringify(h,(u,f)=>{if(f!==h){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(t),l=[];for(let h=0;h<o.length;h++)l.push(`"_${h}":${a(o[h])}`);return l.length?`${c.substring(0,c.length-1)},"${n}":{${l.join(",")}}}`:c}function Wn(t){return typeof t=="object"&&t!==null}function k8(t,e){if(!t||typeof t!="object")return;const i=(...c)=>{for(const l of c)Wn(l)&&o.push(l)},s=(...c)=>{for(const l of c)if(Wn(l))for(const h in l){const u=l[h];Wn(u)&&o.push(u)}},r=(...c)=>{for(const l of c)if(Array.isArray(l))for(const h of l)Wn(h)&&o.push(h)},n=c=>{if(Array.isArray(c))for(const l of c)Wn(l)&&o.push(l);else Wn(c)&&o.push(c)},o=[t];let a=o.pop();for(;a;)e(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 S8=v({"out-build/vs/base/common/jsonSchema.js"(){"use strict"}}),iw,zt,ls=v({"out-build/vs/platform/registry/common/platform.js"(){"use strict";qo(),$e(),iw=class{constructor(){this.a=new Map}add(t,e){Bd(pt(t)),Bd(St(e)),Bd(!this.a.has(t),"There is already an extension with this id"),this.a.set(t,e)}knows(t){return this.a.has(t)}as(t){return this.a.get(t)||null}dispose(){this.a.forEach(t=>{jd(t.dispose)&&t.dispose()}),this.a.clear()}},zt=new iw}});function sw(t){return t.length>0&&t.charAt(t.length-1)==="#"?t.substring(0,t.length-1):t}var kf,rw,nw,E8=v({"out-build/vs/platform/jsonschemas/common/jsonContributionRegistry.js"(){"use strict";J(),S8(),T(),ls(),kf={JSONContribution:"base.contributions.json"},rw=class extends j{constructor(){super(...arguments),this.a={},this.b={},this.c=this.B(new D),this.onDidChangeSchema=this.c.event,this.f=this.B(new D),this.onDidChangeSchemaAssociations=this.f.event}registerSchema(t,e,i){const s=sw(t);this.a[s]=e,this.c.fire(t),i&&i.add(be(()=>{delete this.a[s],this.c.fire(t)}))}registerSchemaAssociation(t,e){const i=sw(t);return this.b[i]||(this.b[i]=[]),this.b[i].includes(e)||(this.b[i].push(e),this.f.fire()),be(()=>{const s=this.b[i];if(s){const r=s.indexOf(e);r!==-1&&(s.splice(r,1),s.length===0&&delete this.b[i],this.f.fire())}})}notifySchemaChanged(t){this.c.fire(t)}getSchemaContributions(){return{schemas:this.a}}getSchemaContent(t){const e=this.a[t];return e?b8(e):void 0}hasSchemaContent(t){return!!this.a[t]}getSchemaAssociations(){return this.b}},nw=new rw,zt.add(kf.JSONContribution,nw)}});function ha(t){const e=[];if(hs.test(t)){let i=Ef.exec(t);for(;i?.length;){const s=i[1].trim();s&&e.push(s),i=Ef.exec(t)}}return Gi(e)}function x8(t){return t.reduce((e,i)=>`${e}[${i}]`,"")}function P8(t){switch(Array.isArray(t)?t[0]:t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function $8(t,e){return t.trim()?hs.test(t)?g(1794,null,t):va.getConfigurationProperties()[t]!==void 0?g(1795,null,t):e.policy?.name&&va.getPolicyConfigurations().get(e.policy?.name)!==void 0?g(1796,null,t,e.policy?.name,va.getPolicyConfigurations().get(e.policy?.name)):null:g(1793,null)}var ow,Si,aw,ua,da,fa,pa,ma,ga,_n,cr,wa,cw,Sf,Ef,zs,hs,va,lr=v({"out-build/vs/platform/configuration/common/configurationRegistry.js"(){"use strict";kt(),J(),$e(),we(),Ue(),E8(),ls(),T(),function(t){t.Multiline="multilineText",t.Singleline="singlelineText"}(ow||(ow={})),Si={Configuration:"base.contributions.configuration"},function(t){t[t.APPLICATION=1]="APPLICATION",t[t.MACHINE=2]="MACHINE",t[t.APPLICATION_MACHINE=3]="APPLICATION_MACHINE",t[t.WINDOW=4]="WINDOW",t[t.RESOURCE=5]="RESOURCE",t[t.LANGUAGE_OVERRIDABLE=6]="LANGUAGE_OVERRIDABLE",t[t.MACHINE_OVERRIDABLE=7]="MACHINE_OVERRIDABLE"}(aw||(aw={})),ua={properties:{},patternProperties:{}},da={properties:{},patternProperties:{}},fa={properties:{},patternProperties:{}},pa={properties:{},patternProperties:{}},ma={properties:{},patternProperties:{}},ga={properties:{},patternProperties:{}},_n={properties:{},patternProperties:{}},cr="vscode://schemas/settings/resourceLanguage",wa=zt.as(kf.JSONContribution),cw=class extends j{constructor(){super(),this.a=[],this.n=new Set,this.r=this.B(new D),this.onDidSchemaChange=this.r.event,this.s=this.B(new D),this.onDidUpdateConfiguration=this.s.event,this.b=new Map,this.c={id:"defaultOverrides",title:g(1787,null),properties:{}},this.f=[this.c],this.m={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.g={},this.h=new Map,this.j={},wa.registerSchema(cr,this.m),this.N()}registerConfiguration(t,e=!0){return this.registerConfigurations([t],e),t}registerConfigurations(t,e=!0){const i=new Set;this.F(t,e,i),wa.registerSchema(cr,this.m),this.r.fire(),this.s.fire({properties:i})}deregisterConfigurations(t){const e=new Set;this.G(t,e),wa.registerSchema(cr,this.m),this.r.fire(),this.s.fire({properties:e})}updateConfigurations({add:t,remove:e}){const i=new Set;this.G(e,i),this.F(t,!1,i),wa.registerSchema(cr,this.m),this.r.fire(),this.s.fire({properties:i})}registerDefaultConfigurations(t){const e=new Set;this.u(t,e),this.r.fire(),this.s.fire({properties:e,defaultsOverrides:!0})}u(t,e){this.a.push(...t);const i=[];for(const{overrides:s,source:r}of t)for(const n in s){e.add(n);const o=this.b.get(n)??this.b.set(n,{configurationDefaultOverrides:[]}).get(n),a=s[n];if(o.configurationDefaultOverrides.push({value:a,source:r}),hs.test(n)){const c=this.z(n,a,r,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c,this.y(n,c,r),i.push(...ha(n))}else{const c=this.C(n,a,r,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c;const l=this.g[n];l&&(this.O(n,l),this.J(n,l))}}this.D(i)}deregisterDefaultConfigurations(t){const e=new Set;this.w(t,e),this.r.fire(),this.s.fire({properties:e,defaultsOverrides:!0})}w(t,e){for(const i of t){const s=this.a.indexOf(i);s!==-1&&this.a.splice(s,1)}for(const{overrides:i,source:s}of t)for(const r in i){const n=this.b.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.b.delete(r),hs.test(r)){let a;for(const c of n.configurationDefaultOverrides)a=this.z(r,c.value,c.source,a);a&&!W0(a.value)?(n.configurationDefaultOverrideValue=a,this.y(r,a,s)):(this.b.delete(r),delete this.g[r],delete this.c.properties[r])}else{let a;for(const l of n.configurationDefaultOverrides)a=this.C(r,l.value,l.source,a);n.configurationDefaultOverrideValue=a;const c=this.g[r];c&&(this.O(r,c),this.J(r,c))}e.add(r)}}this.M()}y(t,e,i){const s={type:"object",default:e.value,description:g(1788,null,y8(t)),$ref:cr,defaultDefaultValue:e.value,source:i,defaultValueSource:i};this.g[t]=s,this.c.properties[t]=s}z(t,e,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(e)){const a=e[o];if(St(a)&&(_s(r[o])||St(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}}C(t,e,i,s){const r=this.g[t],n=s?.value??r?.defaultDefaultValue;let o=i;if(St(e)&&(r!==void 0&&r.type==="object"||r===void 0&&(_s(n)||St(n)))){if(o=s?.source??new Map,!(o instanceof Map)){console.error("defaultValueSource is not a Map");return}for(const c in e)i&&o.set(`${t}.${c}`,i);e={...St(n)?n:{},...e}}return{value:e,source:o}}deltaConfiguration(t){let e=!1;const i=new Set;t.removedDefaults&&(this.w(t.removedDefaults,i),e=!0),t.addedDefaults&&(this.u(t.addedDefaults,i),e=!0),t.removedConfigurations&&this.G(t.removedConfigurations,i),t.addedConfigurations&&this.F(t.addedConfigurations,!1,i),this.r.fire(),this.s.fire({properties:i,defaultsOverrides:e})}notifyConfigurationSchemaUpdated(...t){this.r.fire()}registerOverrideIdentifiers(t){this.D(t),this.r.fire()}D(t){for(const e of t)this.n.add(e);this.M()}F(t,e,i){t.forEach(s=>{this.H(s,e,s.extensionInfo,s.restrictedProperties,void 0,i),this.f.push(s),this.I(s)})}G(t,e){const i=s=>{if(s.properties)for(const r in s.properties){e.add(r);const n=this.g[r];n?.policy?.name&&this.h.delete(n.policy.name),delete this.g[r],this.L(r,s.properties[r])}s.allOf?.forEach(r=>i(r))};for(const s of t){i(s);const r=this.f.indexOf(s);r!==-1&&this.f.splice(r,1)}}H(t,e=!0,i,s,r=4,n){r=Xt(t.scope)?r:t.scope;const o=t.properties;if(o)for(const c in o){const l=o[c];if(e&&$8(c,l)){delete o[c];continue}l.source=i,l.defaultDefaultValue=o[c].default,this.O(c,l),hs.test(c)?l.scope=void 0:(l.scope=Xt(l.scope)?r:l.scope,l.restricted=Xt(l.restricted)?!!s?.includes(c):l.restricted);const h=o[c].hasOwnProperty("included")&&!o[c].included,u=o[c].policy?.name;h?(this.j[c]=o[c],u&&(this.h.set(u,c),n.add(c)),delete o[c]):(n.add(c),u&&this.h.set(u,c),this.g[c]=o[c],!o[c].deprecationMessage&&o[c].markdownDeprecationMessage&&(o[c].deprecationMessage=o[c].markdownDeprecationMessage))}const a=t.allOf;if(a)for(const c of a)this.H(c,e,i,s,r,n)}getConfigurations(){return this.f}getConfigurationProperties(){return this.g}getPolicyConfigurations(){return this.h}getExcludedConfigurationProperties(){return this.j}getRegisteredDefaultConfigurations(){return[...this.a]}getConfigurationDefaultsOverrides(){const t=new Map;for(const[e,i]of this.b)i.configurationDefaultOverrideValue&&t.set(e,i.configurationDefaultOverrideValue);return t}I(t){const e=i=>{const s=i.properties;if(s)for(const n in s)this.J(n,s[n]);i.allOf?.forEach(e)};e(t)}J(t,e){switch(ua.properties[t]=e,e.scope){case 1:da.properties[t]=e;break;case 2:pa.properties[t]=e;break;case 3:fa.properties[t]=e;break;case 7:ma.properties[t]=e;break;case 4:ga.properties[t]=e;break;case 5:_n.properties[t]=e;break;case 6:_n.properties[t]=e,this.m.properties[t]=e;break}}L(t,e){switch(delete ua.properties[t],e.scope){case 1:delete da.properties[t];break;case 2:delete pa.properties[t];break;case 3:delete fa.properties[t];break;case 7:delete ma.properties[t];break;case 4:delete ga.properties[t];break;case 5:case 6:delete _n.properties[t],delete this.m.properties[t];break}}M(){for(const t of this.n.values()){const e=`[${t}]`,i={type:"object",description:g(1789,null),errorMessage:g(1790,null),$ref:cr};this.O(e,i),ua.properties[e]=i,da.properties[e]=i,fa.properties[e]=i,pa.properties[e]=i,ma.properties[e]=i,ga.properties[e]=i,_n.properties[e]=i}}N(){const t={type:"object",description:g(1791,null),errorMessage:g(1792,null),$ref:cr};ua.patternProperties[zs]=t,da.patternProperties[zs]=t,fa.patternProperties[zs]=t,pa.patternProperties[zs]=t,ma.patternProperties[zs]=t,ga.patternProperties[zs]=t,_n.patternProperties[zs]=t,this.r.fire()}O(t,e){const i=this.b.get(t)?.configurationDefaultOverrideValue;let s,r;i&&(!e.disallowConfigurationDefault||!i.source)&&(s=i.value,r=i.source),_s(s)&&(s=e.defaultDefaultValue,r=void 0),_s(s)&&(s=P8(e.type)),e.default=s,e.defaultValueSource=r}},Sf="\\[([^\\]]+)\\]",Ef=new RegExp(Sf,"g"),zs=`^(${Sf})+$`,hs=new RegExp(zs),va=new cw,zt.add(Si.Configuration,va)}}),lw,A8=v({"out-build/vs/platform/update/common/update.config.contribution.js"(){"use strict";G(),we(),lr(),ls(),lw=zt.as(Si.Configuration),lw.registerConfiguration({id:"update",order:15,title:g(2603,null),type:"object",properties:{"update.mode":{type:"string",enum:["none","manual","start","default"],default:"default",scope:1,description:g(2604,null),tags:["usesOnlineServices"],enumDescriptions:[g(2605,null),g(2606,null),g(2607,null),g(2608,null)],policy:{name:"UpdateMode",minimumVersion:"1.67"}},"update.channel":{type:"string",default:"default",scope:1,description:g(2609,null),deprecationMessage:g(2610,null,"update.mode")},"update.enableWindowsBackgroundUpdates":{type:"boolean",default:!0,scope:1,title:g(2611,null),description:g(2612,null),included:B&&!Vi},"update.showReleaseNotes":{type:"boolean",default:!0,scope:1,description:g(2613,null),tags:["usesOnlineServices"]}}})}});function xf(t,e){return e&&(t.stack||t.stacktrace)?g(110,null,uw(t),hw(t.stack)||hw(t.stacktrace)):uw(t)}function hw(t){return Array.isArray(t)?t.join(`
`):t}function uw(t){return t.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${t.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof t.code=="string"&&typeof t.errno=="number"&&typeof t.syscall=="string"?g(111,null,t.message):t.message||g(112,null)}function us(t=null,e=!1){if(!t)return g(113,null);if(Array.isArray(t)){const i=ft(t),s=us(i[0],e);return i.length>1?g(114,null,s,i.length):s}if(pt(t))return t;if(t.detail){const i=t.detail;if(i.error)return xf(i.error,e);if(i.exception)return xf(i.exception,e)}return t.stack?xf(t,e):t.message?t.message:g(115,null)}var jr=v({"out-build/vs/base/common/errorMessage.js"(){"use strict";kt(),$e(),we()}});function Tn(t,e){const{os:i,tildify:s,relative:r}=e;if(r){const a=D8(t,r,i);if(typeof a=="string")return a}let n=t.fsPath;if(i===1&&!B?n=n.replace(/\//g,"\\"):i!==1&&B&&(n=n.replace(/\\/g,"/")),i!==1&&s?.userHome){const a=s.userHome.fsPath;let c;t.scheme!==s.userHome.scheme&&t.path[0]===ce.sep&&t.path[1]!==ce.sep?c=s.userHome.with({path:t.path}).fsPath:c=n,n=I8(c,a,i)}return(i===1?Ge:ce).normalize(Pf(n,i===1))}function D8(t,e,i){const s=i===1?Ge:ce,r=i===3?Ee:nf,n=e.getWorkspace(),o=n.folders.at(0);if(!o)return;t.scheme!==o.uri.scheme&&t.path[0]===ce.sep&&t.path[1]!==ce.sep&&(t=o.uri.with({path:t.path}));const a=e.getWorkspaceFolder(t);if(!a)return;let c;if(r.isEqual(a.uri,t)?c="":c=r.relativePath(a.uri,t)??"",c&&(c=s.normalize(c)),n.folders.length>1&&!e.noPrefix){const l=a.name?a.name:r.basenameOrAuthority(a.uri);c=c?`${l} \u2022 ${c}`:l}return c}function Pf(t,e=B){return fg(t,e)?t.charAt(0).toUpperCase()+t.slice(1):t}function I8(t,e,i=bi){if(i===1||!t||!e)return t;let s=pl.original===e?pl.normalized:void 0;s||(s=e,B&&(s=Ln(s)),s=`${Tr(s,ce.sep)}${ce.sep}`,pl={original:e,normalized:s});let r=t;return B&&(r=Ln(r)),(i===3?r.startsWith(s):rl(r,s))?`~/${r.substr(s.length)}`:t}function C8(t,e){return N||e?t.replace(/\(&&\w\)|&&/g,"").replace(/&/g,N?"&":"&&"):t.replace(/&&|&/g,i=>i==="&"?"&&":"&")}function dw(t,e){const i=t.replace(/\(&&\w\)|&&/g,"");if(e)return i;if(N)return{withMnemonic:i,withoutMnemonic:i};let s;return B?s=t.replace(/&&|&/g,r=>r==="&"?"&&":"&"):s=t.replace(/&&/g,"_"),{withMnemonic:s,withoutMnemonic:i}}function R8(t){if(t.endsWith("]")){const e=t.lastIndexOf(" [",t.length-2);if(e!==-1){const i=fw(t.substring(0,e)),s=t.substring(e);return{name:i.name+s,parentPath:i.parentPath}}}return fw(t)}function fw(t){const e=t.indexOf("/")!==-1?ce:Ge,i=e.basename(t),s=e.dirname(t);return i.length?{name:i,parentPath:s}:{name:s,parentPath:""}}var pl,pw,hr=v({"out-build/vs/base/common/labels.js"(){"use strict";ki(),ge(),G(),et(),xt(),pl=Object.create(null),function(t){t[t.TEXT=0]="TEXT",t[t.VARIABLE=1]="VARIABLE",t[t.SEPARATOR=2]="SEPARATOR"}(pw||(pw={}))}});function ml(t){const e=t;return e?[e.on,e.pause,e.resume,e.destroy].every(i=>typeof i=="function"):!1}function $f(t){const e=t;return e?ml(e.stream)&&Array.isArray(e.buffer)&&typeof e.ended=="boolean":!1}function gl(t,e){return new ww(t,e)}function O8(t,e){const i=[];let s;for(;(s=t.read())!==null;)i.push(s);return e(i)}function L8(t,e,i){const s=[];let r;for(;(r=t.read())!==null&&s.length<i;)s.push(r);return r===null&&s.length>0?e(s):{read:()=>{if(s.length>0)return s.shift();if(typeof r<"u"){const n=r;return r=void 0,n}return t.read()}}}function mw(t,e){return new Promise((i,s)=>{const r=[];wl(t,{onData:n=>{e&&r.push(n)},onError:n=>{e?s(n):i(void 0)},onEnd:()=>{i(e?e(r):void 0)}})})}function wl(t,e,i){t.on("error",s=>{i?.isCancellationRequested||e.onError(s)}),t.on("end",()=>{i?.isCancellationRequested||e.onEnd()}),t.on("data",s=>{i?.isCancellationRequested||e.onData(s)})}function M8(t,e){return new Promise((i,s)=>{const r=new Ae,n=[],o=l=>{if(n.push(l),n.length>e)return r.dispose(),t.pause(),i({stream:t,buffer:n,ended:!1})},a=l=>(r.dispose(),s(l)),c=()=>(r.dispose(),i({stream:t,buffer:n,ended:!0}));r.add(be(()=>t.removeListener("error",a))),t.on("error",a),r.add(be(()=>t.removeListener("end",c))),t.on("end",c),r.add(be(()=>t.removeListener("data",o))),t.on("data",o)})}function F8(t){let e=!1;return{read:()=>e?null:(e=!0,t)}}function gw(t,e,i){const s=gl(i);return wl(t,{onData:r=>s.write(e.data(r)),onError:r=>s.error(e.error?e.error(r):r),onEnd:()=>s.end()}),s}var ww,ya=v({"out-build/vs/base/common/stream.js"(){"use strict";De(),T(),ww=class{constructor(t,e){this.e=t,this.f=e,this.a={flowing:!1,ended:!1,destroyed:!1},this.b={data:[],error:[]},this.c={data:[],error:[],end:[]},this.d=[]}pause(){this.a.destroyed||(this.a.flowing=!1)}resume(){this.a.destroyed||this.a.flowing||(this.a.flowing=!0,this.j(),this.k(),this.l())}write(t){if(!this.a.destroyed){if(this.a.flowing)this.g(t);else if(this.b.data.push(t),typeof this.f?.highWaterMark=="number"&&this.b.data.length>this.f.highWaterMark)return new Promise(e=>this.d.push(e))}}error(t){this.a.destroyed||(this.a.flowing?this.h(t):this.b.error.push(t))}end(t){this.a.destroyed||(typeof t<"u"&&this.write(t),this.a.flowing?(this.i(),this.destroy()):this.a.ended=!0)}g(t){this.c.data.slice(0).forEach(e=>e(t))}h(t){this.c.error.length===0?Ct(t):this.c.error.slice(0).forEach(e=>e(t))}i(){this.c.end.slice(0).forEach(t=>t())}on(t,e){if(!this.a.destroyed)switch(t){case"data":this.c.data.push(e),this.resume();break;case"end":this.c.end.push(e),this.a.flowing&&this.l()&&this.destroy();break;case"error":this.c.error.push(e),this.a.flowing&&this.k();break}}removeListener(t,e){if(this.a.destroyed)return;let i;switch(t){case"data":i=this.c.data;break;case"end":i=this.c.end;break;case"error":i=this.c.error;break}if(i){const s=i.indexOf(e);s>=0&&i.splice(s,1)}}j(){if(this.b.data.length===0)return;if(typeof this.e=="function"){const e=this.e(this.b.data);this.g(e)}else for(const e of this.b.data)this.g(e);this.b.data.length=0;const t=[...this.d];this.d.length=0,t.forEach(e=>e())}k(){if(this.c.error.length>0){for(const t of this.b.error)this.h(t);this.b.error.length=0}}l(){return this.a.ended?(this.i(),this.c.end.length>0):!1}destroy(){this.a.destroyed||(this.a.destroyed=!0,this.a.ended=!0,this.b.data.length=0,this.b.error.length=0,this.c.data.length=0,this.c.error.length=0,this.c.end.length=0,this.d.length=0)}}}});function N8(t,e,i=0){const s=e.byteLength,r=t.byteLength;if(s===0)return 0;if(s===1)return t.indexOf(e[0]);if(s>r-i)return-1;const n=vw.value;n.fill(e.length);for(let l=0;l<e.length;l++)n[e[l]]=e.length-l-1;let o=i+e.length-1,a=o,c=-1;for(;o<r;)if(t[o]===e[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(e.length-a,n[t[o]]),a=e.length-1;return c}function W8(t,e){return t[e]*2**24+t[e+1]*2**16+t[e+2]*2**8+t[e+3]}function _8(t,e,i){t[i+3]=e,e=e>>>8,t[i+2]=e,e=e>>>8,t[i+1]=e,e=e>>>8,t[i]=e}function T8(t,e){return t[e+0]<<0>>>0|t[e+1]<<8>>>0|t[e+2]<<16>>>0|t[e+3]<<24>>>0}function B8(t,e,i){t[i+0]=e&255,e=e>>>8,t[i+1]=e&255,e=e>>>8,t[i+2]=e&255,e=e>>>8,t[i+3]=e&255}function U8(t,e){return t[e]}function j8(t,e,i){t[i]=e}function z8(t){return O8(t,e=>q.concat(e))}function H8(t){return F8(t)}function ba(t){return mw(t,e=>q.concat(e))}async function V8(t){return t.ended?q.concat(t.buffer):q.concat([...t.buffer,await ba(t.stream)])}function q8(t){return gw(t,{data:e=>typeof e=="string"?q.fromString(e):q.wrap(e)},e=>q.concat(e))}function G8(t){return gl(e=>q.concat(e),t)}function J8({buffer:t}){let e="";for(let i=0;i<t.length;i++){const s=t[i];e+=If[s>>>4],e+=If[s&15]}return e}var ka,vw,Af,Df,q,If,Ke=v({"out-build/vs/base/common/buffer.js"(){"use strict";_r(),ya(),ka=typeof Buffer<"u",vw=new Ts(()=>new Uint8Array(256)),q=class zi{static alloc(e){return ka?new zi(Buffer.allocUnsafe(e)):new zi(new Uint8Array(e))}static wrap(e){return ka&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new zi(e)}static fromString(e,i){return!(i?.dontUseNodeBuffer||!1)&&ka?new zi(Buffer.from(e)):(Af||(Af=new TextEncoder),new zi(Af.encode(e)))}static fromByteArray(e){const i=zi.alloc(e.length);for(let s=0,r=e.length;s<r;s++)i.buffer[s]=e[s];return i}static concat(e,i){if(typeof i>"u"){i=0;for(let n=0,o=e.length;n<o;n++)i+=e[n].byteLength}const s=zi.alloc(i);let r=0;for(let n=0,o=e.length;n<o;n++){const a=e[n];s.set(a,r),r+=a.byteLength}return s}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}clone(){const e=zi.alloc(this.byteLength);return e.set(this),e}toString(){return ka?this.buffer.toString():(Df||(Df=new TextDecoder),Df.decode(this.buffer))}slice(e,i){return new zi(this.buffer.subarray(e,i))}set(e,i){if(e instanceof zi)this.buffer.set(e.buffer,i);else if(e instanceof Uint8Array)this.buffer.set(e,i);else if(e instanceof ArrayBuffer)this.buffer.set(new Uint8Array(e),i);else if(ArrayBuffer.isView(e))this.buffer.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),i);else throw new Error("Unknown argument 'array'")}readUInt32BE(e){return W8(this.buffer,e)}writeUInt32BE(e,i){_8(this.buffer,e,i)}readUInt32LE(e){return T8(this.buffer,e)}writeUInt32LE(e,i){B8(this.buffer,e,i)}readUInt8(e){return U8(this.buffer,e)}writeUInt8(e,i){j8(this.buffer,e,i)}indexOf(e,i=0){return N8(this.buffer,e instanceof zi?e.buffer:e,i)}equals(e){return this===e?!0:this.byteLength!==e.byteLength?!1:this.buffer.every((i,s)=>i===e.buffer[s])}},If="0123456789abcdef"}}),K8=v({"out-build/vs/base/common/decorators/cancelPreviousCalls.js"(){"use strict";$e(),T(),Et()}});function ue(t,e,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$${e}`;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 zr=v({"out-build/vs/base/common/decorators.js"(){"use strict";K8()}});function Z8(t){return JSON.stringify(t,Q8)}function Y8(t){let e=JSON.parse(t);return e=ur(e),e}function Q8(t,e){return e instanceof RegExp?{$mid:2,source:e.source,flags:e.flags}:e}function ur(t,e=0){if(!t||e>200)return t;if(typeof t=="object"){switch(t.$mid){case 1:return $.revive(t);case 2:return new RegExp(t.source,t.flags);case 17:return new Date(t.source)}if(t instanceof q||t instanceof Uint8Array)return t;if(Array.isArray(t))for(let i=0;i<t.length;++i)t[i]=ur(t[i],e+1);else for(const i in t)Object.hasOwnProperty.call(t,i)&&(t[i]=ur(t[i],e+1))}return t}var vl=v({"out-build/vs/base/common/marshalling.js"(){"use strict";Ke(),re()}});function Bn(t){switch(t){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}function yl(t){switch(t){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}function Un(t){let e=0;for(let i=0;;i+=7){const s=t.read(1);if(e|=(s.buffer[0]&127)<<i,!(s.buffer[0]&128))return e}}function jn(t,e){if(e===0){t.write(kw);return}let i=0;for(let r=e;r!==0;r=r>>>7)i++;const s=q.alloc(i);for(let r=0;e!==0;r++)s.buffer[r]=e&127,e=e>>>7,e>0&&(s.buffer[r]|=128);t.write(s)}function dr(t){const e=q.alloc(1);return e.writeUInt8(t,0),e}function zn(t,e){if(typeof e>"u")t.write(fr.Undefined);else if(typeof e=="string"){const i=q.fromString(e);t.write(fr.String),jn(t,i.byteLength),t.write(i)}else if(Sw&&Buffer.isBuffer(e)){const i=q.wrap(e);t.write(fr.Buffer),jn(t,i.byteLength),t.write(i)}else if(e instanceof q)t.write(fr.VSBuffer),jn(t,e.byteLength),t.write(e);else if(Array.isArray(e)){t.write(fr.Array),jn(t,e.length);for(const i of e)zn(t,i)}else if(typeof e=="number"&&(e|0)===e)t.write(fr.Uint),jn(t,e);else{const i=q.fromString(JSON.stringify(e));t.write(fr.Object),jn(t,i.byteLength),t.write(i)}}function Hn(t){switch(t.read(1).readUInt8(0)){case Ht.Undefined:return;case Ht.String:return t.read(Un(t)).toString();case Ht.Buffer:return t.read(Un(t)).buffer;case Ht.VSBuffer:return t.read(Un(t));case Ht.Array:{const i=Un(t),s=[];for(let r=0;r<i;r++)s.push(Hn(t));return s}case Ht.Object:return JSON.parse(t.read(Un(t)).toString());case Ht.Int:return Un(t)}}function bl(t){return{call(e,i,s){return t.then(r=>r.call(e,i,s))},listen(e,i){const s=new Gd;return t.then(r=>s.input=r.listen(e,i)),s.event}}}function X8(t){let e=!1;return{call(i,s,r){return e?t.call(i,s,r):mi(0).then(()=>e=!0).then(()=>t.call(i,s,r))},listen(i,s){if(e)return t.listen(i,s);const r=new Gd;return mi(0).then(()=>e=!0).then(()=>r.input=t.listen(i,s)),r.event}}}var yw,bw,Hr,kw,kl,Sl,Ht,fr,Sw,Cf,Ew,Sa,Rf,Of,xw,He,Hs=v({"out-build/vs/base/parts/ipc/common/ipc.js"(){"use strict";kt(),le(),Ke(),Et(),zr(),De(),J(),Qc(),T(),vl(),xt(),$e(),function(t){t[t.Promise=100]="Promise",t[t.PromiseCancel=101]="PromiseCancel",t[t.EventListen=102]="EventListen",t[t.EventDispose=103]="EventDispose"}(yw||(yw={})),function(t){t[t.Initialize=200]="Initialize",t[t.PromiseSuccess=201]="PromiseSuccess",t[t.PromiseError=202]="PromiseError",t[t.PromiseErrorObj=203]="PromiseErrorObj",t[t.EventFire=204]="EventFire"}(bw||(bw={})),function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Idle=1]="Idle"}(Hr||(Hr={})),kw=dr(0),kl=class{constructor(t){this.b=t,this.a=0}read(t){const e=this.b.slice(this.a,this.a+t);return this.a+=e.byteLength,e}},Sl=class{constructor(){this.a=[]}get buffer(){return q.concat(this.a)}write(t){this.a.push(t)}},function(t){t[t.Undefined=0]="Undefined",t[t.String=1]="String",t[t.Buffer=2]="Buffer",t[t.VSBuffer=3]="VSBuffer",t[t.Array=4]="Array",t[t.Object=5]="Object",t[t.Int=6]="Int"}(Ht||(Ht={})),fr={Undefined:dr(Ht.Undefined),String:dr(Ht.String),Buffer:dr(Ht.Buffer),VSBuffer:dr(Ht.VSBuffer),Array:dr(Ht.Array),Object:dr(Ht.Object),Uint:dr(Ht.Int)},Sw=typeof Buffer<"u",Cf=class{constructor(t,e,i=null,s=1e3){this.h=t,this.j=e,this.k=i,this.l=s,this.b=new Map,this.d=new Map,this.g=new Map,this.f=this.h.onMessage(r=>this.q(r)),this.m({type:200})}registerChannel(t,e){this.b.set(t,e),setTimeout(()=>this.w(t),0)}m(t){switch(t.type){case 200:{const e=this.o([t.type]);this.k?.logOutgoing(e,0,1,yl(t.type));return}case 201:case 202:case 204:case 203:{const e=this.o([t.type,t.id],t.data);this.k?.logOutgoing(e,t.id,1,yl(t.type),t.data);return}}}o(t,e=void 0){const i=new Sl;return zn(i,t),zn(i,e),this.p(i.buffer)}p(t){try{return this.h.send(t),t.byteLength}catch{return 0}}q(t){const e=new kl(t),i=Hn(e),s=Hn(e),r=i[0];switch(r){case 100:return this.k?.logIncoming(t.byteLength,i[1],1,`${Bn(r)}: ${i[2]}.${i[3]}`,s),this.s({type:r,id:i[1],channelName:i[2],name:i[3],arg:s});case 102:return this.k?.logIncoming(t.byteLength,i[1],1,`${Bn(r)}: ${i[2]}.${i[3]}`,s),this.t({type:r,id:i[1],channelName:i[2],name:i[3],arg:s});case 101:return this.k?.logIncoming(t.byteLength,i[1],1,`${Bn(r)}`),this.u({type:r,id:i[1]});case 103:return this.k?.logIncoming(t.byteLength,i[1],1,`${Bn(r)}`),this.u({type:r,id:i[1]})}}s(t){const e=this.b.get(t.channelName);if(!e){this.v(t);return}const i=new Ji;let s;try{s=e.call(this.j,t.name,t.arg,i.token)}catch(o){s=Promise.reject(o)}const r=t.id;s.then(o=>{this.m({id:r,data:o,type:201})},o=>{o instanceof Error?this.m({id:r,data:{message:o.message,name:o.name,stack:o.stack?o.stack.split(`
`):void 0},type:202}):this.m({id:r,data:o,type:203})}).finally(()=>{n.dispose(),this.d.delete(t.id)});const n=be(()=>i.cancel());this.d.set(t.id,n)}t(t){const e=this.b.get(t.channelName);if(!e){this.v(t);return}const i=t.id,r=e.listen(this.j,t.name,t.arg)(n=>this.m({id:i,data:n,type:204}));this.d.set(t.id,r)}u(t){const e=this.d.get(t.id);e&&(e.dispose(),this.d.delete(t.id))}v(t){let e=this.g.get(t.channelName);e||(e=[],this.g.set(t.channelName,e));const i=setTimeout(()=>{console.error(`Unknown channel: ${t.channelName}`),t.type===100&&this.m({id:t.id,data:{name:"Unknown channel",message:`Channel name '${t.channelName}' timed out after ${this.l}ms`,stack:void 0},type:202})},this.l);e.push({request:t,timeoutTimer:i})}w(t){const e=this.g.get(t);if(e){for(const i of e)switch(clearTimeout(i.timeoutTimer),i.request.type){case 100:this.s(i.request);break;case 102:this.t(i.request);break}this.g.delete(t)}}dispose(){this.f&&(this.f.dispose(),this.f=null),mt(this.d.values()),this.d.clear()}},function(t){t[t.LocalSide=0]="LocalSide",t[t.OtherSide=1]="OtherSide"}(Ew||(Ew={})),Sa=class{constructor(t,e=null){this.l=t,this.a=!1,this.b=Hr.Uninitialized,this.d=new Set,this.f=new Map,this.g=0,this.k=new D,this.onDidInitialize=this.k.event,this.h=this.l.onMessage(i=>this.s(i)),this.j=e}getChannel(t){const e=this;return{call(i,s,r){return e.a?Promise.reject(new Yt):e.m(t,i,s,r)},listen(i,s){return e.a?x.None:e.o(t,i,s)}}}m(t,e,i,s=Je.None){const r=this.g++,o={id:r,type:100,channelName:t,name:e,arg:i};if(s.isCancellationRequested)return Promise.reject(new Yt);let a,c;return new Promise((h,u)=>{if(s.isCancellationRequested)return u(new Yt);const f=()=>{const w=y=>{switch(y.type){case 201:this.f.delete(r),h(y.data);break;case 202:{this.f.delete(r);const b=new Error(y.data.message);b.stack=Array.isArray(y.data.stack)?y.data.stack.join(`
`):y.data.stack,b.name=y.data.name,u(b);break}case 203:this.f.delete(r),u(y.data);break}};this.f.set(r,w),this.p(o)};let p=null;this.b===Hr.Idle?f():(p=Mn(w=>this.u()),p.then(()=>{p=null,f()}));const m=()=>{p?(p.cancel(),p=null):this.p({id:r,type:101}),u(new Yt)};a=s.onCancellationRequested(m),c={dispose:Yc(()=>{m(),a.dispose()})},this.d.add(c)}).finally(()=>{a?.dispose(),this.d.delete(c)})}o(t,e,i){const s=this.g++,n={id:s,type:102,channelName:t,name:e,arg:i};let o=null;const a=new D({onWillAddFirstListener:()=>{const l=()=>{this.d.add(a),this.p(n)};this.b===Hr.Idle?l():(o=Mn(h=>this.u()),o.then(()=>{o=null,l()}))},onDidRemoveLastListener:()=>{o?(o.cancel(),o=null):(this.d.delete(a),this.p({id:s,type:103}))}}),c=l=>a.fire(l.data);return this.f.set(s,c),a.event}p(t){switch(t.type){case 100:case 102:{const e=this.q([t.type,t.id,t.channelName,t.name],t.arg);this.j?.logOutgoing(e,t.id,0,`${Bn(t.type)}: ${t.channelName}.${t.name}`,t.arg);return}case 101:case 103:{const e=this.q([t.type,t.id]);this.j?.logOutgoing(e,t.id,0,Bn(t.type));return}}}q(t,e=void 0){const i=new Sl;return zn(i,t),zn(i,e),this.r(i.buffer)}r(t){try{return this.l.send(t),t.byteLength}catch{return 0}}s(t){const e=new kl(t),i=Hn(e),s=Hn(e),r=i[0];switch(r){case 200:return this.j?.logIncoming(t.byteLength,0,0,yl(r)),this.t({type:i[0]});case 201:case 202:case 204:case 203:return this.j?.logIncoming(t.byteLength,i[1],0,yl(r),s),this.t({type:i[0],id:i[1],data:s})}}t(t){if(t.type===200){this.b=Hr.Idle,this.k.fire();return}this.f.get(t.id)?.(t)}get onDidInitializePromise(){return x.toPromise(this.onDidInitialize)}u(){return this.b===Hr.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.a=!0,this.h&&(this.h.dispose(),this.h=null),mt(this.d.values()),this.d.clear()}},__decorate([ue],Sa.prototype,"onDidInitializePromise",null),Rf=class{get connections(){const t=[];return this.f.forEach(e=>t.push(e)),t}constructor(t,e,i){this.a=new Map,this.f=new Set,this.g=new D,this.onDidAddConnection=this.g.event,this.h=new D,this.onDidRemoveConnection=this.h.event,this.j=new Ae,this.j.add(t(({protocol:s,onDidClientDisconnect:r})=>{const n=x.once(s.onMessage);this.j.add(n(o=>{const a=new kl(o),c=Hn(a),l=new Cf(s,c,e,i),h=new Sa(s,e);this.a.forEach((f,p)=>l.registerChannel(p,f));const u={channelServer:l,channelClient:h,ctx:c};this.f.add(u),this.g.fire(u),this.j.add(r(()=>{l.dispose(),h.dispose(),this.f.delete(u),this.h.fire(u)}))}))}))}getChannel(t,e){const i=this;return{call(s,r,n){let o;if(jd(e)){const c=n7(i.connections.filter(e));o=c?Promise.resolve(c):x.toPromise(x.filter(i.onDidAddConnection,e))}else o=e.routeCall(i,s,r);const a=o.then(c=>c.channelClient.getChannel(t));return bl(a).call(s,r,n)},listen(s,r){if(jd(e))return i.k(t,e,s,r);const n=e.routeEvent(i,s,r).then(o=>o.channelClient.getChannel(t));return bl(n).listen(s,r)}}}k(t,e,i,s){const r=this;let n;const o=new D({onWillAddFirstListener:()=>{n=new Ae;const a=new Q0,c=new Map,l=u=>{const p=u.channelClient.getChannel(t).listen(i,s),m=a.add(p);c.set(u,m)},h=u=>{const f=c.get(u);f&&(f.dispose(),c.delete(u))};r.connections.filter(e).forEach(l),x.filter(r.onDidAddConnection,e)(l,void 0,n),r.onDidRemoveConnection(h,void 0,n),a.event(o.fire,o,n),n.add(a)},onDidRemoveLastListener:()=>{n?.dispose(),n=void 0}});return r.j.add(o),o.event}registerChannel(t,e){this.a.set(t,e);for(const i of this.f)i.channelServer.registerChannel(t,e)}dispose(){this.j.dispose();for(const t of this.f)t.channelClient.dispose(),t.channelServer.dispose();this.f.clear(),this.a.clear(),this.g.dispose(),this.h.dispose()}},Of=class{constructor(t,e,i=null){const s=new Sl;zn(s,e),t.send(s.buffer),this.a=new Sa(t,i),this.d=new Cf(t,e,i)}getChannel(t){return this.a.getChannel(t)}registerChannel(t,e){this.d.registerChannel(t,e)}dispose(){this.a.dispose(),this.d.dispose()}},xw=class{constructor(t){this.a=t}routeCall(t){return this.b(t)}routeEvent(t){return this.b(t)}async b(t){for(const e of t.connections)if(await Promise.resolve(this.a(e.ctx)))return Promise.resolve(e);return await x.toPromise(t.onDidAddConnection),await this.b(t)}},function(t){function e(n,o,a){const c=n,l=a&&a.disableMarshalling,h=new Map;for(const u in c)s(u)&&h.set(u,x.buffer(c[u],!0,void 0,o));return new class{listen(u,f,p){const m=h.get(f);if(m)return m;const w=c[f];if(typeof w=="function"){if(r(f))return w.call(c,p);if(s(f))return h.set(f,x.buffer(c[f],!0,void 0,o)),h.get(f)}throw new Ws(`Event not found: ${f}`)}call(u,f,p){const m=c[f];if(typeof m=="function"){if(!l&&Array.isArray(p))for(let y=0;y<p.length;y++)p[y]=ur(p[y]);let w=m.apply(c,p);return w instanceof Promise||(w=Promise.resolve(w)),w}throw new Ws(`Method not found: ${f}`)}}}t.fromService=e;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(h){return n.listen(l,h)}:s(l)?n.listen(l):async function(...h){let u;o&&!Xt(o.context)?u=[o.context,...h]:u=h;const f=await n.call(l,u);return a?f:ur(f)};throw new Ws(`Property not found: ${String(l)}`)}})}t.toService=i;function s(n){return n[0]==="o"&&n[1]==="n"&&sg(n.charCodeAt(2))}function r(n){return/^onDynamic/.test(n)&&sg(n.charCodeAt(9))}}(He||(He={}))}});function e3(t){return Pw.test(t)}var Pw,gi,Ei=v({"out-build/vs/base/common/uuid.js"(){"use strict";Pw=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,gi=function(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);const t=new Uint8Array(16),e=[];for(let i=0;i<256;i++)e.push(i.toString(16).padStart(2,"0"));return function(){crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let s=0,r="";return r+=e[t[s++]],r+=e[t[s++]],r+=e[t[s++]],r+=e[t[s++]],r+="-",r+=e[t[s++]],r+=e[t[s++]],r+="-",r+=e[t[s++]],r+=e[t[s++]],r+="-",r+=e[t[s++]],r+=e[t[s++]],r+="-",r+=e[t[s++]],r+=e[t[s++]],r+=e[t[s++]],r+=e[t[s++]],r+=e[t[s++]],r+=e[t[s++]],r}}()}});function pr(){return El||(El=q.alloc(0)),El}function $w(t){switch(t){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 Aw,Lf,Dw,El,Iw,Cw,Rw,Fi,xl,Pl,Mf,Ow,Vn,Lw,Mw,Fw,Nw,Ww=v({"out-build/vs/base/parts/ipc/common/ipc.net.js"(){"use strict";Ke(),J(),T(),Hs(),function(t){t.Created="created",t.Read="read",t.Write="write",t.Open="open",t.Error="error",t.Close="close",t.BrowserWebSocketBlobReceived="browserWebSocketBlobReceived",t.NodeEndReceived="nodeEndReceived",t.NodeEndSent="nodeEndSent",t.NodeDrainBegin="nodeDrainBegin",t.NodeDrainEnd="nodeDrainEnd",t.zlibInflateError="zlibInflateError",t.zlibInflateData="zlibInflateData",t.zlibInflateInitialWrite="zlibInflateInitialWrite",t.zlibInflateInitialFlushFired="zlibInflateInitialFlushFired",t.zlibInflateWrite="zlibInflateWrite",t.zlibInflateFlushFired="zlibInflateFlushFired",t.zlibDeflateError="zlibDeflateError",t.zlibDeflateData="zlibDeflateData",t.zlibDeflateWrite="zlibDeflateWrite",t.zlibDeflateFlushFired="zlibDeflateFlushFired",t.WebSocketNodeSocketWrite="webSocketNodeSocketWrite",t.WebSocketNodeSocketPeekedHeader="webSocketNodeSocketPeekedHeader",t.WebSocketNodeSocketReadHeader="webSocketNodeSocketReadHeader",t.WebSocketNodeSocketReadData="webSocketNodeSocketReadData",t.WebSocketNodeSocketUnmaskedData="webSocketNodeSocketUnmaskedData",t.WebSocketNodeSocketDrainBegin="webSocketNodeSocketDrainBegin",t.WebSocketNodeSocketDrainEnd="webSocketNodeSocketDrainEnd",t.ProtocolHeaderRead="protocolHeaderRead",t.ProtocolMessageRead="protocolMessageRead",t.ProtocolHeaderWrite="protocolHeaderWrite",t.ProtocolMessageWrite="protocolMessageWrite",t.ProtocolWrite="protocolWrite"}(Aw||(Aw={})),function(t){t.enableDiagnostics=!1,t.records=[];const e=new WeakMap;let i=0;function s(n,o){if(!e.has(n)){const a=String(++i);e.set(n,a)}return e.get(n)}function r(n,o,a,c){if(!t.enableDiagnostics)return;const l=s(n,o);if(c instanceof q||c instanceof Uint8Array||c instanceof ArrayBuffer||ArrayBuffer.isView(c)){const h=q.alloc(c.byteLength);h.set(c),t.records.push({timestamp:Date.now(),id:l,label:o,type:a,buff:h})}else t.records.push({timestamp:Date.now(),id:l,label:o,type:a,data:c})}t.traceSocketEvent=r}(Lf||(Lf={})),function(t){t[t.NodeSocketCloseEvent=0]="NodeSocketCloseEvent",t[t.WebSocketCloseEvent=1]="WebSocketCloseEvent"}(Dw||(Dw={})),El=null,Iw=class{get byteLength(){return this.b}constructor(){this.a=[],this.b=0}acceptChunk(t){this.a.push(t),this.b+=t.byteLength}read(t){return this.c(t,!0)}peek(t){return this.c(t,!1)}c(t,e){if(t===0)return pr();if(t>this.b)throw new Error("Cannot read so many bytes!");if(this.a[0].byteLength===t){const n=this.a[0];return e&&(this.a.shift(),this.b-=t),n}if(this.a[0].byteLength>t){const n=this.a[0].slice(0,t);return e&&(this.a[0]=this.a[0].slice(t),this.b-=t),n}const i=q.alloc(t);let s=0,r=0;for(;t>0;){const n=this.a[r];if(n.byteLength>t){const o=n.slice(0,t);i.set(o,s),s+=t,e&&(this.a[r]=n.slice(t),this.b-=t),t-=t}else i.set(n,s),s+=n.byteLength,e?(this.a.shift(),this.b-=n.byteLength):r++,t-=n.byteLength}return i}},function(t){t[t.None=0]="None",t[t.Regular=1]="Regular",t[t.Control=2]="Control",t[t.Ack=3]="Ack",t[t.Disconnect=5]="Disconnect",t[t.ReplayRequest=6]="ReplayRequest",t[t.Pause=7]="Pause",t[t.Resume=8]="Resume",t[t.KeepAlive=9]="KeepAlive"}(Cw||(Cw={})),function(t){t[t.HeaderLength=13]="HeaderLength",t[t.AcknowledgeTime=2e3]="AcknowledgeTime",t[t.TimeoutTime=2e4]="TimeoutTime",t[t.ReconnectionGraceTime=108e5]="ReconnectionGraceTime",t[t.ReconnectionShortGraceTime=3e5]="ReconnectionShortGraceTime",t[t.KeepAliveSendTime=5e3]="KeepAliveSendTime"}(Rw||(Rw={})),Fi=class{constructor(t,e,i,s){this.type=t,this.id=e,this.ack=i,this.data=s,this.writtenTime=0}get size(){return this.data.byteLength}},xl=class extends j{constructor(t){super(),this.f=this.B(new D),this.onMessage=this.f.event,this.g={readHead:!0,readLen:13,messageType:0,id:0,ack:0},this.a=t,this.b=!1,this.c=new Iw,this.B(this.a.onData(e=>this.acceptChunk(e))),this.lastReadTime=Date.now()}acceptChunk(t){if(!(!t||t.byteLength===0))for(this.lastReadTime=Date.now(),this.c.acceptChunk(t);this.c.byteLength>=this.g.readLen;){const e=this.c.read(this.g.readLen);if(this.g.readHead)this.g.readHead=!1,this.g.readLen=e.readUInt32BE(9),this.g.messageType=e.readUInt8(0),this.g.id=e.readUInt32BE(1),this.g.ack=e.readUInt32BE(5),this.a.traceSocketEvent("protocolHeaderRead",{messageType:$w(this.g.messageType),id:this.g.id,ack:this.g.ack,messageSize:this.g.readLen});else{const i=this.g.messageType,s=this.g.id,r=this.g.ack;if(this.g.readHead=!0,this.g.readLen=13,this.g.messageType=0,this.g.id=0,this.g.ack=0,this.a.traceSocketEvent("protocolMessageRead",e),this.f.fire(new Fi(i,s,r,e)),this.b)break}}}readEntireBuffer(){return this.c.read(this.c.byteLength)}dispose(){this.b=!0,super.dispose()}},Pl=class{constructor(t){this.k=null,this.a=!1,this.b=!1,this.c=t,this.d=[],this.f=0,this.lastWriteTime=0}dispose(){try{this.flush()}catch{}this.a=!0}drain(){return this.flush(),this.c.drain()}flush(){this.m()}pause(){this.b=!0}resume(){this.b=!1,this.l()}write(t){if(this.a)return;t.writtenTime=Date.now(),this.lastWriteTime=Date.now();const e=q.alloc(13);e.writeUInt8(t.type,0),e.writeUInt32BE(t.id,1),e.writeUInt32BE(t.ack,5),e.writeUInt32BE(t.data.byteLength,9),this.c.traceSocketEvent("protocolHeaderWrite",{messageType:$w(t.type),id:t.id,ack:t.ack,messageSize:t.data.byteLength}),this.c.traceSocketEvent("protocolMessageWrite",t.data),this.j(e,t.data)}g(t,e){const i=this.f===0;return this.d.push(t,e),this.f+=t.byteLength+e.byteLength,i}h(){const t=q.concat(this.d,this.f);return this.d.length=0,this.f=0,t}j(t,e){this.g(t,e)&&this.l()}l(){this.k||(this.k=setTimeout(()=>{this.k=null,this.m()}))}m(){if(this.f===0||this.b)return;const t=this.h();this.c.traceSocketEvent("protocolWrite",{byteLength:t.byteLength}),this.c.write(t)}},Mf=class extends j{constructor(t){super(),this.f=new D,this.onMessage=this.f.event,this.g=new D,this.onDidDispose=this.g.event,this.a=t,this.b=this.B(new Pl(this.a)),this.c=this.B(new xl(this.a)),this.B(this.c.onMessage(e=>{e.type===1&&this.f.fire(e.data)})),this.B(this.a.onClose(()=>this.g.fire()))}drain(){return this.b.drain()}getSocket(){return this.a}sendDisconnect(){}send(t){this.b.write(new Fi(1,0,0,t))}},Ow=class q9 extends Of{static fromSocket(e,i){return new q9(new Mf(e),i)}get onDidDispose(){return this.b.onDidDispose}constructor(e,i,s=null){super(e,i,s),this.b=e}dispose(){super.dispose();const e=this.b.getSocket();this.b.sendDisconnect(),this.b.dispose(),e.end()}},Vn=class{constructor(){this.b=!1,this.c=!1,this.d=[],this.a=new D({onWillAddFirstListener:()=>{this.b=!0,queueMicrotask(()=>this.f())},onDidRemoveLastListener:()=>{this.b=!1}}),this.event=this.a.event}f(){if(!this.c){for(this.c=!0;this.b&&this.d.length>0;)this.a.fire(this.d.shift());this.c=!1}}fire(t){this.b?this.d.length>0?this.d.push(t):this.a.fire(t):this.d.push(t)}flushBuffer(){this.d=[]}},Lw=class{constructor(t){this.data=t,this.next=null}},Mw=class{constructor(){this.a=null,this.b=null}length(){let t=0,e=this.a;for(;e;)e=e.next,t++;return t}peek(){return this.a?this.a.data:null}toArray(){const t=[];let e=0,i=this.a;for(;i;)t[e++]=i.data,i=i.next;return t}pop(){if(this.a){if(this.a===this.b){this.a=null,this.b=null;return}this.a=this.a.next}}push(t){const e=new Lw(t);if(!this.a){this.a=e,this.b=e;return}this.b.next=e,this.b=e}},Fw=class Cs{static{this.a=10}static{this.b=null}static getInstance(){return Cs.b||(Cs.b=new Cs),Cs.b}constructor(){this.c=[];const e=Date.now();for(let i=0;i<Cs.a;i++)this.c[i]=e-1e3*i;setInterval(()=>{for(let i=Cs.a;i>=1;i--)this.c[i]=this.c[i-1];this.c[0]=Date.now()},1e3)}d(){const e=Date.now(),i=(1+Cs.a)*1e3;let s=0;for(let r=0;r<Cs.a;r++)e-this.c[r]<=i&&s++;return 1-s/Cs.a}hasHighLoad(){return this.d()>=.5}},Nw=class{get unacknowledgedCount(){return this.d-this.f}constructor(t){this.v=new Vn,this.onControlMessage=this.v.event,this.w=new Vn,this.onMessage=this.w.event,this.x=new Vn,this.onDidDispose=this.x.event,this.y=new Vn,this.onSocketClose=this.y.event,this.z=new Vn,this.onSocketTimeout=this.z.event,this.t=t.loadEstimator??Fw.getInstance(),this.u=t.sendKeepAlive??!0,this.a=!1,this.c=new Mw,this.d=0,this.f=0,this.g=null,this.h=0,this.j=0,this.k=0,this.l=null,this.n=0,this.o=Date.now(),this.s=new Ae,this.p=t.socket,this.q=this.s.add(new Pl(this.p)),this.r=this.s.add(new xl(this.p)),this.s.add(this.r.onMessage(e=>this.A(e))),this.s.add(this.p.onClose(e=>this.y.fire(e))),t.initialChunk&&this.r.acceptChunk(t.initialChunk),this.u?this.m=setInterval(()=>{this.E()},5e3):this.m=null}dispose(){this.g&&(clearTimeout(this.g),this.g=null),this.l&&(clearTimeout(this.l),this.l=null),this.m&&(clearInterval(this.m),this.m=null),this.s.dispose()}drain(){return this.q.drain()}sendDisconnect(){if(!this.b){this.b=!0;const t=new Fi(5,0,0,pr());this.q.write(t),this.q.flush()}}sendPause(){const t=new Fi(7,0,0,pr());this.q.write(t)}sendResume(){const t=new Fi(8,0,0,pr());this.q.write(t)}pauseSocketWriting(){this.q.pause()}getSocket(){return this.p}getMillisSinceLastIncomingData(){return Date.now()-this.r.lastReadTime}beginAcceptReconnection(t,e){this.a=!0,this.s.dispose(),this.s=new Ae,this.v.flushBuffer(),this.y.flushBuffer(),this.z.flushBuffer(),this.p.dispose(),this.n=0,this.o=Date.now(),this.p=t,this.q=this.s.add(new Pl(this.p)),this.r=this.s.add(new xl(this.p)),this.s.add(this.r.onMessage(i=>this.A(i))),this.s.add(this.p.onClose(i=>this.y.fire(i))),this.r.acceptChunk(e)}endAcceptReconnection(){this.a=!1,this.j=this.h;const t=new Fi(3,0,this.j,pr());this.q.write(t);const e=this.c.toArray();for(let i=0,s=e.length;i<s;i++)this.q.write(e[i]);this.C()}acceptDisconnect(){this.x.fire()}A(t){if(t.ack>this.f){this.f=t.ack;do{const e=this.c.peek();if(e&&e.id<=t.ack)this.c.pop();else break}while(!0)}switch(t.type){case 0:break;case 1:{if(t.id>this.h)if(t.id!==this.h+1){const e=Date.now();e-this.n>1e4&&(this.n=e,this.q.write(new Fi(6,0,0,pr())))}else this.h=t.id,this.k=Date.now(),this.B(),this.w.fire(t.data);break}case 2:{this.v.fire(t.data);break}case 3:break;case 5:{this.x.fire();break}case 6:{const e=this.c.toArray();for(let i=0,s=e.length;i<s;i++)this.q.write(e[i]);this.C();break}case 7:{this.q.pause();break}case 8:{this.q.resume();break}case 9:break}}readEntireBuffer(){return this.r.readEntireBuffer()}flush(){this.q.flush()}send(t){const e=++this.d;this.j=this.h;const i=new Fi(1,e,this.j,t);this.c.push(i),this.a||(this.q.write(i),this.C())}sendControl(t){const e=new Fi(2,0,0,t);this.q.write(e)}B(){if(this.h<=this.j||this.l)return;const t=Date.now()-this.k;if(t>=2e3){this.D();return}this.l=setTimeout(()=>{this.l=null,this.B()},2e3-t+5)}C(){if(this.d<=this.f||this.g||this.a)return;const t=this.c.peek(),e=Date.now()-t.writtenTime,i=Date.now()-this.r.lastReadTime,s=Date.now()-this.o;if(e>=2e4&&i>=2e4&&s>=2e4&&!this.t.hasHighLoad()){this.o=Date.now(),this.z.fire({unacknowledgedMsgCount:this.c.length(),timeSinceOldestUnacknowledgedMsg:e,timeSinceLastReceivedSomeData:i});return}const r=Math.max(2e4-e,2e4-i,2e4-s,500);this.g=setTimeout(()=>{this.g=null,this.C()},r)}D(){if(this.h<=this.j)return;this.j=this.h;const t=new Fi(3,0,this.j,pr());this.q.write(t)}E(){this.j=this.h;const t=new Fi(9,0,this.j,pr());this.q.write(t)}}}});import{createHash as t3}from"crypto";import{createServer as i3,createConnection as s3}from"net";import"os";import"zlib";function r3(t,e,i){const r=t3("sha256").update(t).digest("hex").substr(0,8);if(process.platform==="win32")return`\\\\.\\pipe\\${r}-${i}-${e}-sock`;const n=i.substr(0,4),o=e.substr(0,6);let a;return process.platform!=="darwin"&&$l&&!process.env.VSCODE_PORTABLE?a=M($l,`vscode-${r}-${n}-${o}.sock`):a=M(t,`${n}-${o}.sock`),n3(a),a}function n3(t){const e=Uw[In];typeof e=="number"&&t.length>=e&&console.warn(`WARNING: IPC handle "${t}" is longer than ${e} chars, try a shorter --user-data-dir`)}function o3(t){return new Promise((e,i)=>{const s=i3();s.on("error",i),s.listen(t,()=>{s.removeListener("error",i),e(new jw(s))})})}function a3(t,e){return new Promise((i,s)=>{const r=s3(t,()=>{r.removeListener("error",s),i(Ow.fromSocket(new Ea(r,`ipc-client${e}`),e))});r.once("error",s)})}var _w,Ea,Tw,Bw,$l,Uw,jw,Ff=v({"out-build/vs/base/parts/ipc/node/ipc.net.js"(){"use strict";Ke(),De(),J(),T(),ge(),G(),Ei(),Hs(),Ww(),_w=3e4,Ea=class{traceSocketEvent(t,e){Lf.traceSocketEvent(this.socket,this.debugLabel,t,e)}constructor(t,e=""){this.f=!0,this.debugLabel=e,this.socket=t,this.traceSocketEvent("created",{type:"NodeSocket"}),this.a=s=>{if(this.traceSocketEvent("error",{code:s?.code,message:s?.message}),s){if(s.code==="EPIPE")return;Ct(s)}},this.socket.on("error",this.a);let i;this.b=s=>{this.traceSocketEvent("close",{hadError:s}),this.f=!1,i&&clearTimeout(i)},this.socket.on("close",this.b),this.d=()=>{this.traceSocketEvent("nodeEndReceived"),this.f=!1,i=setTimeout(()=>t.destroy(),_w)},this.socket.on("end",this.d)}dispose(){this.socket.off("error",this.a),this.socket.off("close",this.b),this.socket.off("end",this.d),this.socket.destroy()}onData(t){const e=i=>{this.traceSocketEvent("read",i),t(q.wrap(i))};return this.socket.on("data",e),{dispose:()=>this.socket.off("data",e)}}onClose(t){const e=i=>{t({type:0,hadError:i,error:void 0})};return this.socket.on("close",e),{dispose:()=>this.socket.off("close",e)}}onEnd(t){const e=()=>{t()};return this.socket.on("end",e),{dispose:()=>this.socket.off("end",e)}}write(t){if(!(this.socket.destroyed||!this.f))try{this.traceSocketEvent("write",t),this.socket.write(t.buffer,e=>{if(e){if(e.code==="EPIPE")return;Ct(e)}})}catch(e){if(e.code==="EPIPE")return;Ct(e)}}end(){this.traceSocketEvent("nodeEndSent"),this.socket.end()}drain(){return this.traceSocketEvent("nodeDrainBegin"),new Promise((t,e)=>{if(this.socket.bufferSize===0){this.traceSocketEvent("nodeDrainEnd"),t();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"),t()};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(t){t[t.MinHeaderByteSize=2]="MinHeaderByteSize",t[t.MaxWebSocketMessageLength=262144]="MaxWebSocketMessageLength"}(Tw||(Tw={})),function(t){t[t.PeekHeader=1]="PeekHeader",t[t.ReadHeader=2]="ReadHeader",t[t.ReadBody=3]="ReadBody",t[t.Fin=4]="Fin"}(Bw||(Bw={})),$l=process.env.XDG_RUNTIME_DIR,Uw={2:107,1:103},jw=class G9 extends Rf{static b(e){const i=x.fromNodeEventEmitter(e,"connection");return x.map(i,s=>({protocol:new Mf(new Ea(s,"ipc-server-connection")),onDidClientDisconnect:x.once(x.fromNodeEventEmitter(s,"close"))}))}constructor(e){super(G9.b(e)),this.d=e}dispose(){super.dispose(),this.d&&(this.d.close(),this.d=null)}}}});import xa from"electron";var zw,wt,ds=v({"out-build/vs/base/parts/ipc/electron-main/ipcMain.js"(){"use strict";De(),Oe(),zw=class{constructor(){this.a=new WeakMap}on(t,e){const i=(s,...r)=>{this.b(t,s)&&e(s,...r)};return this.a.set(e,i),xa.ipcMain.on(t,i),this}once(t,e){return xa.ipcMain.once(t,(i,...s)=>{this.b(t,i)&&e(i,...s)}),this}handle(t,e){return xa.ipcMain.handle(t,(i,...s)=>this.b(t,i)?e(i,...s):Promise.reject(`Invalid channel '${t}' or sender for ipcMain.handle() usage.`)),this}removeHandler(t){return xa.ipcMain.removeHandler(t),this}removeListener(t,e){const i=this.a.get(e);return i&&(xa.ipcMain.removeListener(t,i),this.a.delete(e)),this}b(t,e){if(!t||!t.startsWith("vscode:"))return Ct(`Refused to handle ipcMain event for channel '${t}' because the channel is unknown.`),!1;const i=e.senderFrame,s=i?.url;if(!s||s==="about:blank")return!0;let r="unknown";try{r=new URL(s).host}catch{return Ct(`Refused to handle ipcMain event for channel '${t}' because of a malformed URL '${s}'.`),!1}return r!==sa?(Ct(`Refused to handle ipcMain event for channel '${t}' because of a bad origin of '${r}'.`),!1):i?.parent!==null?(Ct(`Refused to handle ipcMain event for channel '${t}' because sender of origin '${r}' is not a main frame.`),!1):!0}},wt=new zw}}),Hw,Vw,c3=v({"out-build/vs/base/parts/contextmenu/common/contextmenu.js"(){"use strict";Hw="vscode:contextmenu",Vw="vscode:onCloseContextMenu"}});import{Menu as l3,MenuItem as Nf}from"electron";function h3(){wt.on(Hw,(t,e,i,s,r)=>{const n=qw(t,s,i);n.popup({x:r?r.x:void 0,y:r?r.y:void 0,positioningItem:r?r.positioningItem:void 0,callback:()=>{n&&t.sender.send(Vw,e)}})})}function qw(t,e,i){const s=new l3;return i.forEach(r=>{let n;r.type==="separator"?n=new Nf({type:r.type}):Array.isArray(r.submenu)?n=new Nf({submenu:qw(t,e,r.submenu),label:r.label}):n=new Nf({label:r.label,type:r.type,accelerator:r.accelerator,checked:r.checked,enabled:r.enabled,visible:r.visible,click:(o,a,c)=>t.sender.send(e,r.id,c)}),s.append(n)}),s}var u3=v({"out-build/vs/base/parts/contextmenu/electron-main/contextmenu.js"(){"use strict";ds(),c3()}}),Gw,d3=v({"out-build/vs/base/parts/ipc/common/ipc.electron.js"(){"use strict";Gw=class{constructor(t,e){this.a=t,this.onMessage=e}send(t){try{this.a.send("vscode:message",t.buffer)}catch{}}disconnect(){this.a.send("vscode:disconnect",null)}}}});function Jw(t,e){const i=x.fromNodeEventEmitter(wt,e,(r,n)=>({event:r,message:n})),s=x.filter(i,({event:r})=>r.sender.id===t);return x.map(s,({message:r})=>r&&q.wrap(r))}var Kw,f3=v({"out-build/vs/base/parts/ipc/electron-main/ipc.electron.js"(){"use strict";ds(),Ke(),J(),T(),Hs(),d3(),Kw=class od extends Rf{static{this.b=new Map}static d(){const e=x.fromNodeEventEmitter(wt,"vscode:hello",({sender:i})=>i);return x.map(e,i=>{const s=i.id;od.b.get(s)?.dispose();const n=new D;od.b.set(s,be(()=>n.fire()));const o=Jw(s,"vscode:message"),a=x.any(x.signal(Jw(s,"vscode:disconnect")),n.event);return{protocol:new Gw(i,o),onDidClientDisconnect:a}})}constructor(){super(od.d())}}}}),Zw,Yw,p3=v({"out-build/vs/base/parts/ipc/common/ipc.mp.js"(){"use strict";Ke(),J(),Hs(),Zw=class{constructor(t){this.a=t,this.onMessage=x.fromDOMEventEmitter(this.a,"message",e=>e.data?q.wrap(e.data):q.alloc(0)),t.start()}send(t){this.a.postMessage(t.buffer)}disconnect(){this.a.close()}},Yw=class extends Of{constructor(t,e){const i=new Zw(t);super(i,e),this.b=i}dispose(){this.b.disconnect(),super.dispose()}}}}),Wf,Qw=v({"out-build/vs/base/parts/ipc/electron-main/ipc.mp.js"(){"use strict";ds(),J(),Ei(),p3(),Wf=class extends Yw{constructor(t,e){super({addEventListener:(i,s)=>t.addListener(i,s),removeEventListener:(i,s)=>t.removeListener(i,s),postMessage:i=>t.postMessage(i),start:()=>t.start(),close:()=>t.close()},e)}}}});function fs(t){return _f(t,0)}function _f(t,e){switch(typeof t){case"object":return t===null?Vs(349,e):Array.isArray(t)?g3(t,e):w3(t,e);case"string":return Xw(t,e);case"boolean":return m3(t,e);case"number":return Vs(t,e);case"undefined":return Vs(937,e);default:return Vs(617,e)}}function Vs(t,e){return(e<<5)-e+t|0}function m3(t,e){return Vs(t?433:863,e)}function Xw(t,e){e=Vs(149417,e);for(let i=0,s=t.length;i<s;i++)e=Vs(t.charCodeAt(i),e);return e}function g3(t,e){return e=Vs(104579,e),t.reduce((i,s)=>_f(s,i),e)}function w3(t,e){return e=Vs(181387,e),Object.keys(t).sort().reduce((i,s)=>(i=Xw(s,i),_f(t[s],i)),e)}function Tf(t,e,i=32){const s=i-e,r=~((1<<s)-1);return(t<<e|(r&t)>>>s)>>>0}function Pa(t,e=32){return t instanceof ArrayBuffer?J8(q.wrap(new Uint8Array(t))):(t>>>0).toString(16).padStart(e/4,"0")}var ev,v3,qs=v({"out-build/vs/base/common/hash.js"(){"use strict";Ke(),xt(),function(t){t[t.BLOCK_SIZE=64]="BLOCK_SIZE",t[t.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"}(ev||(ev={})),v3=class J9{static{this.g=new DataView(new ArrayBuffer(320))}constructor(){this.h=1732584193,this.l=4023233417,this.m=2562383102,this.n=271733878,this.o=3285377520,this.p=new Uint8Array(67),this.q=new DataView(this.p.buffer),this.r=0,this.t=0,this.u=0,this.v=!1}update(e){const i=e.length;if(i===0)return;const s=this.p;let r=this.r,n=this.u,o,a;for(n!==0?(o=n,a=-1,n=0):(o=e.charCodeAt(0),a=0);;){let c=o;if(k7(o))if(a+1<i){const l=e.charCodeAt(a+1);rg(l)?(a++,c=S7(o,l)):c=65533}else{n=o;break}else rg(o)&&(c=65533);if(r=this.w(s,r,c),a++,a<i)o=e.charCodeAt(a);else break}this.r=r,this.u=n}w(e,i,s){return s<128?e[i++]=s:s<2048?(e[i++]=192|(s&1984)>>>6,e[i++]=128|(s&63)>>>0):s<65536?(e[i++]=224|(s&61440)>>>12,e[i++]=128|(s&4032)>>>6,e[i++]=128|(s&63)>>>0):(e[i++]=240|(s&1835008)>>>18,e[i++]=128|(s&258048)>>>12,e[i++]=128|(s&4032)>>>6,e[i++]=128|(s&63)>>>0),i>=64&&(this.y(),i-=64,this.t+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),i}digest(){return this.v||(this.v=!0,this.u&&(this.u=0,this.r=this.w(this.p,this.r,65533)),this.t+=this.r,this.x()),Pa(this.h)+Pa(this.l)+Pa(this.m)+Pa(this.n)+Pa(this.o)}x(){this.p[this.r++]=128,this.p.subarray(this.r).fill(0),this.r>56&&(this.y(),this.p.fill(0));const e=8*this.t;this.q.setUint32(56,Math.floor(e/4294967296),!1),this.q.setUint32(60,e%4294967296,!1),this.y()}y(){const e=J9.g,i=this.q;for(let u=0;u<64;u+=4)e.setUint32(u,i.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,Tf(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let s=this.h,r=this.l,n=this.m,o=this.n,a=this.o,c,l,h;for(let u=0;u<80;u++)u<20?(c=r&n|~r&o,l=1518500249):u<40?(c=r^n^o,l=1859775393):u<60?(c=r&n|r&o|n&o,l=2400959708):(c=r^n^o,l=3395469782),h=Tf(s,5)+c+a+l+e.getUint32(u*4,!1)&4294967295,a=o,o=n,n=Tf(r,30),r=s,s=h;this.h=this.h+s&4294967295,this.l=this.l+r&4294967295,this.m=this.m+n&4294967295,this.n=this.n+o&4294967295,this.o=this.o+a&4294967295}}}}),y3,Al,tv,iv,sv=v({"out-build/vs/platform/encryption/common/encryptionService.js"(){"use strict";Z(),y3=V("encryptionService"),Al=V("encryptionMainService"),function(t){t.kwallet="kwallet",t.kwallet5="kwallet5",t.gnomeLibsecret="gnome-libsecret",t.basic="basic"}(tv||(tv={})),function(t){t.unknown="unknown",t.basicText="basic_text",t.gnomeAny="gnome_any",t.gnomeLibsecret="gnome_libsecret",t.gnomeKeyring="gnome_keyring",t.kwallet="kwallet",t.kwallet5="kwallet5",t.kwallet6="kwallet6",t.dplib="dpapi",t.keychainAccess="keychain_access"}(iv||(iv={}))}}),ps,ms,xi=v({"out-build/vs/platform/environment/common/environment.js"(){"use strict";Z(),ps=V("environmentService"),ms=ps}});function b3(t){return t.getFullYear()+"-"+String(t.getMonth()+1).padStart(2,"0")+"-"+String(t.getDate()).padStart(2,"0")+"T"+String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")+":"+String(t.getSeconds()).padStart(2,"0")+"."+(t.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}var rv,nv,Dl,k3,S3,E3,x3=v({"out-build/vs/base/common/date.js"(){"use strict";we(),_r(),G(),rv=60,nv=rv*60,Dl=nv*24,k3=Dl*7,S3=Dl*30,E3=Dl*365}});function P3(t,e){return Bf(t["inspect-extensions"],t["inspect-brk-extensions"],5870,e,t.debugId,t.extensionEnvironment)}function Bf(t,e,i,s,r,n){const a=Number(e||t)||(s?null:i),c=a?!!e:!1;let l;if(n)try{l=JSON.parse(n)}catch{}return{port:a,break:c,debugId:r,env:l}}var Uf,Le,$3=v({"out-build/vs/platform/environment/common/environmentService.js"(){"use strict";x3(),zr(),Oe(),ge(),ns(),et(),re(),Uf=/^([^.]+\..+)[:=](.+)$/,Le=class{get appRoot(){return dt(ei.asFileUri("").fsPath)}get userHome(){return $.file(this.b.homeDir)}get userDataPath(){return this.b.userDataDir}get appSettingsHome(){return $.file(M(this.userDataPath,"User"))}get tmpDir(){return $.file(this.b.tmpDir)}get cacheHome(){return $.file(this.userDataPath)}get stateResource(){return pe(this.appSettingsHome,"globalStorage","storage.json")}get userRoamingDataHome(){return this.appSettingsHome.with({scheme:O.vscodeUserData})}get userDataSyncHome(){return pe(this.appSettingsHome,"sync")}get logsHome(){if(!this.args.logsPath){const t=b3(new Date).replace(/-|:|\.\d+Z$/g,"");this.args.logsPath=M(this.userDataPath,"logs",t)}return $.file(this.args.logsPath)}get sync(){return this.args.sync}get machineSettingsResource(){return pe($.file(M(this.userDataPath,"Machine")),"settings.json")}get workspaceStorageHome(){return pe(this.appSettingsHome,"workspaceStorage")}get localHistoryHome(){return pe(this.appSettingsHome,"History")}get keyboardLayoutResource(){return pe(this.userRoamingDataHome,"keyboardLayout.json")}get argvResource(){const t=Oi.VSCODE_PORTABLE;return t?$.file(M(t,"argv.json")):pe(this.userHome,this.c.dataFolderName,"argv.json")}get isExtensionDevelopment(){return!!this.args.extensionDevelopmentPath}get untitledWorkspacesHome(){return $.file(M(this.userDataPath,"Workspaces"))}get builtinExtensionsPath(){const t=this.args["builtin-extensions-dir"];return t?nr(t):Zt(M(ei.asFileUri("").fsPath,"..","extensions"))}get extensionsDownloadLocation(){const t=this.args["extensions-download-dir"];return t?$.file(nr(t)):$.file(M(this.userDataPath,"CachedExtensionVSIXs"))}get extensionsPath(){const t=this.args["extensions-dir"];if(t)return nr(t);const e=Oi.VSCODE_EXTENSIONS;if(e)return e;const i=Oi.VSCODE_PORTABLE;return i?M(i,"extensions"):pe(this.userHome,this.c.dataFolderName,"extensions").fsPath}get extensionDevelopmentLocationURI(){const t=this.args.extensionDevelopmentPath;if(Array.isArray(t))return t.map(e=>/^[^:/?#]+?:\/\//.test(e)?$.parse(e):$.file(Zt(e)))}get extensionDevelopmentKind(){return this.args.extensionDevelopmentKind?.map(t=>t==="ui"||t==="workspace"||t==="web"?t:"workspace")}get extensionTestsLocationURI(){const t=this.args.extensionTestsPath;if(t)return/^[^:/?#]+?:\/\//.test(t)?$.parse(t):$.file(Zt(t))}get disableExtensions(){if(this.args["disable-extensions"])return!0;const t=this.args["disable-extension"];if(t){if(typeof t=="string")return[t];if(Array.isArray(t)&&t.length>0)return t}return!1}get debugExtensionHost(){return P3(this.args,this.isBuilt)}get debugRenderer(){return!!this.args.debugRenderer}get isBuilt(){return!Oi.VSCODE_DEV}get verbose(){return!!this.args.verbose}get logLevel(){return this.args.log?.find(t=>!Uf.test(t))}get extensionLogLevel(){const t=[];for(const e of this.args.log||[]){const i=Uf.exec(e);i&&i[1]&&i[2]&&t.push([i[1],i[2]])}return t.length?t:void 0}get serviceMachineIdResource(){return pe($.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 t=Oi.VSCODE_PORTABLE;return t?$.file(M(t,"policy.json")):pe(this.userHome,this.c.dataFolderName,"policy.json")}}get editSessionId(){return this.args.editSessionId}get continueOn(){return this.args.continueOn}set continueOn(t){this.args.continueOn=t}get args(){return this.a}constructor(t,e,i){this.a=t,this.b=e,this.c=i}},__decorate([ue],Le.prototype,"appRoot",null),__decorate([ue],Le.prototype,"userHome",null),__decorate([ue],Le.prototype,"userDataPath",null),__decorate([ue],Le.prototype,"appSettingsHome",null),__decorate([ue],Le.prototype,"tmpDir",null),__decorate([ue],Le.prototype,"cacheHome",null),__decorate([ue],Le.prototype,"stateResource",null),__decorate([ue],Le.prototype,"userRoamingDataHome",null),__decorate([ue],Le.prototype,"userDataSyncHome",null),__decorate([ue],Le.prototype,"sync",null),__decorate([ue],Le.prototype,"machineSettingsResource",null),__decorate([ue],Le.prototype,"workspaceStorageHome",null),__decorate([ue],Le.prototype,"localHistoryHome",null),__decorate([ue],Le.prototype,"keyboardLayoutResource",null),__decorate([ue],Le.prototype,"argvResource",null),__decorate([ue],Le.prototype,"isExtensionDevelopment",null),__decorate([ue],Le.prototype,"untitledWorkspacesHome",null),__decorate([ue],Le.prototype,"builtinExtensionsPath",null),__decorate([ue],Le.prototype,"extensionsPath",null),__decorate([ue],Le.prototype,"extensionDevelopmentLocationURI",null),__decorate([ue],Le.prototype,"extensionDevelopmentKind",null),__decorate([ue],Le.prototype,"extensionTestsLocationURI",null),__decorate([ue],Le.prototype,"debugExtensionHost",null),__decorate([ue],Le.prototype,"logLevel",null),__decorate([ue],Le.prototype,"extensionLogLevel",null),__decorate([ue],Le.prototype,"serviceMachineIdResource",null),__decorate([ue],Le.prototype,"disableTelemetry",null),__decorate([ue],Le.prototype,"disableWorkspaceTrust",null),__decorate([ue],Le.prototype,"useInMemorySecretStorage",null),__decorate([ue],Le.prototype,"policyFile",null)}});import{homedir as A3,tmpdir as D3}from"os";function I3(t,e){return Bf(t["inspect-ptyhost"],t["inspect-brk-ptyhost"],5877,e,t.extensionEnvironment)}function C3(t,e){return Bf(t["inspect-sharedprocess"],t["inspect-brk-sharedprocess"],5879,e,t.extensionEnvironment)}var ov,jf=v({"out-build/vs/platform/environment/node/environmentService.js"(){"use strict";$3(),Hm(),ov=class extends Le{constructor(t,e){super(t,{homeDir:A3(),tmpDir:D3(),userDataDir:jm(t,e.nameShort)},e)}}}}),ht,gs,Pt=v({"out-build/vs/platform/environment/electron-main/environmentMainService.js"(){"use strict";zr(),ge(),G(),Ff(),xi(),jf(),Z(),ht=ps,gs=class extends ov{constructor(){super(...arguments),this.d={}}get backupHome(){return M(this.userDataPath,"Backups")}get mainIPCHandle(){return r3(this.userDataPath,"main",this.c.version)}get mainLockfile(){return M(this.userDataPath,"code.lock")}get disableUpdates(){return!!this.args["disable-updates"]}get crossOriginIsolated(){return!!this.args["enable-coi"]}get enableRDPDisplayTracking(){return!!this.args["enable-rdp-display-tracking"]}get codeCachePath(){return process.env.VSCODE_CODE_CACHE_PATH||void 0}get useCodeCache(){return!!this.codeCachePath}unsetSnapExportedVariables(){if(Se){for(const t in process.env)if(t.endsWith("_VSCODE_SNAP_ORIG")){const e=t.slice(0,-17);if(this.d[e])continue;process.env[e]&&(this.d[e]=process.env[e]),process.env[t]?process.env[e]=process.env[t]:delete process.env[e]}}}restoreSnapExportedVariables(){if(Se)for(const t in this.d)process.env[t]=this.d[t],delete this.d[t]}},__decorate([ue],gs.prototype,"backupHome",null),__decorate([ue],gs.prototype,"mainIPCHandle",null),__decorate([ue],gs.prototype,"mainLockfile",null),__decorate([ue],gs.prototype,"disableUpdates",null),__decorate([ue],gs.prototype,"crossOriginIsolated",null),__decorate([ue],gs.prototype,"enableRDPDisplayTracking",null),__decorate([ue],gs.prototype,"codeCachePath",null),__decorate([ue],gs.prototype,"useCodeCache",null)}});function zf(...t){switch(t.length){case 1:return g(1818,null,t[0]);case 2:return g(1819,null,t[0],t[1]);case 3:return g(1820,null,t[0],t[1],t[2]);default:return}}var av,cv,lv,qn,R3=v({"out-build/vs/platform/contextkey/common/scanner.js"(){"use strict";De(),we(),function(t){t[t.LParen=0]="LParen",t[t.RParen=1]="RParen",t[t.Neg=2]="Neg",t[t.Eq=3]="Eq",t[t.NotEq=4]="NotEq",t[t.Lt=5]="Lt",t[t.LtEq=6]="LtEq",t[t.Gt=7]="Gt",t[t.GtEq=8]="GtEq",t[t.RegexOp=9]="RegexOp",t[t.RegexStr=10]="RegexStr",t[t.True=11]="True",t[t.False=12]="False",t[t.In=13]="In",t[t.Not=14]="Not",t[t.And=15]="And",t[t.Or=16]="Or",t[t.Str=17]="Str",t[t.QuotedStr=18]="QuotedStr",t[t.Error=19]="Error",t[t.EOF=20]="EOF"}(av||(av={})),cv=g(1821,null),lv=g(1822,null),qn=class $m{constructor(){this.c="",this.d=0,this.e=0,this.f=[],this.g=[],this.m=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw S0(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static{this.a=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0)))}static{this.b=new Map([["not",14],["in",13],["false",12],["true",11]])}get errors(){return this.g}reset(e){return this.c=e,this.d=0,this.e=0,this.f=[],this.g=[],this}scan(){for(;!this.r();)switch(this.d=this.e,this.i()){case 40:this.k(0);break;case 41:this.k(1);break;case 33:if(this.h(61)){const i=this.h(61);this.f.push({type:4,offset:this.d,isTripleEq:i})}else this.k(2);break;case 39:this.o();break;case 47:this.q();break;case 61:if(this.h(61)){const i=this.h(61);this.f.push({type:3,offset:this.d,isTripleEq:i})}else this.h(126)?this.k(9):this.l(zf("==","=~"));break;case 60:this.k(this.h(61)?6:5);break;case 62:this.k(this.h(61)?8:7);break;case 38:this.h(38)?this.k(15):this.l(zf("&&"));break;case 124:this.h(124)?this.k(16):this.l(zf("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this.n()}return this.d=this.e,this.k(20),Array.from(this.f)}h(e){return this.r()||this.c.charCodeAt(this.e)!==e?!1:(this.e++,!0)}i(){return this.c.charCodeAt(this.e++)}j(){return this.r()?0:this.c.charCodeAt(this.e)}k(e){this.f.push({type:e,offset:this.d})}l(e){const i=this.d,s=this.c.substring(this.d,this.e),r={type:19,offset:this.d,lexeme:s};this.g.push({offset:i,lexeme:s,additionalInfo:e}),this.f.push(r)}n(){this.m.lastIndex=this.d;const e=this.m.exec(this.c);if(e){this.e=this.d+e[0].length;const i=this.c.substring(this.d,this.e),s=$m.b.get(i);s?this.k(s):this.f.push({type:17,lexeme:i,offset:this.d})}}o(){for(;this.j()!==39&&!this.r();)this.i();if(this.r()){this.l(cv);return}this.i(),this.f.push({type:18,lexeme:this.c.substring(this.d+1,this.e-1),offset:this.d+1})}q(){let e=this.e,i=!1,s=!1;for(;;){if(e>=this.c.length){this.e=e,this.l(lv);return}const n=this.c.charCodeAt(e);if(i)i=!1;else if(n===47&&!s){e++;break}else n===91?s=!0:n===92?i=!0:n===93&&(s=!1);e++}for(;e<this.c.length&&$m.a.has(this.c.charCodeAt(e));)e++;this.e=e;const r=this.c.substring(this.d,this.e);this.f.push({type:10,lexeme:r,offset:this.d})}r(){return this.e>=this.c.length}}}});function $a(t,e){return t.cmp(e)}function Il(t,e){if(typeof t=="string"){const i=parseFloat(t);isNaN(i)||(t=i)}return typeof t=="string"||typeof t=="number"?e(t):Vt.INSTANCE}function hv(t){let e=null;for(let i=0,s=t.length;i<s;i++){const r=t[i].substituteConstants();if(t[i]!==r&&e===null){e=[];for(let n=0;n<i;n++)e[n]=t[n]}e!==null&&(e[i]=r)}return e===null?t:e}function uv(t,e){return t<e?-1:t>e?1:0}function Vr(t,e,i,s){return t<i?-1:t>i?1:e<s?-1:e>s?1:0}function dv(t){return t.type===9?t.expr:[t]}var vt,fv,pv,mv,gv,wv,vv,Hf,yv,bv,kv,Sv,Ev,Wt,Vt,ii,Gn,Cl,Vf,qf,Rl,Jn,Aa,Ol,Ll,Ml,Fl,xv,Gf,Nl,Jf,O3,Pv=v({"out-build/vs/platform/contextkey/common/contextkey.js"(){"use strict";G(),xt(),R3(),Z(),we(),De(),vt=new Map,vt.set("false",!1),vt.set("true",!0),vt.set("isMac",N),vt.set("isLinux",Se),vt.set("isWindows",B),vt.set("isWeb",Vi),vt.set("isMacNative",N&&!Vi),vt.set("isEdge",h0),vt.set("isFirefox",c0),vt.set("isChrome",Rd),vt.set("isSafari",l0),fv=Object.prototype.hasOwnProperty,function(t){t[t.False=0]="False",t[t.True=1]="True",t[t.Defined=2]="Defined",t[t.Not=3]="Not",t[t.Equals=4]="Equals",t[t.NotEquals=5]="NotEquals",t[t.And=6]="And",t[t.Regex=7]="Regex",t[t.NotRegex=8]="NotRegex",t[t.Or=9]="Or",t[t.In=10]="In",t[t.NotIn=11]="NotIn",t[t.Greater=12]="Greater",t[t.GreaterEquals=13]="GreaterEquals",t[t.Smaller=14]="Smaller",t[t.SmallerEquals=15]="SmallerEquals"}(pv||(pv={})),mv={regexParsingWithErrorRecovery:!0},gv=g(1798,null),wv=g(1799,null),vv=g(1800,null),Hf=g(1801,null),yv=g(1802,null),bv=g(1803,null),kv=g(1804,null),Sv=g(1805,null),Ev=class Nc{static{this.c=new Error}get lexingErrors(){return this.d.errors}get parsingErrors(){return this.h}constructor(e=mv){this.k=e,this.d=new qn,this.f=[],this.g=0,this.h=[],this.v=/g|y/g}parse(e){if(e===""){this.h.push({message:gv,offset:0,lexeme:"",additionalInfo:wv});return}this.f=this.d.reset(e).scan(),this.g=0,this.h=[];try{const i=this.l();if(!this.E()){const s=this.D(),r=s.type===17?bv:void 0;throw this.h.push({message:yv,offset:s.offset,lexeme:qn.getLexeme(s),additionalInfo:r}),Nc.c}return i}catch(i){if(i!==Nc.c)throw i;return}}l(){return this.m()}m(){const e=[this.o()];for(;this.y(16);){const i=this.o();e.push(i)}return e.length===1?e[0]:Wt.or(...e)}o(){const e=[this.s()];for(;this.y(15);){const i=this.s();e.push(i)}return e.length===1?e[0]:Wt.and(...e)}s(){if(this.y(2)){const e=this.D();switch(e.type){case 11:return this.z(),Vt.INSTANCE;case 12:return this.z(),ii.INSTANCE;case 0:{this.z();const i=this.l();return this.A(1,Hf),i?.negate()}case 17:return this.z(),Jn.create(e.lexeme);default:throw this.B("KEY | true | false | '(' expression ')'",e)}}return this.t()}t(){const e=this.D();switch(e.type){case 11:return this.z(),Wt.true();case 12:return this.z(),Wt.false();case 0:{this.z();const i=this.l();return this.A(1,Hf),i}case 17:{const i=e.lexeme;if(this.z(),this.y(9)){const r=this.D();if(!this.k.regexParsingWithErrorRecovery){if(this.z(),r.type!==10)throw this.B("REGEX",r);const n=r.lexeme,o=n.lastIndexOf("/"),a=o===n.length-1?void 0:this.w(n.substring(o+1));let c;try{c=new RegExp(n.substring(1,o),a)}catch{throw this.B("REGEX",r)}return Fl.create(i,c)}switch(r.type){case 10:case 19:{const n=[r.lexeme];this.z();let o=this.D(),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.E()&&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(qn.getLexeme(o)),this.z(),o=this.D()}const c=n.join(""),l=c.lastIndexOf("/"),h=l===c.length-1?void 0:this.w(c.substring(l+1));let u;try{u=new RegExp(c.substring(1,l),h)}catch{throw this.B("REGEX",r)}return Wt.regex(i,u)}case 18:{const n=r.lexeme;this.z();let o=null;if(!b7(n)){const a=n.indexOf("/"),c=n.lastIndexOf("/");if(a!==c&&a>=0){const l=n.slice(a+1,c),h=n[c+1]==="i"?"i":"";try{o=new RegExp(l,h)}catch{throw this.B("REGEX",r)}}}if(o===null)throw this.B("REGEX",r);return Fl.create(i,o)}default:throw this.B("REGEX",this.D())}}if(this.y(14)){this.A(13,vv);const r=this.u();return Wt.notIn(i,r)}switch(this.D().type){case 3:{this.z();const r=this.u();if(this.x().type===18)return Wt.equals(i,r);switch(r){case"true":return Wt.has(i);case"false":return Wt.not(i);default:return Wt.equals(i,r)}}case 4:{this.z();const r=this.u();if(this.x().type===18)return Wt.notEquals(i,r);switch(r){case"true":return Wt.not(i);case"false":return Wt.has(i);default:return Wt.notEquals(i,r)}}case 5:return this.z(),Ll.create(i,this.u());case 6:return this.z(),Ml.create(i,this.u());case 7:return this.z(),Aa.create(i,this.u());case 8:return this.z(),Ol.create(i,this.u());case 13:return this.z(),Wt.in(i,this.u());default:return Wt.has(i)}}case 20:throw this.h.push({message:kv,offset:e.offset,lexeme:"",additionalInfo:Sv}),Nc.c;default:throw this.B(`true | false | KEY
| KEY '=~' REGEX
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this.D())}}u(){const e=this.D();switch(e.type){case 17:case 18:return this.z(),e.lexeme;case 11:return this.z(),"true";case 12:return this.z(),"false";case 13:return this.z(),"in";default:return""}}w(e){return e.replaceAll(this.v,"")}x(){return this.f[this.g-1]}y(e){return this.C(e)?(this.z(),!0):!1}z(){return this.E()||this.g++,this.x()}A(e,i){if(this.C(e))return this.z();throw this.B(i,this.D())}B(e,i,s){const r=g(1806,null,e,qn.getLexeme(i)),n=i.offset,o=qn.getLexeme(i);return this.h.push({message:r,offset:n,lexeme:o,additionalInfo:s}),Nc.c}C(e){return this.D().type===e}D(){return this.f[this.g]}E(){return this.D().type===20}},Wt=class{static false(){return Vt.INSTANCE}static true(){return ii.INSTANCE}static has(t){return Gn.create(t)}static equals(t,e){return Cl.create(t,e)}static notEquals(t,e){return Rl.create(t,e)}static regex(t,e){return Fl.create(t,e)}static in(t,e){return Vf.create(t,e)}static notIn(t,e){return qf.create(t,e)}static not(t){return Jn.create(t)}static and(...t){return Gf.create(t,null,!0)}static or(...t){return Nl.create(t,null,!0)}static greater(t,e){return Aa.create(t,e)}static greaterEquals(t,e){return Ol.create(t,e)}static smaller(t,e){return Ll.create(t,e)}static smallerEquals(t,e){return Ml.create(t,e)}static{this.c=new Ev({regexParsingWithErrorRecovery:!1})}static deserialize(t){return t==null?void 0:this.c.parse(t)}},Vt=class K9{static{this.INSTANCE=new K9}constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}map(e){return this}negate(){return ii.INSTANCE}},ii=class Z9{static{this.INSTANCE=new Z9}constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}map(e){return this}negate(){return Vt.INSTANCE}},Gn=class Y9{static create(e,i=null){const s=vt.get(e);return typeof s=="boolean"?s?ii.INSTANCE:Vt.INSTANCE:new Y9(e,i)}constructor(e,i){this.key=e,this.c=i,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:uv(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=vt.get(this.key);return typeof e=="boolean"?e?ii.INSTANCE:Vt.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.c||(this.c=Jn.create(this.key,this)),this.c}},Cl=class Q9{static create(e,i,s=null){if(typeof i=="boolean")return i?Gn.create(e,s):Jn.create(e,s);const r=vt.get(e);return typeof r=="boolean"?i===(r?"true":"false")?ii.INSTANCE:Vt.INSTANCE:new Q9(e,i,s)}constructor(e,i,s){this.c=e,this.d=i,this.f=s,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:Vr(this.c,this.d,e.c,e.d)}equals(e){return e.type===this.type?this.c===e.c&&this.d===e.d:!1}substituteConstants(){const e=vt.get(this.c);if(typeof e=="boolean"){const i=e?"true":"false";return this.d===i?ii.INSTANCE:Vt.INSTANCE}return this}evaluate(e){return e.getValue(this.c)==this.d}serialize(){return`${this.c} == '${this.d}'`}keys(){return[this.c]}map(e){return e.mapEquals(this.c,this.d)}negate(){return this.f||(this.f=Rl.create(this.c,this.d,this)),this.f}},Vf=class X9{static create(e,i){return new X9(e,i)}constructor(e,i){this.d=e,this.f=i,this.type=10,this.c=null}cmp(e){return e.type!==this.type?this.type-e.type:Vr(this.d,this.f,e.d,e.f)}equals(e){return e.type===this.type?this.d===e.d&&this.f===e.f:!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.f),s=e.getValue(this.d);return Array.isArray(i)?i.includes(s):typeof s=="string"&&typeof i=="object"&&i!==null?fv.call(i,s):!1}serialize(){return`${this.d} in '${this.f}'`}keys(){return[this.d,this.f]}map(e){return e.mapIn(this.d,this.f)}negate(){return this.c||(this.c=qf.create(this.d,this.f)),this.c}},qf=class e6{static create(e,i){return new e6(e,i)}constructor(e,i){this.d=e,this.f=i,this.type=11,this.c=Vf.create(e,i)}cmp(e){return e.type!==this.type?this.type-e.type:this.c.cmp(e.c)}equals(e){return e.type===this.type?this.c.equals(e.c):!1}substituteConstants(){return this}evaluate(e){return!this.c.evaluate(e)}serialize(){return`${this.d} not in '${this.f}'`}keys(){return this.c.keys()}map(e){return e.mapNotIn(this.d,this.f)}negate(){return this.c}},Rl=class t6{static create(e,i,s=null){if(typeof i=="boolean")return i?Jn.create(e,s):Gn.create(e,s);const r=vt.get(e);return typeof r=="boolean"?i===(r?"true":"false")?Vt.INSTANCE:ii.INSTANCE:new t6(e,i,s)}constructor(e,i,s){this.c=e,this.d=i,this.f=s,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:Vr(this.c,this.d,e.c,e.d)}equals(e){return e.type===this.type?this.c===e.c&&this.d===e.d:!1}substituteConstants(){const e=vt.get(this.c);if(typeof e=="boolean"){const i=e?"true":"false";return this.d===i?Vt.INSTANCE:ii.INSTANCE}return this}evaluate(e){return e.getValue(this.c)!=this.d}serialize(){return`${this.c} != '${this.d}'`}keys(){return[this.c]}map(e){return e.mapNotEquals(this.c,this.d)}negate(){return this.f||(this.f=Cl.create(this.c,this.d,this)),this.f}},Jn=class i6{static create(e,i=null){const s=vt.get(e);return typeof s=="boolean"?s?Vt.INSTANCE:ii.INSTANCE:new i6(e,i)}constructor(e,i){this.c=e,this.d=i,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:uv(this.c,e.c)}equals(e){return e.type===this.type?this.c===e.c:!1}substituteConstants(){const e=vt.get(this.c);return typeof e=="boolean"?e?Vt.INSTANCE:ii.INSTANCE:this}evaluate(e){return!e.getValue(this.c)}serialize(){return`!${this.c}`}keys(){return[this.c]}map(e){return e.mapNot(this.c)}negate(){return this.d||(this.d=Gn.create(this.c,this)),this.d}},Aa=class s6{static create(e,i,s=null){return Il(i,r=>new s6(e,r,s))}constructor(e,i,s){this.c=e,this.d=i,this.f=s,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:Vr(this.c,this.d,e.c,e.d)}equals(e){return e.type===this.type?this.c===e.c&&this.d===e.d:!1}substituteConstants(){return this}evaluate(e){return typeof this.d=="string"?!1:parseFloat(e.getValue(this.c))>this.d}serialize(){return`${this.c} > ${this.d}`}keys(){return[this.c]}map(e){return e.mapGreater(this.c,this.d)}negate(){return this.f||(this.f=Ml.create(this.c,this.d,this)),this.f}},Ol=class r6{static create(e,i,s=null){return Il(i,r=>new r6(e,r,s))}constructor(e,i,s){this.c=e,this.d=i,this.f=s,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:Vr(this.c,this.d,e.c,e.d)}equals(e){return e.type===this.type?this.c===e.c&&this.d===e.d:!1}substituteConstants(){return this}evaluate(e){return typeof this.d=="string"?!1:parseFloat(e.getValue(this.c))>=this.d}serialize(){return`${this.c} >= ${this.d}`}keys(){return[this.c]}map(e){return e.mapGreaterEquals(this.c,this.d)}negate(){return this.f||(this.f=Ll.create(this.c,this.d,this)),this.f}},Ll=class n6{static create(e,i,s=null){return Il(i,r=>new n6(e,r,s))}constructor(e,i,s){this.c=e,this.d=i,this.f=s,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:Vr(this.c,this.d,e.c,e.d)}equals(e){return e.type===this.type?this.c===e.c&&this.d===e.d:!1}substituteConstants(){return this}evaluate(e){return typeof this.d=="string"?!1:parseFloat(e.getValue(this.c))<this.d}serialize(){return`${this.c} < ${this.d}`}keys(){return[this.c]}map(e){return e.mapSmaller(this.c,this.d)}negate(){return this.f||(this.f=Ol.create(this.c,this.d,this)),this.f}},Ml=class o6{static create(e,i,s=null){return Il(i,r=>new o6(e,r,s))}constructor(e,i,s){this.c=e,this.d=i,this.f=s,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:Vr(this.c,this.d,e.c,e.d)}equals(e){return e.type===this.type?this.c===e.c&&this.d===e.d:!1}substituteConstants(){return this}evaluate(e){return typeof this.d=="string"?!1:parseFloat(e.getValue(this.c))<=this.d}serialize(){return`${this.c} <= ${this.d}`}keys(){return[this.c]}map(e){return e.mapSmallerEquals(this.c,this.d)}negate(){return this.f||(this.f=Aa.create(this.c,this.d,this)),this.f}},Fl=class a6{static create(e,i){return new a6(e,i)}constructor(e,i){this.d=e,this.f=i,this.type=7,this.c=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.d<e.d)return-1;if(this.d>e.d)return 1;const i=this.f?this.f.source:"",s=e.f?e.f.source:"";return i<s?-1:i>s?1:0}equals(e){if(e.type===this.type){const i=this.f?this.f.source:"",s=e.f?e.f.source:"";return this.d===e.d&&i===s}return!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.d);return this.f?this.f.test(i):!1}serialize(){const e=this.f?`/${this.f.source}/${this.f.flags}`:"/invalid/";return`${this.d} =~ ${e}`}keys(){return[this.d]}map(e){return e.mapRegex(this.d,this.f)}negate(){return this.c||(this.c=xv.create(this)),this.c}},xv=class Am{static create(e){return new Am(e)}constructor(e){this.c=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this.c.cmp(e.c)}equals(e){return e.type===this.type?this.c.equals(e.c):!1}substituteConstants(){return this}evaluate(e){return!this.c.evaluate(e)}serialize(){return`!(${this.c.serialize()})`}keys(){return this.c.keys()}map(e){return new Am(this.c.map(e))}negate(){return this.c}},Gf=class Mo{static create(e,i,s){return Mo.d(e,i,s)}constructor(e,i){this.expr=e,this.c=i,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let i=0,s=this.expr.length;i<s;i++){const r=$a(this.expr[i],e.expr[i]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let i=0,s=this.expr.length;i<s;i++)if(!this.expr[i].equals(e.expr[i]))return!1;return!0}return!1}substituteConstants(){const e=hv(this.expr);return e===this.expr?this:Mo.create(e,this.c,!1)}evaluate(e){for(let i=0,s=this.expr.length;i<s;i++)if(!this.expr[i].evaluate(e))return!1;return!0}static d(e,i,s){const r=[];let n=!1;for(const o of e)if(o){if(o.type===1){n=!0;continue}if(o.type===0)return Vt.INSTANCE;if(o.type===6){r.push(...o.expr);continue}r.push(o)}if(r.length===0&&n)return ii.INSTANCE;if(r.length!==0){if(r.length===1)return r[0];r.sort($a);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=Nl.create(o.expr.map(h=>Mo.create([h,a],null,s)),null,c);l&&(r.push(l),r.sort($a))}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 Vt.INSTANCE;if(r.length===1)return r[0]}return new Mo(r,i)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}map(e){return new Mo(this.expr.map(i=>i.map(e)),null)}negate(){if(!this.c){const e=[];for(const i of this.expr)e.push(i.negate());this.c=Nl.create(e,this,!0)}return this.c}},Nl=class yn{static create(e,i,s){return yn.d(e,i,s)}constructor(e,i){this.expr=e,this.c=i,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let i=0,s=this.expr.length;i<s;i++){const r=$a(this.expr[i],e.expr[i]);if(r!==0)return r}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let i=0,s=this.expr.length;i<s;i++)if(!this.expr[i].equals(e.expr[i]))return!1;return!0}return!1}substituteConstants(){const e=hv(this.expr);return e===this.expr?this:yn.create(e,this.c,!1)}evaluate(e){for(let i=0,s=this.expr.length;i<s;i++)if(this.expr[i].evaluate(e))return!0;return!1}static d(e,i,s){let r=[],n=!1;if(e){for(let o=0,a=e.length;o<a;o++){const c=e[o];if(c){if(c.type===0){n=!0;continue}if(c.type===1)return ii.INSTANCE;if(c.type===9){r=r.concat(c.expr);continue}r.push(c)}}if(r.length===0&&n)return Vt.INSTANCE;r.sort($a)}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 ii.INSTANCE;if(r.length===1)return r[0]}return new yn(r,i)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}map(e){return new yn(this.expr.map(i=>i.map(e)),null)}negate(){if(!this.c){const e=[];for(const i of this.expr)e.push(i.negate());for(;e.length>1;){const i=e.shift(),s=e.shift(),r=[];for(const n of dv(i))for(const o of dv(s))r.push(Gf.create([n,o],null,!1));e.unshift(yn.create(r,null,!1))}this.c=yn.create(e,this,!0)}return this.c}},Jf=class ad extends Gn{static{this.d=[]}static all(){return ad.d.values()}constructor(e,i,s){super(e,null),this.f=i,typeof s=="object"?ad.d.push({...s,key:e}):s!==!0&&ad.d.push({key:e,description:s,type:i!=null?typeof i:void 0})}bindTo(e){return e.createKey(this.key,this.f)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Cl.create(this.key,e)}notEqualsTo(e){return Rl.create(this.key,e)}greater(e){return Aa.create(this.key,e)}},O3=V("contextKeyService")}});function ws(){return new Date().toISOString()}function $v(t){return el(t)}function L3(t,e){return t!==Y.Off&&t<=e}function Kf(t,e,i){switch(e){case Y.Trace:t.trace(i);break;case Y.Debug:t.debug(i);break;case Y.Info:t.info(i);break;case Y.Warning:t.warn(i);break;case Y.Error:t.error(i);break;case Y.Off:break;default:throw new Error(`Invalid log level ${e}`)}}function Kn(t,e=!1){let i="";for(let s=0;s<t.length;s++){let r=t[s];if(r instanceof Error&&(r=us(r,e)),typeof r=="object")try{r=JSON.stringify(r)}catch{}i+=(s>0?" ":"")+r}return i}function M3(t){if(t.verbose)return Y.Trace;if(typeof t.logLevel=="string"){const e=N3(t.logLevel.toLowerCase());if(e!==void 0)return e}return Ia}function F3(t){switch(t){case Y.Trace:return"trace";case Y.Debug:return"debug";case Y.Info:return"info";case Y.Warning:return"warn";case Y.Error:return"error";case Y.Off:return"off"}}function N3(t){switch(t){case"trace":return Y.Trace;case"debug":return Y.Debug;case"info":return Y.Info;case"warn":return Y.Warning;case"error":return Y.Error;case"critical":return Y.Error;case"off":return Y.Off}}var K,Da,Y,Ia,Wl,Zf,Av,Dv,Iv,Cv,Rv,W3,Q=v({"out-build/vs/platform/log/common/log.js"(){"use strict";we(),jr(),J(),qs(),T(),Qt(),G(),et(),$e(),re(),Pv(),Z(),K=V("logService"),Da=V("loggerService"),function(t){t[t.Off=0]="Off",t[t.Trace=1]="Trace",t[t.Debug=2]="Debug",t[t.Info=3]="Info",t[t.Warning=4]="Warning",t[t.Error=5]="Error"}(Y||(Y={})),Ia=Y.Info,Wl=class extends j{constructor(){super(...arguments),this.b=Ia,this.c=this.B(new D),this.onDidChangeLogLevel=this.c.event}setLevel(t){this.b!==t&&(this.b=t,this.c.fire(this.b))}getLevel(){return this.b}f(t){return L3(this.b,t)}g(t){return this.q.isDisposed?!1:this.f(t)}},Zf=class extends Wl{constructor(t){super(),this.h=t}f(t){return this.h||super.f(t)}trace(t,...e){this.g(Y.Trace)&&this.m(Y.Trace,Kn([t,...e],!0))}debug(t,...e){this.g(Y.Debug)&&this.m(Y.Debug,Kn([t,...e]))}info(t,...e){this.g(Y.Info)&&this.m(Y.Info,Kn([t,...e]))}warn(t,...e){this.g(Y.Warning)&&this.m(Y.Warning,Kn([t,...e]))}error(t,...e){if(this.g(Y.Error))if(t instanceof Error){const i=Array.prototype.slice.call(arguments);i[0]=t.stack,this.m(Y.Error,Kn(i))}else this.m(Y.Error,Kn([t,...e]))}flush(){}},Av=class extends Wl{constructor(t=Ia){super(),this.setLevel(t),this.h=!B}trace(t,...e){this.g(Y.Trace)&&(this.h?console.log(`\x1B[90m[main ${ws()}]\x1B[0m`,t,...e):console.log(`[main ${ws()}]`,t,...e))}debug(t,...e){this.g(Y.Debug)&&(this.h?console.log(`\x1B[90m[main ${ws()}]\x1B[0m`,t,...e):console.log(`[main ${ws()}]`,t,...e))}info(t,...e){this.g(Y.Info)&&(this.h?console.log(`\x1B[90m[main ${ws()}]\x1B[0m`,t,...e):console.log(`[main ${ws()}]`,t,...e))}warn(t,...e){this.g(Y.Warning)&&(this.h?console.warn(`\x1B[93m[main ${ws()}]\x1B[0m`,t,...e):console.warn(`[main ${ws()}]`,t,...e))}error(t,...e){this.g(Y.Error)&&(this.h?console.error(`\x1B[91m[main ${ws()}]\x1B[0m`,t,...e):console.error(`[main ${ws()}]`,t,...e))}flush(){}},Dv=class extends Wl{constructor(t){super(),this.h=t,t.length&&this.setLevel(t[0].getLevel())}setLevel(t){for(const e of this.h)e.setLevel(t);super.setLevel(t)}trace(t,...e){for(const i of this.h)i.trace(t,...e)}debug(t,...e){for(const i of this.h)i.debug(t,...e)}info(t,...e){for(const i of this.h)i.info(t,...e)}warn(t,...e){for(const i of this.h)i.warn(t,...e)}error(t,...e){for(const i of this.h)i.error(t,...e)}flush(){for(const t of this.h)t.flush()}dispose(){for(const t of this.h)t.dispose();super.dispose()}},Iv=class extends j{constructor(t,e,i){if(super(),this.j=t,this.m=e,this.b=new Rt,this.f=this.B(new D),this.onDidChangeLoggers=this.f.event,this.g=this.B(new D),this.onDidChangeLogLevel=this.g.event,this.h=this.B(new D),this.onDidChangeVisibility=this.h.event,i)for(const s of i)this.b.set(s.resource,{logger:void 0,info:s})}n(t){return pt(t)?[...this.b.values()].find(e=>e.info.id===t):this.b.get(t)}getLogger(t){return this.n(t)?.logger}createLogger(t,e){const i=this.s(t),s=pt(t)?t:e?.id??fs(i.toString()).toString(16);let r=this.b.get(i)?.logger;const n=e?.logLevel==="always"?Y.Trace:e?.logLevel;r||(r=this.t(i,n??this.getLogLevel(i)??this.j,{...e,id:s}));const o={logger:r,info:{resource:i,id:s,logLevel:n,name:e?.name,hidden:e?.hidden,group:e?.group,extensionId:e?.extensionId,when:e?.when}};return this.registerLogger(o.info),this.b.set(i,o),r}s(t){return pt(t)?pe(this.m,`${t}.log`):t}setLogLevel(t,e){if($.isUri(t)){const i=t,s=e,r=this.b.get(i);r&&s!==r.info.logLevel&&(r.info.logLevel=s===this.j?void 0:s,r.logger?.setLevel(s),this.b.set(r.info.resource,r),this.g.fire([i,s]))}else{this.j=t;for(const[i,s]of this.b.entries())this.b.get(i)?.info.logLevel===void 0&&s.logger?.setLevel(this.j);this.g.fire(this.j)}}setVisibility(t,e){const i=this.n(t);i&&e!==!i.info.hidden&&(i.info.hidden=!e,this.b.set(i.info.resource,i),this.h.fire([i.info.resource,e]))}getLogLevel(t){let e;return t&&(e=this.b.get(t)?.info.logLevel),e??this.j}registerLogger(t){const e=this.b.get(t.resource);e?e.info.hidden!==t.hidden&&this.setVisibility(t.resource,!t.hidden):(this.b.set(t.resource,{info:t,logger:void 0}),this.f.fire({added:[t],removed:[]}))}deregisterLogger(t){const e=this.s(t),i=this.b.get(e);i&&(i.logger&&i.logger.dispose(),this.b.delete(e),this.f.fire({added:[],removed:[i.info]}))}*getRegisteredLoggers(){for(const t of this.b.values())yield t.info}getRegisteredLogger(t){return this.b.get(t)?.info}dispose(){this.b.forEach(t=>t.logger?.dispose()),this.b.clear(),super.dispose()}},Cv=class{constructor(){this.onDidChangeLogLevel=new D().event}setLevel(t){}getLevel(){return Y.Info}trace(t,...e){}debug(t,...e){}info(t,...e){}warn(t,...e){}error(t,...e){}critical(t,...e){}dispose(){}flush(){}},Rv=class extends Cv{},W3=new Jf("logLevel",F3(Y.Info))}}),Ov,Lv,Yf,Mv,Fv,mr,Ca,Nv,gr,Zn=v({"out-build/vs/base/common/ternarySearchTree.js"(){"use strict";kt(),qo(),xt(),Ov=class{constructor(){this.b="",this.c=0}reset(t){return this.b=t,this.c=0,this}next(){return this.c+=1,this}hasNext(){return this.c<this.b.length-1}cmp(t){const e=t.charCodeAt(0),i=this.b.charCodeAt(this.c);return e-i}value(){return this.b[this.c]}},Lv=class{constructor(t=!0){this.e=t}reset(t){return this.b=t,this.c=0,this.d=0,this.next()}hasNext(){return this.d<this.b.length}next(){this.c=this.d;let t=!0;for(;this.d<this.b.length;this.d++)if(this.b.charCodeAt(this.d)===46)if(t)this.c++;else break;else t=!1;return this}cmp(t){return this.e?Zd(t,this.b,0,t.length,this.c,this.d):ea(t,this.b,0,t.length,this.c,this.d)}value(){return this.b.substring(this.c,this.d)}},Yf=class{constructor(t=!0,e=!0){this.f=t,this.g=e}reset(t){this.d=0,this.e=0,this.b=t,this.c=t.length;for(let e=t.length-1;e>=0;e--,this.c--){const i=this.b.charCodeAt(e);if(!(i===47||this.f&&i===92))break}return this.next()}hasNext(){return this.e<this.c}next(){this.d=this.e;let t=!0;for(;this.e<this.c;this.e++){const e=this.b.charCodeAt(this.e);if(e===47||this.f&&e===92)if(t)this.d++;else break;else t=!1}return this}cmp(t){return this.g?Zd(t,this.b,0,t.length,this.d,this.e):ea(t,this.b,0,t.length,this.d,this.e)}value(){return this.b.substring(this.d,this.e)}},function(t){t[t.Scheme=1]="Scheme",t[t.Authority=2]="Authority",t[t.Path=3]="Path",t[t.Query=4]="Query",t[t.Fragment=5]="Fragment"}(Mv||(Mv={})),Fv=class{constructor(t,e){this.f=t,this.g=e,this.d=[],this.e=0}reset(t){return this.c=t,this.d=[],this.c.scheme&&this.d.push(1),this.c.authority&&this.d.push(2),this.c.path&&(this.b=new Yf(!1,!this.f(t)),this.b.reset(t.path),this.b.value()&&this.d.push(3)),this.g(t)||(this.c.query&&this.d.push(4),this.c.fragment&&this.d.push(5)),this.e=0,this}next(){return this.d[this.e]===3&&this.b.hasNext()?this.b.next():this.e+=1,this}hasNext(){return this.d[this.e]===3&&this.b.hasNext()||this.e<this.d.length-1}cmp(t){if(this.d[this.e]===1)return Yd(t,this.c.scheme);if(this.d[this.e]===2)return Yd(t,this.c.authority);if(this.d[this.e]===3)return this.b.cmp(t);if(this.d[this.e]===4)return Kd(t,this.c.query);if(this.d[this.e]===5)return Kd(t,this.c.fragment);throw new Error}value(){if(this.d[this.e]===1)return this.c.scheme;if(this.d[this.e]===2)return this.c.authority;if(this.d[this.e]===3)return this.b.value();if(this.d[this.e]===4)return this.c.query;if(this.d[this.e]===5)return this.c.fragment;throw new Error}},mr=class Dm{static{this.Val=Symbol("undefined_placeholder")}static wrap(e){return e===void 0?Dm.Val:e}static unwrap(e){return e===Dm.Val?void 0:e}},Ca=class{constructor(){this.height=1,this.value=void 0,this.key=void 0,this.left=void 0,this.mid=void 0,this.right=void 0}isEmpty(){return!this.left&&!this.mid&&!this.right&&this.value===void 0}rotateLeft(){const t=this.right;return this.right=t.left,t.left=this,this.updateHeight(),t.updateHeight(),t}rotateRight(){const t=this.left;return this.left=t.right,t.right=this,this.updateHeight(),t.updateHeight(),t}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(t){t[t.Left=-1]="Left",t[t.Mid=0]="Mid",t[t.Right=1]="Right"}(Nv||(Nv={})),gr=class Wc{static forUris(e=()=>!1,i=()=>!1){return new Wc(new Fv(e,i))}static forPaths(e=!1){return new Wc(new Yf(void 0,!e))}static forStrings(){return new Wc(new Ov)}static forConfigKeys(){return new Wc(new Lv)}constructor(e){this.b=e}clear(){this.c=void 0}fill(e,i){if(i){const s=i.slice(0);$0(s);for(const r of s)this.set(r,e)}else{const s=e.slice(0);$0(s);for(const r of s)this.set(r[0],r[1])}}set(e,i){const s=this.b.reset(e);let r;this.c||(this.c=new Ca,this.c.segment=s.value());const n=[];for(r=this.c;;){const a=s.cmp(r.segment);if(a>0)r.left||(r.left=new Ca,r.left.segment=s.value()),n.push([-1,r]),r=r.left;else if(a<0)r.right||(r.right=new Ca,r.right.segment=s.value()),n.push([1,r]),r=r.right;else if(s.hasNext())s.next(),r.mid||(r.mid=new Ca,r.mid.segment=s.value()),n.push([0,r]),r=r.mid;else break}const o=mr.unwrap(r.value);r.value=mr.wrap(i),r.key=e;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 h=n[a][0],u=n[a+1][0];if(h===1&&u===1)n[a][1]=c.rotateLeft();else if(h===-1&&u===-1)n[a][1]=c.rotateRight();else if(h===1&&u===-1)c.right=n[a+1][1]=n[a+1][1].rotateRight(),n[a][1]=c.rotateLeft();else if(h===-1&&u===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.c=n[0][1]}}return o}get(e){return mr.unwrap(this.d(e)?.value)}d(e){const i=this.b.reset(e);let s=this.c;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(e){const i=this.d(e);return!(i?.value===void 0&&i?.mid===void 0)}delete(e){return this.e(e,!1)}deleteSuperstr(e){return this.e(e,!0)}e(e,i){const s=this.b.reset(e),r=[];let n=this.c;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=[[1,n]],a=this.f(n.right,o);if(a.key){n.key=a.key,n.value=a.value,n.segment=a.segment;const c=a.right;if(o.length>1){const[h,u]=o[o.length-1];switch(h){case-1:u.left=c;break;case 0:Ud(!1);case 1:Ud(!1)}}else n.right=c;const l=this.g(o);if(r.length>0){const[h,u]=r[r.length-1];switch(h){case-1:u.left=l;break;case 0:u.mid=l;break;case 1:u.right=l;break}}else this.c=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.c=o}this.c=this.g(r)??this.c}}f(e,i){for(;e.left;)i.push([-1,e]),e=e.left;return e}g(e){for(let i=e.length-1;i>=0;i--){const s=e[i][1];s.updateHeight();const r=s.balanceFactor();if(r>1?(s.right.balanceFactor()>=0||(s.right=s.right.rotateRight()),e[i][1]=s.rotateLeft()):r<-1&&(s.left.balanceFactor()<=0||(s.left=s.left.rotateLeft()),e[i][1]=s.rotateRight()),i>0)switch(e[i-1][0]){case-1:e[i-1][1].left=e[i][1];break;case 1:e[i-1][1].right=e[i][1];break;case 0:e[i-1][1].mid=e[i][1];break}else return e[0][1]}}findSubstr(e){const i=this.b.reset(e);let s=this.c,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=mr.unwrap(s.value)||r,s=s.mid;else break}return s&&mr.unwrap(s.value)||r}findSuperstr(e){return this.h(e,!1)}h(e,i){const s=this.b.reset(e);let r=this.c;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.j(r.mid):i?mr.unwrap(r.value):void 0}}hasElementOrSubtree(e){return this.h(e,!0)!==void 0}forEach(e){for(const[i,s]of this)e(s,i)}*[Symbol.iterator](){yield*this.j(this.c)}j(e){const i=[];return this.l(e,i),i[Symbol.iterator]()}l(e,i){e&&(e.left&&this.l(e.left,i),e.value!==void 0&&i.push([e.key,mr.unwrap(e.value)]),e.mid&&this.l(e.mid,i),e.right&&this.l(e.right,i))}_isBalanced(){const e=i=>{if(!i)return!0;const s=i.balanceFactor();return s<-1||s>1?!1:e(i.left)&&e(i.right)};return e(this.c)}}}});function Yn(t){return t.create===!0}function Ni(t){return!!(t.capabilities&2)}function Qf(t){return!!(t.capabilities&8)}function Wv(t){return!!(t.capabilities&131072)}function wr(t){return!!(t.capabilities&4)}function Xf(t){return!!(t.capabilities&16)}function e1(t){return Ni(t)?!!(t.capabilities&16384):!1}function _v(t){return Ni(t)?!!(t.capabilities&32768):!1}function _3(t){return!!(t.capabilities&65536)}function Yi(t,e){return Tl.create(t,e)}function qr(t){return t||Yi(g(2020,null),ae.Unknown)}function T3(t,e){return t.name=e?`${e} (FileSystemError)`:"FileSystemError",t}function _l(t){if(!t)return ae.Unknown;if(t instanceof Tl)return t.code;const e=/^(.+) \(FileSystemError\)$/.exec(t.name);if(!e)return ae.Unknown;switch(e[1]){case ae.FileExists:return ae.FileExists;case ae.FileIsADirectory:return ae.FileIsADirectory;case ae.FileNotADirectory:return ae.FileNotADirectory;case ae.FileNotFound:return ae.FileNotFound;case ae.FileTooLarge:return ae.FileTooLarge;case ae.FileWriteLocked:return ae.FileWriteLocked;case ae.NoPermissions:return ae.NoPermissions;case ae.Unavailable:return ae.Unavailable}return ae.Unknown}function vs(t){if(t instanceof _t)return t.fileOperationResult;switch(_l(t)){case ae.FileNotFound:return 1;case ae.FileIsADirectory:return 0;case ae.FileNotADirectory:return 9;case ae.FileWriteLocked:return 5;case ae.NoPermissions:return 6;case ae.FileExists:return 4;case ae.FileTooLarge:return 7;default:return 10}}function B3(t,e,i){return!t||!e||t===e||e.length>t.length?!1:(e.charAt(e.length-1)!==Ft&&(e+=Ft),i?rl(t,e):t.indexOf(e)===0)}function Tv(t){if(!(typeof t.size!="number"||typeof t.mtime!="number"))return t.mtime.toString(29)+t.size.toString(31)}var rt,$t,Qn,Bv,Uv,ae,Tl,jv,Gr,zv,Hv,_t,Bl,Ul,Vv,jl,qv,zl,Jr,Ve=v({"out-build/vs/platform/files/common/files.js"(){"use strict";Zn(),ge(),xt(),$e(),re(),we(),Z(),G(),Oe(),_r(),rt=V("fileService"),function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"}($t||($t={})),function(t){t[t.Readonly=1]="Readonly",t[t.Locked=2]="Locked"}(Qn||(Qn={})),function(t){t[t.UPDATED=2]="UPDATED",t[t.ADDED=4]="ADDED",t[t.DELETED=8]="DELETED"}(Bv||(Bv={})),function(t){t[t.None=0]="None",t[t.FileReadWrite=2]="FileReadWrite",t[t.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",t[t.FileReadStream=16]="FileReadStream",t[t.FileFolderCopy=8]="FileFolderCopy",t[t.PathCaseSensitive=1024]="PathCaseSensitive",t[t.Readonly=2048]="Readonly",t[t.Trash=4096]="Trash",t[t.FileWriteUnlock=8192]="FileWriteUnlock",t[t.FileAtomicRead=16384]="FileAtomicRead",t[t.FileAtomicWrite=32768]="FileAtomicWrite",t[t.FileAtomicDelete=65536]="FileAtomicDelete",t[t.FileClone=131072]="FileClone"}(Uv||(Uv={})),function(t){t.FileExists="EntryExists",t.FileNotFound="EntryNotFound",t.FileNotADirectory="EntryNotADirectory",t.FileIsADirectory="EntryIsADirectory",t.FileExceedsStorageQuota="EntryExceedsStorageQuota",t.FileTooLarge="EntryTooLarge",t.FileWriteLocked="EntryWriteLocked",t.NoPermissions="NoPermissions",t.Unavailable="Unavailable",t.Unknown="Unknown"}(ae||(ae={})),Tl=class c6 extends Error{static create(e,i){const s=new c6(e.toString(),i);return T3(s,i),s}constructor(e,i){super(e),this.code=i}},function(t){t[t.CREATE=0]="CREATE",t[t.DELETE=1]="DELETE",t[t.MOVE=2]="MOVE",t[t.COPY=3]="COPY",t[t.WRITE=4]="WRITE"}(jv||(jv={})),Gr=class{constructor(t,e,i){this.resource=t,this.operation=e,this.target=i}isOperation(t){return this.operation===t}},function(t){t[t.UPDATED=0]="UPDATED",t[t.ADDED=1]="ADDED",t[t.DELETED=2]="DELETED"}(zv||(zv={})),Hv=class cd{static{this.a=null}constructor(e,i){this.c=i,this.b=void 0,this.d=new Ts(()=>{const s=gr.forUris(()=>this.c);return s.fill(this.rawAdded.map(r=>[r,!0])),s}),this.f=new Ts(()=>{const s=gr.forUris(()=>this.c);return s.fill(this.rawUpdated.map(r=>[r,!0])),s}),this.g=new Ts(()=>{const s=gr.forUris(()=>this.c);return s.fill(this.rawDeleted.map(r=>[r,!0])),s}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const s of e){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.b!==cd.a&&(typeof s.cId=="number"?this.b===void 0?this.b=s.cId:this.b!==s.cId&&(this.b=cd.a):this.b!==void 0&&(this.b=cd.a))}}contains(e,...i){return this.h(e,{includeChildren:!1},...i)}affects(e,...i){return this.h(e,{includeChildren:!0},...i)}h(e,i,...s){if(!e)return!1;const r=s.length>0;return!!((!r||s.includes(1))&&(this.d.value.get(e)||i.includeChildren&&this.d.value.findSuperstr(e))||(!r||s.includes(0))&&(this.f.value.get(e)||i.includeChildren&&this.f.value.findSuperstr(e))||(!r||s.includes(2))&&(this.g.value.findSubstr(e)||i.includeChildren&&this.g.value.findSuperstr(e)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(e){return this.b===e}hasCorrelation(){return typeof this.b=="number"}},_t=class extends Error{constructor(t,e,i){super(t),this.fileOperationResult=e,this.options=i}},Bl=class extends _t{constructor(t,e,i,s){super(t,e,s),this.fileOperationResult=e,this.size=i}},Ul=class extends _t{constructor(t,e,i){super(t,2,i),this.stat=e}},function(t){t[t.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",t[t.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",t[t.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",t[t.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",t[t.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",t[t.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",t[t.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",t[t.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",t[t.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",t[t.FILE_NOT_DIRECTORY=9]="FILE_NOT_DIRECTORY",t[t.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"}(Vv||(Vv={})),jl={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},function(t){t[t.FILE=0]="FILE",t[t.FOLDER=1]="FOLDER",t[t.ROOT_FOLDER=2]="ROOT_FOLDER"}(qv||(qv={})),zl="",Jr=class hi{static{this.KB=1024}static{this.MB=hi.KB*hi.KB}static{this.GB=hi.MB*hi.KB}static{this.TB=hi.GB*hi.KB}static formatSize(e){return el(e)||(e=0),e<hi.KB?g(2021,null,e.toFixed(0)):e<hi.MB?g(2022,null,(e/hi.KB).toFixed(2)):e<hi.GB?g(2023,null,(e/hi.MB).toFixed(2)):e<hi.TB?g(2024,null,(e/hi.GB).toFixed(2)):g(2025,null,(e/hi.TB).toFixed(2))}}}}),t1,Pi,Wi=v({"out-build/vs/platform/state/node/state.js"(){"use strict";Z(),t1=V("stateReadService"),Pi=V("stateService")}});function vr(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}var S,Kr,Ra,Hl,U3=v({"out-build/vs/base/common/color.js"(){"use strict";S=class{constructor(t,e,i,s=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,e))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=vr(Math.max(Math.min(1,s),0),3)}static equals(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}},Kr=class _c{constructor(e,i,s,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=vr(Math.max(Math.min(1,i),0),3),this.l=vr(Math.max(Math.min(1,s),0),3),this.a=vr(Math.max(Math.min(1,r),0),3)}static equals(e,i){return e.h===i.h&&e.s===i.s&&e.l===i.l&&e.a===i.a}static fromRGBA(e){const i=e.r/255,s=e.g/255,r=e.b/255,n=e.a,o=Math.max(i,s,r),a=Math.min(i,s,r);let c=0,l=0;const h=(a+o)/2,u=o-a;if(u>0){switch(l=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),o){case i:c=(s-r)/u+(s<r?6:0);break;case s:c=(r-i)/u+2;break;case r:c=(i-s)/u+4;break}c*=60,c=Math.round(c)}return new _c(c,l,h,n)}static i(e,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(i-e)*6*s:s<1/2?i:s<2/3?e+(i-e)*(2/3-s)*6:e}static toRGBA(e){const i=e.h/360,{s,l:r,a:n}=e;let o,a,c;if(s===0)o=a=c=r;else{const l=r<.5?r*(1+s):r+s-r*s,h=2*r-l;o=_c.i(h,l,i+1/3),a=_c.i(h,l,i),c=_c.i(h,l,i-1/3)}return new S(Math.round(o*255),Math.round(a*255),Math.round(c*255),n)}},Ra=class l6{constructor(e,i,s,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=vr(Math.max(Math.min(1,i),0),3),this.v=vr(Math.max(Math.min(1,s),0),3),this.a=vr(Math.max(Math.min(1,r),0),3)}static equals(e,i){return e.h===i.h&&e.s===i.s&&e.v===i.v&&e.a===i.a}static fromRGBA(e){const i=e.r/255,s=e.g/255,r=e.b/255,n=Math.max(i,s,r),o=Math.min(i,s,r),a=n-o,c=n===0?0:a/n;let l;return a===0?l=0:n===i?l=((s-r)/a%6+6)%6:n===s?l=(r-i)/a+2:l=(i-s)/a+4,new l6(Math.round(l*60),c,n,e.a)}static toRGBA(e){const{h:i,s,v:r,a:n}=e,o=r*s,a=o*(1-Math.abs(i/60%2-1)),c=r-o;let[l,h,u]=[0,0,0];return i<60?(l=o,h=a):i<120?(l=a,h=o):i<180?(h=o,u=a):i<240?(h=a,u=o):i<300?(l=a,u=o):i<=360&&(l=o,u=a),l=Math.round((l+c)*255),h=Math.round((h+c)*255),u=Math.round((u+c)*255),new S(l,h,u,n)}},Hl=class We{static fromHex(e){return We.Format.CSS.parseHex(e)||We.red}static equals(e,i){return!e&&!i?!0:!e||!i?!1:e.equals(i)}get hsla(){return this.i?this.i:Kr.fromRGBA(this.rgba)}get hsva(){return this.j?this.j:Ra.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof S)this.rgba=e;else if(e instanceof Kr)this.i=e,this.rgba=Kr.toRGBA(e);else if(e instanceof Ra)this.j=e,this.rgba=Ra.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&S.equals(this.rgba,e.rgba)&&Kr.equals(this.hsla,e.hsla)&&Ra.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=We.k(this.rgba.r),i=We.k(this.rgba.g),s=We.k(this.rgba.b),r=.2126*e+.7152*i+.0722*s;return vr(r,4)}reduceRelativeLuminace(e,i){let{r:s,g:r,b:n}=e.rgba,o=this.getContrastRatio(e);for(;o<i&&(s>0||r>0||n>0);)s-=Math.max(0,Math.ceil(s*.1)),r-=Math.max(0,Math.ceil(r*.1)),n-=Math.max(0,Math.ceil(n*.1)),o=this.getContrastRatio(new We(new S(s,r,n)));return new We(new S(s,r,n))}increaseRelativeLuminace(e,i){let{r:s,g:r,b:n}=e.rgba,o=this.getContrastRatio(e);for(;o<i&&(s<255||r<255||n<255);)s=Math.min(255,s+Math.ceil((255-s)*.1)),r=Math.min(255,r+Math.ceil((255-r)*.1)),n=Math.min(255,n+Math.ceil((255-n)*.1)),o=this.getContrastRatio(new We(new S(s,r,n)));return new We(new S(s,r,n))}static k(e){const i=e/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}getContrastRatio(e){const i=this.getRelativeLuminance(),s=e.getRelativeLuminance();return i>s?(i+.05)/(s+.05):(s+.05)/(i+.05)}isDarker(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3<128}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const i=this.getRelativeLuminance(),s=e.getRelativeLuminance();return i>s}isDarkerThan(e){const i=this.getRelativeLuminance(),s=e.getRelativeLuminance();return i<s}ensureConstrast(e,i){const s=this.getRelativeLuminance(),r=e.getRelativeLuminance();if(this.getContrastRatio(e)<i){if(r<s){const c=this.reduceRelativeLuminace(e,i),l=this.getContrastRatio(c);if(l<i){const h=this.increaseRelativeLuminace(e,i),u=this.getContrastRatio(h);return l>u?c:h}return c}const o=this.increaseRelativeLuminace(e,i),a=this.getContrastRatio(o);if(a<i){const c=this.reduceRelativeLuminace(e,i),l=this.getContrastRatio(c);return a>l?o:c}return o}return e}lighten(e){return new We(new Kr(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new We(new Kr(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:i,g:s,b:r,a:n}=this.rgba;return new We(new S(i,s,r,n*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new We(new S(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}blend(e){const i=e.rgba,s=this.rgba.a,r=i.a,n=s+r*(1-s);if(n<1e-6)return We.transparent;const o=this.rgba.r*s/n+i.r*r*(1-s)/n,a=this.rgba.g*s/n+i.g*r*(1-s)/n,c=this.rgba.b*s/n+i.b*r*(1-s)/n;return new We(new S(o,a,c,n))}mix(e,i=.5){const s=Math.min(Math.max(i,0),1),r=this.rgba,n=e.rgba,o=r.r+(n.r-r.r)*s,a=r.g+(n.g-r.g)*s,c=r.b+(n.b-r.b)*s,l=r.a+(n.a-r.a)*s;return new We(new S(o,a,c,l))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:i,g:s,b:r,a:n}=this.rgba;return new We(new S(e.rgba.r-n*(e.rgba.r-i),e.rgba.g-n*(e.rgba.g-s),e.rgba.b-n*(e.rgba.b-r),1))}flatten(...e){const i=e.reduceRight((s,r)=>We.o(r,s));return We.o(this,i)}static o(e,i){const s=1-e.rgba.a;return new We(new S(s*i.rgba.r+e.rgba.a*e.rgba.r,s*i.rgba.g+e.rgba.a*e.rgba.g,s*i.rgba.b+e.rgba.a*e.rgba.b))}toString(){return this.u||(this.u=We.Format.CSS.format(this)),this.u}toNumber32Bit(){return this.w||(this.w=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this.w}static getLighterColor(e,i,s){if(e.isLighterThan(i))return e;s=s||.5;const r=e.getRelativeLuminance(),n=i.getRelativeLuminance();return s=s*(n-r)/n,e.lighten(s)}static getDarkerColor(e,i,s){if(e.isDarkerThan(i))return e;s=s||.5;const r=e.getRelativeLuminance(),n=i.getRelativeLuminance();return s=s*(r-n)/r,e.darken(s)}static{this.white=new We(new S(255,255,255,1))}static{this.black=new We(new S(0,0,0,1))}static{this.red=new We(new S(255,0,0,1))}static{this.blue=new We(new S(0,0,255,1))}static{this.green=new We(new S(0,255,0,1))}static{this.cyan=new We(new S(0,255,255,1))}static{this.lightgrey=new We(new S(211,211,211,1))}static{this.transparent=new We(new S(0,0,0,0))}},function(t){let e;(function(i){let s;(function(r){function n(b){return b.rgba.a===1?`rgb(${b.rgba.r}, ${b.rgba.g}, ${b.rgba.b})`:t.Format.CSS.formatRGBA(b)}r.formatRGB=n;function o(b){return`rgba(${b.rgba.r}, ${b.rgba.g}, ${b.rgba.b}, ${+b.rgba.a.toFixed(2)})`}r.formatRGBA=o;function a(b){return b.hsla.a===1?`hsl(${b.hsla.h}, ${(b.hsla.s*100).toFixed(2)}%, ${(b.hsla.l*100).toFixed(2)}%)`:t.Format.CSS.formatHSLA(b)}r.formatHSL=a;function c(b){return`hsla(${b.hsla.h}, ${(b.hsla.s*100).toFixed(2)}%, ${(b.hsla.l*100).toFixed(2)}%, ${b.hsla.a.toFixed(2)})`}r.formatHSLA=c;function l(b){const E=b.toString(16);return E.length!==2?"0"+E:E}function h(b){return`#${l(b.rgba.r)}${l(b.rgba.g)}${l(b.rgba.b)}`}r.formatHex=h;function u(b,E=!1){return E&&b.rgba.a===1?t.Format.CSS.formatHex(b):`#${l(b.rgba.r)}${l(b.rgba.g)}${l(b.rgba.b)}${l(Math.round(b.rgba.a*255))}`}r.formatHexA=u;function f(b){return b.isOpaque()?t.Format.CSS.formatHex(b):t.Format.CSS.formatRGBA(b)}r.format=f;function p(b){if(b==="transparent")return t.transparent;if(b.startsWith("#"))return w(b);if(b.startsWith("rgba(")){const E=b.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!E)throw new Error("Invalid color format "+b);const A=parseInt(E.groups?.r??"0"),R=parseInt(E.groups?.g??"0"),W=parseInt(E.groups?.b??"0"),se=parseFloat(E.groups?.a??"0");return new t(new S(A,R,W,se))}if(b.startsWith("rgb(")){const E=b.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!E)throw new Error("Invalid color format "+b);const A=parseInt(E.groups?.r??"0"),R=parseInt(E.groups?.g??"0"),W=parseInt(E.groups?.b??"0");return new t(new S(A,R,W))}return m(b)}r.parse=p;function m(b){switch(b){case"aliceblue":return new t(new S(240,248,255,1));case"antiquewhite":return new t(new S(250,235,215,1));case"aqua":return new t(new S(0,255,255,1));case"aquamarine":return new t(new S(127,255,212,1));case"azure":return new t(new S(240,255,255,1));case"beige":return new t(new S(245,245,220,1));case"bisque":return new t(new S(255,228,196,1));case"black":return new t(new S(0,0,0,1));case"blanchedalmond":return new t(new S(255,235,205,1));case"blue":return new t(new S(0,0,255,1));case"blueviolet":return new t(new S(138,43,226,1));case"brown":return new t(new S(165,42,42,1));case"burlywood":return new t(new S(222,184,135,1));case"cadetblue":return new t(new S(95,158,160,1));case"chartreuse":return new t(new S(127,255,0,1));case"chocolate":return new t(new S(210,105,30,1));case"coral":return new t(new S(255,127,80,1));case"cornflowerblue":return new t(new S(100,149,237,1));case"cornsilk":return new t(new S(255,248,220,1));case"crimson":return new t(new S(220,20,60,1));case"cyan":return new t(new S(0,255,255,1));case"darkblue":return new t(new S(0,0,139,1));case"darkcyan":return new t(new S(0,139,139,1));case"darkgoldenrod":return new t(new S(184,134,11,1));case"darkgray":return new t(new S(169,169,169,1));case"darkgreen":return new t(new S(0,100,0,1));case"darkgrey":return new t(new S(169,169,169,1));case"darkkhaki":return new t(new S(189,183,107,1));case"darkmagenta":return new t(new S(139,0,139,1));case"darkolivegreen":return new t(new S(85,107,47,1));case"darkorange":return new t(new S(255,140,0,1));case"darkorchid":return new t(new S(153,50,204,1));case"darkred":return new t(new S(139,0,0,1));case"darksalmon":return new t(new S(233,150,122,1));case"darkseagreen":return new t(new S(143,188,143,1));case"darkslateblue":return new t(new S(72,61,139,1));case"darkslategray":return new t(new S(47,79,79,1));case"darkslategrey":return new t(new S(47,79,79,1));case"darkturquoise":return new t(new S(0,206,209,1));case"darkviolet":return new t(new S(148,0,211,1));case"deeppink":return new t(new S(255,20,147,1));case"deepskyblue":return new t(new S(0,191,255,1));case"dimgray":return new t(new S(105,105,105,1));case"dimgrey":return new t(new S(105,105,105,1));case"dodgerblue":return new t(new S(30,144,255,1));case"firebrick":return new t(new S(178,34,34,1));case"floralwhite":return new t(new S(255,250,240,1));case"forestgreen":return new t(new S(34,139,34,1));case"fuchsia":return new t(new S(255,0,255,1));case"gainsboro":return new t(new S(220,220,220,1));case"ghostwhite":return new t(new S(248,248,255,1));case"gold":return new t(new S(255,215,0,1));case"goldenrod":return new t(new S(218,165,32,1));case"gray":return new t(new S(128,128,128,1));case"green":return new t(new S(0,128,0,1));case"greenyellow":return new t(new S(173,255,47,1));case"grey":return new t(new S(128,128,128,1));case"honeydew":return new t(new S(240,255,240,1));case"hotpink":return new t(new S(255,105,180,1));case"indianred":return new t(new S(205,92,92,1));case"indigo":return new t(new S(75,0,130,1));case"ivory":return new t(new S(255,255,240,1));case"khaki":return new t(new S(240,230,140,1));case"lavender":return new t(new S(230,230,250,1));case"lavenderblush":return new t(new S(255,240,245,1));case"lawngreen":return new t(new S(124,252,0,1));case"lemonchiffon":return new t(new S(255,250,205,1));case"lightblue":return new t(new S(173,216,230,1));case"lightcoral":return new t(new S(240,128,128,1));case"lightcyan":return new t(new S(224,255,255,1));case"lightgoldenrodyellow":return new t(new S(250,250,210,1));case"lightgray":return new t(new S(211,211,211,1));case"lightgreen":return new t(new S(144,238,144,1));case"lightgrey":return new t(new S(211,211,211,1));case"lightpink":return new t(new S(255,182,193,1));case"lightsalmon":return new t(new S(255,160,122,1));case"lightseagreen":return new t(new S(32,178,170,1));case"lightskyblue":return new t(new S(135,206,250,1));case"lightslategray":return new t(new S(119,136,153,1));case"lightslategrey":return new t(new S(119,136,153,1));case"lightsteelblue":return new t(new S(176,196,222,1));case"lightyellow":return new t(new S(255,255,224,1));case"lime":return new t(new S(0,255,0,1));case"limegreen":return new t(new S(50,205,50,1));case"linen":return new t(new S(250,240,230,1));case"magenta":return new t(new S(255,0,255,1));case"maroon":return new t(new S(128,0,0,1));case"mediumaquamarine":return new t(new S(102,205,170,1));case"mediumblue":return new t(new S(0,0,205,1));case"mediumorchid":return new t(new S(186,85,211,1));case"mediumpurple":return new t(new S(147,112,219,1));case"mediumseagreen":return new t(new S(60,179,113,1));case"mediumslateblue":return new t(new S(123,104,238,1));case"mediumspringgreen":return new t(new S(0,250,154,1));case"mediumturquoise":return new t(new S(72,209,204,1));case"mediumvioletred":return new t(new S(199,21,133,1));case"midnightblue":return new t(new S(25,25,112,1));case"mintcream":return new t(new S(245,255,250,1));case"mistyrose":return new t(new S(255,228,225,1));case"moccasin":return new t(new S(255,228,181,1));case"navajowhite":return new t(new S(255,222,173,1));case"navy":return new t(new S(0,0,128,1));case"oldlace":return new t(new S(253,245,230,1));case"olive":return new t(new S(128,128,0,1));case"olivedrab":return new t(new S(107,142,35,1));case"orange":return new t(new S(255,165,0,1));case"orangered":return new t(new S(255,69,0,1));case"orchid":return new t(new S(218,112,214,1));case"palegoldenrod":return new t(new S(238,232,170,1));case"palegreen":return new t(new S(152,251,152,1));case"paleturquoise":return new t(new S(175,238,238,1));case"palevioletred":return new t(new S(219,112,147,1));case"papayawhip":return new t(new S(255,239,213,1));case"peachpuff":return new t(new S(255,218,185,1));case"peru":return new t(new S(205,133,63,1));case"pink":return new t(new S(255,192,203,1));case"plum":return new t(new S(221,160,221,1));case"powderblue":return new t(new S(176,224,230,1));case"purple":return new t(new S(128,0,128,1));case"rebeccapurple":return new t(new S(102,51,153,1));case"red":return new t(new S(255,0,0,1));case"rosybrown":return new t(new S(188,143,143,1));case"royalblue":return new t(new S(65,105,225,1));case"saddlebrown":return new t(new S(139,69,19,1));case"salmon":return new t(new S(250,128,114,1));case"sandybrown":return new t(new S(244,164,96,1));case"seagreen":return new t(new S(46,139,87,1));case"seashell":return new t(new S(255,245,238,1));case"sienna":return new t(new S(160,82,45,1));case"silver":return new t(new S(192,192,192,1));case"skyblue":return new t(new S(135,206,235,1));case"slateblue":return new t(new S(106,90,205,1));case"slategray":return new t(new S(112,128,144,1));case"slategrey":return new t(new S(112,128,144,1));case"snow":return new t(new S(255,250,250,1));case"springgreen":return new t(new S(0,255,127,1));case"steelblue":return new t(new S(70,130,180,1));case"tan":return new t(new S(210,180,140,1));case"teal":return new t(new S(0,128,128,1));case"thistle":return new t(new S(216,191,216,1));case"tomato":return new t(new S(255,99,71,1));case"turquoise":return new t(new S(64,224,208,1));case"violet":return new t(new S(238,130,238,1));case"wheat":return new t(new S(245,222,179,1));case"white":return new t(new S(255,255,255,1));case"whitesmoke":return new t(new S(245,245,245,1));case"yellow":return new t(new S(255,255,0,1));case"yellowgreen":return new t(new S(154,205,50,1));default:return null}}function w(b){const E=b.length;if(E===0||b.charCodeAt(0)!==35)return null;if(E===7){const A=16*y(b.charCodeAt(1))+y(b.charCodeAt(2)),R=16*y(b.charCodeAt(3))+y(b.charCodeAt(4)),W=16*y(b.charCodeAt(5))+y(b.charCodeAt(6));return new t(new S(A,R,W,1))}if(E===9){const A=16*y(b.charCodeAt(1))+y(b.charCodeAt(2)),R=16*y(b.charCodeAt(3))+y(b.charCodeAt(4)),W=16*y(b.charCodeAt(5))+y(b.charCodeAt(6)),se=16*y(b.charCodeAt(7))+y(b.charCodeAt(8));return new t(new S(A,R,W,se/255))}if(E===4){const A=y(b.charCodeAt(1)),R=y(b.charCodeAt(2)),W=y(b.charCodeAt(3));return new t(new S(16*A+A,16*R+R,16*W+W))}if(E===5){const A=y(b.charCodeAt(1)),R=y(b.charCodeAt(2)),W=y(b.charCodeAt(3)),se=y(b.charCodeAt(4));return new t(new S(16*A+A,16*R+R,16*W+W,(16*se+se)/255))}return null}r.parseHex=w;function y(b){switch(b){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(s=i.CSS||(i.CSS={}))})(e=t.Format||(t.Format={}))}(Hl||(Hl={}))}}),nt,Tt=v({"out-build/vs/platform/product/common/productService.js"(){"use strict";Z(),nt=V("productService")}}),Gv,At,j3=v({"out-build/vs/platform/theme/common/theme.js"(){"use strict";(function(t){t.DARK="dark",t.LIGHT="light",t.HIGH_CONTRAST_DARK="hcDark",t.HIGH_CONTRAST_LIGHT="hcLight"})(Gv||(Gv={})),function(t){t.VS="vs",t.VS_DARK="vs-dark",t.HC_BLACK="hc-black",t.HC_LIGHT="hc-light"}(At||(At={}))}});import si from"electron";var ys,Jv,Kv,Zv,Yv,i1,s1,r1,n1,Qv,yr,Xn,Vl,Oa=v({"out-build/vs/platform/theme/electron-main/themeMainService.js"(){"use strict";J(),T(),G(),Ue(),Z(),Wi(),j3(),kt(),Dt(),Q(),Jv="#FFFFFF",Kv="#1F1F1F",Zv="#000000",Yv="#FFFFFF",i1="theme",s1="themeBackground",r1="windowSplash",n1="windowSplashWorkspaceOverride",Qv="workbench.secondarySideBar.defaultVisibility",function(t){t.DETECT_COLOR_SCHEME="window.autoDetectColorScheme",t.DETECT_HC="window.autoDetectHighContrast",t.SYSTEM_COLOR_THEME="window.systemColorTheme"}(yr||(yr={})),Xn=V("themeMainService"),Vl=class extends j{static{ys=this}static{this.a=300}static{this.b=50}constructor(e,i,s){super(),this.f=e,this.g=i,this.h=s,this.c=this.B(new D),this.onDidChangeColorScheme=this.c.event,Se||this.B(this.g.onDidChangeConfiguration(r=>{(r.affectsConfiguration(yr.SYSTEM_COLOR_THEME)||r.affectsConfiguration(yr.DETECT_COLOR_SCHEME))&&this.j()})),this.j(),this.B(x.fromNodeEventEmitter(si.nativeTheme,"updated")(()=>this.c.fire(this.getColorScheme())))}j(){if(Se||this.g.getValue(yr.DETECT_COLOR_SCHEME))si.nativeTheme.themeSource="system";else switch(this.g.getValue(yr.SYSTEM_COLOR_THEME)){case"dark":si.nativeTheme.themeSource="dark";break;case"light":si.nativeTheme.themeSource="light";break;case"auto":switch(this.getPreferredBaseTheme()??this.m()){case At.VS:si.nativeTheme.themeSource="light";break;case At.VS_DARK:si.nativeTheme.themeSource="dark";break;default:si.nativeTheme.themeSource="system"}break;default:si.nativeTheme.themeSource="system";break}}getColorScheme(){if(B){if(si.nativeTheme.shouldUseHighContrastColors)return{dark:si.nativeTheme.shouldUseInvertedColorScheme,highContrast:!0}}else if(N){if(si.nativeTheme.shouldUseInvertedColorScheme||si.nativeTheme.shouldUseHighContrastColors)return{dark:si.nativeTheme.shouldUseDarkColors,highContrast:!0}}else if(Se&&si.nativeTheme.shouldUseHighContrastColors)return{dark:!0,highContrast:!0};return{dark:si.nativeTheme.shouldUseDarkColors,highContrast:!1}}getPreferredBaseTheme(){const e=this.getColorScheme();if(this.g.getValue(yr.DETECT_HC)&&e.highContrast)return e.dark?At.HC_BLACK:At.HC_LIGHT;if(this.g.getValue(yr.DETECT_COLOR_SCHEME))return e.dark?At.VS_DARK:At.VS}getBackgroundColor(){const e=this.getPreferredBaseTheme(),i=this.m();if(e===void 0||e===i){const s=this.f.getItem(s1,null);if(s)return s}switch(e??i){case At.VS:return Jv;case At.HC_BLACK:return Zv;case At.HC_LIGHT:return Yv;default:return Kv}}m(){switch(this.f.getItem(i1,At.VS_DARK).split(" ")[0]){case At.VS:return At.VS;case At.HC_BLACK:return At.HC_BLACK;case At.HC_LIGHT:return At.HC_LIGHT;default:return At.VS_DARK}}saveWindowSplash(e,i,s){const r=this.n(i,s);this.f.setItems(ft([{key:i1,data:s.baseTheme},{key:s1,data:s.colorInfo.background},{key:r1,data:s},r?{key:n1,data:r}:void 0])),typeof e=="number"&&this.s(e,s),this.j()}n(e,i){let s,r=!1;return e&&(s={...this.u()},r=this.r(e,i,s,"sideBar"),r=this.r(e,i,s,"auxiliaryBar")||r),r?s:void 0}r(e,i,s,r){const n=r==="sideBar"?i.layoutInfo?.sideBarWidth:i.layoutInfo?.auxiliarySideBarWidth,o=r==="sideBar"?s.layoutInfo.sideBarWidth:s.layoutInfo.auxiliaryBarWidth;let a=!1;if(typeof n!="number")return s.layoutInfo.workspaces[e.id]&&(delete s.layoutInfo.workspaces[e.id],a=!0),a;let c=s.layoutInfo.workspaces[e.id];if(!c){const l=Object.keys(s.layoutInfo.workspaces);l.length>=ys.b&&(delete s.layoutInfo.workspaces[l[0]],a=!0),c={sideBarVisible:!1,auxiliaryBarVisible:!1},s.layoutInfo.workspaces[e.id]=c,a=!0}if(n>0)switch(o!==n&&(s.layoutInfo[r==="sideBar"?"sideBarWidth":"auxiliaryBarWidth"]=n,a=!0),r){case"sideBar":c.sideBarVisible||(c.sideBarVisible=!0,a=!0);break;case"auxiliaryBar":c.auxiliaryBarVisible||(c.auxiliaryBarVisible=!0,a=!0);break}else switch(r){case"sideBar":c.sideBarVisible&&(c.sideBarVisible=!1,a=!0);break;case"auxiliaryBar":c.auxiliaryBarVisible&&(c.auxiliaryBarVisible=!1,a=!0);break}return a}s(e,i){for(const s of Fa())if(s.id===e){s.setBackgroundColor(i.colorInfo.background);break}}getWindowSplash(e){try{return this.t(e)}catch(i){this.h.error("[theme main service] Failed to get window splash",i);return}}t(e){const i=this.f.getItem(r1);if(!i?.layoutInfo)return i;const s=this.u();let r;e?s.layoutInfo.workspaces[e.id]?.sideBarVisible===!1?r=0:r=s.layoutInfo.sideBarWidth||i.layoutInfo.sideBarWidth||ys.a:r=0;const n=this.g.getValue(Qv);let o;if(e){const a=s.layoutInfo.workspaces[e.id]?.auxiliaryBarVisible;a===!0?o=s.layoutInfo.auxiliaryBarWidth||i.layoutInfo.auxiliarySideBarWidth||ys.a:a===!1?o=0:n==="visible"||n==="visibleInWorkspace"?o=s.layoutInfo.auxiliaryBarWidth||i.layoutInfo.auxiliarySideBarWidth||ys.a:o=0}else o=0;return{...i,layoutInfo:{...i.layoutInfo,sideBarWidth:r,auxiliarySideBarWidth:o}}}u(){let e=this.f.getItem(n1);return e?.layoutInfo||(e={layoutInfo:{sideBarWidth:ys.a,auxiliaryBarWidth:ys.a,workspaces:{}}}),e.layoutInfo.sideBarWidth||(e.layoutInfo.sideBarWidth=ys.a),e.layoutInfo.auxiliaryBarWidth||(e.layoutInfo.auxiliaryBarWidth=ys.a),e.layoutInfo.workspaces||(e.layoutInfo.workspaces={}),e}},Vl=ys=__decorate([__param(0,Pi),__param(1,Be),__param(2,K)],Vl)}});function o1(t){return!!t.workspaceUri}function Xv(t){return!!t.folderUri}function ey(t){return!!t.fileUri}function z3(t,e){if(Vi)return!1;const i=La(t,e),s=t.getValue("window");return s?.menuStyle==="native"?!(!N&&!i):s?.menuStyle==="custom"?!1:i}function ty(t,e){return Vi?!1:N?!0:z3(t,e)}function H3(t){const e=t.getValue("window.menuBarVisibility");return e==="default"||e==="compact"&&ty(t)||N&&Id?"classic":e}function La(t,e){return e||(e=iy(t)),e==="native"}function iy(t){if(Vi)return"custom";const e=t.getValue("window");if(e){if(N&&e.nativeTabs===!0||N&&e.nativeFullScreen===!1)return"native";const r=e.titleBarStyle;if(r==="native"||r==="custom")return r}return"custom"}function V3(t){if(Vi||N||iy(t)==="native")return"native";const i=t.getValue("window")?.controlsStyle;return i==="custom"||i==="hidden"?i:"native"}function a1(t){if(Vi||La(t))return!1;if(!N){const e=V3(t);if(e==="custom"||e==="hidden")return!1}return!0}function sy(t){const e=t.getValue("window");return!e||typeof e.nativeFullScreen!="boolean"||e.nativeTabs?!0:e.nativeFullScreen!==!1}function q3(t=0){return Math.pow(1.2,t)}var c1,ry,ny,oy,ay,cy,ly,hy,l1,h1,Zr=v({"out-build/vs/platform/window/common/window.js"(){"use strict";G(),c1={WIDTH:400,WIDTH_WITH_VERTICAL_PANEL:600,HEIGHT:270},function(t){t.MenuStyle="window.menuStyle",t.MenuBarVisibility="window.menuBarVisibility"}(ry||(ry={})),function(t){t.CUSTOM="custom",t.NATIVE="native",t.INHERIT="inherit"}(ny||(ny={})),function(t){t.TITLE_BAR_STYLE="window.titleBarStyle",t.CUSTOM_TITLE_BAR_VISIBILITY="window.customTitleBarVisibility"}(oy||(oy={})),function(t){t.NATIVE="native",t.CUSTOM="custom"}(ay||(ay={})),function(t){t.NATIVE="native",t.CUSTOM="custom",t.HIDDEN="hidden"}(cy||(cy={})),function(t){t.AUTO="auto",t.WINDOWED="windowed",t.NEVER="never"}(ly||(ly={})),hy=35,l1={width:1200,height:800},h1={width:1024,height:768}}});import G3 from"electron";var uy,dy,Yr,fy,py,my,Ma=v({"out-build/vs/platform/window/electron-main/window.js"(){"use strict";Zr(),function(t){t[t.INITIAL=1]="INITIAL",t[t.LOAD=2]="LOAD",t[t.RELOAD=3]="RELOAD"}(uy||(uy={})),function(t){t[t.CLOSE=1]="CLOSE",t[t.QUIT=2]="QUIT",t[t.RELOAD=3]="RELOAD",t[t.LOAD=4]="LOAD"}(dy||(dy={})),Yr=function(t=1){return{width:l1.width,height:l1.height,mode:t}},fy=function(){const t=h1.width,e=h1.height,i=G3.screen.getPrimaryDisplay().workArea,s=Math.max(i.x+i.width/2-t/2,0),r=Math.max(i.y+i.height/2-e/2,0);return{x:s,y:r,width:t,height:e,mode:1}},function(t){t[t.Maximized=0]="Maximized",t[t.Normal=1]="Normal",t[t.Minimized=2]="Minimized",t[t.Fullscreen=3]="Fullscreen"}(py||(py={})),function(t){t[t.UNRESPONSIVE=1]="UNRESPONSIVE",t[t.PROCESS_GONE=2]="PROCESS_GONE",t[t.LOAD=3]="LOAD",t[t.RESPONSIVE=4]="RESPONSIVE"}(my||(my={}))}});import u1 from"electron";function d1(t,e,i,s){const r=t.get(Xn),n=t.get(nt),o=t.get(Be),a=t.get(ht),c=o.getValue("window"),l={backgroundColor:r.getBackgroundColor(),minWidth:c1.WIDTH,minHeight:c1.HEIGHT,title:n.nameLong,show:e.mode!==0&&e.mode!==3,x:e.x,y:e.y,width:e.width,height:e.height,webPreferences:{...s,enableWebSQL:!1,spellcheck:!1,zoomFactor:q3(e.zoomLevel??c?.zoomLevel),autoplayPolicy:"user-gesture-required",enableBlinkFeatures:"HighlightAPI",sandbox:!0,enableDeprecatedPaste:!0},experimentalDarkMode:!0};if(Se?l.icon=M(a.appRoot,"resources/linux/code.png"):B&&!a.isBuilt&&(l.icon=M(a.appRoot,"resources/win32/code_150x150.png")),N&&(l.acceptFirstMouse=!0,c?.clickThroughInactive===!1&&(l.acceptFirstMouse=!1)),i?.disableFullscreen?l.fullscreen=!1:N&&!sy(o)&&(l.fullscreenable=!1),N&&c?.nativeTabs===!0&&(l.tabbingIdentifier=n.nameShort),!La(o,i?.forceNativeTitlebar?"native":void 0)&&(l.titleBarStyle="hidden",N||(l.frame=!1),a1(o)))if(N)l.titleBarOverlay=!0;else{const f=r.getWindowSplash(void 0)?.colorInfo.titleBarBackground??r.getBackgroundColor(),p=Hl.fromHex(f).isDarker()?"#FFFFFF":"#000000";l.titleBarOverlay={height:29,color:f,symbolColor:p}}return i?.alwaysOnTop&&(l.alwaysOnTop=!0),l}function gy(t){let e,i=Number.MIN_VALUE;for(const s of t)s.lastFocusTime>i&&(i=s.lastFocusTime,e=s);return e}function Fa(){return u1.BrowserWindow.getAllWindows().filter(t=>!t.webContents.isOffscreen())}var yt,wy,Na,Dt=v({"out-build/vs/platform/windows/electron-main/windows.js"(){"use strict";U3(),ge(),G(),Ue(),Pt(),Z(),Tt(),Oa(),Zr(),Ma(),yt=V("windowsMainService"),function(t){t[t.CLI=0]="CLI",t[t.DOCK=1]="DOCK",t[t.MENU=2]="MENU",t[t.DIALOG=3]="DIALOG",t[t.DESKTOP=4]="DESKTOP",t[t.API=5]="API",t[t.LINK=6]="LINK"}(wy||(wy={})),function(t){function e(r,n,o=u1.screen.getAllDisplays()){if(r.trace(`window#validateWindowState: validating window state on ${o.length} display(s)`,n),typeof n.x!="number"||typeof n.y!="number"||typeof n.width!="number"||typeof n.height!="number"){r.trace("window#validateWindowState: unexpected type of state values");return}if(n.width<=0||n.height<=0){r.trace("window#validateWindowState: unexpected negative values");return}if(o.length===1){const h=s(o[0]);if(r.trace("window#validateWindowState: single monitor working area",h),h){let u=function(){!n||typeof n.x!="number"||typeof n.y!="number"||!h||(n.x<h.x&&(n.x=h.x),n.y<h.y&&(n.y=h.y))};var a=u;u(),n.width>h.width&&(n.width=h.width),n.height>h.height&&(n.height=h.height),n.x>h.x+h.width-128&&(n.x=h.x+h.width-n.width),n.y>h.y+h.height-128&&(n.y=h.y+h.height-n.height),u()}return n}if(n.display&&n.mode===3){const h=o.find(u=>u.id===n.display);if(h&&typeof h.bounds?.x=="number"&&typeof h.bounds?.y=="number"){r.trace("window#validateWindowState: restoring fullscreen to previous display");const u=Yr(3);return u.x=h.bounds.x,u.y=h.bounds.y,u}}let c,l;try{c=u1.screen.getDisplayMatching({x:n.x,y:n.y,width:n.width,height:n.height}),l=s(c),r.trace("window#validateWindowState: multi-monitor working area",l)}catch(h){r.error("window#validateWindowState: error finding display for window state",h)}if(c&&i(n,c))return n;r.trace("window#validateWindowState: state is outside of the multi-monitor working area")}t.validateWindowState=e;function i(r,n){if(typeof r.x!="number"||typeof r.y!="number"||typeof r.width!="number"||typeof r.height!="number"||r.width<=0||r.height<=0)return!1;const o=s(n);return!!(o&&r.x+r.width>o.x&&r.y+r.height>o.y&&r.x<o.x+o.width&&r.y<o.y+o.height)}t.validateWindowStateOnDisplay=i;function s(r){if(r.workArea.width>0&&r.workArea.height>0)return r.workArea;if(r.bounds.width>0&&r.bounds.height>0)return r.bounds}}(Na||(Na={}))}});import _i from"electron";var Wa,_e,vy,yy,ql,tt=v({"out-build/vs/platform/lifecycle/electron-main/lifecycleMainService.js"(){"use strict";ds(),le(),J(),T(),G(),ns(),$e(),Z(),Q(),Wi(),Pt(),Dt(),_e=V("lifecycleMainService"),function(t){t[t.QUIT=1]="QUIT",t[t.KILL=2]="KILL"}(vy||(vy={})),function(t){t[t.Starting=1]="Starting",t[t.Ready=2]="Ready",t[t.AfterWindowOpen=3]="AfterWindowOpen",t[t.Eventually=4]="Eventually"}(yy||(yy={})),ql=class extends j{static{Wa=this}static{this.b="lifecycle.quitAndRestart"}get quitRequested(){return this.j}get wasRestarted(){return this.m}get phase(){return this.n}constructor(e,i,s){super(),this.F=e,this.G=i,this.H=s,this.c=this.B(new D),this.onBeforeShutdown=this.c.event,this.f=this.B(new D),this.onWillShutdown=this.f.event,this.g=this.B(new D),this.onWillLoadWindow=this.g.event,this.h=this.B(new D),this.onBeforeCloseWindow=this.h.event,this.j=!1,this.m=!1,this.n=1,this.r=new Set,this.s=0,this.t=0,this.u=void 0,this.w=void 0,this.y=void 0,this.z=new Map,this.C=new Map,this.D=void 0,this.I(),this.when(2).then(()=>this.J())}I(){this.m=!!this.G.getItem(Wa.b),this.m&&this.G.removeItem(Wa.b)}J(){const e=()=>{this.j||(this.S("Lifecycle#app.on(before-quit)"),this.j=!0,this.S("Lifecycle#onBeforeShutdown.fire()"),this.c.fire(),N&&this.t===0&&this.L(1))};_i.app.addListener("before-quit",e);const i=()=>{this.S("Lifecycle#app.on(window-all-closed)"),(this.j||!N)&&_i.app.quit()};_i.app.addListener("window-all-closed",i),_i.app.once("will-quit",s=>{this.S("Lifecycle#app.on(will-quit) - begin"),s.preventDefault(),this.L(1).finally(()=>{this.S("Lifecycle#app.on(will-quit) - after fireOnWillShutdown"),this.O(!1),_i.app.removeListener("before-quit",e),_i.app.removeListener("window-all-closed",i),this.S("Lifecycle#app.on(will-quit) - calling app.quit()"),_i.app.quit()})})}L(e){if(this.y)return this.y;const i=this.F;this.S("Lifecycle#onWillShutdown.fire()");const s=[];return this.f.fire({reason:e,join(r,n){i.trace(`Lifecycle#onWillShutdown - begin '${r}'`),s.push(n.finally(()=>{i.trace(`Lifecycle#onWillShutdown - end '${r}'`)}))}}),this.y=(async()=>{try{await Ot.settled(s)}catch(r){this.F.error(r)}try{await this.G.close()}catch(r){this.F.error(r)}})(),this.y}set phase(e){if(e<this.phase)throw new Error("Lifecycle cannot go backwards");if(this.n===e)return;this.S(`lifecycle (main): phase changed (value: ${e})`),this.n=e;const i=this.C.get(this.n);i&&(i.open(),this.C.delete(this.n))}async when(e){if(e<=this.n)return;let i=this.C.get(e);i||(i=new oa,this.C.set(e,i)),await i.wait()}registerWindow(e){const i=new Ae;this.t++,i.add(e.onWillLoad(r=>this.g.fire({window:e,workspace:r.workspace,reason:r.reason})));const s=Go(e.win);i.add(x.fromNodeEventEmitter(s,"close")(r=>{const n=e.id;if(this.r.has(n)){this.r.delete(n);return}this.S(`Lifecycle#window.on('close') - window ID ${e.id}`),r.preventDefault(),this.unload(e,1).then(o=>{if(o){this.r.delete(n);return}this.r.add(n),this.S(`Lifecycle#onBeforeCloseWindow.fire() - window ID ${n}`),this.h.fire(e),e.close()})})),i.add(x.fromNodeEventEmitter(s,"closed")(()=>{this.S(`Lifecycle#window.on('closed') - window ID ${e.id}`),this.t--,i.dispose(),this.t===0&&(!N||this.j)&&this.L(1)}))}registerAuxWindow(e){const i=Go(e.win),s=new Ae;s.add(x.fromNodeEventEmitter(i,"close")(r=>{this.S(`Lifecycle#auxWindow.on('close') - window ID ${e.id}`),this.j&&(this.S("Lifecycle#auxWindow.on('close') - preventDefault() because quit requested"),r.preventDefault())})),s.add(x.fromNodeEventEmitter(i,"closed")(()=>{this.S(`Lifecycle#auxWindow.on('closed') - window ID ${e.id}`),s.dispose()}))}async reload(e,i){await this.unload(e,3)||e.reload(i)}unload(e,i){const s=this.z.get(e.id);if(s)return s;const r=this.M(e,i).finally(()=>{this.z.delete(e.id)});return this.z.set(e.id,r),r}async M(e,i){if(!e.isReady)return!1;this.S(`Lifecycle#unload() - window ID ${e.id}`);const s=this.j?2:i,r=await this.P(e,s);return r?(this.S(`Lifecycle#unload() - veto in renderer (window ID ${e.id})`),this.N(r)):(await this.Q(e,s),!1)}N(e){return e?(this.O(!0),this.j=!1,!0):!1}O(e){this.w&&(this.w(e),this.w=void 0,this.u=void 0)}P(e,i){return new Promise(s=>{const r=this.s++,n=`vscode:ok${r}`,o=`vscode:cancel${r}`;wt.once(n,()=>{s(!1)}),wt.once(o,()=>{s(!0)}),e.send("vscode:onBeforeUnload",{okChannel:n,cancelChannel:o,reason:i})})}Q(e,i){return new Promise(s=>{const n=`vscode:reply${this.s++}`;wt.once(n,()=>s()),e.send("vscode:onWillUnload",{replyChannel:n,reason:i})})}quit(e){return this.R(e).then(i=>{if(!i&&e)try{if(B){const s=Fs();s!==process.cwd()&&process.chdir(s)}}catch(s){this.F.error(s)}return i})}R(e){return this.S(`Lifecycle#quit() - begin (willRestart: ${e})`),this.u?(this.S("Lifecycle#quit() - returning pending quit promise"),this.u):(e&&this.G.setItem(Wa.b,!0),this.u=new Promise(i=>{this.w=i,this.S("Lifecycle#quit() - calling app.quit()"),_i.app.quit()}),this.u)}S(e){this.H.args["enable-smoke-test-driver"]?this.F.info(e):this.F.trace(e)}setRelaunchHandler(e){this.D=e}async relaunch(e){this.S("Lifecycle#relaunch()");const i=process.argv.slice(1);if(e?.addArgs&&i.push(...e.addArgs),e?.removeArgs)for(const n of e.removeArgs){const o=i.indexOf(n);o>=0&&i.splice(o,1)}const s=()=>{this.D?.handleRelaunch(e)||(this.S("Lifecycle#relaunch() - calling app.relaunch()"),_i.app.relaunch({args:i}))};_i.app.once("quit",s),await this.quit(!0)&&_i.app.removeListener("quit",s)}async kill(e){this.S("Lifecycle#kill()"),await this.L(2),await Promise.race([mi(1e3),(async()=>{for(const i of Fa())if(i&&!i.isDestroyed()){let s;i.webContents&&!i.webContents.isDestroyed()?s=new Promise(r=>i.once("closed",r)):s=Promise.resolve(),i.destroy(),await s}})()]),_i.app.exit(e)}},ql=Wa=__decorate([__param(0,K),__param(1,Pi),__param(2,ht)],ql)}}),bs,ri,_a,f1,by=v({"out-build/vs/base/parts/storage/common/storage.js"(){"use strict";le(),J(),T(),vl(),$e(),function(t){t[t.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",t[t.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(bs||(bs={})),function(t){t[t.None=0]="None",t[t.Initialized=1]="Initialized",t[t.Closed=2]="Closed"}(ri||(ri={})),_a=class h6 extends j{static{this.a=100}constructor(e,i=Object.create(null)){super(),this.r=e,this.s=i,this.b=this.B(new sl),this.onDidChangeStorage=this.b.event,this.c=ri.None,this.f=new Map,this.g=this.B(new Us(h6.a)),this.h=new Set,this.j=new Map,this.m=void 0,this.n=[],this.t()}t(){this.B(this.r.onDidChangeItemsExternal(e=>this.u(e)))}u(e){this.b.pause();try{e.changed?.forEach((i,s)=>this.w(s,i)),e.deleted?.forEach(i=>this.w(i,void 0))}finally{this.b.resume()}}w(e,i){if(this.c===ri.Closed)return;let s=!1;Xt(i)?s=this.f.delete(e):this.f.get(e)!==i&&(this.f.set(e,i),s=!0),s&&this.b.fire({key:e,external:!0})}get items(){return this.f}get size(){return this.f.size}async init(){this.c===ri.None&&(this.c=ri.Initialized,this.s.hint!==bs.STORAGE_DOES_NOT_EXIST&&(this.f=await this.r.getItems()))}get(e,i){const s=this.f.get(e);return Xt(s)?i:s}getBoolean(e,i){const s=this.get(e);return Xt(s)?i:s==="true"}getNumber(e,i){const s=this.get(e);return Xt(s)?i:parseInt(s,10)}getObject(e,i){const s=this.get(e);return Xt(s)?i:Y8(s)}async set(e,i,s=!1){if(this.c===ri.Closed)return;if(Xt(i))return this.delete(e,s);const r=St(i)||Array.isArray(i)?Z8(i):String(i);if(this.f.get(e)!==r)return this.f.set(e,r),this.j.set(e,r),this.h.delete(e),this.b.fire({key:e,external:s}),this.D()}async delete(e,i=!1){if(!(this.c===ri.Closed||!this.f.delete(e)))return this.h.has(e)||this.h.add(e),this.j.delete(e),this.b.fire({key:e,external:i}),this.D()}async optimize(){if(this.c!==ri.Closed)return await this.flush(0),this.r.optimize()}async close(){return this.m||(this.m=this.y()),this.m}async y(){this.c=ri.Closed;try{await this.D(0)}catch{}await this.r.close(()=>this.f)}get z(){return this.j.size>0||this.h.size>0}async C(){if(!this.z)return;const e={insert:this.j,delete:this.h};return this.h=new Set,this.j=new Map,this.r.updateItems(e).finally(()=>{if(!this.z)for(;this.n.length;)this.n.pop()?.()})}async flush(e){if(!(this.c===ri.Closed||this.m))return this.D(e)}async D(e){return this.s.hint===bs.STORAGE_IN_MEMORY?this.C():this.g.trigger(()=>this.C(),e)}async whenFlushed(){if(this.z)return new Promise(e=>this.n.push(e))}isInMemory(){return this.s.hint===bs.STORAGE_IN_MEMORY}},f1=class{constructor(){this.onDidChangeItemsExternal=x.None,this.a=new Map}async getItems(){return this.a}async updateItems(t){t.insert?.forEach((e,i)=>this.a.set(i,e)),t.delete?.forEach(e=>this.a.delete(e))}async optimize(){}async close(){}}}});function wi(t){const e=t;return typeof e?.id=="string"&&$.isUri(e.uri)}function Gl(t,e){if(typeof t=="string"||typeof t>"u")return typeof t=="string"?{id:ze(t)}:e?Sy:Ey;const i=t;return i.configuration?{id:i.id,configPath:i.configuration}:i.folders.length===1?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}function Bt(t){const e=t;return typeof e?.id=="string"&&$.isUri(e.configPath)}function J3(t){const e=t;if(e?.uri)return{id:e.id,uri:$.revive(e.uri)};const i=t;if(i?.configPath)return{id:i.id,configPath:$.revive(i.configPath)};if(t?.id)return{id:t.id}}function ky(t,e){return Ze.isEqualOrParent(t,e.untitledWorkspacesHome)}function Qr(t){return(typeof t=="string"?jo(t):Cg(t))===$y}var K3,Sy,Ey,xy,Py,Ta,$y,Ay,p1,qt=v({"out-build/vs/platform/workspace/common/workspace.js"(){"use strict";we(),ge(),Zn(),et(),re(),Z(),Oe(),K3=V("contextService"),Sy={id:"ext-dev"},Ey={id:"empty-window"},function(t){t[t.EMPTY=1]="EMPTY",t[t.FOLDER=2]="FOLDER",t[t.WORKSPACE=3]="WORKSPACE"}(xy||(xy={})),Py=class{constructor(t,e){this.raw=e,this.uri=t.uri,this.index=t.index,this.name=t.name}toResource(t){return pe(this.uri,t)}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}},Ta="code-workspace",$y=`.${Ta}`,Ay=[{name:g(2661,null),extensions:[Ta]}],p1="workspace.json"}}),ni,ks=v({"out-build/vs/platform/uriIdentity/common/uriIdentity.js"(){"use strict";Z(),ni=V("IUriIdentityService")}});function Z3(t){const e=t;return!!(e&&typeof e=="object"&&typeof e.id=="string"&&typeof e.isDefault=="boolean"&&typeof e.name=="string"&&$.isUri(e.location)&&$.isUri(e.globalStorageHome)&&$.isUri(e.settingsResource)&&$.isUri(e.keybindingsResource)&&$.isUri(e.tasksResource)&&$.isUri(e.snippetsHome)&&$.isUri(e.promptsHome)&&$.isUri(e.extensionsResource))}function Jl(t,e,i,s,r,n){return{id:t,name:e,location:i,isDefault:!1,icon:r?.icon,globalStorageHome:n&&r?.useDefaultFlags?.globalState?n.globalStorageHome:pe(i,"globalStorage"),settingsResource:n&&r?.useDefaultFlags?.settings?n.settingsResource:pe(i,"settings.json"),keybindingsResource:n&&r?.useDefaultFlags?.keybindings?n.keybindingsResource:pe(i,"keybindings.json"),tasksResource:n&&r?.useDefaultFlags?.tasks?n.tasksResource:pe(i,"tasks.json"),snippetsHome:n&&r?.useDefaultFlags?.snippets?n.snippetsHome:pe(i,"snippets"),promptsHome:n&&r?.useDefaultFlags?.prompts?n.promptsHome:pe(i,"prompts"),extensionsResource:n&&r?.useDefaultFlags?.extensions?n.extensionsResource:pe(i,"extensions.json"),cacheHome:pe(s,t),useDefaultFlags:r?.useDefaultFlags,isTransient:r?.transient,workspaces:r?.workspaces}}var Dy,Ss,Kl,Es=v({"out-build/vs/platform/userDataProfile/common/userDataProfile.js"(){"use strict";qs(),J(),T(),et(),re(),we(),xi(),Ve(),Z(),Q(),qt(),ks(),le(),Ei(),xt(),$e(),function(t){t.Settings="settings",t.Keybindings="keybindings",t.Snippets="snippets",t.Prompts="prompts",t.Tasks="tasks",t.Extensions="extensions",t.GlobalState="globalState"}(Dy||(Dy={})),Ss=V("IUserDataProfilesService"),Kl=class extends j{static{this.b="userDataProfiles"}static{this.c="profileAssociations"}get defaultProfile(){return this.profiles[0]}get profiles(){return[...this.C.profiles,...this.r.profiles]}constructor(e,i,s,r){super(),this.s=e,this.t=i,this.u=s,this.y=r,this.g=this.B(new D),this.onDidChangeProfiles=this.g.event,this.h=this.B(new D),this.onWillCreateProfile=this.h.event,this.j=this.B(new D),this.onWillRemoveProfile=this.j.event,this.m=this.B(new D),this.onDidResetWorkspaces=this.m.event,this.n=new Map,this.r={profiles:[],emptyWindows:new Map},this.profilesHome=pe(this.s.userRoamingDataHome,"profiles"),this.f=pe(this.s.cacheHome,"CachedProfilesData")}init(){this.z=void 0}get C(){if(!this.z){const e=this.D(),i=[e];try{for(const r of this.N()){if(!r.name||!pt(r.name)||!r.location){this.y.warn("Skipping the invalid stored profile",r.location||r.name);continue}i.push(Jl(as(r.location),r.name,r.location,this.f,{icon:r.icon,useDefaultFlags:r.useDefaultFlags},e))}}catch(r){this.y.error(r)}const s=new Map;if(i.length)try{const r=this.P();if(r.workspaces)for(const[n,o]of Object.entries(r.workspaces)){const a=$.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.y.error(r)}this.z={profiles:i,emptyWindows:s}}return this.z}D(){const e=Jl("__default__profile__",g(2614,null),this.s.userRoamingDataHome,this.f);return{...e,extensionsResource:this.R()??e.extensionsResource,isDefault:!0}}async createTransientProfile(e){const i="Temp",s=new RegExp(`${Xo(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(fs(gi()).toString(16),n,{transient:!0},e)}async createNamedProfile(e,i,s){return this.createProfile(fs(gi()).toString(16),e,i,s)}async createProfile(e,i,s,r){return await this.F(e,i,s,r)}async F(e,i,s,r){if(!pt(i)||!i)throw new Error("Name of the profile is mandatory and must be of type `string`");let n=this.n.get(i);return n||(n=(async()=>{try{if(this.profiles.find(h=>h.id===e||!h.isTransient&&!s?.transient&&h.name===i))throw new Error(`Profile with ${i} name already exists`);const a=r?this.G(r):void 0;$.isUri(a)&&(s={...s,workspaces:[a]});const c=Jl(e,i,pe(this.profilesHome,e),this.f,s,this.defaultProfile);await this.t.createFolder(c.location);const l=[];return this.h.fire({profile:c,join(h){l.push(h)}}),await Ot.settled(l),a&&!$.isUri(a)&&this.L(a,c,!!c.isTransient),this.I([c],[],[]),c}finally{this.n.delete(i)}})(),this.n.set(i,n)),n}async updateProfile(e,i){const s=[];for(const n of this.profiles){let o;if(e.id===n.id)n.isDefault?i.workspaces&&(o=n,o.workspaces=i.workspaces):o=Jl(n.id,i.name??n.name,n.location,this.f,{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.u.extUri.isEqual(c,l)));n.workspaces?.length!==a?.length&&(o=n,o.workspaces=a)}o&&s.push(o)}if(!s.length)throw e.isDefault?new Error("Cannot update default profile"):new Error(`Profile '${e.name}' does not exist`);this.I([],[],s);const r=this.profiles.find(n=>n.id===e.id);if(!r)throw new Error(`Profile '${e.name}' was not updated`);return r}async removeProfile(e){if(e.isDefault)throw new Error("Cannot remove default profile");const i=this.profiles.find(r=>r.id===e.id);if(!i)throw new Error(`Profile '${e.name}' does not exist`);const s=[];this.j.fire({profile:i,join(r){s.push(r)}});try{await Promise.allSettled(s)}catch(r){this.y.error(r)}this.I([],[i],[]);try{await this.t.del(i.cacheHome,{recursive:!0})}catch(r){vs(r)!==1&&this.y.error(r)}}async setProfileForWorkspace(e,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.G(e);if($.isUri(r)){const n=s.workspaces?[...s.workspaces]:[];n.some(o=>this.u.extUri.isEqual(o,r))||(n.push(r),await this.updateProfile(s,{workspaces:n}))}else this.L(r,s,!1),this.M(this.profiles)}unsetWorkspace(e,i=!1){const s=this.G(e);if($.isUri(s)){const r=this.getProfileForWorkspace(e);r&&this.updateProfile(r,{workspaces:r.workspaces?.filter(n=>!this.u.extUri.isEqual(n,s))})}else this.L(s,void 0,i),this.M(this.profiles)}async resetWorkspaces(){this.r.emptyWindows.clear(),this.C.emptyWindows.clear();for(const e of this.profiles)e.workspaces=void 0;this.I([],[],this.profiles),this.m.fire()}async cleanUp(){if(await this.t.exists(this.profilesHome)){const e=await this.t.resolve(this.profilesHome);await Promise.all((e.children||[]).filter(i=>i.isDirectory&&this.profiles.every(s=>!this.u.extUri.isEqual(s.location,i.resource))).map(i=>this.t.del(i.resource,{recursive:!0})))}}async cleanUpTransientProfiles(){const e=this.r.profiles.filter(i=>!this.H(i));await Promise.allSettled(e.map(i=>this.removeProfile(i)))}getProfileForWorkspace(e){const i=this.G(e);return $.isUri(i)?this.profiles.find(s=>s.workspaces?.some(r=>this.u.extUri.isEqual(r,i))):this.C.emptyWindows.get(i)??this.r.emptyWindows.get(i)}G(e){return wi(e)?e.uri:Bt(e)?e.configPath:e.id}H(e){return!!(e.workspaces?.length||[...this.C.emptyWindows.values()].some(i=>this.u.extUri.isEqual(i.location,e.location))||[...this.r.emptyWindows.values()].some(i=>this.u.extUri.isEqual(i.location,e.location)))}I(e,i,s){const r=[...this.profiles,...e],n=this.r.profiles;this.r.profiles=[];const o=[];for(let a of r){if(i.some(c=>a.id===c.id)){for(const c of[...this.C.emptyWindows.keys()])a.id===this.C.emptyWindows.get(c)?.id&&this.C.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.r.profiles.push(a);else if(c){for(const[l,h]of this.r.emptyWindows.entries())if(a.id===h.id){this.r.emptyWindows.delete(l),this.C.emptyWindows.set(l,a);break}}}a.workspaces?.length===0&&(a.workspaces=void 0),o.push(a)}this.M(o),this.J(e,i,s)}J(e,i,s){this.g.fire({added:e,removed:i,updated:s,all:this.profiles})}L(e,i,s){s=i?.isTransient?!0:s,s?i?this.r.emptyWindows.set(e,i):this.r.emptyWindows.delete(e):(this.r.emptyWindows.delete(e),i?this.C.emptyWindows.set(e,i):this.C.emptyWindows.delete(e))}M(e){const i=[],s={},r={};for(const n of e)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.C.emptyWindows.entries())r[n.toString()]=o.id;this.Q({workspaces:s,emptyWindows:r}),this.O(i),this.z=void 0}N(){return[]}O(e){throw new Error("not implemented")}P(){return{}}Q(e){throw new Error("not implemented")}R(){}},Kl=__decorate([__param(0,ps),__param(1,rt),__param(2,ni),__param(3,K)],Kl)}});function m1(t){const e=t.get(Gs);if(e)try{return JSON.parse(e)}catch{}return Object.create(null)}function g1(t){return t.isDefault||!!t.useDefaultFlags?.globalState}async function Y3(t,e,i,s,r,n){const o=w=>{try{return JSON.parse(w)}catch{return w}},a=new Map,c=new Map;t.forEach((w,y)=>{a.set(y,w),c.set(y,o(w))});const l=new Map,h=new Map;e.forEach((w,y)=>{l.set(y,w),h.set(y,o(w))});const u=new Map,f=new Map;i.forEach((w,y)=>{u.set(y,w),f.set(y,o(w))}),console.group(s!==r?`Storage: Application (path: ${s})`:`Storage: Application & Profile (path: ${s}, default profile)`);const p=[];if(a.forEach((w,y)=>{p.push({key:y,value:w})}),console.table(p),console.groupEnd(),console.log(c),s!==r){console.group(`Storage: Profile (path: ${r}, profile specific)`);const w=[];l.forEach((y,b)=>{w.push({key:b,value:y})}),console.table(w),console.groupEnd(),console.log(h)}console.group(`Storage: Workspace (path: ${n})`);const m=[];u.forEach((w,y)=>{m.push({key:y,value:w})}),console.table(m),console.groupEnd(),console.log(f)}var Ba,Gs,Q3,eo,Iy,Cy,Ry,w1=v({"out-build/vs/platform/storage/common/storage.js"(){"use strict";le(),J(),T(),Ms(),$e(),by(),Z(),Es(),Ba="__$__isNewStorageMarker",Gs="__$__targetStorageMarker",Q3=V("storageService"),function(t){t[t.NONE=0]="NONE",t[t.SHUTDOWN=1]="SHUTDOWN"}(eo||(eo={})),function(t){t[t.APPLICATION=-1]="APPLICATION",t[t.PROFILE=0]="PROFILE",t[t.WORKSPACE=1]="WORKSPACE"}(Iy||(Iy={})),function(t){t[t.USER=0]="USER",t[t.MACHINE=1]="MACHINE"}(Cy||(Cy={})),Ry=class u6 extends j{static{this.a=60*1e3}constructor(e={flushInterval:u6.a}){super(),this.b=this.B(new sl),this.f=this.B(new sl),this.onDidChangeTarget=this.f.event,this.g=this.B(new D),this.onWillSaveState=this.g.event,this.m=this.B(new or),this.C=void 0,this.F=void 0,this.H=void 0,this.j=this.B(new Ki(()=>this.n(),e.flushInterval))}onDidChangeValue(e,i,s){return x.filter(this.b.event,r=>r.scope===e&&(i===void 0||r.key===i),s)}n(){this.m.value=mf(()=>{this.r()&&this.flush(),this.j.schedule()})}r(){return!0}t(){mt([this.m,this.j])}initialize(){return this.h||(this.h=(async()=>{Ne("code/willInitStorage");try{await this.O()}finally{Ne("code/didInitStorage")}this.j.schedule()})()),this.h}u(e,i){const{key:s,external:r}=i;if(s===Gs){switch(e){case-1:this.H=void 0;break;case 0:this.F=void 0;break;case 1:this.C=void 0;break}this.f.fire({scope:e})}else this.b.fire({scope:e,key:s,target:this.J(e)[s],external:r})}w(e){this.g.fire({reason:e})}get(e,i,s){return this.P(i)?.get(e,s)}getBoolean(e,i,s){return this.P(i)?.getBoolean(e,s)}getNumber(e,i,s){return this.P(i)?.getNumber(e,s)}getObject(e,i,s){return this.P(i)?.getObject(e,s)}storeAll(e,i){this.y(()=>{for(const s of e)this.store(s.key,s.value,s.scope,s.target,i)})}store(e,i,s,r,n=!1){if(Xt(i)){this.remove(e,s,n);return}this.y(()=>{this.z(e,s,r),this.P(s)?.set(e,i,n)})}remove(e,i,s=!1){this.y(()=>{this.z(e,i,void 0),this.P(i)?.delete(e,s)})}y(e){this.b.pause(),this.f.pause();try{e()}finally{this.b.resume(),this.f.resume()}}keys(e,i){const s=[],r=this.J(e);for(const n of Object.keys(r))r[n]===i&&s.push(n);return s}z(e,i,s,r=!1){const n=this.J(i);typeof s=="number"?n[e]!==s&&(n[e]=s,this.P(i)?.set(Gs,JSON.stringify(n),r)):typeof n[e]=="number"&&(delete n[e],this.P(i)?.set(Gs,JSON.stringify(n),r))}get D(){return this.C||(this.C=this.L(1)),this.C}get G(){return this.F||(this.F=this.L(0)),this.F}get I(){return this.H||(this.H=this.L(-1)),this.H}J(e){switch(e){case-1:return this.I;case 0:return this.G;default:return this.D}}L(e){const i=this.P(e);return i?m1(i):Object.create(null)}isNew(e){return this.getBoolean(Ba,e)===!0}async flush(e=eo.NONE){this.g.fire({reason:e});const i=this.P(-1),s=this.P(0),r=this.P(1);switch(e){case eo.NONE:await Ot.settled([i?.whenFlushed()??Promise.resolve(),s?.whenFlushed()??Promise.resolve(),r?.whenFlushed()??Promise.resolve()]);break;case eo.SHUTDOWN:await Ot.settled([i?.flush(0)??Promise.resolve(),s?.flush(0)??Promise.resolve(),r?.flush(0)??Promise.resolve()]);break}}async log(){const e=this.P(-1)?.items??new Map,i=this.P(0)?.items??new Map,s=this.P(1)?.items??new Map;return Y3(e,i,s,this.Q(-1)??"",this.Q(0)??"",this.Q(1)??"")}async optimize(e){return await this.flush(),this.P(e)?.optimize()}async switch(e,i){return this.w(eo.NONE),Z3(e)?this.R(e,i):this.S(e,i)}M(e,i){return!(e.id===i.id||g1(i)&&g1(e))}N(e,i,s){this.y(()=>{const r=new Set;for(const[n,o]of e)r.add(n),i.get(n)!==o&&this.u(s,{key:n,external:!0});for(const[n]of i.items)r.has(n)||this.u(s,{key:n,external:!0})})}}}});import*as Oy from"fs";var Ua,Ly,X3=v({"out-build/vs/base/parts/storage/node/storage.js"(){"use strict";le(),J(),Qt(),ge(),gt(),Ua=class bn{static{this.IN_MEMORY_PATH=":memory:"}get onDidChangeItemsExternal(){return x.None}static{this.a=2e3}static{this.b=256}constructor(e,i=Object.create(null)){this.g=e,this.c=ze(this.g),this.d=new Ly(i.logging),this.f=this.m(this.g)}async getItems(){const e=await this.f,i=new Map;return(await this.r(e,"SELECT * FROM ItemTable")).forEach(r=>i.set(r.key,r.value)),this.d.isTracing&&this.d.trace(`[storage ${this.c}] getItems(): ${i.size} rows`),i}async updateItems(e){const i=await this.f;return this.h(i,e)}h(e,i){return this.d.isTracing&&this.d.trace(`[storage ${this.c}] updateItems(): insert(${i.insert?c7(i.insert):"0"}), delete(${i.delete?l7(i.delete):"0"})`),this.s(e,()=>{const s=i.insert,r=i.delete;if(s&&s.size>0){const n=[];n.push([]);let o=0;s.forEach((a,c)=>{let l=n[o];l.length>bn.b&&(o++,l=[],n.push(l)),l.push(c,a)}),n.forEach(a=>{this.t(e,`INSERT INTO ItemTable VALUES ${new Array(a.length/2).fill("(?,?)").join(",")}`,c=>c.run(a),()=>{const c=[];let l=0;return s.forEach((h,u)=>{c.push(u),l+=h.length}),`Keys: ${c.join(", ")} Length: ${l}`})})}if(r&&r.size){const n=[];n.push([]);let o=0;r.forEach(a=>{let c=n[o];c.length>bn.b&&(o++,c=[],n.push(c)),c.push(a)}),n.forEach(a=>{this.t(e,`DELETE FROM ItemTable WHERE key IN (${new Array(a.length).fill("?").join(",")})`,c=>c.run(a),()=>{const c=[];return r.forEach(l=>{c.push(l)}),`Keys: ${c.join(", ")}`})})}})}async optimize(){this.d.trace(`[storage ${this.c}] vacuum()`);const e=await this.f;return this.p(e,"VACUUM")}async close(e){this.d.trace(`[storage ${this.c}] close()`);const i=await this.f;return this.j(i,e)}j(e,i){return new Promise((s,r)=>{e.db.close(n=>(n&&this.n(e,`[storage ${this.c}] close(): ${n}`),this.g===bn.IN_MEMORY_PATH?s():!e.isErroneous&&!e.isInMemory?this.k().then(s,o=>(this.d.error(`[storage ${this.c}] backup(): ${o}`),s())):typeof i=="function"?Oy.promises.unlink(this.g).then(()=>this.o(this.g).then(o=>{const a=()=>this.j(o,void 0);return this.h(o,{insert:i()}).then(()=>a(),c=>(a(),Promise.reject(c)))})).then(s,r):r(n||new Error("Database has errors or is in-memory without recovery option"))))})}k(){const e=this.l(this.g);return te.copy(this.g,e,{preserveSymlinks:!1})}l(e){return`${e}.backup`}async checkIntegrity(e){this.d.trace(`[storage ${this.c}] checkIntegrity(full: ${e})`);const i=await this.f,s=await this.q(i,e?"PRAGMA integrity_check":"PRAGMA quick_check"),r=e?s.integrity_check:s.quick_check;return i.isErroneous?`${r} (last error: ${i.lastError})`:i.isInMemory?`${r} (in-memory!)`:r}async m(e,i=!0){this.d.trace(`[storage ${this.c}] open(${e}, retryOnBusy: ${i})`);try{return await this.o(e)}catch(s){if(this.d.error(`[storage ${this.c}] open(): Unable to open DB due to ${s}`),s.code==="SQLITE_BUSY"&&i)return await mi(bn.a),this.m(e,!1);try{await Oy.promises.unlink(e);try{await te.rename(this.l(e),e,!1)}catch{}return await this.o(e)}catch(r){return this.d.error(`[storage ${this.c}] open(): Unable to use backup due to ${r}`),this.o(bn.IN_MEMORY_PATH)}}}n(e,i){e.isErroneous=!0,e.lastError=i,this.d.error(i)}o(e){return new Promise((i,s)=>{import("@vscode/sqlite3").then(r=>{const n=this.d.isTracing?r.default.verbose().Database:r.default.Database,o={db:new n(e,a=>a?o.db&&a.code!=="SQLITE_CANTOPEN"?o.db.close(()=>s(a)):s(a):this.p(o,["PRAGMA user_version = 1;","CREATE TABLE IF NOT EXISTS ItemTable (key TEXT UNIQUE ON CONFLICT REPLACE, value BLOB)"].join("")).then(()=>i(o),c=>o.db.close(()=>s(c)))),isInMemory:e===bn.IN_MEMORY_PATH};o.db.on("error",a=>this.n(o,`[storage ${this.c}] Error (event): ${a}`)),this.d.isTracing&&o.db.on("trace",a=>this.d.trace(`[storage ${this.c}] Trace (event): ${a}`))},s)})}p(e,i){return new Promise((s,r)=>{e.db.exec(i,n=>n?(this.n(e,`[storage ${this.c}] exec(): ${n}`),r(n)):s())})}q(e,i){return new Promise((s,r)=>{e.db.get(i,(n,o)=>n?(this.n(e,`[storage ${this.c}] get(): ${n}`),r(n)):s(o))})}r(e,i){return new Promise((s,r)=>{e.db.all(i,(n,o)=>n?(this.n(e,`[storage ${this.c}] all(): ${n}`),r(n)):s(o))})}s(e,i){return new Promise((s,r)=>{e.db.serialize(()=>{e.db.run("BEGIN TRANSACTION"),i(),e.db.run("END TRANSACTION",n=>n?(this.n(e,`[storage ${this.c}] transaction(): ${n}`),r(n)):s())})})}t(e,i,s,r){const n=e.db.prepare(i),o=a=>{this.n(e,`[storage ${this.c}] prepare(): ${a} (${i}). Details: ${r()}`)};n.on("error",o),s(n),n.finalize(a=>{a&&o(a),n.removeListener("error",o)})}},Ly=class d6{static{this.a="VSCODE_TRACE_STORAGE"}constructor(e){e&&typeof e.logTrace=="function"&&process.env[d6.a]&&(this.b=e.logTrace),e&&typeof e.logError=="function"&&(this.c=e.logError)}get isTracing(){return!!this.b}trace(e){this.b?.(e)}error(e){this.c?.(e)}}}}),oi,ek,v1,y1,My,b1,k1,Zl,Fy,ja,S1,Yl,Ny,Wy,ai=v({"out-build/vs/platform/telemetry/common/telemetry.js"(){"use strict";Z(),oi=V("telemetryService"),ek=V("customEndpointTelemetryService"),v1="telemetry.currentSessionDate",y1="telemetry.firstSessionDate",My="telemetry.lastSessionDate",b1="telemetry.machineId",k1="telemetry.sqmId",Zl="telemetry.devDeviceId",Fy="telemetry",ja="telemetry.telemetryLevel",S1="telemetry.enableCrashReporter",Yl="telemetry.enableTelemetry",function(t){t[t.NONE=0]="NONE",t[t.CRASH=1]="CRASH",t[t.ERROR=2]="ERROR",t[t.USAGE=3]="USAGE"}(Ny||(Ny={})),function(t){t.OFF="off",t.CRASH="crash",t.ERROR="error",t.ON="all"}(Wy||(Wy={}))}});import*as tk from"fs";var Ql,E1,_y,Ty,By,x1,ik=v({"out-build/vs/platform/storage/electron-main/storageMain.js"(){"use strict";kt(),le(),J(),T(),ge(),On(),re(),gt(),by(),X3(),Q(),w1(),ai(),qt(),Oe(),Ql=class f6 extends j{static{this.a=2e3}get storage(){return this.f}constructor(e,i){super(),this.m=e,this.n=i,this.b=this.B(new D),this.onDidChangeStorage=this.b.event,this.c=this.B(new D),this.onDidCloseStorage=this.c.event,this.f=this.B(new _a(new f1,{hint:bs.STORAGE_IN_MEMORY})),this.g=void 0,this.h=new js,this.whenInit=this.h.p,this.j=ri.None}isInMemory(){return this.f.isInMemory()}init(){return this.g||(this.g=(async()=>{if(this.j===ri.None)try{const e=this.B(await this.t());this.f.dispose(),this.f=e,this.B(e.onDidChangeStorage(s=>this.b.fire(s))),await this.s(e);const i=e.getBoolean(Ba);i===void 0?e.set(Ba,!0):i&&e.set(Ba,!1)}catch(e){this.m.error(`[storage main] initialize(): Unable to init storage due to ${e}`)}finally{this.j=ri.Initialized,this.h.complete()}})()),this.g}r(){return{logTrace:this.m.getLevel()===Y.Trace?e=>this.m.trace(e):void 0,logError:e=>this.m.error(e)}}s(e){return e.init()}get items(){return this.f.items}get(e,i){return this.f.get(e,i)}set(e,i){return this.f.set(e,i)}delete(e){return this.f.delete(e)}optimize(){return this.f.optimize()}async close(){const e=new Wr(!1);await this.w(),e.stop(),e.elapsed()>f6.a&&await this.u(e),this.c.fire()}async u(e){if(this.path)try{const i=i7(Array.from(this.f.items.entries()).map(([r,n])=>({key:r,length:n.length})),(r,n)=>n.length-r.length,5).map(r=>`${r.key}:${r.length}`).join(", "),s=(await this.n.stat($.file(this.path))).size;this.m.warn(`[storage main] detected slow close() operation: Time: ${e.elapsed()}ms, DB size: ${s}b, Large Keys: ${i}`)}catch(i){this.m.error("[storage main] figuring out stats for slow DB on close() resulted in an error",i)}}async w(){this.g&&await this.g,this.j=ri.Closed,await this.f.close()}},E1=class p6 extends Ql{static{this.y="state.vscdb"}get path(){if(!this.C.useInMemoryStorage)return M(this.z.globalStorageHome.with({scheme:O.file}).fsPath,p6.y)}constructor(e,i,s,r){super(s,r),this.z=e,this.C=i}async t(){return new _a(new Ua(this.path??Ua.IN_MEMORY_PATH,{logging:this.r()}),this.path?void 0:{hint:bs.STORAGE_IN_MEMORY})}},_y=class extends E1{constructor(t,e,i,s){super(t,e,i,s)}},Ty=class extends E1{constructor(t,e,i,s){super(e.defaultProfile,t,i,s)}async s(t){await super.s(t),this.G(t)}G(t){t.get(y1,void 0)===void 0&&t.set(y1,new Date().toUTCString());const i=t.get(v1,void 0),s=new Date().toUTCString();t.set(My,typeof i>"u"?null:i),t.set(v1,s)}},By=class ld extends Ql{static{this.y="state.vscdb"}static{this.z="workspace.json"}get path(){if(!this.D.useInMemoryStorage)return M(this.F.workspaceStorageHome.with({scheme:O.file}).fsPath,this.C.id,ld.y)}constructor(e,i,s,r,n){super(s,n),this.C=e,this.D=i,this.F=r}async t(){const{storageFilePath:e,wasCreated:i}=await this.H();return new _a(new Ua(e,{logging:this.r()}),{hint:this.D.useInMemoryStorage?bs.STORAGE_IN_MEMORY:i?bs.STORAGE_DOES_NOT_EXIST:void 0})}async H(){if(this.D.useInMemoryStorage)return{storageFilePath:Ua.IN_MEMORY_PATH,wasCreated:!0};const e=M(this.F.workspaceStorageHome.with({scheme:O.file}).fsPath,this.C.id),i=M(e,ld.y);return await te.exists(e)?{storageFilePath:i,wasCreated:!1}:(await tk.promises.mkdir(e,{recursive:!0}),this.I(e),{storageFilePath:i,wasCreated:!0})}async I(e){let i;if(wi(this.C)?i={folder:this.C.uri.toString()}:Bt(this.C)&&(i={workspace:this.C.configPath.toString()}),i)try{const s=M(e,ld.z);await te.exists(s)||await te.writeFile(s,JSON.stringify(i,void 0,2))}catch(s){this.m.error(`[storage main] ensureWorkspaceStorageFolderMeta(): Unable to create workspace storage metadata due to ${s}`)}}},x1=class extends Ql{get path(){}async t(){return new _a(new f1,{hint:bs.STORAGE_IN_MEMORY})}}}}),Uy,jy,Xl,P1,zy=v({"out-build/vs/platform/state/node/stateService.js"(){"use strict";le(),Ke(),T(),$e(),xi(),Ve(),Q(),function(t){t[t.IMMEDIATE=0]="IMMEDIATE",t[t.DELAYED=1]="DELAYED"}(Uy||(Uy={})),jy=class extends j{constructor(t,e,i,s){super(),this.h=t,this.j=i,this.m=s,this.a=Object.create(null),this.b="",this.f=void 0,this.g=void 0,this.c=this.B(new Us(e===0?0:100))}init(){return this.f||(this.f=this.n()),this.f}async n(){try{this.b=(await this.m.readFile(this.h)).value.toString(),this.a=JSON.parse(this.b)}catch(t){t.fileOperationResult!==1&&this.j.error(t)}}getItem(t,e){const i=this.a[t];return Xt(i)?e:i}setItem(t,e){this.setItems([{key:t,data:e}])}setItems(t){let e=!1;for(const{key:i,data:s}of t)this.a[i]!==s&&(Xt(s)?_s(this.a[i])||(this.a[i]=void 0,e=!0):(this.a[i]=s,e=!0));e&&this.r()}removeItem(t){_s(this.a[t])||(this.a[t]=void 0,this.r())}async r(){if(!this.g)return this.c.trigger(()=>this.s())}async s(){if(!this.f)return;await this.f;const t=JSON.stringify(this.a,null,4);if(t!==this.b)try{await this.m.writeFile(this.h,q.fromString(t),{atomic:{postfix:".vsctmp"}}),this.b=t}catch(e){this.j.error(e)}}async close(){return this.g||(this.g=this.c.trigger(()=>this.s(),0)),this.g}},Xl=class extends j{constructor(e,i,s,r){super(),this.a=this.B(new jy(i.stateResource,e,s,r))}async init(){await this.a.init()}getItem(e,i){return this.a.getItem(e,i)}},Xl=__decorate([__param(1,ps),__param(2,K),__param(3,rt)],Xl),P1=class extends Xl{setItem(t,e){this.a.setItem(t,e)}setItems(t){this.a.setItems(t)}removeItem(t){this.a.removeItem(t)}close(){return this.a.close()}}}}),eh,to,th,za,$1,sk=v({"out-build/vs/platform/userDataProfile/node/userDataProfile.js"(){"use strict";re(),xi(),Ve(),Q(),Wi(),ks(),Es(),$e(),zy(),th=eh=class extends Kl{constructor(e,i,s,r,n){super(s,r,i,n),this.a=e,this.S=s}N(){return this.a.getItem(eh.b,[]).map(i=>({...i,location:pt(i.location)?this.u.extUri.joinPath(this.profilesHome,i.location):$.revive(i.location)}))}P(){return this.a.getItem(eh.c,{})}R(){return this.u.extUri.joinPath($.file(this.S.extensionsPath).with({scheme:this.profilesHome.scheme}),"extensions.json")}},th=eh=__decorate([__param(0,t1),__param(1,ni),__param(2,ms),__param(3,rt),__param(4,K)],th),za=to=class extends th{constructor(e,i,s,r,n){super(e,i,s,r,n),this.Y=e}O(e){e.length?this.Y.setItem(to.b,e.map(i=>({...i,location:this.u.extUri.basename(i.location)}))):this.Y.removeItem(to.b)}Q(e){e.emptyWindows||e.workspaces?this.Y.setItem(to.c,e):this.Y.removeItem(to.c)}},za=to=__decorate([__param(0,Pi),__param(1,ni),__param(2,ms),__param(3,rt),__param(4,K)],za),$1=class extends za{constructor(e,i,s,r){super(new P1(0,i,r,s),e,i,s,r)}async init(){return await this.Y.init(),super.init()}},$1=__decorate([__param(0,ni),__param(1,ms),__param(2,rt),__param(3,K)],$1)}}),xs,ih,Xr=v({"out-build/vs/platform/userDataProfile/electron-main/userDataProfile.js"(){"use strict";xi(),Ve(),Z(),Q(),ks(),Es(),sk(),Wi(),xs=Ss,ih=class extends za{constructor(e,i,s,r,n){super(e,i,s,r,n)}getAssociatedEmptyWindows(){const e=[];for(const i of this.C.emptyWindows.keys())e.push({id:i});return e}},ih=__decorate([__param(0,Pi),__param(1,ni),__param(2,ms),__param(3,rt),__param(4,K)],ih)}}),io,sh,Ha,rh,nh=v({"out-build/vs/platform/storage/electron-main/storageMainService.js"(){"use strict";re(),J(),T(),xi(),Ve(),Z(),tt(),Q(),w1(),ik(),Es(),Xr(),ks(),Oe(),io=V("storageMainService"),sh=class extends j{constructor(e,i,s,r,n,o){super(),this.c=e,this.f=i,this.g=s,this.h=r,this.j=n,this.m=o,this.a=void 0,this.b=this.B(new D),this.onDidChangeProfileStorage=this.b.event,this.t=new Map,this.w=new Map,this.applicationStorage=this.B(this.s()),this.r()}n(){return{useInMemoryStorage:!!this.f.extensionTestsLocationURI}}r(){(async()=>(await this.h.when(3),this.applicationStorage.init()))(),this.B(this.h.onWillLoadWindow(e=>{e.window.profile&&this.profileStorage(e.window.profile).init(),e.workspace&&this.workspaceStorage(e.workspace).init()})),this.B(this.h.onWillShutdown(e=>{this.c.trace("storageMainService#onWillShutdown()"),this.a=e.reason,e.join("applicationStorage",this.applicationStorage.close());for(const[,i]of this.t)e.join("profileStorage",i.close());for(const[,i]of this.w)e.join("workspaceStorage",i.close())})),this.B(this.g.onWillCreateProfile(e=>{e.join((async()=>{await this.j.exists(e.profile.globalStorageHome)||await this.j.createFolder(e.profile.globalStorageHome)})())})),this.B(this.g.onWillRemoveProfile(e=>{const i=this.t.get(e.profile.id);i&&e.join(i.close())}))}s(){this.c.trace("StorageMainService: creating application storage");const e=new Ty(this.n(),this.g,this.c,this.j);return this.B(x.once(e.onDidCloseStorage)(()=>{this.c.trace("StorageMainService: closed application storage")})),e}profileStorage(e){if(g1(e))return this.applicationStorage;let i=this.t.get(e.id);if(!i){this.c.trace(`StorageMainService: creating profile storage (${e.name})`),i=this.B(this.u(e)),this.t.set(e.id,i);const s=this.B(i.onDidChangeStorage(r=>this.b.fire({...r,storage:i,profile:e})));this.B(x.once(i.onDidCloseStorage)(()=>{this.c.trace(`StorageMainService: closed profile storage (${e.name})`),this.t.delete(e.id),s.dispose()}))}return i}u(e){return this.a===2?new x1(this.c,this.j):new _y(e,this.n(),this.c,this.j)}workspaceStorage(e){let i=this.w.get(e.id);return i||(this.c.trace(`StorageMainService: creating workspace storage (${e.id})`),i=this.B(this.y(e)),this.w.set(e.id,i),this.B(x.once(i.onDidCloseStorage)(()=>{this.c.trace(`StorageMainService: closed workspace storage (${e.id})`),this.w.delete(e.id)}))),i}y(e){return this.a===2?new x1(this.c,this.j):new By(e,this.n(),this.c,this.f,this.j)}isUsed(e){const i=$.file(e);for(const s of[this.applicationStorage,...this.t.values(),...this.w.values()])if(s.path&&this.m.extUri.isEqualOrParent($.file(s.path),i))return!0;return!1}},sh=__decorate([__param(0,K),__param(1,ps),__param(2,xs),__param(3,_e),__param(4,rt),__param(5,ni)],sh),Ha=V("applicationStorageMainService"),rh=class extends Ry{constructor(e,i){super(),this.c=e,this.s=i,this.whenReady=this.s.applicationStorage.whenInit}O(){return this.s.applicationStorage.whenInit}P(e){if(e===-1)return this.s.applicationStorage.storage}Q(e){if(e===-1)return this.c.defaultProfile.globalStorageHome.with({scheme:O.file}).fsPath}r(){return!1}switch(){throw new Error("Migrating storage is unsupported from main process")}R(){throw new Error("Switching storage profile is unsupported from main process")}S(){throw new Error("Switching storage workspace is unsupported from main process")}hasScope(){throw new Error("Main process is never profile or workspace scoped")}},rh=__decorate([__param(0,Ss),__param(1,io)],rh)}});import{app as rk}from"electron";var oh,ah,Hy=v({"out-build/vs/platform/native/electron-main/auth.js"(){"use strict";Et(),J(),qs(),T(),re(),Ei(),Ue(),sv(),Pt(),Z(),Q(),nh(),Dt(),oh=V("proxyAuthService"),ah=class extends j{constructor(e,i,s,r,n,o){super(),this.h=e,this.m=i,this.n=s,this.r=r,this.s=n,this.t=o,this.a="proxy-credentials://",this.b=new Map,this.c=void 0,this.f=new Set,this.g=new Map,this.u()}u(){const e=x.fromNodeEventEmitter(rk,"login",(i,s,r,n,o)=>({event:i,authInfo:{...n,attempt:r.firstAuthAttempt?1:2},callback:o}));this.B(e(this.w,this))}async lookupAuthorization(e){return this.w({authInfo:e})}async w({event:e,authInfo:i,callback:s}){if(!i.isProxy)return;e?.preventDefault();const r=String(fs({scheme:i.scheme,host:i.host,port:i.port}));let n,o=this.b.get(r);if(o)this.h.trace("auth#onLogin (proxy) - pending proxy handling found"),n=await o;else{this.h.trace("auth#onLogin (proxy) - no pending proxy handling found, starting new"),o=this.y(i,r),this.b.set(r,o);try{n=await o}finally{this.b.delete(r)}}return s?.(n?.username,n?.password),n}async y(e,i){this.h.trace("auth#resolveProxyCredentials (proxy) - enter");try{const s=await this.z(e,i);if(s)return this.h.trace("auth#resolveProxyCredentials (proxy) - got credentials"),s;this.h.trace("auth#resolveProxyCredentials (proxy) - did not get credentials")}finally{this.h.trace("auth#resolveProxyCredentials (proxy) - exit")}}async z(e,i){if(this.h.trace("auth#doResolveProxyCredentials - enter",e),this.t.extensionTestsLocationURI){try{const l=Buffer.from(e.realm,"base64").toString("utf-8");if(l.startsWith("{"))return JSON.parse(l)}catch{}return}const s=(this.s.getValue("http.proxy")||"").trim()||(process.env.https_proxy||process.env.HTTPS_PROXY||process.env.http_proxy||process.env.HTTP_PROXY||"").trim()||void 0;if(s?.indexOf("@")!==-1){const l=$.parse(s),h=l.authority.indexOf("@");if(h!==-1){if(e.attempt>1){this.h.trace("auth#doResolveProxyCredentials (proxy) - exit - ignoring previously used config/envvar credentials");return}this.h.trace("auth#doResolveProxyCredentials (proxy) - exit - found config/envvar credentials to use");const u=l.authority.substring(0,h),f=u.indexOf(":");return f!==-1?{username:u.substring(0,f),password:u.substring(f+1)}:{username:u,password:""}}}const r=e.attempt===1&&this.g.get(i);if(r){this.h.trace("auth#doResolveProxyCredentials (proxy) - exit - found session credentials to use");const{username:l,password:h}=r;return{username:l,password:h}}let n,o;try{const l=this.r.get(this.a+i,-1);if(l){const h=JSON.parse(await this.n.decrypt(l));n=h.username,o=h.password}}catch(l){this.h.error(l)}if(e.attempt===1&&typeof n=="string"&&typeof o=="string")return this.h.trace("auth#doResolveProxyCredentials (proxy) - exit - found stored credentials to use"),this.g.set(i,{username:n,password:o}),{username:n,password:o};const a=this.c,c=this.c=(async()=>{await a;const l=await this.C(e,i,n,o);return this.c===c&&(this.c=void 0),l})();return c}async C(e,i,s,r){if(this.f.has(i)){this.h.trace("auth#doResolveProxyCredentials (proxy) - exit - login dialog was cancelled before, not showing again");return}const n=this.m.getFocusedWindow()||this.m.getLastActiveWindow();if(!n){this.h.trace("auth#doResolveProxyCredentials (proxy) - exit - no opened window found to show dialog in");return}this.h.trace(`auth#doResolveProxyCredentials (proxy) - asking window ${n.id} to handle proxy login`);const o=this.g.get(i),a={authInfo:e,username:o?.username??s,password:o?.password??r,replyChannel:`vscode:proxyAuthResponse:${gi()}`};n.sendWhenReady("vscode:openProxyAuthenticationDialog",Je.None,a);const c=await new Promise(l=>{const h=async(u,f,p)=>{if(f===a.replyChannel)if(this.h.trace(`auth#doResolveProxyCredentials - exit - received credentials from window ${n.id}`),n.win?.webContents.off("ipc-message",h),p){const m={username:p.username,password:p.password};try{if(p.remember){const w=await this.n.encrypt(JSON.stringify(m));this.r.store(this.a+i,w,-1,1)}else this.r.remove(this.a+i,-1)}catch(w){this.h.error(w)}l({username:m.username,password:m.password})}else this.f.add(i),l(void 0)};n.win?.webContents.on("ipc-message",h)});return this.g.set(i,c),c}},ah=__decorate([__param(0,K),__param(1,yt),__param(2,Al),__param(3,Ha),__param(4,Be),__param(5,ht)],ah)}}),so,Va=v({"out-build/vs/platform/backup/electron-main/backup.js"(){"use strict";Z(),so=V("backupMainService")}});function nk(t){return typeof t?.backupFolder=="string"}function ok(t){let e=[];try{Array.isArray(t.workspaces)&&(e=t.workspaces.map(i=>({workspace:{id:i.id,configPath:$.parse(i.configURIPath)},remoteAuthority:i.remoteAuthority})))}catch{}return e}function ak(t){let e=[];try{Array.isArray(t.folders)&&(e=t.folders.map(i=>({folderUri:$.parse(i.folderUri),remoteAuthority:i.remoteAuthority})))}catch{}return e}var ck=v({"out-build/vs/platform/backup/node/backup.js"(){"use strict";re()}});function lk(t){return t&&t.hasOwnProperty("folderUri")}var hk=v({"out-build/vs/platform/backup/common/backup.js"(){"use strict"}});import{createHash as A1}from"crypto";function en(t){function e(){let i=t.scheme===O.file?pi(t):t.toString();return Se||(i=i.toLowerCase()),A1("md5").update(i).digest("hex")}return{id:e(),configPath:t}}function D1(t,e){function i(){if(t.scheme!==O.file)return A1("md5").update(t.toString()).digest("hex");if(!e)return;let r;return Se?r=e.ino:N?r=e.birthtime.getTime():B&&(typeof e.birthtimeMs=="number"?r=Math.floor(e.birthtimeMs):r=e.birthtime.getTime()),A1("md5").update(t.fsPath).update(r?String(r):"").digest("hex")}const s=i();if(typeof s=="string")return{id:s,uri:t}}function I1(){return{id:(Date.now()+Math.round(Math.random()*1e3)).toString()}}var uk,C1=v({"out-build/vs/platform/workspaces/node/workspaces.js"(){"use strict";Oe(),G(),et(),uk=128/4}});import{createHash as dk}from"crypto";var ch,lh,fk=v({"out-build/vs/platform/backup/electron-main/backupMainService.js"(){"use strict";ki(),Oe(),ge(),G(),et(),gt(),ck(),Ue(),Pt(),Wi(),Ve(),Q(),hk(),qt(),C1(),lh=class{static{ch=this}static{this.a="backupWorkspaces"}constructor(e,i,s,r){this.j=i,this.k=s,this.l=r,this.d=[],this.e=[],this.g=[],this.h=Ze,this.i={isEqual:(n,o)=>ta(n,o,!Se)},this.c=e.backupHome}async initialize(){const e=this.l.getItem(ch.a)??{workspaces:[],folders:[],emptyWindows:[]};this.g=await this.v(e.emptyWindows),this.d=await this.t(ok(e)),this.e=await this.u(ak(e)),this.B()}m(){return this.o()?[]:this.d.slice(0)}n(){return this.o()?[]:this.e.slice(0)}isHotExitEnabled(){return this.q()!==jl.OFF}o(){return this.q()===jl.ON_EXIT_AND_WINDOW_CLOSE}q(){return this.j.getValue()?.files?.hotExit||jl.ON_EXIT}getEmptyWindowBackups(){return this.g.slice(0)}registerWorkspaceBackup(e,i){this.d.some(r=>e.workspace.id===r.workspace.id)||(this.d.push(e),this.B());const s=M(this.c,e.workspace.id);return i?this.s(s,i).then(()=>s):s}async s(e,i){if(await te.exists(e)&&await this.y(e),await te.exists(i))try{await te.rename(i,e,!1)}catch(s){this.k.error(`Backup: Could not move backup folder to new location: ${s.toString()}`)}}registerFolderBackup(e){return this.e.some(i=>this.h.isEqual(e.folderUri,i.folderUri))||(this.e.push(e),this.B()),M(this.c,this.C(e))}registerEmptyWindowBackup(e){return this.g.some(i=>!!i.backupFolder&&this.i.isEqual(i.backupFolder,e.backupFolder))||(this.g.push(e),this.B()),M(this.c,e.backupFolder)}async t(e){if(!Array.isArray(e))return[];const i=new Set,s=[];for(const r of e){const n=r.workspace;if(!Bt(n))return[];if(!i.has(n.id)){i.add(n.id);const o=M(this.c,n.id);await this.A(o)?n.configPath.scheme!==O.file||await te.exists(n.configPath.fsPath)?s.push(r):await this.y(o):await this.w(o)}}return s}async u(e){if(!Array.isArray(e))return[];const i=[],s=new Set;for(const r of e){const n=r.folderUri,o=this.h.getComparisonKey(n);if(!s.has(o)){s.add(o);const a=M(this.c,this.C(r));await this.A(a)?n.scheme!==O.file||await te.exists(n.fsPath)?i.push(r):await this.y(a):await this.w(a)}}return i}async v(e){if(!Array.isArray(e))return[];const i=[],s=new Set;for(const r of e){const n=r.backupFolder;if(typeof n!="string")return[];if(!s.has(n)){s.add(n);const o=M(this.c,n);await this.A(o)?i.push(r):await this.w(o)}}return i}async w(e){try{await te.rm(e,Ur.MOVE)}catch(i){this.k.error(`Backup: Could not delete stale backup: ${i.toString()}`)}}x(){let e=I1();for(;this.g.some(i=>!!i.backupFolder&&this.i.isEqual(i.backupFolder,e.id));)e=I1();return{backupFolder:e.id}}async y(e){const i=this.x(),s=M(this.c,i.backupFolder);try{await te.rename(e,s,!1)}catch(r){return this.k.error(`Backup: Could not rename backup folder: ${r.toString()}`),!1}return this.g.push(i),!0}async getDirtyWorkspaces(){const e=[];for(const i of this.d)await this.z(i)&&e.push(i);for(const i of this.e)await this.z(i)&&e.push(i);return e}z(e){let i;return nk(e)?i=M(this.c,e.backupFolder):lk(e)?i=M(this.c,this.C(e)):i=M(this.c,e.workspace.id),this.A(i)}async A(e){try{const i=await te.readdir(e);for(const s of i)try{if((await te.readdir(M(e,s))).length>0)return!0}catch{}}catch{}return!1}B(){const e={workspaces:this.d.map(({workspace:i,remoteAuthority:s})=>{const r={id:i.id,configURIPath:i.configPath.toString()};return s&&(r.remoteAuthority=s),r}),folders:this.e.map(({folderUri:i,remoteAuthority:s})=>{const r={folderUri:i.toString()};return s&&(r.remoteAuthority=s),r}),emptyWindows:this.g.map(({backupFolder:i,remoteAuthority:s})=>{const r={backupFolder:i};return s&&(r.remoteAuthority=s),r})};this.l.setItem(ch.a,e)}C(e){const i=e.folderUri;let s;return i.scheme===O.file?s=Se?i.fsPath:i.fsPath.toLowerCase():s=i.toString().toLowerCase(),dk("md5").update(s).digest("hex")}},lh=ch=__decorate([__param(0,ht),__param(1,Be),__param(2,K),__param(3,Pi)],lh)}}),Vy,pk=v({"out-build/vs/platform/debug/common/extensionHostDebugIpc.js"(){"use strict";J(),T(),Vy=class{constructor(){this.a=new D,this.b=new D,this.c=new D,this.d=new D}static{this.ChannelName="extensionhostdebugservice"}call(t,e,i){switch(e){case"close":return Promise.resolve(this.a.fire({sessionId:i[0]}));case"reload":return Promise.resolve(this.b.fire({sessionId:i[0]}));case"terminate":return Promise.resolve(this.c.fire({sessionId:i[0]}));case"attach":return Promise.resolve(this.d.fire({sessionId:i[0],port:i[1],subId:i[2]}))}throw new Error("Method not implemented.")}listen(t,e,i){switch(e){case"close":return this.a.event;case"reload":return this.b.event;case"terminate":return this.c.event;case"attach":return this.d.event}throw new Error("Method not implemented.")}}}});function R1(t,e,i=Gy){const s=t.find((f,p)=>f.length>0&&f[0]!=="-"&&e.hasOwnProperty(f)&&e[f].type==="subcommand"),r={},n=["_"],o=[],a={};let c;for(const f in e){const p=e[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 y in c.options)f[y]=c.options[y];const p=t.filter(y=>y!==s),m=i.getSubcommandReporter?i.getSubcommandReporter(s):void 0,w=R1(p,f,m);return{[s]:w,_:[]}}const l=(0,qy.default)(t,{string:n,boolean:o,alias:r}),h={},u=l;h._=l._.map(f=>String(f)).filter(f=>f.length>0),delete u._;for(const f in e){const p=e[f];if(p.type==="subcommand")continue;p.alias&&delete u[p.alias];let m=u[f];if(p.deprecates)for(const w of p.deprecates)u.hasOwnProperty(w)&&(m||(m=u[w],m&&i.onDeprecatedOption(w,p.deprecationMessage||g(1880,null,f))),delete u[w]);if(typeof m<"u"){if(p.type==="string[]"){if(Array.isArray(m)||(m=[m]),!p.allowEmptyValue){const w=m.filter(y=>y.length>0);w.length!==m.length&&(i.onEmptyValue(f),m=w.length>0?w:void 0)}}else p.type==="string"&&(Array.isArray(m)?(m=m.pop(),i.onMultipleValues(f,m)):!m&&!p.allowEmptyValue&&(i.onEmptyValue(f),m=void 0));h[f]=m,p.deprecationMessage&&i.onDeprecatedOption(f,p.deprecationMessage)}delete u[f]}for(const f in u)i.onUnknownOption(f);return h}var qy,mk,O1,L1,Gy,Jy=v({"out-build/vs/platform/environment/node/argv.js"(){"use strict";qy=Nm(Wm(),1),G(),we(),mk={o:g(1838,null),e:g(1839,null),t:g(1840,null)},O1=["tunnel","serve-web"],L1={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:g(1841,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:g(1842,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"}}},diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:g(1843,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:g(1844,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:g(1845,null)},remove:{type:"boolean",cat:"o",args:"folder",description:g(1846,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:g(1847,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:g(1848,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:g(1849,null)},wait:{type:"boolean",cat:"o",alias:"w",description:g(1850,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:g(1851,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:g(1852,null)},profile:{type:"string",cat:"o",args:"profileName",description:g(1853,null)},help:{type:"boolean",cat:"o",alias:"h",description:g(1854,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:g(1855,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:g(1856,null)},"show-versions":{type:"boolean",cat:"e",description:g(1857,null)},category:{type:"string",allowEmptyValue:!0,cat:"e",description:g(1858,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:g(1859,null)},"pre-release":{type:"boolean",cat:"e",description:g(1860,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:g(1861,null)},"update-extensions":{type:"boolean",cat:"e",description:g(1862,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:g(1863,null)},"add-mcp":{type:"string[]",cat:"o",args:"json",description:g(1864,null)},version:{type:"boolean",cat:"t",alias:"v",description:g(1865,null)},verbose:{type:"boolean",cat:"t",global:!0,description:g(1866,null)},log:{type:"string[]",cat:"t",args:"level",global:!0,description:g(1867,null)},status:{type:"boolean",alias:"s",cat:"t",description:g(1868,null)},"prof-startup":{type:"boolean",cat:"t",description:g(1869,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:g(1870,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:g(1871,null)},sync:{type:"string",cat:"t",description:g(1872,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:g(1873,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:g(1874,null)},"disable-lcd-text":{type:"boolean",cat:"t",description:g(1875,null)},"disable-gpu":{type:"boolean",cat:"t",description:g(1876,null)},"disable-chromium-sandbox":{type:"boolean",cat:"t",description:g(1877,null)},sandbox:{type:"boolean"},"locate-shell-integration-path":{type:"string",cat:"t",args:["shell"],description:g(1878,null)},telemetry:{type:"boolean",cat:"t",description:g(1879,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"},"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"},"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"},"enable-rdp-display-tracking":{type:"boolean"},"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"},_:{type:"string[]"}},Gy={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}}}});import{createServer as gk}from"net";var Ky,wk=v({"out-build/vs/platform/debug/electron-main/extensionHostDebugIpc.js"(){"use strict";pk(),Jy(),Ky=class extends Vy{constructor(t){super(),this.f=t}call(t,e,i){return e==="openExtensionDevelopmentHostWindow"?this.g(i[0],i[1]):super.call(t,e,i)}async g(t,e){const i=R1(t,L1);i.debugRenderer=e;const s=i.extensionDevelopmentPath;if(!s)return{success:!1};const[r]=await this.f.openExtensionDevelopmentHostWindow(s,{context:5,cli:i,forceProfile:i.profile,forceTempProfile:i["profile-temp"]});if(!e)return{success:!0};const n=r.win;if(!n)return{success:!0};const o=n.webContents.debugger;let a=o.isAttached()?1/0:0;const c=gk(l=>{a++===0&&o.attach();let h=!1;const u=m=>{h||l.write(JSON.stringify(m)+"\0")},f=(m,w,y,b)=>u({method:w,params:y,sessionId:b});n.on("close",()=>{o.removeListener("message",f),l.end(),h=!0}),o.addListener("message",f);let p=Buffer.alloc(0);l.on("data",m=>{p=Buffer.concat([p,m]);for(let w=p.indexOf(0);w!==-1;w=p.indexOf(0)){let y;try{const b=p.slice(0,w).toString("utf8");p=p.slice(w+1),y=JSON.parse(b)}catch(b){console.error("error reading cdp line",b)}o.sendCommand(y.method,y.params,y.sessionId).then(b=>u({id:y.id,sessionId:y.sessionId,result:b})).catch(b=>u({id:y.id,sessionId:y.sessionId,error:{code:0,message:b.message}}))}}),l.on("error",m=>{console.error("error on cdp pipe:",m)}),l.on("close",()=>{h=!0,--a===0&&o.detach()})});return await new Promise(l=>c.listen(0,l)),n.on("close",()=>c.close()),{rendererDebugPort:c.address().port,success:!0}}}}});function M1(t){const e=t;return!!e?.hostName&&!!e?.errorMessage}var Zy,hh,F1=v({"out-build/vs/platform/diagnostics/common/diagnostics.js"(){"use strict";Z(),Zy="diagnosticsService",hh=V(Zy)}});function Yy(t,e=!1){let i=0;const s=t.length;let r="",n=0,o=16,a=0;function c(w){let y=0,b=0;for(;y<w;){const E=t.charCodeAt(i);if(E>=48&&E<=57)b=b*16+E-48;else if(E>=65&&E<=70)b=b*16+E-65+10;else if(E>=97&&E<=102)b=b*16+E-97+10;else break;i++,y++}return y<w&&(b=-1),b}function l(w){i=w,r="",n=0,o=16,a=0}function h(){const w=i;if(t.charCodeAt(i)===48)i++;else for(i++;i<t.length&&ro(t.charCodeAt(i));)i++;if(i<t.length&&t.charCodeAt(i)===46)if(i++,i<t.length&&ro(t.charCodeAt(i)))for(i++;i<t.length&&ro(t.charCodeAt(i));)i++;else return a=3,t.substring(w,i);let y=i;if(i<t.length&&(t.charCodeAt(i)===69||t.charCodeAt(i)===101))if(i++,(i<t.length&&t.charCodeAt(i)===43||t.charCodeAt(i)===45)&&i++,i<t.length&&ro(t.charCodeAt(i))){for(i++;i<t.length&&ro(t.charCodeAt(i));)i++;y=i}else a=3;return t.substring(w,y)}function u(){let w="",y=i;for(;;){if(i>=s){w+=t.substring(y,i),a=2;break}const b=t.charCodeAt(i);if(b===34){w+=t.substring(y,i),i++;break}if(b===92){if(w+=t.substring(y,i),i++,i>=s){a=2;break}switch(t.charCodeAt(i++)){case 34:w+='"';break;case 92:w+="\\";break;case 47:w+="/";break;case 98:w+="\b";break;case 102:w+="\f";break;case 110:w+=`
`;break;case 114:w+="\r";break;case 116:w+=" ";break;case 117:{const A=c(4);A>=0?w+=String.fromCharCode(A):a=4;break}default:a=5}y=i;continue}if(b>=0&&b<=31)if(uh(b)){w+=t.substring(y,i),a=2;break}else a=6;i++}return w}function f(){if(r="",a=0,n=i,i>=s)return n=s,o=17;let w=t.charCodeAt(i);if(N1(w)){do i++,r+=String.fromCharCode(w),w=t.charCodeAt(i);while(N1(w));return o=15}if(uh(w))return i++,r+=String.fromCharCode(w),w===13&&t.charCodeAt(i)===10&&(i++,r+=`
`),o=14;switch(w){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=u(),o=10;case 47:{const y=i-1;if(t.charCodeAt(i+1)===47){for(i+=2;i<s&&!uh(t.charCodeAt(i));)i++;return r=t.substring(y,i),o=12}if(t.charCodeAt(i+1)===42){i+=2;const b=s-1;let E=!1;for(;i<b;){if(t.charCodeAt(i)===42&&t.charCodeAt(i+1)===47){i+=2,E=!0;break}i++}return E||(i++,a=1),r=t.substring(y,i),o=13}return r+=String.fromCharCode(w),i++,o=16}case 45:if(r+=String.fromCharCode(w),i++,i===s||!ro(t.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+=h(),o=11;default:for(;i<s&&p(w);)i++,w=t.charCodeAt(i);if(n!==i){switch(r=t.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(w),i++,o=16}}function p(w){if(N1(w)||uh(w))return!1;switch(w){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function m(){let w;do w=f();while(w>=12&&w<=15);return w}return{setPosition:l,getPosition:()=>i,scan:e?m:f,getToken:()=>o,getTokenValue:()=>r,getTokenOffset:()=>n,getTokenLength:()=>i-n,getTokenError:()=>a}}function N1(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function uh(t){return t===10||t===13||t===8232||t===8233}function ro(t){return t>=48&&t<=57}function tn(t,e=[],i=qa.DEFAULT){let s=null,r=[];const n=[];function o(c){Array.isArray(r)?r.push(c):s!==null&&(r[s]=c)}return dh(t,{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,h)=>{e.push({error:c,offset:l,length:h})}},i),r[0]}function vk(t,e=[],i=qa.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}dh(t,{onObjectBegin:c=>{s=n({type:"object",offset:c,length:-1,parent:s,children:[]})},onObjectProperty:(c,l,h)=>{s=n({type:"property",offset:l,length:-1,parent:s,children:[]}),s.children.push({type:"string",value:c,offset:l,length:h,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,h)=>{n({type:no(c),offset:l,length:h,parent:s,value:c}),r(l+h)},onSeparator:(c,l,h)=>{s.type==="property"&&(c===":"?s.colonOffset=l:c===","&&r(l))},onError:(c,l,h)=>{e.push({error:c,offset:l,length:h})}},i);const a=s.children[0];return a&&delete a.parent,a}function Qy(t,e){if(!t)return;let i=t;for(const s of e)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 dh(t,e,i=qa.DEFAULT){const s=Yy(t,!1);function r(C){return C?()=>C(s.getTokenOffset(),s.getTokenLength()):()=>!0}function n(C){return C?ie=>C(ie,s.getTokenOffset(),s.getTokenLength()):()=>!0}const o=r(e.onObjectBegin),a=n(e.onObjectProperty),c=r(e.onObjectEnd),l=r(e.onArrayBegin),h=r(e.onArrayEnd),u=n(e.onLiteralValue),f=n(e.onSeparator),p=r(e.onComment),m=n(e.onError),w=i&&i.disallowComments,y=i&&i.allowTrailingComma;function b(){for(;;){const C=s.scan();switch(s.getTokenError()){case 4:E(14);break;case 5:E(15);break;case 3:E(13);break;case 1:w||E(11);break;case 2:E(12);break;case 6:E(16);break}switch(C){case 12:case 13:w?E(10):p();break;case 16:E(1);break;case 15:case 14:break;default:return C}}}function E(C,ie=[],qe=[]){if(m(C),ie.length+qe.length>0){let ne=s.getToken();for(;ne!==17;){if(ie.indexOf(ne)!==-1){b();break}else if(qe.indexOf(ne)!==-1)break;ne=b()}}}function A(C){const ie=s.getTokenValue();return C?u(ie):a(ie),b(),!0}function R(){switch(s.getToken()){case 11:{let C=0;try{C=JSON.parse(s.getTokenValue()),typeof C!="number"&&(E(2),C=0)}catch{E(2)}u(C);break}case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return b(),!0}function W(){return s.getToken()!==10?(E(3,[],[2,5]),!1):(A(!1),s.getToken()===6?(f(":"),b(),H()||E(4,[],[2,5])):E(5,[],[2,5]),!0)}function se(){o(),b();let C=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){if(C||E(4,[],[]),f(","),b(),s.getToken()===2&&y)break}else C&&E(6,[],[]);W()||E(4,[],[2,5]),C=!0}return c(),s.getToken()!==2?E(7,[2],[]):b(),!0}function F(){l(),b();let C=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){if(C||E(4,[],[]),f(","),b(),s.getToken()===4&&y)break}else C&&E(6,[],[]);H()||E(4,[],[4,5]),C=!0}return h(),s.getToken()!==4?E(8,[4],[]):b(),!0}function H(){switch(s.getToken()){case 3:return F();case 1:return se();case 10:return A(!0);default:return R()}}return b(),s.getToken()===17?i.allowEmptyContent?!0:(E(4,[],[]),!1):H()?(s.getToken()!==17&&E(9,[],[]),!0):(E(4,[],[]),!1)}function no(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}var Xy,eb,tb,qa,ib,Js=v({"out-build/vs/base/common/json.js"(){"use strict";(function(t){t[t.None=0]="None",t[t.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=2]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",t[t.InvalidUnicode=4]="InvalidUnicode",t[t.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",t[t.InvalidCharacter=6]="InvalidCharacter"})(Xy||(Xy={})),function(t){t[t.OpenBraceToken=1]="OpenBraceToken",t[t.CloseBraceToken=2]="CloseBraceToken",t[t.OpenBracketToken=3]="OpenBracketToken",t[t.CloseBracketToken=4]="CloseBracketToken",t[t.CommaToken=5]="CommaToken",t[t.ColonToken=6]="ColonToken",t[t.NullKeyword=7]="NullKeyword",t[t.TrueKeyword=8]="TrueKeyword",t[t.FalseKeyword=9]="FalseKeyword",t[t.StringLiteral=10]="StringLiteral",t[t.NumericLiteral=11]="NumericLiteral",t[t.LineCommentTrivia=12]="LineCommentTrivia",t[t.BlockCommentTrivia=13]="BlockCommentTrivia",t[t.LineBreakTrivia=14]="LineBreakTrivia",t[t.Trivia=15]="Trivia",t[t.Unknown=16]="Unknown",t[t.EOF=17]="EOF"}(eb||(eb={})),function(t){t[t.InvalidSymbol=1]="InvalidSymbol",t[t.InvalidNumberFormat=2]="InvalidNumberFormat",t[t.PropertyNameExpected=3]="PropertyNameExpected",t[t.ValueExpected=4]="ValueExpected",t[t.ColonExpected=5]="ColonExpected",t[t.CommaExpected=6]="CommaExpected",t[t.CloseBraceExpected=7]="CloseBraceExpected",t[t.CloseBracketExpected=8]="CloseBracketExpected",t[t.EndOfFileExpected=9]="EndOfFileExpected",t[t.InvalidCommentToken=10]="InvalidCommentToken",t[t.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=12]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",t[t.InvalidUnicode=14]="InvalidUnicode",t[t.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",t[t.InvalidCharacter=16]="InvalidCharacter"}(tb||(tb={})),function(t){t.DEFAULT={allowTrailingComma:!0}}(qa||(qa={})),function(t){t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab"}(ib||(ib={}))}}),Ga,xe,fh=v({"out-build/vs/base/common/severity.js"(){"use strict";xt(),function(t){t[t.Ignore=0]="Ignore",t[t.Info=1]="Info",t[t.Warning=2]="Warning",t[t.Error=3]="Error"}(Ga||(Ga={})),function(t){const e="error",i="warning",s="warn",r="info",n="ignore";function o(c){return c?Bs(e,c)?t.Error:Bs(i,c)||Bs(s,c)?t.Warning:Bs(r,c)?t.Info:t.Ignore:t.Ignore}t.fromValue=o;function a(c){switch(c){case t.Error:return e;case t.Warning:return i;case t.Info:return r;default:return n}}t.toString=a}(Ga||(Ga={})),xe=Ga}});function Ti(t){if(!t||typeof t!="object"||t instanceof RegExp)return t;const e=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([i,s])=>{e[i]=s&&typeof s=="object"?Ti(s):s}),e}function yk(t){if(!t||typeof t!="object")return t;const e=[t];for(;e.length>0;){const i=e.shift();Object.freeze(i);for(const s in i)if(T1.call(i,s)){const r=i[s];typeof r=="object"&&!Object.isFrozen(r)&&!u7(r)&&e.push(r)}}return t}function bk(t,e){return W1(t,e,new Set)}function W1(t,e,i){if(Xt(t))return t;const s=e(t);if(typeof s<"u")return s;if(Array.isArray(t)){const r=[];for(const n of t)r.push(W1(n,e,i));return r}if(St(t)){if(i.has(t))throw new Error("Cannot clone recursive data-structure");i.add(t);const r={};for(const n in t)T1.call(t,n)&&(r[n]=W1(t[n],e,i));return i.delete(t),r}return t}function _1(t,e,i=!0){return St(t)?(St(e)&&Object.keys(e).forEach(s=>{s in t?i&&(St(t[s])&&St(e[s])?_1(t[s],e[s],i):t[s]=e[s]):t[s]=e[s]}),t):e}function Ps(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let i,s;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(!Ps(t[i],e[i]))return!1}else{const r=[];for(s in t)r.push(s);r.sort();const n=[];for(s in e)n.push(s);if(n.sort(),!Ps(r,n))return!1;for(i=0;i<r.length;i++)if(!Ps(t[r[i]],e[r[i]]))return!1}return!0}function kk(t){const e=new Set;return JSON.stringify(t,(i,s)=>{if(St(s)||Array.isArray(s)){if(e.has(s))return"[Circular]";e.add(s)}return typeof s=="bigint"?`[BigInt ${s.toString()}]`:s})}function sb(t,e){const i=e.toLowerCase(),s=Object.keys(t).find(r=>r.toLowerCase()===i);return s?t[s]:t[e]}var T1,Bi=v({"out-build/vs/base/common/objects.js"(){"use strict";$e(),T1=Object.prototype.hasOwnProperty}});function rb(t,e){const i=Ti(t);let s=(i.buttons??[]).map(a=>dw(a).withMnemonic),r=(t.buttons||[]).map((a,c)=>c),n=0,o=i.cancelId??s.length-1;if(s.length>1){const a=typeof o=="number"?s[o]:void 0;if(Se||N){if(typeof a=="string"&&s.length>1&&o!==1){s.splice(o,1),s.splice(1,0,a);const c=r[o];r.splice(o,1),r.splice(1,0,c),o=1}Se&&s.length>1&&(s=s.reverse(),r=r.reverse(),n=s.length-1,typeof a=="string"&&(o=n-1))}else if(B&&typeof a=="string"&&s.length>1&&o!==s.length-1){s.splice(o,1),s.push(a);const c=r[o];r.splice(o,1),r.push(c),o=s.length-1}}return i.buttons=s,i.defaultId=n,i.cancelId=o,i.noLink=!0,i.title=i.title||e.nameLong,{options:i,buttonIndeces:r}}var Sk,nb,Ek,ob,ab=v({"out-build/vs/platform/dialogs/common/dialogs.js"(){"use strict";et(),fh(),we(),Z(),hr(),G(),Bi(),Sk=V("dialogService"),function(t){t[t.Confirmation=1]="Confirmation",t[t.Prompt=2]="Prompt",t[t.Input=3]="Input"}(nb||(nb={})),Ek=V("fileDialogService"),function(t){t[t.SAVE=0]="SAVE",t[t.DONT_SAVE=1]="DONT_SAVE",t[t.CANCEL=2]="CANCEL"}(ob||(ob={}))}});import sn from"electron";var br,ph,oo=v({"out-build/vs/platform/dialogs/electron-main/dialogMainService.js"(){"use strict";le(),qs(),hr(),T(),ul(),G(),gt(),we(),ab(),Z(),Q(),Tt(),qt(),br=V("dialogMainService"),ph=class{constructor(e,i){this.d=e,this.e=i,this.a=new Map,this.b=new Map,this.c=new Fn}pickFileFolder(e,i){return this.f({...e,pickFolders:!0,pickFiles:!0,title:g(1832,null)},i)}pickFolder(e,i){return this.f({...e,pickFolders:!0,title:g(1833,null)},i)}pickFile(e,i){return this.f({...e,pickFiles:!0,title:g(1834,null)},i)}pickWorkspace(e,i){const s=g(1835,null),r=dw(g(1836,null)).withMnemonic,n=Ay;return this.f({...e,pickFiles:!0,title:s,filters:n,buttonLabel:r},i)}async f(e,i){const s={title:e.title,buttonLabel:e.buttonLabel,filters:e.filters,defaultPath:e.defaultPath};(typeof e.pickFiles=="boolean"||typeof e.pickFolders=="boolean")&&(s.properties=void 0,e.pickFiles&&e.pickFolders&&(s.properties=["multiSelections","openDirectory","openFile","createDirectory"])),s.properties||(s.properties=["multiSelections",e.pickFolders?"openDirectory":"openFile","createDirectory"]),N&&s.properties.push("treatPackageAsDirectory");const r=await this.showOpenDialog(s,(i||sn.BrowserWindow.getFocusedWindow())??void 0);if(r&&r.filePaths&&r.filePaths.length>0)return r.filePaths}g(e){if(e){let i=this.b.get(e.id);return i||(i=new Fn,this.b.set(e.id,i)),i}else return this.c}showMessageBox(e,i){return this.g(i).queue(async()=>{const{options:s,buttonIndeces:r}=rb(e,this.e);let n;return i?n=await sn.dialog.showMessageBox(i,s):n=await sn.dialog.showMessageBox(s),{response:r[n.response],checkboxChecked:n.checkboxChecked}})}async showSaveDialog(e,i){const s=this.j(e,i);if(!s)return this.d.error("[DialogMainService]: file save dialog is already or will be showing for the window with the same configuration"),{canceled:!0,filePath:""};try{return await this.g(i).queue(async()=>{let r;return i?r=await sn.dialog.showSaveDialog(i,e):r=await sn.dialog.showSaveDialog(e),r.filePath=this.h(r.filePath),r})}finally{mt(s)}}h(e){return e&&N&&(e=Nn(e)),e}i(e){return e.map(i=>this.h(i))}async showOpenDialog(e,i){e.defaultPath&&(await te.exists(e.defaultPath)||(e.defaultPath=void 0));const s=this.j(e,i);if(!s)return this.d.error("[DialogMainService]: file open dialog is already or will be showing for the window with the same configuration"),{canceled:!0,filePaths:[]};try{return await this.g(i).queue(async()=>{let r;return i?r=await sn.dialog.showOpenDialog(i,e):r=await sn.dialog.showOpenDialog(e),r.filePaths=this.i(r.filePaths),r})}finally{mt(s)}}j(e,i){if(!i)return j.None;this.d.trace("[DialogMainService]: request to acquire file dialog lock",e);let s=this.a.get(i.id);s||(s=new Set,this.a.set(i.id,s));const r=fs(e);if(!s.has(r))return this.d.trace("[DialogMainService]: new file dialog lock created",e),s.add(r),be(()=>{this.d.trace("[DialogMainService]: file dialog lock disposed",e),s?.delete(r),s?.size===0&&this.a.delete(i.id)})}},ph=__decorate([__param(0,K),__param(1,nt)],ph)}});async function xk(t,e,i){for(const r of t){const n=r.openedWorkspace;if(Bt(n)){const o=await i(n);if(o){if(o.folders.some(a=>Ze.isEqualOrParent(e,a.uri)))return r}else if(Ze.isEqualOrParent(e,n.configPath))return r}}const s=t.filter(r=>wi(r.openedWorkspace)&&Ze.isEqualOrParent(e,r.openedWorkspace.uri));if(s.length)return s.sort((r,n)=>-(r.openedWorkspace.uri.path.length-n.openedWorkspace.uri.path.length))[0]}function ao(t,e){for(const i of t)if(Bt(i.openedWorkspace)&&Ze.isEqual(i.openedWorkspace.configPath,e)||wi(i.openedWorkspace)&&Ze.isEqual(i.openedWorkspace.uri,e))return i}function Pk(t,e){const i=s=>e.some(r=>Ze.isEqual($.file(r),$.file(s)));for(const s of t)if(s.config?.extensionDevelopmentPath?.some(r=>i(r)))return s}var cb=v({"out-build/vs/platform/windows/electron-main/windowsFinder.js"(){"use strict";et(),re(),qt()}});function $k(t,e,i){let s,r,n,o,a;if(e){for(o=e.offset,a=o+e.length,n=o;n>0&&!mh(t,n-1);)n--;let A=a;for(;A<t.length&&!mh(t,A);)A++;r=t.substring(n,A),s=Ak(r,i)}else r=t,s=0,n=0,o=0,a=t.length;const c=Dk(i,t);let l=!1,h=0,u;i.insertSpaces?u=B1(" ",i.tabSize||4):u=" ";const f=Yy(r,!1);let p=!1;function m(){return c+B1(u,s+h)}function w(){let A=f.scan();for(l=!1;A===15||A===14;)l=l||A===14,A=f.scan();return p=A===16||f.getTokenError()!==0,A}const y=[];function b(A,R,W){!p&&R<a&&W>o&&t.substring(R,W)!==A&&y.push({offset:R,length:W-R,content:A})}let E=w();if(E!==17){const A=f.getTokenOffset()+n,R=B1(u,s);b(R,n,A)}for(;E!==17;){let A=f.getTokenOffset()+f.getTokenLength()+n,R=w(),W="";for(;!l&&(R===12||R===13);){const F=f.getTokenOffset()+n;b(" ",A,F),A=f.getTokenOffset()+f.getTokenLength()+n,W=R===12?m():"",R=w()}if(R===2)E!==1&&(h--,W=m());else if(R===4)E!==3&&(h--,W=m());else{switch(E){case 3:case 1:h++,W=m();break;case 5:case 12:W=m();break;case 13:l?W=m():W=" ";break;case 6:W=" ";break;case 10:if(R===6){W="";break}case 7:case 8:case 9:case 11:case 2:case 4:R===12||R===13?W=" ":R!==5&&R!==17&&(p=!0);break;case 16:p=!0;break}l&&(R===12||R===13)&&(W=m())}const se=f.getTokenOffset()+n;b(W,A,se),E=R}return y}function B1(t,e){let i="";for(let s=0;s<e;s++)i+=t;return i}function Ak(t,e){let i=0,s=0;const r=e.tabSize||4;for(;i<t.length;){const n=t.charAt(i);if(n===" ")s++;else if(n===" ")s+=r;else break;i++}return Math.floor(s/r)}function Dk(t,e){for(let i=0;i<e.length;i++){const s=e.charAt(i);if(s==="\r")return i+1<e.length&&e.charAt(i+1)===`
`?`\r
`:"\r";if(s===`
`)return`
`}return t&&t.eol||`
`}function mh(t,e){return`\r
`.indexOf(t.charAt(e))!==-1}var Ik=v({"out-build/vs/base/common/jsonFormatter.js"(){"use strict";Js()}});function Ck(t,e,i,s,r){const n=e.slice(),a=vk(t,[]);let c,l;for(;n.length>0&&(l=n.pop(),c=Qy(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 h=Qy(c,[l]);if(h!==void 0)if(i===void 0){if(!h.parent)throw new Error("Malformed AST");const u=c.children.indexOf(h.parent);let f,p=h.parent.offset+h.parent.length;if(u>0){const m=c.children[u-1];f=m.offset+m.length}else f=c.offset+1,c.children.length>1&&(p=c.children[1].offset);return co(t,{offset:f,length:p-f,content:""},s)}else return co(t,{offset:h.offset,length:h.length,content:JSON.stringify(i)},s);else{if(i===void 0)return[];const u=`${JSON.stringify(l)}: ${JSON.stringify(i)}`,f=r?r(c.children.map(m=>m.children[0].value)):c.children.length;let p;if(f>0){const m=c.children[f-1];p={offset:m.offset+m.length,length:0,content:","+u}}else c.children.length===0?p={offset:c.offset+1,length:0,content:u}:p={offset:c.offset+1,length:0,content:u+","};return co(t,p,s)}}else if(c.type==="array"&&typeof l=="number"&&Array.isArray(c.children))if(i!==void 0){const h=`${JSON.stringify(i)}`;let u;if(c.children.length===0||l===0)u={offset:c.offset+1,length:0,content:c.children.length===0?h:h+","};else{const f=l===-1||l>c.children.length?c.children.length:l,p=c.children[f-1];u={offset:p.offset+p.length,length:0,content:","+h}}return co(t,u,s)}else{const h=l,u=c.children[h];let f;if(c.children.length===1)f={offset:c.offset+1,length:c.length-2,content:""};else if(c.children.length-1===h){const p=c.children[h-1],m=p.offset+p.length,w=c.offset+c.length;f={offset:m,length:w-2-m,content:""}}else f={offset:u.offset,length:c.children[h+1].offset-u.offset,content:""};return co(t,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?[]:co(t,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(i)},s)}function co(t,e,i){let s=U1(t,e),r=e.offset,n=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;r>0&&!mh(s,r-1);)r--;for(;n<s.length&&!mh(s,n);)n++}const o=$k(s,{offset:r,length:n-r},i);for(let c=o.length-1;c>=0;c--){const l=o[c];s=U1(s,l),r=Math.min(r,l.offset),n=Math.max(n,l.offset+l.length),n+=l.content.length-l.length}const a=t.length-(s.length-n)-r;return[{offset:r,length:a,content:s.substring(r,n)}]}function U1(t,e){return t.substring(0,e.offset)+e.content+t.substring(e.offset+e.length)}function Rk(t,e){const i=e.slice(0).sort((r,n)=>{const o=r.offset-n.offset;return o===0?r.length-n.length:o});let s=t.length;for(let r=i.length-1;r>=0;r--){const n=i[r];if(n.offset+n.length<=s)t=U1(t,n);else throw new Error("Overlapping edit");s=n.offset}return t}var lb=v({"out-build/vs/base/common/jsonEdit.js"(){"use strict";Js(),Ik()}});function lo(t){return t.scheme===O.vscodeRemote?t.authority:void 0}var Ja=v({"out-build/vs/platform/remote/common/remoteHosts.js"(){"use strict";Oe()}});function j1(t){return t.hasOwnProperty("workspace")}function gh(t){return t.hasOwnProperty("folderUri")}function Ok(t){return t.hasOwnProperty("fileUri")}function Lk(t){return hb(t)||ub(t)}function hb(t){const e=t;return typeof e?.path=="string"&&(!e.name||typeof e.name=="string")}function ub(t){const e=t;return typeof e?.uri=="string"&&(!e.name||typeof e.name=="string")}function Mk(t,e,i,s,r){if(t.scheme!==s.scheme)return{name:i,uri:t.toString(!0)};let n=e?void 0:r.relativePath(s,t);if(n!==void 0)n.length===0?n=".":B&&(n=db(n));else if(t.scheme===O.file)n=t.fsPath,B&&(n=db(n));else if(r.isEqualAuthority(t.authority,s.authority))n=t.path;else return{name:i,uri:t.toString(!0)};return{name:i,path:n}}function db(t){return t=Pf(t),C7(t)||(t=Ln(t)),t}function Fk(t,e,i){const s=[],r=new Set,n=i.dirname(e);for(const o of t){let a;if(hb(o))o.path&&(a=i.resolvePath(n,o.path));else if(ub(o))try{a=$.parse(o.uri),a.path[0]!==ce.sep&&(a=a.with({path:ce.sep+a.path}))}catch(c){console.warn(c)}if(a){const c=i.getComparisonKey(a);if(!r.has(c)){r.add(c);const l=o.name||i.basenameOrAuthority(a);s.push(new Py({uri:a,name:l,index:s.length},o))}}}return s}function Nk(t){return t.workspace&&typeof t.workspace=="object"&&typeof t.workspace.id=="string"&&typeof t.workspace.configPath=="string"}function Wk(t){return typeof t.folderUri=="string"}function _k(t){return typeof t.fileUri=="string"}function Tk(t,e){const i={workspaces:[],files:[]};if(t){const s=function(n,o){for(let a=0;a<n.length;a++)try{o(n[a],a)}catch(c){e.warn(`Error restoring recent entry ${JSON.stringify(n[a])}: ${c.toString()}. Skip entry.`)}},r=t;Array.isArray(r.entries)&&s(r.entries,n=>{const o=n.label,a=n.remoteAuthority;Nk(n)?i.workspaces.push({label:o,remoteAuthority:a,workspace:{id:n.workspace.id,configPath:$.parse(n.workspace.configPath)}}):Wk(n)?i.workspaces.push({label:o,remoteAuthority:a,folderUri:$.parse(n.folderUri)}):_k(n)&&i.files.push({label:o,remoteAuthority:a,fileUri:$.parse(n.fileUri)})})}return i}function Bk(t){const e={entries:[]},i=(s,r)=>s&&s!==r.fsPath&&s!==r.path;for(const s of t.workspaces)gh(s)?e.entries.push({folderUri:s.folderUri.toString(),label:i(s.label,s.folderUri)?s.label:void 0,remoteAuthority:s.remoteAuthority}):e.entries.push({workspace:{id:s.workspace.id,configPath:s.workspace.configPath.toString()},label:i(s.label,s.workspace.configPath)?s.label:void 0,remoteAuthority:s.remoteAuthority});for(const s of t.files)e.entries.push({fileUri:s.fileUri.toString(),label:i(s.label,s.fileUri)?s.label:void 0,remoteAuthority:s.remoteAuthority});return e}var z1,H1=v({"out-build/vs/platform/workspaces/common/workspaces.js"(){"use strict";ki(),Js(),lb(),hr(),Oe(),ge(),G(),et(),re(),Z(),Ja(),qt(),z1=V("workspacesService")}});import*as fb from"fs";import Uk from"electron";var kr,wh,rn=v({"out-build/vs/platform/workspaces/electron-main/workspacesManagementMainService.js"(){"use strict";J(),Js(),T(),Oe(),ge(),et(),gt(),we(),Va(),oo(),Pt(),Z(),Q(),Xr(),cb(),qt(),H1(),C1(),kr=V("workspacesManagementMainService"),wh=class extends j{constructor(e,i,s,r,n){super(),this.g=e,this.h=i,this.j=s,this.m=r,this.n=n,this.a=this.B(new D),this.onDidDeleteUntitledWorkspace=this.a.event,this.b=this.B(new D),this.onDidEnterWorkspace=this.b.event,this.f=[],this.c=this.g.untitledWorkspacesHome}async initialize(){this.f=[];try{const e=(await te.readdir(this.c.with({scheme:O.file}).fsPath)).map(i=>pe(this.c,i,p1));for(const i of e){const s=en(i),r=await this.resolveLocalWorkspace(i);r?this.f.push({workspace:s,remoteAuthority:r.remoteAuthority}):await this.deleteUntitledWorkspace(s)}}catch(e){e.code!=="ENOENT"&&this.h.warn(`Unable to read folders in ${this.c} (${e}).`)}}resolveLocalWorkspace(e){return this.r(e,i=>fb.promises.readFile(i,"utf8"))}r(e,i){if(this.s(e)&&e.scheme===O.file)try{const s=i(e.fsPath);return s instanceof Promise?s.then(r=>this.t(e,r),r=>{}):this.t(e,s)}catch{return}}s(e){return ky(e,this.g)||Qr(e)}t(e,i){try{const s=this.u(e,i),r=en(e);return{id:r.id,configPath:r.configPath,folders:Fk(s.folders,r.configPath,Ze),remoteAuthority:s.remoteAuthority,transient:s.transient}}catch(s){this.h.warn(s.toString())}}u(e,i){const s=tn(i);if(s&&Array.isArray(s.folders))s.folders=s.folders.filter(r=>Lk(r));else throw new Error(`${e.toString(!0)} looks like an invalid workspace file.`);return s}async createUntitledWorkspace(e,i){const{workspace:s,storedWorkspace:r}=this.w(e,i),n=s.configPath.fsPath;return await fb.promises.mkdir(dt(n),{recursive:!0}),await te.writeFile(n,JSON.stringify(r,null," ")),this.f.push({workspace:s,remoteAuthority:i}),s}w(e=[],i){const s=(Date.now()+Math.round(Math.random()*1e3)).toString(),r=pe(this.c,s),n=pe(r,p1),o=[];for(const a of e)o.push(Mk(a.uri,!0,a.name,r,Ze));return{workspace:en(n),storedWorkspace:{folders:o,remoteAuthority:i}}}async getWorkspaceIdentifier(e){return en(e)}isUntitledWorkspace(e){return ky(e.configPath,this.g)}async deleteUntitledWorkspace(e){this.isUntitledWorkspace(e)&&(await this.y(e),this.j.unsetWorkspace(e),this.a.fire(e))}async y(e){const i=pi(e.configPath);try{await te.rm(dt(i));const s=M(this.g.workspaceStorageHome.with({scheme:O.file}).fsPath,e.id);await te.exists(s)&&await te.writeFile(M(s,"obsolete"),""),this.f=this.f.filter(r=>r.workspace.id!==e.id)}catch(s){this.h.warn(`Unable to delete untitled workspace ${i} (${s}).`)}}getUntitledWorkspaces(){return this.f}async enterWorkspace(e,i,s){if(!e||!e.win||!e.isReady||!await this.z(e,i,s))return;const n=await this.C(e,en(s));if(n)return this.b.fire({window:e,workspace:n.workspace}),n}async z(e,i,s){return s?Bt(e.openedWorkspace)&&Ze.isEqual(e.openedWorkspace.configPath,s)?!1:ao(i,s)?(await this.n.showMessageBox({type:"info",buttons:[g(2672,null)],message:g(2673,null,as(s)),detail:g(2674,null)},Uk.BrowserWindow.getFocusedWindow()??void 0),!1):!0:!0}async C(e,i){if(!e.config)return;e.focus();let s;return e.config.extensionDevelopmentPath||(e.config.backupPath?s=await this.m.registerWorkspaceBackup({workspace:i,remoteAuthority:e.remoteAuthority},e.config.backupPath):s=this.m.registerWorkspaceBackup({workspace:i,remoteAuthority:e.remoteAuthority})),Bt(e.openedWorkspace)&&this.isUntitledWorkspace(e.openedWorkspace)&&await this.deleteUntitledWorkspace(e.openedWorkspace),e.config.workspace=i,e.config.backupPath=s,{workspace:i,backupPath:s}}},wh=__decorate([__param(0,ht),__param(1,K),__param(2,xs),__param(3,so),__param(4,br)],wh)}});function jk(t,...e){const i=e.reduce((n,o)=>(n[o]=!0,n),{}),s=[/^ELECTRON_.+$/,/^VSCODE_(?!(PORTABLE|SHELL_LOGIN|ENV_REPLACE|ENV_APPEND|ENV_PREPEND)).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/];Object.keys(t).filter(n=>!i[n]).forEach(n=>{for(let o=0;o<s.length;o++)if(n.search(s[o])!==-1){delete t[n];break}})}function pb(t){t&&(delete t.DEBUG,Se&&delete t.LD_PRELOAD)}var mb,gb,vh=v({"out-build/vs/base/common/processes.js"(){"use strict";G(),function(t){t[t.stdout=0]="stdout",t[t.stderr=1]="stderr"}(mb||(mb={})),function(t){t[t.Success=0]="Success",t[t.Unknown=1]="Unknown",t[t.AccessDenied=2]="AccessDenied",t[t.ProcessNotFound=3]="ProcessNotFound"}(gb||(gb={}))}});import{MessageChannelMain as zk,app as Hk,utilityProcess as Vk}from"electron";import{StringDecoder as wb}from"string_decoder";function qk(t){return typeof t.responseWindowId=="number"}var ho,Sr,Ka,uo=v({"out-build/vs/platform/utilityProcess/electron-main/utilityProcess.js"(){"use strict";T(),J(),Q(),le(),Oe(),Dt(),fh(),ai(),tt(),vh(),Bi(),G(),la(),Sr=class extends j{static{ho=this}static{this.a=0}static{this.b=new Map}static getAll(){return Array.from(ho.b.values())}constructor(e,i,s){super(),this.u=e,this.w=i,this.y=s,this.c=String(++ho.a),this.f=this.B(new D),this.onStdout=this.f.event,this.g=this.B(new D),this.onStderr=this.g.event,this.h=this.B(new D),this.onMessage=this.h.event,this.j=this.B(new D),this.onSpawn=this.j.event,this.m=this.B(new D),this.onExit=this.m.event,this.n=this.B(new D),this.onCrash=this.n.event,this.r=void 0,this.s=void 0,this.t=void 0}z(e,i){let s;switch(this.t?.correlationId?s=`[UtilityProcess id: ${this.t?.correlationId}, type: ${this.t?.type}, pid: ${this.s??"<none>"}]: ${e}`:s=`[UtilityProcess type: ${this.t?.type}, pid: ${this.s??"<none>"}]: ${e}`,i){case xe.Error:this.u.error(s);break;case xe.Warning:this.u.warn(s);break;case xe.Info:this.u.trace(s);break}}C(){return this.r?(this.z("Cannot start utility process because it is already running...",xe.Error),!1):!0}start(e){const i=this.D(e);return i&&e.payload&&this.postMessage(e.payload)&&this.z("payload sent via postMessage()",xe.Info),i}D(e){if(!this.C())return!1;this.t=e;const i=`${this.t.type}-${this.c}`,s=ei.asFileUri("bootstrap-fork.js").fsPath,r=this.t.args??[],n=this.t.execArgv??[],o=this.t.allowLoadingUnsignedLibraries,a=this.t.respondToAuthRequestsFromMainProcess,c="pipe",l=this.F(e);return this.z("creating new...",xe.Info),this.r=Vk.fork(s,r,{serviceName:i,env:l,execArgv:n,allowLoadingUnsignedLibraries:o,respondToAuthRequestsFromMainProcess:a,stdio:c}),this.G(this.r,this.t,i),!0}F(e){const i=e.env?{...e.env}:{...Ti(process.env)};i.VSCODE_ESM_ENTRYPOINT=e.entryPoint,typeof e.parentLifecycleBound=="number"&&(i.VSCODE_PARENT_PID=String(e.parentLifecycleBound)),i.VSCODE_CRASH_REPORTER_PROCESS_TYPE=e.type,B&&(m8()?i.NODE_DISABLE_UNC_ACCESS_CHECKS="1":i.NODE_UNC_HOST_ALLOWLIST=d8().join("\\")),pb(i);for(const s of Object.keys(i))i[s]=String(i[s]);return i}G(e,i,s){if(e.stdout){const r=new wb("utf-8");this.B(x.fromNodeEventEmitter(e.stdout,"data")(n=>this.f.fire(typeof n=="string"?n:r.write(n))))}if(e.stderr){const r=new wb("utf-8");this.B(x.fromNodeEventEmitter(e.stderr,"data")(n=>this.g.fire(typeof n=="string"?n:r.write(n))))}this.B(x.fromNodeEventEmitter(e,"message")(r=>this.h.fire(r))),this.B(x.fromNodeEventEmitter(e,"spawn")(()=>{this.s=e.pid,typeof e.pid=="number"&&ho.b.set(e.pid,{pid:e.pid,name:qk(i)?`${i.name} [${i.responseWindowId}]`:i.name}),this.z("successfully created",xe.Info),this.j.fire(e.pid)})),this.B(x.fromNodeEventEmitter(e,"exit")(r=>{this.z(`received exit event with code ${r}`,xe.Info),this.m.fire({pid:this.s,code:r,signal:"unknown"}),this.H()})),this.B(x.fromNodeEventEmitter(e,"error",(r,n,o)=>({type:r,location:n,report:o}))(({type:r,location:n,report:o})=>{this.z(`crashed due to ${r} from V8 at ${n}`,xe.Info);let a=[];try{a=JSON.parse(o).sharedObjects.filter(l=>l.endsWith(".node")).map(l=>{const h=l.indexOf("extensions")===-1?l.indexOf("node_modules"):l.indexOf("extensions");return l.substring(h)})}catch{}this.w.publicLog2("utilityprocessv8error",{processtype:i.type,error:r,location:n,addons:a})})),this.B(x.fromNodeEventEmitter(Hk,"child-process-gone",(r,n)=>({event:r,details:n}))(({details:r})=>{r.type==="Utility"&&r.name===s&&(this.z(`crashed with code ${r.exitCode} and reason '${r.reason}'`,xe.Error),this.w.publicLog2("utilityprocesscrash",{type:i.type,reason:r.reason,code:r.exitCode}),this.n.fire({pid:this.s,code:r.exitCode,reason:r.reason}),this.H())}))}once(e,i){const s=this.B(this.h.event(r=>{r===e&&(s.dispose(),i())}))}postMessage(e,i){return this.r?(this.r.postMessage(e,i),!0):!1}connect(e){const{port1:i,port2:s}=new zk;return this.postMessage(e,[s]),i}enableInspectPort(){if(!this.r||typeof this.s!="number")return!1;this.z("enabling inspect port",xe.Info);const e=process;return typeof e._debugProcess=="function"?(e._debugProcess(this.s),!0):!1}kill(){if(!this.r)return;this.z("attempting to kill the process...",xe.Info),this.r.kill()?(this.z("successfully killed the process",xe.Info),this.H()):this.z("unable to kill the process",xe.Warning)}H(){typeof this.s=="number"&&ho.b.delete(this.s),this.r=void 0}async waitForExit(e){this.r&&(this.z("waiting to exit...",xe.Info),await Promise.race([x.toPromise(this.onExit),mi(e)]),this.r&&(this.z(`did not exit within ${e}ms, will kill it now...`,xe.Info),this.kill()))}},Sr=ho=__decorate([__param(0,K),__param(1,oi),__param(2,_e)],Sr),Ka=class extends Sr{constructor(e,i,s,r){super(e,s,r),this.I=i}start(e){const i=this.I.getWindowById(e.responseWindowId);if(!i?.win||i.win.isDestroyed()||i.win.webContents.isDestroyed())return this.z("Refusing to start utility process because requesting window cannot be found or is destroyed...",xe.Error),!0;if(!super.D(e))return!1;this.J(i.win,e);const r=this.connect(e.payload);return i.win.webContents.postMessage(e.responseChannel,e.responseNonce,[r]),!0}J(e,i){i.windowLifecycleBound&&(this.B(x.filter(this.y.onWillLoadWindow,s=>s.window.win===e)(()=>this.kill())),this.B(x.fromNodeEventEmitter(e,"closed")(()=>this.kill())))}},Ka=__decorate([__param(0,K),__param(1,yt),__param(2,oi),__param(3,_e)],Ka)}});import{app as vb}from"electron";var yb,Za,yh,bb=v({"out-build/vs/platform/diagnostics/electron-main/diagnosticsMainService.js"(){"use strict";ds(),Et(),Z(),Dt(),qt(),rn(),$e(),Q(),uo(),yb="diagnosticsMainService",Za=V(yb),yh=class{constructor(e,i,s){this.a=e,this.b=i,this.c=s}async getRemoteDiagnostics(e){const i=this.a.getWindows();return(await Promise.all(i.map(async r=>{const n=r.remoteAuthority;if(!n)return;const o=`vscode:getDiagnosticInfoResponse${r.id}`,a={includeProcesses:e.includeProcesses,folders:e.includeWorkspaceMetadata?await this.f(r):void 0};return new Promise(c=>{r.sendWhenReady("vscode:getDiagnosticInfo",Je.None,{replyChannel:o,args:a}),wt.once(o,(l,h)=>{h||c({hostName:n,errorMessage:`Unable to resolve connection to '${n}'.`}),c(h)}),setTimeout(()=>{c({hostName:n,errorMessage:`Connection to '${n}' could not be established`})},5e3)})}))).filter(r=>!!r)}async getMainDiagnostics(){this.c.trace("Received request for main process info from other instance.");const e=[];for(const s of Fa()){const r=this.a.getWindowById(s.id);r?e.push(await this.d(r)):e.push(this.e(s))}const i=[];for(const{pid:s,name:r}of Sr.getAll())i.push({pid:s,name:r});return{mainPID:process.pid,mainArguments:process.argv.slice(1),windows:e,pidToNames:i,screenReader:!!vb.accessibilitySupportEnabled,gpuFeatureStatus:vb.getGPUFeatureStatus()}}async d(e){const i=await this.f(e),s=Go(e.win);return this.e(s,i,e.remoteAuthority)}e(e,i=[],s){return{id:e.id,pid:e.webContents.getOSProcessId(),title:e.getTitle(),folderURIs:i,remoteAuthority:s}}async f(e){const i=[],s=e.openedWorkspace;if(wi(s))i.push(s.uri);else if(Bt(s)){const r=await this.b.resolveLocalWorkspace(s.configPath);r&&r.folders.forEach(o=>{i.push(o.uri)})}return i}},yh=__decorate([__param(0,yt),__param(1,kr),__param(2,K)],yh)}});import{safeStorage as Gk,app as Jk}from"electron";var Ks,bh,Kk=v({"out-build/vs/platform/encryption/electron-main/encryptionMainService.js"(){"use strict";G(),Q(),Ks=Gk,bh=class{constructor(e){this.a=e,Jk.commandLine.getSwitchValue("password-store")==="basic"&&(this.a.trace("[EncryptionMainService] setting usePlainTextEncryption to true..."),Ks.setUsePlainTextEncryption?.(!0),this.a.trace("[EncryptionMainService] set usePlainTextEncryption to true"))}async encrypt(e){this.a.trace("[EncryptionMainService] Encrypting value...");try{const i=JSON.stringify(Ks.encryptString(e));return this.a.trace("[EncryptionMainService] Encrypted value."),i}catch(i){throw this.a.error(i),i}}async decrypt(e){let i;try{if(i=JSON.parse(e),!i.data)throw new Error(`[EncryptionMainService] Invalid encrypted value: ${e}`);const s=Buffer.from(i.data);this.a.trace("[EncryptionMainService] Decrypting value...");const r=Ks.decryptString(s);return this.a.trace("[EncryptionMainService] Decrypted value."),r}catch(s){throw this.a.error(s),s}}isEncryptionAvailable(){this.a.trace("[EncryptionMainService] Checking if encryption is available...");const e=Ks.isEncryptionAvailable();return this.a.trace("[EncryptionMainService] Encryption is available: ",e),Promise.resolve(e)}getKeyStorageProvider(){if(B)return Promise.resolve("dpapi");if(N)return Promise.resolve("keychain_access");if(Ks.getSelectedStorageBackend)try{this.a.trace("[EncryptionMainService] Getting selected storage backend...");const e=Ks.getSelectedStorageBackend();return this.a.trace("[EncryptionMainService] Selected storage backend: ",e),Promise.resolve(e)}catch(e){this.a.error(e)}return Promise.resolve("unknown")}async setUsePlainTextEncryption(){if(B)throw new Error("Setting plain text encryption is not supported on Windows.");if(N)throw new Error("Setting plain text encryption is not supported on macOS.");if(!Ks.setUsePlainTextEncryption)throw new Error("Setting plain text encryption is not supported.");this.a.trace("[EncryptionMainService] Setting usePlainTextEncryption to true..."),Ks.setUsePlainTextEncryption(!0),this.a.trace("[EncryptionMainService] Set usePlainTextEncryption to true")}},bh=__decorate([__param(0,K)],bh)}}),Zk,fo,Yk=v({"out-build/vs/platform/browserElements/common/browserElements.js"(){"use strict";Z(),Zk=V("nativeBrowserElementsService"),function(t){t.SimpleBrowser="simpleBrowser",t.LiveServer="liveServer"}(fo||(fo={}))}}),nn,Ya=v({"out-build/vs/platform/auxiliaryWindow/electron-main/auxiliaryWindows.js"(){"use strict";Z(),nn=V("auxiliaryWindowsMainService")}});import{webContents as V1}from"electron";var q1,kh,Qk=v({"out-build/vs/platform/browserElements/electron-main/nativeBrowserElementsMainService.js"(){"use strict";Yk(),Ya(),Dt(),Z(),T(),q1=V("browserElementsMainService"),kh=class extends j{constructor(e,i){super(),this.c=e,this.f=i}get windowId(){throw new Error("Not implemented in electron-main")}async findWebviewTarget(e,i,s){const{targetInfos:r}=await e.sendCommand("Target.getTargets");let n;const o=r.find(a=>{try{const c=new URL(a.url);return s===fo.LiveServer?c.searchParams.get("id")&&c.searchParams.get("extensionId")==="ms-vscode.live-server":s===fo.SimpleBrowser?c.searchParams.get("parentId")===i.toString()&&c.searchParams.get("extensionId")==="vscode.simple-browser":!1}catch{return!1}});if(o){let a,c;try{c=new URL(o.url),a=c.searchParams.get("id")}catch{return}if(n=r.find(l=>{try{const h=new URL(l.url),u=s===fo.LiveServer&&h.searchParams.get("serverWindowId")===a,f=s===fo.SimpleBrowser&&h.searchParams.get("id")===a&&h.searchParams.has("vscodeBrowserReqId");return u||f?(this.currentLocalAddress=h.origin,!0):!1}catch{return!1}}),n)return n.targetId}if(n=r.find(a=>{try{const c=new URL(a.url);return this.currentLocalAddress===c.origin}catch{return!1}}),!!n)return n.targetId}async waitForWebviewTargets(e,i,s){const r=Date.now(),n=1e4;for(;Date.now()-r<n;){const o=await this.findWebviewTarget(e,i,s);if(o)return o;await new Promise(a=>setTimeout(a,500))}e.detach()}async startDebugSession(e,i,s,r){const n=this.h(e);if(!n?.win)return;const a=V1.getAllWebContents().find(l=>l.id===n.id);if(!a)return;const c=a.debugger;c.isAttached()||c.attach();try{if(!await this.waitForWebviewTargets(c,e,s))throw c.isAttached()&&c.detach(),new Error("No target found")}catch{throw c.isAttached()&&c.detach(),new Error("No target found")}n.win.webContents.on("ipc-message",async(l,h,u)=>{if(h===`vscode:cancelCurrentSession${r}`){if(r!==u)return;c.isAttached()&&c.detach(),n.win&&n.win.webContents.removeAllListeners("ipc-message")}})}async finishOverlay(e,i){e.isAttached()&&i&&(await e.sendCommand("Overlay.setInspectMode",{mode:"none",highlightConfig:{showInfo:!1,showStyles:!1}},i),await e.sendCommand("Overlay.hideHighlight",{},i),await e.sendCommand("Overlay.disable",{},i),e.detach())}async getElementData(e,i,s,r,n){const o=this.h(e);if(!o?.win)return;const c=V1.getAllWebContents().find(y=>y.id===o.id);if(!c)return;const l=c.debugger;l.isAttached()||l.attach();let h;try{const y=await this.findWebviewTarget(l,e,r),{sessionId:b}=await l.sendCommand("Target.attachToTarget",{targetId:y,flatten:!0});h=b,await l.sendCommand("DOM.enable",{},b),await l.sendCommand("CSS.enable",{},b),await l.sendCommand("Overlay.enable",{},b),await l.sendCommand("Debugger.enable",{},b),await l.sendCommand("Runtime.enable",{},b),await l.sendCommand("Runtime.evaluate",{expression:`(function() {
const style = document.createElement('style');
style.id = '__pseudoBlocker__';
style.textContent = '*::before, *::after { pointer-events: none !important; }';
document.head.appendChild(style);
})();`},b),await l.sendCommand("Overlay.setInspectMode",{mode:"searchForNode",highlightConfig:{showInfo:!0,showRulers:!1,showStyles:!0,showAccessibilityInfo:!0,showExtensionLines:!1,contrastAlgorithm:"aa",contentColor:{r:173,g:216,b:255,a:.8},paddingColor:{r:150,g:200,b:255,a:.5},borderColor:{r:120,g:180,b:255,a:.7},marginColor:{r:200,g:220,b:255,a:.4},eventTargetColor:{r:130,g:160,b:255,a:.8},shapeColor:{r:130,g:160,b:255,a:.8},shapeMarginColor:{r:130,g:160,b:255,a:.5},gridHighlightConfig:{rowGapColor:{r:140,g:190,b:255,a:.3},rowHatchColor:{r:140,g:190,b:255,a:.7},columnGapColor:{r:140,g:190,b:255,a:.3},columnHatchColor:{r:140,g:190,b:255,a:.7},rowLineColor:{r:120,g:180,b:255},columnLineColor:{r:120,g:180,b:255},rowLineDash:!0,columnLineDash:!0},flexContainerHighlightConfig:{containerBorder:{color:{r:120,g:180,b:255},pattern:"solid"},itemSeparator:{color:{r:140,g:190,b:255},pattern:"solid"},lineSeparator:{color:{r:140,g:190,b:255},pattern:"solid"},mainDistributedSpace:{hatchColor:{r:140,g:190,b:255,a:.7},fillColor:{r:140,g:190,b:255,a:.4}},crossDistributedSpace:{hatchColor:{r:140,g:190,b:255,a:.7},fillColor:{r:140,g:190,b:255,a:.4}},rowGapSpace:{hatchColor:{r:140,g:190,b:255,a:.7},fillColor:{r:140,g:190,b:255,a:.4}},columnGapSpace:{hatchColor:{r:140,g:190,b:255,a:.7},fillColor:{r:140,g:190,b:255,a:.4}}},flexItemHighlightConfig:{baseSizeBox:{hatchColor:{r:130,g:170,b:255,a:.6}},baseSizeBorder:{color:{r:120,g:180,b:255},pattern:"solid"},flexibilityArrow:{color:{r:130,g:190,b:255}}}}},b)}catch(y){throw l.detach(),new Error("No target found",y)}if(!h)throw l.detach(),new Error("No target session id found");const u=await this.getNodeData(h,l,o.win,n);await this.finishOverlay(l,h);const f=c.getZoomFactor(),p={x:i.x+u.bounds.x,y:i.y+u.bounds.y,width:u.bounds.width,height:u.bounds.height},m={x:Math.max(p.x,i.x),y:Math.max(p.y,i.y),width:Math.max(0,Math.min(p.x+p.width,i.x+i.width)-Math.max(p.x,i.x)),height:Math.max(0,Math.min(p.y+p.height,i.y+i.height)-Math.max(p.y,i.y))},w={x:m.x*f,y:m.y*f,width:m.width*f,height:m.height*f};return{outerHTML:u.outerHTML,computedStyle:u.computedStyle,bounds:w}}async getNodeData(e,i,s,r){return new Promise((n,o)=>{const a=async(c,l,h)=>{if(l==="Overlay.inspectNodeRequested"){i.off("message",a),await i.sendCommand("Runtime.evaluate",{expression:`(() => {
const style = document.getElementById('__pseudoBlocker__');
if (style) style.remove();
})();`},e);const u=h?.backendNodeId;if(!u)throw new Error("Missing backendNodeId in inspectNodeRequested event");try{await i.sendCommand("DOM.getDocument",{},e);const{nodeIds:f}=await i.sendCommand("DOM.pushNodesByBackendIdsToFrontend",{backendNodeIds:[u]},e);if(!f||f.length===0)throw new Error("Failed to get node IDs.");const p=f[0],{model:m}=await i.sendCommand("DOM.getBoxModel",{nodeId:p},e);if(!m)throw new Error("Failed to get box model.");const w=m.content,y=m.margin,b=Math.min(y[0],w[0]),E=Math.min(y[1],w[1])+32.4,A=Math.max(y[2]-y[0],w[2]-w[0]),R=Math.max(y[5]-y[1],w[5]-w[1]),W=await i.sendCommand("CSS.getMatchedStylesForNode",{nodeId:p},e);if(!W)throw new Error("Failed to get matched css.");const se=this.formatMatchedStyles(W),{outerHTML:F}=await i.sendCommand("DOM.getOuterHTML",{nodeId:p},e);if(!F)throw new Error("Failed to get outerHTML.");n({outerHTML:F,computedStyle:se,bounds:{x:b,y:E,width:A,height:R}})}catch(f){i.off("message",a),i.detach(),o(f)}}};s.webContents.on("ipc-message",async(c,l,h)=>{if(l===`vscode:cancelElementSelection${r}`){if(r!==h)return;i.off("message",a),await this.finishOverlay(i,e),s.webContents.removeAllListeners("ipc-message")}}),i.on("message",a)})}formatMatchedStyles(e){const i=[];if(e.inlineStyle?.cssProperties?.length){i.push("/* Inline style */"),i.push("element {");for(const s of e.inlineStyle.cssProperties)s.name&&s.value&&i.push(` ${s.name}: ${s.value};`);i.push(`}
`)}if(e.matchedCSSRules?.length)for(const s of e.matchedCSSRules){const r=s.rule,n=r.selectorList.selectors.map(o=>o.text).join(", ");i.push(`/* Matched Rule from ${r.origin} */`),i.push(`${n} {`);for(const o of r.style.cssProperties)o.name&&o.value&&i.push(` ${o.name}: ${o.value};`);i.push(`}
`)}if(e.inherited?.length){let s=1;for(const r of e.inherited){const n=r.matchedCSSRules||[];for(const o of n){const a=o.rule,c=a.selectorList.selectors.map(l=>l.text).join(", ");i.push(`/* Inherited from ancestor level ${s} (${a.origin}) */`),i.push(`${c} {`);for(const l of a.style.cssProperties)l.name&&l.value&&i.push(` ${l.name}: ${l.value};`);i.push(`}
`)}s++}}return`
`+i.join(`
`)}h(e,i){return this.j(e)??this.m(e)??this.j(i)}j(e){if(typeof e=="number")return this.c.getWindowById(e)}m(e){if(typeof e!="number")return;const i=V1.fromId(e);if(i)return this.f.getWindowByWebContents(i)}},kh=__decorate([__param(0,yt),__param(1,nn)],kh)}});import Xk from"assert";function eS(t,e){const i=(c,l)=>{console.warn(g(1889,null,c,l))},s=c=>{console.warn(g(1890,null,c))},r=(c,l)=>{console.warn(g(1891,null,c,l))},n=c=>({onUnknownOption:l=>{O1.includes(c)||console.warn(g(1892,null,l,c))},onMultipleValues:i,onEmptyValue:s,onDeprecatedOption:r,getSubcommandReporter:O1.includes(c)?n:void 0}),a=R1(t,L1,e?{onUnknownOption:c=>{console.warn(g(1893,null,c))},onMultipleValues:i,onEmptyValue:s,onDeprecatedOption:r,getSubcommandReporter:n}:void 0);return a.goto&&a._.forEach(c=>Xk(/^(\w:)?[^:]+(:\d*){0,2}:?$/.test(c),g(1894,null))),a}function tS(t){const e=t.findIndex(i=>!/^-/.test(i));if(e>-1)return[...t.slice(0,e),...t.slice(e+1)]}function iS(t){let[,...e]=t;process.env.VSCODE_DEV&&(e=tS(e)||[]);const i=!on(process.env);return eS(e,i)}function sS(t,...e){const i=t.indexOf("--");return i===-1?t.push(...e):t.splice(i,0,...e),t}function on(t){return t.VSCODE_CLI==="1"}var Qa=v({"out-build/vs/platform/environment/node/argvHelper.js"(){"use strict";we(),Jy()}});import*as kb from"os";function rS({useAlternateBitness:t=!1}={}){return t?Xa===0?process.env["ProgramFiles(x86)"]||null:po===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function Sh({useAlternateBitness:t=!1,findPreview:e=!1}={}){const i=rS({useAlternateBitness:t});if(!i)return null;const s=M(i,"PowerShell");if(!await Nt.existsDirectory(s))return null;let r=-1,n=null;for(const c of await te.readdir(s)){let l=-1;if(e){const u=c.indexOf("-");if(u<0)continue;const f=c.substring(0,u);if(!G1.test(f)||c.substring(u+1)!=="preview")continue;l=parseInt(f,10)}else{if(!G1.test(c))continue;l=parseInt(c,10)}if(l<=r)continue;const h=M(s,c,"pwsh.exe");await Nt.existsFile(h)&&(n=h,r=l)}if(!n)return null;const o=i.includes("x86")?" (x86)":"",a=e?" Preview":"";return new mo(n,`PowerShell${a}${o}`,!0)}async function Sb({findPreview:t}={}){if(!process.env.LOCALAPPDATA)return null;const e=M(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await Nt.existsDirectory(e))return null;const{pwshMsixDirRegex:i,pwshMsixName:s}=t?{pwshMsixDirRegex:Pb,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:xb,pwshMsixName:"PowerShell (Store)"};for(const r of await te.readdir(e))if(i.test(r)){const n=M(e,r,"pwsh.exe");return new mo(n,s)}return null}function nS(){const t=M(kb.homedir(),".dotnet","tools","pwsh.exe");return new mo(t,".NET Core PowerShell Global Tool")}function oS(){const t=M(kb.homedir(),"scoop","apps"),e=M(t,"pwsh","current","pwsh.exe");return new mo(e,"PowerShell (Scoop)")}function aS(){const t=M(process.env.windir,Xa===1&&po!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new mo(t,"Windows PowerShell",!0)}async function*cS(){let t=await Sh();t&&(yield t),t=await Sh({useAlternateBitness:!0}),t&&(yield t),t=await Sb(),t&&(yield t),t=nS(),t&&(yield t),t=await Sh({findPreview:!0}),t&&(yield t),t=await Sb({findPreview:!0}),t&&(yield t),t=await Sh({useAlternateBitness:!0,findPreview:!0}),t&&(yield t),t=await oS(),t&&(yield t),t=aS(),t&&(yield t)}async function*Eb(){for await(const t of cS())await t.exists()&&(yield t)}async function lS(){for await(const t of Eb())return t;return null}var G1,xb,Pb,$b,Xa,po,mo,Ab=v({"out-build/vs/base/node/powershell.js"(){"use strict";switch(ge(),gt(),G1=/^\d+$/,xb=/^Microsoft.PowerShell_.*/,Pb=/^Microsoft.PowerShellPreview_.*/,function(t){t[t.x64=0]="x64",t[t.x86=1]="x86",t[t.ARM=2]="ARM"}($b||($b={})),process.arch){case"ia32":Xa=1;break;case"arm":case"arm64":Xa=2;break;default:Xa=0;break}process.env.PROCESSOR_ARCHITEW6432?po=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?po=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?po=1:po=0,mo=class{constructor(t,e,i){this.exePath=t,this.displayName=e,this.a=i}async exists(){return this.a===void 0&&(this.a=await Nt.existsFile(this.exePath)),this.a}}}});import{promises as Db}from"fs";function Ib(t=Oi){return t.comspec||"cmd.exe"}function hS(t){let e=[],i=!1;const s=function(r){if(i){e.push(r);return}(!t.send(r,o=>{if(o&&console.error(o),i=!1,e.length>0){const a=e.slice(0);e=[],a.forEach(c=>s(c))}})||B)&&(i=!0)};return{send:s}}async function uS(t){if(await te.exists(t)){let e;try{e=await Db.stat(t)}catch(i){i.message.startsWith("EACCES")&&(e=await Db.lstat(t))}return e?!e.isDirectory():!1}return!1}function Cb(t=Oi){return(sb(t,"PATHEXT")||".COM;.EXE;.BAT;.CMD").split(";")}async function Eh(t,e,i,s=Oi,r=uS){if(Cn(t))return await r(t)?t:void 0;if(e===void 0&&(e=Fs()),dt(t)!=="."){const c=M(e,t);return await r(c)?c:void 0}const o=sb(s,"PATH");if(i===void 0&&pt(o)&&(i=o.split(Nd)),i===void 0||i.length===0){const c=M(e,t);return await r(c)?c:void 0}for(const c of i){let l;if(Cn(c)?l=M(c,t):l=M(e,c,t),B){const h=Cb(s).map(async u=>{const f=l+u;return await r(f)?f:void 0});for(const u of h){const f=await u;if(f)return f}}if(await r(l))return l}const a=M(e,t);return await r(a)?a:void 0}var ec=v({"out-build/vs/base/node/processes.js"(){"use strict";Bi(),ge(),G(),ns(),vh(),$e(),gt()}});import{userInfo as dS}from"os";async function Rb(t,e){return t===1?B?pS():Ib(e):fS(t,e)}function fS(t,e){if(Se&&t===2||N&&t===3)return"/bin/bash";if(!xh){let i;if(B)i="/bin/bash";else{if(i=e.SHELL,!i)try{i=dS().shell}catch{}i||(i="sh"),i==="/bin/false"&&(i="/bin/bash")}xh=i}return xh}async function pS(){return Ph||(Ph=(await lS()).exePath),Ph}var xh,Ph,Ob=v({"out-build/vs/base/node/shell.js"(){"use strict";G(),Ab(),ec(),xh=null,Ph=null}});function mS(t,e,i){return Math.min(Math.max(t,e),i)}var gS=v({"out-build/vs/base/common/numbers.js"(){"use strict";qo()}});import{spawn as wS}from"child_process";import{homedir as vS}from"os";async function J1(t,e,i,s){return i["force-disable-user-env"]?(e.trace("resolveShellEnv(): skipped (--force-disable-user-env)"),{}):on(s)&&!i["force-user-env"]?(e.trace("resolveShellEnv(): skipped (VSCODE_CLI is set)"),{}):(on(s)?e.trace("resolveShellEnv(): running (--force-user-env)"):e.trace("resolveShellEnv(): running"),$h||($h=Ot.withAsyncBody(async(r,n)=>{const o=new Ji;let a=1e4;const c=t.getValue("application.shellEnvironmentResolutionTimeout");typeof c=="number"&&(a=mS(c,1,120)*1e3);const l=setTimeout(()=>{o.dispose(!0),n(new Error(g(2223,null)))},a);try{r(await yS(e,o.token))}catch(h){!Wd(h)&&!o.token.isCancellationRequested?n(new Error(g(2224,null,us(h)))):r({})}finally{clearTimeout(l),o.dispose()}})),$h)}async function yS(t,e){const i=process.env.ELECTRON_RUN_AS_NODE;t.trace("doResolveShellEnv#runAsNode",i);const s=process.env.ELECTRON_NO_ATTACH_CONSOLE;t.trace("doResolveShellEnv#noAttach",s);const r=gi().replace(/-/g,"").substr(0,12),n=new RegExp(r+"([\\s\\S]*?)"+r),o={...process.env,ELECTRON_RUN_AS_NODE:"1",ELECTRON_NO_ATTACH_CONSOLE:"1",VSCODE_RESOLVING_ENVIRONMENT:"1"};t.trace("doResolveShellEnv#env",o);const a=await Rb(bi,o);t.trace("doResolveShellEnv#shell",a);let c=ze(a);if(B){const f=jo(c);Cb().some(p=>Bs(p,f))&&(c=c.substring(0,c.length-f.length))}let l,h;const u="";if(/^(?:pwsh|powershell)(?:-preview)?$/.test(c)){const f=await bS(a),p=await Ng(f.map(m=>async()=>await te.exists(m)?m:void 0));if(!p)return t.trace("doResolveShellEnv#noPowershellProfile after testing paths",f),{};t.trace("doResolveShellEnv#powershellProfile found in",p),l=`Write-Output '${r}'; [System.Environment]::GetEnvironmentVariables() | ConvertTo-Json -Compress; Write-Output '${r}'`,h=B?["-Command"]:["-Login","-Command"]}else c==="nu"?(l=`^'${process.execPath}' ${u} -p '"${r}" + JSON.stringify(process.env) + "${r}"'`,h=["-i","-l","-c"]):c==="xonsh"?(l=`import os, json; print("${r}", json.dumps(dict(os.environ)), "${r}")`,h=["-i","-l","-c"]):(l=`'${process.execPath}' ${u} -p '"${r}" + JSON.stringify(process.env) + "${r}"'`,c==="tcsh"||c==="csh"?h=["-ic"]:h=["-i","-l","-c"]);return new Promise((f,p)=>{if(e.isCancellationRequested)return p(new Yt);t.trace("doResolveShellEnv#spawn",JSON.stringify(h),l);const m=wS(a,[...h,l],{detached:!B,stdio:["ignore","pipe","pipe"],env:o});e.onCancellationRequested(()=>(m.kill(),p(new Yt))),m.on("error",b=>{t.error("doResolveShellEnv#errorChildProcess",us(b)),p(b)});const w=[];m.stdout.on("data",b=>w.push(b));const y=[];m.stderr.on("data",b=>y.push(b)),m.on("close",(b,E)=>{const A=Buffer.concat(w).toString("utf8");t.trace("doResolveShellEnv#raw",A);const R=Buffer.concat(y).toString("utf8");if(R.trim()&&t.trace("doResolveShellEnv#stderr",R),b||E)return p(new Error(g(2225,null,b,E)));const W=n.exec(A),se=W?W[1]:"{}";try{const F=JSON.parse(se);i?F.ELECTRON_RUN_AS_NODE=i:delete F.ELECTRON_RUN_AS_NODE,s?F.ELECTRON_NO_ATTACH_CONSOLE=s:delete F.ELECTRON_NO_ATTACH_CONSOLE,delete F.VSCODE_RESOLVING_ENVIRONMENT,delete F.XDG_RUNTIME_DIR,t.trace("doResolveShellEnv#result",F),f(F)}catch(F){t.error("doResolveShellEnv#errorCaught",us(F)),p(F)}})})}async function bS(t){const e=[],i=vS();if(B){let s=process.env.PSHOME;if(!s)if(Cn(t))s=dt(t);else{const r=await Eh(t);if(!r)return[];s=dt(r)}e.push(M(s,"Profile.ps1"),M(s,"Microsoft.PowerShell_profile.ps1"),M(i,"Documents","PowerShell","Profile.ps1"),M(i,"Documents","PowerShell","Microsoft.PowerShell_profile.ps1"),M(i,"Documents","WindowsPowerShell","Profile.ps1"),M(i,"Documents","WindowsPowerShell","Microsoft.PowerShell_profile.ps1"))}else N?e.push("/usr/local/microsoft/powershell/7/profile.ps1","/usr/local/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1",M(i,".config","powershell","profile.ps1"),M(i,".config","powershell","Microsoft.PowerShell_profile.ps1")):e.push("/opt/microsoft/powershell/7/profile.ps1","/opt/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1",M(i,".config","powershell","profile.ps1"),M(i,".config","powershell","Microsoft.PowerShell_profile.ps1"));return e}var $h,K1=v({"out-build/vs/platform/shell/node/shellEnv.js"(){"use strict";ge(),we(),Et(),jr(),De(),G(),Ei(),Ob(),Qa(),le(),gS(),ec(),xt(),gt(),$h=void 0}}),Z1,Lb,kS=v({"out-build/vs/platform/extensions/common/extensionHostStarter.js"(){"use strict";Z(),Z1=V("extensionHostStarter"),Lb="extensionHostStarter"}}),Y1,Ah,SS=v({"out-build/vs/platform/extensions/electron-main/extensionHostStarter.js"(){"use strict";le(),De(),J(),T(),tt(),Q(),ai(),uo(),Dt(),Ue(),Ah=class extends j{static{Y1=this}static{this.a=0}constructor(e,i,s,r,n){super(),this.f=e,this.g=i,this.h=s,this.j=r,this.m=n,this.b=new Map,this.c=!1,this.B(this.g.onWillShutdown(o=>{this.c=!0,o.join("extHostStarter",this._waitForAllExit(6e3))}))}dispose(){super.dispose()}n(e){const i=this.b.get(e);if(!i)throw new Error("Unknown extension host!");return i}onDynamicStdout(e){return this.n(e).onStdout}onDynamicStderr(e){return this.n(e).onStderr}onDynamicMessage(e){return this.n(e).onMessage}onDynamicExit(e){return this.n(e).onExit}async createExtensionHost(){if(this.c)throw Rn();const e=String(++Y1.a),i=new Ka(this.f,this.h,this.j,this.g);this.b.set(e,i);const s=i.onExit(({pid:r,code:n,signal:o})=>{s.dispose(),this.f.info(`Extension host with pid ${r} exited with code: ${n}, signal: ${o}.`),setTimeout(()=>{i.dispose(),this.b.delete(e)}),setTimeout(()=>{try{process.kill(r,0),this.f.error(`Extension host with pid ${r} still exists, forcefully killing it...`),process.kill(r)}catch{}},1e3)});return{id:e}}async start(e,i){if(this.c)throw Rn();const s=this.n(e),r=["--skipWorkspaceStorageLock"];return this.m.getValue("extensions.supportNodeGlobalNavigator")&&r.push("--supportGlobalNavigator"),s.start({...i,type:"extensionHost",name:"extension-host",entryPoint:"vs/workbench/api/node/extensionHostProcess",args:r,execArgv:i.execArgv,allowLoadingUnsignedLibraries:!0,respondToAuthRequestsFromMainProcess:!0,correlationId:e}),{pid:await x.toPromise(s.onSpawn)}}async enableInspectPort(e){if(this.c)throw Rn();const i=this.b.get(e);return i?i.enableInspectPort():!1}async kill(e){if(this.c)throw Rn();const i=this.b.get(e);i&&i.kill()}async _killAllNow(){for(const[,e]of this.b)e.kill()}async _waitForAllExit(e){const i=[];for(const[,s]of this.b)i.push(s.waitForExit(e));return Ot.settled(i).then(()=>{})}},Ah=Y1=__decorate([__param(0,K),__param(1,_e),__param(2,yt),__param(3,oi),__param(4,Be)],Ah)}}),tc,ES=v({"out-build/vs/platform/externalTerminal/electron-main/externalTerminal.js"(){"use strict";Z(),tc=V("externalTerminal")}}),xS,ic,PS=v({"out-build/vs/platform/externalTerminal/common/externalTerminal.js"(){"use strict";Z(),xS=V("externalTerminal"),ic="Terminal.app"}});import*as go from"child_process";function wo(t){const e={...t.env};return jk(e),e}function Q1(t){return"errno"in t&&t.errno==="ENOENT"&&"path"in t&&typeof t.path=="string"?new Error(g(2011,null,t.path)):t}function $S(t){let e="";for(const i of t)i.indexOf(" ")>=0?e+='"'+i+'"':e+=i,e+=" ";return e}var X1,Dh,Ih,Mb,ep,AS=v({"out-build/vs/platform/externalTerminal/node/externalTerminalService.js"(){"use strict";zr(),Oe(),ge(),G(),vh(),gt(),ec(),we(),PS(),X1=g(2006,null),Dh=class{async getDefaultTerminalForPlatforms(){return{windows:Ih.getDefaultTerminalWindows(),linux:await ep.getDefaultTerminalLinuxReady(),osx:"xterm"}}},Ih=class ir extends Dh{static{this.b="cmd.exe"}openTerminal(e,i){return this.spawnTerminal(go,e,Ib(),i)}spawnTerminal(e,i,s,r){const n=i.windowsExec||ir.getDefaultTerminalWindows();r&&r[1]===":"&&(r=r[0].toUpperCase()+r.substr(1));const o=ze(n,".exe").toLowerCase();if(o==="cmder")return e.spawn(n,r?[r]:void 0),Promise.resolve(void 0);const a=["/c","start","/wait"];return n.indexOf(" ")>=0&&a.push(n),a.push(n),o==="wt"&&a.push("-d ."),new Promise((c,l)=>{const h=wo(process),u=e.spawn(s,a,{cwd:r,env:h,detached:!0});u.on("error",l),u.on("exit",()=>c())})}async runInTerminal(e,i,s,r,n){const o="windowsExec"in n&&n.windowsExec?n.windowsExec:ir.getDefaultTerminalWindows(),a=await ir.f();return new Promise((c,l)=>{const h=`"${i} - ${X1}"`,u=`"${s.join('" "')}" & pause`,f=Object.assign({},wo(process),r);Object.keys(f).filter(b=>f[b]===null).forEach(b=>delete f[b]);const p={cwd:i,env:f,windowsVerbatimArguments:!0};let m,w;ze(o,".exe")==="wt"?(m=o,w=["-d",".",ir.b,"/c",u]):a?(m=a,w=["-d",".",o,"/c",u]):(m=ir.b,w=["/c","start",h,"/wait",o,"/c",`"${u}"`]),go.spawn(m,w,p).on("error",b=>{l(Q1(b))}),c(void 0)})}static getDefaultTerminalWindows(){if(!ir.d){const e=!!process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432");ir.d=`${process.env.windir?process.env.windir:"C:\\Windows"}\\${e?"Sysnative":"System32"}\\cmd.exe`}return ir.d}static async f(){try{return await Eh("wt")}catch{return}}},__decorate([ue],Ih,"f",null),Mb=class m6 extends Dh{static{this.b="/usr/bin/osascript"}openTerminal(e,i){return this.spawnTerminal(go,e,i)}runInTerminal(e,i,s,r,n){const o=n.osxExec||ic;return new Promise((a,c)=>{if(o===ic||o==="iTerm.app"){const l=o===ic?"TerminalHelper":"iTermHelper",u=[ei.asFileUri(`vs/workbench/contrib/externalTerminal/node/${l}.scpt`).fsPath,"-t",e||X1,"-w",i];for(const m of s)u.push("-a"),u.push(m);if(r){const m=Object.assign({},wo(process),r);for(const w in m){const y=m[w];y===null?(u.push("-u"),u.push(w)):(u.push("-e"),u.push(`${w}=${y}`))}}let f="";const p=go.spawn(m6.b,u);p.on("error",m=>{c(Q1(m))}),p.stderr.on("data",m=>{f+=m.toString()}),p.on("exit",m=>{if(m===0)a(void 0);else if(f){const w=f.split(`
`,1);c(new Error(w[0]))}else c(new Error(g(2007,null,l,m)))})}else c(new Error(g(2008,null,o)))})}spawnTerminal(e,i,s){const r=i.osxExec||ic;return new Promise((n,o)=>{const a=["-a",r];s&&a.push(s);const c=wo(process),l=e.spawn("/usr/bin/open",a,{cwd:s,env:c});l.on("error",o),l.on("exit",()=>n())})}},ep=class Ir extends Dh{static{this.b=g(2009,null)}openTerminal(e,i){return this.spawnTerminal(go,e,i)}runInTerminal(e,i,s,r,n){const o=n.linuxExec?Promise.resolve(n.linuxExec):Ir.getDefaultTerminalLinuxReady();return new Promise((a,c)=>{const l=[];o.then(h=>{h.indexOf("gnome-terminal")>=0?l.push("-x"):l.push("-e"),l.push("bash"),l.push("-c");const u=`${$S(s)}; echo; read -p "${Ir.b}" -n1;`;l.push(`''${u}''`);const f=Object.assign({},wo(process),r);Object.keys(f).filter(y=>f[y]===null).forEach(y=>delete f[y]);const p={cwd:i,env:f};let m="";const w=go.spawn(h,l,p);w.on("error",y=>{c(Q1(y))}),w.stderr.on("data",y=>{m+=y.toString()}),w.on("exit",y=>{if(y===0)a(void 0);else if(m){const b=m.split(`
`,1);c(new Error(b[0]))}else c(new Error(g(2010,null,h,y)))})})})}static async getDefaultTerminalLinuxReady(){if(!Ir.d)if(!Se)Ir.d=Promise.resolve("xterm");else{const e=await te.exists("/etc/debian_version");Ir.d=new Promise(i=>{e?i("x-terminal-emulator"):process.env.DESKTOP_SESSION==="gnome"||process.env.DESKTOP_SESSION==="gnome-classic"?i("gnome-terminal"):process.env.DESKTOP_SESSION==="kde-plasma"?i("konsole"):process.env.COLORTERM?i(process.env.COLORTERM):process.env.TERM?i(process.env.TERM):i("xterm")})}return Ir.d}spawnTerminal(e,i,s){const r=i.linuxExec?Promise.resolve(i.linuxExec):Ir.getDefaultTerminalLinuxReady();return new Promise((n,o)=>{r.then(a=>{const c=wo(process),l=e.spawn(a,[],{cwd:s,env:c});l.on("error",o),l.on("exit",()=>n())})})}}}});function Fb(t,e){switch(t){case 0:return"";case 1:return`${rc}*?`;default:return`(?:${sc}|${rc}+${sc}${e?`|${sc}${rc}+`:""})*?`}}function Nb(t,e){if(!t)return[];const i=[];let s=!1,r=!1,n="";for(const o of t){switch(o){case e: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 Wb(t){if(!t)return"";let e="";const i=Nb(t,sp);if(i.every(s=>s===vo))e=".*";else{let s=!1;i.forEach((r,n)=>{if(r===vo){if(s)return;e+=Fb(2,n===i.length-1)}else{let o=!1,a="",c=!1,l="";for(const h of r){if(h!=="}"&&o){a+=h;continue}if(c&&(h!=="]"||!l)){let u;h==="-"?u=h:(h==="^"||h==="!")&&!l?u="^":h===sp?u="":u=Xo(h),l+=u;continue}switch(h){case"{":o=!0;continue;case"[":c=!0;continue;case"}":{const f=`(?:${Nb(a,",").map(p=>Wb(p)).join("|")})`;e+=f,o=!1,a="";break}case"]":{e+="["+l+"]",c=!1,l="";break}case"?":e+=rc;continue;case"*":e+=Fb(1);continue;default:e+=Xo(h)}}n<i.length-1&&(i[n+1]!==vo||n+2<i.length)&&(e+=sc)}s=r===vo})}return e}function tp(t,e){if(!t)return Qi;let i;typeof t!="string"?i=t.pattern:i=t,i=i.trim();const s=`${i}_${!!e.trimForExclusions}`;let r=rp.get(s);if(r)return _b(r,t);let n;return zb.test(i)?r=DS(i.substr(4),i):(n=Hb.exec(ip(i,e)))?r=IS(n[1],i):(e.trimForExclusions?qb:Vb).test(i)?r=CS(i,e):(n=Gb.exec(ip(i,e)))?r=Tb(n[1].substr(1),i,!0):(n=Jb.exec(ip(i,e)))?r=Tb(n[1],i,!1):r=RS(i),rp.set(s,r),_b(r,t)}function _b(t,e){if(typeof e=="string")return t;const i=function(s,r){return ia(s,e.base,!Se)?t(tg(s.substr(e.base.length),Ft),r):null};return i.allBasenames=t.allBasenames,i.allPaths=t.allPaths,i.basenames=t.basenames,i.patterns=t.patterns,i}function ip(t,e){return e.trimForExclusions&&t.endsWith("/**")?t.substr(0,t.length-2):t}function DS(t,e){return function(i,s){return typeof i=="string"&&i.endsWith(t)?e:null}}function IS(t,e){const i=`/${t}`,s=`\\${t}`,r=function(o,a){return typeof o!="string"?null:a?a===t?e:null:o===t||o.endsWith(i)||o.endsWith(s)?e:null},n=[t];return r.basenames=n,r.patterns=[e],r.allBasenames=n,r}function CS(t,e){const i=Bb(t.slice(1,-1).split(",").map(a=>tp(a,e)).filter(a=>a!==Qi),t),s=i.length;if(!s)return Qi;if(s===1)return i[0];const r=function(a,c){for(let l=0,h=i.length;l<h;l++)if(i[l](a,c))return t;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 Tb(t,e,i){const s=Ft===ce.sep,r=s?t:t.replace(jb,Ft),n=Ft+r,o=ce.sep+t;let a;return i?a=function(c,l){return typeof c=="string"&&(c===r||c.endsWith(n)||!s&&(c===t||c.endsWith(o)))?e:null}:a=function(c,l){return typeof c=="string"&&(c===r||!s&&c===t)?e:null},a.allPaths=[(i?"*/":"./")+t],a}function RS(t){try{const e=new RegExp(`^${Wb(t)}$`);return function(i){return e.lastIndex=0,typeof i=="string"&&e.test(i)?t:null}}catch{return Qi}}function OS(t,e={}){if(!t)return np;if(typeof t=="string"||LS(t)){const i=tp(t,e);if(i===Qi)return np;const s=function(r,n){return!!i(r,n)};return i.allBasenames&&(s.allBasenames=i.allBasenames),i.allPaths&&(s.allPaths=i.allPaths),s}return MS(t,e)}function LS(t){const e=t;return e?typeof e.base=="string"&&typeof e.pattern=="string":!1}function MS(t,e){const i=Bb(Object.getOwnPropertyNames(t).map(a=>FS(a,t[a],e)).filter(a=>a!==Qi)),s=i.length;if(!s)return Qi;if(!i.some(a=>!!a.requiresSiblings)){if(s===1)return i[0];const a=function(h,u){let f;for(let p=0,m=i.length;p<m;p++){const w=i[p](h,u);if(typeof w=="string")return w;hf(w)&&(f||(f=[]),f.push(w))}return f?(async()=>{for(const p of f){const m=await p;if(typeof m=="string")return m}return null})():null},c=i.find(h=>!!h.allBasenames);c&&(a.allBasenames=c.allBasenames);const l=i.reduce((h,u)=>u.allPaths?h.concat(u.allPaths):h,[]);return l.length&&(a.allPaths=l),a}const r=function(a,c,l){let h,u;for(let f=0,p=i.length;f<p;f++){const m=i[f];m.requiresSiblings&&l&&(c||(c=ze(a)),h||(h=c.substr(0,c.length-jo(a).length)));const w=m(a,c,h,l);if(typeof w=="string")return w;hf(w)&&(u||(u=[]),u.push(w))}return u?(async()=>{for(const f of u){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 FS(t,e,i){if(e===!1)return Qi;const s=tp(t,i);if(s===Qi)return Qi;if(typeof e=="boolean")return s;if(e){const r=e.when;if(typeof r=="string"){const n=(o,a,c,l)=>{if(!l||!s(o,a))return null;const h=r.replace("$(basename)",()=>c),u=l(h);return hf(u)?u.then(f=>f?t:null):u?t:null};return n.requiresSiblings=!0,n}}return s}function Bb(t,e){const i=t.filter(a=>!!a.basenames);if(i.length<2)return t;const s=i.reduce((a,c)=>{const l=c.basenames;return l?a.concat(l):a},[]);let r;if(e){r=[];for(let a=0,c=s.length;a<c;a++)r.push(e)}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 h;for(h=a.length;h>0;h--){const u=a.charCodeAt(h-1);if(u===47||u===92)break}c=a.substr(h)}const l=s.indexOf(c);return l!==-1?r[l]:null};n.basenames=s,n.patterns=r,n.allBasenames=s;const o=t.filter(a=>!a.basenames);return o.push(n),o}function Ub(t,e){return Vo(t,e,(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 vo,sp,sc,rc,jb,zb,Hb,Vb,qb,Gb,Jb,rp,np,Qi,Kb=v({"out-build/vs/base/common/glob.js"(){"use strict";kt(),le(),ki(),Qt(),ge(),G(),xt(),vo="**",sp="/",sc="[/\\\\]",rc="[^/\\\\]",jb=/\//g,zb=/^\*\*\/\*\.[\w\.-]+$/,Hb=/^\*\*\/([\w\.-]+)\/?$/,Vb=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,qb=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,Gb=/^\*\*((\/[\w\.-]+)+)\/?$/,Jb=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,rp=new Xc(1e4),np=function(){return!1},Qi=function(){return null}}});function Zb(t){return typeof t.correlationId=="number"}function NS(t){return t.recursive===!0}function Yb(t){return t.map(e=>({type:e.type,resource:$.revive(e.resource),cId:e.cId}))}function WS(t){const e=new t4;for(const i of t)e.processEvent(i);return e.coalesce()}function _S(t,e){return typeof e=="string"&&!e.startsWith(vo)&&!Cn(e)?{base:t,pattern:e}:e}function Qb(t,e){const i=[];for(const s of e)i.push(OS(_S(t,s)));return i}function TS(t,e){if(typeof e=="number")switch(t.type){case 1:return(e&4)===0;case 2:return(e&8)===0;case 0:return(e&2)===0}return!1}function BS(t){if(typeof t=="number"){const e=[];return t&4&&e.push("Added"),t&8&&e.push("Deleted"),t&2&&e.push("Updated"),e.length===0?"<all>":`[${e.join(", ")}]`}return"<none>"}var op,Xb,e4,t4,yo=v({"out-build/vs/platform/files/common/watcher.js"(){"use strict";Kb(),T(),ge(),G(),re(),Ve(),op=class g6 extends j{static{this.a=5}constructor(e,i,s,r){super(),this.h=e,this.j=i,this.m=s,this.n=r,this.c=this.B(new or),this.f=void 0,this.g=0}s(){const e=new Ae;this.c.value=e,this.b=this.r(e),this.b.setVerboseLogging(this.m),e.add(this.b.onDidChangeFile(i=>this.h(i))),e.add(this.b.onDidLogMessage(i=>this.j(i))),e.add(this.b.onDidError(i=>this.t(i.error,i.request)))}t(e,i){this.u(e,i)?this.g<g6.a&&this.f?(this.y(`restarting watcher after unexpected error: ${e}`),this.w(this.f)):this.y(`gave up attempting to restart watcher after unexpected error: ${e}`):this.y(e)}u(e,i){return!(!this.n.restartOnError||i||e.indexOf("No space left on device")!==-1||e.indexOf("EMFILE")!==-1)}w(e){this.g++,this.s(),this.watch(e)}async watch(e){this.f=e,await this.b?.watch(e)}async setVerboseLogging(e){this.m=e,await this.b?.setVerboseLogging(e)}y(e){this.j({type:"error",message:`[File Watcher (${this.n.type})] ${e}`})}z(e){this.j({type:"trace",message:`[File Watcher (${this.n.type})] ${e}`})}dispose(){return this.b=void 0,super.dispose()}},Xb=class extends op{constructor(t,e,i){super(t,e,i,{type:"node.js",restartOnError:!1})}},e4=class extends op{constructor(t,e,i){super(t,e,i,{type:"universal",restartOnError:!0})}},t4=class{constructor(){this.a=new Set,this.b=new Map}c(t){return Se?t.resource.fsPath:t.resource.fsPath.toLowerCase()}processEvent(t){const e=this.b.get(this.c(t));let i=!1;if(e){const s=e.type,r=t.type;e.resource.fsPath!==t.resource.fsPath&&(t.type===2||t.type===1)?i=!0:s===1&&r===2?(this.b.delete(this.c(t)),this.a.delete(e)):s===2&&r===1?e.type=0:s===1&&r===0||(e.type=r)}else i=!0;i&&(this.a.add(t),this.b.set(this.c(t),t))}coalesce(){const t=[],e=[];return Array.from(this.a).filter(i=>i.type!==2?(t.push(i),!1):!0).sort((i,s)=>i.resource.fsPath.length-s.resource.fsPath.length).filter(i=>e.some(s=>B3(i.resource.fsPath,s,!Se))?!1:(e.push(i.resource.fsPath),!0)).concat(t)}}}}),ap,US=v({"out-build/vs/platform/files/common/diskFileSystemProviderClient.js"(){"use strict";Ke(),jr(),De(),J(),T(),ya(),Ei(),Ve(),yo(),ap="localFilesystem"}});async function i4(t,e,i,s,r,n){let o;try{await jS(t,e,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 jS(t,e,i,s,r,n){cp(n);const o=await t.open(e,{create:!1});try{cp(n);let a=0,c=0,l=r&&typeof r.length=="number"?r.length:void 0,h=q.alloc(Math.min(r.bufferSize,typeof l=="number"?l:r.bufferSize)),u=r&&typeof r.position=="number"?r.position:0,f=0;do c=await t.read(o,u,h.buffer,f,h.byteLength-f),u+=c,f+=c,a+=c,typeof l=="number"&&(l-=c),f===h.byteLength&&(await i.write(s(h)),h=q.alloc(Math.min(r.bufferSize,typeof l=="number"?l:r.bufferSize)),f=0);while(c>0&&(typeof l!="number"||l>0)&&cp(n)&&zS(a,r));if(f>0){let p=f;typeof l=="number"&&(p=Math.min(f,l)),i.write(s(h.slice(0,p)))}}catch(a){throw qr(a)}finally{await t.close(o)}}function cp(t){if(t.isCancellationRequested)throw Rn();return!0}function zS(t,e){if(typeof e?.limits?.size=="number"&&t>e.limits.size)throw Yi(g(2053,null),ae.FileTooLarge);return!0}var s4=v({"out-build/vs/platform/files/common/io.js"(){"use strict";Ke(),De(),we(),Ve()}}),r4,HS=v({"out-build/vs/platform/files/common/diskFileSystemProvider.js"(){"use strict";kt(),le(),De(),J(),ki(),T(),ge(),yo(),Q(),r4=class extends j{constructor(t,e){super(),this.a=t,this.b=e,this.c=this.B(new D),this.onDidChangeFile=this.c.event,this.g=this.B(new D),this.onDidWatchError=this.g.event,this.m=[],this.n=this.B(new Us(this.h(this.m.length))),this.z=[],this.C=this.B(new Us(this.h(this.z.length)))}watch(t,e){return e.recursive||this.b?.watcher?.forceUniversal?this.r(t,e):this.D(t,e)}h(t){return t>200?500:0}r(t,e){const i=this.s(t,e),s=P0(this.m,i);return this.t(),be(()=>{s(),this.t()})}s(t,e){const i={path:this.M(t),excludes:e.excludes,includes:e.includes,recursive:e.recursive,filter:e.filter,correlationId:e.correlationId};if(NS(i)){const s=this.b?.watcher?.recursive?.usePolling;s===!0?i.pollingInterval=this.b?.watcher?.recursive?.pollingInterval??5e3:Array.isArray(s)&&s.includes(i.path)&&(i.pollingInterval=this.b?.watcher?.recursive?.pollingInterval??5e3)}return i}t(){this.n.trigger(()=>this.u(),this.h(this.m.length)).catch(t=>Ct(t))}u(){return this.j||(this.j=this.B(this.w(t=>this.c.fire(Yb(t)),t=>this.I(t),this.a.getLevel()===Y.Trace)),this.B(this.a.onDidChangeLogLevel(()=>{this.j?.setVerboseLogging(this.a.getLevel()===Y.Trace)}))),this.j.watch(this.m)}D(t,e){const i={path:this.M(t),excludes:e.excludes,includes:e.includes,recursive:!1,filter:e.filter,correlationId:e.correlationId},s=P0(this.z,i);return this.F(),be(()=>{s(),this.F()})}F(){this.C.trigger(()=>this.G(),this.h(this.z.length)).catch(t=>Ct(t))}G(){return this.y||(this.y=this.B(this.H(t=>this.c.fire(Yb(t)),t=>this.I(t),this.a.getLevel()===Y.Trace)),this.B(this.a.onDidChangeLogLevel(()=>{this.y?.setVerboseLogging(this.a.getLevel()===Y.Trace)}))),this.y.watch(this.z)}I(t){t.type==="error"&&this.g.fire(t.message),this.J(t)}J(t){this.a[t.type](t.message)}L(t){return Zt(t.fsPath)}M(t){const e=this.L(t);return dg(e)}}}});function VS(t){const e=t;return e&&typeof e.type=="string"&&typeof e.severity=="string"}function qS(t){const e=[];let i;try{const s=JSON.parse(t.arguments),r=s[s.length-1];r&&r.__$stack&&(s.pop(),i=r.__$stack),e.push(...s)}catch{e.push("Unable to log remote console arguments",t.arguments)}return{args:e,stack:i}}function GS(t){if(!t)return t;const e=t.indexOf(`
`);return e===-1?t:t.substring(0,e)}function JS(t,e){const{args:i,stack:s}=qS(t),r=typeof i[0]=="string"&&i.length===1;let n=GS(s);n&&(n=`(${n.trim()})`);let o=[];if(typeof i[0]=="string"?n&&r?o=[`%c[${e}] %c${i[0]} %c${n}`,bo("blue"),bo(""),bo("grey")]:o=[`%c[${e}] %c${i[0]}`,bo("blue"),bo(""),...i.slice(1)]:o=[`%c[${e}]%`,bo("blue"),...i],n&&!r&&o.push(n),typeof console[t.severity]!="function")throw new Error("Unknown console method");console[t.severity].apply(console,o)}function bo(t){return`color: ${t}`}var KS=v({"out-build/vs/base/common/console.js"(){"use strict";re()}});import{fork as ZS}from"child_process";var n4,YS=v({"out-build/vs/base/parts/ipc/node/ipc.cp.js"(){"use strict";le(),Ke(),Et(),KS(),De(),J(),T(),Bi(),ec(),vh(),Hs(),n4=class{constructor(t,e){this.i=t,this.j=e,this.c=new Set,this.g=new Map,this.h=new D,this.onDidProcessExit=this.h.event;const i=e&&e.timeout?e.timeout:6e4;this.b=new ll(i),this.d=null,this.f=null}getChannel(t){const e=this;return{call(i,s,r){return e.k(t,i,s,r)},listen(i,s){return e.l(t,i,s)}}}k(t,e,i,s=Je.None){if(!this.b)return Promise.reject(new Error("disposed"));if(s.isCancellationRequested)return Promise.reject(Rn());this.b.cancel();const r=this.n(t),n=Mn(c=>r.call(e,i,c)),o=s.onCancellationRequested(()=>n.cancel()),a=be(()=>n.cancel());return this.c.add(a),n.finally(()=>{o.dispose(),this.c.delete(a),this.c.size===0&&this.b&&this.b.trigger(()=>this.o())}),n}l(t,e,i){if(!this.b)return x.None;this.b.cancel();let s;const r=new D({onWillAddFirstListener:()=>{s=this.n(t).listen(e,i)(r.fire,r),this.c.add(s)},onDidRemoveLastListener:()=>{this.c.delete(s),s.dispose(),this.c.size===0&&this.b&&this.b.trigger(()=>this.o())}});return r.event}get m(){if(!this.f){const t=this.j&&this.j.args?this.j.args:[],e=Object.create(null);e.env={...Ti(process.env),VSCODE_PARENT_PID:String(process.pid)},this.j&&this.j.env&&(e.env={...e.env,...this.j.env}),this.j&&this.j.freshExecArgv&&(e.execArgv=[]),this.j&&typeof this.j.debug=="number"&&(e.execArgv=["--nolazy","--inspect="+this.j.debug]),this.j&&typeof this.j.debugBrk=="number"&&(e.execArgv=["--nolazy","--inspect-brk="+this.j.debugBrk]),e.execArgv===void 0&&(e.execArgv=process.execArgv.filter(h=>!/^--inspect(-brk)?=/.test(h)).filter(h=>!h.startsWith("--vscode-"))),pb(e.env),this.d=ZS(this.i,t,e);const i=new D,r=x.fromNodeEventEmitter(this.d,"message",h=>h)(h=>{if(VS(h)){JS(h,`IPC Library: ${this.j.serverName}`);return}i.fire(q.wrap(Buffer.from(h,"base64")))}),n=this.j.useQueue?hS(this.d):this.d,o=h=>this.d&&this.d.connected&&n.send(h.buffer.toString("base64")),a=i.event,c={send:o,onMessage:a};this.f=new Sa(c);const l=()=>this.o();process.once("exit",l),this.d.on("error",h=>console.warn('IPC "'+this.j.serverName+'" errored with '+h)),this.d.on("exit",(h,u)=>{process.removeListener("exit",l),r.dispose(),this.c.forEach(f=>mt(f)),this.c.clear(),h!==0&&u!=="SIGTERM"&&console.warn('IPC "'+this.j.serverName+'" crashed with exit code '+h+" and signal "+u),this.b?.cancel(),this.o(),this.h.fire({code:h,signal:u})})}return this.f}n(t){let e=this.g.get(t);return e||(e=this.m.getChannel(t),this.g.set(t,e)),e}o(){this.f&&(this.d&&(this.d.kill(),this.d=null),this.f=null,this.g.clear())}dispose(){this.h.dispose(),this.b?.cancel(),this.b=void 0,this.o(),this.c.clear()}}}}),o4,QS=v({"out-build/vs/platform/files/node/watcher/watcherClient.js"(){"use strict";Oe(),Hs(),YS(),yo(),o4=class extends e4{constructor(t,e,i){super(t,e,i),this.s()}r(t){const e=t.add(new n4(ei.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 t.add(e.onDidProcessExit(({code:i,signal:s})=>this.t(`terminated by itself with code ${i}, signal: ${s} (ETERM)`))),He.toService(X8(e.getChannel("watcher")))}}}});import{watchFile as XS,unwatchFile as eE}from"fs";var a4,tE=v({"out-build/vs/platform/files/node/watcher/baseWatcher.js"(){"use strict";T(),yo(),J(),re(),le(),qs(),De(),a4=class extends j{constructor(){super(),this.a=this.B(new D),this.onDidChangeFile=this.a.event,this.b=this.B(new D),this.onDidLogMessage=this.b.event,this.c=this.B(new D),this.f=this.c.event,this.g=new Map,this.h=new Map,this.j=this.B(new zd),this.m=new Set,this.n=this.B(new Us(this.y())),this.r=5007,this.s=new js,this.R=!1,this.B(this.f(t=>this.z({id:this.u(t),correlationId:this.t(t)?t.correlationId:void 0,path:t.path})))}t(t){return Zb(t)}u(t){return this.t(t)?t.correlationId:fs(t)}async watch(t){this.s.isSettled||this.s.complete(),this.s=new js;try{this.g.clear(),this.h.clear();for(const e of t)this.t(e)?this.g.set(e.correlationId,e):this.h.set(this.u(e),e);for(const[e]of this.j)!this.h.has(e)&&!this.g.has(e)&&(this.j.deleteAndDispose(e),this.m.delete(e));return await this.w(!1)}finally{this.s.complete()}}w(t){const e=[];for(const[i,s]of[...this.h,...this.g])this.j.has(i)||e.push(s);return this.n.trigger(()=>this.N(e),t?this.y():0).catch(i=>Ct(i))}y(){return 800}isSuspended(t){const e=this.u(t);return this.m.has(e)?"polling":this.j.has(e)}async z(t){if(this.j.has(t.id))return;const e=new Ae;this.j.set(t.id,e),await this.s.p,!e.isDisposed&&(this.D(t,e),this.w(!0))}C(t){this.j.deleteAndDispose(t.id),this.m.delete(t.id),this.w(!1)}D(t,e){this.F(t,e)?(this.P(`reusing an existing recursive watcher to monitor ${t.path}`),this.m.delete(t.id)):(this.G(t,e),this.m.add(t.id))}F(t,e){const i=this.O?.subscribe(t.path,(s,r)=>{e.isDisposed||(s?this.D(t,e):r?.type===1&&this.H(t))});return i?(e.add(i),!0):!1}G(t,e){let i=!1;const s=(r,n)=>{if(e.isDisposed)return;const o=this.I(r),a=this.I(n),c=i;i=o,!o&&(a||c)&&this.H(t)};this.P(`starting fs.watchFile() on ${t.path} (correlationId: ${t.correlationId})`);try{XS(t.path,{persistent:!1,interval:this.r},s)}catch(r){this.Q(`fs.watchFile() failed with error ${r} on path ${t.path} (correlationId: ${t.correlationId})`)}e.add(be(()=>{this.P(`stopping fs.watchFile() on ${t.path} (correlationId: ${t.correlationId})`);try{eE(t.path,s)}catch(r){this.Q(`fs.unwatchFile() failed with error ${r} on path ${t.path} (correlationId: ${t.correlationId})`)}}))}H(t){this.P(`detected ${t.path} exists again, resuming watcher (correlationId: ${t.correlationId})`);const e={resource:$.file(t.path),type:1,cId:t.correlationId};this.a.fire([e]),this.J(e,t),this.C(t)}I(t){return t.ctimeMs===0&&t.ino===0}async stop(){this.j.clearAndDisposeAll(),this.m.clear()}J(t,e){if(this.R){const i=` >> normalized ${t.type===1?"[ADDED]":t.type===2?"[DELETED]":"[CHANGED]"} ${t.resource.fsPath}`;this.L(i,e)}}L(t,e){this.R&&this.P(`${t}${typeof e.correlationId=="number"?` <${e.correlationId}> `:""}`)}M(t){return`${t.path} (excludes: ${t.excludes.length>0?t.excludes:"<none>"}, includes: ${t.includes&&t.includes.length>0?JSON.stringify(t.includes):"<all>"}, filter: ${BS(t.filter)}, correlationId: ${typeof t.correlationId=="number"?t.correlationId:"<none>"})`}async setVerboseLogging(t){this.R=t}}}});import*as c4 from"fs";async function l4(t){try{return await te.realpath(t)}catch{const i=iE(t);return await c4.promises.access(i,c4.constants.R_OK),i}}function iE(t){return Tr(Zt(t),Ft)}var h4=v({"out-build/vs/base/node/extpath.js"(){"use strict";ge(),G(),xt(),gt()}});import{watch as sE,promises as rE}from"fs";var u4,nE=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcherLib.js"(){"use strict";le(),Et(),ki(),T(),ul(),ge(),G(),et(),re(),h4(),gt(),yo(),_r(),u4=class hd extends j{static{this.a=100}static{this.b=75}get isReusingRecursiveWatcher(){return this.r}get failed(){return this.s}constructor(e,i,s,r,n,o){super(),this.t=e,this.u=i,this.w=s,this.y=r,this.z=n,this.C=o,this.c=this.B(new pf({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},a=>this.w(a))),this.f=this.B(new Tg(a=>this.M(a),hd.b)),this.m=new Ji,this.n=new Ts(async()=>{let a=this.t.path;try{a=await l4(this.t.path),this.t.path!==a&&this.Q(`correcting a path to watch that seems to be a symbolic link (original: ${this.t.path}, real: ${a})`)}catch{}return a}),this.r=!1,this.s=!1,this.g=Qb(this.t.path,this.t.excludes),this.h=this.t.includes?Qb(this.t.path,this.t.includes):void 0,this.j=Zb(this.t)?this.t.filter:void 0,this.ready=this.D()}async D(){try{const e=await rE.stat(this.t.path);if(this.m.token.isCancellationRequested)return;this.B(await this.G(e.isDirectory()))}catch(e){e.code!=="ENOENT"?this.O(e):this.Q(`ignoring a path for watching who's stat info failed to resolve: ${this.t.path} (error: ${e})`),this.F()}}F(){this.s=!0,this.y?.()}async G(e){const i=new Ae;return this.H(e,i)?(this.Q(`reusing an existing recursive watcher for ${this.t.path}`),this.r=!0):(this.r=!1,await this.I(e,i)),i}H(e,i){if(e)return!1;const s=$.file(this.t.path),r=this.u?.subscribe(this.t.path,async(n,o)=>{if(!i.isDisposed)if(n){const a=await this.G(e);i.isDisposed?a.dispose():i.add(a)}else o&&(typeof o.cId=="number"||typeof this.t.correlationId=="number")&&this.L({resource:s,type:o.type,cId:this.t.correlationId},!0)});return r?(i.add(r),!0):!1}async I(e,i){const s=await this.n.value;if(this.m.token.isCancellationRequested)return;if(N&&ia(s,"/Volumes/",!0)){this.O(`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 Ji(this.m.token);i.add(be(()=>r.dispose(!0)));const n=new Ae;i.add(n);try{const o=$.file(this.t.path),a=ze(s),c=sE(s);n.add(be(()=>{c.removeAllListeners(),c.close()})),this.Q(`Started watching: '${s}'`);const l=new Set;if(e)try{for(const u of await te.readdir(s))l.add(u)}catch(u){this.O(u)}if(r.token.isCancellationRequested)return;const h=new Map;n.add(be(()=>{for(const[,u]of h)u.dispose();h.clear()})),c.on("error",(u,f)=>{r.token.isCancellationRequested||(this.O(`Failed to watch ${s} for changes using fs.watch() (${u}, ${f})`),this.F())}),c.on("change",(u,f)=>{if(r.token.isCancellationRequested)return;this.C&&this.R(`[raw] ["${u}"] ${f}`);let p="";if(f&&(p=f.toString(),N&&(p=Nn(p))),!(!p||u!=="change"&&u!=="rename"))if(e)if(u==="rename"){h.get(p)?.dispose();const m=setTimeout(async()=>{if(h.delete(p),ta(p,a,!Se)&&!await te.exists(s)){this.J(o);return}if(r.token.isCancellationRequested)return;const w=await this.N(M(s,p));if(r.token.isCancellationRequested)return;let y;w?l.has(p)?y=0:(y=1,l.add(p)):(l.delete(p),y=2),this.L({resource:pe(o,p),type:y,cId:this.t.correlationId})},hd.a);h.set(p,be(()=>clearTimeout(m)))}else{let m;l.has(p)?m=0:(m=1,l.add(p)),this.L({resource:pe(o,p),type:m,cId:this.t.correlationId})}else if(u==="rename"||!ta(p,a,!Se)){const m=setTimeout(async()=>{const w=await te.exists(s);r.token.isCancellationRequested||(w?(this.L({resource:o,type:0,cId:this.t.correlationId},!0),n.add(await this.G(!1))):this.J(o))},hd.a);n.clear(),n.add(be(()=>clearTimeout(m)))}else this.L({resource:o,type:0,cId:this.t.correlationId},!0)})}catch(o){if(r.token.isCancellationRequested)return;this.O(`Failed to watch ${s} for changes using fs.watch() (${o.toString()})`),this.F()}}J(e){this.P("Watcher shutdown because watched path got deleted"),this.L({resource:e,type:2,cId:this.t.correlationId},!0),this.f.flush(),this.F()}L(e,i=!1){this.m.token.isCancellationRequested||(this.C&&this.R(`${e.type===1?"[ADDED]":e.type===2?"[DELETED]":"[CHANGED]"} ${e.resource.fsPath}`),!i&&this.g.some(s=>s(e.resource.fsPath))?this.C&&this.R(` >> ignored (excluded) ${e.resource.fsPath}`):!i&&this.h&&this.h.length>0&&!this.h.some(s=>s(e.resource.fsPath))?this.C&&this.R(` >> ignored (not included) ${e.resource.fsPath}`):this.f.work(e))}M(e){const i=WS(e),s=[];for(const n of i){if(TS(n,this.j)){this.C&&this.R(` >> ignored (filtered) ${n.resource.fsPath}`);continue}s.push(n)}if(s.length===0)return;if(this.C)for(const n of s)this.R(` >> normalized ${n.type===1?"[ADDED]":n.type===2?"[DELETED]":"[CHANGED]"} ${n.resource.fsPath}`);this.c.work(s)?this.c.pending>0&&this.Q(`started throttling events due to large amount of file change events at once (pending: ${this.c.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.P(`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 N(e){if(Se)return te.exists(e);try{const i=ze(e);return(await te.readdir(dt(e))).some(r=>r===i)}catch(i){return this.Q(i),!1}}setVerboseLogging(e){this.C=e}O(e){this.m.token.isCancellationRequested||this.z?.({type:"error",message:`[File Watcher (node.js)] ${e}`})}P(e){this.m.token.isCancellationRequested||this.z?.({type:"warn",message:`[File Watcher (node.js)] ${e}`})}Q(e){!this.m.token.isCancellationRequested&&this.C&&this.z?.({type:"trace",message:`[File Watcher (node.js)] ${e}`})}R(e){!this.m.token.isCancellationRequested&&this.C&&this.Q(`${e}${typeof this.t.correlationId=="number"?` <${this.t.correlationId}> `:""}`)}dispose(){this.m.dispose(!0),super.dispose()}}}}),d4,oE=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcher.js"(){"use strict";J(),Kb(),tE(),G(),nE(),le(),T(),d4=class extends a4{get watchers(){return this.S.values()}constructor(t){super(),this.O=t,this.onDidError=x.None,this.S=new Map,this.U=this.B(new or)}async N(t){t=this.cb(t);const e=[],i=new Set(Array.from(this.watchers));for(const s of t){const r=this.S.get(this.Z(s));r&&Ub(r.request.excludes,s.excludes)&&Ub(r.request.includes,s.includes)?i.delete(r):e.push(s)}e.length&&this.P(`Request to start watching: ${e.map(s=>this.M(s)).join(",")}`),i.size&&this.P(`Request to stop watching: ${Array.from(i).map(s=>this.M(s.request)).join(",")}`),this.U.clear();for(const s of i)this.bb(s);this.Y().work(e)}Y(){return this.U.value=new pf({maxWorkChunkSize:100,throttleDelay:100,maxBufferedWork:Number.MAX_VALUE},t=>{for(const e of t)this.ab(e)}),this.U.value}Z(t){return typeof t.correlationId=="number"?t.correlationId:this.$(t.path)}$(t){return Se?t:t.toLowerCase()}ab(t){const e=new u4(t,this.O,s=>this.a.fire(s),()=>this.c.fire(t),s=>this.b.fire(s),this.R),i={request:t,instance:e};this.S.set(this.Z(t),i)}async stop(){await super.stop();for(const t of this.watchers)this.bb(t)}bb(t){this.P("stopping file watcher",t),this.S.delete(this.Z(t.request)),t.instance.dispose()}cb(t){const e=new Map;for(const i of t){let s=e.get(i.correlationId);s||(s=new Map,e.set(i.correlationId,s));const r=this.$(i.path);s.has(r)&&this.P(`ignoring a request for watching who's path is already watched: ${this.M(i)}`),s.set(r,i)}return Array.from(e.values()).map(i=>Array.from(i.values())).flat()}async setVerboseLogging(t){super.setVerboseLogging(t);for(const e of this.watchers)e.instance.setVerboseLogging(t)}P(t,e){this.R&&this.b.fire({type:"trace",message:this.fb(t,e)})}Q(t){this.b.fire({type:"warn",message:this.fb(t)})}fb(t,e){return e?`[File Watcher (node.js)] ${t} (${this.M(e.request)})`:`[File Watcher (node.js)] ${t}`}}}}),f4,aE=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsClient.js"(){"use strict";yo(),oE(),f4=class extends Xb{constructor(t,e,i){super(t,e,i),this.s()}r(t){return t.add(new d4(void 0))}}}});import{promises as an}from"fs";var Ch,lp=v({"out-build/vs/platform/files/node/diskFileSystemProvider.js"(){"use strict";le(),Qt(),Ke(),J(),ki(),T(),ge(),G(),et(),ya(),gt(),we(),Ve(),s4(),HS(),QS(),aE(),Ch=class Tc extends r4{static{this.N=!1}constructor(e,i){super(e,i),this.onDidChangeCapabilities=x.None,this.R=new Rt(s=>Ze.getComparisonKey(s)),this.Z=new Map,this.$=new Map,this.ab=new Map}get capabilities(){return this.O||(this.O=253982,Se&&(this.O|=1024)),this.O}async stat(e){try{const{stat:i,symbolicLink:s}=await Nt.stat(this.L(e));return{type:this.Q(i,s),ctime:i.birthtime.getTime(),mtime:i.mtime.getTime(),size:i.size,permissions:(i.mode&128)===0?Qn.Locked:void 0}}catch(i){throw this.jb(i)}}async P(e){try{return await this.stat(e)}catch{return}}async readdir(e){try{const i=await te.readdir(this.L(e),{withFileTypes:!0}),s=[];return await Promise.all(i.map(async r=>{try{let n;r.isSymbolicLink()?n=(await this.stat(pe(e,r.name))).type:n=this.Q(r),s.push([r.name,n])}catch(n){this.a.trace(n)}})),s}catch(i){throw this.jb(i)}}Q(e,i){let s;return i?.dangling?s=$t.Unknown:e.isFile()?s=$t.File:e.isDirectory()?s=$t.Directory:s=$t.Unknown,i&&(s|=$t.SymbolicLink),s}async S(e){const i=this.L(e);this.U(`[Disk FileSystemProvider]: createResourceLock() - request to acquire resource lock (${i})`);let s;for(;s=this.R.get(e);)this.U(`[Disk FileSystemProvider]: createResourceLock() - waiting for resource lock to be released (${i})`),await s.wait();const r=new oa;return this.R.set(e,r),this.U(`[Disk FileSystemProvider]: createResourceLock() - new resource lock created (${i})`),be(()=>{this.U(`[Disk FileSystemProvider]: createResourceLock() - resource lock dispose() (${i})`),this.R.get(e)===r&&(this.U(`[Disk FileSystemProvider]: createResourceLock() - resource lock removed from resource-lock map (${i})`),this.R.delete(e)),this.U(`[Disk FileSystemProvider]: createResourceLock() - resource lock barrier open() (${i})`),r.open()})}async readFile(e,i){let s;try{i?.atomic&&(this.U(`[Disk FileSystemProvider]: atomic read operation started (${this.L(e)})`),s=await this.S(e));const r=this.L(e);return await an.readFile(r)}catch(r){throw this.jb(r)}finally{s?.dispose()}}U(e){Tc.N&&this.a.trace(e)}readFileStream(e,i,s){const r=gl(n=>q.concat(n.map(o=>q.wrap(o))).buffer);return i4(this,e,r,n=>n.buffer,{...i,bufferSize:256*1024},s),r}async writeFile(e,i,s){return s?.atomic!==!1&&s?.atomic?.postfix&&await this.W(e)?this.X(e,pe(Rg(e),`${as(e)}${s.atomic.postfix}`),i,s):this.Y(e,i,s)}async W(e){try{const i=this.L(e),{symbolicLink:s}=await Nt.stat(i);if(s)return!1}catch{}return!0}async X(e,i,s,r){const n=new Ae;try{n.add(await this.S(e)),n.add(await this.S(i)),await this.Y(i,s,r,!0);try{await this.rename(i,e,{overwrite:!0})}catch(o){try{await this.delete(i,{recursive:!1,useTrash:!1,atomic:!1})}catch{}throw o}}finally{n.dispose()}}async Y(e,i,s,r){let n;try{const o=this.L(e);if(!s.create||!s.overwrite){if(await te.exists(o)){if(!s.overwrite)throw Yi(g(2056,null),ae.FileExists)}else if(!s.create)throw Yi(g(2057,null),ae.FileNotFound)}n=await this.open(e,{create:!0,unlock:s.unlock},r),await this.write(n,0,i,0,i.byteLength)}catch(o){throw await this.kb(e,o)}finally{typeof n=="number"&&await this.close(n)}}static{this.bb=!0}static configureFlushOnWrite(e){Tc.bb=e}async open(e,i,s){const r=this.L(e);let n;Yn(i)&&!s&&(n=await this.S(e));let o;try{if(Yn(i)&&i.unlock)try{const{stat:a}=await Nt.stat(r);a.mode&128||await an.chmod(r,a.mode|128)}catch(a){a.code!=="ENOENT"&&this.a.trace(a)}if(B&&Yn(i))try{o=await te.open(r,"r+"),await te.ftruncate(o,0)}catch(a){if(a.code!=="ENOENT"&&this.a.trace(a),typeof o=="number"){try{await te.close(o)}catch(c){this.a.trace(c)}o=void 0}}typeof o!="number"&&(o=await te.open(r,Yn(i)?"w":"r"))}catch(a){throw n?.dispose(),Yn(i)?await this.kb(e,a):this.jb(a)}if(this.Z.set(o,0),Yn(i)&&this.ab.set(o,e),n){const a=this.$.get(o);this.U(`[Disk FileSystemProvider]: open() - storing lock for handle ${o} (${r})`),this.$.set(o,n),a&&(this.U(`[Disk FileSystemProvider]: open() - disposing a previous lock that was still stored on same handle ${o} (${r})`),a.dispose())}return o}async close(e){const i=this.$.get(e);try{if(this.Z.delete(e),this.ab.delete(e)&&Tc.bb)try{await te.fdatasync(e)}catch(s){Tc.configureFlushOnWrite(!1),this.a.error(s)}return await te.close(e)}catch(s){throw this.jb(s)}finally{i&&(this.$.get(e)===i&&(this.U(`[Disk FileSystemProvider]: close() - resource lock removed from handle-lock map ${e}`),this.$.delete(e)),this.U(`[Disk FileSystemProvider]: close() - disposing lock for handle ${e}`),i.dispose())}}async read(e,i,s,r,n){const o=this.cb(e,i);let a=null;try{a=(await te.read(e,s,r,n,o)).bytesRead}catch(c){throw this.jb(c)}finally{this.db(e,o,a)}return a}cb(e,i){return i===this.Z.get(e)?null:i}db(e,i,s){const r=this.Z.get(e);typeof r=="number"&&(typeof i=="number"||(typeof s=="number"?this.Z.set(e,r+s):this.Z.delete(e)))}async write(e,i,s,r,n){return J7(()=>this.eb(e,i,s,r,n),100,3)}async eb(e,i,s,r,n){const o=this.cb(e,i);let a=null;try{a=(await te.write(e,s,r,n,o)).bytesWritten}catch(c){throw await this.kb(this.ab.get(e),c)}finally{this.db(e,o,a)}return a}async mkdir(e){try{await an.mkdir(this.L(e))}catch(i){throw this.jb(i)}}async delete(e,i){try{const s=this.L(e);if(i.recursive){let r;i?.atomic!==!1&&i.atomic.postfix&&(r=M(dt(s),`${ze(s)}${i.atomic.postfix}`)),await te.rm(s,Ur.MOVE,r)}else try{await an.unlink(s)}catch(r){if(r.code==="EPERM"||r.code==="EISDIR"){let n=!1;try{const{stat:o,symbolicLink:a}=await Nt.stat(s);n=o.isDirectory()&&!a}catch{}if(n)await an.rmdir(s);else throw r}else throw r}}catch(s){throw this.jb(s)}}async rename(e,i,s){const r=this.L(e),n=this.L(i);if(r!==n)try{await this.fb(e,i,"move",s.overwrite),await te.rename(r,n)}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(g(2058,null,ze(r),ze(dt(n)),o.toString()))),this.jb(o)}}async copy(e,i,s){const r=this.L(e),n=this.L(i);if(r!==n)try{await this.fb(e,i,"copy",s.overwrite),await te.copy(r,n,{preserveSymlinks:!0})}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(g(2059,null,ze(r),ze(dt(n)),o.toString()))),this.jb(o)}}async fb(e,i,s,r){const n=this.L(e),o=this.L(i);let a=!1;if(!!(this.capabilities&1024)||(a=ta(n,o,!0)),a){if(s==="copy")throw Yi(g(2060,null),ae.FileExists);if(s==="move")return}const l=await this.P(e);if(!l)throw Yi(g(2061,null),ae.FileNotFound);const h=await this.P(i);if(h){if(!r)throw Yi(g(2062,null),ae.FileExists);(l.type&$t.File)!==0&&(h.type&$t.File)!==0||await this.delete(i,{recursive:!0,useTrash:!1,atomic:!1})}}async cloneFile(e,i){return this.gb(e,i,!1)}async gb(e,i,s){const r=this.L(e),n=this.L(i),o=!!(this.capabilities&1024);if(ta(r,n,!o))return;const a=new Ae;try{a.add(await this.S(e)),a.add(await this.S(i)),s&&await an.mkdir(dt(n),{recursive:!0}),await an.copyFile(r,n)}catch(c){if(c.code==="ENOENT"&&!s)return this.gb(e,i,!0);throw this.jb(c)}finally{a.dispose()}}w(e,i,s){return new o4(r=>e(r),r=>i(r),s)}H(e,i,s){return new f4(r=>e(r),r=>i(r),s)}jb(e){if(e instanceof Tl)return e;let i=e,s;switch(e.code){case"ENOENT":s=ae.FileNotFound;break;case"EISDIR":s=ae.FileIsADirectory;break;case"ENOTDIR":s=ae.FileNotADirectory;break;case"EEXIST":s=ae.FileExists;break;case"EPERM":case"EACCES":s=ae.NoPermissions;break;case"ERR_UNC_HOST_NOT_ALLOWED":i=`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`,s=ae.Unknown;break;default:s=ae.Unknown}return Yi(i,s)}async kb(e,i){let s=this.jb(i);if(e&&s.code===ae.NoPermissions)try{const{stat:r}=await Nt.stat(this.L(e));r.mode&128||(s=Yi(i,ae.FileWriteLocked))}catch(r){this.a.trace(r)}return s}}}}),p4,m4,cE=v({"out-build/vs/platform/files/node/diskFileSystemProviderServer.js"(){"use strict";J(),lp(),T(),Ke(),ya(),Et(),p4=class extends j{constructor(t,e){super(),this.a=t,this.b=e,this.F=new Map,this.G=new Map}call(t,e,i){const s=this.c(t);switch(e){case"stat":return this.g(s,i[0]);case"readdir":return this.h(s,i[0]);case"open":return this.r(s,i[0],i[1]);case"close":return this.s(i[0]);case"read":return this.t(i[0],i[1],i[2]);case"readFile":return this.j(s,i[0],i[1]);case"write":return this.u(i[0],i[1],i[2],i[3],i[4]);case"writeFile":return this.n(s,i[0],i[1],i[2]);case"rename":return this.z(s,i[0],i[1],i[2]);case"copy":return this.C(s,i[0],i[1],i[2]);case"cloneFile":return this.D(s,i[0],i[1]);case"mkdir":return this.w(s,i[0]);case"delete":return this.y(s,i[0],i[1]);case"watch":return this.I(s,i[0],i[1],i[2],i[3]);case"unwatch":return this.J(i[0],i[1])}throw new Error(`IPC Command ${e} not found`)}listen(t,e,i){const s=this.c(t);switch(e){case"fileChange":return this.H(s,i[0]);case"readFileStream":return this.m(s,i[0],i[1])}throw new Error(`Unknown event ${e}`)}g(t,e){const i=this.f(t,e,!0);return this.a.stat(i)}h(t,e){const i=this.f(t,e);return this.a.readdir(i)}async j(t,e,i){const s=this.f(t,e,!0),r=await this.a.readFile(s,i);return q.wrap(r)}m(t,e,i){const s=this.f(t,e,!0),r=new Ji,n=new D({onDidRemoveLastListener:()=>{r.cancel()}}),o=this.a.readFileStream(s,i,r.token);return wl(o,{onData:a=>n.fire(q.wrap(a)),onError:a=>n.fire(a),onEnd:()=>{n.fire("end"),n.dispose(),r.dispose()}}),n.event}n(t,e,i,s){const r=this.f(t,e);return this.a.writeFile(r,i.buffer,s)}r(t,e,i){const s=this.f(t,e,!0);return this.a.open(s,i)}s(t){return this.a.close(t)}async t(t,e,i){const s=q.alloc(i),n=await this.a.read(t,e,s.buffer,0,i);return[s,n]}u(t,e,i,s,r){return this.a.write(t,e,i.buffer,s,r)}w(t,e){const i=this.f(t,e);return this.a.mkdir(i)}y(t,e,i){const s=this.f(t,e);return this.a.delete(s,i)}z(t,e,i,s){const r=this.f(t,e),n=this.f(t,i);return this.a.rename(r,n,s)}C(t,e,i,s){const r=this.f(t,e),n=this.f(t,i);return this.a.copy(r,n,s)}D(t,e,i){const s=this.f(t,e),r=this.f(t,i);return this.a.cloneFile(s,r)}H(t,e){const i=new D({onWillAddFirstListener:()=>{this.F.set(e,this.L(t,i))},onDidRemoveLastListener:()=>{mt(this.F.get(e)),this.F.delete(e)}});return i.event}async I(t,e,i,s,r){const n=this.F.get(e);if(n){const o=this.f(t,s),a=n.watch(i,o,r);this.G.set(e+i,a)}}async J(t,e){const i=t+e,s=this.G.get(i);s&&(mt(s),this.G.delete(i))}dispose(){super.dispose();for(const[,t]of this.G)t.dispose();this.G.clear();for(const[,t]of this.F)t.dispose();this.F.clear()}},m4=class extends j{constructor(t,e,i,s){super(),this.c=t,this.f=s,this.a=new Map,this.b=this.B(new Ch(i)),this.g(e)}g(t){const e=this.B(new D);this.B(e.event(i=>{t.fire(i.map(s=>({resource:this.c.transformOutgoingURI(s.resource),type:s.type,cId:s.cId})))})),this.B(this.b.onDidChangeFile(i=>e.fire(i))),this.B(this.b.onDidWatchError(i=>t.fire(i)))}h(t){}j(t){}watch(t,e,i){const s=this.j(this.f);return Array.isArray(s)&&(i.excludes=[...i.excludes,...s]),this.a.set(t,this.b.watch(e,i)),be(()=>{mt(this.a.get(t)),this.a.delete(t)})}dispose(){for(const[,t]of this.a)t.dispose();this.a.clear(),super.dispose()}}}}),g4,lE=v({"out-build/vs/base/common/uriIpc.js"(){"use strict";Ke(),re(),g4=new class{transformIncoming(t){return t}transformOutgoing(t){return t}transformOutgoingURI(t){return t}transformOutgoingScheme(t){return t}}}});import{shell as hE}from"electron";var w4,v4,uE=v({"out-build/vs/platform/files/electron-main/diskFileSystemProviderServer.js"(){"use strict";we(),G(),re(),Ve(),ge(),cE(),lE(),jr(),w4=class extends p4{constructor(t,e,i){super(t,e),this.M=i}c(t){return g4}f(t,e){return $.revive(e)}async y(t,e,i){if(!i.useTrash)return super.y(t,e,i);const s=this.f(t,e),r=Zt(s.fsPath);try{await hE.trashItem(r)}catch(n){throw Yi(g(B?2054:2055,null,ze(r),us(n)),ae.Unknown)}}L(t,e){return new v4(t,e,this.b,this.M)}},v4=class extends m4{watch(t,e,i){if(i.recursive)throw Yi("Recursive file watching is not supported from main process for performance reasons.",ae.Unavailable);return super.watch(t,e,i)}}}}),de,Rh=v({"out-build/vs/platform/instantiation/common/descriptors.js"(){"use strict";de=class{constructor(t,e=[],i=!1){this.ctor=t,this.staticArguments=e,this.supportsDelayedInstantiation=i}}}}),Oh,hp=v({"out-build/vs/platform/instantiation/common/serviceCollection.js"(){"use strict";Oh=class{constructor(...t){this.a=new Map;for(const[e,i]of t)this.set(e,i)}set(t,e){const i=this.a.get(t);return this.a.set(t,e),i}has(t){return this.a.has(t)}get(t){return this.a.get(t)}}}});import{exec as Lh}from"child_process";import{totalmem as dE}from"os";function up(t){return new Promise((e,i)=>{let s;const r=new Map,n=dE();function o(l,h,u,f,p){const m=r.get(h);if(l===t||m){const w={name:a(u),cmd:u,pid:l,ppid:h,load:f,mem:B?p:n*(p/100)};r.set(l,w),l===t&&(s=w),m&&(m.children||(m.children=[]),m.children.push(w),m.children.length>1&&(m.children=m.children.sort((y,b)=>y.pid-b.pid)))}}function a(l){const h=/--utility-sub-type=network/i,u=/--crashes-directory/i,f=/\\pipe\\winpty-control/i,p=/conhost\.exe.+--headless/i,m=/--type=([a-zA-Z-]+)/;if(u.exec(l))return"electron-crash-reporter";if(f.exec(l))return"winpty-agent";if(p.exec(l))return"conpty-agent";let w=m.exec(l);if(w&&w.length===2)return w[1]==="renderer"?"window":w[1]==="utility"?h.exec(l)?"utility-network-service":"utility-process":w[1]==="extensionHost"?"extension-host":w[1];const y=/[a-zA-Z-]+\.js/g;let b="";do w=y.exec(l),w&&(b+=w+" ");while(w);return b&&l.indexOf("node ")<0&&l.indexOf("node.exe")<0?`electron-nodejs (${b})`:l}if(process.platform==="win32"){const l=h=>h.indexOf("\\\\?\\")===0||h.indexOf("\\??\\")===0?h.substring(4):h.indexOf('"\\\\?\\')===0||h.indexOf('"\\??\\')===0?'"'+h.substring(5):h;import("@vscode/windows-process-tree").then(h=>{h.getProcessList(t,u=>{if(!u){i(new Error(`Root process ${t} not found`));return}h.getProcessCpuUsage(u,f=>{const p=new Map;f.forEach(m=>{const w=l(m.commandLine||"");p.set(m.pid,{name:a(w),cmd:w,pid:m.pid,ppid:m.ppid,load:m.cpu||0,mem:m.memory||0})}),s=p.get(t),s?(p.forEach(m=>{const w=p.get(m.ppid);w&&(w.children||(w.children=[]),w.children.push(m))}),p.forEach(m=>{m.children&&(m.children=m.children.sort((w,y)=>w.pid-y.pid))}),e(s)):i(new Error(`Root process ${t} not found`))})},h.ProcessDataFlag.CommandLine|h.ProcessDataFlag.Memory)})}else{let l=function(){let h=[s];const u=[];for(;h.length;){const p=h.shift();p&&(u.push(p.pid),p.children&&(h=h.concat(p.children)))}let f=JSON.stringify(ei.asFileUri("vs/base/node/cpuUsage.sh").fsPath);f+=" "+u.join(" "),Lh(f,{},(p,m,w)=>{if(p||w)i(p||new Error(w.toString()));else{const y=m.toString().split(`
`);for(let b=0;b<u.length;b++){const E=r.get(u[b]);E.load=parseFloat(y[b])}if(!s){i(new Error(`Root process ${t} not found`));return}e(s)}})};var c=l;Lh("which ps",{},(h,u,f)=>{if(h||f)if(process.platform!=="linux")i(h||new Error(f.toString()));else{const p=JSON.stringify(ei.asFileUri("vs/base/node/ps.sh").fsPath);Lh(p,{},(m,w,y)=>{m||y?i(m||new Error(y.toString())):(y4(w,o),l())})}else{const p=u.toString().trim();Lh(`${p} -ax -o pid=,ppid=,pcpu=,pmem=,command=`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(w,y,b)=>{w||b&&!b.includes("screen size is bogus")?i(w||new Error(b.toString())):(y4(y,o),process.platform==="linux"?l():s?e(s):i(new Error(`Root process ${t} not found`)))})}})}})}function y4(t,e){const i=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,s=t.toString().split(`
`);for(const r of s){const n=i.exec(r.trim());n&&n.length===6&&e(parseInt(n[1]),parseInt(n[2]),n[5],parseFloat(n[3]),parseFloat(n[4]))}}var b4=v({"out-build/vs/base/node/ps.js"(){"use strict";Oe(),G()}}),Mh,fE=v({"out-build/vs/platform/process/electron-main/processMainService.js"(){"use strict";b4(),we(),F1(),bb(),Q(),uo(),Mh=class{constructor(e,i,s){this.a=e,this.b=i,this.c=s}async resolveProcesses(){const e=await this.c.getMainDiagnostics(),i=[];for(const r of e.windows)i.push([r.pid,`window [${r.id}] (${r.title})`]);for(const{pid:r,name:n}of Sr.getAll())i.push([r,n]);const s=[];try{s.push({name:g(2165,null),rootProcess:await up(process.pid)}),(await this.c.getRemoteDiagnostics({includeProcesses:!0})).forEach(n=>{M1(n)?s.push({name:n.hostName,rootProcess:n}):n.processes&&s.push({name:n.hostName,rootProcess:n.processes})})}catch(r){this.a.error(`Listing processes failed: ${r}`)}return{pidToNames:i,processes:s}}async getSystemStatus(){const[e,i]=await Promise.all([this.c.getMainDiagnostics(),this.c.getRemoteDiagnostics({includeProcesses:!1,includeWorkspaceMetadata:!1})]);return this.b.getDiagnostics(e,i)}async getSystemInfo(){const[e,i]=await Promise.all([this.c.getMainDiagnostics(),this.c.getRemoteDiagnostics({includeProcesses:!1,includeWorkspaceMetadata:!1})]);return await this.b.getSystemInfo(e,i)}async getPerformanceInfo(){try{const[e,i]=await Promise.all([this.c.getMainDiagnostics(),this.c.getRemoteDiagnostics({includeProcesses:!0,includeWorkspaceMetadata:!0})]);return await this.b.getPerformanceInfo(e,i)}catch(e){throw this.a.warn("issueService#getPerformanceInfo ",e.message),e}}},Mh=__decorate([__param(0,K),__param(1,hh),__param(2,Za)],Mh)}});function k4(t){const e=t.getKeyMap(),i=t.getCurrentKeyboardLayout();return{keyboardMapping:e,keyboardLayoutInfo:i}}var dp,Fh,pE=v({"out-build/vs/platform/keyboardLayout/electron-main/keyboardLayoutMainService.js"(){"use strict";G(),J(),T(),Z(),tt(),dp=V("keyboardLayoutMainService"),Fh=class extends j{constructor(e){super(),this.a=this.B(new D),this.onDidChangeKeyboardLayout=this.a.event,this.b=null,this.c=null,e.when(3).then(()=>this.f())}f(){return this.b||(this.b=this.g()),this.b}async g(){const e=await import("native-keymap");this.c=k4(e),s0||e.onDidChangeKeyboardLayout(()=>{this.c=k4(e),this.a.fire(this.c)})}async getKeyboardLayoutData(){return await this.f(),this.c}},Fh=__decorate([__param(0,_e)],Fh)}}),nc,S4=v({"out-build/vs/platform/url/common/url.js"(){"use strict";Z(),nc=V("urlService")}});import{app as mE}from"electron";var E4,fp,Nh,gE=v({"out-build/vs/platform/launch/electron-main/launchMainService.js"(){"use strict";kt(),G(),re(),gt(),Ue(),Qa(),Z(),Q(),S4(),Dt(),E4="launchMainService",fp=V(E4),Nh=class{constructor(e,i,s,r){this.a=e,this.b=i,this.c=s,this.d=r}async start(e,i){this.a.trace("Received data from other instance: ",e,i),N&&mE.focus({steal:!0});const s=this.e(e);if(s.length){let r=Promise.resolve();if(this.b.getWindowCount()===0){const n=(await this.b.openEmptyWindow({context:4})).at(0);n&&(r=n.ready())}r.then(()=>{for(const{uri:n,originalUrl:o}of s)this.c.open(n,{originalUrl:o})})}else return this.f(e,i)}e(e){return e["open-url"]&&e._urls&&e._urls.length>0?ft(e._urls.map(i=>{try{return{uri:$.parse(i),originalUrl:i}}catch{return null}})):[]}async f(e,i){const s=on(i)?0:4;let r=[];const n=e.wait&&e.waitMarkerFilePath?$.file(e.waitMarkerFilePath):void 0,o=e.remote||void 0,a={context:s,cli:e,userEnv:e["preserve-env"]||s===0?i:void 0,waitMarkerFileURI:n,remoteAuthority:o,forceProfile:e.profile,forceTempProfile:e["profile-temp"]};if(e.extensionDevelopmentPath)await this.b.openExtensionDevelopmentHostWindow(e.extensionDevelopmentPath,a);else if(!e._.length&&!e["folder-uri"]&&!e["file-uri"]){let c=!1;if(e["new-window"]||a.forceProfile||a.forceTempProfile)c=!0;else if(e["reuse-window"])c=!1;else switch(this.d.getValue("window")?.openWithoutArgumentsInNewWindow||"default"){case"on":c=!0;break;case"off":c=!1;break;default:c=!N}if(c)r=await this.b.open({...a,forceNewWindow:!0,forceEmpty:!0});else{const l=this.b.getLastActiveWindow();l?(this.b.openExistingWindow(l,a),r=[l]):r=await this.b.open({...a,forceEmpty:!0})}}else r=await this.b.open({...a,forceNewWindow:e["new-window"],preferNewWindow:!e["reuse-window"]&&!e.wait,forceReuseWindow:e["reuse-window"],diffMode:e.diff,mergeMode:e.merge,addMode:e.add,removeMode:e.remove,noRecentEntry:!!e["skip-add-to-recently-opened"],gotoLineMode:e.goto});if(n&&r.length===1&&r[0])return Promise.race([r[0].whenClosedOrLoaded,s8(n.fsPath)]).then(()=>{},()=>{})}async getMainProcessId(){return this.a.trace("Received request for process ID from other instance."),process.pid}},Nh=__decorate([__param(0,K),__param(1,yt),__param(2,nc),__param(3,Be)],Nh)}});function x4(t){return t.submenu!==void 0}function P4(t){return t.id==="vscode.menubar.separator"}function $4(t){return t.uri!==void 0}function wE(t){return!x4(t)&&!P4(t)&&!$4(t)}var vE=v({"out-build/vs/platform/menubar/common/menubar.js"(){"use strict"}});import{networkInterfaces as yE}from"os";function bE(t){const e=t.replace(/\-/g,":").toLowerCase();return!A4.has(e)}function kE(){const t=yE();for(const e in t){const i=t[e];if(i){for(const{mac:s}of i)if(bE(s))return s}}throw new Error("Unable to retrieve mac address (unexpected format)")}var A4,SE=v({"out-build/vs/base/node/macAddress.js"(){"use strict";A4=new Set(["00:00:00:00:00:00","ff:ff:ff:ff:ff:ff","ac:de:48:00:11:22"])}});import{networkInterfaces as EE}from"os";async function xE(t){return pp||(pp=(async()=>await PE(t)||gi())()),pp}async function PE(t){try{const e=await import("crypto"),i=kE();return e.createHash("sha256").update(i,"utf8").digest("hex")}catch(e){t(e);return}}async function $E(t){if(B){const e=await import("@vscode/windows-registry");try{return e.GetStringRegKey("HKEY_LOCAL_MACHINE",I4,"MachineId")||""}catch(i){return t(i),""}}return""}async function D4(t){try{return await(await import("@vscode/deviceid")).getDeviceId()}catch(e){return t(e),gi()}}var Wh,pp,I4,_h=v({"out-build/vs/base/node/id.js"(){"use strict";Zn(),Ei(),SE(),G(),Wh=new class{c(t){return this.a||(this.a=gr.forStrings(),this.a.set("00-50-56",!0),this.a.set("00-0C-29",!0),this.a.set("00-05-69",!0),this.a.set("00-03-FF",!0),this.a.set("00-1C-42",!0),this.a.set("00-16-3E",!0),this.a.set("08-00-27",!0),this.a.set("00:50:56",!0),this.a.set("00:0C:29",!0),this.a.set("00:05:69",!0),this.a.set("00:03:FF",!0),this.a.set("00:1C:42",!0),this.a.set("00:16:3E",!0),this.a.set("08:00:27",!0)),!!this.a.findSubstr(t)}value(){if(this.b===void 0){let t=0,e=0;const i=EE();for(const s in i){const r=i[s];if(r)for(const{mac:n,internal:o}of r)o||(e+=1,this.c(n.toUpperCase())&&(t+=1))}this.b=e>0?t/e:0}return this.b}},I4="Software\\Microsoft\\SQMClient"}});import*as C4 from"net";function AE(t,e,i,s=1){let r=!1;return new Promise(n=>{const o=setTimeout(()=>{if(!r)return r=!0,n(0)},i);mp(t,e,s,a=>{if(!r)return r=!0,clearTimeout(o),n(a)})})}function mp(t,e,i,s){if(e===0)return s(0);const r=new C4.Socket;r.once("connect",()=>(O4(r),mp(t+i,e-1,i,s))),r.once("data",()=>{}),r.once("error",n=>(O4(r),n.code!=="ECONNREFUSED"?mp(t+i,e-1,i,s):s(t))),r.connect(t,"127.0.0.1")}function DE(t,e){return R4(t,0,e).then(i=>i!==0)}function R4(t,e,i,s="127.0.0.1"){let r=!1,n,o=1;const a=C4.createServer({pauseOnConnect:!0});function c(l,h){r||(r=!0,a.removeAllListeners(),a.close(),n&&clearTimeout(n),h(l))}return new Promise(l=>{n=setTimeout(()=>{c(0,l)},i),a.on("listening",()=>{c(t,l)}),a.on("error",h=>{h&&(h.code==="EADDRINUSE"||h.code==="EACCES")&&o<e?(t++,o++,a.listen(t,s)):c(0,l)}),a.on("close",()=>{c(0,l)}),a.listen(t,s)})}function O4(t){try{t.removeAllListeners("connect"),t.removeAllListeners("error"),t.end(),t.destroy(),t.unref()}catch(e){console.error(e)}}var gp,L4=v({"out-build/vs/base/node/ports.js"(){"use strict";gp={1:!0,7:!0,9:!0,11:!0,13:!0,15:!0,17:!0,19:!0,20:!0,21:!0,22:!0,23:!0,25:!0,37:!0,42:!0,43:!0,53:!0,69:!0,77:!0,79:!0,87:!0,95:!0,101:!0,102:!0,103:!0,104:!0,109:!0,110:!0,111:!0,113:!0,115:!0,117:!0,119:!0,123:!0,135:!0,137:!0,139:!0,143:!0,161:!0,179:!0,389:!0,427:!0,465:!0,512:!0,513:!0,514:!0,515:!0,526:!0,530:!0,531:!0,532:!0,540:!0,548:!0,554:!0,556:!0,563:!0,587:!0,601:!0,636:!0,989:!0,990:!0,993:!0,995:!0,1719:!0,1720:!0,1723:!0,2049:!0,3659:!0,4045:!0,5060:!0,5061:!0,6e3:!0,6566:!0,6665:!0,6666:!0,6667:!0,6668:!0,6669:!0,6697:!0,10080:!0}}});import*as IE from"fs";import*as CE from"os";import*as RE from"child_process";async function OE(t=!1){return(wp===void 0||t)&&(wp=LE()),wp}async function LE(){const t=ME();if(t===void 0)return!1;if(t>=22e3){const e=FE();if(e)return new Promise(i=>{try{RE.execFile(e,["--status"],s=>i(!s))}catch{i(!1)}})}else{const e=NE();if(e)try{if((await IE.promises.stat(e)).isFile())return!0}catch{}}return!1}function ME(){const t=/(\d+)\.(\d+)\.(\d+)/g.exec(CE.release());if(t)return parseInt(t[3])}function M4(t){const e=process.env.SystemRoot;if(e){const i=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432");return M(e,i?"Sysnative":"System32",t)}}function FE(){return M4("wsl.exe")}function NE(){return M4("lxss\\LxssManager.dll")}var wp,WE=v({"out-build/vs/platform/remote/node/wsl.js"(){"use strict";ge()}}),Th,_E=v({"out-build/vs/platform/profiling/electron-main/windowProfiling.js"(){"use strict";le(),Q(),Th=class{constructor(e,i,s){this.a=e,this.b=i,this.c=s}async inspect(e){await this.d();const i=this.a.webContents.debugger;await i.sendCommand("Profiler.start"),this.c.warn("[perf] profiling STARTED",this.b),await mi(e);const s=await i.sendCommand("Profiler.stop");return this.c.warn("[perf] profiling DONE",this.b),await this.e(),s.profile}async d(){const e=this.a.webContents.debugger;e.attach(),await e.sendCommand("Profiler.enable")}async e(){const e=this.a.webContents.debugger;await e.sendCommand("Profiler.disable"),e.detach()}},Th=__decorate([__param(2,K)],Th)}});function TE(t){return t.res.statusCode&&t.res.statusCode>=200&&t.res.statusCode<300||t.res.statusCode===1223}function BE(t){return t.res.statusCode===204}async function F4(t){if(!TE(t))throw new Error("Server returned "+t.res.statusCode);if(BE(t))return null;const i=(await ba(t.stream)).toString();try{return JSON.parse(i)}catch(s){throw s.message+=`:
`+i,s}}function UE(t=!0,e=!0){if(vp===t&&yp===e)return;vp=t,yp=e;const i=zt.as(Si.Configuration),s=Bh;Bh=[{id:"http",order:15,title:g(2205,null),type:"object",scope:2,properties:{"http.useLocalProxyConfiguration":{type:"boolean",default:e,markdownDescription:g(2206,null),restricted:!0}}},{id:"http",order:15,title:g(2207,null),type:"object",scope:1,properties:{"http.electronFetch":{type:"boolean",default:!1,description:g(2208,null),restricted:!0}}},{id:"http",order:15,title:g(2209,null),type:"object",scope:t?1:2,properties:{"http.proxy":{type:"string",pattern:"^(https?|socks|socks4a?|socks5h?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$",markdownDescription:g(2210,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyStrictSSL":{type:"boolean",default:!0,markdownDescription:g(2211,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyKerberosServicePrincipal":{type:"string",markdownDescription:g(2212,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.noProxy":{type:"array",items:{type:"string"},markdownDescription:g(2213,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyAuthorization":{type:["null","string"],default:null,markdownDescription:g(2214,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxySupport":{type:"string",enum:["off","on","fallback","override"],enumDescriptions:[g(2215,null),g(2216,null),g(2217,null),g(2218,null)],default:"override",markdownDescription:g(2219,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.systemCertificates":{type:"boolean",default:!0,markdownDescription:g(2220,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.experimental.systemCertificatesV2":{type:"boolean",tags:["experimental"],default:!1,markdownDescription:g(2221,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.fetchAdditionalSupport":{type:"boolean",default:!0,markdownDescription:g(2222,null,"`#http.useLocalProxyConfiguration#`","`#http.proxySupport#`","`#http.systemCertificates#`"),restricted:!0}}}],i.updateConfigurations({add:Bh,remove:s})}var cn,N4,W4,Bh,vp,yp,ln=v({"out-build/vs/platform/request/common/request.js"(){"use strict";Ke(),De(),T(),we(),lr(),Z(),ls(),cn=V("requestService"),N4=class{constructor(t){this.b=t}toJSON(){if(!this.a){const t=Object.create(null);for(const e in this.b)e.toLowerCase()==="authorization"||e.toLowerCase()==="proxy-authorization"?t[e]="*****":t[e]=this.b[e];this.a=t}return this.a}},W4=class extends j{constructor(t){super(),this.b=t,this.a=0}async c(t,e){const i=`#${++this.a}: ${t.url}`;this.b.trace(`${i} - begin`,t.type,new N4(t.headers??{}));try{const s=await e();return this.b.trace(`${i} - end`,t.type,s.res.statusCode,s.res.headers),s}catch(s){throw this.b.error(`${i} - error`,t.type,Li(s)),s}}},Bh=[],vp=void 0,yp=void 0,UE()}});import*as Uh from"fs";import{exec as _4}from"child_process";import{app as oc,BrowserWindow as jh,clipboard as Er,contentTracing as jE,Menu as ac,powerMonitor as zE,screen as cc,shell as hn,webContents as HE}from"electron";import{arch as VE,cpus as qE,freemem as GE,loadavg as JE,platform as KE,release as ZE,totalmem as YE,type as QE}from"os";import{promisify as T4}from"util";var un,lc,zh=v({"out-build/vs/platform/native/electron-main/nativeHostMainService.js"(){"use strict";zr(),J(),T(),Oe(),ge(),G(),re(),h4(),_h(),gt(),L4(),we(),oo(),Pt(),Z(),tt(),Q(),Tt(),Oa(),Ma(),Dt(),qt(),rn(),Ke(),WE(),_E(),Ya(),De(),Ue(),Hy(),ln(),ki(),un=V("nativeHostMainService"),lc=class extends j{constructor(e,i,s,r,n,o,a,c,l,h,u,f,p){super(),this.a=e,this.b=i,this.c=s,this.f=r,this.g=n,this.h=o,this.j=a,this.m=c,this.n=l,this.r=h,this.s=u,this.t=f,this.u=p,this.w=this.B(new D),this.onDidChangePassword=this.w.event,this.onDidOpenMainWindow=x.map(this.a.onDidOpenWindow,m=>m.id),this.onDidTriggerWindowSystemContextMenu=x.any(x.map(this.a.onDidTriggerSystemContextMenu,({window:m,x:w,y})=>({windowId:m.id,x:w,y})),x.map(this.b.onDidTriggerSystemContextMenu,({window:m,x:w,y})=>({windowId:m.id,x:w,y}))),this.onDidMaximizeWindow=x.any(x.map(this.a.onDidMaximizeWindow,m=>m.id),x.map(this.b.onDidMaximizeWindow,m=>m.id)),this.onDidUnmaximizeWindow=x.any(x.map(this.a.onDidUnmaximizeWindow,m=>m.id),x.map(this.b.onDidUnmaximizeWindow,m=>m.id)),this.onDidChangeWindowFullScreen=x.any(x.map(this.a.onDidChangeFullScreen,m=>({windowId:m.window.id,fullscreen:m.fullscreen})),x.map(this.b.onDidChangeFullScreen,m=>({windowId:m.window.id,fullscreen:m.fullscreen}))),this.onDidChangeWindowAlwaysOnTop=x.any(x.None,x.map(this.b.onDidChangeAlwaysOnTop,m=>({windowId:m.window.id,alwaysOnTop:m.alwaysOnTop}))),this.onDidBlurMainWindow=x.filter(x.fromNodeEventEmitter(oc,"browser-window-blur",(m,w)=>w.id),m=>!!this.a.getWindowById(m)),this.onDidFocusMainWindow=x.any(x.map(x.filter(x.map(this.a.onDidChangeWindowsCount,()=>this.a.getLastActiveWindow()),m=>!!m),m=>m.id),x.filter(x.fromNodeEventEmitter(oc,"browser-window-focus",(m,w)=>w.id),m=>!!this.a.getWindowById(m))),this.onDidBlurMainOrAuxiliaryWindow=x.any(this.onDidBlurMainWindow,x.map(x.filter(x.fromNodeEventEmitter(oc,"browser-window-blur",(m,w)=>this.b.getWindowByWebContents(w.webContents)),m=>!!m),m=>m.id)),this.onDidFocusMainOrAuxiliaryWindow=x.any(this.onDidFocusMainWindow,x.map(x.filter(x.fromNodeEventEmitter(oc,"browser-window-focus",(m,w)=>this.b.getWindowByWebContents(w.webContents)),m=>!!m),m=>m.id)),this.onDidResumeOS=x.fromNodeEventEmitter(zE,"resume"),this.onDidChangeColorScheme=this.m.onDidChangeColorScheme,this.onDidChangeDisplay=x.debounce(x.any(x.filter(x.fromNodeEventEmitter(cc,"display-metrics-changed",(m,w,y)=>y),m=>!(Array.isArray(m)&&m.length===1&&m[0]==="workArea")),x.fromNodeEventEmitter(cc,"display-added"),x.fromNodeEventEmitter(cc,"display-removed")),()=>{},100)}get windowId(){throw new Error("Not implemented in electron-main")}async getWindows(e,i){const s=this.a.getWindows().map(n=>({id:n.id,workspace:n.openedWorkspace??Gl(n.backupPath,n.isExtensionDevelopmentHost),title:n.win?.getTitle()??"",filename:n.getRepresentedFilename(),dirty:n.isDocumentEdited()})),r=[];return i.includeAuxiliaryWindows&&r.push(...this.b.getWindows().map(n=>({id:n.id,parentId:n.parentId,title:n.win?.getTitle()??"",filename:n.getRepresentedFilename()}))),[...s,...r]}async getWindowCount(e){return this.a.getWindowCount()}async getActiveWindowId(e){const i=this.a.getFocusedWindow()||this.a.getLastActiveWindow();if(i)return i.id}async getActiveWindowPosition(){const e=this.a.getFocusedWindow()||this.a.getLastActiveWindow();if(e)return e.getBounds()}async getNativeWindowHandle(e,i){const s=this.J(i,e);if(s?.win)return q.wrap(s.win.getNativeWindowHandle())}openWindow(e,i,s){return Array.isArray(i)?this.z(e,i,s):this.C(e,i)}async z(e,i,s=Object.create(null)){i.length>0&&await this.a.open({context:5,contextWindowId:e,urisToOpen:i,cli:this.g.args,forceNewWindow:s.forceNewWindow,forceReuseWindow:s.forceReuseWindow,preferNewWindow:s.preferNewWindow,diffMode:s.diffMode,mergeMode:s.mergeMode,addMode:s.addMode,removeMode:s.removeMode,gotoLineMode:s.gotoLineMode,noRecentEntry:s.noRecentEntry,waitMarkerFileURI:s.waitMarkerFileURI,remoteAuthority:s.remoteAuthority||void 0,forceProfile:s.forceProfile,forceTempProfile:s.forceTempProfile})}async C(e,i){await this.a.openEmptyWindow({context:5,contextWindowId:e},i)}async isFullScreen(e,i){return this.J(i?.targetWindowId,e)?.isFullScreen??!1}async toggleFullScreen(e,i){this.J(i?.targetWindowId,e)?.toggleFullScreen()}async getCursorScreenPoint(e){const i=cc.getCursorScreenPoint(),s=cc.getDisplayNearestPoint(i);return{point:i,display:s.bounds}}async isMaximized(e,i){return this.J(i?.targetWindowId,e)?.win?.isMaximized()??!1}async maximizeWindow(e,i){this.J(i?.targetWindowId,e)?.win?.maximize()}async unmaximizeWindow(e,i){this.J(i?.targetWindowId,e)?.win?.unmaximize()}async minimizeWindow(e,i){this.J(i?.targetWindowId,e)?.win?.minimize()}async moveWindowTop(e,i){this.J(i?.targetWindowId,e)?.win?.moveTop()}async isWindowAlwaysOnTop(e,i){return this.J(i?.targetWindowId,e)?.win?.isAlwaysOnTop()??!1}async toggleWindowAlwaysOnTop(e,i){const s=this.J(i?.targetWindowId,e);s?.win?.setAlwaysOnTop(!s.win.isAlwaysOnTop())}async setWindowAlwaysOnTop(e,i,s){this.J(s?.targetWindowId,e)?.win?.setAlwaysOnTop(i)}async positionWindow(e,i,s){const r=this.J(s?.targetWindowId,e);if(r?.win){if(r.win.isFullScreen()){const n=x.toPromise(x.once(x.fromNodeEventEmitter(r.win,"leave-full-screen")));r.win.setFullScreen(!1),await n}r.win.setBounds(i)}}async updateWindowControls(e,i){this.J(i?.targetWindowId,e)?.updateWindowControls(i)}async focusWindow(e,i){this.J(i?.targetWindowId,e)?.focus({mode:i?.mode??0})}async setMinimumSize(e,i,s){const r=this.L(e);if(r?.win){const[n,o]=r.win.getSize(),[a,c]=r.win.getMinimumSize(),[l,h]=[i??a,s??c],[u,f]=[Math.max(n,l),Math.max(o,h)];(a!==l||c!==h)&&r.win.setMinimumSize(l,h),(n!==u||o!==f)&&r.win.setSize(u,f)}}async saveWindowSplash(e,i){const s=this.L(e);this.m.saveWindowSplash(e,s?.openedWorkspace,i)}async installShellCommand(e){const{source:i,target:s}=await this.D();try{const{symbolicLink:r}=await Nt.stat(i);if(r&&!r.dangling){const n=await l4(i);if(s===n)return}await Uh.promises.unlink(i)}catch(r){if(r.code!=="ENOENT")throw r}try{await Uh.promises.symlink(s,i)}catch(r){if(r.code!=="EACCES"&&r.code!=="ENOENT")throw r;const{response:n}=await this.showMessageBox(e,{type:"info",message:g(2153,null,this.j.nameShort),buttons:[g(2154,null),g(2155,null)]});if(n===1)throw new Yt;try{const o=`osascript -e "do shell script \\"mkdir -p /usr/local/bin && ln -sf '${s}' '${i}'\\" with administrator privileges"`;await T4(_4)(o)}catch{throw new Error(g(2156,null,i))}}}async uninstallShellCommand(e){const{source:i}=await this.D();try{await Uh.promises.unlink(i)}catch(s){switch(s.code){case"EACCES":{const{response:r}=await this.showMessageBox(e,{type:"info",message:g(2157,null,this.j.nameShort),buttons:[g(2158,null),g(2159,null)]});if(r===1)throw new Yt;try{const n=`osascript -e "do shell script \\"rm '${i}'\\" with administrator privileges"`;await T4(_4)(n)}catch{throw new Error(g(2160,null,i))}break}case"ENOENT":break;default:throw s}}}async D(){const e=nr(this.g.appRoot,"bin","code"),i=`/usr/local/bin/${this.j.applicationName}`;if(!await te.exists(e))throw new Error(g(2161,null,e));return{source:i,target:e}}async showMessageBox(e,i){const s=this.J(i?.targetWindowId,e);return this.c.showMessageBox(i,s?.win??void 0)}async showSaveDialog(e,i){const s=this.J(i?.targetWindowId,e);return this.c.showSaveDialog(i,s?.win??void 0)}async showOpenDialog(e,i){const s=this.J(i?.targetWindowId,e);return this.c.showOpenDialog(i,s?.win??void 0)}async pickFileFolderAndOpen(e,i){const s=await this.c.pickFileFolder(i);s&&await this.F(await Promise.all(s.map(async r=>await Nt.existsDirectory(r)?{folderUri:$.file(r)}:{fileUri:$.file(r)})),i,e)}async pickFolderAndOpen(e,i){const s=await this.c.pickFolder(i);s&&await this.F(s.map(r=>({folderUri:$.file(r)})),i,e)}async pickFileAndOpen(e,i){const s=await this.c.pickFile(i);s&&await this.F(s.map(r=>({fileUri:$.file(r)})),i,e)}async pickWorkspaceAndOpen(e,i){const s=await this.c.pickWorkspace(i);s&&await this.F(s.map(r=>({workspaceUri:$.file(r)})),i,e)}async F(e,i,s){await this.a.open({context:3,contextWindowId:s,cli:this.g.args,urisToOpen:e,forceNewWindow:i.forceNewWindow})}async showItemInFolder(e,i){hn.showItemInFolder(i)}async setRepresentedFilename(e,i,s){this.J(s?.targetWindowId,e)?.setRepresentedFilename(i)}async setDocumentEdited(e,i,s){this.J(s?.targetWindowId,e)?.setDocumentEdited(i)}async openExternal(e,i,s){this.g.unsetSnapExportedVariables();try{_7(i,O.http,O.https)?this.G(i,s):hn.openExternal(i)}finally{this.g.restoreSnapExportedVariables()}return!0}async G(e,i){const s=i??this.r.getValue("workbench.externalBrowser");if(!s)return hn.openExternal(e);if((s.includes(ce.sep)||s.includes(Ge.sep))&&!await te.exists(s))return this.h.error(`Configured external browser path does not exist: ${s}`),hn.openExternal(e);try{const{default:r}=await import("open"),n=await r(e,{app:{name:Object.hasOwn(r.apps,s)?r.apps[s]:s}});B||n.stderr?.once("data",o=>(this.h.error(`Error openening external URL '${e}' using browser '${s}': ${o.toString()}`),hn.openExternal(e)))}catch(r){return this.h.error(`Unable to open external URL '${e}' using browser '${s}' due to ${r}.`),hn.openExternal(e)}}moveItemToTrash(e,i){return hn.trashItem(i)}async isAdmin(){let e;return B?e=(await import("native-is-elevated")).default():e=process.getuid?.()===0,e}async writeElevated(e,i,s,r){const n=await import("@vscode/sudo-prompt"),o=ol(this.g.userDataPath,"code-elevated");await te.writeFile(o,JSON.stringify({source:i.fsPath,target:s.fsPath}));try{await new Promise((a,c)=>{const l=[`"${this.H}"`];r?.unlock&&l.push("--file-chmod"),l.push("--file-write",`"${o}"`);const h={name:this.j.nameLong.replace("-",""),icns:N&&this.g.isBuilt?M(dt(this.g.appRoot),`${this.j.nameShort}.icns`):void 0};this.h.trace(`[sudo-prompt] running command: ${l.join(" ")}`),n.exec(l.join(" "),h,(u,f,p)=>{f&&this.h.trace(`[sudo-prompt] received stdout: ${f}`),p&&this.h.error(`[sudo-prompt] received stderr: ${p}`),u?c(u):a(void 0)})})}finally{await Uh.promises.unlink(o)}}async isRunningUnderARM64Translation(){return Se||B?!1:oc.runningUnderARM64Translation}get H(){return B?this.g.isBuilt?M(dt(process.execPath),"bin",`${this.j.applicationName}.cmd`):M(this.g.appRoot,"scripts","code-cli.bat"):Se?this.g.isBuilt?M(dt(process.execPath),"bin",`${this.j.applicationName}`):M(this.g.appRoot,"scripts","code-cli.sh"):this.g.isBuilt?M(this.g.appRoot,"bin","code"):M(this.g.appRoot,"scripts","code-cli.sh")}async getOSStatistics(){return{totalmem:YE(),freemem:GE(),loadavg:JE()}}async getOSProperties(){return{arch:VE(),platform:KE(),release:ZE(),type:QE(),cpus:qE()}}async getOSVirtualMachineHint(){return Wh.value()}async getOSColorScheme(){return this.m.getColorScheme()}async hasWSLFeatureInstalled(){return B&&OE()}async getScreenshot(e,i,s){const o=(await this.J(s?.targetWindowId,e)?.win?.webContents.capturePage(i))?.toJPEG(95);return o&&q.wrap(o)}async getProcessId(e){return this.J(void 0,e)?.win?.webContents.getOSProcessId()}async killProcess(e,i,s){process.kill(i,s)}async readClipboardText(e,i){return Er.readText(i)}async triggerPaste(e,i){return this.J(i?.targetWindowId,e)?.win?.webContents.paste()??Promise.resolve()}async readImage(){return Er.readImage().toPNG()}async writeClipboardText(e,i,s){return Er.writeText(i,s)}async readClipboardFindText(e){return Er.readFindText()}async writeClipboardFindText(e,i){return Er.writeFindText(i)}async writeClipboardBuffer(e,i,s,r){return Er.writeBuffer(i,Buffer.from(s.buffer),r)}async readClipboardBuffer(e,i){return q.wrap(Er.readBuffer(i))}async hasClipboard(e,i,s){return Er.has(i,s)}async newWindowTab(){await this.a.open({context:5,cli:this.g.args,forceNewTabbedWindow:!0,forceEmpty:!0,remoteAuthority:this.g.args.remote||void 0})}async showPreviousWindowTab(){ac.sendActionToFirstResponder("selectPreviousTab:")}async showNextWindowTab(){ac.sendActionToFirstResponder("selectNextTab:")}async moveWindowTabToNewWindow(){ac.sendActionToFirstResponder("moveTabToNewWindow:")}async mergeAllWindowTabs(){ac.sendActionToFirstResponder("mergeAllWindows:")}async toggleWindowTabsBar(){ac.sendActionToFirstResponder("toggleTabBar:")}async updateTouchBar(e,i){this.L(e)?.updateTouchBar(i)}async notifyReady(e){this.L(e)?.setReady()}async relaunch(e,i){return this.f.relaunch(i)}async reload(e,i){const s=this.L(e);if(s){if(Bt(s.openedWorkspace)){const r=s.openedWorkspace.configPath;if(r.scheme===O.file&&(await this.n.resolveLocalWorkspace(r))?.transient)return this.openWindow(s.id,{forceReuseWindow:!0})}return this.f.reload(s,i?.disableExtensions!==void 0?{_:[],"disable-extensions":i.disableExtensions}:void 0)}}async closeWindow(e,i){return this.J(i?.targetWindowId,e)?.win?.close()}async quit(e){const i=this.a.getLastActiveWindow();i?.isExtensionDevelopmentHost&&this.a.getWindowCount()>1&&i.win?i.win.close():this.f.quit()}async exit(e,i){await this.f.kill(i)}async resolveProxy(e,i){return this.L(e)?.win?.webContents?.session?.resolveProxy(i)}async lookupAuthorization(e,i){return this.t.lookupAuthorization(i)}async lookupKerberosAuthorization(e,i){return this.s.lookupKerberosAuthorization(i)}async loadCertificates(e){return this.s.loadCertificates()}isPortFree(e,i){return DE(i,1e3)}findFreePort(e,i,s,r,n=1){return AE(i,s,r,n)}async openDevTools(e,i){this.J(i?.targetWindowId,e)?.win?.webContents.openDevTools(i?.mode?{mode:i.mode,activate:i.activate}:void 0)}async toggleDevTools(e,i){this.J(i?.targetWindowId,e)?.win?.webContents.toggleDevTools()}async openGPUInfoWindow(e){const i=this.L(e);if(i){if(typeof this.I!="number"){const s=this.u.invokeFunction(d1,Yr(),{forceNativeTitlebar:!0});s.backgroundColor=void 0;const r=new jh(s);r.setMenuBarVisibility(!1),r.loadURL("chrome://gpu"),r.once("ready-to-show",()=>r.show()),r.once("close",()=>this.I=void 0),i.win?.on("close",()=>{this.I&&(jh.fromId(this.I)?.close(),this.I=void 0)}),this.I=r.id}if(typeof this.I=="number"){const s=jh.fromId(this.I);s?.isMinimized()&&s?.restore(),s?.focus()}}}async stopTracing(e){if(!this.g.args.trace)return;const i=await jE.stopRecording(`${ol(this.g.userHome.fsPath,this.j.applicationName)}.trace.txt`);await this.c.showMessageBox({type:"info",message:g(2162,null),detail:g(2163,null,i),buttons:[g(2164,null)]},jh.getFocusedWindow()??void 0),this.showItemInFolder(void 0,i)}async profileRenderer(e,i,s){const r=this.L(e);if(!r||!r.win)throw new Error;return await new Th(r.win,i,this.h).inspect(s)}async windowsGetStringRegKey(e,i,s,r){if(!B)return;const n=await import("@vscode/windows-registry");try{return n.GetStringRegKey(i,s,r)}catch{return}}J(e,i){return this.L(e)??this.M(e)??this.L(i)}L(e){if(typeof e=="number")return this.a.getWindowById(e)}M(e){if(typeof e!="number")return;const i=HE.fromId(e);if(i)return this.b.getWindowByWebContents(i)}},__decorate([ue],lc.prototype,"H",null),lc=__decorate([__param(0,yt),__param(1,nn),__param(2,br),__param(3,_e),__param(4,ht),__param(5,K),__param(6,nt),__param(7,Xn),__param(8,kr),__param(9,Be),__param(10,cn),__param(11,oh),__param(12,cs)],lc)}}),B4,U4,j4,ve,dn,xr=v({"out-build/vs/platform/update/common/update.js"(){"use strict";$e(),Z(),function(t){t.Uninitialized="uninitialized",t.Idle="idle",t.Disabled="disabled",t.CheckingForUpdates="checking for updates",t.AvailableForDownload="available for download",t.Downloading="downloading",t.Downloaded="downloaded",t.Updating="updating",t.Ready="ready"}(B4||(B4={})),function(t){t[t.Setup=0]="Setup",t[t.Archive=1]="Archive",t[t.Snap=2]="Snap"}(U4||(U4={})),function(t){t[t.NotBuilt=0]="NotBuilt",t[t.DisabledByEnvironment=1]="DisabledByEnvironment",t[t.ManuallyDisabled=2]="ManuallyDisabled",t[t.MissingConfiguration=3]="MissingConfiguration",t[t.InvalidConfiguration=4]="InvalidConfiguration",t[t.RunningAsAdmin=5]="RunningAsAdmin"}(j4||(j4={})),ve={Uninitialized:{type:"uninitialized"},Disabled:t=>({type:"disabled",reason:t}),Idle:(t,e)=>({type:"idle",updateType:t,error:e}),CheckingForUpdates:t=>({type:"checking for updates",explicit:t}),AvailableForDownload:t=>({type:"available for download",update:t}),Downloading:{type:"downloading"},Downloaded:t=>({type:"downloaded",update:t}),Updating:t=>({type:"updating",update:t}),Ready:t=>({type:"ready",update:t})},dn=V("updateService")}});import{app as fn}from"electron";var $i,hc,Hh,Vh=v({"out-build/vs/platform/workspaces/electron-main/workspacesHistoryMainService.js"(){"use strict";kt(),le(),J(),hr(),T(),Oe(),G(),et(),re(),gt(),we(),Z(),tt(),Q(),nh(),H1(),qt(),rn(),Qt(),oo(),hc=V("workspacesHistoryMainService"),Hh=class extends j{static{$i=this}static{this.a=500}static{this.b="history.recentlyOpenedPathsList"}constructor(e,i,s,r,n){super(),this.f=e,this.g=i,this.h=s,this.j=r,this.m=n,this.c=this.B(new D),this.onDidChangeRecentlyOpened=this.c.event,this.H=this.B(new Us(800)),this.n()}n(){this.h.when(4).then(()=>this.I()),this.B(this.g.onDidEnterWorkspace(e=>this.addRecentlyOpened([{workspace:e.workspace,remoteAuthority:e.window.remoteAuthority}])))}async addRecentlyOpened(e){let i=[],s=[];for(const n of e)if(j1(n))!this.g.isUntitledWorkspace(n.workspace)&&!this.w(i,n.workspace)&&i.push(n);else if(gh(n))this.y(i,n.folderUri)||i.push(n);else{const o=this.z(s,n.fileUri),a=n.fileUri.scheme===O.file&&$i.G.indexOf(as(n.fileUri))>=0;!o&&!a&&(s.push(n),B&&n.fileUri.scheme===O.file&&fn.addRecentDocument(n.fileUri.fsPath))}const r=await this.r({workspaces:i,files:s});i=r.workspaces,s=r.files,i.length>$i.a&&(i.length=$i.a),s.length>$i.a&&(s.length=$i.a),await this.t({workspaces:i,files:s}),this.c.fire(),N&&this.H.trigger(()=>this.N())}async removeRecentlyOpened(e){const i=o=>{const a=this.u(o);for(const c of e)if(Ze.isEqual(c,a))return!1;return!0},s=await this.getRecentlyOpened(),r=s.workspaces.filter(i),n=s.files.filter(i);(r.length!==s.workspaces.length||n.length!==s.files.length)&&(await this.t({files:n,workspaces:r}),this.c.fire(),N&&this.H.trigger(()=>this.N()))}async clearRecentlyOpened(e){if(e?.confirm){const{response:i}=await this.m.showMessageBox({type:"warning",buttons:[g(2662,null),g(2663,null)],message:g(2664,null),detail:g(2665,null),cancelId:1});if(i!==0)return}await this.t({workspaces:[],files:[]}),fn.clearRecentDocuments(),this.c.fire()}async getRecentlyOpened(){return this.r()}async r(e){const i=new Rt(n=>Ze.getComparisonKey(n));if(e?.workspaces)for(const n of e.workspaces)i.set(this.u(n),n);const s=new Rt(n=>Ze.getComparisonKey(n));if(e?.files)for(const n of e.files)s.set(this.u(n),n);const r=await this.s();for(const n of r.workspaces){const o=i.get(this.u(n));o?o.label=o.label??n.label:i.set(this.u(n),n)}for(const n of r.files){const o=s.get(this.u(n));o?o.label=o.label??n.label:s.set(this.u(n),n)}return{workspaces:[...i.values()],files:[...s.values()]}}async s(){await this.j.whenReady;let e;const i=this.j.get($i.b,-1);if(typeof i=="string")try{e=JSON.parse(i)}catch(s){this.f.error("Unexpected error parsing opened paths list",s)}return Tk(e,this.f)}async t(e){await this.j.whenReady,this.j.store($i.b,JSON.stringify(Bk(e)),-1,1)}u(e){return gh(e)?e.folderUri:Ok(e)?e.fileUri:e.workspace.configPath}w(e,i){return!!e.find(s=>j1(s)&&s.workspace.id===i.id)}y(e,i){return!!e.find(s=>gh(s)&&Ze.isEqual(s.folderUri,i))}z(e,i){return!!e.find(s=>Ze.isEqual(s.fileUri,i))}static{this.C=7}static{this.D=10}static{this.F=7}static{this.G=["COMMIT_EDITMSG","MERGE_MSG","git-rebase-todo"]}async I(){B&&(await this.J(),this.B(this.onDidChangeRecentlyOpened(()=>this.J())))}async J(){if(!B)return;const e=[];if(e.push({type:"tasks",items:[{type:"task",title:g(2666,null),description:g(2667,null),program:process.execPath,args:"-n",iconPath:process.execPath,iconIndex:0}]}),(await this.getRecentlyOpened()).workspaces.length>0){const i=[];for(const n of fn.getJumpListSettings().removedItems){const o=n.args;if(o){const a=/^--(folder|file)-uri\s+"([^"]+)"$/.exec(o);a&&i.push($.parse(a[2]))}}await this.removeRecentlyOpened(i);let s=!1;const r=ft((await this.getRecentlyOpened()).workspaces.slice(0,$i.F).map(n=>{const o=j1(n)?n.workspace:n.folderUri,{title:a,description:c}=this.L(o,n.label);let l;return $.isUri(o)?l=`--folder-uri "${o.toString()}"`:(s=!0,l=`--file-uri "${o.configPath.toString()}"`),{type:"task",title:a.substr(0,255),description:c.substr(0,255),program:process.execPath,args:l,iconPath:"explorer.exe",iconIndex:0}}));r.length>0&&e.push({type:"custom",name:g(s?2668:2669,null),items:r})}e.push({type:"recent"});try{const i=fn.setJumpList(e);i&&i!=="ok"&&this.f.warn(`updateWindowsJumpList#setJumpList unexpected result: ${i}`)}catch(i){this.f.warn("updateWindowsJumpList#setJumpList",i)}}L(e,i){if(i)return{title:R8(i).name,description:i};if($.isUri(e))return{title:as(e),description:this.M(e)};if(this.g.isUntitledWorkspace(e))return{title:g(2670,null),description:""};let s=as(e.configPath);return s.endsWith(Ta)&&(s=s.substr(0,s.length-Ta.length-1)),{title:g(2671,null,s),description:this.M(e.configPath)}}M(e){return e.scheme==="file"?Pf(e.fsPath):e.toString()}async N(){if(!N)return;fn.clearRecentDocuments();const e=await this.getRecentlyOpened(),i=[];let s=0;for(let n=0;n<e.workspaces.length&&s<$i.C;n++){const o=this.u(e.workspaces[n]);if(o.scheme===O.file){const a=pi(o);await te.exists(a)&&(i.push(a),s++)}}const r=[];for(let n=0;n<e.files.length&&s<$i.D;n++){const o=this.u(e.files[n]);if(o.scheme===O.file){const a=pi(o);if($i.G.includes(as(o))||i.includes(a))continue;await te.exists(a)&&(r.push(a),s++)}}r.reverse().forEach(n=>fn.addRecentDocument(n)),i.reverse().forEach(n=>fn.addRecentDocument(n))}},Hh=$i=__decorate([__param(0,K),__param(1,kr),__param(2,_e),__param(3,Ha),__param(4,br)],Hh)}});import{app as XE,BrowserWindow as qh,Menu as ut,MenuItem as Ie}from"electron";function Zs(){return new Ie({type:"separator"})}var Gh,uc,Jh,ex=v({"out-build/vs/platform/menubar/electron-main/menubar.js"(){"use strict";le(),Et(),hr(),G(),re(),we(),Ya(),Ue(),Pt(),tt(),Q(),vE(),zh(),Tt(),Wi(),ai(),xr(),Zr(),Dt(),Vh(),T(),uc="menu",Jh=class extends j{static{Gh=this}static{this.a="lastKnownMenubarData"}constructor(e,i,s,r,n,o,a,c,l,h,u,f){super(),this.u=e,this.w=i,this.y=s,this.z=r,this.C=n,this.D=o,this.F=a,this.G=c,this.H=l,this.I=h,this.J=u,this.L=f,this.t=Object.create(null),this.j=new Ki(()=>this.S(),0),this.m=new Ki(()=>{this.n=[]},1e4),this.r=Object.create(null),this.s=Object.create(null),this.h=ty(i),(N||this.h)&&this.M(),this.N(),this.f=!1,this.g=!1,this.n=[],this.X(),this.O()}M(){const e=this.F.getItem(Gh.a);e&&(e.menus&&(this.r=e.menus),e.keybindings&&(this.s=e.keybindings))}N(){this.t["workbench.action.files.newUntitledFile"]=(o,a,c)=>{this.mb({type:"commandId",commandId:"workbench.action.files.newUntitledFile"})||this.y.openEmptyWindow({context:2,contextWindowId:a?.id})},this.t["workbench.action.newWindow"]=(o,a,c)=>this.y.openEmptyWindow({context:2,contextWindowId:a?.id}),this.t["workbench.action.files.openFileFolder"]=(o,a,c)=>this.I.pickFileFolderAndOpen(void 0,{forceNewWindow:this.fb(c),telemetryExtraData:{from:uc}}),this.t["workbench.action.files.openFolder"]=(o,a,c)=>this.I.pickFolderAndOpen(void 0,{forceNewWindow:this.fb(c),telemetryExtraData:{from:uc}}),this.t["workbench.action.openWorkspace"]=(o,a,c)=>this.I.pickWorkspaceAndOpen(void 0,{forceNewWindow:this.fb(c),telemetryExtraData:{from:uc}}),this.t["workbench.action.clearRecentFiles"]=()=>this.D.clearRecentlyOpened({confirm:!0});const e=this.J.youTubeUrl;e&&(this.t["workbench.action.openYouTubeUrl"]=()=>this.pb(e,"openYouTubeUrl"));const i=this.J.requestFeatureUrl;i&&(this.t["workbench.action.openRequestFeatureUrl"]=()=>this.pb(i,"openUserVoiceUrl"));const s=this.J.reportIssueUrl;s&&(this.t["workbench.action.openIssueReporter"]=()=>this.pb(s,"openReportIssues"));const r=this.J.licenseUrl;r&&(this.t["workbench.action.openLicenseUrl"]=()=>{if(Ri){const o=r.indexOf("?")>0?"&":"?";this.pb(`${r}${o}lang=${Ri}`,"openLicenseUrl")}else this.pb(r,"openLicenseUrl")});const n=this.J.privacyStatementUrl;n&&r&&(this.t["workbench.action.openPrivacyStatementUrl"]=()=>{this.pb(n,"openPrivacyStatement")})}O(){this.B(this.G.onWillShutdown(()=>this.b=!0)),this.B(this.y.onDidChangeWindowsCount(e=>this.U(e))),this.B(this.I.onDidBlurMainWindow(()=>this.W())),this.B(this.I.onDidFocusMainWindow(()=>this.W()))}get P(){const e=this.w.getValue("window.enableMenuBarMnemonics");return typeof e!="boolean"?!0:e}get Q(){if(!N)return!1;const e=this.w.getValue("window.nativeTabs");return typeof e!="boolean"?!1:e}updateMenu(e,i){this.r=e.menus,this.s=e.keybindings,this.F.setItem(Gh.a,e),this.R()}R(){this.j.schedule()}S(){this.b||setTimeout(()=>{this.b||this.X()},10)}U(e){N&&(e.oldCount===0&&e.newCount>0||e.oldCount>0&&e.newCount===0)&&(this.f=e.newCount===0,this.R())}W(){if(!N)return;const e=qh.getFocusedWindow();this.g=!e||!!this.L.getWindowByWebContents(e.webContents),this.R()}X(){const e=ut.getApplicationMenu();if(e&&this.n.push(e),Object.keys(this.r).length===0){this.Y(N?new ut:null);return}const i=new ut;let s;if(N){const n=new ut;s=new Ie({label:this.J.nameShort,submenu:n}),this.Z(n),i.append(s)}if(N&&!this.c){this.c=!0;const n=new ut;n.append(new Ie({label:this.rb(g(2117,null)),click:()=>this.y.openEmptyWindow({context:1})})),XE.dock.setMenu(n)}if(this.ab("File")){const n=new ut,o=new Ie({label:this.rb(g(2118,null)),submenu:n});this.cb(n,"File"),i.append(o)}if(this.ab("Edit")){const n=new ut,o=new Ie({label:this.rb(g(2119,null)),submenu:n});this.cb(n,"Edit"),i.append(o)}if(this.ab("Selection")){const n=new ut,o=new Ie({label:this.rb(g(2120,null)),submenu:n});this.cb(n,"Selection"),i.append(o)}if(this.ab("View")){const n=new ut,o=new Ie({label:this.rb(g(2121,null)),submenu:n});this.cb(n,"View"),i.append(o)}if(this.ab("Go")){const n=new ut,o=new Ie({label:this.rb(g(2122,null)),submenu:n});this.cb(n,"Go"),i.append(o)}if(this.ab("Run")){const n=new ut,o=new Ie({label:this.rb(g(2123,null)),submenu:n});this.cb(n,"Run"),i.append(o)}if(this.ab("Terminal")){const n=new ut,o=new Ie({label:this.rb(g(2124,null)),submenu:n});this.cb(n,"Terminal"),i.append(o)}let r;if(this.ab("Window")){const n=new ut;r=new Ie({label:this.rb(g(2125,null)),submenu:n,role:"window"}),this.ib(n)}if(r&&i.append(r),this.ab("Help")){const n=new ut,o=new Ie({label:this.rb(g(2126,null)),submenu:n,role:"help"});this.cb(n,"Help"),i.append(o)}i.items&&i.items.length>0?this.Y(i):this.Y(null),this.m.schedule()}Y(e){if(ut.setApplicationMenu(e),e)for(const i of this.L.getWindows())i.win?.setMenu(null)}Z(e){const i=this.kb(g(2127,null,this.J.nameLong),"workbench.action.showAboutDialog"),s=this.jb();let r;if(this.ab("Preferences")){const f=new ut;this.cb(f,"Preferences"),r=new Ie({label:this.rb(g(2128,null)),submenu:f})}const n=new ut,o=new Ie({label:g(2129,null),role:"services",submenu:n}),a=new Ie({label:g(2130,null,this.J.nameLong),role:"hide",accelerator:"Command+H"}),c=new Ie({label:g(2131,null),role:"hideOthers",accelerator:"Command+Alt+H"}),l=new Ie({label:g(2132,null),role:"unhide"}),h=new Ie(this.ob("workbench.action.quit",{label:g(2133,null,this.J.nameLong),click:async(f,p,m)=>{const w=this.y.getLastActiveWindow();(this.y.getWindowCount()===0||qh.getFocusedWindow()||w?.win?.isMinimized())&&await this.$(m)&&this.I.quit(void 0)}})),u=[i];u.push(...s),r&&u.push(Zs(),r),u.push(Zs(),o,Zs(),a,c,l,Zs(),h),u.forEach(f=>e.append(f))}async $(e){if(this.y.getWindowCount()===0)return!0;const i=this.w.getValue("window.confirmBeforeClose");if(i==="always"||i==="keyboardOnly"&&this.gb(e)){const{response:s}=await this.I.showMessageBox(this.y.getFocusedWindow()?.id,{type:"question",buttons:[g(2134,null),g(2135,null)],message:g(2136,null)});return s===0}return!0}ab(e){if(!N&&!this.h)return!1;switch(e){case"File":case"Help":if(N)return this.y.getWindowCount()===0&&this.f||this.y.getWindowCount()>0&&this.g||!!this.r&&!!this.r[e];case"Window":if(N)return this.y.getWindowCount()===0&&this.f||this.y.getWindowCount()>0&&this.g||!!this.r;default:return this.y.getWindowCount()>0&&!!this.r&&!!this.r[e]}}bb(e,i){i.forEach(s=>{if(P4(s))e.append(Zs());else if(x4(s)){const r=new ut,n=new Ie({label:this.rb(s.label),submenu:r});this.bb(r,s.submenu.items),e.append(n)}else $4(s)?e.append(this.eb(s)):wE(s)&&(s.id==="workbench.action.showAboutDialog"&&this.db(e),N?this.y.getWindowCount()===0&&this.f||this.y.getWindowCount()>0&&this.g?this.t[s.id]?e.append(new Ie(this.ob(s.id,{label:this.rb(s.label),click:this.t[s.id]}))):e.append(this.kb(s.label,s.id,!1,s.checked)):e.append(this.kb(s.label,s.id,s.enabled!==!1,!!s.checked)):e.append(this.kb(s.label,s.id,s.enabled!==!1,!!s.checked)))})}cb(e,i){this.r&&this.r[i]&&this.bb(e,this.r[i].items)}db(e){const i=this.jb();i.length&&(i.forEach(s=>e.append(s)),e.append(Zs()))}eb(e){const i=$.revive(e.uri),s=e.id,r=s==="openRecentFile"?{fileUri:i}:s==="openRecentWorkspace"?{workspaceUri:i}:{folderUri:i};return new Ie(this.ob(s,{label:e.label,click:async(n,o,a)=>{const c=this.fb(a);(await this.y.open({context:2,cli:this.z.args,urisToOpen:[r],forceNewWindow:c,gotoLineMode:!1,remoteAuthority:e.remoteAuthority})).length>0||await this.D.removeRecentlyOpened([i])}},!1))}fb(e){return!!(e&&(!N&&(e.ctrlKey||e.shiftKey)||N&&(e.metaKey||e.altKey)))}gb(e){return!!(e.triggeredByAccelerator||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}hb(e,i,s){const r={label:this.rb(e),role:s,enabled:!0};return new Ie(this.nb(i,r))}ib(e){const i=new Ie({label:g(2137,null),role:"minimize",accelerator:"Command+M",enabled:this.y.getWindowCount()>0}),s=new Ie({label:g(2138,null),role:"zoom",enabled:this.y.getWindowCount()>0}),r=new Ie({label:g(2139,null),role:"front",enabled:this.y.getWindowCount()>0}),n=this.kb(g(2140,null),"workbench.action.switchWindow"),o=[];this.Q&&(o.push(Zs()),o.push(this.kb(g(2141,null),"workbench.action.newWindowTab")),o.push(this.hb(g(2142,null),"workbench.action.showPreviousWindowTab","selectPreviousTab")),o.push(this.hb(g(2143,null),"workbench.action.showNextWindowTab","selectNextTab")),o.push(this.hb(g(2144,null),"workbench.action.moveWindowTabToNewWindow","moveTabToNewWindow")),o.push(this.hb(g(2145,null),"workbench.action.mergeAllWindowTabs","mergeAllWindows"))),[i,s,Zs(),n,...o,Zs(),r].forEach(a=>e.append(a))}jb(){switch(this.u.state.type){case"idle":return[new Ie({label:this.rb(g(2146,null)),click:()=>setTimeout(()=>{this.qb("CheckForUpdate"),this.u.checkForUpdates(!0)},0)})];case"checking for updates":return[new Ie({label:g(2147,null),enabled:!1})];case"available for download":return[new Ie({label:this.rb(g(2148,null)),click:()=>{this.u.downloadUpdate()}})];case"downloading":return[new Ie({label:g(2149,null),enabled:!1})];case"downloaded":return N?[]:[new Ie({label:this.rb(g(2150,null)),click:()=>{this.qb("InstallUpdate"),this.u.applyUpdate()}})];case"updating":return[new Ie({label:g(2151,null),enabled:!1})];case"ready":return[new Ie({label:this.rb(g(2152,null)),click:()=>{this.qb("RestartToUpdate"),this.u.quitAndInstall()}})];default:return[]}}kb(e,i,s,r){const n=this.rb(e),o=typeof i=="function"?i:(u,f,p)=>{const m=u?u.userSettingsLabel:null;let w=i;Array.isArray(i)&&(w=this.fb(p)?i[1]:i[0]),m&&p.triggeredByAccelerator?this.mb({type:"keybinding",userSettingsLabel:m}):this.mb({type:"commandId",commandId:w})},a=typeof s=="boolean"?s:this.y.getWindowCount()>0,c=typeof r=="boolean"?r:!1,l={label:n,click:o,enabled:a};c&&(l.type="checkbox",l.checked=c);let h;return typeof i=="string"?h=i:Array.isArray(i)&&(h=i[0]),N&&(h==="editor.action.clipboardCutAction"?l.role="cut":h==="editor.action.clipboardCopyAction"?l.role="copy":h==="editor.action.clipboardPasteAction"&&(l.role="paste"),h==="undo"?l.click=this.lb(o,{inDevTools:u=>u.undo(),inNoWindow:()=>ut.sendActionToFirstResponder("undo:")}):h==="redo"?l.click=this.lb(o,{inDevTools:u=>u.redo(),inNoWindow:()=>ut.sendActionToFirstResponder("redo:")}):h==="editor.action.selectAll"&&(l.click=this.lb(o,{inDevTools:u=>u.selectAll(),inNoWindow:()=>ut.sendActionToFirstResponder("selectAll:")}))),new Ie(this.nb(h,l))}lb(e,i){return(s,r,n)=>{const o=qh.getFocusedWindow();if(!o)return i.inNoWindow();if(o.webContents.isDevToolsFocused()&&o.webContents.devToolsWebContents)return i.inDevTools(o.webContents.devToolsWebContents);e(s,r||o,n)}}mb(e){let i=qh.getFocusedWindow();if(i){const r=this.L.getWindowByWebContents(i.webContents);r&&(i=this.y.getWindowById(r.parentId)?.win??null)}if(!i){const r=this.y.getLastActiveWindow();r?.win?.isMinimized()&&(i=r.win)}const s=i?this.y.getWindowById(i.id):void 0;if(s){if(this.H.trace("menubar#runActionInRenderer",e),N&&!this.z.isBuilt&&!s.isReady&&(e.type==="commandId"&&e.commandId==="workbench.action.toggleDevTools"||e.type!=="commandId"&&e.userSettingsLabel==="alt+cmd+i"))return!1;if(e.type==="commandId"){const r={id:e.commandId,from:"menu"};s.sendWhenReady("vscode:runAction",Je.None,r)}else{const r={userSettingsLabel:e.userSettingsLabel};s.sendWhenReady("vscode:runKeybinding",Je.None,r)}return!0}else return this.H.trace("menubar#runActionInRenderer: no active window found",e),!1}nb(e,i){const s=typeof e=="string"?this.s[e]:void 0;if(s?.label){if(s.isNative!==!1)i.accelerator=s.label,i.userSettingsLabel=s.userSettingsLabel;else if(typeof i.label=="string"){const r=i.label.indexOf("[");r>=0?i.label=`${i.label.substr(0,r)} [${s.label}]`:i.label=`${i.label} [${s.label}]`}}else i.accelerator=void 0;return i}ob(e,i,s=!i.accelerator){s&&(i=this.nb(e,i));const r=i.click;return i.click=(n,o,a)=>{this.qb(e),r?.(n,o,a)},i}pb(e,i){this.I.openExternal(void 0,e),this.qb(i)}qb(e){this.C.publicLog2("workbenchActionExecuted",{id:e,from:uc})}rb(e){return C8(e,!this.P)}},Jh=Gh=__decorate([__param(0,dn),__param(1,Be),__param(2,yt),__param(3,ht),__param(4,oi),__param(5,hc),__param(6,Pi),__param(7,_e),__param(8,K),__param(9,un),__param(10,nt),__param(11,nn)],Jh)}}),bp,Kh,tx=v({"out-build/vs/platform/menubar/electron-main/menubarMainService.js"(){"use strict";Z(),tt(),Q(),ex(),T(),bp=V("menubarMainService"),Kh=class extends j{constructor(e,i,s){super(),this.b=e,this.c=i,this.f=s,this.a=this.g()}async g(){return await this.c.when(3),this.B(this.b.createInstance(Jh))}async updateMenubar(e,i){this.f.trace("menubarService#updateMenubar",e),(await this.a).updateMenu(i,e)}},Kh=__decorate([__param(0,cs),__param(1,_e),__param(2,K)],Kh)}}),pn,kp,Sp,$s=v({"out-build/vs/platform/policy/common/policy.js"(){"use strict";J(),tl(),T(),Z(),pn=V("policy"),kp=class extends j{constructor(){super(...arguments),this.policyDefinitions={},this.f=new Map,this.g=this.B(new D),this.onDidChange=this.g.event}async updatePolicyDefinitions(t){const e=Object.keys(this.policyDefinitions).length;return this.policyDefinitions={...t,...this.policyDefinitions},e!==Object.keys(this.policyDefinitions).length&&await this.h(this.policyDefinitions),Fr.reduce(this.f.entries(),(i,[s,r])=>({...i,[s]:r}),{})}getPolicyValue(t){return this.f.get(t)}serialize(){return Fr.reduce(Object.entries(this.policyDefinitions),(t,[e,i])=>({...t,[e]:{definition:i,value:this.f.get(e)}}),{})}},Sp=class{constructor(){this.onDidChange=x.None,this.policyDefinitions={}}async updatePolicyDefinitions(){return{}}getPolicyValue(){}serialize(){}}}});async function ix(t,e,i,s,r){try{const n=await import("@vscode/spdlog");n.setFlushOn(Ys.Trace);const o=await n.createAsyncRotatingLogger(t,e,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 z4(t,e,i){switch(e){case Y.Trace:t.trace(i);break;case Y.Debug:t.debug(i);break;case Y.Info:t.info(i);break;case Y.Warning:t.warn(i);break;case Y.Error:t.error(i);break;case Y.Off:break;default:throw new Error(`Invalid log level ${e}`)}}function H4(t,e){switch(e){case Y.Trace:t.setLevel(Ys.Trace);break;case Y.Debug:t.setLevel(Ys.Debug);break;case Y.Info:t.setLevel(Ys.Info);break;case Y.Warning:t.setLevel(Ys.Warning);break;case Y.Error:t.setLevel(Ys.Error);break;case Y.Off:t.setLevel(Ys.Off);break;default:throw new Error(`Invalid log level ${e}`)}}var Ys,V4,sx=v({"out-build/vs/platform/log/node/spdlogLog.js"(){"use strict";Ve(),Q(),function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Info=2]="Info",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.Off=6]="Off"}(Ys||(Ys={})),V4=class extends Zf{constructor(t,e,i,s,r){super(),this.n=[],this.setLevel(r),this.r=this.t(t,e,i,s),this.B(this.onDidChangeLogLevel(n=>{this.s&&H4(this.s,n)}))}async t(t,e,i,s){const r=i?6:1,n=30/r*Jr.MB,o=await ix(t,e,n,r,s);if(o){this.s=o,H4(this.s,this.getLevel());for(const{level:a,message:c}of this.n)z4(this.s,a,c);this.n=[]}}m(t,e){this.s?z4(this.s,t,e):this.getLevel()<=t&&this.n.push({level:t,message:e})}flush(){this.s?this.w():this.r.then(()=>this.w())}dispose(){this.s?this.y():this.r.then(()=>this.y()),super.dispose()}w(){this.s&&this.s.flush()}y(){this.s&&(this.s.drop(),this.s=void 0)}}}}),q4,rx=v({"out-build/vs/platform/log/node/loggerService.js"(){"use strict";Ei(),Q(),sx(),q4=class extends Iv{t(t,e,i){return new V4(gi(),t.fsPath,!i?.donotRotate,!!i?.donotUseFormatters,e)}}}}),ko,G4,dc=v({"out-build/vs/platform/log/electron-main/loggerService.js"(){"use strict";Qt(),J(),Z(),Q(),rx(),ko=Da,G4=class extends q4{constructor(){super(...arguments),this.u=new Rt}createLogger(t,e,i){i!==void 0&&this.u.set(this.s(t),i);try{return super.createLogger(t,e)}catch(s){throw this.u.delete(this.s(t)),s}}registerLogger(t,e){e!==void 0&&this.u.set(t.resource,e),super.registerLogger(t)}deregisterLogger(t){this.u.delete(t),super.deregisterLogger(t)}getGlobalLoggers(){const t=[];for(const e of super.getRegisteredLoggers())this.u.has(e.resource)||t.push(e);return t}getOnDidChangeLogLevelEvent(t){return x.filter(this.onDidChangeLogLevel,e=>$v(e)||this.w(e[0],t))}getOnDidChangeVisibilityEvent(t){return x.filter(this.onDidChangeVisibility,([e])=>this.w(e,t))}getOnDidChangeLoggersEvent(t){return x.filter(x.map(this.onDidChangeLoggers,e=>({added:[...e.added].filter(s=>this.w(s.resource,t)),removed:[...e.removed].filter(s=>this.w(s.resource,t))})),e=>e.added.length>0||e.removed.length>0)}deregisterLoggers(t){for(const[e,i]of this.u)i===t&&this.deregisterLogger(e)}w(t,e){const i=this.u.get(t);return i===void 0||i===e}dispose(){super.dispose(),this.u.clear()}}}});function nx(t){if(In===2&&/^penguin(\.|$)/i.test(t))return"chromebook"}function ox(t,e,i,s,r,n,o,a,c,l){const h=Object.create(null);h["common.machineId"]=n,h["common.sqmId"]=o,h["common.devDeviceId"]=a,h.sessionID=gi()+Date.now(),h.commitHash=s,h.version=r,h["common.platformVersion"]=(t||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),h["common.platform"]=Zm(In),h["common.nodePlatform"]=Od,h["common.nodeArch"]=i,h["common.product"]=l||"desktop",c&&(h["common.msftInternal"]=c);let u=0;const f=Date.now();Object.defineProperties(h,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-f,enumerable:!0},"common.sequence":{get:()=>u++,enumerable:!0}}),Dd&&(h["common.snap"]="true");const p=nx(e);return p&&(h["common.platformDetail"]=p),h}function ax(t){const e=Oi.USERDNSDOMAIN;if(!e)return!1;const i=e.toLowerCase();return t.some(s=>i===s)}var J4=v({"out-build/vs/platform/telemetry/common/commonProperties.js"(){"use strict";G(),ns(),Ei()}});function K4(t,e){return!e.isBuilt&&!e.disableTelemetry?!0:!(e.disableTelemetry||!t.enableTelemetry)}function Ep(t){const e=t.getValue(ja),i=t.getValue(S1);if(t.getValue(Yl)===!1||i===!1)return 0;switch(e??"all"){case"all":return 3;case"error":return 2;case"crash":return 1;case"off":return 0}}function cx(t,e){const i=t.msftInternalDomains||[],s=e.getValue("telemetry.internalTesting");return ax(i)||s}function lx(t){return[t.appRoot,t.extensionsPath,t.userHome.fsPath,t.tmpDir.fsPath,t.userDataPath]}function hx(t,e){if(!t||!t.includes("/")&&!t.includes("\\"))return t;let i=t;const s=[];for(const a of e)for(;;){const c=a.exec(t);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(t);if(!a)break;const c=s.some(([l,h])=>a.index<h&&l<n.lastIndex);!r.test(a[0])&&!c&&(i+=t.substring(o,a.index)+"<REDACTED: user-file-path>",o=n.lastIndex)}return o<t.length&&(i+=t.substr(o)),i}function ux(t){if(!t)return t;const e=[{label:"Google API Key",regex:/AIza[A-Za-z0-9_\\\-]{35}/},{label:"JWT",regex:/eyJ[0eXAiOiJKV1Qi|hbGci|a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+/},{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 e)if(i.regex.test(t))return`<REDACTED: ${i.label}>`;return t}function dx(t,e){return bk(t,i=>{if(i instanceof Z4||Object.hasOwnProperty.call(i,"isTrustedTelemetryValue"))return i.value;if(typeof i=="string"){let s=i.replaceAll("%20"," ");s=hx(s,e);for(const r of e)s=s.replace(r,"");return s=ux(s),s}})}var Z4,Y4,fc,Q4,fx,mn=v({"out-build/vs/platform/telemetry/common/telemetryUtils.js"(){"use strict";Bi(),$e(),we(),Ja(),J4(),ai(),Z4=class{constructor(t){this.value=t,this.isTrustedTelemetryValue=!0}},Y4=class{constructor(){this.telemetryLevel=0,this.sessionId="someValue.sessionId",this.machineId="someValue.machineId",this.sqmId="someValue.sqmId",this.devDeviceId="someValue.devDeviceId",this.firstSessionDate="someValue.firstSessionDate",this.sendErrorTelemetry=!1}publicLog(){}publicLog2(){}publicLogError(){}publicLogError2(){}setExperimentProperty(){}},fc=new Y4,Q4="telemetry",fx={id:Q4,name:g(2246,null)}}}),Zh,xp,Pp,px=v({"out-build/vs/platform/sharedProcess/common/sharedProcess.js"(){"use strict";Zh={exit:"vscode:electron-main->shared-process=exit",ipcReady:"vscode:shared-process->electron-main=ipc-ready",initDone:"vscode:shared-process->electron-main=init-done"},xp={request:"vscode:createSharedProcessChannelConnection",response:"vscode:createSharedProcessChannelConnectionResult"},Pp={request:"vscode:createSharedProcessRawConnection",response:"vscode:createSharedProcessRawConnectionResult"}}}),Yh,mx=v({"out-build/vs/platform/sharedProcess/electron-main/sharedProcess.js"(){"use strict";ds(),le(),T(),Pt(),tt(),Q(),Es(),$s(),dc(),uo(),mn(),jf(),$e(),px(),J(),Yh=class extends j{constructor(e,i,s,r,n,o,a,c,l){super(),this.g=e,this.h=i,this.j=s,this.m=r,this.n=n,this.r=o,this.s=a,this.t=c,this.u=l,this.a=new oa,this.b=void 0,this.c=void 0,this.f=this.B(new D),this.onDidCrash=this.f.event,this.C=void 0,this.D=void 0,this.w()}w(){wt.on(xp.request,(e,i)=>this.y(e,i,xp.response)),wt.on(Pp.request,(e,i)=>this.y(e,i,Pp.response)),this.B(this.r.onWillShutdown(()=>this.z()))}async y(e,i,s){this.s.trace(`[SharedProcess] onWindowConnection for: ${s}`),this.a.isOpen()||this.a.open(),await this.whenReady();const r=await this.connect(s);if(e.sender.isDestroyed())return r.close();e.sender.postMessage(s,i,[r])}z(){this.s.trace("[SharedProcess] onWillShutdown"),this.b?.postMessage(Zh.exit),this.b=void 0}whenReady(){return this.C||(this.C=(async()=>{await this.F;const e=new js;this.b?.once(Zh.initDone,()=>e.complete()),await e.p,this.c?.dispose(),this.s.trace("[SharedProcess] Overall ready")})()),this.C}get F(){return this.D||(this.D=(async()=>{await this.a.wait(),this.G();const e=new js;this.b?.once(Zh.ipcReady,()=>e.complete()),await e.p,this.s.trace("[SharedProcess] IPC ready")})()),this.D}G(){this.b=this.B(new Sr(this.s,fc,this.r)),this.c=this.b.onMessage(s=>{typeof s.warning=="string"?this.s.warn(s.warning):typeof s.error=="string"&&this.s.error(s.error)});const e=C3(this.m.args,this.m.isBuilt);let i;e.port&&(i=["--nolazy","--experimental-network-inspection"],e.break?i.push(`--inspect-brk=${e.port}`):i.push(`--inspect=${e.port}`)),this.b.start({type:"shared-process",name:"shared-process",entryPoint:"vs/code/electron-utility/sharedProcess/sharedProcessMain",payload:this.H(),respondToAuthRequestsFromMainProcess:!0,execArgv:i}),this.B(this.b.onCrash(()=>this.f.fire()))}H(){return{machineId:this.g,sqmId:this.h,devDeviceId:this.j,codeCachePath:this.m.codeCachePath,profiles:{home:this.n.profilesHome,all:this.n.profiles},args:this.m.args,logLevel:this.t.getLogLevel(),loggers:this.t.getGlobalLoggers(),policiesData:this.u.serialize()}}async connect(e){return await this.F,Go(this.b).connect(e)}},Yh=__decorate([__param(3,ht),__param(4,Ss),__param(5,_e),__param(6,K),__param(7,ko),__param(8,pn)],Yh)}}),X4,So,$p=v({"out-build/vs/platform/sign/common/sign.js"(){"use strict";Z(),X4="signService",So=V(X4)}}),e5,gx=v({"out-build/vs/platform/storage/electron-main/storageIpc.js"(){"use strict";J(),T(),vl(),qt(),e5=class w6 extends j{static{this.a=100}constructor(e,i){super(),this.f=e,this.g=i,this.b=this.B(new D),this.c=new Map,this.h(i.applicationStorage,this.b)}h(e,i){this.B(x.debounce(e.onDidChangeStorage,(s,r)=>(s?s.push(r):s=[r],s),w6.a)(s=>{s.length&&i.fire(this.j(s,e))}))}j(e,i){const s=new Map,r=new Set;return e.forEach(n=>{const o=i.get(n.key);typeof o=="string"?s.set(n.key,o):r.add(n.key)}),{changed:Array.from(s.entries()),deleted:Array.from(r.values())}}listen(e,i,s){switch(i){case"onDidChangeStorage":{const r=s.profile?ur(s.profile):void 0;if(!r)return this.b.event;let n=this.c.get(r.id);return n||(n=this.B(new D),this.h(this.g.profileStorage(r),n),this.c.set(r.id,n)),n.event}}throw new Error(`Event not found: ${i}`)}async call(e,i,s){const r=s.profile?ur(s.profile):void 0,n=J3(s.workspace),o=await this.m(r,n);switch(i){case"getItems":return Array.from(o.items.entries());case"updateItems":{const a=s;if(a.insert)for(const[c,l]of a.insert)o.set(c,l);a.delete?.forEach(c=>o.delete(c));break}case"optimize":return o.optimize();case"isUsed":{const a=s.payload;if(typeof a=="string")return this.g.isUsed(a)}default:throw new Error(`Call not found: ${i}`)}}async m(e,i){let s;i?s=this.g.workspaceStorage(i):e?s=this.g.profileStorage(e):s=this.g.applicationStorage;try{await s.init()}catch(r){this.f.error(`StorageIPC#init: Unable to init ${i?"workspace":e?"profile":"application"} storage due to ${r}`)}return s}}}}),t5,wx=v({"out-build/vs/platform/telemetry/common/telemetryIpc.js"(){"use strict";t5=class{constructor(t){this.b=t}log(t,e){return this.b.call("log",{eventName:t,data:e}).then(void 0,i=>`Failed to log telemetry: ${console.warn(i)}`),Promise.resolve(null)}flush(){return Promise.resolve()}}}}),vi,Qh,As,Ap=v({"out-build/vs/platform/product/common/product.js"(){"use strict";if(ns(),Qh=globalThis.vscode,typeof Qh<"u"&&typeof Qh.context<"u"){const t=Qh.context.configuration();if(t)vi=t.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(vi=globalThis._VSCODE_PRODUCT_JSON,Oi.VSCODE_DEV&&Object.assign(vi,{nameShort:`${vi.nameShort} Dev`,nameLong:`${vi.nameLong} Dev`,dataFolderName:`${vi.dataFolderName}-dev`,serverDataFolderName:vi.serverDataFolderName?`${vi.serverDataFolderName}-dev`:void 0}),!vi.version){const t=globalThis._VSCODE_PACKAGE_JSON;Object.assign(vi,{version:t.version})}}else vi={},Object.keys(vi).length===0&&Object.assign(vi,{version:"1.95.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});As=vi}});function vx(){const t=g(2227,null,As.nameLong),e=As.privacyStatementUrl?g(2229,null,"https://aka.ms/vscode-telemetry",As.privacyStatementUrl):g(2228,null,"https://aka.ms/vscode-telemetry"),i=Vi?"":g(2230,null),s=g(2231,null),r=g(2232,null),n=g(2233,null),o=g(2234,null),a=`
| | ${s} | ${r} | ${n} |
|:------|:-------------:|:---------------:|:----------:|
| all | \u2713 | \u2713 | \u2713 |
| error | \u2713 | \u2713 | - |
| crash | \u2713 | - | - |
| off | - | - | - |
`,c=g(2235,null);return`
${t} ${e} ${i}
${o}
${a}
${c}
`}var Xh,i5,yx=v({"out-build/vs/platform/telemetry/common/telemetryService.js"(){"use strict";T(),Bi(),G(),xt(),we(),Ue(),lr(),Ap(),Tt(),ls(),ai(),mn(),Xh=class{static{this.IDLE_START_EVENT_NAME="UserIdleStart"}static{this.IDLE_STOP_EVENT_NAME="UserIdleStop"}constructor(e,i,s){this.k=i,this.l=s,this.d={},this.i=new Ae,this.j=[],this.b=e.appenders,this.c=e.commonProperties??Object.create(null),this.sessionId=this.c.sessionID,this.machineId=this.c["common.machineId"],this.sqmId=this.c["common.sqmId"],this.devDeviceId=this.c["common.devDeviceId"],this.firstSessionDate=this.c["common.firstSessionDate"],this.msftInternal=this.c["common.msftInternal"],this.f=e.piiPaths||[],this.g=3,this.h=!!e.sendErrorTelemetry,this.j=[/(vscode-)?file:\/\/\/.*?\/resources\/app\//gi];for(const r of this.f)this.j.push(new RegExp(Xo(r),"gi")),r.indexOf("\\")>=0&&this.j.push(new RegExp(Xo(r.replace(/\\/g,"/")),"gi"));this.m(),this.i.add(this.k.onDidChangeConfiguration(r=>{(r.affectsConfiguration(ja)||r.affectsConfiguration(Yl)||r.affectsConfiguration(S1))&&this.m()}))}setExperimentProperty(e,i){this.d[e]=i}m(){let e=Ep(this.k);const i=this.l.enabledTelemetryLevels;if(i){this.h=this.sendErrorTelemetry?i.error:!1;const s=i.usage?3:i.error?2:0;e=Math.min(e,s)}this.g=e}get sendErrorTelemetry(){return this.h}get telemetryLevel(){return this.g}dispose(){this.i.dispose()}n(e,i,s){this.g<i||(s=_1(s,this.d),s=dx(s,this.j),s=_1(s,this.c),this.b.forEach(r=>r.log(e,s)))}publicLog(e,i){this.n(e,3,i)}publicLog2(e,i){this.publicLog(e,i)}publicLogError(e,i){this.h&&this.n(e,2,i)}publicLogError2(e,i){this.publicLogError(e,i)}},Xh=__decorate([__param(1,Be),__param(2,nt)],Xh),i5=zt.as(Si.Configuration),i5.registerConfiguration({id:Fy,order:1,type:"object",title:g(2236,null),properties:{[ja]:{type:"string",enum:["all","error","crash","off"],enumDescriptions:[g(2237,null),g(2238,null),g(2239,null),g(2240,null)],markdownDescription:vx(),default:"all",restricted:!0,scope:1,tags:["usesOnlineServices","telemetry"],policy:{name:"TelemetryLevel",minimumVersion:"1.99",description:g(2241,null)}},"telemetry.feedback.enabled":{type:"boolean",default:!0,description:g(2242,null),policy:{name:"EnableFeedback",minimumVersion:"1.99"}},[Yl]:{type:"boolean",markdownDescription:As.privacyStatementUrl?g(2244,null,As.nameLong,As.privacyStatementUrl):g(2243,null,As.nameLong),default:!0,restricted:!0,markdownDeprecationMessage:g(2245,null,`\`#${ja}#\``),scope:1,tags:["usesOnlineServices","telemetry"]}}})}}),s5,bx=v({"out-build/vs/platform/update/common/updateIpc.js"(){"use strict";J(),T(),xr(),s5=class{constructor(t){this.a=t}listen(t,e){switch(e){case"onStateChange":return this.a.onStateChange}throw new Error(`Event not found: ${e}`)}call(t,e,i){switch(e){case"checkForUpdates":return this.a.checkForUpdates(i);case"downloadUpdate":return this.a.downloadUpdate();case"applyUpdate":return this.a.applyUpdate();case"quitAndInstall":return this.a.quitAndInstall();case"_getInitialState":return Promise.resolve(this.a.state);case"isLatestVersion":return this.a.isLatestVersion();case"_applySpecificUpdate":return this.a._applySpecificUpdate(i)}throw new Error(`Call not found: ${e}`)}}}});function Dp(t,e,i){return`${i.updateUrl}/api/update/${t}/${e}/${i.commit}`}var Eo,Ip=v({"out-build/vs/platform/update/electron-main/abstractUpdateService.js"(){"use strict";le(),Et(),J(),Ue(),Pt(),tt(),Q(),Tt(),ln(),xr(),Eo=class{get state(){return this.b}d(e){this.j.info("update#setState",e.type),this.b=e,this.c.fire(e)}constructor(e,i,s,r,n,o){this.f=e,this.g=i,this.h=s,this.i=r,this.j=n,this.k=o,this.b=ve.Uninitialized,this.c=new D,this.onStateChange=this.c.event,e.when(3).finally(()=>this.l())}async l(){if(!this.h.isBuilt){this.d(ve.Disabled(0));return}if(this.h.disableUpdates){this.d(ve.Disabled(1)),this.j.info("update#ctor - updates are disabled by the environment");return}if(!this.k.updateUrl||!this.k.commit){this.d(ve.Disabled(3)),this.j.info("update#ctor - updates are disabled as there is no update URL");return}const e=this.g.getValue("update.mode"),i=this.m(e);if(!i){this.d(ve.Disabled(2)),this.j.info("update#ctor - updates are disabled by user preference");return}if(this.a=this.s(i),!this.a){this.d(ve.Disabled(4)),this.j.info("update#ctor - updates are disabled as the update URL is badly formed");return}if(this.g.getValue("_update.prss")){const s=new URL(this.a);s.searchParams.set("prss","true"),this.a=s.toString()}if(this.d(ve.Idle(this.q())),e==="manual"){this.j.info("update#ctor - manual checks only; automatic updates are disabled by user preference");return}e==="start"?(this.j.info("update#ctor - startup checks only; automatic updates are disabled by user preference"),setTimeout(()=>this.checkForUpdates(!1),30*1e3)):this.n(30*1e3).then(void 0,s=>this.j.error(s))}m(e){return e==="none"?void 0:this.k.quality}n(e=60*60*1e3){return mi(e).then(()=>this.checkForUpdates(!1)).then(()=>this.n(60*60*1e3))}async checkForUpdates(e){this.j.trace("update#checkForUpdates, state = ",this.state.type),this.state.type==="idle"&&this.t(e)}async downloadUpdate(){this.j.trace("update#downloadUpdate, state = ",this.state.type),this.state.type==="available for download"&&await this.o(this.state)}async o(e){}async applyUpdate(){this.j.trace("update#applyUpdate, state = ",this.state.type),this.state.type==="downloaded"&&await this.p()}async p(){}quitAndInstall(){return this.j.trace("update#quitAndInstall, state = ",this.state.type),this.state.type!=="ready"||(this.j.trace("update#quitAndInstall(): before lifecycle quit()"),this.f.quit(!0).then(e=>{this.j.trace(`update#quitAndInstall(): after lifecycle quit() with veto: ${e}`),!e&&(this.j.trace("update#quitAndInstall(): running raw#quitAndInstall()"),this.r())})),Promise.resolve(void 0)}async isLatestVersion(){if(!this.a)return;if(this.g.getValue("update.mode")==="none")return!1;try{return(await this.i.request({url:this.a},Je.None)).res.statusCode===204}catch(i){this.j.error("update#isLatestVersion(): failed to check for updates"),this.j.error(i);return}}async _applySpecificUpdate(e){}q(){return 1}r(){}},Eo=__decorate([__param(0,_e),__param(1,Be),__param(2,ht),__param(3,cn),__param(4,K),__param(5,nt)],Eo)}});import*as Pr from"electron";var $r,kx=v({"out-build/vs/platform/update/electron-main/updateService.darwin.js"(){"use strict";zr(),J(),qs(),T(),Ue(),Pt(),tt(),Q(),Tt(),ln(),ai(),xr(),Ip(),$r=class extends Eo{get v(){return x.fromNodeEventEmitter(Pr.autoUpdater,"error",(e,i)=>i)}get w(){return x.fromNodeEventEmitter(Pr.autoUpdater,"update-not-available")}get x(){return x.fromNodeEventEmitter(Pr.autoUpdater,"update-available")}get y(){return x.fromNodeEventEmitter(Pr.autoUpdater,"update-downloaded",(e,i,s,r)=>({version:s,productVersion:s,timestamp:r}))}constructor(e,i,s,r,n,o,a){super(e,i,r,n,o,a),this.z=s,this.u=new Ae,e.setRelaunchHandler(this)}handleRelaunch(e){return e?.addArgs||e?.removeArgs||this.state.type!=="ready"?!1:(this.j.trace("update#handleRelaunch(): running raw#quitAndInstall()"),this.r(),!0)}async l(){await super.l(),this.v(this.B,this,this.u),this.x(this.E,this,this.u),this.y(this.F,this,this.u),this.w(this.G,this,this.u)}B(e){this.z.publicLog2("update:error",{messageHash:String(fs(String(e)))}),this.j.error("UpdateService error:",e);const i=this.state.type==="checking for updates"&&this.state.explicit?e:void 0;this.d(ve.Idle(1,i))}s(e){let i;this.k.darwinUniversalAssetId?i=this.k.darwinUniversalAssetId:i=process.arch==="x64"?"darwin":"darwin-arm64";const s=Dp(i,e,this.k);try{Pr.autoUpdater.setFeedURL({url:s})}catch(r){this.j.error("Failed to set update feed URL",r);return}return s}t(e){if(!this.a)return;this.d(ve.CheckingForUpdates(e));const i=e?this.a:`${this.a}?bg=true`;Pr.autoUpdater.setFeedURL({url:i}),Pr.autoUpdater.checkForUpdates()}E(){this.state.type==="checking for updates"&&this.d(ve.Downloading)}F(e){this.state.type==="downloading"&&(this.d(ve.Downloaded(e)),this.z.publicLog2("update:downloaded",{newVersion:e.version}),this.d(ve.Ready(e)))}G(){this.state.type==="checking for updates"&&this.d(ve.Idle(1))}r(){this.j.trace("update#quitAndInstall(): running raw#quitAndInstall()"),Pr.autoUpdater.quitAndInstall()}dispose(){this.u.dispose()}},__decorate([ue],$r.prototype,"v",null),__decorate([ue],$r.prototype,"w",null),__decorate([ue],$r.prototype,"x",null),__decorate([ue],$r.prototype,"y",null),$r=__decorate([__param(0,_e),__param(1,Be),__param(2,oi),__param(3,ht),__param(4,cn),__param(5,K),__param(6,nt)],$r)}}),eu,Sx=v({"out-build/vs/platform/update/electron-main/updateService.linux.js"(){"use strict";Et(),Ue(),Pt(),tt(),Q(),zh(),Tt(),ln(),xr(),Ip(),eu=class extends Eo{constructor(e,i,s,r,n,o,a){super(e,i,s,r,n,a),this.e=o}s(e){return Dp(`linux-${process.arch}`,e,this.k)}t(e){if(!this.a)return;const i=e?this.a:`${this.a}?bg=true`;this.d(ve.CheckingForUpdates(e)),this.i.request({url:i},Je.None).then(F4).then(s=>{!s||!s.url||!s.version||!s.productVersion?this.d(ve.Idle(1)):this.d(ve.AvailableForDownload(s))}).then(void 0,s=>{this.j.error(s);const r=e?s.message||s:void 0;this.d(ve.Idle(1,r))})}async o(e){this.k.downloadUrl&&this.k.downloadUrl.length>0?this.e.openExternal(void 0,this.k.downloadUrl):e.update.url&&this.e.openExternal(void 0,e.update.url),this.d(ve.Idle(1))}},eu=__decorate([__param(0,_e),__param(1,Be),__param(2,ht),__param(3,cn),__param(4,K),__param(5,un),__param(6,nt)],eu)}});import{spawn as Ex}from"child_process";import{realpath as xx,watch as Px}from"fs";var tu,iu,$x=v({"out-build/vs/platform/update/electron-main/updateService.snap.js"(){"use strict";le(),J(),ge(),Pt(),tt(),Q(),xr(),tu=class{get state(){return this.a}d(e){this.g.info("update#setState",e.type),this.a=e,this.b.fire(e)}constructor(e,i,s){if(this.f=e,this.g=s,this.a=ve.Uninitialized,this.b=new D,this.onStateChange=this.b.event,i.disableUpdates){this.g.info("update#ctor - updates are disabled");return}this.d(ve.Idle(this.k())),this.h(30*1e3).then(void 0,r=>this.g.error(r))}h(e=60*60*1e3){return mi(e).then(()=>this.checkForUpdates(!1)).then(()=>this.h(60*60*1e3))}async checkForUpdates(e){this.g.trace("update#checkForUpdates, state = ",this.state.type),this.state.type==="idle"&&this.m(e)}async downloadUpdate(){this.g.trace("update#downloadUpdate, state = ",this.state.type),this.state.type==="available for download"&&await this.i(this.state)}i(e){return Promise.resolve(void 0)}async applyUpdate(){this.g.trace("update#applyUpdate, state = ",this.state.type),this.state.type==="downloaded"&&await this.j()}j(){return Promise.resolve(void 0)}quitAndInstall(){return this.g.trace("update#quitAndInstall, state = ",this.state.type),this.state.type!=="ready"||(this.g.trace("update#quitAndInstall(): before lifecycle quit()"),this.f.quit(!0).then(e=>{this.g.trace(`update#quitAndInstall(): after lifecycle quit() with veto: ${e}`),!e&&(this.g.trace("update#quitAndInstall(): running raw#quitAndInstall()"),this.l())})),Promise.resolve(void 0)}k(){return 2}l(){}async _applySpecificUpdate(e){}},tu=__decorate([__param(0,_e),__param(1,ht),__param(2,K)],tu),iu=class extends tu{constructor(e,i,s,r,n){super(s,r,n),this.o=e,this.p=i;const o=Px(dt(this.o)),a=x.fromNodeEventEmitter(o,"change",(u,f)=>f),c=x.filter(a,u=>u==="current"),h=x.debounce(c,(u,f)=>f,2e3)(()=>this.checkForUpdates(!1));s.onWillShutdown(()=>{h.dispose(),o.close()})}m(){this.d(ve.CheckingForUpdates(!1)),this.t().then(e=>{e?this.d(ve.Ready({version:"something"})):this.d(ve.Idle(2))},e=>{this.g.error(e),this.d(ve.Idle(2,e.message||e))})}l(){this.g.trace("update#quitAndInstall(): running raw#quitAndInstall()"),Ex("sleep 3 && "+ze(process.argv[0]),{shell:!0,detached:!0,stdio:"ignore"})}async t(){const e=await new Promise((s,r)=>xx(`${dt(this.o)}/current`,(n,o)=>n?r(n):s(o))),i=ze(e);return this.p!==i}isLatestVersion(){return this.t().then(void 0,e=>{this.g.error("update#checkForSnapUpdate(): Could not get realpath of application.")})}},iu=__decorate([__param(2,_e),__param(3,ht),__param(4,K)],iu)}});import*as Ax from"crypto";import*as Dx from"fs";async function Ix(t,e){if(await new Promise((r,n)=>{const o=Dx.createReadStream(t),a=Ax.createHash("sha256");o.pipe(a);const c=Yc((l,h)=>{o.removeAllListeners(),a.removeAllListeners(),l?n(l):r(h)});o.once("error",c),o.once("end",c),a.once("error",c),a.once("data",l=>c(void 0,l.toString("hex")))})!==e)throw new Error("Hash mismatch")}var Cx=v({"out-build/vs/base/node/crypto.js"(){"use strict";Qc()}});import{spawn as r5}from"child_process";import*as su from"fs";import{tmpdir as Rx}from"os";async function Ox(t,e=1e3){for(;!t();)await mi(e)}function xo(){return typeof ru>"u"&&(ru=su.existsSync(M(dt(process.execPath),"unins000.exe"))?0:1),ru}var ru,pc,Lx=v({"out-build/vs/platform/update/electron-main/updateService.win32.js"(){"use strict";le(),Et(),zr(),qs(),ge(),re(),Cx(),gt(),Ue(),Pt(),Ve(),tt(),Q(),zh(),Tt(),ln(),ai(),xr(),Ip(),ru=void 0,pc=class extends Eo{get cachePath(){const e=M(Rx(),`vscode-${this.k.quality}-${this.k.target}-${process.arch}`);return su.promises.mkdir(e,{recursive:!0}).then(()=>e)}constructor(e,i,s,r,n,o,a,c,l){super(e,i,r,n,o,l),this.u=s,this.v=a,this.w=c,e.setRelaunchHandler(this)}handleRelaunch(e){return e?.addArgs||e?.removeArgs||this.state.type!=="ready"||!this.e?!1:(this.j.trace("update#handleRelaunch(): running raw#quitAndInstall()"),this.r(),!0)}async l(){if(this.k.target==="user"&&await this.w.isAdmin(void 0)){this.d(ve.Disabled(5)),this.j.info("update#ctor - updates are disabled due to running as Admin in user setup");return}await super.l()}s(e){let i=`win32-${process.arch}`;return xo()===1?i+="-archive":this.k.target==="user"&&(i+="-user"),Dp(i,e,this.k)}t(e){if(!this.a)return;const i=e?this.a:`${this.a}?bg=true`;this.d(ve.CheckingForUpdates(e)),this.i.request({url:i},Je.None).then(F4).then(s=>{const r=xo();return!s||!s.url||!s.version||!s.productVersion?(this.d(ve.Idle(r)),Promise.resolve(null)):r===1?(this.d(ve.AvailableForDownload(s)),Promise.resolve(null)):(this.d(ve.Downloading),this.C(s.version).then(()=>this.B(s.version).then(n=>te.exists(n).then(o=>{if(o)return Promise.resolve(n);const a=`${n}.tmp`;return this.i.request({url:s.url},Je.None).then(c=>this.v.writeFile($.file(a),c.stream)).then(s.sha256hash?()=>Ix(a,s.sha256hash):()=>{}).then(()=>te.rename(a,n,!1)).then(()=>n)})).then(n=>{this.e={packagePath:n},this.d(ve.Downloaded(s)),this.g.getValue("update.enableWindowsBackgroundUpdates")?this.k.target==="user"&&this.p():this.d(ve.Ready(s))})))}).then(void 0,s=>{this.u.publicLog2("update:error",{messageHash:String(fs(String(s)))}),this.j.error(s);const r=e?s.message||s:void 0;this.d(ve.Idle(xo(),r))})}async o(e){e.update.url&&this.w.openExternal(void 0,e.update.url),this.d(ve.Idle(xo()))}async B(e){const i=await this.cachePath;return M(i,`CodeSetup-${this.k.quality}-${e}.exe`)}async C(e=null){const i=e?o=>!new RegExp(`${this.k.quality}-${e}\\.exe$`).test(o):()=>!0,s=await this.cachePath,n=(await te.readdir(s)).filter(i).map(async o=>{try{await su.promises.unlink(M(s,o))}catch{}});await Promise.all(n)}async p(){if(this.state.type!=="downloaded"||!this.e)return Promise.resolve(void 0);const e=this.state.update;this.d(ve.Updating(e));const i=await this.cachePath;this.e.updateFilePath=M(i,`CodeSetup-${this.k.quality}-${e.version}.flag`),await te.writeFile(this.e.updateFilePath,"flag"),r5(this.e.packagePath,["/verysilent","/log",`/update="${this.e.updateFilePath}"`,"/nocloseapplications","/mergetasks=runcode,!desktopicon,!quicklaunchicon"],{detached:!0,stdio:["ignore","ignore","ignore"],windowsVerbatimArguments:!0}).once("exit",()=>{this.e=void 0,this.d(ve.Idle(xo()))});const r=`${this.k.win32MutexName}-ready`,n=await import("@vscode/windows-mutex");Ox(()=>n.isActive(r)).then(()=>this.d(ve.Ready(e)))}r(){this.state.type!=="ready"||!this.e||(this.j.trace("update#quitAndInstall(): running raw#quitAndInstall()"),this.e.updateFilePath?su.unlinkSync(this.e.updateFilePath):r5(this.e.packagePath,["/silent","/log","/mergetasks=runcode,!desktopicon,!quicklaunchicon"],{detached:!0,stdio:["ignore","ignore","ignore"]}))}q(){return xo()}async _applySpecificUpdate(e){if(this.state.type!=="idle")return;const i=this.g.getValue("update.enableWindowsBackgroundUpdates"),s={version:"unknown",productVersion:"unknown"};this.d(ve.Downloading),this.e={packagePath:e},this.d(ve.Downloaded(s)),i?this.k.target==="user"&&this.p():this.d(ve.Ready(s))}},__decorate([ue],pc.prototype,"cachePath",null),pc=__decorate([__param(0,_e),__param(1,Be),__param(2,oi),__param(3,ht),__param(4,cn),__param(5,K),__param(6,rt),__param(7,un),__param(8,nt)],pc)}}),n5,o5,Mx=v({"out-build/vs/platform/url/common/urlIpc.js"(){"use strict";re(),n5=class{constructor(t){this.a=t}handleURL(t,e){return this.a.call("handleURL",[t.toJSON(),e])}},o5=class{constructor(t,e){this.a=t,this.b=e}async routeCall(t,e,i,s){if(e!=="handleURL")throw new Error(`Call not found: ${e}`);if(Array.isArray(i)&&i.length>0){const r=$.revive(i[0]);if(this.b.trace("URLHandlerRouter#routeCall() with URI argument",r.toString(!0)),r.query){const n=/\bwindowId=(\d+)/.exec(r.query);if(n){const o=n[1];this.b.trace(`URLHandlerRouter#routeCall(): found windowId query parameter with value "${o}"`,r.toString(!0));const a=new RegExp(`window:${o}`),c=t.connections.find(l=>(this.b.trace("URLHandlerRouter#routeCall(): testing connection",l.ctx),a.test(l.ctx)));if(c)return this.b.trace("URLHandlerRouter#routeCall(): found a connection to route",r.toString(!0)),c;this.b.trace("URLHandlerRouter#routeCall(): did not find a connection to route",r.toString(!0))}else this.b.trace("URLHandlerRouter#routeCall(): did not find windowId query parameter",r.toString(!0))}}else this.b.trace("URLHandlerRouter#routeCall() without URI argument");return this.a.routeCall(t,e,i,s)}routeEvent(t,e){throw new Error(`Event not found: ${e}`)}}}}),a5,nu,Fx=v({"out-build/vs/platform/url/common/urlService.js"(){"use strict";le(),T(),re(),Tt(),a5=class extends j{constructor(){super(...arguments),this.a=new Set}open(t,e){const i=[...this.a.values()];return Ng(i.map(s=>()=>s.handleURL(t,e)),void 0,!1).then(s=>s||!1)}registerHandler(t){return this.a.add(t),be(()=>this.a.delete(t))}},nu=class extends a5{constructor(e){super(),this.b=e}create(e){let{authority:i,path:s,query:r,fragment:n}=e||{authority:void 0,path:void 0,query:void 0,fragment:void 0};return i&&s&&s.indexOf("/")!==0&&(s=`/${s}`),$.from({scheme:this.b.urlProtocol,authority:i,path:s,query:r,fragment:n})}},nu=__decorate([__param(0,nt)],nu)}});import{app as c5}from"electron";var l5,Nx=v({"out-build/vs/platform/url/electron-main/electronUrlListener.js"(){"use strict";le(),J(),T(),G(),re(),l5=class extends j{constructor(t,e,i,s,r,n){if(super(),this.c=e,this.f=n,this.a=[],this.b=0,t&&(n.trace("ElectronURLListener initialUrisToHandle:",t.map(c=>c.originalUrl)),this.a=t),B){const c=s.isBuilt?[]:[`"${s.appRoot}"`];c.push("--open-url","--"),c5.setAsDefaultProtocolClient(r.urlProtocol,process.execPath,c)}const o=x.map(x.fromNodeEventEmitter(c5,"open-url",(c,l)=>({event:c,url:l})),({event:c,url:l})=>(c.preventDefault(),l));this.B(o(c=>{const l=this.g(c);l&&this.c.open(l,{originalUrl:c})})),i.getWindows().filter(c=>c.isReady).length>0?(n.trace("ElectronURLListener: window is ready to handle URLs"),this.h()):(n.trace("ElectronURLListener: waiting for window to be ready to handle URLs..."),this.B(x.once(i.onDidSignalReadyWindow)(()=>this.h())))}g(t){try{return $.parse(t)}catch{return}}async h(){if(this.b++>10){this.f.trace("ElectronURLListener#flush(): giving up after 10 retries");return}this.f.trace("ElectronURLListener#flush(): flushing URLs");const t=[];for(const e of this.a)await this.c.open(e.uri,{originalUrl:e.originalUrl})?this.f.trace("ElectronURLListener#flush(): URL was handled",e.originalUrl):(this.f.trace("ElectronURLListener#flush(): URL was not yet handled",e.originalUrl),t.push(e));t.length!==0&&(this.a=t,G7(()=>this.h(),500,this.q))}}}}),Cp,Wx=v({"out-build/vs/platform/webview/common/webviewManagerService.js"(){"use strict";Z(),Cp=V("webviewManagerService")}});import{protocol as _x}from"electron";var h5,Tx=v({"out-build/vs/platform/webview/electron-main/webviewProtocolProvider.js"(){"use strict";T(),Oe(),re(),h5=class v6 extends j{static{this.a=new Map([["/index.html","index.html"],["/fake.html","fake.html"],["/service-worker.js","service-worker.js"]])}constructor(){super();const e=this.b.bind(this);_x.registerFileProtocol(O.vscodeWebview,e)}b(e,i){try{const s=$.parse(e.url),r=v6.a.get(s.path);if(typeof r=="string"){const n=`vs/workbench/contrib/webview/browser/pre/${r}`,o=ei.asFileUri(n);return i({path:o.fsPath,headers:{...ra.getHeadersFromQuery(e.url),"Cross-Origin-Resource-Policy":"cross-origin"}})}else return i({error:-10})}catch{}return i({error:-2})}}}});import{webContents as Bx}from"electron";var ou,Ux=v({"out-build/vs/platform/webview/electron-main/webviewMainService.js"(){"use strict";J(),T(),Tx(),Dt(),ou=class extends j{constructor(e){super(),this.b=e,this.a=this.B(new D),this.onFoundInFrame=this.a.event,this.B(new h5)}async setIgnoreMenuShortcuts(e,i){let s;if(typeof e.windowId=="number"){const{windowId:r}=e,n=this.b.getWindowById(r);if(!n?.win)throw new Error(`Invalid windowId: ${r}`);s=n.win.webContents}else{const{webContentsId:r}=e;if(s=Bx.fromId(r),!s)throw new Error(`Invalid webContentsId: ${r}`)}s.isDestroyed()||s.setIgnoreMenuShortcuts(i)}async findInFrame(e,i,s,r){const o=this.c(e,i);if(typeof o.findInFrame=="function"){o.findInFrame(s,{findNext:r.findNext,forward:r.forward});const a=(c,l)=>{l.finalUpdate&&(this.a.fire(l),o.removeListener("found-in-frame",a))};o.on("found-in-frame",a)}}async stopFindInFrame(e,i,s){const n=this.c(e,i);typeof n.stopFindInFrame=="function"&&n.stopFindInFrame(s.keepSelection?"keepSelection":"clearSelection")}c(e,i){const s=this.b.getWindowById(e.windowId);if(!s?.win)throw new Error(`Invalid windowId: ${e}`);const r=s.win.webContents.mainFrame.framesInSubtree.find(n=>n.name===i);if(!r)throw new Error(`Unknown frame: ${i}`);return r}},ou=__decorate([__param(0,yt)],ou)}}),au,Rp=v({"out-build/vs/platform/protocol/electron-main/protocol.js"(){"use strict";Z(),au=V("protocolMainService")}});async function jx(t,e,i){let s=i&&i.get("storage.serviceMachineId",-1)||null;if(s)return s;try{const n=(await e.readFile(t.serviceMachineIdResource)).value.toString();s=e3(n)?n:null}catch{s=null}if(!s){s=gi();try{await e.writeFile(t.serviceMachineIdResource,q.fromString(s))}catch{}}return i?.store("storage.serviceMachineId",s,-1,1),s}var zx=v({"out-build/vs/platform/externalServices/common/serviceMachineId.js"(){"use strict";Ke(),Ei()}});async function Hx(t,e,i,s,r,n,o){const a={"X-Market-Client-Id":`VSCode ${t}`,"User-Agent":`VSCode ${t} (${e.nameShort})`};if(K4(e,i)&&Ep(s)===3){const c=await jx(i,r,n);a["X-Market-User-Id"]=c,a["VSCode-SessionId"]=o.machineId||c}return a}var Vx=v({"out-build/vs/platform/externalServices/common/marketplace.js"(){"use strict";zx(),mn()}});function d(t,e){if(pt(e)){const i=Op[e];if(i===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=i}return Op[t]=e,{id:t}}var Op,u5=v({"out-build/vs/base/common/codiconsUtil.js"(){"use strict";$e(),Op=Object.create(null)}}),d5,qx=v({"out-build/vs/base/common/codiconsLibrary.js"(){"use strict";u5(),d5={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)}}});function f5(){return Object.values(Ai)}var p5,Ai,cu=v({"out-build/vs/base/common/codicons.js"(){"use strict";u5(),qx(),p5={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),thumbsDownFilled:d("thumbsdown-filled",60435),thumbsUpFilled:d("thumbsup-filled",60436),gitFetch:d("git-fetch",60445),lightbulbSparkleAutofix:d("lightbulb-sparkle-autofix",60447),debugBreakpointPending:d("debug-breakpoint-pending",60377)},Ai={...d5,...p5}}}),Lp,mc,m5=v({"out-build/vs/base/common/themables.js"(){"use strict";cu(),function(t){function e(i){return!!i&&typeof i=="object"&&typeof i.id=="string"}t.isThemeColor=e}(Lp||(Lp={})),function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9-]+",t.iconModifierExpression="~[A-Za-z]+",t.iconNameCharacter="[A-Za-z0-9~-]";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function i(f){const p=e.exec(f.id);if(!p)return i(Ai.error);const[,m,w]=p,y=["codicon","codicon-"+m];return w&&y.push("codicon-modifier-"+w.substring(1)),y}t.asClassNameArray=i;function s(f){return i(f).join(" ")}t.asClassName=s;function r(f){return"."+i(f).join(".")}t.asCSSSelector=r;function n(f){return!!f&&typeof f=="object"&&typeof f.id=="string"&&(typeof f.color>"u"||Lp.isThemeColor(f.color))}t.isThemeIcon=n;const o=new RegExp(`^\\$\\((${t.iconNameExpression}(?:${t.iconModifierExpression})?)\\)$`);function a(f){const p=o.exec(f);if(!p)return;const[,m]=p;return{id:m}}t.fromString=a;function c(f){return{id:f}}t.fromId=c;function l(f,p){let m=f.id;const w=m.lastIndexOf("~");return w!==-1&&(m=m.substring(0,w)),p&&(m=`${m}~${p}`),{id:m}}t.modify=l;function h(f){const p=f.id.lastIndexOf("~");if(p!==-1)return f.id.substring(p+1)}t.getModifier=h;function u(f,p){return f.id===p.id&&f.color?.id===p.color?.id}t.isEqual=u}(mc||(mc={}))}});import Ui,{screen as Gx}from"electron";import{release as Jx}from"os";var g5,Mp,gc,w5,v5=v({"out-build/vs/platform/windows/electron-main/windowImpl.js"(){"use strict";le(),Et(),jr(),J(),T(),Oe(),Ms(),G(),re(),we(),Va(),Ue(),oo(),Pt(),Qa(),Ve(),tt(),Q(),Tt(),Rp(),Vx(),nh(),ai(),m5(),Oa(),Zr(),Dt(),qt(),rn(),Ma(),$s(),Wi(),Xr(),dc(),Z(),Ke(),De(),function(t){t[t.NONE=0]="NONE",t[t.NAVIGATING=1]="NAVIGATING",t[t.READY=2]="READY"}(g5||(g5={})),Mp=class y6 extends j{get lastFocusTime(){return this.r}get win(){return this.t}u(e,i){this.t=e,this.B(x.fromNodeEventEmitter(e,"maximize")(()=>{if(B&&this.D.enableRDPDisplayTracking&&this.t){const[r,n]=this.t.getPosition(),[o,a]=this.t.getSize();this.s={mode:0,width:o,height:a,x:r,y:n},this.F.debug(`Saved maximized window ${this.id} display state:`,this.s)}this.f.fire()})),this.B(x.fromNodeEventEmitter(e,"unmaximize")(()=>{B&&this.D.enableRDPDisplayTracking&&this.s&&(this.s=void 0,this.F.debug(`Cleared maximized window ${this.id} state`)),this.g.fire()})),this.B(x.fromNodeEventEmitter(e,"closed")(()=>{this.c.fire(),this.dispose()})),this.B(x.fromNodeEventEmitter(e,"focus")(()=>{this.r=Date.now()})),this.B(x.fromNodeEventEmitter(this.t,"enter-full-screen")(()=>this.j.fire())),this.B(x.fromNodeEventEmitter(this.t,"leave-full-screen")(()=>this.m.fire())),this.B(x.fromNodeEventEmitter(this.t,"always-on-top-changed",(r,n)=>n)(r=>this.n.fire(r)));const s=!La(this.z,i?.titleBarStyle==="hidden"?"custom":void 0);if(N&&s&&e.setSheetOffset(T6(Jx())?28:22),s&&a1(this.z)){const r=this.C.getItem(y6.L);r?this.updateWindowControls({height:r}):this.updateWindowControls({height:hy})}(B||Se)&&s&&this.B(x.fromNodeEventEmitter(e,"system-context-menu",(r,n)=>({event:r,point:n}))(r=>{const[n,o]=e.getPosition(),a=Ui.screen.screenToDipPoint(r.point),c=Math.floor(a.x)-n,l=Math.floor(a.y)-o;Se&&c>35&&(r.event.preventDefault(),this.h.fire({x:c,y:l}))})),this.D.args["open-devtools"]===!0&&e.webContents.openDevTools(),N&&(this.B(this.onDidEnterFullScreen(()=>{this.N?.complete(!0)})),this.B(this.onDidLeaveFullScreen(()=>{this.N?.complete(!0)}))),B&&this.D.enableRDPDisplayTracking&&this.B(x.fromNodeEventEmitter(Gx,"display-added",(r,n)=>({event:r,display:n}))(r=>{this.w(r.display)}))}w(e){const i=this.s;i&&this.t&&Na.validateWindowStateOnDisplay(i,e)&&(this.F.debug(`Setting maximized window ${this.id} bounds to match newly added display`,i),this.t.setBounds(i))}constructor(e,i,s,r){super(),this.z=e,this.C=i,this.D=s,this.F=r,this.c=this.B(new D),this.onDidClose=this.c.event,this.f=this.B(new D),this.onDidMaximize=this.f.event,this.g=this.B(new D),this.onDidUnmaximize=this.g.event,this.h=this.B(new D),this.onDidTriggerSystemContextMenu=this.h.event,this.j=this.B(new D),this.onDidEnterFullScreen=this.j.event,this.m=this.B(new D),this.onDidLeaveFullScreen=this.m.event,this.n=this.B(new D),this.onDidChangeAlwaysOnTop=this.n.event,this.r=Date.now(),this.t=null,this.M=void 0,this.N=void 0}G(e,i=Ui.screen.getAllDisplays().length>0){const s=this.z.getValue("window"),r=N&&s?.nativeTabs===!0;(N||B)&&i&&(!r||Fa().length===1)&&[e.width,e.height,e.x,e.y].every(n=>typeof n=="number")&&this.t?.setBounds({width:e.width,height:e.height,x:e.x,y:e.y}),(e.mode===0||e.mode===3)&&(this.t?.maximize(),e.mode===3&&this.O(!0,!0),this.t?.show())}setRepresentedFilename(e){N?this.win?.setRepresentedFilename(e):this.H=e}getRepresentedFilename(){return N?this.win?.getRepresentedFilename():this.H}setDocumentEdited(e){N&&this.win?.setDocumentEdited(e),this.I=e}isDocumentEdited(){return N?!!this.win?.isDocumentEdited():!!this.I}focus(e){switch(e?.mode??0){case 0:this.J();break;case 1:N?Ui.app.dock?.bounce("informational"):B&&this.win?.focus();break;case 2:N&&Ui.app.focus({steal:!0}),this.J();break}}J(){const e=this.win;e&&(e.isMinimized()&&e.restore(),e.focus())}static{this.L="windowControlHeight"}updateWindowControls(e){const i=this.win;if(i){if(e.height&&this.C.setItem(gc.L,e.height),!N&&a1(this.z))i.setTitleBarOverlay({color:e.backgroundColor?.trim()===""?void 0:e.backgroundColor,symbolColor:e.foregroundColor?.trim()===""?void 0:e.foregroundColor,height:e.height?e.height-1:void 0});else if(N&&e.height!==void 0){const s=Math.floor((e.height-16)/2);s?i.setWindowButtonPosition({x:s+1,y:s}):i.setWindowButtonPosition(null)}}}toggleFullScreen(){this.O(!this.isFullScreen,!1)}O(e,i){sy(this.z)?this.P(e,i):this.R(e)}get isFullScreen(){if(N&&typeof this.M=="boolean")return this.M;const e=this.win,i=e?.isFullScreen(),s=e?.isSimpleFullScreen();return!!(i||s)}P(e,i){const s=this.win;s?.isSimpleFullScreen()&&s?.setSimpleFullScreen(!1),this.Q(e,i)}Q(e,i){if(N){this.M=e;const r=this.N=new js;(async()=>{const n=await Promise.race([r.p,mi(1e4).then(()=>!1)]);this.N===r&&(this.M=void 0,this.N=void 0,!n&&e&&i&&this.win&&!this.win.isFullScreen()&&(this.F.warn("window: native macOS fullscreen transition did not happen within 10s from restoring"),this.m.fire()))})()}this.win?.setFullScreen(e)}R(e){const i=this.win;i?.isFullScreen()&&this.Q(!1,!1),i?.setSimpleFullScreen(e),i?.webContents.focus()}dispose(){super.dispose(),this.t=null}},gc=class extends Mp{get id(){return this.X}get backupPath(){return this.Z?.backupPath}get openedWorkspace(){return this.Z?.workspace}get profile(){if(!this.config)return;const e=this.qb.profiles.find(i=>i.id===this.config?.profiles.profile.id);return this.isExtensionDevelopmentHost&&e?e:this.qb.getProfileForWorkspace(this.config.workspace??Gl(this.backupPath,this.isExtensionDevelopmentHost))??this.qb.defaultProfile}get remoteAuthority(){return this.Z?.remoteAuthority}get config(){return this.Z}get isExtensionDevelopmentHost(){return!!this.Z?.extensionDevelopmentPath}get isExtensionTestHost(){return!!this.Z?.extensionTestsPath}get isExtensionDevelopmentTestFromCli(){return this.isExtensionDevelopmentHost&&this.isExtensionTestHost&&!this.Z?.debugId}constructor(e,i,s,r,n,o,a,c,l,h,u,f,p,m,w,y,b,E,A,R,W){super(h,R,r,i),this.ob=s,this.pb=n,this.qb=o,this.rb=a,this.sb=c,this.tb=l,this.ub=u,this.vb=f,this.wb=p,this.xb=m,this.yb=w,this.zb=y,this.Ab=b,this.Bb=A,this.S=this.B(new D),this.onWillLoad=this.S.event,this.U=this.B(new D),this.onDidSignalReady=this.U.event,this.W=this.B(new D),this.onDidDestroy=this.W.event,this.bb=[],this.db=[],this.eb=void 0,this.fb=void 0,this.gb=void 0,this.jb=!1,this.Cb=0;{this.hb=this.B(E.createIPCObjectUrl());const[H,C]=this.Mb(e.state);this.$=H,this.F.trace("window#ctor: using window state",H);const ie=W.invokeFunction(d1,this.$,void 0,{preload:ei.asFileUri("vs/base/parts/sandbox/electron-sandbox/preload.js").fsPath,additionalArguments:[`--vscode-window-config=${this.hb.resource.toString()}`],v8CacheOptions:this.D.useCodeCache?"bypassHeatCheck":"none"});Ne("code/willCreateCodeBrowserWindow"),this.t=new Ui.BrowserWindow(ie),Ne("code/didCreateCodeBrowserWindow"),this.X=this.t.id,this.u(this.t,ie),this.G(this.$,C),this.r=Date.now()}let se=parseInt(this.D.args["unresponsive-sample-interval"]||"1000"),F=parseInt(this.D.args["unresponsive-sample-period"]||"15000");(se<=0||F<=0||se>F)&&(this.F.warn(`Invalid unresponsive sample interval (${se}ms) or period (${F}ms), using defaults.`),se=1e3,F=15e3),this.kb=new Map,this.lb=Math.round(F/se),this.mb=this.B(new ll(se)),this.nb=this.B(new Ki(()=>{this.Wb()},F)),this.Jb(),this.Sb(),this.Db()}setReady(){for(this.F.trace(`window#load: window reported ready (id: ${this.X})`),this.Cb=2;this.bb.length;)this.bb.pop()(this);this.U.fire()}ready(){return new Promise(e=>{if(this.isReady)return e(this);this.bb.push(e)})}get isReady(){return this.Cb===2}get whenClosedOrLoaded(){return new Promise(e=>{function i(){s.dispose(),r.dispose(),e()}const s=this.onDidClose(()=>i()),r=this.onWillLoad(()=>i())})}Db(){this.B(x.fromNodeEventEmitter(this.t,"unresponsive")(()=>this.Gb(1))),this.B(x.fromNodeEventEmitter(this.t,"responsive")(()=>this.Gb(4))),this.B(x.fromNodeEventEmitter(this.t.webContents,"render-process-gone",(i,s)=>s)(i=>this.Gb(2,{...i}))),this.B(x.fromNodeEventEmitter(this.t.webContents,"did-fail-load",(i,s,r)=>({exitCode:s,reason:r}))(({exitCode:i,reason:s})=>this.Gb(3,{reason:s,exitCode:i}))),this.B(x.fromNodeEventEmitter(this.t.webContents,"will-prevent-unload")(i=>i.preventDefault())),this.B(x.fromNodeEventEmitter(this.t.webContents,"did-finish-load")(()=>{this.ib&&(this.Z=this.ib,this.ib=void 0)})),this.B(this.onDidMaximize(()=>{this.Z&&(this.Z.maximized=!0)})),this.B(this.onDidUnmaximize(()=>{this.Z&&(this.Z.maximized=!1)})),this.B(this.onDidEnterFullScreen(()=>{this.sendWhenReady("vscode:enterFullScreen",Je.None)})),this.B(this.onDidLeaveFullScreen(()=>{this.sendWhenReady("vscode:leaveFullScreen",Je.None)})),this.B(this.z.onDidChangeConfiguration(i=>this.Jb(i))),this.B(this.vb.onDidDeleteUntitledWorkspace(i=>this.Ib(i)));const e=["https://*.vsassets.io/*"];if(this.Ab.extensionsGallery?.serviceUrl){const i=$.parse(this.Ab.extensionsGallery.serviceUrl);e.push(`${i.scheme}://${i.authority}/*`)}this.t.webContents.session.webRequest.onBeforeSendHeaders({urls:e},async(i,s)=>{const r=await this.Fb();s({cancel:!1,requestHeaders:Object.assign(i.requestHeaders,r)})})}Fb(){return this.Eb||(this.Eb=Hx(this.Ab.version,this.Ab,this.D,this.z,this.rb,this.sb,this.xb)),this.Eb}async Gb(e,i){switch(e){case 2:this.F.error(`CodeWindow: renderer process gone (reason: ${i?.reason||"<unknown>"}, code: ${i?.exitCode||"<unknown>"})`);break;case 1:this.F.error("CodeWindow: detected unresponsive");break;case 4:this.F.error("CodeWindow: recovered from unresponsive");break;case 3:this.F.error(`CodeWindow: failed to load (reason: ${i?.reason||"<unknown>"}, code: ${i?.exitCode||"<unknown>"})`);break}switch(this.xb.publicLog2("windowerror",{type:e,reason:i?.reason,code:i?.exitCode}),e){case 1:case 2:if(this.isExtensionDevelopmentTestFromCli){this.zb.kill(1);return}if(this.D.args["enable-smoke-test-driver"]){await this.Hb(!1,!1),this.zb.quit();return}if(e===1){if(this.isExtensionDevelopmentHost||this.isExtensionTestHost||this.t&&this.t.webContents&&this.t.webContents.isDevToolsOpened())return;this.mb.trigger(()=>this.Vb()),this.nb.schedule();const{response:s,checkboxChecked:r}=await this.yb.showMessageBox({type:"warning",buttons:[g(2635,null),g(2636,null),g(2637,null)],message:g(2638,null),detail:g(2639,null),checkboxLabel:this.Z?.workspace?g(2640,null):void 0},this.t);if(s!==2){const n=s===0;this.Wb(),await this.Hb(n,r)}}else if(e===2){let s;i?s=g(2642,null,i.reason,i.exitCode??"<unknown>"):s=g(2641,null);const{response:r,checkboxChecked:n}=await this.yb.showMessageBox({type:"warning",buttons:[this.Z?.workspace?g(2643,null):g(2644,null),g(2645,null)],message:s,detail:this.Z?.workspace?g(2646,null):g(2647,null),checkboxLabel:this.Z?.workspace?g(2648,null):void 0},this.t),o=r===0;await this.Hb(o,n)}break;case 4:this.Wb();break}}async Hb(e,i){const s=this.Z?.workspace;if(i&&s)try{const r=this.tb.workspaceStorage(s);await r.init(),r.delete("memento/workbench.parts.editor"),await r.close()}catch(r){this.F.error(r)}this.W.fire();try{if(e&&this.Z){let r,n;wi(s)?r={folderUri:s.uri}:Bt(s)?r={workspaceUri:s.configPath}:n=!0,(await this.Bb.open({context:5,userEnv:this.Z.userEnv,cli:{...this.D.args,_:[]},urisToOpen:r?[r]:void 0,forceEmpty:n,forceNewWindow:!0,remoteAuthority:this.remoteAuthority})).at(0)?.focus()}}finally{this.t?.destroy()}}Ib(e){this.Z?.workspace?.id===e.id&&(this.Z.workspace=void 0)}Jb(e){if(!e||e.affectsConfiguration("window.menuBarVisibility")){const i=this.Ob();i!==this.ab&&(this.ab=i,this.Pb(i))}if(!e||e.affectsConfiguration("http.proxy")||e.affectsConfiguration("http.noProxy")){let s=(this.z.inspect("http.proxy").userLocalValue||"").trim()||(process.env.https_proxy||process.env.HTTPS_PROXY||process.env.http_proxy||process.env.HTTP_PROXY||"").trim()||void 0;if(s?.indexOf("@")!==-1){const n=$.parse(s),o=n.authority.indexOf("@");o!==-1&&(s=n.with({authority:n.authority.substring(o+1)}).toString())}s?.endsWith("/")&&(s=s.substr(0,s.length-1));const r=(this.z.getValue("http.noProxy")||[]).map(n=>n.trim()).join(",")||(process.env.no_proxy||process.env.NO_PROXY||"").trim()||void 0;if((s||"").indexOf("@")===-1&&(s!==this.eb||r!==this.fb)){this.eb=s,this.fb=r;const n=s||"",o=r?`${r},<local>`:"<local>";this.F.trace(`Setting proxy to '${n}', bypassing '${o}'`),this.t.webContents.session.setProxy({proxyRules:n,proxyBypassRules:o,pacScript:""}),Ui.app.setProxy({proxyRules:n,proxyBypassRules:o,pacScript:""})}}}addTabbedWindow(e){N&&e.win&&this.t.addTabbedWindow(e.win)}load(e,i=Object.create(null)){this.F.trace(`window#load: attempt to load window (id: ${this.X})`),this.isDocumentEdited()&&(!i.isReload||!this.wb.isHotExitEnabled())&&this.setDocumentEdited(!1),i.isReload||(this.getRepresentedFilename()&&this.setRepresentedFilename(""),this.t.setTitle(this.Ab.nameLong)),this.Kb(e,i),this.Cb===0?this.Z=e:this.ib=e,this.Cb=1,this.t.loadURL(ei.asBrowserUri(`vs/code/electron-sandbox/workbench/workbench${this.D.isBuilt?"":"-dev"}.html`).toString(!0));const s=this.jb;this.jb=!0,!this.D.isBuilt&&!this.D.extensionTestsLocationURI&&this.B(new Ki(()=>{this.t&&!this.t.isVisible()&&!this.t.isMinimized()&&(this.t.show(),this.focus({mode:2}),this.t.webContents.openDevTools())},1e4)).schedule(),this.S.fire({workspace:e.workspace,reason:i.isReload?3:s?2:1})}Kb(e,i){const s=(this.Z??this.ib)?.userEnv;if(s){const r=on(s)&&!on(e.userEnv),n=this.isExtensionDevelopmentHost;(r||n)&&(e.userEnv={...s,...e.userEnv})}process.env.CHROME_CRASHPAD_PIPE_NAME&&Object.assign(e.userEnv,{CHROME_CRASHPAD_PIPE_NAME:process.env.CHROME_CRASHPAD_PIPE_NAME}),i.disableExtensions!==void 0&&(e["disable-extensions"]=i.disableExtensions);try{e.handle=q.wrap(this.t.getNativeWindowHandle())}catch(r){this.F.error(`Error getting native window handle: ${r}`)}e.fullscreen=this.isFullScreen,e.maximized=this.t.isMaximized(),e.partsSplash=this.ub.getWindowSplash(e.workspace),e.zoomLevel=this.Rb(),e.isCustomZoomLevel=typeof this.gb=="number",e.isCustomZoomLevel&&e.partsSplash&&(e.partsSplash.zoomLevel=e.zoomLevel),Ne("code/willOpenNewWindow"),e.perfMarks=yd(),this.hb.update(e)}async reload(e){const i=Object.assign({},this.Z);i.workspace=await this.Lb(i),delete i.filesToOpenOrCreate,delete i.filesToDiff,delete i.filesToMerge,delete i.filesToWait,this.isExtensionDevelopmentHost&&e&&(i.verbose=e.verbose,i.debugId=e.debugId,i.extensionEnvironment=e.extensionEnvironment,i["inspect-extensions"]=e["inspect-extensions"],i["inspect-brk-extensions"]=e["inspect-brk-extensions"],i["extensions-dir"]=e["extensions-dir"]),i.accessibilitySupport=Ui.app.isAccessibilitySupportEnabled(),i.isInitialStartup=!1,i.policiesData=this.pb.serialize(),i.continueOn=this.D.continueOn,i.profiles={all:this.qb.profiles,profile:this.profile||this.qb.defaultProfile,home:this.qb.profilesHome},i.logLevel=this.ob.getLogLevel(),i.loggers=this.ob.getGlobalLoggers(),this.load(i,{isReload:!0,disableExtensions:e?.["disable-extensions"]})}async Lb(e){if(Bt(e.workspace)){const i=e.workspace.configPath;if(i.scheme===O.file&&!await this.rb.exists(i))return}else if(wi(e.workspace)){const i=e.workspace.uri;if(i.scheme===O.file&&!await this.rb.exists(i))return}return e.workspace}serializeWindowState(){if(!this.t)return Yr();if(this.isFullScreen){let s;try{s=Ui.screen.getDisplayMatching(this.getBounds())}catch{}const r=Yr();return{mode:3,display:s?s.id:void 0,width:this.$.width||r.width,height:this.$.height||r.height,x:this.$.x||0,y:this.$.y||0,zoomLevel:this.gb}}const e=Object.create(null);let i;if(!N&&this.t.isMaximized()?i=0:i=1,i===0?e.mode=0:e.mode=1,i===1||i===0){let s;i===1?s=this.getBounds():s=this.t.getNormalBounds(),e.x=s.x,e.y=s.y,e.width=s.width,e.height=s.height}return e.zoomLevel=this.gb,e}Mb(e){Ne("code/willRestoreCodeWindowState");let i=!1;if(e){this.gb=e.zoomLevel;try{const s=Ui.screen.getAllDisplays();i=s.length>1,e=Na.validateWindowState(this.F,e,s)}catch(s){this.F.warn(`Unexpected error validating window state: ${s}
${s.stack}`)}}return Ne("code/didRestoreCodeWindowState"),[e||Yr(),i]}getBounds(){const[e,i]=this.t.getPosition(),[s,r]=this.t.getSize();return{x:e,y:i,width:s,height:r}}O(e,i){super.O(e,i),this.sendWhenReady(e?"vscode:enterFullScreen":"vscode:leaveFullScreen",Je.None),this.ab&&this.Pb(this.ab,!1)}Ob(){let e=H3(this.z);return["visible","toggle","hidden"].indexOf(e)<0&&(e="classic"),e}Pb(e,i=!0){N||(e==="toggle"&&i&&this.send("vscode:showInfoMessage",g(2649,null)),e==="hidden"?setTimeout(()=>{this.Qb(e)}):this.Qb(e))}Qb(e){const i=this.isFullScreen;switch(e){case"classic":this.t.setMenuBarVisibility(!i),this.t.autoHideMenuBar=i;break;case"visible":this.t.setMenuBarVisibility(!0),this.t.autoHideMenuBar=!1;break;case"toggle":this.t.setMenuBarVisibility(!1),this.t.autoHideMenuBar=!0;break;case"hidden":this.t.setMenuBarVisibility(!1),this.t.autoHideMenuBar=!1;break}}notifyZoomLevel(e){this.gb=e}Rb(){return typeof this.gb=="number"?this.gb:this.z.getValue("window")?.zoomLevel}close(){this.t?.close()}sendWhenReady(e,i,...s){this.isReady?this.send(e,...s):this.ready().then(()=>{i.isCancellationRequested||this.send(e,...s)})}send(e,...i){if(this.t){if(this.t.isDestroyed()||this.t.webContents.isDestroyed()){this.F.warn(`Sending IPC message to channel '${e}' for window that is destroyed`);return}try{this.t.webContents.send(e,...i)}catch(s){this.F.warn(`Error sending IPC message to channel '${e}' of window ${this.X}: ${us(s)}`)}}}updateTouchBar(e){N&&this.db.forEach((i,s)=>{const r=e[s];i.segments=this.Ub(r)})}Sb(){if(N){for(let e=0;e<10;e++){const i=this.Tb();this.db.push(i)}this.t.setTouchBar(new Ui.TouchBar({items:this.db}))}}Tb(e=[]){const i=this.Ub(e),s=new Ui.TouchBar.TouchBarSegmentedControl({segments:i,mode:"buttons",segmentStyle:"automatic",change:r=>{this.sendWhenReady("vscode:runAction",Je.None,{id:s.segments[r].id,from:"touchbar"})}});return s}Ub(e=[]){return e.map(s=>{let r;s.icon&&!mc.isThemeIcon(s.icon)&&s.icon?.dark?.scheme===O.file&&(r=Ui.nativeImage.createFromPath($.revive(s.icon.dark).fsPath),r.isEmpty()&&(r=void 0));let n;return typeof s.title=="string"?n=s.title:n=s.title.value,{id:s.id,label:r?void 0:n,icon:r}})}async Vb(){if(!this.mb.isTriggered()){const e=await this.t.webContents.mainFrame.collectJavaScriptCallStack();if(e){const i=this.kb.get(e)||0;this.kb.set(e,i+1)}this.mb.trigger(()=>this.Vb())}}Wb(){if(this.nb.cancel(),this.mb.cancel(),this.kb.size){let e=`CodeWindow unresponsive samples:
`,i=0;const s=Array.from(this.kb.entries()).sort((r,n)=>n[1]-r[1]);for(const[r,n]of s){if(i+=n,Math.round(n*100/this.lb)>20){const o=new w5(r,this.id,this.win?.webContents.getOSProcessId());zo.onUnexpectedError(o)}e+=`<${n}> ${r}
`}e+=`Total Samples: ${i}
`,e+="For full overview of the unresponsive period, capture cpu profile via https://aka.ms/vscode-tracing-cpu-profile",this.F.error(e)}this.kb.clear()}matches(e){return this.t?.webContents.id===e.id}dispose(){super.dispose(),this.ob.deregisterLoggers(this.id)}},gc=__decorate([__param(1,K),__param(2,ko),__param(3,ht),__param(4,pn),__param(5,xs),__param(6,rt),__param(7,Ha),__param(8,io),__param(9,Be),__param(10,Xn),__param(11,kr),__param(12,so),__param(13,oi),__param(14,br),__param(15,_e),__param(16,nt),__param(17,au),__param(18,yt),__param(19,Pi),__param(20,cs)],gc),w5=class extends Error{constructor(t,e,i=0){const s=Error.stackTraceLimit;Error.stackTraceLimit=0,super(`UnresponsiveSampleError: from window with ID ${e} belonging to process with pid ${i}`),Error.stackTraceLimit=s,this.name="UnresponsiveSampleError",this.stack=t}}}});import Po from"electron";function Kx(t){const e={openedWindows:[]},i=t||{openedWindows:[]};return i.lastActiveWindow&&(e.lastActiveWindow=Fp(i.lastActiveWindow)),i.lastPluginDevelopmentHostWindow&&(e.lastPluginDevelopmentHostWindow=Fp(i.lastPluginDevelopmentHostWindow)),Array.isArray(i.openedWindows)&&(e.openedWindows=i.openedWindows.map(s=>Fp(s))),e}function Fp(t){const e={uiState:t.uiState};return t.backupPath&&(e.backupPath=t.backupPath),t.remoteAuthority&&(e.remoteAuthority=t.remoteAuthority),t.folder&&(e.folderUri=$.parse(t.folder)),t.workspaceIdentifier&&(e.workspace={id:t.workspaceIdentifier.id,configPath:$.parse(t.workspaceIdentifier.configURIPath)}),e}function Zx(t){return{lastActiveWindow:t.lastActiveWindow&&Np(t.lastActiveWindow),lastPluginDevelopmentHostWindow:t.lastPluginDevelopmentHostWindow&&Np(t.lastPluginDevelopmentHostWindow),openedWindows:t.openedWindows.map(e=>Np(e))}}function Np(t){return{workspaceIdentifier:t.workspace&&{id:t.workspace.id,configURIPath:t.workspace.configPath.toString()},folder:t.folderUri&&t.folderUri.toString(),backupPath:t.backupPath,remoteAuthority:t.remoteAuthority,uiState:t.uiState}}var lu,hu,Yx=v({"out-build/vs/platform/windows/electron-main/windowsStateHandler.js"(){"use strict";T(),G(),et(),re(),Ue(),tt(),Q(),Wi(),Dt(),Ma(),qt(),hu=class extends j{static{lu=this}static{this.a="windowsState"}get state(){return this.b}constructor(e,i,s,r,n){super(),this.g=e,this.h=i,this.j=s,this.m=r,this.n=n,this.c=void 0,this.f=!1,this.b=Kx(this.h.getItem(lu.a)),this.r()}r(){Po.app.on("browser-window-blur",()=>{this.f||this.t()}),this.B(this.j.onBeforeCloseWindow(e=>this.u(e))),this.B(this.j.onBeforeShutdown(()=>this.s())),this.B(this.g.onDidChangeWindowsCount(e=>{e.newCount-e.oldCount>0&&(this.c=void 0)})),this.B(this.g.onDidDestroyWindow(e=>this.u(e)))}s(){this.f=!0,this.t()}t(){const e=new Set,i={openedWindows:[],lastPluginDevelopmentHostWindow:this.b.lastPluginDevelopmentHostWindow,lastActiveWindow:this.c};if(!i.lastActiveWindow){let n=this.g.getLastActiveWindow();(!n||n.isExtensionDevelopmentHost)&&(n=this.g.getWindows().find(o=>!o.isExtensionDevelopmentHost)),n&&(i.lastActiveWindow=this.w(n),i.lastActiveWindow.uiState.mode===3&&e.add(i.lastActiveWindow.uiState.display))}const s=this.g.getWindows().find(n=>n.isExtensionDevelopmentHost&&!n.isExtensionTestHost);s&&(i.lastPluginDevelopmentHostWindow=this.w(s),i.lastPluginDevelopmentHostWindow.uiState.mode===3&&(e.has(i.lastPluginDevelopmentHostWindow.uiState.display)?N&&!s.win?.isSimpleFullScreen()&&(i.lastPluginDevelopmentHostWindow.uiState.mode=1):e.add(i.lastPluginDevelopmentHostWindow.uiState.display))),this.g.getWindowCount()>1&&(i.openedWindows=this.g.getWindows().filter(n=>!n.isExtensionDevelopmentHost).map(n=>{const o=this.w(n);return o.uiState.mode===3&&(e.has(o.uiState.display)?N&&o.windowId!==i.lastActiveWindow?.windowId&&!n.win?.isSimpleFullScreen()&&(o.uiState.mode=1):e.add(o.uiState.display)),o}));const r=Zx(i);this.h.setItem(lu.a,r),this.f&&this.m.trace("[WindowsStateHandler] onBeforeShutdown",r)}u(e){if(this.j.quitRequested)return;const i=this.w(e);e.isExtensionDevelopmentHost&&!e.isExtensionTestHost?this.b.lastPluginDevelopmentHostWindow=i:!e.isExtensionDevelopmentHost&&e.openedWorkspace&&this.b.openedWindows.forEach(s=>{const r=Bt(e.openedWorkspace)&&s.workspace?.id===e.openedWorkspace.id,n=wi(e.openedWorkspace)&&s.folderUri&&Ze.isEqual(s.folderUri,e.openedWorkspace.uri);(r||n)&&(s.uiState=i.uiState)}),this.g.getWindowCount()===1&&(this.c=i)}w(e){return{windowId:e.id,workspace:Bt(e.openedWorkspace)?e.openedWorkspace:void 0,folderUri:wi(e.openedWorkspace)?e.openedWorkspace.uri:void 0,backupPath:e.backupPath,remoteAuthority:e.remoteAuthority,uiState:e.serializeWindowState()}}getNewWindowState(e){const i=this.z(e),s=this.n.getValue("window");if(i.mode===3){let r;i.hasDefaultState?r=!!(s?.newWindowDimensions&&["fullscreen","inherit","offset"].indexOf(s.newWindowDimensions)>=0):r=!!(this.j.wasRestarted||s?.restoreFullscreen),r||(i.mode=1)}return i}z(e){const i=this.g.getLastActiveWindow();if(!e.extensionTestsPath){if(e.extensionDevelopmentPath&&this.state.lastPluginDevelopmentHostWindow)return this.state.lastPluginDevelopmentHostWindow.uiState;const c=e.workspace;if(Bt(c)){const h=this.state.openedWindows.filter(u=>u.workspace&&u.workspace.id===c.id).map(u=>u.uiState);if(h.length)return h[0]}if(wi(c)){const h=this.state.openedWindows.filter(u=>u.folderUri&&Ze.isEqual(u.folderUri,c.uri)).map(u=>u.uiState);if(h.length)return h[0]}else if(e.backupPath){const h=this.state.openedWindows.filter(u=>u.backupPath===e.backupPath).map(u=>u.uiState);if(h.length)return h[0]}const l=this.c||this.state.lastActiveWindow;if(!i&&l)return l.uiState}let s;const r=Po.screen.getAllDisplays();if(r.length===1)s=r[0];else{if(N){const c=Po.screen.getCursorScreenPoint();s=Po.screen.getDisplayNearestPoint(c)}!s&&i&&(s=Po.screen.getDisplayMatching(i.getBounds())),s||(s=Po.screen.getPrimaryDisplay()||r[0])}let n=Yr();n.x=Math.round(s.bounds.x+s.bounds.width/2-n.width/2),n.y=Math.round(s.bounds.y+s.bounds.height/2-n.height/2);const o=this.n.getValue("window");let a=!0;if(o?.newWindowDimensions){if(o.newWindowDimensions==="maximized")n.mode=0,a=!1;else if(o.newWindowDimensions==="fullscreen")n.mode=3,a=!1;else if((o.newWindowDimensions==="inherit"||o.newWindowDimensions==="offset")&&i){const c=i.serializeWindowState();c.mode===3?n.mode=3:n={...c,zoomLevel:void 0},a=n.mode!==3&&o.newWindowDimensions==="offset"}}return a&&(n=this.C(n)),n.hasDefaultState=!0,n}C(e){if(this.g.getWindows().length===0)return e;e.x=typeof e.x=="number"?e.x:0,e.y=typeof e.y=="number"?e.y:0;const i=this.g.getWindows().map(s=>s.getBounds());for(;i.some(s=>s.x===e.x||s.y===e.y);)e.x+=30,e.y+=30;return e}},hu=lu=__decorate([__param(0,yt),__param(1,Pi),__param(2,_e),__param(3,K),__param(4,Be)],hu)}});import{spawn as Qx}from"child_process";var Wp,uu,y5=v({"out-build/vs/platform/cssDev/node/cssDevService.js"(){"use strict";ge(),Oe(),On(),xi(),Z(),Q(),Wp=V("ICSSDevelopmentService"),uu=class{constructor(e,i){this.b=e,this.c=i}get isEnabled(){return!this.b.isBuilt}getCssModules(){return this.a??=this.d(),this.a}async d(){if(!this.isEnabled)return[];const e=await import("@vscode/ripgrep");return await new Promise(i=>{const s=Wr.create(),r=[],n=ei.asFileUri("").fsPath,o=Qx(e.rgPath,["-g","**/*.css","--files","--no-ignore",n],{});o.stdout.on("data",a=>{r.push(a)}),o.on("error",a=>{this.c.error("[CSS_DEV] FAILED to compute CSS data",a),i([])}),o.on("close",()=>{const a=Buffer.concat(r).toString("utf8"),c=a.split(`
`).filter(Boolean).map(l=>Fd(n,l).replace(/\\/g,"/")).filter(Boolean).sort();c.some(l=>l.indexOf("vs/")!==0)&&this.c.error(`[CSS_DEV] Detected invalid paths in css modules, raw output: ${a}`),i(c),this.c.info(`[CSS_DEV] DONE, ${c.length} css modules (${Math.round(s.elapsed())}ms)`)})})}},uu=__decorate([__param(0,ps),__param(1,K)],uu)}});import*as Xx from"fs";import{app as eP,BrowserWindow as du,shell as tP}from"electron";import{hostname as iP,release as sP,arch as rP}from"os";function wc(t){return Bt(t?.workspace)}function $o(t){return wi(t?.workspace)}var fu,pu,nP=v({"out-build/vs/platform/windows/electron-main/windowsMainService.js"(){"use strict";la(),kt(),Et(),J(),ki(),hr(),T(),Oe(),ge(),Ms(),G(),ns(),et(),$e(),re(),we(),Va(),Ue(),oo(),Pt(),Ve(),Z(),tt(),Q(),Ap(),Rp(),Ja(),Wi(),Zr(),v5(),Dt(),cb(),Yx(),qt(),C1(),Vh(),rn(),Oa(),$s(),Xr(),dc(),Ya(),y5(),Qt(),fu=Object.create(null),pu=class extends j{constructor(e,i,s,r,n,o,a,c,l,h,u,f,p,m,w,y,b,E,A,R,W,se){super(),this.s=e,this.t=i,this.u=s,this.w=r,this.z=n,this.C=o,this.D=c,this.F=l,this.G=h,this.H=u,this.I=f,this.J=p,this.L=m,this.M=w,this.N=y,this.O=b,this.P=E,this.Q=A,this.R=R,this.S=W,this.U=se,this.a=this.B(new D),this.onDidOpenWindow=this.a.event,this.b=this.B(new D),this.onDidSignalReadyWindow=this.b.event,this.c=this.B(new D),this.onDidDestroyWindow=this.c.event,this.f=this.B(new D),this.onDidChangeWindowsCount=this.f.event,this.g=this.B(new D),this.onDidMaximizeWindow=this.g.event,this.h=this.B(new D),this.onDidUnmaximizeWindow=this.h.event,this.j=this.B(new D),this.onDidChangeFullScreen=this.j.event,this.m=this.B(new D),this.onDidTriggerSystemContextMenu=this.m.event,this.n=new Map,this.r=this.B(new hu(this,a,this.H,this.z,this.J)),this.W()}W(){this.B(this.M.onDidEnterWorkspace(e=>this.b.fire(e.window))),this.B(this.onDidSignalReadyWindow(e=>{if(e.config?.extensionDevelopmentPath||e.config?.extensionTestsPath){const i=new Ae;if(i.add(x.any(e.onDidClose,e.onDidDestroy)(()=>i.dispose())),e.config.extensionDevelopmentPath)for(const s of e.config.extensionDevelopmentPath)i.add(this.Q.addValidFileRoot(s));e.config.extensionTestsPath&&i.add(this.Q.addValidFileRoot(e.config.extensionTestsPath))}}))}openEmptyWindow(e,i){const s=this.F.args,r=i?.remoteAuthority||void 0,n=!0,o=i?.forceReuseWindow,a=!o;return this.open({...e,cli:s,forceEmpty:n,forceNewWindow:a,forceReuseWindow:o,remoteAuthority:r,forceTempProfile:i?.forceTempProfile,forceProfile:i?.forceProfile})}openExistingWindow(e,i){e.focus(),this.X(i,[e])}async open(e){this.z.trace("windowsManager#open"),(e.addMode||e.removeMode)&&(e.initialStartup||!this.getLastActiveWindow())&&(e.addMode=!1,e.removeMode=!1);const i=[],s=[],r=[],n=[],o=[],a=[];let c,l=!1;const h=await this.db(e);this.z.trace("windowsManager#open pathsToOpen",h);for(const w of h)$o(w)?e.addMode?i.push(w):e.removeMode?s.push(w):r.push(w):wc(w)?n.push(w):w.fileUri?(c||(c={filesToOpenOrCreate:[],filesToDiff:[],filesToMerge:[],remoteAuthority:w.remoteAuthority}),c.filesToOpenOrCreate.push(w)):w.backupPath?a.push({backupFolder:ze(w.backupPath),remoteAuthority:w.remoteAuthority}):l=!0;e.diffMode&&c&&c.filesToOpenOrCreate.length>=2&&(c.filesToDiff=c.filesToOpenOrCreate.slice(0,2),c.filesToOpenOrCreate=[]),e.mergeMode&&c&&c.filesToOpenOrCreate.length===4&&(c.filesToMerge=c.filesToOpenOrCreate.slice(0,4),c.filesToOpenOrCreate=[],c.filesToDiff=[]),c&&e.waitMarkerFileURI&&(c.filesToWait={paths:ft([...c.filesToDiff,c.filesToMerge[3],...c.filesToOpenOrCreate]),waitMarkerFileUri:e.waitMarkerFileURI}),e.initialStartup?(o.push(...this.M.getUntitledWorkspaces()),n.push(...o),a.push(...this.I.getEmptyWindowBackups())):a.length=0;const{windows:u,filesOpenedInWindow:f}=await this.Y(e,n,r,a,l,c,i,s);if(this.z.trace(`windowsManager#open used window count ${u.length} (workspacesToOpen: ${n.length}, foldersToOpen: ${r.length}, emptyToRestore: ${a.length}, maybeOpenEmptyWindow: ${l})`),u.length>1)if(f)f.focus();else{const w=this.r.state.lastActiveWindow&&!e.forceEmpty&&!e.cli._.length&&!e.cli["file-uri"]&&!e.cli["folder-uri"]&&!(e.urisToOpen&&e.urisToOpen.length);let y=!0,b=!0;if(w){const E=u.filter(A=>this.r.state.lastActiveWindow&&A.backupPath===this.r.state.lastActiveWindow.backupPath);E.length&&(E[0].focus(),y=!1,b=!1)}if(y)for(let E=u.length-1;E>=0;E--){const A=u[E];if(!(A.openedWorkspace&&o.some(R=>A.openedWorkspace&&R.workspace.id===A.openedWorkspace.id)||A.backupPath&&a.some(R=>A.backupPath&&R.backupFolder===ze(A.backupPath)))){A.focus(),b=!1;break}}b&&u[u.length-1].focus()}const p=c&&c.filesToDiff.length>0,m=c&&c.filesToMerge.length>0;if(!u.some(w=>w.isExtensionDevelopmentHost)&&!p&&!m&&!e.noRecentEntry){const w=[];for(const y of h)wc(y)&&!y.transient?w.push({label:y.label,workspace:y.workspace,remoteAuthority:y.remoteAuthority}):$o(y)?w.push({label:y.label,folderUri:y.workspace.uri,remoteAuthority:y.remoteAuthority}):y.fileUri&&w.push({label:y.label,fileUri:y.fileUri,remoteAuthority:y.remoteAuthority});this.L.addRecentlyOpened(w)}return this.X(e,u),u}X(e,i){const s=e.waitMarkerFileURI;e.context===0&&s&&i.length===1&&i[0]&&(async()=>{await i[0].whenClosedOrLoaded;try{await this.P.del(s)}catch{}})()}async Y(e,i,s,r,n,o,a,c){const l=[];let h;function u(E,A){l.push(E),A&&(h=E,o=void 0)}let{openFolderInNewWindow:f,openFilesInNewWindow:p}=this.qb(e);if(!e.initialStartup&&(a.length>0||c.length>0)){const E=a.at(0)?.remoteAuthority??c.at(0)?.remoteAuthority,A=this.wb(E);A&&u(this.ab(A,a.map(R=>R.workspace.uri),c.map(R=>R.workspace.uri)))}const m=s.length+i.length+r.length;if(o&&m===0){const E=o.filesToOpenOrCreate[0]||o.filesToDiff[0]||o.filesToMerge[3],A=this.getWindows().filter(W=>o&&ti(W.remoteAuthority,o.remoteAuthority));let R;E?.fileUri&&!p&&((e.context===4||e.context===0||e.context===1||e.context===6)&&(R=await xk(A,E.fileUri,async W=>W.configPath.scheme===O.file?this.M.resolveLocalWorkspace(W.configPath):void 0)),R||(R=this.xb(A))),R?Bt(R.openedWorkspace)?i.push({workspace:R.openedWorkspace,remoteAuthority:R.remoteAuthority}):wi(R.openedWorkspace)?s.push({workspace:R.openedWorkspace,remoteAuthority:R.remoteAuthority}):u(this.Z(e,R,o),!0):u(await this.rb({userEnv:e.userEnv,cli:e.cli,initialStartup:e.initialStartup,filesToOpen:o,forceNewWindow:!0,remoteAuthority:o.remoteAuthority,forceNewTabbedWindow:e.forceNewTabbedWindow,forceProfile:e.forceProfile,forceTempProfile:e.forceTempProfile}),!0)}const w=Gi(i,E=>E.workspace.id);if(w.length>0){const E=ft(w.map(A=>ao(this.getWindows(),A.workspace.configPath)));if(E.length>0){const A=E[0],R=ti(o?.remoteAuthority,A.remoteAuthority)?o:void 0;u(this.Z(e,A,R),!!R),f=!0}for(const A of w){if(E.some(se=>se.openedWorkspace&&se.openedWorkspace.id===A.workspace.id))continue;const R=A.remoteAuthority,W=ti(o?.remoteAuthority,R)?o:void 0;u(await this.cb(e,A,f,W),!!W),f=!0}}const y=Gi(s,E=>Ze.getComparisonKey(E.workspace.uri));if(y.length>0){const E=ft(y.map(A=>ao(this.getWindows(),A.workspace.uri)));if(E.length>0){const A=E[0],R=ti(o?.remoteAuthority,A.remoteAuthority)?o:void 0;u(this.Z(e,A,R),!!R),f=!0}for(const A of y){if(E.some(se=>wi(se.openedWorkspace)&&Ze.isEqual(se.openedWorkspace.uri,A.workspace.uri)))continue;const R=A.remoteAuthority,W=ti(o?.remoteAuthority,R)?o:void 0;u(await this.cb(e,A,f,W),!!W),f=!0}}const b=Gi(r,E=>E.backupFolder);if(b.length>0)for(const E of b){const A=E.remoteAuthority,R=ti(o?.remoteAuthority,A)?o:void 0;u(await this.bb(e,!0,A,R,E),!!R),f=!0}if(o||n&&(e.forceEmpty||l.length===0)){const E=o?o.remoteAuthority:e.remoteAuthority;u(await this.bb(e,f,E,o),!!o)}return{windows:Gi(l),filesOpenedInWindow:h}}Z(e,i,s){this.z.trace("windowsManager#doOpenFilesInExistingWindow",{filesToOpen:s}),this.$(i);const r={filesToOpenOrCreate:s?.filesToOpenOrCreate,filesToDiff:s?.filesToDiff,filesToMerge:s?.filesToMerge,filesToWait:s?.filesToWait,termProgram:e?.userEnv?.TERM_PROGRAM};return i.sendWhenReady("vscode:openFiles",Je.None,r),i}$(e){let i=e;const s=du.getFocusedWindow();if(s&&s.id!==e.id){const r=this.S.getWindowByWebContents(s.webContents);r&&r.parentId===e.id&&(i=r)}i.focus()}ab(e,i,s){this.z.trace("windowsManager#doAddRemoveFoldersToExistingWindow",{foldersToAdd:i,foldersToRemove:s}),e.focus();const r={foldersToAdd:i,foldersToRemove:s};return e.sendWhenReady("vscode:addRemoveFolders",Je.None,r),e}bb(e,i,s,r,n){this.z.trace("windowsManager#doOpenEmpty",{restore:!!n,remoteAuthority:s,filesToOpen:r,forceNewWindow:i});let o;return!i&&typeof e.contextWindowId=="number"&&(o=this.getWindowById(e.contextWindowId)),this.rb({userEnv:e.userEnv,cli:e.cli,initialStartup:e.initialStartup,remoteAuthority:s,forceNewWindow:i,forceNewTabbedWindow:e.forceNewTabbedWindow,filesToOpen:r,windowToUse:o,emptyWindowBackupInfo:n,forceProfile:e.forceProfile,forceTempProfile:e.forceTempProfile})}cb(e,i,s,r,n){return this.z.trace("windowsManager#doOpenFolderOrWorkspace",{folderOrWorkspace:i,filesToOpen:r}),!s&&!n&&typeof e.contextWindowId=="number"&&(n=this.getWindowById(e.contextWindowId)),this.rb({workspace:i.workspace,userEnv:e.userEnv,cli:e.cli,initialStartup:e.initialStartup,remoteAuthority:i.remoteAuthority,forceNewWindow:s,forceNewTabbedWindow:e.forceNewTabbedWindow,filesToOpen:r,windowToUse:n,forceProfile:e.forceProfile,forceTempProfile:e.forceTempProfile})}async db(e){let i,s=!1,r=!1;if(e.urisToOpen&&e.urisToOpen.length>0?(i=await this.eb(e),s=!0):e.forceEmpty?i=[fu]:e.cli._.length||e.cli["folder-uri"]||e.cli["file-uri"]?(i=await this.fb(e.cli),i.length===0&&i.push(fu),s=!0):(i=await this.hb(),i.length===0&&i.push(fu),r=!0),!e.addMode&&!e.removeMode&&s){const n=i.filter(o=>$o(o));if(n.length>1){const o=n[0].remoteAuthority;if(n.every(a=>ti(a.remoteAuthority,o))){let a;const c=await this.jb(o,n);c?a=c:a=await this.M.createUntitledWorkspace(n.map(l=>({uri:l.workspace.uri}))),i.push({workspace:a,remoteAuthority:o}),i=i.filter(l=>!$o(l))}}}if(e.initialStartup&&!r&&this.J.getValue("window")?.restoreWindows==="preserve"){const n=await this.hb();i.unshift(...n.filter(o=>wc(o)||$o(o)||o.backupPath))}return i}async eb(e){const i={gotoLineMode:e.gotoLineMode,remoteAuthority:e.remoteAuthority},s=await Promise.all(ft(e.urisToOpen||[]).map(async r=>{const n=await this.kb(r,i);if(n)return n.label=r.label,n;const o=this.mb(r);this.O.showMessageBox({type:"info",buttons:[g(2650,null)],message:o.scheme===O.file?g(2651,null):g(2652,null),detail:o.scheme===O.file?g(2653,null,Tn(o,{os:bi,tildify:this.F})):g(2654,null,o.toString(!0))},du.getFocusedWindow()??void 0)}));return ft(s)}async fb(e){const i=[],s={ignoreFileNotFound:!0,gotoLineMode:e.goto,remoteAuthority:e.remote||void 0,forceOpenWorkspaceAsFile:e.diff&&e._.length===2||e.merge&&e._.length===4},r=e["folder-uri"];if(r){const a=await Promise.all(r.map(c=>{const l=this.gb(c);if(l)return this.kb({folderUri:l},s)}));i.push(...ft(a))}const n=e["file-uri"];if(n){const a=await Promise.all(n.map(c=>{const l=this.gb(c);if(l)return this.kb(Qr(c)?{workspaceUri:l}:{fileUri:l},s)}));i.push(...ft(a))}const o=await Promise.all(e._.map(a=>s.remoteAuthority?this.pb(a,s):this.nb(a,s)));return i.push(...ft(o)),i}gb(e){try{const i=$.parse(e);if(!i.scheme){this.z.error(`Invalid URI input string, scheme missing: ${e}`);return}return i.path?i:i.with({path:"/"})}catch(i){this.z.error(`Invalid URI input string: ${e}, ${i.message}`)}}async hb(){const e=this.ib();switch(e){case"none":return[];case"one":case"all":case"preserve":case"folders":{const i=[];e!=="one"&&i.push(...this.r.state.openedWindows),this.r.state.lastActiveWindow&&i.push(this.r.state.lastActiveWindow);const s=await Promise.all(i.map(async r=>{if(r.workspace){const n=await this.kb({workspaceUri:r.workspace.configPath},{remoteAuthority:r.remoteAuthority,rejectTransientWorkspaces:!0});if(wc(n))return n}else if(r.folderUri){const n=await this.kb({folderUri:r.folderUri},{remoteAuthority:r.remoteAuthority});if($o(n))return n}else if(e!=="folders"&&r.backupPath)return{backupPath:r.backupPath,remoteAuthority:r.remoteAuthority}}));return ft(s)}}}ib(){let e;return this.H.wasRestarted?e="all":(e=this.J.getValue("window")?.restoreWindows||"all",["preserve","all","folders","one","none"].includes(e)||(e="all")),e}async jb(e,i){const s=(await this.hb()).filter(n=>wc(n)),r=i.map(n=>n.workspace.uri);for(const{workspace:n}of s){const o=await this.M.resolveLocalWorkspace(n.configPath);if(!o||o.remoteAuthority!==e||o.transient||o.folders.length!==i.length)continue;const a=new Td(r,c=>Ze.getComparisonKey(c));if(o.folders.every(c=>a.has(c.uri)))return o}}async kb(e,i=Object.create(null)){const s=this.mb(e);return s.scheme===O.file?(ey(e)&&(i={...i,forceOpenWorkspaceAsFile:!0}),this.nb(s.fsPath,i)):this.lb(e,i)}lb(e,i){let s=this.mb(e);const r=lo(s)||i.remoteAuthority;if(s=Lg(cf(s)),ey(e)){if(i.gotoLineMode){const{path:n,line:o,column:a}=nl(s.path);return{fileUri:s.with({path:n}),options:{selection:o?{startLineNumber:o,startColumn:a||1}:void 0},remoteAuthority:r}}return{fileUri:s,remoteAuthority:r}}else if(o1(e))return{workspace:en(s),remoteAuthority:r};return{workspace:D1(s),remoteAuthority:r}}mb(e){return o1(e)?e.workspaceUri:Xv(e)?e.folderUri:e.fileUri}async nb(e,i,s){let r,n;i.gotoLineMode&&({path:e,line:r,column:n}=nl(e)),e=ug(Zt(e),Fs());try{const o=await Xx.promises.stat(e);if(o.isFile()){if(!i.forceOpenWorkspaceAsFile){const a=await this.M.resolveLocalWorkspace($.file(e));if(a)return a.transient&&i.rejectTransientWorkspaces?void 0:{workspace:{id:a.id,configPath:a.configPath},type:$t.File,exists:!0,remoteAuthority:a.remoteAuthority,transient:a.transient}}return{fileUri:$.file(e),type:$t.File,exists:!0,options:{selection:r?{startLineNumber:r,startColumn:n||1}:void 0}}}else{if(o.isDirectory())return{workspace:D1($.file(e),o),type:$t.Directory,exists:!0};if(!B&&e==="/dev/null")return{fileUri:$.file(e),type:$t.File,exists:!0}}}catch(o){if(o.code==="ERR_UNC_HOST_NOT_ALLOWED"&&!s)return this.ob(e,i);const a=$.file(e);if(this.L.removeRecentlyOpened([a]),i.ignoreFileNotFound&&o.code==="ENOENT")return{fileUri:a,type:$t.File,exists:!1};this.z.error(`Invalid path provided: ${e}, ${o.message}`)}}async ob(e,i){const s=$.file(e),{response:r,checkboxChecked:n}=await this.O.showMessageBox({type:"warning",buttons:[g(2655,null),g(2656,null),g(2657,null)],message:g(2658,null,s.authority),detail:g(2659,null,Tn(s,{os:bi,tildify:this.F})),checkboxLabel:g(2660,null,s.authority),cancelId:1});if(r===0){if(ca(s.authority),n){const o={channel:"vscode:configureAllowedUNCHost",args:s.authority};this.sendToFocused(o.channel,o.args),this.sendToOpeningWindow(o.channel,o.args)}return this.nb(e,i,!0)}if(r===2)return tP.openExternal("https://aka.ms/vscode-windows-unc"),this.ob(e,i)}pb(e,i){const s=e.charCodeAt(0),r=i.remoteAuthority;let n,o;i.gotoLineMode&&({path:e,line:n,column:o}=nl(e)),s!==47&&(Qd(s)&&e.charCodeAt(e.charCodeAt(1))===58&&(e=Ln(e)),e=`/${e}`);const a=$.from({scheme:O.vscodeRemote,authority:r,path:e});if(e.charCodeAt(e.length-1)!==47){if(Qr(e))return i.forceOpenWorkspaceAsFile?{fileUri:a,options:{selection:n?{startLineNumber:n,startColumn:o||1}:void 0},remoteAuthority:i.remoteAuthority}:{workspace:en(a),remoteAuthority:r};if(i.gotoLineMode||ce.basename(e).indexOf(".")!==-1)return{fileUri:a,options:{selection:n?{startLineNumber:n,startColumn:o||1}:void 0},remoteAuthority:r}}return{workspace:D1(a),remoteAuthority:r}}qb(e){const i=this.J.getValue("window"),s=i?.openFoldersInNewWindow||"default",r=i?.openFilesInNewWindow||"off";let n=(e.preferNewWindow||e.forceNewWindow)&&!e.forceReuseWindow;!e.forceNewWindow&&!e.forceReuseWindow&&(s==="on"||s==="off")&&(n=s==="on");let o=!1;return e.forceNewWindow||e.forceReuseWindow?o=!!e.forceNewWindow&&!e.forceReuseWindow:(N?e.context===1&&(o=!0):e.context!==3&&e.context!==2&&!(e.userEnv&&e.userEnv.TERM_PROGRAM==="vscode")&&(o=!0),!e.cli.extensionDevelopmentPath&&(r==="on"||r==="off")&&(o=r==="on")),{openFolderInNewWindow:!!n,openFilesInNewWindow:o}}async openExtensionDevelopmentHostWindow(e,i){const s=Pk(this.getWindows(),e);if(s)return this.H.reload(s,i.cli),s.focus(),[s];let r=i.cli["folder-uri"]||[],n=i.cli["file-uri"]||[],o=i.cli._;if(!o.length&&!r.length&&!n.length&&!i.cli.extensionTestsPath){const l=this.r.state.lastPluginDevelopmentHostWindow,h=l?.workspace??l?.folderUri;h&&($.isUri(h)?h.scheme===O.file?o=[h.fsPath]:r=[h.toString()]:h.configPath.scheme===O.file?o=[pi(h.configPath)]:n=[h.configPath.toString()])}let a=i.remoteAuthority;for(const l of e)if(l.match(/^[a-zA-Z][a-zA-Z0-9\+\-\.]+:/)){const h=$.parse(l),u=lo(h);u&&(a?ti(u,a)||this.z.error("more than one extension development path authority"):a=u)}o=o.filter(l=>{const h=$.file(l);return ao(this.getWindows(),h)?!1:ti(lo(h),a)}),r=r.filter(l=>{const h=this.gb(l);return h&&ao(this.getWindows(),h)?!1:h?ti(lo(h),a):!1}),n=n.filter(l=>{const h=this.gb(l);return h&&ao(this.getWindows(),h)?!1:h?ti(lo(h),a):!1}),i.cli._=o,i.cli["folder-uri"]=r,i.cli["file-uri"]=n;const c={context:i.context,cli:i.cli,forceNewWindow:!0,forceEmpty:!o.length&&!r.length&&!n.length,userEnv:i.userEnv,noRecentEntry:!0,waitMarkerFileURI:i.waitMarkerFileURI,remoteAuthority:a,forceProfile:i.forceProfile,forceTempProfile:i.forceTempProfile};return this.open(c)}async rb(e){const i=this.J.getValue("window"),s=this.getLastActiveWindow(),n=(i?.newWindowProfile?this.G.profiles.find(c=>c.name===i.newWindowProfile):void 0)??s?.profile??this.G.defaultProfile;let o;!e.forceNewWindow&&!e.forceNewTabbedWindow&&(o=e.windowToUse||s,o&&o.focus());const a={...this.F.args,...e.cli,machineId:this.s,sqmId:this.t,devDeviceId:this.u,windowId:-1,mainPid:process.pid,appRoot:this.F.appRoot,execPath:process.execPath,codeCachePath:this.F.codeCachePath,backupPath:e.emptyWindowBackupInfo?M(this.F.backupHome,e.emptyWindowBackupInfo.backupFolder):void 0,profiles:{home:this.G.profilesHome,all:this.G.profiles,profile:n},homeDir:this.F.userHome.with({scheme:O.file}).fsPath,tmpDir:this.F.tmpDir.with({scheme:O.file}).fsPath,userDataDir:this.F.userDataPath,remoteAuthority:e.remoteAuthority,workspace:e.workspace,userEnv:{...this.w,...e.userEnv},nls:{messages:Vm(),language:bd()},filesToOpenOrCreate:e.filesToOpen?.filesToOpenOrCreate,filesToDiff:e.filesToOpen?.filesToDiff,filesToMerge:e.filesToOpen?.filesToMerge,filesToWait:e.filesToOpen?.filesToWait,logLevel:this.C.getLogLevel(),loggers:this.C.getGlobalLoggers(),logsPath:this.F.logsHome.with({scheme:O.file}).fsPath,product:As,isInitialStartup:e.initialStartup,perfMarks:yd(),os:{release:sP(),hostname:iP(),arch:rP()},autoDetectHighContrast:i?.autoDetectHighContrast??!0,autoDetectColorScheme:i?.autoDetectColorScheme??!1,accessibilitySupport:eP.accessibilitySupportEnabled,colorScheme:this.R.getColorScheme(),policiesData:this.D.serialize(),continueOn:this.F.continueOn,cssModules:this.U.isEnabled?await this.U.getCssModules():void 0};if(o){const c=o.config;!a.extensionDevelopmentPath&&c?.extensionDevelopmentPath&&(a.extensionDevelopmentPath=c.extensionDevelopmentPath,a.extensionDevelopmentKind=c.extensionDevelopmentKind,a["enable-proposed-api"]=c["enable-proposed-api"],a.verbose=c.verbose,a["inspect-extensions"]=c["inspect-extensions"],a["inspect-brk-extensions"]=c["inspect-brk-extensions"],a.debugId=c.debugId,a.extensionEnvironment=c.extensionEnvironment,a["extensions-dir"]=c["extensions-dir"],a["disable-extensions"]=c["disable-extensions"],a["disable-extension"]=c["disable-extension"]),a.loggers=a.loggers}else{const c=this.r.getNewWindowState(a);Ne("code/willCreateCodeWindow");const l=o=this.N.createInstance(gc,{state:c,extensionDevelopmentPath:a.extensionDevelopmentPath,isExtensionTestHost:!!a.extensionTestsPath});Ne("code/didCreateCodeWindow"),e.forceNewTabbedWindow&&this.getLastActiveWindow()?.addTabbedWindow(l),this.n.set(l.id,l),this.a.fire(l),this.f.fire({oldCount:this.getWindowCount()-1,newCount:this.getWindowCount()});const h=new Ae;h.add(l.onDidSignalReady(()=>this.b.fire(l))),h.add(x.once(l.onDidClose)(()=>this.ub(l,h))),h.add(x.once(l.onDidDestroy)(()=>this.vb(l))),h.add(l.onDidMaximize(()=>this.g.fire(l))),h.add(l.onDidUnmaximize(()=>this.h.fire(l))),h.add(l.onDidEnterFullScreen(()=>this.j.fire({window:l,fullscreen:!0}))),h.add(l.onDidLeaveFullScreen(()=>this.j.fire({window:l,fullscreen:!1}))),h.add(l.onDidTriggerSystemContextMenu(({x:f,y:p})=>this.m.fire({window:l,x:f,y:p})));const u=Go(l.win?.webContents);u.removeAllListeners("devtools-reload-page"),h.add(x.fromNodeEventEmitter(u,"devtools-reload-page")(()=>this.H.reload(l))),this.H.registerWindow(l)}return a.windowId=o.id,o.isReady?this.H.unload(o,4).then(async c=>{c||await this.sb(o,a,e,n)}):await this.sb(o,a,e,n),o}async sb(e,i,s,r){i.extensionDevelopmentPath||(Bt(i.workspace)?i.backupPath=this.I.registerWorkspaceBackup({workspace:i.workspace,remoteAuthority:i.remoteAuthority}):wi(i.workspace)?i.backupPath=this.I.registerFolderBackup({folderUri:i.workspace.uri,remoteAuthority:i.remoteAuthority}):i.backupPath=this.I.registerEmptyWindowBackup({backupFolder:s.emptyWindowBackupInfo?.backupFolder??I1().id,remoteAuthority:i.remoteAuthority}));const n=i.workspace??Gl(i.backupPath,!1),o=this.tb(s,n,r),a=o instanceof Promise?await o:o;i.profiles.profile=a,i.extensionDevelopmentPath||await this.G.setProfileForWorkspace(n,a),e.load(i)}tb(e,i,s){return e.forceProfile?this.G.profiles.find(r=>r.name===e.forceProfile)??this.G.createNamedProfile(e.forceProfile):e.forceTempProfile?this.G.createTransientProfile():this.G.getProfileForWorkspace(i)??s}ub(e,i){this.n.delete(e.id),this.f.fire({oldCount:this.getWindowCount()+1,newCount:this.getWindowCount()}),i.dispose()}vb(e){this.n.delete(e.id),this.c.fire(e)}getFocusedWindow(){const e=du.getFocusedWindow();if(e)return this.getWindowById(e.id)}getLastActiveWindow(){return this.xb(this.getWindows())}wb(e){return this.xb(this.getWindows().filter(i=>ti(i.remoteAuthority,e)))}xb(e){return gy(e)}sendToFocused(e,...i){(this.getFocusedWindow()||this.getLastActiveWindow())?.sendWhenReady(e,Je.None,...i)}sendToOpeningWindow(e,...i){this.B(x.once(this.onDidSignalReadyWindow)(s=>{s.sendWhenReady(e,Je.None,...i)}))}sendToAll(e,i,s){for(const r of this.getWindows())s&&s.indexOf(r.id)>=0||r.sendWhenReady(e,Je.None,i)}getWindows(){return Array.from(this.n.values())}getWindowCount(){return this.n.size}getWindowById(e){return this.n.get(e)}getWindowByWebContents(e){const i=du.fromWebContents(e);if(!i)return;const s=this.getWindowById(i.id);return s?.matches(e)?s:void 0}},pu=__decorate([__param(4,K),__param(5,ko),__param(6,Pi),__param(7,pn),__param(8,ht),__param(9,xs),__param(10,_e),__param(11,so),__param(12,Be),__param(13,hc),__param(14,kr),__param(15,cs),__param(16,br),__param(17,rt),__param(18,au),__param(19,Xn),__param(20,nn),__param(21,Wp)],pu)}}),b5,oP=v({"out-build/vs/platform/windows/node/windowTracker.js"(){"use strict";le(),J(),T(),b5=class extends j{constructor({onDidOpenMainWindow:t,onDidFocusMainWindow:e,getActiveWindowId:i}){super(),this.a=this.B(new Ae),x.latch(x.any(t,e))(this.f,this,this.a),this.b=Mn(()=>i()),(async()=>{try{const r=await this.b;this.c=typeof this.c=="number"?this.c:r}catch{}finally{this.b=void 0}})()}f(t){this.b&&(this.b.cancel(),this.b=void 0),this.c=t}async getActiveClientId(){return`window:${this.b?await this.b:this.c}`}}}}),mu,aP=v({"out-build/vs/platform/workspaces/electron-main/workspacesMainService.js"(){"use strict";Va(),Dt(),Vh(),rn(),mu=class{constructor(e,i,s,r){this.a=e,this.b=i,this.c=s,this.d=r,this.onDidChangeRecentlyOpened=this.c.onDidChangeRecentlyOpened}async enterWorkspace(e,i){const s=this.b.getWindowById(e);if(s)return this.a.enterWorkspace(s,this.b.getWindows(),i)}createUntitledWorkspace(e,i,s){return this.a.createUntitledWorkspace(i,s)}deleteUntitledWorkspace(e,i){return this.a.deleteUntitledWorkspace(i)}getWorkspaceIdentifier(e,i){return this.a.getWorkspaceIdentifier(i)}getRecentlyOpened(e){return this.c.getRecentlyOpened()}addRecentlyOpened(e,i){return this.c.addRecentlyOpened(i)}removeRecentlyOpened(e,i){return this.c.removeRecentlyOpened(i)}clearRecentlyOpened(e){return this.c.clearRecentlyOpened()}async getDirtyWorkspaces(){return this.d.getDirtyWorkspaces()}},mu=__decorate([__param(0,kr),__param(1,yt),__param(2,hc),__param(3,so)],mu)}}),k5,cP=v({"out-build/vs/platform/policy/common/policyIpc.js"(){"use strict";J(),T(),$s(),k5=class{constructor(t){this.b=t,this.a=new Ae}listen(t,e){switch(e){case"onDidChange":return x.map(this.b.onDidChange,i=>i.reduce((s,r)=>({...s,[r]:this.b.getPolicyValue(r)??null}),{}),this.a)}throw new Error(`Event not found: ${e}`)}call(t,e,i){switch(e){case"updatePolicyDefinitions":return this.b.updatePolicyDefinitions(i)}throw new Error(`Call not found: ${e}`)}dispose(){this.a.dispose()}}}});function lP(t,e){switch(t){case 3:return e==="x64"?"win32-x64":e==="arm64"?"win32-arm64":"unknown";case 2:return e==="x64"?"linux-x64":e==="arm64"?"linux-arm64":e==="arm"?"linux-armhf":"unknown";case"alpine":return e==="x64"?"alpine-x64":e==="arm64"?"alpine-arm64":"unknown";case 1:return e==="x64"?"darwin-x64":e==="arm64"?"darwin-arm64":"unknown";case 0:return"web"}}function hP(t){return t&&typeof t=="object"&&typeof t.id=="string"&&(!t.uuid||typeof t.uuid=="string")}var S5,uP,E5,x5,P5,$5,A5,D5,dP,I5,C5,R5,fP,pP,mP,gP,wP,vP,O5,L5=v({"out-build/vs/platform/extensionManagement/common/extensionManagement.js"(){"use strict";we(),lr(),Z(),ls(),S5="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",uP=new RegExp(S5),function(t){t.COMMAND="command",t.SETTINGS_SYNC="settingsSync"}(E5||(E5={})),function(t){t.NoneOrRelevance="NoneOrRelevance",t.LastUpdatedDate="LastUpdatedDate",t.Title="Title",t.PublisherName="PublisherName",t.InstallCount="InstallCount",t.PublishedDate="PublishedDate",t.AverageRating="AverageRating",t.WeightedRating="WeightedRating"}(x5||(x5={})),function(t){t[t.Default=0]="Default",t[t.Ascending=1]="Ascending",t[t.Descending=2]="Descending"}(P5||(P5={})),function(t){t.Category="Category",t.ExtensionId="ExtensionId",t.ExtensionName="ExtensionName",t.ExcludeWithFlags="ExcludeWithFlags",t.Featured="Featured",t.SearchText="SearchText",t.Tag="Tag",t.Target="Target"}($5||($5={})),function(t){t.Install="install",t.Uninstall="uninstall"}(A5||(A5={})),function(t){t[t.None=1]="None",t[t.Install=2]="Install",t[t.Update=3]="Update",t[t.Migrate=4]="Migrate"}(D5||(D5={})),dP=V("extensionGalleryService"),function(t){t.Timeout="Timeout",t.Cancelled="Cancelled",t.Failed="Failed",t.DownloadFailedWriting="DownloadFailedWriting",t.Offline="Offline"}(I5||(I5={})),function(t){t.NotFound="NotFound",t.Unsupported="Unsupported",t.Deprecated="Deprecated",t.Malicious="Malicious",t.Incompatible="Incompatible",t.IncompatibleApi="IncompatibleApi",t.IncompatibleTargetPlatform="IncompatibleTargetPlatform",t.ReleaseVersionNotFound="ReleaseVersionNotFound",t.Invalid="Invalid",t.Download="Download",t.DownloadSignature="DownloadSignature",t.DownloadFailedWriting="DownloadFailedWriting",t.UpdateMetadata="UpdateMetadata",t.Extract="Extract",t.Scanning="Scanning",t.ScanningExtension="ScanningExtension",t.ReadRemoved="ReadRemoved",t.UnsetRemoved="UnsetRemoved",t.Delete="Delete",t.Rename="Rename",t.IntializeDefaultProfile="IntializeDefaultProfile",t.AddToProfile="AddToProfile",t.InstalledExtensionNotFound="InstalledExtensionNotFound",t.PostInstall="PostInstall",t.CorruptZip="CorruptZip",t.IncompleteZip="IncompleteZip",t.PackageNotSigned="PackageNotSigned",t.SignatureVerificationInternal="SignatureVerificationInternal",t.SignatureVerificationFailed="SignatureVerificationFailed",t.NotAllowed="NotAllowed",t.Gallery="Gallery",t.Cancelled="Cancelled",t.Unknown="Unknown",t.Internal="Internal"}(C5||(C5={})),function(t){t.NotSigned="NotSigned",t.Success="Success",t.RequiredArgumentMissing="RequiredArgumentMissing",t.InvalidArgument="InvalidArgument",t.PackageIsUnreadable="PackageIsUnreadable",t.UnhandledException="UnhandledException",t.SignatureManifestIsMissing="SignatureManifestIsMissing",t.SignatureManifestIsUnreadable="SignatureManifestIsUnreadable",t.SignatureIsMissing="SignatureIsMissing",t.SignatureIsUnreadable="SignatureIsUnreadable",t.CertificateIsUnreadable="CertificateIsUnreadable",t.SignatureArchiveIsUnreadable="SignatureArchiveIsUnreadable",t.FileAlreadyExists="FileAlreadyExists",t.SignatureArchiveIsInvalidZip="SignatureArchiveIsInvalidZip",t.SignatureArchiveHasSameSignatureFile="SignatureArchiveHasSameSignatureFile",t.PackageIntegrityCheckFailed="PackageIntegrityCheckFailed",t.SignatureIsInvalid="SignatureIsInvalid",t.SignatureManifestIsInvalid="SignatureManifestIsInvalid",t.SignatureIntegrityCheckFailed="SignatureIntegrityCheckFailed",t.EntryIsMissing="EntryIsMissing",t.EntryIsTampered="EntryIsTampered",t.Untrusted="Untrusted",t.CertificateRevoked="CertificateRevoked",t.SignatureIsNotValid="SignatureIsNotValid",t.UnknownError="UnknownError",t.PackageIsInvalidZip="PackageIsInvalidZip",t.SignatureArchiveHasTooManyEntries="SignatureArchiveHasTooManyEntries"}(R5||(R5={})),fP=V("extensionManagementService"),pP=V("IGlobalExtensionEnablementService"),mP=V("IExtensionTipsService"),gP=V("IAllowedExtensionsService"),wP=Jm(1933,"Extensions"),vP=Jm(1934,"Preferences"),O5="extensions.allowed",zt.as(Si.Configuration).registerConfiguration({id:"extensions",order:30,title:g(1916,null),type:"object",properties:{[O5]:{type:"object",markdownDescription:g(1917,null),default:"*",defaultSnippets:[{body:{},description:g(1918,null)},{body:{"*":!0},description:g(1919,null)}],scope:1,policy:{name:"AllowedExtensions",minimumVersion:"1.96",description:g(1920,null)},additionalProperties:!1,patternProperties:{"([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$":{anyOf:[{type:["boolean","string"],enum:[!0,!1,"stable"],description:g(1921,null),enumDescriptions:[g(1922,null),g(1923,null),g(1924,null)]},{type:"array",items:{type:"string"},description:g(1925,null)}]},"([a-z0-9A-Z][a-z0-9-A-Z]*)$":{type:["boolean","string"],enum:[!0,!1,"stable"],description:g(1926,null),enumDescriptions:[g(1927,null),g(1928,null),g(1929,null)]},"\\*":{type:"boolean",enum:[!0,!1],description:g(1930,null),enumDescriptions:[g(1931,null),g(1932,null)]}}}}})}});function yP(t){return t.map(e=>{const[i,s]=e.split("@");return{proposalName:i,version:s?parseInt(s):void 0}})}function bP(t){return t.map(e=>e.split("@")[0])}var M5,F5,_p,N5,W5,Ao,_5,kP,Tp=v({"out-build/vs/platform/extensions/common/extensions.js"(){"use strict";xt(),Z(),Ja(),M5="extensions.user.cache",F5="extensions.builtin.cache",_p="undefined_publisher",function(t){t[t.System=0]="System",t[t.User=1]="User"}(N5||(N5={})),function(t){t.WIN32_X64="win32-x64",t.WIN32_ARM64="win32-arm64",t.LINUX_X64="linux-x64",t.LINUX_ARM64="linux-arm64",t.LINUX_ARMHF="linux-armhf",t.ALPINE_X64="alpine-x64",t.ALPINE_ARM64="alpine-arm64",t.DARWIN_X64="darwin-x64",t.DARWIN_ARM64="darwin-arm64",t.WEB="web",t.UNIVERSAL="universal",t.UNKNOWN="unknown",t.UNDEFINED="undefined"}(W5||(W5={})),Ao=class{constructor(t){this.value=t,this._lower=t.toLowerCase()}static equals(t,e){if(typeof t>"u"||t===null)return typeof e>"u"||e===null;if(typeof e>"u"||e===null)return!1;if(typeof t=="string"||typeof e=="string"){const i=typeof t=="string"?t:t.value,s=typeof e=="string"?e:e.value;return Bs(i,s)}return t._lower===e._lower}static toKey(t){return typeof t=="string"?t.toLowerCase():t._lower}},_5=class{constructor(){this.c=new Map}clear(){this.c.clear()}delete(t){this.c.delete(Ao.toKey(t))}get(t){return this.c.get(Ao.toKey(t))}has(t){return this.c.has(Ao.toKey(t))}set(t,e){this.c.set(Ao.toKey(t),e)}values(){return this.c.values()}forEach(t){this.c.forEach(t)}[Symbol.iterator](){return this.c[Symbol.iterator]()}},kP=V("IBuiltinExtensionsScannerService")}});function vc(t,e){return t.uuid&&e.uuid?t.uuid===e.uuid:t.id===e.id?!0:Yd(t.id,e.id)===0}function SP(t,e){return`${t}.${e}`}function EP(t){return t.toLowerCase()}function xP(t,e){return EP(SP(t??_p,e))}async function PP(t,e){if(!Se)return!1;let i;try{i=(await t.readFile($.file("/etc/os-release"))).value.toString()}catch{try{i=(await t.readFile($.file("/usr/lib/os-release"))).value.toString()}catch(r){e.debug("Error while getting the os-release file.",Li(r))}}return!!i&&(i.match(/^ID=([^\u001b\r\n]*)/m)||[])[1]==="alpine"}async function $P(t,e){const i=await PP(t,e),s=lP(i?"alpine":In,u0);return e.info("ComputeTargetPlatform:",s),s}var AP,T5=v({"out-build/vs/platform/extensionManagement/common/extensionManagementUtil.js"(){"use strict";xt(),L5(),Tp(),G(),re(),De(),ns(),mn(),$e(),AP=new Ao("pprice.better-merge")}});function B5(t){return St(t)&&hP(t.identifier)&&(DP(t.location)||pt(t.location)&&t.location)&&(_s(t.relativeLocation)||pt(t.relativeLocation))&&t.version&&pt(t.version)}function DP(t){return t?pt(t.path)&&pt(t.scheme):!1}var U5,yc,Do,gu,wu=v({"out-build/vs/platform/extensionManagement/common/extensionsProfileScannerService.js"(){"use strict";le(),Ke(),T(),J(),Qt(),re(),L5(),T5(),Ve(),Z(),Q(),Es(),ks(),$e(),De(),function(t){t.ERROR_PROFILE_NOT_FOUND="ERROR_PROFILE_NOT_FOUND",t.ERROR_INVALID_CONTENT="ERROR_INVALID_CONTENT"}(U5||(U5={})),yc=class extends Error{constructor(t,e){super(t),this.code=e}},Do=V("IExtensionsProfileScannerService"),gu=class extends j{constructor(e,i,s,r,n){super(),this.j=e,this.m=i,this.n=s,this.r=r,this.s=n,this.b=this.B(new D),this.onAddExtensions=this.b.event,this.c=this.B(new D),this.onDidAddExtensions=this.c.event,this.f=this.B(new D),this.onRemoveExtensions=this.f.event,this.g=this.B(new D),this.onDidRemoveExtensions=this.g.event,this.h=new Rt}scanProfileExtensions(e,i){return this.t(e,void 0,i)}async addExtensionsToProfile(e,i,s){const r=[],n=[];try{return await this.t(i,o=>{const a=[];if(s)a.push(...o);else for(const c of o)e.some(([l])=>vc(l.identifier,c.identifier)&&l.manifest.version!==c.version)?r.push(c):a.push(c);for(const[c,l]of e){const h=a.findIndex(f=>vc(f.identifier,c.identifier)&&f.version===c.manifest.version),u={identifier:c.identifier,version:c.manifest.version,location:c.location,metadata:l};h===-1?(n.push(u),a.push(u)):a.splice(h,1,u)}return n.length&&this.b.fire({extensions:n,profileLocation:i}),r.length&&this.f.fire({extensions:r,profileLocation:i}),a}),n.length&&this.c.fire({extensions:n,profileLocation:i}),r.length&&this.g.fire({extensions:r,profileLocation:i}),n}catch(o){throw n.length&&this.c.fire({extensions:n,error:o,profileLocation:i}),r.length&&this.g.fire({extensions:r,error:o,profileLocation:i}),o}}async updateMetadata(e,i){const s=[];return await this.t(i,r=>{const n=[];for(const o of r){const a=e.find(([c])=>vc({id:c.identifier.id},{id:o.identifier.id})&&c.manifest.version===o.version);a&&(o.metadata={...o.metadata,...a[1]},s.push(o)),n.push(o)}return n}),s}async removeExtensionsFromProfile(e,i){const s=[];try{await this.t(i,r=>{const n=[];for(const o of r)e.some(a=>vc(o.identifier,a))?s.push(o):n.push(o);return s.length&&this.f.fire({extensions:s,profileLocation:i}),n}),s.length&&this.g.fire({extensions:s,profileLocation:i})}catch(r){throw s.length&&this.g.fire({extensions:s,error:r,profileLocation:i}),r}}async t(e,i,s){return this.D(e).queue(async()=>{let r=[],n;try{const o=await this.m.readFile(e);n=JSON.parse(o.value.toString().trim()||"[]")}catch(o){if(vs(o)!==1)throw o;if(this.r.extUri.isEqual(e,this.n.defaultProfile.extensionsResource)&&(n=await this.C()),!n&&s?.bailOutWhenFileNotFound)throw new yc(Li(o),"ERROR_PROFILE_NOT_FOUND")}if(n){Array.isArray(n)||this.u(e);let o=!1;for(const a of n){B5(a)||this.u(e);let c;if(pt(a.relativeLocation)&&a.relativeLocation)c=this.y(a.relativeLocation);else if(pt(a.location)){this.s.warn(`Extensions profile: Ignoring extension with invalid location: ${a.location}`);continue}else{c=$.revive(a.location);const h=this.w(c);h&&(o=!0,a.relativeLocation=h)}_s(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.m.writeFile(e,q.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.w(a.location),metadata:a.metadata}));await this.m.writeFile(e,q.fromString(JSON.stringify(o)))}return r})}u(e){throw new yc(`Invalid extensions content in ${e.toString()}`,"ERROR_INVALID_CONTENT")}w(e){return this.r.extUri.isEqual(this.r.extUri.dirname(e),this.j)?this.r.extUri.basename(e):void 0}y(e){return this.r.extUri.joinPath(this.j,e)}async C(){return this.z||(this.z=(async()=>{const e=this.r.extUri.joinPath(this.n.defaultProfile.location,"extensions.json"),i=this.r.extUri.joinPath(this.j,".init-default-profile-extensions");let s;try{s=(await this.m.readFile(e)).value.toString()}catch(n){if(vs(n)===1)return;throw n}this.s.info("Migrating extensions from old default profile location",e.toString());let r;try{const n=JSON.parse(s);Array.isArray(n)&&n.every(o=>B5(o))?r=n:this.s.warn("Skipping migrating from old default profile locaiton: Found invalid data",n)}catch(n){this.s.error(n)}if(r)try{await this.m.createFile(this.n.defaultProfile.extensionsResource,q.fromString(JSON.stringify(r)),{overwrite:!1}),this.s.info("Migrated extensions from old default profile location to new location",e.toString(),this.n.defaultProfile.extensionsResource.toString())}catch(n){if(vs(n)===3)this.s.info("Migration from old default profile location to new location is done by another window",e.toString(),this.n.defaultProfile.extensionsResource.toString());else throw n}try{await this.m.del(e)}catch(n){vs(n)!==1&&this.s.error(n)}try{await this.m.del(i)}catch(n){vs(n)!==1&&this.s.error(n)}return r})()),this.z}D(e){let i=this.h.get(e);return i||(i=new Fn,this.h.set(e,i)),i}},gu=__decorate([__param(1,rt),__param(2,Ss),__param(3,ni),__param(4,K)],gu)}});function Bp(t){switch(t){case 1:return g(116,null);case 2:return g(117,null);case 3:return g(118,null);case 4:return g(119,null);case 5:return g(120,null);case 6:return g(121,null);case 7:return g(122,null);case 8:return g(123,null);case 9:return g(124,null);default:return""}}var IP=v({"out-build/vs/base/common/jsonErrorMessages.js"(){"use strict";we()}}),bc,ye,CP,RP,j5,OP,LP,MP,FP,NP,WP,_P,z5,TP,BP,UP,H5,jP,zP,HP,VP,qP,GP,JP,KP,ZP,YP,QP,XP,e$,t$,i$,s$,r$,n$,o$,a$,c$,l$,V5=v({"out-build/vs/base/common/semver/semver.js"(){"use strict";bc={},ye={exports:bc},function(t,e){if(typeof bc=="object"&&typeof ye=="object")ye.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var i=e();for(var s in i)(typeof bc=="object"?bc:t)[s]=i[s]}}(typeof self<"u"?self:void 0,function(){return function(t){var e={};function i(s){if(e[s])return e[s].exports;var r=e[s]={i:s,l:!1,exports:{}};return t[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,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(t,e,i){(function(s){var r;e=t.exports=Ce,r=typeof s=="object"&&s.env&&s.env.NODE_DEBUG&&/\bsemver\b/i.test(s.env.NODE_DEBUG)?function(){var k=Array.prototype.slice.call(arguments,0);k.unshift("SEMVER"),console.log.apply(console,k)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=e.re=[],c=e.src=[],l=0,h=l++;c[h]="0|[1-9]\\d*";var u=l++;c[u]="[0-9]+";var f=l++;c[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=l++;c[p]="("+c[h]+")\\.("+c[h]+")\\.("+c[h]+")";var m=l++;c[m]="("+c[u]+")\\.("+c[u]+")\\.("+c[u]+")";var w=l++;c[w]="(?:"+c[h]+"|"+c[f]+")";var y=l++;c[y]="(?:"+c[u]+"|"+c[f]+")";var b=l++;c[b]="(?:-("+c[w]+"(?:\\."+c[w]+")*))";var E=l++;c[E]="(?:-?("+c[y]+"(?:\\."+c[y]+")*))";var A=l++;c[A]="[0-9A-Za-z-]+";var R=l++;c[R]="(?:\\+("+c[A]+"(?:\\."+c[A]+")*))";var W=l++,se="v?"+c[p]+c[b]+"?"+c[R]+"?";c[W]="^"+se+"$";var F="[v=\\s]*"+c[m]+c[E]+"?"+c[R]+"?",H=l++;c[H]="^"+F+"$";var C=l++;c[C]="((?:<|>)?=?)";var ie=l++;c[ie]=c[u]+"|x|X|\\*";var qe=l++;c[qe]=c[h]+"|x|X|\\*";var ne=l++;c[ne]="[v=\\s]*("+c[qe]+")(?:\\.("+c[qe]+")(?:\\.("+c[qe]+")(?:"+c[b]+")?"+c[R]+"?)?)?";var Ut=l++;c[Ut]="[v=\\s]*("+c[ie]+")(?:\\.("+c[ie]+")(?:\\.("+c[ie]+")(?:"+c[E]+")?"+c[R]+"?)?)?";var U=l++;c[U]="^"+c[C]+"\\s*"+c[ne]+"$";var L=l++;c[L]="^"+c[C]+"\\s*"+c[Ut]+"$";var _=l++;c[_]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var z=l++;c[z]="(?:~>?)";var ee=l++;c[ee]="(\\s*)"+c[z]+"\\s+",a[ee]=new RegExp(c[ee],"g");var fe=l++;c[fe]="^"+c[z]+c[ne]+"$";var Pe=l++;c[Pe]="^"+c[z]+c[Ut]+"$";var Xe=l++;c[Xe]="(?:\\^)";var at=l++;c[at]="(\\s*)"+c[Xe]+"\\s+",a[at]=new RegExp(c[at],"g");var es=l++;c[es]="^"+c[Xe]+c[ne]+"$";var Cr=l++;c[Cr]="^"+c[Xe]+c[Ut]+"$";var Os=l++;c[Os]="^"+c[C]+"\\s*("+F+")$|^$";var En=l++;c[En]="^"+c[C]+"\\s*("+se+")$|^$";var ts=l++;c[ts]="(\\s*)"+c[C]+"\\s*("+F+"|"+c[ne]+")",a[ts]=new RegExp(c[ts],"g");var Bc=l++;c[Bc]="^\\s*("+c[ne]+")\\s+-\\s+("+c[ne]+")\\s*$";var Uc=l++;c[Uc]="^\\s*("+c[Ut]+")\\s+-\\s+("+c[Ut]+")\\s*$";var Rm=l++;c[Rm]="(<|>)?=?\\s*\\*";for(var Rr=0;Rr<35;Rr++)r(Rr,c[Rr]),a[Rr]||(a[Rr]=new RegExp(c[Rr]));function Or(k,P){if(k instanceof Ce)return k;if(typeof k!="string"||k.length>n||!(P?a[H]:a[W]).test(k))return null;try{return new Ce(k,P)}catch{return null}}function Ce(k,P){if(k instanceof Ce){if(k.loose===P)return k;k=k.version}else if(typeof k!="string")throw new TypeError("Invalid Version: "+k);if(k.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof Ce))return new Ce(k,P);r("SemVer",k,P),this.loose=P;var I=k.trim().match(P?a[H]:a[W]);if(!I)throw new TypeError("Invalid Version: "+k);if(this.raw=k,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(X){if(/^[0-9]+$/.test(X)){var oe=+X;if(oe>=0&&oe<o)return oe}return X}):this.prerelease=[],this.build=I[5]?I[5].split("."):[],this.format()}e.parse=Or,e.valid=function(k,P){var I=Or(k,P);return I?I.version:null},e.clean=function(k,P){var I=Or(k.trim().replace(/^[=v]+/,""),P);return I?I.version:null},e.SemVer=Ce,Ce.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Ce.prototype.toString=function(){return this.version},Ce.prototype.compare=function(k){return r("SemVer.compare",this.version,this.loose,k),k instanceof Ce||(k=new Ce(k,this.loose)),this.compareMain(k)||this.comparePre(k)},Ce.prototype.compareMain=function(k){return k instanceof Ce||(k=new Ce(k,this.loose)),xn(this.major,k.major)||xn(this.minor,k.minor)||xn(this.patch,k.patch)},Ce.prototype.comparePre=function(k){if(k instanceof Ce||(k=new Ce(k,this.loose)),this.prerelease.length&&!k.prerelease.length)return-1;if(!this.prerelease.length&&k.prerelease.length)return 1;if(!this.prerelease.length&&!k.prerelease.length)return 0;var P=0;do{var I=this.prerelease[P],X=k.prerelease[P];if(r("prerelease compare",P,I,X),I===void 0&&X===void 0)return 0;if(X===void 0)return 1;if(I===void 0)return-1;if(I!==X)return xn(I,X)}while(++P)},Ce.prototype.inc=function(k,P){switch(k){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",P);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",P);break;case"prepatch":this.prerelease.length=0,this.inc("patch",P),this.inc("pre",P);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",P),this.inc("pre",P);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)}P&&(this.prerelease[0]===P?isNaN(this.prerelease[1])&&(this.prerelease=[P,0]):this.prerelease=[P,0]);break;default:throw new Error("invalid increment argument: "+k)}return this.format(),this.raw=this.version,this},e.inc=function(k,P,I,X){typeof I=="string"&&(X=I,I=void 0);try{return new Ce(k,I).inc(P,X).version}catch{return null}},e.diff=function(k,P){if(ud(k,P))return null;var I=Or(k),X=Or(P);if(I.prerelease.length||X.prerelease.length){for(var oe in I)if((oe==="major"||oe==="minor"||oe==="patch")&&I[oe]!==X[oe])return"pre"+oe;return"prerelease"}for(var oe in I)if((oe==="major"||oe==="minor"||oe==="patch")&&I[oe]!==X[oe])return oe},e.compareIdentifiers=xn;var Om=/^[0-9]+$/;function xn(k,P){var I=Om.test(k),X=Om.test(P);return I&&X&&(k=+k,P=+P),I&&!X?-1:X&&!I?1:k<P?-1:k>P?1:0}function Ls(k,P,I){return new Ce(k,I).compare(new Ce(P,I))}function jc(k,P,I){return Ls(k,P,I)>0}function zc(k,P,I){return Ls(k,P,I)<0}function ud(k,P,I){return Ls(k,P,I)===0}function Lm(k,P,I){return Ls(k,P,I)!==0}function dd(k,P,I){return Ls(k,P,I)>=0}function fd(k,P,I){return Ls(k,P,I)<=0}function Hc(k,P,I,X){var oe;switch(P){case"===":typeof k=="object"&&(k=k.version),typeof I=="object"&&(I=I.version),oe=k===I;break;case"!==":typeof k=="object"&&(k=k.version),typeof I=="object"&&(I=I.version),oe=k!==I;break;case"":case"=":case"==":oe=ud(k,I,X);break;case"!=":oe=Lm(k,I,X);break;case">":oe=jc(k,I,X);break;case">=":oe=dd(k,I,X);break;case"<":oe=zc(k,I,X);break;case"<=":oe=fd(k,I,X);break;default:throw new TypeError("Invalid operator: "+P)}return oe}function Ci(k,P){if(k instanceof Ci){if(k.loose===P)return k;k=k.value}if(!(this instanceof Ci))return new Ci(k,P);r("comparator",k,P),this.loose=P,this.parse(k),this.semver===No?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}e.rcompareIdentifiers=function(k,P){return xn(P,k)},e.major=function(k,P){return new Ce(k,P).major},e.minor=function(k,P){return new Ce(k,P).minor},e.patch=function(k,P){return new Ce(k,P).patch},e.compare=Ls,e.compareLoose=function(k,P){return Ls(k,P,!0)},e.rcompare=function(k,P,I){return Ls(P,k,I)},e.sort=function(k,P){return k.sort(function(I,X){return e.compare(I,X,P)})},e.rsort=function(k,P){return k.sort(function(I,X){return e.rcompare(I,X,P)})},e.gt=jc,e.lt=zc,e.eq=ud,e.neq=Lm,e.gte=dd,e.lte=fd,e.cmp=Hc,e.Comparator=Ci;var No={};function it(k,P){if(k instanceof it)return k.loose===P?k:new it(k.raw,P);if(k instanceof Ci)return new it(k.value,P);if(!(this instanceof it))return new it(k,P);if(this.loose=P,this.raw=k,this.set=k.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: "+k);this.format()}function Gt(k){return!k||k.toLowerCase()==="x"||k==="*"}function E6(k,P,I,X,oe,It,Re,ui,ct,jt,is,lt,Lt){return((P=Gt(I)?"":Gt(X)?">="+I+".0.0":Gt(oe)?">="+I+"."+X+".0":">="+P)+" "+(ui=Gt(ct)?"":Gt(jt)?"<"+(+ct+1)+".0.0":Gt(is)?"<"+ct+"."+(+jt+1)+".0":lt?"<="+ct+"."+jt+"."+is+"-"+lt:"<="+ui)).trim()}function x6(k,P){for(var I=0;I<k.length;I++)if(!k[I].test(P))return!1;if(P.prerelease.length){for(I=0;I<k.length;I++)if(r(k[I].semver),k[I].semver!==No&&k[I].semver.prerelease.length>0){var X=k[I].semver;if(X.major===P.major&&X.minor===P.minor&&X.patch===P.patch)return!0}return!1}return!0}function Vc(k,P,I){try{P=new it(P,I)}catch{return!1}return P.test(k)}function pd(k,P,I,X){var oe,It,Re,ui,ct;switch(k=new Ce(k,X),P=new it(P,X),I){case">":oe=jc,It=fd,Re=zc,ui=">",ct=">=";break;case"<":oe=zc,It=dd,Re=jc,ui="<",ct="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Vc(k,P,X))return!1;for(var jt=0;jt<P.set.length;++jt){var is=P.set[jt],lt=null,Lt=null;if(is.forEach(function(di){di.semver===No&&(di=new Ci(">=0.0.0")),lt=lt||di,Lt=Lt||di,oe(di.semver,lt.semver,X)?lt=di:Re(di.semver,Lt.semver,X)&&(Lt=di)}),lt.operator===ui||lt.operator===ct||(!Lt.operator||Lt.operator===ui)&&It(k,Lt.semver)||Lt.operator===ct&&Re(k,Lt.semver))return!1}return!0}Ci.prototype.parse=function(k){var P=this.loose?a[Os]:a[En],I=k.match(P);if(!I)throw new TypeError("Invalid comparator: "+k);this.operator=I[1],this.operator==="="&&(this.operator=""),I[2]?this.semver=new Ce(I[2],this.loose):this.semver=No},Ci.prototype.toString=function(){return this.value},Ci.prototype.test=function(k){return r("Comparator.test",k,this.loose),this.semver===No||(typeof k=="string"&&(k=new Ce(k,this.loose)),Hc(k,this.operator,this.semver,this.loose))},Ci.prototype.intersects=function(k,P){if(!(k instanceof Ci))throw new TypeError("a Comparator is required");var I;if(this.operator==="")return I=new it(k.value,P),Vc(this.value,I,P);if(k.operator==="")return I=new it(this.value,P),Vc(k.semver,I,P);var X=!(this.operator!==">="&&this.operator!==">"||k.operator!==">="&&k.operator!==">"),oe=!(this.operator!=="<="&&this.operator!=="<"||k.operator!=="<="&&k.operator!=="<"),It=this.semver.version===k.semver.version,Re=!(this.operator!==">="&&this.operator!=="<="||k.operator!==">="&&k.operator!=="<="),ui=Hc(this.semver,"<",k.semver,P)&&(this.operator===">="||this.operator===">")&&(k.operator==="<="||k.operator==="<"),ct=Hc(this.semver,">",k.semver,P)&&(this.operator==="<="||this.operator==="<")&&(k.operator===">="||k.operator===">");return X||oe||It&&Re||ui||ct},e.Range=it,it.prototype.format=function(){return this.range=this.set.map(function(k){return k.join(" ").trim()}).join("||").trim(),this.range},it.prototype.toString=function(){return this.range},it.prototype.parseRange=function(k){var P=this.loose;k=k.trim(),r("range",k,P);var I=P?a[Uc]:a[Bc];k=k.replace(I,E6),r("hyphen replace",k),k=k.replace(a[ts],"$1$2$3"),r("comparator trim",k,a[ts]),k=(k=(k=k.replace(a[ee],"$1~")).replace(a[at],"$1^")).split(/\s+/).join(" ");var X=P?a[Os]:a[En],oe=k.split(" ").map(function(It){return function(Re,ui){return r("comp",Re),Re=function(ct,jt){return ct.trim().split(/\s+/).map(function(is){return function(lt,Lt){r("caret",lt,Lt);var di=Lt?a[Cr]:a[es];return lt.replace(di,function(Hi,he,ke,je,Ye){var Mt;return r("caret",lt,Hi,he,ke,je,Ye),Gt(he)?Mt="":Gt(ke)?Mt=">="+he+".0.0 <"+(+he+1)+".0.0":Gt(je)?Mt=he==="0"?">="+he+"."+ke+".0 <"+he+"."+(+ke+1)+".0":">="+he+"."+ke+".0 <"+(+he+1)+".0.0":Ye?(r("replaceCaret pr",Ye),Ye.charAt(0)!=="-"&&(Ye="-"+Ye),Mt=he==="0"?ke==="0"?">="+he+"."+ke+"."+je+Ye+" <"+he+"."+ke+"."+(+je+1):">="+he+"."+ke+"."+je+Ye+" <"+he+"."+(+ke+1)+".0":">="+he+"."+ke+"."+je+Ye+" <"+(+he+1)+".0.0"):(r("no pr"),Mt=he==="0"?ke==="0"?">="+he+"."+ke+"."+je+" <"+he+"."+ke+"."+(+je+1):">="+he+"."+ke+"."+je+" <"+he+"."+(+ke+1)+".0":">="+he+"."+ke+"."+je+" <"+(+he+1)+".0.0"),r("caret return",Mt),Mt})}(is,jt)}).join(" ")}(Re,ui),r("caret",Re),Re=function(ct,jt){return ct.trim().split(/\s+/).map(function(is){return function(lt,Lt){var di=Lt?a[Pe]:a[fe];return lt.replace(di,function(Hi,he,ke,je,Ye){var Mt;return r("tilde",lt,Hi,he,ke,je,Ye),Gt(he)?Mt="":Gt(ke)?Mt=">="+he+".0.0 <"+(+he+1)+".0.0":Gt(je)?Mt=">="+he+"."+ke+".0 <"+he+"."+(+ke+1)+".0":Ye?(r("replaceTilde pr",Ye),Ye.charAt(0)!=="-"&&(Ye="-"+Ye),Mt=">="+he+"."+ke+"."+je+Ye+" <"+he+"."+(+ke+1)+".0"):Mt=">="+he+"."+ke+"."+je+" <"+he+"."+(+ke+1)+".0",r("tilde return",Mt),Mt})}(is,jt)}).join(" ")}(Re,ui),r("tildes",Re),Re=function(ct,jt){return r("replaceXRanges",ct,jt),ct.split(/\s+/).map(function(is){return function(lt,Lt){lt=lt.trim();var di=Lt?a[L]:a[U];return lt.replace(di,function(Hi,he,ke,je,Ye,Mt){r("xRange",lt,Hi,he,ke,je,Ye,Mt);var Mm=Gt(ke),Wo=Mm||Gt(je),_o=Wo||Gt(Ye);return he==="="&&_o&&(he=""),Mm?Hi=he===">"||he==="<"?"<0.0.0":"*":he&&_o?(Wo&&(je=0),_o&&(Ye=0),he===">"?(he=">=",Wo?(ke=+ke+1,je=0,Ye=0):_o&&(je=+je+1,Ye=0)):he==="<="&&(he="<",Wo?ke=+ke+1:je=+je+1),Hi=he+ke+"."+je+"."+Ye):Wo?Hi=">="+ke+".0.0 <"+(+ke+1)+".0.0":_o&&(Hi=">="+ke+"."+je+".0 <"+ke+"."+(+je+1)+".0"),r("xRange return",Hi),Hi})}(is,jt)}).join(" ")}(Re,ui),r("xrange",Re),Re=function(ct,jt){return r("replaceStars",ct,jt),ct.trim().replace(a[Rm],"")}(Re,ui),r("stars",Re),Re}(It,P)}).join(" ").split(/\s+/);return this.loose&&(oe=oe.filter(function(It){return!!It.match(X)})),oe=oe.map(function(It){return new Ci(It,P)})},it.prototype.intersects=function(k,P){if(!(k instanceof it))throw new TypeError("a Range is required");return this.set.some(function(I){return I.every(function(X){return k.set.some(function(oe){return oe.every(function(It){return X.intersects(It,P)})})})})},e.toComparators=function(k,P){return new it(k,P).set.map(function(I){return I.map(function(X){return X.value}).join(" ").trim().split(" ")})},it.prototype.test=function(k){if(!k)return!1;typeof k=="string"&&(k=new Ce(k,this.loose));for(var P=0;P<this.set.length;P++)if(x6(this.set[P],k))return!0;return!1},e.satisfies=Vc,e.maxSatisfying=function(k,P,I){var X=null,oe=null;try{var It=new it(P,I)}catch{return null}return k.forEach(function(Re){It.test(Re)&&(X&&oe.compare(Re)!==-1||(oe=new Ce(X=Re,I)))}),X},e.minSatisfying=function(k,P,I){var X=null,oe=null;try{var It=new it(P,I)}catch{return null}return k.forEach(function(Re){It.test(Re)&&(X&&oe.compare(Re)!==1||(oe=new Ce(X=Re,I)))}),X},e.validRange=function(k,P){try{return new it(k,P).range||"*"}catch{return null}},e.ltr=function(k,P,I){return pd(k,P,"<",I)},e.gtr=function(k,P,I){return pd(k,P,">",I)},e.outside=pd,e.prerelease=function(k,P){var I=Or(k,P);return I&&I.prerelease.length?I.prerelease:null},e.intersects=function(k,P,I){return k=new it(k,I),P=new it(P,I),k.intersects(P)},e.coerce=function(k){if(k instanceof Ce)return k;if(typeof k!="string")return null;var P=k.match(a[_]);return P==null?null:Or((P[1]||"0")+"."+(P[2]||"0")+"."+(P[3]||"0"))}}).call(this,i(1))},function(t,e){var i,s,r=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(y){if(i===setTimeout)return setTimeout(y,0);if((i===n||!i)&&setTimeout)return i=setTimeout,setTimeout(y,0);try{return i(y,0)}catch{try{return i.call(null,y,0)}catch{return i.call(this,y,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=[],h=!1,u=-1;function f(){h&&c&&(h=!1,c.length?l=c.concat(l):u=-1,l.length&&p())}function p(){if(!h){var y=a(f);h=!0;for(var b=l.length;b;){for(c=l,l=[];++u<b;)c&&c[u].run();u=-1,b=l.length}c=null,h=!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)}}}(y)}}function m(y,b){this.fun=y,this.array=b}function w(){}r.nextTick=function(y){var b=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)b[E-1]=arguments[E];l.push(new m(y,b)),l.length!==1||h||a(p)},m.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=w,r.addListener=w,r.once=w,r.off=w,r.removeListener=w,r.removeAllListeners=w,r.emit=w,r.prependListener=w,r.prependOnceListener=w,r.listeners=function(y){return[]},r.binding=function(y){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(y){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}])}),CP=ye.exports.SEMVER_SPEC_VERSION,RP=ye.exports.parse,j5=ye.exports.valid,OP=ye.exports.coerce,LP=ye.exports.clean,MP=ye.exports.inc,FP=ye.exports.major,NP=ye.exports.minor,WP=ye.exports.patch,_P=ye.exports.prerelease,z5=ye.exports.gt,TP=ye.exports.gte,BP=ye.exports.lt,UP=ye.exports.lte,H5=ye.exports.eq,jP=ye.exports.neq,zP=ye.exports.cmp,HP=ye.exports.compare,VP=ye.exports.rcompare,qP=ye.exports.compareIdentifiers,GP=ye.exports.rcompareIdentifiers,JP=ye.exports.compareBuild,KP=ye.exports.sort,ZP=ye.exports.rsort,YP=ye.exports.diff,QP=ye.exports.validRange,XP=ye.exports.satisfies,e$=ye.exports.maxSatisfying,t$=ye.exports.minSatisfying,i$=ye.exports.minVersion,s$=ye.exports.gtr,r$=ye.exports.ltr,n$=ye.exports.outside,o$=ye.exports.intersects,a$=ye.exports.SemVer,c$=ye.exports.Comparator,l$=ye.exports.Range}}),q5,G5,h$=v({"out-build/vs/platform/extensions/common/extensionsApiProposals.js"(){"use strict";q5={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"},aiSettingsSearch:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts"},aiTextSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts",version:2},authIssuers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authIssuers.d.ts"},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:9},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"},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"},contribLanguageModelToolSets:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribLanguageModelToolSets.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"},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:4},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",version:3},languageModelSystem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelSystem.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"},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"},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"},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"},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"},toolProgress:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.toolProgress.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"}},G5=Object.freeze(q5)}});function u$(t){return t=t.trim(),t==="*"||zp.test(t)}function Up(t){if(!u$(t))return null;if(t=t.trim(),t==="*")return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};const e=t.match(zp);return e?{hasCaret:e[1]==="^",hasGreaterEquals:e[1]===">=",majorBase:e[2]==="x"?0:parseInt(e[2],10),majorMustEqual:e[2]!=="x",minorBase:e[4]==="x"?0:parseInt(e[4],10),minorMustEqual:e[4]!=="x",patchBase:e[6]==="x"?0:parseInt(e[6],10),patchMustEqual:e[6]!=="x",preRelease:e[8]||null}:null}function jp(t){if(!t)return null;const e=t.majorBase,i=t.majorMustEqual,s=t.minorBase;let r=t.minorMustEqual;const n=t.patchBase;let o=t.patchMustEqual;t.hasCaret&&(e===0||(r=!1),o=!1);let a=0;if(t.preRelease){const c=K5.exec(t.preRelease);if(c){const[,l,h,u]=c;a=Date.UTC(Number(l),Number(h)-1,Number(u))}}return{majorBase:e,majorMustEqual:i,minorBase:s,minorMustEqual:r,patchBase:n,patchMustEqual:o,isMinimum:t.hasGreaterEquals,notBefore:a}}function d$(t,e,i){let s;typeof t=="string"?s=jp(Up(t)):s=t;let r;e instanceof Date?r=e.getTime():typeof e=="string"&&(r=new Date(e).getTime());let n;if(typeof i=="string"?n=jp(Up(i)):n=i,!s||!n)return!1;const o=s.majorBase,a=s.minorBase,c=s.patchBase;let l=n.majorBase,h=n.minorBase,u=n.patchBase;const f=n.notBefore;let p=n.majorMustEqual,m=n.minorMustEqual,w=n.patchMustEqual;return n.isMinimum?o>l?!0:o<l?!1:a>h?!0:a<h||r&&r<f?!1:c>=u:(o===1&&l===0&&(!p||!m||!w)&&(l=1,h=0,u=0,p=!0,m=!1,w=!1),o<l?!1:o>l?!p:a<h?!1:a>h?!m:c<u?!1:c>u?!w:!(r&&r<f))}function f$(t,e,i,s,r,n){const o=[];if(typeof s.publisher<"u"&&typeof s.publisher!="string")return o.push([xe.Error,g(1986,null)]),o;if(typeof s.name!="string")return o.push([xe.Error,g(1987,null,"name")]),o;if(typeof s.version!="string")return o.push([xe.Error,g(1988,null,"version")]),o;if(!s.engines)return o.push([xe.Error,g(1989,null,"engines")]),o;if(typeof s.engines.vscode!="string")return o.push([xe.Error,g(1990,null,"engines.vscode")]),o;if(typeof s.extensionDependencies<"u"&&!J5(s.extensionDependencies))return o.push([xe.Error,g(1991,null,"extensionDependencies")]),o;if(typeof s.activationEvents<"u"){if(!J5(s.activationEvents))return o.push([xe.Error,g(1992,null,"activationEvents")]),o;if(typeof s.main>"u"&&typeof s.browser>"u")return o.push([xe.Error,g(1993,null,"activationEvents","main","browser")]),o}if(typeof s.extensionKind<"u"&&typeof s.main>"u"&&o.push([xe.Warning,g(1994,null,"extensionKind")]),typeof s.main<"u"){if(typeof s.main!="string")return o.push([xe.Error,g(1995,null,"main")]),o;{const l=pe(i,s.main);af(l,i)||o.push([xe.Warning,g(1996,null,l.path,i.path)])}}if(typeof s.browser<"u"){if(typeof s.browser!="string")return o.push([xe.Error,g(1997,null,"browser")]),o;{const l=pe(i,s.browser);af(l,i)||o.push([xe.Warning,g(1998,null,l.path,i.path)])}}if(!j5(s.version))return o.push([xe.Error,g(1999,null)]),o;const a=[];if(!p$(t,e,s,r,a))for(const l of a)o.push([xe.Error,l]);if(n&&s.enabledApiProposals?.length){const l=[];if(!m$([...s.enabledApiProposals],l))for(const h of l)o.push([xe.Error,h])}return o}function p$(t,e,i,s,r){return s||typeof i.main>"u"&&typeof i.browser>"u"?!0:g$(t,e,i.engines.vscode,r)}function m$(t,e){if(t.length===0)return!0;const i=Array.isArray(e)?e:void 0,s=(i?void 0:e)??G5,r=[],n=yP(t);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(g(2e3,null,r[0])):i.push(g(2001,null,r.slice(0,r.length-1).map(o=>`'${o}'`).join(", "),r[r.length-1]))),!1):!0}function g$(t,e,i,s=[]){const r=jp(Up(i));if(!r)return s.push(g(2002,null,i)),!1;if(r.majorBase===0){if(!r.majorMustEqual||!r.minorMustEqual)return s.push(g(2003,null,i)),!1}else if(!r.majorMustEqual)return s.push(g(2004,null,i)),!1;return d$(t,e,r)?!0:(s.push(g(2005,null,t,i)),!1)}function J5(t){if(!Array.isArray(t))return!1;for(let e=0,i=t.length;e<i;e++)if(typeof t[e]!="string")return!1;return!0}var zp,K5,w$=v({"out-build/vs/platform/extensions/common/extensionValidator.js"(){"use strict";et(),fh(),we(),V5(),Tp(),h$(),zp=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/,K5=/^-(\d{4})(\d{2})(\d{2})$/}});function v$(t,e,i,s){try{y$(t,e,i,s)}catch(r){t.error(r?.message??r)}return e}function y$(t,e,i,s){const r=(n,o,a)=>{const c=n[o];if(pt(c)){const l=c,h=l.length;if(h>1&&l[0]==="%"&&l[h-1]==="%"){const u=l.substr(1,h-2);let f=i[u];f===void 0&&s&&(f=s[u]);const p=typeof f=="string"?f:f?.message,m=s?.[u],w=typeof m=="string"?m:m?.message;if(!p){w||t.warn(`[${e.name}]: ${g(1967,null,u)}`);return}if(a&&(o==="title"||o==="category")&&w&&w!==p){const y={value:p,original:w};n[o]=y}else n[o]=p}}else if(St(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 e)e.hasOwnProperty(n)&&r(e,n)}var b$=v({"out-build/vs/platform/extensionManagement/common/extensionNls.js"(){"use strict";$e(),we()}}),Hp,Z5,vu,Io,kc,Sc,Y5,Q5=v({"out-build/vs/platform/extensionManagement/common/extensionsScannerService.js"(){"use strict";kt(),le(),Bi(),Ke(),De(),Js(),IP(),T(),Oe(),ge(),G(),et(),V5(),fh(),re(),we(),xi(),T5(),Tp(),w$(),Ve(),Z(),Q(),Tt(),J(),vl(),wu(),Es(),ks(),b$(),function(t){function e(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}t.equals=e}(Hp||(Hp={})),Z5=V("IExtensionsScannerService"),vu=class extends j{constructor(e,i,s,r,n,o,a,c,l,h,u,f){super(),this.systemExtensionsLocation=e,this.userExtensionsLocation=i,this.n=s,this.r=n,this.s=o,this.t=a,this.u=c,this.w=l,this.y=h,this.z=u,this.C=f,this.g=this.B(new D),this.onDidChangeCache=this.g.event,this.G=void 0,this.h=this.B(this.C.createInstance(Sc,r)),this.j=this.B(this.C.createInstance(Sc,r)),this.m=this.B(this.C.createInstance(kc)),this.B(this.h.onDidChangeCache(()=>this.g.fire(0))),this.B(this.j.onDidChangeCache(()=>this.g.fire(1)))}F(){return this.D||(this.D=$P(this.t,this.u)),this.D}async scanAllExtensions(e,i){const[s,r]=await Promise.all([this.scanSystemExtensions(e),this.scanUserExtensions(i)]);return this.J(s,r,[],await this.F(),!0)}async scanSystemExtensions(e){const i=[];i.push(this.L(e.language)),i.push(this.M(e.language,!!e.checkControlFile));const[s,r]=await Promise.all(i);return this.I([...s,...r],0,{pickLatest:!1})}async scanUserExtensions(e){this.u.trace("Started scanning user extensions",e.profileLocation);const i=this.z.extUri.isEqual(e.profileLocation,this.r.defaultProfile.extensionsResource)?{bailOutWhenFileNotFound:!0}:void 0,s=await this.O(e.profileLocation,!0,1,e.language,!0,i,e.productVersion??this.Q()),r=e.useCache&&!s.devMode?this.j:this.m;let n;try{n=await r.scanExtensions(s)}catch(o){if(o instanceof yc&&o.code==="ERROR_PROFILE_NOT_FOUND")await this.H(),n=await r.scanExtensions(s);else throw o}return n=await this.I(n,1,{includeInvalid:e.includeInvalid,pickLatest:!0}),this.u.trace("Scanned user extensions:",n.length),n}async scanAllUserExtensions(e={includeInvalid:!0,includeAllVersions:!0}){const i=await this.O(this.userExtensionsLocation,!1,1,void 0,!0,void 0,this.Q()),s=await this.m.scanExtensions(i);return this.I(s,1,{includeAllVersions:e.includeAllVersions,includeInvalid:e.includeInvalid})}async scanExtensionsUnderDevelopment(e,i){if(this.w.isExtensionDevelopment&&this.w.extensionDevelopmentLocationURI){const s=(await Promise.all(this.w.extensionDevelopmentLocationURI.filter(r=>r.scheme===O.file).map(async r=>{const n=await this.O(r,!1,1,i.language,!1,void 0,this.Q());return(await this.m.scanOneOrMultipleExtensions(n)).map(a=>(a.type=e.find(c=>vc(c.identifier,a.identifier))?.type??a.type,this.m.validate(a,n)))}))).flat();return this.I(s,"development",{includeInvalid:i.includeInvalid,pickLatest:!0})}return[]}async scanExistingExtension(e,i,s){const r=await this.O(e,!1,i,s.language,!0,void 0,this.Q()),n=await this.m.scanExtension(r);return!n||!s.includeInvalid&&!n.isValid?null:n}async scanOneOrMultipleExtensions(e,i,s){const r=await this.O(e,!1,i,s.language,!0,void 0,this.Q()),n=await this.m.scanOneOrMultipleExtensions(r);return this.I(n,i,{includeInvalid:s.includeInvalid,pickLatest:!0})}async scanMultipleExtensions(e,i,s){const r=[];return await Promise.all(e.map(async n=>{const o=await this.scanOneOrMultipleExtensions(n,i,s);r.push(...o)})),this.I(r,i,{includeInvalid:s.includeInvalid,pickLatest:!0})}async updateManifestMetadata(e,i){const s=pe(e,"package.json"),r=(await this.t.readFile(s)).value.toString(),n=JSON.parse(r);n.__metadata={...n.__metadata,...i},await this.t.writeFile(pe(e,"package.json"),q.fromString(JSON.stringify(n,null," ")))}async initializeDefaultProfileExtensions(){try{await this.s.scanProfileExtensions(this.r.defaultProfile.extensionsResource,{bailOutWhenFileNotFound:!0})}catch(e){if(e instanceof yc&&e.code==="ERROR_PROFILE_NOT_FOUND")await this.H();else throw e}}async H(){return this.G||(this.G=(async()=>{try{this.u.info("Started initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString());const e=await this.scanAllUserExtensions({includeInvalid:!0});if(e.length)await this.s.addExtensionsToProfile(e.map(i=>[i,i.metadata]),this.r.defaultProfile.extensionsResource);else try{await this.t.createFile(this.r.defaultProfile.extensionsResource,q.fromString(JSON.stringify([])))}catch(i){vs(i)!==1&&this.u.warn("Failed to create default profile extensions manifest in extensions installation folder.",this.userExtensionsLocation.toString(),Li(i))}this.u.info("Completed initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString())}catch(e){this.u.error(e)}finally{this.G=void 0}})()),this.G}async I(e,i,s={}){return s.includeAllVersions||(e=this.J(i===0?e:void 0,i===1?e:void 0,i==="development"?e:void 0,await this.F(),!!s.pickLatest)),s.includeInvalid||(e=e.filter(r=>r.isValid)),e.sort((r,n)=>{const o=ze(r.location.fsPath),a=ze(n.location.fsPath);return o<a?-1:o>a?1:0})}J(e,i,s,r,n){const o=(c,l,h)=>{if(!h){if(c.metadata?.isApplicationScoped&&!l.metadata?.isApplicationScoped)return!1;if(!c.metadata?.isApplicationScoped&&l.metadata?.isApplicationScoped)return!0}if(c.isValid&&!l.isValid)return!1;if(c.isValid===l.isValid){if(n&&z5(c.manifest.version,l.manifest.version))return this.u.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(H5(c.manifest.version,l.manifest.version)){if(c.type===0)return this.u.debug(`Skipping extension ${l.location.path} in favour of system extension ${c.location.path} with same version`),!1;if(c.targetPlatform===r)return this.u.debug(`Skipping extension ${l.location.path} from different target platform ${l.targetPlatform}`),!1}}return h?this.u.warn(`Overwriting user extension ${c.location.path} with ${l.location.path}.`):this.u.debug(`Overwriting user extension ${c.location.path} with ${l.location.path}.`),!0},a=new _5;return e?.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&&e&&c.type===0){this.u.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 L(e){this.u.trace("Started scanning system extensions");const i=await this.O(this.systemExtensionsLocation,!1,0,e,!0,void 0,this.Q()),r=await(i.devMode?this.m:this.h).scanExtensions(i);return this.u.trace("Scanned system extensions:",r.length),r}async M(e,i){const s=this.w.isBuilt?[]:this.y.builtInExtensions;if(!s?.length)return[];this.u.trace("Started scanning dev system extensions");const r=i?await this.N():{},n=[],o=$.file(Zt(M(ei.asFileUri("").fsPath,"..",".build","builtInExtensions")));for(const c of s){const l=r[c.name]||"marketplace";switch(l){case"disabled":break;case"marketplace":n.push(pe(o,c.name));break;default:n.push($.file(l));break}}const a=await Promise.all(n.map(async c=>this.m.scanExtension(await this.O(c,!1,0,e,!0,void 0,this.Q()))));return this.u.trace("Scanned dev system extensions:",a.length),ft(a)}async N(){try{const e=await this.t.readFile(this.n);return JSON.parse(e.value.toString())}catch{return{}}}async O(e,i,s,r,n,o,a){const c=await this.f(r??Ri),l=await this.P(e),h=i&&!this.z.extUri.isEqual(e,this.r.defaultProfile.extensionsResource)?this.r.defaultProfile.extensionsResource:void 0,u=h?await this.P(h):void 0;return new Io(e,l,h,u,i,o,s,n,a.version,a.date,this.y.commit,!this.w.isBuilt,r,c)}async P(e){try{const i=await this.t.stat(e);if(typeof i.mtime=="number")return i.mtime}catch{}}Q(){return{version:this.y.version,date:this.y.date}}},vu=__decorate([__param(4,Ss),__param(5,Do),__param(6,rt),__param(7,K),__param(8,ps),__param(9,nt),__param(10,ni),__param(11,cs)],vu),Io=class{constructor(t,e,i,s,r,n,o,a,c,l,h,u,f,p){this.location=t,this.mtime=e,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=h,this.devMode=u,this.language=f,this.translations=p}static createNlsConfiguration(t){return{language:t.language,pseudo:t.language==="pseudo",devMode:t.devMode,translations:t.translations}}static equals(t,e){return of(t.location,e.location)&&t.mtime===e.mtime&&of(t.applicationExtensionslocation,e.applicationExtensionslocation)&&t.applicationExtensionslocationMtime===e.applicationExtensionslocationMtime&&t.profile===e.profile&&Ps(t.profileScanOptions,e.profileScanOptions)&&t.type===e.type&&t.validate===e.validate&&t.productVersion===e.productVersion&&t.productDate===e.productDate&&t.productCommit===e.productCommit&&t.devMode===e.devMode&&t.language===e.language&&Hp.equals(t.translations,e.translations)}},kc=class extends j{constructor(e,i,s,r,n,o){super(),this.g=e,this.h=i,this.j=s,this.m=n,this.n=o,this.f=r.extensionsEnabledWithApiProposalVersion?.map(a=>a.toLowerCase())??[]}async scanExtensions(e){return e.profile?this.s(e):this.r(e)}async r(e){const i=await this.j.resolve(e.location);if(!i.children?.length)return[];const s=await Promise.all(i.children.map(async r=>{if(!r.isDirectory||e.type===1&&as(r.resource).indexOf(".")===0)return null;const n=new Io(r.resource,e.mtime,e.applicationExtensionslocation,e.applicationExtensionslocationMtime,e.profile,e.profileScanOptions,e.type,e.validate,e.productVersion,e.productDate,e.productCommit,e.devMode,e.language,e.translations);return this.scanExtension(n)}));return ft(s).sort((r,n)=>r.location.path<n.location.path?-1:1)}async s(e){let i=await this.t(e.location,()=>!0,e);if(e.applicationExtensionslocation&&!this.h.extUri.isEqual(e.location,e.applicationExtensionslocation)){i=i.filter(r=>!r.metadata?.isApplicationScoped);const s=await this.t(e.applicationExtensionslocation,r=>!!r.metadata?.isBuiltin||!!r.metadata?.isApplicationScoped,e);i.push(...s)}return i}async t(e,i,s){const r=await this.g.scanProfileExtensions(e,s.profileScanOptions);if(!r.length)return[];const n=await Promise.all(r.map(async o=>{if(i(o)){const a=new Io(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 ft(n)}async scanOneOrMultipleExtensions(e){try{if(await this.j.exists(pe(e.location,"package.json"))){const i=await this.scanExtension(e);return i?[i]:[]}else return await this.scanExtensions(e)}catch(i){return this.n.error(`Error scanning extensions at ${e.location.path}:`,Li(i)),[]}}async scanExtension(e,i){const s=[];let r=!0,n;try{n=await this.u(e.location)}catch(f){if(i){s.push([xe.Error,Li(f)]),r=!1;const[p,m]=i.identifier.id.split(".");n={name:m,publisher:p,version:i.version,engines:{vscode:""}}}else return e.type!==0&&this.n.error(f),null}n.publisher||(n.publisher=_p);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=xP(n.publisher,n.name),c=o?.id?{id:a,uuid:o.id}:{id:a},l=o?.isSystem?0:e.type,h=l===0||!!o?.isBuiltin;try{n=await this.w(e.location,n,Io.createNlsConfiguration(e))}catch(f){this.n.warn("Failed to translate manifest",Li(f))}let u={type:l,identifier:c,manifest:n,location:e.location,isBuiltin:h,targetPlatform:o?.targetPlatform??"undefined",publisherDisplayName:o?.publisherDisplayName,metadata:o,isValid:r,validations:s,preRelease:!!o?.preRelease};return e.validate&&(u=this.validate(u,e)),n.enabledApiProposals&&(!this.m.isBuilt||this.f.includes(a.toLowerCase()))&&(n.originalEnabledApiProposals=n.enabledApiProposals,n.enabledApiProposals=bP([...n.enabledApiProposals])),u}validate(e,i){let s=e.isValid;const r=this.m.isBuilt&&this.f.includes(e.identifier.id.toLowerCase()),n=f$(i.productVersion,i.productDate,i.location,e.manifest,e.isBuiltin,r);for(const[o,a]of n)o===xe.Error&&(s=!1,this.n.error(this.D(i.location,a)));return e.isValid=s,e.validations=[...e.validations,...n],e}async u(e){const i=pe(e,"package.json");let s;try{s=(await this.j.readFile(i)).value.toString()}catch(n){throw vs(n)!==1&&this.n.error(this.D(e,g(1968,null,i.path,n.message))),n}let r;try{r=JSON.parse(s)}catch(n){const o=[];tn(s,o);for(const a of o)this.n.error(this.D(e,g(1969,null,i.path,a.offset,a.length,Bp(a.error))));throw n}if(no(r)!=="object"){const n=this.D(e,g(1970,null,i.path));throw this.n.error(n),new Error(n)}return r}async w(e,i,s){const r=await this.y(e,i,s);if(r)try{const n=[],o=await this.z(r.default,n);if(n.length>0)return n.forEach(c=>{this.n.error(this.D(e,g(1971,null,r.default?.path,Bp(c.error))))}),i;if(no(r)!=="object")return this.n.error(this.D(e,g(1972,null,r.default?.path))),i;const a=r.values||Object.create(null);return v$(this.n,i,a,o)}catch{}return i}async y(e,i,s){const r=pe(e,"package.nls.json"),n=(l,h)=>{h.forEach(u=>{this.n.error(this.D(e,g(1973,null,l?.path,Bp(u.error))))})},o=l=>{this.n.error(this.D(e,g(1974,null,l?.path)))},a=`${i.publisher}.${i.name}`,c=s.translations[a];if(c)try{const l=$.file(c),h=(await this.j.readFile(l)).value.toString(),u=[],f=tn(h,u);return u.length>0?(n(l,u),{values:void 0,default:r}):no(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.j.exists(r))return;let h;try{h=await this.C(e,s)}catch{return}if(!h.localized)return{values:void 0,default:h.original};try{const u=(await this.j.readFile(h.localized)).value.toString(),f=[],p=tn(u,f);return f.length>0?(n(h.localized,f),{values:void 0,default:h.original}):no(p)!=="object"?(o(h.localized),{values:void 0,default:h.original}):{values:p,default:h.original}}catch{return{values:void 0,default:h.original}}}}async z(e,i){if(e)try{const s=(await this.j.readFile(e)).value.toString();return tn(s,i)}catch{}}C(e,i){return new Promise((s,r)=>{const n=o=>{const a=pe(e,`package.nls.${o}.json`);this.j.exists(a).then(c=>{c&&s({localized:a,original:pe(e,"package.nls.json")});const l=o.lastIndexOf("-");l===-1?s({localized:pe(e,"package.nls.json"),original:null}):(o=o.substring(0,l),n(o))})};if(i.devMode||i.pseudo||!i.language)return s({localized:pe(e,"package.nls.json"),original:null});n(i.language)})}D(e,i){return`[${e.path}]: ${i}`}},kc=__decorate([__param(0,Do),__param(1,ni),__param(2,rt),__param(3,nt),__param(4,ps),__param(5,K)],kc),Sc=class extends kc{constructor(e,i,s,r,n,o,a,c){super(s,r,n,o,a,c),this.I=e,this.J=i,this.G=this.B(new Us(3e3)),this.H=this.B(new D),this.onDidChangeCache=this.H.event}async scanExtensions(e){const i=this.O(e),s=await this.L(i);if(this.F=e,s&&s.input&&Io.equals(s.input,this.F))return this.n.debug("Using cached extensions scan result",e.type===0?"system":"user",e.location.toString()),this.G.trigger(()=>this.N()),s.result.map(n=>(n.location=$.revive(n.location),n));const r=await super.scanExtensions(e);return await this.M(i,{input:e,result:r}),r}async L(e){try{const i=await this.j.readFile(e),s=JSON.parse(i.value.toString());return{result:s.result,input:ur(s.input)}}catch(i){this.n.debug("Error while reading the extension cache file:",e.path,Li(i))}return null}async M(e,i){try{await this.j.writeFile(e,q.fromString(JSON.stringify(i)))}catch(s){this.n.debug("Error while writing the extension cache file:",e.path,Li(s))}}async N(){if(!this.F)return;const e=this.O(this.F),i=await this.L(e);if(!i)return;const s=i.result,r=JSON.parse(JSON.stringify(await super.scanExtensions(this.F)));if(!Ps(r,s))try{this.n.info("Invalidating Cache",s,r),await this.j.del(e),this.H.fire()}catch(n){this.n.error(n)}}O(e){const i=this.P(e);return this.h.extUri.joinPath(i.cacheHome,e.type===0?F5:M5)}P(e){return e.type===0?this.J.defaultProfile:e.profile?this.h.extUri.isEqual(e.location,this.I.extensionsResource)?this.I:this.J.profiles.find(i=>this.h.extUri.isEqual(e.location,i.extensionsResource))??this.I:this.J.defaultProfile}},Sc=__decorate([__param(1,Ss),__param(2,Do),__param(3,ni),__param(4,rt),__param(5,nt),__param(6,ps),__param(7,K)],Sc),Y5=class extends vu{constructor(t,e,i,s,r,n,o,a,c,l,h,u){super(t,e,pe(i,".vscode-oss-dev","extensions","control.json"),s,r,n,o,a,c,l,h,u),this.R=(async()=>{if(Cd)try{const f=await this.t.readFile($.file(Cd));return JSON.parse(f.value.toString())}catch{}return Object.create(null)})()}f(t){return this.R}}}}),yu,k$=v({"out-build/vs/platform/extensionManagement/node/extensionsScannerService.js"(){"use strict";re(),xi(),wu(),Q5(),Ve(),Z(),Q(),Tt(),ks(),Es(),yu=class extends Y5{constructor(e,i,s,r,n,o,a,c){super($.file(n.builtinExtensionsPath),$.file(n.extensionsPath),n.userHome,e.defaultProfile,e,i,s,r,n,o,a,c)}},yu=__decorate([__param(0,Ss),__param(1,Do),__param(2,rt),__param(3,K),__param(4,ms),__param(5,nt),__param(6,ni),__param(7,cs)],yu)}}),bu,S$=v({"out-build/vs/platform/userDataProfile/electron-main/userDataProfilesHandler.js"(){"use strict";T(),tt(),Xr(),qt(),le(),Dt(),bu=class extends j{constructor(e,i,s){super(),this.a=i,this.b=s,this.B(e.onWillLoadWindow(r=>{r.reason===2&&this.c(r.window)})),this.B(e.onBeforeCloseWindow(r=>this.c(r))),this.B(new Ki(()=>this.g(),30*1e3)).schedule()}async c(e){const i=this.f(e),s=this.a.getProfileForWorkspace(i);s?.isTransient&&(this.a.unsetWorkspace(i,s.isTransient),s.isTransient&&await this.a.cleanUpTransientProfiles())}f(e){return e.openedWorkspace??Gl(e.backupPath,e.isExtensionDevelopmentHost)}g(){const e=this.a.getAssociatedEmptyWindows();if(e.length===0)return;const i=this.b.getWindows().map(s=>this.f(s));for(const s of e)i.some(r=>r.id===s.id)||this.a.unsetWorkspace(s,!1)}},bu=__decorate([__param(0,_e),__param(1,xs),__param(2,yt)],bu)}}),X5,E$=v({"out-build/vs/platform/userDataProfile/electron-main/userDataProfileStorageIpc.js"(){"use strict";J(),T(),w1(),X5=class extends j{constructor(t,e,i){super(),this.b=t,this.c=e,this.f=i;const s=this.B(new or);this.a=this.B(new D({onWillAddFirstListener:()=>s.value=this.g(),onDidRemoveLastListener:()=>s.value=void 0}))}g(){this.f.debug("ProfileStorageChangesListenerChannel#registerStorageChangeListeners");const t=new Ae;return t.add(x.debounce(this.b.applicationStorage.onDidChangeStorage,(e,i)=>(e?e.push(i.key):e=[i.key],e),100)(e=>this.h(e))),t.add(x.debounce(this.b.onDidChangeProfileStorage,(e,i)=>{e||(e=new Map);let s=e.get(i.profile.id);return s||e.set(i.profile.id,s={profile:i.profile,keys:[],storage:i.storage}),s.keys.push(i.key),e},100)(e=>this.j(e))),t}h(t){const e=t.includes(Gs)?[this.c.defaultProfile]:[],i=[];if(t=t.filter(s=>s!==Gs),t.length){const s=m1(this.b.applicationStorage.storage);i.push({profile:this.c.defaultProfile,changes:t.map(r=>({key:r,scope:0,target:s[r]}))})}this.m(e,i)}j(t){const e=[],i=new Map;for(const[s,r]of t.entries()){r.keys.includes(Gs)&&e.push(r.profile);const n=r.keys.filter(o=>o!==Gs);if(n.length){const o=m1(r.storage.storage);i.set(s,{profile:r.profile,changes:n.map(a=>({key:a,scope:0,target:o[a]}))})}}this.m(e,[...i.values()])}m(t,e){(t.length||e.length)&&this.a.fire({valueChanges:e,targetChanges:t})}listen(t,e,i){switch(e){case"onDidChange":return this.a.event}throw new Error(`[ProfileStorageChangesListenerChannel] Event not found: ${e}`)}async call(t,e){throw new Error(`Call not found: ${e}`)}}}});async function x$(t,e){let i=t.getItem(b1);return(typeof i!="string"||N&&i==="6c9d2bc8f91b89624add29c0abeae7fb42bf539fa1cdb2e3e57cd668fa9bcead")&&(i=await xE(e.error.bind(e))),i}async function P$(t,e){let i=t.getItem(k1);return typeof i!="string"&&(i=await $E(e.error.bind(e))),i}async function e2(t,e){let i=t.getItem(Zl);return typeof i!="string"&&(i=await D4(e.error.bind(e))),i}var $$=v({"out-build/vs/platform/telemetry/node/telemetryUtils.js"(){"use strict";G(),_h(),ai()}});async function A$(t,e){const i=await x$(t,e);return t.setItem(b1,i),i}async function D$(t,e){const i=await P$(t,e);return t.setItem(k1,i),i}async function I$(t,e){const i=await e2(t,e);return t.setItem(Zl,i),i}async function C$(t,e){const i=await D4(e.error.bind(e)),s=await e2(t,e);i!==s&&t.setItem(Zl,i)}var R$=v({"out-build/vs/platform/telemetry/electron-main/telemetryUtils.js"(){"use strict";_h(),ai(),$$()}}),ku,O$=v({"out-build/vs/platform/extensionManagement/node/extensionsProfileScannerService.js"(){"use strict";Q(),Es(),ks(),wu(),Ve(),xi(),re(),ku=class extends gu{constructor(e,i,s,r,n){super($.file(e.extensionsPath),i,s,r,n)}},ku=__decorate([__param(0,ms),__param(1,rt),__param(2,Ss),__param(3,ni),__param(4,K)],ku)}}),t2,L$=v({"out-build/vs/platform/log/electron-main/logIpc.js"(){"use strict";Qt(),re(),Q(),t2=class{constructor(t){this.b=t,this.a=new Rt}listen(t,e,i){switch(e){case"onDidChangeLoggers":return i?this.b.getOnDidChangeLoggersEvent(i):this.b.onDidChangeLoggers;case"onDidChangeLogLevel":return i?this.b.getOnDidChangeLogLevelEvent(i):this.b.onDidChangeLogLevel;case"onDidChangeVisibility":return i?this.b.getOnDidChangeVisibilityEvent(i):this.b.onDidChangeVisibility}throw new Error(`Event not found: ${e}`)}async call(t,e,i){switch(e){case"createLogger":this.c($.revive(i[0]),i[1],i[2]);return;case"log":return this.e($.revive(i[0]),i[1]);case"consoleLog":return this.d(i[0],i[1]);case"setLogLevel":return $v(i[0])?this.b.setLogLevel(i[0]):this.b.setLogLevel($.revive(i[0]),i[1]);case"setVisibility":return this.b.setVisibility($.revive(i[0]),i[1]);case"registerLogger":return this.b.registerLogger({...i[0],resource:$.revive(i[0].resource)},i[1]);case"deregisterLogger":return this.b.deregisterLogger($.revive(i[0]))}throw new Error(`Call not found: ${e}`)}c(t,e,i){this.a.set(t,this.b.createLogger(t,e,i))}d(t,e){let i=console.log;switch(t){case Y.Error:i=console.error;break;case Y.Warning:i=console.warn;break;case Y.Info:i=console.info;break}i.call(console,...e)}e(t,e){const i=this.a.get(t);if(!i)throw new Error("Create the logger before logging");for(const[s,r]of e)Kf(i,s,r)}}}}),Vp,Su,Eu,M$=v({"out-build/vs/platform/utilityProcess/electron-main/utilityProcessWorkerMainService.js"(){"use strict";T(),Z(),Q(),Dt(),uo(),ai(),qs(),J(),le(),tt(),Vp=V("utilityProcessWorker"),Su=class extends j{constructor(e,i,s,r){super(),this.b=e,this.c=i,this.f=s,this.g=r,this.a=new Map}async createWorker(e){const i=`window: ${e.reply.windowId}, moduleId: ${e.process.moduleId}`;this.b.trace(`[UtilityProcessWorker]: createWorker(${i})`);const s=this.h(e);this.a.has(s)&&(this.b.warn(`[UtilityProcessWorker]: createWorker() found an existing worker that will be terminated (${i})`),this.disposeWorker(e));const r=new Eu(this.b,this.c,this.f,this.g,e);if(!r.spawn())return{reason:{code:1,signal:"EINVALID"}};this.a.set(s,r);const n=new js;return x.once(r.onDidTerminate)(o=>{o.code===0?this.b.trace(`[UtilityProcessWorker]: terminated normally with code ${o.code}, signal: ${o.signal}`):this.b.error(`[UtilityProcessWorker]: terminated unexpectedly with code ${o.code}, signal: ${o.signal}`),this.a.delete(s),n.complete({reason:o})}),n.p}h(e){return fs({moduleId:e.process.moduleId,windowId:e.reply.windowId})}async disposeWorker(e){const i=this.h(e),s=this.a.get(i);s&&(this.b.trace(`[UtilityProcessWorker]: disposeWorker(window: ${e.reply.windowId}, moduleId: ${e.process.moduleId})`),s.kill(),s.dispose(),this.a.delete(i))}},Su=__decorate([__param(0,K),__param(1,yt),__param(2,oi),__param(3,_e)],Su),Eu=class extends j{constructor(e,i,s,r,n){super(),this.c=i,this.f=n,this.a=this.B(new D),this.onDidTerminate=this.a.event,this.b=this.B(new Ka(e,i,s,r)),this.g()}g(){this.B(this.b.onExit(e=>this.a.fire({code:e.code,signal:e.signal}))),this.B(this.b.onCrash(e=>this.a.fire({code:e.code,signal:"ECRASH"})))}spawn(){const i=this.c.getWindowById(this.f.reply.windowId)?.win?.webContents.getOSProcessId();return this.b.start({type:this.f.process.type,name:this.f.process.name,entryPoint:this.f.process.moduleId,parentLifecycleBound:i,windowLifecycleBound:!0,correlationId:`${this.f.reply.windowId}`,responseWindowId:this.f.reply.windowId,responseChannel:this.f.reply.channel,responseNonce:this.f.reply.nonce})}kill(){this.b.kill()}},Eu=__decorate([__param(0,K),__param(1,yt),__param(2,oi),__param(3,_e)],Eu)}}),i2,F$=v({"out-build/vs/platform/utilityProcess/common/utilityProcessWorkerService.js"(){"use strict";i2="utilityProcessWorker"}}),N$,s2,r2,n2,o2,a2,c2,Co,l2,W$,ci,h2,u2,d2,f2,p2,m2,g2,w2,v2,y2,qp,_$,b2=v({"out-build/vs/platform/terminal/common/terminal.js"(){"use strict";Z(),Pv(),ls(),N$=new Jf("terminalTabFocusMode",!1,!0),function(t){t.AutomationProfile="terminal.integrated.automationProfile.",t.DefaultProfile="terminal.integrated.defaultProfile.",t.Profiles="terminal.integrated.profiles."}(s2||(s2={})),function(t){t.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",t.AutomationProfileLinux="terminal.integrated.automationProfile.linux",t.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",t.AutomationProfileWindows="terminal.integrated.automationProfile.windows",t.ProfilesWindows="terminal.integrated.profiles.windows",t.ProfilesMacOs="terminal.integrated.profiles.osx",t.ProfilesLinux="terminal.integrated.profiles.linux",t.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",t.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",t.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",t.UseWslProfiles="terminal.integrated.useWslProfiles",t.TabsDefaultColor="terminal.integrated.tabs.defaultColor",t.TabsDefaultIcon="terminal.integrated.tabs.defaultIcon",t.TabsEnabled="terminal.integrated.tabs.enabled",t.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",t.TabsHideCondition="terminal.integrated.tabs.hideCondition",t.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",t.TabsShowActions="terminal.integrated.tabs.showActions",t.TabsLocation="terminal.integrated.tabs.location",t.TabsFocusMode="terminal.integrated.tabs.focusMode",t.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",t.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",t.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",t.CopyOnSelection="terminal.integrated.copyOnSelection",t.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",t.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",t.FontFamily="terminal.integrated.fontFamily",t.FontSize="terminal.integrated.fontSize",t.LetterSpacing="terminal.integrated.letterSpacing",t.LineHeight="terminal.integrated.lineHeight",t.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",t.TabStopWidth="terminal.integrated.tabStopWidth",t.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",t.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",t.BellDuration="terminal.integrated.bellDuration",t.FontWeight="terminal.integrated.fontWeight",t.FontWeightBold="terminal.integrated.fontWeightBold",t.CursorBlinking="terminal.integrated.cursorBlinking",t.CursorStyle="terminal.integrated.cursorStyle",t.CursorStyleInactive="terminal.integrated.cursorStyleInactive",t.CursorWidth="terminal.integrated.cursorWidth",t.Scrollback="terminal.integrated.scrollback",t.DetectLocale="terminal.integrated.detectLocale",t.DefaultLocation="terminal.integrated.defaultLocation",t.GpuAcceleration="terminal.integrated.gpuAcceleration",t.TerminalTitleSeparator="terminal.integrated.tabs.separator",t.TerminalTitle="terminal.integrated.tabs.title",t.TerminalDescription="terminal.integrated.tabs.description",t.RightClickBehavior="terminal.integrated.rightClickBehavior",t.MiddleClickBehavior="terminal.integrated.middleClickBehavior",t.Cwd="terminal.integrated.cwd",t.ConfirmOnExit="terminal.integrated.confirmOnExit",t.ConfirmOnKill="terminal.integrated.confirmOnKill",t.EnableBell="terminal.integrated.enableBell",t.EnableVisualBell="terminal.integrated.enableVisualBell",t.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",t.AllowChords="terminal.integrated.allowChords",t.AllowMnemonics="terminal.integrated.allowMnemonics",t.TabFocusMode="terminal.integrated.tabFocusMode",t.EnvMacOs="terminal.integrated.env.osx",t.EnvLinux="terminal.integrated.env.linux",t.EnvWindows="terminal.integrated.env.windows",t.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",t.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",t.ShowExitAlert="terminal.integrated.showExitAlert",t.SplitCwd="terminal.integrated.splitCwd",t.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",t.WindowsUseConptyDll="terminal.integrated.windowsUseConptyDll",t.WordSeparators="terminal.integrated.wordSeparators",t.EnableFileLinks="terminal.integrated.enableFileLinks",t.AllowedLinkSchemes="terminal.integrated.allowedLinkSchemes",t.UnicodeVersion="terminal.integrated.unicodeVersion",t.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",t.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",t.HideOnStartup="terminal.integrated.hideOnStartup",t.HideOnLastClosed="terminal.integrated.hideOnLastClosed",t.CustomGlyphs="terminal.integrated.customGlyphs",t.RescaleOverlappingGlyphs="terminal.integrated.rescaleOverlappingGlyphs",t.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",t.InheritEnv="terminal.integrated.inheritEnv",t.ShowLinkHover="terminal.integrated.showLinkHover",t.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",t.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",t.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",t.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",t.ShellIntegrationEnvironmentReporting="terminal.integrated.shellIntegration.environmentReporting",t.EnableImages="terminal.integrated.enableImages",t.SmoothScrolling="terminal.integrated.smoothScrolling",t.IgnoreBracketedPasteMode="terminal.integrated.ignoreBracketedPasteMode",t.FocusAfterRun="terminal.integrated.focusAfterRun",t.FontLigaturesEnabled="terminal.integrated.fontLigatures.enabled",t.FontLigaturesFeatureSettings="terminal.integrated.fontLigatures.featureSettings",t.FontLigaturesFallbackLigatures="terminal.integrated.fontLigatures.fallbackLigatures",t.DeveloperPtyHostLatency="terminal.integrated.developer.ptyHost.latency",t.DeveloperPtyHostStartupDelay="terminal.integrated.developer.ptyHost.startupDelay",t.DevMode="terminal.integrated.developer.devMode"}(r2||(r2={})),function(t){t.Bash="bash",t.Fish="fish",t.Sh="sh",t.Csh="csh",t.Ksh="ksh",t.Zsh="zsh"}(n2||(n2={})),function(t){t.CommandPrompt="cmd",t.Wsl="wsl",t.GitBash="gitbash"}(o2||(o2={})),function(t){t.PowerShell="pwsh",t.Python="python",t.Julia="julia",t.NuShell="nu",t.Node="node"}(a2||(a2={})),function(t){t[t.Api=0]="Api",t[t.Process=1]="Process",t[t.Sequence=2]="Sequence",t[t.Config=3]="Config"}(c2||(c2={})),function(t){t.LocalPty="localPty",t.PtyHost="ptyHost",t.PtyHostWindow="ptyHostWindow",t.Logger="logger",t.Heartbeat="heartbeat"}(Co||(Co={})),function(t){t.Cwd="cwd",t.InitialCwd="initialCwd",t.FixedDimensions="fixedDimensions",t.Title="title",t.ShellType="shellType",t.HasChildProcesses="hasChildProcesses",t.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",t.OverrideDimensions="overrideDimensions",t.FailedShellIntegrationActivation="failedShellIntegrationActivation",t.UsedShellIntegrationInjection="usedShellIntegrationInjection",t.ShellIntegrationInjectionFailureReason="shellIntegrationInjectionFailureReason"}(l2||(l2={})),W$=V("ptyService"),function(t){t[t.BeatInterval=5e3]="BeatInterval",t[t.ConnectingBeatInterval=2e4]="ConnectingBeatInterval",t[t.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",t[t.SecondWaitMultiplier=1]="SecondWaitMultiplier",t[t.CreateProcessTimeout=5e3]="CreateProcessTimeout"}(ci||(ci={})),function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"}(h2||(h2={})),function(t){t.TerminalView="view",t.Editor="editor"}(u2||(u2={})),function(t){t[t.GraceTime=6e4]="GraceTime",t[t.ShortGraceTime=6e3]="ShortGraceTime"}(d2||(d2={})),function(t){t[t.HighWatermarkChars=1e5]="HighWatermarkChars",t[t.LowWatermarkChars=5e3]="LowWatermarkChars",t[t.CharCountAckSize=5e3]="CharCountAckSize"}(f2||(f2={})),function(t){t.GitBash="Git Bash",t.Pwsh="PowerShell"}(p2||(p2={})),function(t){t[t.Off=0]="Off",t[t.FinalTerm=1]="FinalTerm",t[t.VSCode=2]="VSCode"}(m2||(m2={})),function(t){t.InjectionSettingDisabled="injectionSettingDisabled",t.NoExecutable="noExecutable",t.FeatureTerminal="featureTerminal",t.IgnoreShellIntegrationFlag="ignoreShellIntegrationFlag",t.Winpty="winpty",t.UnsupportedArgs="unsupportedArgs",t.UnsupportedShell="unsupportedShell",t.FailedToSetStickyBit="failedToSetStickyBit",t.FailedToCreateTmpDir="failedToCreateTmpDir"}(g2||(g2={})),function(t){t[t.Unknown=0]="Unknown",t[t.Shutdown=1]="Shutdown",t[t.Process=2]="Process",t[t.User=3]="User",t[t.Extension=4]="Extension"}(w2||(w2={})),v2={Backend:"workbench.contributions.terminal.processBackend"},y2=class{constructor(){this.a=new Map}get backends(){return this.a}registerTerminalBackend(t){const e=this.b(t.remoteAuthority);if(this.a.has(e))throw new Error(`A terminal backend with remote authority '${e}' was already registered.`);this.a.set(e,t)}getTerminalBackend(t){return this.a.get(this.b(t))}b(t){return t?.toLowerCase()??""}},zt.add(v2.Backend,new y2),qp=V("localPtyService"),_$=V("terminalLogService")}}),xu,T$=v({"out-build/vs/platform/terminal/electron-main/electronPtyHostStarter.js"(){"use strict";Pt(),jf(),tt(),Q(),mn(),uo(),Qw(),ds(),T(),J(),Bi(),Ue(),Oe(),xu=class extends j{constructor(e,i,s,r,n){super(),this.f=e,this.g=i,this.h=s,this.j=r,this.m=n,this.a=void 0,this.b=new D,this.onRequestConnection=this.b.event,this.c=new D,this.onWillShutdown=this.c.event,this.B(this.j.onWillShutdown(()=>this.c.fire())),wt.on("vscode:createPtyHostMessageChannel",(o,a)=>this.r(o,a)),this.B(be(()=>{wt.removeHandler("vscode:createPtyHostMessageChannel")}))}start(){this.a=new Sr(this.m,fc,this.j);const e=I3(this.h.args,this.h.isBuilt),i=e.port?["--nolazy",`--inspect${e.break?"-brk":""}=${e.port}`]:void 0;this.a.start({type:"ptyHost",name:"pty-host",entryPoint:"vs/platform/terminal/node/ptyHostMain",execArgv:i,args:["--logsPath",this.h.logsHome.with({scheme:O.file}).fsPath],env:this.n()});const s=this.a.connect(),r=new Wf(s,"ptyHost"),n=new Ae;return n.add(r),n.add(be(()=>{this.a?.kill(),this.a?.dispose(),this.a=void 0})),{client:r,store:n,onDidProcessExit:this.a.onExit}}n(){this.h.unsetSnapExportedVariables();const e={...Ti(process.env),VSCODE_ESM_ENTRYPOINT:"vs/platform/terminal/node/ptyHostMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true",VSCODE_RECONNECT_GRACE_TIME:String(this.f.graceTime),VSCODE_RECONNECT_SHORT_GRACE_TIME:String(this.f.shortGraceTime),VSCODE_RECONNECT_SCROLLBACK:String(this.f.scrollback)},i=this.g.getValue("terminal.integrated.developer.ptyHost.latency");i&&typeof i=="number"&&(e.VSCODE_LATENCY=String(i));const s=this.g.getValue("terminal.integrated.developer.ptyHost.startupDelay");return s&&typeof s=="number"&&(e.VSCODE_STARTUP_DELAY=String(s)),this.h.restoreSnapExportedVariables(),e}r(e,i){this.b.fire();const s=this.a.connect();if(e.sender.isDestroyed()){s.close();return}e.sender.postMessage("vscode:createPtyHostMessageChannelResult",i,[s])}},xu=__decorate([__param(1,Be),__param(2,ht),__param(3,_e),__param(4,K)],xu)}}),k2,B$=v({"out-build/vs/platform/log/common/logIpc.js"(){"use strict";re(),J(),Q(),T(),k2=class extends j{constructor(t,e){super(),e.call("setLogLevel",[t.getLogLevel()]),this.B(t.onDidChangeLogLevel(i=>e.call("setLogLevel",[i]))),e.call("getRegisteredLoggers").then(i=>{for(const s of i)t.registerLogger({...s,resource:$.revive(s.resource)})}),this.B(e.listen("onDidChangeVisibility")(([i,s])=>t.setVisibility($.revive(i),s))),this.B(e.listen("onDidChangeLoggers")(({added:i,removed:s})=>{for(const r of i)t.registerLogger({...r,resource:$.revive(r.resource)});for(const r of s)t.deregisterLogger(r.resource)}))}}}}),Pu,U$=v({"out-build/vs/platform/terminal/common/requestStore.js"(){"use strict";le(),Et(),J(),T(),Q(),Pu=class extends j{constructor(e,i){super(),this.h=i,this.a=0,this.c=new Map,this.f=new Map,this.g=this.B(new D),this.onCreateRequest=this.g.event,this.b=e===void 0?15e3:e,this.B(be(()=>{for(const s of this.f.values())mt(s)}))}createRequest(e){return new Promise((i,s)=>{const r=++this.a;this.c.set(r,i),this.g.fire({requestId:r,...e});const n=new Ji;mi(this.b,n.token).then(()=>s(`Request ${r} timed out (${this.b}ms)`)),this.f.set(r,[be(()=>n.cancel())])})}acceptReply(e,i){const s=this.c.get(e);s?(this.c.delete(e),mt(this.f.get(e)||[]),this.f.delete(e),s(i)):this.h.warn(`RequestStore#acceptReply was called without receiving a matching request ${e}`)}},Pu=__decorate([__param(1,K)],Pu)}});function j$(t,e){const i=[{name:null,description:g(2279,null)}];return i.push(...t.map(s=>({name:s.profileName,description:z$(s)}))),e&&i.push(...e.map(s=>({name:s.title,description:H$(s)}))),{values:i.map(s=>s.name),markdownDescriptions:i.map(s=>s.description)}}function z$(t){let e=`$(${mc.isThemeIcon(t.icon)?t.icon.id:t.icon?t.icon:Ai.terminal.id}) ${t.profileName}
- path: ${t.path}`;return t.args&&(typeof t.args=="string"?e+=`
- args: "${t.args}"`:e+=`
- args: [${t.args.length===0?"":`'${t.args.join("','")}'`}]`),t.overrideName!==void 0&&(e+=`
- overrideName: ${t.overrideName}`),t.color&&(e+=`
- color: ${t.color}`),t.env&&(e+=`
- env: ${JSON.stringify(t.env)}`),e}function H$(t){return`$(${mc.isThemeIcon(t.icon)?t.icon.id:t.icon?t.icon:Ai.terminal.id}) ${t.title}
- extensionIdentifier: ${t.extensionIdentifier}`}var V$=v({"out-build/vs/platform/terminal/common/terminalProfiles.js"(){"use strict";cu(),re(),we(),m5()}});function Gp(t){const e=t===2?"linux":t===1?"osx":"windows";return g(2255,null,Zm(t),'```json\n"terminal.integrated.profile.'+e+'": {\n "bash": null\n}\n```',"[","](https://code.visualstudio.com/docs/terminal/profiles)")}function q$(){zt.as(Si.Configuration).registerConfiguration(x2),G$()}function G$(t,e){const i=zt.as(Si.Configuration);let s;t&&(s=j$(t?.profiles,e));const r=Jp;Jp={id:"terminal",order:100,title:g(2275,null),type:"object",properties:{"terminal.integrated.defaultProfile.linux":{restricted:!0,markdownDescription:g(2276,null),type:["string","null"],default:null,enum:t?.os===3?s?.values:void 0,markdownEnumDescriptions:t?.os===3?s?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.osx":{restricted:!0,markdownDescription:g(2277,null),type:["string","null"],default:null,enum:t?.os===2?s?.values:void 0,markdownEnumDescriptions:t?.os===2?s?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.windows":{restricted:!0,markdownDescription:g(2278,null),type:["string","null"],default:null,enum:t?.os===1?s?.values:void 0,markdownEnumDescriptions:t?.os===1?s?.markdownDescriptions:void 0}}},i.updateConfigurations({add:[Jp],remove:r?[r]:[]})}var S2,E2,gn,$u,Au,x2,Jp,J$=v({"out-build/vs/platform/terminal/common/terminalPlatformConfiguration.js"(){"use strict";cu(),G(),we(),lr(),ls(),V$(),S2={type:["string","null"],enum:["terminal.ansiBlack","terminal.ansiRed","terminal.ansiGreen","terminal.ansiYellow","terminal.ansiBlue","terminal.ansiMagenta","terminal.ansiCyan","terminal.ansiWhite"],default:null},E2={type:"string",enum:Array.from(f5(),t=>t.id),markdownEnumDescriptions:Array.from(f5(),t=>`$(${t.id})`)},gn={args:{description:g(2248,null),type:"array",items:{type:"string"}},overrideName:{description:g(2249,null),type:"boolean"},icon:{description:g(2250,null),...E2},color:{description:g(2251,null),...S2},env:{markdownDescription:g(2252,null),type:"object",additionalProperties:{type:["string","null"]},default:{}}},$u={type:"object",required:["path"],properties:{path:{description:g(2253,null),type:["string","array"],items:{type:"string"}},...gn}},Au={type:"object",required:["path"],properties:{path:{description:g(2254,null),type:["string"],items:{type:"string"}},...gn}},x2={id:"terminal",order:100,title:g(2256,null),type:"object",properties:{"terminal.integrated.automationProfile.linux":{restricted:!0,markdownDescription:g(2257,null),type:["object","null"],default:null,anyOf:[{type:"null"},Au],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.osx":{restricted:!0,markdownDescription:g(2258,null),type:["object","null"],default:null,anyOf:[{type:"null"},Au],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.windows":{restricted:!0,markdownDescription:g(2259,null,"`terminal.integrated.automationShell.windows`"),type:["object","null"],default:null,anyOf:[{type:"null"},Au],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.profiles.windows":{restricted:!0,markdownDescription:Gp(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:g(2260,null),enum:["PowerShell","Git Bash"]},...gn}},{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:g(2261,null),type:"string"},id:{description:g(2262,null),type:"string"},title:{description:g(2263,null),type:"string"},...gn}},{type:"null"},$u]}},"terminal.integrated.profiles.osx":{restricted:!0,markdownDescription:Gp(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:g(2264,null),type:"string"},id:{description:g(2265,null),type:"string"},title:{description:g(2266,null),type:"string"},...gn}},{type:"null"},$u]}},"terminal.integrated.profiles.linux":{restricted:!0,markdownDescription:Gp(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:g(2267,null),type:"string"},id:{description:g(2268,null),type:"string"},title:{description:g(2269,null),type:"string"},...gn}},{type:"null"},$u]}},"terminal.integrated.useWslProfiles":{description:g(2270,null),type:"boolean",default:!0},"terminal.integrated.inheritEnv":{scope:1,description:g(2271,null),type:"boolean",default:!0},"terminal.integrated.persistentSessionScrollback":{scope:1,markdownDescription:g(2272,null),type:"number",default:100},"terminal.integrated.showLinkHover":{scope:1,description:g(2273,null),type:"boolean",default:!0},"terminal.integrated.ignoreProcessNames":{markdownDescription:g(2274,null,"`#terminal.integrated.confirmOnKill#`"),type:"array",items:{type:"string",uniqueItems:!0},default:["starship","oh-my-posh","bash","zsh"]}}}}}),Ec,P2=v({"out-build/vs/platform/terminal/common/environmentVariable.js"(){"use strict";(function(t){t[t.Replace=1]="Replace",t[t.Append=2]="Append",t[t.Prepend=3]="Prepend"})(Ec||(Ec={}))}}),K$=v({"out-build/vs/platform/terminal/common/environmentVariableShared.js"(){"use strict"}}),Z$,Y$=v({"out-build/vs/platform/terminal/common/environmentVariableCollection.js"(){"use strict";G(),P2(),Z$=new Map([[Ec.Append,"APPEND"],[Ec.Prepend,"PREPEND"],[Ec.Replace,"REPLACE"]])}});import*as Q$ from"os";import"fs";import"util";function X$(){const t=/(\d+)\.(\d+)\.(\d+)/g.exec(Q$.release());let e=0;return t&&t.length===4&&(e=parseInt(t[3])),e}var Xi,Ds,eA=v({"out-build/vs/platform/terminal/node/terminalEnvironment.js"(){"use strict";Oe(),ge(),G(),ns(),xt(),P2(),K$(),Y$(),function(t){t.WindowsPwsh="windows-pwsh",t.WindowsPwshLogin="windows-pwsh-login",t.Pwsh="pwsh",t.PwshLogin="pwsh-login",t.Zsh="zsh",t.ZshLogin="zsh-login",t.Bash="bash",t.Fish="fish",t.FishLogin="fish-login"}(Xi||(Xi={})),Ds=new Map,Ds.set(Xi.WindowsPwsh,["-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),Ds.set(Xi.WindowsPwshLogin,["-l","-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),Ds.set(Xi.Pwsh,["-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"{1}']),Ds.set(Xi.PwshLogin,["-l","-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"']),Ds.set(Xi.Zsh,["-i"]),Ds.set(Xi.ZshLogin,["-il"]),Ds.set(Xi.Bash,["--init-file","{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh"]),Ds.set(Xi.Fish,["--init-command",'source "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.fish"']),Ds.set(Xi.FishLogin,["-l","--init-command",'source "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.fish"'])}});import*as tA from"fs";import*as iA from"child_process";function sA(t,e,i,s,r=process.env,n,o,a,c){return n=n||{existsFile:Nt.existsFile,readFile:tA.promises.readFile},B?rA(i,n,r,o,s.getValue("terminal.integrated.useWslProfiles")!==!1,t&&typeof t=="object"?{...t}:s.getValue("terminal.integrated.profiles.windows"),typeof e=="string"?e:s.getValue("terminal.integrated.defaultProfile.windows"),c,a):uA(n,o,i,t&&typeof t=="object"?{...t}:s.getValue(Se?"terminal.integrated.profiles.linux":"terminal.integrated.profiles.osx"),typeof e=="string"?e:s.getValue(Se?"terminal.integrated.defaultProfile.linux":"terminal.integrated.defaultProfile.osx"),c,a,r)}async function rA(t,e,i,s,r,n,o,a,c){const l=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432"),h=`${process.env.windir}\\${l?"Sysnative":"System32"}`,u=X$()>=22e3;await oA(a);const f=new Map;if(t){f.set("PowerShell",{source:"PowerShell",icon:Ai.terminalPowershell,isAutoDetected:!0}),f.set("Windows PowerShell",{path:`${h}\\WindowsPowerShell\\v1.0\\powershell.exe`,icon:Ai.terminalPowershell,isAutoDetected:!0}),f.set("Git Bash",{source:"Git Bash",isAutoDetected:!0}),f.set("Command Prompt",{path:`${h}\\cmd.exe`,icon:Ai.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:Ai.terminalBash,isAutoDetected:!0});const m=`${process.env.CMDER_ROOT||`${process.env.HOMEDRIVE}\\cmder`}\\vendor\\bin\\vscode_init.cmd`;f.set("Cmder",{path:`${h}\\cmd.exe`,args:["/K",m],requiresPath:process.env.CMDER_ROOT?m:{path:m,isUnsafe:!0},isAutoDetected:!0})}D2(n,f);const p=await $2(f.entries(),o,e,i,s,c);if(t&&r)try{const m=await lA(`${h}\\${u?"wsl":"bash"}.exe`,o);for(const w of m)(!n||!(w.profileName in n))&&p.push(w)}catch{Kp&&(s?.trace("WSL is not installed, so could not detect WSL profiles"),Kp=!1)}return p}async function $2(t,e,i,s=process.env,r,n){const o=[];for(const[a,c]of t)o.push(nA(a,c,e,i,s,r,n));return(await Promise.all(o)).filter(a=>!!a)}async function nA(t,e,i,s,r=process.env,n,o){if(e===null)return;let a,c,l;if("source"in e&&!("path"in e)){const p=xc?.get(e.source);if(!p)return;a=p.paths,c=e.args||p.args,e.icon?l=A2(e.icon):p.icon&&(l=p.icon)}else a=Array.isArray(e.path)?e.path:[e.path],c=B||Array.isArray(e.args)?e.args:void 0,l=A2(e.icon);let h;if(o){const p=a.map(w=>typeof w=="string"?w:w.path),m=await o(p);h=new Array(a.length);for(let w=0;w<a.length;w++)typeof a[w]=="string"?h[w]=m[w]:h[w]={path:m[w],isUnsafe:!0}}else h=a.slice();let u;if(e.requiresPath){let p;if(pt(e.requiresPath)?p=e.requiresPath:(p=e.requiresPath.path,e.requiresPath.isUnsafe&&(u=p)),!await s.existsFile(p))return}const f=await Du(t,i,h,s,r,c,e.env,e.overrideName,e.isAutoDetected,u);if(!f){n?.debug("Terminal profile not validated",t,a);return}return f.isAutoDetected=e.isAutoDetected,f.icon=l,f.color=e.color,f}function A2(t){return typeof t=="string"?{id:t}:t}async function oA(t){if(xc&&!t)return;const[e,i]=await Promise.all([aA(),t||cA()]);xc=new Map,xc.set("Git Bash",{profileName:"Git Bash",paths:e,args:["--login","-i"]}),xc.set("PowerShell",{profileName:"PowerShell",paths:i,icon:Ai.terminalPowershell})}async function aA(){const t=new Set,e=await Eh("git.exe");if(e){const r=dt(e);t.add(nr(r,"../.."))}function i(r,n){n&&r.add(n)}i(t,process.env.ProgramW6432),i(t,process.env.ProgramFiles),i(t,process.env["ProgramFiles(X86)"]),i(t,`${process.env.LocalAppData}\\Program`);const s=[];for(const r of t)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 cA(){const t=[];for await(const e of Eb())t.push(e.exePath);return t}async function lA(t,e){const i=[],s=await new Promise((o,a)=>{iA.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:t,args:["-d",`${o}`],isDefault:a===e,icon:hA(o),isAutoDetected:!1};i.push(c)}return i}function hA(t){return t.includes("Ubuntu")?Ai.terminalUbuntu:t.includes("Debian")?Ai.terminalDebian:Ai.terminalLinux}async function uA(t,e,i,s,r,n,o,a){const c=new Map;if(i&&await t.existsFile("/etc/shells")){const l=(await t.readFile("/etc/shells")).toString(),h=(n||l.split(`
`)).map(f=>{const p=f.indexOf("#");return p===-1?f:f.substring(0,p)}).filter(f=>f.trim().length>0),u=new Map;for(const f of h){let p=ze(f),m=u.get(p)||0;m++,m>1&&(p=`${p} (${m})`),u.set(p,m),c.set(p,{path:f,isAutoDetected:!0})}}return D2(s,c),await $2(c.entries(),r,t,a,e,o)}function D2(t,e){if(t)for(const[i,s]of Object.entries(t))s===null||typeof s!="object"||!("path"in s)&&!("source"in s)?e.delete(i):(s.icon=s.icon||e.get(i)?.icon,e.set(i,s))}async function Du(t,e,i,s,r,n,o,a,c,l){if(i.length===0)return Promise.resolve(void 0);const h=i.shift();if(h==="")return Du(t,e,i,s,r,n,o,a,c);const u=typeof h!="string"&&h.isUnsafe,f=typeof h=="string"?h:h.path,p={profileName:t,path:f,args:n,env:o,overrideName:a,isAutoDetected:c,isDefault:t===e,isUnsafePath:u,requiresUnsafePath:l};if(ze(f)===f){const w=r.PATH?r.PATH.split(Nd):void 0,y=await Eh(f,void 0,w,void 0,s.existsFile);return y?(p.path=y,p.isFromPath=!0,p):Du(t,e,i,s,r,n)}return await s.existsFile(Zt(f))?p:Du(t,e,i,s,r,n,o,a,c)}var I2,xc,Kp,dA=v({"out-build/vs/platform/terminal/node/terminalProfiles.js"(){"use strict";cu(),ge(),G(),ec(),$e(),gt(),Ab(),eA(),function(t){t.UnixShellsPath="/etc/shells"}(I2||(I2={})),Kp=!0}}),Zp,Iu,fA=v({"out-build/vs/platform/terminal/node/ptyHostService.js"(){"use strict";J(),T(),G(),Hs(),Ue(),Q(),B$(),K1(),U$(),b2(),J$(),dA(),Ob(),On(),function(t){t[t.MaxRestarts=5]="MaxRestarts"}(Zp||(Zp={})),Iu=class extends j{get c(){return this.h(),this.a}get f(){return this.h(),this.b}get g(){return this.b}h(){this.a||this.U()}constructor(e,i,s,r){super(),this.M=e,this.N=i,this.O=s,this.P=r,this.m=!1,this.n=0,this.r=!0,this.u=this.B(new D),this.onPtyHostExit=this.u.event,this.w=this.B(new D),this.onPtyHostStart=this.w.event,this.y=this.B(new D),this.onPtyHostUnresponsive=this.y.event,this.z=this.B(new D),this.onPtyHostResponsive=this.z.event,this.C=this.B(new D),this.onPtyHostRequestResolveVariables=this.C.event,this.D=this.B(new D),this.onProcessData=this.D.event,this.F=this.B(new D),this.onProcessReady=this.F.event,this.G=this.B(new D),this.onProcessReplay=this.G.event,this.H=this.B(new D),this.onProcessOrphanQuestion=this.H.event,this.I=this.B(new D),this.onDidRequestDetach=this.I.event,this.J=this.B(new D),this.onDidChangeProperty=this.J.event,this.L=this.B(new D),this.onProcessExit=this.L.event,q$(),this.B(this.M),this.B(be(()=>this.W())),this.j=this.B(new Pu(void 0,this.O)),this.B(this.j.onCreateRequest(this.C.fire,this.C)),this.M.onRequestConnection&&this.B(x.once(this.M.onRequestConnection)(()=>this.h())),this.M.onWillShutdown&&this.B(this.M.onWillShutdown(()=>this.m=!0))}get Q(){return this.N.getValue("terminal.integrated.ignoreProcessNames")}async R(){return this.g?.refreshIgnoreProcessNames?.(this.Q)}async S(){if(B)return process.env;try{return await J1(this.N,this.O,{_:[]},process.env)}catch(e){return this.O.error("ptyHost was unable to resolve shell environment",e),{}}}U(){const e=this.M.start(),i=e.client;this.O.getLevel()===Y.Trace&&this.O.trace("PtyHostService#_startPtyHost",new Error().stack?.replace(/^Error/,"")),He.toService(i.getChannel(Co.Heartbeat)).onBeat(()=>this.X()),this.X(!0),this.B(e.onDidProcessExit(n=>{this.u.fire(n.code),!this.m&&!this.q.isDisposed&&(this.n<=Zp.MaxRestarts?(this.O.error(`ptyHost terminated unexpectedly with code ${n.code}`),this.n++,this.restartPtyHost()):this.O.error(`ptyHost terminated unexpectedly with code ${n.code}, giving up`))}));const r=He.toService(i.getChannel(Co.PtyHost));return this.B(r.onProcessData(n=>this.D.fire(n))),this.B(r.onProcessReady(n=>this.F.fire(n))),this.B(r.onProcessExit(n=>this.L.fire(n))),this.B(r.onDidChangeProperty(n=>this.J.fire(n))),this.B(r.onProcessReplay(n=>this.G.fire(n))),this.B(r.onProcessOrphanQuestion(n=>this.H.fire(n))),this.B(r.onDidRequestDetach(n=>this.I.fire(n))),this.B(new k2(this.P,i.getChannel(Co.Logger))),this.a=e,this.b=r,this.w.fire(),this.B(this.N.onDidChangeConfiguration(async n=>{n.affectsConfiguration("terminal.integrated.ignoreProcessNames")&&await this.R()})),this.R(),[e,r]}async createProcess(e,i,s,r,n,o,a,c,l,h,u){const f=setTimeout(()=>this.$(),ci.CreateProcessTimeout),p=await this.f.createProcess(e,i,s,r,n,o,a,c,l,h,u);return clearTimeout(f),p}updateTitle(e,i,s){return this.f.updateTitle(e,i,s)}updateIcon(e,i,s,r){return this.f.updateIcon(e,i,s,r)}attachToProcess(e){return this.f.attachToProcess(e)}detachFromProcess(e,i){return this.f.detachFromProcess(e,i)}shutdownAll(){return this.f.shutdownAll()}listProcesses(){return this.f.listProcesses()}async getPerformanceMarks(){return this.g?.getPerformanceMarks()??[]}async reduceConnectionGraceTime(){return this.g?.reduceConnectionGraceTime()}start(e){return this.f.start(e)}shutdown(e,i){return this.f.shutdown(e,i)}input(e,i){return this.f.input(e,i)}processBinary(e,i){return this.f.processBinary(e,i)}resize(e,i,s){return this.f.resize(e,i,s)}clearBuffer(e){return this.f.clearBuffer(e)}acknowledgeDataEvent(e,i){return this.f.acknowledgeDataEvent(e,i)}setUnicodeVersion(e,i){return this.f.setUnicodeVersion(e,i)}getInitialCwd(e){return this.f.getInitialCwd(e)}getCwd(e){return this.f.getCwd(e)}async getLatency(){const e=new Wr,i=await this.f.getLatency();return e.stop(),[{label:"ptyhostservice<->ptyhost",latency:e.elapsed()},...i]}orphanQuestionReply(e){return this.f.orphanQuestionReply(e)}installAutoReply(e,i){return this.f.installAutoReply(e,i)}uninstallAllAutoReplies(){return this.f.uninstallAllAutoReplies()}getDefaultSystemShell(e){return this.g?.getDefaultSystemShell(e)??Rb(e??bi,process.env)}async getProfiles(e,i,s,r=!1){const n=await this.S();return sA(i,s,r,this.N,n,void 0,this.O,this.bb.bind(this,e))}async getEnvironment(){return this.b?this.f.getEnvironment():{...process.env}}getWslPath(e,i){return this.f.getWslPath(e,i)}getRevivedPtyNewId(e,i){return this.f.getRevivedPtyNewId(e,i)}setTerminalLayoutInfo(e){return this.f.setTerminalLayoutInfo(e)}async getTerminalLayoutInfo(e){return this.g?.getTerminalLayoutInfo(e)}async requestDetachInstance(e,i){return this.f.requestDetachInstance(e,i)}async acceptDetachInstanceReply(e,i){return this.f.acceptDetachInstanceReply(e,i)}async freePortKillProcess(e){if(!this.f.freePortKillProcess)throw new Error("freePortKillProcess does not exist on the pty proxy");return this.f.freePortKillProcess(e)}async serializeTerminalState(e){return this.f.serializeTerminalState(e)}async reviveTerminalProcesses(e,i,s){return this.f.reviveTerminalProcesses(e,i,s)}async refreshProperty(e,i){return this.f.refreshProperty(e,i)}async updateProperty(e,i,s){return this.f.updateProperty(e,i,s)}async restartPtyHost(){this.W(),this.r=!0,this.U()}W(){this.f.shutdownAll(),this.c.store.dispose()}X(e){this.ab(),this.s=setTimeout(()=>this.Y(),e?ci.ConnectingBeatInterval:ci.BeatInterval*ci.FirstWaitMultiplier),this.r||(this.r=!0,this.z.fire())}Y(){this.O.warn(`No ptyHost heartbeat after ${ci.BeatInterval*ci.FirstWaitMultiplier/1e3} seconds`),this.s=void 0,this.t=setTimeout(()=>this.Z(),ci.BeatInterval*ci.SecondWaitMultiplier)}Z(){this.O.error(`No ptyHost heartbeat after ${(ci.BeatInterval*ci.FirstWaitMultiplier+ci.BeatInterval*ci.FirstWaitMultiplier)/1e3} seconds`),this.t=void 0,this.r&&(this.r=!1,this.y.fire())}$(){this.ab(),this.O.error(`No ptyHost response to createProcess after ${ci.CreateProcessTimeout/1e3} seconds`),this.r&&(this.r=!1,this.y.fire())}ab(){this.s&&(clearTimeout(this.s),this.s=void 0),this.t&&(clearTimeout(this.t),this.t=void 0)}bb(e,i){return this.j.createRequest({workspaceId:e,originalText:i})}async acceptPtyHostResolvedVariables(e,i){this.j.acceptReply(e,i)}},Iu=__decorate([__param(1,Be),__param(2,K),__param(3,Da)],Iu)}}),Yp,C2,R2,pA=v({"out-build/vs/platform/remote/common/electronRemoteResources.js"(){"use strict";Yp="request",C2="remoteResourceHandler",R2=class{async routeCall(t,e,i){if(e!==Yp)throw new Error(`Call not found: ${e}`);const s=i[0];if(s?.authority){const r=t.connections.find(n=>n.ctx===s.authority);if(r)return r}throw new Error("Caller not found")}routeEvent(t,e){throw new Error(`Event not found: ${e}`)}}}});import{BrowserWindow as mA}from"electron";var Cu,gA=v({"out-build/vs/platform/auxiliaryWindow/electron-main/auxiliaryWindow.js"(){"use strict";G(),Ue(),Pt(),tt(),Q(),Wi(),Zr(),v5(),Cu=class extends Mp{get win(){return super.win||this.tryClaimWindow(),super.win}constructor(e,i,s,r,n,o){super(r,n,i,s),this.U=e,this.W=o,this.parentId=-1,this.S=!1,this.id=this.U.id,this.tryClaimWindow()}tryClaimWindow(e){this.q.isDisposed||this.U.isDestroyed()||(this.X(e),e&&!this.S&&(this.S=!0,this.G({x:e.x,y:e.y,width:e.width,height:e.height,mode:e.show===!1?0:1})))}X(e){if(this.t)return;const i=mA.fromWebContents(this.U);i&&(this.F.trace("[aux window] Claimed browser window instance"),this.u(i,e),i.setMenu(null),(B||Se)&&La(this.z,e?.titleBarStyle==="hidden"?"custom":void 0)&&i.setAutoHideMenuBar(!0),this.W.registerAuxWindow(this))}matches(e){return this.U.id===e.id}},Cu=__decorate([__param(1,ht),__param(2,K),__param(3,Be),__param(4,Pi),__param(5,_e)],Cu)}});import{BrowserWindow as wA,app as vA}from"electron";var Ru,yA=v({"out-build/vs/platform/auxiliaryWindow/electron-main/auxiliaryWindowsMainService.js"(){"use strict";J(),T(),Oe(),ds(),gA(),Z(),Q(),Ma(),Dt(),Ru=class extends j{constructor(e,i){super(),this.j=e,this.m=i,this.a=this.B(new D),this.onDidMaximizeWindow=this.a.event,this.b=this.B(new D),this.onDidUnmaximizeWindow=this.b.event,this.c=this.B(new D),this.onDidChangeFullScreen=this.c.event,this.f=this.B(new D),this.onDidChangeAlwaysOnTop=this.f.event,this.g=this.B(new D),this.onDidTriggerSystemContextMenu=this.g.event,this.h=new Map,this.n()}n(){vA.on("browser-window-created",(e,i)=>{const s=this.getWindowByWebContents(i.webContents);if(s)this.m.trace('[aux window] app.on("browser-window-created"): Trying to claim auxiliary window'),s.tryClaimWindow();else{const r=new Ae;r.add(x.fromNodeEventEmitter(i.webContents,"did-create-window",(n,o)=>({browserWindow:n,details:o}))(({browserWindow:n,details:o})=>{const a=this.getWindowByWebContents(n.webContents);a&&(this.m.trace('[aux window] window.on("did-create-window"): Trying to claim auxiliary window'),a.tryClaimWindow(o.options))})),r.add(x.fromNodeEventEmitter(i,"closed")(()=>r.dispose()))}}),wt.handle("vscode:registerAuxiliaryWindow",async(e,i)=>{const s=this.getWindowByWebContents(e.sender);return s&&(this.m.trace("[aux window] vscode:registerAuxiliaryWindow: Registering auxiliary window to main window"),s.parentId=i),e.sender.id})}createWindow(e){const{state:i,overrides:s}=this.r(e);return this.j.invokeFunction(d1,i,s,{preload:ei.asFileUri("vs/base/parts/sandbox/electron-sandbox/preload-aux.js").fsPath})}r(e){const i={},s={},r=e.features.split(",");for(const o of r){const[a,c]=o.split("=");switch(a){case"width":i.width=parseInt(c,10);break;case"height":i.height=parseInt(c,10);break;case"left":i.x=parseInt(c,10);break;case"top":i.y=parseInt(c,10);break;case"window-maximized":i.mode=0;break;case"window-fullscreen":i.mode=3;break;case"window-disable-fullscreen":s.disableFullscreen=!0;break;case"window-native-titlebar":s.forceNativeTitlebar=!0;break;case"window-always-on-top":s.alwaysOnTop=!0;break}}const n=Na.validateWindowState(this.m,i)??fy();return this.m.trace("[aux window] using window state",n),{state:n,overrides:s}}registerWindow(e){const i=new Ae,s=this.j.createInstance(Cu,e);this.h.set(s.id,s),i.add(be(()=>this.h.delete(s.id))),i.add(s.onDidMaximize(()=>this.a.fire(s))),i.add(s.onDidUnmaximize(()=>this.b.fire(s))),i.add(s.onDidEnterFullScreen(()=>this.c.fire({window:s,fullscreen:!0}))),i.add(s.onDidLeaveFullScreen(()=>this.c.fire({window:s,fullscreen:!1}))),i.add(s.onDidChangeAlwaysOnTop(r=>this.f.fire({window:s,alwaysOnTop:r}))),i.add(s.onDidTriggerSystemContextMenu(({x:r,y:n})=>this.g.fire({window:s,x:r,y:n}))),x.once(s.onDidClose)(()=>i.dispose())}getWindowByWebContents(e){const i=this.h.get(e.id);return i?.matches(e)?i:void 0}getFocusedWindow(){const e=wA.getFocusedWindow();if(e)return this.getWindowByWebContents(e.webContents)}getLastActiveWindow(){return gy(Array.from(this.h.values()))}getWindows(){return Array.from(this.h.values())}},Ru=__decorate([__param(0,cs),__param(1,K)],Ru)}}),Qp,O2,bA=v({"out-build/vs/platform/mcp/common/nativeMcpDiscoveryHelper.js"(){"use strict";Z(),Qp=V("INativeMcpDiscoveryHelperService"),O2="NativeMcpDiscoveryHelper"}});import{homedir as kA}from"os";var L2,SA=v({"out-build/vs/platform/mcp/node/nativeMcpDiscoveryHelperService.js"(){"use strict";G(),re(),L2=class{constructor(){}load(){return Promise.resolve({platform:In,homedir:$.file(kA()),winAppData:this.a("APPDATA"),xdgHome:this.a("XDG_CONFIG_HOME")})}a(t){const e=process.env[t];if(e)return $.file(e)}}}}),Xp,EA,xA=v({"out-build/vs/platform/webContentExtractor/common/webContentExtractor.js"(){"use strict";Z(),Xp=V("IWebContentExtractorService"),EA=V("ISharedWebContentExtractorService")}});function PA(t){if(t.length===0)return null;const e=new Map;for(const r of t)e.set(r.nodeId,r);function i(r){const n=e.get(r);if(!n||!n.childIds)return[];const o=[];for(const a of n.childIds){const c=e.get(a);c&&(c.ignored?o.push(...i(a)):o.push(a))}return o}const s=new Map;for(const r of t)r.ignored||s.set(r.nodeId,{node:r,children:[],parent:null});for(const r of t){if(r.ignored)continue;const n=s.get(r.nodeId);if(r.childIds)for(const o of r.childIds){const a=e.get(o);if(a)if(a.ignored){const c=i(o);for(const l of c){const h=s.get(l);h&&(h.parent=n,n.children.push(h))}}else{const c=s.get(o);c&&(c.parent=n,n.children.push(c))}}}for(const r of s.values())if(!r.parent)return r;return null}function $A(t,e){const i=PA(e);if(!i)return"";const s=AA(t,i),r=FA(i);return s+(r.length>0?`
## Additional Links
`+r.join(`
`):"")}function AA(t,e){const i=[];return Qs(t,e,i,0,!0),i.join("")}function Qs(t,e,i,s,r){switch(Xs(e.node)){case"navigation":return;case"heading":RA(t,e,i,s);return;case"paragraph":CA(t,e,i,s,r);return;case"list":i.push(`
`);for(const o of e.children)Qs(t,o,i,s+1,!0);i.push(`
`);return;case"ListMarker":i.push(Is(e.node,r));return;case"listitem":{const o=[];for(const c of e.children)Qs(t,c,o,s+1,!0);const a=em(e.node)>1?" ".repeat(em(e.node)):"";i.push(`${a}${o.join("").trim()}
`);return}case"link":if(!M2(e)){const o=Is(e.node,r),a=tm(e.node);IA(t,e.node)?i.push(o):i.push(`[${o}](${a})`)}return;case"StaticText":{const o=Is(e.node,r);o&&i.push(o);break}case"image":{const o=Is(e.node,r)||"Image",a=DA(e.node);a?i.push(`
`):i.push(`[Image: ${o}]
`);break}case"DescriptionList":OA(t,e,i,s);return;case"blockquote":i.push("> "+Is(e.node,r).replace(/\n/g,`
> `)+`
`);break;case"generic":i.push(" ");break;case"code":{MA(t,e,i,s);return}case"pre":i.push("```\n"+Is(e.node,!1)+"\n```\n\n");break;case"table":LA(e,i);return}for(const o of e.children)Qs(t,o,i,s+1,r)}function Xs(t){return t.role?.value||""}function Is(t,e){const i=t.name?.value||t.value?.value||"";if(!e||i.length<=Ou)return i;const s=i.split("");let r=-1;for(let n=1;n<s.length;n++)s[n]===" "&&(r=n),n%Ou===0&&r!==-1&&(s[r]=`
`,r=n);return s.join("")}function em(t){const e=t.properties?.find(i=>i.name==="level");return e?Math.min(Number(e.value.value)||1,6):1}function tm(t){return t.properties?.find(i=>i.name==="url")?.value.value||"#"}function DA(t){return t.properties?.find(i=>i.name==="url")?.value.value||null}function M2(t){let e=t;for(;e;){const i=Xs(e.node);if(["navigation","menu","menubar"].includes(i))return!0;e=e.parent}return!1}function IA(t,e){const i=tm(e);try{const s=$.parse(i);return s.scheme===t.scheme&&s.authority===t.authority&&s.path===t.path}catch{return!1}}function CA(t,e,i,s,r){i.push(`
`);for(const n of e.children)Qs(t,n,i,s+1,r);i.push(`
`)}function RA(t,e,i,s){i.push(`
`);const r=em(e.node);i.push(`${"#".repeat(r)} `);for(const n of e.children)Xs(n.node)==="StaticText"?i.push(Is(n.node,!1)):Qs(t,n,i,s+1,!1);i.push(`
`)}function OA(t,e,i,s){i.push(`
`);for(const r of e.children)if(Xs(r.node)==="term"){i.push("- **");for(const n of r.children)Qs(t,n,i,s+1,!0);i.push("** ")}else if(Xs(r.node)==="definition"){for(const n of r.children)Qs(t,n,i,s+1,!0);i.push(`
`)}i.push(`
`)}function LA(t,e){e.push(`
`);const i=t.children.filter(s=>Xs(s.node).includes("row"));if(i.length>0){const s=i[0].children.filter(n=>Xs(n.node).includes("cell")),r=s.map(n=>Is(n.node,!1)||" ");e.push("| "+r.join(" | ")+` |
`),e.push("| "+s.map(()=>"---").join(" | ")+` |
`);for(let n=1;n<i.length;n++){const a=i[n].children.filter(c=>Xs(c.node).includes("cell")).map(c=>Is(c.node,!1)||" ");e.push("| "+a.join(" | ")+` |
`)}}e.push(`
`)}function MA(t,e,i,s){const r=[];for(const o of e.children)Qs(t,o,r,s+1,!1);if(r.some(o=>o.includes(`
`)))i.push("\n```\n"),i.push(r.join("")),i.push("\n```\n");else{i.push("`");let o=0;for(const a of r)o+=a.length,o>Ou&&(i.push(`
`),o=0),i.push(a),i.push("`")}}function FA(t){const e=[];return F2(t,e),e}function F2(t,e){if(Xs(t.node)==="link"&&M2(t)){const s=Is(t.node,!0),r=tm(t.node),n=t.node.description?.value||"";e.push(`- [${s}](${r})${n?" - "+n:""}`)}for(const s of t.children)F2(s,e)}var Ou,NA=v({"out-build/vs/platform/webContentExtractor/electron-main/cdpAccessibilityDomain.js"(){"use strict";re(),Ou=80}});import{BrowserWindow as WA}from"electron";var N2,_A=v({"out-build/vs/platform/webContentExtractor/electron-main/webContentExtractorService.js"(){"use strict";NA(),le(),Qt(),N2=class{constructor(){this.a=new df(3),this.b=new Rt,this.c=24*60*60*1e3}d(t){return Date.now()-t.timestamp>this.c}extract(t){return t.length===0?Promise.resolve([]):Promise.all(t.map(e=>this.a.queue(()=>this.doExtract(e))))}async doExtract(t){const e=this.b.get(t);if(e)if(this.d(e))this.b.delete(t);else return e.content;const i=new WA({width:800,height:600,show:!1,webPreferences:{javascript:!0,offscreen:!0,sandbox:!0,webgl:!1}});try{await i.loadURL(t.toString(!0)),i.webContents.debugger.attach("1.1");const s=await i.webContents.debugger.sendCommand("Accessibility.getFullAXTree"),r=$A(t,s.nodes);return this.b.set(t,{content:r,timestamp:Date.now()}),r}catch(s){console.log(s)}finally{i.destroy()}return""}}}}),im,W2,TA=v({"out-build/vs/platform/telemetry/common/errorTelemetry.js"(){"use strict";kt(),De(),T(),Bi(),Ve(),function(t){function e(i,s){return i.callstack<s.callstack?-1:i.callstack>s.callstack?1:0}t.compare=e}(im||(im={})),W2=class b6{static{this.ERROR_FLUSH_TIMEOUT=5*1e3}constructor(e,i=b6.ERROR_FLUSH_TIMEOUT){this.f=void 0,this.g=[],this.h=new Ae,this.c=e,this.d=i;const s=zo.addListener(r=>this.j(r));this.h.add(be(s)),this.i()}dispose(){clearTimeout(this.f),this.l(),this.h.dispose()}i(){}j(e){if(!e||e.code||(e.detail&&e.detail.stack&&(e=e.detail),Ws.isErrorNoTelemetry(e)||e instanceof _t||typeof e?.message=="string"&&e.message.includes("Unable to read file")))return;const i=Array.isArray(e.stack)?e.stack.join(`
`):e.stack,s=e.message?e.message:kk(e);i&&this.k({msg:s,callstack:i})}k(e){const i=e7(this.g,e,im.compare);i<0?(e.count=1,this.g.splice(~i,0,e)):(this.g[i].count||(this.g[i].count=0),this.g[i].count+=1),this.f===void 0&&(this.f=setTimeout(()=>{this.l(),this.f=void 0},this.d))}l(){for(const e of this.g)this.c.publicLogError2("UnhandledError",e);this.g.length=0}}}}),Lu,_2,BA=v({"out-build/vs/platform/telemetry/electron-main/errorTelemetry.js"(){"use strict";De(),TA(),ai(),Lu=class extends W2{constructor(e,i){super(i),this.m=e}i(){k0(e=>this.o(e)),process.on("uncaughtException",e=>{J6(e)||Ct(e)}),process.on("unhandledRejection",e=>Ct(e))}o(e){this.m.error(`[uncaught exception in main]: ${e}`),e.stack&&this.m.error(e.stack)}},Lu=__decorate([__param(1,oi)],Lu),_2=Lu}});import{app as wn,protocol as T2,session as Ro,systemPreferences as B2}from"electron";import{hostname as UA,release as jA}from"os";var sm,Mu,zA=v({"out-build/vs/code/electron-main/app.js"(){"use strict";la(),ds(),Ke(),jr(),J(),Bm(),hr(),T(),Oe(),ge(),G(),$e(),re(),Ei(),u3(),Hs(),f3(),Qw(),Hy(),we(),Va(),fk(),Ue(),wk(),F1(),bb(),oo(),sv(),Kk(),Qk(),Pt(),Qa(),K1(),kS(),SS(),ES(),AS(),US(),Ve(),uE(),lp(),Rh(),Z(),hp(),fE(),pE(),gE(),tt(),Q(),tx(),zh(),Tt(),Ja(),mx(),$p(),Wi(),gx(),nh(),J4(),ai(),wx(),yx(),mn(),xr(),bx(),kx(),Sx(),$x(),Lx(),S4(),Mx(),Fx(),Nx(),Wx(),Ux(),Zr(),Dt(),nP(),oP(),qt(),H1(),Vh(),aP(),rn(),$s(),cP(),Xr(),wu(),Q5(),k$(),S$(),E$(),le(),R$(),O$(),L$(),dc(),M$(),F$(),b2(),T$(),fA(),pA(),_r(),Ya(),yA(),ul(),y5(),bA(),SA(),xA(),_A(),BA(),Mu=class extends j{static{sm=this}static{this.a={[O.file]:"security.promptForLocalFileProtocolHandling",[O.vscodeRemote]:"security.promptForRemoteFileProtocolHandling"}}constructor(e,i,s,r,n,o,a,c,l,h,u,f){super(),this.g=e,this.h=i,this.j=s,this.m=r,this.n=n,this.s=o,this.t=a,this.u=c,this.w=l,this.y=h,this.z=u,this.C=f,this.D(),this.F()}D(){const e=f=>f?.startsWith(`${O.vscodeFileResource}://${sa}`),i=f=>f?.startsWith(`${O.vscodeWebview}://`),s=new Set(["pointerLock"]),r=new Set([...s,"clipboard-read","clipboard-sanitized-write","deprecated-sync-clipboard-read"]),n=new Set([...s,"media","local-fonts","deprecated-sync-clipboard-read"]);Ro.defaultSession.setPermissionRequestHandler((f,p,m,w)=>i(w.requestingUrl)?m(r.has(p)):e(w.requestingUrl)?m(n.has(p)):m(!1)),Ro.defaultSession.setPermissionCheckHandler((f,p,m,w)=>i(w.requestingUrl)?r.has(p):e(w.requestingUrl)?n.has(p):!1);const o=new Set([O.file,O.vscodeFileResource,O.vscodeRemoteResource,O.vscodeManagedRemoteResource,"devtools"]),a=f=>{for(let p=f;p;p=p.parent)if(p.url.startsWith(`${O.vscodeWebview}://`))return!0;return!1},c=f=>f.resourceType==="xhr"||a(f.frame),l=f=>{const p=f.frame;if(!p||!this.b)return!1;const m=Fa();for(const w of m)if(p.processId===w.webContents.mainFrame.processId)return!0;return!1},h=(f,p)=>{if(f.path!=="/index.html")return!0;const m=p.frame;if(!m||!this.b)return!1;for(const w of this.b.getWindows())if(w.win&&m.processId===w.win.webContents.mainFrame.processId)return!0;return!1};Ro.defaultSession.webRequest.onBeforeRequest((f,p)=>{const m=$.parse(f.url);return m.scheme===O.vscodeWebview&&!h(m,f)?(this.m.error("Blocked vscode-webview request",f.url),p({cancel:!0})):m.scheme===O.vscodeFileResource&&!l(f)?(this.m.error("Blocked vscode-file request",f.url),p({cancel:!0})):m.path.endsWith(".svg")&&!o.has(m.scheme)?p({cancel:!c(f)}):p({cancel:!1})}),Ro.defaultSession.webRequest.onHeadersReceived((f,p)=>{const m=f.responseHeaders,w=m["content-type"]||m["Content-Type"];if(w&&Array.isArray(w)){const y=$.parse(f.url);if(y.path.endsWith(".svg")&&o.has(y.scheme))return m["Content-Type"]=["image/svg+xml"],p({cancel:!1,responseHeaders:m});if(!y.path.endsWith(O.vscodeRemoteResource)&&w.some(b=>b.toLowerCase().includes("image/svg")))return p({cancel:!c(f)})}return p({cancel:!1})}),Ro.defaultSession.webRequest.onHeadersReceived((f,p)=>{if(f.url.startsWith("https://vscode.download.prss.microsoft.com/")){const m=f.responseHeaders??Object.create(null);if(m["Access-Control-Allow-Origin"]===void 0)return m["Access-Control-Allow-Origin"]=["*"],p({cancel:!1,responseHeaders:m})}return p({cancel:!1})});const u=Ro.defaultSession;typeof u.setCodeCachePath=="function"&&this.s.codeCachePath&&u.setCodeCachePath(M(this.s.codeCachePath,"chrome")),B&&(this.u.getValue("security.restrictUNCAccess")===!1?p8():ca(this.u.getValue("security.allowedUNCHosts")))}F(){x.once(this.t.onWillShutdown)(()=>this.dispose()),h3(),wn.on("accessibility-support-changed",(s,r)=>{this.b?.sendToAll("vscode:accessibilitySupportChanged",r)}),wn.on("activate",async(s,r)=>{this.m.trace("app#activate"),r||await this.b?.openEmptyWindow({context:1})}),wn.on("web-contents-created",(s,r)=>{r?.opener?.url.startsWith(`${O.vscodeFileResource}://${sa}/`)&&(this.m.trace('[aux window] app.on("web-contents-created"): Registering auxiliary window'),this.c?.registerWindow(r)),r.on("will-navigate",n=>{this.m.error("webContents#will-navigate: Prevented webcontent navigation"),n.preventDefault()}),r.setWindowOpenHandler(n=>n.url==="about:blank"?(this.m.trace("[aux window] webContents#setWindowOpenHandler: Allowing auxiliary window to open on about:blank"),{action:"allow",overrideBrowserWindowOptions:this.c?.createWindow(n)}):(this.m.trace(`webContents#setWindowOpenHandler: Prevented opening window with URL ${n.url}}`),this.f?.openExternal(void 0,n.url),{action:"deny"}))});let e=[],i;wn.on("open-file",(s,r)=>{r=Nn(r),this.m.trace("app#open-file: ",r),s.preventDefault(),e.push(Qr(r)?{workspaceUri:$.file(r)}:{fileUri:$.file(r)}),i!==void 0&&(clearTimeout(i),i=void 0),i=setTimeout(async()=>{await this.b?.open({context:1,cli:this.s.args,urisToOpen:e,gotoLineMode:!1,preferNewWindow:!0}),e=[],i=void 0},100)}),wn.on("new-window-for-tab",async()=>{await this.b?.openEmptyWindow({context:4})}),wt.handle("vscode:fetchShellEnv",s=>{const r=this.b?.getWindowByWebContents(s.sender);let n,o;return r?.config?(n=r.config,o={...process.env,...r.config.userEnv}):(n=this.s.args,o=process.env),this.U(n,o,!1)}),wt.on("vscode:toggleDevTools",s=>s.sender.toggleDevTools()),wt.on("vscode:openDevTools",s=>s.sender.openDevTools()),wt.on("vscode:reloadWindow",s=>s.sender.reload()),wt.handle("vscode:notifyZoomLevel",async(s,r)=>{const n=this.b?.getWindowByWebContents(s.sender);n&&n.notifyZoomLevel(r)})}async startup(){this.m.debug("Starting VS Code"),this.m.debug(`from: ${this.s.appRoot}`),this.m.debug("args:",this.s.args);const e=this.z.win32AppUserModelId;B&&e&&wn.setAppUserModelId(e);try{N&&this.u.getValue("window.nativeTabs")===!0&&!B2.getUserDefault("NSUseImprovedLayoutPass","boolean")&&B2.setUserDefault("NSUseImprovedLayoutPass","boolean",!0)}catch(u){this.m.error(u)}const i=new Kw;x.once(this.t.onWillShutdown)(u=>{u.reason===2&&i.dispose()}),this.m.trace("Resolving machine identifier...");const[s,r,n]=await Promise.all([A$(this.w,this.m),D$(this.w,this.m),I$(this.w,this.m)]);this.m.trace(`Resolved machine identifier: ${s}`);const{sharedProcessReady:o,sharedProcessClient:a}=this.N(s,r,n),c=await this.O(s,r,n,o);c.invokeFunction(u=>this.B(new _2(u.get(K),u.get(oi)))),c.invokeFunction(u=>u.get(oh)),this.B(c.createInstance(bu)),c.invokeFunction(u=>this.P(u,i,a));const l=await c.invokeFunction(u=>this.G(u,i));this.H(i),this.t.phase=2,await c.invokeFunction(u=>this.Q(u,l)),this.t.phase=3,this.R(),this.B(new Ki(()=>{this.B(mf(()=>{this.t.phase=4,this.X()},2500))},2500)).schedule()}async G(e,i){const s=this.b=e.get(yt),r=e.get(nc),n=this.f=e.get(un),o=e.get(br),a=this;r.registerHandler({async handleURL(p,m){return a.M(s,o,r,p,m)}});const c=this.B(new b5({onDidOpenMainWindow:n.onDidOpenMainWindow,onDidFocusMainWindow:n.onDidFocusMainWindow,getActiveWindowId:()=>n.getActiveWindowId(-1)})),l=new xw(p=>c.getActiveClientId().then(m=>p===m)),h=new o5(l,this.m),u=i.getChannel("urlHandler",h);r.registerHandler(new n5(u));const f=await this.I(s,o);return this.B(new l5(f?.urls,r,s,this.s,this.z,this.m)),f}H(e){const i=()=>({statusCode:404,data:"Not found"}),s=new Ts(()=>e.getChannel(C2,new R2));T2.registerBufferProtocol(O.vscodeManagedRemoteResource,(r,n)=>{const o=$.parse(r.url);if(!o.authority.startsWith("window:"))return n(i());s.value.call(Yp,[o]).then(a=>n({...a,data:Buffer.from(a.body,"base64")}),a=>{this.m.warn("error dispatching remote resource call",a),n({statusCode:500,data:String(a)})})})}async I(e,i){const s=this.s.args["open-url"]?this.s.args._urls||[]:[];s.length>0&&this.m.trace("app#resolveInitialProtocolUrls() protocol urls from command line:",s);const r=global.getOpenUrls()||[];if(r.length>0&&this.m.trace("app#resolveInitialProtocolUrls() protocol urls from macOS 'open-url' event:",r),s.length+r.length===0)return;const n=[...s,...r].map(c=>{try{return{uri:$.parse(c),originalUrl:c}}catch{this.m.trace("app#resolveInitialProtocolUrls() protocol url failed to parse:",c);return}}),o=[],a=[];for(const c of n){if(!c)continue;const l=this.L(c.uri);if(l)if(await this.J(l,e,i)){this.m.trace("app#resolveInitialProtocolUrls() protocol url was blocked:",c.uri.toString(!0));continue}else this.m.trace("app#resolveInitialProtocolUrls() protocol url will be handled as window to open:",c.uri.toString(!0),l),o.push(l);else this.m.trace("app#resolveInitialProtocolUrls() protocol url will be passed to active window for handling:",c.uri.toString(!0)),a.push(c)}return{urls:a,openables:o}}async J(e,i,s){let r,n;if(o1(e)?(r=e.workspaceUri,n=g(148,null,r.scheme===O.file?Tn(r,{os:bi,tildify:this.s}):r.toString(!0),this.z.nameShort)):Xv(e)?(r=e.folderUri,n=g(149,null,r.scheme===O.file?Tn(r,{os:bi,tildify:this.s}):r.toString(!0),this.z.nameShort)):(r=e.fileUri,n=g(150,null,r.scheme===O.file?Tn(r,{os:bi,tildify:this.s}):r.toString(!0),this.z.nameShort)),r.scheme!==O.file&&r.scheme!==O.vscodeRemote||this.u.getValue(sm.a[r.scheme])===!1)return!1;const{response:a,checkboxChecked:c}=await s.showMessageBox({type:"warning",buttons:[g(151,null),g(152,null)],message:n,detail:g(153,null),checkboxLabel:r.scheme===O.file?g(154,null):g(155,null),cancelId:1});if(a!==0)return!0;if(c){const l={channel:"vscode:disablePromptForProtocolHandling",args:r.scheme===O.file?"local":"remote"};i.sendToFocused(l.channel,l.args),i.sendToOpeningWindow(l.channel,l.args)}return!1}L(e){if(e.path){if(e.authority===O.file){const i=$.file(e.fsPath);return Qr(i)?{workspaceUri:i}:{fileUri:i}}else if(e.authority===O.vscodeRemote){const i=e.path.indexOf(ce.sep,1);let s,r;i!==-1?(s=e.path.substring(1,i),r=e.path.substring(i)):(s=e.path.substring(1),r="/");let n=e.query;const o=new URLSearchParams(e.query);o.get("windowId")==="_blank"&&(o.delete("windowId"),n=o.toString());const a=$.from({scheme:O.vscodeRemote,authority:s,path:r,query:n,fragment:e.fragment});return Qr(r)?{workspaceUri:a}:/:[\d]+$/.test(r)?{fileUri:a}:{folderUri:a}}}}async M(e,i,s,r,n){this.m.trace("app#handleProtocolUrl():",r.toString(!0),n),r.scheme===this.z.urlProtocol&&r.path==="workspace"&&(r=r.with({authority:"file",path:$.parse(r.query).path,query:""}));let o=!1;const a=new URLSearchParams(r.query);a.get("windowId")==="_blank"?(this.m.trace("app#handleProtocolUrl() found 'windowId=_blank' as parameter, setting shouldOpenInNewWindow=true:",r.toString(!0)),a.delete("windowId"),r=r.with({query:a.toString()}),o=!0):N&&e.getWindowCount()===0&&(this.m.trace("app#handleProtocolUrl() running on macOS with no window open, setting shouldOpenInNewWindow=true:",r.toString(!0)),o=!0);const c=a.get("continueOn");c!==null&&(this.m.trace("app#handleProtocolUrl() found 'continueOn' as parameter:",r.toString(!0)),a.delete("continueOn"),r=r.with({query:a.toString()}),this.s.continueOn=c??void 0);const l=this.L(r);return l?await this.J(l,e,i)?(this.m.trace("app#handleProtocolUrl() protocol url was blocked:",r.toString(!0)),!0):(this.m.trace("app#handleProtocolUrl() opening protocol url as window:",l,r.toString(!0)),(await e.open({context:6,cli:{...this.s.args},urisToOpen:[l],forceNewWindow:o,gotoLineMode:!0})).at(0)?.focus(),!0):o?(this.m.trace("app#handleProtocolUrl() opening empty window and passing in protocol url:",r.toString(!0)),await(await e.open({context:6,cli:{...this.s.args},forceNewWindow:!0,forceEmpty:!0,gotoLineMode:!0,remoteAuthority:lo(r)})).at(0)?.ready(),s.open(r,n)):(this.m.trace("app#handleProtocolUrl(): not handled",r.toString(!0),n),!1)}N(e,i,s){const r=this.B(this.j.createInstance(Yh,e,i,s));this.B(r.onDidCrash(()=>this.b?.sendToFocused("vscode:reportSharedProcessCrash")));const n=(async()=>{this.m.trace("Main->SharedProcess#connect");const a=await r.connect();return this.m.trace("Main->SharedProcess#connect: connection established"),new Wf(a,"main")})();return{sharedProcessReady:(async()=>(await r.whenReady(),n))(),sharedProcessClient:n}}async O(e,i,s,r){const n=new Oh;switch(process.platform){case"win32":n.set(dn,new de(pc));break;case"linux":Dd?n.set(dn,new de(iu,[process.env.SNAP,process.env.SNAP_REVISION])):n.set(dn,new de(eu));break;case"darwin":n.set(dn,new de($r));break}n.set(yt,new de(pu,[e,i,s,this.h],!1)),n.set(nn,new de(Ru,void 0,!1));const o=new ph(this.m,this.z);n.set(br,o),n.set(fp,new de(Nh,void 0,!1)),n.set(Za,new de(yh,void 0,!1)),n.set(hh,He.toService(bl(r.then(u=>u.getChannel("diagnostics"))))),n.set(Al,new de(bh)),n.set(q1,new de(kh,void 0,!1)),n.set(dp,new de(Fh)),n.set(un,new de(lc,void 0,!1)),n.set(Xp,new de(N2,void 0,!1)),n.set(Cp,new de(ou)),n.set(bp,new de(Kh)),n.set(Z1,new de(Ah)),n.set(io,new de(sh)),n.set(Ha,new de(rh));const a=new xu({graceTime:6e4,shortGraceTime:6e3,scrollback:this.u.getValue("terminal.integrated.persistentSessionScrollback")??100},this.u,this.s,this.t,this.m),c=new Iu(a,this.u,this.m,this.n);n.set(qp,c),B?n.set(tc,new de(Ih)):N?n.set(tc,new de(Mb)):Se&&n.set(tc,new de(ep));const l=new lh(this.s,this.u,this.m,this.w);n.set(so,l);const h=new wh(this.s,this.m,this.C,l,o);if(n.set(kr,h),n.set(z1,new de(mu,void 0,!1)),n.set(hc,new de(Hh,void 0,!1)),n.set(nc,new de(nu,void 0,!1)),K4(this.z,this.s)){const u=cx(this.z,this.u),f=bl(r.then(b=>b.getChannel("telemetryAppender"))),p=new t5(f),m=ox(jA(),UA(),process.arch,this.z.commit,this.z.version,e,i,s,u),w=lx(this.s),y={appenders:[p],commonProperties:m,piiPaths:w,sendErrorTelemetry:!0};n.set(oi,new de(Xh,[y],!1))}else n.set(oi,fc);return n.set(Do,new de(ku,void 0,!0)),n.set(Z5,new de(yu,void 0,!0)),n.set(Vp,new de(Su,void 0,!0)),n.set(oh,new de(ah)),n.set(Qp,new de(L2)),n.set(Wp,new de(uu,void 0,!0)),await Ot.settled([l.initialize(),h.initialize()]),this.j.createChild(n)}P(e,i,s){const r=this.B(new Ae),n=He.fromService(e.get(fp),r,{disableMarshalling:!0});this.g.registerChannel("launch",n);const o=He.fromService(e.get(Za),r,{disableMarshalling:!0});this.g.registerChannel("diagnostics",o);const a=r.add(new k5(e.get(pn)));i.registerChannel("policy",a),s.then(_=>_.registerChannel("policy",a));const c=this.y.getProvider(O.file);f7(c instanceof Ch);const l=r.add(new w4(c,this.m,this.s));i.registerChannel(ap,l),s.then(_=>_.registerChannel(ap,l));const h=He.fromService(e.get(xs),r);i.registerChannel("userDataProfiles",h),s.then(_=>_.registerChannel("userDataProfiles",h));const u=new s5(e.get(dn));i.registerChannel("update",u);const f=He.fromService(new Mh(this.m,e.get(hh),e.get(Za)),r);i.registerChannel("process",f);const p=He.fromService(e.get(Al),r);i.registerChannel("encryption",p);const m=He.fromService(e.get(q1),r);i.registerChannel("browserElements",m),s.then(_=>_.registerChannel("browserElements",m));const w=He.fromService(e.get(So),r);i.registerChannel("sign",w);const y=He.fromService(e.get(dp),r);i.registerChannel("keyboardLayout",y),this.f=e.get(un);const b=He.fromService(this.f,r);i.registerChannel("nativeHost",b),s.then(_=>_.registerChannel("nativeHost",b));const E=He.fromService(e.get(Xp),r);i.registerChannel("webContentExtractor",E);const A=He.fromService(e.get(z1),r);i.registerChannel("workspaces",A);const R=He.fromService(e.get(bp),r);i.registerChannel("menubar",R);const W=He.fromService(e.get(nc),r);i.registerChannel("url",W);const se=He.fromService(e.get(Cp),r);i.registerChannel("webview",se);const F=r.add(new e5(this.m,e.get(io)));i.registerChannel("storage",F),s.then(_=>_.registerChannel("storage",F));const H=r.add(new X5(e.get(io),e.get(xs),this.m));s.then(_=>_.registerChannel("profileStorageListener",H));const C=He.fromService(e.get(qp),r);i.registerChannel(Co.LocalPty,C);const ie=He.fromService(e.get(tc),r);i.registerChannel("externalTerminal",ie);const qe=He.fromService(e.get(Qp),r);i.registerChannel(O2,qe);const ne=new t2(e.get(ko));i.registerChannel("logger",ne),s.then(_=>_.registerChannel("logger",ne));const Ut=new Ky(e.get(yt));i.registerChannel("extensionhostdebugservice",Ut);const U=He.fromService(e.get(Z1),r);i.registerChannel(Lb,U);const L=He.fromService(e.get(Vp),r);i.registerChannel(i2,L)}async Q(e,i){const s=this.b=e.get(yt);this.c=e.get(nn);const r=on(process.env)?0:4,n=this.s.args;if(i){if(i.openables.length>0)return s.open({context:r,cli:n,urisToOpen:i.openables,gotoLineMode:!0,initialStartup:!0});if(i.urls.length>0)for(const w of i.urls){const y=new URLSearchParams(w.uri.query);if(y.get("windowId")==="_blank")return y.delete("windowId"),w.originalUrl=w.uri.toString(!0),w.uri=w.uri.with({query:y.toString()}),s.open({context:r,cli:n,forceNewWindow:!0,forceEmpty:!0,gotoLineMode:!0,initialStartup:!0})}}const o=global.macOpenFiles,a=n._.length,c=!!n["folder-uri"],l=!!n["file-uri"],h=n["skip-add-to-recently-opened"]===!0,u=n.wait&&n.waitMarkerFilePath?$.file(n.waitMarkerFilePath):void 0,f=n.remote||void 0,p=n.profile,m=n["profile-temp"];if(!a&&!c&&!l){if(n["new-window"]||p||m)return s.open({context:r,cli:n,forceNewWindow:!0,forceEmpty:!0,noRecentEntry:h,waitMarkerFileURI:u,initialStartup:!0,remoteAuthority:f,forceProfile:p,forceTempProfile:m});if(o.length)return s.open({context:1,cli:n,urisToOpen:o.map(w=>(w=Nn(w),Qr(w)?{workspaceUri:$.file(w)}:{fileUri:$.file(w)})),noRecentEntry:h,waitMarkerFileURI:u,initialStartup:!0})}return s.open({context:r,cli:n,forceNewWindow:n["new-window"],diffMode:n.diff,mergeMode:n.merge,noRecentEntry:h,waitMarkerFileURI:u,gotoLineMode:n.goto,initialStartup:!0,remoteAuthority:f,forceProfile:p,forceTempProfile:m})}R(){this.S(),T2.registerHttpProtocol(O.vscodeRemoteResource,(e,i)=>{i({url:e.url.replace(/^vscode-remote-resource:/,"http:"),method:e.method})}),this.U(this.s.args,process.env,!0),this.W(),N&&wn.runningUnderARM64Translation&&this.b?.sendToFocused("vscode:showTranslatedBuildWarning")}async S(){const e=this.z.win32MutexName;if(B&&e)try{const i=await import("@vscode/windows-mutex"),s=new i.Mutex(e);x.once(this.t.onWillShutdown)(()=>s.release())}catch(i){this.m.error(i)}}async U(e,i,s){try{return await J1(this.u,this.m,e,i)}catch(r){const n=us(r);s?this.b?.sendToFocused("vscode:showResolveShellEnvError",n):this.m.error(n)}return{}}async W(){try{const i=(await this.y.readFile(this.s.argvResource)).value.toString(),s=_m(i),n=Ep(this.u)>=1;if(s["enable-crash-reporter"]===void 0){const o=[""," // Allows to disable crash reporting."," // Should restart the app if the value is changed.",` "enable-crash-reporter": ${n},`,""," // Unique id used for correlating crash reports sent from this instance."," // Do not edit this value.",` "crash-reporter-id": "${gi()}"`,"}"],a=i.substring(0,i.length-2).concat(`,
`,o.join(`
`));await this.y.writeFile(this.s.argvResource,q.fromString(a))}else{const o=i.replace(/"enable-crash-reporter": .*,/,`"enable-crash-reporter": ${n},`);o!==i&&await this.y.writeFile(this.s.argvResource,q.fromString(o))}}catch(e){this.m.error(e),this.b?.sendToFocused("vscode:showArgvParseWarning")}}X(){C$(this.w,this.m)}},Mu=sm=__decorate([__param(2,cs),__param(3,K),__param(4,Da),__param(5,ht),__param(6,_e),__param(7,Be),__param(8,Pi),__param(9,rt),__param(10,nt),__param(11,xs)],Mu)}});function Pc(t){return Object.isFrozen(t)?t:yk(t)}function Ar(t,e){const{added:i,removed:s,updated:r}=U2(e?.rawConfiguration,t?.rawConfiguration),n=[],o=t?.getAllOverrideIdentifiers()||[],a=e?.getAllOverrideIdentifiers()||[];if(e){const c=a.filter(l=>!o.includes(l));for(const l of c)n.push([l,e.getKeysForOverrideIdentifier(l)])}if(t){const c=o.filter(l=>!a.includes(l));for(const l of c)n.push([l,t.getKeysForOverrideIdentifier(l)])}if(e&&t){for(const c of o)if(a.includes(c)){const l=U2({contents:t.getOverrideValue(void 0,c)||{},keys:t.getKeysForOverrideIdentifier(c)},{contents:e.getOverrideValue(void 0,c)||{},keys:e.getKeysForOverrideIdentifier(c)});n.push([c,[...l.added,...l.removed,...l.updated]])}}return{added:i,removed:s,updated:r,overrides:n}}function U2(t,e){const i=t?e?t.keys.filter(n=>e.keys.indexOf(n)===-1):[...t.keys]:[],s=e?t?e.keys.filter(n=>t.keys.indexOf(n)===-1):[...e.keys]:[],r=[];if(t&&e){for(const n of e.keys)if(t.keys.indexOf(n)!==-1){const o=fl(e.contents,n),a=fl(t.contents,n);Ps(o,a)||r.push(n)}}return{added:i,removed:s,updated:r}}var ot,rm,j2,z2,Fu,H2,V2=v({"out-build/vs/platform/configuration/common/configurationModels.js"(){"use strict";kt(),J(),Js(),T(),Qt(),Bi(),$e(),re(),Ue(),lr(),ls(),ot=class kn{static createEmptyModel(e){return new kn({},[],[],void 0,e)}constructor(e,i,s,r,n){this.b=e,this.c=i,this.d=s,this.raw=r,this.f=n,this.a=new Map}get rawConfiguration(){if(!this.g)if(this.raw){const e=(Array.isArray(this.raw)?this.raw:[this.raw]).map(i=>{if(i instanceof kn)return i;const s=new rm("",this.f);return s.parseRaw(i),s.configurationModel});this.g=e.reduce((i,s)=>s===i?s:i.merge(s),e[0])}else this.g=this;return this.g}get contents(){return this.b}get overrides(){return this.d}get keys(){return this.c}isEmpty(){return this.c.length===0&&Object.keys(this.b).length===0&&this.d.length===0}getValue(e){return e?fl(this.contents,e):this.contents}inspect(e,i){const s=this;return{get value(){return Pc(s.rawConfiguration.getValue(e))},get override(){return i?Pc(s.rawConfiguration.getOverrideValue(e,i)):void 0},get merged(){return Pc(i?s.rawConfiguration.override(i).getValue(e):s.rawConfiguration.getValue(e))},get overrides(){const r=[];for(const{contents:n,identifiers:o,keys:a}of s.rawConfiguration.overrides){const c=new kn(n,a,[],void 0,s.f).getValue(e);c!==void 0&&r.push({identifiers:o,value:c})}return r.length?Pc(r):void 0}}}getOverrideValue(e,i){const s=this.j(i);return s?e?fl(s,e):s:void 0}getKeysForOverrideIdentifier(e){const i=[];for(const s of this.overrides)s.identifiers.includes(e)&&i.push(...s.keys);return Gi(i)}getAllOverrideIdentifiers(){const e=[];for(const i of this.overrides)e.push(...i.identifiers);return Gi(e)}override(e){let i=this.a.get(e);return i||(i=this.h(e),this.a.set(e,i)),i}merge(...e){const i=Ti(this.contents),s=Ti(this.overrides),r=[...this.keys],n=this.raw?Array.isArray(this.raw)?[...this.raw]:[this.raw]:[this];for(const o of e)if(n.push(...o.raw?Array.isArray(o.raw)?o.raw:[o.raw]:[o]),!o.isEmpty()){this.i(i,o.contents);for(const a of o.overrides){const[c]=s.filter(l=>Vo(l.identifiers,a.identifiers));c?(this.i(c.contents,a.contents),c.keys.push(...a.keys),c.keys=Gi(c.keys)):s.push(Ti(a))}for(const a of o.keys)r.indexOf(a)===-1&&r.push(a)}return new kn(i,r,s,!n.length||n.every(o=>o instanceof kn)?void 0:n,this.f)}h(e){const i=this.j(e);if(!i||typeof i!="object"||!Object.keys(i).length)return this;const s={};for(const r of Gi([...Object.keys(this.contents),...Object.keys(i)])){let n=this.contents[r];const o=i[r];o&&(typeof n=="object"&&typeof o=="object"?(n=Ti(n),this.i(n,o)):n=o),s[r]=n}return new kn(s,this.keys,this.overrides,void 0,this.f)}i(e,i){for(const s of Object.keys(i)){if(s in e&&St(e[s])&&St(i[s])){this.i(e[s],i[s]);continue}e[s]=Ti(i[s])}}j(e){let i=null,s=null;const r=n=>{n&&(s?this.i(s,n):s=Ti(n))};for(const n of this.overrides)n.identifiers.length===1&&n.identifiers[0]===e?i=n.contents:n.identifiers.includes(e)&&r(n.contents);return r(i),s}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,i){this.k(e,i,!0)}setValue(e,i){this.k(e,i,!1)}removeValue(e){const i=this.keys.indexOf(e);i!==-1&&(this.keys.splice(i,1),v8(this.contents,e),hs.test(e)&&this.overrides.splice(this.overrides.findIndex(s=>Vo(s.identifiers,ha(e))),1))}k(e,i,s){if(Xg(this.contents,e,i,r=>this.f.error(r)),s=s||this.keys.indexOf(e)===-1,s&&this.keys.push(e),hs.test(e)){const r=ha(e),n={identifiers:r,keys:Object.keys(this.contents[e]),contents:bf(this.contents[e],a=>this.f.error(a))},o=this.overrides.findIndex(a=>Vo(a.identifiers,r));o!==-1?this.overrides[o]=n:this.overrides.push(n)}}},rm=class{constructor(t,e){this.f=t,this.g=e,this.a=null,this.b=null,this.c=[],this.d=[]}get configurationModel(){return this.b||ot.createEmptyModel(this.g)}get restrictedConfigurations(){return this.c}get errors(){return this.d}parse(t,e){if(!Xt(t)){const i=this.h(t);this.parseRaw(i,e)}}reparse(t){this.a&&this.parseRaw(this.a,t)}parseRaw(t,e){this.a=t;const{contents:i,keys:s,overrides:r,restricted:n,hasExcludedProperties:o}=this.i(t,e);this.b=new ot(i,s,r,o?[t]:void 0,this.g),this.c=n||[]}h(t){let e={},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,h)=>{n.push({error:c,offset:l,length:h})}};if(t)try{dh(t,a),e=s[0]||{}}catch(c){this.g.error(`Error while parsing settings file ${this.f}: ${c}`),this.d=[c]}return e}i(t,e){const i=zt.as(Si.Configuration).getConfigurationProperties(),s=this.j(t,i,!0,e);t=s.raw;const r=bf(t,a=>this.g.error(`Conflict in settings file ${this.f}: ${a}`)),n=Object.keys(t),o=this.m(t,a=>this.g.error(`Conflict in settings file ${this.f}: ${a}`));return{contents:r,keys:n,overrides:o,restricted:s.restricted,hasExcludedProperties:s.hasExcludedProperties}}j(t,e,i,s){let r=!1;if(!s?.scopes&&!s?.skipRestricted&&!s?.exclude?.length)return{raw:t,restricted:[],hasExcludedProperties:r};const n={},o=[];for(const a in t)if(hs.test(a)&&i){const c=this.j(t[a],e,!1,s);n[a]=c.raw,r=r||c.hasExcludedProperties,o.push(...c.restricted)}else{const c=e[a];c?.restricted&&o.push(a),this.l(a,c,s)?n[a]=t[a]:r=!0}return{raw:n,restricted:o,hasExcludedProperties:r}}l(t,e,i){if(i.exclude?.includes(t))return!1;if(i.include?.includes(t))return!0;if(i.skipRestricted&&e?.restricted||i.skipUnregistered&&!e)return!1;const s=e?typeof e.scope<"u"?e.scope:4:void 0;return s===void 0||i.scopes===void 0?!0:i.scopes.includes(s)}m(t,e){const i=[];for(const s of Object.keys(t))if(hs.test(s)){const r={};for(const n in t[s])r[n]=t[s][n];i.push({identifiers:ha(s),keys:Object.keys(r),contents:bf(r,e)})}return i}},j2=class extends j{constructor(t,e,i,s,r){super(),this.c=t,this.f=e,this.g=s,this.h=r,this.b=this.B(new D),this.onDidChange=this.b.event,this.a=new rm(this.c.toString(),r),this.B(this.g.watch(i.dirname(this.c))),this.B(this.g.watch(this.c)),this.B(x.any(x.filter(this.g.onDidFilesChange,n=>n.contains(this.c)),x.filter(this.g.onDidRunOperation,n=>(n.isOperation(0)||n.isOperation(3)||n.isOperation(1)||n.isOperation(4))&&i.isEqual(n.resource,t)))(()=>this.b.fire()))}async loadConfiguration(){try{const t=await this.g.readFile(this.c);return this.a.parse(t.value.toString()||"{}",this.f),this.a.configurationModel}catch{return ot.createEmptyModel(this.h)}}reparse(t){return t&&(this.f=t),this.a.reparse(this.f),this.a.configurationModel}getRestrictedSettings(){return this.a.restrictedConfigurations}},z2=class{constructor(t,e,i,s,r,n,o,a,c,l,h,u,f){this.a=t,this.b=e,this.c=i,this.overrideIdentifiers=s,this.d=r,this.f=n,this.g=o,this.h=a,this.i=c,this.j=l,this.k=h,this.l=u,this.m=f}get value(){return Pc(this.c)}n(t){return t?.value!==void 0||t?.override!==void 0||t?.overrides!==void 0?t:void 0}get q(){return this.p||(this.p=this.d.inspect(this.a,this.b.overrideIdentifier)),this.p}get defaultValue(){return this.q.merged}get default(){return this.n(this.q)}get s(){return this.r===void 0&&(this.r=this.f?this.f.inspect(this.a):null),this.r}get policyValue(){return this.s?.merged}get policy(){return this.s?.value!==void 0?{value:this.s.value}:void 0}get u(){return this.t===void 0&&(this.t=this.g?this.g.inspect(this.a):null),this.t}get applicationValue(){return this.u?.merged}get application(){return this.n(this.u)}get w(){return this.v||(this.v=this.h.inspect(this.a,this.b.overrideIdentifier)),this.v}get userValue(){return this.w.merged}get user(){return this.n(this.w)}get y(){return this.x||(this.x=this.i.inspect(this.a,this.b.overrideIdentifier)),this.x}get userLocalValue(){return this.y.merged}get userLocal(){return this.n(this.y)}get A(){return this.z||(this.z=this.j.inspect(this.a,this.b.overrideIdentifier)),this.z}get userRemoteValue(){return this.A.merged}get userRemote(){return this.n(this.A)}get D(){return this.B===void 0&&(this.B=this.k?this.k.inspect(this.a,this.b.overrideIdentifier):null),this.B}get workspaceValue(){return this.D?.merged}get workspace(){return this.n(this.D)}get F(){return this.E===void 0&&(this.E=this.l?this.l.inspect(this.a,this.b.overrideIdentifier):null),this.E}get workspaceFolderValue(){return this.F?.merged}get workspaceFolder(){return this.n(this.F)}get H(){return this.G===void 0&&(this.G=this.m.inspect(this.a,this.b.overrideIdentifier)),this.G}get memoryValue(){return this.H.merged}get memory(){return this.n(this.H)}},Fu=class k6{constructor(e,i,s,r,n,o,a,c,l,h){this.j=e,this.l=i,this.m=s,this.n=r,this.p=n,this.q=o,this.r=a,this.s=c,this.t=l,this.u=h,this.h=null,this.i=new Rt,this.v=null}getValue(e,i,s){return this.w(e,i,s).getValue(e)}updateValue(e,i,s={}){let r;s.resource?(r=this.t.get(s.resource),r||(r=ot.createEmptyModel(this.u),this.t.set(s.resource,r))):r=this.s,i===void 0?r.removeValue(e):r.setValue(e,i),s.resource||(this.h=null)}inspect(e,i,s){const r=this.w(e,i,s),n=this.A(i.resource,s),o=i.resource?this.t.get(i.resource)||this.s:this.s,a=new Set;for(const c of r.overrides)for(const l of c.identifiers)r.getOverrideValue(e,l)!==void 0&&a.add(l);return new z2(e,i,r.getValue(e),a.size?[...a]:void 0,this.j,this.l.isEmpty()?void 0:this.l,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,s?this.q:void 0,n||void 0,o)}keys(e){const i=this.A(void 0,e);return{default:this.j.keys.slice(0),user:this.userConfiguration.keys.slice(0),workspace:this.q.keys.slice(0),workspaceFolder:i?i.keys.slice(0):[]}}updateDefaultConfiguration(e){this.j=e,this.h=null,this.i.clear()}updatePolicyConfiguration(e){this.l=e}updateApplicationConfiguration(e){this.m=e,this.h=null,this.i.clear()}updateLocalUserConfiguration(e){this.n=e,this.v=null,this.h=null,this.i.clear()}updateRemoteUserConfiguration(e){this.p=e,this.v=null,this.h=null,this.i.clear()}updateWorkspaceConfiguration(e){this.q=e,this.h=null,this.i.clear()}updateFolderConfiguration(e,i){this.r.set(e,i),this.i.delete(e)}deleteFolderConfiguration(e){this.folderConfigurations.delete(e),this.i.delete(e)}compareAndUpdateDefaultConfiguration(e,i){const s=[];if(!i){const{added:r,updated:n,removed:o}=Ar(this.j,e);i=[...r,...n,...o]}for(const r of i)for(const n of ha(r)){const o=this.j.getKeysForOverrideIdentifier(n),a=e.getKeysForOverrideIdentifier(n),c=[...a.filter(l=>o.indexOf(l)===-1),...o.filter(l=>a.indexOf(l)===-1),...o.filter(l=>!Ps(this.j.override(n).getValue(l),e.override(n).getValue(l)))];s.push([n,c])}return this.updateDefaultConfiguration(e),{keys:i,overrides:s}}compareAndUpdatePolicyConfiguration(e){const{added:i,updated:s,removed:r}=Ar(this.l,e),n=[...i,...s,...r];return n.length&&this.updatePolicyConfiguration(e),{keys:n,overrides:[]}}compareAndUpdateApplicationConfiguration(e){const{added:i,updated:s,removed:r,overrides:n}=Ar(this.applicationConfiguration,e),o=[...i,...s,...r];return o.length&&this.updateApplicationConfiguration(e),{keys:o,overrides:n}}compareAndUpdateLocalUserConfiguration(e){const{added:i,updated:s,removed:r,overrides:n}=Ar(this.localUserConfiguration,e),o=[...i,...s,...r];return o.length&&this.updateLocalUserConfiguration(e),{keys:o,overrides:n}}compareAndUpdateRemoteUserConfiguration(e){const{added:i,updated:s,removed:r,overrides:n}=Ar(this.remoteUserConfiguration,e),o=[...i,...s,...r];return o.length&&this.updateRemoteUserConfiguration(e),{keys:o,overrides:n}}compareAndUpdateWorkspaceConfiguration(e){const{added:i,updated:s,removed:r,overrides:n}=Ar(this.workspaceConfiguration,e),o=[...i,...s,...r];return o.length&&this.updateWorkspaceConfiguration(e),{keys:o,overrides:n}}compareAndUpdateFolderConfiguration(e,i){const s=this.folderConfigurations.get(e),{added:r,updated:n,removed:o,overrides:a}=Ar(s,i),c=[...r,...n,...o];return(c.length||!s)&&this.updateFolderConfiguration(e,i),{keys:c,overrides:a}}compareAndDeleteFolderConfiguration(e){const i=this.folderConfigurations.get(e);if(!i)throw new Error("Unknown folder");this.deleteFolderConfiguration(e);const{added:s,updated:r,removed:n,overrides:o}=Ar(i,void 0);return{keys:[...s,...r,...n],overrides:o}}get defaults(){return this.j}get applicationConfiguration(){return this.m}get userConfiguration(){if(!this.v)if(this.p.isEmpty())this.v=this.n;else{const e=this.n.merge(this.p);this.v=new ot(e.contents,e.keys,e.overrides,void 0,this.u)}return this.v}get localUserConfiguration(){return this.n}get remoteUserConfiguration(){return this.p}get workspaceConfiguration(){return this.q}get folderConfigurations(){return this.r}w(e,i,s){let r=this.x(i,s);if(i.overrideIdentifier&&(r=r.override(i.overrideIdentifier)),!this.l.isEmpty()&&this.l.getValue(e)!==void 0){r=r.merge();for(const n of this.l.keys)r.setValue(n,this.l.getValue(n))}return r}x({resource:e},i){let s=this.y();if(i&&e){const r=i.getFolder(e);r&&(s=this.z(r.uri)||s);const n=this.t.get(e);n&&(s=s.merge(n))}return s}y(){return this.h||(this.h=this.j.merge(this.applicationConfiguration,this.userConfiguration,this.q,this.s)),this.h}z(e){let i=this.i.get(e);if(!i){const s=this.y(),r=this.r.get(e);r?(i=s.merge(r),this.i.set(e,i)):i=s}return i}A(e,i){if(i&&e){const s=i.getFolder(e);if(s)return this.r.get(s.uri)}}toData(){return{defaults:{contents:this.j.contents,overrides:this.j.overrides,keys:this.j.keys},policy:{contents:this.l.contents,overrides:this.l.overrides,keys:this.l.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.q.contents,overrides:this.q.overrides,keys:this.q.keys},folders:[...this.r.keys()].reduce((e,i)=>{const{contents:s,overrides:r,keys:n}=this.r.get(i);return e.push([i,{contents:s,overrides:r,keys:n}]),e},[])}}allKeys(){const e=new Set;return this.j.keys.forEach(i=>e.add(i)),this.userConfiguration.keys.forEach(i=>e.add(i)),this.q.keys.forEach(i=>e.add(i)),this.r.forEach(i=>i.keys.forEach(s=>e.add(s))),[...e.values()]}B(){const e=new Set;return this.j.getAllOverrideIdentifiers().forEach(i=>e.add(i)),this.userConfiguration.getAllOverrideIdentifiers().forEach(i=>e.add(i)),this.q.getAllOverrideIdentifiers().forEach(i=>e.add(i)),this.r.forEach(i=>i.getAllOverrideIdentifiers().forEach(s=>e.add(s))),[...e.values()]}D(e){const i=new Set;return this.j.getKeysForOverrideIdentifier(e).forEach(s=>i.add(s)),this.userConfiguration.getKeysForOverrideIdentifier(e).forEach(s=>i.add(s)),this.q.getKeysForOverrideIdentifier(e).forEach(s=>i.add(s)),this.r.forEach(s=>s.getKeysForOverrideIdentifier(e).forEach(r=>i.add(r))),[...i.values()]}static parse(e,i){const s=this.E(e.defaults,i),r=this.E(e.policy,i),n=this.E(e.application,i),o=this.E(e.userLocal,i),a=this.E(e.userRemote,i),c=this.E(e.workspace,i),l=e.folders.reduce((h,u)=>(h.set($.revive(u[0]),this.E(u[1],i)),h),new Rt);return new k6(s,r,n,o,a,c,l,ot.createEmptyModel(i),new Rt,i)}static E(e,i){return new ot(e.contents,e.keys,e.overrides,e.raw,i)}},H2=class{constructor(t,e,i,s,r){this.change=t,this.f=e,this.g=i,this.h=s,this.i=r,this.a=`
`,this.b=this.a.charCodeAt(0),this.c=46,this.affectedKeys=new Set,this.j=void 0;for(const n of t.keys)this.affectedKeys.add(n);for(const[,n]of t.overrides)for(const o of n)this.affectedKeys.add(o);this.d=this.a;for(const n of this.affectedKeys)this.d+=n+this.a}get previousConfiguration(){return!this.j&&this.f&&(this.j=Fu.parse(this.f.data,this.i)),this.j}affectsConfiguration(t,e){const i=this.a+t,s=this.d.indexOf(i);if(s<0)return!1;const r=s+i.length;if(r>=this.d.length)return!1;const n=this.d.charCodeAt(r);if(n!==this.b&&n!==this.c)return!1;if(e){const o=this.previousConfiguration?this.previousConfiguration.getValue(t,e,this.f?.workspace):void 0,a=this.g.getValue(t,e,this.h);return!Ps(o,a)}return!0}}}}),q2,G2,Nu,HA=v({"out-build/vs/platform/configuration/common/configurations.js"(){"use strict";kt(),J(),T(),Bi(),$e(),V2(),lr(),Q(),$s(),ls(),De(),Js(),q2=class extends j{get configurationModel(){return this.b}constructor(t){super(),this.c=t,this.a=this.B(new D),this.onDidChangeConfiguration=this.a.event,this.b=ot.createEmptyModel(t)}async initialize(){return this.h(),this.B(zt.as(Si.Configuration).onDidUpdateConfiguration(({properties:t,defaultsOverrides:e})=>this.f(Array.from(t),e))),this.configurationModel}reload(){return this.h(),this.configurationModel}f(t,e){this.j(t,zt.as(Si.Configuration).getConfigurationProperties()),this.a.fire({defaults:this.configurationModel,properties:t})}g(){return{}}h(){this.b=ot.createEmptyModel(this.c);const t=zt.as(Si.Configuration).getConfigurationProperties();this.j(Object.keys(t),t)}j(t,e){const i=this.g();for(const s of t){const r=i[s],n=e[s];r!==void 0?this.b.setValue(s,r):n?this.b.setValue(s,Ti(n.default)):this.b.removeValue(s)}}},G2=class{constructor(){this.onDidChangeConfiguration=x.None,this.configurationModel=ot.createEmptyModel(new Rv)}async initialize(){return this.configurationModel}},Nu=class extends j{get configurationModel(){return this.c}constructor(e,i,s){super(),this.f=e,this.g=i,this.h=s,this.a=this.B(new D),this.onDidChangeConfiguration=this.a.event,this.c=ot.createEmptyModel(this.h),this.b=zt.as(Si.Configuration)}async initialize(){return this.h.trace("PolicyConfiguration#initialize"),this.n(await this.j(this.f.configurationModel.keys),!1),this.n(await this.j(Object.keys(this.b.getExcludedConfigurationProperties())),!1),this.B(this.g.onDidChange(e=>this.m(e))),this.B(this.f.onDidChangeConfiguration(async({properties:e})=>this.n(await this.j(e),!0))),this.c}async j(e){this.h.trace("PolicyConfiguration#updatePolicyDefinitions",e);const i={},s=[],r=this.b.getConfigurationProperties(),n=this.b.getExcludedConfigurationProperties();for(const o of e){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.h.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 W0(i)||await this.g.updatePolicyDefinitions(i),s}m(e){this.h.trace("PolicyConfiguration#onDidChangePolicies",e);const i=this.b.getPolicyConfigurations(),s=ft(e.map(r=>i.get(r)));this.n(s,!0)}n(e,i){this.h.trace("PolicyConfiguration#update",e);const s=this.b.getConfigurationProperties(),r=this.b.getExcludedConfigurationProperties(),n=[],o=this.c.isEmpty();for(const a of e){const c=s[a]??r[a],l=c?.policy?.name;if(l){let h=this.g.getPolicyValue(l);if(pt(h)&&c.type!=="string")try{h=this.r(h)}catch(u){this.h.error(`Error parsing policy value ${l}:`,Li(u));continue}(o?h!==void 0:!Ps(this.c.getValue(a),h))&&n.push([a,h])}else this.c.getValue(a)!==void 0&&n.push([a,void 0])}if(n.length){this.h.trace("PolicyConfiguration#changed",n);const a=this.c;this.c=ot.createEmptyModel(this.h);for(const c of a.keys)this.c.setValue(c,a.getValue(c));for(const[c,l]of n)l===void 0?this.c.removeValue(c):this.c.setValue(c,l);i&&this.a.fire(this.c)}}r(e){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(e&&(dh(e,{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,h,u)=>{o.push({error:l,offset:h,length:u})}}),i=r[0]||{}),o.length>0)throw new Error(o.map(l=>Li(l.error)).join(`
`));return i}},Nu=__decorate([__param(1,pn),__param(2,K)],Nu)}}),J2,K2,VA=v({"out-build/vs/platform/configuration/common/configurationService.js"(){"use strict";kt(),le(),Ke(),J(),Js(),lb(),T(),Qt(),Bi(),G(),et(),Ue(),V2(),lr(),HA(),$s(),J2=class extends j{constructor(t,e,i,s){super(),this.m=t,this.n=s,this.h=this.B(new D),this.onDidChangeConfiguration=this.h.event,this.b=this.B(new q2(s)),this.c=i instanceof Sp?new G2:this.B(new Nu(this.b,i,s)),this.f=this.B(new j2(this.m,{},Ze,e,s)),this.a=new Fu(this.b.configurationModel,this.c.configurationModel,ot.createEmptyModel(s),ot.createEmptyModel(s),ot.createEmptyModel(s),ot.createEmptyModel(s),new Rt,ot.createEmptyModel(s),new Rt,s),this.j=new K2(t,e,this),this.g=this.B(new Ki(()=>this.reloadConfiguration(),50)),this.B(this.b.onDidChangeConfiguration(({defaults:r,properties:n})=>this.s(r,n))),this.B(this.c.onDidChangeConfiguration(r=>this.t(r))),this.B(this.f.onDidChange(()=>this.g.schedule()))}async initialize(){const[t,e,i]=await Promise.all([this.b.initialize(),this.c.initialize(),this.f.loadConfiguration()]);this.a=new Fu(t,e,ot.createEmptyModel(this.n),i,ot.createEmptyModel(this.n),ot.createEmptyModel(this.n),new Rt,ot.createEmptyModel(this.n),new Rt,this.n)}getConfigurationData(){return this.a.toData()}getValue(t,e){const i=typeof t=="string"?t:void 0,s=yf(t)?t:yf(e)?e:{};return this.a.getValue(i,s,void 0)}async updateValue(t,e,i,s,r){const n=w8(i)?i:yf(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 ${t} to target ${o}.`);n?.overrideIdentifiers&&(n.overrideIdentifiers=Gi(n.overrideIdentifiers),n.overrideIdentifiers=n.overrideIdentifiers.length?n.overrideIdentifiers:void 0);const a=this.inspect(t,{resource:n?.resource,overrideIdentifier:n?.overrideIdentifiers?n.overrideIdentifiers[0]:void 0});if(a.policyValue!==void 0)throw new Error(`Unable to write ${t} because it is configured in system policy.`);if(Ps(e,a.defaultValue)&&(e=void 0),n?.overrideIdentifiers?.length&&n.overrideIdentifiers.length>1){const l=n.overrideIdentifiers.sort(),h=this.a.localUserConfiguration.overrides.find(u=>Vo([...u.identifiers].sort(),l));h&&(n.overrideIdentifiers=h.identifiers)}const c=n?.overrideIdentifiers?.length?[x8(n.overrideIdentifiers),t]:[t];await this.j.write(c,e),await this.reloadConfiguration()}inspect(t,e={}){return this.a.inspect(t,e,void 0)}keys(){return this.a.keys(void 0)}async reloadConfiguration(){const t=await this.f.loadConfiguration();this.r(t)}r(t){const e=this.a.toData(),i=this.a.compareAndUpdateLocalUserConfiguration(t);this.u(i,e,2)}s(t,e){const i=this.a.toData(),s=this.a.compareAndUpdateDefaultConfiguration(t,e);this.u(s,i,7)}t(t){const e=this.a.toData(),i=this.a.compareAndUpdatePolicyConfiguration(t);this.u(i,e,7)}u(t,e,i){const s=new H2(t,{data:e},this.a,void 0,this.n);s.source=i,this.h.fire(s)}},K2=class{constructor(t,e,i){this.b=t,this.c=e,this.d=i,this.a=new Fn}write(t,e){return this.a.queue(()=>this.e(t,e))}async e(t,e){let i;try{i=(await this.c.readFile(this.b)).value.toString()}catch(n){if(n.fileOperationResult===1)i="{}";else throw n}const s=[];if(tn(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.f(i,t,e);i=Rk(i,r),await this.c.writeFile(this.b,q.fromString(i))}f(t,e,i){const{tabSize:s,insertSpaces:r,eol:n}=this.h;if(!e.length){const o=JSON.stringify(i,null,r?" ".repeat(s):" ");return[{content:o,length:o.length,offset:0}]}return Ck(t,e,i,{tabSize:s,insertSpaces:r,eol:n})}get h(){if(!this.g){let t=bi===3||bi===2?`
`:`\r
`;const e=this.d.getValue("files.eol",{overrideIdentifier:"jsonc"});e&&typeof e=="string"&&e!=="auto"&&(t=e),this.g={eol:t,insertSpaces:!!this.d.getValue("editor.insertSpaces",{overrideIdentifier:"jsonc"}),tabSize:this.d.getValue("editor.tabSize",{overrideIdentifier:"jsonc"})}}return this.g}}}});import*as qA from"fs";import*as li from"os";async function nm(t,e){const i=`${t}::${e.join(":")}`,s=am.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(h,u,f,p){const m=u.substring(h.length+1);return Ot.withAsyncBody(async w=>{let y;p.readdirCount++;try{y=await te.readdir(u,{withFileTypes:!0})}catch{w();return}if(p.count>=a){p.count+=y.length,p.maxReached=!0,w();return}let b=y.length;if(b===0){w();return}let E=y;p.count+y.length>a&&(p.maxReached=!0,b=a-p.count,E=y.slice(0,b)),p.count+=y.length;for(const A of E)if(A.isDirectory()){if(f.includes(A.name)||await c(h,M(u,A.name),f,p),--b===0){w();return}}else{const R=A.name.lastIndexOf(".");if(R>=0){const W=A.name.substring(R+1);W&&n.set(W,(n.get(W)??0)+1)}for(const W of r)W.relativePathPattern?.test(m)!==!1&&W.filePattern.test(A.name)&&o.set(W.tag,(o.get(W.tag)??0)+1);if(--b===0){w();return}}})}const l=Ot.withAsyncBody(async h=>{const u={count:0,maxReached:!1,readdirCount:0},f=new Wr(!0);await c(t,t,e,u);const p=await JA(t);h({configFiles:om(o),fileTypes:om(n),fileCount:u.count,maxFilesReached:u.maxReached,launchConfigFiles:p,totalScanTime:f.elapsed(),totalReaddirCount:u.readdirCount})});return am.set(i,l),l}function om(t){return Array.from(t.entries(),([e,i])=>({name:e,count:i})).sort((e,i)=>i.count-e.count)}function GA(){const t={os:`${li.type()} ${li.arch()} ${li.release()}`,memory:`${(li.totalmem()/Jr.GB).toFixed(2)}GB (${(li.freemem()/Jr.GB).toFixed(2)}GB free)`,vmHint:`${Math.round(Wh.value()*100)}%`},e=li.cpus();return e&&e.length>0&&(t.cpus=`${e[0].model} (${e.length} x ${e[0].speed})`),t}async function JA(t){try{const e=new Map,i=M(t,".vscode","launch.json"),s=await qA.promises.readFile(i),r=[],n=tn(s.toString(),r);if(r.length)return console.log(`Unable to parse ${i}`),[];if(no(n)==="object"&&n.configurations)for(const o of n.configurations){const a=o.type;a&&(e.has(a)?e.set(a,e.get(a)+1):e.set(a,1))}return om(e)}catch{return[]}}var am,Wu,KA=v({"out-build/vs/platform/diagnostics/node/diagnosticsService.js"(){"use strict";le(),Js(),Oe(),ge(),G(),On(),re(),_h(),gt(),b4(),F1(),Ve(),Tt(),ai(),am=new Map,Wu=class{constructor(e,i){this.c=e,this.d=i}f(e){const i=[];return i.push(`OS Version: ${e.os}`),i.push(`CPUs: ${e.cpus}`),i.push(`Memory (System): ${e.memory}`),i.push(`VM: ${e.vmHint}`),i.join(`
`)}g(e){const i=[];i.push(`Version: ${this.d.nameShort} ${this.d.version} (${this.d.commit||"Commit unknown"}, ${this.d.date||"Date unknown"})`),i.push(`OS Version: ${li.type()} ${li.arch()} ${li.release()}`);const s=li.cpus();return s&&s.length>0&&i.push(`CPUs: ${s[0].model} (${s.length} x ${s[0].speed})`),i.push(`Memory (System): ${(li.totalmem()/Jr.GB).toFixed(2)}GB (${(li.freemem()/Jr.GB).toFixed(2)}GB free)`),B||i.push(`Load (avg): ${li.loadavg().map(r=>Math.round(r)).join(", ")}`),i.push(`VM: ${Math.round(Wh.value()*100)}%`),i.push(`Screen Reader: ${e.screenReader?"yes":"no"}`),i.push(`Process Argv: ${e.mainArguments.join(" ")}`),i.push(`GPU Status: ${this.j(e.gpuFeatureStatus)}`),i.join(`
`)}async getPerformanceInfo(e,i){return Promise.all([up(e.mainPID),this.k(e)]).then(async s=>{let[r,n]=s,o=this.m(e,r);return i.forEach(a=>{if(M1(a))o+=`
${a.errorMessage}`,n+=`
${a.errorMessage}`;else if(o+=`
Remote: ${a.hostName}`,a.processes&&(o+=`
${this.m(e,a.processes)}`),a.workspaceMetadata){n+=`
| Remote: ${a.hostName}`;for(const c of Object.keys(a.workspaceMetadata)){const l=a.workspaceMetadata[c];let h=`${l.fileCount} files`;l.maxFilesReached&&(h=`more than ${h}`),n+=`| Folder (${c}): ${h}`,n+=this.h(l)}}}),{processInfo:o,workspaceInfo:n}})}async getSystemInfo(e,i){const{memory:s,vmHint:r,os:n,cpus:o}=GA(),a={os:n,memory:s,cpus:o,vmHint:r,processArgs:`${e.mainArguments.join(" ")}`,gpuStatus:e.gpuFeatureStatus,screenReader:`${e.screenReader?"yes":"no"}`,remoteData:i};return B||(a.load=`${li.loadavg().map(c=>Math.round(c)).join(", ")}`),Se&&(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(e,i){const s=[];return up(e.mainPID).then(async r=>(s.push(""),s.push(this.g(e)),s.push(""),s.push(this.m(e,r)),e.windows.some(n=>n.folderURIs&&n.folderURIs.length>0&&!n.remoteAuthority)&&(s.push(""),s.push("Workspace Stats: "),s.push(await this.k(e))),i.forEach(n=>{if(M1(n))s.push(`
${n.errorMessage}`);else if(s.push(`
`),s.push(`Remote: ${n.hostName}`),s.push(this.f(n.machineInfo)),n.processes&&s.push(this.m(e,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.h(a))}}),s.push(""),s.push(""),s.join(`
`)))}h(e){const i=[];let r=0;const n=(l,h)=>{const u=` ${l}(${h})`;r+u.length>60?(i.push(o),o="| ",r=o.length):r+=u.length,o+=u};let o="| File types:";const a=10,c=e.fileTypes.length>a?a:e.fileTypes.length;for(let l=0;l<c;l++){const h=e.fileTypes[l];n(h.name,h.count)}if(i.push(o),e.configFiles.length>=0&&(o="| Conf files:",r=0,e.configFiles.forEach(l=>{n(l.name,l.count)}),i.push(o)),e.launchConfigFiles.length>0){let l="| Launch Configs:";e.launchConfigFiles.forEach(h=>{const u=h.count>1?` ${h.name}(${h.count})`:` ${h.name}`;l+=u}),i.push(l)}return i.join(`
`)}j(e){const i=Math.max(...Object.keys(e).map(s=>s.length));return Object.keys(e).map(s=>`${s}: ${" ".repeat(i-s.length)} ${e[s]}`).join(`
`)}k(e){const i=[],s=[];return e.windows.forEach(r=>{r.folderURIs.length===0||r.remoteAuthority||(i.push(`| Window (${r.title})`),r.folderURIs.forEach(n=>{const o=$.revive(n);if(o.scheme===O.file){const a=o.fsPath;s.push(nm(a,["node_modules",".git"]).then(c=>{let l=`${c.fileCount} files`;c.maxFilesReached&&(l=`more than ${l}`),i.push(`| Folder (${ze(a)}): ${l}`),i.push(this.h(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}`)}m(e,i){const s=new Map;e.windows.forEach(n=>s.set(n.pid,`window [${n.id}] (${n.title})`)),e.pidToNames.forEach(({pid:n,name:o})=>s.set(n,o));const r=[];return r.push("CPU % Mem MB PID Process"),i&&this.n(e.mainPID,s,r,i,0),r.join(`
`)}n(e,i,s,r,n){const o=n===0;let a;o?a=r.pid===e?this.d.applicationName:"remote-server":i.has(r.pid)?a=i.get(r.pid):a=`${" ".repeat(n)} ${r.name}`;const c=process.platform==="win32"?r.mem:li.totalmem()*(r.mem/100);s.push(`${r.load.toFixed(0).padStart(5," ")} ${(c/Jr.MB).toFixed(0).padStart(6," ")} ${r.pid.toFixed(0).padStart(6," ")} ${a}`),Array.isArray(r.children)&&r.children.forEach(l=>this.n(e,i,s,l,n+1))}async getWorkspaceFileExtensions(e){const i=new Set;for(const{uri:s}of e.folders){const r=$.revive(s);if(r.scheme!==O.file)continue;const n=r.fsPath;try{(await nm(n,["node_modules",".git"])).fileTypes.forEach(a=>i.add(a.name))}catch{}}return{extensions:[...i]}}async reportWorkspaceStats(e){for(const{uri:i}of e.folders){const s=$.revive(i);if(s.scheme!==O.file)continue;const r=s.fsPath;try{const n=await nm(r,["node_modules",".git"]);this.c.publicLog2("workspace.stats",{"workspace.id":e.telemetryId,rendererSessionId:e.rendererSessionId}),n.fileTypes.forEach(o=>{this.c.publicLog2("workspace.stats.file",{rendererSessionId:e.rendererSessionId,type:o.name,count:o.count})}),n.launchConfigFiles.forEach(o=>{this.c.publicLog2("workspace.stats.launchConfigFile",{rendererSessionId:e.rendererSessionId,type:o.name,count:o.count})}),n.configFiles.forEach(o=>{this.c.publicLog2("workspace.stats.configFiles",{rendererSessionId:e.rendererSessionId,type:o.name,count:o.count})}),this.c.publicLog2("workspace.stats.metadata",{duration:n.totalScanTime,reachedLimit:n.maxFilesReached,fileCount:n.fileCount,readdirCount:n.totalReaddirCount})}catch{}}}},Wu=__decorate([__param(0,oi),__param(1,nt)],Wu)}});import{writeFileSync as ZA}from"fs";import{tmpdir as YA}from"os";function QA(t){const e=ol(YA());try{return ZA(e,""),t&&console.log(`Marker file for --wait created: ${e}`),e}catch(i){t&&console.error(`Failed to create marker file for --wait: ${i}`);return}}var XA=v({"out-build/vs/platform/environment/node/wait.js"(){"use strict";ki()}}),cm,_u,eD=v({"out-build/vs/platform/files/common/fileService.js"(){"use strict";kt(),le(),Ke(),Et(),J(),qs(),tl(),T(),Zn(),Oe(),Ms(),et(),ya(),we(),Ve(),s4(),Q(),De(),_u=class extends j{static{cm=this}constructor(e){super(),this.b=e,this.a=256*1024,this.c=this.B(new D),this.onDidChangeFileSystemProviderRegistrations=this.c.event,this.f=this.B(new D),this.onWillActivateFileSystemProvider=this.f.event,this.g=this.B(new D),this.onDidChangeFileSystemProviderCapabilities=this.g.event,this.h=new Map,this.r=this.B(new D),this.onDidRunOperation=this.r.event,this.Y=this.B(new D),this.Z=this.B(new D),this.onDidFilesChange=this.Z.event,this.$=this.B(new D),this.onDidWatchError=this.$.event,this.ab=new Map,this.db=this.B(new ff)}registerProvider(e,i){if(this.h.has(e))throw new Error(`A filesystem provider for the scheme '${e}' is already registered.`);Ne(`code/registerFilesystem/${e}`);const s=new Ae;return this.h.set(e,i),this.c.fire({added:!0,scheme:e,provider:i}),s.add(i.onDidChangeFile(r=>{const n=new Hv(r,!this.U(i));this.Y.fire(n),n.hasCorrelation()||this.Z.fire(n)})),typeof i.onDidWatchError=="function"&&s.add(i.onDidWatchError(r=>this.$.fire(new Error(r)))),s.add(i.onDidChangeCapabilities(()=>this.g.fire({provider:i,scheme:e}))),be(()=>{this.c.fire({added:!1,scheme:e,provider:i}),this.h.delete(e),mt(s)})}getProvider(e){return this.h.get(e)}async activateProvider(e){const i=[];this.f.fire({scheme:e,join(s){i.push(s)}}),!this.h.has(e)&&await Ot.settled(i)}async canHandleResource(e){return await this.activateProvider(e.scheme),this.hasProvider(e)}hasProvider(e){return this.h.has(e.scheme)}hasCapability(e,i){const s=this.h.get(e.scheme);return!!(s&&s.capabilities&i)}listCapabilities(){return Fr.map(this.h,([e,i])=>({scheme:e,capabilities:i.capabilities}))}async j(e){if(!Og(e))throw new _t(g(2026,null,this.tb(e)),8);await this.activateProvider(e.scheme);const i=this.h.get(e.scheme);if(!i){const s=new Ws;throw s.message=g(2027,null,e.toString()),s}return i}async m(e){const i=await this.j(e);if(wr(i)||Ni(i)||Xf(i))return i;throw new Error(`Filesystem provider for scheme '${e.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`)}async n(e){const i=await this.j(e);if(wr(i)||Ni(i))return i;throw new Error(`Filesystem provider for scheme '${e.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`)}async resolve(e,i){try{return await this.s(e,i)}catch(s){throw _l(s)===ae.FileNotFound?new _t(g(2028,null,this.tb(e)),1):qr(s)}}async s(e,i){const s=await this.j(e),r=this.U(s),n=i?.resolveTo,o=i?.resolveSingleChildDescendants,a=i?.resolveMetadata,c=await s.stat(e);let l;return this.t(s,e,c,void 0,!!a,(h,u)=>(l||(l=gr.forUris(()=>!r),l.set(e,!0),n&&l.fill(!0,n)),l.get(h.resource)||l.findSuperstr(h.resource.with({query:null,fragment:null}))?!0:h.isDirectory&&o?u===1:!1))}async t(e,i,s,r,n,o){const{providerExtUri:a}=this.S(e),c={resource:i,name:a.basename(i),isFile:(s.type&$t.File)!==0,isDirectory:(s.type&$t.Directory)!==0,isSymbolicLink:(s.type&$t.SymbolicLink)!==0,mtime:s.mtime,ctime:s.ctime,size:s.size,readonly:!!((s.permissions??0)&Qn.Readonly)||!!(e.capabilities&2048),locked:!!((s.permissions??0)&Qn.Locked),etag:Tv({mtime:s.mtime,size:s.size}),children:void 0};if(c.isDirectory&&o(c,r)){try{const l=await e.readdir(i),h=await Ot.settled(l.map(async([u,f])=>{try{const p=a.joinPath(i,u),m=n?await e.stat(p):{type:f};return await this.t(e,p,m,l.length,n,o)}catch(p){return this.b.trace(p),null}}));c.children=ft(h)}catch(l){this.b.trace(l),c.children=[]}return c}return c}async resolveAll(e){return Ot.settled(e.map(async i=>{try{return{stat:await this.s(i.resource,i.options),success:!0}}catch(s){return this.b.trace(s),{stat:void 0,success:!1}}}))}async stat(e){const i=await this.j(e),s=await i.stat(e);return this.t(i,e,s,void 0,!0,()=>!1)}async exists(e){const i=await this.j(e);try{return!!await i.stat(e)}catch{return!1}}async canCreateFile(e,i){try{await this.u(e,i)}catch(s){return s}return!0}async u(e,i){if(!i?.overwrite&&await this.exists(e))throw new _t(g(2029,null,this.tb(e)),3,i)}async createFile(e,i=q.fromString(""),s){await this.u(e,s);const r=await this.writeFile(e,i);return this.r.fire(new Gr(e,0,r)),r}async writeFile(e,i,s){const r=this.rb(await this.n(e),e),{providerExtUri:n}=this.S(r);let o=s;if(_v(r)&&!o?.atomic){const a=r.enforceAtomicWriteFile?.(e);a&&(o={...s,atomic:a})}try{let{stat:a,buffer:c}=await this.z(r,e,i,o);a||await this.W(r,n.dirname(e)),c||(c=await this.w(r,i)),!wr(r)||Ni(r)&&c instanceof q||Ni(r)&&_v(r)&&o?.atomic?await this.ib(r,e,o,c):await this.eb(r,e,o,c instanceof q?H8(c):c),this.r.fire(new Gr(e,4))}catch(a){throw new _t(g(2030,null,this.tb(e),qr(a).toString()),vs(a),o)}return this.resolve(e,{resolveMetadata:!0})}async w(e,i){let s;if(Ni(e)&&!(i instanceof q))if(ml(i)){const r=await M8(i,3);r.ended?s=q.concat(r.buffer):s=r}else s=L8(i,r=>q.concat(r),3);else s=i;return s}async z(e,i,s,r){const n=!!r?.unlock;if(n&&!(e.capabilities&8192))throw new Error(g(2031,null,this.tb(i)));if(!!r?.atomic){if(!(e.capabilities&32768))throw new Error(g(2032,null,this.tb(i)));if(!(e.capabilities&2))throw new Error(g(2033,null,this.tb(i)));if(n)throw new Error(g(2034,null,this.tb(i)))}let a;try{a=await e.stat(i)}catch{return Object.create(null)}if((a.type&$t.Directory)!==0)throw new _t(g(2035,null,this.tb(i)),0,r);this.sb(i,a);let c;if(typeof r?.mtime=="number"&&typeof r.etag=="string"&&r.etag!==zl&&typeof a.mtime=="number"&&typeof a.size=="number"&&r.mtime<a.mtime&&r.etag!==Tv({mtime:r.mtime,size:a.size})){if(c=await this.w(e,s),c instanceof q&&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 _t(g(2036,null),3,r)}return{stat:a,buffer:c}}async readFile(e,i,s){const r=await this.m(e);return i?.atomic?this.C(r,e,i,s):this.D(r,e,i,s)}async C(e,i,s,r){return new Promise((n,o)=>{this.db.queueFor(i,async()=>{try{const a=await this.D(e,i,s,r);n(a)}catch(a){o(a)}},this.S(e).providerExtUri)})}async D(e,i,s,r){const n=await this.F(e,i,{...s,preferUnbuffered:!0},r);return{...n,value:await ba(n.value)}}async readFileStream(e,i,s){const r=await this.m(e);return this.F(r,e,i,s)}async F(e,i,s,r){const n=new Ji(r);let o=s;e1(e)&&e.enforceAtomicReadFile?.(i)&&(o={...s,atomic:!0});const a=this.L(i,o).then(l=>l,l=>{throw n.dispose(!0),l});let c;try{return typeof o?.etag=="string"&&o.etag!==zl&&await a,o?.atomic&&e1(e)||!(wr(e)||Xf(e))||Ni(e)&&o?.preferUnbuffered?c=this.J(e,i,o):Xf(e)?c=this.H(e,i,n.token,o):c=this.I(e,i,n.token,o),c.on("end",()=>n.dispose()),c.on("error",()=>n.dispose()),{...await a,value:c}}catch(l){throw c&&await mw(c),this.G(l,i,o)}}G(e,i,s){const r=g(2037,null,this.tb(i),qr(e).toString());return e instanceof Ul?new Ul(r,e.stat,s):e instanceof Bl?new Bl(r,e.fileOperationResult,e.size,e.options):new _t(r,vs(e),s)}H(e,i,s,r=Object.create(null)){const n=e.readFileStream(i,r,s);return gw(n,{data:o=>o instanceof q?o:q.wrap(o),error:o=>this.G(o,i,r)},o=>q.concat(o))}I(e,i,s,r=Object.create(null)){const n=G8();return i4(e,i,n,o=>o,{...r,bufferSize:this.a,errorTransformer:o=>this.G(o,i,r)},s),n}J(e,i,s){const r=gl(n=>q.concat(n));return(async()=>{try{let n;s?.atomic&&e1(e)?n=await e.readFile(i,{atomic:!0}):n=await e.readFile(i),typeof s?.position=="number"&&(n=n.slice(s.position)),typeof s?.length=="number"&&(n=n.slice(0,s.length)),this.M(i,n.byteLength,s),r.end(q.wrap(n))}catch(n){r.error(n),r.end()}})(),r}async L(e,i){const s=await this.resolve(e,{resolveMetadata:!0});if(s.isDirectory)throw new _t(g(2038,null,this.tb(e)),0,i);if(typeof i?.etag=="string"&&i.etag!==zl&&i.etag===s.etag)throw new Ul(g(2039,null),s,i);return this.M(e,s.size,i),s}M(e,i,s){if(typeof s?.limits?.size=="number"&&i>s.limits.size)throw new Bl(g(2040,null,this.tb(e)),7,i,s)}async canMove(e,i,s){return this.N(e,i,"move",s)}async canCopy(e,i,s){return this.N(e,i,"copy",s)}async N(e,i,s,r){if(e.toString()!==i.toString())try{const n=s==="move"?this.rb(await this.n(e),e):await this.m(e),o=this.rb(await this.n(i),i);await this.R(n,e,o,i,s,r)}catch(n){return n}return!0}async move(e,i,s){const r=this.rb(await this.n(e),e),n=this.rb(await this.n(i),i),o=await this.O(r,e,n,i,"move",!!s),a=await this.resolve(i,{resolveMetadata:!0});return this.r.fire(new Gr(e,o==="move"?2:3,a)),a}async copy(e,i,s){const r=await this.m(e),n=this.rb(await this.n(i),i),o=await this.O(r,e,n,i,"copy",!!s),a=await this.resolve(i,{resolveMetadata:!0});return this.r.fire(new Gr(e,o==="copy"?3:2,a)),a}async O(e,i,s,r,n,o){if(i.toString()===r.toString())return n;const{exists:a,isSameResourceWithDifferentPathCase:c}=await this.R(e,i,s,r,n,o);if(a&&!c&&o&&await this.del(r,{recursive:!0}),await this.W(s,this.S(s).providerExtUri.dirname(r)),n==="copy"){if(e===s&&Qf(e))await e.copy(i,r,{overwrite:o});else{const l=await this.resolve(i);l.isDirectory?await this.Q(e,l,s,r):await this.P(e,i,s,r)}return n}else return e===s?(await e.rename(i,r,{overwrite:o}),n):(await this.O(e,i,s,r,"copy",o),await this.del(i,{recursive:!0}),"copy")}async P(e,i,s,r){if(wr(e)&&wr(s))return this.kb(e,i,s,r);if(wr(e)&&Ni(s))return this.qb(e,i,s,r);if(Ni(e)&&wr(s))return this.ob(e,i,s,r);if(Ni(e)&&Ni(s))return this.mb(e,i,s,r)}async Q(e,i,s,r){await s.mkdir(r),Array.isArray(i.children)&&await Ot.settled(i.children.map(async n=>{const o=this.S(s).providerExtUri.joinPath(r,n.name);return n.isDirectory?this.Q(e,await this.resolve(n.resource),s,o):this.P(e,n.resource,s,o)}))}async R(e,i,s,r,n,o){let a=!1;if(e===s){const{providerExtUri:l,isPathCaseSensitive:h}=this.S(e);if(h||(a=l.isEqual(i,r)),a&&n==="copy")throw new Error(g(2041,null,this.tb(i),this.tb(r)));if(!a&&l.isEqualOrParent(r,i))throw new Error(g(2042,null,this.tb(i),this.tb(r)))}const c=await this.exists(r);if(c&&!a){if(!o)throw new _t(g(2043,null,this.tb(i),this.tb(r)),4);if(e===s){const{providerExtUri:l}=this.S(e);if(l.isEqualOrParent(i,r))throw new Error(g(2044,null,this.tb(i),this.tb(r)))}}return{exists:c,isSameResourceWithDifferentPathCase:a}}S(e){const i=this.U(e);return{providerExtUri:i?Ee:nf,isPathCaseSensitive:i}}U(e){return!!(e.capabilities&1024)}async createFolder(e){const i=this.rb(await this.j(e),e);await this.W(i,e);const s=await this.resolve(e,{resolveMetadata:!0});return this.r.fire(new Gr(e,0,s)),s}async W(e,i){const s=[],{providerExtUri:r}=this.S(e);for(;!r.isEqual(i,r.dirname(i));)try{if(((await e.stat(i)).type&$t.Directory)===0)throw new Error(g(2045,null,this.tb(i)));break}catch(n){if(_l(n)!==ae.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 e.mkdir(i)}catch(o){if(_l(o)!==ae.FileExists)throw o}}}async canDelete(e,i){try{await this.X(e,i)}catch(s){return s}return!0}async X(e,i){const s=this.rb(await this.j(e),e),r=!!i?.useTrash;if(r&&!(s.capabilities&4096))throw new Error(g(2046,null,this.tb(e)));const n=i?.atomic;if(n&&!(s.capabilities&65536))throw new Error(g(2047,null,this.tb(e)));if(r&&n)throw new Error(g(2048,null,this.tb(e)));let o;try{o=await s.stat(e)}catch{}if(o)this.sb(e,o);else throw new _t(g(2049,null,this.tb(e)),1);if(!!!i?.recursive){const c=await this.resolve(e);if(c.isDirectory&&Array.isArray(c.children)&&c.children.length>0)throw new Error(g(2050,null,this.tb(e)))}return s}async del(e,i){const s=await this.X(e,i);let r=i;if(_3(s)&&!r?.atomic){const c=s.enforceAtomicDelete?.(e);c&&(r={...i,atomic:c})}const n=!!r?.useTrash,o=!!r?.recursive,a=r?.atomic??!1;await s.delete(e,{recursive:o,useTrash:n,atomic:a}),this.r.fire(new Gr(e,1))}async cloneFile(e,i){const s=await this.j(e),r=this.rb(await this.n(i),i);if(!(s===r&&this.S(s).providerExtUri.isEqual(e,i)))return s===r&&Wv(s)?s.cloneFile(e,i):(await this.W(r,this.S(r).providerExtUri.dirname(i)),s===r&&Qf(s)?this.db.queueFor(e,()=>s.copy(e,i,{overwrite:!0}),this.S(s).providerExtUri):this.db.queueFor(e,()=>this.P(s,e,r,i),this.S(s).providerExtUri))}static{this.bb=0}createWatcher(e,i){return this.watch(e,{...i,correlationId:cm.bb++})}watch(e,i={recursive:!1,excludes:[]}){const s=new Ae;let r=!1,n=()=>{r=!0};s.add(be(()=>n())),(async()=>{try{const a=await this.cb(e,i);r?mt(a):n=()=>mt(a)}catch(a){this.b.error(a)}})();const o=i.correlationId;if(typeof o=="number"){const a=s.add(new D);return s.add(this.Y.event(l=>{l.correlates(o)&&a.fire(l)})),{onDidChange:a.event,dispose:()=>s.dispose()}}return s}async cb(e,i){const s=await this.j(e),r=fs([this.S(s).providerExtUri.getComparisonKey(e),i]);let n=this.ab.get(r);return n||(n={count:0,disposable:s.watch(e,i)},this.ab.set(r,n)),n.count+=1,be(()=>{n&&(n.count--,n.count===0&&(mt(n.disposable),this.ab.delete(r)))})}dispose(){super.dispose();for(const[,e]of this.ab)mt(e.disposable);this.ab.clear()}async eb(e,i,s,r){return this.db.queueFor(i,async()=>{const n=await e.open(i,{create:!0,unlock:s?.unlock??!1});try{ml(r)||$f(r)?await this.fb(e,n,r):await this.gb(e,n,r)}catch(o){throw qr(o)}finally{await e.close(n)}},this.S(e).providerExtUri)}async fb(e,i,s){let r=0,n;if($f(s)){if(s.buffer.length>0){const o=q.concat(s.buffer);await this.hb(e,i,o,o.byteLength,r,0),r+=o.byteLength}if(s.ended)return;n=s.stream}else n=s;return new Promise((o,a)=>{wl(n,{onData:async c=>{n.pause();try{await this.hb(e,i,c,c.byteLength,r,0)}catch(l){return a(l)}r+=c.byteLength,setTimeout(()=>n.resume())},onError:c=>a(c),onEnd:()=>o()})})}async gb(e,i,s){let r=0,n;for(;(n=s.read())!==null;)await this.hb(e,i,n,n.byteLength,r,0),r+=n.byteLength}async hb(e,i,s,r,n,o){let a=0;for(;a<r;){const c=await e.write(i,n+a,s.buffer,o+a,r-a);a+=c}}async ib(e,i,s,r){return this.db.queueFor(i,()=>this.jb(e,i,s,r),this.S(e).providerExtUri)}async jb(e,i,s,r){let n;r instanceof q?n=r:ml(r)?n=await ba(r):$f(r)?n=await V8(r):n=z8(r),await e.writeFile(i,n.buffer,{create:!0,overwrite:!0,unlock:s?.unlock??!1,atomic:s?.atomic??!1})}async kb(e,i,s,r){return this.db.queueFor(r,()=>this.lb(e,i,s,r),this.S(s).providerExtUri)}async lb(e,i,s,r){let n,o;try{n=await e.open(i,{create:!1}),o=await s.open(r,{create:!0,unlock:!1});const a=q.alloc(this.a);let c=0,l=0,h=0;do h=await e.read(n,c,a.buffer,l,a.byteLength-l),await this.hb(s,o,a,h,c,l),c+=h,l+=h,l===a.byteLength&&(l=0);while(h>0)}catch(a){throw qr(a)}finally{await Ot.settled([typeof n=="number"?e.close(n):Promise.resolve(),typeof o=="number"?s.close(o):Promise.resolve()])}}async mb(e,i,s,r){return this.db.queueFor(r,()=>this.nb(e,i,s,r),this.S(s).providerExtUri)}async nb(e,i,s,r){return s.writeFile(r,await e.readFile(i),{create:!0,overwrite:!0,unlock:!1,atomic:!1})}async ob(e,i,s,r){return this.db.queueFor(r,()=>this.pb(e,i,s,r),this.S(s).providerExtUri)}async pb(e,i,s,r){const n=await s.open(r,{create:!0,unlock:!1});try{const o=await e.readFile(i);await this.hb(s,n,q.wrap(o),o.byteLength,0,0)}catch(o){throw qr(o)}finally{await s.close(n)}}async qb(e,i,s,r){const n=await ba(this.I(e,i,Je.None));await this.ib(s,r,void 0,n)}rb(e,i){if(e.capabilities&2048)throw new _t(g(2051,null,this.tb(i)),6);return e}sb(e,i){if((i.permissions??0)&Qn.Readonly)throw new _t(g(2052,null,this.tb(e)),6)}tb(e){return e.scheme===O.file?e.fsPath:e.toString(!0)}},_u=cm=__decorate([__param(0,K)],_u)}}),Z2,lm,tD=v({"out-build/vs/platform/instantiation/common/graph.js"(){"use strict";Z2=class{constructor(t,e){this.key=t,this.data=e,this.incoming=new Map,this.outgoing=new Map}},lm=class{constructor(t){this.b=t,this.a=new Map}roots(){const t=[];for(const e of this.a.values())e.outgoing.size===0&&t.push(e);return t}insertEdge(t,e){const i=this.lookupOrInsertNode(t),s=this.lookupOrInsertNode(e);i.outgoing.set(s.key,s),s.incoming.set(i.key,i)}removeNode(t){const e=this.b(t);this.a.delete(e);for(const i of this.a.values())i.outgoing.delete(e),i.incoming.delete(e)}lookupOrInsertNode(t){const e=this.b(t);let i=this.a.get(e);return i||(i=new Z2(e,t),this.a.set(e,i)),i}lookup(t){return this.a.get(this.b(t))}isEmpty(){return this.a.size===0}toString(){const t=[];for(const[e,i]of this.a)t.push(`${e}
(-> incoming)[${[...i.incoming.keys()].join(", ")}]
(outgoing ->)[${[...i.outgoing.keys()].join(",")}]
`);return t.join(`
`)}findCycleSlow(){for(const[t,e]of this.a){const i=new Set([t]),s=this.c(e,i);if(s)return s}}c(t,e){for(const[i,s]of t.outgoing){if(e.has(i))return[...e,i].join(" -> ");e.add(i);const r=this.c(s,e);if(r)return r;e.delete(i)}}}}}),Y2,hm,Q2,X2,Tu,iD=v({"out-build/vs/platform/instantiation/common/instantiationService.js"(){"use strict";le(),De(),T(),Rh(),tD(),Z(),hp(),U0(),Y2=!1,hm=class extends Error{constructor(t){super("cyclic dependency between services"),this.message=t.findCycleSlow()??`UNABLE to detect cycle, dumping graph:
${t.toString()}`}},Q2=class Im{constructor(e=new Oh,i=!1,s,r=Y2){this.i=e,this.j=i,this.k=s,this.l=r,this.f=!1,this.g=new Set,this.h=new Set,this.t=new Set,this.i.set(cs,this),this._globalGraph=r?s?._globalGraph??new lm(n=>n):void 0}dispose(){if(!this.f){this.f=!0,mt(this.h),this.h.clear();for(const e of this.g)T0(e)&&e.dispose();this.g.clear()}}m(){if(this.f)throw new Error("InstantiationService has been disposed")}createChild(e,i){this.m();const s=this,r=new class extends Im{dispose(){s.h.delete(r),super.dispose()}}(e,this.j,this,this.l);return this.h.add(r),i?.add(r),r}invokeFunction(e,...i){this.m();const s=Tu.traceInvocation(this.l,e);let r=!1;try{return e({get:o=>{if(r)throw S0("service accessor is only valid during the invocation of its target method");const a=this.s(o,s);if(!a)throw new Error(`[invokeFunction] unknown service '${o}'`);return a}},...i)}finally{r=!0,s.stop()}}createInstance(e,...i){this.m();let s,r;return e instanceof de?(s=Tu.traceCreation(this.l,e.ctor),r=this.o(e.ctor,e.staticArguments.concat(i),s)):(s=Tu.traceCreation(this.l,e),r=this.o(e,i,s)),s.stop(),r}o(e,i=[],s){const r=Zi.getServiceDependencies(e).sort((a,c)=>a.index-c.index),n=[];for(const a of r){const c=this.s(a.id,s);c||this.y(`[createInstance] ${e.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 ${e.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(e,i.concat(n))}q(e,i){if(this.i.get(e)instanceof de)this.i.set(e,i);else if(this.k)this.k.q(e,i);else throw new Error("illegalState - setting UNKNOWN service instance")}r(e){const i=this.i.get(e);return!i&&this.k?this.k.r(e):i}s(e,i){this._globalGraph&&this.c&&this._globalGraph.insertEdge(this.c,String(e));const s=this.r(e);return s instanceof de?this.u(e,s,i.branch(e,!0)):(i.branch(e,!1),s)}u(e,i,s){if(this.t.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this.t.add(e);try{return this.v(e,i,s)}finally{this.t.delete(e)}}v(e,i,s){const r=new lm(c=>c.id.toString());let n=0;const o=[{id:e,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++>1e3)throw new hm(r);for(const l of Zi.getServiceDependencies(c.desc.ctor)){const h=this.r(l.id);if(h||this.y(`[createInstance] ${e} depends on ${l.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(c.id),String(l.id)),h instanceof de){const u={id:l.id,desc:h,_trace:c._trace.branch(l.id,!0)};r.insertEdge(c,u),o.push(u)}}}}for(;;){const c=r.roots();if(c.length===0){if(!r.isEmpty())throw new hm(r);break}for(const{data:l}of c){if(this.r(l.id)instanceof de){const u=this.w(l.id,l.desc.ctor,l.desc.staticArguments,l.desc.supportsDelayedInstantiation,l._trace);this.q(l.id,u)}r.removeNode(l)}}return this.r(e)}w(e,i,s=[],r,n){if(this.i.get(e)instanceof de)return this.x(e,i,s,r,n,this.g);if(this.k)return this.k.w(e,i,s,r,n);throw new Error(`illegalState - creating UNKNOWN service instance ${i.name}`)}x(e,i,s=[],r,n,o){if(r){const a=new Im(void 0,this.j,this,this.l);a.c=String(e);const c=new Map,l=new Ug(()=>{const h=a.o(i,s,n);for(const[u,f]of c){const p=h[u];if(typeof p=="function")for(const m of f)m.disposable=p.apply(h,m.listener)}return c.clear(),o.add(h),h});return new Proxy(Object.create(null),{get(h,u){if(!l.isInitialized&&typeof u=="string"&&(u.startsWith("onDid")||u.startsWith("onWill"))){let m=c.get(u);return m||(m=new Hd,c.set(u,m)),(y,b,E)=>{if(l.isInitialized)return l.value[u](y,b,E);{const A={listener:[y,b,E],disposable:void 0},R=m.push(A);return be(()=>{R(),A.disposable?.dispose()})}}}if(u in h)return h[u];const f=l.value;let p=f[u];return typeof p!="function"||(p=p.bind(f),h[u]=p),p},set(h,u,f){return l.value[u]=f,!0},getPrototypeOf(h){return i.prototype}})}else{const a=this.o(i,s,n);return o.add(a),a}}y(e,i){if(i&&console.warn(e),this.j)throw new Error(e)}},function(t){t[t.None=0]="None",t[t.Creation=1]="Creation",t[t.Invocation=2]="Invocation",t[t.Branch=3]="Branch"}(X2||(X2={})),Tu=class Rs{static{this.all=new Set}static{this.c=new class extends Rs{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(e,i){return e?new Rs(2,i.name||new Error().stack.split(`
`).slice(3,4).join(`
`)):Rs.c}static traceCreation(e,i){return e?new Rs(1,i.name):Rs.c}static{this.f=0}constructor(e,i){this.type=e,this.name=i,this.g=Date.now(),this.h=[]}branch(e,i){const s=new Rs(3,e.toString());return this.h.push([e,i,s]),s}stop(){const e=Date.now()-this.g;Rs.f+=e;let i=!1;function s(n,o){const a=[],c=new Array(n+1).join(" ");for(const[l,h,u]of o.h)if(h&&u){i=!0,a.push(`${c}CREATES -> ${l}`);const f=s(n+1,u);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 ${e.toFixed(2)}ms (grand total ${Rs.f.toFixed(2)}ms)`];(e>2||i)&&Rs.all.add(r.join(`
`))}}}}),e9,sD=v({"out-build/vs/platform/log/common/bufferLog.js"(){"use strict";T(),Q(),e9=class extends Zf{constructor(t=Ia){super(),this.n=[],this.r=void 0,this.s=this.B(new or),this.setLevel(t)}set logger(t){this.r=t,this.setLevel(t.getLevel()),this.s.value=t.onDidChangeLogLevel(this.setLevel,this);for(const{level:e,message:i}of this.n)Kf(t,e,i);this.n=[]}m(t,e){this.r?Kf(this.r,t,e):this.getLevel()<=t&&this.n.push({level:t,message:e})}dispose(){this.r?.dispose(),super.dispose()}flush(){this.r?.flush()}}}});import{session as rD}from"electron";var Bu,nD=v({"out-build/vs/platform/protocol/electron-main/protocolMainService.js"(){"use strict";T(),Oe(),ge(),G(),Zn(),re(),Ei(),ds(),xi(),Q(),Es(),Bu=class extends j{constructor(e,i,s){super(),this.c=e,this.f=s,this.a=gr.forPaths(!Se),this.b=new Set([".svg",".png",".jpg",".jpeg",".gif",".bmp",".webp",".mp4",".otf",".ttf"]),this.addValidFileRoot(e.appRoot),this.addValidFileRoot(e.extensionsPath),this.addValidFileRoot(i.defaultProfile.globalStorageHome.with({scheme:O.file}).fsPath),this.addValidFileRoot(e.workspaceStorageHome.with({scheme:O.file}).fsPath),this.g()}g(){const{defaultSession:e}=rD;e.protocol.registerFileProtocol(O.vscodeFileResource,(i,s)=>this.j(i,s)),e.protocol.interceptFileProtocol(O.file,(i,s)=>this.h(i,s)),this.B(be(()=>{e.protocol.unregisterProtocol(O.vscodeFileResource),e.protocol.uninterceptProtocol(O.file)}))}addValidFileRoot(e){const i=Zt(e);return this.a.get(i)?j.None:(this.a.set(i,!0),be(()=>this.a.delete(i)))}h(e,i){const s=$.parse(e.url);return this.f.error(`Refused to load resource ${s.fsPath} from ${O.file}: protocol (original URL: ${e.url})`),i({error:-3})}j(e,i){const s=this.m(e),r=ze(s);let n;return this.c.crossOriginIsolated&&(r==="workbench.html"||r==="workbench-dev.html"?n=ra.CoopAndCoep:n=ra.getHeadersFromQuery(e.url)),this.c.isBuilt||(n={...n,...Dg}),(r==="workbench.html"||r==="workbench-dev.html")&&(n={...n,...Ig}),this.a.findSubstr(s)?i({path:s,headers:n}):this.b.has(jo(s).toLowerCase())?i({path:s,headers:n}):(this.f.error(`${O.vscodeFileResource}: Refused to load resource ${s} from ${O.vscodeFileResource}: protocol (original URL: ${e.url})`),i({error:-3}))}m(e){const i=$.parse(e.url),s=ei.uriToFileUri(i);return Zt(s.fsPath)}createIPCObjectUrl(){let e;const i=$.from({scheme:"vscode",path:gi()}),s=i.toString(),r=async()=>e;return wt.handle(s,r),this.f.trace(`IPC Object URL: Registered new channel ${s}.`),{resource:i,update:n=>e=n,dispose:()=>{this.f.trace(`IPC Object URL: Removed channel ${s}.`),wt.removeHandler(s)}}}},Bu=__decorate([__param(0,ms),__param(1,Ss),__param(2,K)],Bu)}});function oD(t){return!!t.forwardPort}function aD(t){if(t.scheme!=="http"&&t.scheme!=="https")return;const e=/^(localhost|127\.0\.0\.1|0\.0\.0\.0):(\d+)$/.exec(t.authority);if(e)return{address:e[1],port:+e[2]}}function um(t){return ju.indexOf(t)>=0}function $c(t){return zu.indexOf(t)>=0}function cD(t,e,i,s){if(i===1)return!1;if(i===2&&$c(e)){const r=/(\d+)\.(\d+)\.(\d+)/g.exec(s);if(r?.length===4&&parseInt(r[1])>=18)return!1}return t<1024}var t9,lD,i9,Uu,s9,ju,zu,Hu,r9=v({"out-build/vs/platform/tunnel/common/tunnel.js"(){"use strict";J(),T(),re(),Ue(),Z(),Q(),t9=V("tunnelService"),lD=V("sharedTunnelsService"),function(t){t.Http="http",t.Https="https"}(i9||(i9={})),function(t){t.ConstantPrivate="constantPrivate",t.Private="private",t.Public="public"}(Uu||(Uu={})),function(t){t[t.Notify=1]="Notify",t[t.OpenBrowser=2]="OpenBrowser",t[t.OpenPreview=3]="OpenPreview",t[t.Silent=4]="Silent",t[t.Ignore=5]="Ignore",t[t.OpenBrowserOnce=6]="OpenBrowserOnce"}(s9||(s9={})),ju=["localhost","127.0.0.1","0:0:0:0:0:0:0:1","::1"],zu=["0.0.0.0","0:0:0:0:0:0:0:0","::"],Hu=class extends j{constructor(e,i){super(),this.r=e,this.s=i,this.a=new D,this.onTunnelOpened=this.a.event,this.b=new D,this.onTunnelClosed=this.b.event,this.c=new D,this.onAddedTunnelProvider=this.c.event,this.f=new Map,this.h=!1,this.j=!0,this.m=[],this.n=new Set}get hasTunnelProvider(){return!!this.g}get t(){const e=this.s.getValue("remote.localPortHost");return!e||e==="localhost"?"127.0.0.1":"0.0.0.0"}setTunnelProvider(e){return this.g=e,e?(this.c.fire(),{dispose:()=>{this.g=void 0,this.h=!1,this.m=[]}}):(this.h=!1,this.m=[],this.c.fire(),{dispose:()=>{}})}setTunnelFeatures(e){this.h=e.elevation,this.m=e.privacyOptions,this.j=e.protocol}get canChangeProtocol(){return this.j}get canElevate(){return this.h}get canChangePrivacy(){return this.m.length>0}get privacyOptions(){return this.m}get tunnels(){return this.u()}async u(){const e=[],i=Array.from(this.f.values());for(const s of i){const r=Array.from(s.values());for(const n of r){const o=await n.value;o&&typeof o!="string"&&e.push(o)}}return e}async dispose(){super.dispose();for(const e of this.f.values()){for(const{value:i}of e.values())await i.then(s=>typeof s!="string"?s?.dispose():void 0);e.clear()}this.f.clear()}setEnvironmentTunnel(e,i,s,r,n){this.z(e,i,Promise.resolve({tunnelRemoteHost:e,tunnelRemotePort:i,localAddress:s,privacy:r,protocol:n,dispose:()=>Promise.resolve()}))}async getExistingTunnel(e,i){($c(e)||um(e))&&(e=ju[0]);const s=this.D(e,i);if(s)return++s.refcount,s.value}openTunnel(e,i,s,r,n,o=!1,a,c){this.r.trace(`ForwardedPorts: (TunnelService) openTunnel request for ${i}:${s} on local port ${n}.`);const l=this.g??e;if(!l)return;if(i||(i="localhost"),r||(r=this.t),this.g&&this.n.has(s)){this.r.debug("ForwardedPorts: (TunnelService) Another call to create a tunnel with the same address has occurred before the last one completed. This call will be ignored.");return}const h=this.F(l,i,s,r,n,o,a,c);return h?h.then(u=>{if(u){if(typeof u=="string")return this.r.trace("ForwardedPorts: (TunnelService) The tunnel provider returned an error when creating the tunnel."),this.C(i,s),u}else{this.r.trace("ForwardedPorts: (TunnelService) New tunnel is undefined."),this.C(i,s);return}this.r.trace("ForwardedPorts: (TunnelService) New tunnel established.");const f=this.w(u);return(u.tunnelRemoteHost!==i||u.tunnelRemotePort!==s)&&this.r.warn("ForwardedPorts: (TunnelService) Created tunnel does not match requirements of requested tunnel. Host or port mismatch."),a&&u.privacy!==a&&this.r.warn("ForwardedPorts: (TunnelService) Created tunnel does not match requirements of requested tunnel. Privacy mismatch."),this.a.fire(f),f}):(this.r.trace("ForwardedPorts: (TunnelService) Tunnel was not created."),h)}w(e){return{tunnelRemotePort:e.tunnelRemotePort,tunnelRemoteHost:e.tunnelRemoteHost,tunnelLocalPort:e.tunnelLocalPort,localAddress:e.localAddress,privacy:e.privacy,protocol:e.protocol,dispose:async()=>{this.r.trace(`ForwardedPorts: (TunnelService) dispose request for ${e.tunnelRemoteHost}:${e.tunnelRemotePort} `);const i=this.f.get(e.tunnelRemoteHost);if(i){const s=i.get(e.tunnelRemotePort);s&&(s.refcount--,await this.y(e.tunnelRemoteHost,e.tunnelRemotePort,s))}}}}async y(e,i,s){if(s.refcount<=0){this.r.trace(`ForwardedPorts: (TunnelService) Tunnel is being disposed ${e}:${i}.`);const r=s.value.then(async n=>{n&&typeof n!="string"&&(await n.dispose(!0),this.b.fire({host:n.tunnelRemoteHost,port:n.tunnelRemotePort}))});return this.f.has(e)&&this.f.get(e).delete(i),r}}async closeTunnel(e,i){this.r.trace(`ForwardedPorts: (TunnelService) close request for ${e}:${i} `);const s=this.f.get(e);if(s&&s.has(i)){const r=s.get(i);r.refcount=0,await this.y(e,i,r)}}z(e,i,s){this.f.has(e)||this.f.set(e,new Map),this.f.get(e).set(i,{refcount:1,value:s})}async C(e,i){const s=this.f.get(e);if(s){const r=s.get(i),n=r?await r.value:void 0;(!n||typeof n=="string")&&s.delete(i),s.size===0&&this.f.delete(e)}}D(e,i){const s=[e];um(e)?(s.push(...ju),s.push(...zu)):$c(e)&&s.push(...zu);const r=s.map(n=>this.f.get(n));for(const n of r){const o=n?.get(i);if(o)return o}}canTunnel(e){return!!aD(e)}G(e,i,s,r,n,o,a){this.r.trace(`ForwardedPorts: (TunnelService) Creating tunnel with provider ${i}:${s} on local port ${r}.`);const c=s;this.n.add(c);const l=r===void 0?s:r,h={elevationRequired:n?this.isPortPrivileged(l):!1},u={remoteAddress:{host:i,port:s},localAddressPort:r,privacy:o,public:o?o!==Uu.Private:void 0,protocol:a},f=e.forwardPort(u,h);return f?(this.z(i,s,f),f.finally(()=>{this.r.trace("ForwardedPorts: (TunnelService) Tunnel created by provider."),this.n.delete(c)})):this.n.delete(c),f}},Hu=__decorate([__param(0,K),__param(1,Be)],Hu)}}),hD,n9,Dr,Vu,uD=v({"out-build/vs/platform/remote/common/remoteAuthorityResolver.js"(){"use strict";De(),Z(),hD=V("remoteAuthorityResolverService"),function(t){t[t.WebSocket=0]="WebSocket",t[t.Managed=1]="Managed"}(n9||(n9={})),function(t){t.Unknown="Unknown",t.NotAvailable="NotAvailable",t.TemporarilyNotAvailable="TemporarilyNotAvailable",t.NoResolverFound="NoResolverFound",t.InvalidAuthority="InvalidAuthority"}(Dr||(Dr={})),Vu=class Sn extends Ws{static isNotAvailable(e){return e instanceof Sn&&e._code===Dr.NotAvailable}static isTemporarilyNotAvailable(e){return e instanceof Sn&&e._code===Dr.TemporarilyNotAvailable}static isNoResolverFound(e){return e instanceof Sn&&e._code===Dr.NoResolverFound}static isInvalidAuthority(e){return e instanceof Sn&&e._code===Dr.InvalidAuthority}static isHandled(e){return e instanceof Sn&&e.isHandled}constructor(e,i=Dr.Unknown,s){super(e),this._message=e,this._code=i,this._detail=s,this.isHandled=i===Dr.NotAvailable&&s===!0,Object.setPrototypeOf(this,Sn.prototype)}}}});function dm(t){switch(t){case 1:return"Management";case 2:return"ExtensionHost";case 3:return"Tunnel"}}function o9(t){const e=new Ji;return setTimeout(()=>e.cancel(),t),e.token}function dD(t,e){if(t.isCancellationRequested||e.isCancellationRequested)return Je.Cancelled;const i=new Ji;return t.onCancellationRequested(()=>i.cancel()),e.onCancellationRequested(()=>i.cancel()),i.token}function fD(t,e){const i=new Gu(e);return i.registerDisposable(t.onControlMessage(s=>{const r=JSON.parse(s.toString()),n=yD(r);n?i.reject(n):i.resolve(r)})),i.promise}function pD(t,e,i,s,r,n,o,a){const c=new Gu(a),l=Wr.create(!1);return t.info(`Creating a socket (${o})...`),Ne(`code/willCreateSocket/${n}`),e.connect(i,s,r,o).then(h=>{c.didTimeout?(Ne(`code/didCreateSocketError/${n}`),t.info(`Creating a socket (${o}) finished after ${l.elapsed()} ms, but this is too late and has timed out already.`),h?.dispose()):(Ne(`code/didCreateSocketOK/${n}`),t.info(`Creating a socket (${o}) was successful after ${l.elapsed()} ms.`),c.resolve(h))},h=>{Ne(`code/didCreateSocketError/${n}`),t.info(`Creating a socket (${o}) returned an error after ${l.elapsed()} ms.`),t.error(h),c.reject(h)}),c.promise}function fm(t,e){const i=new Gu(e);return t.then(s=>{i.didTimeout||i.resolve(s)},s=>{i.didTimeout||i.reject(s)}),i.promise}async function mD(t,e,i,s){const r=l9(t,e);t.logService.trace(`${r} 1/6. invoking socketFactory.connect().`);let n;try{n=await pD(t.logService,t.remoteSocketFactoryService,t.connectTo,rf.getServerRootPath(),`reconnectionToken=${t.reconnectionToken}&reconnection=${t.reconnectionProtocol?"true":"false"}`,dm(e),`renderer-${dm(e)}-${t.reconnectionToken}`,s)}catch(h){throw t.logService.error(`${r} socketFactory.connect() failed or timed out. Error:`),t.logService.error(h),h}t.logService.trace(`${r} 2/6. socketFactory.connect() was successful.`);let o,a;t.reconnectionProtocol?(t.reconnectionProtocol.beginAcceptReconnection(n,null),o=t.reconnectionProtocol,a=!1):(o=new Nw({socket:n}),a=!0),t.logService.trace(`${r} 3/6. sending AuthRequest control message.`);const c=await fm(t.signService.createNewMessage(gi()),s),l={type:"auth",auth:t.connectionToken||"00000000000000000000",data:c.data};o.sendControl(q.fromString(JSON.stringify(l)));try{const h=await fD(o,dD(s,o9(1e4)));if(h.type!=="sign"||typeof h.data!="string"){const m=new Error("Unexpected handshake message");throw m.code="VSCODE_CONNECTION_ERROR",m}if(t.logService.trace(`${r} 4/6. received SignRequest control message.`),!await fm(t.signService.validate(c,h.signedData),s)){const m=new Error("Refused to connect to unsupported server");throw m.code="VSCODE_CONNECTION_ERROR",m}const f=await fm(t.signService.sign(h.data),s),p={type:"connectionType",commit:t.commit,signedData:f,desiredConnectionType:e};return i&&(p.args=i),t.logService.trace(`${r} 5/6. sending ConnectionTypeRequest control message.`),o.sendControl(q.fromString(JSON.stringify(p))),{protocol:o,ownsProtocol:a}}catch(h){throw h&&h.code==="ETIMEDOUT"&&(t.logService.error(`${r} the handshake timed out. Error:`),t.logService.error(h)),h&&h.code==="VSCODE_CONNECTION_ERROR"&&(t.logService.error(`${r} received error control message when negotiating connection. Error:`),t.logService.error(h)),a&&c9(o),h}}async function gD(t,e,i){const s=Date.now(),r=l9(t,3),{protocol:n}=await mD(t,3,e,i);return t.logService.trace(`${r} 6/6. handshake finished, connection is up and running after ${SD(s)}!`),n}async function a9(t,e,i){const{connectTo:s,connectionToken:r}=await t.addressProvider.getAddress();return{commit:t.commit,quality:t.quality,connectTo:s,connectionToken:r,reconnectionToken:e,reconnectionProtocol:i,remoteSocketFactoryService:t.remoteSocketFactoryService,signService:t.signService,logService:t.logService}}async function wD(t,e,i){const s=await a9(t,gi(),null);return await gD(s,{host:e,port:i},Je.None)}function vD(t){return Mn(e=>new Promise((i,s)=>{const r=setTimeout(i,t*1e3);e.onCancellationRequested(()=>{clearTimeout(r),i()})}))}function c9(t){try{t.acceptDisconnect();const e=t.getSocket();t.dispose(),e.dispose()}catch(e){Ct(e)}}function yD(t){if(t&&t.type==="error"){const e=new Error(`Connection error: ${t.reason}`);return e.code="VSCODE_CONNECTION_ERROR",e}return null}function bD(t,e){for(;t.length<e;)t+=" ";return t}function kD(t,e){return`[remote-connection][${bD(dm(t),13)}][${e.substr(0,5)}\u2026]`}function qu(t,e,i){return`${kD(t,e)}[${i?"reconnect":"initial"}]`}function l9(t,e){return`${qu(e,t.reconnectionToken,!!t.reconnectionProtocol)}[${t.connectTo}]`}function SD(t){return`${Date.now()-t} ms`}var h9,u9,Gu,d9,f9,p9,m9,pm,g9,ED,xD=v({"out-build/vs/platform/remote/common/remoteAgentConnection.js"(){"use strict";le(),Ke(),Et(),De(),J(),T(),Oe(),Ms(),On(),Ei(),Ww(),uD(),h9=30*1e3,function(t){t[t.Management=1]="Management",t[t.ExtensionHost=2]="ExtensionHost",t[t.Tunnel=3]="Tunnel"}(u9||(u9={})),Gu=class{get didTimeout(){return this.c==="timedout"}constructor(t){this.c="pending",this.d=new Ae,{promise:this.promise,resolve:this.f,reject:this.g}=q7(),t.isCancellationRequested?this.h():this.d.add(t.onCancellationRequested(()=>this.h()))}registerDisposable(t){this.c==="pending"?this.d.add(t):t.dispose()}h(){this.c==="pending"&&(this.d.dispose(),this.c="timedout",this.g(this.i()))}i(){const t=new Error("Time limit reached");return t.code="ETIMEDOUT",t.syscall="connect",t}resolve(t){this.c==="pending"&&(this.d.dispose(),this.c="resolved",this.f(t))}reject(t){this.c==="pending"&&(this.d.dispose(),this.c="rejected",this.g(t))}},function(t){t[t.ConnectionLost=0]="ConnectionLost",t[t.ReconnectionWait=1]="ReconnectionWait",t[t.ReconnectionRunning=2]="ReconnectionRunning",t[t.ReconnectionPermanentFailure=3]="ReconnectionPermanentFailure",t[t.ConnectionGain=4]="ConnectionGain"}(d9||(d9={})),f9=class{constructor(t,e){this.reconnectionToken=t,this.millisSinceLastIncomingData=e,this.type=0}},p9=class{constructor(t,e,i,s){this.reconnectionToken=t,this.millisSinceLastIncomingData=e,this.durationSeconds=i,this.c=s,this.type=1}skipWait(){this.c.cancel()}},m9=class{constructor(t,e,i){this.reconnectionToken=t,this.millisSinceLastIncomingData=e,this.attempt=i,this.type=2}},pm=class{constructor(t,e,i){this.reconnectionToken=t,this.millisSinceLastIncomingData=e,this.attempt=i,this.type=4}},g9=class{constructor(t,e,i,s){this.reconnectionToken=t,this.millisSinceLastIncomingData=e,this.attempt=i,this.handled=s,this.type=3}},ED=class sr extends j{static triggerPermanentFailure(e,i,s){this._permanentFailure=!0,this.f=e,this.g=i,this.h=s,this.j.forEach(r=>r.D(this.f,this.g,this.h))}static debugTriggerReconnection(){this.j.forEach(e=>e.y())}static debugPauseSocketWriting(){this.j.forEach(e=>e.F())}static{this._permanentFailure=!1}static{this.f=0}static{this.g=0}static{this.h=!1}static{this.j=[]}get n(){return this.c||sr._permanentFailure}constructor(e,i,s,r,n){super(),this.t=e,this.u=i,this.reconnectionToken=s,this.protocol=r,this.w=n,this.m=this.B(new D),this.onDidStateChange=this.m.event,this.c=!1,this.r=!1,this.s=!1,this.m.fire(new pm(this.reconnectionToken,0,0)),this.B(r.onSocketClose(o=>{const a=qu(this.t,this.reconnectionToken,!0);o?o.type===0?(this.u.logService.info(`${a} received socket close event (hadError: ${o.hadError}).`),o.error&&this.u.logService.error(o.error)):(this.u.logService.info(`${a} received socket close event (wasClean: ${o.wasClean}, code: ${o.code}, reason: ${o.reason}).`),o.event&&this.u.logService.error(o.event)):this.u.logService.info(`${a} received socket close event.`),this.y()})),this.B(r.onSocketTimeout(o=>{const a=qu(this.t,this.reconnectionToken,!0);this.u.logService.info(`${a} received socket timeout event (unacknowledgedMsgCount: ${o.unacknowledgedMsgCount}, timeSinceOldestUnacknowledgedMsg: ${o.timeSinceOldestUnacknowledgedMsg}, timeSinceLastReceivedSomeData: ${o.timeSinceLastReceivedSomeData}).`),this.y()})),sr.j.push(this),this.B(be(()=>{const o=sr.j.indexOf(this);o>=0&&sr.j.splice(o,1)})),this.n&&this.D(sr.f,sr.g,sr.h)}dispose(){super.dispose(),this.s=!0}async y(){if(!this.r)try{this.r=!0,await this.z()}finally{this.r=!1}}async z(){if(this.n||this.s)return;const e=qu(this.t,this.reconnectionToken,!0);this.u.logService.info(`${e} starting reconnecting loop. You can get more information with the trace log level.`),this.m.fire(new f9(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData()));const i=[0,5,5,10,10,10,10,10,30];let s=-1;do{s++;const r=s<i.length?i[s]:i[i.length-1];try{if(r>0){const o=vD(r);this.m.fire(new p9(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData(),r,o)),this.u.logService.info(`${e} waiting for ${r} seconds before reconnecting...`);try{await o}catch{}}if(this.n){this.u.logService.error(`${e} permanent failure occurred while running the reconnecting loop.`);break}this.m.fire(new m9(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData(),s+1)),this.u.logService.info(`${e} resolving connection...`);const n=await a9(this.u,this.reconnectionToken,this.protocol);this.u.logService.info(`${e} connecting to ${n.connectTo}...`),await this.G(n,o9(h9)),this.u.logService.info(`${e} reconnected!`),this.m.fire(new pm(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData(),s+1));break}catch(n){if(n.code==="VSCODE_CONNECTION_ERROR"){this.u.logService.error(`${e} A permanent error occurred in the reconnecting loop! Will give up now! Error:`),this.u.logService.error(n),this.C(this.protocol.getMillisSinceLastIncomingData(),s+1,!1);break}if(s>360){this.u.logService.error(`${e} An error occurred while reconnecting, but it will be treated as a permanent error because the reconnection grace time has expired! Will give up now! Error:`),this.u.logService.error(n),this.C(this.protocol.getMillisSinceLastIncomingData(),s+1,!1);break}if(Vu.isTemporarilyNotAvailable(n)){this.u.logService.info(`${e} A temporarily not available error occurred while trying to reconnect, will try again...`),this.u.logService.trace(n);continue}if((n.code==="ETIMEDOUT"||n.code==="ENETUNREACH"||n.code==="ECONNREFUSED"||n.code==="ECONNRESET")&&n.syscall==="connect"){this.u.logService.info(`${e} A network error occurred while trying to reconnect, will try again...`),this.u.logService.trace(n);continue}if(Wd(n)){this.u.logService.info(`${e} A promise cancelation error occurred while trying to reconnect, will try again...`),this.u.logService.trace(n);continue}if(n instanceof Vu){this.u.logService.error(`${e} A RemoteAuthorityResolverError occurred while trying to reconnect. Will give up now! Error:`),this.u.logService.error(n),this.C(this.protocol.getMillisSinceLastIncomingData(),s+1,Vu.isHandled(n));break}this.u.logService.error(`${e} An unknown error occurred while trying to reconnect, since this is an unknown case, it will be treated as a permanent error! Will give up now! Error:`),this.u.logService.error(n),this.C(this.protocol.getMillisSinceLastIncomingData(),s+1,!1);break}}while(!this.n&&!this.s)}C(e,i,s){this.w?sr.triggerPermanentFailure(e,i,s):this.D(e,i,s)}D(e,i,s){this.m.fire(new g9(this.reconnectionToken,e,i,s)),c9(this.protocol)}F(){this.protocol.pauseSocketWriting()}}}}),Ju,PD=v({"out-build/vs/platform/remote/common/remoteSocketFactoryService.js"(){"use strict";T(),Z(),Ju=V("remoteSocketFactoryService")}});import*as $D from"net";import*as AD from"os";async function DD(t,e,i,s,r){let n;for(let o=3;o&&(n?.dispose(),n=await new w9(t,e,i,s,r).waitForReady(),!(r&&gp[r]||!gp[n.tunnelLocalPort]));o--);return n}var w9,Ku,Ac,mm,ID=v({"out-build/vs/platform/tunnel/node/tunnelService.js"(){"use strict";L4(),Ff(),le(),T(),G(),Ue(),Q(),Tt(),xD(),PD(),$p(),r9(),Ke(),w9=class extends j{constructor(t,e,i,s,r){super(),this.m=e,this.n=r,this.privacy=Uu.Private,this.j=new Map,this.a=t,this.b=$D.createServer(),this.c=new oa,this.f=()=>this.c.open(),this.b.on("listening",this.f),this.g=n=>this.r(n),this.b.on("connection",this.g),this.h=()=>{},this.b.on("error",this.h),this.tunnelRemotePort=s,this.tunnelRemoteHost=i}async dispose(){super.dispose(),this.b.removeListener("listening",this.f),this.b.removeListener("connection",this.g),this.b.removeListener("error",this.h),this.b.close(),Array.from(this.j.values()).forEach(e=>{e()})}async waitForReady(){const t=this.n??this.tunnelRemotePort,e=$c(this.m)?"0.0.0.0":"127.0.0.1";let i=await R4(t,2,1e3,e),s=null;return this.b.listen(i,this.m),await this.c.wait(),s=this.b.address(),s||(i=0,this.b.listen(i,this.m),await this.c.wait(),s=this.b.address()),this.tunnelLocalPort=s.port,this.localAddress=`${this.tunnelRemoteHost==="127.0.0.1"?"127.0.0.1":"localhost"}:${s.port}`,this}async r(t){t.pause();const e=um(this.tunnelRemoteHost)||$c(this.tunnelRemoteHost)?"localhost":this.tunnelRemoteHost,i=await wD(this.a,e,this.tunnelRemotePort),s=i.getSocket(),r=i.readEntireBuffer();i.dispose(),r.byteLength>0&&t.write(r.buffer),t.on("end",()=>{t.localAddress&&this.j.delete(t.localAddress),s.end()}),t.on("close",()=>s.end()),t.on("error",()=>{t.localAddress&&this.j.delete(t.localAddress),s instanceof Ea?s.socket.destroy():s.end()}),s instanceof Ea?this.t(t,s):this.s(t,s),t.localAddress&&this.j.set(t.localAddress,()=>{t.end(),s.end()})}s(t,e){e.onClose(()=>t.destroy()),e.onEnd(()=>t.end()),e.onData(i=>t.write(i.buffer)),t.on("data",i=>e.write(q.wrap(i))),t.resume()}t(t,e){const i=e.socket;i.on("end",()=>t.end()),i.on("close",()=>t.end()),i.on("error",()=>{t.destroy()}),i.pipe(t),t.pipe(i)}},Ku=class extends Hu{constructor(e,i,s,r,n){super(i,n),this.H=e,this.I=s,this.J=r}isPortPrivileged(e){return cD(e,this.t,bi,AD.release())}F(e,i,s,r,n,o,a,c){const l=this.D(i,s);if(l)return++l.refcount,l.value;if(oD(e))return this.G(e,i,s,n,o,a,c);{this.r.trace(`ForwardedPorts: (TunnelService) Creating tunnel without provider ${i}:${s} on local port ${n}.`);const h={commit:this.J.commit,quality:this.J.quality,addressProvider:e,remoteSocketFactoryService:this.H,signService:this.I,logService:this.r,ipcLogger:null},u=DD(h,r,i,s,n);return this.r.trace("ForwardedPorts: (TunnelService) Tunnel created without provider."),this.z(i,s,u),u}}},Ku=__decorate([__param(0,Ju),__param(1,K),__param(2,So),__param(3,nt),__param(4,Be)],Ku),Ac=class extends Ku{constructor(e,i,s,r,n){super(e,i,s,r,n)}},Ac=__decorate([__param(0,Ju),__param(1,K),__param(2,So),__param(3,nt),__param(4,Be)],Ac),mm=class extends j{constructor(e,i,s,r,n){super(),this.b=e,this.c=i,this.f=s,this.g=r,this.h=n,this.a=new Map}async openTunnel(e,i,s,r,n,o,a,c,l){if(this.c.trace(`ForwardedPorts: (SharedTunnelService) openTunnel request for ${s}:${r} on local port ${o}.`),!this.a.has(e)){const h=new Ac(this.b,this.c,this.g,this.f,this.h);this.B(h),this.a.set(e,h),h.onTunnelClosed(async()=>{(await h.tunnels).length===0&&(h.dispose(),this.a.delete(e))})}return this.a.get(e).openTunnel(i,s,r,n,o,a,c,l)}},mm=__decorate([__param(0,Ju),__param(1,K),__param(2,nt),__param(3,So),__param(4,Be)],mm)}});import{parse as v9}from"url";function CD(t,e){return t.protocol==="http:"?e.HTTP_PROXY||e.http_proxy||null:t.protocol==="https:"&&(e.HTTPS_PROXY||e.https_proxy||e.HTTP_PROXY||e.http_proxy)||null}async function RD(t,e,i={}){const s=v9(t),r=i.proxyUrl||CD(s,e);if(!r)return null;const n=v9(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:N0(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 OD=v({"out-build/vs/platform/request/node/proxy.js"(){"use strict";$e()}});import{parse as y9}from"url";import{createGunzip as LD}from"zlib";async function MD(t,e,i,s){const r=await import("kerberos"),n=r.default||r,o=new URL(t),a=e||(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 FD(t){return(y9(t.url).protocol==="https:"?await import("https"):await import("http")).request}async function b9(t,e){return Ot.withAsyncBody(async(i,s)=>{const r=y9(t.url),n=t.getRawRequest?t.getRawRequest(t):await FD(t),o={hostname:r.hostname,port:r.port?parseInt(r.port):r.protocol==="https:"?443:80,protocol:r.protocol,path:r.path,method:t.type||"GET",headers:t.headers,agent:t.agent,rejectUnauthorized:N0(t.strictSSL)?t.strictSSL:!0};t.user&&t.password&&(o.auth=t.user+":"+t.password),t.disableCache&&(o.cache="no-store");const a=n(o,c=>{const l=el(t.followRedirects)?t.followRedirects:3;if(c.statusCode&&c.statusCode>=300&&c.statusCode<400&&l>0&&c.headers.location)b9({...t,url:c.headers.location,followRedirects:l-1},e).then(i,s);else{let h=c;!t.isChromiumNetwork&&c.headers["content-encoding"]==="gzip"&&(h=c.pipe(LD())),i({res:c,stream:q8(h)})}});if(a.on("error",s),t.timeout)if(t.isChromiumNetwork){const c=setTimeout(()=>{a.abort(),s(new Error(`Request timeout after ${t.timeout}ms`))},t.timeout);a.on("response",()=>clearTimeout(c)),a.on("error",()=>clearTimeout(c)),a.on("abort",()=>clearTimeout(c))}else a.setTimeout(t.timeout);t.isChromiumNetwork&&a.removeHeader("Content-Length"),t.data&&typeof t.data=="string"&&a.write(t.data),a.end(),e.onCancellationRequested(()=>{a.abort(),s(new Yt)})})}var Zu,ND=v({"out-build/vs/platform/request/node/requestService.js"(){"use strict";le(),Ke(),De(),$e(),Ue(),xi(),K1(),Q(),ln(),OD(),Zu=class extends W4{constructor(e,i,s,r){super(r),this.m=e,this.n=i,this.r=s,this.s(),this.B(i.onDidChangeConfiguration(n=>{n.affectsConfiguration("http")&&this.s()}))}s(){this.f=this.t("http.proxy"),this.g=!!this.t("http.proxyStrictSSL"),this.h=this.t("http.proxyAuthorization")}async request(e,i){const{f:s,g:r}=this;let n;try{n=await J1(this.n,this.b,this.r.args,process.env)}catch(c){this.j||(this.j=!0,this.b.error("resolving shell environment failed",Li(c)))}const o={...process.env,...n},a=e.agent?e.agent:await RD(e.url||"",o,{proxyUrl:s,strictSSL:r});return e.agent=a,e.strictSSL=r,this.h&&(e.headers={...e.headers||{},"Proxy-Authorization":this.h}),this.c(e,()=>b9(e,i))}async resolveProxy(e){}async lookupAuthorization(e){}async lookupKerberosAuthorization(e){try{const i=this.t("http.proxyKerberosServicePrincipal");return"Negotiate "+await MD(e,i,this.b,"RequestService#lookupKerberosAuthorization")}catch(i){this.b.debug("RequestService#lookupKerberosAuthorization Kerberos authentication failed",i);return}}async loadCertificates(){return(await import("@vscode/proxy-agent")).loadSystemCertificates({log:this.b})}t(e){if(this.m==="remote")return this.n.getValue(e);const i=this.n.inspect(e);return i.userLocalValue||i.defaultValue}},Zu=__decorate([__param(1,Be),__param(2,ms),__param(3,K)],Zu)}});import{net as WD}from"electron";function _D(t){return WD.request}var Yu,TD=v({"out-build/vs/platform/request/electron-utility/requestService.js"(){"use strict";ND(),Ue(),xi(),Q(),Yu=class extends Zu{constructor(e,i,s){super("local",e,i,s)}request(e,i){return super.request({...e||{},getRawRequest:_D,isChromiumNetwork:!0},i)}},Yu=__decorate([__param(0,Be),__param(1,ms),__param(2,K)],Yu)}}),k9,BD=v({"out-build/vs/platform/sign/common/abstractSignService.js"(){"use strict";k9=class S6{constructor(){this.b=new Map}static{this.a=1}async createNewMessage(e){try{const i=await this.c();if(i){const s=String(S6.a++);return this.b.set(s,i),{id:s,data:i.createNewMessage(e)}}}catch{}return{id:"",data:e}}async validate(e,i){if(!e.id)return!0;const s=this.b.get(e.id);if(!s)return!1;this.b.delete(e.id);try{return s.validate(i)==="ok"}catch{return!1}finally{s.dispose?.()}}async sign(e){try{return await this.d(e)}catch{}return e}}}}),S9,UD=v({"out-build/vs/platform/sign/node/signService.js"(){"use strict";BD(),S9=class extends k9{c(){return this.h().then(t=>new t.validator)}d(t){return this.h().then(e=>new e.signer().sign(t))}async h(){const t="vsda",{default:e}=await import(t);return e}}}}),Dc,jD=v({"out-build/vs/platform/policy/node/nativePolicyService.js"(){"use strict";$s(),le(),T(),Q(),Dc=class extends kp{constructor(e,i){super(),this.j=e,this.m=i,this.a=new uf,this.b=this.B(new or)}async h(e){this.j.trace(`NativePolicyService#_updatePolicyDefinitions - Found ${Object.keys(e).length} policy definitions`);const{createWatcher:i}=await import("@vscode/policy-watcher");await this.a.queue(()=>new Promise((s,r)=>{try{this.b.value=i(this.m,e,n=>{this.s(n),s()})}catch(n){this.j.error("NativePolicyService#_updatePolicyDefinitions - Error creating watcher:",n),r(n)}}))}s(e){this.j.trace(`NativePolicyService#_onDidPolicyChange - Updated policy values: ${JSON.stringify(e)}`);for(const i in e){const s=e[i];s===void 0?this.f.delete(i):this.f.set(i,s)}this.g.fire(Object.keys(e))}},Dc=__decorate([__param(0,K)],Dc)}});function zD(t,e){const i=[];for(const s of new Set(Fr.concat(t.keys(),e.keys())))t.get(s)!==e.get(s)&&i.push(s);return i}var Qu,HD=v({"out-build/vs/platform/policy/common/filePolicyService.js"(){"use strict";le(),J(),tl(),$e(),Ve(),Q(),$s(),Qu=class extends kp{constructor(e,i,s){super(),this.j=e,this.m=i,this.n=s,this.c=this.B(new Us(500));const r=x.filter(i.onDidFilesChange,n=>n.affects(e));this.B(i.watch(e)),this.B(r(()=>this.c.trigger(()=>this.u())))}async h(){await this.u()}async t(){const e=new Map;try{const i=await this.m.readFile(this.j),s=JSON.parse(i.value.toString());if(!St(s))throw new Error("Policy file isn't a JSON object");for(const r of Object.keys(s))this.policyDefinitions[r]&&e.set(r,s[r])}catch(i){i.fileOperationResult!==1&&this.n.error("[FilePolicyService] Failed to read policies",i)}return e}async u(){const e=await this.t(),i=zD(this.f,e);this.f=e,i.length>0&&this.g.fire(i)}},Qu=__decorate([__param(1,rt),__param(2,K)],Qu)}});function VD(t,e,i){e instanceof de||(e=new de(e,[],!!i)),E9.push([t,e])}var E9,x9,qD=v({"out-build/vs/platform/instantiation/common/extensions.js"(){"use strict";Rh(),E9=[],function(t){t[t.Eager=0]="Eager",t[t.Delayed=1]="Delayed"}(x9||(x9={}))}}),P9,Xu,Oo,$9,GD=v({"out-build/vs/base/common/skipList.js"(){"use strict";Xu=class{constructor(t,e,i){this.level=t,this.key=e,this.value=i,this.forward=[]}},Oo=void 0,$9=class Fo{constructor(e,i=2**16){this.comparator=e,this[P9]="SkipList",this.d=0,this.f=0,this.c=Math.max(1,Math.log2(i)|0),this.e=new Xu(this.c,Oo,Oo)}get size(){return this.f}clear(){this.e=new Xu(this.c,Oo,Oo),this.f=0}has(e){return!!Fo.g(this,e,this.comparator)}get(e){return Fo.g(this,e,this.comparator)?.value}set(e,i){return Fo.h(this,e,i,this.comparator)&&(this.f+=1),this}delete(e){const i=Fo.k(this,e,this.comparator);return i&&(this.f-=1),i}forEach(e,i){let s=this.e.forward[0];for(;s;)e.call(i,s.value,s.key,this),s=s.forward[0]}[(P9=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*entries(){let e=this.e.forward[0];for(;e;)yield[e.key,e.value],e=e.forward[0]}*keys(){let e=this.e.forward[0];for(;e;)yield e.key,e=e.forward[0]}*values(){let e=this.e.forward[0];for(;e;)yield e.value,e=e.forward[0]}toString(){let e="[SkipList]:",i=this.e.forward[0];for(;i;)e+=`node(${i.key}, ${i.value}, lvl:${i.level})`,i=i.forward[0];return e}static g(e,i,s){let r=e.e;for(let n=e.d-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 h(e,i,s,r){const n=[];let o=e.e;for(let a=e.d-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=Fo.j(e);if(a>e.d){for(let c=e.d;c<a;c++)n[c]=e.e;e.d=a}o=new Xu(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 j(e,i=.5){let s=1;for(;Math.random()<i&&s<e.c;)s+=1;return s}static k(e,i,s){const r=[];let n=e.e;for(let o=e.d-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<e.d&&r[o].forward[o]===n;o++)r[o].forward[o]=n.forward[o];for(;e.d>0&&e.e.forward[e.d-1]===Oo;)e.d-=1;return!0}}}}),gm,Ic,JD=v({"out-build/vs/platform/uriIdentity/common/uriIdentityService.js"(){"use strict";ks(),qD(),Ve(),et(),GD(),J(),T(),gm=class Cm{static{this._clock=0}constructor(e){this.uri=e,this.time=Cm._clock++}touch(){return this.time=Cm._clock++,this}},Ic=class{constructor(e){this.g=e,this.c=new Ae,this.f=2**16;const i=new Map,s=r=>{let n=i.get(r.scheme);return n===void 0&&(n=e.hasProvider(r)&&!this.g.hasCapability(r,1024),i.set(r.scheme,n)),n};this.c.add(x.any(e.onDidChangeFileSystemProviderRegistrations,e.onDidChangeFileSystemProviderCapabilities)(r=>{i.delete(r.scheme)})),this.extUri=new na(s),this.d=new $9((r,n)=>this.extUri.compare(r,n,!0),this.f)}dispose(){this.c.dispose(),this.d.clear()}asCanonicalUri(e){this.g.hasProvider(e)&&(e=cf(e));const i=this.d.get(e);return i?i.touch().uri.with({fragment:e.fragment}):(this.d.set(e,new gm(e)),this.h(),e)}h(){if(this.d.size<this.f)return;const e=[...this.d.entries()].sort((s,r)=>s[1].time<r[1].time?1:s[1].time>r[1].time?-1:0);gm._clock=0,this.d.clear();const i=this.f*.5;for(let s=0;s<i;s++)this.d.set(e[s][0],e[s][1].touch())}},Ic=__decorate([__param(0,rt)],Ic),VD(ni,Ic,1)}}),A9,KD=v({"out-build/vs/platform/log/common/logService.js"(){"use strict";T(),Q(),A9=class extends j{constructor(t,e=[]){super(),this.a=new Dv([t,...e]),this.B(t.onDidChangeLogLevel(i=>this.setLevel(i)))}get onDidChangeLogLevel(){return this.a.onDidChangeLogLevel}setLevel(t){this.a.setLevel(t)}getLevel(){return this.a.getLevel()}trace(t,...e){this.a.trace(t,...e)}debug(t,...e){this.a.debug(t,...e)}info(t,...e){this.a.info(t,...e)}warn(t,...e){this.a.warn(t,...e)}error(t,...e){this.a.error(t,...e)}flush(){this.a.flush()}}}}),D9,ZD=v({"out-build/vs/platform/userData/common/fileUserDataProvider.js"(){"use strict";J(),T(),Ve(),Zn(),Qt(),D9=class extends j{constructor(t,e,i,s,r,n){super(),this.f=t,this.g=e,this.h=i,this.j=s,this.m=r,this.n=n,this.capabilities=this.g.capabilities,this.onDidChangeCapabilities=this.g.onDidChangeCapabilities,this.a=this.B(new D),this.onDidChangeFile=this.a.event,this.b=gr.forUris(()=>!(this.capabilities&1024)),this.c=new Td(o=>this.m.extUri.getComparisonKey(this.t(o))),this.r(),this.B(s.onDidChangeProfiles(()=>this.r())),this.B(this.g.onDidChangeFile(o=>this.s(o)))}r(){this.c.clear();for(const t of this.j.profiles)this.c.add(t.settingsResource),this.c.add(t.keybindingsResource),this.c.add(t.tasksResource),this.c.add(t.extensionsResource)}open(t,e){return this.g.open(this.t(t),e)}close(t){return this.g.close(t)}read(t,e,i,s,r){return this.g.read(t,e,i,s,r)}write(t,e,i,s,r){return this.g.write(t,e,i,s,r)}watch(t,e){this.b.set(t,t);const i=this.g.watch(this.t(t),e);return be(()=>{this.b.delete(t),i.dispose()})}stat(t){return this.g.stat(this.t(t))}mkdir(t){return this.g.mkdir(this.t(t))}rename(t,e,i){return this.g.rename(this.t(t),this.t(e),i)}readFile(t,e){return this.g.readFile(this.t(t),e)}readFileStream(t,e,i){return this.g.readFileStream(this.t(t),e,i)}readdir(t){return this.g.readdir(this.t(t))}enforceAtomicReadFile(t){return this.c.has(t)}writeFile(t,e,i){return this.g.writeFile(this.t(t),e,i)}enforceAtomicWriteFile(t){return this.c.has(t)?{postfix:".vsctmp"}:!1}delete(t,e){return this.g.delete(this.t(t),e)}copy(t,e,i){if(Qf(this.g))return this.g.copy(this.t(t),this.t(e),i);throw new Error("copy not supported")}cloneFile(t,e){if(Wv(this.g))return this.g.cloneFile(this.t(t),this.t(e));throw new Error("clone not supported")}s(t){const e=[];for(const i of t){if(i.resource.scheme!==this.f)continue;const s=this.u(i.resource);this.b.findSubstr(s)&&e.push({resource:s,type:i.type,cId:i.cId})}e.length&&(this.n.debug("User data changed"),this.a.fire(e))}t(t){return t.with({scheme:this.f})}u(t){return t.with({scheme:this.h})}}}}),YD={};import{app as QD,dialog as XD}from"electron";import{unlinkSync as eI,promises as I9}from"fs";var C9,R9,tI=v({"out-build/vs/code/electron-main/main.js"(){"use strict";A8(),re(),kt(),le(),jr(),De(),ki(),J(),hr(),Oe(),ge(),Ms(),G(),ns(),xt(),gt(),Hs(),Ff(),zA(),we(),Ue(),VA(),KA(),Pt(),Qa(),XA(),Ve(),eD(),lp(),Rh(),iD(),hp(),tt(),sD(),Q(),Ap(),Tt(),Rp(),nD(),r9(),ID(),ln(),TD(),$p(),UD(),Wi(),mn(),Oa(),Xr(),$s(),jD(),HD(),T(),ks(),JD(),dc(),KD(),ab(),zy(),ZD(),la(),C9=class{main(){try{this.a()}catch(t){console.error(t.message),QD.exit(1)}}async a(){k0(c=>console.error(c));const[t,e,i,s,r,n,o,a]=this.b();try{try{await this.d(i,a,s,r,o)}catch(c){throw this.g(i,o,c),c}await t.invokeFunction(async c=>{const l=c.get(K),h=c.get(_e),u=c.get(rt),f=c.get(Da),p=await this.f(l,i,h,t,o,!0);return te.writeFile(i.mainLockfile,String(process.pid)).catch(m=>{l.warn(`app#startup(): Error writing main lockfile: ${m.stack}`)}),n.logger=f.createLogger("main",{name:g(156,null)}),x.once(h.onWillShutdown)(m=>{u.dispose(),s.dispose(),m.join("instanceLockfile",I9.unlink(i.mainLockfile).catch(()=>{}))}),t.createInstance(Mu,p,e).startup()})}catch(c){t.invokeFunction(this.j,c)}}b(){const t=new Oh,e=new Ae;process.once("exit",()=>e.dispose());const i={_serviceBrand:void 0,...As};t.set(nt,i);const s=new gs(this.k(),i),r=this.c(s);t.set(ht,s);const n=new G4(M3(s),s.logsHome);t.set(ko,n);const o=new e9(n.getLogLevel()),a=e.add(new A9(o,[new Av(n.getLogLevel())]));t.set(K,a);const c=new _u(a);t.set(rt,c);const l=new Ch(a);c.registerProvider(O.file,l);const h=new Ic(c);t.set(ni,h);const u=new P1(1,s,a,c);t.set(t1,u),t.set(Pi,u);const f=new ih(u,h,s,c,a);t.set(xs,f),c.registerProvider(O.vscodeUserData,new D9(O.file,l,O.vscodeUserData,f,h,a));let p;B&&i.win32RegValueName?p=e.add(new Dc(a,i.win32RegValueName)):N&&i.darwinBundleIdentifier?p=e.add(new Dc(a,i.darwinBundleIdentifier)):s.policyFile?p=e.add(new Qu(s.policyFile,c,a)):p=new Sp,t.set(pn,p);const m=new J2(f.defaultProfile.settingsResource,c,p,a);return t.set(Be,m),t.set(_e,new de(ql,void 0,!1)),t.set(cn,new de(Yu,void 0,!0)),t.set(Xn,new de(Vl)),t.set(So,new de(S9,void 0,!1)),t.set(t9,new de(Ac)),t.set(au,new Bu(s,f,a)),[new Q2(t,!0),r,s,m,u,o,i,f]}c(t){const e={VSCODE_IPC_HOOK:t.mainIPCHandle};return["VSCODE_NLS_CONFIG","VSCODE_PORTABLE"].forEach(i=>{const s=process.env[i];typeof s=="string"&&(e[i]=s)}),Object.assign(process.env,e),e}async d(t,e,i,s,r){await Ot.settled([Promise.all([this.e(t.extensionsPath),t.codeCachePath,t.logsHome.with({scheme:O.file}).fsPath,e.defaultProfile.globalStorageHome.with({scheme:O.file}).fsPath,t.workspaceStorageHome.with({scheme:O.file}).fsPath,t.localHistoryHome.with({scheme:O.file}).fsPath,t.backupHome].map(n=>n?I9.mkdir(n,{recursive:!0}):void 0)),s.init(),i.initialize()]),e.init()}e(t){if(B){const e=Qg(t);e&&ca(e)}return t}async f(t,e,i,s,r,n){let o;try{Ne("code/willStartMainServer"),o=await o3(e.mainIPCHandle),Ne("code/didStartMainServer"),x.once(i.onWillShutdown)(()=>o.dispose())}catch(a){if(a.code!=="EADDRINUSE")throw this.g(e,r,a),a;let c;try{c=await a3(e.mainIPCHandle,"main")}catch(f){if(!n||B||f.code!=="ECONNREFUSED")throw f.code==="EPERM"&&this.h(g(157,null,r.nameShort),g(158,null),r),f;try{eI(e.mainIPCHandle)}catch(p){throw t.warn("Could not delete obsolete instance handle",p),p}return this.f(t,e,i,s,r,!1)}if(e.extensionTestsLocationURI&&!e.debugExtensionHost.break){const f=`Running extension tests from the command line is currently only supported if no other instance of ${r.nameShort} is running.`;throw t.error(f),c.dispose(),new Error(f)}let l;!e.args.wait&&!e.args.status&&(l=setTimeout(()=>{this.h(g(159,null,r.nameShort),g(160,null),r)},1e4));const h=He.toService(c.getChannel("launch"),{disableMarshalling:!0}),u=He.toService(c.getChannel("diagnostics"),{disableMarshalling:!0});if(e.args.status)return s.invokeFunction(async()=>{const f=new Wu(fc,r),p=await u.getMainDiagnostics(),m=await u.getRemoteDiagnostics({includeProcesses:!0,includeWorkspaceMetadata:!0}),w=await f.getDiagnostics(p,m);throw console.log(w),new Zc});throw B&&await this.i(h,t),t.trace("Sending env to running instance..."),await h.start(e.args,process.env),c.dispose(),l&&clearTimeout(l),new Zc("Sent env to running instance. Terminating...")}if(e.args.status)throw console.log(g(161,null,r.nameShort)),new Zc("Terminating...");return process.env.VSCODE_PID=String(process.pid),o}g(t,e,i){if(i.code==="EACCES"||i.code==="EPERM"){const s=ft([t.userDataPath,t.extensionsPath,$l]).map(r=>Tn($.file(r),{os:bi,tildify:t}));this.h(g(162,null),g(163,null,us(i),s.join(`
`)),e)}}h(t,e,i){XD.showMessageBoxSync(rb({type:"warning",buttons:[g(164,null)],message:t,detail:e},i).options)}async i(t,e){if(B){const i=await t.getMainProcessId();e.trace("Sending some foreground love to the running instance:",i);try{(await import("windows-foreground-love")).allowSetForegroundWindow(i)}catch(s){e.error(s)}}}j(t,e){const i=t.get(K),s=t.get(_e);let r=0;e&&(e.isExpected?e.message&&i.trace(e.message):(r=1,e.stack?i.error(e.stack):i.error(`Startup error: ${e.toString()}`))),s.kill(r)}k(){const t=this.l(iS(process.argv));if(t.wait&&!t.waitMarkerFilePath){const e=QA(t.verbose);e&&(sS(process.argv,"--waitMarkerFilePath",e),t.waitMarkerFilePath=e)}return t}l(t){if(t["open-url"]&&(t._urls=t._,t._=[]),!t.remote){const e=this.m(t._,t.goto);t._=e}return t}m(t,e){const i=Fs(),s=t.map(o=>{let a=String(o),c;e&&(c=nl(a),a=c.path),a&&(a=this.n(i,a));const l=ug(a,i),h=ze(l);return h&&!R7(h)?null:e&&c?(c.path=l,this.o(c)):l}),r=B||N,n=Gi(s,o=>o&&r?o.toLowerCase():o||"");return ft(n)}n(t,e){return B&&(e=Tr(e,'"')),e=eg(eg(e," ")," "),B&&(e=nr(t,e),e=Tr(e,".")),e}o(t){const e=[t.path];return typeof t.line=="number"&&e.push(String(t.line)),typeof t.column=="number"&&e.push(String(t.column)),e.join(":")}},R9=new C9,R9.main()}});import*as er from"path";import*as vn from"original-fs";import*as iI from"os";import{performance as sI}from"perf_hooks";import*as ji from"path";import*as O9 from"fs";import{fileURLToPath as rI}from"url";import{createRequire as nI}from"node:module";var jO=nI(import.meta.url),oI=ji.dirname(rI(import.meta.url)),zO=process.platform==="win32";if(Error.stackTraceLimit=100,!process.env.VSCODE_HANDLES_SIGPIPE){let t=!1;process.on("SIGPIPE",()=>{t||(t=!0,console.error(new Error("Unexpected SIGPIPE")))})}function aI(){try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(ji.dirname(process.execPath))}catch(t){console.error(t)}}aI();function cI(t){const e=ji.dirname(oI);function i(){return process.env.VSCODE_DEV?e:process.platform==="darwin"?ji.dirname(ji.dirname(ji.dirname(e))):ji.dirname(ji.dirname(e))}function s(){if(process.env.VSCODE_PORTABLE)return process.env.VSCODE_PORTABLE;if(process.platform==="win32"||process.platform==="linux")return ji.join(i(),"data");const c=t.portable||`${t.applicationName}-portable-data`;return ji.join(ji.dirname(i()),c)}const r=s(),n=!("target"in t)&&O9.existsSync(r),o=ji.join(r,"tmp"),a=n&&O9.existsSync(o);return n?process.env.VSCODE_PORTABLE=r:delete process.env.VSCODE_PORTABLE,a&&(process.platform==="win32"?(process.env.TMP=o,process.env.TEMP=o):process.env.TMPDIR=o),{portableDataPath:r,isPortable:n}}import*as lI from"path";import*as wm from"fs";import{fileURLToPath as hI}from"url";import{createRequire as uI,register as dI}from"node:module";import{createRequire as fI}from"node:module";var L9=fI(import.meta.url),vm={BUILD_INSERT_PRODUCT_CONFIGURATION:"BUILD_INSERT_PRODUCT_CONFIGURATION"};vm.BUILD_INSERT_PRODUCT_CONFIGURATION&&(vm=L9("../product.json"));var ym={"name":"Code","version":"1.101.2","distro":"fb9b4b01c06699c1a80f26ca9de940a9aebb29e0","author":{"name":"Microsoft Corporation"},"license":"MIT","main":"./out/main.js","type":"module","private":true,"scripts":{"test":"echo Please run any of the test scripts from the scripts folder.","test-browser":"npx playwright install && node test/unit/browser/index.js","test-browser-no-install":"node test/unit/browser/index.js","test-node":"mocha test/unit/node/index.js --delay --ui=tdd --timeout=5000 --exit","test-extension":"vscode-test","preinstall":"node build/npm/preinstall.js","postinstall":"node build/npm/postinstall.js","compile":"node ./node_modules/gulp/bin/gulp.js compile","watch":"npm-run-all -lp watch-client watch-extensions","watchd":"deemon npm run watch","watch-webd":"deemon npm run watch-web","kill-watchd":"deemon --kill npm run watch","kill-watch-webd":"deemon --kill npm run watch-web","restart-watchd":"deemon --restart npm run watch","restart-watch-webd":"deemon --restart npm run watch-web","watch-client":"node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js watch-client","watch-clientd":"deemon npm run watch-client","kill-watch-clientd":"deemon --kill npm run watch-client","watch-extensions":"node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js watch-extensions watch-extension-media","watch-extensionsd":"deemon npm run watch-extensions","kill-watch-extensionsd":"deemon --kill npm run watch-extensions","precommit":"node build/hygiene.js","gulp":"node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js","electron":"node build/lib/electron","7z":"7z","update-grammars":"node build/npm/update-all-grammars.mjs","update-localization-extension":"node build/npm/update-localization-extension.js","smoketest":"node build/lib/preLaunch.js && cd test/smoke && npm run compile && node test/index.js","smoketest-no-compile":"cd test/smoke && node test/index.js","download-builtin-extensions":"node build/lib/builtInExtensions.js","download-builtin-extensions-cg":"node build/lib/builtInExtensionsCG.js","monaco-compile-check":"tsc -p src/tsconfig.monaco.json --noEmit","tsec-compile-check":"node node_modules/tsec/bin/tsec -p src/tsconfig.tsec.json","vscode-dts-compile-check":"tsc -p src/tsconfig.vscode-dts.json && tsc -p src/tsconfig.vscode-proposed-dts.json","valid-layers-check":"node build/lib/layersChecker.js","define-class-fields-check":"node build/lib/propertyInitOrderChecker.js && tsc -p src/tsconfig.defineClassFields.json","update-distro":"node build/npm/update-distro.mjs","web":"echo 'npm run web' is replaced by './scripts/code-server' or './scripts/code-web'","compile-cli":"gulp compile-cli","compile-web":"node ./node_modules/gulp/bin/gulp.js compile-web","watch-web":"node ./node_modules/gulp/bin/gulp.js watch-web","watch-cli":"node ./node_modules/gulp/bin/gulp.js watch-cli","eslint":"node build/eslint","stylelint":"node build/stylelint","playwright-install":"npm exec playwright install","compile-build":"node ./node_modules/gulp/bin/gulp.js compile-build-with-mangling","compile-extensions-build":"node ./node_modules/gulp/bin/gulp.js compile-extensions-build","minify-vscode":"node ./node_modules/gulp/bin/gulp.js minify-vscode","minify-vscode-reh":"node ./node_modules/gulp/bin/gulp.js minify-vscode-reh","minify-vscode-reh-web":"node ./node_modules/gulp/bin/gulp.js minify-vscode-reh-web","hygiene":"node ./node_modules/gulp/bin/gulp.js hygiene","core-ci":"node ./node_modules/gulp/bin/gulp.js core-ci","core-ci-pr":"node ./node_modules/gulp/bin/gulp.js core-ci-pr","extensions-ci":"node ./node_modules/gulp/bin/gulp.js extensions-ci","extensions-ci-pr":"node ./node_modules/gulp/bin/gulp.js extensions-ci-pr","perf":"node scripts/code-perf.js","update-build-ts-version":"npm install typescript@next && tsc -p ./build/tsconfig.build.json"},"dependencies":{"@microsoft/1ds-core-js":"^3.2.13","@microsoft/1ds-post-js":"^3.2.13","@parcel/watcher":"2.5.1","@types/semver":"^7.5.8","@vscode/deviceid":"^0.1.1","@vscode/iconv-lite-umd":"0.7.0","@vscode/policy-watcher":"^1.3.2","@vscode/proxy-agent":"^0.32.0","@vscode/ripgrep":"^1.15.11","@vscode/spdlog":"^0.15.2","@vscode/sqlite3":"5.1.8-vscode","@vscode/sudo-prompt":"9.3.1","@vscode/tree-sitter-wasm":"^0.1.4","@vscode/vscode-languagedetection":"1.0.21","@vscode/windows-mutex":"^0.5.0","@vscode/windows-process-tree":"^0.6.0","@vscode/windows-registry":"^1.1.0","@xterm/addon-clipboard":"^0.2.0-beta.90","@xterm/addon-image":"^0.9.0-beta.107","@xterm/addon-ligatures":"^0.10.0-beta.107","@xterm/addon-progress":"^0.2.0-beta.13","@xterm/addon-search":"^0.16.0-beta.107","@xterm/addon-serialize":"^0.14.0-beta.107","@xterm/addon-unicode11":"^0.9.0-beta.107","@xterm/addon-webgl":"^0.19.0-beta.107","@xterm/headless":"^5.6.0-beta.107","@xterm/xterm":"^5.6.0-beta.107","http-proxy-agent":"^7.0.0","https-proxy-agent":"^7.0.2","jschardet":"3.1.4","kerberos":"2.1.1","minimist":"^1.2.6","native-is-elevated":"0.7.0","native-keymap":"^3.3.5","native-watchdog":"^1.4.1","node-pty":"^1.1.0-beta33","open":"^8.4.2","tas-client-umd":"0.2.0","v8-inspect-profiler":"^0.1.1","vscode-oniguruma":"1.7.0","vscode-regexpp":"^3.1.0","vscode-textmate":"9.2.0","yauzl":"^3.0.0","yazl":"^2.4.3"},"devDependencies":{"@playwright/test":"^1.52.0","@stylistic/eslint-plugin-ts":"^2.8.0","@types/cookie":"^0.3.3","@types/debug":"^4.1.5","@types/eslint":"^9.6.1","@types/gulp-svgmin":"^1.2.1","@types/http-proxy-agent":"^2.0.1","@types/kerberos":"^1.1.2","@types/minimist":"^1.2.1","@types/mocha":"^9.1.1","@types/node":"22.x","@types/sinon":"^10.0.2","@types/sinon-test":"^2.4.2","@types/trusted-types":"^1.0.6","@types/vscode-notebook-renderer":"^1.72.0","@types/webpack":"^5.28.5","@types/wicg-file-system-access":"^2020.9.6","@types/windows-foreground-love":"^0.3.0","@types/winreg":"^1.2.30","@types/yauzl":"^2.10.0","@types/yazl":"^2.4.2","@typescript-eslint/utils":"^8.8.0","@vscode/gulp-electron":"^1.36.0","@vscode/l10n-dev":"0.0.35","@vscode/telemetry-extractor":"^1.10.2","@vscode/test-cli":"^0.0.6","@vscode/test-electron":"^2.4.0","@vscode/test-web":"^0.0.62","@vscode/v8-heap-parser":"^0.1.0","@vscode/vscode-perf":"^0.0.19","@webgpu/types":"^0.1.44","ansi-colors":"^3.2.3","asar":"^3.0.3","chromium-pickle-js":"^0.2.0","cookie":"^0.7.2","copy-webpack-plugin":"^11.0.0","css-loader":"^6.9.1","debounce":"^1.0.0","deemon":"^1.13.4","electron":"35.5.1","eslint":"^9.11.1","eslint-formatter-compact":"^8.40.0","eslint-plugin-header":"3.1.1","eslint-plugin-jsdoc":"^50.3.1","eslint-plugin-local":"^6.0.0","event-stream":"3.3.4","fancy-log":"^1.3.3","file-loader":"^6.2.0","glob":"^5.0.13","gulp":"^4.0.0","gulp-azure-storage":"^0.12.1","gulp-bom":"^3.0.0","gulp-buffer":"0.0.2","gulp-filter":"^5.1.0","gulp-flatmap":"^1.0.2","gulp-gunzip":"^1.0.0","gulp-gzip":"^1.4.2","gulp-json-editor":"^2.5.0","gulp-plumber":"^1.2.0","gulp-rename":"^1.2.0","gulp-replace":"^0.5.4","gulp-sourcemaps":"^3.0.0","gulp-svgmin":"^4.1.0","gulp-untar":"^0.0.7","husky":"^0.13.1","innosetup":"^6.4.1","istanbul-lib-coverage":"^3.2.0","istanbul-lib-instrument":"^6.0.1","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.1","istanbul-reports":"^3.1.5","lazy.js":"^0.4.2","merge-options":"^1.0.1","mime":"^1.4.1","minimatch":"^3.0.4","minimist":"^1.2.6","mocha":"^10.8.2","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1","npm-run-all":"^4.1.5","os-browserify":"^0.3.0","p-all":"^1.0.0","path-browserify":"^1.0.1","pump":"^1.0.1","rcedit":"^1.1.0","rimraf":"^2.2.8","sinon":"^12.0.1","sinon-test":"^3.1.3","source-map":"0.6.1","source-map-support":"^0.3.2","style-loader":"^3.3.2","ts-loader":"^9.5.1","ts-node":"^10.9.1","tsec":"0.2.7","tslib":"^2.6.3","typescript":"^5.9.0-dev.20250522","typescript-eslint":"^8.8.0","util":"^0.12.4","webpack":"^5.94.0","webpack-cli":"^5.1.4","webpack-stream":"^7.0.0","xml2js":"^0.5.0","yaserver":"^0.4.0"},"overrides":{"node-gyp-build":"4.8.1","kerberos@2.1.1":{"node-addon-api":"7.1.0"}},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"},"bugs":{"url":"https://github.com/microsoft/vscode/issues"},"optionalDependencies":{"windows-foreground-love":"0.5.0"},"desktopName":"code.desktop"};ym.BUILD_INSERT_PACKAGE_CONFIGURATION&&(ym=L9("../package.json"));var yi=vm,pI=ym;Ms();var mI=uI(import.meta.url),gI=lI.dirname(hI(import.meta.url));if((process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&dI(`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={...yi},process.env.VSCODE_DEV)try{const t=mI("../product.overrides.json");globalThis._VSCODE_PRODUCT_JSON=Object.assign(globalThis._VSCODE_PRODUCT_JSON,t)}catch{}globalThis._VSCODE_PACKAGE_JSON={...pI},globalThis._VSCODE_FILE_ROOT=gI;var bm=void 0;function wI(){return bm||(bm=vI()),bm}async function vI(){Ne("code/willLoadNls");let t,e;if(process.env.VSCODE_NLS_CONFIG)try{t=JSON.parse(process.env.VSCODE_NLS_CONFIG),t?.languagePack?.messagesFile?e=t.languagePack.messagesFile:t?.defaultMessagesFile&&(e=t.defaultMessagesFile),globalThis._VSCODE_NLS_LANGUAGE=t?.resolvedLanguage}catch(i){console.error(`Error reading VSCODE_NLS_CONFIG from environment: ${i}`)}if(!(process.env.VSCODE_DEV||!e)){try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await wm.promises.readFile(e)).toString())}catch(i){if(console.error(`Error reading NLS messages file ${e}: ${i}`),t?.languagePack?.corruptMarkerFile)try{await wm.promises.writeFile(t.languagePack.corruptMarkerFile,"corrupted")}catch(s){console.error(`Error writing corrupted NLS marker file: ${s}`)}if(t?.defaultMessagesFile&&t.defaultMessagesFile!==e)try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await wm.promises.readFile(t.defaultMessagesFile)).toString())}catch(s){console.error(`Error reading default NLS messages file ${t.defaultMessagesFile}: ${s}`)}}return Ne("code/didLoadNls"),t}}async function yI(){await wI()}var bI=Nm(Wm(),1);import{fileURLToPath as kI}from"url";import{app as Fe,protocol as SI,crashReporter as EI,Menu as xI,contentTracing as PI}from"electron";Bm(),Hm(),Ms(),ge(),Ms(),gt();import{promises as tr}from"fs";async function M9({userLocale:t,osLocale:e,userDataPath:i,commit:s,nlsMetadataPath:r}){if(Ne("code/willGenerateNls"),process.env.VSCODE_DEV||t==="pseudo"||t.startsWith("en")||!s||!i)return Cc(t,e,r);try{const n=await $I(i);if(!n)return Cc(t,e,r);const o=AI(n,t);if(!o)return Cc(t,e,r);const a=n[o],c=a?.translations?.vscode;if(!a||typeof a.hash!="string"||!a.translations||typeof c!="string"||!await te.exists(c))return Cc(t,e,r);const l=`${a.hash}.${o}`,h=M(i,"clp",l),u=M(h,s),f=M(u,"nls.messages.json"),p=M(h,"tcf.json"),m=M(h,"corrupted.info");await te.exists(m)&&await tr.rm(h,{recursive:!0,force:!0,maxRetries:3});const w={userLocale:t,osLocale:e,resolvedLanguage:o,defaultMessagesFile:M(r,"nls.messages.json"),languagePack:{translationsConfigFile:p,messagesFile:f,corruptMarkerFile:m},locale:t,availableLanguages:{"*":o},_languagePackId:l,_languagePackSupport:!0,_translationsConfigFile:p,_cacheRoot:h,_resolvedLanguagePackCoreLocation:u,_corruptedFile:m};if(await te.exists(u))return DI(u).catch(()=>{}),Ne("code/didGenerateNls"),w;const[,y,b,E]=await Promise.all([tr.mkdir(u,{recursive:!0}),tr.readFile(M(r,"nls.keys.json"),"utf-8").then(W=>JSON.parse(W)),tr.readFile(M(r,"nls.messages.json"),"utf-8").then(W=>JSON.parse(W)),tr.readFile(c,"utf-8").then(W=>JSON.parse(W))]),A=[];let R=0;for(const[W,se]of y){const F=E.contents[W];for(const H of se)A.push(F?.[H]||b[R]),R++}return await Promise.all([tr.writeFile(f,JSON.stringify(A),"utf-8"),tr.writeFile(p,JSON.stringify(a.translations),"utf-8")]),Ne("code/didGenerateNls"),w}catch(n){console.error("Generating translation files failed.",n)}return Cc(t,e,r)}async function $I(t){const e=M(t,"languagepacks.json");try{return JSON.parse(await tr.readFile(e,"utf-8"))}catch{return}}function AI(t,e){try{for(;e;){if(t[e])return e;const i=e.lastIndexOf("-");if(i>0)e=e.substring(0,i);else return}}catch(i){console.error("Resolving language pack configuration failed.",i)}}function Cc(t,e,i){return Ne("code/didGenerateNls"),{userLocale:t,osLocale:e,resolvedLanguage:"en",defaultMessagesFile:M(i,"nls.messages.json"),locale:t,availableLanguages:{}}}function DI(t){const e=new Date;return tr.utimes(t,e,e)}la();var km=er.dirname(kI(import.meta.url));Ne("code/didStartMain"),Ne("code/willLoadMainBundle",{startTime:Math.floor(sI.timeOrigin)}),Ne("code/didLoadMainBundle");var F9=cI(yi),Di=NI(),ed=CI(Di);Di.sandbox&&!Di["disable-chromium-sandbox"]&&!ed["disable-chromium-sandbox"]?Fe.enableSandbox():Fe.commandLine.hasSwitch("no-sandbox")&&!Fe.commandLine.hasSwitch("disable-gpu-sandbox")?Fe.commandLine.appendSwitch("disable-gpu-sandbox"):(Fe.commandLine.appendSwitch("no-sandbox"),Fe.commandLine.appendSwitch("disable-gpu-sandbox"));var Lo=jm(Di,yi.nameShort??"code-oss-dev");if(process.platform==="win32"){const t=Qg(Lo);t&&ca(t)}Fe.setPath("userData",Lo);var N9=_I();xI.setApplicationMenu(null),Ne("code/willStartCrashReporter"),(Di["crash-reporter-directory"]||ed["enable-crash-reporter"]&&!Di["disable-crash-reporter"])&&MI(),Ne("code/didStartCrashReporter"),F9&&F9.isPortable&&Fe.setAppLogsPath(er.join(Lo,"logs")),SI.registerSchemesAsPrivileged([{scheme:"vscode-webview",privileges:{standard:!0,secure:!0,supportFetchAPI:!0,corsEnabled:!0,allowServiceWorkers:!0,codeCache:!0}},{scheme:"vscode-file",privileges:{secure:!0,standard:!0,supportFetchAPI:!0,corsEnabled:!0,codeCache:!0}}]),WI();var Sm=void 0,Em=_9((Fe.getPreferredSystemLanguages()?.[0]??"en").toLowerCase()),Rc=UI(ed);if(Rc&&(Sm=M9({userLocale:Rc,osLocale:Em,commit:yi.commit,userDataPath:Lo,nlsMetadataPath:km})),process.platform==="win32"||process.platform==="linux"){const t=!Rc||Rc==="qps-ploc"?"en":Rc;Fe.commandLine.appendSwitch("lang",t)}Fe.once("ready",function(){if(Di.trace){let t;if(Di["trace-memory-infra"]){const e=Di["trace-category-filter"]?.split(",")||[];e.push("disabled-by-default-memory-infra","disabled-by-default-memory-infra.v8.code_stats"),t={included_categories:e,excluded_categories:["*"],memory_dump_config:{allowed_dump_modes:["light","detailed"],triggers:[{type:"periodic_interval",mode:"detailed",min_time_between_dumps_ms:1e4},{type:"periodic_interval",mode:"light",min_time_between_dumps_ms:1e3}]}}}else t={categoryFilter:Di["trace-category-filter"]||"*",traceOptions:Di["trace-options"]||"record-until-full,enable-sampling"};PI.startRecording(t).finally(()=>W9())}else W9()});async function W9(){Ne("code/mainAppReady");try{const[,t]=await Promise.all([TI(N9),BI()]);await II(N9,t)}catch(t){console.error(t)}}async function II(t,e){process.env.VSCODE_NLS_CONFIG=JSON.stringify(e),process.env.VSCODE_CODE_CACHE_PATH=t||"",await yI(),await Promise.resolve().then(()=>(tI(),YD)),Ne("code/didRunMainBundle")}function CI(t){const e=["disable-hardware-acceleration","force-color-profile","disable-lcd-text","proxy-bypass-list"];process.platform==="linux"&&(e.push("force-renderer-accessibility"),e.push("password-store"));const i=["enable-proposed-api","log-level","use-inmemory-secretstorage","enable-rdp-display-tracking"],s=RI();Object.keys(s).forEach(c=>{const l=s[c];if(e.indexOf(c)!==-1){if(l===!0||l==="true")c==="disable-hardware-acceleration"?Fe.disableHardwareAcceleration():Fe.commandLine.appendSwitch(c);else if(typeof l=="string"&&l)if(c==="password-store"){let h=l;(l==="gnome"||l==="gnome-keyring")&&(h="gnome-libsecret"),Fe.commandLine.appendSwitch(c,h)}else Fe.commandLine.appendSwitch(c,l)}else if(i.indexOf(c)!==-1)switch(c){case"enable-proposed-api":Array.isArray(l)?l.forEach(h=>h&&typeof h=="string"&&process.argv.push("--enable-proposed-api",h)):console.error("Unexpected value for `enable-proposed-api` in argv.json. Expected array of extension ids.");break;case"log-level":if(typeof l=="string")process.argv.push("--log",l);else if(Array.isArray(l))for(const h of l)process.argv.push("--log",h);break;case"use-inmemory-secretstorage":l&&process.argv.push("--use-inmemory-secretstorage");break;case"enable-rdp-display-tracking":l&&process.argv.push("--enable-rdp-display-tracking");break}});const r=`DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync,${Fe.commandLine.getSwitchValue("enable-features")}`;Fe.commandLine.appendSwitch("enable-features",r);const n=`CalculateNativeWinOcclusion,${Fe.commandLine.getSwitchValue("disable-features")}`;Fe.commandLine.appendSwitch("disable-features",n);const o=`FontMatchingCTMigration,StandardizedBrowserZoom,${Fe.commandLine.getSwitchValue("disable-blink-features")}`;Fe.commandLine.appendSwitch("disable-blink-features",o);const a=FI(t);return a&&Fe.commandLine.appendSwitch("js-flags",a),Fe.commandLine.appendSwitch("xdg-portal-required-version","4"),s}function RI(){const t=LI();let e;try{e=_m(vn.readFileSync(t).toString())}catch(i){i&&i.code==="ENOENT"?OI(t):console.warn(`Unable to read argv.json configuration file in ${t}, falling back to defaults (${i})`)}return e||(e={}),e}function OI(t){try{const e=er.dirname(t);vn.existsSync(e)||vn.mkdirSync(e);const i=["// This configuration file allows you to pass permanent command line arguments to VS Code.","// Only a subset of arguments is currently supported to reduce the likelihood of breaking","// the installation.","//","// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT","//","// NOTE: Changing this file requires a restart of VS Code.","{"," // Use software rendering instead of hardware accelerated rendering."," // This can help in cases where you see rendering issues in VS Code.",' // "disable-hardware-acceleration": true',"}"];vn.writeFileSync(t,i.join(`
`))}catch(e){console.error(`Unable to create argv.json configuration file in ${t}, falling back to defaults (${e})`)}}function LI(){const t=process.env.VSCODE_PORTABLE;if(t)return er.join(t,"argv.json");let e=yi.dataFolderName;return process.env.VSCODE_DEV&&(e=`${e}-dev`),er.join(iI.homedir(),e,"argv.json")}function MI(){let t=Di["crash-reporter-directory"],e="";if(t){if(t=er.normalize(t),er.isAbsolute(t)||(console.error(`The path '${t}' specified for --crash-reporter-directory must be absolute.`),Fe.exit(1)),!vn.existsSync(t))try{vn.mkdirSync(t,{recursive:!0})}catch{console.error(`The path '${t}' specified for --crash-reporter-directory does not seem to exist or cannot be created.`),Fe.exit(1)}console.log(`Found --crash-reporter-directory argument. Setting crashDumps directory to be '${t}'`),Fe.setPath("crashDumps",t)}else{const n=yi.appCenter;if(n){const o=process.platform==="win32",a=process.platform==="linux",c=process.platform==="darwin",l=ed["crash-reporter-id"];if(l&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(l)){if(o)switch(process.arch){case"x64":e=n["win32-x64"];break;case"arm64":e=n["win32-arm64"];break}else if(c)if(yi.darwinUniversalAssetId)e=n["darwin-universal"];else switch(process.arch){case"x64":e=n.darwin;break;case"arm64":e=n["darwin-arm64"];break}else a&&(e=n["linux-x64"]);e=e.concat("&uid=",l,"&iid=",l,"&sid=",l);const u=process.argv,f=u.indexOf("--");f===-1?u.push("--crash-reporter-id",l):u.splice(f,0,"--crash-reporter-id",l)}}}const i=(yi.crashReporter?yi.crashReporter.productName:void 0)||yi.nameShort,s=(yi.crashReporter?yi.crashReporter.companyName:void 0)||"Microsoft",r=!!(!process.env.VSCODE_DEV&&e&&!t);EI.start({companyName:s,productName:process.env.VSCODE_DEV?`${i} Dev`:i,submitURL:e,uploadToServer:r,compress:!0})}function FI(t){const e=[];return t["js-flags"]&&e.push(t["js-flags"]),process.platform==="linux"&&e.push("--nodecommit_pooled_pages"),e.length>0?e.join(" "):null}function NI(){return(0,bI.default)(process.argv,{string:["user-data-dir","locale","js-flags","crash-reporter-directory"],boolean:["disable-chromium-sandbox"],default:{sandbox:!0},alias:{"no-sandbox":"sandbox"}})}function WI(){const t=[];globalThis.macOpenFiles=t,Fe.on("open-file",function(s,r){t.push(r)});const e=[],i=function(s,r){s.preventDefault(),e.push(r)};Fe.on("will-finish-launching",function(){Fe.on("open-url",i)}),globalThis.getOpenUrls=function(){return Fe.removeListener("open-url",i),e}}function _I(){if(process.argv.indexOf("--no-cached-data")>0||process.env.VSCODE_DEV)return;const t=yi.commit;if(t)return er.join(Lo,"CachedData",t)}async function TI(t){if(typeof t=="string")try{return await vn.promises.mkdir(t,{recursive:!0}),t}catch{}}function _9(t){if(t.startsWith("zh")){const e=t.split("-")[1];return["hans","cn","sg","my"].includes(e)?"zh-cn":"zh-tw"}return t}async function BI(){const t=Sm?await Sm:void 0;if(t)return t;let e=Fe.getLocale();return e?(e=_9(e.toLowerCase()),M9({userLocale:e,osLocale:Em,commit:yi.commit,userDataPath:Lo,nlsMetadataPath:km})):{userLocale:"en",osLocale:Em,resolvedLanguage:"en",defaultMessagesFile:er.join(km,"nls.messages.json"),locale:"en",availableLanguages:{}}}function UI(t){const e=Di.locale;return e?e.toLowerCase():typeof t?.locale=="string"?t.locale.toLowerCase():void 0}
//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/2901c5ac6db8a986a5666c3af51ff804d05af0d4/core/main.js.map