diff --git a/assets/SchemaReference.es-5e76d97e.js b/assets/SchemaReference.es-a230cb05.js similarity index 97% rename from assets/SchemaReference.es-5e76d97e.js rename to assets/SchemaReference.es-a230cb05.js index 7ba19e68..99e975d1 100644 --- a/assets/SchemaReference.es-5e76d97e.js +++ b/assets/SchemaReference.es-a230cb05.js @@ -1 +1 @@ -import{s as b}from"./forEachState.es-b2033c2b.js";import{o as l,Z as k,I as F,Y as h,_ as S,$ as g,a0 as D,a1 as T,e as Q}from"./index-6300672f.js";var j=Object.defineProperty,r=(t,n)=>j(t,"name",{value:n,configurable:!0});function V(t,n){const e={schema:t,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return b(n,a=>{var u,p;switch(a.kind){case"Query":case"ShortQuery":e.type=t.getQueryType();break;case"Mutation":e.type=t.getMutationType();break;case"Subscription":e.type=t.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":a.type&&(e.type=t.getType(a.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&a.name?c(t,e.parentType,a.name):null,e.type=(u=e.fieldDef)===null||u===void 0?void 0:u.type;break;case"SelectionSet":e.parentType=e.type?l(e.type):null;break;case"Directive":e.directiveDef=a.name?t.getDirective(a.name):null;break;case"Arguments":const s=a.prevState?a.prevState.kind==="Field"?e.fieldDef:a.prevState.kind==="Directive"?e.directiveDef:a.prevState.kind==="AliasedField"?a.prevState.name&&c(t,e.parentType,a.prevState.name):null:null;e.argDefs=s?s.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(let i=0;ii.value===a.name):null;break;case"ListValue":const d=e.inputType?F(e.inputType):null;e.inputType=d instanceof h?d.ofType:null;break;case"ObjectValue":const m=e.inputType?l(e.inputType):null;e.objectFieldDefs=m instanceof k?m.getFields():null;break;case"ObjectField":const o=a.name&&e.objectFieldDefs?e.objectFieldDefs[a.name]:null;e.inputType=o==null?void 0:o.type;break;case"NamedType":e.type=a.name?t.getType(a.name):null;break}}),e}r(V,"getTypeInfo");function c(t,n,e){if(e===g.name&&t.getQueryType()===n)return g;if(e===D.name&&t.getQueryType()===n)return D;if(e===T.name&&Q(n))return T;if(n&&n.getFields)return n.getFields()[e]}r(c,"getFieldDef");function v(t,n){for(let e=0;ej(t,"name",{value:n,configurable:!0});function V(t,n){const e={schema:t,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return b(n,a=>{var u,p;switch(a.kind){case"Query":case"ShortQuery":e.type=t.getQueryType();break;case"Mutation":e.type=t.getMutationType();break;case"Subscription":e.type=t.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":a.type&&(e.type=t.getType(a.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&a.name?c(t,e.parentType,a.name):null,e.type=(u=e.fieldDef)===null||u===void 0?void 0:u.type;break;case"SelectionSet":e.parentType=e.type?l(e.type):null;break;case"Directive":e.directiveDef=a.name?t.getDirective(a.name):null;break;case"Arguments":const s=a.prevState?a.prevState.kind==="Field"?e.fieldDef:a.prevState.kind==="Directive"?e.directiveDef:a.prevState.kind==="AliasedField"?a.prevState.name&&c(t,e.parentType,a.prevState.name):null:null;e.argDefs=s?s.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(let i=0;ii.value===a.name):null;break;case"ListValue":const d=e.inputType?F(e.inputType):null;e.inputType=d instanceof h?d.ofType:null;break;case"ObjectValue":const m=e.inputType?l(e.inputType):null;e.objectFieldDefs=m instanceof k?m.getFields():null;break;case"ObjectField":const o=a.name&&e.objectFieldDefs?e.objectFieldDefs[a.name]:null;e.inputType=o==null?void 0:o.type;break;case"NamedType":e.type=a.name?t.getType(a.name):null;break}}),e}r(V,"getTypeInfo");function c(t,n,e){if(e===g.name&&t.getQueryType()===n)return g;if(e===D.name&&t.getQueryType()===n)return D;if(e===T.name&&Q(n))return T;if(n&&n.getFields)return n.getFields()[e]}r(c,"getFieldDef");function v(t,n){for(let e=0;en in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-6300672f.js";/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-7e44875f.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/freemarker2-7a7a6112.js b/assets/freemarker2-cdbbf48f.js similarity index 99% rename from assets/freemarker2-7a7a6112.js rename to assets/freemarker2-cdbbf48f.js index 3b176ab4..64caf108 100644 --- a/assets/freemarker2-7a7a6112.js +++ b/assets/freemarker2-cdbbf48f.js @@ -1,4 +1,4 @@ -import{m as F}from"./index-6300672f.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./index-7e44875f.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/handlebars-fc8f5610.js b/assets/handlebars-135a913a.js similarity index 99% rename from assets/handlebars-fc8f5610.js rename to assets/handlebars-135a913a.js index e6afb053..19a51036 100644 --- a/assets/handlebars-fc8f5610.js +++ b/assets/handlebars-135a913a.js @@ -1,4 +1,4 @@ -import{m as i}from"./index-6300672f.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index-7e44875f.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/hint.es-6c2b011d.js b/assets/hint.es-bb5e9099.js similarity index 91% rename from assets/hint.es-6c2b011d.js rename to assets/hint.es-bb5e9099.js index 51110f27..c959ece7 100644 --- a/assets/hint.es-6c2b011d.js +++ b/assets/hint.es-bb5e9099.js @@ -1 +1 @@ -import{C as n}from"./codemirror.es-52e8b92d.js";import"./show-hint.es-b981493e.js";import{g as c}from"./index-6300672f.js";import{P as g}from"./Range-52ddcb6a.js";import"./codemirror.es2-5884f31a.js";n.registerHelper("hint","graphql",(i,a)=>{const{schema:s,externalFragments:p}=a;if(!s)return;const r=i.getCursor(),t=i.getTokenAt(r),l=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end,m=new g(r.line,l),e={list:c(s,i.getValue(),m,t,p).map(o=>({text:o.label,type:o.type,description:o.documentation,isDeprecated:o.isDeprecated,deprecationReason:o.deprecationReason})),from:{line:r.line,ch:l},to:{line:r.line,ch:t.end}};return e!=null&&e.list&&e.list.length>0&&(e.from=n.Pos(e.from.line,e.from.ch),e.to=n.Pos(e.to.line,e.to.ch),n.signal(i,"hasCompletion",i,e,t)),e}); +import{C as n}from"./codemirror.es-52e8b92d.js";import"./show-hint.es-b981493e.js";import{g as c}from"./index-7e44875f.js";import{P as g}from"./Range-52ddcb6a.js";import"./codemirror.es2-5884f31a.js";n.registerHelper("hint","graphql",(i,a)=>{const{schema:s,externalFragments:p}=a;if(!s)return;const r=i.getCursor(),t=i.getTokenAt(r),l=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end,m=new g(r.line,l),e={list:c(s,i.getValue(),m,t,p).map(o=>({text:o.label,type:o.type,description:o.documentation,isDeprecated:o.isDeprecated,deprecationReason:o.deprecationReason})),from:{line:r.line,ch:l},to:{line:r.line,ch:t.end}};return e!=null&&e.list&&e.list.length>0&&(e.from=n.Pos(e.from.line,e.from.ch),e.to=n.Pos(e.to.line,e.to.ch),n.signal(i,"hasCompletion",i,e,t)),e}); diff --git a/assets/hint.es2-42a03346.js b/assets/hint.es2-37ae5894.js similarity index 97% rename from assets/hint.es2-42a03346.js rename to assets/hint.es2-37ae5894.js index 74c2fa9a..81ec19fd 100644 --- a/assets/hint.es2-42a03346.js +++ b/assets/hint.es2-37ae5894.js @@ -1 +1 @@ -import{C as f}from"./codemirror.es-52e8b92d.js";import{s as L}from"./forEachState.es-b2033c2b.js";import"./codemirror.es2-5884f31a.js";import{o as h,Z as b,_ as T,a5 as d,I as j,Y as D}from"./index-6300672f.js";var N=Object.defineProperty,p=(i,n)=>N(i,"name",{value:n,configurable:!0});function u(i,n,t){const r=x(t,m(n.string));if(!r)return;const e=n.type!==null&&/"|\w/.test(n.string[0])?n.start:n.end;return{list:r,from:{line:i.line,ch:e},to:{line:i.line,ch:n.end}}}p(u,"hintList");function x(i,n){if(!n)return y(i,r=>!r.isDeprecated);const t=i.map(r=>({proximity:V(m(r.text),n),entry:r}));return y(y(t,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,e)=>(r.entry.isDeprecated?1:0)-(e.entry.isDeprecated?1:0)||r.proximity-e.proximity||r.entry.text.length-e.entry.text.length).map(r=>r.entry)}p(x,"filterAndSortList");function y(i,n){const t=i.filter(n);return t.length===0?i:t}p(y,"filterNonEmpty");function m(i){return i.toLowerCase().replaceAll(/\W/g,"")}p(m,"normalizeText");function V(i,n){let t=v(n,i);return i.length>n.length&&(t-=i.length-n.length-1,t+=i.indexOf(n)===0?0:.5),t}p(V,"getProximity");function v(i,n){let t,r;const e=[],a=i.length,s=n.length;for(t=0;t<=a;t++)e[t]=[t];for(r=1;r<=s;r++)e[0][r]=r;for(t=1;t<=a;t++)for(r=1;r<=s;r++){const c=i[t-1]===n[r-1]?0:1;e[t][r]=Math.min(e[t-1][r]+1,e[t][r-1]+1,e[t-1][r-1]+c),t>1&&r>1&&i[t-1]===n[r-2]&&i[t-2]===n[r-1]&&(e[t][r]=Math.min(e[t][r],e[t-2][r-2]+c))}return e[a][s]}p(v,"lexicalDistance");f.registerHelper("hint","graphql-variables",(i,n)=>{const t=i.getCursor(),r=i.getTokenAt(t),e=O(t,r,n);return e!=null&&e.list&&e.list.length>0&&(e.from=f.Pos(e.from.line,e.from.ch),e.to=f.Pos(e.to.line,e.to.ch),f.signal(i,"hasCompletion",i,e,r)),e});function O(i,n,t){const r=n.state.kind==="Invalid"?n.state.prevState:n.state,{kind:e,step:a}=r;if(e==="Document"&&a===0)return u(i,n,[{text:"{"}]);const{variableToType:s}=t;if(!s)return;const c=k(s,n.state);if(e==="Document"||e==="Variable"&&a===0){const l=Object.keys(s);return u(i,n,l.map(o=>({text:`"${o}": `,type:s[o]})))}if((e==="ObjectValue"||e==="ObjectField"&&a===0)&&c.fields){const l=Object.keys(c.fields).map(o=>c.fields[o]);return u(i,n,l.map(o=>({text:`"${o.name}": `,type:o.type,description:o.description})))}if(e==="StringValue"||e==="NumberValue"||e==="BooleanValue"||e==="NullValue"||e==="ListValue"&&a===1||e==="ObjectField"&&a===2||e==="Variable"&&a===2){const l=c.type?h(c.type):void 0;if(l instanceof b)return u(i,n,[{text:"{"}]);if(l instanceof T){const o=l.getValues();return u(i,n,o.map(g=>({text:`"${g.name}"`,type:l,description:g.description})))}if(l===d)return u(i,n,[{text:"true",type:d,description:"Not false."},{text:"false",type:d,description:"Not true."}])}}p(O,"getVariablesHint");function k(i,n){const t={type:null,fields:null};return L(n,r=>{switch(r.kind){case"Variable":{t.type=i[r.name];break}case"ListValue":{const e=t.type?j(t.type):void 0;t.type=e instanceof D?e.ofType:null;break}case"ObjectValue":{const e=t.type?h(t.type):void 0;t.fields=e instanceof b?e.getFields():null;break}case"ObjectField":{const e=r.name&&t.fields?t.fields[r.name]:null;t.type=e==null?void 0:e.type;break}}}),t}p(k,"getTypeInfo"); +import{C as f}from"./codemirror.es-52e8b92d.js";import{s as L}from"./forEachState.es-b2033c2b.js";import"./codemirror.es2-5884f31a.js";import{o as h,Z as b,_ as T,a5 as d,I as j,Y as D}from"./index-7e44875f.js";var N=Object.defineProperty,p=(i,n)=>N(i,"name",{value:n,configurable:!0});function u(i,n,t){const r=x(t,m(n.string));if(!r)return;const e=n.type!==null&&/"|\w/.test(n.string[0])?n.start:n.end;return{list:r,from:{line:i.line,ch:e},to:{line:i.line,ch:n.end}}}p(u,"hintList");function x(i,n){if(!n)return y(i,r=>!r.isDeprecated);const t=i.map(r=>({proximity:V(m(r.text),n),entry:r}));return y(y(t,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,e)=>(r.entry.isDeprecated?1:0)-(e.entry.isDeprecated?1:0)||r.proximity-e.proximity||r.entry.text.length-e.entry.text.length).map(r=>r.entry)}p(x,"filterAndSortList");function y(i,n){const t=i.filter(n);return t.length===0?i:t}p(y,"filterNonEmpty");function m(i){return i.toLowerCase().replaceAll(/\W/g,"")}p(m,"normalizeText");function V(i,n){let t=v(n,i);return i.length>n.length&&(t-=i.length-n.length-1,t+=i.indexOf(n)===0?0:.5),t}p(V,"getProximity");function v(i,n){let t,r;const e=[],a=i.length,s=n.length;for(t=0;t<=a;t++)e[t]=[t];for(r=1;r<=s;r++)e[0][r]=r;for(t=1;t<=a;t++)for(r=1;r<=s;r++){const c=i[t-1]===n[r-1]?0:1;e[t][r]=Math.min(e[t-1][r]+1,e[t][r-1]+1,e[t-1][r-1]+c),t>1&&r>1&&i[t-1]===n[r-2]&&i[t-2]===n[r-1]&&(e[t][r]=Math.min(e[t][r],e[t-2][r-2]+c))}return e[a][s]}p(v,"lexicalDistance");f.registerHelper("hint","graphql-variables",(i,n)=>{const t=i.getCursor(),r=i.getTokenAt(t),e=O(t,r,n);return e!=null&&e.list&&e.list.length>0&&(e.from=f.Pos(e.from.line,e.from.ch),e.to=f.Pos(e.to.line,e.to.ch),f.signal(i,"hasCompletion",i,e,r)),e});function O(i,n,t){const r=n.state.kind==="Invalid"?n.state.prevState:n.state,{kind:e,step:a}=r;if(e==="Document"&&a===0)return u(i,n,[{text:"{"}]);const{variableToType:s}=t;if(!s)return;const c=k(s,n.state);if(e==="Document"||e==="Variable"&&a===0){const l=Object.keys(s);return u(i,n,l.map(o=>({text:`"${o}": `,type:s[o]})))}if((e==="ObjectValue"||e==="ObjectField"&&a===0)&&c.fields){const l=Object.keys(c.fields).map(o=>c.fields[o]);return u(i,n,l.map(o=>({text:`"${o.name}": `,type:o.type,description:o.description})))}if(e==="StringValue"||e==="NumberValue"||e==="BooleanValue"||e==="NullValue"||e==="ListValue"&&a===1||e==="ObjectField"&&a===2||e==="Variable"&&a===2){const l=c.type?h(c.type):void 0;if(l instanceof b)return u(i,n,[{text:"{"}]);if(l instanceof T){const o=l.getValues();return u(i,n,o.map(g=>({text:`"${g.name}"`,type:l,description:g.description})))}if(l===d)return u(i,n,[{text:"true",type:d,description:"Not false."},{text:"false",type:d,description:"Not true."}])}}p(O,"getVariablesHint");function k(i,n){const t={type:null,fields:null};return L(n,r=>{switch(r.kind){case"Variable":{t.type=i[r.name];break}case"ListValue":{const e=t.type?j(t.type):void 0;t.type=e instanceof D?e.ofType:null;break}case"ObjectValue":{const e=t.type?h(t.type):void 0;t.fields=e instanceof b?e.getFields():null;break}case"ObjectField":{const e=r.name&&t.fields?t.fields[r.name]:null;t.type=e==null?void 0:e.type;break}}}),t}p(k,"getTypeInfo"); diff --git a/assets/html-0ea7e903.js b/assets/html-36207922.js similarity index 98% rename from assets/html-0ea7e903.js rename to assets/html-36207922.js index 17a94ed9..5d3263f2 100644 --- a/assets/html-0ea7e903.js +++ b/assets/html-36207922.js @@ -1,4 +1,4 @@ -import{m as d}from"./index-6300672f.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index-7e44875f.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/htmlMode-ecc1c949.js b/assets/htmlMode-563dc6c0.js similarity index 99% rename from assets/htmlMode-ecc1c949.js rename to assets/htmlMode-563dc6c0.js index 0d67b05c..78e09665 100644 --- a/assets/htmlMode-ecc1c949.js +++ b/assets/htmlMode-563dc6c0.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-6300672f.js";/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-7e44875f.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license diff --git a/assets/index-6300672f.js b/assets/index-7e44875f.js similarity index 84% rename from assets/index-6300672f.js rename to assets/index-7e44875f.js index 9339b6ed..acb1076d 100644 --- a/assets/index-6300672f.js +++ b/assets/index-7e44875f.js @@ -1,4 +1,4 @@ -var JKe=Object.defineProperty;var ZKe=(u,e,t)=>e in u?JKe(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var Fn=(u,e,t)=>(ZKe(u,typeof e!="symbol"?e+"":e,t),t);function Yxe(u,e){for(var t=0;tn[i]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=t(i);fetch(i.href,r)}})();const YKe="modulepreload",QKe=function(u,e){return new URL(u,e).href},Oie={},Le=function(e,t,n){if(!t||t.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map(r=>{if(r=QKe(r,n),r in Oie)return;Oie[r]=!0;const a=r.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===r&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":YKe,a||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),a)return new Promise((c,d)=>{l.addEventListener("load",c),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e()).catch(r=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r})};var fl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Qxe={exports:{}},XT={},Xxe={exports:{}},rn={};/** +var JKe=Object.defineProperty;var ZKe=(u,e,t)=>e in u?JKe(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var Fn=(u,e,t)=>(ZKe(u,typeof e!="symbol"?e+"":e,t),t);function Zxe(u,e){for(var t=0;tn[i]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=t(i);fetch(i.href,r)}})();const YKe="modulepreload",QKe=function(u,e){return new URL(u,e).href},jie={},Le=function(e,t,n){if(!t||t.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map(r=>{if(r=QKe(r,n),r in jie)return;jie[r]=!0;const a=r.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===r&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${o}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":YKe,a||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),a)return new Promise((c,d)=>{l.addEventListener("load",c),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e()).catch(r=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r})};var fl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Yxe={exports:{}},eP={},Qxe={exports:{}},rn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var JKe=Object.defineProperty;var ZKe=(u,e,t)=>e in u?JKe(u,e,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var _F=Symbol.for("react.element"),XKe=Symbol.for("react.portal"),eWe=Symbol.for("react.fragment"),tWe=Symbol.for("react.strict_mode"),uWe=Symbol.for("react.profiler"),nWe=Symbol.for("react.provider"),iWe=Symbol.for("react.context"),rWe=Symbol.for("react.forward_ref"),aWe=Symbol.for("react.suspense"),oWe=Symbol.for("react.memo"),sWe=Symbol.for("react.lazy"),jie=Symbol.iterator;function lWe(u){return u===null||typeof u!="object"?null:(u=jie&&u[jie]||u["@@iterator"],typeof u=="function"?u:null)}var e5e={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},t5e=Object.assign,u5e={};function $v(u,e,t){this.props=u,this.context=e,this.refs=u5e,this.updater=t||e5e}$v.prototype.isReactComponent={};$v.prototype.setState=function(u,e){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,e,"setState")};$v.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function n5e(){}n5e.prototype=$v.prototype;function BY(u,e,t){this.props=u,this.context=e,this.refs=u5e,this.updater=t||e5e}var wY=BY.prototype=new n5e;wY.constructor=BY;t5e(wY,$v.prototype);wY.isPureReactComponent=!0;var Vie=Array.isArray,i5e=Object.prototype.hasOwnProperty,zY={current:null},r5e={key:!0,ref:!0,__self:!0,__source:!0};function a5e(u,e,t){var n,i={},r=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(r=""+e.key),e)i5e.call(e,n)&&!r5e.hasOwnProperty(n)&&(i[n]=e[n]);var o=arguments.length-2;if(o===1)i.children=t;else if(1e in u?JKe(u,e,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var gWe=C,mWe=Symbol.for("react.element"),fWe=Symbol.for("react.fragment"),pWe=Object.prototype.hasOwnProperty,DWe=gWe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xWe={key:!0,ref:!0,__self:!0,__source:!0};function o5e(u,e,t){var n,i={},r=null,a=null;t!==void 0&&(r=""+t),e.key!==void 0&&(r=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)pWe.call(e,n)&&!xWe.hasOwnProperty(n)&&(i[n]=e[n]);if(u&&u.defaultProps)for(n in e=u.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:mWe,type:u,key:r,ref:a,props:i,_owner:DWe.current}}XT.Fragment=fWe;XT.jsx=o5e;XT.jsxs=o5e;Qxe.exports=XT;var w=Qxe.exports;function vWe(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}function $ie(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(u);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(u,i).enumerable})),t.push.apply(t,n)}return t}function Kie(u){for(var e=1;e=0)&&(t[i]=u[i]);return t}function bWe(u,e){if(u==null)return{};var t=CWe(u,e),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(u,n)&&(t[n]=u[n])}return t}function kWe(u,e){return yWe(u)||FWe(u,e)||AWe(u,e)||_We()}function yWe(u){if(Array.isArray(u))return u}function FWe(u,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(u)))){var t=[],n=!0,i=!1,r=void 0;try{for(var a=u[Symbol.iterator](),o;!(n=(o=a.next()).done)&&(t.push(o.value),!(e&&t.length===e));n=!0);}catch(s){i=!0,r=s}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw r}}return t}}function AWe(u,e){if(u){if(typeof u=="string")return Wie(u,e);var t=Object.prototype.toString.call(u).slice(8,-1);if(t==="Object"&&u.constructor&&(t=u.constructor.name),t==="Map"||t==="Set")return Array.from(u);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Wie(u,e)}}function Wie(u,e){(e==null||e>u.length)&&(e=u.length);for(var t=0,n=new Array(e);t=u.length?u.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};E_.initial(u),E_.handler(e);var t={current:u},n=K6(VWe)(t,e),i=K6(jWe)(t),r=K6(E_.changes)(u),a=K6(OWe)(t);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return E_.selector(l),l(t.current)}function s(l){BWe(n,i,r,a)(l)}return[o,s]}function OWe(u,e){return Tk(e)?e(u.current):e}function jWe(u,e){return u.current=Uie(Uie({},u.current),e),e}function VWe(u,e,t){return Tk(e)?e(u.current):Object.keys(t).forEach(function(n){var i;return(i=e[n])===null||i===void 0?void 0:i.call(e,u.current[n])}),t}var HWe={create:IWe},$We={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function KWe(u){return function e(){for(var t=this,n=arguments.length,i=new Array(n),r=0;r=u.length?u.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),s=0;s=0)&&(t[i]=u[i]);return t}function bWe(u,e){if(u==null)return{};var t=CWe(u,e),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(u,n)&&(t[n]=u[n])}return t}function kWe(u,e){return yWe(u)||FWe(u,e)||AWe(u,e)||_We()}function yWe(u){if(Array.isArray(u))return u}function FWe(u,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(u)))){var t=[],n=!0,i=!1,r=void 0;try{for(var a=u[Symbol.iterator](),o;!(n=(o=a.next()).done)&&(t.push(o.value),!(e&&t.length===e));n=!0);}catch(s){i=!0,r=s}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw r}}return t}}function AWe(u,e){if(u){if(typeof u=="string")return Gie(u,e);var t=Object.prototype.toString.call(u).slice(8,-1);if(t==="Object"&&u.constructor&&(t=u.constructor.name),t==="Map"||t==="Set")return Array.from(u);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Gie(u,e)}}function Gie(u,e){(e==null||e>u.length)&&(e=u.length);for(var t=0,n=new Array(e);t=u.length?u.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};E_.initial(u),E_.handler(e);var t={current:u},n=K6(VWe)(t,e),i=K6(jWe)(t),r=K6(E_.changes)(u),a=K6(OWe)(t);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return E_.selector(l),l(t.current)}function s(l){BWe(n,i,r,a)(l)}return[o,s]}function OWe(u,e){return Tk(e)?e(u.current):e}function jWe(u,e){return u.current=qie(qie({},u.current),e),e}function VWe(u,e,t){return Tk(e)?e(u.current):Object.keys(t).forEach(function(n){var i;return(i=e[n])===null||i===void 0?void 0:i.call(e,u.current[n])}),t}var HWe={create:IWe},$We={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function KWe(u){return function e(){for(var t=this,n=arguments.length,i=new Array(n),r=0;r=u.length?u.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),s=0;s{n.current=!1}:u,e)}var o0=mGe;function Bb(){}function WD(u,e,t,n){return fGe(u,n)||pGe(u,e,t,n)}function fGe(u,e){return u.editor.getModel(g5e(u,e))}function pGe(u,e,t,n){return u.editor.createModel(e,t,n?g5e(u,n):void 0)}function g5e(u,e){return u.Uri.parse(e)}function DGe({original:u,modified:e,language:t,originalLanguage:n,modifiedLanguage:i,originalModelPath:r,modifiedModelPath:a,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:s=!1,theme:l="light",loading:c="Loading...",options:d={},height:h="100%",width:E="100%",className:g,wrapperProps:m={},beforeMount:f=Bb,onMount:p=Bb}){let[D,x]=C.useState(!1),[b,k]=C.useState(!0),_=C.useRef(null),y=C.useRef(null),S=C.useRef(null),B=C.useRef(p),L=C.useRef(f),M=C.useRef(!1);E5e(()=>{let z=w8.init();return z.then(P=>(y.current=P)&&k(!1)).catch(P=>(P==null?void 0:P.type)!=="cancelation"&&console.error("Monaco initialization: error:",P)),()=>_.current?A():z.cancel()}),o0(()=>{let z=_.current.getModifiedEditor();z.getOption(y.current.editor.EditorOption.readOnly)?z.setValue(e||""):e!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[e],D),o0(()=>{var z,P;(P=(z=_.current)==null?void 0:z.getModel())==null||P.original.setValue(u||"")},[u],D),o0(()=>{let{original:z,modified:P}=_.current.getModel();y.current.editor.setModelLanguage(z,n||t||"text"),y.current.editor.setModelLanguage(P,i||t||"text")},[t,n,i],D),o0(()=>{var z;(z=y.current)==null||z.editor.setTheme(l)},[l],D),o0(()=>{var z;(z=_.current)==null||z.updateOptions(d)},[d],D);let N=C.useCallback(()=>{var I;if(!y.current)return;L.current(y.current);let z=WD(y.current,u||"",n||t||"text",r||""),P=WD(y.current,e||"",i||t||"text",a||"");(I=_.current)==null||I.setModel({original:z,modified:P})},[t,e,i,u,n,r,a]),F=C.useCallback(()=>{var z;!M.current&&S.current&&(_.current=y.current.editor.createDiffEditor(S.current,{automaticLayout:!0,...d}),N(),(z=y.current)==null||z.editor.setTheme(l),x(!0),M.current=!0)},[d,l,N]);C.useEffect(()=>{D&&B.current(_.current,y.current)},[D]),C.useEffect(()=>{!b&&!D&&F()},[b,D,F]),o0(()=>{if(_.current&&y.current){let z=_.current.getOriginalEditor(),P=WD(y.current,u||"",n||t||"text",r||"");P!==z.getModel()&&z.setModel(P)}},[r],D),o0(()=>{if(_.current&&y.current){let z=_.current.getModifiedEditor(),P=WD(y.current,e||"",i||t||"text",a||"");P!==z.getModel()&&z.setModel(P)}},[a],D);function A(){var P,I,j,V;let z=(P=_.current)==null?void 0:P.getModel();o||((I=z==null?void 0:z.original)==null||I.dispose()),s||((j=z==null?void 0:z.modified)==null||j.dispose()),(V=_.current)==null||V.dispose()}return T.createElement(h5e,{width:E,height:h,isEditorReady:D,loading:c,_ref:S,className:g,wrapperProps:m})}var xGe=DGe;C.memo(xGe);function vGe(u){let e=C.useRef();return C.useEffect(()=>{e.current=u},[u]),e.current}var CGe=vGe,g_=new Map;function bGe({defaultValue:u,defaultLanguage:e,defaultPath:t,value:n,language:i,path:r,theme:a="light",line:o,loading:s="Loading...",options:l={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:h=!1,width:E="100%",height:g="100%",className:m,wrapperProps:f={},beforeMount:p=Bb,onMount:D=Bb,onChange:x,onValidate:b=Bb}){let[k,_]=C.useState(!1),[y,S]=C.useState(!0),B=C.useRef(null),L=C.useRef(null),M=C.useRef(null),N=C.useRef(D),F=C.useRef(p),A=C.useRef(),z=C.useRef(n),P=CGe(r),I=C.useRef(!1),j=C.useRef(!1);E5e(()=>{let q=w8.init();return q.then(J=>(B.current=J)&&S(!1)).catch(J=>(J==null?void 0:J.type)!=="cancelation"&&console.error("Monaco initialization: error:",J)),()=>L.current?H():q.cancel()}),o0(()=>{var J,Q,X,Y;let q=WD(B.current,u||n||"",e||i||"",r||t||"");q!==((J=L.current)==null?void 0:J.getModel())&&(d&&g_.set(P,(Q=L.current)==null?void 0:Q.saveViewState()),(X=L.current)==null||X.setModel(q),d&&((Y=L.current)==null||Y.restoreViewState(g_.get(r))))},[r],k),o0(()=>{var q;(q=L.current)==null||q.updateOptions(l)},[l],k),o0(()=>{!L.current||n===void 0||(L.current.getOption(B.current.editor.EditorOption.readOnly)?L.current.setValue(n):n!==L.current.getValue()&&(j.current=!0,L.current.executeEdits("",[{range:L.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),L.current.pushUndoStop(),j.current=!1))},[n],k),o0(()=>{var J,Q;let q=(J=L.current)==null?void 0:J.getModel();q&&i&&((Q=B.current)==null||Q.editor.setModelLanguage(q,i))},[i],k),o0(()=>{var q;o!==void 0&&((q=L.current)==null||q.revealLine(o))},[o],k),o0(()=>{var q;(q=B.current)==null||q.editor.setTheme(a)},[a],k);let V=C.useCallback(()=>{var q;if(!(!M.current||!B.current)&&!I.current){F.current(B.current);let J=r||t,Q=WD(B.current,n||u||"",e||i||"",J||"");L.current=(q=B.current)==null?void 0:q.editor.create(M.current,{model:Q,automaticLayout:!0,...l},c),d&&L.current.restoreViewState(g_.get(J)),B.current.editor.setTheme(a),_(!0),I.current=!0}},[u,e,t,n,i,r,l,c,d,a]);C.useEffect(()=>{k&&N.current(L.current,B.current)},[k]),C.useEffect(()=>{!y&&!k&&V()},[y,k,V]),z.current=n,C.useEffect(()=>{var q,J;k&&x&&((q=A.current)==null||q.dispose(),A.current=(J=L.current)==null?void 0:J.onDidChangeModelContent(Q=>{j.current||x(L.current.getValue(),Q)}))},[k,x]),C.useEffect(()=>{if(k){let q=B.current.editor.onDidChangeMarkers(J=>{var X;let Q=(X=L.current.getModel())==null?void 0:X.uri;if(Q&&J.find(Y=>Y.path===Q.path)){let Y=B.current.editor.getModelMarkers({resource:Q});b==null||b(Y)}});return()=>{q==null||q.dispose()}}return()=>{}},[k,b]);function H(){var q,J;(q=A.current)==null||q.dispose(),h?d&&g_.set(r,L.current.saveViewState()):(J=L.current.getModel())==null||J.dispose(),L.current.dispose()}return T.createElement(h5e,{width:E,height:g,isEditorReady:k,loading:s,_ref:M,className:m,wrapperProps:f})}var kGe=bGe,m5e=C.memo(kGe),yGe=m5e,f5e={exports:{}};(function(u,e){(function(t,n){u.exports=n()})(fl,function(){var t=1e3,n=6e4,i=36e5,r="millisecond",a="second",o="minute",s="hour",l="day",c="week",d="month",h="quarter",E="year",g="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var A=["th","st","nd","rd"],z=F%100;return"["+F+(A[(z-20)%10]||A[z]||A[0])+"]"}},x=function(F,A,z){var P=String(F);return!P||P.length>=A?F:""+Array(A+1-P.length).join(z)+F},b={s:x,z:function(F){var A=-F.utcOffset(),z=Math.abs(A),P=Math.floor(z/60),I=z%60;return(A<=0?"+":"-")+x(P,2,"0")+":"+x(I,2,"0")},m:function F(A,z){if(A.date()1)return F(V[0])}else{var H=A.name;_[H]=A,I=H}return!P&&I&&(k=I),I||!P&&k},B=function(F,A){if(y(F))return F.clone();var z=typeof A=="object"?A:{};return z.date=F,z.args=arguments,new M(z)},L=b;L.l=S,L.i=y,L.w=function(F,A){return B(F,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var M=function(){function F(z){this.$L=S(z.locale,null,!0),this.parse(z)}var A=F.prototype;return A.parse=function(z){this.$d=function(P){var I=P.date,j=P.utc;if(I===null)return new Date(NaN);if(L.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var V=I.match(f);if(V){var H=V[2]-1||0,q=(V[7]||"0").substring(0,3);return j?new Date(Date.UTC(V[1],H,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)):new Date(V[1],H,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)}}return new Date(I)}(z),this.$x=z.x||{},this.init()},A.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},A.$utils=function(){return L},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(z,P){var I=B(z);return this.startOf(P)<=I&&I<=this.endOf(P)},A.isAfter=function(z,P){return B(z)n===i){if(u===e)return!0;if(!u||!e||u.length!==e.length)return!1;for(let n=0,i=u.length;nt(u[n],e))}function wGe(u,e){let t=0,n=u-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 D5e(u,e){let t=0,n=u.length;if(n===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],i=[],r=[],a=[];for(const o of e){const s=t(o,n);s<0?i.push(o):s>0?r.push(o):a.push(o)}return u!!e)}function Zie(u){let e=0;for(let t=0;t0}function vg(u,e=t=>t){const t=new Set;return u.filter(n=>{const i=e(n);return t.has(i)?!1:(t.add(i),!0)})}function v5e(u,e){const t=zGe(u,e);if(t!==-1)return u[t]}function zGe(u,e){for(let t=u.length-1;t>=0;t--){const n=u[t];if(e(n))return t}return-1}function C5e(u,e){return u.length>0?u[0]:e}function Ha(u,e){let t=typeof e=="number"?u:0;typeof e=="number"?t=u:(t=0,e=u);const n=[];if(t<=e)for(let i=t;ie;i--)n.push(i);return n}function uP(u,e,t){const n=u.slice(0,e),i=u.slice(e);return n.concat(t,i)}function dO(u,e){const t=u.indexOf(e);t>-1&&(u.splice(t,1),u.unshift(e))}function m_(u,e){const t=u.indexOf(e);t>-1&&(u.splice(t,1),u.push(e))}function Yie(u,e){for(const t of e)u.push(t)}function MY(u){return Array.isArray(u)?u:[u]}function LGe(u,e){for(const t of u){const n=e(t);if(n!==void 0)return n}}function MGe(u,e,t){const n=b5e(u,e),i=u.length,r=t.length;u.length=i+r;for(let a=i-1;a>=n;a--)u[a+r]=u[a];for(let a=0;a0}u.isGreaterThan=t;function n(i){return i===0}u.isNeitherLessOrGreaterThan=n,u.greaterThan=1,u.lessThan=-1,u.neitherLessOrGreaterThan=0})(M$||(M$={}));function wb(u,e){return(t,n)=>e(u(t),u(n))}const TGe=(u,e)=>u-e;function k5e(u,e){if(u.length===0)return;let t=u[0];for(let n=1;n0&&(t=i)}return t}function PGe(u,e){if(u.length===0)return;let t=u[0];for(let n=1;n=0&&(t=i)}return t}function NGe(u,e){return k5e(u,(t,n)=>-e(t,n))}class Jh{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=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 Xd{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Xd(t=>this.iterate(n=>e(n)?t(n):!0))}map(e){return new Xd(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||M$.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0)),t}}Xd.empty=new Xd(u=>{});function no(u){return typeof u=="string"}function Qa(u){return typeof u=="object"&&u!==null&&!Array.isArray(u)&&!(u instanceof RegExp)&&!(u instanceof Date)}function RGe(u){const e=Object.getPrototypeOf(Uint8Array);return typeof u=="object"&&u instanceof e}function Cg(u){return typeof u=="number"&&!isNaN(u)}function Xie(u){return!!u&&typeof u[Symbol.iterator]=="function"}function y5e(u){return u===!0||u===!1}function ts(u){return typeof u>"u"}function bg(u){return!ys(u)}function ys(u){return ts(u)||u===null}function Iu(u,e){if(!u)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function vf(u){if(ys(u))throw new Error("Assertion Failed: argument is undefined or null");return u}function Nk(u){return typeof u=="function"}function IGe(u,e){const t=Math.min(u.length,e.length);for(let n=0;n"u"?null:u}function lh(u){if(!u||typeof u!="object"||u instanceof RegExp)return u;const e=Array.isArray(u)?[]:{};return Object.entries(u).forEach(([t,n])=>{e[t]=n&&typeof n=="object"?lh(n):n}),e}function jGe(u){if(!u||typeof u!="object")return u;const e=[u];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const n in t)if(A5e.call(t,n)){const i=t[n];typeof i=="object"&&!Object.isFrozen(i)&&!RGe(i)&&e.push(i)}}return u}const A5e=Object.prototype.hasOwnProperty;function _5e(u,e){return T$(u,e,new Set)}function T$(u,e,t){if(ys(u))return u;const n=e(u);if(typeof n<"u")return n;if(Array.isArray(u)){const i=[];for(const r of u)i.push(T$(r,e,t));return i}if(Qa(u)){if(t.has(u))throw new Error("Cannot clone recursive data-structure");t.add(u);const i={};for(const r in u)A5e.call(u,r)&&(i[r]=T$(u[r],e,t));return t.delete(u),i}return u}function BF(u,e,t=!0){return Qa(u)?(Qa(e)&&Object.keys(e).forEach(n=>{n in u?t&&(Qa(u[n])&&Qa(e[n])?BF(u[n],e[n],t):u[n]=e[n]):u[n]=e[n]}),u):e}function Ps(u,e){if(u===e)return!0;if(u==null||e===null||e===void 0||typeof u!=typeof e||typeof u!="object"||Array.isArray(u)!==Array.isArray(e))return!1;let t,n;if(Array.isArray(u)){if(u.length!==e.length)return!1;for(t=0;tfunction(){const r=Array.prototype.slice.call(arguments,0);return e(i,r)},n={};for(const i of u)n[i]=t(i);return n}globalThis&&globalThis.__awaiter;let $Ge=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function KGe(u,e){let t;return e.length===0?t=u:t=u.replace(/\{(\d+)\}/g,(n,i)=>{const r=i[0],a=e[r];let o=n;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),$Ge&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function v(u,e,...t){return KGe(e,t)}var hO;const GD="en";let z8=!1,L8=!1,aS=!1,S5e=!1,PY=!1,NY=!1,B5e=!1,f_,oS=GD,ere=GD,WGe,Ql;const pl=typeof self=="object"?self:typeof global=="object"?global:{};let Wa;typeof pl.vscode<"u"&&typeof pl.vscode.process<"u"?Wa=pl.vscode.process:typeof process<"u"&&(Wa=process);const GGe=typeof((hO=Wa==null?void 0:Wa.versions)===null||hO===void 0?void 0:hO.electron)=="string",UGe=GGe&&(Wa==null?void 0:Wa.type)==="renderer";if(typeof navigator=="object"&&!UGe)Ql=navigator.userAgent,z8=Ql.indexOf("Windows")>=0,L8=Ql.indexOf("Macintosh")>=0,NY=(Ql.indexOf("Macintosh")>=0||Ql.indexOf("iPad")>=0||Ql.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,aS=Ql.indexOf("Linux")>=0,B5e=(Ql==null?void 0:Ql.indexOf("Mobi"))>=0,PY=!0,v({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),f_=GD,oS=f_,ere=navigator.language;else if(typeof Wa=="object"){z8=Wa.platform==="win32",L8=Wa.platform==="darwin",aS=Wa.platform==="linux",aS&&Wa.env.SNAP&&Wa.env.SNAP_REVISION,Wa.env.CI||Wa.env.BUILD_ARTIFACTSTAGINGDIRECTORY,f_=GD,oS=GD;const u=Wa.env.VSCODE_NLS_CONFIG;if(u)try{const e=JSON.parse(u),t=e.availableLanguages["*"];f_=e.locale,ere=e.osLocale,oS=t||GD,WGe=e._translationsConfigFile}catch{}S5e=!0}else console.error("Unable to resolve platform.");const Yr=z8,Yt=L8,za=aS,wc=S5e,Xg=PY,qGe=PY&&typeof pl.importScripts=="function",Fl=NY,JGe=B5e,d1=Ql,ZGe=oS,YGe=typeof pl.postMessage=="function"&&!pl.importScripts,w5e=(()=>{if(YGe){const u=[];pl.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=u.length;n{const n=++e;u.push({id:n,callback:t}),pl.postMessage({vscodeScheduleAsyncWork:n},"*")}}return u=>setTimeout(u)})(),Ss=L8||NY?2:z8?1:3;let tre=!0,ure=!1;function z5e(){if(!ure){ure=!0;const u=new Uint8Array(2);u[0]=1,u[1]=2,tre=new Uint16Array(u.buffer)[0]===512+1}return tre}const L5e=!!(d1&&d1.indexOf("Chrome")>=0),QGe=!!(d1&&d1.indexOf("Firefox")>=0),XGe=!!(!L5e&&d1&&d1.indexOf("Safari")>=0),eUe=!!(d1&&d1.indexOf("Edg/")>=0);d1&&d1.indexOf("Android")>=0;const aa={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Jt;(function(u){function e(p){return p&&typeof p=="object"&&typeof p[Symbol.iterator]=="function"}u.is=e;const t=Object.freeze([]);function n(){return t}u.empty=n;function*i(p){yield p}u.single=i;function r(p){return e(p)?p:i(p)}u.wrap=r;function a(p){return p||t}u.from=a;function o(p){return!p||p[Symbol.iterator]().next().done===!0}u.isEmpty=o;function s(p){return p[Symbol.iterator]().next().value}u.first=s;function l(p,D){for(const x of p)if(D(x))return!0;return!1}u.some=l;function c(p,D){for(const x of p)if(D(x))return x}u.find=c;function*d(p,D){for(const x of p)D(x)&&(yield x)}u.filter=d;function*h(p,D){let x=0;for(const b of p)yield D(b,x++)}u.map=h;function*E(...p){for(const D of p)for(const x of D)yield x}u.concat=E;function g(p,D,x){let b=x;for(const k of p)b=D(b,k);return b}u.reduce=g;function*m(p,D,x=p.length){for(D<0&&(D+=p.length),x<0?x+=p.length:x>p.length&&(x=p.length);D{i||(i=!0,this._remove(n))}}shift(){if(this._first!==zi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==zi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==zi.Undefined&&e.next!==zi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===zi.Undefined&&e.next===zi.Undefined?(this._first=zi.Undefined,this._last=zi.Undefined):e.next===zi.Undefined?(this._last=this._last.prev,this._last.next=zi.Undefined):e.prev===zi.Undefined&&(this._first=this._first.next,this._first.prev=zi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==zi.Undefined;)yield e.element,e=e.next}}const M5e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function tUe(u=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of M5e)u.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const RY=tUe();function T5e(u){let e=RY;if(u&&u instanceof RegExp)if(u.global)e=u;else{let t="g";u.ignoreCase&&(t+="i"),u.multiline&&(t+="m"),u.unicode&&(t+="u"),e=new RegExp(u.source,t)}return e.lastIndex=0,e}const P5e=new Xa;P5e.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Rk(u,e,t,n,i){if(i||(i=Jt.first(P5e)),t.length>i.maxLen){let l=u-i.maxLen/2;return l<0?l=0:n+=l,t=t.substring(l,u+i.maxLen/2),Rk(u,e,t,n,i)}const r=Date.now(),a=u-1-n;let o=-1,s=null;for(let l=1;!(Date.now()-r>=i.timeBudget);l++){const c=a-i.windowSize*l;e.lastIndex=Math.max(0,c);const d=uUe(e,t,a,o);if(!d&&s||(s=d,c<=0))break;o=c}if(s){const l={word:s[0],startColumn:n+1+s.index,endColumn:n+1+s.index+s[0].length};return e.lastIndex=0,l}return null}function uUe(u,e,t,n){let i;for(;i=u.exec(e);){const r=i.index||0;if(r<=t&&u.lastIndex>=t)return i;if(n>0&&r>n)return null}return null}const $4=8;class N5e{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class R5e{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class On{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}applyUpdate(e,t){return nP(e,t)}compute(e,t,n){return n}}class zb{constructor(e,t){this.newValue=e,this.didChange=t}}function nP(u,e){if(typeof u!="object"||typeof e!="object"||!u||!e)return new zb(e,u!==e);if(Array.isArray(u)||Array.isArray(e)){const n=Array.isArray(u)&&Array.isArray(e)&&Ur(u,e);return new zb(e,!n)}let t=!1;for(const n in e)if(e.hasOwnProperty(n)){const i=nP(u[n],e[n]);i.didChange&&(u[n]=i.newValue,t=!0)}return new zb(u,t)}class wF{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return nP(e,t)}validate(e){return this.defaultValue}}class Kv{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}applyUpdate(e,t){return nP(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,n){return n}}function qe(u,e){return typeof u>"u"?e:u==="false"?!1:!!u}class au extends Kv{constructor(e,t,n,i=void 0){typeof i<"u"&&(i.type="boolean",i.default=n),super(e,t,n,i)}validate(e){return qe(e,this.defaultValue)}}function Ik(u,e,t,n){if(typeof u>"u")return e;let i=parseInt(u,10);return isNaN(i)?e:(i=Math.max(t,i),i=Math.min(n,i),i|0)}class Qu extends Kv{static clampedInt(e,t,n,i){return Ik(e,t,n,i)}constructor(e,t,n,i,r,a=void 0){typeof a<"u"&&(a.type="integer",a.default=n,a.minimum=i,a.maximum=r),super(e,t,n,a),this.minimum=i,this.maximum=r}validate(e){return Qu.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function I5e(u,e,t,n){if(typeof u>"u")return e;const i=al.float(u,e);return al.clamp(i,t,n)}class al extends Kv{static clamp(e,t,n){return en?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(al.float(e,this.defaultValue))}}class Zo extends Kv{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 Zo.string(e,this.defaultValue)}}function Zn(u,e,t,n){return typeof u!="string"?e:n&&u in n?n[u]:t.indexOf(u)===-1?e:u}class ni extends Kv{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 Zn(e,this.defaultValue,this._allowedValues)}}class p_ extends On{constructor(e,t,n,i,r,a,o=void 0){typeof o<"u"&&(o.type="string",o.enum=r,o.default=i),super(e,t,n,o),this._allowedValues=r,this._convert=a}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function nUe(u){switch(u){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class iUe extends On{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[v("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),v("accessibilitySupport.on","Optimize for usage with a Screen Reader"),v("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:v("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 rUe extends On{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(22,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:v("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:v("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:qe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:qe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function aUe(u){switch(u){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Ar;(function(u){u[u.Line=1]="Line",u[u.Block=2]="Block",u[u.Underline=3]="Underline",u[u.LineThin=4]="LineThin",u[u.BlockOutline=5]="BlockOutline",u[u.UnderlineThin=6]="UnderlineThin"})(Ar||(Ar={}));function oUe(u){switch(u){case"line":return Ar.Line;case"block":return Ar.Block;case"underline":return Ar.Underline;case"line-thin":return Ar.LineThin;case"block-outline":return Ar.BlockOutline;case"underline-thin":return Ar.UnderlineThin}}class sUe extends wF{constructor(){super(139)}compute(e,t,n){const i=["monaco-editor"];return t.get(38)&&i.push(t.get(38)),e.extraEditorClassName&&i.push(e.extraEditorClassName),t.get(72)==="default"?i.push("mouse-default"):t.get(72)==="copy"&&i.push("mouse-copy"),t.get(109)&&i.push("showUnused"),t.get(137)&&i.push("showDeprecated"),i.join(" ")}}class lUe extends au{constructor(){super(36,"emptySelectionClipboard",!0,{description:v("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}class cUe extends On{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(40,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:v("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:[v("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),v("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),v("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:v("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:[v("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),v("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),v("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:v("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:v("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Yt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:v("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:v("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:qe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Zn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Zn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:qe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:qe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:qe(t.loop,this.defaultValue.loop)}}}class Bo extends On{constructor(){super(50,"fontLigatures",Bo.OFF,{anyOf:[{type:"boolean",description:v("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:v("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:v("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"?Bo.OFF:e==="true"?Bo.ON:e:e?Bo.ON:Bo.OFF}}Bo.OFF='"liga" off, "calt" off';Bo.ON='"liga" on, "calt" on';class Dc extends On{constructor(){super(53,"fontVariations",Dc.OFF,{anyOf:[{type:"boolean",description:v("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:v("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:v("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"?Dc.OFF:e==="true"?Dc.TRANSLATE:e:e?Dc.TRANSLATE:Dc.OFF}compute(e,t,n){return e.fontInfo.fontVariationSettings}}Dc.OFF="normal";Dc.TRANSLATE="translate";class dUe extends wF{constructor(){super(49)}compute(e,t,n){return e.fontInfo}}class hUe extends Kv{constructor(){super(51,"fontSize",ns.fontSize,{type:"number",minimum:6,maximum:100,default:ns.fontSize,description:v("fontSize","Controls the font size in pixels.")})}validate(e){const t=al.float(e,this.defaultValue);return t===0?ns.fontSize:al.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}class zd extends On{constructor(){super(52,"fontWeight",ns.fontWeight,{anyOf:[{type:"number",minimum:zd.MINIMUM_VALUE,maximum:zd.MAXIMUM_VALUE,errorMessage:v("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:zd.SUGGESTION_VALUES}],default:ns.fontWeight,description:v("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(Qu.clampedInt(e,ns.fontWeight,zd.MINIMUM_VALUE,zd.MAXIMUM_VALUE))}}zd.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];zd.MINIMUM_VALUE=1;zd.MAXIMUM_VALUE=1e3;class EUe extends On{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:[v("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),v("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),v("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(57,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:v("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":Object.assign({description:v("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:v("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:v("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:v("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:v("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:v("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:v("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:v("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:v("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:v("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,a;if(!e||typeof e!="object")return this.defaultValue;const o=e;return{multiple:Zn(o.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=o.multipleDefinitions)!==null&&t!==void 0?t:Zn(o.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=o.multipleTypeDefinitions)!==null&&n!==void 0?n:Zn(o.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(i=o.multipleDeclarations)!==null&&i!==void 0?i:Zn(o.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(r=o.multipleImplementations)!==null&&r!==void 0?r:Zn(o.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(a=o.multipleReferences)!==null&&a!==void 0?a:Zn(o.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Zo.string(o.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Zo.string(o.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Zo.string(o.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Zo.string(o.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Zo.string(o.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class gUe extends On{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(59,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:v("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:v("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:v("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:v("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:qe(t.enabled,this.defaultValue.enabled),delay:Qu.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:qe(t.sticky,this.defaultValue.sticky),above:qe(t.above,this.defaultValue.above)}}}class Rx extends wF{constructor(){super(142)}compute(e,t,n){return Rx.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),a=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:i,desiredRatio:r,minimapLineCount:a}}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 a=t.stableMinimapLayoutInput,o=a&&e.outerHeight===a.outerHeight&&e.lineHeight===a.lineHeight&&e.typicalHalfwidthCharacterWidth===a.typicalHalfwidthCharacterWidth&&e.pixelRatio===a.pixelRatio&&e.scrollBeyondLastLine===a.scrollBeyondLastLine&&e.paddingTop===a.paddingTop&&e.paddingBottom===a.paddingBottom&&e.minimap.enabled===a.minimap.enabled&&e.minimap.side===a.minimap.side&&e.minimap.size===a.minimap.size&&e.minimap.showSlider===a.minimap.showSlider&&e.minimap.renderCharacters===a.minimap.renderCharacters&&e.minimap.maxColumn===a.minimap.maxColumn&&e.minimap.scale===a.minimap.scale&&e.verticalScrollbarWidth===a.verticalScrollbarWidth&&e.isViewportWrapping===a.isViewportWrapping,s=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const E=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,p=e.viewLineCount,D=e.remainingWidth,x=e.isViewportWrapping,b=d?2:3;let k=Math.floor(r*i);const _=k/r;let y=!1,S=!1,B=b*h,L=h/r,M=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:j,extraLinesBeforeFirstLine:V,extraLinesBeyondLastLine:H,desiredRatio:q,minimapLineCount:J}=Rx.computeContainedMinimapLineCount({viewLineCount:p,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:i,lineHeight:s,pixelRatio:r});if(p/J>1)y=!0,S=!0,h=1,B=1,L=h/r;else{let X=!1,Y=h+1;if(g==="fit"){const le=Math.ceil((V+p+H)*B);x&&o&&D<=t.stableFitRemainingWidth?(X=!0,Y=t.stableFitMaxMinimapScale):X=le>k}if(g==="fill"||X){y=!0;const le=h;B=Math.min(s*r,Math.max(1,Math.floor(1/q))),x&&o&&D<=t.stableFitRemainingWidth&&(Y=t.stableFitMaxMinimapScale),h=Math.min(Y,Math.max(1,Math.floor(B/b))),h>le&&(M=Math.min(2,h/le)),L=h/r/M,k=Math.ceil(Math.max(j,V+p+H)*B),x?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=D,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const N=Math.floor(E*L),F=Math.min(N,Math.max(0,Math.floor((D-f-2)*L/(l+L)))+$4);let A=Math.floor(r*F);const z=A/r;A=Math.floor(A*M);const P=d?1:2,I=m==="left"?0:n-F-f;return{renderMinimap:P,minimapLeft:I,minimapWidth:F,minimapHeightIsEditorHeight:y,minimapIsSampling:S,minimapScale:h,minimapLineHeight:B,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:z,minimapCanvasOuterHeight:_}}static computeLayout(e,t){const n=t.outerWidth|0,i=t.outerHeight|0,r=t.lineHeight|0,a=t.lineNumbersDigitCount|0,o=t.typicalHalfwidthCharacterWidth,s=t.maxDigitWidth,l=t.pixelRatio,c=t.viewLineCount,d=e.get(134),h=d==="inherit"?e.get(133):d,E=h==="inherit"?e.get(129):h,g=e.get(132),m=t.isDominatedByLongLines,f=e.get(56),p=e.get(66).renderType!==0,D=e.get(67),x=e.get(103),b=e.get(82),k=e.get(71),_=e.get(101),y=_.verticalScrollbarSize,S=_.verticalHasArrows,B=_.arrowSize,L=_.horizontalScrollbarSize,M=e.get(42),N=e.get(108)!=="never";let F=e.get(64);M&&N&&(F+=16);let A=0;if(p){const ze=Math.max(a,D);A=Math.round(ze*s)}let z=0;f&&(z=r*t.glyphMarginDecorationLaneCount);let P=0,I=P+z,j=I+A,V=j+F;const H=n-z-A-F;let q=!1,J=!1,Q=-1;h==="inherit"&&m?(q=!0,J=!0):E==="on"||E==="bounded"?J=!0:E==="wordWrapColumn"&&(Q=g);const X=Rx._computeMinimapLayout({outerWidth:n,outerHeight:i,lineHeight:r,typicalHalfwidthCharacterWidth:o,pixelRatio:l,scrollBeyondLastLine:x,paddingTop:b.top,paddingBottom:b.bottom,minimap:k,verticalScrollbarWidth:y,viewLineCount:c,remainingWidth:H,isViewportWrapping:J},t.memory||new R5e);X.renderMinimap!==0&&X.minimapLeft===0&&(P+=X.minimapWidth,I+=X.minimapWidth,j+=X.minimapWidth,V+=X.minimapWidth);const Y=H-X.minimapWidth,le=Math.max(1,Math.floor((Y-y-2)/o)),he=S?B:0;return J&&(Q=Math.max(1,le),E==="bounded"&&(Q=Math.min(Q,g))),{width:n,height:i,glyphMarginLeft:P,glyphMarginWidth:z,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:I,lineNumbersWidth:A,decorationsLeft:j,decorationsWidth:F,contentLeft:V,contentWidth:Y,minimap:X,viewportColumn:le,isWordWrapMinified:q,isViewportWrapping:J,wrappingColumn:Q,verticalScrollbarWidth:y,horizontalScrollbarHeight:L,overviewRuler:{top:he,width:y,height:i-2*he,right:0}}}}class mUe extends On{constructor(){super(136,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[v("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."),v("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:v("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 Zn(e,"simple",["simple","advanced"])}compute(e,t,n){return t.get(2)===2?"advanced":n}}class fUe extends On{constructor(){const e={enabled:!0};super(63,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:v("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:qe(e.enabled,this.defaultValue.enabled)}}}class pUe extends On{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(113,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:v("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:v("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:v("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.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),maxLineCount:Qu.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:Zn(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class DUe extends On{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(138,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:v("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[v("editor.inlayHints.on","Inlay hints are enabled"),v("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Yt?"Ctrl+Option":"Ctrl+Alt"),v("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Yt?"Ctrl+Option":"Ctrl+Alt"),v("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:v("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:v("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:v("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:Zn(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Qu.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Zo.string(t.fontFamily,this.defaultValue.fontFamily),padding:qe(t.padding,this.defaultValue.padding)}}}class xUe extends On{constructor(){super(64,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Qu.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,n){return n<0?Qu.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class vUe extends al{constructor(){super(65,"lineHeight",ns.lineHeight,e=>al.clamp(e,0,150),{markdownDescription:v("lineHeight",`Controls the line height. + `},Jie=KWe(qWe)(o5e),JWe={config:GWe},ZWe=function(){for(var e=arguments.length,t=new Array(e),n=0;n{n.current=!1}:u,e)}var o0=mGe;function Bb(){}function GD(u,e,t,n){return fGe(u,n)||pGe(u,e,t,n)}function fGe(u,e){return u.editor.getModel(E5e(u,e))}function pGe(u,e,t,n){return u.editor.createModel(e,t,n?E5e(u,n):void 0)}function E5e(u,e){return u.Uri.parse(e)}function DGe({original:u,modified:e,language:t,originalLanguage:n,modifiedLanguage:i,originalModelPath:r,modifiedModelPath:a,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:s=!1,theme:l="light",loading:c="Loading...",options:d={},height:h="100%",width:E="100%",className:g,wrapperProps:m={},beforeMount:f=Bb,onMount:p=Bb}){let[D,x]=C.useState(!1),[b,k]=C.useState(!0),_=C.useRef(null),y=C.useRef(null),S=C.useRef(null),B=C.useRef(p),L=C.useRef(f),T=C.useRef(!1);h5e(()=>{let z=w8.init();return z.then(P=>(y.current=P)&&k(!1)).catch(P=>(P==null?void 0:P.type)!=="cancelation"&&console.error("Monaco initialization: error:",P)),()=>_.current?A():z.cancel()}),o0(()=>{if(_.current&&y.current){let z=_.current.getOriginalEditor(),P=GD(y.current,u||"",n||t||"text",r||"");P!==z.getModel()&&z.setModel(P)}},[r],D),o0(()=>{if(_.current&&y.current){let z=_.current.getModifiedEditor(),P=GD(y.current,e||"",i||t||"text",a||"");P!==z.getModel()&&z.setModel(P)}},[a],D),o0(()=>{let z=_.current.getModifiedEditor();z.getOption(y.current.editor.EditorOption.readOnly)?z.setValue(e||""):e!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[e],D),o0(()=>{var z,P;(P=(z=_.current)==null?void 0:z.getModel())==null||P.original.setValue(u||"")},[u],D),o0(()=>{let{original:z,modified:P}=_.current.getModel();y.current.editor.setModelLanguage(z,n||t||"text"),y.current.editor.setModelLanguage(P,i||t||"text")},[t,n,i],D),o0(()=>{var z;(z=y.current)==null||z.editor.setTheme(l)},[l],D),o0(()=>{var z;(z=_.current)==null||z.updateOptions(d)},[d],D);let N=C.useCallback(()=>{var I;if(!y.current)return;L.current(y.current);let z=GD(y.current,u||"",n||t||"text",r||""),P=GD(y.current,e||"",i||t||"text",a||"");(I=_.current)==null||I.setModel({original:z,modified:P})},[t,e,i,u,n,r,a]),F=C.useCallback(()=>{var z;!T.current&&S.current&&(_.current=y.current.editor.createDiffEditor(S.current,{automaticLayout:!0,...d}),N(),(z=y.current)==null||z.editor.setTheme(l),x(!0),T.current=!0)},[d,l,N]);C.useEffect(()=>{D&&B.current(_.current,y.current)},[D]),C.useEffect(()=>{!b&&!D&&F()},[b,D,F]);function A(){var P,I,j,V;let z=(P=_.current)==null?void 0:P.getModel();o||((I=z==null?void 0:z.original)==null||I.dispose()),s||((j=z==null?void 0:z.modified)==null||j.dispose()),(V=_.current)==null||V.dispose()}return M.createElement(d5e,{width:E,height:h,isEditorReady:D,loading:c,_ref:S,className:g,wrapperProps:m})}var xGe=DGe;C.memo(xGe);function vGe(u){let e=C.useRef();return C.useEffect(()=>{e.current=u},[u]),e.current}var CGe=vGe,g_=new Map;function bGe({defaultValue:u,defaultLanguage:e,defaultPath:t,value:n,language:i,path:r,theme:a="light",line:o,loading:s="Loading...",options:l={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:h=!1,width:E="100%",height:g="100%",className:m,wrapperProps:f={},beforeMount:p=Bb,onMount:D=Bb,onChange:x,onValidate:b=Bb}){let[k,_]=C.useState(!1),[y,S]=C.useState(!0),B=C.useRef(null),L=C.useRef(null),T=C.useRef(null),N=C.useRef(D),F=C.useRef(p),A=C.useRef(),z=C.useRef(n),P=CGe(r),I=C.useRef(!1),j=C.useRef(!1);h5e(()=>{let q=w8.init();return q.then(J=>(B.current=J)&&S(!1)).catch(J=>(J==null?void 0:J.type)!=="cancelation"&&console.error("Monaco initialization: error:",J)),()=>L.current?H():q.cancel()}),o0(()=>{var J,Q,X,Y;let q=GD(B.current,u||n||"",e||i||"",r||t||"");q!==((J=L.current)==null?void 0:J.getModel())&&(d&&g_.set(P,(Q=L.current)==null?void 0:Q.saveViewState()),(X=L.current)==null||X.setModel(q),d&&((Y=L.current)==null||Y.restoreViewState(g_.get(r))))},[r],k),o0(()=>{var q;(q=L.current)==null||q.updateOptions(l)},[l],k),o0(()=>{!L.current||n===void 0||(L.current.getOption(B.current.editor.EditorOption.readOnly)?L.current.setValue(n):n!==L.current.getValue()&&(j.current=!0,L.current.executeEdits("",[{range:L.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),L.current.pushUndoStop(),j.current=!1))},[n],k),o0(()=>{var J,Q;let q=(J=L.current)==null?void 0:J.getModel();q&&i&&((Q=B.current)==null||Q.editor.setModelLanguage(q,i))},[i],k),o0(()=>{var q;o!==void 0&&((q=L.current)==null||q.revealLine(o))},[o],k),o0(()=>{var q;(q=B.current)==null||q.editor.setTheme(a)},[a],k);let V=C.useCallback(()=>{var q;if(!(!T.current||!B.current)&&!I.current){F.current(B.current);let J=r||t,Q=GD(B.current,n||u||"",e||i||"",J||"");L.current=(q=B.current)==null?void 0:q.editor.create(T.current,{model:Q,automaticLayout:!0,...l},c),d&&L.current.restoreViewState(g_.get(J)),B.current.editor.setTheme(a),_(!0),I.current=!0}},[u,e,t,n,i,r,l,c,d,a]);C.useEffect(()=>{k&&N.current(L.current,B.current)},[k]),C.useEffect(()=>{!y&&!k&&V()},[y,k,V]),z.current=n,C.useEffect(()=>{var q,J;k&&x&&((q=A.current)==null||q.dispose(),A.current=(J=L.current)==null?void 0:J.onDidChangeModelContent(Q=>{j.current||x(L.current.getValue(),Q)}))},[k,x]),C.useEffect(()=>{if(k){let q=B.current.editor.onDidChangeMarkers(J=>{var X;let Q=(X=L.current.getModel())==null?void 0:X.uri;if(Q&&J.find(Y=>Y.path===Q.path)){let Y=B.current.editor.getModelMarkers({resource:Q});b==null||b(Y)}});return()=>{q==null||q.dispose()}}return()=>{}},[k,b]);function H(){var q,J;(q=A.current)==null||q.dispose(),h?d&&g_.set(r,L.current.saveViewState()):(J=L.current.getModel())==null||J.dispose(),L.current.dispose()}return M.createElement(d5e,{width:E,height:g,isEditorReady:k,loading:s,_ref:T,className:m,wrapperProps:f})}var kGe=bGe,g5e=C.memo(kGe),yGe=g5e,m5e={exports:{}};(function(u,e){(function(t,n){u.exports=n()})(fl,function(){var t=1e3,n=6e4,i=36e5,r="millisecond",a="second",o="minute",s="hour",l="day",c="week",d="month",h="quarter",E="year",g="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var A=["th","st","nd","rd"],z=F%100;return"["+F+(A[(z-20)%10]||A[z]||A[0])+"]"}},x=function(F,A,z){var P=String(F);return!P||P.length>=A?F:""+Array(A+1-P.length).join(z)+F},b={s:x,z:function(F){var A=-F.utcOffset(),z=Math.abs(A),P=Math.floor(z/60),I=z%60;return(A<=0?"+":"-")+x(P,2,"0")+":"+x(I,2,"0")},m:function F(A,z){if(A.date()1)return F(V[0])}else{var H=A.name;_[H]=A,I=H}return!P&&I&&(k=I),I||!P&&k},B=function(F,A){if(y(F))return F.clone();var z=typeof A=="object"?A:{};return z.date=F,z.args=arguments,new T(z)},L=b;L.l=S,L.i=y,L.w=function(F,A){return B(F,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var T=function(){function F(z){this.$L=S(z.locale,null,!0),this.parse(z)}var A=F.prototype;return A.parse=function(z){this.$d=function(P){var I=P.date,j=P.utc;if(I===null)return new Date(NaN);if(L.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var V=I.match(f);if(V){var H=V[2]-1||0,q=(V[7]||"0").substring(0,3);return j?new Date(Date.UTC(V[1],H,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)):new Date(V[1],H,V[3]||1,V[4]||0,V[5]||0,V[6]||0,q)}}return new Date(I)}(z),this.$x=z.x||{},this.init()},A.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},A.$utils=function(){return L},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(z,P){var I=B(z);return this.startOf(P)<=I&&I<=this.endOf(P)},A.isAfter=function(z,P){return B(z)n===i){if(u===e)return!0;if(!u||!e||u.length!==e.length)return!1;for(let n=0,i=u.length;nt(u[n],e))}function wGe(u,e){let t=0,n=u-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 p5e(u,e){let t=0,n=u.length;if(n===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],i=[],r=[],a=[];for(const o of e){const s=t(o,n);s<0?i.push(o):s>0?r.push(o):a.push(o)}return u!!e)}function Yie(u){let e=0;for(let t=0;t0}function Cg(u,e=t=>t){const t=new Set;return u.filter(n=>{const i=e(n);return t.has(i)?!1:(t.add(i),!0)})}function x5e(u,e){const t=zGe(u,e);if(t!==-1)return u[t]}function zGe(u,e){for(let t=u.length-1;t>=0;t--){const n=u[t];if(e(n))return t}return-1}function v5e(u,e){return u.length>0?u[0]:e}function Ha(u,e){let t=typeof e=="number"?u:0;typeof e=="number"?t=u:(t=0,e=u);const n=[];if(t<=e)for(let i=t;ie;i--)n.push(i);return n}function nP(u,e,t){const n=u.slice(0,e),i=u.slice(e);return n.concat(t,i)}function EO(u,e){const t=u.indexOf(e);t>-1&&(u.splice(t,1),u.unshift(e))}function m_(u,e){const t=u.indexOf(e);t>-1&&(u.splice(t,1),u.push(e))}function Qie(u,e){for(const t of e)u.push(t)}function TY(u){return Array.isArray(u)?u:[u]}function LGe(u,e){for(const t of u){const n=e(t);if(n!==void 0)return n}}function MGe(u,e,t){const n=C5e(u,e),i=u.length,r=t.length;u.length=i+r;for(let a=i-1;a>=n;a--)u[a+r]=u[a];for(let a=0;a0}u.isGreaterThan=t;function n(i){return i===0}u.isNeitherLessOrGreaterThan=n,u.greaterThan=1,u.lessThan=-1,u.neitherLessOrGreaterThan=0})(P$||(P$={}));function wb(u,e){return(t,n)=>e(u(t),u(n))}const TGe=(u,e)=>u-e;function b5e(u,e){if(u.length===0)return;let t=u[0];for(let n=1;n0&&(t=i)}return t}function PGe(u,e){if(u.length===0)return;let t=u[0];for(let n=1;n=0&&(t=i)}return t}function NGe(u,e){return b5e(u,(t,n)=>-e(t,n))}class Jh{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=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 Xd{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Xd(t=>this.iterate(n=>e(n)?t(n):!0))}map(e){return new Xd(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||P$.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0)),t}}Xd.empty=new Xd(u=>{});function no(u){return typeof u=="string"}function Qa(u){return typeof u=="object"&&u!==null&&!Array.isArray(u)&&!(u instanceof RegExp)&&!(u instanceof Date)}function RGe(u){const e=Object.getPrototypeOf(Uint8Array);return typeof u=="object"&&u instanceof e}function bg(u){return typeof u=="number"&&!isNaN(u)}function ere(u){return!!u&&typeof u[Symbol.iterator]=="function"}function k5e(u){return u===!0||u===!1}function ts(u){return typeof u>"u"}function kg(u){return!ys(u)}function ys(u){return ts(u)||u===null}function Iu(u,e){if(!u)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Cf(u){if(ys(u))throw new Error("Assertion Failed: argument is undefined or null");return u}function Nk(u){return typeof u=="function"}function IGe(u,e){const t=Math.min(u.length,e.length);for(let n=0;n"u"?null:u}function lh(u){if(!u||typeof u!="object"||u instanceof RegExp)return u;const e=Array.isArray(u)?[]:{};return Object.entries(u).forEach(([t,n])=>{e[t]=n&&typeof n=="object"?lh(n):n}),e}function jGe(u){if(!u||typeof u!="object")return u;const e=[u];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const n in t)if(F5e.call(t,n)){const i=t[n];typeof i=="object"&&!Object.isFrozen(i)&&!RGe(i)&&e.push(i)}}return u}const F5e=Object.prototype.hasOwnProperty;function A5e(u,e){return N$(u,e,new Set)}function N$(u,e,t){if(ys(u))return u;const n=e(u);if(typeof n<"u")return n;if(Array.isArray(u)){const i=[];for(const r of u)i.push(N$(r,e,t));return i}if(Qa(u)){if(t.has(u))throw new Error("Cannot clone recursive data-structure");t.add(u);const i={};for(const r in u)F5e.call(u,r)&&(i[r]=N$(u[r],e,t));return t.delete(u),i}return u}function BF(u,e,t=!0){return Qa(u)?(Qa(e)&&Object.keys(e).forEach(n=>{n in u?t&&(Qa(u[n])&&Qa(e[n])?BF(u[n],e[n],t):u[n]=e[n]):u[n]=e[n]}),u):e}function Ts(u,e){if(u===e)return!0;if(u==null||e===null||e===void 0||typeof u!=typeof e||typeof u!="object"||Array.isArray(u)!==Array.isArray(e))return!1;let t,n;if(Array.isArray(u)){if(u.length!==e.length)return!1;for(t=0;tfunction(){const r=Array.prototype.slice.call(arguments,0);return e(i,r)},n={};for(const i of u)n[i]=t(i);return n}globalThis&&globalThis.__awaiter;let $Ge=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function KGe(u,e){let t;return e.length===0?t=u:t=u.replace(/\{(\d+)\}/g,(n,i)=>{const r=i[0],a=e[r];let o=n;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),$Ge&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function v(u,e,...t){return KGe(e,t)}var gO;const UD="en";let z8=!1,L8=!1,aS=!1,_5e=!1,NY=!1,RY=!1,S5e=!1,f_,oS=UD,tre=UD,WGe,Ql;const pl=typeof self=="object"?self:typeof global=="object"?global:{};let Wa;typeof pl.vscode<"u"&&typeof pl.vscode.process<"u"?Wa=pl.vscode.process:typeof process<"u"&&(Wa=process);const GGe=typeof((gO=Wa==null?void 0:Wa.versions)===null||gO===void 0?void 0:gO.electron)=="string",UGe=GGe&&(Wa==null?void 0:Wa.type)==="renderer";if(typeof navigator=="object"&&!UGe)Ql=navigator.userAgent,z8=Ql.indexOf("Windows")>=0,L8=Ql.indexOf("Macintosh")>=0,RY=(Ql.indexOf("Macintosh")>=0||Ql.indexOf("iPad")>=0||Ql.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,aS=Ql.indexOf("Linux")>=0,S5e=(Ql==null?void 0:Ql.indexOf("Mobi"))>=0,NY=!0,v({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),f_=UD,oS=f_,tre=navigator.language;else if(typeof Wa=="object"){z8=Wa.platform==="win32",L8=Wa.platform==="darwin",aS=Wa.platform==="linux",aS&&Wa.env.SNAP&&Wa.env.SNAP_REVISION,Wa.env.CI||Wa.env.BUILD_ARTIFACTSTAGINGDIRECTORY,f_=UD,oS=UD;const u=Wa.env.VSCODE_NLS_CONFIG;if(u)try{const e=JSON.parse(u),t=e.availableLanguages["*"];f_=e.locale,tre=e.osLocale,oS=t||UD,WGe=e._translationsConfigFile}catch{}_5e=!0}else console.error("Unable to resolve platform.");const Yr=z8,Yt=L8,za=aS,wc=_5e,em=NY,qGe=NY&&typeof pl.importScripts=="function",Fl=RY,JGe=S5e,d1=Ql,ZGe=oS,YGe=typeof pl.postMessage=="function"&&!pl.importScripts,B5e=(()=>{if(YGe){const u=[];pl.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=u.length;n{const n=++e;u.push({id:n,callback:t}),pl.postMessage({vscodeScheduleAsyncWork:n},"*")}}return u=>setTimeout(u)})(),Ss=L8||RY?2:z8?1:3;let ure=!0,nre=!1;function w5e(){if(!nre){nre=!0;const u=new Uint8Array(2);u[0]=1,u[1]=2,ure=new Uint16Array(u.buffer)[0]===512+1}return ure}const z5e=!!(d1&&d1.indexOf("Chrome")>=0),QGe=!!(d1&&d1.indexOf("Firefox")>=0),XGe=!!(!z5e&&d1&&d1.indexOf("Safari")>=0),eUe=!!(d1&&d1.indexOf("Edg/")>=0);d1&&d1.indexOf("Android")>=0;const aa={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Jt;(function(u){function e(p){return p&&typeof p=="object"&&typeof p[Symbol.iterator]=="function"}u.is=e;const t=Object.freeze([]);function n(){return t}u.empty=n;function*i(p){yield p}u.single=i;function r(p){return e(p)?p:i(p)}u.wrap=r;function a(p){return p||t}u.from=a;function o(p){return!p||p[Symbol.iterator]().next().done===!0}u.isEmpty=o;function s(p){return p[Symbol.iterator]().next().value}u.first=s;function l(p,D){for(const x of p)if(D(x))return!0;return!1}u.some=l;function c(p,D){for(const x of p)if(D(x))return x}u.find=c;function*d(p,D){for(const x of p)D(x)&&(yield x)}u.filter=d;function*h(p,D){let x=0;for(const b of p)yield D(b,x++)}u.map=h;function*E(...p){for(const D of p)for(const x of D)yield x}u.concat=E;function g(p,D,x){let b=x;for(const k of p)b=D(b,k);return b}u.reduce=g;function*m(p,D,x=p.length){for(D<0&&(D+=p.length),x<0?x+=p.length:x>p.length&&(x=p.length);D{i||(i=!0,this._remove(n))}}shift(){if(this._first!==zi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==zi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==zi.Undefined&&e.next!==zi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===zi.Undefined&&e.next===zi.Undefined?(this._first=zi.Undefined,this._last=zi.Undefined):e.next===zi.Undefined?(this._last=this._last.prev,this._last.next=zi.Undefined):e.prev===zi.Undefined&&(this._first=this._first.next,this._first.prev=zi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==zi.Undefined;)yield e.element,e=e.next}}const L5e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function tUe(u=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of L5e)u.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const IY=tUe();function M5e(u){let e=IY;if(u&&u instanceof RegExp)if(u.global)e=u;else{let t="g";u.ignoreCase&&(t+="i"),u.multiline&&(t+="m"),u.unicode&&(t+="u"),e=new RegExp(u.source,t)}return e.lastIndex=0,e}const T5e=new Xa;T5e.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Rk(u,e,t,n,i){if(i||(i=Jt.first(T5e)),t.length>i.maxLen){let l=u-i.maxLen/2;return l<0?l=0:n+=l,t=t.substring(l,u+i.maxLen/2),Rk(u,e,t,n,i)}const r=Date.now(),a=u-1-n;let o=-1,s=null;for(let l=1;!(Date.now()-r>=i.timeBudget);l++){const c=a-i.windowSize*l;e.lastIndex=Math.max(0,c);const d=uUe(e,t,a,o);if(!d&&s||(s=d,c<=0))break;o=c}if(s){const l={word:s[0],startColumn:n+1+s.index,endColumn:n+1+s.index+s[0].length};return e.lastIndex=0,l}return null}function uUe(u,e,t,n){let i;for(;i=u.exec(e);){const r=i.index||0;if(r<=t&&u.lastIndex>=t)return i;if(n>0&&r>n)return null}return null}const $4=8;class P5e{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class N5e{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class On{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}applyUpdate(e,t){return iP(e,t)}compute(e,t,n){return n}}class zb{constructor(e,t){this.newValue=e,this.didChange=t}}function iP(u,e){if(typeof u!="object"||typeof e!="object"||!u||!e)return new zb(e,u!==e);if(Array.isArray(u)||Array.isArray(e)){const n=Array.isArray(u)&&Array.isArray(e)&&Ur(u,e);return new zb(e,!n)}let t=!1;for(const n in e)if(e.hasOwnProperty(n)){const i=iP(u[n],e[n]);i.didChange&&(u[n]=i.newValue,t=!0)}return new zb(u,t)}class wF{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return iP(e,t)}validate(e){return this.defaultValue}}class Kv{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}applyUpdate(e,t){return iP(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,n){return n}}function qe(u,e){return typeof u>"u"?e:u==="false"?!1:!!u}class au extends Kv{constructor(e,t,n,i=void 0){typeof i<"u"&&(i.type="boolean",i.default=n),super(e,t,n,i)}validate(e){return qe(e,this.defaultValue)}}function Ik(u,e,t,n){if(typeof u>"u")return e;let i=parseInt(u,10);return isNaN(i)?e:(i=Math.max(t,i),i=Math.min(n,i),i|0)}class Qu extends Kv{static clampedInt(e,t,n,i){return Ik(e,t,n,i)}constructor(e,t,n,i,r,a=void 0){typeof a<"u"&&(a.type="integer",a.default=n,a.minimum=i,a.maximum=r),super(e,t,n,a),this.minimum=i,this.maximum=r}validate(e){return Qu.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function R5e(u,e,t,n){if(typeof u>"u")return e;const i=al.float(u,e);return al.clamp(i,t,n)}class al extends Kv{static clamp(e,t,n){return en?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(al.float(e,this.defaultValue))}}class Jo extends Kv{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 Jo.string(e,this.defaultValue)}}function Zn(u,e,t,n){return typeof u!="string"?e:n&&u in n?n[u]:t.indexOf(u)===-1?e:u}class ni extends Kv{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 Zn(e,this.defaultValue,this._allowedValues)}}class p_ extends On{constructor(e,t,n,i,r,a,o=void 0){typeof o<"u"&&(o.type="string",o.enum=r,o.default=i),super(e,t,n,o),this._allowedValues=r,this._convert=a}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function nUe(u){switch(u){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class iUe extends On{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[v("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),v("accessibilitySupport.on","Optimize for usage with a Screen Reader"),v("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:v("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 rUe extends On{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(22,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:v("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:v("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:qe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:qe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function aUe(u){switch(u){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Ar;(function(u){u[u.Line=1]="Line",u[u.Block=2]="Block",u[u.Underline=3]="Underline",u[u.LineThin=4]="LineThin",u[u.BlockOutline=5]="BlockOutline",u[u.UnderlineThin=6]="UnderlineThin"})(Ar||(Ar={}));function oUe(u){switch(u){case"line":return Ar.Line;case"block":return Ar.Block;case"underline":return Ar.Underline;case"line-thin":return Ar.LineThin;case"block-outline":return Ar.BlockOutline;case"underline-thin":return Ar.UnderlineThin}}class sUe extends wF{constructor(){super(139)}compute(e,t,n){const i=["monaco-editor"];return t.get(38)&&i.push(t.get(38)),e.extraEditorClassName&&i.push(e.extraEditorClassName),t.get(72)==="default"?i.push("mouse-default"):t.get(72)==="copy"&&i.push("mouse-copy"),t.get(109)&&i.push("showUnused"),t.get(137)&&i.push("showDeprecated"),i.join(" ")}}class lUe extends au{constructor(){super(36,"emptySelectionClipboard",!0,{description:v("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}class cUe extends On{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(40,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:v("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:[v("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),v("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),v("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:v("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:[v("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),v("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),v("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:v("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:v("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Yt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:v("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:v("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:qe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Zn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Zn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:qe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:qe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:qe(t.loop,this.defaultValue.loop)}}}class Bo extends On{constructor(){super(50,"fontLigatures",Bo.OFF,{anyOf:[{type:"boolean",description:v("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:v("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:v("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"?Bo.OFF:e==="true"?Bo.ON:e:e?Bo.ON:Bo.OFF}}Bo.OFF='"liga" off, "calt" off';Bo.ON='"liga" on, "calt" on';class Dc extends On{constructor(){super(53,"fontVariations",Dc.OFF,{anyOf:[{type:"boolean",description:v("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:v("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:v("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"?Dc.OFF:e==="true"?Dc.TRANSLATE:e:e?Dc.TRANSLATE:Dc.OFF}compute(e,t,n){return e.fontInfo.fontVariationSettings}}Dc.OFF="normal";Dc.TRANSLATE="translate";class dUe extends wF{constructor(){super(49)}compute(e,t,n){return e.fontInfo}}class hUe extends Kv{constructor(){super(51,"fontSize",ns.fontSize,{type:"number",minimum:6,maximum:100,default:ns.fontSize,description:v("fontSize","Controls the font size in pixels.")})}validate(e){const t=al.float(e,this.defaultValue);return t===0?ns.fontSize:al.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}class zd extends On{constructor(){super(52,"fontWeight",ns.fontWeight,{anyOf:[{type:"number",minimum:zd.MINIMUM_VALUE,maximum:zd.MAXIMUM_VALUE,errorMessage:v("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:zd.SUGGESTION_VALUES}],default:ns.fontWeight,description:v("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(Qu.clampedInt(e,ns.fontWeight,zd.MINIMUM_VALUE,zd.MAXIMUM_VALUE))}}zd.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];zd.MINIMUM_VALUE=1;zd.MAXIMUM_VALUE=1e3;class EUe extends On{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:[v("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),v("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),v("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(57,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:v("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":Object.assign({description:v("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:v("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:v("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:v("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:v("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:v("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:v("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:v("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:v("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:v("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,a;if(!e||typeof e!="object")return this.defaultValue;const o=e;return{multiple:Zn(o.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=o.multipleDefinitions)!==null&&t!==void 0?t:Zn(o.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=o.multipleTypeDefinitions)!==null&&n!==void 0?n:Zn(o.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(i=o.multipleDeclarations)!==null&&i!==void 0?i:Zn(o.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(r=o.multipleImplementations)!==null&&r!==void 0?r:Zn(o.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(a=o.multipleReferences)!==null&&a!==void 0?a:Zn(o.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Jo.string(o.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Jo.string(o.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Jo.string(o.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Jo.string(o.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Jo.string(o.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class gUe extends On{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(59,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:v("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:v("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:v("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:v("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:qe(t.enabled,this.defaultValue.enabled),delay:Qu.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:qe(t.sticky,this.defaultValue.sticky),above:qe(t.above,this.defaultValue.above)}}}class Ix extends wF{constructor(){super(142)}compute(e,t,n){return Ix.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),a=Math.floor(e.viewLineCount/r);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:i,desiredRatio:r,minimapLineCount:a}}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 a=t.stableMinimapLayoutInput,o=a&&e.outerHeight===a.outerHeight&&e.lineHeight===a.lineHeight&&e.typicalHalfwidthCharacterWidth===a.typicalHalfwidthCharacterWidth&&e.pixelRatio===a.pixelRatio&&e.scrollBeyondLastLine===a.scrollBeyondLastLine&&e.paddingTop===a.paddingTop&&e.paddingBottom===a.paddingBottom&&e.minimap.enabled===a.minimap.enabled&&e.minimap.side===a.minimap.side&&e.minimap.size===a.minimap.size&&e.minimap.showSlider===a.minimap.showSlider&&e.minimap.renderCharacters===a.minimap.renderCharacters&&e.minimap.maxColumn===a.minimap.maxColumn&&e.minimap.scale===a.minimap.scale&&e.verticalScrollbarWidth===a.verticalScrollbarWidth&&e.isViewportWrapping===a.isViewportWrapping,s=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=r>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const E=e.minimap.maxColumn,g=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,p=e.viewLineCount,D=e.remainingWidth,x=e.isViewportWrapping,b=d?2:3;let k=Math.floor(r*i);const _=k/r;let y=!1,S=!1,B=b*h,L=h/r,T=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:j,extraLinesBeforeFirstLine:V,extraLinesBeyondLastLine:H,desiredRatio:q,minimapLineCount:J}=Ix.computeContainedMinimapLineCount({viewLineCount:p,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:i,lineHeight:s,pixelRatio:r});if(p/J>1)y=!0,S=!0,h=1,B=1,L=h/r;else{let X=!1,Y=h+1;if(g==="fit"){const le=Math.ceil((V+p+H)*B);x&&o&&D<=t.stableFitRemainingWidth?(X=!0,Y=t.stableFitMaxMinimapScale):X=le>k}if(g==="fill"||X){y=!0;const le=h;B=Math.min(s*r,Math.max(1,Math.floor(1/q))),x&&o&&D<=t.stableFitRemainingWidth&&(Y=t.stableFitMaxMinimapScale),h=Math.min(Y,Math.max(1,Math.floor(B/b))),h>le&&(T=Math.min(2,h/le)),L=h/r/T,k=Math.ceil(Math.max(j,V+p+H)*B),x?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=D,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const N=Math.floor(E*L),F=Math.min(N,Math.max(0,Math.floor((D-f-2)*L/(l+L)))+$4);let A=Math.floor(r*F);const z=A/r;A=Math.floor(A*T);const P=d?1:2,I=m==="left"?0:n-F-f;return{renderMinimap:P,minimapLeft:I,minimapWidth:F,minimapHeightIsEditorHeight:y,minimapIsSampling:S,minimapScale:h,minimapLineHeight:B,minimapCanvasInnerWidth:A,minimapCanvasInnerHeight:k,minimapCanvasOuterWidth:z,minimapCanvasOuterHeight:_}}static computeLayout(e,t){const n=t.outerWidth|0,i=t.outerHeight|0,r=t.lineHeight|0,a=t.lineNumbersDigitCount|0,o=t.typicalHalfwidthCharacterWidth,s=t.maxDigitWidth,l=t.pixelRatio,c=t.viewLineCount,d=e.get(134),h=d==="inherit"?e.get(133):d,E=h==="inherit"?e.get(129):h,g=e.get(132),m=t.isDominatedByLongLines,f=e.get(56),p=e.get(66).renderType!==0,D=e.get(67),x=e.get(103),b=e.get(82),k=e.get(71),_=e.get(101),y=_.verticalScrollbarSize,S=_.verticalHasArrows,B=_.arrowSize,L=_.horizontalScrollbarSize,T=e.get(42),N=e.get(108)!=="never";let F=e.get(64);T&&N&&(F+=16);let A=0;if(p){const ze=Math.max(a,D);A=Math.round(ze*s)}let z=0;f&&(z=r*t.glyphMarginDecorationLaneCount);let P=0,I=P+z,j=I+A,V=j+F;const H=n-z-A-F;let q=!1,J=!1,Q=-1;h==="inherit"&&m?(q=!0,J=!0):E==="on"||E==="bounded"?J=!0:E==="wordWrapColumn"&&(Q=g);const X=Ix._computeMinimapLayout({outerWidth:n,outerHeight:i,lineHeight:r,typicalHalfwidthCharacterWidth:o,pixelRatio:l,scrollBeyondLastLine:x,paddingTop:b.top,paddingBottom:b.bottom,minimap:k,verticalScrollbarWidth:y,viewLineCount:c,remainingWidth:H,isViewportWrapping:J},t.memory||new N5e);X.renderMinimap!==0&&X.minimapLeft===0&&(P+=X.minimapWidth,I+=X.minimapWidth,j+=X.minimapWidth,V+=X.minimapWidth);const Y=H-X.minimapWidth,le=Math.max(1,Math.floor((Y-y-2)/o)),he=S?B:0;return J&&(Q=Math.max(1,le),E==="bounded"&&(Q=Math.min(Q,g))),{width:n,height:i,glyphMarginLeft:P,glyphMarginWidth:z,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:I,lineNumbersWidth:A,decorationsLeft:j,decorationsWidth:F,contentLeft:V,contentWidth:Y,minimap:X,viewportColumn:le,isWordWrapMinified:q,isViewportWrapping:J,wrappingColumn:Q,verticalScrollbarWidth:y,horizontalScrollbarHeight:L,overviewRuler:{top:he,width:y,height:i-2*he,right:0}}}}class mUe extends On{constructor(){super(136,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[v("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."),v("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:v("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 Zn(e,"simple",["simple","advanced"])}compute(e,t,n){return t.get(2)===2?"advanced":n}}class fUe extends On{constructor(){const e={enabled:!0};super(63,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:v("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:qe(e.enabled,this.defaultValue.enabled)}}}class pUe extends On{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(113,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:v("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:v("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:v("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.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),maxLineCount:Qu.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:Zn(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class DUe extends On{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(138,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:v("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[v("editor.inlayHints.on","Inlay hints are enabled"),v("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Yt?"Ctrl+Option":"Ctrl+Alt"),v("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Yt?"Ctrl+Option":"Ctrl+Alt"),v("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:v("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:v("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:v("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:Zn(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Qu.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Jo.string(t.fontFamily,this.defaultValue.fontFamily),padding:qe(t.padding,this.defaultValue.padding)}}}class xUe extends On{constructor(){super(64,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Qu.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,n){return n<0?Qu.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class vUe extends al{constructor(){super(65,"lineHeight",ns.lineHeight,e=>al.clamp(e,0,150),{markdownDescription:v("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 CUe extends On{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(71,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:v("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:v("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[v("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),v("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),v("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:v("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:v("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:v("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:v("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:v("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:v("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:qe(t.enabled,this.defaultValue.enabled),autohide:qe(t.autohide,this.defaultValue.autohide),size:Zn(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Zn(t.side,this.defaultValue.side,["right","left"]),showSlider:Zn(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:qe(t.renderCharacters,this.defaultValue.renderCharacters),scale:Qu.clampedInt(t.scale,1,1,3),maxColumn:Qu.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function bUe(u){return u==="ctrlCmd"?Yt?"metaKey":"ctrlKey":"altKey"}class kUe extends On{constructor(){super(82,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:v("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:v("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:Qu.clampedInt(t.top,0,0,1e3),bottom:Qu.clampedInt(t.bottom,0,0,1e3)}}}class yUe extends On{constructor(){const e={enabled:!0,cycle:!0};super(84,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:v("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:v("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:qe(t.enabled,this.defaultValue.enabled),cycle:qe(t.cycle,this.defaultValue.cycle)}}}class FUe extends wF{constructor(){super(140)}compute(e,t,n){return e.pixelRatio}}class AUe extends On{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[v("on","Quick suggestions show inside the suggest widget"),v("inline","Quick suggestions show as ghost text"),v("off","Quick suggestions are disabled")]}];super(87,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:v("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:v("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:v("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:v("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 l=e?"on":"off";return{comments:l,strings:l,other:l}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:n,strings:i}=e,r=["on","inline","off"];let a,o,s;return typeof t=="boolean"?a=t?"on":"off":a=Zn(t,this.defaultValue.other,r),typeof n=="boolean"?o=n?"on":"off":o=Zn(n,this.defaultValue.comments,r),typeof i=="boolean"?s=i?"on":"off":s=Zn(i,this.defaultValue.strings,r),{other:a,comments:o,strings:s}}}class _Ue extends On{constructor(){super(66,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[v("lineNumbers.off","Line numbers are not rendered."),v("lineNumbers.on","Line numbers are rendered as absolute number."),v("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),v("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:v("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,n=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:n}}}function M8(u){const e=u.get(96);return e==="editable"?u.get(89):e!=="on"}class SUe extends On{constructor(){const e=[],t={type:"number",description:v("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(100,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:v("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:v("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const n of e)if(typeof n=="number")t.push({column:Qu.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const i=n;t.push({column:Qu.clampedInt(i.column,0,0,1e4),color:i.color})}return t.sort((n,i)=>n.column-i.column),t}return this.defaultValue}}class BUe extends On{constructor(){super(90,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function nre(u,e){if(typeof u!="string")return e;switch(u){case"hidden":return 2;case"visible":return 3;default:return 1}}let wUe=class extends On{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(101,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[v("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),v("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),v("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:v("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[v("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),v("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),v("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:v("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:v("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:v("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:v("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,n=Qu.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=Qu.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Qu.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:nre(t.vertical,this.defaultValue.vertical),horizontal:nre(t.horizontal,this.defaultValue.horizontal),useShadows:qe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:qe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:qe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:qe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:qe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:Qu.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:Qu.clampedInt(t.verticalSliderSize,i,0,1e3),scrollByPage:qe(t.scrollByPage,this.defaultValue.scrollByPage)}}};const vs="inUntrustedWorkspace",bo={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class zUe extends On{constructor(){const e={nonBasicASCII:vs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:vs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(123,"unicodeHighlight",e,{[bo.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vs],default:e.nonBasicASCII,description:v("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[bo.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:v("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[bo.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:v("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[bo.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vs],default:e.includeComments,description:v("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[bo.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vs],default:e.includeStrings,description:v("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[bo.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:v("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[bo.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:v("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let n=!1;t.allowedCharacters&&e&&(Ps(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),n=!0)),t.allowedLocales&&e&&(Ps(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),n=!0));const i=super.applyUpdate(e,t);return n?new zb(i.newValue,!0):i}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Ix(t.nonBasicASCII,vs,[!0,!1,vs]),invisibleCharacters:qe(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:qe(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Ix(t.includeComments,vs,[!0,!1,vs]),includeStrings:Ix(t.includeStrings,vs,[!0,!1,vs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const n={};for(const[i,r]of Object.entries(e))r===!0&&(n[i]=!0);return n}}class LUe extends On{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1};super(61,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:v("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[v("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),v("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:v("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:v("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),mode:Zn(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Zn(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:qe(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:qe(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}class MUe extends On{constructor(){const e={enabled:aa.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:aa.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(14,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:v("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:v("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:qe(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class TUe extends On{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(15,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[v("editor.guides.bracketPairs.true","Enables bracket pair guides."),v("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),v("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:v("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[v("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),v("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),v("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:v("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:v("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:v("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[v("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),v("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),v("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:v("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Ix(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Ix(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:qe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:qe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Ix(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Ix(u,e,t){const n=t.indexOf(u);return n===-1?e:t[n]}class PUe extends On{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(116,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[v("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),v("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:v("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:v("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:v("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:v("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[v("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),v("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),v("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),v("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:v("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:v("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:v("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:v("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:v("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:v("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:v("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:v("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Zn(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:qe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:qe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:qe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:qe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Zn(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:qe(t.showIcons,this.defaultValue.showIcons),showStatusBar:qe(t.showStatusBar,this.defaultValue.showStatusBar),preview:qe(t.preview,this.defaultValue.preview),previewMode:Zn(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:qe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:qe(t.showMethods,this.defaultValue.showMethods),showFunctions:qe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:qe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:qe(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:qe(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:qe(t.showFields,this.defaultValue.showFields),showVariables:qe(t.showVariables,this.defaultValue.showVariables),showClasses:qe(t.showClasses,this.defaultValue.showClasses),showStructs:qe(t.showStructs,this.defaultValue.showStructs),showInterfaces:qe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:qe(t.showModules,this.defaultValue.showModules),showProperties:qe(t.showProperties,this.defaultValue.showProperties),showEvents:qe(t.showEvents,this.defaultValue.showEvents),showOperators:qe(t.showOperators,this.defaultValue.showOperators),showUnits:qe(t.showUnits,this.defaultValue.showUnits),showValues:qe(t.showValues,this.defaultValue.showValues),showConstants:qe(t.showConstants,this.defaultValue.showConstants),showEnums:qe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:qe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:qe(t.showKeywords,this.defaultValue.showKeywords),showWords:qe(t.showWords,this.defaultValue.showWords),showColors:qe(t.showColors,this.defaultValue.showColors),showFiles:qe(t.showFiles,this.defaultValue.showFiles),showReferences:qe(t.showReferences,this.defaultValue.showReferences),showFolders:qe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:qe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:qe(t.showSnippets,this.defaultValue.showSnippets),showUsers:qe(t.showUsers,this.defaultValue.showUsers),showIssues:qe(t.showIssues,this.defaultValue.showIssues)}}}class NUe extends On{constructor(){super(111,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:v("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:v("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:qe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:qe(e.selectSubwords,this.defaultValue.selectSubwords)}}}class RUe extends On{constructor(){super(135,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[v("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),v("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),v("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),v("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:v("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,n){return t.get(2)===2?0:n}}class IUe extends wF{constructor(){super(143)}compute(e,t,n){const i=t.get(142);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}}class OUe extends On{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(35,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:v("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:v("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[v("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),v("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),showDropSelector:Zn(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class jUe extends On{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(83,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:v("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:v("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[v("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),v("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),showPasteSelector:Zn(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const VUe="Consolas, 'Courier New', monospace",HUe="Menlo, Monaco, 'Courier New', monospace",$Ue="'Droid Sans Mono', 'monospace', monospace",ns={fontFamily:Yt?HUe:za?$Ue:VUe,fontWeight:"normal",fontSize:Yt?12:14,lineHeight:0,letterSpacing:0},UD=[];function ke(u){return UD[u.id]=u,u}const Rl={acceptSuggestionOnCommitCharacter:ke(new au(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:v("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ke(new ni(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",v("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:v("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ke(new iUe),accessibilityPageSize:ke(new Qu(3,"accessibilityPageSize",10,1,1073741824,{description:v("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ke(new Zo(4,"ariaLabel",v("editorViewAccessibleLabel","Editor content"))),ariaRequired:ke(new au(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ke(new au(7,"screenReaderAnnounceInlineSuggestion",!0,{description:v("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ke(new ni(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",v("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),v("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:v("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ke(new ni(8,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",v("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:v("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ke(new ni(9,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",v("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:v("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ke(new ni(10,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",v("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),v("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:v("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ke(new p_(11,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],nUe,{enumDescriptions:[v("editor.autoIndent.none","The editor will not insert indentation automatically."),v("editor.autoIndent.keep","The editor will keep the current line's indentation."),v("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),v("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),v("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:v("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ke(new au(12,"automaticLayout",!1)),autoSurround:ke(new ni(13,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[v("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),v("editor.autoSurround.quotes","Surround with quotes but not brackets."),v("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:v("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ke(new MUe),bracketPairGuides:ke(new TUe),stickyTabStops:ke(new au(114,"stickyTabStops",!1,{description:v("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ke(new au(16,"codeLens",!0,{description:v("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ke(new Zo(17,"codeLensFontFamily","",{description:v("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ke(new Qu(18,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:v("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ke(new au(19,"colorDecorators",!0,{description:v("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ke(new ni(145,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[v("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),v("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),v("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:v("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ke(new Qu(20,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:v("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ke(new au(21,"columnSelection",!1,{description:v("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ke(new rUe),contextmenu:ke(new au(23,"contextmenu",!0)),copyWithSyntaxHighlighting:ke(new au(24,"copyWithSyntaxHighlighting",!0,{description:v("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ke(new p_(25,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],aUe,{description:v("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ke(new ni(26,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[v("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),v("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),v("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:v("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ke(new p_(27,"cursorStyle",Ar.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],oUe,{description:v("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ke(new Qu(28,"cursorSurroundingLines",0,0,1073741824,{description:v("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ke(new ni(29,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[v("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),v("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:v("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ke(new Qu(30,"cursorWidth",0,0,1073741824,{markdownDescription:v("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ke(new au(31,"disableLayerHinting",!1)),disableMonospaceOptimizations:ke(new au(32,"disableMonospaceOptimizations",!1)),domReadOnly:ke(new au(33,"domReadOnly",!1)),dragAndDrop:ke(new au(34,"dragAndDrop",!0,{description:v("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ke(new lUe),dropIntoEditor:ke(new OUe),stickyScroll:ke(new pUe),experimentalWhitespaceRendering:ke(new ni(37,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[v("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),v("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),v("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:v("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ke(new Zo(38,"extraEditorClassName","")),fastScrollSensitivity:ke(new al(39,"fastScrollSensitivity",5,u=>u<=0?5:u,{markdownDescription:v("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ke(new cUe),fixedOverflowWidgets:ke(new au(41,"fixedOverflowWidgets",!1)),folding:ke(new au(42,"folding",!0,{description:v("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ke(new ni(43,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[v("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),v("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:v("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ke(new au(44,"foldingHighlight",!0,{description:v("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ke(new au(45,"foldingImportsByDefault",!1,{description:v("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ke(new Qu(46,"foldingMaximumRegions",5e3,10,65e3,{description:v("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ke(new au(47,"unfoldOnClickAfterEndOfLine",!1,{description:v("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ke(new Zo(48,"fontFamily",ns.fontFamily,{description:v("fontFamily","Controls the font family.")})),fontInfo:ke(new dUe),fontLigatures2:ke(new Bo),fontSize:ke(new hUe),fontWeight:ke(new zd),fontVariations:ke(new Dc),formatOnPaste:ke(new au(54,"formatOnPaste",!1,{description:v("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ke(new au(55,"formatOnType",!1,{description:v("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ke(new au(56,"glyphMargin",!0,{description:v("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ke(new EUe),hideCursorInOverviewRuler:ke(new au(58,"hideCursorInOverviewRuler",!1,{description:v("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ke(new gUe),inDiffEditor:ke(new au(60,"inDiffEditor",!1)),letterSpacing:ke(new al(62,"letterSpacing",ns.letterSpacing,u=>al.clamp(u,-5,20),{description:v("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ke(new fUe),lineDecorationsWidth:ke(new xUe),lineHeight:ke(new vUe),lineNumbers:ke(new _Ue),lineNumbersMinChars:ke(new Qu(67,"lineNumbersMinChars",5,1,300)),linkedEditing:ke(new au(68,"linkedEditing",!1,{description:v("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ke(new au(69,"links",!0,{description:v("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ke(new ni(70,"matchBrackets","always",["always","near","never"],{description:v("matchBrackets","Highlight matching brackets.")})),minimap:ke(new CUe),mouseStyle:ke(new ni(72,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ke(new al(73,"mouseWheelScrollSensitivity",1,u=>u===0?1:u,{markdownDescription:v("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ke(new au(74,"mouseWheelZoom",!1,{markdownDescription:v("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ke(new au(75,"multiCursorMergeOverlapping",!0,{description:v("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ke(new p_(76,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],bUe,{markdownEnumDescriptions:[v("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),v("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:v({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ke(new ni(77,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[v("multiCursorPaste.spread","Each cursor pastes a single line of the text."),v("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:v("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ke(new Qu(78,"multiCursorLimit",1e4,1,1e5,{markdownDescription:v("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ke(new au(79,"occurrencesHighlight",!0,{description:v("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ke(new au(80,"overviewRulerBorder",!0,{description:v("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ke(new Qu(81,"overviewRulerLanes",3,0,3)),padding:ke(new kUe),pasteAs:ke(new jUe),parameterHints:ke(new yUe),peekWidgetDefaultFocus:ke(new ni(85,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[v("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),v("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:v("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ke(new au(86,"definitionLinkOpensInPeek",!1,{description:v("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ke(new AUe),quickSuggestionsDelay:ke(new Qu(88,"quickSuggestionsDelay",10,0,1073741824,{description:v("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ke(new au(89,"readOnly",!1)),readOnlyMessage:ke(new BUe),renameOnType:ke(new au(91,"renameOnType",!1,{description:v("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:v("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ke(new au(92,"renderControlCharacters",!0,{description:v("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ke(new ni(93,"renderFinalNewline",za?"dimmed":"on",["off","on","dimmed"],{description:v("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ke(new ni(94,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",v("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:v("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ke(new au(95,"renderLineHighlightOnlyWhenFocus",!1,{description:v("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ke(new ni(96,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ke(new ni(97,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",v("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),v("renderWhitespace.selection","Render whitespace characters only on selected text."),v("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:v("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ke(new Qu(98,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ke(new au(99,"roundedSelection",!0,{description:v("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ke(new SUe),scrollbar:ke(new wUe),scrollBeyondLastColumn:ke(new Qu(102,"scrollBeyondLastColumn",4,0,1073741824,{description:v("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ke(new au(103,"scrollBeyondLastLine",!0,{description:v("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ke(new au(104,"scrollPredominantAxis",!0,{description:v("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ke(new au(105,"selectionClipboard",!0,{description:v("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:za})),selectionHighlight:ke(new au(106,"selectionHighlight",!0,{description:v("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ke(new au(107,"selectOnLineNumbers",!0)),showFoldingControls:ke(new ni(108,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[v("showFoldingControls.always","Always show the folding controls."),v("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),v("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:v("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ke(new au(109,"showUnused",!0,{description:v("showUnused","Controls fading out of unused code.")})),showDeprecated:ke(new au(137,"showDeprecated",!0,{description:v("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ke(new DUe),snippetSuggestions:ke(new ni(110,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[v("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),v("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),v("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),v("snippetSuggestions.none","Do not show snippet suggestions.")],description:v("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ke(new NUe),smoothScrolling:ke(new au(112,"smoothScrolling",!1,{description:v("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ke(new Qu(115,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ke(new PUe),inlineSuggest:ke(new LUe),suggestFontSize:ke(new Qu(117,"suggestFontSize",0,0,1e3,{markdownDescription:v("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ke(new Qu(118,"suggestLineHeight",0,0,1e3,{markdownDescription:v("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ke(new au(119,"suggestOnTriggerCharacters",!0,{description:v("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ke(new ni(120,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[v("suggestSelection.first","Always select the first suggestion."),v("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),v("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:v("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ke(new ni(121,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[v("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),v("tabCompletion.off","Disable tab completions."),v("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:v("tabCompletion","Enables tab completions.")})),tabIndex:ke(new Qu(122,"tabIndex",0,-1,1073741824)),unicodeHighlight:ke(new zUe),unusualLineTerminators:ke(new ni(124,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[v("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),v("unusualLineTerminators.off","Unusual line terminators are ignored."),v("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:v("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ke(new au(125,"useShadowDOM",!0)),useTabStops:ke(new au(126,"useTabStops",!0,{description:v("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ke(new ni(127,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[v("wordBreak.normal","Use the default line break rule."),v("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:v("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ke(new Zo(128,"wordSeparators",M5e,{description:v("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ke(new ni(129,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[v("wordWrap.off","Lines will never wrap."),v("wordWrap.on","Lines will wrap at the viewport width."),v({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),v({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:v({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ke(new Zo(130,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ke(new Zo(131,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ke(new Qu(132,"wordWrapColumn",80,1,1073741824,{markdownDescription:v({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ke(new ni(133,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ke(new ni(134,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ke(new sUe),defaultColorDecorators:ke(new au(144,"defaultColorDecorators",!1,{markdownDescription:v("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ke(new FUe),tabFocusMode:ke(new au(141,"tabFocusMode",!1,{markdownDescription:v("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ke(new Rx),wrappingInfo:ke(new IUe),wrappingIndent:ke(new RUe),wrappingStrategy:ke(new mUe)};class KUe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?_5.isErrorNoTelemetry(e)?new _5(e.message+` + - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,n){return e.fontInfo.lineHeight}}class CUe extends On{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(71,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:v("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:v("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[v("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),v("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),v("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:v("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:v("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:v("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:v("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:v("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:v("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:qe(t.enabled,this.defaultValue.enabled),autohide:qe(t.autohide,this.defaultValue.autohide),size:Zn(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Zn(t.side,this.defaultValue.side,["right","left"]),showSlider:Zn(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:qe(t.renderCharacters,this.defaultValue.renderCharacters),scale:Qu.clampedInt(t.scale,1,1,3),maxColumn:Qu.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function bUe(u){return u==="ctrlCmd"?Yt?"metaKey":"ctrlKey":"altKey"}class kUe extends On{constructor(){super(82,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:v("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:v("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:Qu.clampedInt(t.top,0,0,1e3),bottom:Qu.clampedInt(t.bottom,0,0,1e3)}}}class yUe extends On{constructor(){const e={enabled:!0,cycle:!0};super(84,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:v("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:v("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:qe(t.enabled,this.defaultValue.enabled),cycle:qe(t.cycle,this.defaultValue.cycle)}}}class FUe extends wF{constructor(){super(140)}compute(e,t,n){return e.pixelRatio}}class AUe extends On{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[v("on","Quick suggestions show inside the suggest widget"),v("inline","Quick suggestions show as ghost text"),v("off","Quick suggestions are disabled")]}];super(87,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:v("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:v("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:v("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:v("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 l=e?"on":"off";return{comments:l,strings:l,other:l}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:n,strings:i}=e,r=["on","inline","off"];let a,o,s;return typeof t=="boolean"?a=t?"on":"off":a=Zn(t,this.defaultValue.other,r),typeof n=="boolean"?o=n?"on":"off":o=Zn(n,this.defaultValue.comments,r),typeof i=="boolean"?s=i?"on":"off":s=Zn(i,this.defaultValue.strings,r),{other:a,comments:o,strings:s}}}class _Ue extends On{constructor(){super(66,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[v("lineNumbers.off","Line numbers are not rendered."),v("lineNumbers.on","Line numbers are rendered as absolute number."),v("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),v("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:v("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,n=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:n}}}function M8(u){const e=u.get(96);return e==="editable"?u.get(89):e!=="on"}class SUe extends On{constructor(){const e=[],t={type:"number",description:v("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(100,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:v("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:v("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const n of e)if(typeof n=="number")t.push({column:Qu.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const i=n;t.push({column:Qu.clampedInt(i.column,0,0,1e4),color:i.color})}return t.sort((n,i)=>n.column-i.column),t}return this.defaultValue}}class BUe extends On{constructor(){super(90,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function ire(u,e){if(typeof u!="string")return e;switch(u){case"hidden":return 2;case"visible":return 3;default:return 1}}let wUe=class extends On{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(101,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[v("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),v("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),v("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:v("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[v("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),v("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),v("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:v("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:v("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:v("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:v("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,n=Qu.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=Qu.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Qu.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:ire(t.vertical,this.defaultValue.vertical),horizontal:ire(t.horizontal,this.defaultValue.horizontal),useShadows:qe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:qe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:qe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:qe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:qe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:Qu.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:Qu.clampedInt(t.verticalSliderSize,i,0,1e3),scrollByPage:qe(t.scrollByPage,this.defaultValue.scrollByPage)}}};const vs="inUntrustedWorkspace",bo={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class zUe extends On{constructor(){const e={nonBasicASCII:vs,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:vs,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(123,"unicodeHighlight",e,{[bo.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vs],default:e.nonBasicASCII,description:v("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[bo.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:v("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[bo.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:v("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[bo.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vs],default:e.includeComments,description:v("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[bo.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,vs],default:e.includeStrings,description:v("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[bo.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:v("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[bo.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:v("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let n=!1;t.allowedCharacters&&e&&(Ts(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),n=!0)),t.allowedLocales&&e&&(Ts(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),n=!0));const i=super.applyUpdate(e,t);return n?new zb(i.newValue,!0):i}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Ox(t.nonBasicASCII,vs,[!0,!1,vs]),invisibleCharacters:qe(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:qe(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Ox(t.includeComments,vs,[!0,!1,vs]),includeStrings:Ox(t.includeStrings,vs,[!0,!1,vs]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const n={};for(const[i,r]of Object.entries(e))r===!0&&(n[i]=!0);return n}}class LUe extends On{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1};super(61,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:v("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[v("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),v("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:v("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:v("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),mode:Zn(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Zn(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:qe(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:qe(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}class MUe extends On{constructor(){const e={enabled:aa.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:aa.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(14,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:v("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:v("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:qe(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class TUe extends On{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(15,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[v("editor.guides.bracketPairs.true","Enables bracket pair guides."),v("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),v("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:v("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[v("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),v("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),v("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:v("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:v("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:v("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[v("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),v("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),v("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:v("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Ox(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Ox(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:qe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:qe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Ox(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Ox(u,e,t){const n=t.indexOf(u);return n===-1?e:t[n]}class PUe extends On{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(116,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[v("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),v("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:v("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:v("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:v("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:v("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[v("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),v("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),v("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),v("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:v("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:v("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:v("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:v("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:v("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:v("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:v("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:v("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:v("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Zn(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:qe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:qe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:qe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:qe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Zn(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:qe(t.showIcons,this.defaultValue.showIcons),showStatusBar:qe(t.showStatusBar,this.defaultValue.showStatusBar),preview:qe(t.preview,this.defaultValue.preview),previewMode:Zn(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:qe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:qe(t.showMethods,this.defaultValue.showMethods),showFunctions:qe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:qe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:qe(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:qe(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:qe(t.showFields,this.defaultValue.showFields),showVariables:qe(t.showVariables,this.defaultValue.showVariables),showClasses:qe(t.showClasses,this.defaultValue.showClasses),showStructs:qe(t.showStructs,this.defaultValue.showStructs),showInterfaces:qe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:qe(t.showModules,this.defaultValue.showModules),showProperties:qe(t.showProperties,this.defaultValue.showProperties),showEvents:qe(t.showEvents,this.defaultValue.showEvents),showOperators:qe(t.showOperators,this.defaultValue.showOperators),showUnits:qe(t.showUnits,this.defaultValue.showUnits),showValues:qe(t.showValues,this.defaultValue.showValues),showConstants:qe(t.showConstants,this.defaultValue.showConstants),showEnums:qe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:qe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:qe(t.showKeywords,this.defaultValue.showKeywords),showWords:qe(t.showWords,this.defaultValue.showWords),showColors:qe(t.showColors,this.defaultValue.showColors),showFiles:qe(t.showFiles,this.defaultValue.showFiles),showReferences:qe(t.showReferences,this.defaultValue.showReferences),showFolders:qe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:qe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:qe(t.showSnippets,this.defaultValue.showSnippets),showUsers:qe(t.showUsers,this.defaultValue.showUsers),showIssues:qe(t.showIssues,this.defaultValue.showIssues)}}}class NUe extends On{constructor(){super(111,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:v("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:v("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:qe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:qe(e.selectSubwords,this.defaultValue.selectSubwords)}}}class RUe extends On{constructor(){super(135,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[v("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),v("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),v("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),v("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:v("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,n){return t.get(2)===2?0:n}}class IUe extends wF{constructor(){super(143)}compute(e,t,n){const i=t.get(142);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}}class OUe extends On{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(35,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:v("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:v("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[v("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),v("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),showDropSelector:Zn(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class jUe extends On{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(83,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:v("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:v("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[v("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),v("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:qe(t.enabled,this.defaultValue.enabled),showPasteSelector:Zn(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const VUe="Consolas, 'Courier New', monospace",HUe="Menlo, Monaco, 'Courier New', monospace",$Ue="'Droid Sans Mono', 'monospace', monospace",ns={fontFamily:Yt?HUe:za?$Ue:VUe,fontWeight:"normal",fontSize:Yt?12:14,lineHeight:0,letterSpacing:0},qD=[];function ke(u){return qD[u.id]=u,u}const Rl={acceptSuggestionOnCommitCharacter:ke(new au(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:v("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ke(new ni(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",v("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:v("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ke(new iUe),accessibilityPageSize:ke(new Qu(3,"accessibilityPageSize",10,1,1073741824,{description:v("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ke(new Jo(4,"ariaLabel",v("editorViewAccessibleLabel","Editor content"))),ariaRequired:ke(new au(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ke(new au(7,"screenReaderAnnounceInlineSuggestion",!0,{description:v("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ke(new ni(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",v("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),v("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:v("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ke(new ni(8,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",v("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:v("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ke(new ni(9,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",v("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:v("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ke(new ni(10,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",v("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),v("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:v("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ke(new p_(11,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],nUe,{enumDescriptions:[v("editor.autoIndent.none","The editor will not insert indentation automatically."),v("editor.autoIndent.keep","The editor will keep the current line's indentation."),v("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),v("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),v("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:v("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ke(new au(12,"automaticLayout",!1)),autoSurround:ke(new ni(13,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[v("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),v("editor.autoSurround.quotes","Surround with quotes but not brackets."),v("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:v("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ke(new MUe),bracketPairGuides:ke(new TUe),stickyTabStops:ke(new au(114,"stickyTabStops",!1,{description:v("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ke(new au(16,"codeLens",!0,{description:v("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ke(new Jo(17,"codeLensFontFamily","",{description:v("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ke(new Qu(18,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:v("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ke(new au(19,"colorDecorators",!0,{description:v("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ke(new ni(145,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[v("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),v("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),v("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:v("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ke(new Qu(20,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:v("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ke(new au(21,"columnSelection",!1,{description:v("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ke(new rUe),contextmenu:ke(new au(23,"contextmenu",!0)),copyWithSyntaxHighlighting:ke(new au(24,"copyWithSyntaxHighlighting",!0,{description:v("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ke(new p_(25,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],aUe,{description:v("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ke(new ni(26,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[v("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),v("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),v("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:v("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ke(new p_(27,"cursorStyle",Ar.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],oUe,{description:v("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ke(new Qu(28,"cursorSurroundingLines",0,0,1073741824,{description:v("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ke(new ni(29,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[v("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),v("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:v("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ke(new Qu(30,"cursorWidth",0,0,1073741824,{markdownDescription:v("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ke(new au(31,"disableLayerHinting",!1)),disableMonospaceOptimizations:ke(new au(32,"disableMonospaceOptimizations",!1)),domReadOnly:ke(new au(33,"domReadOnly",!1)),dragAndDrop:ke(new au(34,"dragAndDrop",!0,{description:v("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ke(new lUe),dropIntoEditor:ke(new OUe),stickyScroll:ke(new pUe),experimentalWhitespaceRendering:ke(new ni(37,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[v("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),v("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),v("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:v("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ke(new Jo(38,"extraEditorClassName","")),fastScrollSensitivity:ke(new al(39,"fastScrollSensitivity",5,u=>u<=0?5:u,{markdownDescription:v("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ke(new cUe),fixedOverflowWidgets:ke(new au(41,"fixedOverflowWidgets",!1)),folding:ke(new au(42,"folding",!0,{description:v("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ke(new ni(43,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[v("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),v("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:v("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ke(new au(44,"foldingHighlight",!0,{description:v("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ke(new au(45,"foldingImportsByDefault",!1,{description:v("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ke(new Qu(46,"foldingMaximumRegions",5e3,10,65e3,{description:v("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ke(new au(47,"unfoldOnClickAfterEndOfLine",!1,{description:v("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ke(new Jo(48,"fontFamily",ns.fontFamily,{description:v("fontFamily","Controls the font family.")})),fontInfo:ke(new dUe),fontLigatures2:ke(new Bo),fontSize:ke(new hUe),fontWeight:ke(new zd),fontVariations:ke(new Dc),formatOnPaste:ke(new au(54,"formatOnPaste",!1,{description:v("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ke(new au(55,"formatOnType",!1,{description:v("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ke(new au(56,"glyphMargin",!0,{description:v("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ke(new EUe),hideCursorInOverviewRuler:ke(new au(58,"hideCursorInOverviewRuler",!1,{description:v("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ke(new gUe),inDiffEditor:ke(new au(60,"inDiffEditor",!1)),letterSpacing:ke(new al(62,"letterSpacing",ns.letterSpacing,u=>al.clamp(u,-5,20),{description:v("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ke(new fUe),lineDecorationsWidth:ke(new xUe),lineHeight:ke(new vUe),lineNumbers:ke(new _Ue),lineNumbersMinChars:ke(new Qu(67,"lineNumbersMinChars",5,1,300)),linkedEditing:ke(new au(68,"linkedEditing",!1,{description:v("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ke(new au(69,"links",!0,{description:v("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ke(new ni(70,"matchBrackets","always",["always","near","never"],{description:v("matchBrackets","Highlight matching brackets.")})),minimap:ke(new CUe),mouseStyle:ke(new ni(72,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ke(new al(73,"mouseWheelScrollSensitivity",1,u=>u===0?1:u,{markdownDescription:v("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ke(new au(74,"mouseWheelZoom",!1,{markdownDescription:v("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ke(new au(75,"multiCursorMergeOverlapping",!0,{description:v("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ke(new p_(76,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],bUe,{markdownEnumDescriptions:[v("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),v("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:v({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ke(new ni(77,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[v("multiCursorPaste.spread","Each cursor pastes a single line of the text."),v("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:v("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ke(new Qu(78,"multiCursorLimit",1e4,1,1e5,{markdownDescription:v("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ke(new au(79,"occurrencesHighlight",!0,{description:v("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ke(new au(80,"overviewRulerBorder",!0,{description:v("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ke(new Qu(81,"overviewRulerLanes",3,0,3)),padding:ke(new kUe),pasteAs:ke(new jUe),parameterHints:ke(new yUe),peekWidgetDefaultFocus:ke(new ni(85,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[v("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),v("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:v("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ke(new au(86,"definitionLinkOpensInPeek",!1,{description:v("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ke(new AUe),quickSuggestionsDelay:ke(new Qu(88,"quickSuggestionsDelay",10,0,1073741824,{description:v("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ke(new au(89,"readOnly",!1)),readOnlyMessage:ke(new BUe),renameOnType:ke(new au(91,"renameOnType",!1,{description:v("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:v("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ke(new au(92,"renderControlCharacters",!0,{description:v("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ke(new ni(93,"renderFinalNewline",za?"dimmed":"on",["off","on","dimmed"],{description:v("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ke(new ni(94,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",v("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:v("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ke(new au(95,"renderLineHighlightOnlyWhenFocus",!1,{description:v("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ke(new ni(96,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ke(new ni(97,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",v("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),v("renderWhitespace.selection","Render whitespace characters only on selected text."),v("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:v("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ke(new Qu(98,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ke(new au(99,"roundedSelection",!0,{description:v("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ke(new SUe),scrollbar:ke(new wUe),scrollBeyondLastColumn:ke(new Qu(102,"scrollBeyondLastColumn",4,0,1073741824,{description:v("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ke(new au(103,"scrollBeyondLastLine",!0,{description:v("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ke(new au(104,"scrollPredominantAxis",!0,{description:v("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ke(new au(105,"selectionClipboard",!0,{description:v("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:za})),selectionHighlight:ke(new au(106,"selectionHighlight",!0,{description:v("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ke(new au(107,"selectOnLineNumbers",!0)),showFoldingControls:ke(new ni(108,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[v("showFoldingControls.always","Always show the folding controls."),v("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),v("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:v("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ke(new au(109,"showUnused",!0,{description:v("showUnused","Controls fading out of unused code.")})),showDeprecated:ke(new au(137,"showDeprecated",!0,{description:v("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ke(new DUe),snippetSuggestions:ke(new ni(110,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[v("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),v("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),v("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),v("snippetSuggestions.none","Do not show snippet suggestions.")],description:v("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ke(new NUe),smoothScrolling:ke(new au(112,"smoothScrolling",!1,{description:v("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ke(new Qu(115,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ke(new PUe),inlineSuggest:ke(new LUe),suggestFontSize:ke(new Qu(117,"suggestFontSize",0,0,1e3,{markdownDescription:v("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ke(new Qu(118,"suggestLineHeight",0,0,1e3,{markdownDescription:v("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ke(new au(119,"suggestOnTriggerCharacters",!0,{description:v("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ke(new ni(120,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[v("suggestSelection.first","Always select the first suggestion."),v("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),v("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:v("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ke(new ni(121,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[v("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),v("tabCompletion.off","Disable tab completions."),v("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:v("tabCompletion","Enables tab completions.")})),tabIndex:ke(new Qu(122,"tabIndex",0,-1,1073741824)),unicodeHighlight:ke(new zUe),unusualLineTerminators:ke(new ni(124,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[v("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),v("unusualLineTerminators.off","Unusual line terminators are ignored."),v("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:v("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ke(new au(125,"useShadowDOM",!0)),useTabStops:ke(new au(126,"useTabStops",!0,{description:v("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ke(new ni(127,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[v("wordBreak.normal","Use the default line break rule."),v("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:v("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ke(new Jo(128,"wordSeparators",L5e,{description:v("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ke(new ni(129,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[v("wordWrap.off","Lines will never wrap."),v("wordWrap.on","Lines will wrap at the viewport width."),v({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),v({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:v({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ke(new Jo(130,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ke(new Jo(131,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ke(new Qu(132,"wordWrapColumn",80,1,1073741824,{markdownDescription:v({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ke(new ni(133,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ke(new ni(134,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ke(new sUe),defaultColorDecorators:ke(new au(144,"defaultColorDecorators",!1,{markdownDescription:v("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ke(new FUe),tabFocusMode:ke(new au(141,"tabFocusMode",!1,{markdownDescription:v("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ke(new Ix),wrappingInfo:ke(new IUe),wrappingIndent:ke(new RUe),wrappingStrategy:ke(new mUe)};class KUe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?_5.isErrorNoTelemetry(e)?new _5(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const O5e=new KUe;function wt(u){Xc(u)||O5e.onUnexpectedError(u)}function Ni(u){Xc(u)||O5e.onUnexpectedExternalError(u)}function ire(u){if(u instanceof Error){const{name:e,message:t}=u,n=u.stacktrace||u.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:_5.isErrorNoTelemetry(u)}}return u}const T8="Canceled";function Xc(u){return u instanceof em?!0:u instanceof Error&&u.name===T8&&u.message===T8}class em extends Error{constructor(){super(T8),this.name=this.message}}function WUe(){const u=new Error(T8);return u.name=u.message,u}function p0(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function IY(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class GUe extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class _5 extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof _5)return e;const t=new _5;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class gr extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,gr.prototype)}}function h1(u){const e=this;let t=!1,n;return function(){return t||(t=!0,n=u.apply(e,arguments)),n}}function OY(u){return typeof u.dispose=="function"&&u.dispose.length===0}function Au(u){if(Jt.is(u)){const e=[];for(const t of u)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function Dl(...u){return bt(()=>Au(u))}function bt(u){return{dispose:h1(()=>{u()})}}class fe{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Au(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?fe.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}fe.DISABLE_DISPOSED_WARNING=!1;class ie{constructor(){this._store=new fe,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ie.None=Object.freeze({dispose(){}});class Qr{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}}class UUe{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class qUe{constructor(e){this.object=e}dispose(){}}class jY{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Au(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){var i;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))===null||t===void 0||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const JUe=globalThis.performance&&typeof globalThis.performance.now=="function";class ha{static create(e){return new ha(e)}constructor(e){this._now=JUe&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Ke;(function(u){u.None=()=>ie.None;function e(B,L){return c(B,()=>{},0,void 0,!0,void 0,L)}u.defer=e;function t(B){return(L,M=null,N)=>{let F=!1,A;return A=B(z=>{if(!F)return A?A.dispose():F=!0,L.call(M,z)},null,N),F&&A.dispose(),A}}u.once=t;function n(B,L,M){return l((N,F=null,A)=>B(z=>N.call(F,L(z)),null,A),M)}u.map=n;function i(B,L,M){return l((N,F=null,A)=>B(z=>{L(z),N.call(F,z)},null,A),M)}u.forEach=i;function r(B,L,M){return l((N,F=null,A)=>B(z=>L(z)&&N.call(F,z),null,A),M)}u.filter=r;function a(B){return B}u.signal=a;function o(...B){return(L,M=null,N)=>Dl(...B.map(F=>F(A=>L.call(M,A),null,N)))}u.any=o;function s(B,L,M,N){let F=M;return n(B,A=>(F=L(F,A),F),N)}u.reduce=s;function l(B,L){let M;const N={onWillAddFirstListener(){M=B(F.fire,F)},onDidRemoveLastListener(){M==null||M.dispose()}},F=new ee(N);return L==null||L.add(F),F.event}function c(B,L,M=100,N=!1,F=!1,A,z){let P,I,j,V=0,H;const q={leakWarningThreshold:A,onWillAddFirstListener(){P=B(Q=>{V++,I=L(I,Q),N&&!j&&(J.fire(I),I=void 0),H=()=>{const X=I;I=void 0,j=void 0,(!N||V>1)&&J.fire(X),V=0},typeof M=="number"?(clearTimeout(j),j=setTimeout(H,M)):j===void 0&&(j=0,queueMicrotask(H))})},onWillRemoveListener(){F&&V>0&&(H==null||H())},onDidRemoveLastListener(){H=void 0,P.dispose()}},J=new ee(q);return z==null||z.add(J),J.event}u.debounce=c;function d(B,L=0,M){return u.debounce(B,(N,F)=>N?(N.push(F),N):[F],L,void 0,!0,void 0,M)}u.accumulate=d;function h(B,L=(N,F)=>N===F,M){let N=!0,F;return r(B,A=>{const z=N||!L(A,F);return N=!1,F=A,z},M)}u.latch=h;function E(B,L,M){return[u.filter(B,L,M),u.filter(B,N=>!L(N),M)]}u.split=E;function g(B,L=!1,M=[]){let N=M.slice(),F=B(P=>{N?N.push(P):z.fire(P)});const A=()=>{N==null||N.forEach(P=>z.fire(P)),N=null},z=new ee({onWillAddFirstListener(){F||(F=B(P=>z.fire(P)))},onDidAddFirstListener(){N&&(L?setTimeout(A):A())},onDidRemoveLastListener(){F&&F.dispose(),F=null}});return z.event}u.buffer=g;class m{constructor(L){this.event=L,this.disposables=new fe}map(L){return new m(n(this.event,L,this.disposables))}forEach(L){return new m(i(this.event,L,this.disposables))}filter(L){return new m(r(this.event,L,this.disposables))}reduce(L,M){return new m(s(this.event,L,M,this.disposables))}latch(){return new m(h(this.event,void 0,this.disposables))}debounce(L,M=100,N=!1,F=!1,A){return new m(c(this.event,L,M,N,F,A,this.disposables))}on(L,M,N){return this.event(L,M,N)}once(L,M,N){return t(this.event)(L,M,N)}dispose(){this.disposables.dispose()}}function f(B){return new m(B)}u.chain=f;function p(B,L,M=N=>N){const N=(...P)=>z.fire(M(...P)),F=()=>B.on(L,N),A=()=>B.removeListener(L,N),z=new ee({onWillAddFirstListener:F,onDidRemoveLastListener:A});return z.event}u.fromNodeEventEmitter=p;function D(B,L,M=N=>N){const N=(...P)=>z.fire(M(...P)),F=()=>B.addEventListener(L,N),A=()=>B.removeEventListener(L,N),z=new ee({onWillAddFirstListener:F,onDidRemoveLastListener:A});return z.event}u.fromDOMEventEmitter=D;function x(B){return new Promise(L=>t(B)(L))}u.toPromise=x;function b(B,L){return L(void 0),B(M=>L(M))}u.runAndSubscribe=b;function k(B,L){let M=null;function N(A){M==null||M.dispose(),M=new fe,L(A,M)}N(void 0);const F=B(A=>N(A));return bt(()=>{F.dispose(),M==null||M.dispose()})}u.runAndSubscribeWithStore=k;class _{constructor(L,M){this._observable=L,this._counter=0,this._hasChanged=!1;const N={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new ee(N),M&&M.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,M){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function y(B,L){return new _(B,L).emitter.event}u.fromObservable=y;function S(B){return L=>{let M=0,N=!1;const F={beginUpdate(){M++},endUpdate(){M--,M===0&&(B.reportChanges(),N&&(N=!1,L()))},handlePossibleChange(){},handleChange(){N=!0}};return B.addObserver(F),B.reportChanges(),{dispose(){B.removeObserver(F)}}}}u.fromObservableLight=S})(Ke||(Ke={}));class S5{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${S5._idPool++}`,S5.all.add(this)}start(e){this._stopWatch=new ha,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}S5.all=new Set;S5._idPool=0;let ZUe=-1;class YUe{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t{const r=this._stacks.get(e.value)||0;this._stacks.set(e.value,r-1)}}}class VY{static create(){var e;return new VY((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const I5e=new KUe;function wt(u){Xc(u)||I5e.onUnexpectedError(u)}function Ni(u){Xc(u)||I5e.onUnexpectedExternalError(u)}function rre(u){if(u instanceof Error){const{name:e,message:t}=u,n=u.stacktrace||u.stack;return{$isError:!0,name:e,message:t,stack:n,noTelemetry:_5.isErrorNoTelemetry(u)}}return u}const T8="Canceled";function Xc(u){return u instanceof tm?!0:u instanceof Error&&u.name===T8&&u.message===T8}class tm extends Error{constructor(){super(T8),this.name=this.message}}function WUe(){const u=new Error(T8);return u.name=u.message,u}function p0(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function OY(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class GUe extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class _5 extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof _5)return e;const t=new _5;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class gr extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,gr.prototype)}}function h1(u){const e=this;let t=!1,n;return function(){return t||(t=!0,n=u.apply(e,arguments)),n}}function jY(u){return typeof u.dispose=="function"&&u.dispose.length===0}function Au(u){if(Jt.is(u)){const e=[];for(const t of u)if(t)try{t.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function Dl(...u){return bt(()=>Au(u))}function bt(u){return{dispose:h1(()=>{u()})}}class fe{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Au(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?fe.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}fe.DISABLE_DISPOSED_WARNING=!1;class ie{constructor(){this._store=new fe,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ie.None=Object.freeze({dispose(){}});class Qr{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}}class UUe{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class qUe{constructor(e){this.object=e}dispose(){}}class VY{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Au(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){var i;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))===null||t===void 0||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const JUe=globalThis.performance&&typeof globalThis.performance.now=="function";class ha{static create(e){return new ha(e)}constructor(e){this._now=JUe&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Ke;(function(u){u.None=()=>ie.None;function e(B,L){return c(B,()=>{},0,void 0,!0,void 0,L)}u.defer=e;function t(B){return(L,T=null,N)=>{let F=!1,A;return A=B(z=>{if(!F)return A?A.dispose():F=!0,L.call(T,z)},null,N),F&&A.dispose(),A}}u.once=t;function n(B,L,T){return l((N,F=null,A)=>B(z=>N.call(F,L(z)),null,A),T)}u.map=n;function i(B,L,T){return l((N,F=null,A)=>B(z=>{L(z),N.call(F,z)},null,A),T)}u.forEach=i;function r(B,L,T){return l((N,F=null,A)=>B(z=>L(z)&&N.call(F,z),null,A),T)}u.filter=r;function a(B){return B}u.signal=a;function o(...B){return(L,T=null,N)=>Dl(...B.map(F=>F(A=>L.call(T,A),null,N)))}u.any=o;function s(B,L,T,N){let F=T;return n(B,A=>(F=L(F,A),F),N)}u.reduce=s;function l(B,L){let T;const N={onWillAddFirstListener(){T=B(F.fire,F)},onDidRemoveLastListener(){T==null||T.dispose()}},F=new ee(N);return L==null||L.add(F),F.event}function c(B,L,T=100,N=!1,F=!1,A,z){let P,I,j,V=0,H;const q={leakWarningThreshold:A,onWillAddFirstListener(){P=B(Q=>{V++,I=L(I,Q),N&&!j&&(J.fire(I),I=void 0),H=()=>{const X=I;I=void 0,j=void 0,(!N||V>1)&&J.fire(X),V=0},typeof T=="number"?(clearTimeout(j),j=setTimeout(H,T)):j===void 0&&(j=0,queueMicrotask(H))})},onWillRemoveListener(){F&&V>0&&(H==null||H())},onDidRemoveLastListener(){H=void 0,P.dispose()}},J=new ee(q);return z==null||z.add(J),J.event}u.debounce=c;function d(B,L=0,T){return u.debounce(B,(N,F)=>N?(N.push(F),N):[F],L,void 0,!0,void 0,T)}u.accumulate=d;function h(B,L=(N,F)=>N===F,T){let N=!0,F;return r(B,A=>{const z=N||!L(A,F);return N=!1,F=A,z},T)}u.latch=h;function E(B,L,T){return[u.filter(B,L,T),u.filter(B,N=>!L(N),T)]}u.split=E;function g(B,L=!1,T=[]){let N=T.slice(),F=B(P=>{N?N.push(P):z.fire(P)});const A=()=>{N==null||N.forEach(P=>z.fire(P)),N=null},z=new ee({onWillAddFirstListener(){F||(F=B(P=>z.fire(P)))},onDidAddFirstListener(){N&&(L?setTimeout(A):A())},onDidRemoveLastListener(){F&&F.dispose(),F=null}});return z.event}u.buffer=g;class m{constructor(L){this.event=L,this.disposables=new fe}map(L){return new m(n(this.event,L,this.disposables))}forEach(L){return new m(i(this.event,L,this.disposables))}filter(L){return new m(r(this.event,L,this.disposables))}reduce(L,T){return new m(s(this.event,L,T,this.disposables))}latch(){return new m(h(this.event,void 0,this.disposables))}debounce(L,T=100,N=!1,F=!1,A){return new m(c(this.event,L,T,N,F,A,this.disposables))}on(L,T,N){return this.event(L,T,N)}once(L,T,N){return t(this.event)(L,T,N)}dispose(){this.disposables.dispose()}}function f(B){return new m(B)}u.chain=f;function p(B,L,T=N=>N){const N=(...P)=>z.fire(T(...P)),F=()=>B.on(L,N),A=()=>B.removeListener(L,N),z=new ee({onWillAddFirstListener:F,onDidRemoveLastListener:A});return z.event}u.fromNodeEventEmitter=p;function D(B,L,T=N=>N){const N=(...P)=>z.fire(T(...P)),F=()=>B.addEventListener(L,N),A=()=>B.removeEventListener(L,N),z=new ee({onWillAddFirstListener:F,onDidRemoveLastListener:A});return z.event}u.fromDOMEventEmitter=D;function x(B){return new Promise(L=>t(B)(L))}u.toPromise=x;function b(B,L){return L(void 0),B(T=>L(T))}u.runAndSubscribe=b;function k(B,L){let T=null;function N(A){T==null||T.dispose(),T=new fe,L(A,T)}N(void 0);const F=B(A=>N(A));return bt(()=>{F.dispose(),T==null||T.dispose()})}u.runAndSubscribeWithStore=k;class _{constructor(L,T){this._observable=L,this._counter=0,this._hasChanged=!1;const N={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new ee(N),T&&T.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,T){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function y(B,L){return new _(B,L).emitter.event}u.fromObservable=y;function S(B){return L=>{let T=0,N=!1;const F={beginUpdate(){T++},endUpdate(){T--,T===0&&(B.reportChanges(),N&&(N=!1,L()))},handlePossibleChange(){},handleChange(){N=!0}};return B.addObserver(F),B.reportChanges(),{dispose(){B.removeObserver(F)}}}}u.fromObservableLight=S})(Ke||(Ke={}));class S5{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${S5._idPool++}`,S5.all.add(this)}start(e){this._stopWatch=new ha,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}S5.all=new Set;S5._idPool=0;let ZUe=-1;class YUe{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t{const r=this._stacks.get(e.value)||0;this._stacks.set(e.value,r-1)}}}class HY{static create(){var e;return new HY((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class EO{constructor(e){this.value=e}}const QUe=2;let ee=class{constructor(e){var t,n,i,r,a;this._size=0,this._options=e,this._leakageMon=!((t=this._options)===null||t===void 0)&&t.leakWarningThreshold?new YUe((i=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&i!==void 0?i:ZUe):void 0,this._perfMon=!((r=this._options)===null||r===void 0)&&r._profName?new S5(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,t,n,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(n=(t=this._options)===null||t===void 0?void 0:t.onDidRemoveLastListener)===null||n===void 0||n.call(t),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(t,n,i)=>{var r,a,o,s,l;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ie.None;if(this._disposed)return ie.None;n&&(t=t.bind(n));const c=new EO(t);let d;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(c.stack=VY.create(),d=this._leakageMon.check(c.stack,this._size+1)),this._listeners?this._listeners instanceof EO?((l=this._deliveryQueue)!==null&&l!==void 0||(this._deliveryQueue=new j5e),this._listeners=[this._listeners,c]):this._listeners.push(c):((a=(r=this._options)===null||r===void 0?void 0:r.onWillAddFirstListener)===null||a===void 0||a.call(r,this),this._listeners=c,(s=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||s===void 0||s.call(o,this)),this._size++;const h=bt(()=>{d==null||d(),this._removeListener(c)});return i instanceof fe?i.add(h):Array.isArray(i)&&i.push(h),h}),this._event}_removeListener(e){var t,n,i,r;if((n=(t=this._options)===null||t===void 0?void 0:t.onWillRemoveListener)===null||n===void 0||n.call(t,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(r=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||r===void 0||r.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(e);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const s=this._deliveryQueue.current===this;if(this._size*QUe<=a.length){let l=0;for(let c=0;c0}};const XUe=()=>new j5e;class j5e{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class E3 extends ee{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Xa,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class V5e extends E3{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class eqe extends ee{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}}class tqe{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new ee({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),bt(h1(()=>{this.hasListeners&&this.unhook(t);const i=this.events.indexOf(t);this.events.splice(i,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class HY{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e(r=>{const a=this.buffers[this.buffers.length-1];a?a.push(()=>t.call(n,r)):t.call(n,r)},void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(i=>i()),n}}class rre{constructor(){this.listening=!1,this.inputEvent=Ke.None,this.inputEventListener=ie.None,this.emitter=new ee({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const H5e=Object.freeze(function(u,e){const t=setTimeout(u.bind(e),0);return{dispose(){clearTimeout(t)}}});var Vt;(function(u){function e(t){return t===u.None||t===u.Cancelled||t instanceof sS?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}u.isCancellationToken=e,u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ke.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:H5e})})(Vt||(Vt={}));class sS{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?H5e:(this._emitter||(this._emitter=new ee),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let nr=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new sS),this._token}cancel(){this._token?this._token instanceof sS&&this._token.cancel():this._token=Vt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),(t=this._parentListener)===null||t===void 0||t.dispose(),this._token?this._token instanceof sS&&this._token.dispose():this._token=Vt.None}};class $Y{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const lS=new $Y,N$=new $Y,R$=new $Y,$5e=new Array(230),uqe=Object.create(null),nqe=Object.create(null),KY=[];for(let u=0;u<=193;u++)KY[u]=-1;(function(){const u="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",u,u],[1,1,"Hyper",0,u,0,u,u,u],[1,2,"Super",0,u,0,u,u,u],[1,3,"Fn",0,u,0,u,u,u],[1,4,"FnLock",0,u,0,u,u,u],[1,5,"Suspend",0,u,0,u,u,u],[1,6,"Resume",0,u,0,u,u,u],[1,7,"Turbo",0,u,0,u,u,u],[1,8,"Sleep",0,u,0,"VK_SLEEP",u,u],[1,9,"WakeUp",0,u,0,u,u,u],[0,10,"KeyA",31,"A",65,"VK_A",u,u],[0,11,"KeyB",32,"B",66,"VK_B",u,u],[0,12,"KeyC",33,"C",67,"VK_C",u,u],[0,13,"KeyD",34,"D",68,"VK_D",u,u],[0,14,"KeyE",35,"E",69,"VK_E",u,u],[0,15,"KeyF",36,"F",70,"VK_F",u,u],[0,16,"KeyG",37,"G",71,"VK_G",u,u],[0,17,"KeyH",38,"H",72,"VK_H",u,u],[0,18,"KeyI",39,"I",73,"VK_I",u,u],[0,19,"KeyJ",40,"J",74,"VK_J",u,u],[0,20,"KeyK",41,"K",75,"VK_K",u,u],[0,21,"KeyL",42,"L",76,"VK_L",u,u],[0,22,"KeyM",43,"M",77,"VK_M",u,u],[0,23,"KeyN",44,"N",78,"VK_N",u,u],[0,24,"KeyO",45,"O",79,"VK_O",u,u],[0,25,"KeyP",46,"P",80,"VK_P",u,u],[0,26,"KeyQ",47,"Q",81,"VK_Q",u,u],[0,27,"KeyR",48,"R",82,"VK_R",u,u],[0,28,"KeyS",49,"S",83,"VK_S",u,u],[0,29,"KeyT",50,"T",84,"VK_T",u,u],[0,30,"KeyU",51,"U",85,"VK_U",u,u],[0,31,"KeyV",52,"V",86,"VK_V",u,u],[0,32,"KeyW",53,"W",87,"VK_W",u,u],[0,33,"KeyX",54,"X",88,"VK_X",u,u],[0,34,"KeyY",55,"Y",89,"VK_Y",u,u],[0,35,"KeyZ",56,"Z",90,"VK_Z",u,u],[0,36,"Digit1",22,"1",49,"VK_1",u,u],[0,37,"Digit2",23,"2",50,"VK_2",u,u],[0,38,"Digit3",24,"3",51,"VK_3",u,u],[0,39,"Digit4",25,"4",52,"VK_4",u,u],[0,40,"Digit5",26,"5",53,"VK_5",u,u],[0,41,"Digit6",27,"6",54,"VK_6",u,u],[0,42,"Digit7",28,"7",55,"VK_7",u,u],[0,43,"Digit8",29,"8",56,"VK_8",u,u],[0,44,"Digit9",30,"9",57,"VK_9",u,u],[0,45,"Digit0",21,"0",48,"VK_0",u,u],[1,46,"Enter",3,"Enter",13,"VK_RETURN",u,u],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",u,u],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",u,u],[1,49,"Tab",2,"Tab",9,"VK_TAB",u,u],[1,50,"Space",10,"Space",32,"VK_SPACE",u,u],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,u,0,u,u,u],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",u,u],[1,64,"F1",59,"F1",112,"VK_F1",u,u],[1,65,"F2",60,"F2",113,"VK_F2",u,u],[1,66,"F3",61,"F3",114,"VK_F3",u,u],[1,67,"F4",62,"F4",115,"VK_F4",u,u],[1,68,"F5",63,"F5",116,"VK_F5",u,u],[1,69,"F6",64,"F6",117,"VK_F6",u,u],[1,70,"F7",65,"F7",118,"VK_F7",u,u],[1,71,"F8",66,"F8",119,"VK_F8",u,u],[1,72,"F9",67,"F9",120,"VK_F9",u,u],[1,73,"F10",68,"F10",121,"VK_F10",u,u],[1,74,"F11",69,"F11",122,"VK_F11",u,u],[1,75,"F12",70,"F12",123,"VK_F12",u,u],[1,76,"PrintScreen",0,u,0,u,u,u],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",u,u],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",u,u],[1,79,"Insert",19,"Insert",45,"VK_INSERT",u,u],[1,80,"Home",14,"Home",36,"VK_HOME",u,u],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",u,u],[1,82,"Delete",20,"Delete",46,"VK_DELETE",u,u],[1,83,"End",13,"End",35,"VK_END",u,u],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",u,u],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",u],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",u],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",u],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",u],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",u,u],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",u,u],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",u,u],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",u,u],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",u,u],[1,94,"NumpadEnter",3,u,0,u,u,u],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",u,u],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",u,u],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",u,u],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",u,u],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",u,u],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",u,u],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",u,u],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",u,u],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",u,u],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",u,u],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",u,u],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",u,u],[1,107,"ContextMenu",58,"ContextMenu",93,u,u,u],[1,108,"Power",0,u,0,u,u,u],[1,109,"NumpadEqual",0,u,0,u,u,u],[1,110,"F13",71,"F13",124,"VK_F13",u,u],[1,111,"F14",72,"F14",125,"VK_F14",u,u],[1,112,"F15",73,"F15",126,"VK_F15",u,u],[1,113,"F16",74,"F16",127,"VK_F16",u,u],[1,114,"F17",75,"F17",128,"VK_F17",u,u],[1,115,"F18",76,"F18",129,"VK_F18",u,u],[1,116,"F19",77,"F19",130,"VK_F19",u,u],[1,117,"F20",78,"F20",131,"VK_F20",u,u],[1,118,"F21",79,"F21",132,"VK_F21",u,u],[1,119,"F22",80,"F22",133,"VK_F22",u,u],[1,120,"F23",81,"F23",134,"VK_F23",u,u],[1,121,"F24",82,"F24",135,"VK_F24",u,u],[1,122,"Open",0,u,0,u,u,u],[1,123,"Help",0,u,0,u,u,u],[1,124,"Select",0,u,0,u,u,u],[1,125,"Again",0,u,0,u,u,u],[1,126,"Undo",0,u,0,u,u,u],[1,127,"Cut",0,u,0,u,u,u],[1,128,"Copy",0,u,0,u,u,u],[1,129,"Paste",0,u,0,u,u,u],[1,130,"Find",0,u,0,u,u,u],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",u,u],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",u,u],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",u,u],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",u,u],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",u,u],[1,136,"KanaMode",0,u,0,u,u,u],[0,137,"IntlYen",0,u,0,u,u,u],[1,138,"Convert",0,u,0,u,u,u],[1,139,"NonConvert",0,u,0,u,u,u],[1,140,"Lang1",0,u,0,u,u,u],[1,141,"Lang2",0,u,0,u,u,u],[1,142,"Lang3",0,u,0,u,u,u],[1,143,"Lang4",0,u,0,u,u,u],[1,144,"Lang5",0,u,0,u,u,u],[1,145,"Abort",0,u,0,u,u,u],[1,146,"Props",0,u,0,u,u,u],[1,147,"NumpadParenLeft",0,u,0,u,u,u],[1,148,"NumpadParenRight",0,u,0,u,u,u],[1,149,"NumpadBackspace",0,u,0,u,u,u],[1,150,"NumpadMemoryStore",0,u,0,u,u,u],[1,151,"NumpadMemoryRecall",0,u,0,u,u,u],[1,152,"NumpadMemoryClear",0,u,0,u,u,u],[1,153,"NumpadMemoryAdd",0,u,0,u,u,u],[1,154,"NumpadMemorySubtract",0,u,0,u,u,u],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",u,u],[1,156,"NumpadClearEntry",0,u,0,u,u,u],[1,0,u,5,"Ctrl",17,"VK_CONTROL",u,u],[1,0,u,4,"Shift",16,"VK_SHIFT",u,u],[1,0,u,6,"Alt",18,"VK_MENU",u,u],[1,0,u,57,"Meta",91,"VK_COMMAND",u,u],[1,157,"ControlLeft",5,u,0,"VK_LCONTROL",u,u],[1,158,"ShiftLeft",4,u,0,"VK_LSHIFT",u,u],[1,159,"AltLeft",6,u,0,"VK_LMENU",u,u],[1,160,"MetaLeft",57,u,0,"VK_LWIN",u,u],[1,161,"ControlRight",5,u,0,"VK_RCONTROL",u,u],[1,162,"ShiftRight",4,u,0,"VK_RSHIFT",u,u],[1,163,"AltRight",6,u,0,"VK_RMENU",u,u],[1,164,"MetaRight",57,u,0,"VK_RWIN",u,u],[1,165,"BrightnessUp",0,u,0,u,u,u],[1,166,"BrightnessDown",0,u,0,u,u,u],[1,167,"MediaPlay",0,u,0,u,u,u],[1,168,"MediaRecord",0,u,0,u,u,u],[1,169,"MediaFastForward",0,u,0,u,u,u],[1,170,"MediaRewind",0,u,0,u,u,u],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",u,u],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",u,u],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",u,u],[1,174,"Eject",0,u,0,u,u,u],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",u,u],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",u,u],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",u,u],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",u,u],[1,179,"LaunchApp1",0,u,0,"VK_MEDIA_LAUNCH_APP1",u,u],[1,180,"SelectTask",0,u,0,u,u,u],[1,181,"LaunchScreenSaver",0,u,0,u,u,u],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",u,u],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",u,u],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",u,u],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",u,u],[1,186,"BrowserStop",0,u,0,"VK_BROWSER_STOP",u,u],[1,187,"BrowserRefresh",0,u,0,"VK_BROWSER_REFRESH",u,u],[1,188,"BrowserFavorites",0,u,0,"VK_BROWSER_FAVORITES",u,u],[1,189,"ZoomToggle",0,u,0,u,u,u],[1,190,"MailReply",0,u,0,u,u,u],[1,191,"MailForward",0,u,0,u,u,u],[1,192,"MailSend",0,u,0,u,u,u],[1,0,u,114,"KeyInComposition",229,u,u,u],[1,0,u,116,"ABNT_C2",194,"VK_ABNT_C2",u,u],[1,0,u,96,"OEM_8",223,"VK_OEM_8",u,u],[1,0,u,0,u,0,"VK_KANA",u,u],[1,0,u,0,u,0,"VK_HANGUL",u,u],[1,0,u,0,u,0,"VK_JUNJA",u,u],[1,0,u,0,u,0,"VK_FINAL",u,u],[1,0,u,0,u,0,"VK_HANJA",u,u],[1,0,u,0,u,0,"VK_KANJI",u,u],[1,0,u,0,u,0,"VK_CONVERT",u,u],[1,0,u,0,u,0,"VK_NONCONVERT",u,u],[1,0,u,0,u,0,"VK_ACCEPT",u,u],[1,0,u,0,u,0,"VK_MODECHANGE",u,u],[1,0,u,0,u,0,"VK_SELECT",u,u],[1,0,u,0,u,0,"VK_PRINT",u,u],[1,0,u,0,u,0,"VK_EXECUTE",u,u],[1,0,u,0,u,0,"VK_SNAPSHOT",u,u],[1,0,u,0,u,0,"VK_HELP",u,u],[1,0,u,0,u,0,"VK_APPS",u,u],[1,0,u,0,u,0,"VK_PROCESSKEY",u,u],[1,0,u,0,u,0,"VK_PACKET",u,u],[1,0,u,0,u,0,"VK_DBE_SBCSCHAR",u,u],[1,0,u,0,u,0,"VK_DBE_DBCSCHAR",u,u],[1,0,u,0,u,0,"VK_ATTN",u,u],[1,0,u,0,u,0,"VK_CRSEL",u,u],[1,0,u,0,u,0,"VK_EXSEL",u,u],[1,0,u,0,u,0,"VK_EREOF",u,u],[1,0,u,0,u,0,"VK_PLAY",u,u],[1,0,u,0,u,0,"VK_ZOOM",u,u],[1,0,u,0,u,0,"VK_NONAME",u,u],[1,0,u,0,u,0,"VK_PA1",u,u],[1,0,u,0,u,0,"VK_OEM_CLEAR",u,u]],t=[],n=[];for(const i of e){const[r,a,o,s,l,c,d,h,E]=i;if(n[a]||(n[a]=!0,uqe[o]=a,nqe[o.toLowerCase()]=a,r&&(KY[a]=s)),!t[s]){if(t[s]=!0,!l)throw new Error(`String representation missing for key code ${s} around scan code ${o}`);lS.define(s,l),N$.define(s,h||l),R$.define(s,E||h||l)}c&&($5e[c]=s)}})();var xh;(function(u){function e(o){return lS.keyCodeToStr(o)}u.toString=e;function t(o){return lS.strToKeyCode(o)}u.fromString=t;function n(o){return N$.keyCodeToStr(o)}u.toUserSettingsUS=n;function i(o){return R$.keyCodeToStr(o)}u.toUserSettingsGeneral=i;function r(o){return N$.strToKeyCode(o)||R$.strToKeyCode(o)}u.fromUserSettings=r;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return lS.keyCodeToStr(o)}u.toElectronAccelerator=a})(xh||(xh={}));function Ri(u,e){const t=(e&65535)<<16>>>0;return(u|t)>>>0}let Ox;if(typeof pl.vscode<"u"&&typeof pl.vscode.process<"u"){const u=pl.vscode.process;Ox={get platform(){return u.platform},get arch(){return u.arch},get env(){return u.env},cwd(){return u.cwd()}}}else typeof process<"u"?Ox={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Ox={get platform(){return Yr?"win32":Yt?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const P8=Ox.cwd,iqe=Ox.env,rqe=Ox.platform,aqe=65,oqe=97,sqe=90,lqe=122,VE=46,fa=47,xs=92,S4=58,cqe=63;class K5e extends Error{constructor(e,t,n){let i;typeof t=="string"&&t.indexOf("not ")===0?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${r} ${i} of type ${t}`;a+=`. Received type ${typeof n}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function dqe(u,e){if(u===null||typeof u!="object")throw new K5e(e,"Object",u)}function sr(u,e){if(typeof u!="string")throw new K5e(e,"string",u)}const tm=rqe==="win32";function Lu(u){return u===fa||u===xs}function I$(u){return u===fa}function B4(u){return u>=aqe&&u<=sqe||u>=oqe&&u<=lqe}function N8(u,e,t,n){let i="",r=0,a=-1,o=0,s=0;for(let l=0;l<=u.length;++l){if(l2){const c=i.lastIndexOf(t);c===-1?(i="",r=0):(i=i.slice(0,c),r=i.length-1-i.lastIndexOf(t)),a=l,o=0;continue}else if(i.length!==0){i="",r=0,a=l,o=0;continue}}e&&(i+=i.length>0?`${t}..`:"..",r=2)}else i.length>0?i+=`${t}${u.slice(a+1,l)}`:i=u.slice(a+1,l),r=l-a-1;a=l,o=0}else s===VE&&o!==-1?++o:o=-1}return i}function W5e(u,e){dqe(e,"pathObject");const t=e.dir||e.root,n=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${n}`:`${t}${u}${n}`:n}const us={resolve(...u){let e="",t="",n=!1;for(let i=u.length-1;i>=-1;i--){let r;if(i>=0){if(r=u[i],sr(r,"path"),r.length===0)continue}else e.length===0?r=P8():(r=iqe[`=${e}`]||P8(),(r===void 0||r.slice(0,2).toLowerCase()!==e.toLowerCase()&&r.charCodeAt(2)===xs)&&(r=`${e}\\`));const a=r.length;let o=0,s="",l=!1;const c=r.charCodeAt(0);if(a===1)Lu(c)&&(o=1,l=!0);else if(Lu(c))if(l=!0,Lu(r.charCodeAt(1))){let d=2,h=d;for(;d2&&Lu(r.charCodeAt(2))&&(l=!0,o=3));if(s.length>0)if(e.length>0){if(s.toLowerCase()!==e.toLowerCase())continue}else e=s;if(n){if(e.length>0)break}else if(t=`${r.slice(o)}\\${t}`,n=l,l&&e.length>0)break}return t=N8(t,!n,"\\",Lu),n?`${e}\\${t}`:`${e}${t}`||"."},normalize(u){sr(u,"path");const e=u.length;if(e===0)return".";let t=0,n,i=!1;const r=u.charCodeAt(0);if(e===1)return I$(r)?"\\":u;if(Lu(r))if(i=!0,Lu(u.charCodeAt(1))){let o=2,s=o;for(;o2&&Lu(u.charCodeAt(2))&&(i=!0,t=3));let a=t0&&Lu(u.charCodeAt(e-1))&&(a+="\\"),n===void 0?i?`\\${a}`:a:i?`${n}\\${a}`:`${n}${a}`},isAbsolute(u){sr(u,"path");const e=u.length;if(e===0)return!1;const t=u.charCodeAt(0);return Lu(t)||e>2&&B4(t)&&u.charCodeAt(1)===S4&&Lu(u.charCodeAt(2))},join(...u){if(u.length===0)return".";let e,t;for(let r=0;r0&&(e===void 0?e=t=a:e+=`\\${a}`)}if(e===void 0)return".";let n=!0,i=0;if(typeof t=="string"&&Lu(t.charCodeAt(0))){++i;const r=t.length;r>1&&Lu(t.charCodeAt(1))&&(++i,r>2&&(Lu(t.charCodeAt(2))?++i:n=!1))}if(n){for(;i=2&&(e=`\\${e.slice(i)}`)}return us.normalize(e)},relative(u,e){if(sr(u,"from"),sr(e,"to"),u===e)return"";const t=us.resolve(u),n=us.resolve(e);if(t===n||(u=t.toLowerCase(),e=n.toLowerCase(),u===e))return"";let i=0;for(;ii&&u.charCodeAt(r-1)===xs;)r--;const a=r-i;let o=0;for(;oo&&e.charCodeAt(s-1)===xs;)s--;const l=s-o,c=ac){if(e.charCodeAt(o+h)===xs)return n.slice(o+h+1);if(h===2)return n.slice(o+h)}a>c&&(u.charCodeAt(i+h)===xs?d=h:h===2&&(d=3)),d===-1&&(d=0)}let E="";for(h=i+d+1;h<=r;++h)(h===r||u.charCodeAt(h)===xs)&&(E+=E.length===0?"..":"\\..");return o+=d,E.length>0?`${E}${n.slice(o,s)}`:(n.charCodeAt(o)===xs&&++o,n.slice(o,s))},toNamespacedPath(u){if(typeof u!="string"||u.length===0)return u;const e=us.resolve(u);if(e.length<=2)return u;if(e.charCodeAt(0)===xs){if(e.charCodeAt(1)===xs){const t=e.charCodeAt(2);if(t!==cqe&&t!==VE)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(B4(e.charCodeAt(0))&&e.charCodeAt(1)===S4&&e.charCodeAt(2)===xs)return`\\\\?\\${e}`;return u},dirname(u){sr(u,"path");const e=u.length;if(e===0)return".";let t=-1,n=0;const i=u.charCodeAt(0);if(e===1)return Lu(i)?u:".";if(Lu(i)){if(t=n=1,Lu(u.charCodeAt(1))){let o=2,s=o;for(;o2&&Lu(u.charCodeAt(2))?3:2,n=t);let r=-1,a=!0;for(let o=e-1;o>=n;--o)if(Lu(u.charCodeAt(o))){if(!a){r=o;break}}else a=!1;if(r===-1){if(t===-1)return".";r=t}return u.slice(0,r)},basename(u,e){e!==void 0&&sr(e,"ext"),sr(u,"path");let t=0,n=-1,i=!0,r;if(u.length>=2&&B4(u.charCodeAt(0))&&u.charCodeAt(1)===S4&&(t=2),e!==void 0&&e.length>0&&e.length<=u.length){if(e===u)return"";let a=e.length-1,o=-1;for(r=u.length-1;r>=t;--r){const s=u.charCodeAt(r);if(Lu(s)){if(!i){t=r+1;break}}else o===-1&&(i=!1,o=r+1),a>=0&&(s===e.charCodeAt(a)?--a===-1&&(n=r):(a=-1,n=o))}return t===n?n=o:n===-1&&(n=u.length),u.slice(t,n)}for(r=u.length-1;r>=t;--r)if(Lu(u.charCodeAt(r))){if(!i){t=r+1;break}}else n===-1&&(i=!1,n=r+1);return n===-1?"":u.slice(t,n)},extname(u){sr(u,"path");let e=0,t=-1,n=0,i=-1,r=!0,a=0;u.length>=2&&u.charCodeAt(1)===S4&&B4(u.charCodeAt(0))&&(e=n=2);for(let o=u.length-1;o>=e;--o){const s=u.charCodeAt(o);if(Lu(s)){if(!r){n=o+1;break}continue}i===-1&&(r=!1,i=o+1),s===VE?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":u.slice(t,i)},format:W5e.bind(null,"\\"),parse(u){sr(u,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return e;const t=u.length;let n=0,i=u.charCodeAt(0);if(t===1)return Lu(i)?(e.root=e.dir=u,e):(e.base=e.name=u,e);if(Lu(i)){if(n=1,Lu(u.charCodeAt(1))){let d=2,h=d;for(;d0&&(e.root=u.slice(0,n));let r=-1,a=n,o=-1,s=!0,l=u.length-1,c=0;for(;l>=n;--l){if(i=u.charCodeAt(l),Lu(i)){if(!s){a=l+1;break}continue}o===-1&&(s=!1,o=l+1),i===VE?r===-1?r=l:c!==1&&(c=1):r!==-1&&(c=-1)}return o!==-1&&(r===-1||c===0||c===1&&r===o-1&&r===a+1?e.base=e.name=u.slice(a,o):(e.name=u.slice(a,r),e.base=u.slice(a,o),e.ext=u.slice(r,o))),a>0&&a!==n?e.dir=u.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},hqe=(()=>{if(tm){const u=/\\/g;return()=>{const e=P8().replace(u,"/");return e.slice(e.indexOf("/"))}}return()=>P8()})(),Mi={resolve(...u){let e="",t=!1;for(let n=u.length-1;n>=-1&&!t;n--){const i=n>=0?u[n]:hqe();sr(i,"path"),i.length!==0&&(e=`${i}/${e}`,t=i.charCodeAt(0)===fa)}return e=N8(e,!t,"/",I$),t?`/${e}`:e.length>0?e:"."},normalize(u){if(sr(u,"path"),u.length===0)return".";const e=u.charCodeAt(0)===fa,t=u.charCodeAt(u.length-1)===fa;return u=N8(u,!e,"/",I$),u.length===0?e?"/":t?"./":".":(t&&(u+="/"),e?`/${u}`:u)},isAbsolute(u){return sr(u,"path"),u.length>0&&u.charCodeAt(0)===fa},join(...u){if(u.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=n:e+=`/${n}`)}return e===void 0?".":Mi.normalize(e)},relative(u,e){if(sr(u,"from"),sr(e,"to"),u===e||(u=Mi.resolve(u),e=Mi.resolve(e),u===e))return"";const t=1,n=u.length,i=n-t,r=1,a=e.length-r,o=io){if(e.charCodeAt(r+l)===fa)return e.slice(r+l+1);if(l===0)return e.slice(r+l)}else i>o&&(u.charCodeAt(t+l)===fa?s=l:l===0&&(s=0));let c="";for(l=t+s+1;l<=n;++l)(l===n||u.charCodeAt(l)===fa)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(r+s)}`},toNamespacedPath(u){return u},dirname(u){if(sr(u,"path"),u.length===0)return".";const e=u.charCodeAt(0)===fa;let t=-1,n=!0;for(let i=u.length-1;i>=1;--i)if(u.charCodeAt(i)===fa){if(!n){t=i;break}}else n=!1;return t===-1?e?"/":".":e&&t===1?"//":u.slice(0,t)},basename(u,e){e!==void 0&&sr(e,"ext"),sr(u,"path");let t=0,n=-1,i=!0,r;if(e!==void 0&&e.length>0&&e.length<=u.length){if(e===u)return"";let a=e.length-1,o=-1;for(r=u.length-1;r>=0;--r){const s=u.charCodeAt(r);if(s===fa){if(!i){t=r+1;break}}else o===-1&&(i=!1,o=r+1),a>=0&&(s===e.charCodeAt(a)?--a===-1&&(n=r):(a=-1,n=o))}return t===n?n=o:n===-1&&(n=u.length),u.slice(t,n)}for(r=u.length-1;r>=0;--r)if(u.charCodeAt(r)===fa){if(!i){t=r+1;break}}else n===-1&&(i=!1,n=r+1);return n===-1?"":u.slice(t,n)},extname(u){sr(u,"path");let e=-1,t=0,n=-1,i=!0,r=0;for(let a=u.length-1;a>=0;--a){const o=u.charCodeAt(a);if(o===fa){if(!i){t=a+1;break}continue}n===-1&&(i=!1,n=a+1),o===VE?e===-1?e=a:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||n===-1||r===0||r===1&&e===n-1&&e===t+1?"":u.slice(e,n)},format:W5e.bind(null,"/"),parse(u){sr(u,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return e;const t=u.charCodeAt(0)===fa;let n;t?(e.root="/",n=1):n=0;let i=-1,r=0,a=-1,o=!0,s=u.length-1,l=0;for(;s>=n;--s){const c=u.charCodeAt(s);if(c===fa){if(!o){r=s+1;break}continue}a===-1&&(o=!1,a=s+1),c===VE?i===-1?i=s:l!==1&&(l=1):i!==-1&&(l=-1)}if(a!==-1){const c=r===0&&t?1:r;i===-1||l===0||l===1&&i===a-1&&i===r+1?e.base=e.name=u.slice(c,a):(e.name=u.slice(c,i),e.base=u.slice(c,a),e.ext=u.slice(i,a))}return r>0?e.dir=u.slice(0,r-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Mi.win32=us.win32=us;Mi.posix=us.posix=Mi;const G5e=tm?us.normalize:Mi.normalize,Eqe=tm?us.resolve:Mi.resolve,gqe=tm?us.relative:Mi.relative,U5e=tm?us.dirname:Mi.dirname,HE=tm?us.basename:Mi.basename,mqe=tm?us.extname:Mi.extname,zc=tm?us.sep:Mi.sep,fqe=/^\w[\w\d+.-]*$/,pqe=/^\//,Dqe=/^\/\//;function xqe(u,e){if(!u.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${u.authority}", path: "${u.path}", query: "${u.query}", fragment: "${u.fragment}"}`);if(u.scheme&&!fqe.test(u.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(u.path){if(u.authority){if(!pqe.test(u.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(Dqe.test(u.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function vqe(u,e){return!u&&!e?"file":u}function Cqe(u,e){switch(u){case"https":case"http":case"file":e?e[0]!==cc&&(e=cc+e):e=cc;break}return e}const hi="",cc="/",bqe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let lt=class cS{static isUri(e){return e instanceof cS?!0:e?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":!1}constructor(e,t,n,i,r,a=!1){typeof e=="object"?(this.scheme=e.scheme||hi,this.authority=e.authority||hi,this.path=e.path||hi,this.query=e.query||hi,this.fragment=e.fragment||hi):(this.scheme=vqe(e,a),this.authority=t||hi,this.path=Cqe(this.scheme,n||hi),this.query=i||hi,this.fragment=r||hi,xqe(this,a))}get fsPath(){return R8(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=hi),n===void 0?n=this.authority:n===null&&(n=hi),i===void 0?i=this.path:i===null&&(i=hi),r===void 0?r=this.query:r===null&&(r=hi),a===void 0?a=this.fragment:a===null&&(a=hi),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&a===this.fragment?this:new Yp(t,n,i,r,a)}static parse(e,t=!1){const n=bqe.exec(e);return n?new Yp(n[2]||hi,D_(n[4]||hi),D_(n[5]||hi),D_(n[7]||hi),D_(n[9]||hi),t):new Yp(hi,hi,hi,hi,hi)}static file(e){let t=hi;if(Yr&&(e=e.replace(/\\/g,cc)),e[0]===cc&&e[1]===cc){const n=e.indexOf(cc,2);n===-1?(t=e.substring(2),e=cc):(t=e.substring(2,n),e=e.substring(n)||cc)}return new Yp("file",t,e,hi,hi)}static from(e,t){return new Yp(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return Yr&&e.scheme==="file"?n=cS.file(us.join(R8(e,!0),...t)).path:n=Mi.join(e.path,...t),e.with({path:n})}toString(e=!1){return O$(this,e)}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof cS)return e;{const i=new Yp(e);return i._formatted=(t=e.external)!==null&&t!==void 0?t:null,i._fsPath=e._sep===q5e&&(n=e.fsPath)!==null&&n!==void 0?n:null,i}}else return e}};const q5e=Yr?1:void 0;let Yp=class extends lt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=R8(this,!1)),this._fsPath}toString(e=!1){return e?O$(this,!0):(this._formatted||(this._formatted=O$(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=q5e),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const J5e={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"};function are(u,e,t){let n,i=-1;for(let r=0;r=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||t&&a===91||t&&a===93||t&&a===58)i!==-1&&(n+=encodeURIComponent(u.substring(i,r)),i=-1),n!==void 0&&(n+=u.charAt(r));else{n===void 0&&(n=u.substr(0,r));const o=J5e[a];o!==void 0?(i!==-1&&(n+=encodeURIComponent(u.substring(i,r)),i=-1),n+=o):i===-1&&(i=r)}}return i!==-1&&(n+=encodeURIComponent(u.substring(i))),n!==void 0?n:u}function kqe(u){let e;for(let t=0;t1&&u.scheme==="file"?t=`//${u.authority}${u.path}`:u.path.charCodeAt(0)===47&&(u.path.charCodeAt(1)>=65&&u.path.charCodeAt(1)<=90||u.path.charCodeAt(1)>=97&&u.path.charCodeAt(1)<=122)&&u.path.charCodeAt(2)===58?e?t=u.path.substr(1):t=u.path[1].toLowerCase()+u.path.substr(2):t=u.path,Yr&&(t=t.replace(/\//g,"\\")),t}function O$(u,e){const t=e?kqe:are;let n="",{scheme:i,authority:r,path:a,query:o,fragment:s}=u;if(i&&(n+=i,n+=":"),(r||i==="file")&&(n+=cc,n+=cc),r){let l=r.indexOf("@");if(l!==-1){const c=r.substr(0,l);r=r.substr(l+1),l=c.lastIndexOf(":"),l===-1?n+=t(c,!1,!1):(n+=t(c.substr(0,l),!1,!1),n+=":",n+=t(c.substr(l+1),!1,!0)),n+="@"}r=r.toLowerCase(),l=r.lastIndexOf(":"),l===-1?n+=t(r,!1,!0):(n+=t(r.substr(0,l),!1,!0),n+=r.substr(l))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const l=a.charCodeAt(1);l>=65&&l<=90&&(a=`/${String.fromCharCode(l+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const l=a.charCodeAt(0);l>=65&&l<=90&&(a=`${String.fromCharCode(l+32)}:${a.substr(2)}`)}n+=t(a,!0,!1)}return o&&(n+="?",n+=t(o,!1,!1)),s&&(n+="#",n+=e?s:are(s,!1,!1)),n}function Z5e(u){try{return decodeURIComponent(u)}catch{return u.length>3?u.substr(0,3)+Z5e(u.substr(3)):u}}const ore=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function D_(u){return u.match(ore)?u.replace(ore,e=>Z5e(e)):u}let ue=class Gm{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Gm(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Gm.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Gm.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return Cr.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Cr.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return Cr.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return Cr.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return Cr.plusRange(this,e)}static plusRange(e,t){let n,i,r,a;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,a=e.endColumn),new Cr(n,i,r,a)}intersectRanges(e){return Cr.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,a=e.endColumn;const o=t.startLineNumber,s=t.startColumn,l=t.endLineNumber,c=t.endColumn;return nl?(r=l,a=c):r===l&&(a=Math.min(a,c)),n>r||n===r&&i>a?null:new Cr(n,i,r,a)}equalsRange(e){return Cr.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Cr.getEndPosition(this)}static getEndPosition(e){return new ue(e.endLineNumber,e.endColumn)}getStartPosition(){return Cr.getStartPosition(this)}static getStartPosition(e){return new ue(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Cr(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Cr(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Cr.collapseToStart(this)}static collapseToStart(e){return new Cr(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Cr.collapseToEnd(this)}static collapseToEnd(e){return new Cr(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Cr(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new Cr(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Cr(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},Ze=class G0 extends O{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return G0.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new G0(this.startLineNumber,this.startColumn,e,t):new G0(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ue(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ue(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new G0(e,t,this.endLineNumber,this.endColumn):new G0(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new G0(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new G0(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new G0(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new G0(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;(n=this._factories.get(e))===null||n===void 0||n.dispose();const i=new Fqe(this,e,t);return this._factories.set(e,i),bt(()=>{const r=this._factories.get(e);!r||r!==i||(this._factories.delete(e),r.dispose())})}getOrCreate(e){return V$(this,void 0,void 0,function*(){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class Fqe extends ie{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return V$(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return V$(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let Ok=class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class WY{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class iP{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}var jk;(function(u){const e=new Map;e.set(0,Ae.symbolMethod),e.set(1,Ae.symbolFunction),e.set(2,Ae.symbolConstructor),e.set(3,Ae.symbolField),e.set(4,Ae.symbolVariable),e.set(5,Ae.symbolClass),e.set(6,Ae.symbolStruct),e.set(7,Ae.symbolInterface),e.set(8,Ae.symbolModule),e.set(9,Ae.symbolProperty),e.set(10,Ae.symbolEvent),e.set(11,Ae.symbolOperator),e.set(12,Ae.symbolUnit),e.set(13,Ae.symbolValue),e.set(15,Ae.symbolEnum),e.set(14,Ae.symbolConstant),e.set(15,Ae.symbolEnum),e.set(16,Ae.symbolEnumMember),e.set(17,Ae.symbolKeyword),e.set(27,Ae.symbolSnippet),e.set(18,Ae.symbolText),e.set(19,Ae.symbolColor),e.set(20,Ae.symbolFile),e.set(21,Ae.symbolReference),e.set(22,Ae.symbolCustomColor),e.set(23,Ae.symbolFolder),e.set(24,Ae.symbolTypeParameter),e.set(25,Ae.account),e.set(26,Ae.issues);function t(r){let a=e.get(r);return a||(console.info("No codicon found for CompletionItemKind "+r),a=Ae.symbolProperty),a}u.toIcon=t;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function i(r,a){let o=n.get(r);return typeof o>"u"&&!a&&(o=9),o}u.fromString=i})(jk||(jk={}));var Ih;(function(u){u[u.Automatic=0]="Automatic",u[u.Explicit=1]="Explicit"})(Ih||(Ih={}));class Q5e{constructor(e,t,n,i){this.range=e,this.text=t,this.completionKind=n,this.isSnippetText=i}equals(e){return O.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}var e1;(function(u){u[u.Invoke=1]="Invoke",u[u.TriggerCharacter=2]="TriggerCharacter",u[u.ContentChange=3]="ContentChange"})(e1||(e1={}));var Vk;(function(u){u[u.Text=0]="Text",u[u.Read=1]="Read",u[u.Write=2]="Write"})(Vk||(Vk={}));function Aqe(u){return u&<.isUri(u.uri)&&O.isIRange(u.range)&&(O.isIRange(u.originSelectionRange)||O.isIRange(u.targetSelectionRange))}const _qe={17:v("Array","array"),16:v("Boolean","boolean"),4:v("Class","class"),13:v("Constant","constant"),8:v("Constructor","constructor"),9:v("Enum","enumeration"),21:v("EnumMember","enumeration member"),23:v("Event","event"),7:v("Field","field"),0:v("File","file"),11:v("Function","function"),10:v("Interface","interface"),19:v("Key","key"),5:v("Method","method"),1:v("Module","module"),2:v("Namespace","namespace"),20:v("Null","null"),15:v("Number","number"),18:v("Object","object"),24:v("Operator","operator"),3:v("Package","package"),6:v("Property","property"),14:v("String","string"),22:v("Struct","struct"),25:v("TypeParameter","type parameter"),12:v("Variable","variable")};function Sqe(u,e){return v("symbolAriaLabel","{0} ({1})",u,_qe[e])}var H$;(function(u){const e=new Map;e.set(0,Ae.symbolFile),e.set(1,Ae.symbolModule),e.set(2,Ae.symbolNamespace),e.set(3,Ae.symbolPackage),e.set(4,Ae.symbolClass),e.set(5,Ae.symbolMethod),e.set(6,Ae.symbolProperty),e.set(7,Ae.symbolField),e.set(8,Ae.symbolConstructor),e.set(9,Ae.symbolEnum),e.set(10,Ae.symbolInterface),e.set(11,Ae.symbolFunction),e.set(12,Ae.symbolVariable),e.set(13,Ae.symbolConstant),e.set(14,Ae.symbolString),e.set(15,Ae.symbolNumber),e.set(16,Ae.symbolBoolean),e.set(17,Ae.symbolArray),e.set(18,Ae.symbolObject),e.set(19,Ae.symbolKey),e.set(20,Ae.symbolNull),e.set(21,Ae.symbolEnumMember),e.set(22,Ae.symbolStruct),e.set(23,Ae.symbolEvent),e.set(24,Ae.symbolOperator),e.set(25,Ae.symbolTypeParameter);function t(n){let i=e.get(n);return i||(console.info("No codicon found for SymbolKind "+n),i=Ae.symbolProperty),i}u.toIcon=t})(H$||(H$={}));let Al=class W6{static fromValue(e){switch(e){case"comment":return W6.Comment;case"imports":return W6.Imports;case"region":return W6.Region}return new W6(e)}constructor(e){this.value=e}};Al.Comment=new Al("comment");Al.Imports=new Al("imports");Al.Region=new Al("region");var $$;(function(u){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}u.is=e})($$||($$={}));var I8;(function(u){u[u.Type=1]="Type",u[u.Parameter=2]="Parameter"})(I8||(I8={}));class Bqe{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const Kn=new yqe;var K$;(function(u){u[u.Unknown=0]="Unknown",u[u.Disabled=1]="Disabled",u[u.Enabled=2]="Enabled"})(K$||(K$={}));var W$;(function(u){u[u.Invoke=1]="Invoke",u[u.Auto=2]="Auto"})(W$||(W$={}));var G$;(function(u){u[u.None=0]="None",u[u.KeepWhitespace=1]="KeepWhitespace",u[u.InsertAsSnippet=4]="InsertAsSnippet"})(G$||(G$={}));var U$;(function(u){u[u.Method=0]="Method",u[u.Function=1]="Function",u[u.Constructor=2]="Constructor",u[u.Field=3]="Field",u[u.Variable=4]="Variable",u[u.Class=5]="Class",u[u.Struct=6]="Struct",u[u.Interface=7]="Interface",u[u.Module=8]="Module",u[u.Property=9]="Property",u[u.Event=10]="Event",u[u.Operator=11]="Operator",u[u.Unit=12]="Unit",u[u.Value=13]="Value",u[u.Constant=14]="Constant",u[u.Enum=15]="Enum",u[u.EnumMember=16]="EnumMember",u[u.Keyword=17]="Keyword",u[u.Text=18]="Text",u[u.Color=19]="Color",u[u.File=20]="File",u[u.Reference=21]="Reference",u[u.Customcolor=22]="Customcolor",u[u.Folder=23]="Folder",u[u.TypeParameter=24]="TypeParameter",u[u.User=25]="User",u[u.Issue=26]="Issue",u[u.Snippet=27]="Snippet"})(U$||(U$={}));var q$;(function(u){u[u.Deprecated=1]="Deprecated"})(q$||(q$={}));var J$;(function(u){u[u.Invoke=0]="Invoke",u[u.TriggerCharacter=1]="TriggerCharacter",u[u.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(J$||(J$={}));var Z$;(function(u){u[u.EXACT=0]="EXACT",u[u.ABOVE=1]="ABOVE",u[u.BELOW=2]="BELOW"})(Z$||(Z$={}));var Y$;(function(u){u[u.NotSet=0]="NotSet",u[u.ContentFlush=1]="ContentFlush",u[u.RecoverFromMarkers=2]="RecoverFromMarkers",u[u.Explicit=3]="Explicit",u[u.Paste=4]="Paste",u[u.Undo=5]="Undo",u[u.Redo=6]="Redo"})(Y$||(Y$={}));var Q$;(function(u){u[u.LF=1]="LF",u[u.CRLF=2]="CRLF"})(Q$||(Q$={}));var X$;(function(u){u[u.Text=0]="Text",u[u.Read=1]="Read",u[u.Write=2]="Write"})(X$||(X$={}));var eK;(function(u){u[u.None=0]="None",u[u.Keep=1]="Keep",u[u.Brackets=2]="Brackets",u[u.Advanced=3]="Advanced",u[u.Full=4]="Full"})(eK||(eK={}));var tK;(function(u){u[u.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",u[u.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",u[u.accessibilitySupport=2]="accessibilitySupport",u[u.accessibilityPageSize=3]="accessibilityPageSize",u[u.ariaLabel=4]="ariaLabel",u[u.ariaRequired=5]="ariaRequired",u[u.autoClosingBrackets=6]="autoClosingBrackets",u[u.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",u[u.autoClosingDelete=8]="autoClosingDelete",u[u.autoClosingOvertype=9]="autoClosingOvertype",u[u.autoClosingQuotes=10]="autoClosingQuotes",u[u.autoIndent=11]="autoIndent",u[u.automaticLayout=12]="automaticLayout",u[u.autoSurround=13]="autoSurround",u[u.bracketPairColorization=14]="bracketPairColorization",u[u.guides=15]="guides",u[u.codeLens=16]="codeLens",u[u.codeLensFontFamily=17]="codeLensFontFamily",u[u.codeLensFontSize=18]="codeLensFontSize",u[u.colorDecorators=19]="colorDecorators",u[u.colorDecoratorsLimit=20]="colorDecoratorsLimit",u[u.columnSelection=21]="columnSelection",u[u.comments=22]="comments",u[u.contextmenu=23]="contextmenu",u[u.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",u[u.cursorBlinking=25]="cursorBlinking",u[u.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",u[u.cursorStyle=27]="cursorStyle",u[u.cursorSurroundingLines=28]="cursorSurroundingLines",u[u.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",u[u.cursorWidth=30]="cursorWidth",u[u.disableLayerHinting=31]="disableLayerHinting",u[u.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",u[u.domReadOnly=33]="domReadOnly",u[u.dragAndDrop=34]="dragAndDrop",u[u.dropIntoEditor=35]="dropIntoEditor",u[u.emptySelectionClipboard=36]="emptySelectionClipboard",u[u.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",u[u.extraEditorClassName=38]="extraEditorClassName",u[u.fastScrollSensitivity=39]="fastScrollSensitivity",u[u.find=40]="find",u[u.fixedOverflowWidgets=41]="fixedOverflowWidgets",u[u.folding=42]="folding",u[u.foldingStrategy=43]="foldingStrategy",u[u.foldingHighlight=44]="foldingHighlight",u[u.foldingImportsByDefault=45]="foldingImportsByDefault",u[u.foldingMaximumRegions=46]="foldingMaximumRegions",u[u.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",u[u.fontFamily=48]="fontFamily",u[u.fontInfo=49]="fontInfo",u[u.fontLigatures=50]="fontLigatures",u[u.fontSize=51]="fontSize",u[u.fontWeight=52]="fontWeight",u[u.fontVariations=53]="fontVariations",u[u.formatOnPaste=54]="formatOnPaste",u[u.formatOnType=55]="formatOnType",u[u.glyphMargin=56]="glyphMargin",u[u.gotoLocation=57]="gotoLocation",u[u.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",u[u.hover=59]="hover",u[u.inDiffEditor=60]="inDiffEditor",u[u.inlineSuggest=61]="inlineSuggest",u[u.letterSpacing=62]="letterSpacing",u[u.lightbulb=63]="lightbulb",u[u.lineDecorationsWidth=64]="lineDecorationsWidth",u[u.lineHeight=65]="lineHeight",u[u.lineNumbers=66]="lineNumbers",u[u.lineNumbersMinChars=67]="lineNumbersMinChars",u[u.linkedEditing=68]="linkedEditing",u[u.links=69]="links",u[u.matchBrackets=70]="matchBrackets",u[u.minimap=71]="minimap",u[u.mouseStyle=72]="mouseStyle",u[u.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",u[u.mouseWheelZoom=74]="mouseWheelZoom",u[u.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",u[u.multiCursorModifier=76]="multiCursorModifier",u[u.multiCursorPaste=77]="multiCursorPaste",u[u.multiCursorLimit=78]="multiCursorLimit",u[u.occurrencesHighlight=79]="occurrencesHighlight",u[u.overviewRulerBorder=80]="overviewRulerBorder",u[u.overviewRulerLanes=81]="overviewRulerLanes",u[u.padding=82]="padding",u[u.pasteAs=83]="pasteAs",u[u.parameterHints=84]="parameterHints",u[u.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",u[u.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",u[u.quickSuggestions=87]="quickSuggestions",u[u.quickSuggestionsDelay=88]="quickSuggestionsDelay",u[u.readOnly=89]="readOnly",u[u.readOnlyMessage=90]="readOnlyMessage",u[u.renameOnType=91]="renameOnType",u[u.renderControlCharacters=92]="renderControlCharacters",u[u.renderFinalNewline=93]="renderFinalNewline",u[u.renderLineHighlight=94]="renderLineHighlight",u[u.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",u[u.renderValidationDecorations=96]="renderValidationDecorations",u[u.renderWhitespace=97]="renderWhitespace",u[u.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",u[u.roundedSelection=99]="roundedSelection",u[u.rulers=100]="rulers",u[u.scrollbar=101]="scrollbar",u[u.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",u[u.scrollBeyondLastLine=103]="scrollBeyondLastLine",u[u.scrollPredominantAxis=104]="scrollPredominantAxis",u[u.selectionClipboard=105]="selectionClipboard",u[u.selectionHighlight=106]="selectionHighlight",u[u.selectOnLineNumbers=107]="selectOnLineNumbers",u[u.showFoldingControls=108]="showFoldingControls",u[u.showUnused=109]="showUnused",u[u.snippetSuggestions=110]="snippetSuggestions",u[u.smartSelect=111]="smartSelect",u[u.smoothScrolling=112]="smoothScrolling",u[u.stickyScroll=113]="stickyScroll",u[u.stickyTabStops=114]="stickyTabStops",u[u.stopRenderingLineAfter=115]="stopRenderingLineAfter",u[u.suggest=116]="suggest",u[u.suggestFontSize=117]="suggestFontSize",u[u.suggestLineHeight=118]="suggestLineHeight",u[u.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",u[u.suggestSelection=120]="suggestSelection",u[u.tabCompletion=121]="tabCompletion",u[u.tabIndex=122]="tabIndex",u[u.unicodeHighlighting=123]="unicodeHighlighting",u[u.unusualLineTerminators=124]="unusualLineTerminators",u[u.useShadowDOM=125]="useShadowDOM",u[u.useTabStops=126]="useTabStops",u[u.wordBreak=127]="wordBreak",u[u.wordSeparators=128]="wordSeparators",u[u.wordWrap=129]="wordWrap",u[u.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",u[u.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",u[u.wordWrapColumn=132]="wordWrapColumn",u[u.wordWrapOverride1=133]="wordWrapOverride1",u[u.wordWrapOverride2=134]="wordWrapOverride2",u[u.wrappingIndent=135]="wrappingIndent",u[u.wrappingStrategy=136]="wrappingStrategy",u[u.showDeprecated=137]="showDeprecated",u[u.inlayHints=138]="inlayHints",u[u.editorClassName=139]="editorClassName",u[u.pixelRatio=140]="pixelRatio",u[u.tabFocusMode=141]="tabFocusMode",u[u.layoutInfo=142]="layoutInfo",u[u.wrappingInfo=143]="wrappingInfo",u[u.defaultColorDecorators=144]="defaultColorDecorators",u[u.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn"})(tK||(tK={}));var uK;(function(u){u[u.TextDefined=0]="TextDefined",u[u.LF=1]="LF",u[u.CRLF=2]="CRLF"})(uK||(uK={}));var nK;(function(u){u[u.LF=0]="LF",u[u.CRLF=1]="CRLF"})(nK||(nK={}));var iK;(function(u){u[u.Left=1]="Left",u[u.Right=2]="Right"})(iK||(iK={}));var rK;(function(u){u[u.None=0]="None",u[u.Indent=1]="Indent",u[u.IndentOutdent=2]="IndentOutdent",u[u.Outdent=3]="Outdent"})(rK||(rK={}));var aK;(function(u){u[u.Both=0]="Both",u[u.Right=1]="Right",u[u.Left=2]="Left",u[u.None=3]="None"})(aK||(aK={}));var oK;(function(u){u[u.Type=1]="Type",u[u.Parameter=2]="Parameter"})(oK||(oK={}));var sK;(function(u){u[u.Automatic=0]="Automatic",u[u.Explicit=1]="Explicit"})(sK||(sK={}));var lK;(function(u){u[u.DependsOnKbLayout=-1]="DependsOnKbLayout",u[u.Unknown=0]="Unknown",u[u.Backspace=1]="Backspace",u[u.Tab=2]="Tab",u[u.Enter=3]="Enter",u[u.Shift=4]="Shift",u[u.Ctrl=5]="Ctrl",u[u.Alt=6]="Alt",u[u.PauseBreak=7]="PauseBreak",u[u.CapsLock=8]="CapsLock",u[u.Escape=9]="Escape",u[u.Space=10]="Space",u[u.PageUp=11]="PageUp",u[u.PageDown=12]="PageDown",u[u.End=13]="End",u[u.Home=14]="Home",u[u.LeftArrow=15]="LeftArrow",u[u.UpArrow=16]="UpArrow",u[u.RightArrow=17]="RightArrow",u[u.DownArrow=18]="DownArrow",u[u.Insert=19]="Insert",u[u.Delete=20]="Delete",u[u.Digit0=21]="Digit0",u[u.Digit1=22]="Digit1",u[u.Digit2=23]="Digit2",u[u.Digit3=24]="Digit3",u[u.Digit4=25]="Digit4",u[u.Digit5=26]="Digit5",u[u.Digit6=27]="Digit6",u[u.Digit7=28]="Digit7",u[u.Digit8=29]="Digit8",u[u.Digit9=30]="Digit9",u[u.KeyA=31]="KeyA",u[u.KeyB=32]="KeyB",u[u.KeyC=33]="KeyC",u[u.KeyD=34]="KeyD",u[u.KeyE=35]="KeyE",u[u.KeyF=36]="KeyF",u[u.KeyG=37]="KeyG",u[u.KeyH=38]="KeyH",u[u.KeyI=39]="KeyI",u[u.KeyJ=40]="KeyJ",u[u.KeyK=41]="KeyK",u[u.KeyL=42]="KeyL",u[u.KeyM=43]="KeyM",u[u.KeyN=44]="KeyN",u[u.KeyO=45]="KeyO",u[u.KeyP=46]="KeyP",u[u.KeyQ=47]="KeyQ",u[u.KeyR=48]="KeyR",u[u.KeyS=49]="KeyS",u[u.KeyT=50]="KeyT",u[u.KeyU=51]="KeyU",u[u.KeyV=52]="KeyV",u[u.KeyW=53]="KeyW",u[u.KeyX=54]="KeyX",u[u.KeyY=55]="KeyY",u[u.KeyZ=56]="KeyZ",u[u.Meta=57]="Meta",u[u.ContextMenu=58]="ContextMenu",u[u.F1=59]="F1",u[u.F2=60]="F2",u[u.F3=61]="F3",u[u.F4=62]="F4",u[u.F5=63]="F5",u[u.F6=64]="F6",u[u.F7=65]="F7",u[u.F8=66]="F8",u[u.F9=67]="F9",u[u.F10=68]="F10",u[u.F11=69]="F11",u[u.F12=70]="F12",u[u.F13=71]="F13",u[u.F14=72]="F14",u[u.F15=73]="F15",u[u.F16=74]="F16",u[u.F17=75]="F17",u[u.F18=76]="F18",u[u.F19=77]="F19",u[u.F20=78]="F20",u[u.F21=79]="F21",u[u.F22=80]="F22",u[u.F23=81]="F23",u[u.F24=82]="F24",u[u.NumLock=83]="NumLock",u[u.ScrollLock=84]="ScrollLock",u[u.Semicolon=85]="Semicolon",u[u.Equal=86]="Equal",u[u.Comma=87]="Comma",u[u.Minus=88]="Minus",u[u.Period=89]="Period",u[u.Slash=90]="Slash",u[u.Backquote=91]="Backquote",u[u.BracketLeft=92]="BracketLeft",u[u.Backslash=93]="Backslash",u[u.BracketRight=94]="BracketRight",u[u.Quote=95]="Quote",u[u.OEM_8=96]="OEM_8",u[u.IntlBackslash=97]="IntlBackslash",u[u.Numpad0=98]="Numpad0",u[u.Numpad1=99]="Numpad1",u[u.Numpad2=100]="Numpad2",u[u.Numpad3=101]="Numpad3",u[u.Numpad4=102]="Numpad4",u[u.Numpad5=103]="Numpad5",u[u.Numpad6=104]="Numpad6",u[u.Numpad7=105]="Numpad7",u[u.Numpad8=106]="Numpad8",u[u.Numpad9=107]="Numpad9",u[u.NumpadMultiply=108]="NumpadMultiply",u[u.NumpadAdd=109]="NumpadAdd",u[u.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",u[u.NumpadSubtract=111]="NumpadSubtract",u[u.NumpadDecimal=112]="NumpadDecimal",u[u.NumpadDivide=113]="NumpadDivide",u[u.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",u[u.ABNT_C1=115]="ABNT_C1",u[u.ABNT_C2=116]="ABNT_C2",u[u.AudioVolumeMute=117]="AudioVolumeMute",u[u.AudioVolumeUp=118]="AudioVolumeUp",u[u.AudioVolumeDown=119]="AudioVolumeDown",u[u.BrowserSearch=120]="BrowserSearch",u[u.BrowserHome=121]="BrowserHome",u[u.BrowserBack=122]="BrowserBack",u[u.BrowserForward=123]="BrowserForward",u[u.MediaTrackNext=124]="MediaTrackNext",u[u.MediaTrackPrevious=125]="MediaTrackPrevious",u[u.MediaStop=126]="MediaStop",u[u.MediaPlayPause=127]="MediaPlayPause",u[u.LaunchMediaPlayer=128]="LaunchMediaPlayer",u[u.LaunchMail=129]="LaunchMail",u[u.LaunchApp2=130]="LaunchApp2",u[u.Clear=131]="Clear",u[u.MAX_VALUE=132]="MAX_VALUE"})(lK||(lK={}));var cK;(function(u){u[u.Hint=1]="Hint",u[u.Info=2]="Info",u[u.Warning=4]="Warning",u[u.Error=8]="Error"})(cK||(cK={}));var dK;(function(u){u[u.Unnecessary=1]="Unnecessary",u[u.Deprecated=2]="Deprecated"})(dK||(dK={}));var hK;(function(u){u[u.Inline=1]="Inline",u[u.Gutter=2]="Gutter"})(hK||(hK={}));var EK;(function(u){u[u.UNKNOWN=0]="UNKNOWN",u[u.TEXTAREA=1]="TEXTAREA",u[u.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",u[u.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",u[u.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",u[u.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",u[u.CONTENT_TEXT=6]="CONTENT_TEXT",u[u.CONTENT_EMPTY=7]="CONTENT_EMPTY",u[u.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",u[u.CONTENT_WIDGET=9]="CONTENT_WIDGET",u[u.OVERVIEW_RULER=10]="OVERVIEW_RULER",u[u.SCROLLBAR=11]="SCROLLBAR",u[u.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",u[u.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(EK||(EK={}));var gK;(function(u){u[u.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",u[u.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",u[u.TOP_CENTER=2]="TOP_CENTER"})(gK||(gK={}));var mK;(function(u){u[u.Left=1]="Left",u[u.Center=2]="Center",u[u.Right=4]="Right",u[u.Full=7]="Full"})(mK||(mK={}));var fK;(function(u){u[u.Left=0]="Left",u[u.Right=1]="Right",u[u.None=2]="None",u[u.LeftOfInjectedText=3]="LeftOfInjectedText",u[u.RightOfInjectedText=4]="RightOfInjectedText"})(fK||(fK={}));var pK;(function(u){u[u.Off=0]="Off",u[u.On=1]="On",u[u.Relative=2]="Relative",u[u.Interval=3]="Interval",u[u.Custom=4]="Custom"})(pK||(pK={}));var DK;(function(u){u[u.None=0]="None",u[u.Text=1]="Text",u[u.Blocks=2]="Blocks"})(DK||(DK={}));var xK;(function(u){u[u.Smooth=0]="Smooth",u[u.Immediate=1]="Immediate"})(xK||(xK={}));var vK;(function(u){u[u.Auto=1]="Auto",u[u.Hidden=2]="Hidden",u[u.Visible=3]="Visible"})(vK||(vK={}));var CK;(function(u){u[u.LTR=0]="LTR",u[u.RTL=1]="RTL"})(CK||(CK={}));var bK;(function(u){u[u.Invoke=1]="Invoke",u[u.TriggerCharacter=2]="TriggerCharacter",u[u.ContentChange=3]="ContentChange"})(bK||(bK={}));var kK;(function(u){u[u.File=0]="File",u[u.Module=1]="Module",u[u.Namespace=2]="Namespace",u[u.Package=3]="Package",u[u.Class=4]="Class",u[u.Method=5]="Method",u[u.Property=6]="Property",u[u.Field=7]="Field",u[u.Constructor=8]="Constructor",u[u.Enum=9]="Enum",u[u.Interface=10]="Interface",u[u.Function=11]="Function",u[u.Variable=12]="Variable",u[u.Constant=13]="Constant",u[u.String=14]="String",u[u.Number=15]="Number",u[u.Boolean=16]="Boolean",u[u.Array=17]="Array",u[u.Object=18]="Object",u[u.Key=19]="Key",u[u.Null=20]="Null",u[u.EnumMember=21]="EnumMember",u[u.Struct=22]="Struct",u[u.Event=23]="Event",u[u.Operator=24]="Operator",u[u.TypeParameter=25]="TypeParameter"})(kK||(kK={}));var yK;(function(u){u[u.Deprecated=1]="Deprecated"})(yK||(yK={}));var FK;(function(u){u[u.Hidden=0]="Hidden",u[u.Blink=1]="Blink",u[u.Smooth=2]="Smooth",u[u.Phase=3]="Phase",u[u.Expand=4]="Expand",u[u.Solid=5]="Solid"})(FK||(FK={}));var AK;(function(u){u[u.Line=1]="Line",u[u.Block=2]="Block",u[u.Underline=3]="Underline",u[u.LineThin=4]="LineThin",u[u.BlockOutline=5]="BlockOutline",u[u.UnderlineThin=6]="UnderlineThin"})(AK||(AK={}));var _K;(function(u){u[u.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",u[u.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",u[u.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",u[u.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(_K||(_K={}));var SK;(function(u){u[u.None=0]="None",u[u.Same=1]="Same",u[u.Indent=2]="Indent",u[u.DeepIndent=3]="DeepIndent"})(SK||(SK={}));let zF=class{static chord(e,t){return Ri(e,t)}};zF.CtrlCmd=2048;zF.Shift=1024;zF.Alt=512;zF.WinCtrl=256;function X5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:nr,Emitter:ee,KeyCode:lK,KeyMod:zF,Position:ue,Range:O,Selection:Ze,SelectionDirection:CK,MarkerSeverity:cK,MarkerTag:dK,Uri:lt,Token:Ok}}class wqe{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class sre{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}class um{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var eve;function tve(u){return!u||typeof u!="string"?!0:u.trim().length===0}const zqe=/{(\d+)}/g;function g3(u,...e){return e.length===0?u:u.replace(zqe,function(t,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=e.length?t:e[i]})}function O8(u){return u.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Hs(u){return u.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Lqe(u,e=" "){const t=LF(u,e);return uve(t,e)}function LF(u,e){if(!u||!e)return u;const t=e.length;if(t===0||u.length===0)return u;let n=0;for(;u.indexOf(e,n)===n;)n=n+t;return u.substring(n)}function uve(u,e){if(!u||!e)return u;const t=e.length,n=u.length;if(t===0||n===0)return u;let i=n,r=-1;for(;r=u.lastIndexOf(e,i-1),!(r===-1||r+t!==i);){if(r===0)return"";i=r}return u.substring(0,i)}function Mqe(u){return u.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Tqe(u){return u.replace(/\*/g,"")}function nve(u,e,t={}){if(!u)throw new Error("Cannot create regex from empty string");e||(u=Hs(u)),t.wholeWord&&(/\B/.test(u.charAt(0))||(u="\\b"+u),/\B/.test(u.charAt(u.length-1))||(u=u+"\\b"));let n="";return t.global&&(n+="g"),t.matchCase||(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),new RegExp(u,n)}function Pqe(u){return u.source==="^"||u.source==="^$"||u.source==="$"||u.source==="^\\s*$"?!1:!!(u.exec("")&&u.lastIndex===0)}function dS(u){return(u.global?"g":"")+(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")}function E1(u){return u.split(/\r\n|\r|\n/)}function _a(u){for(let e=0,t=u.length;e=0;t--){const n=u.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function Hk(u,e){return ue?1:0}function GY(u,e,t=0,n=u.length,i=0,r=e.length){for(;tl)return 1}const a=n-t,o=r-i;return ao?1:0}function BK(u,e){return MF(u,e,0,u.length,0,e.length)}function MF(u,e,t=0,n=u.length,i=0,r=e.length){for(;t=128||l>=128)return GY(u.toLowerCase(),e.toLowerCase(),t,n,i,r);mE(s)&&(s-=32),mE(l)&&(l-=32);const c=s-l;if(c!==0)return c}const a=n-t,o=r-i;return ao?1:0}function x_(u){return u>=48&&u<=57}function mE(u){return u>=97&&u<=122}function Fd(u){return u>=65&&u<=90}function qD(u,e){return u.length===e.length&&MF(u,e)===0}function UY(u,e){const t=e.length;return e.length>u.length?!1:MF(u,e,0,t)===0}function m3(u,e){const t=Math.min(u.length,e.length);let n;for(n=0;n1){const n=u.charCodeAt(e-2);if(Qi(n))return qY(n,t)}return t}class JY{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=Nqe(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=V8(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H8{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new JY(e,t)}nextGraphemeLength(){const e=fE.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const r=t.offset,a=e.getGraphemeBreakType(t.nextCodePoint());if(lre(i,a)){t.setOffset(r);break}i=a}return t.offset-n}prevGraphemeLength(){const e=fE.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const r=t.offset,a=e.getGraphemeBreakType(t.prevCodePoint());if(lre(a,i)){t.setOffset(r);break}i=a}return n-t.offset}eol(){return this._iterator.eol()}}function ZY(u,e){return new H8(u,e).nextGraphemeLength()}function ive(u,e){return new H8(u,e).prevGraphemeLength()}function Rqe(u,e){e>0&&f3(u.charCodeAt(e))&&e--;const t=e+ZY(u,e);return[t-ive(u,t),t]}let gO;function Iqe(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function B5(u){return gO||(gO=Iqe()),gO.test(u)}const Oqe=/^[\t\n\r\x20-\x7E]*$/;function TF(u){return Oqe.test(u)}const rve=/[\u2028\u2029]/;function ave(u){return rve.test(u)}function kg(u){return u>=11904&&u<=55215||u>=63744&&u<=64255||u>=65281&&u<=65374}function YY(u){return u>=127462&&u<=127487||u===8986||u===8987||u===9200||u===9203||u>=9728&&u<=10175||u===11088||u===11093||u>=127744&&u<=128591||u>=128640&&u<=128764||u>=128992&&u<=129008||u>=129280&&u<=129535||u>=129648&&u<=129782}const jqe=String.fromCharCode(65279);function QY(u){return!!(u&&u.length>0&&u.charCodeAt(0)===65279)}function Vqe(u,e=!1){return u?(e&&(u=u.replace(/\\./g,"")),u.toLowerCase()!==u):!1}function ove(u){return u=u%(2*26),u<26?String.fromCharCode(97+u):String.fromCharCode(65+u-26)}function lre(u,e){return u===0?e!==5&&e!==7:u===2&&e===3?!1:u===4||u===2||u===3||e===4||e===2||e===3?!0:!(u===8&&(e===8||e===9||e===11||e===12)||(u===11||u===9)&&(e===9||e===10)||(u===12||u===10)&&e===10||e===5||e===13||e===7||u===1||u===13&&e===14||u===6&&e===6)}class fE{static getInstance(){return fE._INSTANCE||(fE._INSTANCE=new fE),fE._INSTANCE}constructor(){this._data=Hqe()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(et[3*i+1])i=2*i+1;else return t[3*i+2];return 0}}fE._INSTANCE=null;function Hqe(){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]")}function $qe(u,e){if(u===0)return 0;const t=Kqe(u,e);if(t!==void 0)return t;const n=new JY(e,u);return n.prevCodePoint(),n.offset}function Kqe(u,e){const t=new JY(e,u);let n=t.prevCodePoint();for(;Wqe(n)||n===65039||n===8419;){if(t.offset===0)return;n=t.prevCodePoint()}if(!YY(n))return;let i=t.offset;return i>0&&t.prevCodePoint()===8205&&(i=t.offset),i}function Wqe(u){return 127995<=u&&u<=127999}const sve=" ";class _l{static getInstance(e){return _l.cache.get(Array.from(e))}static getLocales(){return _l._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}eve=_l;_l.ambiguousCharacterData=new um(()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}'));_l.cache=new wqe(u=>{function e(l){const c=new Map;for(let d=0;d!l.startsWith("_")&&l in i);r.length===0&&(r=["_default"]);let a;for(const l of r){const c=e(i[l]);a=n(a,c)}const o=e(i._common),s=t(o,a);return new _l(s)});_l._locales=new um(()=>Object.keys(_l.ambiguousCharacterData.value).filter(u=>!u.startsWith("_")));class t1{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static getData(){return this._data||(this._data=new Set(t1.getRawData())),this._data}static isInvisibleCharacter(e){return t1.getData().has(e)}static get codePoints(){return t1.getData()}}t1._data=void 0;class wK{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}wK.INSTANCE=new wK;class Gqe extends ie{constructor(){super(),this._onDidChange=this._register(new ee),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class Uqe extends ie{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new ee),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new Gqe);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}class qqe{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new Uqe),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function lve(u,e){typeof u=="string"&&(u=window.matchMedia(u)),u.addEventListener("change",e)}const $k=new qqe;function Jqe(){return wK.INSTANCE.getZoomFactor()}const Wv=navigator.userAgent,F0=Wv.indexOf("Firefox")>=0,jf=Wv.indexOf("AppleWebKit")>=0,XY=Wv.indexOf("Chrome")>=0,Zh=!XY&&Wv.indexOf("Safari")>=0,cve=!XY&&!Zh&&jf;Wv.indexOf("Electron/")>=0;const cre=Wv.indexOf("Android")>=0;let hS=!1;if(window.matchMedia){const u=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");hS=u.matches,lve(u,({matches:t})=>{hS&&e.matches||(hS=t)})}function Zqe(){return hS}class dve{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=ql(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=ql(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=ql(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=ql(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=ql(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=ql(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=ql(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=ql(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=ql(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=ql(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=ql(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function ql(u){return typeof u=="number"?`${u}px`:u}function cu(u){return new dve(u)}function tr(u,e){u instanceof dve?(u.setFontFamily(e.getMassagedFontFamily()),u.setFontWeight(e.fontWeight),u.setFontSize(e.fontSize),u.setFontFeatureSettings(e.fontFeatureSettings),u.setFontVariationSettings(e.fontVariationSettings),u.setLineHeight(e.lineHeight),u.setLetterSpacing(e.letterSpacing)):(u.style.fontFamily=e.getMassagedFontFamily(),u.style.fontWeight=e.fontWeight,u.style.fontSize=e.fontSize+"px",u.style.fontFeatureSettings=e.fontFeatureSettings,u.style.fontVariationSettings=e.fontVariationSettings,u.style.lineHeight=e.lineHeight+"px",u.style.letterSpacing=e.letterSpacing+"px")}class Yqe{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class eQ{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");tr(t,this._bareFontInfo),e.appendChild(t);const n=document.createElement("div");tr(n,this._bareFontInfo),n.style.fontWeight="bold",e.appendChild(n);const i=document.createElement("div");tr(i,this._bareFontInfo),i.style.fontStyle="italic",e.appendChild(i);const r=[];for(const a of this._requests){let o;a.type===0&&(o=t),a.type===2&&(o=n),a.type===1&&(o=i),o.appendChild(document.createElement("br"));const s=document.createElement("span");eQ._render(s,a),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(t.chr===" "){let n=" ";for(let i=0;i<8;i++)n+=n;e.innerText=n}else{let n=t.chr;for(let i=0;i<8;i++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const n of e)n.isTrusted||(t=!0,this._cache.remove(n));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new zK({pixelRatio:$k.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,n,i){const r=new Yqe(e,t);return n.push(r),i==null||i.push(r),r}_actualReadFontInfo(e){const t=[],n=[],i=this._createRequest("n",0,t,n),r=this._createRequest("m",0,t,null),a=this._createRequest(" ",0,t,n),o=this._createRequest("0",0,t,n),s=this._createRequest("1",0,t,n),l=this._createRequest("2",0,t,n),c=this._createRequest("3",0,t,n),d=this._createRequest("4",0,t,n),h=this._createRequest("5",0,t,n),E=this._createRequest("6",0,t,n),g=this._createRequest("7",0,t,n),m=this._createRequest("8",0,t,n),f=this._createRequest("9",0,t,n),p=this._createRequest("→",0,t,n),D=this._createRequest("→",0,t,null),x=this._createRequest("·",0,t,n),b=this._createRequest(String.fromCharCode(11825),0,t,null),k="|/-_ilm%";for(let L=0,M=k.length;L.001){y=!1;break}}let B=!0;return y&&D.width!==S&&(B=!1),D.width>p.width&&(B=!1),new zK({pixelRatio:$k.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:B,spaceWidth:a.width,middotWidth:x.width,wsmiddotWidth:b.width,maxDigitWidth:_},!0)}}class dre{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const n=e.getId();this._keys[n]=e,this._values[n]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const LK=new tJe;var bc;(function(u){u.serviceIds=new Map,u.DI_TARGET="$di$target",u.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[u.DI_DEPENDENCIES]||[]}u.getServiceDependencies=e})(bc||(bc={}));const mt=Gt("instantiationService");function uJe(u,e,t){e[bc.DI_TARGET]===e?e[bc.DI_DEPENDENCIES].push({id:u,index:t}):(e[bc.DI_DEPENDENCIES]=[{id:u,index:t}],e[bc.DI_TARGET]=e)}function Gt(u){if(bc.serviceIds.has(u))return bc.serviceIds.get(u);const e=function(t,n,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");uJe(e,t,i)};return e.toString=()=>u,bc.serviceIds.set(u,e),e}const hu=Gt("codeEditorService");function Lb(u,e){if(!u)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function rP(u,e="Unreachable"){throw new Error(e)}function Kk(u){if(!u()){debugger;u(),wt(new gr("Assertion Failed"))}}function hve(u,e){let t=0;for(;t\-\./\\:\*\?\+\[\]\^,#@;"%\$\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 IY(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const t=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:t})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const t=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:t})}else this._match(126)?this._addToken(9):this._error(fO("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(fO("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(fO("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=MK._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(iJe);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(rJe);return}const r=this._input.charCodeAt(e);if(t)t=!1;else if(r===47&&!n){e++;break}else r===91?n=!0:r===92?t=!0:r===93&&(n=!1);e++}for(;e=this._input.length}};rf._regexFlags=new Set(["i","g","s","m","y","u"].map(u=>u.charCodeAt(0)));rf._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Ea=new Map;Ea.set("false",!1);Ea.set("true",!0);Ea.set("isMac",Yt);Ea.set("isLinux",za);Ea.set("isWindows",Yr);Ea.set("isWeb",Xg);Ea.set("isMacNative",Yt&&!Xg);Ea.set("isEdge",eUe);Ea.set("isFirefox",QGe);Ea.set("isChrome",L5e);Ea.set("isSafari",XGe);const aJe=Object.prototype.hasOwnProperty,oJe={regexParsingWithErrorRecovery:!0},sJe=v("contextkey.parser.error.emptyString","Empty context key expression"),lJe=v("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),cJe=v("contextkey.parser.error.noInAfterNot","'in' after 'not'."),hre=v("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),dJe=v("contextkey.parser.error.unexpectedToken","Unexpected token"),hJe=v("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),EJe=v("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),gJe=v("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let Eve=class G6{constructor(e=oJe){this._config=e,this._scanner=new rf,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:sJe,offset:0,lexeme:"",additionalInfo:lJe});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const n=this._peek(),i=n.type===17?hJe:void 0;throw this._parsingErrors.push({message:dJe,offset:n.offset,lexeme:rf.getLexeme(n),additionalInfo:i}),G6._parseError}return t}catch(t){if(t!==G6._parseError)throw t;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return e.length===1?e[0]:pe.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:pe.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),ro.INSTANCE;case 12:return this._advance(),Mo.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,hre),t==null?void 0:t.negate()}case 17:return this._advance(),mp.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),pe.true();case 12:return this._advance(),pe.false();case 0:{this._advance();const t=this._expr();return this._consume(1,hre),t}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const i=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),i.type!==10)throw this._errExpectedButGot("REGEX",i);const r=i.lexeme,a=r.lastIndexOf("/"),o=a===r.length-1?void 0:this._removeFlagsGY(r.substring(a+1));let s;try{s=new RegExp(r.substring(1,a),o)}catch{throw this._errExpectedButGot("REGEX",i)}return Wk.create(t,s)}switch(i.type){case 10:case 19:{const r=[i.lexeme];this._advance();let a=this._peek(),o=0;for(let h=0;h=0){const l=r.slice(o+1,s),c=r[s+1]==="i"?"i":"";try{a=new RegExp(l,c)}catch{throw this._errExpectedButGot("REGEX",i)}}}if(a===null)throw this._errExpectedButGot("REGEX",i);return Wk.create(t,a)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,cJe);const i=this._value();return pe.notIn(t,i)}switch(this._peek().type){case 3:{this._advance();const i=this._value();if(this._previous().type===18)return pe.equals(t,i);switch(i){case"true":return pe.has(t);case"false":return pe.not(t);default:return pe.equals(t,i)}}case 4:{this._advance();const i=this._value();if(this._previous().type===18)return pe.notEquals(t,i);switch(i){case"true":return pe.not(t);case"false":return pe.has(t);default:return pe.notEquals(t,i)}}case 5:return this._advance(),hP.create(t,this._value());case 6:return this._advance(),EP.create(t,this._value());case 7:return this._advance(),cP.create(t,this._value());case 8:return this._advance(),dP.create(t,this._value());case 13:return this._advance(),pe.in(t,this._value());default:return pe.has(t)}}case 20:throw this._parsingErrors.push({message:EJe,offset:e.offset,lexeme:"",additionalInfo:gJe}),G6._parseError;default:throw this._errExpectedButGot(`true | false | KEY +`))}}class mO{constructor(e){this.value=e}}const QUe=2;let ee=class{constructor(e){var t,n,i,r,a;this._size=0,this._options=e,this._leakageMon=!((t=this._options)===null||t===void 0)&&t.leakWarningThreshold?new YUe((i=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&i!==void 0?i:ZUe):void 0,this._perfMon=!((r=this._options)===null||r===void 0)&&r._profName?new S5(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,t,n,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(n=(t=this._options)===null||t===void 0?void 0:t.onDidRemoveLastListener)===null||n===void 0||n.call(t),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(t,n,i)=>{var r,a,o,s,l;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ie.None;if(this._disposed)return ie.None;n&&(t=t.bind(n));const c=new mO(t);let d;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(c.stack=HY.create(),d=this._leakageMon.check(c.stack,this._size+1)),this._listeners?this._listeners instanceof mO?((l=this._deliveryQueue)!==null&&l!==void 0||(this._deliveryQueue=new O5e),this._listeners=[this._listeners,c]):this._listeners.push(c):((a=(r=this._options)===null||r===void 0?void 0:r.onWillAddFirstListener)===null||a===void 0||a.call(r,this),this._listeners=c,(s=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||s===void 0||s.call(o,this)),this._size++;const h=bt(()=>{d==null||d(),this._removeListener(c)});return i instanceof fe?i.add(h):Array.isArray(i)&&i.push(h),h}),this._event}_removeListener(e){var t,n,i,r;if((n=(t=this._options)===null||t===void 0?void 0:t.onWillRemoveListener)===null||n===void 0||n.call(t,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(r=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||r===void 0||r.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(e);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const s=this._deliveryQueue.current===this;if(this._size*QUe<=a.length){let l=0;for(let c=0;c0}};const XUe=()=>new O5e;class O5e{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class g3 extends ee{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Xa,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class j5e extends g3{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class eqe extends ee{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}}class tqe{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new ee({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),bt(h1(()=>{this.hasListeners&&this.unhook(t);const i=this.events.indexOf(t);this.events.splice(i,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class $Y{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e(r=>{const a=this.buffers[this.buffers.length-1];a?a.push(()=>t.call(n,r)):t.call(n,r)},void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(i=>i()),n}}class are{constructor(){this.listening=!1,this.inputEvent=Ke.None,this.inputEventListener=ie.None,this.emitter=new ee({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const V5e=Object.freeze(function(u,e){const t=setTimeout(u.bind(e),0);return{dispose(){clearTimeout(t)}}});var Vt;(function(u){function e(t){return t===u.None||t===u.Cancelled||t instanceof sS?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}u.isCancellationToken=e,u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ke.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:V5e})})(Vt||(Vt={}));class sS{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?V5e:(this._emitter||(this._emitter=new ee),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let nr=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new sS),this._token}cancel(){this._token?this._token instanceof sS&&this._token.cancel():this._token=Vt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),(t=this._parentListener)===null||t===void 0||t.dispose(),this._token?this._token instanceof sS&&this._token.dispose():this._token=Vt.None}};class KY{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const lS=new KY,I$=new KY,O$=new KY,H5e=new Array(230),uqe=Object.create(null),nqe=Object.create(null),WY=[];for(let u=0;u<=193;u++)WY[u]=-1;(function(){const u="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",u,u],[1,1,"Hyper",0,u,0,u,u,u],[1,2,"Super",0,u,0,u,u,u],[1,3,"Fn",0,u,0,u,u,u],[1,4,"FnLock",0,u,0,u,u,u],[1,5,"Suspend",0,u,0,u,u,u],[1,6,"Resume",0,u,0,u,u,u],[1,7,"Turbo",0,u,0,u,u,u],[1,8,"Sleep",0,u,0,"VK_SLEEP",u,u],[1,9,"WakeUp",0,u,0,u,u,u],[0,10,"KeyA",31,"A",65,"VK_A",u,u],[0,11,"KeyB",32,"B",66,"VK_B",u,u],[0,12,"KeyC",33,"C",67,"VK_C",u,u],[0,13,"KeyD",34,"D",68,"VK_D",u,u],[0,14,"KeyE",35,"E",69,"VK_E",u,u],[0,15,"KeyF",36,"F",70,"VK_F",u,u],[0,16,"KeyG",37,"G",71,"VK_G",u,u],[0,17,"KeyH",38,"H",72,"VK_H",u,u],[0,18,"KeyI",39,"I",73,"VK_I",u,u],[0,19,"KeyJ",40,"J",74,"VK_J",u,u],[0,20,"KeyK",41,"K",75,"VK_K",u,u],[0,21,"KeyL",42,"L",76,"VK_L",u,u],[0,22,"KeyM",43,"M",77,"VK_M",u,u],[0,23,"KeyN",44,"N",78,"VK_N",u,u],[0,24,"KeyO",45,"O",79,"VK_O",u,u],[0,25,"KeyP",46,"P",80,"VK_P",u,u],[0,26,"KeyQ",47,"Q",81,"VK_Q",u,u],[0,27,"KeyR",48,"R",82,"VK_R",u,u],[0,28,"KeyS",49,"S",83,"VK_S",u,u],[0,29,"KeyT",50,"T",84,"VK_T",u,u],[0,30,"KeyU",51,"U",85,"VK_U",u,u],[0,31,"KeyV",52,"V",86,"VK_V",u,u],[0,32,"KeyW",53,"W",87,"VK_W",u,u],[0,33,"KeyX",54,"X",88,"VK_X",u,u],[0,34,"KeyY",55,"Y",89,"VK_Y",u,u],[0,35,"KeyZ",56,"Z",90,"VK_Z",u,u],[0,36,"Digit1",22,"1",49,"VK_1",u,u],[0,37,"Digit2",23,"2",50,"VK_2",u,u],[0,38,"Digit3",24,"3",51,"VK_3",u,u],[0,39,"Digit4",25,"4",52,"VK_4",u,u],[0,40,"Digit5",26,"5",53,"VK_5",u,u],[0,41,"Digit6",27,"6",54,"VK_6",u,u],[0,42,"Digit7",28,"7",55,"VK_7",u,u],[0,43,"Digit8",29,"8",56,"VK_8",u,u],[0,44,"Digit9",30,"9",57,"VK_9",u,u],[0,45,"Digit0",21,"0",48,"VK_0",u,u],[1,46,"Enter",3,"Enter",13,"VK_RETURN",u,u],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",u,u],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",u,u],[1,49,"Tab",2,"Tab",9,"VK_TAB",u,u],[1,50,"Space",10,"Space",32,"VK_SPACE",u,u],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,u,0,u,u,u],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",u,u],[1,64,"F1",59,"F1",112,"VK_F1",u,u],[1,65,"F2",60,"F2",113,"VK_F2",u,u],[1,66,"F3",61,"F3",114,"VK_F3",u,u],[1,67,"F4",62,"F4",115,"VK_F4",u,u],[1,68,"F5",63,"F5",116,"VK_F5",u,u],[1,69,"F6",64,"F6",117,"VK_F6",u,u],[1,70,"F7",65,"F7",118,"VK_F7",u,u],[1,71,"F8",66,"F8",119,"VK_F8",u,u],[1,72,"F9",67,"F9",120,"VK_F9",u,u],[1,73,"F10",68,"F10",121,"VK_F10",u,u],[1,74,"F11",69,"F11",122,"VK_F11",u,u],[1,75,"F12",70,"F12",123,"VK_F12",u,u],[1,76,"PrintScreen",0,u,0,u,u,u],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",u,u],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",u,u],[1,79,"Insert",19,"Insert",45,"VK_INSERT",u,u],[1,80,"Home",14,"Home",36,"VK_HOME",u,u],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",u,u],[1,82,"Delete",20,"Delete",46,"VK_DELETE",u,u],[1,83,"End",13,"End",35,"VK_END",u,u],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",u,u],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",u],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",u],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",u],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",u],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",u,u],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",u,u],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",u,u],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",u,u],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",u,u],[1,94,"NumpadEnter",3,u,0,u,u,u],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",u,u],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",u,u],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",u,u],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",u,u],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",u,u],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",u,u],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",u,u],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",u,u],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",u,u],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",u,u],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",u,u],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",u,u],[1,107,"ContextMenu",58,"ContextMenu",93,u,u,u],[1,108,"Power",0,u,0,u,u,u],[1,109,"NumpadEqual",0,u,0,u,u,u],[1,110,"F13",71,"F13",124,"VK_F13",u,u],[1,111,"F14",72,"F14",125,"VK_F14",u,u],[1,112,"F15",73,"F15",126,"VK_F15",u,u],[1,113,"F16",74,"F16",127,"VK_F16",u,u],[1,114,"F17",75,"F17",128,"VK_F17",u,u],[1,115,"F18",76,"F18",129,"VK_F18",u,u],[1,116,"F19",77,"F19",130,"VK_F19",u,u],[1,117,"F20",78,"F20",131,"VK_F20",u,u],[1,118,"F21",79,"F21",132,"VK_F21",u,u],[1,119,"F22",80,"F22",133,"VK_F22",u,u],[1,120,"F23",81,"F23",134,"VK_F23",u,u],[1,121,"F24",82,"F24",135,"VK_F24",u,u],[1,122,"Open",0,u,0,u,u,u],[1,123,"Help",0,u,0,u,u,u],[1,124,"Select",0,u,0,u,u,u],[1,125,"Again",0,u,0,u,u,u],[1,126,"Undo",0,u,0,u,u,u],[1,127,"Cut",0,u,0,u,u,u],[1,128,"Copy",0,u,0,u,u,u],[1,129,"Paste",0,u,0,u,u,u],[1,130,"Find",0,u,0,u,u,u],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",u,u],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",u,u],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",u,u],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",u,u],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",u,u],[1,136,"KanaMode",0,u,0,u,u,u],[0,137,"IntlYen",0,u,0,u,u,u],[1,138,"Convert",0,u,0,u,u,u],[1,139,"NonConvert",0,u,0,u,u,u],[1,140,"Lang1",0,u,0,u,u,u],[1,141,"Lang2",0,u,0,u,u,u],[1,142,"Lang3",0,u,0,u,u,u],[1,143,"Lang4",0,u,0,u,u,u],[1,144,"Lang5",0,u,0,u,u,u],[1,145,"Abort",0,u,0,u,u,u],[1,146,"Props",0,u,0,u,u,u],[1,147,"NumpadParenLeft",0,u,0,u,u,u],[1,148,"NumpadParenRight",0,u,0,u,u,u],[1,149,"NumpadBackspace",0,u,0,u,u,u],[1,150,"NumpadMemoryStore",0,u,0,u,u,u],[1,151,"NumpadMemoryRecall",0,u,0,u,u,u],[1,152,"NumpadMemoryClear",0,u,0,u,u,u],[1,153,"NumpadMemoryAdd",0,u,0,u,u,u],[1,154,"NumpadMemorySubtract",0,u,0,u,u,u],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",u,u],[1,156,"NumpadClearEntry",0,u,0,u,u,u],[1,0,u,5,"Ctrl",17,"VK_CONTROL",u,u],[1,0,u,4,"Shift",16,"VK_SHIFT",u,u],[1,0,u,6,"Alt",18,"VK_MENU",u,u],[1,0,u,57,"Meta",91,"VK_COMMAND",u,u],[1,157,"ControlLeft",5,u,0,"VK_LCONTROL",u,u],[1,158,"ShiftLeft",4,u,0,"VK_LSHIFT",u,u],[1,159,"AltLeft",6,u,0,"VK_LMENU",u,u],[1,160,"MetaLeft",57,u,0,"VK_LWIN",u,u],[1,161,"ControlRight",5,u,0,"VK_RCONTROL",u,u],[1,162,"ShiftRight",4,u,0,"VK_RSHIFT",u,u],[1,163,"AltRight",6,u,0,"VK_RMENU",u,u],[1,164,"MetaRight",57,u,0,"VK_RWIN",u,u],[1,165,"BrightnessUp",0,u,0,u,u,u],[1,166,"BrightnessDown",0,u,0,u,u,u],[1,167,"MediaPlay",0,u,0,u,u,u],[1,168,"MediaRecord",0,u,0,u,u,u],[1,169,"MediaFastForward",0,u,0,u,u,u],[1,170,"MediaRewind",0,u,0,u,u,u],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",u,u],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",u,u],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",u,u],[1,174,"Eject",0,u,0,u,u,u],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",u,u],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",u,u],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",u,u],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",u,u],[1,179,"LaunchApp1",0,u,0,"VK_MEDIA_LAUNCH_APP1",u,u],[1,180,"SelectTask",0,u,0,u,u,u],[1,181,"LaunchScreenSaver",0,u,0,u,u,u],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",u,u],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",u,u],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",u,u],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",u,u],[1,186,"BrowserStop",0,u,0,"VK_BROWSER_STOP",u,u],[1,187,"BrowserRefresh",0,u,0,"VK_BROWSER_REFRESH",u,u],[1,188,"BrowserFavorites",0,u,0,"VK_BROWSER_FAVORITES",u,u],[1,189,"ZoomToggle",0,u,0,u,u,u],[1,190,"MailReply",0,u,0,u,u,u],[1,191,"MailForward",0,u,0,u,u,u],[1,192,"MailSend",0,u,0,u,u,u],[1,0,u,114,"KeyInComposition",229,u,u,u],[1,0,u,116,"ABNT_C2",194,"VK_ABNT_C2",u,u],[1,0,u,96,"OEM_8",223,"VK_OEM_8",u,u],[1,0,u,0,u,0,"VK_KANA",u,u],[1,0,u,0,u,0,"VK_HANGUL",u,u],[1,0,u,0,u,0,"VK_JUNJA",u,u],[1,0,u,0,u,0,"VK_FINAL",u,u],[1,0,u,0,u,0,"VK_HANJA",u,u],[1,0,u,0,u,0,"VK_KANJI",u,u],[1,0,u,0,u,0,"VK_CONVERT",u,u],[1,0,u,0,u,0,"VK_NONCONVERT",u,u],[1,0,u,0,u,0,"VK_ACCEPT",u,u],[1,0,u,0,u,0,"VK_MODECHANGE",u,u],[1,0,u,0,u,0,"VK_SELECT",u,u],[1,0,u,0,u,0,"VK_PRINT",u,u],[1,0,u,0,u,0,"VK_EXECUTE",u,u],[1,0,u,0,u,0,"VK_SNAPSHOT",u,u],[1,0,u,0,u,0,"VK_HELP",u,u],[1,0,u,0,u,0,"VK_APPS",u,u],[1,0,u,0,u,0,"VK_PROCESSKEY",u,u],[1,0,u,0,u,0,"VK_PACKET",u,u],[1,0,u,0,u,0,"VK_DBE_SBCSCHAR",u,u],[1,0,u,0,u,0,"VK_DBE_DBCSCHAR",u,u],[1,0,u,0,u,0,"VK_ATTN",u,u],[1,0,u,0,u,0,"VK_CRSEL",u,u],[1,0,u,0,u,0,"VK_EXSEL",u,u],[1,0,u,0,u,0,"VK_EREOF",u,u],[1,0,u,0,u,0,"VK_PLAY",u,u],[1,0,u,0,u,0,"VK_ZOOM",u,u],[1,0,u,0,u,0,"VK_NONAME",u,u],[1,0,u,0,u,0,"VK_PA1",u,u],[1,0,u,0,u,0,"VK_OEM_CLEAR",u,u]],t=[],n=[];for(const i of e){const[r,a,o,s,l,c,d,h,E]=i;if(n[a]||(n[a]=!0,uqe[o]=a,nqe[o.toLowerCase()]=a,r&&(WY[a]=s)),!t[s]){if(t[s]=!0,!l)throw new Error(`String representation missing for key code ${s} around scan code ${o}`);lS.define(s,l),I$.define(s,h||l),O$.define(s,E||h||l)}c&&(H5e[c]=s)}})();var xh;(function(u){function e(o){return lS.keyCodeToStr(o)}u.toString=e;function t(o){return lS.strToKeyCode(o)}u.fromString=t;function n(o){return I$.keyCodeToStr(o)}u.toUserSettingsUS=n;function i(o){return O$.keyCodeToStr(o)}u.toUserSettingsGeneral=i;function r(o){return I$.strToKeyCode(o)||O$.strToKeyCode(o)}u.fromUserSettings=r;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return lS.keyCodeToStr(o)}u.toElectronAccelerator=a})(xh||(xh={}));function Ri(u,e){const t=(e&65535)<<16>>>0;return(u|t)>>>0}let jx;if(typeof pl.vscode<"u"&&typeof pl.vscode.process<"u"){const u=pl.vscode.process;jx={get platform(){return u.platform},get arch(){return u.arch},get env(){return u.env},cwd(){return u.cwd()}}}else typeof process<"u"?jx={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:jx={get platform(){return Yr?"win32":Yt?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const P8=jx.cwd,iqe=jx.env,rqe=jx.platform,aqe=65,oqe=97,sqe=90,lqe=122,VE=46,fa=47,xs=92,S4=58,cqe=63;class $5e extends Error{constructor(e,t,n){let i;typeof t=="string"&&t.indexOf("not ")===0?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${r} ${i} of type ${t}`;a+=`. Received type ${typeof n}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function dqe(u,e){if(u===null||typeof u!="object")throw new $5e(e,"Object",u)}function sr(u,e){if(typeof u!="string")throw new $5e(e,"string",u)}const um=rqe==="win32";function Mu(u){return u===fa||u===xs}function j$(u){return u===fa}function B4(u){return u>=aqe&&u<=sqe||u>=oqe&&u<=lqe}function N8(u,e,t,n){let i="",r=0,a=-1,o=0,s=0;for(let l=0;l<=u.length;++l){if(l2){const c=i.lastIndexOf(t);c===-1?(i="",r=0):(i=i.slice(0,c),r=i.length-1-i.lastIndexOf(t)),a=l,o=0;continue}else if(i.length!==0){i="",r=0,a=l,o=0;continue}}e&&(i+=i.length>0?`${t}..`:"..",r=2)}else i.length>0?i+=`${t}${u.slice(a+1,l)}`:i=u.slice(a+1,l),r=l-a-1;a=l,o=0}else s===VE&&o!==-1?++o:o=-1}return i}function K5e(u,e){dqe(e,"pathObject");const t=e.dir||e.root,n=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${n}`:`${t}${u}${n}`:n}const us={resolve(...u){let e="",t="",n=!1;for(let i=u.length-1;i>=-1;i--){let r;if(i>=0){if(r=u[i],sr(r,"path"),r.length===0)continue}else e.length===0?r=P8():(r=iqe[`=${e}`]||P8(),(r===void 0||r.slice(0,2).toLowerCase()!==e.toLowerCase()&&r.charCodeAt(2)===xs)&&(r=`${e}\\`));const a=r.length;let o=0,s="",l=!1;const c=r.charCodeAt(0);if(a===1)Mu(c)&&(o=1,l=!0);else if(Mu(c))if(l=!0,Mu(r.charCodeAt(1))){let d=2,h=d;for(;d2&&Mu(r.charCodeAt(2))&&(l=!0,o=3));if(s.length>0)if(e.length>0){if(s.toLowerCase()!==e.toLowerCase())continue}else e=s;if(n){if(e.length>0)break}else if(t=`${r.slice(o)}\\${t}`,n=l,l&&e.length>0)break}return t=N8(t,!n,"\\",Mu),n?`${e}\\${t}`:`${e}${t}`||"."},normalize(u){sr(u,"path");const e=u.length;if(e===0)return".";let t=0,n,i=!1;const r=u.charCodeAt(0);if(e===1)return j$(r)?"\\":u;if(Mu(r))if(i=!0,Mu(u.charCodeAt(1))){let o=2,s=o;for(;o2&&Mu(u.charCodeAt(2))&&(i=!0,t=3));let a=t0&&Mu(u.charCodeAt(e-1))&&(a+="\\"),n===void 0?i?`\\${a}`:a:i?`${n}\\${a}`:`${n}${a}`},isAbsolute(u){sr(u,"path");const e=u.length;if(e===0)return!1;const t=u.charCodeAt(0);return Mu(t)||e>2&&B4(t)&&u.charCodeAt(1)===S4&&Mu(u.charCodeAt(2))},join(...u){if(u.length===0)return".";let e,t;for(let r=0;r0&&(e===void 0?e=t=a:e+=`\\${a}`)}if(e===void 0)return".";let n=!0,i=0;if(typeof t=="string"&&Mu(t.charCodeAt(0))){++i;const r=t.length;r>1&&Mu(t.charCodeAt(1))&&(++i,r>2&&(Mu(t.charCodeAt(2))?++i:n=!1))}if(n){for(;i=2&&(e=`\\${e.slice(i)}`)}return us.normalize(e)},relative(u,e){if(sr(u,"from"),sr(e,"to"),u===e)return"";const t=us.resolve(u),n=us.resolve(e);if(t===n||(u=t.toLowerCase(),e=n.toLowerCase(),u===e))return"";let i=0;for(;ii&&u.charCodeAt(r-1)===xs;)r--;const a=r-i;let o=0;for(;oo&&e.charCodeAt(s-1)===xs;)s--;const l=s-o,c=ac){if(e.charCodeAt(o+h)===xs)return n.slice(o+h+1);if(h===2)return n.slice(o+h)}a>c&&(u.charCodeAt(i+h)===xs?d=h:h===2&&(d=3)),d===-1&&(d=0)}let E="";for(h=i+d+1;h<=r;++h)(h===r||u.charCodeAt(h)===xs)&&(E+=E.length===0?"..":"\\..");return o+=d,E.length>0?`${E}${n.slice(o,s)}`:(n.charCodeAt(o)===xs&&++o,n.slice(o,s))},toNamespacedPath(u){if(typeof u!="string"||u.length===0)return u;const e=us.resolve(u);if(e.length<=2)return u;if(e.charCodeAt(0)===xs){if(e.charCodeAt(1)===xs){const t=e.charCodeAt(2);if(t!==cqe&&t!==VE)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(B4(e.charCodeAt(0))&&e.charCodeAt(1)===S4&&e.charCodeAt(2)===xs)return`\\\\?\\${e}`;return u},dirname(u){sr(u,"path");const e=u.length;if(e===0)return".";let t=-1,n=0;const i=u.charCodeAt(0);if(e===1)return Mu(i)?u:".";if(Mu(i)){if(t=n=1,Mu(u.charCodeAt(1))){let o=2,s=o;for(;o2&&Mu(u.charCodeAt(2))?3:2,n=t);let r=-1,a=!0;for(let o=e-1;o>=n;--o)if(Mu(u.charCodeAt(o))){if(!a){r=o;break}}else a=!1;if(r===-1){if(t===-1)return".";r=t}return u.slice(0,r)},basename(u,e){e!==void 0&&sr(e,"ext"),sr(u,"path");let t=0,n=-1,i=!0,r;if(u.length>=2&&B4(u.charCodeAt(0))&&u.charCodeAt(1)===S4&&(t=2),e!==void 0&&e.length>0&&e.length<=u.length){if(e===u)return"";let a=e.length-1,o=-1;for(r=u.length-1;r>=t;--r){const s=u.charCodeAt(r);if(Mu(s)){if(!i){t=r+1;break}}else o===-1&&(i=!1,o=r+1),a>=0&&(s===e.charCodeAt(a)?--a===-1&&(n=r):(a=-1,n=o))}return t===n?n=o:n===-1&&(n=u.length),u.slice(t,n)}for(r=u.length-1;r>=t;--r)if(Mu(u.charCodeAt(r))){if(!i){t=r+1;break}}else n===-1&&(i=!1,n=r+1);return n===-1?"":u.slice(t,n)},extname(u){sr(u,"path");let e=0,t=-1,n=0,i=-1,r=!0,a=0;u.length>=2&&u.charCodeAt(1)===S4&&B4(u.charCodeAt(0))&&(e=n=2);for(let o=u.length-1;o>=e;--o){const s=u.charCodeAt(o);if(Mu(s)){if(!r){n=o+1;break}continue}i===-1&&(r=!1,i=o+1),s===VE?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":u.slice(t,i)},format:K5e.bind(null,"\\"),parse(u){sr(u,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return e;const t=u.length;let n=0,i=u.charCodeAt(0);if(t===1)return Mu(i)?(e.root=e.dir=u,e):(e.base=e.name=u,e);if(Mu(i)){if(n=1,Mu(u.charCodeAt(1))){let d=2,h=d;for(;d0&&(e.root=u.slice(0,n));let r=-1,a=n,o=-1,s=!0,l=u.length-1,c=0;for(;l>=n;--l){if(i=u.charCodeAt(l),Mu(i)){if(!s){a=l+1;break}continue}o===-1&&(s=!1,o=l+1),i===VE?r===-1?r=l:c!==1&&(c=1):r!==-1&&(c=-1)}return o!==-1&&(r===-1||c===0||c===1&&r===o-1&&r===a+1?e.base=e.name=u.slice(a,o):(e.name=u.slice(a,r),e.base=u.slice(a,o),e.ext=u.slice(r,o))),a>0&&a!==n?e.dir=u.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},hqe=(()=>{if(um){const u=/\\/g;return()=>{const e=P8().replace(u,"/");return e.slice(e.indexOf("/"))}}return()=>P8()})(),Mi={resolve(...u){let e="",t=!1;for(let n=u.length-1;n>=-1&&!t;n--){const i=n>=0?u[n]:hqe();sr(i,"path"),i.length!==0&&(e=`${i}/${e}`,t=i.charCodeAt(0)===fa)}return e=N8(e,!t,"/",j$),t?`/${e}`:e.length>0?e:"."},normalize(u){if(sr(u,"path"),u.length===0)return".";const e=u.charCodeAt(0)===fa,t=u.charCodeAt(u.length-1)===fa;return u=N8(u,!e,"/",j$),u.length===0?e?"/":t?"./":".":(t&&(u+="/"),e?`/${u}`:u)},isAbsolute(u){return sr(u,"path"),u.length>0&&u.charCodeAt(0)===fa},join(...u){if(u.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=n:e+=`/${n}`)}return e===void 0?".":Mi.normalize(e)},relative(u,e){if(sr(u,"from"),sr(e,"to"),u===e||(u=Mi.resolve(u),e=Mi.resolve(e),u===e))return"";const t=1,n=u.length,i=n-t,r=1,a=e.length-r,o=io){if(e.charCodeAt(r+l)===fa)return e.slice(r+l+1);if(l===0)return e.slice(r+l)}else i>o&&(u.charCodeAt(t+l)===fa?s=l:l===0&&(s=0));let c="";for(l=t+s+1;l<=n;++l)(l===n||u.charCodeAt(l)===fa)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(r+s)}`},toNamespacedPath(u){return u},dirname(u){if(sr(u,"path"),u.length===0)return".";const e=u.charCodeAt(0)===fa;let t=-1,n=!0;for(let i=u.length-1;i>=1;--i)if(u.charCodeAt(i)===fa){if(!n){t=i;break}}else n=!1;return t===-1?e?"/":".":e&&t===1?"//":u.slice(0,t)},basename(u,e){e!==void 0&&sr(e,"ext"),sr(u,"path");let t=0,n=-1,i=!0,r;if(e!==void 0&&e.length>0&&e.length<=u.length){if(e===u)return"";let a=e.length-1,o=-1;for(r=u.length-1;r>=0;--r){const s=u.charCodeAt(r);if(s===fa){if(!i){t=r+1;break}}else o===-1&&(i=!1,o=r+1),a>=0&&(s===e.charCodeAt(a)?--a===-1&&(n=r):(a=-1,n=o))}return t===n?n=o:n===-1&&(n=u.length),u.slice(t,n)}for(r=u.length-1;r>=0;--r)if(u.charCodeAt(r)===fa){if(!i){t=r+1;break}}else n===-1&&(i=!1,n=r+1);return n===-1?"":u.slice(t,n)},extname(u){sr(u,"path");let e=-1,t=0,n=-1,i=!0,r=0;for(let a=u.length-1;a>=0;--a){const o=u.charCodeAt(a);if(o===fa){if(!i){t=a+1;break}continue}n===-1&&(i=!1,n=a+1),o===VE?e===-1?e=a:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||n===-1||r===0||r===1&&e===n-1&&e===t+1?"":u.slice(e,n)},format:K5e.bind(null,"/"),parse(u){sr(u,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return e;const t=u.charCodeAt(0)===fa;let n;t?(e.root="/",n=1):n=0;let i=-1,r=0,a=-1,o=!0,s=u.length-1,l=0;for(;s>=n;--s){const c=u.charCodeAt(s);if(c===fa){if(!o){r=s+1;break}continue}a===-1&&(o=!1,a=s+1),c===VE?i===-1?i=s:l!==1&&(l=1):i!==-1&&(l=-1)}if(a!==-1){const c=r===0&&t?1:r;i===-1||l===0||l===1&&i===a-1&&i===r+1?e.base=e.name=u.slice(c,a):(e.name=u.slice(c,i),e.base=u.slice(c,a),e.ext=u.slice(i,a))}return r>0?e.dir=u.slice(0,r-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Mi.win32=us.win32=us;Mi.posix=us.posix=Mi;const W5e=um?us.normalize:Mi.normalize,Eqe=um?us.resolve:Mi.resolve,gqe=um?us.relative:Mi.relative,G5e=um?us.dirname:Mi.dirname,HE=um?us.basename:Mi.basename,mqe=um?us.extname:Mi.extname,zc=um?us.sep:Mi.sep,fqe=/^\w[\w\d+.-]*$/,pqe=/^\//,Dqe=/^\/\//;function xqe(u,e){if(!u.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${u.authority}", path: "${u.path}", query: "${u.query}", fragment: "${u.fragment}"}`);if(u.scheme&&!fqe.test(u.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(u.path){if(u.authority){if(!pqe.test(u.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(Dqe.test(u.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function vqe(u,e){return!u&&!e?"file":u}function Cqe(u,e){switch(u){case"https":case"http":case"file":e?e[0]!==cc&&(e=cc+e):e=cc;break}return e}const hi="",cc="/",bqe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let lt=class cS{static isUri(e){return e instanceof cS?!0:e?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":!1}constructor(e,t,n,i,r,a=!1){typeof e=="object"?(this.scheme=e.scheme||hi,this.authority=e.authority||hi,this.path=e.path||hi,this.query=e.query||hi,this.fragment=e.fragment||hi):(this.scheme=vqe(e,a),this.authority=t||hi,this.path=Cqe(this.scheme,n||hi),this.query=i||hi,this.fragment=r||hi,xqe(this,a))}get fsPath(){return R8(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=hi),n===void 0?n=this.authority:n===null&&(n=hi),i===void 0?i=this.path:i===null&&(i=hi),r===void 0?r=this.query:r===null&&(r=hi),a===void 0?a=this.fragment:a===null&&(a=hi),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&a===this.fragment?this:new Qp(t,n,i,r,a)}static parse(e,t=!1){const n=bqe.exec(e);return n?new Qp(n[2]||hi,D_(n[4]||hi),D_(n[5]||hi),D_(n[7]||hi),D_(n[9]||hi),t):new Qp(hi,hi,hi,hi,hi)}static file(e){let t=hi;if(Yr&&(e=e.replace(/\\/g,cc)),e[0]===cc&&e[1]===cc){const n=e.indexOf(cc,2);n===-1?(t=e.substring(2),e=cc):(t=e.substring(2,n),e=e.substring(n)||cc)}return new Qp("file",t,e,hi,hi)}static from(e,t){return new Qp(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return Yr&&e.scheme==="file"?n=cS.file(us.join(R8(e,!0),...t)).path:n=Mi.join(e.path,...t),e.with({path:n})}toString(e=!1){return V$(this,e)}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof cS)return e;{const i=new Qp(e);return i._formatted=(t=e.external)!==null&&t!==void 0?t:null,i._fsPath=e._sep===U5e&&(n=e.fsPath)!==null&&n!==void 0?n:null,i}}else return e}};const U5e=Yr?1:void 0;let Qp=class extends lt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=R8(this,!1)),this._fsPath}toString(e=!1){return e?V$(this,!0):(this._formatted||(this._formatted=V$(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=U5e),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const q5e={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"};function ore(u,e,t){let n,i=-1;for(let r=0;r=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||t&&a===91||t&&a===93||t&&a===58)i!==-1&&(n+=encodeURIComponent(u.substring(i,r)),i=-1),n!==void 0&&(n+=u.charAt(r));else{n===void 0&&(n=u.substr(0,r));const o=q5e[a];o!==void 0?(i!==-1&&(n+=encodeURIComponent(u.substring(i,r)),i=-1),n+=o):i===-1&&(i=r)}}return i!==-1&&(n+=encodeURIComponent(u.substring(i))),n!==void 0?n:u}function kqe(u){let e;for(let t=0;t1&&u.scheme==="file"?t=`//${u.authority}${u.path}`:u.path.charCodeAt(0)===47&&(u.path.charCodeAt(1)>=65&&u.path.charCodeAt(1)<=90||u.path.charCodeAt(1)>=97&&u.path.charCodeAt(1)<=122)&&u.path.charCodeAt(2)===58?e?t=u.path.substr(1):t=u.path[1].toLowerCase()+u.path.substr(2):t=u.path,Yr&&(t=t.replace(/\//g,"\\")),t}function V$(u,e){const t=e?kqe:ore;let n="",{scheme:i,authority:r,path:a,query:o,fragment:s}=u;if(i&&(n+=i,n+=":"),(r||i==="file")&&(n+=cc,n+=cc),r){let l=r.indexOf("@");if(l!==-1){const c=r.substr(0,l);r=r.substr(l+1),l=c.lastIndexOf(":"),l===-1?n+=t(c,!1,!1):(n+=t(c.substr(0,l),!1,!1),n+=":",n+=t(c.substr(l+1),!1,!0)),n+="@"}r=r.toLowerCase(),l=r.lastIndexOf(":"),l===-1?n+=t(r,!1,!0):(n+=t(r.substr(0,l),!1,!0),n+=r.substr(l))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const l=a.charCodeAt(1);l>=65&&l<=90&&(a=`/${String.fromCharCode(l+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const l=a.charCodeAt(0);l>=65&&l<=90&&(a=`${String.fromCharCode(l+32)}:${a.substr(2)}`)}n+=t(a,!0,!1)}return o&&(n+="?",n+=t(o,!1,!1)),s&&(n+="#",n+=e?s:ore(s,!1,!1)),n}function J5e(u){try{return decodeURIComponent(u)}catch{return u.length>3?u.substr(0,3)+J5e(u.substr(3)):u}}const sre=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function D_(u){return u.match(sre)?u.replace(sre,e=>J5e(e)):u}let ue=class Um{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Um(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Um.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Um.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return Cr.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Cr.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return Cr.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return Cr.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return Cr.plusRange(this,e)}static plusRange(e,t){let n,i,r,a;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,a=e.endColumn),new Cr(n,i,r,a)}intersectRanges(e){return Cr.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,a=e.endColumn;const o=t.startLineNumber,s=t.startColumn,l=t.endLineNumber,c=t.endColumn;return nl?(r=l,a=c):r===l&&(a=Math.min(a,c)),n>r||n===r&&i>a?null:new Cr(n,i,r,a)}equalsRange(e){return Cr.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Cr.getEndPosition(this)}static getEndPosition(e){return new ue(e.endLineNumber,e.endColumn)}getStartPosition(){return Cr.getStartPosition(this)}static getStartPosition(e){return new ue(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Cr(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Cr(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Cr.collapseToStart(this)}static collapseToStart(e){return new Cr(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Cr.collapseToEnd(this)}static collapseToEnd(e){return new Cr(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Cr(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new Cr(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Cr(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},Ze=class G0 extends O{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return G0.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new G0(this.startLineNumber,this.startColumn,e,t):new G0(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ue(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ue(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new G0(e,t,this.endLineNumber,this.endColumn):new G0(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new G0(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new G0(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new G0(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new G0(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;(n=this._factories.get(e))===null||n===void 0||n.dispose();const i=new Fqe(this,e,t);return this._factories.set(e,i),bt(()=>{const r=this._factories.get(e);!r||r!==i||(this._factories.delete(e),r.dispose())})}getOrCreate(e){return $$(this,void 0,void 0,function*(){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class Fqe extends ie{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return $$(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return $$(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let Ok=class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class GY{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class rP{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}var jk;(function(u){const e=new Map;e.set(0,Ae.symbolMethod),e.set(1,Ae.symbolFunction),e.set(2,Ae.symbolConstructor),e.set(3,Ae.symbolField),e.set(4,Ae.symbolVariable),e.set(5,Ae.symbolClass),e.set(6,Ae.symbolStruct),e.set(7,Ae.symbolInterface),e.set(8,Ae.symbolModule),e.set(9,Ae.symbolProperty),e.set(10,Ae.symbolEvent),e.set(11,Ae.symbolOperator),e.set(12,Ae.symbolUnit),e.set(13,Ae.symbolValue),e.set(15,Ae.symbolEnum),e.set(14,Ae.symbolConstant),e.set(15,Ae.symbolEnum),e.set(16,Ae.symbolEnumMember),e.set(17,Ae.symbolKeyword),e.set(27,Ae.symbolSnippet),e.set(18,Ae.symbolText),e.set(19,Ae.symbolColor),e.set(20,Ae.symbolFile),e.set(21,Ae.symbolReference),e.set(22,Ae.symbolCustomColor),e.set(23,Ae.symbolFolder),e.set(24,Ae.symbolTypeParameter),e.set(25,Ae.account),e.set(26,Ae.issues);function t(r){let a=e.get(r);return a||(console.info("No codicon found for CompletionItemKind "+r),a=Ae.symbolProperty),a}u.toIcon=t;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function i(r,a){let o=n.get(r);return typeof o>"u"&&!a&&(o=9),o}u.fromString=i})(jk||(jk={}));var Ih;(function(u){u[u.Automatic=0]="Automatic",u[u.Explicit=1]="Explicit"})(Ih||(Ih={}));class Y5e{constructor(e,t,n,i){this.range=e,this.text=t,this.completionKind=n,this.isSnippetText=i}equals(e){return O.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}var e1;(function(u){u[u.Invoke=1]="Invoke",u[u.TriggerCharacter=2]="TriggerCharacter",u[u.ContentChange=3]="ContentChange"})(e1||(e1={}));var Vk;(function(u){u[u.Text=0]="Text",u[u.Read=1]="Read",u[u.Write=2]="Write"})(Vk||(Vk={}));function Aqe(u){return u&<.isUri(u.uri)&&O.isIRange(u.range)&&(O.isIRange(u.originSelectionRange)||O.isIRange(u.targetSelectionRange))}const _qe={17:v("Array","array"),16:v("Boolean","boolean"),4:v("Class","class"),13:v("Constant","constant"),8:v("Constructor","constructor"),9:v("Enum","enumeration"),21:v("EnumMember","enumeration member"),23:v("Event","event"),7:v("Field","field"),0:v("File","file"),11:v("Function","function"),10:v("Interface","interface"),19:v("Key","key"),5:v("Method","method"),1:v("Module","module"),2:v("Namespace","namespace"),20:v("Null","null"),15:v("Number","number"),18:v("Object","object"),24:v("Operator","operator"),3:v("Package","package"),6:v("Property","property"),14:v("String","string"),22:v("Struct","struct"),25:v("TypeParameter","type parameter"),12:v("Variable","variable")};function Sqe(u,e){return v("symbolAriaLabel","{0} ({1})",u,_qe[e])}var K$;(function(u){const e=new Map;e.set(0,Ae.symbolFile),e.set(1,Ae.symbolModule),e.set(2,Ae.symbolNamespace),e.set(3,Ae.symbolPackage),e.set(4,Ae.symbolClass),e.set(5,Ae.symbolMethod),e.set(6,Ae.symbolProperty),e.set(7,Ae.symbolField),e.set(8,Ae.symbolConstructor),e.set(9,Ae.symbolEnum),e.set(10,Ae.symbolInterface),e.set(11,Ae.symbolFunction),e.set(12,Ae.symbolVariable),e.set(13,Ae.symbolConstant),e.set(14,Ae.symbolString),e.set(15,Ae.symbolNumber),e.set(16,Ae.symbolBoolean),e.set(17,Ae.symbolArray),e.set(18,Ae.symbolObject),e.set(19,Ae.symbolKey),e.set(20,Ae.symbolNull),e.set(21,Ae.symbolEnumMember),e.set(22,Ae.symbolStruct),e.set(23,Ae.symbolEvent),e.set(24,Ae.symbolOperator),e.set(25,Ae.symbolTypeParameter);function t(n){let i=e.get(n);return i||(console.info("No codicon found for SymbolKind "+n),i=Ae.symbolProperty),i}u.toIcon=t})(K$||(K$={}));let Al=class W6{static fromValue(e){switch(e){case"comment":return W6.Comment;case"imports":return W6.Imports;case"region":return W6.Region}return new W6(e)}constructor(e){this.value=e}};Al.Comment=new Al("comment");Al.Imports=new Al("imports");Al.Region=new Al("region");var W$;(function(u){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}u.is=e})(W$||(W$={}));var I8;(function(u){u[u.Type=1]="Type",u[u.Parameter=2]="Parameter"})(I8||(I8={}));class Bqe{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const Kn=new yqe;var G$;(function(u){u[u.Unknown=0]="Unknown",u[u.Disabled=1]="Disabled",u[u.Enabled=2]="Enabled"})(G$||(G$={}));var U$;(function(u){u[u.Invoke=1]="Invoke",u[u.Auto=2]="Auto"})(U$||(U$={}));var q$;(function(u){u[u.None=0]="None",u[u.KeepWhitespace=1]="KeepWhitespace",u[u.InsertAsSnippet=4]="InsertAsSnippet"})(q$||(q$={}));var J$;(function(u){u[u.Method=0]="Method",u[u.Function=1]="Function",u[u.Constructor=2]="Constructor",u[u.Field=3]="Field",u[u.Variable=4]="Variable",u[u.Class=5]="Class",u[u.Struct=6]="Struct",u[u.Interface=7]="Interface",u[u.Module=8]="Module",u[u.Property=9]="Property",u[u.Event=10]="Event",u[u.Operator=11]="Operator",u[u.Unit=12]="Unit",u[u.Value=13]="Value",u[u.Constant=14]="Constant",u[u.Enum=15]="Enum",u[u.EnumMember=16]="EnumMember",u[u.Keyword=17]="Keyword",u[u.Text=18]="Text",u[u.Color=19]="Color",u[u.File=20]="File",u[u.Reference=21]="Reference",u[u.Customcolor=22]="Customcolor",u[u.Folder=23]="Folder",u[u.TypeParameter=24]="TypeParameter",u[u.User=25]="User",u[u.Issue=26]="Issue",u[u.Snippet=27]="Snippet"})(J$||(J$={}));var Z$;(function(u){u[u.Deprecated=1]="Deprecated"})(Z$||(Z$={}));var Y$;(function(u){u[u.Invoke=0]="Invoke",u[u.TriggerCharacter=1]="TriggerCharacter",u[u.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Y$||(Y$={}));var Q$;(function(u){u[u.EXACT=0]="EXACT",u[u.ABOVE=1]="ABOVE",u[u.BELOW=2]="BELOW"})(Q$||(Q$={}));var X$;(function(u){u[u.NotSet=0]="NotSet",u[u.ContentFlush=1]="ContentFlush",u[u.RecoverFromMarkers=2]="RecoverFromMarkers",u[u.Explicit=3]="Explicit",u[u.Paste=4]="Paste",u[u.Undo=5]="Undo",u[u.Redo=6]="Redo"})(X$||(X$={}));var eK;(function(u){u[u.LF=1]="LF",u[u.CRLF=2]="CRLF"})(eK||(eK={}));var tK;(function(u){u[u.Text=0]="Text",u[u.Read=1]="Read",u[u.Write=2]="Write"})(tK||(tK={}));var uK;(function(u){u[u.None=0]="None",u[u.Keep=1]="Keep",u[u.Brackets=2]="Brackets",u[u.Advanced=3]="Advanced",u[u.Full=4]="Full"})(uK||(uK={}));var nK;(function(u){u[u.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",u[u.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",u[u.accessibilitySupport=2]="accessibilitySupport",u[u.accessibilityPageSize=3]="accessibilityPageSize",u[u.ariaLabel=4]="ariaLabel",u[u.ariaRequired=5]="ariaRequired",u[u.autoClosingBrackets=6]="autoClosingBrackets",u[u.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",u[u.autoClosingDelete=8]="autoClosingDelete",u[u.autoClosingOvertype=9]="autoClosingOvertype",u[u.autoClosingQuotes=10]="autoClosingQuotes",u[u.autoIndent=11]="autoIndent",u[u.automaticLayout=12]="automaticLayout",u[u.autoSurround=13]="autoSurround",u[u.bracketPairColorization=14]="bracketPairColorization",u[u.guides=15]="guides",u[u.codeLens=16]="codeLens",u[u.codeLensFontFamily=17]="codeLensFontFamily",u[u.codeLensFontSize=18]="codeLensFontSize",u[u.colorDecorators=19]="colorDecorators",u[u.colorDecoratorsLimit=20]="colorDecoratorsLimit",u[u.columnSelection=21]="columnSelection",u[u.comments=22]="comments",u[u.contextmenu=23]="contextmenu",u[u.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",u[u.cursorBlinking=25]="cursorBlinking",u[u.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",u[u.cursorStyle=27]="cursorStyle",u[u.cursorSurroundingLines=28]="cursorSurroundingLines",u[u.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",u[u.cursorWidth=30]="cursorWidth",u[u.disableLayerHinting=31]="disableLayerHinting",u[u.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",u[u.domReadOnly=33]="domReadOnly",u[u.dragAndDrop=34]="dragAndDrop",u[u.dropIntoEditor=35]="dropIntoEditor",u[u.emptySelectionClipboard=36]="emptySelectionClipboard",u[u.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",u[u.extraEditorClassName=38]="extraEditorClassName",u[u.fastScrollSensitivity=39]="fastScrollSensitivity",u[u.find=40]="find",u[u.fixedOverflowWidgets=41]="fixedOverflowWidgets",u[u.folding=42]="folding",u[u.foldingStrategy=43]="foldingStrategy",u[u.foldingHighlight=44]="foldingHighlight",u[u.foldingImportsByDefault=45]="foldingImportsByDefault",u[u.foldingMaximumRegions=46]="foldingMaximumRegions",u[u.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",u[u.fontFamily=48]="fontFamily",u[u.fontInfo=49]="fontInfo",u[u.fontLigatures=50]="fontLigatures",u[u.fontSize=51]="fontSize",u[u.fontWeight=52]="fontWeight",u[u.fontVariations=53]="fontVariations",u[u.formatOnPaste=54]="formatOnPaste",u[u.formatOnType=55]="formatOnType",u[u.glyphMargin=56]="glyphMargin",u[u.gotoLocation=57]="gotoLocation",u[u.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",u[u.hover=59]="hover",u[u.inDiffEditor=60]="inDiffEditor",u[u.inlineSuggest=61]="inlineSuggest",u[u.letterSpacing=62]="letterSpacing",u[u.lightbulb=63]="lightbulb",u[u.lineDecorationsWidth=64]="lineDecorationsWidth",u[u.lineHeight=65]="lineHeight",u[u.lineNumbers=66]="lineNumbers",u[u.lineNumbersMinChars=67]="lineNumbersMinChars",u[u.linkedEditing=68]="linkedEditing",u[u.links=69]="links",u[u.matchBrackets=70]="matchBrackets",u[u.minimap=71]="minimap",u[u.mouseStyle=72]="mouseStyle",u[u.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",u[u.mouseWheelZoom=74]="mouseWheelZoom",u[u.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",u[u.multiCursorModifier=76]="multiCursorModifier",u[u.multiCursorPaste=77]="multiCursorPaste",u[u.multiCursorLimit=78]="multiCursorLimit",u[u.occurrencesHighlight=79]="occurrencesHighlight",u[u.overviewRulerBorder=80]="overviewRulerBorder",u[u.overviewRulerLanes=81]="overviewRulerLanes",u[u.padding=82]="padding",u[u.pasteAs=83]="pasteAs",u[u.parameterHints=84]="parameterHints",u[u.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",u[u.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",u[u.quickSuggestions=87]="quickSuggestions",u[u.quickSuggestionsDelay=88]="quickSuggestionsDelay",u[u.readOnly=89]="readOnly",u[u.readOnlyMessage=90]="readOnlyMessage",u[u.renameOnType=91]="renameOnType",u[u.renderControlCharacters=92]="renderControlCharacters",u[u.renderFinalNewline=93]="renderFinalNewline",u[u.renderLineHighlight=94]="renderLineHighlight",u[u.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",u[u.renderValidationDecorations=96]="renderValidationDecorations",u[u.renderWhitespace=97]="renderWhitespace",u[u.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",u[u.roundedSelection=99]="roundedSelection",u[u.rulers=100]="rulers",u[u.scrollbar=101]="scrollbar",u[u.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",u[u.scrollBeyondLastLine=103]="scrollBeyondLastLine",u[u.scrollPredominantAxis=104]="scrollPredominantAxis",u[u.selectionClipboard=105]="selectionClipboard",u[u.selectionHighlight=106]="selectionHighlight",u[u.selectOnLineNumbers=107]="selectOnLineNumbers",u[u.showFoldingControls=108]="showFoldingControls",u[u.showUnused=109]="showUnused",u[u.snippetSuggestions=110]="snippetSuggestions",u[u.smartSelect=111]="smartSelect",u[u.smoothScrolling=112]="smoothScrolling",u[u.stickyScroll=113]="stickyScroll",u[u.stickyTabStops=114]="stickyTabStops",u[u.stopRenderingLineAfter=115]="stopRenderingLineAfter",u[u.suggest=116]="suggest",u[u.suggestFontSize=117]="suggestFontSize",u[u.suggestLineHeight=118]="suggestLineHeight",u[u.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",u[u.suggestSelection=120]="suggestSelection",u[u.tabCompletion=121]="tabCompletion",u[u.tabIndex=122]="tabIndex",u[u.unicodeHighlighting=123]="unicodeHighlighting",u[u.unusualLineTerminators=124]="unusualLineTerminators",u[u.useShadowDOM=125]="useShadowDOM",u[u.useTabStops=126]="useTabStops",u[u.wordBreak=127]="wordBreak",u[u.wordSeparators=128]="wordSeparators",u[u.wordWrap=129]="wordWrap",u[u.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",u[u.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",u[u.wordWrapColumn=132]="wordWrapColumn",u[u.wordWrapOverride1=133]="wordWrapOverride1",u[u.wordWrapOverride2=134]="wordWrapOverride2",u[u.wrappingIndent=135]="wrappingIndent",u[u.wrappingStrategy=136]="wrappingStrategy",u[u.showDeprecated=137]="showDeprecated",u[u.inlayHints=138]="inlayHints",u[u.editorClassName=139]="editorClassName",u[u.pixelRatio=140]="pixelRatio",u[u.tabFocusMode=141]="tabFocusMode",u[u.layoutInfo=142]="layoutInfo",u[u.wrappingInfo=143]="wrappingInfo",u[u.defaultColorDecorators=144]="defaultColorDecorators",u[u.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn"})(nK||(nK={}));var iK;(function(u){u[u.TextDefined=0]="TextDefined",u[u.LF=1]="LF",u[u.CRLF=2]="CRLF"})(iK||(iK={}));var rK;(function(u){u[u.LF=0]="LF",u[u.CRLF=1]="CRLF"})(rK||(rK={}));var aK;(function(u){u[u.Left=1]="Left",u[u.Right=2]="Right"})(aK||(aK={}));var oK;(function(u){u[u.None=0]="None",u[u.Indent=1]="Indent",u[u.IndentOutdent=2]="IndentOutdent",u[u.Outdent=3]="Outdent"})(oK||(oK={}));var sK;(function(u){u[u.Both=0]="Both",u[u.Right=1]="Right",u[u.Left=2]="Left",u[u.None=3]="None"})(sK||(sK={}));var lK;(function(u){u[u.Type=1]="Type",u[u.Parameter=2]="Parameter"})(lK||(lK={}));var cK;(function(u){u[u.Automatic=0]="Automatic",u[u.Explicit=1]="Explicit"})(cK||(cK={}));var dK;(function(u){u[u.DependsOnKbLayout=-1]="DependsOnKbLayout",u[u.Unknown=0]="Unknown",u[u.Backspace=1]="Backspace",u[u.Tab=2]="Tab",u[u.Enter=3]="Enter",u[u.Shift=4]="Shift",u[u.Ctrl=5]="Ctrl",u[u.Alt=6]="Alt",u[u.PauseBreak=7]="PauseBreak",u[u.CapsLock=8]="CapsLock",u[u.Escape=9]="Escape",u[u.Space=10]="Space",u[u.PageUp=11]="PageUp",u[u.PageDown=12]="PageDown",u[u.End=13]="End",u[u.Home=14]="Home",u[u.LeftArrow=15]="LeftArrow",u[u.UpArrow=16]="UpArrow",u[u.RightArrow=17]="RightArrow",u[u.DownArrow=18]="DownArrow",u[u.Insert=19]="Insert",u[u.Delete=20]="Delete",u[u.Digit0=21]="Digit0",u[u.Digit1=22]="Digit1",u[u.Digit2=23]="Digit2",u[u.Digit3=24]="Digit3",u[u.Digit4=25]="Digit4",u[u.Digit5=26]="Digit5",u[u.Digit6=27]="Digit6",u[u.Digit7=28]="Digit7",u[u.Digit8=29]="Digit8",u[u.Digit9=30]="Digit9",u[u.KeyA=31]="KeyA",u[u.KeyB=32]="KeyB",u[u.KeyC=33]="KeyC",u[u.KeyD=34]="KeyD",u[u.KeyE=35]="KeyE",u[u.KeyF=36]="KeyF",u[u.KeyG=37]="KeyG",u[u.KeyH=38]="KeyH",u[u.KeyI=39]="KeyI",u[u.KeyJ=40]="KeyJ",u[u.KeyK=41]="KeyK",u[u.KeyL=42]="KeyL",u[u.KeyM=43]="KeyM",u[u.KeyN=44]="KeyN",u[u.KeyO=45]="KeyO",u[u.KeyP=46]="KeyP",u[u.KeyQ=47]="KeyQ",u[u.KeyR=48]="KeyR",u[u.KeyS=49]="KeyS",u[u.KeyT=50]="KeyT",u[u.KeyU=51]="KeyU",u[u.KeyV=52]="KeyV",u[u.KeyW=53]="KeyW",u[u.KeyX=54]="KeyX",u[u.KeyY=55]="KeyY",u[u.KeyZ=56]="KeyZ",u[u.Meta=57]="Meta",u[u.ContextMenu=58]="ContextMenu",u[u.F1=59]="F1",u[u.F2=60]="F2",u[u.F3=61]="F3",u[u.F4=62]="F4",u[u.F5=63]="F5",u[u.F6=64]="F6",u[u.F7=65]="F7",u[u.F8=66]="F8",u[u.F9=67]="F9",u[u.F10=68]="F10",u[u.F11=69]="F11",u[u.F12=70]="F12",u[u.F13=71]="F13",u[u.F14=72]="F14",u[u.F15=73]="F15",u[u.F16=74]="F16",u[u.F17=75]="F17",u[u.F18=76]="F18",u[u.F19=77]="F19",u[u.F20=78]="F20",u[u.F21=79]="F21",u[u.F22=80]="F22",u[u.F23=81]="F23",u[u.F24=82]="F24",u[u.NumLock=83]="NumLock",u[u.ScrollLock=84]="ScrollLock",u[u.Semicolon=85]="Semicolon",u[u.Equal=86]="Equal",u[u.Comma=87]="Comma",u[u.Minus=88]="Minus",u[u.Period=89]="Period",u[u.Slash=90]="Slash",u[u.Backquote=91]="Backquote",u[u.BracketLeft=92]="BracketLeft",u[u.Backslash=93]="Backslash",u[u.BracketRight=94]="BracketRight",u[u.Quote=95]="Quote",u[u.OEM_8=96]="OEM_8",u[u.IntlBackslash=97]="IntlBackslash",u[u.Numpad0=98]="Numpad0",u[u.Numpad1=99]="Numpad1",u[u.Numpad2=100]="Numpad2",u[u.Numpad3=101]="Numpad3",u[u.Numpad4=102]="Numpad4",u[u.Numpad5=103]="Numpad5",u[u.Numpad6=104]="Numpad6",u[u.Numpad7=105]="Numpad7",u[u.Numpad8=106]="Numpad8",u[u.Numpad9=107]="Numpad9",u[u.NumpadMultiply=108]="NumpadMultiply",u[u.NumpadAdd=109]="NumpadAdd",u[u.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",u[u.NumpadSubtract=111]="NumpadSubtract",u[u.NumpadDecimal=112]="NumpadDecimal",u[u.NumpadDivide=113]="NumpadDivide",u[u.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",u[u.ABNT_C1=115]="ABNT_C1",u[u.ABNT_C2=116]="ABNT_C2",u[u.AudioVolumeMute=117]="AudioVolumeMute",u[u.AudioVolumeUp=118]="AudioVolumeUp",u[u.AudioVolumeDown=119]="AudioVolumeDown",u[u.BrowserSearch=120]="BrowserSearch",u[u.BrowserHome=121]="BrowserHome",u[u.BrowserBack=122]="BrowserBack",u[u.BrowserForward=123]="BrowserForward",u[u.MediaTrackNext=124]="MediaTrackNext",u[u.MediaTrackPrevious=125]="MediaTrackPrevious",u[u.MediaStop=126]="MediaStop",u[u.MediaPlayPause=127]="MediaPlayPause",u[u.LaunchMediaPlayer=128]="LaunchMediaPlayer",u[u.LaunchMail=129]="LaunchMail",u[u.LaunchApp2=130]="LaunchApp2",u[u.Clear=131]="Clear",u[u.MAX_VALUE=132]="MAX_VALUE"})(dK||(dK={}));var hK;(function(u){u[u.Hint=1]="Hint",u[u.Info=2]="Info",u[u.Warning=4]="Warning",u[u.Error=8]="Error"})(hK||(hK={}));var EK;(function(u){u[u.Unnecessary=1]="Unnecessary",u[u.Deprecated=2]="Deprecated"})(EK||(EK={}));var gK;(function(u){u[u.Inline=1]="Inline",u[u.Gutter=2]="Gutter"})(gK||(gK={}));var mK;(function(u){u[u.UNKNOWN=0]="UNKNOWN",u[u.TEXTAREA=1]="TEXTAREA",u[u.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",u[u.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",u[u.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",u[u.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",u[u.CONTENT_TEXT=6]="CONTENT_TEXT",u[u.CONTENT_EMPTY=7]="CONTENT_EMPTY",u[u.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",u[u.CONTENT_WIDGET=9]="CONTENT_WIDGET",u[u.OVERVIEW_RULER=10]="OVERVIEW_RULER",u[u.SCROLLBAR=11]="SCROLLBAR",u[u.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",u[u.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(mK||(mK={}));var fK;(function(u){u[u.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",u[u.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",u[u.TOP_CENTER=2]="TOP_CENTER"})(fK||(fK={}));var pK;(function(u){u[u.Left=1]="Left",u[u.Center=2]="Center",u[u.Right=4]="Right",u[u.Full=7]="Full"})(pK||(pK={}));var DK;(function(u){u[u.Left=0]="Left",u[u.Right=1]="Right",u[u.None=2]="None",u[u.LeftOfInjectedText=3]="LeftOfInjectedText",u[u.RightOfInjectedText=4]="RightOfInjectedText"})(DK||(DK={}));var xK;(function(u){u[u.Off=0]="Off",u[u.On=1]="On",u[u.Relative=2]="Relative",u[u.Interval=3]="Interval",u[u.Custom=4]="Custom"})(xK||(xK={}));var vK;(function(u){u[u.None=0]="None",u[u.Text=1]="Text",u[u.Blocks=2]="Blocks"})(vK||(vK={}));var CK;(function(u){u[u.Smooth=0]="Smooth",u[u.Immediate=1]="Immediate"})(CK||(CK={}));var bK;(function(u){u[u.Auto=1]="Auto",u[u.Hidden=2]="Hidden",u[u.Visible=3]="Visible"})(bK||(bK={}));var kK;(function(u){u[u.LTR=0]="LTR",u[u.RTL=1]="RTL"})(kK||(kK={}));var yK;(function(u){u[u.Invoke=1]="Invoke",u[u.TriggerCharacter=2]="TriggerCharacter",u[u.ContentChange=3]="ContentChange"})(yK||(yK={}));var FK;(function(u){u[u.File=0]="File",u[u.Module=1]="Module",u[u.Namespace=2]="Namespace",u[u.Package=3]="Package",u[u.Class=4]="Class",u[u.Method=5]="Method",u[u.Property=6]="Property",u[u.Field=7]="Field",u[u.Constructor=8]="Constructor",u[u.Enum=9]="Enum",u[u.Interface=10]="Interface",u[u.Function=11]="Function",u[u.Variable=12]="Variable",u[u.Constant=13]="Constant",u[u.String=14]="String",u[u.Number=15]="Number",u[u.Boolean=16]="Boolean",u[u.Array=17]="Array",u[u.Object=18]="Object",u[u.Key=19]="Key",u[u.Null=20]="Null",u[u.EnumMember=21]="EnumMember",u[u.Struct=22]="Struct",u[u.Event=23]="Event",u[u.Operator=24]="Operator",u[u.TypeParameter=25]="TypeParameter"})(FK||(FK={}));var AK;(function(u){u[u.Deprecated=1]="Deprecated"})(AK||(AK={}));var _K;(function(u){u[u.Hidden=0]="Hidden",u[u.Blink=1]="Blink",u[u.Smooth=2]="Smooth",u[u.Phase=3]="Phase",u[u.Expand=4]="Expand",u[u.Solid=5]="Solid"})(_K||(_K={}));var SK;(function(u){u[u.Line=1]="Line",u[u.Block=2]="Block",u[u.Underline=3]="Underline",u[u.LineThin=4]="LineThin",u[u.BlockOutline=5]="BlockOutline",u[u.UnderlineThin=6]="UnderlineThin"})(SK||(SK={}));var BK;(function(u){u[u.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",u[u.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",u[u.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",u[u.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(BK||(BK={}));var wK;(function(u){u[u.None=0]="None",u[u.Same=1]="Same",u[u.Indent=2]="Indent",u[u.DeepIndent=3]="DeepIndent"})(wK||(wK={}));let zF=class{static chord(e,t){return Ri(e,t)}};zF.CtrlCmd=2048;zF.Shift=1024;zF.Alt=512;zF.WinCtrl=256;function Q5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:nr,Emitter:ee,KeyCode:dK,KeyMod:zF,Position:ue,Range:O,Selection:Ze,SelectionDirection:kK,MarkerSeverity:hK,MarkerTag:EK,Uri:lt,Token:Ok}}class wqe{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class lre{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}class nm{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var X5e;function eve(u){return!u||typeof u!="string"?!0:u.trim().length===0}const zqe=/{(\d+)}/g;function m3(u,...e){return e.length===0?u:u.replace(zqe,function(t,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=e.length?t:e[i]})}function O8(u){return u.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Vs(u){return u.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Lqe(u,e=" "){const t=LF(u,e);return tve(t,e)}function LF(u,e){if(!u||!e)return u;const t=e.length;if(t===0||u.length===0)return u;let n=0;for(;u.indexOf(e,n)===n;)n=n+t;return u.substring(n)}function tve(u,e){if(!u||!e)return u;const t=e.length,n=u.length;if(t===0||n===0)return u;let i=n,r=-1;for(;r=u.lastIndexOf(e,i-1),!(r===-1||r+t!==i);){if(r===0)return"";i=r}return u.substring(0,i)}function Mqe(u){return u.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Tqe(u){return u.replace(/\*/g,"")}function uve(u,e,t={}){if(!u)throw new Error("Cannot create regex from empty string");e||(u=Vs(u)),t.wholeWord&&(/\B/.test(u.charAt(0))||(u="\\b"+u),/\B/.test(u.charAt(u.length-1))||(u=u+"\\b"));let n="";return t.global&&(n+="g"),t.matchCase||(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),new RegExp(u,n)}function Pqe(u){return u.source==="^"||u.source==="^$"||u.source==="$"||u.source==="^\\s*$"?!1:!!(u.exec("")&&u.lastIndex===0)}function dS(u){return(u.global?"g":"")+(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")}function E1(u){return u.split(/\r\n|\r|\n/)}function _a(u){for(let e=0,t=u.length;e=0;t--){const n=u.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function Hk(u,e){return ue?1:0}function UY(u,e,t=0,n=u.length,i=0,r=e.length){for(;tl)return 1}const a=n-t,o=r-i;return ao?1:0}function zK(u,e){return MF(u,e,0,u.length,0,e.length)}function MF(u,e,t=0,n=u.length,i=0,r=e.length){for(;t=128||l>=128)return UY(u.toLowerCase(),e.toLowerCase(),t,n,i,r);mE(s)&&(s-=32),mE(l)&&(l-=32);const c=s-l;if(c!==0)return c}const a=n-t,o=r-i;return ao?1:0}function x_(u){return u>=48&&u<=57}function mE(u){return u>=97&&u<=122}function Fd(u){return u>=65&&u<=90}function JD(u,e){return u.length===e.length&&MF(u,e)===0}function qY(u,e){const t=e.length;return e.length>u.length?!1:MF(u,e,0,t)===0}function f3(u,e){const t=Math.min(u.length,e.length);let n;for(n=0;n1){const n=u.charCodeAt(e-2);if(Qi(n))return JY(n,t)}return t}class ZY{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=Nqe(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=V8(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H8{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new ZY(e,t)}nextGraphemeLength(){const e=fE.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const r=t.offset,a=e.getGraphemeBreakType(t.nextCodePoint());if(cre(i,a)){t.setOffset(r);break}i=a}return t.offset-n}prevGraphemeLength(){const e=fE.getInstance(),t=this._iterator,n=t.offset;let i=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const r=t.offset,a=e.getGraphemeBreakType(t.prevCodePoint());if(cre(a,i)){t.setOffset(r);break}i=a}return n-t.offset}eol(){return this._iterator.eol()}}function YY(u,e){return new H8(u,e).nextGraphemeLength()}function nve(u,e){return new H8(u,e).prevGraphemeLength()}function Rqe(u,e){e>0&&p3(u.charCodeAt(e))&&e--;const t=e+YY(u,e);return[t-nve(u,t),t]}let fO;function Iqe(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function B5(u){return fO||(fO=Iqe()),fO.test(u)}const Oqe=/^[\t\n\r\x20-\x7E]*$/;function TF(u){return Oqe.test(u)}const ive=/[\u2028\u2029]/;function rve(u){return ive.test(u)}function yg(u){return u>=11904&&u<=55215||u>=63744&&u<=64255||u>=65281&&u<=65374}function QY(u){return u>=127462&&u<=127487||u===8986||u===8987||u===9200||u===9203||u>=9728&&u<=10175||u===11088||u===11093||u>=127744&&u<=128591||u>=128640&&u<=128764||u>=128992&&u<=129008||u>=129280&&u<=129535||u>=129648&&u<=129782}const jqe=String.fromCharCode(65279);function XY(u){return!!(u&&u.length>0&&u.charCodeAt(0)===65279)}function Vqe(u,e=!1){return u?(e&&(u=u.replace(/\\./g,"")),u.toLowerCase()!==u):!1}function ave(u){return u=u%(2*26),u<26?String.fromCharCode(97+u):String.fromCharCode(65+u-26)}function cre(u,e){return u===0?e!==5&&e!==7:u===2&&e===3?!1:u===4||u===2||u===3||e===4||e===2||e===3?!0:!(u===8&&(e===8||e===9||e===11||e===12)||(u===11||u===9)&&(e===9||e===10)||(u===12||u===10)&&e===10||e===5||e===13||e===7||u===1||u===13&&e===14||u===6&&e===6)}class fE{static getInstance(){return fE._INSTANCE||(fE._INSTANCE=new fE),fE._INSTANCE}constructor(){this._data=Hqe()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(et[3*i+1])i=2*i+1;else return t[3*i+2];return 0}}fE._INSTANCE=null;function Hqe(){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]")}function $qe(u,e){if(u===0)return 0;const t=Kqe(u,e);if(t!==void 0)return t;const n=new ZY(e,u);return n.prevCodePoint(),n.offset}function Kqe(u,e){const t=new ZY(e,u);let n=t.prevCodePoint();for(;Wqe(n)||n===65039||n===8419;){if(t.offset===0)return;n=t.prevCodePoint()}if(!QY(n))return;let i=t.offset;return i>0&&t.prevCodePoint()===8205&&(i=t.offset),i}function Wqe(u){return 127995<=u&&u<=127999}const ove=" ";class _l{static getInstance(e){return _l.cache.get(Array.from(e))}static getLocales(){return _l._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}X5e=_l;_l.ambiguousCharacterData=new nm(()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}'));_l.cache=new wqe(u=>{function e(l){const c=new Map;for(let d=0;d!l.startsWith("_")&&l in i);r.length===0&&(r=["_default"]);let a;for(const l of r){const c=e(i[l]);a=n(a,c)}const o=e(i._common),s=t(o,a);return new _l(s)});_l._locales=new nm(()=>Object.keys(_l.ambiguousCharacterData.value).filter(u=>!u.startsWith("_")));class t1{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static getData(){return this._data||(this._data=new Set(t1.getRawData())),this._data}static isInvisibleCharacter(e){return t1.getData().has(e)}static get codePoints(){return t1.getData()}}t1._data=void 0;class LK{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}LK.INSTANCE=new LK;class Gqe extends ie{constructor(){super(),this._onDidChange=this._register(new ee),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class Uqe extends ie{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new ee),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new Gqe);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}class qqe{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new Uqe),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function sve(u,e){typeof u=="string"&&(u=window.matchMedia(u)),u.addEventListener("change",e)}const $k=new qqe;function Jqe(){return LK.INSTANCE.getZoomFactor()}const Wv=navigator.userAgent,F0=Wv.indexOf("Firefox")>=0,Vf=Wv.indexOf("AppleWebKit")>=0,eQ=Wv.indexOf("Chrome")>=0,Zh=!eQ&&Wv.indexOf("Safari")>=0,lve=!eQ&&!Zh&&Vf;Wv.indexOf("Electron/")>=0;const dre=Wv.indexOf("Android")>=0;let hS=!1;if(window.matchMedia){const u=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");hS=u.matches,sve(u,({matches:t})=>{hS&&e.matches||(hS=t)})}function Zqe(){return hS}class cve{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=ql(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=ql(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=ql(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=ql(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=ql(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=ql(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=ql(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=ql(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=ql(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=ql(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=ql(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function ql(u){return typeof u=="number"?`${u}px`:u}function cu(u){return new cve(u)}function tr(u,e){u instanceof cve?(u.setFontFamily(e.getMassagedFontFamily()),u.setFontWeight(e.fontWeight),u.setFontSize(e.fontSize),u.setFontFeatureSettings(e.fontFeatureSettings),u.setFontVariationSettings(e.fontVariationSettings),u.setLineHeight(e.lineHeight),u.setLetterSpacing(e.letterSpacing)):(u.style.fontFamily=e.getMassagedFontFamily(),u.style.fontWeight=e.fontWeight,u.style.fontSize=e.fontSize+"px",u.style.fontFeatureSettings=e.fontFeatureSettings,u.style.fontVariationSettings=e.fontVariationSettings,u.style.lineHeight=e.lineHeight+"px",u.style.letterSpacing=e.letterSpacing+"px")}class Yqe{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class tQ{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");tr(t,this._bareFontInfo),e.appendChild(t);const n=document.createElement("div");tr(n,this._bareFontInfo),n.style.fontWeight="bold",e.appendChild(n);const i=document.createElement("div");tr(i,this._bareFontInfo),i.style.fontStyle="italic",e.appendChild(i);const r=[];for(const a of this._requests){let o;a.type===0&&(o=t),a.type===2&&(o=n),a.type===1&&(o=i),o.appendChild(document.createElement("br"));const s=document.createElement("span");tQ._render(s,a),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(t.chr===" "){let n=" ";for(let i=0;i<8;i++)n+=n;e.innerText=n}else{let n=t.chr;for(let i=0;i<8;i++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const n of e)n.isTrusted||(t=!0,this._cache.remove(n));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new MK({pixelRatio:$k.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,n,i){const r=new Yqe(e,t);return n.push(r),i==null||i.push(r),r}_actualReadFontInfo(e){const t=[],n=[],i=this._createRequest("n",0,t,n),r=this._createRequest("m",0,t,null),a=this._createRequest(" ",0,t,n),o=this._createRequest("0",0,t,n),s=this._createRequest("1",0,t,n),l=this._createRequest("2",0,t,n),c=this._createRequest("3",0,t,n),d=this._createRequest("4",0,t,n),h=this._createRequest("5",0,t,n),E=this._createRequest("6",0,t,n),g=this._createRequest("7",0,t,n),m=this._createRequest("8",0,t,n),f=this._createRequest("9",0,t,n),p=this._createRequest("→",0,t,n),D=this._createRequest("→",0,t,null),x=this._createRequest("·",0,t,n),b=this._createRequest(String.fromCharCode(11825),0,t,null),k="|/-_ilm%";for(let L=0,T=k.length;L.001){y=!1;break}}let B=!0;return y&&D.width!==S&&(B=!1),D.width>p.width&&(B=!1),new MK({pixelRatio:$k.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:B,spaceWidth:a.width,middotWidth:x.width,wsmiddotWidth:b.width,maxDigitWidth:_},!0)}}class hre{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const n=e.getId();this._keys[n]=e,this._values[n]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const TK=new tJe;var bc;(function(u){u.serviceIds=new Map,u.DI_TARGET="$di$target",u.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[u.DI_DEPENDENCIES]||[]}u.getServiceDependencies=e})(bc||(bc={}));const mt=Gt("instantiationService");function uJe(u,e,t){e[bc.DI_TARGET]===e?e[bc.DI_DEPENDENCIES].push({id:u,index:t}):(e[bc.DI_DEPENDENCIES]=[{id:u,index:t}],e[bc.DI_TARGET]=e)}function Gt(u){if(bc.serviceIds.has(u))return bc.serviceIds.get(u);const e=function(t,n,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");uJe(e,t,i)};return e.toString=()=>u,bc.serviceIds.set(u,e),e}const hu=Gt("codeEditorService");function Lb(u,e){if(!u)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function aP(u,e="Unreachable"){throw new Error(e)}function Kk(u){if(!u()){debugger;u(),wt(new gr("Assertion Failed"))}}function dve(u,e){let t=0;for(;t\-\./\\:\*\?\+\[\]\^,#@;"%\$\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 OY(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const t=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:t})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const t=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:t})}else this._match(126)?this._addToken(9):this._error(DO("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(DO("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(DO("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,n=this._input.substring(this._start,this._current),i={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(i)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),n=PK._keywords.get(t);n?this._addToken(n):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(iJe);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,n=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(rJe);return}const r=this._input.charCodeAt(e);if(t)t=!1;else if(r===47&&!n){e++;break}else r===91?n=!0:r===92?t=!0:r===93&&(n=!1);e++}for(;e=this._input.length}};af._regexFlags=new Set(["i","g","s","m","y","u"].map(u=>u.charCodeAt(0)));af._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Ea=new Map;Ea.set("false",!1);Ea.set("true",!0);Ea.set("isMac",Yt);Ea.set("isLinux",za);Ea.set("isWindows",Yr);Ea.set("isWeb",em);Ea.set("isMacNative",Yt&&!em);Ea.set("isEdge",eUe);Ea.set("isFirefox",QGe);Ea.set("isChrome",z5e);Ea.set("isSafari",XGe);const aJe=Object.prototype.hasOwnProperty,oJe={regexParsingWithErrorRecovery:!0},sJe=v("contextkey.parser.error.emptyString","Empty context key expression"),lJe=v("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),cJe=v("contextkey.parser.error.noInAfterNot","'in' after 'not'."),Ere=v("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),dJe=v("contextkey.parser.error.unexpectedToken","Unexpected token"),hJe=v("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),EJe=v("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),gJe=v("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let hve=class G6{constructor(e=oJe){this._config=e,this._scanner=new af,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:sJe,offset:0,lexeme:"",additionalInfo:lJe});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const n=this._peek(),i=n.type===17?hJe:void 0;throw this._parsingErrors.push({message:dJe,offset:n.offset,lexeme:af.getLexeme(n),additionalInfo:i}),G6._parseError}return t}catch(t){if(t!==G6._parseError)throw t;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return e.length===1?e[0]:pe.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:pe.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),ro.INSTANCE;case 12:return this._advance(),Mo.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,Ere),t==null?void 0:t.negate()}case 17:return this._advance(),fp.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),pe.true();case 12:return this._advance(),pe.false();case 0:{this._advance();const t=this._expr();return this._consume(1,Ere),t}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const i=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),i.type!==10)throw this._errExpectedButGot("REGEX",i);const r=i.lexeme,a=r.lastIndexOf("/"),o=a===r.length-1?void 0:this._removeFlagsGY(r.substring(a+1));let s;try{s=new RegExp(r.substring(1,a),o)}catch{throw this._errExpectedButGot("REGEX",i)}return Wk.create(t,s)}switch(i.type){case 10:case 19:{const r=[i.lexeme];this._advance();let a=this._peek(),o=0;for(let h=0;h=0){const l=r.slice(o+1,s),c=r[s+1]==="i"?"i":"";try{a=new RegExp(l,c)}catch{throw this._errExpectedButGot("REGEX",i)}}}if(a===null)throw this._errExpectedButGot("REGEX",i);return Wk.create(t,a)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,cJe);const i=this._value();return pe.notIn(t,i)}switch(this._peek().type){case 3:{this._advance();const i=this._value();if(this._previous().type===18)return pe.equals(t,i);switch(i){case"true":return pe.has(t);case"false":return pe.not(t);default:return pe.equals(t,i)}}case 4:{this._advance();const i=this._value();if(this._previous().type===18)return pe.notEquals(t,i);switch(i){case"true":return pe.not(t);case"false":return pe.has(t);default:return pe.notEquals(t,i)}}case 5:return this._advance(),EP.create(t,this._value());case 6:return this._advance(),gP.create(t,this._value());case 7:return this._advance(),dP.create(t,this._value());case 8:return this._advance(),hP.create(t,this._value());case 13:return this._advance(),pe.in(t,this._value());default:return pe.has(t)}}case 20:throw this._parsingErrors.push({message:EJe,offset:e.offset,lexeme:"",additionalInfo:gJe}),G6._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,n){const i=v("contextkey.parser.error.expectedButGot",`Expected: {0} -Received: '{1}'.`,e,rf.getLexeme(t)),r=t.offset,a=rf.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:a,additionalInfo:n}),G6._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};Eve._parseError=new Error;class pe{static false(){return ro.INSTANCE}static true(){return Mo.INSTANCE}static has(e){return gp.create(e)}static equals(e,t){return PF.create(e,t)}static notEquals(e,t){return sP.create(e,t)}static regex(e,t){return Wk.create(e,t)}static in(e,t){return aP.create(e,t)}static notIn(e,t){return oP.create(e,t)}static not(e){return mp.create(e)}static and(...e){return Cf.create(e,null,!0)}static or(...e){return vh.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}pe._parser=new Eve({regexParsingWithErrorRecovery:!1});function mJe(u,e){const t=u?u.substituteConstants():void 0,n=e?e.substituteConstants():void 0;return!t&&!n?!0:!t||!n?!1:t.equals(n)}function Mb(u,e){return u.cmp(e)}class ro{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[]}negate(){return Mo.INSTANCE}}ro.INSTANCE=new ro;class Mo{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[]}negate(){return ro.INSTANCE}}Mo.INSTANCE=new Mo;class gp{static create(e,t=null){const n=Ea.get(e);return typeof n=="boolean"?n?Mo.INSTANCE:ro.INSTANCE:new gp(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:mve(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Ea.get(this.key);return typeof e=="boolean"?e?Mo.INSTANCE:ro.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=mp.create(this.key,this)),this.negated}}class PF{static create(e,t,n=null){if(typeof t=="boolean")return t?gp.create(e,n):mp.create(e,n);const i=Ea.get(e);return typeof i=="boolean"?t===(i?"true":"false")?Mo.INSTANCE:ro.INSTANCE:new PF(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:fp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Ea.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Mo.INSTANCE:ro.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sP.create(this.key,this.value,this)),this.negated}}class aP{static create(e,t){return new aP(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:fp(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):typeof n=="string"&&typeof t=="object"&&t!==null?aJe.call(t,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=oP.create(this.key,this.valueKey)),this.negated}}class oP{static create(e,t){return new oP(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=aP.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class sP{static create(e,t,n=null){if(typeof t=="boolean")return t?mp.create(e,n):gp.create(e,n);const i=Ea.get(e);return typeof i=="boolean"?t===(i?"true":"false")?ro.INSTANCE:Mo.INSTANCE:new sP(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:fp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Ea.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?ro.INSTANCE:Mo.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=PF.create(this.key,this.value,this)),this.negated}}class mp{static create(e,t=null){const n=Ea.get(e);return typeof n=="boolean"?n?ro.INSTANCE:Mo.INSTANCE:new mp(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:mve(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Ea.get(this.key);return typeof e=="boolean"?e?ro.INSTANCE:Mo.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=gp.create(this.key,this)),this.negated}}function lP(u,e){if(typeof u=="string"){const t=parseFloat(u);isNaN(t)||(u=t)}return typeof u=="string"||typeof u=="number"?e(u):ro.INSTANCE}class cP{static create(e,t,n=null){return lP(t,i=>new cP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:fp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=EP.create(this.key,this.value,this)),this.negated}}class dP{static create(e,t,n=null){return lP(t,i=>new dP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:fp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=hP.create(this.key,this.value,this)),this.negated}}class hP{static create(e,t,n=null){return lP(t,i=>new hP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:fp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new EP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:fp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=cP.create(this.key,this.value,this)),this.negated}}class Wk{static create(e,t){return new Wk(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return tn?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=tQ.create(this)),this.negated}}class tQ{static create(e){return new tQ(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function gve(u){let e=null;for(let t=0,n=u.length;te.expr.length)return 1;for(let t=0,n=this.expr.length;t1;){const a=i[i.length-1];if(a.type!==9)break;i.pop();const o=i.pop(),s=i.length===0,l=vh.create(a.expr.map(c=>Cf.create([c,o],null,n)),null,s);l&&(i.push(l),i.sort(Mb))}if(i.length===1)return i[0];if(n){for(let a=0;ae.serialize()).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=vh.create(e,this,!0)}return this.negated}}class vh{static create(e,t,n){return vh._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,n=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const r of gre(t))for(const a of gre(n))i.push(Cf.create([r,a],null,!1));e.unshift(vh.create(i,null,!1))}this.negated=vh.create(e,this,!0)}return this.negated}}class Ne extends gp{static all(){return Ne._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,typeof n=="object"?Ne._info.push(Object.assign(Object.assign({},n),{key:e})):n!==!0&&Ne._info.push({key:e,description:n,type:t!=null?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return PF.create(this.key,e)}}Ne._info=[];const Et=Gt("contextKeyService");function mve(u,e){return ue?1:0}function fp(u,e,t,n){return ut?1:en?1:0}function TK(u,e){if(u.type===0||e.type===1)return!0;if(u.type===9)return e.type===9?Ere(u.expr,e.expr):!1;if(e.type===9){for(const t of e.expr)if(TK(u,t))return!0;return!1}if(u.type===6){if(e.type===6)return Ere(e.expr,u.expr);for(const t of u.expr)if(TK(t,e))return!0;return!1}return u.equals(e)}function Ere(u,e){let t=0,n=0;for(;t=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},pO=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const pJe={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0,findResultLoop:!0};let $8=class extends ie{constructor(e,t={},n,i,r){super(),this._audioCueService=n,this._codeEditorService=i,this._accessibilityService=r,this._onDidUpdate=this._register(new ee),this._editor=e,this._options=BF(t,pJe,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=!!this._options.alwaysRevealFirst,this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(a=>{this.ignoreSelectionChange||(this._updateAccessibilityState(a.position.lineNumber),this.nextIdx=-1)})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(t=>{!this._options.ignoreCharChanges&&t.charChanges?t.charChanges.forEach(n=>{this.ranges.push({rhs:!0,range:new O(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn)})}):t.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new O(t.modifiedStartLineNumber,1,t.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new O(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber+1,1)})}),this.ranges.sort((t,n)=>O.compareRangesUsingStarts(t.range,n.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1;const n=this._editor.getPosition();if(!n){this.nextIdx=0;return}for(let i=0,r=this.ranges.length;i=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealRangeInCenter(n.range,t),this._updateAccessibilityState(i.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,t){var n;const i=(n=this._editor.getModel())===null||n===void 0?void 0:n.modified;if(!i)return;const r=i.getLineDecorations(e).find(o=>o.options.className==="line-insert");if(r)this._audioCueService.playAudioCue(Wt.diffLineModified,!0);else if(t)this._audioCueService.playAudioCue(Wt.diffLineDeleted,!0);else return;const a=this._codeEditorService.getActiveCodeEditor();t&&a&&r&&this._accessibilityService.isScreenReaderOptimized()&&(a.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),a.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx0&&u.getLanguageId(a-1)===i;)a--;return new kJe(u,i,a,r+1,u.getStartOffset(a),u.getEndOffset(r))}class kJe{constructor(e,t,n,i,r,a){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=a}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function md(u){return(u&3)!==0}class w5{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new xO(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new xO({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new xO({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:w5.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:w5.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}w5.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> +Received: '{1}'.`,e,af.getLexeme(t)),r=t.offset,a=af.getLexeme(t);return this._parsingErrors.push({message:i,offset:r,lexeme:a,additionalInfo:n}),G6._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};hve._parseError=new Error;class pe{static false(){return ro.INSTANCE}static true(){return Mo.INSTANCE}static has(e){return mp.create(e)}static equals(e,t){return PF.create(e,t)}static notEquals(e,t){return lP.create(e,t)}static regex(e,t){return Wk.create(e,t)}static in(e,t){return oP.create(e,t)}static notIn(e,t){return sP.create(e,t)}static not(e){return fp.create(e)}static and(...e){return bf.create(e,null,!0)}static or(...e){return vh.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}pe._parser=new hve({regexParsingWithErrorRecovery:!1});function mJe(u,e){const t=u?u.substituteConstants():void 0,n=e?e.substituteConstants():void 0;return!t&&!n?!0:!t||!n?!1:t.equals(n)}function Mb(u,e){return u.cmp(e)}class ro{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[]}negate(){return Mo.INSTANCE}}ro.INSTANCE=new ro;class Mo{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[]}negate(){return ro.INSTANCE}}Mo.INSTANCE=new Mo;class mp{static create(e,t=null){const n=Ea.get(e);return typeof n=="boolean"?n?Mo.INSTANCE:ro.INSTANCE:new mp(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:gve(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Ea.get(this.key);return typeof e=="boolean"?e?Mo.INSTANCE:ro.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=fp.create(this.key,this)),this.negated}}class PF{static create(e,t,n=null){if(typeof t=="boolean")return t?mp.create(e,n):fp.create(e,n);const i=Ea.get(e);return typeof i=="boolean"?t===(i?"true":"false")?Mo.INSTANCE:ro.INSTANCE:new PF(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:pp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Ea.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Mo.INSTANCE:ro.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=lP.create(this.key,this.value,this)),this.negated}}class oP{static create(e,t){return new oP(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:pp(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):typeof n=="string"&&typeof t=="object"&&t!==null?aJe.call(t,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=sP.create(this.key,this.valueKey)),this.negated}}class sP{static create(e,t){return new sP(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=oP.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class lP{static create(e,t,n=null){if(typeof t=="boolean")return t?fp.create(e,n):mp.create(e,n);const i=Ea.get(e);return typeof i=="boolean"?t===(i?"true":"false")?ro.INSTANCE:Mo.INSTANCE:new lP(e,t,n)}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:pp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Ea.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?ro.INSTANCE:Mo.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=PF.create(this.key,this.value,this)),this.negated}}class fp{static create(e,t=null){const n=Ea.get(e);return typeof n=="boolean"?n?ro.INSTANCE:Mo.INSTANCE:new fp(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:gve(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Ea.get(this.key);return typeof e=="boolean"?e?ro.INSTANCE:Mo.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=mp.create(this.key,this)),this.negated}}function cP(u,e){if(typeof u=="string"){const t=parseFloat(u);isNaN(t)||(u=t)}return typeof u=="string"||typeof u=="number"?e(u):ro.INSTANCE}class dP{static create(e,t,n=null){return cP(t,i=>new dP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:pp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=gP.create(this.key,this.value,this)),this.negated}}class hP{static create(e,t,n=null){return cP(t,i=>new hP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:pp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=EP.create(this.key,this.value,this)),this.negated}}class EP{static create(e,t,n=null){return cP(t,i=>new EP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:pp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new gP(e,i,n))}constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:pp(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=dP.create(this.key,this.value,this)),this.negated}}class Wk{static create(e,t){return new Wk(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return tn?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=uQ.create(this)),this.negated}}class uQ{static create(e){return new uQ(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function Eve(u){let e=null;for(let t=0,n=u.length;te.expr.length)return 1;for(let t=0,n=this.expr.length;t1;){const a=i[i.length-1];if(a.type!==9)break;i.pop();const o=i.pop(),s=i.length===0,l=vh.create(a.expr.map(c=>bf.create([c,o],null,n)),null,s);l&&(i.push(l),i.sort(Mb))}if(i.length===1)return i[0];if(n){for(let a=0;ae.serialize()).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=vh.create(e,this,!0)}return this.negated}}class vh{static create(e,t,n){return vh._normalizeArr(e,t,n)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,n=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const r of mre(t))for(const a of mre(n))i.push(bf.create([r,a],null,!1));e.unshift(vh.create(i,null,!1))}this.negated=vh.create(e,this,!0)}return this.negated}}class Ne extends mp{static all(){return Ne._info.values()}constructor(e,t,n){super(e,null),this._defaultValue=t,typeof n=="object"?Ne._info.push(Object.assign(Object.assign({},n),{key:e})):n!==!0&&Ne._info.push({key:e,description:n,type:t!=null?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return PF.create(this.key,e)}}Ne._info=[];const Et=Gt("contextKeyService");function gve(u,e){return ue?1:0}function pp(u,e,t,n){return ut?1:en?1:0}function NK(u,e){if(u.type===0||e.type===1)return!0;if(u.type===9)return e.type===9?gre(u.expr,e.expr):!1;if(e.type===9){for(const t of e.expr)if(NK(u,t))return!0;return!1}if(u.type===6){if(e.type===6)return gre(e.expr,u.expr);for(const t of u.expr)if(NK(t,e))return!0;return!1}return u.equals(e)}function gre(u,e){let t=0,n=0;for(;t=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},xO=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const pJe={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0,findResultLoop:!0};let $8=class extends ie{constructor(e,t={},n,i,r){super(),this._audioCueService=n,this._codeEditorService=i,this._accessibilityService=r,this._onDidUpdate=this._register(new ee),this._editor=e,this._options=BF(t,pJe,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=!!this._options.alwaysRevealFirst,this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(a=>{this.ignoreSelectionChange||(this._updateAccessibilityState(a.position.lineNumber),this.nextIdx=-1)})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(t=>{!this._options.ignoreCharChanges&&t.charChanges?t.charChanges.forEach(n=>{this.ranges.push({rhs:!0,range:new O(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn)})}):t.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new O(t.modifiedStartLineNumber,1,t.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new O(t.modifiedStartLineNumber,1,t.modifiedEndLineNumber+1,1)})}),this.ranges.sort((t,n)=>O.compareRangesUsingStarts(t.range,n.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1;const n=this._editor.getPosition();if(!n){this.nextIdx=0;return}for(let i=0,r=this.ranges.length;i=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealRangeInCenter(n.range,t),this._updateAccessibilityState(i.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,t){var n;const i=(n=this._editor.getModel())===null||n===void 0?void 0:n.modified;if(!i)return;const r=i.getLineDecorations(e).find(o=>o.options.className==="line-insert");if(r)this._audioCueService.playAudioCue(Wt.diffLineModified,!0);else if(t)this._audioCueService.playAudioCue(Wt.diffLineDeleted,!0);else return;const a=this._codeEditorService.getActiveCodeEditor();t&&a&&r&&this._accessibilityService.isScreenReaderOptimized()&&(a.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),a.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx0&&u.getLanguageId(a-1)===i;)a--;return new kJe(u,i,a,r+1,u.getStartOffset(a),u.getEndOffset(r))}class kJe{constructor(e,t,n,i,r,a){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=a}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function md(u){return(u&3)!==0}class w5{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new CO(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new CO({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new CO({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:w5.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:w5.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}w5.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> `;w5.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> - `;const mre=typeof Buffer<"u";let vO;class mP{static wrap(e){return mre&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new mP(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return mre?this.buffer.toString():(vO||(vO=new TextDecoder),vO.decode(this.buffer))}}function yJe(u,e){return u[e+0]<<0>>>0|u[e+1]<<8>>>0}function FJe(u,e,t){u[t+0]=e&255,e=e>>>8,u[t+1]=e&255}function tc(u,e){return u[e]*Math.pow(2,24)+u[e+1]*Math.pow(2,16)+u[e+2]*Math.pow(2,8)+u[e+3]}function uc(u,e,t){u[t+3]=e,e=e>>>8,u[t+2]=e,e=e>>>8,u[t+1]=e,e=e>>>8,u[t]=e}function fre(u,e){return u[e]}function pre(u,e,t){u[t]=e}let CO;function fve(){return CO||(CO=new TextDecoder("UTF-16LE")),CO}let bO;function AJe(){return bO||(bO=new TextDecoder("UTF-16BE")),bO}let kO;function pve(){return kO||(kO=z5e()?fve():AJe()),kO}function _Je(u,e,t){const n=new Uint16Array(u.buffer,e,t);return t>0&&(n[0]===65279||n[0]===65534)?SJe(u,e,t):fve().decode(n)}function SJe(u,e,t){const n=[];let i=0;for(let r=0;r=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let n=0;n[a[0].toLowerCase(),a[1].toLowerCase()]);const t=[];for(let a=0;a{const[s,l]=a,[c,d]=o;return s===c||s===d||l===c||l===d},i=(a,o)=>{const s=Math.min(a,o),l=Math.max(a,o);for(let c=0;c0&&r.push({open:o,close:s})}return r}class wJe{constructor(e,t){this._richEditBracketsBrand=void 0;const n=BJe(t);this.brackets=n.map((i,r)=>new K8(e,r,i.open,i.close,zJe(i.open,i.close,n,r),LJe(i.open,i.close,n,r))),this.forwardRegex=MJe(this.brackets),this.reversedRegex=TJe(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const r of i.open)this.textIsBracket[r]=i,this.textIsOpenBracket[r]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,r.length);for(const r of i.close)this.textIsBracket[r]=i,this.textIsOpenBracket[r]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,r.length)}}}function Dve(u,e,t,n){for(let i=0,r=e.length;i=0&&n.push(o);for(const o of a.close)o.indexOf(u)>=0&&n.push(o)}}function xve(u,e){return u.length-e.length}function fP(u){if(u.length<=1)return u;const e=[],t=new Set;for(const n of u)t.has(n)||(e.push(n),t.add(n));return e}function zJe(u,e,t,n){let i=[];i=i.concat(u),i=i.concat(e);for(let r=0,a=i.length;r=0;a--)i[r++]=n.charCodeAt(a);return pve().decode(i)}let e=null,t=null;return function(i){return e!==i&&(e=i,t=u(e)),t}}();class U0{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const a=n.length-(r.index||0),o=r[0].length,s=i+a;return new O(t,s-o+1,t,s+1)}static findPrevBracketInRange(e,t,n,i,r){const o=uQ(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,o,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const a=r.index||0,o=r[0].length;if(o===0)return null;const s=i+a;return new O(t,s+1,t,s+1+o)}static findNextBracketInRange(e,t,n,i,r){const a=n.substring(i,r);return this.findNextBracketInText(e,t,a,i)}}class NJe{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const i=n.charAt(n.length-1);e.push(i)}return vg(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const i=t.findTokenIndexAtOffset(n-1);if(md(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,a=t.getLineContent().substring(0,n-1)+e,o=U0.findPrevBracketInRange(r,1,a,0,a.length);if(!o)return null;const s=a.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[s])return null;const c=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:s}:null}}function v_(u){return u.global&&(u.lastIndex=0),!0}class RJe{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&v_(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&v_(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&v_(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&v_(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class JD{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const n=JD._createOpenBracketRegExp(t[0]),i=JD._createCloseBracketRegExp(t[1]);n&&i&&this._brackets.push({open:t[0],openRegExp:n,close:t[1],closeRegExp:i})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,a=this._regExpRules.length;rl.reg?(l.reg.lastIndex=0,l.reg.test(l.text)):!0))return o.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,a=this._brackets.length;r=2&&n.length>0){for(let r=0,a=this._brackets.length;r"u"?t:r}function OJe(u){return u.replace(/[\[\]]/g,"")}const Dn=Gt("languageService");class Ad{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const bve=[];function iu(u,e,t){e instanceof Ad||(e=new Ad(e,[],!!t)),bve.push([u,e])}function xre(){return bve}class jJe{constructor(){this.data=new Map}add(e,t){Lb(no(e)),Lb(Qa(t)),Lb(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const Xn=new jJe,Ti=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),DP={JSONContribution:"base.contributions.json"};function VJe(u){return u.length>0&&u.charAt(u.length-1)==="#"?u.substring(0,u.length-1):u}class HJe{constructor(){this._onDidChangeSchema=new ee,this.schemasById={}}registerSchema(e,t){this.schemasById[VJe(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const $Je=new HJe;Xn.add(DP.JSONContribution,$Je);const E4={Configuration:"base.contributions.configuration"},VC="vscode://schemas/settings/resourceLanguage",vre=Xn.as(DP.JSONContribution);class KJe{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new ee,this._onDidUpdateConfiguration=new ee,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:v("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},vre.registerSchema(VC,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=new Set;this.doRegisterConfigurations(e,t,n),vre.registerSchema(VC,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var n;const i=[];for(const{overrides:r,source:a}of e)for(const o in r)if(t.add(o),yg.test(o)){const s=this.configurationDefaultsOverrides.get(o),l=(n=s==null?void 0:s.valuesSources)!==null&&n!==void 0?n:new Map;if(a)for(const E of Object.keys(r[o]))l.set(E,a);const c=Object.assign(Object.assign({},(s==null?void 0:s.value)||{}),r[o]);this.configurationDefaultsOverrides.set(o,{source:a,value:c,valuesSources:l});const d=OJe(o),h={type:"object",default:c,description:v("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",d),$ref:VC,defaultDefaultValue:c,source:no(a)?void 0:a,defaultValueSource:a};i.push(...W8(o)),this.configurationProperties[o]=h,this.defaultLanguageConfigurationOverridesNode.properties[o]=h}else{this.configurationDefaultsOverrides.set(o,{value:r[o],source:a});const s=this.configurationProperties[o];s&&(this.updatePropertyDefaultValue(o,s),this.updateSchema(o,s))}this.doRegisterOverrideIdentifiers(i)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,n){e.forEach(i=>{this.validateAndRegisterProperties(i,t,i.extensionInfo,i.restrictedProperties,void 0,n),this.configurationContributors.push(i),this.registerJSONConfiguration(i)})}validateAndRegisterProperties(e,t=!0,n,i,r=3,a){var o;r=ys(e.scope)?r:e.scope;const s=e.properties;if(s)for(const c in s){const d=s[c];if(t&&UJe(c,d)){delete s[c];continue}if(d.source=n,d.defaultDefaultValue=s[c].default,this.updatePropertyDefaultValue(c,d),yg.test(c)?d.scope=void 0:(d.scope=ys(d.scope)?r:d.scope,d.restricted=ys(d.restricted)?!!(i!=null&&i.includes(c)):d.restricted),s[c].hasOwnProperty("included")&&!s[c].included){this.excludedConfigurationProperties[c]=s[c],delete s[c];continue}else this.configurationProperties[c]=s[c],!((o=s[c].policy)===null||o===void 0)&&o.name&&this.policyConfigurations.set(s[c].policy.name,c);!s[c].deprecationMessage&&s[c].markdownDeprecationMessage&&(s[c].deprecationMessage=s[c].markdownDeprecationMessage),a.add(c)}const l=e.allOf;if(l)for(const c of l)this.validateAndRegisterProperties(c,t,n,i,r,a)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=n=>{const i=n.properties;if(i)for(const a in i)this.updateSchema(a,i[a]);const r=n.allOf;r==null||r.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:v("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:v("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:VC};this.updatePropertyDefaultValue(t,n)}}registerOverridePropertyPatternKey(){v("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),v("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const n=this.configurationDefaultsOverrides.get(e);let i=n==null?void 0:n.value,r=n==null?void 0:n.source;ts(i)&&(i=t.defaultDefaultValue,r=void 0),ts(i)&&(i=GJe(t.type)),t.default=i,t.defaultValueSource=r}}const kve="\\[([^\\]]+)\\]",Cre=new RegExp(kve,"g"),WJe=`^(${kve})+$`,yg=new RegExp(WJe);function W8(u){const e=[];if(yg.test(u)){let t=Cre.exec(u);for(;t!=null&&t.length;){const n=t[1].trim();n&&e.push(n),t=Cre.exec(u)}}return vg(e)}function GJe(u){switch(Array.isArray(u)?u[0]:u){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const gS=new KJe;Xn.add(E4.Configuration,gS);function UJe(u,e){var t,n,i,r;return u.trim()?yg.test(u)?v("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",u):gS.getConfigurationProperties()[u]!==void 0?v("config.property.duplicate","Cannot register '{0}'. This property is already registered.",u):!((t=e.policy)===null||t===void 0)&&t.name&&gS.getPolicyConfigurations().get((n=e.policy)===null||n===void 0?void 0:n.name)!==void 0?v("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",u,(i=e.policy)===null||i===void 0?void 0:i.name,gS.getPolicyConfigurations().get((r=e.policy)===null||r===void 0?void 0:r.name)):null:v("config.property.empty","Cannot register an empty property")}const qJe={ModesRegistry:"editor.modesRegistry"};class JJe{constructor(){this._onDidChangeLanguages=new ee,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t{const s=new Set;return{info:new QJe(this,o,s),closing:s}}),r=new sre(o=>{const s=new Set,l=new Set;return{info:new XJe(this,o,s,l),opening:s,openingColorized:l}});for(const[o,s]of n){const l=i.get(o),c=r.get(s);l.closing.add(c.info),c.opening.add(l.info)}const a=t.colorizedBracketPairs?bre(t.colorizedBracketPairs):n.filter(o=>!(o[0]==="<"&&o[1]===">"));for(const[o,s]of a){const l=i.get(o),c=r.get(s);l.closing.add(c.info),c.openingColorized.add(l.info),c.opening.add(l.info)}this._openingBrackets=new Map([...i.cachedValues].map(([o,s])=>[o,s.info])),this._closingBrackets=new Map([...r.cachedValues].map(([o,s])=>[o,s.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function bre(u){return u.filter(([e,t])=>e!==""&&t!=="")}class yve{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class QJe extends yve{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class XJe extends yve{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var eZe=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},kre=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};class yO{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const an=Gt("languageConfigurationService");let NK=class extends ie{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new iZe),this.onDidChangeEmitter=this._register(new ee),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(RK));this._register(this.configurationService.onDidChangeConfiguration(i=>{const r=i.change.keys.some(o=>n.has(o)),a=i.change.overrides.filter(([o,s])=>s.some(l=>n.has(l))).map(([o])=>o);if(r)this.configurations.clear(),this.onDidChangeEmitter.fire(new yO(void 0));else for(const o of a)this.languageService.isRegisteredLanguageId(o)&&(this.configurations.delete(o),this.onDidChangeEmitter.fire(new yO(o)))})),this._register(this._registry.onDidChange(i=>{this.configurations.delete(i.languageId),this.onDidChangeEmitter.fire(new yO(i.languageId))}))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=tZe(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};NK=eZe([kre(0,nu),kre(1,Dn)],NK);function tZe(u,e,t,n){let i=e.getLanguageConfiguration(u);if(!i){if(!n.isRegisteredLanguageId(u))return new Hx(u,{});i=new Hx(u,{})}const r=uZe(i.languageId,t),a=Ave([i.underlyingConfig,r]);return new Hx(i.languageId,a)}const RK={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function uZe(u,e){const t=e.getValue(RK.brackets,{overrideIdentifier:u}),n=e.getValue(RK.colorizedBracketPairs,{overrideIdentifier:u});return{brackets:yre(t),colorizedBracketPairs:yre(n)}}function yre(u){if(Array.isArray(u))return u.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function Fve(u,e,t){const n=u.getLineContent(e);let i=Wu(n);return i.length>t-1&&(i=i.substring(0,t-1)),i}function Vx(u,e,t){u.tokenization.forceTokenization(e);const n=u.tokenization.getLineTokens(e),i=typeof t>"u"?u.getLineMaxColumn(e)-1:t-1;return gP(n,i)}class nZe{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new Fre(e,t,++this._order);return this._entries.push(n),this._resolved=null,bt(()=>{for(let i=0;ie.configuration)))}}function Ave(u){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const t of u)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class Fre{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class Are{constructor(e){this.languageId=e}}class iZe extends ie{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new ee),this.onDidChange=this._onDidChange.event,this._register(this.register(Rs,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new nZe(e),this._entries.set(e,i));const r=i.register(t,n);return this._onDidChange.fire(new Are(e)),bt(()=>{r.dispose(),this._onDidChange.fire(new Are(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return(t==null?void 0:t.getResolvedConfiguration())||null}}class Hx{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new JD(this.underlyingConfig):null,this.comments=Hx._handleComments(this.underlyingConfig),this.characterPair=new w5(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||RY,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new RJe(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new YJe(e,this.underlyingConfig)}getWordDefinition(){return T5e(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new wJe(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new NJe(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new bJe(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[i,r]=t.blockComment;n.blockCommentStartToken=i,n.blockCommentEndToken=r}return n}}iu(an,NK,1);const L5=new class{clone(){return this}equals(u){return this===u}};function nQ(u,e){return new WY([new Ok(0,"",u)],e)}function xP(u,e){const t=new Uint32Array(2);return t[0]=0,t[1]=(u<<0|0|0|32768|2<<24)>>>0,new iP(t,e===null?L5:e)}const Bn=Gt("modelService"),_ve=Symbol("MicrotaskDelay");var n0=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})},U6=globalThis&&globalThis.__asyncValues||function(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=u[Symbol.asyncIterator],t;return e?e.call(u):(u=typeof __values=="function"?__values(u):u[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=u[r]&&function(a){return new Promise(function(o,s){a=u[r](a),i(o,s,a.done,a.value)})}}function i(r,a,o,s){Promise.resolve(s).then(function(l){r({value:l,done:o})},a)}};function IK(u){return!!u&&typeof u.then=="function"}function $i(u){const e=new nr,t=u(e.token),n=new Promise((i,r)=>{const a=e.token.onCancellationRequested(()=>{a.dispose(),e.dispose(),r(new em)});Promise.resolve(t).then(o=>{a.dispose(),e.dispose(),i(o)},o=>{a.dispose(),e.dispose(),r(o)})});return new class{cancel(){e.cancel()}then(i,r){return n.then(i,r)}catch(i){return this.then(void 0,i)}finally(i){return n.finally(i)}}}function vP(u,e,t){return new Promise((n,i)=>{const r=e.onCancellationRequested(()=>{r.dispose(),n(t)});u.then(n,i).finally(()=>r.dispose())})}class rZe{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)throw new Error("Throttler is disposed");if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{if(this.queuedPromise=null,this.isDisposed)return;const n=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,n};this.queuedPromise=new Promise(n=>{this.activePromise.then(t,t).then(n)})}return new Promise((t,n)=>{this.queuedPromise.then(t,n)})}return this.activePromise=e(),new Promise((t,n)=>{this.activePromise.then(i=>{this.activePromise=null,t(i)},i=>{this.activePromise=null,n(i)})})}dispose(){this.isDisposed=!0}}const aZe=(u,e)=>{let t=!0;const n=setTimeout(()=>{t=!1,e()},u);return{isTriggered:()=>t,dispose:()=>{clearTimeout(n),t=!1}}},oZe=u=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,u())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class jc{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((i,r)=>{this.doResolve=i,this.doReject=r}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const i=this.task;return this.task=null,i()}}));const n=()=>{var i;this.deferred=null,(i=this.doResolve)===null||i===void 0||i.call(this,null)};return this.deferred=t===_ve?oZe(n):aZe(t,n),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new em),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class Sve{constructor(e){this.delayer=new jc(e),this.throttler=new rZe}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function Fg(u,e){return e?new Promise((t,n)=>{const i=setTimeout(()=>{r.dispose(),t()},u),r=e.onCancellationRequested(()=>{clearTimeout(i),r.dispose(),n(new em)})}):$i(t=>Fg(u,t))}function Ag(u,e=0){const t=setTimeout(u,e);return bt(()=>clearTimeout(t))}function Bve(u,e=n=>!!n,t=null){let n=0;const i=u.length,r=()=>{if(n>=i)return Promise.resolve(t);const a=u[n++];return Promise.resolve(a()).then(s=>e(s)?Promise.resolve(s):r())};return r()}class Il{constructor(e,t){this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class RF{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class Hu{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}}let Ah;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?Ah=u=>{w5e(()=>{if(e)return;const t=Date.now()+15;u(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,t-Date.now())}}))});let e=!1;return{dispose(){e||(e=!0)}}}:Ah=(u,e)=>{const t=requestIdleCallback(u,typeof e=="number"?{timeout:e}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(t))}}}})();class mS{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(t){this._error=t}finally{this._didRun=!0}},this._handle=Ah(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class CP{get isRejected(){var e;return((e=this.outcome)===null||e===void 0?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new em)}}var OK;(function(u){function e(n){return n0(this,void 0,void 0,function*(){let i;const r=yield Promise.all(n.map(a=>a.then(o=>o,o=>{i||(i=o)})));if(typeof i<"u")throw i;return r})}u.settled=e;function t(n){return new Promise((i,r)=>n0(this,void 0,void 0,function*(){try{yield n(i,r)}catch(a){r(a)}}))}u.withAsyncBody=t})(OK||(OK={}));class bi{static fromArray(e){return new bi(t=>{t.emitMany(e)})}static fromPromise(e){return new bi(t=>n0(this,void 0,void 0,function*(){t.emitMany(yield e)}))}static fromPromises(e){return new bi(t=>n0(this,void 0,void 0,function*(){yield Promise.all(e.map(n=>n0(this,void 0,void 0,function*(){return t.emitOne(yield n)})))}))}static merge(e){return new bi(t=>n0(this,void 0,void 0,function*(){yield Promise.all(e.map(n=>{var i,r,a;return n0(this,void 0,void 0,function*(){var o,s,l,c;try{for(i=!0,r=U6(n);a=yield r.next(),o=a.done,!o;i=!0){c=a.value,i=!1;const d=c;t.emitOne(d)}}catch(d){s={error:d}}finally{try{!i&&!o&&(l=r.return)&&(yield l.call(r))}finally{if(s)throw s.error}}})}))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new ee,queueMicrotask(()=>n0(this,void 0,void 0,function*(){const t={emitOne:n=>this.emitOne(n),emitMany:n=>this.emitMany(n),reject:n=>this.reject(n)};try{yield Promise.resolve(e(t)),this.resolve()}catch(n){this.reject(n)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>n0(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(en0(this,void 0,void 0,function*(){var i,r,a,o;try{for(var s=!0,l=U6(e),c;c=yield l.next(),i=c.done,!i;s=!0){o=c.value,s=!1;const d=o;n.emitOne(t(d))}}catch(d){r={error:d}}finally{try{!s&&!i&&(a=l.return)&&(yield a.call(l))}finally{if(r)throw r.error}}}))}map(e){return bi.map(this,e)}static filter(e,t){return new bi(n=>n0(this,void 0,void 0,function*(){var i,r,a,o;try{for(var s=!0,l=U6(e),c;c=yield l.next(),i=c.done,!i;s=!0){o=c.value,s=!1;const d=o;t(d)&&n.emitOne(d)}}catch(d){r={error:d}}finally{try{!s&&!i&&(a=l.return)&&(yield a.call(l))}finally{if(r)throw r.error}}}))}filter(e){return bi.filter(this,e)}static coalesce(e){return bi.filter(e,t=>!!t)}coalesce(){return bi.coalesce(this)}static toPromise(e){var t,n,i,r,a,o,s;return n0(this,void 0,void 0,function*(){const l=[];try{for(t=!0,n=U6(e);i=yield n.next(),r=i.done,!r;t=!0){s=i.value,t=!1;const c=s;l.push(c)}}catch(c){a={error:c}}finally{try{!t&&!r&&(o=n.return)&&(yield o.call(n))}finally{if(a)throw a.error}}return l})}toPromise(){return bi.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}bi.EMPTY=bi.fromArray([]);class sZe extends bi{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function lZe(u){const e=new nr,t=u(e.token);return new sZe(e,n=>n0(this,void 0,void 0,function*(){var i,r,a,o;const s=e.token.onCancellationRequested(()=>{s.dispose(),e.dispose(),n.reject(new em)});try{try{for(var l=!0,c=U6(t),d;d=yield c.next(),i=d.done,!i;l=!0){o=d.value,l=!1;const h=o;if(e.token.isCancellationRequested)return;n.emitOne(h)}}catch(h){r={error:h}}finally{try{!l&&!i&&(a=c.return)&&(yield a.call(c))}finally{if(r)throw r.error}}s.dispose(),e.dispose()}catch(h){s.dispose(),e.dispose(),n.reject(h)}}))}const cZe="$initialize";let _re=!1;function jK(u){Xg&&(_re||(_re=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(u.message))}class dZe{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.method=n,this.args=i,this.type=0}}class Sre{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class hZe{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=i,this.type=2}}class EZe{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class gZe{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class mZe{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send(new dZe(this._workerId,n,e,t))})}listen(e,t){let n=null;const i=new ee({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new hZe(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new gZe(this._workerId,n)),n=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new Sre(this._workerId,t,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=ire(i.detail)),this._send(new Sre(this._workerId,t,void 0,ire(i)))})}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new EZe(this._workerId,t,i))});this._pendingEvents.set(t,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const t=[];if(e.type===0)for(let n=0;n{this._protocol.handleMessage(c)},c=>{i==null||i(c)})),this._protocol=new mZe({sendMessage:(c,d)=>{this._worker.postMessage(c,d)},handleMessage:(c,d)=>{if(typeof n[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(n[c].apply(n,d))}catch(h){return Promise.reject(h)}},handleEvent:(c,d)=>{if(zve(c)){const h=n[c].call(n,d);if(typeof h!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return h}if(wve(c)){const h=n[c];if(typeof h!="function")throw new Error(`Missing event ${c} on main thread host.`);return h}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let r=null;const a=globalThis.require;typeof a<"u"&&typeof a.getConfig=="function"?r=a.getConfig():typeof globalThis.requirejs<"u"&&(r=globalThis.requirejs.s.contexts._.config);const o=TY(n);this._onModuleLoaded=this._protocol.sendMessage(cZe,[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,o]);const s=(c,d)=>this._request(c,d),l=(c,d)=>this._protocol.listen(c,d);this._lazyProxy=new Promise((c,d)=>{i=d,this._onModuleLoaded.then(h=>{c(pZe(h,s,l))},h=>{d(h),this._onError("Worker failed to load "+t,h)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((n,i)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(n,i)},i)})}_onError(e,t){console.error(e),console.info(t)}}function wve(u){return u[0]==="o"&&u[1]==="n"&&Fd(u.charCodeAt(2))}function zve(u){return/^onDynamic/.test(u)&&Fd(u.charCodeAt(9))}function pZe(u,e,t){const n=a=>function(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},i=a=>function(o){return t(a,o)},r={};for(const a of u){if(zve(a)){r[a]=i(a);continue}if(wve(a)){r[a]=t(a,void 0);continue}r[a]=n(a)}return r}function g4(u,e){var t;const n=globalThis.MonacoEnvironment;if(n!=null&&n.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(u,e)}catch(i){wt(i);return}try{return(t=window.trustedTypes)===null||t===void 0?void 0:t.createPolicy(u,e)}catch(i){wt(i);return}}const Bre=g4("defaultWorkerFactory",{createScriptURL:u=>u});function DZe(u){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",u);if(typeof e.getWorkerUrl=="function"){const t=e.getWorkerUrl("workerMain.js",u);return new Worker(Bre?Bre.createScriptURL(t):t,{name:u})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function xZe(u){return typeof u.then=="function"}class vZe{constructor(e,t,n,i,r){this.id=t;const a=DZe(n);xZe(a)?this.worker=a:this.worker=Promise.resolve(a),this.postMessage(e,[]),this.worker.then(o=>{o.onmessage=function(s){i(s.data)},o.onmessageerror=r,typeof o.addEventListener=="function"&&o.addEventListener("error",r)})}getId(){return this.id}postMessage(e,t){var n;(n=this.worker)===null||n===void 0||n.then(i=>i.postMessage(e,t))}dispose(){var e;(e=this.worker)===null||e===void 0||e.then(t=>t.terminate()),this.worker=null}}class bP{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,n){const i=++bP.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new vZe(e,i,this._label||"anonymous"+i,t,r=>{jK(r),this._webWorkerFailedBeforeError=r,n(r)})}}bP.LAST_WORKER_ID=0;class K4{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Lve(u){return kP(u,0)}function kP(u,e){switch(typeof u){case"object":return u===null?_h(349,e):Array.isArray(u)?bZe(u,e):kZe(u,e);case"string":return iQ(u,e);case"boolean":return CZe(u,e);case"number":return _h(u,e);case"undefined":return _h(937,e);default:return _h(617,e)}}function _h(u,e){return(e<<5)-e+u|0}function CZe(u,e){return _h(u?433:863,e)}function iQ(u,e){e=_h(149417,e);for(let t=0,n=u.length;tkP(n,t),e)}function kZe(u,e){return e=_h(181387,e),Object.keys(u).sort().reduce((t,n)=>(t=iQ(n,t),kP(u[n],t)),e)}function FO(u,e,t=32){const n=t-e,i=~((1<>>n)>>>0}function wre(u,e=0,t=u.byteLength,n=0){for(let i=0;it.toString(16).padStart(2,"0")).join(""):yZe((u>>>0).toString(16),e/4)}class yP{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const n=this._buff;let i=this._buffLen,r=this._leftoverHighSurrogate,a,o;for(r!==0?(a=r,o=-1,r=0):(a=e.charCodeAt(0),o=0);;){let s=a;if(Qi(a))if(o+1>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),HC(this._h0)+HC(this._h1)+HC(this._h2)+HC(this._h3)+HC(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,wre(this._buff,this._buffLen),this._buffLen>56&&(this._step(),wre(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=yP._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,FO(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let n=this._h0,i=this._h1,r=this._h2,a=this._h3,o=this._h4,s,l,c;for(let d=0;d<80;d++)d<20?(s=i&r|~i&a,l=1518500249):d<40?(s=i^r^a,l=1859775393):d<60?(s=i&r|i&a|r&a,l=2400959708):(s=i^r^a,l=3395469782),c=FO(n,5)+s+o+l+e.getUint32(d*4,!1)&4294967295,o=a,a=r,r=FO(i,30),i=n,n=c;this._h0=this._h0+n&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+r&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+o&4294967295}}yP._bigBlock32=new DataView(new ArrayBuffer(320));class zre{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new K4(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ld{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,a]=Ld._getElements(e),[o,s,l]=Ld._getElements(t);this._hasStrings=a&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(Ld._isStringArray(t)){const n=new Int32Array(t.length);for(let i=0,r=t.length;i=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let d;return n<=i?(Qp.Assert(e===t+1,"originalStart should only be one more than originalEnd"),d=[new K4(e,0,n,i-n+1)]):e<=t?(Qp.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),d=[new K4(e,t-e+1,n,0)]):(Qp.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Qp.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const a=[0],o=[0],s=this.ComputeRecursionPoint(e,t,n,i,a,o,r),l=a[0],c=o[0];if(s!==null)return s;if(!r[0]){const d=this.ComputeDiffRecursive(e,l,n,c,r);let h=[];return r[0]?h=[new K4(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:h=this.ComputeDiffRecursive(l+1,t,c+1,i,r),this.ConcatenateChanges(d,h)}return[new K4(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,a,o,s,l,c,d,h,E,g,m,f,p,D){let x=null,b=null,k=new Lre,_=t,y=n,S=E[0]-f[0]-i,B=-1073741824,L=this.m_forwardHistory.length-1;do{const M=S+e;M===_||M=0&&(l=this.m_forwardHistory[L],e=l[0],_=1,y=l.length-1)}while(--L>=-1);if(x=k.getReverseChanges(),D[0]){let M=E[0]+1,N=f[0]+1;if(x!==null&&x.length>0){const F=x[x.length-1];M=Math.max(M,F.getOriginalEnd()),N=Math.max(N,F.getModifiedEnd())}b=[new K4(M,h-M+1,N,m-N+1)]}else{k=new Lre,_=a,y=o,S=E[0]-f[0]-s,B=1073741824,L=p?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const M=S+r;M===_||M=c[M+1]?(d=c[M+1]-1,g=d-S-s,d>B&&k.MarkNextChange(),B=d+1,k.AddOriginalElement(d+1,g+1),S=M+1-r):(d=c[M-1],g=d-S-s,d>B&&k.MarkNextChange(),B=d,k.AddModifiedElement(d+1,g+1),S=M-1-r),L>=0&&(c=this.m_reverseHistory[L],r=c[0],_=1,y=c.length-1)}while(--L>=-1);b=k.getChanges()}return this.ConcatenateChanges(x,b)}ComputeRecursionPoint(e,t,n,i,r,a,o){let s=0,l=0,c=0,d=0,h=0,E=0;e--,n--,r[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(i-n),m=g+1,f=new Int32Array(m),p=new Int32Array(m),D=i-n,x=t-e,b=e-n,k=t-i,y=(x-D)%2===0;f[D]=e,p[x]=t,o[0]=!1;for(let S=1;S<=g/2+1;S++){let B=0,L=0;c=this.ClipDiagonalBound(D-S,S,D,m),d=this.ClipDiagonalBound(D+S,S,D,m);for(let N=c;N<=d;N+=2){N===c||NB+L&&(B=s,L=l),!y&&Math.abs(N-x)<=S-1&&s>=p[N])return r[0]=s,a[0]=l,F<=p[N]&&1447>0&&S<=1447+1?this.WALKTRACE(D,c,d,b,x,h,E,k,f,p,s,t,r,l,i,a,y,o):null}const M=(B-e+(L-n)-S)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(B,M))return o[0]=!0,r[0]=B,a[0]=L,M>0&&1447>0&&S<=1447+1?this.WALKTRACE(D,c,d,b,x,h,E,k,f,p,s,t,r,l,i,a,y,o):(e++,n++,[new K4(e,t-e+1,n,i-n+1)]);h=this.ClipDiagonalBound(x-S,S,x,m),E=this.ClipDiagonalBound(x+S,S,x,m);for(let N=h;N<=E;N+=2){N===h||N=p[N+1]?s=p[N+1]-1:s=p[N-1],l=s-(N-x)-k;const F=s;for(;s>e&&l>n&&this.ElementsAreEqual(s,l);)s--,l--;if(p[N]=s,y&&Math.abs(N-D)<=S&&s<=f[N])return r[0]=s,a[0]=l,F>=f[N]&&1447>0&&S<=1447+1?this.WALKTRACE(D,c,d,b,x,h,E,k,f,p,s,t,r,l,i,a,y,o):null}if(S<=1447){let N=new Int32Array(d-c+2);N[0]=D-c+1,Xp.Copy2(f,c,N,1,d-c+1),this.m_forwardHistory.push(N),N=new Int32Array(E-h+2),N[0]=x-h+1,Xp.Copy2(p,h,N,1,E-h+1),this.m_reverseHistory.push(N)}}return this.WALKTRACE(D,c,d,b,x,h,E,k,f,p,s,t,r,l,i,a,y,o)}PrettifyChanges(e){for(let t=0;t0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let i=0,r=0;if(t>0){const d=e[t-1];i=d.originalStart+d.originalLength,r=d.modifiedStart+d.modifiedLength}const a=n.originalLength>0,o=n.modifiedLength>0;let s=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let d=1;;d++){const h=n.originalStart-d,E=n.modifiedStart-d;if(hl&&(l=m,s=d)}n.originalStart-=s,n.modifiedStart-=s;const c=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],c)){e[t-1]=c[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t0&&E>s&&(s=E,l=d,c=h)}return s>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){const r=this._OriginalRegionIsBoundary(e,t)?1:0,a=this._ModifiedRegionIsBoundary(n,i)?1:0;return r+a}ConcatenateChanges(e,t){const n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return Xp.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],Xp.Copy(t,1,i,e.length,t.length-1),i}else{const i=new Array(e.length+t.length);return Xp.Copy(e,0,i,0,e.length),Xp.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,n){if(Qp.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Qp.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new K4(i,r,a,o),!0}else return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e255?255:u|0}function eD(u){return u<0?0:u>4294967295?4294967295:u|0}class AZe{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=eD(e);const n=this.values,i=this.prefixSum,r=t.length;return r===0?!1:(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=eD(e),t=eD(t),this.values[e]===t?!1:(this.values[e]=t,e-1=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),t===0?!1:(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=eD(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,a=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],a=r-this.values[i],e=r)t=i+1;else break;return new Mve(i,e-a)}}class _Ze{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],n=t>0?this._prefixSum[t-1]:0;return new Mve(t,e-n)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=uP(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+n;for(let r=0;r=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class U8{constructor(){this._actual=new Uv(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class BZe{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,a=e*t;rt&&(t=s),o>n&&(n=o),l>n&&(n=l)}t++,n++;const i=new BZe(n,t,0);for(let r=0,a=e.length;r=this._maxCharCode?0:this._states.get(e,t)}}let AO=null;function zZe(){return AO===null&&(AO=new wZe([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),AO}let $C=null;function LZe(){if($C===null){$C=new Uv(0);const u=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let t=0;ti);if(i>0){const o=t.charCodeAt(i-1),s=t.charCodeAt(a);(o===40&&s===41||o===91&&s===93||o===123&&s===125)&&a--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:a+2},url:t.substring(i,a+1)}}static computeLinks(e,t=zZe()){const n=LZe(),i=[];for(let r=1,a=e.getLineCount();r<=a;r++){const o=e.getLineContent(r),s=o.length;let l=0,c=0,d=0,h=1,E=!1,g=!1,m=!1,f=!1;for(;l=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}VK.INSTANCE=new VK;class TZe extends Uv{constructor(e){super(0);for(let t=0,n=e.length;t(e.hasOwnProperty(t)||(e[t]=u(t)),e[t])}const A0=PZe(u=>new TZe(u)),NZe=999;class Um{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=RZe(this.searchString):e=this.searchString.indexOf(` -`)>=0;let t=null;try{t=nve(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new xJe(t,this.wordSeparators?A0(this.wordSeparators):null,n?this.searchString:null)}}function RZe(u){if(!u||u.length===0)return!1;for(let e=0,t=u.length;e=t)break;const i=u.charCodeAt(e);if(i===110||i===114||i===87)return!0}}return!1}function af(u,e,t){if(!t)return new Gk(u,null);const n=[];for(let i=0,r=e.length;i>0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class C_{static findMatches(e,t,n,i,r){const a=t.parseSearchRequest();return a?a.regex.multiline?this._doFindMatchesMultiline(e,n,new ZD(a.wordSeparators,a.regex),i,r):this._doFindMatchesLineByLine(e,n,a,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,a){let o,s=0;i?(s=i.findLineFeedCountBeforeOffset(r),o=t+r+s):o=t+r;let l;if(i){const E=i.findLineFeedCountBeforeOffset(r+a.length)-s;l=o+a.length+E}else l=o+a.length;const c=e.getPositionAt(o),d=e.getPositionAt(l);return new O(c.lineNumber,c.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,n,i,r){const a=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),s=e.getEOL()===`\r -`?new Mre(o):null,l=[];let c=0,d;for(n.reset(0);d=n.next(o);)if(l[c++]=af(this._getMultilineMatchRange(e,a,o,s,d.index,d[0]),d,i),c>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const a=[];let o=0;if(t.startLineNumber===t.endLineNumber){const l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,l,t.startLineNumber,t.startColumn-1,o,a,i,r),a}const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,o,a,i,r);for(let l=t.startLineNumber+1;l=s))return r;return r}const c=new ZD(e.wordSeparators,e.regex);let d;c.reset(0);do if(d=c.next(t),d&&(a[r++]=af(new O(n,d.index+1+i,n,d.index+1+d[0].length+i),d,o),r>=s))return r;while(d);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const a=new ZD(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,a,i):this._doFindNextMatchLineByLine(e,n,a,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new ue(t.lineNumber,1),a=e.getOffsetAt(r),o=e.getLineCount(),s=e.getValueInRange(new O(r.lineNumber,r.column,o,e.getLineMaxColumn(o)),1),l=e.getEOL()===`\r -`?new Mre(s):null;n.reset(t.column-1);const c=n.next(s);return c?af(this._getMultilineMatchRange(e,a,s,l,c.index,c[0]),c,i):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new ue(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),a=t.lineNumber,o=e.getLineContent(a),s=this._findFirstMatchInLine(n,o,a,t.column,i);if(s)return s;for(let l=1;l<=r;l++){const c=(a+l-1)%r,d=e.getLineContent(c+1),h=this._findFirstMatchInLine(n,d,c+1,1,i);if(h)return h}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const a=e.next(t);return a?af(new O(n,a.index+1,n,a.index+1+a[0].length),a,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const a=new ZD(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,a,i):this._doFindPreviousMatchLineByLine(e,n,a,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new O(1,1,t.lineNumber,t.column),n,i,10*NZe);if(r.length>0)return r[r.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new ue(a,e.getLineMaxColumn(a)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),a=t.lineNumber,o=e.getLineContent(a).substring(0,t.column-1),s=this._findLastMatchInLine(n,o,a,i);if(s)return s;for(let l=1;l<=r;l++){const c=(r+a-l-1)%r,d=e.getLineContent(c+1),h=this._findLastMatchInLine(n,d,c+1,i);if(h)return h}return null}static _findLastMatchInLine(e,t,n,i){let r=null,a;for(e.reset(0);a=e.next(t);)r=af(new O(n,a.index+1,n,a.index+1+a[0].length),a,i);return r}}function IZe(u,e,t,n,i){if(n===0)return!0;const r=e.charCodeAt(n-1);if(u.get(r)!==0||r===13||r===10)return!0;if(i>0){const a=e.charCodeAt(n);if(u.get(a)!==0)return!0}return!1}function OZe(u,e,t,n,i){if(n+i===t)return!0;const r=e.charCodeAt(n+i);if(u.get(r)!==0||r===13||r===10)return!0;if(i>0){const a=e.charCodeAt(n+i-1);if(u.get(a)!==0)return!0}return!1}function rQ(u,e,t,n,i){return IZe(u,e,t,n,i)&&OZe(u,e,t,n,i)}class ZD{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;const i=n.index,r=n[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(r===0){V8(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||rQ(this._wordSeparators,e,t,i,r))return n}while(n);return null}}class aQ{static computeUnicodeHighlights(e,t,n){const i=n?n.startLineNumber:1,r=n?n.endLineNumber:e.getLineCount(),a=new Tre(t),o=a.getCandidateCodePoints();let s;o==="allNonBasicAscii"?s=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):s=new RegExp(`${jZe(Array.from(o))}`,"g");const l=new ZD(null,s),c=[];let d=!1,h,E=0,g=0,m=0;e:for(let f=i,p=r;f<=p;f++){const D=e.getLineContent(f),x=D.length;l.reset(0);do if(h=l.next(D),h){let b=h.index,k=h.index+h[0].length;if(b>0){const B=D.charCodeAt(b-1);Qi(B)&&b--}if(k+1=B){d=!0;break e}c.push(new O(f,b+1,f,k+1))}}while(h)}return{ranges:c,hasMore:d,ambiguousCharacterCount:E,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const n=new Tre(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),a=n.ambiguousCharacters.getPrimaryConfusable(r),o=_l.getLocales().filter(s=>!_l.getInstance(new Set([...t.allowedLocales,s])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function jZe(u,e){return`[${Hs(u.map(n=>String.fromCodePoint(n)).join(""))}]`}class Tre{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=_l.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of t1.codePoints)Pre(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const a of t){const o=a.codePointAt(0),s=TF(a);i=i||s,!s&&!this.ambiguousCharacters.isAmbiguous(o)&&!t1.isInvisibleCharacter(o)&&(r=!0)}return!i&&r?0:this.options.invisibleCharacters&&!Pre(e)&&t1.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Pre(u){return u===" "||u===` -`||u===" "}let vu=class q0{static fromRange(e){return new q0(e.startLineNumber,e.endLineNumber)}static subtract(e,t){return t?e.startLineNumber=o.startLineNumber?a=new q0(a.startLineNumber,Math.max(a.endLineNumberExclusive,o.endLineNumberExclusive)):(n.push(a),a=o)}return a!==null&&n.push(a),n}static ofLength(e,t){return new q0(e,e+t)}static deserialize(e){return new q0(e[0],e[1])}constructor(e,t){if(e>t)throw new gr(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var e;return new D0(this.modifiedRange,this.originalRange,(e=this.innerChanges)===null||e===void 0?void 0:e.map(t=>t.flip()))}}class Yh{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Yh(this.modifiedRange,this.originalRange)}}class Dp{constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Dp(this.modified,this.original)}}class qv{constructor(e,t){this.lineRangeMapping=e,this.changes=t}flip(){return new qv(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}}const VZe=3;class HZe{computeDiff(e,t,n){var i;const a=new WZe(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let s=null;for(const l of a.changes){let c;l.originalEndLineNumber===0?c=new vu(l.originalStartLineNumber+1,l.originalStartLineNumber+1):c=new vu(l.originalStartLineNumber,l.originalEndLineNumber+1);let d;l.modifiedEndLineNumber===0?d=new vu(l.modifiedStartLineNumber+1,l.modifiedStartLineNumber+1):d=new vu(l.modifiedStartLineNumber,l.modifiedEndLineNumber+1);let h=new D0(c,d,(i=l.charChanges)===null||i===void 0?void 0:i.map(E=>new Yh(new O(E.originalStartLineNumber,E.originalStartColumn,E.originalEndLineNumber,E.originalEndColumn),new O(E.modifiedStartLineNumber,E.modifiedStartColumn,E.modifiedEndLineNumber,E.modifiedEndColumn))));s&&(s.modifiedRange.endLineNumberExclusive===h.modifiedRange.startLineNumber||s.originalRange.endLineNumberExclusive===h.originalRange.startLineNumber)&&(h=new D0(s.originalRange.join(h.originalRange),s.modifiedRange.join(h.modifiedRange),s.innerChanges&&h.innerChanges?s.innerChanges.concat(h.innerChanges):void 0),o.pop()),o.push(h),s=h}return Kk(()=>hve(o,(l,c)=>c.originalRange.startLineNumber-l.originalRange.endLineNumberExclusive===c.modifiedRange.startLineNumber-l.modifiedRange.endLineNumberExclusive&&l.originalRange.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class $x{constructor(e,t,n,i,r,a,o,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),a=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),s=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new $x(i,r,a,o,s,l,c,d)}}function KZe(u){if(u.length<=1)return u;const e=[u[0]];let t=e[0];for(let n=1,i=u.length;n0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const E=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),g=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(E.getElements().length>0&&g.getElements().length>0){let m=Pve(E,g,r,!0).changes;o&&(m=KZe(m)),h=[];for(let f=0,p=m.length;f1&&m>1;){const f=h.charCodeAt(g-2),p=E.charCodeAt(m-2);if(f!==p)break;g--,m--}(g>1||m>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,g,a+1,1,m)}{let g=$K(h,1),m=$K(E,1);const f=h.length+1,p=E.length+1;for(;g!0;const e=Date.now();return()=>Date.now()-et))return new Pu(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new gr(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Pu(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e ${this.seq2Range}`}join(e){return new Is(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new Is(this.seq1Range.delta(e),this.seq2Range.delta(e))}}class Uk{isValid(){return!0}}Uk.instance=new Uk;class GZe{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new gr("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&m>0&&a.get(g-1,m-1)===3&&(D+=o.get(g-1,m-1)),D+=i?i(g,m):1):D=-1;const x=Math.max(f,p,D);if(x===D){const b=g>0&&m>0?o.get(g-1,m-1):0;o.set(g,m,b+1),a.set(g,m,3)}else x===f?(o.set(g,m,0),a.set(g,m,1)):x===p&&(o.set(g,m,0),a.set(g,m,2));r.set(g,m,x)}const s=[];let l=e.length,c=t.length;function d(g,m){(g+1!==l||m+1!==c)&&s.push(new Is(new Pu(g+1,l),new Pu(m+1,c))),l=g,c=m}let h=e.length-1,E=t.length-1;for(;h>=0&&E>=0;)a.get(h,E)===3?(d(h,E),h--,E--):a.get(h,E)===1?h--:E--;return d(-1,-1),s.reverse(),new Oh(s,!1)}}function Ire(u,e,t){let n=t;return n=ZZe(u,e,n),n=YZe(u,e,n),n}function qZe(u,e,t){const n=[];for(const i of t){const r=n[n.length-1];if(!r){n.push(i);continue}i.seq1Range.start-r.seq1Range.endExclusive<=2||i.seq2Range.start-r.seq2Range.endExclusive<=2?n[n.length-1]=new Is(r.seq1Range.join(i.seq1Range),r.seq2Range.join(i.seq2Range)):n.push(i)}return n}function JZe(u,e,t){let n=t;if(n.length===0)return n;let i=0,r;do{r=!1;const a=[n[0]];for(let o=1;o5||g.length>500)return!1;const f=u.getText(g).trim();if(f.length>20||f.split(/\r\n|\r|\n/).length>1)return!1;const p=u.countLinesIn(h.seq1Range),D=h.seq1Range.length,x=e.countLinesIn(h.seq2Range),b=h.seq2Range.length,k=u.countLinesIn(E.seq1Range),_=E.seq1Range.length,y=e.countLinesIn(E.seq2Range),S=E.seq2Range.length,B=2*40+50;function L(M){return Math.min(M,B)}return Math.pow(Math.pow(L(p*40+D),1.5)+Math.pow(L(x*40+b),1.5),1.5)+Math.pow(Math.pow(L(k*40+_),1.5)+Math.pow(L(y*40+S),1.5),1.5)>Math.pow(Math.pow(B,1.5),1.5)*1.3};const s=n[o],l=a[a.length-1];c(l,s)?(r=!0,a[a.length-1]=a[a.length-1].join(s)):a.push(s)}n=a}while(i++<10&&r);return n}function ZZe(u,e,t){if(t.length===0)return t;const n=[];n.push(t[0]);for(let r=1;r0&&(o=o.delta(l))}i.push(o)}return n.length>0&&i.push(n[n.length-1]),i}function YZe(u,e,t){if(!u.getBoundaryScore||!e.getBoundaryScore)return t;for(let n=0;n0?t[n-1]:void 0,r=t[n],a=n+1=n.start&&u.seq2Range.start-a>=i.start&&t.getElement(u.seq2Range.start-a)===t.getElement(u.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;u.seq1Range.start+ol&&(l=g,s=c)}return u.delta(s)}class QZe{compute(e,t,n=Uk.instance){if(e.length===0||t.length===0)return Oh.trivial(e,t);function i(E,g){for(;Ee.length||D>t.length)continue;const x=i(p,D);a.set(s,x);const b=p===m?o.get(s+1):o.get(s-1);if(o.set(s,x!==p?new jre(b,p,D,x-p):b),a.get(s)===e.length&&a.get(s)-s===t.length)break e}}let l=o.get(s);const c=[];let d=e.length,h=t.length;for(;;){const E=l?l.x+l.length:0,g=l?l.y+l.length:0;if((E!==d||g!==h)&&c.push(new Is(new Pu(E,d),new Pu(g,h))),!l)break;d=l.x,h=l.y,l=l.prev}return c.reverse(),new Oh(c,!1)}}class jre{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class XZe{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[e]=t}}}class eYe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class tYe{constructor(){this.dynamicProgrammingDiffing=new UZe,this.myersDiffingAlgorithm=new QZe}computeDiff(e,t,n){if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return{changes:[new D0(new vu(1,e.length+1),new vu(1,t.length+1),[new Yh(new O(1,1,e.length,e[0].length+1),new O(1,1,t.length,t[0].length+1))])],hitTimeout:!1,moves:[]};const i=n.maxComputationTimeMs===0?Uk.instance:new GZe(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,a=new Map;function o(k){let _=a.get(k);return _===void 0&&(_=a.size,a.set(k,_)),_}const s=e.map(k=>o(k.trim())),l=t.map(k=>o(k.trim())),c=new Vre(s,e),d=new Vre(l,t),h=(()=>c.length+d.length<1500?this.dynamicProgrammingDiffing.compute(c,d,i,(k,_)=>e[k]===t[_]?t[_].length===0?.1:1+Math.log(1+t[_].length):.99):this.myersDiffingAlgorithm.compute(c,d))();let E=h.diffs,g=h.hitTimeout;E=Ire(c,d,E);const m=[],f=k=>{if(r)for(let _=0;_k.seq1Range.start-p===k.seq2Range.start-D);const _=k.seq1Range.start-p;f(_),p=k.seq1Range.endExclusive,D=k.seq2Range.endExclusive;const y=this.refineDiff(e,t,k,i,r);y.hitTimeout&&(g=!0);for(const S of y.mappings)m.push(S)}f(e.length-p);const x=KK(m,e,t),b=[];if(n.computeMoves){const k=x.filter(y=>y.modifiedRange.isEmpty&&y.originalRange.length>=3).map(y=>new Ure(y.originalRange,e)),_=new Set(x.filter(y=>y.originalRange.isEmpty&&y.modifiedRange.length>=3).map(y=>new Ure(y.modifiedRange,t)));for(const y of k){let S=-1,B;for(const L of _){const M=y.computeSimilarity(L);M>S&&(S=M,B=L)}if(S>.9&&B){const L=this.refineDiff(e,t,new Is(new Pu(y.range.startLineNumber-1,y.range.endLineNumberExclusive-1),new Pu(B.range.startLineNumber-1,B.range.endLineNumberExclusive-1)),i,r),M=KK(L.mappings,e,t,!0);_.delete(B),b.push(new qv(new Dp(y.range,B.range),M))}}}return Kk(()=>{function k(y,S){if(y.lineNumber<1||y.lineNumber>S.length)return!1;const B=S[y.lineNumber-1];return!(y.column<1||y.column>B.length+1)}function _(y,S){return!(y.startLineNumber<1||y.startLineNumber>S.length+1||y.endLineNumberExclusive<1||y.endLineNumberExclusive>S.length+1)}for(const y of x){if(!y.innerChanges)return!1;for(const S of y.innerChanges)if(!(k(S.modifiedRange.getStartPosition(),t)&&k(S.modifiedRange.getEndPosition(),t)&&k(S.originalRange.getStartPosition(),e)&&k(S.originalRange.getEndPosition(),e)))return!1;if(!_(y.modifiedRange,t)||!_(y.originalRange,e))return!1}return!0}),new Tve(x,b,g)}refineDiff(e,t,n,i,r){const a=new $re(e,n.seq1Range,r),o=new $re(t,n.seq2Range,r),s=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let l=s.diffs;return l=Ire(a,o,l),l=uYe(a,o,l),l=qZe(a,o,l),l=JZe(a,o,l),{mappings:l.map(d=>new Yh(a.translateRange(d.seq1Range),o.translateRange(d.seq2Range))),hitTimeout:s.hitTimeout}}}function uYe(u,e,t){const n=[];let i;function r(){if(!i)return;const o=i.s1Range.length-i.deleted;i.s2Range.length-i.added,Math.max(i.deleted,i.added)+(i.count-1)>o&&n.push(new Is(i.s1Range,i.s2Range)),i=void 0}for(const o of t){let s=function(E,g){var m,f,p,D;if(!i||!i.s1Range.containsRange(E)||!i.s2Range.containsRange(g))if(i&&!(i.s1Range.endExclusive0||e.length>0;){const n=u[0],i=e[0];let r;n&&(!i||n.seq1Range.start0&&t[t.length-1].seq1Range.endExclusive>=r.seq1Range.start?t[t.length-1]=t[t.length-1].join(r):t.push(r)}return t}function KK(u,e,t,n=!1){const i=[];for(const r of rYe(u.map(a=>iYe(a,e,t)),(a,o)=>a.originalRange.overlapOrTouch(o.originalRange)||a.modifiedRange.overlapOrTouch(o.modifiedRange))){const a=r[0],o=r[r.length-1];i.push(new D0(a.originalRange.join(o.originalRange),a.modifiedRange.join(o.modifiedRange),r.map(s=>s.innerChanges[0])))}return Kk(()=>!n&&i.length>0&&i[0].originalRange.startLineNumber!==i[0].modifiedRange.startLineNumber?!1:hve(i,(r,a)=>a.originalRange.startLineNumber-r.originalRange.endLineNumberExclusive===a.modifiedRange.startLineNumber-r.modifiedRange.endLineNumberExclusive&&r.originalRange.endLineNumberExclusive=t[u.modifiedRange.startLineNumber-1].length&&u.originalRange.startColumn-1>=e[u.originalRange.startLineNumber-1].length&&u.originalRange.startLineNumber<=u.originalRange.endLineNumber+i&&u.modifiedRange.startLineNumber<=u.modifiedRange.endLineNumber+i&&(n=1);const r=new vu(u.originalRange.startLineNumber+n,u.originalRange.endLineNumber+1+i),a=new vu(u.modifiedRange.startLineNumber+n,u.modifiedRange.endLineNumber+1+i);return new D0(r,a,[u])}function*rYe(u,e){let t,n;for(const i of u)n!==void 0&&e(n,i)?t.push(i):(t&&(yield t),t=[i]),n=i;t&&(yield t)}class Vre{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const t=e===0?0:Hre(this.lines[e-1]),n=e===this.lines.length?0:Hre(this.lines[e]);return 1e3-(t+n)}}function Hre(u){let e=0;for(;e0&&t.endExclusive>=e.length&&(t=new Pu(t.start-1,t.endExclusive),i=!0),this.lineRange=t;for(let r=this.lineRange.start;rString.fromCharCode(t)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Wre(e>0?this.elements[e-1]:-1),n=Wre(ee?n=r:t=r+1}const i=t===0?0:this.firstCharOffsetByLineMinusOne[t-1];return new ue(this.lineRange.start+t+1,e-i+1+this.offsetByLine[t])}translateRange(e){return O.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!SO(this.elements[e]))return;let t=e;for(;t>0&&SO(this.elements[t-1]);)t--;let n=e;for(;n=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57}const aYe={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Kre(u){return aYe[u]}function Wre(u){return u===10?7:u===13?6:oYe(u)?5:u>=97&&u<=122?0:u>=65&&u<=90?1:u>=48&&u<=57?2:u===-1?3:4}function oYe(u){return u===32||u===9}const BO=new Map;function Gre(u){let e=BO.get(u);return e===void 0&&(e=BO.size,BO.set(u,e)),e}class Ure{constructor(e,t){this.range=e,this.lines=t,this.histogram=[];let n=0;for(let i=e.startLineNumber-1;inew HZe,getAdvanced:()=>new tYe};function $E(u,e){const t=Math.pow(10,e);return Math.round(u*t)/t}class Qt{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=$E(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class el{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=$E(Math.max(Math.min(1,t),0),3),this.l=$E(Math.max(Math.min(1,n),0),3),this.a=$E(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,a=Math.max(t,n,i),o=Math.min(t,n,i);let s=0,l=0;const c=(o+a)/2,d=a-o;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),a){case t:s=(n-i)/d+(n1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:r}=e;let a,o,s;if(n===0)a=o=s=i;else{const l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;a=el._hue2rgb(c,l,t+1/3),o=el._hue2rgb(c,l,t),s=el._hue2rgb(c,l,t-1/3)}return new Qt(Math.round(a*255),Math.round(o*255),Math.round(s*255),r)}}class Vd{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=$E(Math.max(Math.min(1,t),0),3),this.v=$E(Math.max(Math.min(1,n),0),3),this.a=$E(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),a=Math.min(t,n,i),o=r-a,s=r===0?0:o/r;let l;return o===0?l=0:r===t?l=((n-i)/o%6+6)%6:r===n?l=(i-t)/o+2:l=(t-n)/o+4,new Vd(Math.round(l*60),s,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:r}=e,a=i*n,o=a*(1-Math.abs(t/60%2-1)),s=i-a;let[l,c,d]=[0,0,0];return t<60?(l=a,c=o):t<120?(l=o,c=a):t<180?(c=a,d=o):t<240?(c=o,d=a):t<300?(l=o,d=a):t<=360&&(l=a,d=o),l=Math.round((l+s)*255),c=Math.round((c+s)*255),d=Math.round((d+s)*255),new Qt(l,c,d,r)}}let ae=class J0{static fromHex(e){return J0.Format.CSS.parseHex(e)||J0.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:el.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Vd.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof Qt)this.rgba=e;else if(e instanceof el)this._hsla=e,this.rgba=el.toRGBA(e);else if(e instanceof Vd)this._hsva=e,this.rgba=Vd.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&Qt.equals(this.rgba,e.rgba)&&el.equals(this.hsla,e.hsla)&&Vd.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=J0._relativeLuminanceForComponent(this.rgba.r),t=J0._relativeLuminanceForComponent(this.rgba.g),n=J0._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*t+.0722*n;return $E(i,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n}isDarkerThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t0)for(const i of n){const r=i.filter(l=>l!==void 0),a=r[1],o=r[2];if(!o)continue;let s;if(a==="rgb"){const l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;s=Jre(KC(u,i),WC(o,l),!1)}else if(a==="rgba"){const l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;s=Jre(KC(u,i),WC(o,l),!0)}else if(a==="hsl"){const l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;s=Zre(KC(u,i),WC(o,l),!1)}else if(a==="hsla"){const l=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;s=Zre(KC(u,i),WC(o,l),!0)}else a==="#"&&(s=sYe(KC(u,i),a+o));s&&e.push(s)}return e}function cYe(u){return!u||typeof u.getValue!="function"||typeof u.positionAt!="function"?[]:lYe(u)}var w4=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};class dYe extends SZe{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;nthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const r=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>r&&(n=r,i=!0)}return i?{lineNumber:t,column:n}:e}}class KE{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new dYe(lt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,n){return w4(this,void 0,void 0,function*(){const i=this._getModel(e);return i?aQ.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,n,i){return w4(this,void 0,void 0,function*(){const r=this._getModel(e),a=this._getModel(t);return!r||!a?null:KE.computeDiff(r,a,n,i)})}static computeDiff(e,t,n,i){const r=i==="advanced"?qre.getAdvanced():qre.getLegacy(),a=e.getLinesContent(),o=t.getLinesContent(),s=r.computeDiff(a,o,n),l=s.changes.length>0?!1:this._modelsAreIdentical(e,t);function c(d){return d.map(h=>{var E;return[h.originalRange.startLineNumber,h.originalRange.endLineNumberExclusive,h.modifiedRange.startLineNumber,h.modifiedRange.endLineNumberExclusive,(E=h.innerChanges)===null||E===void 0?void 0:E.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:l,quitEarly:s.hitTimeout,changes:c(s.changes),moves:s.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,c(d.changes)])}}static _modelsAreIdentical(e,t){const n=e.getLineCount(),i=t.getLineCount();if(n!==i)return!1;for(let r=1;r<=n;r++){const a=e.getLineContent(r),o=t.getLineContent(r);if(a!==o)return!1}return!0}computeMoreMinimalEdits(e,t,n){return w4(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return t;const r=[];let a;t=t.slice(0).sort((o,s)=>{if(o.range&&s.range)return O.compareRangesUsingStarts(o.range,s.range);const l=o.range?0:1,c=s.range?0:1;return l-c});for(let{range:o,text:s,eol:l}of t){if(typeof l=="number"&&(a=l),O.isEmpty(o)&&!s)continue;const c=i.getValueInRange(o);if(s=s.replace(/\r\n|\n|\r/g,i.eol),c===s)continue;if(Math.max(s.length,c.length)>KE._diffLimit){r.push({range:o,text:s});continue}const d=FZe(c,s,n),h=i.offsetAt(O.lift(o).getStartPosition());for(const E of d){const g=i.positionAt(h+E.originalStart),m=i.positionAt(h+E.originalStart+E.originalLength),f={text:s.substr(E.modifiedStart,E.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:m.lineNumber,endColumn:m.column}};i.getValueInRange(f.range)!==f.text&&r.push(f)}}return typeof a=="number"&&r.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r})}computeLinks(e){return w4(this,void 0,void 0,function*(){const t=this._getModel(e);return t?MZe(t):null})}computeDefaultDocumentColors(e){return w4(this,void 0,void 0,function*(){const t=this._getModel(e);return t?cYe(t):null})}textualSuggest(e,t,n,i){return w4(this,void 0,void 0,function*(){const r=new ha,a=new RegExp(n,i),o=new Set;e:for(const s of e){const l=this._getModel(s);if(l){for(const c of l.words(a))if(!(c===t||!isNaN(Number(c)))&&(o.add(c),o.size>KE._suggestionsLimit))break e}}return{words:Array.from(o),duration:r.elapsed()}})}computeWordRanges(e,t,n,i){return w4(this,void 0,void 0,function*(){const r=this._getModel(e);if(!r)return Object.create(null);const a=new RegExp(n,i),o=Object.create(null);for(let s=t.startLineNumber;sthis._host.fhr(o,s)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,t),Promise.resolve(TY(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}KE._diffLimit=1e5;KE._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=X5e());const sQ=Gt("textResourceConfigurationService"),Rve=Gt("textResourcePropertiesService"),Ys=Gt("logService");var Hr;(function(u){u[u.Off=0]="Off",u[u.Trace=1]="Trace",u[u.Debug=2]="Debug",u[u.Info=3]="Info",u[u.Warning=4]="Warning",u[u.Error=5]="Error"})(Hr||(Hr={}));const Ive=Hr.Info;class Ove extends ie{constructor(){super(...arguments),this.level=Ive,this._onDidChangeLogLevel=this._register(new ee),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==Hr.Off&&this.level<=e}}class hYe extends Ove{constructor(e=Ive,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(Hr.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(Hr.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(Hr.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(Hr.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(Hr.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class EYe extends Ove{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const n of this.loggers)n.trace(e,...t)}debug(e,...t){for(const n of this.loggers)n.debug(e,...t)}info(e,...t){for(const n of this.loggers)n.info(e,...t)}warn(e,...t){for(const n of this.loggers)n.warn(e,...t)}error(e,...t){for(const n of this.loggers)n.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose()}}function gYe(u){switch(u){case Hr.Trace:return"trace";case Hr.Debug:return"debug";case Hr.Info:return"info";case Hr.Warning:return"warn";case Hr.Error:return"error";case Hr.Off:return"off"}}new Ne("logLevel",gYe(Hr.Info));const $e=Gt("ILanguageFeaturesService");var mYe=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},GC=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}},J8=globalThis&&globalThis.__awaiter||function(u,e,t,n){function i(r){return r instanceof t?r:new t(function(a){a(r)})}return new(t||(t=Promise))(function(r,a){function o(c){try{l(n.next(c))}catch(d){a(d)}}function s(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?r(c.value):i(c.value).then(o,s)}l((n=n.apply(u,e||[])).next())})};const Yre=60*1e3,Qre=5*60*1e3;function of(u,e){const t=u.getModel(e);return!(!t||t.isTooLargeForSyncing())}let WK=class extends ie{constructor(e,t,n,i,r){super(),this._modelService=e,this._workerManager=this._register(new pYe(this._modelService,i)),this._logService=n,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(a,o)=>of(this._modelService,a.uri)?this._workerManager.withWorker().then(s=>s.computeLinks(a.uri)).then(s=>s&&{links:s}):Promise.resolve({links:[]})})),this._register(r.completionProvider.register("*",new fYe(this._workerManager,t,this._modelService,i)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return of(this._modelService,e)}computedUnicodeHighlights(e,t,n){return this._workerManager.withWorker().then(i=>i.computedUnicodeHighlights(e,t,n))}computeDiff(e,t,n,i){return J8(this,void 0,void 0,function*(){const r=yield this._workerManager.withWorker().then(s=>s.computeDiff(e,t,n,i));if(!r)return null;return{identical:r.identical,quitEarly:r.quitEarly,changes:o(r.changes),moves:r.moves.map(s=>new qv(new Dp(new vu(s[0],s[1]),new vu(s[2],s[3])),o(s[4])))};function o(s){return s.map(l=>{var c;return new D0(new vu(l[0],l[1]),new vu(l[2],l[3]),(c=l[4])===null||c===void 0?void 0:c.map(d=>new Yh(new O(d[0],d[1],d[2],d[3]),new O(d[4],d[5],d[6],d[7]))))})}})}computeMoreMinimalEdits(e,t,n=!1){if(ca(t)){if(!of(this._modelService,e))return Promise.resolve(t);const i=ha.create(),r=this._workerManager.withWorker().then(a=>a.computeMoreMinimalEdits(e,t,n));return r.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())),Promise.race([r,Fg(1e3).then(()=>t)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return of(this._modelService,e)}navigateValueSet(e,t,n){return this._workerManager.withWorker().then(i=>i.navigateValueSet(e,t,n))}canComputeWordRanges(e){return of(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(n=>n.computeWordRanges(e,t))}};WK=mYe([GC(0,Bn),GC(1,sQ),GC(2,Ys),GC(3,an),GC(4,$e)],WK);class fYe{constructor(e,t,n,i){this.languageConfigurationService=i,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}provideCompletionItems(e,t){return J8(this,void 0,void 0,function*(){const n=this._configurationService.getValue(e.uri,t,"editor");if(!n.wordBasedSuggestions)return;const i=[];if(n.wordBasedSuggestionsMode==="currentDocument")of(this._modelService,e.uri)&&i.push(e.uri);else for(const d of this._modelService.getModels())of(this._modelService,d.uri)&&(d===e?i.unshift(d.uri):(n.wordBasedSuggestionsMode==="allDocuments"||d.getLanguageId()===e.getLanguageId())&&i.push(d.uri));if(i.length===0)return;const r=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),a=e.getWordAtPosition(t),o=a?new O(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):O.fromPositions(t),s=o.setEndPosition(t.lineNumber,t.column),c=yield(yield this._workerManager.withWorker()).textualSuggest(i,a==null?void 0:a.word,r);if(c)return{duration:c.duration,suggestions:c.words.map(d=>({kind:18,label:d,insertText:d,range:{insert:s,replace:o}}))}})}}class pYe extends ie{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new RF).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(Qre/2)),this._register(this._modelService.onModelRemoved(i=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>Qre&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new lQ(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class DYe extends ie{constructor(e,t,n){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const i=new RF;i.cancelAndSet(()=>this._checkStopModelSync(),Math.round(Yre/2)),this._register(i)}}dispose(){for(const e in this._syncedModels)Au(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const n of e){const i=n.toString();this._syncedModels[i]||this._beginModelSync(n,t),this._syncedModels[i]&&(this._syncedModelsLastUsedTime[i]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(const n in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[n]>Yre&&t.push(n);for(const n of t)this._stopModelSync(n)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n||!t&&n.isTooLargeForSyncing())return;const i=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const r=new fe;r.add(n.onDidChangeContent(a=>{this._proxy.acceptModelChanged(i.toString(),a)})),r.add(n.onWillDispose(()=>{this._stopModelSync(i)})),r.add(bt(()=>{this._proxy.acceptRemovedModel(i)})),this._syncedModels[i]=r}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Au(t)}}class Xre{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class wO{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class lQ extends ie{constructor(e,t,n,i){super(),this.languageConfigurationService=i,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new bP(n),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new fZe(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new wO(this)))}catch(e){jK(e),this._worker=new Xre(new KE(new wO(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(jK(e),this._worker=new Xre(new KE(new wO(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new DYe(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return J8(this,void 0,void 0,function*(){return this._disposed?Promise.reject(WUe()):this._getProxy().then(n=>(this._getOrCreateModelManager(n).ensureSyncedResources(e,t),n))})}computedUnicodeHighlights(e,t,n){return this._withSyncedResources([e]).then(i=>i.computeUnicodeHighlights(e.toString(),t,n))}computeDiff(e,t,n,i){return this._withSyncedResources([e,t],!0).then(r=>r.computeDiff(e.toString(),t.toString(),n,i))}computeMoreMinimalEdits(e,t,n){return this._withSyncedResources([e]).then(i=>i.computeMoreMinimalEdits(e.toString(),t,n))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(t=>t.computeDefaultDocumentColors(e.toString()))}textualSuggest(e,t,n){return J8(this,void 0,void 0,function*(){const i=yield this._withSyncedResources(e),r=n.source,a=dS(n);return i.textualSuggest(e.map(o=>o.toString()),t,r,a)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(n=>{const i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);const r=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),a=r.source,o=dS(r);return n.computeWordRanges(e.toString(),t,a,o)})}navigateValueSet(e,t,n){return this._withSyncedResources([e]).then(i=>{const r=this._modelService.getModel(e);if(!r)return null;const a=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),o=a.source,s=dS(a);return i.navigateValueSet(e.toString(),t,n,o,s)})}dispose(){super.dispose(),this._disposed=!0}}function xYe(u,e,t){return new vYe(u,e,t)}class vYe extends lQ{constructor(e,t,n){super(e,n.keepIdleModels||!1,n.label,t),this._foreignModuleId=n.moduleId,this._foreignModuleCreateData=n.createData||null,this._foreignModuleHost=n.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?TY(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(n=>{this._foreignModuleCreateData=null;const i=(o,s)=>e.fmr(o,s),r=(o,s)=>function(){const l=Array.prototype.slice.call(arguments,0);return s(o,l)},a={};for(const o of n)a[o]=r(o,i);return a})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(t=>this.getProxy())}}class $r{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let n="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return i&1&&(n+=" mtki"),i&2&&(n+=" mtkb"),i&4&&(n+=" mtku"),i&8&&(n+=" mtks"),n}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;i&1&&(r+="font-style: italic;"),i&2&&(r+="font-weight: bold;");let a="";return i&4&&(a+=" underline"),i&8&&(a+=" line-through"),a&&(r+=`text-decoration:${a};`),r}static getPresentationFromMetadata(e){const t=this.getForeground(e),n=this.getFontStyle(e);return{foreground:t,italic:!!(n&1),bold:!!(n&2),underline:!!(n&4),strikethrough:!!(n&8)}}}class Hi{static createEmpty(e,t){const n=Hi.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=n,new Hi(i,e,t)}constructor(e,t,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=n}equals(e){return e instanceof Hi?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,t,n){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let a=i;a0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const t=this._tokens[(e<<1)+1],n=$r.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const t=this._tokens[(e<<1)+1];return $r.getTokenType(t)}getForeground(e){const t=this._tokens[(e<<1)+1];return $r.getForeground(t)}getClassName(e){const t=this._tokens[(e<<1)+1];return $r.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[(e<<1)+1];return $r.getInlineStyleFromMetadata(n,t)}getPresentation(e){const t=this._tokens[(e<<1)+1];return $r.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return Hi.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new cQ(this,e,t,n)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let r=0;r>>1)-1;for(;nt&&(i=r)}return n}withInserted(e){if(e.length===0)return this;let t=0,n=0,i="";const r=new Array;let a=0;for(;;){const o=ta){i+=this._text.substring(a,s.offset);const l=this._tokens[(t<<1)+1];r.push(i.length,l),a=s.offset}i+=s.text,r.push(i.length,s.tokenMetadata),n++}else break}return new Hi(new Uint32Array(r),i,this._languageIdCodec)}}Hi.defaultTokenMetadata=(32768|2<<24)>>>0;class cQ{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let r=this._firstTokenIndex,a=e.getCount();r=n);r++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof cQ?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class eo{constructor(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const n=e.length,i=t.length;if(n!==i)return!1;for(let r=0;r=r||(o[s++]=new eo(Math.max(1,l.startColumn-i+1),Math.min(a+1,l.endColumn-i+1),l.className,l.type));return o}static filter(e,t,n,i){if(e.length===0)return[];const r=[];let a=0;for(let o=0,s=e.length;ot||c.isEmpty()&&(l.type===0||l.type===3))continue;const d=c.startLineNumber===t?c.startColumn:n,h=c.endLineNumber===t?c.endColumn:i;r[a++]=new eo(d,h,l.inlineClassName,l.type)}return r}static _typeCompare(e,t){const n=[2,0,1,3];return n[e]-n[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const n=eo._typeCompare(e.type,t.type);return n!==0?n:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t),this.metadata.splice(i,0,n);break}this.count++}};class bYe{static normalize(e,t){if(t.length===0)return[];const n=[],i=new CYe;let r=0;for(let a=0,o=t.length;a1){const m=e.charCodeAt(l-2);Qi(m)&&l--}if(c>1){const m=e.charCodeAt(c-2);Qi(m)&&c--}const E=l-1,g=c-2;r=i.consumeLowerThan(E,r,n),i.count===0&&(r=E),i.insert(g,d,h)}return i.consumeLowerThan(1073741824,r,n),n}}class dr{constructor(e,t,n,i){this.endIndex=e,this.type=t,this.metadata=n,this.containsRTL=i,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class jve{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class w1{constructor(e,t,n,i,r,a,o,s,l,c,d,h,E,g,m,f,p,D,x){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=r,this.containsRTL=a,this.fauxIndentLength=o,this.lineTokens=s,this.lineDecorations=l.sort(eo.compare),this.tabSize=c,this.startVisibleColumn=d,this.spaceWidth=h,this.stopRenderingLineAfter=m,this.renderWhitespace=f==="all"?4:f==="boundary"?1:f==="selection"?2:f==="trailing"?3:0,this.renderControlCharacters=p,this.fontLigatures=D,this.selectionsOnLine=x&&x.sort((_,y)=>_.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,n,i){const r=(t<<16|n<<0)>>>0;this._data[e-1]=r,this._horizontalOffset[e-1]=i}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),n=_d.getPartIndex(t),i=_d.getCharIndex(t);return new dQ(n,i)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,n){if(this.length===0)return 0;const i=(e<<16|n<<0)>>>0;let r=0,a=this.length-1;for(;r+1>>1,f=this._data[m];if(f===i)return m;f>i?a=m:r=m}if(r===a)return r;const o=this._data[r],s=this._data[a];if(o===i)return r;if(s===i)return a;const l=_d.getPartIndex(o),c=_d.getCharIndex(o),d=_d.getPartIndex(s);let h;l!==d?h=t:h=_d.getCharIndex(s);const E=n-c,g=h-n;return E<=g?r:a}}class UK{constructor(e,t,n){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}}function Jv(u,e){if(u.lineContent.length===0){if(u.lineDecorations.length>0){e.appendString("");let t=0,n=0,i=0;for(const a of u.lineDecorations)(a.type===1||a.type===2)&&(e.appendString(''),a.type===1&&(i|=1,t++),a.type===2&&(i|=2,n++));e.appendString("");const r=new _d(1,t+n);return r.setColumnInfo(1,t,0,0),new UK(r,!1,i)}return e.appendString(""),new UK(new _d(0,0),!1,0)}return zYe(FYe(u),e)}class kYe{constructor(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}}function IF(u){const e=new pp(1e4),t=Jv(u,e);return new kYe(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}class yYe{constructor(e,t,n,i,r,a,o,s,l,c,d,h,E,g,m,f){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=r,this.overflowingCharCount=a,this.parts=o,this.containsForeignElements=s,this.fauxIndentLength=l,this.tabSize=c,this.startVisibleColumn=d,this.containsRTL=h,this.spaceWidth=E,this.renderSpaceCharCode=g,this.renderWhitespace=m,this.renderControlCharacters=f}}function FYe(u){const e=u.lineContent;let t,n,i;u.stopRenderingLineAfter!==-1&&u.stopRenderingLineAfter0){for(let o=0,s=u.lineDecorations.length;o0&&(r[a++]=new dr(n,"",0,!1));let o=n;for(let s=0,l=t.getCount();s=i){const E=e?B5(u.substring(o,i)):!1;r[a++]=new dr(i,d,0,E);break}const h=e?B5(u.substring(o,c)):!1;r[a++]=new dr(c,d,0,h),o=c}return r}function _Ye(u,e,t){let n=0;const i=[];let r=0;if(t)for(let a=0,o=e.length;a=50&&(i[r++]=new dr(E+1,c,d,h),g=E+1,E=-1);g!==l&&(i[r++]=new dr(l,c,d,h))}else i[r++]=s;n=l}else for(let a=0,o=e.length;a50){const d=s.type,h=s.metadata,E=s.containsRTL,g=Math.ceil(c/50);for(let m=1;m=8234&&u<=8238||u>=8294&&u<=8297||u>=8206&&u<=8207||u===1564}function SYe(u,e){const t=[];let n=new dr(0,"",0,!1),i=0;for(const r of e){const a=r.endIndex;for(;in.endIndex&&(n=new dr(i,r.type,r.metadata,r.containsRTL),t.push(n)),n=new dr(i+1,"mtkcontrol",r.metadata,!1),t.push(n))}i>n.endIndex&&(n=new dr(a,r.type,r.metadata,r.containsRTL),t.push(n))}return t}function BYe(u,e,t,n){const i=u.continuesWithWrappedLine,r=u.fauxIndentLength,a=u.tabSize,o=u.startVisibleColumn,s=u.useMonospaceOptimizations,l=u.selectionsOnLine,c=u.renderWhitespace===1,d=u.renderWhitespace===3,h=u.renderSpaceWidth!==u.spaceWidth,E=[];let g=0,m=0,f=n[m].type,p=n[m].containsRTL,D=n[m].endIndex;const x=n.length;let b=!1,k=_a(e),_;k===-1?(b=!0,k=t,_=t):_=Lc(e);let y=!1,S=0,B=l&&l[S],L=o%a;for(let N=r;N=B.endOffset&&(S++,B=l&&l[S]);let A;if(N_)A=!0;else if(F===9)A=!0;else if(F===32)if(c)if(y)A=!0;else{const z=N+1N),A&&d&&(A=b||N>_),A&&p&&N>=k&&N<=_&&(A=!1),y){if(!A||!s&&L>=a){if(h){const z=g>0?E[g-1].endIndex:r;for(let P=z+1;P<=N;P++)E[g++]=new dr(P,"mtkw",1,!1)}else E[g++]=new dr(N,"mtkw",1,!1);L=L%a}}else(N===D||A&&N>r)&&(E[g++]=new dr(N,f,0,p),L=L%a);for(F===9?L=a:kg(F)?L+=2:L++,y=A;N===D&&(m++,m0?e.charCodeAt(t-1):0,F=t>1?e.charCodeAt(t-2):0;N===32&&F!==32&&F!==9||(M=!0)}else M=!0;if(M)if(h){const N=g>0?E[g-1].endIndex:r;for(let F=N+1;F<=t;F++)E[g++]=new dr(F,"mtkw",1,!1)}else E[g++]=new dr(t,"mtkw",1,!1);else E[g++]=new dr(t,f,0,p);return E}function wYe(u,e,t,n){n.sort(eo.compare);const i=bYe.normalize(u,n),r=i.length;let a=0;const o=[];let s=0,l=0;for(let d=0,h=t.length;dl&&(l=D.startOffset,o[s++]=new dr(l,m,f,p)),D.endOffset+1<=g)l=D.endOffset+1,o[s++]=new dr(l,m+" "+D.className,f|D.metadata,p),a++;else{l=g,o[s++]=new dr(l,m+" "+D.className,f|D.metadata,p);break}}g>l&&(l=g,o[s++]=new dr(l,m,f,p))}const c=t[t.length-1].endIndex;if(a'):e.appendString("");for(let B=0,L=l.length;B=c&&(H+=J)}}for(P&&(e.appendString(' style="width:'),e.appendString(String(g*j)),e.appendString('px"')),e.appendASCIICharCode(62);b1?e.appendCharCode(8594):e.appendCharCode(65515);for(let J=2;J<=q;J++)e.appendCharCode(160)}else H=2,q=1,e.appendCharCode(m),e.appendCharCode(8204);_+=H,y+=q,b>=c&&(k+=q)}}else for(e.appendASCIICharCode(62);b=c&&(k+=H)}I?S++:S=0,b>=a&&!x&&M.isPseudoAfter()&&(x=!0,D.setColumnInfo(b+1,B,_,y)),e.appendString("")}return x||D.setColumnInfo(a+1,l.length-1,_,y),o&&(e.appendString(''),e.appendString(v("showMore","Show more ({0})",MYe(s))),e.appendString("")),e.appendString(""),new UK(D,E,i)}function LYe(u){return u.toString(16).toUpperCase().padStart(4,"0")}function MYe(u){return u<1024?v("overflow.chars","{0} chars",u):u<1024*1024?`${(u/1024).toFixed(1)} KB`:`${(u/1024/1024).toFixed(1)} MB`}class tae{constructor(e,t,n,i){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=n|0,this.height=i|0}}class TYe{constructor(e,t){this.tabSize=e,this.data=t}}class hQ{constructor(e,t,n,i,r,a,o){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=r,this.tokens=a,this.inlineDecorations=o}}class La{constructor(e,t,n,i,r,a,o,s,l,c){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=i,this.isBasicASCII=La.isBasicASCII(n,a),this.containsRTL=La.containsRTL(n,this.isBasicASCII,r),this.tokens=o,this.inlineDecorations=s,this.tabSize=l,this.startVisibleColumn=c}static isBasicASCII(e,t){return t?TF(e):!0}static containsRTL(e,t,n){return!t&&n?B5(e):!1}}class Kx{constructor(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}}class PYe{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.inlineClassName=n,this.inlineClassNameAffectsLetterSpacing=i}toInlineDecoration(e){return new Kx(new O(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class Hve{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class $ve{constructor(e,t,n){this.color=e,this.zIndex=t,this.data=n}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function NYe(u){return Array.isArray(u)}function RYe(u){return!NYe(u)}function Kve(u){return typeof u=="string"}function uae(u){return!Kve(u)}function PD(u){return!u}function WE(u,e){return u.ignoreCase&&e?e.toLowerCase():e}function nae(u){return u.replace(/[&<>'"_]/g,"-")}function IYe(u,e){console.log(`${u.languageId}: ${e}`)}function mn(u,e){return new Error(`${u.languageId}: ${e}`)}function oE(u,e,t,n,i){const r=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let a=null;return e.replace(r,function(o,s,l,c,d,h,E,g,m){return PD(l)?PD(c)?!PD(d)&&d0;){const n=u.tokenizer[t];if(n)return n;const i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return null}function OYe(u,e){let t=e;for(;t&&t.length>0;){if(u.stateNames[t])return!0;const i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return!1}var jYe=globalThis&&globalThis.__decorate||function(u,e,t,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(u,e,t,n);else for(var o=u.length-1;o>=0;o--)(a=u[o])&&(r=(i<3?a(r):i>3?a(e,t,r):a(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},VYe=globalThis&&globalThis.__param||function(u,e){return function(t,n){e(t,n,u)}};const Wve=5;class qk{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new Wx(e,t);let n=Wx.getStackElementId(e);n.length>0&&(n+="|"),n+=t;let i=this._entries[n];return i||(i=new Wx(e,t),this._entries[n]=i,i)}}qk._INSTANCE=new qk(Wve);class Wx{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(e){return Wx._equals(this,e)}push(e){return qk.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return qk.create(this.parent,e)}}class YD{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new YD(this.languageId,this.state)}}class sE{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(t!==null)return new Pb(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new Pb(e,t);const n=Wx.getStackElementId(e);let i=this._entries[n];return i||(i=new Pb(e,null),this._entries[n]=i,i)}}sE._INSTANCE=new sE(Wve);class Pb{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:sE.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof Pb)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class HYe{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new Ok(e,t,this._languageId)))}nestedLanguageTokenize(e,t,n,i){const r=n.languageId,a=n.state,o=Kn.get(r);if(!o)return this.enterLanguage(r),this.emit(i,""),a;const s=o.tokenize(e,t,a);if(i!==0)for(const l of s.tokens)this._tokens.push(new Ok(l.offset+i,l.type,l.language));else this._tokens=this._tokens.concat(s.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,s.endState}finalize(e){return new WY(this._tokens,e)}}class Z8{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const n=this._theme.match(this._currentLanguageId,t)|1024;this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,t,n){const i=e!==null?e.length:0,r=t.length,a=n!==null?n.length:0;if(i===0&&r===0&&a===0)return new Uint32Array(0);if(i===0&&r===0)return n;if(r===0&&a===0)return e;const o=new Uint32Array(i+r+a);e!==null&&o.set(e);for(let s=0;s{if(a)return;let s=!1;for(let l=0,c=o.changedLanguages.length;l{o.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const n=Kn.get(t);if(n){if(n instanceof Gve){const i=n.getLoadStatus();i.loaded===!1&&e.push(i.promise)}continue}Kn.isResolved(t)||e.push(Kn.getOrCreate(t))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(t=>{})}}getInitialState(){const e=qk.create(null,this._lexer.start);return sE.create(e,null)}tokenize(e,t,n){if(e.length>=this._maxTokenizationLineLength)return nQ(this._languageId,n);const i=new HYe,r=this._tokenize(e,t,n,i);return i.finalize(r)}tokenizeEncoded(e,t,n){if(e.length>=this._maxTokenizationLineLength)return xP(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),n);const i=new Z8(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),r=this._tokenize(e,t,n,i);return i.finalize(r)}_tokenize(e,t,n,i){return n.embeddedLanguageData?this._nestedTokenize(e,t,n,0,i):this._myTokenize(e,t,n,0,i)}_findLeavingNestedLanguageOffset(e,t){let n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=b_(this._lexer,t.stack.state),!n))throw mn(this._lexer,"tokenizer state is not defined: "+t.stack.state);let i=-1,r=!1;for(const a of n){if(!uae(a.action)||a.action.nextEmbedded!=="@pop")continue;r=!0;let o=a.regex;const s=a.regex.source;if(s.substr(0,4)==="^(?:"&&s.substr(s.length-1,1)===")"){const c=(o.ignoreCase?"i":"")+(o.unicode?"u":"");o=new RegExp(s.substr(4,s.length-5),c)}const l=e.search(o);l===-1||l!==0&&a.matchOnlyAtLineStart||(i===-1||l0&&r.nestedLanguageTokenize(o,!1,n.embeddedLanguageData,i);const s=e.substring(a);return this._myTokenize(s,t,n,i+a,r)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,n,i,r){r.enterLanguage(this._languageId);const a=e.length,o=t&&this._lexer.includeLF?e+` -`:e,s=o.length;let l=n.embeddedLanguageData,c=n.stack,d=0,h=null,E=!0;for(;E||d=s)break;E=!1;let B=this._lexer.tokenizer[p];if(!B&&(B=b_(this._lexer,p),!B))throw mn(this._lexer,"tokenizer state is not defined: "+p);const L=o.substr(d);for(const M of B)if((d===0||!M.matchOnlyAtLineStart)&&(D=L.match(M.regex),D)){x=D[0],b=M.action;break}}if(D||(D=[""],x=""),b||(d=this._lexer.maxStack)throw mn(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(p)}else if(b.next==="@pop"){if(c.depth<=1)throw mn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(k));c=c.pop()}else if(b.next==="@popall")c=c.popall();else{let B=oE(this._lexer,b.next,x,D,p);if(B[0]==="@"&&(B=B.substr(1)),b_(this._lexer,B))c=c.push(B);else throw mn(this._lexer,"trying to set a next state '"+B+"' that is undefined in rule: "+this._safeRuleName(k))}}b.log&&typeof b.log=="string"&&IYe(this._lexer,this._lexer.languageId+": "+oE(this._lexer,b.log,x,D,p))}if(y===null)throw mn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(k));const S=B=>{const L=this._languageService.getLanguageIdByLanguageName(B)||this._languageService.getLanguageIdByMimeType(B)||B,M=this._getNestedEmbeddedLanguageData(L);if(d0)throw mn(this._lexer,"groups cannot be nested: "+this._safeRuleName(k));if(D.length!==y.length+1)throw mn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(k));let B=0;for(let L=1;Lu});class EQ{static colorizeElement(e,t,n,i){i=i||{};const r=i.theme||"vs",a=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!a)return console.error("Mode not detected"),Promise.resolve();const o=t.getLanguageIdByMimeType(a)||a;e.setTheme(r);const s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+r;const l=c=>{var d;const h=(d=zO==null?void 0:zO.createHTML(c))!==null&&d!==void 0?d:c;n.innerHTML=h};return this.colorize(t,s||"",o,i).then(l,c=>console.error(c))}static colorize(e,t,n,i){return KYe(this,void 0,void 0,function*(){const r=e.languageIdCodec;let a=4;i&&typeof i.tabSize=="number"&&(a=i.tabSize),QY(t)&&(t=t.substr(1));const o=E1(t);if(!e.isRegisteredLanguageId(n))return iae(o,a,r);const s=yield Kn.getOrCreate(n);return s?WYe(o,a,s,r):iae(o,a,r)})}static colorizeLine(e,t,n,i,r=4){const a=La.isBasicASCII(e,t),o=La.containsRTL(e,a,n);return IF(new w1(!1,!0,e,!1,a,o,0,i,[],r,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,n=4){const i=e.getLineContent(t);e.tokenization.forceTokenization(t);const a=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),a,n)}}function WYe(u,e,t,n){return new Promise((i,r)=>{const a=()=>{const o=GYe(u,e,t,n);if(t instanceof Jk){const s=t.getLoadStatus();if(s.loaded===!1){s.promise.then(a,r);return}}i(o)};a()})}function iae(u,e,t){let n=[];const r=new Uint32Array(2);r[0]=0,r[1]=33587200;for(let a=0,o=u.length;a")}return n.join("")}function GYe(u,e,t,n){let i=[],r=t.getInitialState();for(let a=0,o=u.length;a"),r=l.endState}return i.join("")}const gQ={clipboard:{writeText:wc||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:wc||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>wc||Zqe()?0:navigator.keyboard||Zh?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function qK(u,e){if(typeof u=="number"){if(u===0)return null;const t=(u&65535)>>>0,n=(u&4294901760)>>>16;return n!==0?new LO([k_(t,e),k_(n,e)]):new LO([k_(t,e)])}else{const t=[];for(let n=0;n1?t-1:0),i=1;i/gm),fQe=Xh(/^data-[\-\w.\u00B7-\uFFFF]/),pQe=Xh(/^aria-[\-\w]+$/),DQe=Xh(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xQe=Xh(/^(?:\w+script|data):/i),vQe=Xh(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};function ld(u){if(Array.isArray(u)){for(var e=0,t=Array(u.length);e"u"?null:window},bQe=function(e,t){if((typeof e>"u"?"undefined":q6(e))!=="object"||typeof e.createPolicy!="function")return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(o){return o}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function qve(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CQe(),e=function(ge){return qve(ge)};if(e.version="2.3.1",e.removed=[],!u||!u.document||u.document.nodeType!==9)return e.isSupported=!1,e;var t=u.document,n=u.document,i=u.DocumentFragment,r=u.HTMLTemplateElement,a=u.Node,o=u.Element,s=u.NodeFilter,l=u.NamedNodeMap,c=l===void 0?u.NamedNodeMap||u.MozNamedAttrMap:l,d=u.Text,h=u.Comment,E=u.DOMParser,g=u.trustedTypes,m=o.prototype,f=y_(m,"cloneNode"),p=y_(m,"nextSibling"),D=y_(m,"childNodes"),x=y_(m,"parentNode");if(typeof r=="function"){var b=n.createElement("template");b.content&&b.content.ownerDocument&&(n=b.content.ownerDocument)}var k=bQe(g,t),_=k&&bu?k.createHTML(""):"",y=n,S=y.implementation,B=y.createNodeIterator,L=y.createDocumentFragment,M=y.getElementsByTagName,N=t.importNode,F={};try{F=Sm(n).documentMode?n.documentMode:{}}catch{}var A={};e.isSupported=typeof x=="function"&&S&&typeof S.createHTMLDocument<"u"&&F!==9;var z=gQe,P=mQe,I=fQe,j=pQe,V=xQe,H=vQe,q=DQe,J=null,Q=Vu({},[].concat(ld(cae),ld(MO),ld(TO),ld(PO),ld(dae))),X=null,Y=Vu({},[].concat(ld(hae),ld(NO),ld(Eae),ld(F_))),le=null,he=null,ze=!0,Ie=!0,We=!1,Ee=!1,ut=!1,we=!1,Ge=!1,nt=!1,Ht=!1,eu=!0,bu=!1,ru=!0,oe=!0,se=!1,re={},$=null,Z=Vu({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ne=null,te=Vu({},["audio","video","img","source","image","track"]),me=null,_e=Vu({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ue="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",ct="http://www.w3.org/1999/xhtml",Dt=ct,$t=!1,He=null,Pe=n.createElement("form"),Ju=function(ge){He&&He===ge||((!ge||(typeof ge>"u"?"undefined":q6(ge))!=="object")&&(ge={}),ge=Sm(ge),J="ALLOWED_TAGS"in ge?Vu({},ge.ALLOWED_TAGS):Q,X="ALLOWED_ATTR"in ge?Vu({},ge.ALLOWED_ATTR):Y,me="ADD_URI_SAFE_ATTR"in ge?Vu(Sm(_e),ge.ADD_URI_SAFE_ATTR):_e,ne="ADD_DATA_URI_TAGS"in ge?Vu(Sm(te),ge.ADD_DATA_URI_TAGS):te,$="FORBID_CONTENTS"in ge?Vu({},ge.FORBID_CONTENTS):Z,le="FORBID_TAGS"in ge?Vu({},ge.FORBID_TAGS):{},he="FORBID_ATTR"in ge?Vu({},ge.FORBID_ATTR):{},re="USE_PROFILES"in ge?ge.USE_PROFILES:!1,ze=ge.ALLOW_ARIA_ATTR!==!1,Ie=ge.ALLOW_DATA_ATTR!==!1,We=ge.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=ge.SAFE_FOR_TEMPLATES||!1,ut=ge.WHOLE_DOCUMENT||!1,nt=ge.RETURN_DOM||!1,Ht=ge.RETURN_DOM_FRAGMENT||!1,eu=ge.RETURN_DOM_IMPORT!==!1,bu=ge.RETURN_TRUSTED_TYPE||!1,Ge=ge.FORCE_BODY||!1,ru=ge.SANITIZE_DOM!==!1,oe=ge.KEEP_CONTENT!==!1,se=ge.IN_PLACE||!1,q=ge.ALLOWED_URI_REGEXP||q,Dt=ge.NAMESPACE||ct,Ee&&(Ie=!1),Ht&&(nt=!0),re&&(J=Vu({},[].concat(ld(dae))),X=[],re.html===!0&&(Vu(J,cae),Vu(X,hae)),re.svg===!0&&(Vu(J,MO),Vu(X,NO),Vu(X,F_)),re.svgFilters===!0&&(Vu(J,TO),Vu(X,NO),Vu(X,F_)),re.mathMl===!0&&(Vu(J,PO),Vu(X,Eae),Vu(X,F_))),ge.ADD_TAGS&&(J===Q&&(J=Sm(J)),Vu(J,ge.ADD_TAGS)),ge.ADD_ATTR&&(X===Y&&(X=Sm(X)),Vu(X,ge.ADD_ATTR)),ge.ADD_URI_SAFE_ATTR&&Vu(me,ge.ADD_URI_SAFE_ATTR),ge.FORBID_CONTENTS&&($===Z&&($=Sm($)),Vu($,ge.FORBID_CONTENTS)),oe&&(J["#text"]=!0),ut&&Vu(J,["html","head","body"]),J.table&&(Vu(J,["tbody"]),delete le.tbody),ls&&ls(ge),He=ge)},su=Vu({},["mi","mo","mn","ms","mtext"]),En=Vu({},["foreignobject","desc","title","annotation-xml"]),wu=Vu({},MO);Vu(wu,TO),Vu(wu,hQe);var ui=Vu({},PO);Vu(ui,EQe);var $u=function(ge){var Ye=x(ge);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:ct,tagName:"template"});var xt=qm(ge.tagName),Zu=qm(Ye.tagName);if(ge.namespaceURI===it)return Ye.namespaceURI===ct?xt==="svg":Ye.namespaceURI===Ue?xt==="svg"&&(Zu==="annotation-xml"||su[Zu]):!!wu[xt];if(ge.namespaceURI===Ue)return Ye.namespaceURI===ct?xt==="math":Ye.namespaceURI===it?xt==="math"&&En[Zu]:!!ui[xt];if(ge.namespaceURI===ct){if(Ye.namespaceURI===it&&!En[Zu]||Ye.namespaceURI===Ue&&!su[Zu])return!1;var xr=Vu({},["title","style","font","a","script"]);return!ui[xt]&&(xr[xt]||!wu[xt])}return!1},_u=function(ge){qC(e.removed,{element:ge});try{ge.parentNode.removeChild(ge)}catch{try{ge.outerHTML=_}catch{ge.remove()}}},Vn=function(ge,Ye){try{qC(e.removed,{attribute:Ye.getAttributeNode(ge),from:Ye})}catch{qC(e.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(ge),ge==="is"&&!X[ge])if(nt||Ht)try{_u(Ye)}catch{}else try{Ye.setAttribute(ge,"")}catch{}},kn=function(ge){var Ye=void 0,xt=void 0;if(Ge)ge=""+ge;else{var Zu=sae(ge,/^[\r\n\t ]+/);xt=Zu&&Zu[0]}var xr=k?k.createHTML(ge):ge;if(Dt===ct)try{Ye=new E().parseFromString(xr,"text/html")}catch{}if(!Ye||!Ye.documentElement){Ye=S.createDocument(Dt,"template",null);try{Ye.documentElement.innerHTML=$t?"":xr}catch{}}var dt=Ye.body||Ye.documentElement;return ge&&xt&&dt.insertBefore(n.createTextNode(xt),dt.childNodes[0]||null),Dt===ct?M.call(Ye,ut?"html":"body")[0]:ut?Ye.documentElement:dt},Ku=function(ge){return B.call(ge.ownerDocument||ge,ge,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,null,!1)},zu=function(ge){return ge instanceof d||ge instanceof h?!1:typeof ge.nodeName!="string"||typeof ge.textContent!="string"||typeof ge.removeChild!="function"||!(ge.attributes instanceof c)||typeof ge.removeAttribute!="function"||typeof ge.setAttribute!="function"||typeof ge.namespaceURI!="string"||typeof ge.insertBefore!="function"},Ou=function(ge){return(typeof a>"u"?"undefined":q6(a))==="object"?ge instanceof a:ge&&(typeof ge>"u"?"undefined":q6(ge))==="object"&&typeof ge.nodeType=="number"&&typeof ge.nodeName=="string"},yn=function(ge,Ye,xt){A[ge]&&sQe(A[ge],function(Zu){Zu.call(e,Ye,xt,He)})},Si=function(ge){var Ye=void 0;if(yn("beforeSanitizeElements",ge,null),zu(ge)||sae(ge.nodeName,/[\u0080-\uFFFF]/))return _u(ge),!0;var xt=qm(ge.nodeName);if(yn("uponSanitizeElement",ge,{tagName:xt,allowedTags:J}),!Ou(ge.firstElementChild)&&(!Ou(ge.content)||!Ou(ge.content.firstElementChild))&&K1(/<[/\w]/g,ge.innerHTML)&&K1(/<[/\w]/g,ge.textContent)||xt==="select"&&K1(/