@runeya/runeya
Version:
Monitor processes as a stack
5 lines • 10.2 MB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/freemarker2-Dge1jJSo.js","assets/index-CXxIspfv.js","assets/index-CHlc7El7.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/handlebars-BQUNzyLB.js","assets/html-LMshxxAF.js","assets/javascript-BnEJpJTu.js","assets/typescript-D3loDqtH.js","assets/liquid-Drod9cLf.js","assets/mdx-BraoJZ-1.js","assets/python-DifTGF0I.js","assets/razor-Bht1fZ5r.js","assets/xml-BJ4p8END.js","assets/yaml-BbNtQaAJ.js","assets/cssMode-DbeIxtfB.js","assets/htmlMode-DHM_bD6t.js","assets/jsonMode-BpYxT9uo.js","assets/tsMode-Dz1iQ8X4.js"])))=>i.map(i=>d[i]);
import{aa as ye,r as Z6,a2 as uH,j as hH,i as fH,ac as pH,a as mH,o as gH}from"./index-CXxIspfv.js";import{_ as _H}from"./_plugin-vue_export-helper-DlAUqK2U.js";function Io(o,e=0){return o[o.length-(1+e)]}function yH(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function gn(o,e,t=(n,i)=>n===i){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let n=0,i=o.length;n<i;n++)if(!t(o[n],e[n]))return!1;return!0}function bH(o,e){const t=o.length-1;e<t&&(o[e]=o[t]),o.pop()}function $_(o,e,t){return vH(o.length,n=>t(o[n],e))}function vH(o,e){let t=0,n=o-1;for(;t<=n;){const i=(t+n)/2|0,r=e(i);if(r<0)t=i+1;else if(r>0)n=i-1;else return i}return-(t+1)}function oT(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],i=[],r=[],s=[];for(const a of e){const l=t(a,n);l<0?i.push(a):l>0?r.push(a):s.push(a)}return o<i.length?oT(o,i,t):o<i.length+s.length?s[0]:oT(o-(i.length+s.length),r,t)}function eM(o,e){const t=[];let n;for(const i of o.slice(0).sort(e))!n||e(n[0],i)!==0?(n=[i],t.push(n)):n.push(i);return t}function*SD(o,e){let t,n;for(const i of o)n!==void 0&&e(n,i)?t.push(i):(t&&(yield t),t=[i]),n=i;t&&(yield t)}function sP(o,e){for(let t=0;t<=o.length;t++)e(t===0?void 0:o[t-1],t===o.length?void 0:o[t])}function SH(o,e){for(let t=0;t<o.length;t++)e(t===0?void 0:o[t-1],o[t],t+1===o.length?void 0:o[t+1])}function na(o){return o.filter(e=>!!e)}function tM(o){let e=0;for(let t=0;t<o.length;t++)o[t]&&(o[e]=o[t],e+=1);o.length=e}function aP(o){return!Array.isArray(o)||o.length===0}function Fi(o){return Array.isArray(o)&&o.length>0}function Nd(o,e=t=>t){const t=new Set;return o.filter(n=>{const i=e(n);return t.has(i)?!1:(t.add(i),!0)})}function wD(o,e){return o.length>0?o[0]:e}function tr(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const n=[];if(t<=e)for(let i=t;i<e;i++)n.push(i);else for(let i=t;i>e;i--)n.push(i);return n}function Dw(o,e,t){const n=o.slice(0,e),i=o.slice(e);return n.concat(t,i)}function ex(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function vy(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function sT(o,e){for(const t of e)o.push(t)}function CD(o){return Array.isArray(o)?o:[o]}function wH(o,e,t){const n=lP(o,e),i=o.length,r=t.length;o.length=i+r;for(let s=i-1;s>=n;s--)o[s+r]=o[s];for(let s=0;s<r;s++)o[s+n]=t[s]}function nM(o,e,t,n){const i=lP(o,e);let r=o.splice(i,t);return r===void 0&&(r=[]),wH(o,i,n),r}function lP(o,e){return e<0?Math.max(e+o.length,0):Math.min(e,o.length)}var J_;(function(o){function e(r){return r<0}o.isLessThan=e;function t(r){return r<=0}o.isLessThanOrEqual=t;function n(r){return r>0}o.isGreaterThan=n;function i(r){return r===0}o.isNeitherLessOrGreaterThan=i,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(J_||(J_={}));function Wo(o,e){return(t,n)=>e(o(t),o(n))}function CH(...o){return(e,t)=>{for(const n of o){const i=n(e,t);if(!J_.isNeitherLessOrGreaterThan(i))return i}return J_.neitherLessOrGreaterThan}}const ac=(o,e)=>o-e,EH=(o,e)=>ac(o?1:0,e?1:0);function cP(o){return(e,t)=>-o(e,t)}class gc{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class il{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new il(t=>this.iterate(n=>e(n)?t(n):!0))}map(e){return new il(t=>this.iterate(n=>t(e(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(i=>((n||J_.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0)),t}}il.empty=new il(o=>{});function dr(o){return typeof o=="string"}function sr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function xH(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function Rd(o){return typeof o=="number"&&!isNaN(o)}function iM(o){return!!o&&typeof o[Symbol.iterator]=="function"}function dP(o){return o===!0||o===!1}function Wr(o){return typeof o>"u"}function Ch(o){return!co(o)}function co(o){return Wr(o)||o===null}function Lt(o,e){if(!o)throw new Error("Unexpected type")}function Zc(o){if(co(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function X_(o){return typeof o=="function"}function TH(o,e){const t=Math.min(o.length,e.length);for(let n=0;n<t;n++)LH(o[n],e[n])}function LH(o,e){if(dr(e)){if(typeof o!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(X_(e)){try{if(o instanceof e)return}catch{}if(!co(o)&&o.constructor===e||e.length===1&&e.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Ul(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.entries(o).forEach(([t,n])=>{e[t]=n&&typeof n=="object"?Ul(n):n}),e}function kH(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const n in t)if(uP.call(t,n)){const i=t[n];typeof i=="object"&&!Object.isFrozen(i)&&!xH(i)&&e.push(i)}}return o}const uP=Object.prototype.hasOwnProperty;function hP(o,e){return aT(o,e,new Set)}function aT(o,e,t){if(co(o))return o;const n=e(o);if(typeof n<"u")return n;if(Array.isArray(o)){const i=[];for(const r of o)i.push(aT(r,e,t));return i}if(sr(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const i={};for(const r in o)uP.call(o,r)&&(i[r]=aT(o[r],e,t));return t.delete(o),i}return o}function Nw(o,e,t=!0){return sr(o)?(sr(e)&&Object.keys(e).forEach(n=>{n in o?t&&(sr(o[n])&&sr(e[n])?Nw(o[n],e[n],t):o[n]=e[n]):o[n]=e[n]}),o):e}function yo(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,n;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t<o.length;t++)if(!yo(o[t],e[t]))return!1}else{const i=[];for(n in o)i.push(n);i.sort();const r=[];for(n in e)r.push(n);if(r.sort(),!yo(i,r))return!1;for(t=0;t<i.length;t++)if(!yo(o[i[t]],e[i[t]]))return!1}return!0}function AH(o){let e=[];for(;Object.prototype!==o;)e=e.concat(Object.getOwnPropertyNames(o)),o=Object.getPrototypeOf(o);return e}function ED(o){const e=[];for(const t of AH(o))typeof o[t]=="function"&&e.push(t);return e}function IH(o,e){const t=i=>function(){const r=Array.prototype.slice.call(arguments,0);return e(i,r)},n={};for(const i of o)n[i]=t(i);return n}let DH=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function fP(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(n,i)=>{const r=i[0],s=e[r];let a=n;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),DH&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return fP(e,t)}function Br(o,e,...t){const n=fP(e,t);return{value:n,original:n}}var tx;const Qf="en";let kv=!1,Av=!1,Gb=!1,pP=!1,xD=!1,TD=!1,mP=!1,Sy,zb=Qf,rM=Qf,NH,Is;const lc=globalThis;let nr;typeof lc.vscode<"u"&&typeof lc.vscode.process<"u"?nr=lc.vscode.process:typeof process<"u"&&(nr=process);const RH=typeof((tx=nr==null?void 0:nr.versions)===null||tx===void 0?void 0:tx.electron)=="string",MH=RH&&(nr==null?void 0:nr.type)==="renderer";if(typeof nr=="object"){kv=nr.platform==="win32",Av=nr.platform==="darwin",Gb=nr.platform==="linux",Gb&&nr.env.SNAP&&nr.env.SNAP_REVISION,nr.env.CI||nr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Sy=Qf,zb=Qf;const o=nr.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];Sy=e.locale,rM=e.osLocale,zb=t||Qf,NH=e._translationsConfigFile}catch{}pP=!0}else typeof navigator=="object"&&!MH?(Is=navigator.userAgent,kv=Is.indexOf("Windows")>=0,Av=Is.indexOf("Macintosh")>=0,TD=(Is.indexOf("Macintosh")>=0||Is.indexOf("iPad")>=0||Is.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Gb=Is.indexOf("Linux")>=0,mP=(Is==null?void 0:Is.indexOf("Mobi"))>=0,xD=!0,m({},"_"),Sy=Qf,zb=Sy,rM=navigator.language):console.error("Unable to resolve platform.");const Bi=kv,at=Av,hr=Gb,dl=pP,au=xD,OH=xD&&typeof lc.importScripts=="function",PH=OH?lc.origin:void 0,ia=TD,gP=mP,ul=Is,FH=zb,BH=typeof lc.postMessage=="function"&&!lc.importScripts,_P=(()=>{if(BH){const o=[];lc.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=o.length;n<i;n++){const r=o[n];if(r.id===t.data.vscodeScheduleAsyncWork){o.splice(n,1),r.callback();return}}});let e=0;return t=>{const n=++e;o.push({id:n,callback:t}),lc.postMessage({vscodeScheduleAsyncWork:n},"*")}}return o=>setTimeout(o)})(),mo=Av||TD?2:kv?1:3;let oM=!0,sM=!1;function yP(){if(!sM){sM=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,oM=new Uint16Array(o.buffer)[0]===513}return oM}const bP=!!(ul&&ul.indexOf("Chrome")>=0),VH=!!(ul&&ul.indexOf("Firefox")>=0),WH=!!(!bP&&ul&&ul.indexOf("Safari")>=0),UH=!!(ul&&ul.indexOf("Edg/")>=0),HH=!!(ul&&ul.indexOf("Android")>=0),Oi={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var lt;(function(o){function e(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function n(){return t}o.empty=n;function*i(v){yield v}o.single=i;function r(v){return e(v)?v:i(v)}o.wrap=r;function s(v){return v||t}o.from=s;function*a(v){for(let S=v.length-1;S>=0;S--)yield v[S]}o.reverse=a;function l(v){return!v||v[Symbol.iterator]().next().done===!0}o.isEmpty=l;function c(v){return v[Symbol.iterator]().next().value}o.first=c;function d(v,S){for(const w of v)if(S(w))return!0;return!1}o.some=d;function u(v,S){for(const w of v)if(S(w))return w}o.find=u;function*h(v,S){for(const w of v)S(w)&&(yield w)}o.filter=h;function*f(v,S){let w=0;for(const E of v)yield S(E,w++)}o.map=f;function*p(...v){for(const S of v)yield*S}o.concat=p;function g(v,S,w){let E=w;for(const x of v)E=S(E,x);return E}o.reduce=g;function*_(v,S,w=v.length){for(S<0&&(S+=v.length),w<0?w+=v.length:w>v.length&&(w=v.length);S<w;S++)yield v[S]}o.slice=_;function y(v,S=Number.POSITIVE_INFINITY){const w=[];if(S===0)return[w,v];const E=v[Symbol.iterator]();for(let x=0;x<S;x++){const k=E.next();if(k.done)return[w,o.empty()];w.push(k.value)}return[w,{[Symbol.iterator](){return E}}]}o.consume=y;async function b(v){const S=[];for await(const w of v)S.push(w);return Promise.resolve(S)}o.asyncToArray=b})(lt||(lt={}));let Wn=class lT{constructor(e){this.element=e,this.next=lT.Undefined,this.prev=lT.Undefined}};Wn.Undefined=new Wn(void 0);class ar{constructor(){this._first=Wn.Undefined,this._last=Wn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Wn.Undefined}clear(){let e=this._first;for(;e!==Wn.Undefined;){const t=e.next;e.prev=Wn.Undefined,e.next=Wn.Undefined,e=t}this._first=Wn.Undefined,this._last=Wn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Wn(e);if(this._first===Wn.Undefined)this._first=n,this._last=n;else if(t){const r=this._last;this._last=n,n.prev=r,r.next=n}else{const r=this._first;this._first=n,n.next=r,r.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==Wn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Wn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Wn.Undefined&&e.next!==Wn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Wn.Undefined&&e.next===Wn.Undefined?(this._first=Wn.Undefined,this._last=Wn.Undefined):e.next===Wn.Undefined?(this._last=this._last.prev,this._last.next=Wn.Undefined):e.prev===Wn.Undefined&&(this._first=this._first.next,this._first.prev=Wn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Wn.Undefined;)yield e.element,e=e.next}}const vP="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function GH(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of vP)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const LD=GH();function kD(o){let e=LD;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const SP=new ar;SP.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Y_(o,e,t,n,i){if(e=kD(e),i||(i=lt.first(SP)),t.length>i.maxLen){let c=o-i.maxLen/2;return c<0?c=0:n+=c,t=t.substring(c,o+i.maxLen/2),Y_(o,e,t,n,i)}const r=Date.now(),s=o-1-n;let a=-1,l=null;for(let c=1;!(Date.now()-r>=i.timeBudget);c++){const d=s-i.windowSize*c;e.lastIndex=Math.max(0,d);const u=zH(e,t,s,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:n+1+l.index,endColumn:n+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function zH(o,e,t,n){let i;for(;i=o.exec(e);){const r=i.index||0;if(r<=t&&o.lastIndex>=t)return i;if(n>0&&r>n)return null}return null}const Mc=8;class wP{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class CP{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class nn{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}applyUpdate(e,t){return Rw(e,t)}compute(e,t,n){return n}}class p_{constructor(e,t){this.newValue=e,this.didChange=t}}function Rw(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new p_(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const n=Array.isArray(o)&&Array.isArray(e)&&gn(o,e);return new p_(e,!n)}let t=!1;for(const n in e)if(e.hasOwnProperty(n)){const i=Rw(o[n],e[n]);i.didChange&&(o[n]=i.newValue,t=!0)}return new p_(o,t)}class T0{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return Rw(e,t)}validate(e){return this.defaultValue}}class Um{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}applyUpdate(e,t){return Rw(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,n){return n}}function Se(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class ht extends Um{constructor(e,t,n,i=void 0){typeof i<"u"&&(i.type="boolean",i.default=n),super(e,t,n,i)}validate(e){return Se(e,this.defaultValue)}}function Bu(o,e,t,n){if(typeof o>"u")return e;let i=parseInt(o,10);return isNaN(i)?e:(i=Math.max(t,i),i=Math.min(n,i),i|0)}class Rt extends Um{static clampedInt(e,t,n,i){return Bu(e,t,n,i)}constructor(e,t,n,i,r,s=void 0){typeof s<"u"&&(s.type="integer",s.default=n,s.minimum=i,s.maximum=r),super(e,t,n,s),this.minimum=i,this.maximum=r}validate(e){return Rt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function jH(o,e,t,n){if(typeof o>"u")return e;const i=ds.float(o,e);return ds.clamp(i,t,n)}class ds extends Um{static clamp(e,t,n){return e<t?t:e>n?n:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const n=parseFloat(e);return isNaN(n)?t:n}constructor(e,t,n,i,r){typeof r<"u"&&(r.type="number",r.default=n),super(e,t,n,r),this.validationFn=i}validate(e){return this.validationFn(ds.float(e,this.defaultValue))}}class Cr extends Um{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,n,i=void 0){typeof i<"u"&&(i.type="string",i.default=n),super(e,t,n,i)}validate(e){return Cr.string(e,this.defaultValue)}}function Cn(o,e,t,n){return typeof o!="string"?e:n&&o in n?n[o]:t.indexOf(o)===-1?e:o}class on extends Um{constructor(e,t,n,i,r=void 0){typeof r<"u"&&(r.type="string",r.enum=i,r.default=n),super(e,t,n,r),this._allowedValues=i}validate(e){return Cn(e,this.defaultValue,this._allowedValues)}}class wy extends nn{constructor(e,t,n,i,r,s,a=void 0){typeof a<"u"&&(a.type="string",a.enum=r,a.default=i),super(e,t,n,a),this._allowedValues=r,this._convert=s}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function KH(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class qH extends nn{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","Optimize for usage with a Screen Reader."),m("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,n){return n===0?e.accessibilitySupport:n}}class $H extends nn{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Se(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Se(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function JH(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var gi;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(gi||(gi={}));function XH(o){switch(o){case"line":return gi.Line;case"block":return gi.Block;case"underline":return gi.Underline;case"line-thin":return gi.LineThin;case"block-outline":return gi.BlockOutline;case"underline-thin":return gi.UnderlineThin}}class YH extends T0{constructor(){super(140)}compute(e,t,n){const i=["monaco-editor"];return t.get(39)&&i.push(t.get(39)),e.extraEditorClassName&&i.push(e.extraEditorClassName),t.get(73)==="default"?i.push("mouse-default"):t.get(73)==="copy"&&i.push("mouse-copy"),t.get(110)&&i.push("showUnused"),t.get(138)&&i.push("showDeprecated"),i.join(" ")}}class QH extends ht{constructor(){super(37,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}class ZH extends nn{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:at},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Se(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Cn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Cn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Se(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Se(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Se(t.loop,this.defaultValue.loop)}}}class uo extends nn{constructor(){super(51,"fontLigatures",uo.OFF,{anyOf:[{type:"boolean",description:m("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?uo.OFF:e==="true"?uo.ON:e:e?uo.ON:uo.OFF}}uo.OFF='"liga" off, "calt" off';uo.ON='"liga" on, "calt" on';class js extends nn{constructor(){super(54,"fontVariations",js.OFF,{anyOf:[{type:"boolean",description:m("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?js.OFF:e==="true"?js.TRANSLATE:e:e?js.TRANSLATE:js.OFF}compute(e,t,n){return e.fontInfo.fontVariationSettings}}js.OFF="normal";js.TRANSLATE="translate";class eG extends T0{constructor(){super(50)}compute(e,t,n){return e.fontInfo}}class tG extends Um{constructor(){super(52,"fontSize",kr.fontSize,{type:"number",minimum:6,maximum:100,default:kr.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=ds.float(e,this.defaultValue);return t===0?kr.fontSize:ds.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}class Ba extends nn{constructor(){super(53,"fontWeight",kr.fontWeight,{anyOf:[{type:"number",minimum:Ba.MINIMUM_VALUE,maximum:Ba.MAXIMUM_VALUE,errorMessage:m("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ba.SUGGESTION_VALUES}],default:kr.fontWeight,description:m("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Rt.clampedInt(e,kr.fontWeight,Ba.MINIMUM_VALUE,Ba.MAXIMUM_VALUE))}}Ba.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ba.MINIMUM_VALUE=1;Ba.MAXIMUM_VALUE=1e3;class nG extends nn{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),m("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:m("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:m("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:m("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:m("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,n,i,r,s;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Cn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Cn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=a.multipleTypeDefinitions)!==null&&n!==void 0?n:Cn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(i=a.multipleDeclarations)!==null&&i!==void 0?i:Cn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(r=a.multipleImplementations)!==null&&r!==void 0?r:Cn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(s=a.multipleReferences)!==null&&s!==void 0?s:Cn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Cr.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Cr.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Cr.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Cr.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Cr.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class iG extends nn{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Se(t.enabled,this.defaultValue.enabled),delay:Rt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Se(t.sticky,this.defaultValue.sticky),hidingDelay:Rt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Se(t.above,this.defaultValue.above)}}}class wp extends T0{constructor(){super(143)}compute(e,t,n){return wp.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let i=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(i=Math.max(i,t-1));const r=(n+e.viewLineCount+i)/(e.pixelRatio*e.height),s=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:i,desiredRatio:r,minimapLineCount:s}}static _computeMinimapLayout(e,t){const n=e.outerWidth,i=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const s=t.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.paddingTop===s.paddingTop&&e.paddingBottom===s.paddingBottom&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,g=e.minimap.side,_=e.verticalScrollbarWidth,y=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,S=u?2:3;let w=Math.floor(r*i);const E=w/r;let x=!1,k=!1,D=S*h,B=h/r,O=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:Ie,extraLinesBeforeFirstLine:me,extraLinesBeyondLastLine:Ge,desiredRatio:Ve,minimapLineCount:Ee}=wp.computeContainedMinimapLineCount({viewLineCount:y,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:i,lineHeight:l,pixelRatio:r});if(y/Ee>1)x=!0,k=!0,h=1,D=1,B=h/r;else{let Ln=!1,Qi=h+1;if(p==="fit"){const zn=Math.ceil((me+y+Ge)*D);v&&a&&b<=t.stableFitRemainingWidth?(Ln=!0,Qi=t.stableFitMaxMinimapScale):Ln=zn>w}if(p==="fill"||Ln){x=!0;const zn=h;D=Math.min(l*r,Math.max(1,Math.floor(1/Ve))),v&&a&&b<=t.stableFitRemainingWidth&&(Qi=t.stableFitMaxMinimapScale),h=Math.min(Qi,Math.max(1,Math.floor(D/S))),h>zn&&(O=Math.min(2,h/zn)),B=h/r/O,w=Math.ceil(Math.max(Ie,me+y+Ge)*D),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const M=Math.floor(f*B),V=Math.min(M,Math.max(0,Math.floor((b-_-2)*B/(c+B)))+Mc);let $=Math.floor(r*V);const Q=$/r;$=Math.floor($*O);const ge=u?1:2,we=g==="left"?0:n-V-_;return{renderMinimap:ge,minimapLeft:we,minimapWidth:V,minimapHeightIsEditorHeight:x,minimapIsSampling:k,minimapScale:h,minimapLineHeight:D,minimapCanvasInnerWidth:$,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:Q,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const n=t.outerWidth|0,i=t.outerHeight|0,r=t.lineHeight|0,s=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(135),h=u==="inherit"?e.get(134):u,f=h==="inherit"?e.get(130):h,p=e.get(133),g=t.isDominatedByLongLines,_=e.get(57),y=e.get(67).renderType!==0,b=e.get(68),v=e.get(104),S=e.get(83),w=e.get(72),E=e.get(102),x=E.verticalScrollbarSize,k=E.verticalHasArrows,D=E.arrowSize,B=E.horizontalScrollbarSize,O=e.get(43),M=e.get(109)!=="never";let V=e.get(65);O&&M&&(V+=16);let $=0;if(y){const $n=Math.max(s,b);$=Math.round($n*l)}let Q=0;_&&(Q=r*t.glyphMarginDecorationLaneCount);let ge=0,we=ge+Q,Ie=we+$,me=Ie+V;const Ge=n-Q-$-V;let Ve=!1,Ee=!1,he=-1;h==="inherit"&&g?(Ve=!0,Ee=!0):f==="on"||f==="bounded"?Ee=!0:f==="wordWrapColumn"&&(he=p);const Ln=wp._computeMinimapLayout({outerWidth:n,outerHeight:i,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:v,paddingTop:S.top,paddingBottom:S.bottom,minimap:w,verticalScrollbarWidth:x,viewLineCount:d,remainingWidth:Ge,isViewportWrapping:Ee},t.memory||new CP);Ln.renderMinimap!==0&&Ln.minimapLeft===0&&(ge+=Ln.minimapWidth,we+=Ln.minimapWidth,Ie+=Ln.minimapWidth,me+=Ln.minimapWidth);const Qi=Ge-Ln.minimapWidth,zn=Math.max(1,Math.floor((Qi-x-2)/a)),wt=k?D:0;return Ee&&(he=Math.max(1,zn),f==="bounded"&&(he=Math.min(he,p))),{width:n,height:i,glyphMarginLeft:ge,glyphMarginWidth:Q,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:we,lineNumbersWidth:$,decorationsLeft:Ie,decorationsWidth:V,contentLeft:me,contentWidth:Qi,minimap:Ln,viewportColumn:zn,isWordWrapMinified:Ve,isViewportWrapping:Ee,wrappingColumn:he,verticalScrollbarWidth:x,horizontalScrollbarHeight:B,overviewRuler:{top:wt,width:x,height:i-2*wt,right:0}}}}class rG extends nn{constructor(){super(137,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Cn(e,"simple",["simple","advanced"])}compute(e,t,n){return t.get(2)===2?"advanced":n}}var as;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(as||(as={}));class oG extends nn{constructor(){const e={enabled:as.OnCode};super(64,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[as.Off,as.OnCode,as.On],default:e.enabled,enumDescriptions:[m("editor.lightbulb.enabled.off","Disable the code action menu."),m("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),m("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Cn(e.enabled,this.defaultValue.enabled,[as.Off,as.OnCode,as.On])}}}class sG extends nn{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(114,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:m("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Se(t.enabled,this.defaultValue.enabled),maxLineCount:Rt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:Cn(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Se(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class aG extends nn{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(139,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m("editor.inlayHints.on","Inlay hints are enabled"),m("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",at?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",at?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Cn(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Rt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Cr.string(t.fontFamily,this.defaultValue.fontFamily),padding:Se(t.padding,this.defaultValue.padding)}}}class lG extends nn{constructor(){super(65,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Rt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,n){return n<0?Rt.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class cG extends ds{constructor(){super(66,"lineHeight",kr.lineHeight,e=>ds.clamp(e,0,150),{markdownDescription:m("lineHeight",`Controls the line height.
- Use 0 to automatically compute the line height from the font size.
- Values between 0 and 8 will be used as a multiplier with the font size.
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,n){return e.fontInfo.lineHeight}}class dG extends nn{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(72,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:m("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),m("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Se(t.enabled,this.defaultValue.enabled),autohide:Se(t.autohide,this.defaultValue.autohide),size:Cn(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Cn(t.side,this.defaultValue.side,["right","left"]),showSlider:Cn(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Se(t.renderCharacters,this.defaultValue.renderCharacters),scale:Rt.clampedInt(t.scale,1,1,3),maxColumn:Rt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function uG(o){return o==="ctrlCmd"?at?"metaKey":"ctrlKey":"altKey"}class hG extends nn{constructor(){super(83,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Rt.clampedInt(t.top,0,0,1e3),bottom:Rt.clampedInt(t.bottom,0,0,1e3)}}}class fG extends nn{constructor(){const e={enabled:!0,cycle:!0};super(85,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Se(t.enabled,this.defaultValue.enabled),cycle:Se(t.cycle,this.defaultValue.cycle)}}}class pG extends T0{constructor(){super(141)}compute(e,t,n){return e.pixelRatio}}class mG extends nn{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[m("on","Quick suggestions show inside the suggest widget"),m("inline","Quick suggestions show as ghost text"),m("off","Quick suggestions are disabled")]}];super(88,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:m("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:m("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:m("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:m("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:n,strings:i}=e,r=["on","inline","off"];let s,a,l;return typeof t=="boolean"?s=t?"on":"off":s=Cn(t,this.defaultValue.other,r),typeof n=="boolean"?a=n?"on":"off":a=Cn(n,this.defaultValue.comments,r),typeof i=="boolean"?l=i?"on":"off":l=Cn(i,this.defaultValue.strings,r),{other:s,comments:a,strings:l}}}class gG extends nn{constructor(){super(67,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m("lineNumbers.off","Line numbers are not