@xtrable-ltd/nanoesis 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/adapter-azure-blob.js +1 -1
  2. package/dist/{chunk-PKCYTOHW.js → chunk-26VCV3IE.js} +1 -1
  3. package/dist/{chunk-CBLBQP27.js → chunk-WHK3SBV7.js} +41 -2
  4. package/dist/editor-api.js +2 -2
  5. package/dist/index.js +1 -1
  6. package/dist/mcp.js +3 -3
  7. package/editor/assets/{MigrationsPane-i0wjSyoQ.js → MigrationsPane-i_zhrvFj.js} +1 -1
  8. package/editor/assets/{TemplatesPane-DsexK0er.js → TemplatesPane-DnLzysR8.js} +8 -8
  9. package/editor/assets/{cssMode-fc0wHMGr.js → cssMode-CUOhFn4h.js} +1 -1
  10. package/editor/assets/{freemarker2-Dw44kalV.js → freemarker2-B9rQlI0W.js} +1 -1
  11. package/editor/assets/{handlebars-CEMFICxK.js → handlebars-JoS7AGnA.js} +1 -1
  12. package/editor/assets/{html-skzxzrW2.js → html-CjA1yMmY.js} +1 -1
  13. package/editor/assets/{htmlMode-C-4dSBn8.js → htmlMode--Tr5VBAP.js} +1 -1
  14. package/editor/assets/{index-B_gM0Yjd.js → index-CIvw0Zpi.js} +2 -2
  15. package/editor/assets/{javascript-BgHXwKkG.js → javascript-D2uRuhrb.js} +1 -1
  16. package/editor/assets/{jsonMode-Lc8WrRU9.js → jsonMode-DjpB6dsQ.js} +1 -1
  17. package/editor/assets/{liquid-BQolAtSr.js → liquid-B4OzkwvS.js} +1 -1
  18. package/editor/assets/{mdx-CwISUfHN.js → mdx-CqMdTEBH.js} +1 -1
  19. package/editor/assets/{python-DhucvE8q.js → python-D0daul4G.js} +1 -1
  20. package/editor/assets/{razor-C6Qr3L5e.js → razor-DcoRvbTO.js} +1 -1
  21. package/editor/assets/{tsMode-C2Xy3bvH.js → tsMode-c9L2aVZe.js} +1 -1
  22. package/editor/assets/{typescript-D3bsPWHt.js → typescript-CMloI-91.js} +1 -1
  23. package/editor/assets/{xml-Dc0lsYpw.js → xml-Bmh9MaKg.js} +1 -1
  24. package/editor/assets/{yaml-BOMEMGOG.js → yaml-Dc9MTEH8.js} +1 -1
  25. package/editor/index.html +1 -1
  26. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2-Dw44kalV.js","./index-B_gM0Yjd.js","./index-CkESQLMV.css","./handlebars-CEMFICxK.js","./html-skzxzrW2.js","./javascript-BgHXwKkG.js","./typescript-D3bsPWHt.js","./liquid-BQolAtSr.js","./mdx-CwISUfHN.js","./python-DhucvE8q.js","./razor-C6Qr3L5e.js","./xml-Dc0lsYpw.js","./yaml-BOMEMGOG.js","./cssMode-fc0wHMGr.js","./htmlMode-C-4dSBn8.js","./jsonMode-Lc8WrRU9.js","./tsMode-C2Xy3bvH.js"])))=>i.map(i=>d[i]);
2
- var tQ=Object.defineProperty;var iQ=(o,e,t)=>e in o?tQ(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Cn=(o,e,t)=>iQ(o,typeof e!="symbol"?e+"":e,t);import{F as zI,I as Gd,aB as Zd,al as Yd,_ as Ee,v as Uu,af as Xd,aL as Da,ar as qe,ag as nQ,T as qt,Q as R,az as Ze,w as Ut,f as Be,a8 as Qd,aK as bi,W as sQ,aD as ni,o as ve,aE as At,O as ze,ax as mi,at as bt,J as oQ,ad as cl,a1 as h7,p as tL,N as Ps,G as Cc,P as nU,c as sU,z as oU,V as b_,av as vo,K as gr,as as iL,H as dS,aI as rU,Z as u7,A as kh,i as rQ,m as g7,E as aU,$ as UR,h as aQ,C as nL,a as sL,Y as lQ,ao as cQ,S as dQ,l as hQ,D as uQ,k as jb,aH as gQ,L as Jv,n as f7,a2 as lU,q as cU,X as fQ,ac as hS,a6 as oL,aG as m7,aa as mQ,j as pQ,aw as dU,M as _Q,ay as TN,an as $g,ah as hU,am as uU,ai as Kl,r as $R,aC as bQ,B as vQ,d as CQ,R as Yy,ab as RN,aA as Sv,e as Al,u as wQ,s as yQ,aj as p7,ak as SQ,ae as _7,x as b7,y as LQ,a5 as xQ,a4 as kQ,a3 as DQ,ap as IQ,a0 as v7,t as EQ,b as MN,aJ as NQ}from"./index-B_gM0Yjd.js";const TQ=[{type:"shorttext",summary:"A single line of plain text, the default for headings and any token not inferred as something more specific.",example:"<h1>{title}</h1>"},{type:"text",summary:"Multi-line plain text with no formatting, inferred for paragraphs and block elements.",example:"<p>{summary}</p>"},{type:"richtext",summary:"Formatted HTML from the rich-text editor (headings, links, lists, inline images). Opt-in, never inferred, so a plain block never becomes a surprise editor.",example:'<div data-type="richtext">{body}</div>'},{type:"code",summary:"A monospaced code block, inferred inside <pre>, <code>, <kbd>, and <samp>.",example:"<pre>{snippet}</pre>"},{type:"image",summary:"An image asset. On publish it runs the media pipeline (responsive <picture> variants). Inferred from <img src>.",example:'<img src="{hero}" alt="{caption}">'},{type:"file",summary:"A downloadable file asset (PDF, zip…). Inferred from a non-image src, or an <a href> marked download.",example:'<a href="{brochure}" download>Download the brochure</a>'},{type:"url",summary:"A link target, an internal page reference or an external URL. Inferred from <a href>.",example:'<a href="{cta_link}">{cta_label}</a>'},{type:"email",summary:"An email address. Inferred from an href that starts with mailto:.",example:'<a href="mailto:{email}">{email}</a>'},{type:"phone",summary:"A phone number. Inferred from an href that starts with tel:.",example:'<a href="tel:{phone}">{phone}</a>'},{type:"date",summary:"A calendar date, shown as a date picker. Opt-in via data-type, never inferred.",example:'<time datetime="{published}" data-type="date">{published}</time>'},{type:"time",summary:"A time of day, shown as a time picker. Opt-in via data-type, never inferred.",example:'<span data-type="time">{doors_open}</span>'},{type:"authors",summary:"A byline: an ordered list of authors the editor builds from your users’ display names (or typed-in guests), rendered as one grammatical line, “A”, “A and B”, “A, B and C” (no Oxford comma). Opt-in via data-type, never inferred. A display-name change updates every past byline.",example:'<p class="byline" data-type="authors">{authors}</p>'}];function C7(o={}){return{title:"nanoesis authoring reference",intro:"Everything you can put in a template. A template is ordinary HTML with {tokens}; the set of tokens is the editor form, “the template is the schema”. This reference is generated from the engine, so it always matches the version you are running.",sections:[RQ(),MQ(),AQ(),PQ(o),OQ(o),WQ(),FQ()]}}function RQ(){return{title:"Tokens",intro:"Wrap a field name in braces to print it. Each distinct token becomes one field in the editor; where the token sits decides the field’s type.",entries:[{name:"{field}",summary:"Print a page field, the name in the braces is the field name.",example:`<h1>{title}</h1>
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./freemarker2-B9rQlI0W.js","./index-CIvw0Zpi.js","./index-CkESQLMV.css","./handlebars-JoS7AGnA.js","./html-CjA1yMmY.js","./javascript-D2uRuhrb.js","./typescript-CMloI-91.js","./liquid-B4OzkwvS.js","./mdx-CqMdTEBH.js","./python-D0daul4G.js","./razor-DcoRvbTO.js","./xml-Bmh9MaKg.js","./yaml-Dc9MTEH8.js","./cssMode-CUOhFn4h.js","./htmlMode--Tr5VBAP.js","./jsonMode-DjpB6dsQ.js","./tsMode-c9L2aVZe.js"])))=>i.map(i=>d[i]);
2
+ var tQ=Object.defineProperty;var iQ=(o,e,t)=>e in o?tQ(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Cn=(o,e,t)=>iQ(o,typeof e!="symbol"?e+"":e,t);import{F as zI,I as Gd,aB as Zd,al as Yd,_ as Ee,v as Uu,af as Xd,aL as Da,ar as qe,ag as nQ,T as qt,Q as R,az as Ze,w as Ut,f as Be,a8 as Qd,aK as bi,W as sQ,aD as ni,o as ve,aE as At,O as ze,ax as mi,at as bt,J as oQ,ad as cl,a1 as h7,p as tL,N as Ps,G as Cc,P as nU,c as sU,z as oU,V as b_,av as vo,K as gr,as as iL,H as dS,aI as rU,Z as u7,A as kh,i as rQ,m as g7,E as aU,$ as UR,h as aQ,C as nL,a as sL,Y as lQ,ao as cQ,S as dQ,l as hQ,D as uQ,k as jb,aH as gQ,L as Jv,n as f7,a2 as lU,q as cU,X as fQ,ac as hS,a6 as oL,aG as m7,aa as mQ,j as pQ,aw as dU,M as _Q,ay as TN,an as $g,ah as hU,am as uU,ai as Kl,r as $R,aC as bQ,B as vQ,d as CQ,R as Yy,ab as RN,aA as Sv,e as Al,u as wQ,s as yQ,aj as p7,ak as SQ,ae as _7,x as b7,y as LQ,a5 as xQ,a4 as kQ,a3 as DQ,ap as IQ,a0 as v7,t as EQ,b as MN,aJ as NQ}from"./index-CIvw0Zpi.js";const TQ=[{type:"shorttext",summary:"A single line of plain text, the default for headings and any token not inferred as something more specific.",example:"<h1>{title}</h1>"},{type:"text",summary:"Multi-line plain text with no formatting, inferred for paragraphs and block elements.",example:"<p>{summary}</p>"},{type:"richtext",summary:"Formatted HTML from the rich-text editor (headings, links, lists, inline images). Opt-in, never inferred, so a plain block never becomes a surprise editor.",example:'<div data-type="richtext">{body}</div>'},{type:"code",summary:"A monospaced code block, inferred inside <pre>, <code>, <kbd>, and <samp>.",example:"<pre>{snippet}</pre>"},{type:"image",summary:"An image asset. On publish it runs the media pipeline (responsive <picture> variants). Inferred from <img src>.",example:'<img src="{hero}" alt="{caption}">'},{type:"file",summary:"A downloadable file asset (PDF, zip…). Inferred from a non-image src, or an <a href> marked download.",example:'<a href="{brochure}" download>Download the brochure</a>'},{type:"url",summary:"A link target, an internal page reference or an external URL. Inferred from <a href>.",example:'<a href="{cta_link}">{cta_label}</a>'},{type:"email",summary:"An email address. Inferred from an href that starts with mailto:.",example:'<a href="mailto:{email}">{email}</a>'},{type:"phone",summary:"A phone number. Inferred from an href that starts with tel:.",example:'<a href="tel:{phone}">{phone}</a>'},{type:"date",summary:"A calendar date, shown as a date picker. Opt-in via data-type, never inferred.",example:'<time datetime="{published}" data-type="date">{published}</time>'},{type:"time",summary:"A time of day, shown as a time picker. Opt-in via data-type, never inferred.",example:'<span data-type="time">{doors_open}</span>'},{type:"authors",summary:"A byline: an ordered list of authors the editor builds from your users’ display names (or typed-in guests), rendered as one grammatical line, “A”, “A and B”, “A, B and C” (no Oxford comma). Opt-in via data-type, never inferred. A display-name change updates every past byline.",example:'<p class="byline" data-type="authors">{authors}</p>'}];function C7(o={}){return{title:"nanoesis authoring reference",intro:"Everything you can put in a template. A template is ordinary HTML with {tokens}; the set of tokens is the editor form, “the template is the schema”. This reference is generated from the engine, so it always matches the version you are running.",sections:[RQ(),MQ(),AQ(),PQ(o),OQ(o),WQ(),FQ()]}}function RQ(){return{title:"Tokens",intro:"Wrap a field name in braces to print it. Each distinct token becomes one field in the editor; where the token sits decides the field’s type.",entries:[{name:"{field}",summary:"Print a page field, the name in the braces is the field name.",example:`<h1>{title}</h1>
3
3
  <p>{summary}</p>`},{name:"{title}, {published}, {created}, {updated}",summary:"Built-in fields every page has. {title} names the page in the tree; the others are ISO timestamps you can format or print."},{name:"{item} and {item.field}",summary:"Inside a loop, the current item: {item} is its URL, and {item.title} (or any field) is its content.",example:'<a href="{item}">{item.title}</a>'}]}}function MQ(){return{title:"Field types",intro:"A token’s control type is inferred from where it sits; the non-obvious ones (rich text, date, time, code) are opt-in with data-type. One entry per type, with the snippet that produces it.",entries:TQ.map(({type:o,summary:e,example:t})=>({name:o,summary:e,example:t,...zI[o].multiline&&{detail:"Multi-line."}}))}}function AQ(){return{title:"Field annotations",intro:"Optional data-* attributes that refine a field. Put them on the element holding the token; use data-field to name the field when the element has none.",entries:[{name:"data-field",summary:"Says which field an element’s annotations apply to. They default to the element’s first token (attributes before text); use data-field to target a different one, e.g. make the link text required, not the URL. (Not needed when the element holds a single token.)",example:'<a href="{url}" data-field="label" data-required>{label}</a>'},{name:"data-label",summary:"Set the label shown above the field in the editor (defaults to a humanised name).",example:'<p data-label="Short summary">{summary}</p>'},{name:"data-help",summary:"Add a line of helper text beneath the field in the editor.",example:'<p data-help="One or two sentences.">{summary}</p>'},{name:"data-required",summary:"Mark the field mandatory. Publishing is blocked until every page fills it.",example:"<p data-required>{summary}</p>"},{name:"data-minlength / data-maxlength",summary:"Warn (it does not block) when the value is shorter or longer than N characters, e.g. a 50-160 character SEO meta description.",example:'<p data-minlength="50" data-maxlength="160">{summary}</p>'},{name:"data-type",summary:"Force the control type, overriding inference, the escape hatch for rich text, date, time, and code.",example:'<div data-type="richtext">{body}</div>'}]}}function PQ(o){const e=[{name:"Automatic loop, data-each-in",summary:"Repeat an element once per published page in a folder (and its subfolders), filling {item.…} tokens automatically. Point it at a folder path.",example:`<ul>
4
4
  <li data-each-in="/blog" data-sort="published desc" data-limit="5">
5
5
  <a href="{item}">{item.title}</a>
@@ -19,7 +19,7 @@ var tQ=Object.defineProperty;var iQ=(o,e,t)=>e in o?tQ(o,e,{enumerable:!0,config
19
19
  `).replace(/\n{3,}/g,`
20
20
 
21
21
  `).trimEnd()}
22
- `}function HQ(o){const e=o.lastIndexOf(".");return e===-1?"":o.slice(e+1).toLowerCase()}const VQ=new Set(["css","js","mjs","cjs","json","webmanifest","svg","xml","txt","md","html","htm"]);function zQ(o){return VQ.has(HQ(o))}function w7(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Gd(o,Zd({name:"pencil"},()=>t,{get iconNode(){return i}}))}function uS(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];Gd(o,Zd({name:"trash-2"},()=>t,{get iconNode(){return i}}))}function y7(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1"}],["path",{d:"M2 13h10"}],["path",{d:"m9 16 3-3-3-3"}]];Gd(o,Zd({name:"folder-input"},()=>t,{get iconNode(){return i}}))}function fU(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]];Gd(o,Zd({name:"upload"},()=>t,{get iconNode(){return i}}))}function UQ(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]];Gd(o,Zd({name:"file-code"},()=>t,{get iconNode(){return i}}))}function $Q(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M12 7v14"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"}]];Gd(o,Zd({name:"book-open"},()=>t,{get iconNode(){return i}}))}function mU(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]];Gd(o,Zd({name:"download"},()=>t,{get iconNode(){return i}}))}function jQ(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Gd(o,Zd({name:"copy"},()=>t,{get iconNode(){return i}}))}function KQ(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M20 6 9 17l-5-5"}]];Gd(o,Zd({name:"check"},()=>t,{get iconNode(){return i}}))}function qQ(o){const e=o.lastIndexOf(".");switch(e===-1?"":o.slice(e+1).toLowerCase()){case"css":return"css";case"js":case"mjs":case"cjs":return"javascript";case"json":case"webmanifest":case"map":return"json";case"svg":case"xml":return"xml";case"md":case"markdown":return"markdown";case"txt":return"plaintext";case"html":case"htm":return"html";default:return"plaintext"}}function Hr(o,e=0){return o[o.length-(1+e)]}function GQ(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Oi(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;i<n;i++)if(!t(o[i],e[i]))return!1;return!0}function ZQ(o,e){const t=o.length-1;e<t&&(o[e]=o[t]),o.pop()}function Dw(o,e,t){return YQ(o.length,i=>t(o[i],e))}function YQ(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function jR(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o<n.length?jR(o,n,t):o<n.length+r.length?r[0]:jR(o-(n.length+r.length),s,t)}function S7(o,e){const t=[];let i;for(const n of o.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function*m5(o,e){let t,i;for(const n of o)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function pU(o,e){for(let t=0;t<=o.length;t++)e(t===0?void 0:o[t-1],t===o.length?void 0:o[t])}function XQ(o,e){for(let t=0;t<o.length;t++)e(t===0?void 0:o[t-1],o[t],t+1===o.length?void 0:o[t+1])}function Ta(o){return o.filter(e=>!!e)}function L7(o){let e=0;for(let t=0;t<o.length;t++)o[t]&&(o[e]=o[t],e+=1);o.length=e}function _U(o){return!Array.isArray(o)||o.length===0}function Os(o){return Array.isArray(o)&&o.length>0}function Pd(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function p5(o,e){return o.length>0?o[0]:e}function go(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function UI(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function AN(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Xy(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function KR(o,e){for(const t of e)o.push(t)}function _5(o){return Array.isArray(o)?o:[o]}function QQ(o,e,t){const i=bU(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r<s;r++)o[r+i]=t[r]}function x7(o,e,t,i){const n=bU(o,e);let s=o.splice(n,t);return s===void 0&&(s=[]),QQ(o,n,i),s}function bU(o,e){return e<0?Math.max(e+o.length,0):Math.min(e,o.length)}var Iw;(function(o){function e(s){return s<0}o.isLessThan=e;function t(s){return s<=0}o.isLessThanOrEqual=t;function i(s){return s>0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(Iw||(Iw={}));function Xs(o,e){return(t,i)=>e(o(t),o(i))}function JQ(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!Iw.isNeitherLessOrGreaterThan(n))return n}return Iw.neitherLessOrGreaterThan}}const Ia=(o,e)=>o-e,eJ=(o,e)=>Ia(o?1:0,e?1:0);function vU(o){return(e,t)=>-o(e,t)}class Od{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}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}}const i_=class i_{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new i_(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new i_(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Iw.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}};i_.empty=new i_(e=>{});let Qg=i_;class rL{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,s)=>t(e[n],e[s]));return new rL(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new rL(e)}}function Co(o){return typeof o=="string"}function $n(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function tJ(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function Cu(o){return typeof o=="number"&&!isNaN(o)}function k7(o){return!!o&&typeof o[Symbol.iterator]=="function"}function CU(o){return o===!0||o===!1}function As(o){return typeof o>"u"}function pc(o){return!_r(o)}function _r(o){return As(o)||o===null}function Pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Ph(o){if(_r(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Ew(o){return typeof o=="function"}function iJ(o,e){const t=Math.min(o.length,e.length);for(let i=0;i<t;i++)nJ(o[i],e[i])}function nJ(o,e){if(Co(e)){if(typeof o!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Ew(e)){try{if(o instanceof e)return}catch{}if(!_r(o)&&o.constructor===e||e.length===1&&e.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function sd(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.entries(o).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?sd(i):i}),e}function sJ(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(wU.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!tJ(n)&&e.push(n)}}return o}const wU=Object.prototype.hasOwnProperty;function yU(o,e){return qR(o,e,new Set)}function qR(o,e,t){if(_r(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(qR(s,e,t));return n}if($n(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)wU.call(o,s)&&(n[s]=qR(o[s],e,t));return t.delete(o),n}return o}function $I(o,e,t=!0){return $n(o)?($n(e)&&Object.keys(e).forEach(i=>{i in o?t&&($n(o[i])&&$n(e[i])?$I(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function jo(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t<o.length;t++)if(!jo(o[t],e[t]))return!1}else{const n=[];for(i in o)n.push(i);n.sort();const s=[];for(i in e)s.push(i);if(s.sort(),!jo(n,s))return!1;for(t=0;t<n.length;t++)if(!jo(o[n[t]],e[n[t]]))return!1}return!0}function oJ(o){let e=[];for(;Object.prototype!==o;)e=e.concat(Object.getOwnPropertyNames(o)),o=Object.getPrototypeOf(o);return e}function GR(o){const e=[];for(const t of oJ(o))typeof o[t]=="function"&&e.push(t);return e}function rJ(o,e){const t=n=>function(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function SU(){return globalThis._VSCODE_NLS_MESSAGES}function b5(){return globalThis._VSCODE_NLS_LANGUAGE}const aJ=b5()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function aL(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),aJ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return aL(typeof o=="number"?LU(o,e):e,t)}function LU(o,e){var i;const t=(i=SU())==null?void 0:i[o];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${o} !!!`)}return t}function He(o,e,...t){let i;typeof o=="number"?i=LU(o,e):i=e;const n=aL(i,t);return{value:n,original:e===i?n:aL(e,t)}}const Tp="en";let lL=!1,cL=!1,gS=!1,xU=!1,v5=!1,C5=!1,kU=!1,Qy,fS=Tp,D7=Tp,lJ,Ua;const Id=globalThis;let zs;var Jz;typeof Id.vscode<"u"&&typeof Id.vscode.process<"u"?zs=Id.vscode.process:typeof process<"u"&&typeof((Jz=process==null?void 0:process.versions)==null?void 0:Jz.node)=="string"&&(zs=process);var eU;const cJ=typeof((eU=zs==null?void 0:zs.versions)==null?void 0:eU.electron)=="string",dJ=cJ&&(zs==null?void 0:zs.type)==="renderer";var tU;if(typeof zs=="object"){lL=zs.platform==="win32",cL=zs.platform==="darwin",gS=zs.platform==="linux",gS&&zs.env.SNAP&&zs.env.SNAP_REVISION,zs.env.CI||zs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Qy=Tp,fS=Tp;const o=zs.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o);Qy=e.userLocale,D7=e.osLocale,fS=e.resolvedLanguage||Tp,lJ=(tU=e.languagePack)==null?void 0:tU.translationsConfigFile}catch{}xU=!0}else typeof navigator=="object"&&!dJ?(Ua=navigator.userAgent,lL=Ua.indexOf("Windows")>=0,cL=Ua.indexOf("Macintosh")>=0,C5=(Ua.indexOf("Macintosh")>=0||Ua.indexOf("iPad")>=0||Ua.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,gS=Ua.indexOf("Linux")>=0,kU=(Ua==null?void 0:Ua.indexOf("Mobi"))>=0,v5=!0,fS=b5()||Tp,Qy=navigator.language.toLowerCase(),D7=Qy):console.error("Unable to resolve platform.");const us=lL,pt=cL,eo=gS,wc=xU,Fm=v5,hJ=v5&&typeof Id.importScripts=="function",uJ=hJ?Id.origin:void 0,Cl=C5,DU=kU,yc=Ua,gJ=fS,fJ=typeof Id.postMessage=="function"&&!Id.importScripts,IU=(()=>{if(fJ){const o=[];Id.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i<n;i++){const s=o[i];if(s.id===t.data.vscodeScheduleAsyncWork){o.splice(i,1),s.callback();return}}});let e=0;return t=>{const i=++e;o.push({id:i,callback:t}),Id.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),$o=cL||C5?2:lL?1:3;let I7=!0,E7=!1;function EU(){if(!E7){E7=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,I7=new Uint16Array(o.buffer)[0]===513}return I7}const NU=!!(yc&&yc.indexOf("Chrome")>=0),mJ=!!(yc&&yc.indexOf("Firefox")>=0),pJ=!!(!NU&&yc&&yc.indexOf("Safari")>=0),_J=!!(yc&&yc.indexOf("Edg/")>=0),bJ=!!(yc&&yc.indexOf("Android")>=0),_s={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var St;(function(o){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(C){yield C}o.single=n;function s(C){return e(C)?C:n(C)}o.wrap=s;function r(C){return C||t}o.from=r;function*a(C){for(let y=C.length-1;y>=0;y--)yield C[y]}o.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}o.isEmpty=l;function c(C){return C[Symbol.iterator]().next().value}o.first=c;function d(C,y){let S=0;for(const k of C)if(y(k,S++))return!0;return!1}o.some=d;function h(C,y){for(const S of C)if(y(S))return S}o.find=h;function*u(C,y){for(const S of C)y(S)&&(yield S)}o.filter=u;function*g(C,y){let S=0;for(const k of C)yield y(k,S++)}o.map=g;function*f(C,y){let S=0;for(const k of C)yield*y(k,S++)}o.flatMap=f;function*p(...C){for(const y of C)yield*y}o.concat=p;function _(C,y,S){let k=S;for(const D of C)k=y(k,D);return k}o.reduce=_;function*b(C,y,S=C.length){for(y<0&&(y+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);y<S;y++)yield C[y]}o.slice=b;function v(C,y=Number.POSITIVE_INFINITY){const S=[];if(y===0)return[S,C];const k=C[Symbol.iterator]();for(let D=0;D<y;D++){const E=k.next();if(E.done)return[S,o.empty()];S.push(E.value)}return[S,{[Symbol.iterator](){return k}}]}o.consume=v;async function w(C){const y=[];for await(const S of C)y.push(S);return Promise.resolve(y)}o.asyncToArray=w})(St||(St={}));var yd;let Rn=(yd=class{constructor(e){this.element=e,this.next=yd.Undefined,this.prev=yd.Undefined}},yd.Undefined=new yd(void 0),yd);class qs{constructor(){this._first=Rn.Undefined,this._last=Rn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Rn.Undefined}clear(){let e=this._first;for(;e!==Rn.Undefined;){const t=e.next;e.prev=Rn.Undefined,e.next=Rn.Undefined,e=t}this._first=Rn.Undefined,this._last=Rn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Rn(e);if(this._first===Rn.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Rn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Rn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Rn.Undefined&&e.next!==Rn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Rn.Undefined&&e.next===Rn.Undefined?(this._first=Rn.Undefined,this._last=Rn.Undefined):e.next===Rn.Undefined?(this._last=this._last.prev,this._last.next=Rn.Undefined):e.prev===Rn.Undefined&&(this._first=this._first.next,this._first.prev=Rn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Rn.Undefined;)yield e.element,e=e.next}}const dL="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function vJ(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of dL)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const w5=vJ();function y5(o){let e=w5;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const TU=new qs;TU.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Nw(o,e,t,i,n){if(e=y5(e),n||(n=St.first(TU)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Nw(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=CJ(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function CJ(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const zl=8;class RU{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class MU{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ti{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return jI(e,t)}compute(e,t,i){return i}}class SC{constructor(e,t){this.newValue=e,this.didChange=t}}function jI(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new SC(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Oi(o,e);return new SC(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=jI(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new SC(o,t)}class ly{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return jI(e,t)}validate(e){return this.defaultValue}}class Kb{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return jI(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function xe(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class Rt extends Kb{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return xe(e,this.defaultValue)}}function ug(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class di extends Kb{static clampedInt(e,t,i,n){return ug(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return di.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function wJ(o,e,t,i){if(typeof o>"u")return e;const n=wr.float(o,e);return wr.clamp(n,t,i)}class wr extends Kb{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(wr.float(e,this.defaultValue))}}class Rs extends Kb{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Rs.string(e,this.defaultValue)}}function Gi(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class qi extends Kb{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Gi(e,this.defaultValue,this._allowedValues)}}class Jy extends Ti{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function yJ(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class SJ extends Ti{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","Optimize for usage with a Screen Reader."),m("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class LJ extends Ti{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:xe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:xe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function xJ(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Qn;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Qn||(Qn={}));function kJ(o){switch(o){case"line":return Qn.Line;case"block":return Qn.Block;case"underline":return Qn.Underline;case"line-thin":return Qn.LineThin;case"block-outline":return Qn.BlockOutline;case"underline-thin":return Qn.UnderlineThin}}class DJ extends ly{constructor(){super(143)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(112)&&n.push("showUnused"),t.get(141)&&n.push("showDeprecated"),n.join(" ")}}class IJ extends Rt{constructor(){super(37,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class EJ extends Ti{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:pt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:xe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Gi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Gi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:xe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:xe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:xe(t.loop,this.defaultValue.loop)}}}const Jc=class Jc extends Ti{constructor(){super(51,"fontLigatures",Jc.OFF,{anyOf:[{type:"boolean",description:m("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Jc.OFF:e==="true"?Jc.ON:e:e?Jc.ON:Jc.OFF}};Jc.OFF='"liga" off, "calt" off',Jc.ON='"liga" on, "calt" on';let wu=Jc;const ed=class ed extends Ti{constructor(){super(54,"fontVariations",ed.OFF,{anyOf:[{type:"boolean",description:m("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ed.OFF:e==="true"?ed.TRANSLATE:e:e?ed.TRANSLATE:ed.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}};ed.OFF="normal",ed.TRANSLATE="translate";let Tw=ed;class NJ extends ly{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class TJ extends Kb{constructor(){super(52,"fontSize",Qs.fontSize,{type:"number",minimum:6,maximum:100,default:Qs.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=wr.float(e,this.defaultValue);return t===0?Qs.fontSize:wr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}const Gl=class Gl extends Ti{constructor(){super(53,"fontWeight",Qs.fontWeight,{anyOf:[{type:"number",minimum:Gl.MINIMUM_VALUE,maximum:Gl.MAXIMUM_VALUE,errorMessage:m("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Gl.SUGGESTION_VALUES}],default:Qs.fontWeight,description:m("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(di.clampedInt(e,Qs.fontWeight,Gl.MINIMUM_VALUE,Gl.MAXIMUM_VALUE))}};Gl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Gl.MINIMUM_VALUE=1,Gl.MAXIMUM_VALUE=1e3;let ZR=Gl;class RJ extends Ti{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),m("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:m("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:m("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:m("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:Gi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??Gi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??Gi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??Gi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??Gi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??Gi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??Gi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Rs.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Rs.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Rs.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Rs.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Rs.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Rs.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class MJ extends Ti{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),delay:di.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:xe(t.sticky,this.defaultValue.sticky),hidingDelay:di.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:xe(t.above,this.defaultValue.above)}}}class v_ extends ly{constructor(){super(146)}compute(e,t,i){return v_.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,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=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(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,p=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,w=e.isViewportWrapping,C=h?2:3;let y=Math.floor(s*n);const S=y/s;let k=!1,D=!1,E=C*u,U=u/s,P=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:ce,extraLinesBeforeFirstLine:de,extraLinesBeyondLastLine:ye,desiredRatio:Ne,minimapLineCount:Bt}=v_.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(b/Bt>1)k=!0,D=!0,u=1,E=1,U=u/s;else{let ot=!1,it=u+1;if(f==="fit"){const Gt=Math.ceil((de+b+ye)*E);w&&a&&v<=t.stableFitRemainingWidth?(ot=!0,it=t.stableFitMaxMinimapScale):ot=Gt>y}if(f==="fill"||ot){k=!0;const Gt=u;E=Math.min(l*s,Math.max(1,Math.floor(1/Ne))),w&&a&&v<=t.stableFitRemainingWidth&&(it=t.stableFitMaxMinimapScale),u=Math.min(it,Math.max(1,Math.floor(E/C))),u>Gt&&(P=Math.min(2,u/Gt)),U=u/s/P,y=Math.ceil(Math.max(ce,de+b+ye)*E),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const W=Math.floor(g*U),z=Math.min(W,Math.max(0,Math.floor((v-_-2)*U/(c+U)))+zl);let H=Math.floor(s*z);const K=H/s;H=Math.floor(H*P);const J=h?1:2,ne=p==="left"?0:i-z-_;return{renderMinimap:J,minimapLeft:ne,minimapWidth:z,minimapHeightIsEditorHeight:k,minimapIsSampling:D,minimapScale:u,minimapLineHeight:E,minimapCanvasInnerWidth:H,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:K,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(138),u=h==="inherit"?e.get(137):h,g=u==="inherit"?e.get(133):u,f=e.get(136),p=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,v=e.get(69),w=e.get(106),C=e.get(84),y=e.get(73),S=e.get(104),k=S.verticalScrollbarSize,D=S.verticalHasArrows,E=S.arrowSize,U=S.horizontalScrollbarSize,P=e.get(43),W=e.get(111)!=="never";let z=e.get(66);P&&W&&(z+=16);let H=0;if(b){const ei=Math.max(r,v);H=Math.round(ei*l)}let K=0;_&&(K=s*t.glyphMarginDecorationLaneCount);let J=0,ne=J+K,ce=ne+H,de=ce+z;const ye=i-K-H-z;let Ne=!1,Bt=!1,Oe=-1;u==="inherit"&&p?(Ne=!0,Bt=!0):g==="on"||g==="bounded"?Bt=!0:g==="wordWrapColumn"&&(Oe=f);const ot=v_._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:w,paddingTop:C.top,paddingBottom:C.bottom,minimap:y,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:ye,isViewportWrapping:Bt},t.memory||new MU);ot.renderMinimap!==0&&ot.minimapLeft===0&&(J+=ot.minimapWidth,ne+=ot.minimapWidth,ce+=ot.minimapWidth,de+=ot.minimapWidth);const it=ye-ot.minimapWidth,Gt=Math.max(1,Math.floor((it-k-2)/a)),Ri=D?E:0;return Bt&&(Oe=Math.max(1,Gt),g==="bounded"&&(Oe=Math.min(Oe,f))),{width:i,height:n,glyphMarginLeft:J,glyphMarginWidth:K,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ne,lineNumbersWidth:H,decorationsLeft:ce,decorationsWidth:z,contentLeft:de,contentWidth:it,minimap:ot,viewportColumn:Gt,isWordWrapMinified:Ne,isViewportWrapping:Bt,wrappingColumn:Oe,verticalScrollbarWidth:k,horizontalScrollbarHeight:U,overviewRuler:{top:Ri,width:k,height:n-2*Ri,right:0}}}}class AJ extends Ti{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Gi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var va;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(va||(va={}));class PJ extends Ti{constructor(){const e={enabled:va.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[va.Off,va.OnCode,va.On],default:e.enabled,enumDescriptions:[m("editor.lightbulb.enabled.off","Disable the code action menu."),m("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),m("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Gi(e.enabled,this.defaultValue.enabled,[va.Off,va.OnCode,va.On])}}}class OJ extends Ti{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:m("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),maxLineCount:di.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Gi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:xe(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class FJ extends Ti{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m("editor.inlayHints.on","Inlay hints are enabled"),m("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",pt?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",pt?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Gi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:di.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily),padding:xe(t.padding,this.defaultValue.padding)}}}class WJ extends Ti{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):di.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?di.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class BJ extends wr{constructor(){super(67,"lineHeight",Qs.lineHeight,e=>wr.clamp(e,0,150),{markdownDescription:m("lineHeight",`Controls the line height.
22
+ `}function HQ(o){const e=o.lastIndexOf(".");return e===-1?"":o.slice(e+1).toLowerCase()}const VQ=new Set(["css","js","mjs","cjs","json","webmanifest","xml","txt","md","html","htm"]);function zQ(o){return VQ.has(HQ(o))}function w7(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]];Gd(o,Zd({name:"pencil"},()=>t,{get iconNode(){return i}}))}function uS(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];Gd(o,Zd({name:"trash-2"},()=>t,{get iconNode(){return i}}))}function y7(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1"}],["path",{d:"M2 13h10"}],["path",{d:"m9 16 3-3-3-3"}]];Gd(o,Zd({name:"folder-input"},()=>t,{get iconNode(){return i}}))}function fU(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]];Gd(o,Zd({name:"upload"},()=>t,{get iconNode(){return i}}))}function UQ(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]];Gd(o,Zd({name:"file-code"},()=>t,{get iconNode(){return i}}))}function $Q(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M12 7v14"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"}]];Gd(o,Zd({name:"book-open"},()=>t,{get iconNode(){return i}}))}function mU(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]];Gd(o,Zd({name:"download"},()=>t,{get iconNode(){return i}}))}function jQ(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]];Gd(o,Zd({name:"copy"},()=>t,{get iconNode(){return i}}))}function KQ(o,e){let t=Yd(e,["$$slots","$$events","$$legacy"]);const i=[["path",{d:"M20 6 9 17l-5-5"}]];Gd(o,Zd({name:"check"},()=>t,{get iconNode(){return i}}))}function qQ(o){const e=o.lastIndexOf(".");switch(e===-1?"":o.slice(e+1).toLowerCase()){case"css":return"css";case"js":case"mjs":case"cjs":return"javascript";case"json":case"webmanifest":case"map":return"json";case"svg":case"xml":return"xml";case"md":case"markdown":return"markdown";case"txt":return"plaintext";case"html":case"htm":return"html";default:return"plaintext"}}function Hr(o,e=0){return o[o.length-(1+e)]}function GQ(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function Oi(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;i<n;i++)if(!t(o[i],e[i]))return!1;return!0}function ZQ(o,e){const t=o.length-1;e<t&&(o[e]=o[t]),o.pop()}function Dw(o,e,t){return YQ(o.length,i=>t(o[i],e))}function YQ(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function jR(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o<n.length?jR(o,n,t):o<n.length+r.length?r[0]:jR(o-(n.length+r.length),s,t)}function S7(o,e){const t=[];let i;for(const n of o.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function*m5(o,e){let t,i;for(const n of o)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function pU(o,e){for(let t=0;t<=o.length;t++)e(t===0?void 0:o[t-1],t===o.length?void 0:o[t])}function XQ(o,e){for(let t=0;t<o.length;t++)e(t===0?void 0:o[t-1],o[t],t+1===o.length?void 0:o[t+1])}function Ta(o){return o.filter(e=>!!e)}function L7(o){let e=0;for(let t=0;t<o.length;t++)o[t]&&(o[e]=o[t],e+=1);o.length=e}function _U(o){return!Array.isArray(o)||o.length===0}function Os(o){return Array.isArray(o)&&o.length>0}function Pd(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function p5(o,e){return o.length>0?o[0]:e}function go(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function UI(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function AN(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Xy(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function KR(o,e){for(const t of e)o.push(t)}function _5(o){return Array.isArray(o)?o:[o]}function QQ(o,e,t){const i=bU(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r<s;r++)o[r+i]=t[r]}function x7(o,e,t,i){const n=bU(o,e);let s=o.splice(n,t);return s===void 0&&(s=[]),QQ(o,n,i),s}function bU(o,e){return e<0?Math.max(e+o.length,0):Math.min(e,o.length)}var Iw;(function(o){function e(s){return s<0}o.isLessThan=e;function t(s){return s<=0}o.isLessThanOrEqual=t;function i(s){return s>0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(Iw||(Iw={}));function Xs(o,e){return(t,i)=>e(o(t),o(i))}function JQ(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!Iw.isNeitherLessOrGreaterThan(n))return n}return Iw.neitherLessOrGreaterThan}}const Ia=(o,e)=>o-e,eJ=(o,e)=>Ia(o?1:0,e?1:0);function vU(o){return(e,t)=>-o(e,t)}class Od{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}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}}const i_=class i_{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new i_(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new i_(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Iw.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}};i_.empty=new i_(e=>{});let Qg=i_;class rL{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,s)=>t(e[n],e[s]));return new rL(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new rL(e)}}function Co(o){return typeof o=="string"}function $n(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function tJ(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function Cu(o){return typeof o=="number"&&!isNaN(o)}function k7(o){return!!o&&typeof o[Symbol.iterator]=="function"}function CU(o){return o===!0||o===!1}function As(o){return typeof o>"u"}function pc(o){return!_r(o)}function _r(o){return As(o)||o===null}function Pt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Ph(o){if(_r(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Ew(o){return typeof o=="function"}function iJ(o,e){const t=Math.min(o.length,e.length);for(let i=0;i<t;i++)nJ(o[i],e[i])}function nJ(o,e){if(Co(e)){if(typeof o!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Ew(e)){try{if(o instanceof e)return}catch{}if(!_r(o)&&o.constructor===e||e.length===1&&e.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function sd(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.entries(o).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?sd(i):i}),e}function sJ(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(wU.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!tJ(n)&&e.push(n)}}return o}const wU=Object.prototype.hasOwnProperty;function yU(o,e){return qR(o,e,new Set)}function qR(o,e,t){if(_r(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(qR(s,e,t));return n}if($n(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)wU.call(o,s)&&(n[s]=qR(o[s],e,t));return t.delete(o),n}return o}function $I(o,e,t=!0){return $n(o)?($n(e)&&Object.keys(e).forEach(i=>{i in o?t&&($n(o[i])&&$n(e[i])?$I(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function jo(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t<o.length;t++)if(!jo(o[t],e[t]))return!1}else{const n=[];for(i in o)n.push(i);n.sort();const s=[];for(i in e)s.push(i);if(s.sort(),!jo(n,s))return!1;for(t=0;t<n.length;t++)if(!jo(o[n[t]],e[n[t]]))return!1}return!0}function oJ(o){let e=[];for(;Object.prototype!==o;)e=e.concat(Object.getOwnPropertyNames(o)),o=Object.getPrototypeOf(o);return e}function GR(o){const e=[];for(const t of oJ(o))typeof o[t]=="function"&&e.push(t);return e}function rJ(o,e){const t=n=>function(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}function SU(){return globalThis._VSCODE_NLS_MESSAGES}function b5(){return globalThis._VSCODE_NLS_LANGUAGE}const aJ=b5()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function aL(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),aJ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return aL(typeof o=="number"?LU(o,e):e,t)}function LU(o,e){var i;const t=(i=SU())==null?void 0:i[o];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${o} !!!`)}return t}function He(o,e,...t){let i;typeof o=="number"?i=LU(o,e):i=e;const n=aL(i,t);return{value:n,original:e===i?n:aL(e,t)}}const Tp="en";let lL=!1,cL=!1,gS=!1,xU=!1,v5=!1,C5=!1,kU=!1,Qy,fS=Tp,D7=Tp,lJ,Ua;const Id=globalThis;let zs;var Jz;typeof Id.vscode<"u"&&typeof Id.vscode.process<"u"?zs=Id.vscode.process:typeof process<"u"&&typeof((Jz=process==null?void 0:process.versions)==null?void 0:Jz.node)=="string"&&(zs=process);var eU;const cJ=typeof((eU=zs==null?void 0:zs.versions)==null?void 0:eU.electron)=="string",dJ=cJ&&(zs==null?void 0:zs.type)==="renderer";var tU;if(typeof zs=="object"){lL=zs.platform==="win32",cL=zs.platform==="darwin",gS=zs.platform==="linux",gS&&zs.env.SNAP&&zs.env.SNAP_REVISION,zs.env.CI||zs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Qy=Tp,fS=Tp;const o=zs.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o);Qy=e.userLocale,D7=e.osLocale,fS=e.resolvedLanguage||Tp,lJ=(tU=e.languagePack)==null?void 0:tU.translationsConfigFile}catch{}xU=!0}else typeof navigator=="object"&&!dJ?(Ua=navigator.userAgent,lL=Ua.indexOf("Windows")>=0,cL=Ua.indexOf("Macintosh")>=0,C5=(Ua.indexOf("Macintosh")>=0||Ua.indexOf("iPad")>=0||Ua.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,gS=Ua.indexOf("Linux")>=0,kU=(Ua==null?void 0:Ua.indexOf("Mobi"))>=0,v5=!0,fS=b5()||Tp,Qy=navigator.language.toLowerCase(),D7=Qy):console.error("Unable to resolve platform.");const us=lL,pt=cL,eo=gS,wc=xU,Fm=v5,hJ=v5&&typeof Id.importScripts=="function",uJ=hJ?Id.origin:void 0,Cl=C5,DU=kU,yc=Ua,gJ=fS,fJ=typeof Id.postMessage=="function"&&!Id.importScripts,IU=(()=>{if(fJ){const o=[];Id.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i<n;i++){const s=o[i];if(s.id===t.data.vscodeScheduleAsyncWork){o.splice(i,1),s.callback();return}}});let e=0;return t=>{const i=++e;o.push({id:i,callback:t}),Id.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),$o=cL||C5?2:lL?1:3;let I7=!0,E7=!1;function EU(){if(!E7){E7=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,I7=new Uint16Array(o.buffer)[0]===513}return I7}const NU=!!(yc&&yc.indexOf("Chrome")>=0),mJ=!!(yc&&yc.indexOf("Firefox")>=0),pJ=!!(!NU&&yc&&yc.indexOf("Safari")>=0),_J=!!(yc&&yc.indexOf("Edg/")>=0),bJ=!!(yc&&yc.indexOf("Android")>=0),_s={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var St;(function(o){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(C){yield C}o.single=n;function s(C){return e(C)?C:n(C)}o.wrap=s;function r(C){return C||t}o.from=r;function*a(C){for(let y=C.length-1;y>=0;y--)yield C[y]}o.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}o.isEmpty=l;function c(C){return C[Symbol.iterator]().next().value}o.first=c;function d(C,y){let S=0;for(const k of C)if(y(k,S++))return!0;return!1}o.some=d;function h(C,y){for(const S of C)if(y(S))return S}o.find=h;function*u(C,y){for(const S of C)y(S)&&(yield S)}o.filter=u;function*g(C,y){let S=0;for(const k of C)yield y(k,S++)}o.map=g;function*f(C,y){let S=0;for(const k of C)yield*y(k,S++)}o.flatMap=f;function*p(...C){for(const y of C)yield*y}o.concat=p;function _(C,y,S){let k=S;for(const D of C)k=y(k,D);return k}o.reduce=_;function*b(C,y,S=C.length){for(y<0&&(y+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);y<S;y++)yield C[y]}o.slice=b;function v(C,y=Number.POSITIVE_INFINITY){const S=[];if(y===0)return[S,C];const k=C[Symbol.iterator]();for(let D=0;D<y;D++){const E=k.next();if(E.done)return[S,o.empty()];S.push(E.value)}return[S,{[Symbol.iterator](){return k}}]}o.consume=v;async function w(C){const y=[];for await(const S of C)y.push(S);return Promise.resolve(y)}o.asyncToArray=w})(St||(St={}));var yd;let Rn=(yd=class{constructor(e){this.element=e,this.next=yd.Undefined,this.prev=yd.Undefined}},yd.Undefined=new yd(void 0),yd);class qs{constructor(){this._first=Rn.Undefined,this._last=Rn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Rn.Undefined}clear(){let e=this._first;for(;e!==Rn.Undefined;){const t=e.next;e.prev=Rn.Undefined,e.next=Rn.Undefined,e=t}this._first=Rn.Undefined,this._last=Rn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Rn(e);if(this._first===Rn.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Rn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Rn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Rn.Undefined&&e.next!==Rn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Rn.Undefined&&e.next===Rn.Undefined?(this._first=Rn.Undefined,this._last=Rn.Undefined):e.next===Rn.Undefined?(this._last=this._last.prev,this._last.next=Rn.Undefined):e.prev===Rn.Undefined&&(this._first=this._first.next,this._first.prev=Rn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Rn.Undefined;)yield e.element,e=e.next}}const dL="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function vJ(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of dL)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const w5=vJ();function y5(o){let e=w5;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const TU=new qs;TU.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Nw(o,e,t,i,n){if(e=y5(e),n||(n=St.first(TU)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),Nw(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=CJ(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function CJ(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const zl=8;class RU{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class MU{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ti{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return jI(e,t)}compute(e,t,i){return i}}class SC{constructor(e,t){this.newValue=e,this.didChange=t}}function jI(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new SC(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&Oi(o,e);return new SC(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=jI(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new SC(o,t)}class ly{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return jI(e,t)}validate(e){return this.defaultValue}}class Kb{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return jI(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function xe(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class Rt extends Kb{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return xe(e,this.defaultValue)}}function ug(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class di extends Kb{static clampedInt(e,t,i,n){return ug(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return di.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function wJ(o,e,t,i){if(typeof o>"u")return e;const n=wr.float(o,e);return wr.clamp(n,t,i)}class wr extends Kb{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(wr.float(e,this.defaultValue))}}class Rs extends Kb{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Rs.string(e,this.defaultValue)}}function Gi(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class qi extends Kb{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Gi(e,this.defaultValue,this._allowedValues)}}class Jy extends Ti{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function yJ(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class SJ extends Ti{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","Optimize for usage with a Screen Reader."),m("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class LJ extends Ti{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:xe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:xe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function xJ(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Qn;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Qn||(Qn={}));function kJ(o){switch(o){case"line":return Qn.Line;case"block":return Qn.Block;case"underline":return Qn.Underline;case"line-thin":return Qn.LineThin;case"block-outline":return Qn.BlockOutline;case"underline-thin":return Qn.UnderlineThin}}class DJ extends ly{constructor(){super(143)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(112)&&n.push("showUnused"),t.get(141)&&n.push("showDeprecated"),n.join(" ")}}class IJ extends Rt{constructor(){super(37,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class EJ extends Ti{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:pt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:xe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Gi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Gi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:xe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:xe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:xe(t.loop,this.defaultValue.loop)}}}const Jc=class Jc extends Ti{constructor(){super(51,"fontLigatures",Jc.OFF,{anyOf:[{type:"boolean",description:m("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Jc.OFF:e==="true"?Jc.ON:e:e?Jc.ON:Jc.OFF}};Jc.OFF='"liga" off, "calt" off',Jc.ON='"liga" on, "calt" on';let wu=Jc;const ed=class ed extends Ti{constructor(){super(54,"fontVariations",ed.OFF,{anyOf:[{type:"boolean",description:m("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ed.OFF:e==="true"?ed.TRANSLATE:e:e?ed.TRANSLATE:ed.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}};ed.OFF="normal",ed.TRANSLATE="translate";let Tw=ed;class NJ extends ly{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class TJ extends Kb{constructor(){super(52,"fontSize",Qs.fontSize,{type:"number",minimum:6,maximum:100,default:Qs.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=wr.float(e,this.defaultValue);return t===0?Qs.fontSize:wr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}const Gl=class Gl extends Ti{constructor(){super(53,"fontWeight",Qs.fontWeight,{anyOf:[{type:"number",minimum:Gl.MINIMUM_VALUE,maximum:Gl.MAXIMUM_VALUE,errorMessage:m("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Gl.SUGGESTION_VALUES}],default:Qs.fontWeight,description:m("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(di.clampedInt(e,Qs.fontWeight,Gl.MINIMUM_VALUE,Gl.MAXIMUM_VALUE))}};Gl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Gl.MINIMUM_VALUE=1,Gl.MAXIMUM_VALUE=1e3;let ZR=Gl;class RJ extends Ti{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),m("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:m("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:m("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:m("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:Gi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??Gi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??Gi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??Gi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??Gi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??Gi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??Gi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Rs.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Rs.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Rs.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Rs.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Rs.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Rs.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class MJ extends Ti{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),delay:di.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:xe(t.sticky,this.defaultValue.sticky),hidingDelay:di.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:xe(t.above,this.defaultValue.above)}}}class v_ extends ly{constructor(){super(146)}compute(e,t,i){return v_.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,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=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(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,p=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,w=e.isViewportWrapping,C=h?2:3;let y=Math.floor(s*n);const S=y/s;let k=!1,D=!1,E=C*u,U=u/s,P=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:ce,extraLinesBeforeFirstLine:de,extraLinesBeyondLastLine:ye,desiredRatio:Ne,minimapLineCount:Bt}=v_.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(b/Bt>1)k=!0,D=!0,u=1,E=1,U=u/s;else{let ot=!1,it=u+1;if(f==="fit"){const Gt=Math.ceil((de+b+ye)*E);w&&a&&v<=t.stableFitRemainingWidth?(ot=!0,it=t.stableFitMaxMinimapScale):ot=Gt>y}if(f==="fill"||ot){k=!0;const Gt=u;E=Math.min(l*s,Math.max(1,Math.floor(1/Ne))),w&&a&&v<=t.stableFitRemainingWidth&&(it=t.stableFitMaxMinimapScale),u=Math.min(it,Math.max(1,Math.floor(E/C))),u>Gt&&(P=Math.min(2,u/Gt)),U=u/s/P,y=Math.ceil(Math.max(ce,de+b+ye)*E),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const W=Math.floor(g*U),z=Math.min(W,Math.max(0,Math.floor((v-_-2)*U/(c+U)))+zl);let H=Math.floor(s*z);const K=H/s;H=Math.floor(H*P);const J=h?1:2,ne=p==="left"?0:i-z-_;return{renderMinimap:J,minimapLeft:ne,minimapWidth:z,minimapHeightIsEditorHeight:k,minimapIsSampling:D,minimapScale:u,minimapLineHeight:E,minimapCanvasInnerWidth:H,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:K,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(138),u=h==="inherit"?e.get(137):h,g=u==="inherit"?e.get(133):u,f=e.get(136),p=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,v=e.get(69),w=e.get(106),C=e.get(84),y=e.get(73),S=e.get(104),k=S.verticalScrollbarSize,D=S.verticalHasArrows,E=S.arrowSize,U=S.horizontalScrollbarSize,P=e.get(43),W=e.get(111)!=="never";let z=e.get(66);P&&W&&(z+=16);let H=0;if(b){const ei=Math.max(r,v);H=Math.round(ei*l)}let K=0;_&&(K=s*t.glyphMarginDecorationLaneCount);let J=0,ne=J+K,ce=ne+H,de=ce+z;const ye=i-K-H-z;let Ne=!1,Bt=!1,Oe=-1;u==="inherit"&&p?(Ne=!0,Bt=!0):g==="on"||g==="bounded"?Bt=!0:g==="wordWrapColumn"&&(Oe=f);const ot=v_._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:w,paddingTop:C.top,paddingBottom:C.bottom,minimap:y,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:ye,isViewportWrapping:Bt},t.memory||new MU);ot.renderMinimap!==0&&ot.minimapLeft===0&&(J+=ot.minimapWidth,ne+=ot.minimapWidth,ce+=ot.minimapWidth,de+=ot.minimapWidth);const it=ye-ot.minimapWidth,Gt=Math.max(1,Math.floor((it-k-2)/a)),Ri=D?E:0;return Bt&&(Oe=Math.max(1,Gt),g==="bounded"&&(Oe=Math.min(Oe,f))),{width:i,height:n,glyphMarginLeft:J,glyphMarginWidth:K,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ne,lineNumbersWidth:H,decorationsLeft:ce,decorationsWidth:z,contentLeft:de,contentWidth:it,minimap:ot,viewportColumn:Gt,isWordWrapMinified:Ne,isViewportWrapping:Bt,wrappingColumn:Oe,verticalScrollbarWidth:k,horizontalScrollbarHeight:U,overviewRuler:{top:Ri,width:k,height:n-2*Ri,right:0}}}}class AJ extends Ti{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Gi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var va;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(va||(va={}));class PJ extends Ti{constructor(){const e={enabled:va.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[va.Off,va.OnCode,va.On],default:e.enabled,enumDescriptions:[m("editor.lightbulb.enabled.off","Disable the code action menu."),m("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),m("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Gi(e.enabled,this.defaultValue.enabled,[va.Off,va.OnCode,va.On])}}}class OJ extends Ti{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:m("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),maxLineCount:di.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Gi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:xe(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class FJ extends Ti{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m("editor.inlayHints.on","Inlay hints are enabled"),m("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",pt?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",pt?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Gi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:di.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily),padding:xe(t.padding,this.defaultValue.padding)}}}class WJ extends Ti{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):di.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?di.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class BJ extends wr{constructor(){super(67,"lineHeight",Qs.lineHeight,e=>wr.clamp(e,0,150),{markdownDescription:m("lineHeight",`Controls the line height.
23
23
  - Use 0 to automatically compute the line height from the font size.
24
24
  - Values between 0 and 8 will be used as a multiplier with the font size.
25
25
  - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class HJ extends Ti{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:m("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),m("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:m("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:m("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:m("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:m("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),autohide:xe(t.autohide,this.defaultValue.autohide),size:Gi(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Gi(t.side,this.defaultValue.side,["right","left"]),showSlider:Gi(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:xe(t.renderCharacters,this.defaultValue.renderCharacters),scale:di.clampedInt(t.scale,1,1,3),maxColumn:di.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:xe(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:xe(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:wr.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:wr.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function VJ(o){return o==="ctrlCmd"?pt?"metaKey":"ctrlKey":"altKey"}class zJ extends Ti{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:di.clampedInt(t.top,0,0,1e3),bottom:di.clampedInt(t.bottom,0,0,1e3)}}}class UJ extends Ti{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),cycle:xe(t.cycle,this.defaultValue.cycle)}}}class $J extends ly{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}class jJ extends Ti{constructor(){super(88,"placeholder",void 0)}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e:this.defaultValue}}class KJ extends Ti{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[m("on","Quick suggestions show inside the suggest widget"),m("inline","Quick suggestions show as ghost text"),m("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:m("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:m("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:m("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:m("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Gi(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Gi(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Gi(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class qJ extends Ti{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m("lineNumbers.off","Line numbers are not rendered."),m("lineNumbers.on","Line numbers are rendered as absolute number."),m("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),m("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:m("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function hL(o){const e=o.get(99);return e==="editable"?o.get(92):e!=="on"}class GJ extends Ti{constructor(){const e=[],t={type:"number",description:m("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:m("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:m("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 i of e)if(typeof i=="number")t.push({column:di.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:di.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class ZJ extends Ti{constructor(){super(93,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function N7(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let YJ=class extends Ti{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,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),m("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),m("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),m("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),m("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:m("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:m("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:m("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:m("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=di.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=di.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:di.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:N7(t.vertical,this.defaultValue.vertical),horizontal:N7(t.horizontal,this.defaultValue.horizontal),useShadows:xe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:xe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:xe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:xe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:xe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:di.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:di.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:xe(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:xe(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const cr="inUntrustedWorkspace",fo={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 XJ extends Ti{constructor(){const e={nonBasicASCII:cr,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:cr,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[fo.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,cr],default:e.nonBasicASCII,description:m("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.")},[fo.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:m("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[fo.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:m("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.")},[fo.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,cr],default:e.includeComments,description:m("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[fo.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,cr],default:e.includeStrings,description:m("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[fo.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:m("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[fo.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:m("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(jo(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(jo(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new SC(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:C_(t.nonBasicASCII,cr,[!0,!1,cr]),invisibleCharacters:xe(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:xe(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:C_(t.includeComments,cr,[!0,!1,cr]),includeStrings:C_(t.includeStrings,cr,[!0,!1,cr]),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 i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class QJ extends Ti{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:m("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),m("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),m("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:m("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:m("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.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:m("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),mode:Gi(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Gi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:xe(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:xe(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily)}}}class JJ extends Ti{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:m("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),m("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),m("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:m("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:m("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:xe(t.enabled,this.defaultValue.enabled),showToolbar:Gi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:xe(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}class eee extends Ti{constructor(){const e={enabled:_s.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:_s.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("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:m("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:xe(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:xe(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class tee extends Ti{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairs.true","Enables bracket pair guides."),m("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),m("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:m("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),m("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),m("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:m("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:m("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:m("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[m("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),m("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),m("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:m("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:C_(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:C_(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:xe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:xe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:C_(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function C_(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class iee extends Ti{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(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[m("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),m("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:m("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:m("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:m("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:m("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:[m("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),m("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),m("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),m("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:m("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:m("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:m("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:m("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:m("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:m("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:m("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:m("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:m("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:m("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:m("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Gi(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:xe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:xe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:xe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:xe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Gi(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:xe(t.showIcons,this.defaultValue.showIcons),showStatusBar:xe(t.showStatusBar,this.defaultValue.showStatusBar),preview:xe(t.preview,this.defaultValue.preview),previewMode:Gi(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:xe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:xe(t.showMethods,this.defaultValue.showMethods),showFunctions:xe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:xe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:xe(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:xe(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:xe(t.showFields,this.defaultValue.showFields),showVariables:xe(t.showVariables,this.defaultValue.showVariables),showClasses:xe(t.showClasses,this.defaultValue.showClasses),showStructs:xe(t.showStructs,this.defaultValue.showStructs),showInterfaces:xe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:xe(t.showModules,this.defaultValue.showModules),showProperties:xe(t.showProperties,this.defaultValue.showProperties),showEvents:xe(t.showEvents,this.defaultValue.showEvents),showOperators:xe(t.showOperators,this.defaultValue.showOperators),showUnits:xe(t.showUnits,this.defaultValue.showUnits),showValues:xe(t.showValues,this.defaultValue.showValues),showConstants:xe(t.showConstants,this.defaultValue.showConstants),showEnums:xe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:xe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:xe(t.showKeywords,this.defaultValue.showKeywords),showWords:xe(t.showWords,this.defaultValue.showWords),showColors:xe(t.showColors,this.defaultValue.showColors),showFiles:xe(t.showFiles,this.defaultValue.showFiles),showReferences:xe(t.showReferences,this.defaultValue.showReferences),showFolders:xe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:xe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:xe(t.showSnippets,this.defaultValue.showSnippets),showUsers:xe(t.showUsers,this.defaultValue.showUsers),showIssues:xe(t.showIssues,this.defaultValue.showIssues)}}}class nee extends Ti{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:m("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:m("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:xe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:xe(e.selectSubwords,this.defaultValue.selectSubwords)}}}class see extends Ti{constructor(){const e=[];super(131,"wordSegmenterLocales",e,{anyOf:[{description:m("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:m("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}class oee extends Ti{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[m("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),m("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),m("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),m("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:m("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,i){return t.get(2)===2?0:i}}class ree extends ly{constructor(){super(147)}compute(e,t,i){const n=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class aee extends Ti{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:m("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:[m("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),m("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:xe(t.enabled,this.defaultValue.enabled),showDropSelector:Gi(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class lee extends Ti{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:m("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:[m("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),m("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:xe(t.enabled,this.defaultValue.enabled),showPasteSelector:Gi(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const cee="Consolas, 'Courier New', monospace",dee="Menlo, Monaco, 'Courier New', monospace",hee="'Droid Sans Mono', 'monospace', monospace",Qs={fontFamily:pt?dee:eo?hee:cee,fontWeight:"normal",fontSize:pt?12:14,lineHeight:0,letterSpacing:0},Rp=[];function ae(o){return Rp[o.id]=o,o}const Il={acceptSuggestionOnCommitCharacter:ae(new Rt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:m("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:ae(new qi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",m("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:m("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:ae(new SJ),accessibilityPageSize:ae(new di(3,"accessibilityPageSize",10,1,1073741824,{description:m("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:ae(new Rs(4,"ariaLabel",m("editorViewAccessibleLabel","Editor content"))),ariaRequired:ae(new Rt(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ae(new Rt(8,"screenReaderAnnounceInlineSuggestion",!0,{description:m("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ae(new qi(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),m("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:m("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ae(new qi(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),m("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:m("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ae(new qi(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ae(new qi(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ae(new qi(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),m("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:m("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ae(new Jy(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],yJ,{enumDescriptions:[m("editor.autoIndent.none","The editor will not insert indentation automatically."),m("editor.autoIndent.keep","The editor will keep the current line's indentation."),m("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),m("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),m("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:m("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ae(new Rt(13,"automaticLayout",!1)),autoSurround:ae(new qi(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[m("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),m("editor.autoSurround.quotes","Surround with quotes but not brackets."),m("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:m("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ae(new eee),bracketPairGuides:ae(new tee),stickyTabStops:ae(new Rt(117,"stickyTabStops",!1,{description:m("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ae(new Rt(17,"codeLens",!0,{description:m("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ae(new Rs(18,"codeLensFontFamily","",{description:m("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ae(new di(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:m("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ae(new Rt(20,"colorDecorators",!0,{description:m("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ae(new qi(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[m("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),m("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),m("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:m("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ae(new di(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:m("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ae(new Rt(22,"columnSelection",!1,{description:m("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ae(new LJ),contextmenu:ae(new Rt(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ae(new Rt(25,"copyWithSyntaxHighlighting",!0,{description:m("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ae(new Jy(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],xJ,{description:m("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ae(new qi(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[m("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),m("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),m("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:m("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ae(new Jy(28,"cursorStyle",Qn.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],kJ,{description:m("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ae(new di(29,"cursorSurroundingLines",0,0,1073741824,{description:m("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:ae(new qi(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[m("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),m("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:m("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:ae(new di(31,"cursorWidth",0,0,1073741824,{markdownDescription:m("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ae(new Rt(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ae(new Rt(33,"disableMonospaceOptimizations",!1)),domReadOnly:ae(new Rt(34,"domReadOnly",!1)),dragAndDrop:ae(new Rt(35,"dragAndDrop",!0,{description:m("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ae(new IJ),dropIntoEditor:ae(new aee),stickyScroll:ae(new OJ),experimentalWhitespaceRendering:ae(new qi(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[m("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),m("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),m("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:m("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ae(new Rs(39,"extraEditorClassName","")),fastScrollSensitivity:ae(new wr(40,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:m("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ae(new EJ),fixedOverflowWidgets:ae(new Rt(42,"fixedOverflowWidgets",!1)),folding:ae(new Rt(43,"folding",!0,{description:m("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ae(new qi(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[m("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),m("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:m("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ae(new Rt(45,"foldingHighlight",!0,{description:m("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ae(new Rt(46,"foldingImportsByDefault",!1,{description:m("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ae(new di(47,"foldingMaximumRegions",5e3,10,65e3,{description:m("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:ae(new Rt(48,"unfoldOnClickAfterEndOfLine",!1,{description:m("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ae(new Rs(49,"fontFamily",Qs.fontFamily,{description:m("fontFamily","Controls the font family.")})),fontInfo:ae(new NJ),fontLigatures2:ae(new wu),fontSize:ae(new TJ),fontWeight:ae(new ZR),fontVariations:ae(new Tw),formatOnPaste:ae(new Rt(55,"formatOnPaste",!1,{description:m("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:ae(new Rt(56,"formatOnType",!1,{description:m("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ae(new Rt(57,"glyphMargin",!0,{description:m("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ae(new RJ),hideCursorInOverviewRuler:ae(new Rt(59,"hideCursorInOverviewRuler",!1,{description:m("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ae(new MJ),inDiffEditor:ae(new Rt(61,"inDiffEditor",!1)),letterSpacing:ae(new wr(64,"letterSpacing",Qs.letterSpacing,o=>wr.clamp(o,-5,20),{description:m("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ae(new PJ),lineDecorationsWidth:ae(new WJ),lineHeight:ae(new BJ),lineNumbers:ae(new qJ),lineNumbersMinChars:ae(new di(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ae(new Rt(70,"linkedEditing",!1,{description:m("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ae(new Rt(71,"links",!0,{description:m("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ae(new qi(72,"matchBrackets","always",["always","near","never"],{description:m("matchBrackets","Highlight matching brackets.")})),minimap:ae(new HJ),mouseStyle:ae(new qi(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ae(new wr(75,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:m("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ae(new Rt(76,"mouseWheelZoom",!1,{markdownDescription:pt?m("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):m("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ae(new Rt(77,"multiCursorMergeOverlapping",!0,{description:m("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ae(new Jy(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],VJ,{markdownEnumDescriptions:[m("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),m("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:m({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:ae(new qi(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[m("multiCursorPaste.spread","Each cursor pastes a single line of the text."),m("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:m("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ae(new di(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:m("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ae(new qi(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[m("occurrencesHighlight.off","Does not highlight occurrences."),m("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),m("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:m("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ae(new Rt(82,"overviewRulerBorder",!0,{description:m("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ae(new di(83,"overviewRulerLanes",3,0,3)),padding:ae(new zJ),pasteAs:ae(new lee),parameterHints:ae(new UJ),peekWidgetDefaultFocus:ae(new qi(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[m("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),m("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:m("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:ae(new jJ),definitionLinkOpensInPeek:ae(new Rt(89,"definitionLinkOpensInPeek",!1,{description:m("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ae(new KJ),quickSuggestionsDelay:ae(new di(91,"quickSuggestionsDelay",10,0,1073741824,{description:m("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ae(new Rt(92,"readOnly",!1)),readOnlyMessage:ae(new ZJ),renameOnType:ae(new Rt(94,"renameOnType",!1,{description:m("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:m("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ae(new Rt(95,"renderControlCharacters",!0,{description:m("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ae(new qi(96,"renderFinalNewline",eo?"dimmed":"on",["off","on","dimmed"],{description:m("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ae(new qi(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",m("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:m("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ae(new Rt(98,"renderLineHighlightOnlyWhenFocus",!1,{description:m("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ae(new qi(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ae(new qi(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",m("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),m("renderWhitespace.selection","Render whitespace characters only on selected text."),m("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:m("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ae(new di(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ae(new Rt(102,"roundedSelection",!0,{description:m("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ae(new GJ),scrollbar:ae(new YJ),scrollBeyondLastColumn:ae(new di(105,"scrollBeyondLastColumn",4,0,1073741824,{description:m("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ae(new Rt(106,"scrollBeyondLastLine",!0,{description:m("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ae(new Rt(107,"scrollPredominantAxis",!0,{description:m("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:ae(new Rt(108,"selectionClipboard",!0,{description:m("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:eo})),selectionHighlight:ae(new Rt(109,"selectionHighlight",!0,{description:m("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ae(new Rt(110,"selectOnLineNumbers",!0)),showFoldingControls:ae(new qi(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[m("showFoldingControls.always","Always show the folding controls."),m("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),m("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:m("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ae(new Rt(112,"showUnused",!0,{description:m("showUnused","Controls fading out of unused code.")})),showDeprecated:ae(new Rt(141,"showDeprecated",!0,{description:m("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ae(new FJ),snippetSuggestions:ae(new qi(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[m("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),m("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),m("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),m("snippetSuggestions.none","Do not show snippet suggestions.")],description:m("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ae(new nee),smoothScrolling:ae(new Rt(115,"smoothScrolling",!1,{description:m("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ae(new di(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ae(new iee),inlineSuggest:ae(new QJ),inlineEdit:ae(new JJ),inlineCompletionsAccessibilityVerbose:ae(new Rt(150,"inlineCompletionsAccessibilityVerbose",!1,{description:m("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ae(new di(120,"suggestFontSize",0,0,1e3,{markdownDescription:m("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ae(new di(121,"suggestLineHeight",0,0,1e3,{markdownDescription:m("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:ae(new Rt(122,"suggestOnTriggerCharacters",!0,{description:m("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ae(new qi(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[m("suggestSelection.first","Always select the first suggestion."),m("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),m("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:m("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ae(new qi(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[m("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),m("tabCompletion.off","Disable tab completions."),m("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:m("tabCompletion","Enables tab completions.")})),tabIndex:ae(new di(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:ae(new XJ),unusualLineTerminators:ae(new qi(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[m("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),m("unusualLineTerminators.off","Unusual line terminators are ignored."),m("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:m("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ae(new Rt(128,"useShadowDOM",!0)),useTabStops:ae(new Rt(129,"useTabStops",!0,{description:m("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:ae(new qi(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[m("wordBreak.normal","Use the default line break rule."),m("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:m("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:ae(new see),wordSeparators:ae(new Rs(132,"wordSeparators",dL,{description:m("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ae(new qi(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[m("wordWrap.off","Lines will never wrap."),m("wordWrap.on","Lines will wrap at the viewport width."),m({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),m({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:m({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:ae(new Rs(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ae(new Rs(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ae(new di(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:m({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:ae(new qi(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ae(new qi(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ae(new DJ),defaultColorDecorators:ae(new Rt(148,"defaultColorDecorators",!1,{markdownDescription:m("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ae(new $J),tabFocusMode:ae(new Rt(145,"tabFocusMode",!1,{markdownDescription:m("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ae(new v_),wrappingInfo:ae(new ree),wrappingIndent:ae(new oee),wrappingStrategy:ae(new AJ)};class uee{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?sb.isErrorNoTelemetry(e)?new sb(e.message+`
@@ -683,27 +683,27 @@ ${e.toString()}`}}class Rx{constructor(e=new dv,t=!1,i,n=gpe){this._services=e,t
683
683
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
684
684
  * Released under the MIT license
685
685
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
686
- *-----------------------------------------------------------------------------*/var _ye=Object.defineProperty,bye=Object.getOwnPropertyDescriptor,vye=Object.getOwnPropertyNames,Cye=Object.prototype.hasOwnProperty,wye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of vye(e))!Cye.call(o,n)&&n!==t&&_ye(o,n,{get:()=>e[n],enumerable:!(i=bye(e,n))||i.enumerable});return o},yye=(o,e,t)=>(wye(o,e,"default"),t),uC={};yye(uC,Fy);var eZ={},cR={},Sye=class tZ{static getOrCreate(e){return cR[e]||(cR[e]=new tZ(e)),cR[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,eZ[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Me(o){const e=o.id;eZ[e]=o,uC.languages.register(o);const t=Sye.getOrCreate(e);uC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),uC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();uC.languages.setLanguageConfiguration(e,i.conf)})}Me({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ee(()=>import("./abap-BrgZPUOV.js"),[],import.meta.url)});Me({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ee(()=>import("./apex-DyP6w7ZV.js"),[],import.meta.url)});Me({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ee(()=>import("./azcli-BaLxmfj-.js"),[],import.meta.url)});Me({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ee(()=>import("./bat-CFOPXBzS.js"),[],import.meta.url)});Me({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ee(()=>import("./bicep-BfEKNvv3.js"),[],import.meta.url)});Me({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ee(()=>import("./cameligo-BFG1Mk7z.js"),[],import.meta.url)});Me({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ee(()=>import("./clojure-DTECt2xU.js"),[],import.meta.url)});Me({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ee(()=>import("./coffee-CDGzqUPQ.js"),[],import.meta.url)});Me({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Me({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Me({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ee(()=>import("./csharp-dUCx_-0o.js"),[],import.meta.url)});Me({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ee(()=>import("./csp-5Rap-vPy.js"),[],import.meta.url)});Me({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ee(()=>import("./css-D3h14YRZ.js"),[],import.meta.url)});Me({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ee(()=>import("./cypher-DrQuvNYM.js"),[],import.meta.url)});Me({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ee(()=>import("./dart-CFKIUWau.js"),[],import.meta.url)});Me({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ee(()=>import("./dockerfile-Zznr-cwX.js"),[],import.meta.url)});Me({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ee(()=>import("./ecl-Ce3n6wWz.js"),[],import.meta.url)});Me({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ee(()=>import("./elixir-deUWdS0T.js"),[],import.meta.url)});Me({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ee(()=>import("./flow9-i9-g7ZhI.js"),[],import.meta.url)});Me({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ee(()=>import("./fsharp-CzKuDChf.js"),[],import.meta.url)});Me({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ee(()=>import("./freemarker2-Dw44kalV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Me({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-Dw44kalV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationDollar)});Me({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-Dw44kalV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationDollar)});Me({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-Dw44kalV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationBracket)});Me({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-Dw44kalV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationBracket)});Me({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-Dw44kalV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Me({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-Dw44kalV.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationBracket)});Me({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ee(()=>import("./go-Cphgjts3.js"),[],import.meta.url)});Me({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ee(()=>import("./graphql-Cg7bfA9N.js"),[],import.meta.url)});Me({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ee(()=>import("./handlebars-CEMFICxK.js"),__vite__mapDeps([3,1,2]),import.meta.url)});Me({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ee(()=>import("./hcl-0cvrggvQ.js"),[],import.meta.url)});Me({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ee(()=>import("./html-skzxzrW2.js"),__vite__mapDeps([4,1,2]),import.meta.url)});Me({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ee(()=>import("./ini-Drc7WvVn.js"),[],import.meta.url)});Me({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ee(()=>import("./java-B_fMsGYe.js"),[],import.meta.url)});Me({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ee(()=>import("./javascript-BgHXwKkG.js"),__vite__mapDeps([5,6,1,2]),import.meta.url)});Me({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ee(()=>import("./julia-Bqgm2twL.js"),[],import.meta.url)});Me({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ee(()=>import("./kotlin-BSkB5QuD.js"),[],import.meta.url)});Me({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ee(()=>import("./less-BsTHnhdd.js"),[],import.meta.url)});Me({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ee(()=>import("./lexon-YWi4-JPR.js"),[],import.meta.url)});Me({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ee(()=>import("./lua-nf6ki56Z.js"),[],import.meta.url)});Me({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ee(()=>import("./liquid-BQolAtSr.js"),__vite__mapDeps([7,1,2]),import.meta.url)});Me({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ee(()=>import("./m3-Cpb6xl2v.js"),[],import.meta.url)});Me({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ee(()=>import("./markdown-DSZPf7rp.js"),[],import.meta.url)});Me({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ee(()=>import("./mdx-CwISUfHN.js"),__vite__mapDeps([8,1,2]),import.meta.url)});Me({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ee(()=>import("./mips-B_c3zf-v.js"),[],import.meta.url)});Me({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ee(()=>import("./msdax-rUNN04Wq.js"),[],import.meta.url)});Me({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ee(()=>import("./mysql-DDwshQtU.js"),[],import.meta.url)});Me({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ee(()=>import("./objective-c-B5zXfXm9.js"),[],import.meta.url)});Me({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ee(()=>import("./pascal-CXOwvkN_.js"),[],import.meta.url)});Me({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ee(()=>import("./pascaligo-Bc-ZgV77.js"),[],import.meta.url)});Me({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ee(()=>import("./perl-CwNk8-XU.js"),[],import.meta.url)});Me({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ee(()=>import("./pgsql-tGk8EFnU.js"),[],import.meta.url)});Me({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ee(()=>import("./php-CpIb_Oan.js"),[],import.meta.url)});Me({id:"pla",extensions:[".pla"],loader:()=>Ee(()=>import("./pla-B03wrqEc.js"),[],import.meta.url)});Me({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ee(()=>import("./postiats-BKlk5iyT.js"),[],import.meta.url)});Me({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ee(()=>import("./powerquery-Bhzvs7bI.js"),[],import.meta.url)});Me({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ee(()=>import("./powershell-Dd3NCNK9.js"),[],import.meta.url)});Me({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ee(()=>import("./protobuf-COyEY5Pt.js"),[],import.meta.url)});Me({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ee(()=>import("./pug-BaJupSGV.js"),[],import.meta.url)});Me({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ee(()=>import("./python-DhucvE8q.js"),__vite__mapDeps([9,1,2]),import.meta.url)});Me({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ee(()=>import("./qsharp-DXyYeYxl.js"),[],import.meta.url)});Me({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ee(()=>import("./r-CdQndTaG.js"),[],import.meta.url)});Me({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ee(()=>import("./razor-C6Qr3L5e.js"),__vite__mapDeps([10,1,2]),import.meta.url)});Me({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ee(()=>import("./redis-CVwtpugi.js"),[],import.meta.url)});Me({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ee(()=>import("./redshift-25W9uPmb.js"),[],import.meta.url)});Me({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ee(()=>import("./restructuredtext-DfzH4Xui.js"),[],import.meta.url)});Me({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ee(()=>import("./ruby-Cp1zYvxS.js"),[],import.meta.url)});Me({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ee(()=>import("./rust-D5C2fndG.js"),[],import.meta.url)});Me({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ee(()=>import("./sb-CDntyWJ8.js"),[],import.meta.url)});Me({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ee(()=>import("./scala-BoFRg7Ot.js"),[],import.meta.url)});Me({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ee(()=>import("./scheme-Bio4gycK.js"),[],import.meta.url)});Me({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ee(()=>import("./scss-4Ik7cdeQ.js"),[],import.meta.url)});Me({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ee(()=>import("./shell-CX-rkNHf.js"),[],import.meta.url)});Me({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ee(()=>import("./solidity-Tw7wswEv.js"),[],import.meta.url)});Me({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ee(()=>import("./sophia-C5WLch3f.js"),[],import.meta.url)});Me({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ee(()=>import("./sparql-DHaeiCBh.js"),[],import.meta.url)});Me({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ee(()=>import("./sql-CCSDG5nI.js"),[],import.meta.url)});Me({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ee(()=>import("./st-pnP8ivHi.js"),[],import.meta.url)});Me({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ee(()=>import("./swift-DwJ7jVG9.js"),[],import.meta.url)});Me({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Me({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Me({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ee(()=>import("./tcl-DnHyzjbg.js"),[],import.meta.url)});Me({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ee(()=>import("./twig-CPajHgWi.js"),[],import.meta.url)});Me({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ee(()=>import("./typescript-D3bsPWHt.js"),__vite__mapDeps([6,1,2]),import.meta.url)});Me({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ee(()=>import("./typespec-D-MeaMDU.js"),[],import.meta.url)});Me({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ee(()=>import("./vb-DgyLZaXg.js"),[],import.meta.url)});Me({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ee(()=>import("./wgsl-BIv9DU6q.js"),[],import.meta.url)});Me({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ee(()=>import("./xml-Dc0lsYpw.js"),__vite__mapDeps([11,1,2]),import.meta.url)});Me({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ee(()=>import("./yaml-BOMEMGOG.js"),__vite__mapDeps([12,1,2]),import.meta.url)});/*!-----------------------------------------------------------------------------
686
+ *-----------------------------------------------------------------------------*/var _ye=Object.defineProperty,bye=Object.getOwnPropertyDescriptor,vye=Object.getOwnPropertyNames,Cye=Object.prototype.hasOwnProperty,wye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of vye(e))!Cye.call(o,n)&&n!==t&&_ye(o,n,{get:()=>e[n],enumerable:!(i=bye(e,n))||i.enumerable});return o},yye=(o,e,t)=>(wye(o,e,"default"),t),uC={};yye(uC,Fy);var eZ={},cR={},Sye=class tZ{static getOrCreate(e){return cR[e]||(cR[e]=new tZ(e)),cR[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,eZ[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Me(o){const e=o.id;eZ[e]=o,uC.languages.register(o);const t=Sye.getOrCreate(e);uC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),uC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();uC.languages.setLanguageConfiguration(e,i.conf)})}Me({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ee(()=>import("./abap-BrgZPUOV.js"),[],import.meta.url)});Me({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ee(()=>import("./apex-DyP6w7ZV.js"),[],import.meta.url)});Me({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ee(()=>import("./azcli-BaLxmfj-.js"),[],import.meta.url)});Me({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ee(()=>import("./bat-CFOPXBzS.js"),[],import.meta.url)});Me({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ee(()=>import("./bicep-BfEKNvv3.js"),[],import.meta.url)});Me({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ee(()=>import("./cameligo-BFG1Mk7z.js"),[],import.meta.url)});Me({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ee(()=>import("./clojure-DTECt2xU.js"),[],import.meta.url)});Me({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ee(()=>import("./coffee-CDGzqUPQ.js"),[],import.meta.url)});Me({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Me({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ee(()=>import("./cpp-CLLBncYj.js"),[],import.meta.url)});Me({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ee(()=>import("./csharp-dUCx_-0o.js"),[],import.meta.url)});Me({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ee(()=>import("./csp-5Rap-vPy.js"),[],import.meta.url)});Me({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ee(()=>import("./css-D3h14YRZ.js"),[],import.meta.url)});Me({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ee(()=>import("./cypher-DrQuvNYM.js"),[],import.meta.url)});Me({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ee(()=>import("./dart-CFKIUWau.js"),[],import.meta.url)});Me({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ee(()=>import("./dockerfile-Zznr-cwX.js"),[],import.meta.url)});Me({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ee(()=>import("./ecl-Ce3n6wWz.js"),[],import.meta.url)});Me({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ee(()=>import("./elixir-deUWdS0T.js"),[],import.meta.url)});Me({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ee(()=>import("./flow9-i9-g7ZhI.js"),[],import.meta.url)});Me({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ee(()=>import("./fsharp-CzKuDChf.js"),[],import.meta.url)});Me({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ee(()=>import("./freemarker2-B9rQlI0W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Me({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-B9rQlI0W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationDollar)});Me({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-B9rQlI0W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationDollar)});Me({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-B9rQlI0W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAngleInterpolationBracket)});Me({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-B9rQlI0W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagBracketInterpolationBracket)});Me({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ee(()=>import("./freemarker2-B9rQlI0W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationDollar)});Me({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ee(()=>import("./freemarker2-B9rQlI0W.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.TagAutoInterpolationBracket)});Me({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ee(()=>import("./go-Cphgjts3.js"),[],import.meta.url)});Me({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ee(()=>import("./graphql-Cg7bfA9N.js"),[],import.meta.url)});Me({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ee(()=>import("./handlebars-JoS7AGnA.js"),__vite__mapDeps([3,1,2]),import.meta.url)});Me({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ee(()=>import("./hcl-0cvrggvQ.js"),[],import.meta.url)});Me({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ee(()=>import("./html-CjA1yMmY.js"),__vite__mapDeps([4,1,2]),import.meta.url)});Me({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ee(()=>import("./ini-Drc7WvVn.js"),[],import.meta.url)});Me({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ee(()=>import("./java-B_fMsGYe.js"),[],import.meta.url)});Me({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ee(()=>import("./javascript-D2uRuhrb.js"),__vite__mapDeps([5,6,1,2]),import.meta.url)});Me({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ee(()=>import("./julia-Bqgm2twL.js"),[],import.meta.url)});Me({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ee(()=>import("./kotlin-BSkB5QuD.js"),[],import.meta.url)});Me({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ee(()=>import("./less-BsTHnhdd.js"),[],import.meta.url)});Me({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ee(()=>import("./lexon-YWi4-JPR.js"),[],import.meta.url)});Me({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ee(()=>import("./lua-nf6ki56Z.js"),[],import.meta.url)});Me({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ee(()=>import("./liquid-B4OzkwvS.js"),__vite__mapDeps([7,1,2]),import.meta.url)});Me({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ee(()=>import("./m3-Cpb6xl2v.js"),[],import.meta.url)});Me({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ee(()=>import("./markdown-DSZPf7rp.js"),[],import.meta.url)});Me({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ee(()=>import("./mdx-CqMdTEBH.js"),__vite__mapDeps([8,1,2]),import.meta.url)});Me({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ee(()=>import("./mips-B_c3zf-v.js"),[],import.meta.url)});Me({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ee(()=>import("./msdax-rUNN04Wq.js"),[],import.meta.url)});Me({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ee(()=>import("./mysql-DDwshQtU.js"),[],import.meta.url)});Me({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ee(()=>import("./objective-c-B5zXfXm9.js"),[],import.meta.url)});Me({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ee(()=>import("./pascal-CXOwvkN_.js"),[],import.meta.url)});Me({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ee(()=>import("./pascaligo-Bc-ZgV77.js"),[],import.meta.url)});Me({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ee(()=>import("./perl-CwNk8-XU.js"),[],import.meta.url)});Me({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ee(()=>import("./pgsql-tGk8EFnU.js"),[],import.meta.url)});Me({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ee(()=>import("./php-CpIb_Oan.js"),[],import.meta.url)});Me({id:"pla",extensions:[".pla"],loader:()=>Ee(()=>import("./pla-B03wrqEc.js"),[],import.meta.url)});Me({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ee(()=>import("./postiats-BKlk5iyT.js"),[],import.meta.url)});Me({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ee(()=>import("./powerquery-Bhzvs7bI.js"),[],import.meta.url)});Me({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ee(()=>import("./powershell-Dd3NCNK9.js"),[],import.meta.url)});Me({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ee(()=>import("./protobuf-COyEY5Pt.js"),[],import.meta.url)});Me({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ee(()=>import("./pug-BaJupSGV.js"),[],import.meta.url)});Me({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ee(()=>import("./python-D0daul4G.js"),__vite__mapDeps([9,1,2]),import.meta.url)});Me({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ee(()=>import("./qsharp-DXyYeYxl.js"),[],import.meta.url)});Me({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ee(()=>import("./r-CdQndTaG.js"),[],import.meta.url)});Me({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ee(()=>import("./razor-DcoRvbTO.js"),__vite__mapDeps([10,1,2]),import.meta.url)});Me({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ee(()=>import("./redis-CVwtpugi.js"),[],import.meta.url)});Me({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ee(()=>import("./redshift-25W9uPmb.js"),[],import.meta.url)});Me({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ee(()=>import("./restructuredtext-DfzH4Xui.js"),[],import.meta.url)});Me({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ee(()=>import("./ruby-Cp1zYvxS.js"),[],import.meta.url)});Me({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ee(()=>import("./rust-D5C2fndG.js"),[],import.meta.url)});Me({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ee(()=>import("./sb-CDntyWJ8.js"),[],import.meta.url)});Me({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ee(()=>import("./scala-BoFRg7Ot.js"),[],import.meta.url)});Me({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ee(()=>import("./scheme-Bio4gycK.js"),[],import.meta.url)});Me({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ee(()=>import("./scss-4Ik7cdeQ.js"),[],import.meta.url)});Me({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ee(()=>import("./shell-CX-rkNHf.js"),[],import.meta.url)});Me({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ee(()=>import("./solidity-Tw7wswEv.js"),[],import.meta.url)});Me({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ee(()=>import("./sophia-C5WLch3f.js"),[],import.meta.url)});Me({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ee(()=>import("./sparql-DHaeiCBh.js"),[],import.meta.url)});Me({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ee(()=>import("./sql-CCSDG5nI.js"),[],import.meta.url)});Me({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ee(()=>import("./st-pnP8ivHi.js"),[],import.meta.url)});Me({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ee(()=>import("./swift-DwJ7jVG9.js"),[],import.meta.url)});Me({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Me({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ee(()=>import("./systemverilog-B9Xyijhd.js"),[],import.meta.url)});Me({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ee(()=>import("./tcl-DnHyzjbg.js"),[],import.meta.url)});Me({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ee(()=>import("./twig-CPajHgWi.js"),[],import.meta.url)});Me({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ee(()=>import("./typescript-CMloI-91.js"),__vite__mapDeps([6,1,2]),import.meta.url)});Me({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ee(()=>import("./typespec-D-MeaMDU.js"),[],import.meta.url)});Me({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ee(()=>import("./vb-DgyLZaXg.js"),[],import.meta.url)});Me({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ee(()=>import("./wgsl-BIv9DU6q.js"),[],import.meta.url)});Me({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ee(()=>import("./xml-Bmh9MaKg.js"),__vite__mapDeps([11,1,2]),import.meta.url)});Me({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ee(()=>import("./yaml-Dc9MTEH8.js"),__vite__mapDeps([12,1,2]),import.meta.url)});/*!-----------------------------------------------------------------------------
687
687
  * Copyright (c) Microsoft Corporation. All rights reserved.
688
688
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
689
689
  * Released under the MIT license
690
690
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
691
- *-----------------------------------------------------------------------------*/var Lye=Object.defineProperty,xye=Object.getOwnPropertyDescriptor,kye=Object.getOwnPropertyNames,Dye=Object.prototype.hasOwnProperty,Iye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of kye(e))!Dye.call(o,n)&&n!==t&&Lye(o,n,{get:()=>e[n],enumerable:!(i=xye(e,n))||i.enumerable});return o},Eye=(o,e,t)=>(Iye(o,e,"default"),t),gv={};Eye(gv,Fy);var sB=class{constructor(e,t,i){this._onDidChange=new gv.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},oB={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},rB={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},iZ=new sB("css",oB,rB),nZ=new sB("scss",oB,rB),sZ=new sB("less",oB,rB);gv.languages.css={cssDefaults:iZ,lessDefaults:sZ,scssDefaults:nZ};function aB(){return Ee(()=>import("./cssMode-fc0wHMGr.js"),__vite__mapDeps([13,1,2]),import.meta.url)}gv.languages.onLanguage("less",()=>{aB().then(o=>o.setupMode(sZ))});gv.languages.onLanguage("scss",()=>{aB().then(o=>o.setupMode(nZ))});gv.languages.onLanguage("css",()=>{aB().then(o=>o.setupMode(iZ))});/*!-----------------------------------------------------------------------------
691
+ *-----------------------------------------------------------------------------*/var Lye=Object.defineProperty,xye=Object.getOwnPropertyDescriptor,kye=Object.getOwnPropertyNames,Dye=Object.prototype.hasOwnProperty,Iye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of kye(e))!Dye.call(o,n)&&n!==t&&Lye(o,n,{get:()=>e[n],enumerable:!(i=xye(e,n))||i.enumerable});return o},Eye=(o,e,t)=>(Iye(o,e,"default"),t),gv={};Eye(gv,Fy);var sB=class{constructor(e,t,i){this._onDidChange=new gv.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},oB={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},rB={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},iZ=new sB("css",oB,rB),nZ=new sB("scss",oB,rB),sZ=new sB("less",oB,rB);gv.languages.css={cssDefaults:iZ,lessDefaults:sZ,scssDefaults:nZ};function aB(){return Ee(()=>import("./cssMode-CUOhFn4h.js"),__vite__mapDeps([13,1,2]),import.meta.url)}gv.languages.onLanguage("less",()=>{aB().then(o=>o.setupMode(sZ))});gv.languages.onLanguage("scss",()=>{aB().then(o=>o.setupMode(nZ))});gv.languages.onLanguage("css",()=>{aB().then(o=>o.setupMode(iZ))});/*!-----------------------------------------------------------------------------
692
692
  * Copyright (c) Microsoft Corporation. All rights reserved.
693
693
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
694
694
  * Released under the MIT license
695
695
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
696
- *-----------------------------------------------------------------------------*/var Nye=Object.defineProperty,Tye=Object.getOwnPropertyDescriptor,Rye=Object.getOwnPropertyNames,Mye=Object.prototype.hasOwnProperty,Aye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rye(e))!Mye.call(o,n)&&n!==t&&Nye(o,n,{get:()=>e[n],enumerable:!(i=Tye(e,n))||i.enumerable});return o},Pye=(o,e,t)=>(Aye(o,e,"default"),t),nN={};Pye(nN,Fy);var Oye=class{constructor(e,t,i){this._onDidChange=new nN.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Fye={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},sN={format:Fye,suggest:{},data:{useDefaultDataProvider:!0}};function oN(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===QC,documentFormattingEdits:o===QC,documentRangeFormattingEdits:o===QC}}var QC="html",rV="handlebars",aV="razor",oZ=rN(QC,sN,oN(QC)),Wye=oZ.defaults,rZ=rN(rV,sN,oN(rV)),Bye=rZ.defaults,aZ=rN(aV,sN,oN(aV)),Hye=aZ.defaults;nN.languages.html={htmlDefaults:Wye,razorDefaults:Hye,handlebarDefaults:Bye,htmlLanguageService:oZ,handlebarLanguageService:rZ,razorLanguageService:aZ,registerHTMLLanguageService:rN};function Vye(){return Ee(()=>import("./htmlMode-C-4dSBn8.js"),__vite__mapDeps([14,1,2]),import.meta.url)}function rN(o,e=sN,t=oN(o)){const i=new Oye(o,e,t);let n;const s=nN.languages.onLanguage(o,async()=>{n=(await Vye()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!-----------------------------------------------------------------------------
696
+ *-----------------------------------------------------------------------------*/var Nye=Object.defineProperty,Tye=Object.getOwnPropertyDescriptor,Rye=Object.getOwnPropertyNames,Mye=Object.prototype.hasOwnProperty,Aye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rye(e))!Mye.call(o,n)&&n!==t&&Nye(o,n,{get:()=>e[n],enumerable:!(i=Tye(e,n))||i.enumerable});return o},Pye=(o,e,t)=>(Aye(o,e,"default"),t),nN={};Pye(nN,Fy);var Oye=class{constructor(e,t,i){this._onDidChange=new nN.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Fye={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},sN={format:Fye,suggest:{},data:{useDefaultDataProvider:!0}};function oN(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===QC,documentFormattingEdits:o===QC,documentRangeFormattingEdits:o===QC}}var QC="html",rV="handlebars",aV="razor",oZ=rN(QC,sN,oN(QC)),Wye=oZ.defaults,rZ=rN(rV,sN,oN(rV)),Bye=rZ.defaults,aZ=rN(aV,sN,oN(aV)),Hye=aZ.defaults;nN.languages.html={htmlDefaults:Wye,razorDefaults:Hye,handlebarDefaults:Bye,htmlLanguageService:oZ,handlebarLanguageService:rZ,razorLanguageService:aZ,registerHTMLLanguageService:rN};function Vye(){return Ee(()=>import("./htmlMode--Tr5VBAP.js"),__vite__mapDeps([14,1,2]),import.meta.url)}function rN(o,e=sN,t=oN(o)){const i=new Oye(o,e,t);let n;const s=nN.languages.onLanguage(o,async()=>{n=(await Vye()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!-----------------------------------------------------------------------------
697
697
  * Copyright (c) Microsoft Corporation. All rights reserved.
698
698
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
699
699
  * Released under the MIT license
700
700
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
701
- *-----------------------------------------------------------------------------*/var zye=Object.defineProperty,Uye=Object.getOwnPropertyDescriptor,$ye=Object.getOwnPropertyNames,jye=Object.prototype.hasOwnProperty,Kye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $ye(e))!jye.call(o,n)&&n!==t&&zye(o,n,{get:()=>e[n],enumerable:!(i=Uye(e,n))||i.enumerable});return o},qye=(o,e,t)=>(Kye(o,e,"default"),t),Wy={};qye(Wy,Fy);var Gye=class{constructor(e,t,i){this._onDidChange=new Wy.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Zye={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Yye={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},lZ=new Gye("json",Zye,Yye),Xye=()=>cZ().then(o=>o.getWorker());Wy.languages.json={jsonDefaults:lZ,getWorker:Xye};function cZ(){return Ee(()=>import("./jsonMode-Lc8WrRU9.js"),__vite__mapDeps([15,1,2]),import.meta.url)}Wy.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Wy.languages.onLanguage("json",()=>{cZ().then(o=>o.setupMode(lZ))});/*!-----------------------------------------------------------------------------
701
+ *-----------------------------------------------------------------------------*/var zye=Object.defineProperty,Uye=Object.getOwnPropertyDescriptor,$ye=Object.getOwnPropertyNames,jye=Object.prototype.hasOwnProperty,Kye=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of $ye(e))!jye.call(o,n)&&n!==t&&zye(o,n,{get:()=>e[n],enumerable:!(i=Uye(e,n))||i.enumerable});return o},qye=(o,e,t)=>(Kye(o,e,"default"),t),Wy={};qye(Wy,Fy);var Gye=class{constructor(e,t,i){this._onDidChange=new Wy.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Zye={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Yye={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},lZ=new Gye("json",Zye,Yye),Xye=()=>cZ().then(o=>o.getWorker());Wy.languages.json={jsonDefaults:lZ,getWorker:Xye};function cZ(){return Ee(()=>import("./jsonMode-DjpB6dsQ.js"),__vite__mapDeps([15,1,2]),import.meta.url)}Wy.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Wy.languages.onLanguage("json",()=>{cZ().then(o=>o.setupMode(lZ))});/*!-----------------------------------------------------------------------------
702
702
  * Copyright (c) Microsoft Corporation. All rights reserved.
703
703
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
704
704
  * Released under the MIT license
705
705
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
706
- *-----------------------------------------------------------------------------*/var Qye=Object.defineProperty,Jye=Object.getOwnPropertyDescriptor,e0e=Object.getOwnPropertyNames,t0e=Object.prototype.hasOwnProperty,i0e=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of e0e(e))!t0e.call(o,n)&&n!==t&&Qye(o,n,{get:()=>e[n],enumerable:!(i=Jye(e,n))||i.enumerable});return o},n0e=(o,e,t)=>(i0e(o,e,"default"),t),s0e="5.4.5",Nb={};n0e(Nb,Fy);var dZ=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(dZ||{}),hZ=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(hZ||{}),uZ=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(uZ||{}),gZ=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(gZ||{}),fZ=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(fZ||{}),mZ=class{constructor(o,e,t,i,n){this._onDidChange=new Nb.Emitter,this._onDidExtraLibsChange=new Nb.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},o0e=s0e,pZ={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},_Z=new mZ({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},pZ),bZ=new mZ({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},pZ),r0e=()=>aN().then(o=>o.getTypeScriptWorker()),a0e=()=>aN().then(o=>o.getJavaScriptWorker());Nb.languages.typescript={ModuleKind:dZ,JsxEmit:hZ,NewLineKind:uZ,ScriptTarget:gZ,ModuleResolutionKind:fZ,typescriptVersion:o0e,typescriptDefaults:_Z,javascriptDefaults:bZ,getTypeScriptWorker:r0e,getJavaScriptWorker:a0e};function aN(){return Ee(()=>import("./tsMode-C2Xy3bvH.js"),__vite__mapDeps([16,1,2]),import.meta.url)}Nb.languages.onLanguage("typescript",()=>aN().then(o=>o.setupTypeScript(_Z)));Nb.languages.onLanguage("javascript",()=>aN().then(o=>o.setupJavaScript(bZ)));class l0e extends oo{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:He("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:se.map,toggled:Z.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Z.has("isInDiffEditor"),menu:{when:Z.has("isInDiffEditor"),id:Ce.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(dt),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class vZ extends oo{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:He("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(dt),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class CZ extends oo{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:He("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(dt),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const By=He("diffEditor","Diff Editor");class c0e extends El{constructor(){super({id:"diffEditor.switchSide",title:He("switchSide","Switch Side"),icon:se.arrowSwap,precondition:Z.has("isInDiffEditor"),f1:!0,category:By})}runEditorCommand(e,t,i){const n=fv(e);if(n instanceof Ud){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class d0e extends El{constructor(){super({id:"diffEditor.exitCompareMove",title:He("exitCompareMove","Exit Compare Move"),icon:se.close,precondition:I.comparingMovedCode,f1:!1,category:By,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=fv(e);n instanceof Ud&&n.exitCompareMove()}}class h0e extends El{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:He("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:se.fold,precondition:Z.has("isInDiffEditor"),f1:!0,category:By})}runEditorCommand(e,t,...i){const n=fv(e);n instanceof Ud&&n.collapseAllUnchangedRegions()}}class u0e extends El{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:He("showAllUnchangedRegions","Show All Unchanged Regions"),icon:se.unfold,precondition:Z.has("isInDiffEditor"),f1:!0,category:By})}runEditorCommand(e,t,...i){const n=fv(e);n instanceof Ud&&n.showAllUnchangedRegions()}}class NO extends oo{constructor(){super({id:"diffEditor.revert",title:He("revert","Revert"),f1:!1,category:By})}run(e,t){const i=g0e(e,t.originalUri,t.modifiedUri);i instanceof Ud&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const wZ=He("accessibleDiffViewer","Accessible Diff Viewer"),eI=class eI extends oo{constructor(){super({id:eI.id,title:He("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:wZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=fv(e);t==null||t.accessibleDiffViewerNext()}};eI.id="editor.action.accessibleDiffViewer.next";let A1=eI;const tI=class tI extends oo{constructor(){super({id:tI.id,title:He("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:wZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=fv(e);t==null||t.accessibleDiffViewerPrev()}};tI.id="editor.action.accessibleDiffViewer.prev";let ak=tI;function g0e(o,e,t){return o.get(Ot).listDiffEditors().find(s=>{var l,c;const r=s.getModifiedEditor(),a=s.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function fv(o){const t=o.get(Ot).listDiffEditors(),i=ds();if(i)for(const n of t){const s=n.getContainerDomNode();if(f0e(s,i))return n}return null}function f0e(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}ui(l0e);ui(vZ);ui(CZ);jn.appendMenuItem(Ce.EditorTitle,{command:{id:new CZ().desc.id,title:m("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Z.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Z.has("isInDiffEditor")},order:11,group:"1_diff",when:Z.and(I.diffEditorRenderSideBySideInlineBreakpointReached,Z.has("isInDiffEditor"))});jn.appendMenuItem(Ce.EditorTitle,{command:{id:new vZ().desc.id,title:m("showMoves","Show Moved Code Blocks"),icon:se.move,toggled:Yb.create("config.diffEditor.experimental.showMoves",!0),precondition:Z.has("isInDiffEditor")},order:10,group:"1_diff",when:Z.has("isInDiffEditor")});ui(NO);for(const o of[{icon:se.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:se.discard,key:I.diffEditorInlineMode}])jn.appendMenuItem(Ce.DiffEditorHunkToolbar,{command:{id:new NO().desc.id,title:m("revertHunk","Revert Block"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),jn.appendMenuItem(Ce.DiffEditorSelectionToolbar,{command:{id:new NO().desc.id,title:m("revertSelection","Revert Selection"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"});ui(c0e);ui(d0e);ui(h0e);ui(u0e);jn.appendMenuItem(Ce.EditorTitle,{command:{id:A1.id,title:m("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Z.has("isInDiffEditor")},order:10,group:"2_diff",when:Z.and(I.accessibleDiffViewerVisible.negate(),Z.has("isInDiffEditor"))});Lt.registerCommandAlias("editor.action.diffReview.next",A1.id);ui(A1);Lt.registerCommandAlias("editor.action.diffReview.prev",ak.id);ui(ak);var m0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},p0e=function(o,e){return function(t,i){e(t,i,o)}},TO;const lN=new ge("selectionAnchorSet",!1);var yf;let Wu=(yf=class{static get(e){return e.getContribution(TO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=lN.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(we.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new bs().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),no(m("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(we.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},TO=yf,yf.ID="editor.contrib.selectionAnchorController",yf);Wu=TO=m0e([p0e(1,Fe)],Wu);class _0e extends me{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Sn(2089,2080),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.setSelectionAnchor()}}class b0e extends me{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:lN})}async run(e,t){var i;(i=Wu.get(t))==null||i.goToSelectionAnchor()}}class v0e extends me{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:lN,kbOpts:{kbExpr:I.editorTextFocus,primary:Sn(2089,2089),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.selectFromAnchorToCursor()}}class C0e extends me{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:lN,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.cancelSelectionAnchor()}}Dt(Wu.ID,Wu,4);te(_0e);te(b0e);te(v0e);te(C0e);const w0e=N("editorOverviewRuler.bracketMatchForeground","#A0A0A0",m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class y0e extends me{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=xm.get(t))==null||i.jumpToBracket()}}class S0e extends me{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:He("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var s;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(s=xm.get(t))==null||s.selectToBracket(n)}}class L0e extends me{constructor(){super({id:"editor.action.removeBrackets",label:m("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=xm.get(t))==null||i.removeBrackets(this.id)}}class x0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Sh=class Sh extends V{static get(e){return e.getContribution(Sh.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Jt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new we(r.lineNumber,r.column,r.lineNumber,r.column):new we(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new we(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[r++]=g.getStartPosition())}s.length>1&&s.sort(O.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;c<d&&n[c].position.isBefore(g);)c++;if(c<d&&n[c].position.equals(g))a[l++]=n[c];else{let f=t.bracketPairs.matchBracket(g,20),p=Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),p=Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new x0e(g,f,p)}}this._lastBracketsData=a,this._lastVersionId=i}};Sh.ID="editor.contrib.bracketMatchingController",Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Qe.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Yi(w0e),position:xr.Center}}),Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Qe.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let xm=Sh;Dt(xm.ID,xm,1);te(S0e);te(y0e);te(L0e);jn.appendMenuItem(Ce.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:m({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class k0e{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new x(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,s,i,s),a)}else{const r=new x(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new we(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new we(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class yZ extends me{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new k0e(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class D0e extends yZ{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:m("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:I.writable})}}class I0e extends yZ{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:m("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:I.writable})}}te(D0e);te(I0e);class E0e extends me{constructor(){super({id:"editor.action.transposeLetters",label:m("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:I.writable,kbOpts:{kbExpr:I.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():Zt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=Zt.leftPosition(i,d),u=Zt.leftPosition(i,h),g=i.getValueInRange(x.fromPositions(u,h)),f=i.getValueInRange(x.fromPositions(h,d)),p=x.fromPositions(u,d);n.push(new cs(p,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}te(E0e);const cN=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n<i.length;n++)i[n]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){o(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=0,s="";return s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s}})();function lB(o){return{asString:async()=>o,asFile:()=>{},value:typeof o=="string"?o:void 0}}function N0e(o,e,t){const i={id:cN(),name:o,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class SZ{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return St.some(this,([i,n])=>n.asFile())&&t.push("files"),xZ(lk(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return lk(e)}}function lk(o){return o.toLowerCase()}function LZ(o,e){return xZ(lk(o),e.map(lk))}function xZ(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const dN=Object.freeze({create:o=>Pd(o.map(e=>e.toString())).join(`\r
706
+ *-----------------------------------------------------------------------------*/var Qye=Object.defineProperty,Jye=Object.getOwnPropertyDescriptor,e0e=Object.getOwnPropertyNames,t0e=Object.prototype.hasOwnProperty,i0e=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of e0e(e))!t0e.call(o,n)&&n!==t&&Qye(o,n,{get:()=>e[n],enumerable:!(i=Jye(e,n))||i.enumerable});return o},n0e=(o,e,t)=>(i0e(o,e,"default"),t),s0e="5.4.5",Nb={};n0e(Nb,Fy);var dZ=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(dZ||{}),hZ=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(hZ||{}),uZ=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(uZ||{}),gZ=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(gZ||{}),fZ=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(fZ||{}),mZ=class{constructor(o,e,t,i,n){this._onDidChange=new Nb.Emitter,this._onDidExtraLibsChange=new Nb.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},o0e=s0e,pZ={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},_Z=new mZ({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},pZ),bZ=new mZ({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},pZ),r0e=()=>aN().then(o=>o.getTypeScriptWorker()),a0e=()=>aN().then(o=>o.getJavaScriptWorker());Nb.languages.typescript={ModuleKind:dZ,JsxEmit:hZ,NewLineKind:uZ,ScriptTarget:gZ,ModuleResolutionKind:fZ,typescriptVersion:o0e,typescriptDefaults:_Z,javascriptDefaults:bZ,getTypeScriptWorker:r0e,getJavaScriptWorker:a0e};function aN(){return Ee(()=>import("./tsMode-c9L2aVZe.js"),__vite__mapDeps([16,1,2]),import.meta.url)}Nb.languages.onLanguage("typescript",()=>aN().then(o=>o.setupTypeScript(_Z)));Nb.languages.onLanguage("javascript",()=>aN().then(o=>o.setupJavaScript(bZ)));class l0e extends oo{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:He("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:se.map,toggled:Z.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Z.has("isInDiffEditor"),menu:{when:Z.has("isInDiffEditor"),id:Ce.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(dt),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class vZ extends oo{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:He("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(dt),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class CZ extends oo{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:He("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(dt),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const By=He("diffEditor","Diff Editor");class c0e extends El{constructor(){super({id:"diffEditor.switchSide",title:He("switchSide","Switch Side"),icon:se.arrowSwap,precondition:Z.has("isInDiffEditor"),f1:!0,category:By})}runEditorCommand(e,t,i){const n=fv(e);if(n instanceof Ud){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class d0e extends El{constructor(){super({id:"diffEditor.exitCompareMove",title:He("exitCompareMove","Exit Compare Move"),icon:se.close,precondition:I.comparingMovedCode,f1:!1,category:By,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=fv(e);n instanceof Ud&&n.exitCompareMove()}}class h0e extends El{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:He("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:se.fold,precondition:Z.has("isInDiffEditor"),f1:!0,category:By})}runEditorCommand(e,t,...i){const n=fv(e);n instanceof Ud&&n.collapseAllUnchangedRegions()}}class u0e extends El{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:He("showAllUnchangedRegions","Show All Unchanged Regions"),icon:se.unfold,precondition:Z.has("isInDiffEditor"),f1:!0,category:By})}runEditorCommand(e,t,...i){const n=fv(e);n instanceof Ud&&n.showAllUnchangedRegions()}}class NO extends oo{constructor(){super({id:"diffEditor.revert",title:He("revert","Revert"),f1:!1,category:By})}run(e,t){const i=g0e(e,t.originalUri,t.modifiedUri);i instanceof Ud&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const wZ=He("accessibleDiffViewer","Accessible Diff Viewer"),eI=class eI extends oo{constructor(){super({id:eI.id,title:He("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:wZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=fv(e);t==null||t.accessibleDiffViewerNext()}};eI.id="editor.action.accessibleDiffViewer.next";let A1=eI;const tI=class tI extends oo{constructor(){super({id:tI.id,title:He("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:wZ,precondition:Z.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=fv(e);t==null||t.accessibleDiffViewerPrev()}};tI.id="editor.action.accessibleDiffViewer.prev";let ak=tI;function g0e(o,e,t){return o.get(Ot).listDiffEditors().find(s=>{var l,c;const r=s.getModifiedEditor(),a=s.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function fv(o){const t=o.get(Ot).listDiffEditors(),i=ds();if(i)for(const n of t){const s=n.getContainerDomNode();if(f0e(s,i))return n}return null}function f0e(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}ui(l0e);ui(vZ);ui(CZ);jn.appendMenuItem(Ce.EditorTitle,{command:{id:new CZ().desc.id,title:m("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Z.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Z.has("isInDiffEditor")},order:11,group:"1_diff",when:Z.and(I.diffEditorRenderSideBySideInlineBreakpointReached,Z.has("isInDiffEditor"))});jn.appendMenuItem(Ce.EditorTitle,{command:{id:new vZ().desc.id,title:m("showMoves","Show Moved Code Blocks"),icon:se.move,toggled:Yb.create("config.diffEditor.experimental.showMoves",!0),precondition:Z.has("isInDiffEditor")},order:10,group:"1_diff",when:Z.has("isInDiffEditor")});ui(NO);for(const o of[{icon:se.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:se.discard,key:I.diffEditorInlineMode}])jn.appendMenuItem(Ce.DiffEditorHunkToolbar,{command:{id:new NO().desc.id,title:m("revertHunk","Revert Block"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),jn.appendMenuItem(Ce.DiffEditorSelectionToolbar,{command:{id:new NO().desc.id,title:m("revertSelection","Revert Selection"),icon:o.icon},when:Z.and(I.diffEditorModifiedWritable,o.key),order:5,group:"primary"});ui(c0e);ui(d0e);ui(h0e);ui(u0e);jn.appendMenuItem(Ce.EditorTitle,{command:{id:A1.id,title:m("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Z.has("isInDiffEditor")},order:10,group:"2_diff",when:Z.and(I.accessibleDiffViewerVisible.negate(),Z.has("isInDiffEditor"))});Lt.registerCommandAlias("editor.action.diffReview.next",A1.id);ui(A1);Lt.registerCommandAlias("editor.action.diffReview.prev",ak.id);ui(ak);var m0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},p0e=function(o,e){return function(t,i){e(t,i,o)}},TO;const lN=new ge("selectionAnchorSet",!1);var yf;let Wu=(yf=class{static get(e){return e.getContribution(TO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=lN.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(we.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new bs().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),no(m("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(we.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},TO=yf,yf.ID="editor.contrib.selectionAnchorController",yf);Wu=TO=m0e([p0e(1,Fe)],Wu);class _0e extends me{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Sn(2089,2080),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.setSelectionAnchor()}}class b0e extends me{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:lN})}async run(e,t){var i;(i=Wu.get(t))==null||i.goToSelectionAnchor()}}class v0e extends me{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:lN,kbOpts:{kbExpr:I.editorTextFocus,primary:Sn(2089,2089),weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.selectFromAnchorToCursor()}}class C0e extends me{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:lN,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Wu.get(t))==null||i.cancelSelectionAnchor()}}Dt(Wu.ID,Wu,4);te(_0e);te(b0e);te(v0e);te(C0e);const w0e=N("editorOverviewRuler.bracketMatchForeground","#A0A0A0",m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class y0e extends me{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=xm.get(t))==null||i.jumpToBracket()}}class S0e extends me{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:He("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var s;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(s=xm.get(t))==null||s.selectToBracket(n)}}class L0e extends me{constructor(){super({id:"editor.action.removeBrackets",label:m("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=xm.get(t))==null||i.removeBrackets(this.id)}}class x0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Sh=class Sh extends V{static get(e){return e.getContribution(Sh.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Jt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new we(r.lineNumber,r.column,r.lineNumber,r.column):new we(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new we(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h<u;h++){const g=e[h];g.isEmpty()&&(s[r++]=g.getStartPosition())}s.length>1&&s.sort(O.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=s.length;h<u;h++){const g=s[h];for(;c<d&&n[c].position.isBefore(g);)c++;if(c<d&&n[c].position.equals(g))a[l++]=n[c];else{let f=t.bracketPairs.matchBracket(g,20),p=Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!f&&this._matchBrackets==="always"&&(f=t.bracketPairs.findEnclosingBrackets(g,20),p=Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new x0e(g,f,p)}}this._lastBracketsData=a,this._lastVersionId=i}};Sh.ID="editor.contrib.bracketMatchingController",Sh._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Qe.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Yi(w0e),position:xr.Center}}),Sh._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Qe.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});let xm=Sh;Dt(xm.ID,xm,1);te(S0e);te(y0e);te(L0e);jn.appendMenuItem(Ce.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:m({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class k0e{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,s=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&s===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new x(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,s,i,s),a)}else{const r=new x(i,s,i,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new we(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new we(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class yZ extends me{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const s of n)i.push(new k0e(s,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class D0e extends yZ{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:m("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:I.writable})}}class I0e extends yZ{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:m("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:I.writable})}}te(D0e);te(I0e);class E0e extends me{constructor(){super({id:"editor.action.transposeLetters",label:m("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:I.writable,kbOpts:{kbExpr:I.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],s=t.getSelections();for(const r of s){if(!r.isEmpty())continue;const a=r.startLineNumber,l=r.startColumn,c=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const d=l===c?r.getPosition():Zt.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),h=Zt.leftPosition(i,d),u=Zt.leftPosition(i,h),g=i.getValueInRange(x.fromPositions(u,h)),f=i.getValueInRange(x.fromPositions(h,d)),p=x.fromPositions(u,d);n.push(new cs(p,f+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}te(E0e);const cN=(function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;n<i.length;n++)i[n]=Math.floor(Math.random()*256);return i};const e=new Uint8Array(16),t=[];for(let i=0;i<256;i++)t.push(i.toString(16).padStart(2,"0"));return function(){o(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=0,s="";return s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+="-",s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s+=t[e[n++]],s}})();function lB(o){return{asString:async()=>o,asFile:()=>{},value:typeof o=="string"?o:void 0}}function N0e(o,e,t){const i={id:cN(),name:o,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class SZ{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return St.some(this,([i,n])=>n.asFile())&&t.push("files"),xZ(lk(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return lk(e)}}function lk(o){return o.toLowerCase()}function LZ(o,e){return xZ(lk(o),e.map(lk))}function xZ(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const dN=Object.freeze({create:o=>Pd(o.map(e=>e.toString())).join(`\r
707
707
  `),split:o=>o.split(`\r
708
708
  `),parse:o=>dN.split(o).filter(e=>!e.startsWith("#"))}),Xl=class Xl{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Xl.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new Xl((this.value?[this.value,...e]:e).join(Xl.sep))}};Xl.sep=".",Xl.None=new Xl("@@none@@"),Xl.Empty=new Xl("");let Pi=Xl;const lV={EDITORS:"CodeEditors",FILES:"CodeFiles"};class T0e{}const R0e={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Ui.add(R0e.DragAndDropContribution,new T0e);const Sw=class Sw{constructor(){}static getInstance(){return Sw.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};Sw.INSTANCE=new Sw;let RO=Sw;function kZ(o){const e=new SZ;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,lB(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,M0e(n))}}return e}function M0e(o){const e=o.path?Ie.parse(o.path):void 0;return N0e(o.name,e,async()=>new Uint8Array(await o.arrayBuffer()))}const A0e=Object.freeze([lV.EDITORS,lV.FILES,r1.RESOURCES,r1.INTERNAL_URI_LIST]);function DZ(o,e=!1){const t=kZ(o),i=t.get(r1.INTERNAL_URI_LIST);if(i)t.replace(tn.uriList,i);else if(e||!t.has(tn.uriList)){const n=[];for(const s of o.items){const r=s.getAsFile();if(r){const a=r.path;try{a?n.push(Ie.file(a).toString()):n.push(Ie.parse(r.name,!0).toString())}catch{}}}n.length&&t.replace(tn.uriList,lB(dN.create(n)))}for(const n of A0e)t.delete(n);return t}var cB=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},P1=function(o,e){return function(t,i){e(t,i,o)}};class dB{async provideDocumentPasteEdits(e,t,i,n,s){const r=await this.getEdit(i,s);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,n){const s=await this.getEdit(i,n);if(s)return{edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}],dispose(){}}}}const Lw=class Lw extends dB{constructor(){super(...arguments),this.kind=Lw.kind,this.dropMimeTypes=[tn.text],this.pasteMimeTypes=[tn.text]}async getEdit(e,t){const i=e.get(tn.text);if(!i||e.has(tn.uriList))return;const n=await i.asString();return{handledMimeType:tn.text,title:m("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}};Lw.id="text",Lw.kind=new Pi("text.plain");let km=Lw;class IZ extends dB{constructor(){super(...arguments),this.kind=new Pi("uri.absolute"),this.dropMimeTypes=[tn.uriList],this.pasteMimeTypes=[tn.uriList]}async getEdit(e,t){const i=await EZ(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map(({uri:a,originalText:l})=>a.scheme===Ye.file?a.fsPath:(n++,l)).join(" ");let r;return n>0?r=i.length>1?m("defaultDropProvider.uriList.uris","Insert Uris"):m("defaultDropProvider.uriList.uri","Insert Uri"):r=i.length>1?m("defaultDropProvider.uriList.paths","Insert Paths"):m("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:tn.uriList,insertText:s,title:r,kind:this.kind}}}let ck=class extends dB{constructor(e){super(),this._workspaceContextService=e,this.kind=new Pi("uri.relative"),this.dropMimeTypes=[tn.uriList],this.pasteMimeTypes=[tn.uriList]}async getEdit(e,t){const i=await EZ(e);if(!i.length||t.isCancellationRequested)return;const n=Ta(i.map(({uri:s})=>{const r=this._workspaceContextService.getWorkspaceFolder(s);return r?Vle(r.uri,s):void 0}));if(n.length)return{handledMimeType:tn.uriList,insertText:n.join(" "),title:i.length>1?m("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):m("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};ck=cB([P1(0,vm)],ck);class P0e{constructor(){this.kind=new Pi("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:tn.text}]}async provideDocumentPasteEdits(e,t,i,n,s){var l;if(n.triggerKind!==Aw.PasteAs&&!((l=n.only)!=null&&l.contains(this.kind)))return;const r=i.get("text/html"),a=await(r==null?void 0:r.asString());if(!(!a||s.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:m("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function EZ(o){const e=o.get(tn.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of dN.parse(t))try{i.push({uri:Ie.parse(n),originalText:n})}catch{}return i}let MO=class extends V{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new km)),this._register(e.documentDropEditProvider.register("*",new IZ)),this._register(e.documentDropEditProvider.register("*",new ck(t)))}};MO=cB([P1(0,be),P1(1,vm)],MO);let AO=class extends V{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new km)),this._register(e.documentPasteEditProvider.register("*",new IZ)),this._register(e.documentPasteEditProvider.register("*",new ck(t))),this._register(e.documentPasteEditProvider.register("*",new P0e))}};AO=cB([P1(0,be),P1(1,vm)],AO);const pa=class pa{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=pa._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(pa.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(pa.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(pa.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(pa.isVariableCharacter(i)||pa.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof pa._table[i]>"u"&&!pa.isDigitCharacter(i)&&!pa.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}};pa._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let PO=pa;class mv{constructor(){this._children=[]}appendChild(e){return e instanceof Ks&&this._children[this._children.length-1]instanceof Ks?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,(function r(a,l){for(const c of a)c.parent=l,r(c.children,c)})(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof Hy)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Ks extends mv{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Ks(this.value)}}class NZ extends mv{}class jr extends NZ{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof pv?this._children[0]:void 0}clone(){const e=new jr(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class pv extends mv{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Ks&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new pv;return this.options.forEach(e.appendChild,e),e}}class hB extends mv{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof tl&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof tl){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new hB;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class tl extends mv{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new tl(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class O1 extends NZ{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Ks(t)],!0):!1}clone(){const e=new O1(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function cV(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class Hy extends mv{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof jr&&(e.push(i),t=!t||t.index<i.index?i:t),!0}),this._placeholders={all:e,last:t}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk(n=>n===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return cV([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof jr&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof O1&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new Hy;return this._children=this.children.map(t=>t.clone()),e}walk(e){cV(this.children,e)}}class Dm{constructor(){this._scanner=new PO,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new Hy;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof jr&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new jr(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof jr&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new jr(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Ks(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new jr(Number(t)):new O1(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new jr(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Ks("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new pv;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Ks(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new O1(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Ks("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new hB;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Ks(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new tl(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new tl(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new tl(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new tl(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new tl(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new tl(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new tl(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Ks(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function TZ(o,e,t){var i,n;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:((i=t.additionalEdit)==null?void 0:i.edits)??[]}:{edits:[...e.map(s=>new Jh(o,{range:s,text:typeof t.insertText=="string"?Dm.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...((n=t.additionalEdit)==null?void 0:n.edits)??[]]}}function RZ(o){function e(r,a){return"mimeType"in r?r.mimeType===a.handledMimeType:!!a.kind&&r.kind.contains(a.kind)}const t=new Map;for(const r of o)for(const a of r.yieldTo??[])for(const l of o)if(l!==r&&e(a,l)){let c=t.get(r);c||(c=[],t.set(r,c)),c.push(l)}if(!t.size)return Array.from(o);const i=new Set,n=[];function s(r){if(!r.length)return[];const a=r[0];if(n.includes(a))return console.warn("Yield to cycle detected",a),r;if(i.has(a))return s(r.slice(1));let l=[];const c=t.get(a);return c&&(n.push(a),l=s(c),n.pop()),i.add(a),[...l,a,...s(r.slice(1))]}return s(Array.from(o))}var O0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},F0e=function(o,e){return function(t,i){e(t,i,o)}};const W0e=Qe.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:s$,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),iI=class iI extends V{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=re(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=re("span.icon");this.domNode.append(t),t.classList.add(...Pe.asClassNameArray(se.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register(j(this.domNode,oe.CLICK,n=>{this.delegate.cancel()}))}getId(){return iI.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};iI.baseId="editor.widget.inlineProgressWidget";let OO=iI,dk=class extends V{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new Bn),this._currentWidget=this._register(new Bn),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,n,s){const r=this._operationIdPool++;this._currentOperation=r,this.clear(),this._showPromise.value=Du(()=>{const a=x.fromPositions(e);this._currentDecorations.set([{range:a,options:W0e}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(OO,this.id,this._editor,a,t,n))},s??this._showDelay);try{return await i}finally{this._currentOperation===r&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};dk=O0e([F0e(2,De)],dk);var B0e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dV=function(o,e){return function(t,i){e(t,i,o)}},zS,su;let Go=(su=class{static get(e){return e.getContribution(zS.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new Bn,this._messageListeners=new q,this._mouseOverMessage=!1,this._editor=e,this._visible=zS.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)==null||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){no(vl(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=vl(e)?NE(e,{actionHandler:{callback:n=>{this.closeMessage(),N3(this._openerService,n,vl(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new hV(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(le.debounce(this._editor.onDidBlurEditorText,(n,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Pn(ds(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(j(this._messageWidget.value.getDomNode(),oe.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(j(this._messageWidget.value.getDomNode(),oe.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(hV.fadeOut(this._messageWidget.value))}},zS=su,su.ID="editor.contrib.messageController",su.MESSAGE_VISIBLE=new ge("messageVisible",!1,m("messageVisible","Whether the editor is currently showing an inline message")),su);Go=zS=B0e([dV(1,Fe),dV(2,Io)],Go);const H0e=In.bindToContribution(Go.get);he(new H0e({id:"leaveEditorMessage",precondition:Go.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let hV=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");typeof n=="string"?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Dt(Go.ID,Go,4);function dR(o,e){return e&&(o.stack||o.stacktrace)?m("stackTrace.format","{0}: {1}",gV(o),uV(o.stack)||uV(o.stacktrace)):gV(o)}function uV(o){return Array.isArray(o)?o.join(`
709
709
  `):o}function gV(o){return o.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${o.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?m("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function hk(o=null,e=!1){if(!o)return m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=Ta(o),i=hk(t[0],e);return t.length>1?m("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Co(o))return o;if(o.detail){const t=o.detail;if(t.error)return dR(t.error,e);if(t.exception)return dR(t.exception,e)}return o.stack?dR(o,e):o.message?o.message:m("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var MZ=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},U_=function(o,e){return function(t,i){e(t,i,o)}},FO,Sf;let WO=(Sf=class extends V{constructor(e,t,i,n,s,r,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=r,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register(ke(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(ke((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition(h=>{s.containsPosition(h.position)||this.dispose()})),this._register(le.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var t;const e=(t=this._keybindingService.lookupKeybinding(this.showCommand.id))==null?void 0:t.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=re(".post-edit-widget"),this.button=this._register(new _x(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(j(this.domNode,oe.CLICK,()=>this.showSelector()))}getId(){return FO.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=nn(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>tf({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}},FO=Sf,Sf.baseId="editor.widget.postEditWidget",Sf);WO=FO=MZ([U_(7,er),U_(8,Fe),U_(9,jt)],WO);let uk=class extends V{constructor(e,t,i,n,s,r,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=r,this._notificationService=a,this._currentWidget=this._register(new Bn),this._register(le.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,s){const r=this._editor.getModel();if(!r||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async _=>{const b=this._editor.getModel();b&&(await b.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:_,allEdits:t.allEdits},i,n,s))},c=(_,b)=>{aa(_)||(this._notificationService.error(b),i&&this.show(e[0],t,l))};let d;try{d=await n(a,s)}catch(_){return c(_,m("resolveError",`Error resolving edit '{0}':