From 7644b23dbbcea541c9eb43786ee928a7eaa0a681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8D=8E=E6=98=A5?= Date: Tue, 1 Aug 2023 19:14:57 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vtj/template-web/src/main.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/vtj/template-web/src/main.ts b/packages/vtj/template-web/src/main.ts index 7f08be4a9..27df8271c 100644 --- a/packages/vtj/template-web/src/main.ts +++ b/packages/vtj/template-web/src/main.ts @@ -6,19 +6,13 @@ import Mask from '@/components/Mask.vue'; import '@vtj/icons/lib/style.css'; import '@vtj/ui/lib/style.css'; import '@/style/index.scss'; -const modules = import.meta.glob([ - '/.vtj/project/*.json', - '/.vtj/file/*.json', - '/src/views/pages/*.vue', - '/src/components/blocks/*.vue' -]); + const app = createApp(App); (async () => { await createProvider({ app, router, - modules, components: { Mask } -- Gitee From 251b1ccd9b5aad2cf2fcc84d27e22b72580277c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8D=8E=E6=98=A5?= Date: Wed, 2 Aug 2023 14:55:50 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E7=BB=84=E4=BB=B6=E5=B1=9E=E6=80=A7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/engine/src/core/Assets.ts | 27 +++++- packages/engine/src/core/built-in.ts | 8 +- packages/engine/src/hooks/useNodeProps.ts | 5 +- packages/engine/src/version.ts | 2 +- ...d2-6476293d.js => 16gd78t8ld2-c4853075.js} | 2 +- ...kft-292aeb05.js => 5fk34q6kft-51dba63f.js} | 2 +- ...2bcd594.js => Editor-c713e86f-e2600c53.js} | 2 +- ...14e048b.js => async-validator-a2d0d42f.js} | 4 +- ...ker-23ddd172.js => css.worker-d48893d9.js} | 2 +- ...-1c052ce0.js => editor.worker-3ea457c4.js} | 8 +- ...s-5a57a137.js => element-plus-de0339d2.js} | 2 +- ...er-be110d32.js => html.worker-b0d6a2a9.js} | 24 ++--- .../{index-b24c0019.js => index-2d9be6c2.js} | 18 ++-- .../{index-7c7a843c.js => index-d76e5866.js} | 28 +++--- ...er-8cc82aee.js => json.worker-da80953b.js} | 34 +++---- ...-e2281df0.js => monaco-editor-22055caa.js} | 4 +- ...ound-3eaab30a.js => not-found-2369249e.js} | 2 +- ...rker-23fce99d.js => ts.worker-f6936770.js} | 92 +++++++++---------- packages/ide/example/index.html | 8 +- packages/ide/example/libs/vtj-utils.js | 16 ++-- packages/ide/vite.config.ts | 10 +- 21 files changed, 163 insertions(+), 137 deletions(-) rename packages/ide/example/assets/{16gd78t8ld2-6476293d.js => 16gd78t8ld2-c4853075.js} (69%) rename packages/ide/example/assets/{5fk34q6kft-292aeb05.js => 5fk34q6kft-51dba63f.js} (49%) rename packages/ide/example/assets/{Editor-c713e86f-b2bcd594.js => Editor-c713e86f-e2600c53.js} (99%) rename packages/ide/example/assets/{async-validator-714e048b.js => async-validator-a2d0d42f.js} (93%) rename packages/ide/example/assets/{css.worker-23ddd172.js => css.worker-d48893d9.js} (88%) rename packages/ide/example/assets/{editor.worker-1c052ce0.js => editor.worker-3ea457c4.js} (49%) rename packages/ide/example/assets/{element-plus-5a57a137.js => element-plus-de0339d2.js} (99%) rename packages/ide/example/assets/{html.worker-be110d32.js => html.worker-b0d6a2a9.js} (82%) rename packages/ide/example/assets/{index-b24c0019.js => index-2d9be6c2.js} (94%) rename packages/ide/example/assets/{index-7c7a843c.js => index-d76e5866.js} (57%) rename packages/ide/example/assets/{json.worker-8cc82aee.js => json.worker-da80953b.js} (60%) rename packages/ide/example/assets/{monaco-editor-e2281df0.js => monaco-editor-22055caa.js} (98%) rename packages/ide/example/assets/{not-found-3eaab30a.js => not-found-2369249e.js} (50%) rename packages/ide/example/assets/{ts.worker-23fce99d.js => ts.worker-f6936770.js} (82%) diff --git a/packages/engine/src/core/Assets.ts b/packages/engine/src/core/Assets.ts index da785f374..808b25ec9 100644 --- a/packages/engine/src/core/Assets.ts +++ b/packages/engine/src/core/Assets.ts @@ -17,7 +17,11 @@ import { import { Project, Block } from '../models'; import { EVENT_ASSETS_LOADED, emitter } from './emitter'; -import { builtInComponents, builtInCategories } from './built-in'; +import { + builtInComponents, + builtInCategories, + builtInElements +} from './built-in'; import { SetterValueTypes } from '../views/setters'; import { Service } from './services'; @@ -33,6 +37,8 @@ export interface IComponentGroup { export class Assets { private unwatch?: WatchStopHandle; + elements: ComponentDescription[] = [...builtInElements]; + elementsMap: Record = {}; components: ComponentDescription[] = [...builtInComponents]; componentMap: Record = {}; componentGroups: IComponentGroup[] = []; @@ -46,6 +52,10 @@ export class Assets { deep: true }); } + this.elementsMap = this.parseMap( + this.elements, + false + ); } private clear() { @@ -96,10 +106,19 @@ export class Assets { return result; } - private parseMap(list: T[]) { + private parseMap( + list: T[], + isPackage: boolean = true + ) { const map: Record = {}; - for (const c of list) { - if (c.package) { + if (isPackage) { + for (const c of list) { + if (c.package) { + map[c.name] = c; + } + } + } else { + for (const c of list) { map[c.name] = c; } } diff --git a/packages/engine/src/core/built-in.ts b/packages/engine/src/core/built-in.ts index bb9276e92..37c05a35b 100644 --- a/packages/engine/src/core/built-in.ts +++ b/packages/engine/src/core/built-in.ts @@ -11,7 +11,7 @@ export const builtInCategories: AssetsCategory[] = [ } ]; -export const builtInComponents: ComponentDescription[] = [ +export const builtInElements: ComponentDescription[] = [ { name: 'component', title: '动态组件', @@ -45,7 +45,11 @@ export const builtInComponents: ComponentDescription[] = [ snippet: { children: '插槽默认内容' } - }, + } +]; + +export const builtInComponents: ComponentDescription[] = [ + ...builtInElements, { name: 'Transition', title: '过渡效果', diff --git a/packages/engine/src/hooks/useNodeProps.ts b/packages/engine/src/hooks/useNodeProps.ts index db5a62115..75750c773 100644 --- a/packages/engine/src/hooks/useNodeProps.ts +++ b/packages/engine/src/hooks/useNodeProps.ts @@ -81,7 +81,10 @@ export function useNodeProps(node: ComputedRef, assets: Assets) { const componentProps = computed(() => { if (!node.value || !isNode(node.value)) return []; - const desc = blockDescription.value || assets.componentMap[node.value.name]; + const desc = + blockDescription.value || + assets.componentMap[node.value.name] || + assets.elementsMap[node.value.name]; if (!desc) return []; const props = desc.props || []; return props.map((n) => { diff --git a/packages/engine/src/version.ts b/packages/engine/src/version.ts index 580e4cc00..d4bdd197d 100644 --- a/packages/engine/src/version.ts +++ b/packages/engine/src/version.ts @@ -1 +1 @@ -export const version = '0.5.1'; \ No newline at end of file +export const version = '0.5.2'; \ No newline at end of file diff --git a/packages/ide/example/assets/16gd78t8ld2-6476293d.js b/packages/ide/example/assets/16gd78t8ld2-c4853075.js similarity index 69% rename from packages/ide/example/assets/16gd78t8ld2-6476293d.js rename to packages/ide/example/assets/16gd78t8ld2-c4853075.js index de89f80df..e6a508e6f 100644 --- a/packages/ide/example/assets/16gd78t8ld2-6476293d.js +++ b/packages/ide/example/assets/16gd78t8ld2-c4853075.js @@ -1 +1 @@ -import{C as p,_ as s}from"./index-7c7a843c.js";import{l as n}from"./element-plus-5a57a137.js";import{I as a,_ as i,ag as m,o as c,M as l,O as f,U as u,V as _}from"./@vue-062efada.js";import"./monaco-editor-e2281df0.js";import"./vue-router-967a0738.js";import"./vue-f0a73811.js";import"./@vueuse-5c9c5b32.js";import"./lodash-es-74278d6e.js";import"./async-validator-714e048b.js";import"./@element-plus-45f3a8b7.js";import"./@ctrl-b0f23ca4.js";import"./@popperjs-7c8154ca.js";const d=a({name:"MyBlock",components:{ElButton:n},props:{title:{type:[String],required:!1,default:"按钮文本"}},setup(t){const o=p();return{state:i({}),props:t,provider:o}}});function B(t,o,e,y,$,k){const r=m("ElButton");return c(),l(r,{type:"primary"},{default:f(()=>[u(_(t.$props.title),1)]),_:1})}const I=s(d,[["render",B]]);export{I as default}; +import{C as p,_ as s}from"./index-d76e5866.js";import{l as n}from"./element-plus-de0339d2.js";import{I as a,_ as i,ag as m,o as c,M as l,O as f,U as u,V as _}from"./@vue-062efada.js";import"./monaco-editor-22055caa.js";import"./vue-router-967a0738.js";import"./vue-f0a73811.js";import"./@vueuse-5c9c5b32.js";import"./lodash-es-74278d6e.js";import"./async-validator-a2d0d42f.js";import"./@element-plus-45f3a8b7.js";import"./@ctrl-b0f23ca4.js";import"./@popperjs-7c8154ca.js";const d=a({name:"MyBlock",components:{ElButton:n},props:{title:{type:[String],required:!1,default:"按钮文本"}},setup(t){const o=p();return{state:i({}),props:t,provider:o}}});function B(t,o,e,y,$,k){const r=m("ElButton");return c(),l(r,{type:"primary"},{default:f(()=>[u(_(t.$props.title),1)]),_:1})}const I=s(d,[["render",B]]);export{I as default}; diff --git a/packages/ide/example/assets/5fk34q6kft-292aeb05.js b/packages/ide/example/assets/5fk34q6kft-51dba63f.js similarity index 49% rename from packages/ide/example/assets/5fk34q6kft-292aeb05.js rename to packages/ide/example/assets/5fk34q6kft-51dba63f.js index 76d5227e8..9afdb9bff 100644 --- a/packages/ide/example/assets/5fk34q6kft-292aeb05.js +++ b/packages/ide/example/assets/5fk34q6kft-51dba63f.js @@ -1 +1 @@ -import n from"./16gd78t8ld2-6476293d.js";import{C as p,_ as s}from"./index-7c7a843c.js";import{I as m,_ as c,ag as i,o as a,M as u}from"./@vue-062efada.js";import"./element-plus-5a57a137.js";import"./lodash-es-74278d6e.js";import"./async-validator-714e048b.js";import"./@element-plus-45f3a8b7.js";import"./@ctrl-b0f23ca4.js";import"./@popperjs-7c8154ca.js";import"./monaco-editor-e2281df0.js";import"./vue-router-967a0738.js";import"./vue-f0a73811.js";import"./@vueuse-5c9c5b32.js";const _=m({name:"Test",components:{MyBlock:n},setup(o){const t=p();return{state:c({value:null}),props:o,provider:t}},mounted(){}});function f(o,t,e,l,d,k){const r=i("MyBlock");return a(),u(r,{title:"我的按钮文本"})}const T=s(_,[["render",f]]);export{T as default}; +import n from"./16gd78t8ld2-c4853075.js";import{C as p,_ as s}from"./index-d76e5866.js";import{I as m,_ as c,ag as i,o as a,M as u}from"./@vue-062efada.js";import"./element-plus-de0339d2.js";import"./lodash-es-74278d6e.js";import"./async-validator-a2d0d42f.js";import"./@element-plus-45f3a8b7.js";import"./@ctrl-b0f23ca4.js";import"./@popperjs-7c8154ca.js";import"./monaco-editor-22055caa.js";import"./vue-router-967a0738.js";import"./vue-f0a73811.js";import"./@vueuse-5c9c5b32.js";const _=m({name:"Test",components:{MyBlock:n},setup(o){const t=p();return{state:c({value:null}),props:o,provider:t}},mounted(){}});function f(o,t,e,l,d,k){const r=i("MyBlock");return a(),u(r,{title:"我的按钮文本"})}const T=s(_,[["render",f]]);export{T as default}; diff --git a/packages/ide/example/assets/Editor-c713e86f-b2bcd594.js b/packages/ide/example/assets/Editor-c713e86f-e2600c53.js similarity index 99% rename from packages/ide/example/assets/Editor-c713e86f-b2bcd594.js rename to packages/ide/example/assets/Editor-c713e86f-e2600c53.js index 79e22c4d7..c860ebca4 100644 --- a/packages/ide/example/assets/Editor-c713e86f-b2bcd594.js +++ b/packages/ide/example/assets/Editor-c713e86f-e2600c53.js @@ -1 +1 @@ -import{W as C,a as M,b as z,c as R,d as Y,e as J}from"./monaco-editor-e2281df0.js";import{I as Q,k as X,h as F,n as x,Z as rr,w as er,o as tr,c as nr,R as or,a0 as ir}from"./@vue-062efada.js";function K(a,c){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);c&&(f=f.filter(function(w){return Object.getOwnPropertyDescriptor(a,w).enumerable})),u.push.apply(u,f)}return u}function ar(a){for(var c=1;c=0;--i){var o=this.tryEntries[i],p=o.completion;if(o.tryLoc==="root")return n("end");if(o.tryLoc<=this.prev){var y=u.call(o,"catchLoc"),g=u.call(o,"finallyLoc");if(y&&g){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&u.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===r)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===r){var i=n.completion;if(i.type==="throw"){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:I(r),resultName:e,nextLoc:n},this.method==="next"&&(this.arg=void 0),h}},a}function U(a,c,u,f,w,d,O){try{var s=a[d](O),v=s.value}catch(P){u(P);return}s.done?c(v):Promise.resolve(v).then(f,w)}function Z(a){return function(){var c=this,u=arguments;return new Promise(function(f,w){var d=a.apply(c,u);function O(v){U(d,f,w,O,s,"next",v)}function s(v){U(d,f,w,O,s,"throw",v)}O(void 0)})}}var pr=Q({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:function(){return{}}},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur"],setup:function(c,u){var f=u.expose,w=u.emit,d=c;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker:function(b,l){return l==="json"&&C?new C:["css","scss","less"].includes(l)&&M?new M:["html","handlebars","razor","vue"].includes(l)&&z?new z:["typescript","javascript"].includes(l)&&R?new R:Y?new Y:Promise.resolve({})}};var O=X(),s=null,v=function(){var h=Z(G().mark(function b(){var l;return G().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(m.t0=s,!m.t0){m.next=5;break}return m.next=4,(l=s.getAction("editor.action.formatDocument"))===null||l===void 0?void 0:l.run();case 4:s.setValue(s.getValue());case 5:case"end":return m.stop()}},b)}));return function(){return h.apply(this,arguments)}}(),P=function(){var h=Z(G().mark(function b(){var l;return G().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,v();case 2:w("blur",(l=s)===null||l===void 0?void 0:l.getValue());case 3:case"end":return m.stop()}},b)}));return function(){return h.apply(this,arguments)}}(),S=function(){s=J.create(O.value,ar({value:d.modelValue,language:d.lang,readOnly:d.readonly,theme:d.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:d.minimap}},d.options)),s.onDidChangeModelContent(function(b){var l;w("change",(l=s)===null||l===void 0?void 0:l.getValue(),b)}),s.onDidBlurEditorText(P)};return F(function(){x(S)}),rr(function(){s&&s.dispose()}),er(function(){return d.modelValue},function(h){s&&s.setValue(h)}),f({getEditor:function(){return s}}),function(h,b){return tr(),nr("div",{class:or(["vtj-code-editor",{"is-border":d.border}]),ref_key:"container",ref:O,style:ir({height:d.height})},null,6)}}});export{pr as default}; +import{W as C,a as M,b as z,c as R,d as Y,e as J}from"./monaco-editor-22055caa.js";import{I as Q,k as X,h as F,n as x,Z as rr,w as er,o as tr,c as nr,R as or,a0 as ir}from"./@vue-062efada.js";function K(a,c){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);c&&(f=f.filter(function(w){return Object.getOwnPropertyDescriptor(a,w).enumerable})),u.push.apply(u,f)}return u}function ar(a){for(var c=1;c=0;--i){var o=this.tryEntries[i],p=o.completion;if(o.tryLoc==="root")return n("end");if(o.tryLoc<=this.prev){var y=u.call(o,"catchLoc"),g=u.call(o,"finallyLoc");if(y&&g){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&u.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===r)return this.complete(n.completion,n.afterLoc),A(n),h}},catch:function(r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===r){var i=n.completion;if(i.type==="throw"){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:I(r),resultName:e,nextLoc:n},this.method==="next"&&(this.arg=void 0),h}},a}function U(a,c,u,f,w,d,O){try{var s=a[d](O),v=s.value}catch(P){u(P);return}s.done?c(v):Promise.resolve(v).then(f,w)}function Z(a){return function(){var c=this,u=arguments;return new Promise(function(f,w){var d=a.apply(c,u);function O(v){U(d,f,w,O,s,"next",v)}function s(v){U(d,f,w,O,s,"throw",v)}O(void 0)})}}var pr=Q({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:function(){return{}}},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur"],setup:function(c,u){var f=u.expose,w=u.emit,d=c;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker:function(b,l){return l==="json"&&C?new C:["css","scss","less"].includes(l)&&M?new M:["html","handlebars","razor","vue"].includes(l)&&z?new z:["typescript","javascript"].includes(l)&&R?new R:Y?new Y:Promise.resolve({})}};var O=X(),s=null,v=function(){var h=Z(G().mark(function b(){var l;return G().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(m.t0=s,!m.t0){m.next=5;break}return m.next=4,(l=s.getAction("editor.action.formatDocument"))===null||l===void 0?void 0:l.run();case 4:s.setValue(s.getValue());case 5:case"end":return m.stop()}},b)}));return function(){return h.apply(this,arguments)}}(),P=function(){var h=Z(G().mark(function b(){var l;return G().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,v();case 2:w("blur",(l=s)===null||l===void 0?void 0:l.getValue());case 3:case"end":return m.stop()}},b)}));return function(){return h.apply(this,arguments)}}(),S=function(){s=J.create(O.value,ar({value:d.modelValue,language:d.lang,readOnly:d.readonly,theme:d.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:d.minimap}},d.options)),s.onDidChangeModelContent(function(b){var l;w("change",(l=s)===null||l===void 0?void 0:l.getValue(),b)}),s.onDidBlurEditorText(P)};return F(function(){x(S)}),rr(function(){s&&s.dispose()}),er(function(){return d.modelValue},function(h){s&&s.setValue(h)}),f({getEditor:function(){return s}}),function(h,b){return tr(),nr("div",{class:or(["vtj-code-editor",{"is-border":d.border}]),ref_key:"container",ref:O,style:ir({height:d.height})},null,6)}}});export{pr as default}; diff --git a/packages/ide/example/assets/async-validator-714e048b.js b/packages/ide/example/assets/async-validator-a2d0d42f.js similarity index 93% rename from packages/ide/example/assets/async-validator-714e048b.js rename to packages/ide/example/assets/async-validator-a2d0d42f.js index 6cfeb2668..2375d5c71 100644 --- a/packages/ide/example/assets/async-validator-714e048b.js +++ b/packages/ide/example/assets/async-validator-a2d0d42f.js @@ -1,4 +1,4 @@ -function R(){return R=Object.assign?Object.assign.bind():function(i){for(var e=1;e1?e-1:0),r=1;r=s)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(p){return"[Circular]"}break;default:return o}});return a}return i}function ae(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function v(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||ae(e)&&typeof i=="string"&&!i)}function se(i,e,n){var r=[],t=0,s=i.length;function a(o){r.push.apply(r,o||[]),t++,t===s&&n(r)}i.forEach(function(o){e(o,a)})}function Y(i,e,n){var r=0,t=i.length;function s(a){if(a&&a.length){n(a);return}var o=r;r=r+1,o1?e-1:0),r=1;r=s)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(p){return"[Circular]"}break;default:return o}});return a}return i}function ae(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function v(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||ae(e)&&typeof i=="string"&&!i)}function se(i,e,n){var r=[],t=0,s=i.length;function a(o){r.push.apply(r,o||[]),t++,t===s&&n(r)}i.forEach(function(o){e(o,a)})}function $(i,e,n){var r=0,t=i.length;function s(a){if(a&&a.length){n(a);return}var o=r;r=r+1,o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},N={integer:function(e){return N.number(e)&&parseInt(e,10)===e},float:function(e){return N.number(e)&&!N.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!N.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Z.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(me())},hex:function(e){return typeof e=="string"&&!!e.match(Z.hex)}},ue=function(e,n,r,t,s){if(e.required&&n===void 0){Q(e,n,r,t,s);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?N[o](n)||t.push(E(s.messages.types[o],e.fullField,e.type)):o&&typeof n!==e.type&&t.push(E(s.messages.types[o],e.fullField,e.type))},ge=function(e,n,r,t,s){var a=typeof e.len=="number",o=typeof e.min=="number",p=typeof e.max=="number",y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_=n,h=null,O=typeof n=="number",C=typeof n=="string",S=Array.isArray(n);if(O?h="number":C?h="string":S&&(h="array"),!h)return!1;S&&(_=n.length),C&&(_=n.replace(y,"_").length),a?_!==e.len&&t.push(E(s.messages[h].len,e.fullField,e.len)):o&&!p&&_e.max?t.push(E(s.messages[h].max,e.fullField,e.max)):o&&p&&(_e.max)&&t.push(E(s.messages[h].range,e.fullField,e.min,e.max))},x="enum",le=function(e,n,r,t,s){e[x]=Array.isArray(e[x])?e[x]:[],e[x].indexOf(n)===-1&&t.push(E(s.messages[x],e.fullField,e[x].join(", ")))},_e=function(e,n,r,t,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||t.push(E(s.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||t.push(E(s.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},c={required:Q,whitespace:ce,type:ue,range:ge,enum:le,pattern:_e},ve=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n,"string")&&!e.required)return r();c.required(e,n,t,a,s,"string"),v(n,"string")||(c.type(e,n,t,a,s),c.range(e,n,t,a,s),c.pattern(e,n,t,a,s),e.whitespace===!0&&c.whitespace(e,n,t,a,s))}r(a)},ye=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c.type(e,n,t,a,s)}r(a)},he=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(n===""&&(n=void 0),v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},Oe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c.type(e,n,t,a,s)}r(a)},Pe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),v(n)||c.type(e,n,t,a,s)}r(a)},Ee=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},Se=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},Ce=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(n==null&&!e.required)return r();c.required(e,n,t,a,s,"array"),n!=null&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},be=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c.type(e,n,t,a,s)}r(a)},Ae="enum",De=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c[Ae](e,n,t,a,s)}r(a)},we=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n,"string")&&!e.required)return r();c.required(e,n,t,a,s),v(n,"string")||c.pattern(e,n,t,a,s)}r(a)},Fe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n,"date")&&!e.required)return r();if(c.required(e,n,t,a,s),!v(n,"date")){var p;n instanceof Date?p=n:p=new Date(n),c.type(e,p,t,a,s),p&&c.range(e,p.getTime(),t,a,s)}}r(a)},Re=function(e,n,r,t,s){var a=[],o=Array.isArray(n)?"array":typeof n;c.required(e,n,t,a,s,o),r(a)},L=function(e,n,r,t,s){var a=e.type,o=[],p=e.required||!e.required&&t.hasOwnProperty(e.field);if(p){if(v(n,a)&&!e.required)return r();c.required(e,n,t,o,s,a),v(n,a)||c.type(e,n,t,o,s)}r(o)},xe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s)}r(a)},q={string:ve,method:ye,number:he,boolean:Oe,regexp:Pe,integer:Ee,float:Se,array:Ce,object:be,enum:De,pattern:we,date:Fe,url:L,hex:L,email:L,required:Re,any:xe};function H(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var G=H(),W=function(){function i(n){this.rules=null,this._messages=G,this.define(n)}var e=i.prototype;return e.define=function(r){var t=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var a=r[s];t.rules[s]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=X(H(),r)),this._messages},e.validate=function(r,t,s){var a=this;t===void 0&&(t={}),s===void 0&&(s=function(){});var o=r,p=t,y=s;if(typeof p=="function"&&(y=p,p={}),!this.rules||Object.keys(this.rules).length===0)return y&&y(null,o),Promise.resolve(o);function _(d){var l=[],f={};function A(m){if(Array.isArray(m)){var g;l=(g=l).concat.apply(g,m)}else l.push(m)}for(var u=0;u()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},N={integer:function(e){return N.number(e)&&parseInt(e,10)===e},float:function(e){return N.number(e)&&!N.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!N.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Z.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(me())},hex:function(e){return typeof e=="string"&&!!e.match(Z.hex)}},ue=function(e,n,r,t,s){if(e.required&&n===void 0){z(e,n,r,t,s);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?N[o](n)||t.push(E(s.messages.types[o],e.fullField,e.type)):o&&typeof n!==e.type&&t.push(E(s.messages.types[o],e.fullField,e.type))},ge=function(e,n,r,t,s){var a=typeof e.len=="number",o=typeof e.min=="number",p=typeof e.max=="number",y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_=n,h=null,O=typeof n=="number",C=typeof n=="string",S=Array.isArray(n);if(O?h="number":C?h="string":S&&(h="array"),!h)return!1;S&&(_=n.length),C&&(_=n.replace(y,"_").length),a?_!==e.len&&t.push(E(s.messages[h].len,e.fullField,e.len)):o&&!p&&_e.max?t.push(E(s.messages[h].max,e.fullField,e.max)):o&&p&&(_e.max)&&t.push(E(s.messages[h].range,e.fullField,e.min,e.max))},x="enum",le=function(e,n,r,t,s){e[x]=Array.isArray(e[x])?e[x]:[],e[x].indexOf(n)===-1&&t.push(E(s.messages[x],e.fullField,e[x].join(", ")))},_e=function(e,n,r,t,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||t.push(E(s.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||t.push(E(s.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},c={required:z,whitespace:ce,type:ue,range:ge,enum:le,pattern:_e},ve=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n,"string")&&!e.required)return r();c.required(e,n,t,a,s,"string"),v(n,"string")||(c.type(e,n,t,a,s),c.range(e,n,t,a,s),c.pattern(e,n,t,a,s),e.whitespace===!0&&c.whitespace(e,n,t,a,s))}r(a)},ye=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c.type(e,n,t,a,s)}r(a)},he=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(n===""&&(n=void 0),v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},Oe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c.type(e,n,t,a,s)}r(a)},Pe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),v(n)||c.type(e,n,t,a,s)}r(a)},Ee=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},Se=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},Ce=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(n==null&&!e.required)return r();c.required(e,n,t,a,s,"array"),n!=null&&(c.type(e,n,t,a,s),c.range(e,n,t,a,s))}r(a)},be=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c.type(e,n,t,a,s)}r(a)},Ae="enum",De=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s),n!==void 0&&c[Ae](e,n,t,a,s)}r(a)},we=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n,"string")&&!e.required)return r();c.required(e,n,t,a,s),v(n,"string")||c.pattern(e,n,t,a,s)}r(a)},Fe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n,"date")&&!e.required)return r();if(c.required(e,n,t,a,s),!v(n,"date")){var p;n instanceof Date?p=n:p=new Date(n),c.type(e,p,t,a,s),p&&c.range(e,p.getTime(),t,a,s)}}r(a)},Re=function(e,n,r,t,s){var a=[],o=Array.isArray(n)?"array":typeof n;c.required(e,n,t,a,s,o),r(a)},L=function(e,n,r,t,s){var a=e.type,o=[],p=e.required||!e.required&&t.hasOwnProperty(e.field);if(p){if(v(n,a)&&!e.required)return r();c.required(e,n,t,o,s,a),v(n,a)||c.type(e,n,t,o,s)}r(o)},xe=function(e,n,r,t,s){var a=[],o=e.required||!e.required&&t.hasOwnProperty(e.field);if(o){if(v(n)&&!e.required)return r();c.required(e,n,t,a,s)}r(a)},q={string:ve,method:ye,number:he,boolean:Oe,regexp:Pe,integer:Ee,float:Se,array:Ce,object:be,enum:De,pattern:we,date:Fe,url:L,hex:L,email:L,required:Re,any:xe};function H(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var G=H(),W=function(){function i(n){this.rules=null,this._messages=G,this.define(n)}var e=i.prototype;return e.define=function(r){var t=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var a=r[s];t.rules[s]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=X(H(),r)),this._messages},e.validate=function(r,t,s){var a=this;t===void 0&&(t={}),s===void 0&&(s=function(){});var o=r,p=t,y=s;if(typeof p=="function"&&(y=p,p={}),!this.rules||Object.keys(this.rules).length===0)return y&&y(null,o),Promise.resolve(o);function _(d){var l=[],f={};function A(m){if(Array.isArray(m)){var g;l=(g=l).concat.apply(g,m)}else l.push(m)}for(var u=0;u{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const ye=new Me;function he(t){wr(t)||ye.onUnexpectedError(t)}function Ln(t){if(t instanceof Error){const{name:e,message:n}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:Qe.isErrorNoTelemetry(t)}}return t}const It="Canceled";function wr(t){return t instanceof xr?!0:t instanceof Error&&t.name===It&&t.message===It}class xr extends Error{constructor(){super(It),this.name=this.message}}class Qe extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Qe)return e;const n=new Qe;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Fe extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Fe.prototype)}}function tn(t){const e=this;let n=!1,r;return function(){return n||(n=!0,r=t.apply(e,arguments)),r}}var Tn;(function(t){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(w){yield w}t.single=i;function s(w){return e(w)?w:i(w)}t.wrap=s;function a(w){return w||n}t.from=a;function o(w){return!w||w[Symbol.iterator]().next().done===!0}t.isEmpty=o;function l(w){return w[Symbol.iterator]().next().value}t.first=l;function c(w,S){for(const C of w)if(S(C))return!0;return!1}t.some=c;function h(w,S){for(const C of w)if(S(C))return C}t.find=h;function*u(w,S){for(const C of w)S(C)&&(yield C)}t.filter=u;function*f(w,S){let C=0;for(const I of w)yield S(I,C++)}t.map=f;function*m(...w){for(const S of w)for(const C of S)yield C}t.concat=m;function g(w,S,C){let I=C;for(const M of w)I=S(I,M);return I}t.reduce=g;function*v(w,S,C=w.length){for(S<0&&(S+=w.length),C<0?C+=w.length:C>w.length&&(C=w.length);S1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function Zl(...t){return nn(()=>os(t))}function nn(t){return{dispose:tn(()=>{t()})}}class kt{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{os(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?kt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}kt.DISABLE_DISPOSED_WARNING=!1;class rn{constructor(){this._store=new kt,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}rn.None=Object.freeze({dispose(){}});let ae=class as{constructor(e){this.element=e,this.next=as.Undefined,this.prev=as.Undefined}};ae.Undefined=new ae(void 0);class ec{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let e=this._first;for(;e!==ae.Undefined;){const n=e.next;e.prev=ae.Undefined,e.next=ae.Undefined,e=n}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new ae(e);if(this._first===ae.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==ae.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ae.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ae.Undefined&&e.next!==ae.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===ae.Undefined&&e.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):e.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):e.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ae.Undefined;)yield e.element,e=e.next}}const tc=globalThis.performance&&typeof globalThis.performance.now=="function";class On{static create(e){return new On(e)}constructor(e){this._now=tc&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Sr;(function(t){t.None=()=>rn.None;function e(N,D){return h(N,()=>{},0,void 0,!0,void 0,D)}t.defer=e;function n(N){return(D,R=null,E)=>{let L=!1,B;return B=N(K=>{if(!L)return B?B.dispose():L=!0,D.call(R,K)},null,E),L&&B.dispose(),B}}t.once=n;function r(N,D,R){return c((E,L=null,B)=>N(K=>E.call(L,D(K)),null,B),R)}t.map=r;function i(N,D,R){return c((E,L=null,B)=>N(K=>{D(K),E.call(L,K)},null,B),R)}t.forEach=i;function s(N,D,R){return c((E,L=null,B)=>N(K=>D(K)&&E.call(L,K),null,B),R)}t.filter=s;function a(N){return N}t.signal=a;function o(...N){return(D,R=null,E)=>Zl(...N.map(L=>L(B=>D.call(R,B),null,E)))}t.any=o;function l(N,D,R,E){let L=R;return r(N,B=>(L=D(L,B),L),E)}t.reduce=l;function c(N,D){let R;const E={onWillAddFirstListener(){R=N(L.fire,L)},onDidRemoveLastListener(){R==null||R.dispose()}},L=new Ze(E);return D==null||D.add(L),L.event}function h(N,D,R=100,E=!1,L=!1,B,K){let se,F,_,A=0,z;const Y={leakWarningThreshold:B,onWillAddFirstListener(){se=N(ee=>{A++,F=D(F,ee),E&&!_&&(G.fire(F),F=void 0),z=()=>{const $e=F;F=void 0,_=void 0,(!E||A>1)&&G.fire($e),A=0},typeof R=="number"?(clearTimeout(_),_=setTimeout(z,R)):_===void 0&&(_=0,queueMicrotask(z))})},onWillRemoveListener(){L&&A>0&&(z==null||z())},onDidRemoveLastListener(){z=void 0,se.dispose()}},G=new Ze(Y);return K==null||K.add(G),G.event}t.debounce=h;function u(N,D=0,R){return t.debounce(N,(E,L)=>E?(E.push(L),E):[L],D,void 0,!0,void 0,R)}t.accumulate=u;function f(N,D=(E,L)=>E===L,R){let E=!0,L;return s(N,B=>{const K=E||!D(B,L);return E=!1,L=B,K},R)}t.latch=f;function m(N,D,R){return[t.filter(N,D,R),t.filter(N,E=>!D(E),R)]}t.split=m;function g(N,D=!1,R=[]){let E=R.slice(),L=N(se=>{E?E.push(se):K.fire(se)});const B=()=>{E==null||E.forEach(se=>K.fire(se)),E=null},K=new Ze({onWillAddFirstListener(){L||(L=N(se=>K.fire(se)))},onDidAddFirstListener(){E&&(D?setTimeout(B):B())},onDidRemoveLastListener(){L&&L.dispose(),L=null}});return K.event}t.buffer=g;class v{constructor(D){this.event=D,this.disposables=new kt}map(D){return new v(r(this.event,D,this.disposables))}forEach(D){return new v(i(this.event,D,this.disposables))}filter(D){return new v(s(this.event,D,this.disposables))}reduce(D,R){return new v(l(this.event,D,R,this.disposables))}latch(){return new v(f(this.event,void 0,this.disposables))}debounce(D,R=100,E=!1,L=!1,B){return new v(h(this.event,D,R,E,L,B,this.disposables))}on(D,R,E){return this.event(D,R,E)}once(D,R,E){return n(this.event)(D,R,E)}dispose(){this.disposables.dispose()}}function y(N){return new v(N)}t.chain=y;function w(N,D,R=E=>E){const E=(...se)=>K.fire(R(...se)),L=()=>N.on(D,E),B=()=>N.removeListener(D,E),K=new Ze({onWillAddFirstListener:L,onDidRemoveLastListener:B});return K.event}t.fromNodeEventEmitter=w;function S(N,D,R=E=>E){const E=(...se)=>K.fire(R(...se)),L=()=>N.addEventListener(D,E),B=()=>N.removeEventListener(D,E),K=new Ze({onWillAddFirstListener:L,onDidRemoveLastListener:B});return K.event}t.fromDOMEventEmitter=S;function C(N){return new Promise(D=>n(N)(D))}t.toPromise=C;function I(N,D){return D(void 0),N(R=>D(R))}t.runAndSubscribe=I;function M(N,D){let R=null;function E(B){R==null||R.dispose(),R=new kt,D(B,R)}E(void 0);const L=N(B=>E(B));return nn(()=>{L.dispose(),R==null||R.dispose()})}t.runAndSubscribeWithStore=M;class U{constructor(D,R){this._observable=D,this._counter=0,this._hasChanged=!1;const E={onWillAddFirstListener:()=>{D.addObserver(this)},onDidRemoveLastListener:()=>{D.removeObserver(this)}};this.emitter=new Ze(E),R&&R.add(this.emitter)}beginUpdate(D){this._counter++}handlePossibleChange(D){}handleChange(D,R){this._hasChanged=!0}endUpdate(D){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function q(N,D){return new U(N,D).emitter.event}t.fromObservable=q;function W(N){return D=>{let R=0,E=!1;const L={beginUpdate(){R++},endUpdate(){R--,R===0&&(N.reportChanges(),E&&(E=!1,D()))},handlePossibleChange(){},handleChange(){E=!0}};return N.addObserver(L),{dispose(){N.removeObserver(L)}}}}t.fromObservableLight=W})(Sr||(Sr={}));class zt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${zt._idPool++}`,zt.all.add(this)}start(e){this._stopWatch=new On,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}zt.all=new Set,zt._idPool=0;let nc=-1;class rc{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,n){const r=this.threshold;if(r<=0||n{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class _r{static create(){var e;return new _r((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class Cr{constructor(e){this.value=e}}const ic=2;class Ze{constructor(e){var n,r,i,s,a;this._size=0,this._options=e,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new rc((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:nc):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new zt(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(n,r,i)=>{var s,a,o,l,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),rn.None;if(this._disposed)return rn.None;r&&(n=n.bind(r));const h=new Cr(n);let u;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=_r.create(),u=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof Cr?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new sc),this._listeners=[this._listeners,h]):this._listeners.push(h):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=h,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const f=nn(()=>{u==null||u(),this._removeListener(h)});return i instanceof kt?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}_removeListener(e){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(e);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*ic<=a.length){let c=0;for(let h=0;h0}}class sc{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function ac(t){return typeof t=="string"}function oc(t){let e=[],n=Object.getPrototypeOf(t);for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function kr(t){const e=[];for(const n of oc(t))typeof t[n]=="function"&&e.push(n);return e}function lc(t,e){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return e(i,s)},r={};for(const i of t)r[i]=n(i);return r}let cc=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function hc(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),cc&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function dc(t,e,...n){return hc(e,n)}function Jp(t){}var Er;const Lt="en";let Rr=!1,Dr=!1,Fr=!1,ls=!1,Wn,Ar=Lt,cs=Lt,uc,Ge;const Je=typeof self=="object"?self:typeof global=="object"?global:{};let xe;typeof Je.vscode!="undefined"&&typeof Je.vscode.process!="undefined"?xe=Je.vscode.process:typeof process!="undefined"&&(xe=process);const pc=typeof((Er=xe==null?void 0:xe.versions)===null||Er===void 0?void 0:Er.electron)=="string"&&(xe==null?void 0:xe.type)==="renderer";if(typeof navigator=="object"&&!pc)Ge=navigator.userAgent,Rr=Ge.indexOf("Windows")>=0,Dr=Ge.indexOf("Macintosh")>=0,(Ge.indexOf("Macintosh")>=0||Ge.indexOf("iPad")>=0||Ge.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Fr=Ge.indexOf("Linux")>=0,(Ge==null?void 0:Ge.indexOf("Mobi"))>=0,ls=!0,dc({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Wn=Lt,Ar=Wn,cs=navigator.language;else if(typeof xe=="object"){Rr=xe.platform==="win32",Dr=xe.platform==="darwin",Fr=xe.platform==="linux",Fr&&xe.env.SNAP&&xe.env.SNAP_REVISION,xe.env.CI||xe.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Wn=Lt,Ar=Lt;const t=xe.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Wn=e.locale,cs=e.osLocale,Ar=n||Lt,uc=e._translationsConfigFile}catch(e){}}else console.error("Unable to resolve platform.");const sn=Rr,mc=Dr;ls&&Je.importScripts;const et=Ge,fc=typeof Je.postMessage=="function"&&!Je.importScripts;(()=>{if(fc){const t=[];Je.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r{const r=++e;t.push({id:r,callback:n}),Je.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const gc=!!(et&&et.indexOf("Chrome")>=0);et&&et.indexOf("Firefox")>=0,!gc&&et&&et.indexOf("Safari")>=0,et&&et.indexOf("Edg/")>=0,et&&et.indexOf("Android")>=0;class bc{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=JSON.stringify(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}class hs{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var ds;function vc(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function yc(t){return t.split(/\r\n|\r|\n/)}function wc(t){for(let e=0,n=t.length;e=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function us(t){return t>=65&&t<=90}function Pr(t){return 55296<=t&&t<=56319}function Sc(t){return 56320<=t&&t<=57343}function _c(t,e){return(t-55296<<10)+(e-56320)+65536}function Cc(t,e,n){const r=t.charCodeAt(n);if(Pr(r)&&n+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Oe.cache=new bc(t=>{function e(c){const h=new Map;for(let u=0;u!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(const c of s){const h=e(i[c]);a=r(a,h)}const o=e(i._common),l=n(o,a);return new Oe(l)}),Oe._locales=new hs(()=>Object.keys(Oe.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));class ut{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ut.getRawData())),this._data}static isInvisibleCharacter(e){return ut.getData().has(e)}static get codePoints(){return ut.getData()}}ut._data=void 0;const Rc="$initialize";class Dc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.method=r,this.args=i,this.type=0}}class ps{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class Fc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Ac{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class Pc{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Nc{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new Dc(this._workerId,r,e,n))})}listen(e,n){let r=null;const i=new Ze({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Fc(this._workerId,r,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Pc(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;e.err.$isError&&(r=new Error,r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new ps(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Ln(i.detail)),this._send(new ps(this._workerId,n,void 0,Ln(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new Ac(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let r=0;rfunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of t){if(fs(a)){s[a]=i(a);continue}if(ms(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Ic{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Nc({sendMessage:(r,i)=>{e(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===Rc)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(fs(e)){const r=this._requestHandler[e].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return r}if(ms(e)){const r=this._requestHandler[e];if(typeof r!="function")throw new Error(`Missing event ${e} on request handler.`);return r}throw new Error(`Malformed event name ${e}`)}initialize(e,n,r,i){this._protocol.setWorkerId(e);const o=Mc(i,(l,c)=>this._protocol.sendMessage(l,c),(l,c)=>this._protocol.listen(l,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(kr(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,c)=>{const h=globalThis.require;h([r],u=>{if(this._requestHandler=u.create(o),!this._requestHandler){c(new Error("No RequestHandler!"));return}l(kr(this._requestHandler))},c)}))}}class pt{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function gs(t,e){return(e<<5)-e+t|0}function zc(t,e){e=gs(149417,e);for(let n=0,r=t.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new pt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class mt{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,a]=mt._getElements(e),[o,l,c]=mt._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(mt._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(Tt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new pt(e,0,r,i-r+1)]):e<=n?(Tt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new pt(e,n-e+1,r,0)]):(Tt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),Tt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],h=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,h,s);let f=[];return s[0]?f=[new pt(c+1,n-(c+1)+1,h+1,i-(h+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,h+1,i,s),this.ConcatenateChanges(u,f)}return[new pt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,h,u,f,m,g,v,y,w,S){let C=null,I=null,M=new vs,U=n,q=r,W=m[0]-y[0]-i,N=-1073741824,D=this.m_forwardHistory.length-1;do{const R=W+e;R===U||R=0&&(c=this.m_forwardHistory[D],e=c[0],U=1,q=c.length-1)}while(--D>=-1);if(C=M.getReverseChanges(),S[0]){let R=m[0]+1,E=y[0]+1;if(C!==null&&C.length>0){const L=C[C.length-1];R=Math.max(R,L.getOriginalEnd()),E=Math.max(E,L.getModifiedEnd())}I=[new pt(R,f-R+1,E,v-E+1)]}else{M=new vs,U=a,q=o,W=m[0]-y[0]-l,N=1073741824,D=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const R=W+s;R===U||R=h[R+1]?(u=h[R+1]-1,g=u-W-l,u>N&&M.MarkNextChange(),N=u+1,M.AddOriginalElement(u+1,g+1),W=R+1-s):(u=h[R-1],g=u-W-l,u>N&&M.MarkNextChange(),N=u,M.AddModifiedElement(u+1,g+1),W=R-1-s),D>=0&&(h=this.m_reverseHistory[D],s=h[0],U=1,q=h.length-1)}while(--D>=-1);I=M.getChanges()}return this.ConcatenateChanges(C,I)}ComputeRecursionPoint(e,n,r,i,s,a,o){let l=0,c=0,h=0,u=0,f=0,m=0;e--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-e+(i-r),v=g+1,y=new Int32Array(v),w=new Int32Array(v),S=i-r,C=n-e,I=e-r,M=n-i,q=(C-S)%2===0;y[S]=e,w[C]=n,o[0]=!1;for(let W=1;W<=g/2+1;W++){let N=0,D=0;h=this.ClipDiagonalBound(S-W,W,S,v),u=this.ClipDiagonalBound(S+W,W,S,v);for(let E=h;E<=u;E+=2){E===h||EN+D&&(N=l,D=c),!q&&Math.abs(E-C)<=W-1&&l>=w[E])return s[0]=l,a[0]=c,L<=w[E]&&1447>0&&W<=1447+1?this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o):null}const R=(N-e+(D-r)-W)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(N,R))return o[0]=!0,s[0]=N,a[0]=D,R>0&&1447>0&&W<=1447+1?this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o):(e++,r++,[new pt(e,n-e+1,r,i-r+1)]);f=this.ClipDiagonalBound(C-W,W,C,v),m=this.ClipDiagonalBound(C+W,W,C,v);for(let E=f;E<=m;E+=2){E===f||E=w[E+1]?l=w[E+1]-1:l=w[E-1],c=l-(E-C)-M;const L=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(w[E]=l,q&&Math.abs(E-S)<=W&&l<=y[E])return s[0]=l,a[0]=c,L>=y[E]&&1447>0&&W<=1447+1?this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o):null}if(W<=1447){let E=new Int32Array(u-h+2);E[0]=S-h+1,Ot.Copy2(y,h,E,1,u-h+1),this.m_forwardHistory.push(E),E=new Int32Array(m-f+2),E[0]=C-f+1,Ot.Copy2(w,f,E,1,m-f+1),this.m_reverseHistory.push(E)}}return this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o)}PrettifyChanges(e){for(let n=0;n0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){const r=e[n];let i=0,s=0;if(n>0){const u=e[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,m=r.modifiedStart-u;if(fc&&(c=v,l=u)}r.originalStart-=l,r.modifiedStart-=l;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n0&&m>l&&(l=m,c=u,h=f)}return l>0?[c,h]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Ot.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Ot.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Ot.Copy(e,0,i,0,e.length),Ot.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(Tt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Tt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new pt(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&e",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}},cwd(){return{ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_23740_GYGVCPPHNQAGVLPX",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}.VSCODE_CWD||process.cwd()}}:Wt={get platform(){return sn?"win32":mc?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Un=Wt.cwd;Wt.env;const Tc=Wt.platform,Oc=65,Wc=97,Uc=90,Vc=122,ft=46,we=47,Ae=92,gt=58,jc=63;class ys extends Error{constructor(e,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Bc(t,e){if(t===null||typeof t!="object")throw new ys(e,"Object",t)}function le(t,e){if(typeof t!="string")throw new ys(e,"string",t)}const bt=Tc==="win32";function J(t){return t===we||t===Ae}function Nr(t){return t===we}function vt(t){return t>=Oc&&t<=Uc||t>=Wc&&t<=Vc}function Vn(t,e,n,r){let i="",s=0,a=-1,o=0,l=0;for(let c=0;c<=t.length;++c){if(c2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=c,o=0;continue}else if(i.length!==0){i="",s=0,a=c,o=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(a+1,c)}`:i=t.slice(a+1,c),s=c-a-1;a=c,o=0}else l===ft&&o!==-1?++o:o=-1}return i}function ws(t,e){Bc(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const Ee={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],le(s,"path"),s.length===0)continue}else e.length===0?s=Un():(s={ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_23740_GYGVCPPHNQAGVLPX",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}[`=${e}`]||Un(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Ae)&&(s=`${e}\\`));const a=s.length;let o=0,l="",c=!1;const h=s.charCodeAt(0);if(a===1)J(h)&&(o=1,c=!0);else if(J(h))if(c=!0,J(s.charCodeAt(1))){let u=2,f=u;for(;u2&&J(s.charCodeAt(2))&&(c=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=c,c&&e.length>0)break}return n=Vn(n,!r,"\\",J),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){le(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return Nr(s)?"\\":t;if(J(s))if(i=!0,J(t.charCodeAt(1))){let o=2,l=o;for(;o2&&J(t.charCodeAt(2))&&(i=!0,n=3));let a=n0&&J(t.charCodeAt(e-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(t){le(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return J(n)||e>2&&vt(n)&&t.charCodeAt(1)===gt&&J(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&J(n.charCodeAt(0))){++i;const s=n.length;s>1&&J(n.charCodeAt(1))&&(++i,s>2&&(J(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(e=`\\${e.slice(i)}`)}return Ee.normalize(e)},relative(t,e){if(le(t,"from"),le(e,"to"),t===e)return"";const n=Ee.resolve(t),r=Ee.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;ii&&t.charCodeAt(s-1)===Ae;)s--;const a=s-i;let o=0;for(;oo&&e.charCodeAt(l-1)===Ae;)l--;const c=l-o,h=ah){if(e.charCodeAt(o+f)===Ae)return r.slice(o+f+1);if(f===2)return r.slice(o+f)}a>h&&(t.charCodeAt(i+f)===Ae?u=f:f===2&&(u=3)),u===-1&&(u=0)}let m="";for(f=i+u+1;f<=s;++f)(f===s||t.charCodeAt(f)===Ae)&&(m+=m.length===0?"..":"\\..");return o+=u,m.length>0?`${m}${r.slice(o,l)}`:(r.charCodeAt(o)===Ae&&++o,r.slice(o,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Ee.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Ae){if(e.charCodeAt(1)===Ae){const n=e.charCodeAt(2);if(n!==jc&&n!==ft)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(vt(e.charCodeAt(0))&&e.charCodeAt(1)===gt&&e.charCodeAt(2)===Ae)return`\\\\?\\${e}`;return t},dirname(t){le(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return J(i)?t:".";if(J(i)){if(n=r=1,J(t.charCodeAt(1))){let o=2,l=o;for(;o2&&J(t.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(J(t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&le(e,"ext"),le(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&&vt(t.charCodeAt(0))&&t.charCodeAt(1)===gt&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(J(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(J(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){le(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===gt&&vt(t.charCodeAt(0))&&(e=r=2);for(let o=t.length-1;o>=e;--o){const l=t.charCodeAt(o);if(J(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===ft?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:ws.bind(null,"\\"),parse(t){le(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return J(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(J(i)){if(r=1,J(t.charCodeAt(1))){let u=2,f=u;for(;u0&&(e.root=t.slice(0,r));let s=-1,a=r,o=-1,l=!0,c=t.length-1,h=0;for(;c>=r;--c){if(i=t.charCodeAt(c),J(i)){if(!l){a=c+1;break}continue}o===-1&&(l=!1,o=c+1),i===ft?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return o!==-1&&(s===-1||h===0||h===1&&s===o-1&&s===a+1?e.base=e.name=t.slice(a,o):(e.name=t.slice(a,s),e.base=t.slice(a,o),e.ext=t.slice(s,o))),a>0&&a!==r?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},qc=(()=>{if(bt){const t=/\\/g;return()=>{const e=Un().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Un()})(),Pe={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:qc();le(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===we)}return e=Vn(e,!n,"/",Nr),n?`/${e}`:e.length>0?e:"."},normalize(t){if(le(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===we,n=t.charCodeAt(t.length-1)===we;return t=Vn(t,!e,"/",Nr),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return le(t,"path"),t.length>0&&t.charCodeAt(0)===we},join(...t){if(t.length===0)return".";let e;for(let n=0;n0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":Pe.normalize(e)},relative(t,e){if(le(t,"from"),le(e,"to"),t===e||(t=Pe.resolve(t),e=Pe.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,a=e.length-s,o=io){if(e.charCodeAt(s+c)===we)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>o&&(t.charCodeAt(n+c)===we?l=c:c===0&&(l=0));let h="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===we)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(le(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===we;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===we){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&le(e,"ext"),le(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===we){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===we){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){le(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let a=t.length-1;a>=0;--a){const o=t.charCodeAt(a);if(o===we){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===ft?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:ws.bind(null,"/"),parse(t){le(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===we;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=t.length-1,c=0;for(;l>=r;--l){const h=t.charCodeAt(l);if(h===we){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),h===ft?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,i),e.base=t.slice(h,a),e.ext=t.slice(i,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Pe.win32=Ee.win32=Ee,Pe.posix=Ee.posix=Pe,bt?Ee.normalize:Pe.normalize,bt?Ee.resolve:Pe.resolve,bt?Ee.relative:Pe.relative,bt?Ee.dirname:Pe.dirname,bt?Ee.basename:Pe.basename,bt?Ee.extname:Pe.extname,bt?Ee.sep:Pe.sep;const $c=/^\w[\w\d+.-]*$/,Hc=/^\//,Gc=/^\/\//;function Jc(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!$c.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Hc.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Gc.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Yc(t,e){return!t&&!e?"file":t}function Xc(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Ye&&(e=Ye+e):e=Ye;break}return e}const ie="",Ye="/",Kc=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Mr=class yr{static isUri(e){return e instanceof yr?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||ie,this.authority=e.authority||ie,this.path=e.path||ie,this.query=e.query||ie,this.fragment=e.fragment||ie):(this.scheme=Yc(e,a),this.authority=n||ie,this.path=Xc(this.scheme,r||ie),this.query=i||ie,this.fragment=s||ie,Jc(this,a))}get fsPath(){return Ir(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=ie),r===void 0?r=this.authority:r===null&&(r=ie),i===void 0?i=this.path:i===null&&(i=ie),s===void 0?s=this.query:s===null&&(s=ie),a===void 0?a=this.fragment:a===null&&(a=ie),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ut(n,r,i,s,a)}static parse(e,n=!1){const r=Kc.exec(e);return r?new Ut(r[2]||ie,jn(r[4]||ie),jn(r[5]||ie),jn(r[7]||ie),jn(r[9]||ie),n):new Ut(ie,ie,ie,ie,ie)}static file(e){let n=ie;if(sn&&(e=e.replace(/\\/g,Ye)),e[0]===Ye&&e[1]===Ye){const r=e.indexOf(Ye,2);r===-1?(n=e.substring(2),e=Ye):(n=e.substring(2,r),e=e.substring(r)||Ye)}return new Ut("file",n,e,ie,ie)}static from(e,n){return new Ut(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return sn&&e.scheme==="file"?r=yr.file(Ee.join(Ir(e,!0),...n)).path:r=Pe.join(e.path,...n),e.with({path:r})}toString(e=!1){return zr(this,e)}toJSON(){return this}static revive(e){var n,r;if(e){if(e instanceof yr)return e;{const i=new Ut(e);return i._formatted=(n=e.external)!==null&&n!==void 0?n:null,i._fsPath=e._sep===xs&&(r=e.fsPath)!==null&&r!==void 0?r:null,i}}else return e}};const xs=sn?1:void 0;class Ut extends Mr{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ir(this,!1)),this._fsPath}toString(e=!1){return e?zr(this,!0):(this._formatted||(this._formatted=zr(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=xs),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const Ss={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _s(t,e,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const o=Ss[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function Qc(t){let e;for(let n=0;n1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,sn&&(n=n.replace(/\//g,"\\")),n}function zr(t,e){const n=e?Qc:_s;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Ye,r+=Ye),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=e?l:_s(l,!1,!1)),r}function Cs(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+Cs(t.substr(3)):t}}const ks=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function jn(t){return t.match(ks)?t.replace(ks,e=>Cs(e)):t}let tt=class Mt{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new Mt(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return Mt.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return Mt.isBefore(this,e)}static isBefore(e,n){return e.lineNumberr||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ue.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.columne.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return ue.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumne.endColumn)}strictContainsRange(e){return ue.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return ue.plusRange(this,e)}static plusRange(e,n){let r,i,s,a;return n.startLineNumbere.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new ue(r,i,s,a)}intersectRanges(e){return ue.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,h=n.endColumn;return rc?(s=c,a=h):s===c&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new ue(r,i,s,a)}equalsRange(e){return ue.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(e){return new tt(e.endLineNumber,e.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(e){return new tt(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new ue(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new ue(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(e){return new ue(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return ue.collapseToEnd(this)}static collapseToEnd(e){return new ue(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new ue(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new ue(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new ue(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}};var Es;(function(t){function e(i){return i<0}t.isLessThan=e;function n(i){return i>0}t.isGreaterThan=n;function r(i){return i===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Es||(Es={}));function Rs(t){return t<0?0:t>255?255:t|0}function Vt(t){return t<0?0:t>4294967295?4294967295:t|0}class Zc{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Vt(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Vt(e),n=Vt(n),this.values[e]===n?!1:(this.values[e]=n,e-1=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Vt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],e=s)n=i+1;else break;return new eh(i,e-a)}}class eh{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class th{constructor(e,n,r,i){this._uri=e,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new tt(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i/?";function rh(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of nh)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const Ds=rh();function ih(t){let e=Ds;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const Fs=new ec;Fs.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Lr(t,e,n,r,i){if(i||(i=Tn.first(Fs)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),Lr(t,e,n,r,i)}const s=Date.now(),a=t-1-r;let o=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=a-i.windowSize*c;e.lastIndex=Math.max(0,h);const u=sh(e,n,a,o);if(!u&&l||(l=u,h<=0))break;o=h}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function sh(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Tr{constructor(e){const n=Rs(e);this._defaultValue=n,this._asciiMap=Tr._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Rs(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class ah{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,a=e*n;sn&&(n=l),o>r&&(r=o),c>r&&(r=c)}n++,r++;const i=new ah(r,n,0);for(let s=0,a=e.length;s=this._maxCharCode?0:this._states.get(e,n)}}let Or=null;function lh(){return Or===null&&(Or=new oh([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Or}let an=null;function ch(){if(an===null){an=new Tr(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;ni);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(e,n=lh()){const r=ch(),i=[];for(let s=1,a=e.getLineCount();s<=a;s++){const o=e.getLineContent(s),l=o.length;let c=0,h=0,u=0,f=1,m=!1,g=!1,v=!1,y=!1;for(;c=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Wr.INSTANCE=new Wr;const As=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var qn;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof $n?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Sr.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:As})})(qn||(qn={}));class $n{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?As:(this._emitter||(this._emitter=new Ze),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class dh{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new $n),this._token}cancel(){this._token?this._token instanceof $n&&this._token.cancel():this._token=qn.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof $n&&this._token.dispose():this._token=qn.None}}class Ur{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Hn=new Ur,Vr=new Ur,jr=new Ur,uh=new Array(230),ph=Object.create(null),mh=Object.create(null);(function(){const t="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",t,t],[1,1,"Hyper",0,t,0,t,t,t],[1,2,"Super",0,t,0,t,t,t],[1,3,"Fn",0,t,0,t,t,t],[1,4,"FnLock",0,t,0,t,t,t],[1,5,"Suspend",0,t,0,t,t,t],[1,6,"Resume",0,t,0,t,t,t],[1,7,"Turbo",0,t,0,t,t,t],[1,8,"Sleep",0,t,0,"VK_SLEEP",t,t],[1,9,"WakeUp",0,t,0,t,t,t],[0,10,"KeyA",31,"A",65,"VK_A",t,t],[0,11,"KeyB",32,"B",66,"VK_B",t,t],[0,12,"KeyC",33,"C",67,"VK_C",t,t],[0,13,"KeyD",34,"D",68,"VK_D",t,t],[0,14,"KeyE",35,"E",69,"VK_E",t,t],[0,15,"KeyF",36,"F",70,"VK_F",t,t],[0,16,"KeyG",37,"G",71,"VK_G",t,t],[0,17,"KeyH",38,"H",72,"VK_H",t,t],[0,18,"KeyI",39,"I",73,"VK_I",t,t],[0,19,"KeyJ",40,"J",74,"VK_J",t,t],[0,20,"KeyK",41,"K",75,"VK_K",t,t],[0,21,"KeyL",42,"L",76,"VK_L",t,t],[0,22,"KeyM",43,"M",77,"VK_M",t,t],[0,23,"KeyN",44,"N",78,"VK_N",t,t],[0,24,"KeyO",45,"O",79,"VK_O",t,t],[0,25,"KeyP",46,"P",80,"VK_P",t,t],[0,26,"KeyQ",47,"Q",81,"VK_Q",t,t],[0,27,"KeyR",48,"R",82,"VK_R",t,t],[0,28,"KeyS",49,"S",83,"VK_S",t,t],[0,29,"KeyT",50,"T",84,"VK_T",t,t],[0,30,"KeyU",51,"U",85,"VK_U",t,t],[0,31,"KeyV",52,"V",86,"VK_V",t,t],[0,32,"KeyW",53,"W",87,"VK_W",t,t],[0,33,"KeyX",54,"X",88,"VK_X",t,t],[0,34,"KeyY",55,"Y",89,"VK_Y",t,t],[0,35,"KeyZ",56,"Z",90,"VK_Z",t,t],[0,36,"Digit1",22,"1",49,"VK_1",t,t],[0,37,"Digit2",23,"2",50,"VK_2",t,t],[0,38,"Digit3",24,"3",51,"VK_3",t,t],[0,39,"Digit4",25,"4",52,"VK_4",t,t],[0,40,"Digit5",26,"5",53,"VK_5",t,t],[0,41,"Digit6",27,"6",54,"VK_6",t,t],[0,42,"Digit7",28,"7",55,"VK_7",t,t],[0,43,"Digit8",29,"8",56,"VK_8",t,t],[0,44,"Digit9",30,"9",57,"VK_9",t,t],[0,45,"Digit0",21,"0",48,"VK_0",t,t],[1,46,"Enter",3,"Enter",13,"VK_RETURN",t,t],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",t,t],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",t,t],[1,49,"Tab",2,"Tab",9,"VK_TAB",t,t],[1,50,"Space",10,"Space",32,"VK_SPACE",t,t],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,t,0,t,t,t],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",t,t],[1,64,"F1",59,"F1",112,"VK_F1",t,t],[1,65,"F2",60,"F2",113,"VK_F2",t,t],[1,66,"F3",61,"F3",114,"VK_F3",t,t],[1,67,"F4",62,"F4",115,"VK_F4",t,t],[1,68,"F5",63,"F5",116,"VK_F5",t,t],[1,69,"F6",64,"F6",117,"VK_F6",t,t],[1,70,"F7",65,"F7",118,"VK_F7",t,t],[1,71,"F8",66,"F8",119,"VK_F8",t,t],[1,72,"F9",67,"F9",120,"VK_F9",t,t],[1,73,"F10",68,"F10",121,"VK_F10",t,t],[1,74,"F11",69,"F11",122,"VK_F11",t,t],[1,75,"F12",70,"F12",123,"VK_F12",t,t],[1,76,"PrintScreen",0,t,0,t,t,t],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",t,t],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",t,t],[1,79,"Insert",19,"Insert",45,"VK_INSERT",t,t],[1,80,"Home",14,"Home",36,"VK_HOME",t,t],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",t,t],[1,82,"Delete",20,"Delete",46,"VK_DELETE",t,t],[1,83,"End",13,"End",35,"VK_END",t,t],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",t,t],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",t],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",t],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",t],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",t],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",t,t],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",t,t],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",t,t],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",t,t],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",t,t],[1,94,"NumpadEnter",3,t,0,t,t,t],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",t,t],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",t,t],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",t,t],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",t,t],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",t,t],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",t,t],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",t,t],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",t,t],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",t,t],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",t,t],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",t,t],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",t,t],[1,107,"ContextMenu",58,"ContextMenu",93,t,t,t],[1,108,"Power",0,t,0,t,t,t],[1,109,"NumpadEqual",0,t,0,t,t,t],[1,110,"F13",71,"F13",124,"VK_F13",t,t],[1,111,"F14",72,"F14",125,"VK_F14",t,t],[1,112,"F15",73,"F15",126,"VK_F15",t,t],[1,113,"F16",74,"F16",127,"VK_F16",t,t],[1,114,"F17",75,"F17",128,"VK_F17",t,t],[1,115,"F18",76,"F18",129,"VK_F18",t,t],[1,116,"F19",77,"F19",130,"VK_F19",t,t],[1,117,"F20",78,"F20",131,"VK_F20",t,t],[1,118,"F21",79,"F21",132,"VK_F21",t,t],[1,119,"F22",80,"F22",133,"VK_F22",t,t],[1,120,"F23",81,"F23",134,"VK_F23",t,t],[1,121,"F24",82,"F24",135,"VK_F24",t,t],[1,122,"Open",0,t,0,t,t,t],[1,123,"Help",0,t,0,t,t,t],[1,124,"Select",0,t,0,t,t,t],[1,125,"Again",0,t,0,t,t,t],[1,126,"Undo",0,t,0,t,t,t],[1,127,"Cut",0,t,0,t,t,t],[1,128,"Copy",0,t,0,t,t,t],[1,129,"Paste",0,t,0,t,t,t],[1,130,"Find",0,t,0,t,t,t],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",t,t],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",t,t],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",t,t],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",t,t],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",t,t],[1,136,"KanaMode",0,t,0,t,t,t],[0,137,"IntlYen",0,t,0,t,t,t],[1,138,"Convert",0,t,0,t,t,t],[1,139,"NonConvert",0,t,0,t,t,t],[1,140,"Lang1",0,t,0,t,t,t],[1,141,"Lang2",0,t,0,t,t,t],[1,142,"Lang3",0,t,0,t,t,t],[1,143,"Lang4",0,t,0,t,t,t],[1,144,"Lang5",0,t,0,t,t,t],[1,145,"Abort",0,t,0,t,t,t],[1,146,"Props",0,t,0,t,t,t],[1,147,"NumpadParenLeft",0,t,0,t,t,t],[1,148,"NumpadParenRight",0,t,0,t,t,t],[1,149,"NumpadBackspace",0,t,0,t,t,t],[1,150,"NumpadMemoryStore",0,t,0,t,t,t],[1,151,"NumpadMemoryRecall",0,t,0,t,t,t],[1,152,"NumpadMemoryClear",0,t,0,t,t,t],[1,153,"NumpadMemoryAdd",0,t,0,t,t,t],[1,154,"NumpadMemorySubtract",0,t,0,t,t,t],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",t,t],[1,156,"NumpadClearEntry",0,t,0,t,t,t],[1,0,t,5,"Ctrl",17,"VK_CONTROL",t,t],[1,0,t,4,"Shift",16,"VK_SHIFT",t,t],[1,0,t,6,"Alt",18,"VK_MENU",t,t],[1,0,t,57,"Meta",91,"VK_COMMAND",t,t],[1,157,"ControlLeft",5,t,0,"VK_LCONTROL",t,t],[1,158,"ShiftLeft",4,t,0,"VK_LSHIFT",t,t],[1,159,"AltLeft",6,t,0,"VK_LMENU",t,t],[1,160,"MetaLeft",57,t,0,"VK_LWIN",t,t],[1,161,"ControlRight",5,t,0,"VK_RCONTROL",t,t],[1,162,"ShiftRight",4,t,0,"VK_RSHIFT",t,t],[1,163,"AltRight",6,t,0,"VK_RMENU",t,t],[1,164,"MetaRight",57,t,0,"VK_RWIN",t,t],[1,165,"BrightnessUp",0,t,0,t,t,t],[1,166,"BrightnessDown",0,t,0,t,t,t],[1,167,"MediaPlay",0,t,0,t,t,t],[1,168,"MediaRecord",0,t,0,t,t,t],[1,169,"MediaFastForward",0,t,0,t,t,t],[1,170,"MediaRewind",0,t,0,t,t,t],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",t,t],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",t,t],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",t,t],[1,174,"Eject",0,t,0,t,t,t],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",t,t],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",t,t],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",t,t],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",t,t],[1,179,"LaunchApp1",0,t,0,"VK_MEDIA_LAUNCH_APP1",t,t],[1,180,"SelectTask",0,t,0,t,t,t],[1,181,"LaunchScreenSaver",0,t,0,t,t,t],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",t,t],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",t,t],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",t,t],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",t,t],[1,186,"BrowserStop",0,t,0,"VK_BROWSER_STOP",t,t],[1,187,"BrowserRefresh",0,t,0,"VK_BROWSER_REFRESH",t,t],[1,188,"BrowserFavorites",0,t,0,"VK_BROWSER_FAVORITES",t,t],[1,189,"ZoomToggle",0,t,0,t,t,t],[1,190,"MailReply",0,t,0,t,t,t],[1,191,"MailForward",0,t,0,t,t,t],[1,192,"MailSend",0,t,0,t,t,t],[1,0,t,114,"KeyInComposition",229,t,t,t],[1,0,t,116,"ABNT_C2",194,"VK_ABNT_C2",t,t],[1,0,t,96,"OEM_8",223,"VK_OEM_8",t,t],[1,0,t,0,t,0,"VK_KANA",t,t],[1,0,t,0,t,0,"VK_HANGUL",t,t],[1,0,t,0,t,0,"VK_JUNJA",t,t],[1,0,t,0,t,0,"VK_FINAL",t,t],[1,0,t,0,t,0,"VK_HANJA",t,t],[1,0,t,0,t,0,"VK_KANJI",t,t],[1,0,t,0,t,0,"VK_CONVERT",t,t],[1,0,t,0,t,0,"VK_NONCONVERT",t,t],[1,0,t,0,t,0,"VK_ACCEPT",t,t],[1,0,t,0,t,0,"VK_MODECHANGE",t,t],[1,0,t,0,t,0,"VK_SELECT",t,t],[1,0,t,0,t,0,"VK_PRINT",t,t],[1,0,t,0,t,0,"VK_EXECUTE",t,t],[1,0,t,0,t,0,"VK_SNAPSHOT",t,t],[1,0,t,0,t,0,"VK_HELP",t,t],[1,0,t,0,t,0,"VK_APPS",t,t],[1,0,t,0,t,0,"VK_PROCESSKEY",t,t],[1,0,t,0,t,0,"VK_PACKET",t,t],[1,0,t,0,t,0,"VK_DBE_SBCSCHAR",t,t],[1,0,t,0,t,0,"VK_DBE_DBCSCHAR",t,t],[1,0,t,0,t,0,"VK_ATTN",t,t],[1,0,t,0,t,0,"VK_CRSEL",t,t],[1,0,t,0,t,0,"VK_EXSEL",t,t],[1,0,t,0,t,0,"VK_EREOF",t,t],[1,0,t,0,t,0,"VK_PLAY",t,t],[1,0,t,0,t,0,"VK_ZOOM",t,t],[1,0,t,0,t,0,"VK_NONAME",t,t],[1,0,t,0,t,0,"VK_PA1",t,t],[1,0,t,0,t,0,"VK_OEM_CLEAR",t,t]],n=[],r=[];for(const i of e){const[s,a,o,l,c,h,u,f,m]=i;if(r[a]||(r[a]=!0,ph[o]=a,mh[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);Hn.define(l,c),Vr.define(l,f||c),jr.define(l,m||f||c)}h&&(uh[h]=l)}})();var Ps;(function(t){function e(o){return Hn.keyCodeToStr(o)}t.toString=e;function n(o){return Hn.strToKeyCode(o)}t.fromString=n;function r(o){return Vr.keyCodeToStr(o)}t.toUserSettingsUS=r;function i(o){return jr.keyCodeToStr(o)}t.toUserSettingsGeneral=i;function s(o){return Vr.strToKeyCode(o)||jr.strToKeyCode(o)}t.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Hn.keyCodeToStr(o)}t.toElectronAccelerator=a})(Ps||(Ps={}));function fh(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}class Ie extends We{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Ie.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new Ie(this.startLineNumber,this.startColumn,e,n):new Ie(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new tt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new tt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new Ie(e,n,this.endLineNumber,this.endColumn):new Ie(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Ie(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new Ie(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Ie(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Ie(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))===null||r===void 0||r.dispose();const i=new bh(this,e,n);return this._factories.set(e,i),nn(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}getOrCreate(e){return Br(this,void 0,void 0,function*(){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(yield r.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class bh extends rn{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Br(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Br(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}class vh{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Ms;(function(t){const e=new Map;e.set(0,V.symbolMethod),e.set(1,V.symbolFunction),e.set(2,V.symbolConstructor),e.set(3,V.symbolField),e.set(4,V.symbolVariable),e.set(5,V.symbolClass),e.set(6,V.symbolStruct),e.set(7,V.symbolInterface),e.set(8,V.symbolModule),e.set(9,V.symbolProperty),e.set(10,V.symbolEvent),e.set(11,V.symbolOperator),e.set(12,V.symbolUnit),e.set(13,V.symbolValue),e.set(15,V.symbolEnum),e.set(14,V.symbolConstant),e.set(15,V.symbolEnum),e.set(16,V.symbolEnumMember),e.set(17,V.symbolKeyword),e.set(27,V.symbolSnippet),e.set(18,V.symbolText),e.set(19,V.symbolColor),e.set(20,V.symbolFile),e.set(21,V.symbolReference),e.set(22,V.symbolCustomColor),e.set(23,V.symbolFolder),e.set(24,V.symbolTypeParameter),e.set(25,V.account),e.set(26,V.issues);function n(s){let a=e.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=V.symbolProperty),a}t.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let o=r.get(s);return typeof o=="undefined"&&!a&&(o=9),o}t.fromString=i})(Ms||(Ms={}));var Is;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Is||(Is={}));var zs;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(zs||(zs={}));var Ls;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Ls||(Ls={}));var Ts;(function(t){const e=new Map;e.set(0,V.symbolFile),e.set(1,V.symbolModule),e.set(2,V.symbolNamespace),e.set(3,V.symbolPackage),e.set(4,V.symbolClass),e.set(5,V.symbolMethod),e.set(6,V.symbolProperty),e.set(7,V.symbolField),e.set(8,V.symbolConstructor),e.set(9,V.symbolEnum),e.set(10,V.symbolInterface),e.set(11,V.symbolFunction),e.set(12,V.symbolVariable),e.set(13,V.symbolConstant),e.set(14,V.symbolString),e.set(15,V.symbolNumber),e.set(16,V.symbolBoolean),e.set(17,V.symbolArray),e.set(18,V.symbolObject),e.set(19,V.symbolKey),e.set(20,V.symbolNull),e.set(21,V.symbolEnumMember),e.set(22,V.symbolStruct),e.set(23,V.symbolEvent),e.set(24,V.symbolOperator),e.set(25,V.symbolTypeParameter);function n(r){let i=e.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=V.symbolProperty),i}t.toIcon=n})(Ts||(Ts={}));var Os;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(Os||(Os={}));var Ws;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Ws||(Ws={})),new gh;var Us;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Us||(Us={}));var Vs;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Vs||(Vs={}));var js;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(js||(js={}));var Bs;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(Bs||(Bs={}));var qs;(function(t){t[t.Deprecated=1]="Deprecated"})(qs||(qs={}));var $s;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})($s||($s={}));var Hs;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Hs||(Hs={}));var Gs;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Gs||(Gs={}));var Js;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Js||(Js={}));var Ys;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Ys||(Ys={}));var Xs;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Xs||(Xs={}));var Ks;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.autoClosingBrackets=5]="autoClosingBrackets",t[t.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=7]="autoClosingDelete",t[t.autoClosingOvertype=8]="autoClosingOvertype",t[t.autoClosingQuotes=9]="autoClosingQuotes",t[t.autoIndent=10]="autoIndent",t[t.automaticLayout=11]="automaticLayout",t[t.autoSurround=12]="autoSurround",t[t.bracketPairColorization=13]="bracketPairColorization",t[t.guides=14]="guides",t[t.codeLens=15]="codeLens",t[t.codeLensFontFamily=16]="codeLensFontFamily",t[t.codeLensFontSize=17]="codeLensFontSize",t[t.colorDecorators=18]="colorDecorators",t[t.colorDecoratorsLimit=19]="colorDecoratorsLimit",t[t.columnSelection=20]="columnSelection",t[t.comments=21]="comments",t[t.contextmenu=22]="contextmenu",t[t.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",t[t.cursorBlinking=24]="cursorBlinking",t[t.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",t[t.cursorStyle=26]="cursorStyle",t[t.cursorSurroundingLines=27]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",t[t.cursorWidth=29]="cursorWidth",t[t.disableLayerHinting=30]="disableLayerHinting",t[t.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",t[t.domReadOnly=32]="domReadOnly",t[t.dragAndDrop=33]="dragAndDrop",t[t.dropIntoEditor=34]="dropIntoEditor",t[t.emptySelectionClipboard=35]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",t[t.extraEditorClassName=37]="extraEditorClassName",t[t.fastScrollSensitivity=38]="fastScrollSensitivity",t[t.find=39]="find",t[t.fixedOverflowWidgets=40]="fixedOverflowWidgets",t[t.folding=41]="folding",t[t.foldingStrategy=42]="foldingStrategy",t[t.foldingHighlight=43]="foldingHighlight",t[t.foldingImportsByDefault=44]="foldingImportsByDefault",t[t.foldingMaximumRegions=45]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=47]="fontFamily",t[t.fontInfo=48]="fontInfo",t[t.fontLigatures=49]="fontLigatures",t[t.fontSize=50]="fontSize",t[t.fontWeight=51]="fontWeight",t[t.fontVariations=52]="fontVariations",t[t.formatOnPaste=53]="formatOnPaste",t[t.formatOnType=54]="formatOnType",t[t.glyphMargin=55]="glyphMargin",t[t.gotoLocation=56]="gotoLocation",t[t.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",t[t.hover=58]="hover",t[t.inDiffEditor=59]="inDiffEditor",t[t.inlineSuggest=60]="inlineSuggest",t[t.letterSpacing=61]="letterSpacing",t[t.lightbulb=62]="lightbulb",t[t.lineDecorationsWidth=63]="lineDecorationsWidth",t[t.lineHeight=64]="lineHeight",t[t.lineNumbers=65]="lineNumbers",t[t.lineNumbersMinChars=66]="lineNumbersMinChars",t[t.linkedEditing=67]="linkedEditing",t[t.links=68]="links",t[t.matchBrackets=69]="matchBrackets",t[t.minimap=70]="minimap",t[t.mouseStyle=71]="mouseStyle",t[t.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=73]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",t[t.multiCursorModifier=75]="multiCursorModifier",t[t.multiCursorPaste=76]="multiCursorPaste",t[t.multiCursorLimit=77]="multiCursorLimit",t[t.occurrencesHighlight=78]="occurrencesHighlight",t[t.overviewRulerBorder=79]="overviewRulerBorder",t[t.overviewRulerLanes=80]="overviewRulerLanes",t[t.padding=81]="padding",t[t.pasteAs=82]="pasteAs",t[t.parameterHints=83]="parameterHints",t[t.peekWidgetDefaultFocus=84]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=85]="definitionLinkOpensInPeek",t[t.quickSuggestions=86]="quickSuggestions",t[t.quickSuggestionsDelay=87]="quickSuggestionsDelay",t[t.readOnly=88]="readOnly",t[t.readOnlyMessage=89]="readOnlyMessage",t[t.renameOnType=90]="renameOnType",t[t.renderControlCharacters=91]="renderControlCharacters",t[t.renderFinalNewline=92]="renderFinalNewline",t[t.renderLineHighlight=93]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=94]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=95]="renderValidationDecorations",t[t.renderWhitespace=96]="renderWhitespace",t[t.revealHorizontalRightPadding=97]="revealHorizontalRightPadding",t[t.roundedSelection=98]="roundedSelection",t[t.rulers=99]="rulers",t[t.scrollbar=100]="scrollbar",t[t.scrollBeyondLastColumn=101]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=102]="scrollBeyondLastLine",t[t.scrollPredominantAxis=103]="scrollPredominantAxis",t[t.selectionClipboard=104]="selectionClipboard",t[t.selectionHighlight=105]="selectionHighlight",t[t.selectOnLineNumbers=106]="selectOnLineNumbers",t[t.showFoldingControls=107]="showFoldingControls",t[t.showUnused=108]="showUnused",t[t.snippetSuggestions=109]="snippetSuggestions",t[t.smartSelect=110]="smartSelect",t[t.smoothScrolling=111]="smoothScrolling",t[t.stickyScroll=112]="stickyScroll",t[t.stickyTabStops=113]="stickyTabStops",t[t.stopRenderingLineAfter=114]="stopRenderingLineAfter",t[t.suggest=115]="suggest",t[t.suggestFontSize=116]="suggestFontSize",t[t.suggestLineHeight=117]="suggestLineHeight",t[t.suggestOnTriggerCharacters=118]="suggestOnTriggerCharacters",t[t.suggestSelection=119]="suggestSelection",t[t.tabCompletion=120]="tabCompletion",t[t.tabIndex=121]="tabIndex",t[t.unicodeHighlighting=122]="unicodeHighlighting",t[t.unusualLineTerminators=123]="unusualLineTerminators",t[t.useShadowDOM=124]="useShadowDOM",t[t.useTabStops=125]="useTabStops",t[t.wordBreak=126]="wordBreak",t[t.wordSeparators=127]="wordSeparators",t[t.wordWrap=128]="wordWrap",t[t.wordWrapBreakAfterCharacters=129]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=130]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=131]="wordWrapColumn",t[t.wordWrapOverride1=132]="wordWrapOverride1",t[t.wordWrapOverride2=133]="wordWrapOverride2",t[t.wrappingIndent=134]="wrappingIndent",t[t.wrappingStrategy=135]="wrappingStrategy",t[t.showDeprecated=136]="showDeprecated",t[t.inlayHints=137]="inlayHints",t[t.editorClassName=138]="editorClassName",t[t.pixelRatio=139]="pixelRatio",t[t.tabFocusMode=140]="tabFocusMode",t[t.layoutInfo=141]="layoutInfo",t[t.wrappingInfo=142]="wrappingInfo",t[t.defaultColorDecorators=143]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=144]="colorDecoratorsActivatedOn"})(Ks||(Ks={}));var Qs;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Qs||(Qs={}));var Zs;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Zs||(Zs={}));var ea;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(ea||(ea={}));var ta;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(ta||(ta={}));var na;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(na||(na={}));var ra;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ra||(ra={}));var ia;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(ia||(ia={}));var qr;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(qr||(qr={}));var $r;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})($r||($r={}));var Hr;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Hr||(Hr={}));var sa;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(sa||(sa={}));var aa;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(aa||(aa={}));var oa;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(oa||(oa={}));var la;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(la||(la={}));var ca;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(ca||(ca={}));var ha;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(ha||(ha={}));var da;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(da||(da={}));var ua;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(ua||(ua={}));var pa;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(pa||(pa={}));var Gr;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(Gr||(Gr={}));var ma;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ma||(ma={}));var fa;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(fa||(fa={}));var ga;(function(t){t[t.Deprecated=1]="Deprecated"})(ga||(ga={}));var ba;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(ba||(ba={}));var va;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(va||(va={}));var ya;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ya||(ya={}));var wa;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(wa||(wa={}));class on{static chord(e,n){return fh(e,n)}}on.CtrlCmd=2048,on.Shift=1024,on.Alt=512,on.WinCtrl=256;function yh(){return{editor:void 0,languages:void 0,CancellationTokenSource:dh,Emitter:Ze,KeyCode:qr,KeyMod:on,Position:tt,Range:We,Selection:Ie,SelectionDirection:Gr,MarkerSeverity:$r,MarkerTag:Hr,Uri:Mr,Token:vh}}var xa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(xa||(xa={}));var Sa;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Sa||(Sa={}));var _a;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(_a||(_a={}));var Ca;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Ca||(Ca={}));function wh(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r);if(t.get(a)!==0)return!0}return!1}function xh(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r+i-1);if(t.get(a)!==0)return!0}return!1}function Sh(t,e,n,r,i){return wh(t,e,n,r,i)&&xh(t,e,n,r,i)}class _h{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Cc(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Sh(this._wordSeparators,e,n,i,s))return r}while(r);return null}}function Ch(t,e="Unreachable"){throw new Error(e)}function Jr(t){if(!t()){debugger;t(),he(new Fe("Assertion Failed"))}}function ka(t,e){let n=0;for(;n0){const N=S.charCodeAt(I-1);Pr(N)&&I--}if(M+1=N){u=!0;break e}h.push(new We(y,I+1,y,M+1))}}while(f)}return{ranges:h,hasMore:u,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:v}}static computeUnicodeHighlightReason(e,n){const r=new Ea(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=Oe.getLocales().filter(l=>!Oe.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Eh(t,e){return`[${vc(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class Ea{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Oe.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of ut.codePoints)Ra(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=Ec(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!ut.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Ra(e)&&ut.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Ra(t){return t===" "||t===` +`))}}class Cr{constructor(e){this.value=e}}const ic=2;class Ze{constructor(e){var n,r,i,s,a;this._size=0,this._options=e,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new rc((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:nc):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new zt(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(n,r,i)=>{var s,a,o,l,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),rn.None;if(this._disposed)return rn.None;r&&(n=n.bind(r));const h=new Cr(n);let u;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=_r.create(),u=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof Cr?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new sc),this._listeners=[this._listeners,h]):this._listeners.push(h):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=h,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const f=nn(()=>{u==null||u(),this._removeListener(h)});return i instanceof kt?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}_removeListener(e){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(e);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*ic<=a.length){let c=0;for(let h=0;h0}}class sc{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function ac(t){return typeof t=="string"}function oc(t){let e=[],n=Object.getPrototypeOf(t);for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function kr(t){const e=[];for(const n of oc(t))typeof t[n]=="function"&&e.push(n);return e}function lc(t,e){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return e(i,s)},r={};for(const i of t)r[i]=n(i);return r}let cc=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function hc(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),cc&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function dc(t,e,...n){return hc(e,n)}function Jp(t){}var Er;const Lt="en";let Rr=!1,Dr=!1,Fr=!1,ls=!1,Wn,Ar=Lt,cs=Lt,uc,Ge;const Je=typeof self=="object"?self:typeof global=="object"?global:{};let xe;typeof Je.vscode!="undefined"&&typeof Je.vscode.process!="undefined"?xe=Je.vscode.process:typeof process!="undefined"&&(xe=process);const pc=typeof((Er=xe==null?void 0:xe.versions)===null||Er===void 0?void 0:Er.electron)=="string"&&(xe==null?void 0:xe.type)==="renderer";if(typeof navigator=="object"&&!pc)Ge=navigator.userAgent,Rr=Ge.indexOf("Windows")>=0,Dr=Ge.indexOf("Macintosh")>=0,(Ge.indexOf("Macintosh")>=0||Ge.indexOf("iPad")>=0||Ge.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Fr=Ge.indexOf("Linux")>=0,(Ge==null?void 0:Ge.indexOf("Mobi"))>=0,ls=!0,dc({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Wn=Lt,Ar=Wn,cs=navigator.language;else if(typeof xe=="object"){Rr=xe.platform==="win32",Dr=xe.platform==="darwin",Fr=xe.platform==="linux",Fr&&xe.env.SNAP&&xe.env.SNAP_REVISION,xe.env.CI||xe.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Wn=Lt,Ar=Lt;const t=xe.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Wn=e.locale,cs=e.osLocale,Ar=n||Lt,uc=e._translationsConfigFile}catch(e){}}else console.error("Unable to resolve platform.");const sn=Rr,mc=Dr;ls&&Je.importScripts;const et=Ge,fc=typeof Je.postMessage=="function"&&!Je.importScripts;(()=>{if(fc){const t=[];Je.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r{const r=++e;t.push({id:r,callback:n}),Je.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const gc=!!(et&&et.indexOf("Chrome")>=0);et&&et.indexOf("Firefox")>=0,!gc&&et&&et.indexOf("Safari")>=0,et&&et.indexOf("Edg/")>=0,et&&et.indexOf("Android")>=0;class bc{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=JSON.stringify(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}class hs{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var ds;function vc(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function yc(t){return t.split(/\r\n|\r|\n/)}function wc(t){for(let e=0,n=t.length;e=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function us(t){return t>=65&&t<=90}function Pr(t){return 55296<=t&&t<=56319}function Sc(t){return 56320<=t&&t<=57343}function _c(t,e){return(t-55296<<10)+(e-56320)+65536}function Cc(t,e,n){const r=t.charCodeAt(n);if(Pr(r)&&n+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Oe.cache=new bc(t=>{function e(c){const h=new Map;for(let u=0;u!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(const c of s){const h=e(i[c]);a=r(a,h)}const o=e(i._common),l=n(o,a);return new Oe(l)}),Oe._locales=new hs(()=>Object.keys(Oe.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));class ut{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ut.getRawData())),this._data}static isInvisibleCharacter(e){return ut.getData().has(e)}static get codePoints(){return ut.getData()}}ut._data=void 0;const Rc="$initialize";class Dc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.method=r,this.args=i,this.type=0}}class ps{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class Fc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Ac{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class Pc{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Nc{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new Dc(this._workerId,r,e,n))})}listen(e,n){let r=null;const i=new Ze({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Fc(this._workerId,r,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Pc(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;e.err.$isError&&(r=new Error,r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new ps(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Ln(i.detail)),this._send(new ps(this._workerId,n,void 0,Ln(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new Ac(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let r=0;rfunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of t){if(fs(a)){s[a]=i(a);continue}if(ms(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Ic{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Nc({sendMessage:(r,i)=>{e(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===Rc)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(fs(e)){const r=this._requestHandler[e].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return r}if(ms(e)){const r=this._requestHandler[e];if(typeof r!="function")throw new Error(`Missing event ${e} on request handler.`);return r}throw new Error(`Malformed event name ${e}`)}initialize(e,n,r,i){this._protocol.setWorkerId(e);const o=Mc(i,(l,c)=>this._protocol.sendMessage(l,c),(l,c)=>this._protocol.listen(l,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(kr(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,c)=>{const h=globalThis.require;h([r],u=>{if(this._requestHandler=u.create(o),!this._requestHandler){c(new Error("No RequestHandler!"));return}l(kr(this._requestHandler))},c)}))}}class pt{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function gs(t,e){return(e<<5)-e+t|0}function zc(t,e){e=gs(149417,e);for(let n=0,r=t.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new pt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class mt{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,a]=mt._getElements(e),[o,l,c]=mt._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(mt._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(Tt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new pt(e,0,r,i-r+1)]):e<=n?(Tt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new pt(e,n-e+1,r,0)]):(Tt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),Tt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],h=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,h,s);let f=[];return s[0]?f=[new pt(c+1,n-(c+1)+1,h+1,i-(h+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,h+1,i,s),this.ConcatenateChanges(u,f)}return[new pt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,h,u,f,m,g,v,y,w,S){let C=null,I=null,M=new vs,U=n,q=r,W=m[0]-y[0]-i,N=-1073741824,D=this.m_forwardHistory.length-1;do{const R=W+e;R===U||R=0&&(c=this.m_forwardHistory[D],e=c[0],U=1,q=c.length-1)}while(--D>=-1);if(C=M.getReverseChanges(),S[0]){let R=m[0]+1,E=y[0]+1;if(C!==null&&C.length>0){const L=C[C.length-1];R=Math.max(R,L.getOriginalEnd()),E=Math.max(E,L.getModifiedEnd())}I=[new pt(R,f-R+1,E,v-E+1)]}else{M=new vs,U=a,q=o,W=m[0]-y[0]-l,N=1073741824,D=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const R=W+s;R===U||R=h[R+1]?(u=h[R+1]-1,g=u-W-l,u>N&&M.MarkNextChange(),N=u+1,M.AddOriginalElement(u+1,g+1),W=R+1-s):(u=h[R-1],g=u-W-l,u>N&&M.MarkNextChange(),N=u,M.AddModifiedElement(u+1,g+1),W=R-1-s),D>=0&&(h=this.m_reverseHistory[D],s=h[0],U=1,q=h.length-1)}while(--D>=-1);I=M.getChanges()}return this.ConcatenateChanges(C,I)}ComputeRecursionPoint(e,n,r,i,s,a,o){let l=0,c=0,h=0,u=0,f=0,m=0;e--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-e+(i-r),v=g+1,y=new Int32Array(v),w=new Int32Array(v),S=i-r,C=n-e,I=e-r,M=n-i,q=(C-S)%2===0;y[S]=e,w[C]=n,o[0]=!1;for(let W=1;W<=g/2+1;W++){let N=0,D=0;h=this.ClipDiagonalBound(S-W,W,S,v),u=this.ClipDiagonalBound(S+W,W,S,v);for(let E=h;E<=u;E+=2){E===h||EN+D&&(N=l,D=c),!q&&Math.abs(E-C)<=W-1&&l>=w[E])return s[0]=l,a[0]=c,L<=w[E]&&1447>0&&W<=1447+1?this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o):null}const R=(N-e+(D-r)-W)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(N,R))return o[0]=!0,s[0]=N,a[0]=D,R>0&&1447>0&&W<=1447+1?this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o):(e++,r++,[new pt(e,n-e+1,r,i-r+1)]);f=this.ClipDiagonalBound(C-W,W,C,v),m=this.ClipDiagonalBound(C+W,W,C,v);for(let E=f;E<=m;E+=2){E===f||E=w[E+1]?l=w[E+1]-1:l=w[E-1],c=l-(E-C)-M;const L=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(w[E]=l,q&&Math.abs(E-S)<=W&&l<=y[E])return s[0]=l,a[0]=c,L>=y[E]&&1447>0&&W<=1447+1?this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o):null}if(W<=1447){let E=new Int32Array(u-h+2);E[0]=S-h+1,Ot.Copy2(y,h,E,1,u-h+1),this.m_forwardHistory.push(E),E=new Int32Array(m-f+2),E[0]=C-f+1,Ot.Copy2(w,f,E,1,m-f+1),this.m_reverseHistory.push(E)}}return this.WALKTRACE(S,h,u,I,C,f,m,M,y,w,l,n,s,c,i,a,q,o)}PrettifyChanges(e){for(let n=0;n0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){const r=e[n];let i=0,s=0;if(n>0){const u=e[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,m=r.modifiedStart-u;if(fc&&(c=v,l=u)}r.originalStart-=l,r.modifiedStart-=l;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n0&&m>l&&(l=m,c=u,h=f)}return l>0?[c,h]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Ot.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Ot.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Ot.Copy(e,0,i,0,e.length),Ot.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(Tt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Tt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new pt(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&e",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}},cwd(){return{ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_6828_MLGRPUXSXUGOABLP",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}.VSCODE_CWD||process.cwd()}}:Wt={get platform(){return sn?"win32":mc?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Un=Wt.cwd;Wt.env;const Tc=Wt.platform,Oc=65,Wc=97,Uc=90,Vc=122,ft=46,we=47,Ae=92,gt=58,jc=63;class ys extends Error{constructor(e,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Bc(t,e){if(t===null||typeof t!="object")throw new ys(e,"Object",t)}function le(t,e){if(typeof t!="string")throw new ys(e,"string",t)}const bt=Tc==="win32";function J(t){return t===we||t===Ae}function Nr(t){return t===we}function vt(t){return t>=Oc&&t<=Uc||t>=Wc&&t<=Vc}function Vn(t,e,n,r){let i="",s=0,a=-1,o=0,l=0;for(let c=0;c<=t.length;++c){if(c2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=c,o=0;continue}else if(i.length!==0){i="",s=0,a=c,o=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(a+1,c)}`:i=t.slice(a+1,c),s=c-a-1;a=c,o=0}else l===ft&&o!==-1?++o:o=-1}return i}function ws(t,e){Bc(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const Ee={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],le(s,"path"),s.length===0)continue}else e.length===0?s=Un():(s={ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_6828_MLGRPUXSXUGOABLP",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}[`=${e}`]||Un(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Ae)&&(s=`${e}\\`));const a=s.length;let o=0,l="",c=!1;const h=s.charCodeAt(0);if(a===1)J(h)&&(o=1,c=!0);else if(J(h))if(c=!0,J(s.charCodeAt(1))){let u=2,f=u;for(;u2&&J(s.charCodeAt(2))&&(c=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=c,c&&e.length>0)break}return n=Vn(n,!r,"\\",J),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){le(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return Nr(s)?"\\":t;if(J(s))if(i=!0,J(t.charCodeAt(1))){let o=2,l=o;for(;o2&&J(t.charCodeAt(2))&&(i=!0,n=3));let a=n0&&J(t.charCodeAt(e-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(t){le(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return J(n)||e>2&&vt(n)&&t.charCodeAt(1)===gt&&J(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&J(n.charCodeAt(0))){++i;const s=n.length;s>1&&J(n.charCodeAt(1))&&(++i,s>2&&(J(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(e=`\\${e.slice(i)}`)}return Ee.normalize(e)},relative(t,e){if(le(t,"from"),le(e,"to"),t===e)return"";const n=Ee.resolve(t),r=Ee.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;ii&&t.charCodeAt(s-1)===Ae;)s--;const a=s-i;let o=0;for(;oo&&e.charCodeAt(l-1)===Ae;)l--;const c=l-o,h=ah){if(e.charCodeAt(o+f)===Ae)return r.slice(o+f+1);if(f===2)return r.slice(o+f)}a>h&&(t.charCodeAt(i+f)===Ae?u=f:f===2&&(u=3)),u===-1&&(u=0)}let m="";for(f=i+u+1;f<=s;++f)(f===s||t.charCodeAt(f)===Ae)&&(m+=m.length===0?"..":"\\..");return o+=u,m.length>0?`${m}${r.slice(o,l)}`:(r.charCodeAt(o)===Ae&&++o,r.slice(o,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Ee.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Ae){if(e.charCodeAt(1)===Ae){const n=e.charCodeAt(2);if(n!==jc&&n!==ft)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(vt(e.charCodeAt(0))&&e.charCodeAt(1)===gt&&e.charCodeAt(2)===Ae)return`\\\\?\\${e}`;return t},dirname(t){le(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return J(i)?t:".";if(J(i)){if(n=r=1,J(t.charCodeAt(1))){let o=2,l=o;for(;o2&&J(t.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(J(t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&le(e,"ext"),le(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&&vt(t.charCodeAt(0))&&t.charCodeAt(1)===gt&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(J(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(J(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){le(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===gt&&vt(t.charCodeAt(0))&&(e=r=2);for(let o=t.length-1;o>=e;--o){const l=t.charCodeAt(o);if(J(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===ft?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:ws.bind(null,"\\"),parse(t){le(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return J(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(J(i)){if(r=1,J(t.charCodeAt(1))){let u=2,f=u;for(;u0&&(e.root=t.slice(0,r));let s=-1,a=r,o=-1,l=!0,c=t.length-1,h=0;for(;c>=r;--c){if(i=t.charCodeAt(c),J(i)){if(!l){a=c+1;break}continue}o===-1&&(l=!1,o=c+1),i===ft?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return o!==-1&&(s===-1||h===0||h===1&&s===o-1&&s===a+1?e.base=e.name=t.slice(a,o):(e.name=t.slice(a,s),e.base=t.slice(a,o),e.ext=t.slice(s,o))),a>0&&a!==r?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},qc=(()=>{if(bt){const t=/\\/g;return()=>{const e=Un().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Un()})(),Pe={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:qc();le(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===we)}return e=Vn(e,!n,"/",Nr),n?`/${e}`:e.length>0?e:"."},normalize(t){if(le(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===we,n=t.charCodeAt(t.length-1)===we;return t=Vn(t,!e,"/",Nr),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return le(t,"path"),t.length>0&&t.charCodeAt(0)===we},join(...t){if(t.length===0)return".";let e;for(let n=0;n0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":Pe.normalize(e)},relative(t,e){if(le(t,"from"),le(e,"to"),t===e||(t=Pe.resolve(t),e=Pe.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,a=e.length-s,o=io){if(e.charCodeAt(s+c)===we)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>o&&(t.charCodeAt(n+c)===we?l=c:c===0&&(l=0));let h="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===we)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(le(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===we;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===we){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&le(e,"ext"),le(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===we){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===we){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){le(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let a=t.length-1;a>=0;--a){const o=t.charCodeAt(a);if(o===we){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===ft?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:ws.bind(null,"/"),parse(t){le(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===we;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=t.length-1,c=0;for(;l>=r;--l){const h=t.charCodeAt(l);if(h===we){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),h===ft?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,i),e.base=t.slice(h,a),e.ext=t.slice(i,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Pe.win32=Ee.win32=Ee,Pe.posix=Ee.posix=Pe,bt?Ee.normalize:Pe.normalize,bt?Ee.resolve:Pe.resolve,bt?Ee.relative:Pe.relative,bt?Ee.dirname:Pe.dirname,bt?Ee.basename:Pe.basename,bt?Ee.extname:Pe.extname,bt?Ee.sep:Pe.sep;const $c=/^\w[\w\d+.-]*$/,Hc=/^\//,Gc=/^\/\//;function Jc(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!$c.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Hc.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Gc.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Yc(t,e){return!t&&!e?"file":t}function Xc(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Ye&&(e=Ye+e):e=Ye;break}return e}const ie="",Ye="/",Kc=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Mr=class yr{static isUri(e){return e instanceof yr?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||ie,this.authority=e.authority||ie,this.path=e.path||ie,this.query=e.query||ie,this.fragment=e.fragment||ie):(this.scheme=Yc(e,a),this.authority=n||ie,this.path=Xc(this.scheme,r||ie),this.query=i||ie,this.fragment=s||ie,Jc(this,a))}get fsPath(){return Ir(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=ie),r===void 0?r=this.authority:r===null&&(r=ie),i===void 0?i=this.path:i===null&&(i=ie),s===void 0?s=this.query:s===null&&(s=ie),a===void 0?a=this.fragment:a===null&&(a=ie),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ut(n,r,i,s,a)}static parse(e,n=!1){const r=Kc.exec(e);return r?new Ut(r[2]||ie,jn(r[4]||ie),jn(r[5]||ie),jn(r[7]||ie),jn(r[9]||ie),n):new Ut(ie,ie,ie,ie,ie)}static file(e){let n=ie;if(sn&&(e=e.replace(/\\/g,Ye)),e[0]===Ye&&e[1]===Ye){const r=e.indexOf(Ye,2);r===-1?(n=e.substring(2),e=Ye):(n=e.substring(2,r),e=e.substring(r)||Ye)}return new Ut("file",n,e,ie,ie)}static from(e,n){return new Ut(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return sn&&e.scheme==="file"?r=yr.file(Ee.join(Ir(e,!0),...n)).path:r=Pe.join(e.path,...n),e.with({path:r})}toString(e=!1){return zr(this,e)}toJSON(){return this}static revive(e){var n,r;if(e){if(e instanceof yr)return e;{const i=new Ut(e);return i._formatted=(n=e.external)!==null&&n!==void 0?n:null,i._fsPath=e._sep===xs&&(r=e.fsPath)!==null&&r!==void 0?r:null,i}}else return e}};const xs=sn?1:void 0;class Ut extends Mr{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ir(this,!1)),this._fsPath}toString(e=!1){return e?zr(this,!0):(this._formatted||(this._formatted=zr(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=xs),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const Ss={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _s(t,e,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const o=Ss[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function Qc(t){let e;for(let n=0;n1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,sn&&(n=n.replace(/\//g,"\\")),n}function zr(t,e){const n=e?Qc:_s;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Ye,r+=Ye),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=e?l:_s(l,!1,!1)),r}function Cs(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+Cs(t.substr(3)):t}}const ks=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function jn(t){return t.match(ks)?t.replace(ks,e=>Cs(e)):t}let tt=class Mt{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new Mt(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return Mt.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return Mt.isBefore(this,e)}static isBefore(e,n){return e.lineNumberr||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ue.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.columne.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return ue.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumne.endColumn)}strictContainsRange(e){return ue.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return ue.plusRange(this,e)}static plusRange(e,n){let r,i,s,a;return n.startLineNumbere.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new ue(r,i,s,a)}intersectRanges(e){return ue.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,h=n.endColumn;return rc?(s=c,a=h):s===c&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new ue(r,i,s,a)}equalsRange(e){return ue.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(e){return new tt(e.endLineNumber,e.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(e){return new tt(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new ue(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new ue(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(e){return new ue(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return ue.collapseToEnd(this)}static collapseToEnd(e){return new ue(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new ue(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new ue(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new ue(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}};var Es;(function(t){function e(i){return i<0}t.isLessThan=e;function n(i){return i>0}t.isGreaterThan=n;function r(i){return i===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Es||(Es={}));function Rs(t){return t<0?0:t>255?255:t|0}function Vt(t){return t<0?0:t>4294967295?4294967295:t|0}class Zc{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Vt(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Vt(e),n=Vt(n),this.values[e]===n?!1:(this.values[e]=n,e-1=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Vt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],e=s)n=i+1;else break;return new eh(i,e-a)}}class eh{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class th{constructor(e,n,r,i){this._uri=e,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new tt(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i/?";function rh(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of nh)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const Ds=rh();function ih(t){let e=Ds;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const Fs=new ec;Fs.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Lr(t,e,n,r,i){if(i||(i=Tn.first(Fs)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),Lr(t,e,n,r,i)}const s=Date.now(),a=t-1-r;let o=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=a-i.windowSize*c;e.lastIndex=Math.max(0,h);const u=sh(e,n,a,o);if(!u&&l||(l=u,h<=0))break;o=h}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function sh(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Tr{constructor(e){const n=Rs(e);this._defaultValue=n,this._asciiMap=Tr._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Rs(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class ah{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,a=e*n;sn&&(n=l),o>r&&(r=o),c>r&&(r=c)}n++,r++;const i=new ah(r,n,0);for(let s=0,a=e.length;s=this._maxCharCode?0:this._states.get(e,n)}}let Or=null;function lh(){return Or===null&&(Or=new oh([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Or}let an=null;function ch(){if(an===null){an=new Tr(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;ni);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(e,n=lh()){const r=ch(),i=[];for(let s=1,a=e.getLineCount();s<=a;s++){const o=e.getLineContent(s),l=o.length;let c=0,h=0,u=0,f=1,m=!1,g=!1,v=!1,y=!1;for(;c=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Wr.INSTANCE=new Wr;const As=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var qn;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof $n?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Sr.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:As})})(qn||(qn={}));class $n{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?As:(this._emitter||(this._emitter=new Ze),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class dh{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new $n),this._token}cancel(){this._token?this._token instanceof $n&&this._token.cancel():this._token=qn.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof $n&&this._token.dispose():this._token=qn.None}}class Ur{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Hn=new Ur,Vr=new Ur,jr=new Ur,uh=new Array(230),ph=Object.create(null),mh=Object.create(null);(function(){const t="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",t,t],[1,1,"Hyper",0,t,0,t,t,t],[1,2,"Super",0,t,0,t,t,t],[1,3,"Fn",0,t,0,t,t,t],[1,4,"FnLock",0,t,0,t,t,t],[1,5,"Suspend",0,t,0,t,t,t],[1,6,"Resume",0,t,0,t,t,t],[1,7,"Turbo",0,t,0,t,t,t],[1,8,"Sleep",0,t,0,"VK_SLEEP",t,t],[1,9,"WakeUp",0,t,0,t,t,t],[0,10,"KeyA",31,"A",65,"VK_A",t,t],[0,11,"KeyB",32,"B",66,"VK_B",t,t],[0,12,"KeyC",33,"C",67,"VK_C",t,t],[0,13,"KeyD",34,"D",68,"VK_D",t,t],[0,14,"KeyE",35,"E",69,"VK_E",t,t],[0,15,"KeyF",36,"F",70,"VK_F",t,t],[0,16,"KeyG",37,"G",71,"VK_G",t,t],[0,17,"KeyH",38,"H",72,"VK_H",t,t],[0,18,"KeyI",39,"I",73,"VK_I",t,t],[0,19,"KeyJ",40,"J",74,"VK_J",t,t],[0,20,"KeyK",41,"K",75,"VK_K",t,t],[0,21,"KeyL",42,"L",76,"VK_L",t,t],[0,22,"KeyM",43,"M",77,"VK_M",t,t],[0,23,"KeyN",44,"N",78,"VK_N",t,t],[0,24,"KeyO",45,"O",79,"VK_O",t,t],[0,25,"KeyP",46,"P",80,"VK_P",t,t],[0,26,"KeyQ",47,"Q",81,"VK_Q",t,t],[0,27,"KeyR",48,"R",82,"VK_R",t,t],[0,28,"KeyS",49,"S",83,"VK_S",t,t],[0,29,"KeyT",50,"T",84,"VK_T",t,t],[0,30,"KeyU",51,"U",85,"VK_U",t,t],[0,31,"KeyV",52,"V",86,"VK_V",t,t],[0,32,"KeyW",53,"W",87,"VK_W",t,t],[0,33,"KeyX",54,"X",88,"VK_X",t,t],[0,34,"KeyY",55,"Y",89,"VK_Y",t,t],[0,35,"KeyZ",56,"Z",90,"VK_Z",t,t],[0,36,"Digit1",22,"1",49,"VK_1",t,t],[0,37,"Digit2",23,"2",50,"VK_2",t,t],[0,38,"Digit3",24,"3",51,"VK_3",t,t],[0,39,"Digit4",25,"4",52,"VK_4",t,t],[0,40,"Digit5",26,"5",53,"VK_5",t,t],[0,41,"Digit6",27,"6",54,"VK_6",t,t],[0,42,"Digit7",28,"7",55,"VK_7",t,t],[0,43,"Digit8",29,"8",56,"VK_8",t,t],[0,44,"Digit9",30,"9",57,"VK_9",t,t],[0,45,"Digit0",21,"0",48,"VK_0",t,t],[1,46,"Enter",3,"Enter",13,"VK_RETURN",t,t],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",t,t],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",t,t],[1,49,"Tab",2,"Tab",9,"VK_TAB",t,t],[1,50,"Space",10,"Space",32,"VK_SPACE",t,t],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,t,0,t,t,t],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",t,t],[1,64,"F1",59,"F1",112,"VK_F1",t,t],[1,65,"F2",60,"F2",113,"VK_F2",t,t],[1,66,"F3",61,"F3",114,"VK_F3",t,t],[1,67,"F4",62,"F4",115,"VK_F4",t,t],[1,68,"F5",63,"F5",116,"VK_F5",t,t],[1,69,"F6",64,"F6",117,"VK_F6",t,t],[1,70,"F7",65,"F7",118,"VK_F7",t,t],[1,71,"F8",66,"F8",119,"VK_F8",t,t],[1,72,"F9",67,"F9",120,"VK_F9",t,t],[1,73,"F10",68,"F10",121,"VK_F10",t,t],[1,74,"F11",69,"F11",122,"VK_F11",t,t],[1,75,"F12",70,"F12",123,"VK_F12",t,t],[1,76,"PrintScreen",0,t,0,t,t,t],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",t,t],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",t,t],[1,79,"Insert",19,"Insert",45,"VK_INSERT",t,t],[1,80,"Home",14,"Home",36,"VK_HOME",t,t],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",t,t],[1,82,"Delete",20,"Delete",46,"VK_DELETE",t,t],[1,83,"End",13,"End",35,"VK_END",t,t],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",t,t],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",t],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",t],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",t],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",t],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",t,t],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",t,t],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",t,t],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",t,t],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",t,t],[1,94,"NumpadEnter",3,t,0,t,t,t],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",t,t],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",t,t],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",t,t],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",t,t],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",t,t],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",t,t],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",t,t],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",t,t],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",t,t],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",t,t],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",t,t],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",t,t],[1,107,"ContextMenu",58,"ContextMenu",93,t,t,t],[1,108,"Power",0,t,0,t,t,t],[1,109,"NumpadEqual",0,t,0,t,t,t],[1,110,"F13",71,"F13",124,"VK_F13",t,t],[1,111,"F14",72,"F14",125,"VK_F14",t,t],[1,112,"F15",73,"F15",126,"VK_F15",t,t],[1,113,"F16",74,"F16",127,"VK_F16",t,t],[1,114,"F17",75,"F17",128,"VK_F17",t,t],[1,115,"F18",76,"F18",129,"VK_F18",t,t],[1,116,"F19",77,"F19",130,"VK_F19",t,t],[1,117,"F20",78,"F20",131,"VK_F20",t,t],[1,118,"F21",79,"F21",132,"VK_F21",t,t],[1,119,"F22",80,"F22",133,"VK_F22",t,t],[1,120,"F23",81,"F23",134,"VK_F23",t,t],[1,121,"F24",82,"F24",135,"VK_F24",t,t],[1,122,"Open",0,t,0,t,t,t],[1,123,"Help",0,t,0,t,t,t],[1,124,"Select",0,t,0,t,t,t],[1,125,"Again",0,t,0,t,t,t],[1,126,"Undo",0,t,0,t,t,t],[1,127,"Cut",0,t,0,t,t,t],[1,128,"Copy",0,t,0,t,t,t],[1,129,"Paste",0,t,0,t,t,t],[1,130,"Find",0,t,0,t,t,t],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",t,t],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",t,t],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",t,t],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",t,t],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",t,t],[1,136,"KanaMode",0,t,0,t,t,t],[0,137,"IntlYen",0,t,0,t,t,t],[1,138,"Convert",0,t,0,t,t,t],[1,139,"NonConvert",0,t,0,t,t,t],[1,140,"Lang1",0,t,0,t,t,t],[1,141,"Lang2",0,t,0,t,t,t],[1,142,"Lang3",0,t,0,t,t,t],[1,143,"Lang4",0,t,0,t,t,t],[1,144,"Lang5",0,t,0,t,t,t],[1,145,"Abort",0,t,0,t,t,t],[1,146,"Props",0,t,0,t,t,t],[1,147,"NumpadParenLeft",0,t,0,t,t,t],[1,148,"NumpadParenRight",0,t,0,t,t,t],[1,149,"NumpadBackspace",0,t,0,t,t,t],[1,150,"NumpadMemoryStore",0,t,0,t,t,t],[1,151,"NumpadMemoryRecall",0,t,0,t,t,t],[1,152,"NumpadMemoryClear",0,t,0,t,t,t],[1,153,"NumpadMemoryAdd",0,t,0,t,t,t],[1,154,"NumpadMemorySubtract",0,t,0,t,t,t],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",t,t],[1,156,"NumpadClearEntry",0,t,0,t,t,t],[1,0,t,5,"Ctrl",17,"VK_CONTROL",t,t],[1,0,t,4,"Shift",16,"VK_SHIFT",t,t],[1,0,t,6,"Alt",18,"VK_MENU",t,t],[1,0,t,57,"Meta",91,"VK_COMMAND",t,t],[1,157,"ControlLeft",5,t,0,"VK_LCONTROL",t,t],[1,158,"ShiftLeft",4,t,0,"VK_LSHIFT",t,t],[1,159,"AltLeft",6,t,0,"VK_LMENU",t,t],[1,160,"MetaLeft",57,t,0,"VK_LWIN",t,t],[1,161,"ControlRight",5,t,0,"VK_RCONTROL",t,t],[1,162,"ShiftRight",4,t,0,"VK_RSHIFT",t,t],[1,163,"AltRight",6,t,0,"VK_RMENU",t,t],[1,164,"MetaRight",57,t,0,"VK_RWIN",t,t],[1,165,"BrightnessUp",0,t,0,t,t,t],[1,166,"BrightnessDown",0,t,0,t,t,t],[1,167,"MediaPlay",0,t,0,t,t,t],[1,168,"MediaRecord",0,t,0,t,t,t],[1,169,"MediaFastForward",0,t,0,t,t,t],[1,170,"MediaRewind",0,t,0,t,t,t],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",t,t],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",t,t],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",t,t],[1,174,"Eject",0,t,0,t,t,t],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",t,t],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",t,t],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",t,t],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",t,t],[1,179,"LaunchApp1",0,t,0,"VK_MEDIA_LAUNCH_APP1",t,t],[1,180,"SelectTask",0,t,0,t,t,t],[1,181,"LaunchScreenSaver",0,t,0,t,t,t],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",t,t],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",t,t],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",t,t],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",t,t],[1,186,"BrowserStop",0,t,0,"VK_BROWSER_STOP",t,t],[1,187,"BrowserRefresh",0,t,0,"VK_BROWSER_REFRESH",t,t],[1,188,"BrowserFavorites",0,t,0,"VK_BROWSER_FAVORITES",t,t],[1,189,"ZoomToggle",0,t,0,t,t,t],[1,190,"MailReply",0,t,0,t,t,t],[1,191,"MailForward",0,t,0,t,t,t],[1,192,"MailSend",0,t,0,t,t,t],[1,0,t,114,"KeyInComposition",229,t,t,t],[1,0,t,116,"ABNT_C2",194,"VK_ABNT_C2",t,t],[1,0,t,96,"OEM_8",223,"VK_OEM_8",t,t],[1,0,t,0,t,0,"VK_KANA",t,t],[1,0,t,0,t,0,"VK_HANGUL",t,t],[1,0,t,0,t,0,"VK_JUNJA",t,t],[1,0,t,0,t,0,"VK_FINAL",t,t],[1,0,t,0,t,0,"VK_HANJA",t,t],[1,0,t,0,t,0,"VK_KANJI",t,t],[1,0,t,0,t,0,"VK_CONVERT",t,t],[1,0,t,0,t,0,"VK_NONCONVERT",t,t],[1,0,t,0,t,0,"VK_ACCEPT",t,t],[1,0,t,0,t,0,"VK_MODECHANGE",t,t],[1,0,t,0,t,0,"VK_SELECT",t,t],[1,0,t,0,t,0,"VK_PRINT",t,t],[1,0,t,0,t,0,"VK_EXECUTE",t,t],[1,0,t,0,t,0,"VK_SNAPSHOT",t,t],[1,0,t,0,t,0,"VK_HELP",t,t],[1,0,t,0,t,0,"VK_APPS",t,t],[1,0,t,0,t,0,"VK_PROCESSKEY",t,t],[1,0,t,0,t,0,"VK_PACKET",t,t],[1,0,t,0,t,0,"VK_DBE_SBCSCHAR",t,t],[1,0,t,0,t,0,"VK_DBE_DBCSCHAR",t,t],[1,0,t,0,t,0,"VK_ATTN",t,t],[1,0,t,0,t,0,"VK_CRSEL",t,t],[1,0,t,0,t,0,"VK_EXSEL",t,t],[1,0,t,0,t,0,"VK_EREOF",t,t],[1,0,t,0,t,0,"VK_PLAY",t,t],[1,0,t,0,t,0,"VK_ZOOM",t,t],[1,0,t,0,t,0,"VK_NONAME",t,t],[1,0,t,0,t,0,"VK_PA1",t,t],[1,0,t,0,t,0,"VK_OEM_CLEAR",t,t]],n=[],r=[];for(const i of e){const[s,a,o,l,c,h,u,f,m]=i;if(r[a]||(r[a]=!0,ph[o]=a,mh[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);Hn.define(l,c),Vr.define(l,f||c),jr.define(l,m||f||c)}h&&(uh[h]=l)}})();var Ps;(function(t){function e(o){return Hn.keyCodeToStr(o)}t.toString=e;function n(o){return Hn.strToKeyCode(o)}t.fromString=n;function r(o){return Vr.keyCodeToStr(o)}t.toUserSettingsUS=r;function i(o){return jr.keyCodeToStr(o)}t.toUserSettingsGeneral=i;function s(o){return Vr.strToKeyCode(o)||jr.strToKeyCode(o)}t.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Hn.keyCodeToStr(o)}t.toElectronAccelerator=a})(Ps||(Ps={}));function fh(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}class Ie extends We{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Ie.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new Ie(this.startLineNumber,this.startColumn,e,n):new Ie(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new tt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new tt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new Ie(e,n,this.endLineNumber,this.endColumn):new Ie(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Ie(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new Ie(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Ie(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Ie(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))===null||r===void 0||r.dispose();const i=new bh(this,e,n);return this._factories.set(e,i),nn(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}getOrCreate(e){return Br(this,void 0,void 0,function*(){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(yield r.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class bh extends rn{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Br(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Br(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}class vh{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Ms;(function(t){const e=new Map;e.set(0,V.symbolMethod),e.set(1,V.symbolFunction),e.set(2,V.symbolConstructor),e.set(3,V.symbolField),e.set(4,V.symbolVariable),e.set(5,V.symbolClass),e.set(6,V.symbolStruct),e.set(7,V.symbolInterface),e.set(8,V.symbolModule),e.set(9,V.symbolProperty),e.set(10,V.symbolEvent),e.set(11,V.symbolOperator),e.set(12,V.symbolUnit),e.set(13,V.symbolValue),e.set(15,V.symbolEnum),e.set(14,V.symbolConstant),e.set(15,V.symbolEnum),e.set(16,V.symbolEnumMember),e.set(17,V.symbolKeyword),e.set(27,V.symbolSnippet),e.set(18,V.symbolText),e.set(19,V.symbolColor),e.set(20,V.symbolFile),e.set(21,V.symbolReference),e.set(22,V.symbolCustomColor),e.set(23,V.symbolFolder),e.set(24,V.symbolTypeParameter),e.set(25,V.account),e.set(26,V.issues);function n(s){let a=e.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=V.symbolProperty),a}t.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let o=r.get(s);return typeof o=="undefined"&&!a&&(o=9),o}t.fromString=i})(Ms||(Ms={}));var Is;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Is||(Is={}));var zs;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(zs||(zs={}));var Ls;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Ls||(Ls={}));var Ts;(function(t){const e=new Map;e.set(0,V.symbolFile),e.set(1,V.symbolModule),e.set(2,V.symbolNamespace),e.set(3,V.symbolPackage),e.set(4,V.symbolClass),e.set(5,V.symbolMethod),e.set(6,V.symbolProperty),e.set(7,V.symbolField),e.set(8,V.symbolConstructor),e.set(9,V.symbolEnum),e.set(10,V.symbolInterface),e.set(11,V.symbolFunction),e.set(12,V.symbolVariable),e.set(13,V.symbolConstant),e.set(14,V.symbolString),e.set(15,V.symbolNumber),e.set(16,V.symbolBoolean),e.set(17,V.symbolArray),e.set(18,V.symbolObject),e.set(19,V.symbolKey),e.set(20,V.symbolNull),e.set(21,V.symbolEnumMember),e.set(22,V.symbolStruct),e.set(23,V.symbolEvent),e.set(24,V.symbolOperator),e.set(25,V.symbolTypeParameter);function n(r){let i=e.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=V.symbolProperty),i}t.toIcon=n})(Ts||(Ts={}));var Os;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(Os||(Os={}));var Ws;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Ws||(Ws={})),new gh;var Us;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Us||(Us={}));var Vs;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Vs||(Vs={}));var js;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(js||(js={}));var Bs;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(Bs||(Bs={}));var qs;(function(t){t[t.Deprecated=1]="Deprecated"})(qs||(qs={}));var $s;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})($s||($s={}));var Hs;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Hs||(Hs={}));var Gs;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Gs||(Gs={}));var Js;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Js||(Js={}));var Ys;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Ys||(Ys={}));var Xs;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Xs||(Xs={}));var Ks;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.autoClosingBrackets=5]="autoClosingBrackets",t[t.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=7]="autoClosingDelete",t[t.autoClosingOvertype=8]="autoClosingOvertype",t[t.autoClosingQuotes=9]="autoClosingQuotes",t[t.autoIndent=10]="autoIndent",t[t.automaticLayout=11]="automaticLayout",t[t.autoSurround=12]="autoSurround",t[t.bracketPairColorization=13]="bracketPairColorization",t[t.guides=14]="guides",t[t.codeLens=15]="codeLens",t[t.codeLensFontFamily=16]="codeLensFontFamily",t[t.codeLensFontSize=17]="codeLensFontSize",t[t.colorDecorators=18]="colorDecorators",t[t.colorDecoratorsLimit=19]="colorDecoratorsLimit",t[t.columnSelection=20]="columnSelection",t[t.comments=21]="comments",t[t.contextmenu=22]="contextmenu",t[t.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",t[t.cursorBlinking=24]="cursorBlinking",t[t.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",t[t.cursorStyle=26]="cursorStyle",t[t.cursorSurroundingLines=27]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",t[t.cursorWidth=29]="cursorWidth",t[t.disableLayerHinting=30]="disableLayerHinting",t[t.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",t[t.domReadOnly=32]="domReadOnly",t[t.dragAndDrop=33]="dragAndDrop",t[t.dropIntoEditor=34]="dropIntoEditor",t[t.emptySelectionClipboard=35]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",t[t.extraEditorClassName=37]="extraEditorClassName",t[t.fastScrollSensitivity=38]="fastScrollSensitivity",t[t.find=39]="find",t[t.fixedOverflowWidgets=40]="fixedOverflowWidgets",t[t.folding=41]="folding",t[t.foldingStrategy=42]="foldingStrategy",t[t.foldingHighlight=43]="foldingHighlight",t[t.foldingImportsByDefault=44]="foldingImportsByDefault",t[t.foldingMaximumRegions=45]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=47]="fontFamily",t[t.fontInfo=48]="fontInfo",t[t.fontLigatures=49]="fontLigatures",t[t.fontSize=50]="fontSize",t[t.fontWeight=51]="fontWeight",t[t.fontVariations=52]="fontVariations",t[t.formatOnPaste=53]="formatOnPaste",t[t.formatOnType=54]="formatOnType",t[t.glyphMargin=55]="glyphMargin",t[t.gotoLocation=56]="gotoLocation",t[t.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",t[t.hover=58]="hover",t[t.inDiffEditor=59]="inDiffEditor",t[t.inlineSuggest=60]="inlineSuggest",t[t.letterSpacing=61]="letterSpacing",t[t.lightbulb=62]="lightbulb",t[t.lineDecorationsWidth=63]="lineDecorationsWidth",t[t.lineHeight=64]="lineHeight",t[t.lineNumbers=65]="lineNumbers",t[t.lineNumbersMinChars=66]="lineNumbersMinChars",t[t.linkedEditing=67]="linkedEditing",t[t.links=68]="links",t[t.matchBrackets=69]="matchBrackets",t[t.minimap=70]="minimap",t[t.mouseStyle=71]="mouseStyle",t[t.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=73]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",t[t.multiCursorModifier=75]="multiCursorModifier",t[t.multiCursorPaste=76]="multiCursorPaste",t[t.multiCursorLimit=77]="multiCursorLimit",t[t.occurrencesHighlight=78]="occurrencesHighlight",t[t.overviewRulerBorder=79]="overviewRulerBorder",t[t.overviewRulerLanes=80]="overviewRulerLanes",t[t.padding=81]="padding",t[t.pasteAs=82]="pasteAs",t[t.parameterHints=83]="parameterHints",t[t.peekWidgetDefaultFocus=84]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=85]="definitionLinkOpensInPeek",t[t.quickSuggestions=86]="quickSuggestions",t[t.quickSuggestionsDelay=87]="quickSuggestionsDelay",t[t.readOnly=88]="readOnly",t[t.readOnlyMessage=89]="readOnlyMessage",t[t.renameOnType=90]="renameOnType",t[t.renderControlCharacters=91]="renderControlCharacters",t[t.renderFinalNewline=92]="renderFinalNewline",t[t.renderLineHighlight=93]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=94]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=95]="renderValidationDecorations",t[t.renderWhitespace=96]="renderWhitespace",t[t.revealHorizontalRightPadding=97]="revealHorizontalRightPadding",t[t.roundedSelection=98]="roundedSelection",t[t.rulers=99]="rulers",t[t.scrollbar=100]="scrollbar",t[t.scrollBeyondLastColumn=101]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=102]="scrollBeyondLastLine",t[t.scrollPredominantAxis=103]="scrollPredominantAxis",t[t.selectionClipboard=104]="selectionClipboard",t[t.selectionHighlight=105]="selectionHighlight",t[t.selectOnLineNumbers=106]="selectOnLineNumbers",t[t.showFoldingControls=107]="showFoldingControls",t[t.showUnused=108]="showUnused",t[t.snippetSuggestions=109]="snippetSuggestions",t[t.smartSelect=110]="smartSelect",t[t.smoothScrolling=111]="smoothScrolling",t[t.stickyScroll=112]="stickyScroll",t[t.stickyTabStops=113]="stickyTabStops",t[t.stopRenderingLineAfter=114]="stopRenderingLineAfter",t[t.suggest=115]="suggest",t[t.suggestFontSize=116]="suggestFontSize",t[t.suggestLineHeight=117]="suggestLineHeight",t[t.suggestOnTriggerCharacters=118]="suggestOnTriggerCharacters",t[t.suggestSelection=119]="suggestSelection",t[t.tabCompletion=120]="tabCompletion",t[t.tabIndex=121]="tabIndex",t[t.unicodeHighlighting=122]="unicodeHighlighting",t[t.unusualLineTerminators=123]="unusualLineTerminators",t[t.useShadowDOM=124]="useShadowDOM",t[t.useTabStops=125]="useTabStops",t[t.wordBreak=126]="wordBreak",t[t.wordSeparators=127]="wordSeparators",t[t.wordWrap=128]="wordWrap",t[t.wordWrapBreakAfterCharacters=129]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=130]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=131]="wordWrapColumn",t[t.wordWrapOverride1=132]="wordWrapOverride1",t[t.wordWrapOverride2=133]="wordWrapOverride2",t[t.wrappingIndent=134]="wrappingIndent",t[t.wrappingStrategy=135]="wrappingStrategy",t[t.showDeprecated=136]="showDeprecated",t[t.inlayHints=137]="inlayHints",t[t.editorClassName=138]="editorClassName",t[t.pixelRatio=139]="pixelRatio",t[t.tabFocusMode=140]="tabFocusMode",t[t.layoutInfo=141]="layoutInfo",t[t.wrappingInfo=142]="wrappingInfo",t[t.defaultColorDecorators=143]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=144]="colorDecoratorsActivatedOn"})(Ks||(Ks={}));var Qs;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Qs||(Qs={}));var Zs;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Zs||(Zs={}));var ea;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(ea||(ea={}));var ta;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(ta||(ta={}));var na;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(na||(na={}));var ra;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ra||(ra={}));var ia;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(ia||(ia={}));var qr;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(qr||(qr={}));var $r;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})($r||($r={}));var Hr;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Hr||(Hr={}));var sa;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(sa||(sa={}));var aa;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(aa||(aa={}));var oa;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(oa||(oa={}));var la;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(la||(la={}));var ca;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(ca||(ca={}));var ha;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(ha||(ha={}));var da;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(da||(da={}));var ua;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(ua||(ua={}));var pa;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(pa||(pa={}));var Gr;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(Gr||(Gr={}));var ma;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ma||(ma={}));var fa;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(fa||(fa={}));var ga;(function(t){t[t.Deprecated=1]="Deprecated"})(ga||(ga={}));var ba;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(ba||(ba={}));var va;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(va||(va={}));var ya;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ya||(ya={}));var wa;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(wa||(wa={}));class on{static chord(e,n){return fh(e,n)}}on.CtrlCmd=2048,on.Shift=1024,on.Alt=512,on.WinCtrl=256;function yh(){return{editor:void 0,languages:void 0,CancellationTokenSource:dh,Emitter:Ze,KeyCode:qr,KeyMod:on,Position:tt,Range:We,Selection:Ie,SelectionDirection:Gr,MarkerSeverity:$r,MarkerTag:Hr,Uri:Mr,Token:vh}}var xa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(xa||(xa={}));var Sa;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Sa||(Sa={}));var _a;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(_a||(_a={}));var Ca;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Ca||(Ca={}));function wh(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r);if(t.get(a)!==0)return!0}return!1}function xh(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r+i-1);if(t.get(a)!==0)return!0}return!1}function Sh(t,e,n,r,i){return wh(t,e,n,r,i)&&xh(t,e,n,r,i)}class _h{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Cc(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Sh(this._wordSeparators,e,n,i,s))return r}while(r);return null}}function Ch(t,e="Unreachable"){throw new Error(e)}function Jr(t){if(!t()){debugger;t(),he(new Fe("Assertion Failed"))}}function ka(t,e){let n=0;for(;n0){const N=S.charCodeAt(I-1);Pr(N)&&I--}if(M+1=N){u=!0;break e}h.push(new We(y,I+1,y,M+1))}}while(f)}return{ranges:h,hasMore:u,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:v}}static computeUnicodeHighlightReason(e,n){const r=new Ea(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=Oe.getLocales().filter(l=>!Oe.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Eh(t,e){return`[${vc(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class Ea{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Oe.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of ut.codePoints)Ra(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=Ec(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!ut.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Ra(e)&&ut.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Ra(t){return t===" "||t===` `||t===" "}class ce{static fromRange(e){return new ce(e.startLineNumber,e.endLineNumber)}static subtract(e,n){return n?e.startLineNumber=o.startLineNumber?a=new ce(a.startLineNumber,Math.max(a.endLineNumberExclusive,o.endLineNumberExclusive)):(r.push(a),a=o)}return a!==null&&r.push(a),r}static ofLength(e,n){return new ce(e,e+n)}static deserialize(e){return new ce(e[0],e[1])}constructor(e,n){if(e>n)throw new Fe(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var e;return new yt(this.modifiedRange,this.originalRange,(e=this.innerChanges)===null||e===void 0?void 0:e.map(n=>n.flip()))}}class Gn{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Gn(this.modifiedRange,this.originalRange)}}class Yr{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Yr(this.modifiedRange,this.originalRange)}}class Xr{constructor(e,n){this.lineRangeMapping=e,this.changes=n}flip(){return new Xr(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}}const Rh=3;class Dh{computeDiff(e,n,r){var i;const a=new Ph(e,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const c of a.changes){let h;c.originalEndLineNumber===0?h=new ce(c.originalStartLineNumber+1,c.originalStartLineNumber+1):h=new ce(c.originalStartLineNumber,c.originalEndLineNumber+1);let u;c.modifiedEndLineNumber===0?u=new ce(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):u=new ce(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let f=new yt(h,u,(i=c.charChanges)===null||i===void 0?void 0:i.map(m=>new Gn(new We(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new We(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modifiedRange.endLineNumberExclusive===f.modifiedRange.startLineNumber||l.originalRange.endLineNumberExclusive===f.originalRange.startLineNumber)&&(f=new yt(l.originalRange.join(f.originalRange),l.modifiedRange.join(f.modifiedRange),l.innerChanges&&f.innerChanges?l.innerChanges.concat(f.innerChanges):void 0),o.pop()),o.push(f),l=f}return Jr(()=>ka(o,(c,h)=>h.originalRange.startLineNumber-c.originalRange.endLineNumberExclusive===h.modifiedRange.startLineNumber-c.modifiedRange.endLineNumberExclusive&&c.originalRange.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class jt{constructor(e,n,r,i,s,a,o,l){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(e,n,r){const i=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1),l=r.getStartLineNumber(e.modifiedStart),c=r.getStartColumn(e.modifiedStart),h=r.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=r.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new jt(i,s,a,o,l,c,h,u)}}function Ah(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let r=1,i=t.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&g.getElements().length>0){let v=Fa(m,g,s,!0).changes;o&&(v=Ah(v)),f=[];for(let y=0,w=v.length;y1&&v>1;){const y=f.charCodeAt(g-2),w=m.charCodeAt(v-2);if(y!==w)break;g--,v--}(g>1||v>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,v)}{let g=Qr(f,1),v=Qr(m,1);const y=f.length+1,w=m.length+1;for(;g!0;const e=Date.now();return()=>Date.now()-en))return new ne(e,n)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new Fe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new ne(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}join(e){return new ne(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),r=Math.min(this.endExclusive,e.endExclusive);if(n<=r)return new ne(n,r)}}class st{static trivial(e,n){return new st([new Ne(new ne(0,e.length),new ne(0,n.length))],!1)}static trivialTimedOut(e,n){return new st([new Ne(new ne(0,e.length),new ne(0,n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class Ne{constructor(e,n){this.seq1Range=e,this.seq2Range=n}reverse(){return new Ne(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Ne(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new Ne(this.seq1Range.delta(e),this.seq2Range.delta(e))}}class cn{isValid(){return!0}}cn.instance=new cn;class Nh{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new Fe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&v>0&&a.get(g-1,v-1)===3&&(S+=o.get(g-1,v-1)),S+=i?i(g,v):1):S=-1;const C=Math.max(y,w,S);if(C===S){const I=g>0&&v>0?o.get(g-1,v-1):0;o.set(g,v,I+1),a.set(g,v,3)}else C===y?(o.set(g,v,0),a.set(g,v,1)):C===w&&(o.set(g,v,0),a.set(g,v,2));s.set(g,v,C)}const l=[];let c=e.length,h=n.length;function u(g,v){(g+1!==c||v+1!==h)&&l.push(new Ne(new ne(g+1,c),new ne(v+1,h))),c=g,h=v}let f=e.length-1,m=n.length-1;for(;f>=0&&m>=0;)a.get(f,m)===3?(u(f,m),f--,m--):a.get(f,m)===1?f--:m--;return u(-1,-1),l.reverse(),new st(l,!1)}}function Na(t,e,n){let r=n;return r=zh(t,e,r),r=Lh(t,e,r),r}function Ih(t,e,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new Ne(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function zh(t,e,n){const r=[];n.length>0&&r.push(n[0]);for(let s=1;s0&&(o=o.delta(c))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Lh(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,s=n[r],a=r+1=r.start&&t.seq2Range.start-a>=i.start&&n.getElement(t.seq2Range.start-a)===n.getElement(t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;t.seq1Range.start+oc&&(c=g,l=h)}return t.delta(l)}class Th{compute(e,n,r=cn.instance){if(e.length===0||n.length===0)return st.trivial(e,n);function i(m,g){for(;me.length||S>n.length)continue;const C=i(w,S);a.set(l,C);const I=w===v?o.get(l+1):o.get(l-1);if(o.set(l,C!==w?new Ia(I,w,S,C-w):I),a.get(l)===e.length&&a.get(l)-l===n.length)break e}}let c=o.get(l);const h=[];let u=e.length,f=n.length;for(;;){const m=c?c.x+c.length:0,g=c?c.y+c.length:0;if((m!==u||g!==f)&&h.push(new Ne(new ne(m,u),new ne(g,f))),!c)break;u=c.x,f=c.y,c=c.prev}return h.reverse(),new st(h,!1)}}class Ia{constructor(e,n,r,i){this.prev=e,this.x=n,this.y=r,this.length=i}}class Oh{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[e]=n}}}class Wh{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class Uh{constructor(){this.dynamicProgrammingDiffing=new Mh,this.myersDiffingAlgorithm=new Th}computeDiff(e,n,r){const i=r.maxComputationTimeMs===0?cn.instance:new Nh(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(M){let U=a.get(M);return U===void 0&&(U=a.size,a.set(M,U)),U}const l=e.map(M=>o(M.trim())),c=n.map(M=>o(M.trim())),h=new La(l,e),u=new La(c,n),f=(()=>h.length+u.length<1500?this.dynamicProgrammingDiffing.compute(h,u,i,(M,U)=>e[M]===n[U]?n[U].length===0?.1:1+Math.log(1+n[U].length):.99):this.myersDiffingAlgorithm.compute(h,u))();let m=f.diffs,g=f.hitTimeout;m=Na(h,u,m);const v=[],y=M=>{if(s)for(let U=0;UM.seq1Range.start-w===M.seq2Range.start-S);const U=M.seq1Range.start-w;y(U),w=M.seq1Range.endExclusive,S=M.seq2Range.endExclusive;const q=this.refineDiff(e,n,M,i,s);q.hitTimeout&&(g=!0);for(const W of q.mappings)v.push(W)}y(e.length-w);const C=za(v,e,n),I=[];if(r.computeMoves){const M=C.filter(q=>q.modifiedRange.isEmpty&&q.originalRange.length>=3).map(q=>new ja(q.originalRange,e)),U=new Set(C.filter(q=>q.originalRange.isEmpty&&q.modifiedRange.length>=3).map(q=>new ja(q.modifiedRange,n)));for(const q of M){let W=-1,N;for(const D of U){const R=q.computeSimilarity(D);R>W&&(W=R,N=D)}if(W>.9&&N){const D=this.refineDiff(e,n,new Ne(new ne(q.range.startLineNumber-1,q.range.endLineNumberExclusive-1),new ne(N.range.startLineNumber-1,N.range.endLineNumberExclusive-1)),i,s),R=za(D.mappings,e,n,!0);U.delete(N),I.push(new Xr(new Yr(q.range,N.range),R))}}}return new Da(C,I,g)}refineDiff(e,n,r,i,s){const a=new Oa(e,r.seq1Range,s),o=new Oa(n,r.seq2Range,s),l=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let c=l.diffs;return c=Na(a,o,c),c=Vh(a,o,c),c=Ih(a,o,c),{mappings:c.map(u=>new Gn(a.translateRange(u.seq1Range),o.translateRange(u.seq2Range))),hitTimeout:l.hitTimeout}}}function Vh(t,e,n){const r=[];let i;function s(){if(!i)return;const o=i.s1Range.length-i.deleted;i.s2Range.length-i.added,Math.max(i.deleted,i.added)+(i.count-1)>o&&r.push(new Ne(i.s1Range,i.s2Range)),i=void 0}for(const o of n){let l=function(m,g){var v,y,w,S;if(!i||!i.s1Range.containsRange(m)||!i.s2Range.containsRange(g))if(i&&!(i.s1Range.endExclusive0||e.length>0;){const r=t[0],i=e[0];let s;r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function za(t,e,n,r=!1){const i=[];for(const s of qh(t.map(a=>Bh(a,e,n)),(a,o)=>a.originalRange.overlapOrTouch(o.originalRange)||a.modifiedRange.overlapOrTouch(o.modifiedRange))){const a=s[0],o=s[s.length-1];i.push(new yt(a.originalRange.join(o.originalRange),a.modifiedRange.join(o.modifiedRange),s.map(l=>l.innerChanges[0])))}return Jr(()=>!r&&i.length>0&&i[0].originalRange.startLineNumber!==i[0].modifiedRange.startLineNumber?!1:ka(i,(s,a)=>a.originalRange.startLineNumber-s.originalRange.endLineNumberExclusive===a.modifiedRange.startLineNumber-s.modifiedRange.endLineNumberExclusive&&s.originalRange.endLineNumberExclusive=n[t.modifiedRange.startLineNumber-1].length&&t.originalRange.startColumn-1>=e[t.originalRange.startLineNumber-1].length&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+i&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+i&&(r=1);const s=new ce(t.originalRange.startLineNumber+r,t.originalRange.endLineNumber+1+i),a=new ce(t.modifiedRange.startLineNumber+r,t.modifiedRange.endLineNumber+1+i);return new yt(s,a,[t])}function*qh(t,e){let n,r;for(const i of t)r!==void 0&&e(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}class La{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Ta(this.lines[e-1]),r=e===this.lines.length?0:Ta(this.lines[e]);return 1e3-(n+r)}}function Ta(t){let e=0;for(;e0&&n.endExclusive>=e.length&&(n=new ne(n.start-1,n.endExclusive),i=!0),this.lineRange=n;for(let s=this.lineRange.start;sString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Ua(e>0?this.elements[e-1]:-1),r=Ua(ee?r=s:n=s+1}const i=n===0?0:this.firstCharOffsetByLineMinusOne[n-1];return new tt(this.lineRange.start+n+1,e-i+1+this.offsetByLine[n])}translateRange(e){return We.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!ei(this.elements[e]))return;let n=e;for(;n>0&&ei(this.elements[n-1]);)n--;let r=e;for(;r=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}const $h={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Wa(t){return $h[t]}function Ua(t){return t===10?7:t===13?6:Hh(t)?5:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:4}function Hh(t){return t===32||t===9}const ti=new Map;function Va(t){let e=ti.get(t);return e===void 0&&(e=ti.size,ti.set(t,e)),e}class ja{constructor(e,n){this.range=e,this.lines=n,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;inew Dh,getAdvanced:()=>new Uh};function wt(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class be{constructor(e,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=wt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Ue{constructor(e,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=wt(Math.max(Math.min(1,n),0),3),this.l=wt(Math.max(Math.min(1,r),0),3),this.a=wt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=e.a,a=Math.max(n,r,i),o=Math.min(n,r,i);let l=0,c=0;const h=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),a){case n:l=(r-i)/u+(r1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}static toRGBA(e){const n=e.h/360,{s:r,l:i,a:s}=e;let a,o,l;if(r===0)a=o=l=i;else{const c=i<.5?i*(1+r):i+r-i*r,h=2*i-c;a=Ue._hue2rgb(h,c,n+1/3),o=Ue._hue2rgb(h,c,n),l=Ue._hue2rgb(h,c,n-1/3)}return new be(Math.round(a*255),Math.round(o*255),Math.round(l*255),s)}}class Bt{constructor(e,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=wt(Math.max(Math.min(1,n),0),3),this.v=wt(Math.max(Math.min(1,r),0),3),this.a=wt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=s-a,l=s===0?0:o/s;let c;return o===0?c=0:s===n?c=((r-i)/o%6+6)%6:s===r?c=(i-n)/o+2:c=(n-r)/o+4,new Bt(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:n,s:r,v:i,a:s}=e,a=i*r,o=a*(1-Math.abs(n/60%2-1)),l=i-a;let[c,h,u]=[0,0,0];return n<60?(c=a,h=o):n<120?(c=o,h=a):n<180?(h=a,u=o):n<240?(h=o,u=a):n<300?(c=o,u=a):n<=360&&(c=a,u=o),c=Math.round((c+l)*255),h=Math.round((h+l)*255),u=Math.round((u+l)*255),new be(c,h,u,s)}}let pe=class He{static fromHex(e){return He.Format.CSS.parseHex(e)||He.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Ue.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Bt.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof be)this.rgba=e;else if(e instanceof Ue)this._hsla=e,this.rgba=Ue.toRGBA(e);else if(e instanceof Bt)this._hsva=e,this.rgba=Bt.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&be.equals(this.rgba,e.rgba)&&Ue.equals(this.hsla,e.hsla)&&Bt.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=He._relativeLuminanceForComponent(this.rgba.r),n=He._relativeLuminanceForComponent(this.rgba.g),r=He._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*n+.0722*r;return wt(i,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r}isDarkerThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],o=s[2];if(!o)continue;let l;if(a==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=$a(hn(t,i),dn(o,c),!1)}else if(a==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=$a(hn(t,i),dn(o,c),!0)}else if(a==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=Ha(hn(t,i),dn(o,c),!1)}else if(a==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Ha(hn(t,i),dn(o,c),!0)}else a==="#"&&(l=Gh(hn(t,i),a+o));l&&e.push(l)}return e}function Yh(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Jh(t)}var xt=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,e||[])).next())})};class Xh extends th{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let r=0;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:e}}class Et{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}acceptNewModel(e){this._models[e.url]=new Xh(Mr.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,n,r){return xt(this,void 0,void 0,function*(){const i=this._getModel(e);return i?kh.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,n,r,i){return xt(this,void 0,void 0,function*(){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:Et.computeDiff(s,a,r,i)})}static computeDiff(e,n,r,i){const s=i==="advanced"?Ba.getAdvanced():Ba.getLegacy(),a=e.getLinesContent(),o=n.getLinesContent(),l=s.computeDiff(a,o,r),c=l.changes.length>0?!1:this._modelsAreIdentical(e,n);function h(u){return u.map(f=>{var m;return[f.originalRange.startLineNumber,f.originalRange.endLineNumberExclusive,f.modifiedRange.startLineNumber,f.modifiedRange.endLineNumberExclusive,(m=f.innerChanges)===null||m===void 0?void 0:m.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:c,quitEarly:l.hitTimeout,changes:h(l.changes),moves:l.moves.map(u=>[u.lineRangeMapping.originalRange.startLineNumber,u.lineRangeMapping.originalRange.endLineNumberExclusive,u.lineRangeMapping.modifiedRange.startLineNumber,u.lineRangeMapping.modifiedRange.endLineNumberExclusive,h(u.changes)])}}static _modelsAreIdentical(e,n){const r=e.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=e.getLineContent(s),o=n.getLineContent(s);if(a!==o)return!1}return!0}computeMoreMinimalEdits(e,n,r){return xt(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,l)=>{if(o.range&&l.range)return We.compareRangesUsingStarts(o.range,l.range);const c=o.range?0:1,h=l.range?0:1;return c-h});for(let{range:o,text:l,eol:c}of n){if(typeof c=="number"&&(a=c),We.isEmpty(o)&&!l)continue;const h=i.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,i.eol),h===l)continue;if(Math.max(l.length,h.length)>Et._diffLimit){s.push({range:o,text:l});continue}const u=Lc(h,l,r),f=i.offsetAt(We.lift(o).getStartPosition());for(const m of u){const g=i.positionAt(f+m.originalStart),v=i.positionAt(f+m.originalStart+m.originalLength),y={text:l.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:v.lineNumber,endColumn:v.column}};i.getValueInRange(y.range)!==y.text&&s.push(y)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeLinks(e){return xt(this,void 0,void 0,function*(){const n=this._getModel(e);return n?hh(n):null})}computeDefaultDocumentColors(e){return xt(this,void 0,void 0,function*(){const n=this._getModel(e);return n?Yh(n):null})}textualSuggest(e,n,r,i){return xt(this,void 0,void 0,function*(){const s=new On,a=new RegExp(r,i),o=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const h of c.words(a))if(!(h===n||!isNaN(Number(h)))&&(o.add(h),o.size>Et._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}})}computeWordRanges(e,n,r,i){return xt(this,void 0,void 0,function*(){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let l=n.startLineNumber;lthis._host.fhr(o,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(kr(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}Et._diffLimit=1e5,Et._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=yh());let ri=!1;function Ga(t){if(ri)return;ri=!0;const e=new Ic(n=>{globalThis.postMessage(n)},n=>new Et(n,t));globalThis.onmessage=n=>{e.onmessage(n.data)}}globalThis.onmessage=t=>{ri||Ga(null)};/*!----------------------------------------------------------------------------- diff --git a/packages/ide/example/assets/editor.worker-1c052ce0.js b/packages/ide/example/assets/editor.worker-3ea457c4.js similarity index 49% rename from packages/ide/example/assets/editor.worker-1c052ce0.js rename to packages/ide/example/assets/editor.worker-3ea457c4.js index 9d5b99d10..077461f18 100644 --- a/packages/ide/example/assets/editor.worker-1c052ce0.js +++ b/packages/ide/example/assets/editor.worker-3ea457c4.js @@ -2,9 +2,9 @@ `+t.stack):new Error(t.message+` -`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Rs=new As;function Vt(e){Ps(e)||Rs.onUnexpectedError(e)}function Ot(e){if(e instanceof Error){const{name:t,message:n}=e,s=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:s,noTelemetry:Se.isErrorNoTelemetry(e)}}return e}const tt="Canceled";function Ps(e){return e instanceof Es?!0:e instanceof Error&&e.name===tt&&e.message===tt}class Es extends Error{constructor(){super(tt),this.name=this.message}}class Se extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Se)return t;const n=new Se;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class xe extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,xe.prototype)}}function Ds(e){const t=this;let n=!1,s;return function(){return n||(n=!0,s=e.apply(t,arguments)),s}}var He;(function(e){function t(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function s(){return n}e.empty=s;function*r(_){yield _}e.single=r;function i(_){return t(_)?_:r(_)}e.wrap=i;function o(_){return _||n}e.from=o;function l(_){return!_||_[Symbol.iterator]().next().done===!0}e.isEmpty=l;function c(_){return _[Symbol.iterator]().next().value}e.first=c;function u(_,N){for(const x of _)if(N(x))return!0;return!1}e.some=u;function m(_,N){for(const x of _)if(N(x))return x}e.find=m;function*h(_,N){for(const x of _)N(x)&&(yield x)}e.filter=h;function*f(_,N){let x=0;for(const y of _)yield N(y,x++)}e.map=f;function*d(..._){for(const N of _)for(const x of N)yield x}e.concat=d;function g(_,N,x){let y=x;for(const A of _)y=N(y,A);return y}e.reduce=g;function*p(_,N,x=_.length){for(N<0&&(N+=_.length),x<0?x+=_.length:x>_.length&&(x=_.length);N1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function ys(...e){return ke(()=>Wt(e))}function ke(e){return{dispose:Ds(()=>{e()})}}class _e{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Wt(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?_e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}_e.DISABLE_DISPOSED_WARNING=!1;class Fe{constructor(){this._store=new _e,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Fe.None=Object.freeze({dispose(){}});class I{constructor(t){this.element=t,this.next=I.Undefined,this.prev=I.Undefined}}I.Undefined=new I(void 0);class Ms{constructor(){this._first=I.Undefined,this._last=I.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===I.Undefined}clear(){let t=this._first;for(;t!==I.Undefined;){const n=t.next;t.prev=I.Undefined,t.next=I.Undefined,t=n}this._first=I.Undefined,this._last=I.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const s=new I(t);if(this._first===I.Undefined)this._first=s,this._last=s;else if(n){const i=this._last;this._last=s,s.prev=i,i.next=s}else{const i=this._first;this._first=s,s.next=i,i.prev=s}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(s))}}shift(){if(this._first!==I.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==I.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==I.Undefined&&t.next!==I.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===I.Undefined&&t.next===I.Undefined?(this._first=I.Undefined,this._last=I.Undefined):t.next===I.Undefined?(this._last=this._last.prev,this._last.next=I.Undefined):t.prev===I.Undefined&&(this._first=this._first.next,this._first.prev=I.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==I.Undefined;)yield t.element,t=t.next}}const ks=globalThis.performance&&typeof globalThis.performance.now=="function";class je{static create(t){return new je(t)}constructor(t){this._now=ks&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var nt;(function(e){e.None=()=>Fe.None;function t(C,S){return m(C,()=>{},0,void 0,!0,void 0,S)}e.defer=t;function n(C){return(S,v=null,b)=>{let R=!1,F;return F=C(W=>{if(!R)return F?F.dispose():R=!0,S.call(v,W)},null,b),R&&F.dispose(),F}}e.once=n;function s(C,S,v){return u((b,R=null,F)=>C(W=>b.call(R,S(W)),null,F),v)}e.map=s;function r(C,S,v){return u((b,R=null,F)=>C(W=>{S(W),b.call(R,W)},null,F),v)}e.forEach=r;function i(C,S,v){return u((b,R=null,F)=>C(W=>S(W)&&b.call(R,W),null,F),v)}e.filter=i;function o(C){return C}e.signal=o;function l(...C){return(S,v=null,b)=>ys(...C.map(R=>R(F=>S.call(v,F),null,b)))}e.any=l;function c(C,S,v,b){let R=v;return s(C,F=>(R=S(R,F),R),b)}e.reduce=c;function u(C,S){let v;const b={onWillAddFirstListener(){v=C(R.fire,R)},onDidRemoveLastListener(){v==null||v.dispose()}},R=new se(b);return S==null||S.add(R),R.event}function m(C,S,v=100,b=!1,R=!1,F,W){let Q,ye,Me,Ke=0,ve;const Di={leakWarningThreshold:F,onWillAddFirstListener(){Q=C(yi=>{Ke++,ye=S(ye,yi),b&&!Me&&(et.fire(ye),ye=void 0),ve=()=>{const Mi=ye;ye=void 0,Me=void 0,(!b||Ke>1)&&et.fire(Mi),Ke=0},typeof v=="number"?(clearTimeout(Me),Me=setTimeout(ve,v)):Me===void 0&&(Me=0,queueMicrotask(ve))})},onWillRemoveListener(){R&&Ke>0&&(ve==null||ve())},onDidRemoveLastListener(){ve=void 0,Q.dispose()}},et=new se(Di);return W==null||W.add(et),et.event}e.debounce=m;function h(C,S=0,v){return e.debounce(C,(b,R)=>b?(b.push(R),b):[R],S,void 0,!0,void 0,v)}e.accumulate=h;function f(C,S=(b,R)=>b===R,v){let b=!0,R;return i(C,F=>{const W=b||!S(F,R);return b=!1,R=F,W},v)}e.latch=f;function d(C,S,v){return[e.filter(C,S,v),e.filter(C,b=>!S(b),v)]}e.split=d;function g(C,S=!1,v=[]){let b=v.slice(),R=C(Q=>{b?b.push(Q):W.fire(Q)});const F=()=>{b==null||b.forEach(Q=>W.fire(Q)),b=null},W=new se({onWillAddFirstListener(){R||(R=C(Q=>W.fire(Q)))},onDidAddFirstListener(){b&&(S?setTimeout(F):F())},onDidRemoveLastListener(){R&&R.dispose(),R=null}});return W.event}e.buffer=g;class p{constructor(S){this.event=S,this.disposables=new _e}map(S){return new p(s(this.event,S,this.disposables))}forEach(S){return new p(r(this.event,S,this.disposables))}filter(S){return new p(i(this.event,S,this.disposables))}reduce(S,v){return new p(c(this.event,S,v,this.disposables))}latch(){return new p(f(this.event,void 0,this.disposables))}debounce(S,v=100,b=!1,R=!1,F){return new p(m(this.event,S,v,b,R,F,this.disposables))}on(S,v,b){return this.event(S,v,b)}once(S,v,b){return n(this.event)(S,v,b)}dispose(){this.disposables.dispose()}}function w(C){return new p(C)}e.chain=w;function _(C,S,v=b=>b){const b=(...Q)=>W.fire(v(...Q)),R=()=>C.on(S,b),F=()=>C.removeListener(S,b),W=new se({onWillAddFirstListener:R,onDidRemoveLastListener:F});return W.event}e.fromNodeEventEmitter=_;function N(C,S,v=b=>b){const b=(...Q)=>W.fire(v(...Q)),R=()=>C.addEventListener(S,b),F=()=>C.removeEventListener(S,b),W=new se({onWillAddFirstListener:R,onDidRemoveLastListener:F});return W.event}e.fromDOMEventEmitter=N;function x(C){return new Promise(S=>n(C)(S))}e.toPromise=x;function y(C,S){return S(void 0),C(v=>S(v))}e.runAndSubscribe=y;function A(C,S){let v=null;function b(F){v==null||v.dispose(),v=new _e,S(F,v)}b(void 0);const R=C(F=>b(F));return ke(()=>{R.dispose(),v==null||v.dispose()})}e.runAndSubscribeWithStore=A;class M{constructor(S,v){this._observable=S,this._counter=0,this._hasChanged=!1;const b={onWillAddFirstListener:()=>{S.addObserver(this)},onDidRemoveLastListener:()=>{S.removeObserver(this)}};this.emitter=new se(b),v&&v.add(this.emitter)}beginUpdate(S){this._counter++}handlePossibleChange(S){}handleChange(S,v){this._hasChanged=!0}endUpdate(S){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function E(C,S){return new M(C,S).emitter.event}e.fromObservable=E;function P(C){return S=>{let v=0,b=!1;const R={beginUpdate(){v++},endUpdate(){v--,v===0&&(C.reportChanges(),b&&(b=!1,S()))},handlePossibleChange(){},handleChange(){b=!0}};return C.addObserver(R),{dispose(){C.removeObserver(R)}}}}e.fromObservableLight=P})(nt||(nt={}));class Ce{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Ce._idPool++}`,Ce.all.add(this)}start(t){this._stopWatch=new je,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}Ce.all=new Set,Ce._idPool=0;let Fs=-1;class Ts{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){const s=this.threshold;if(s<=0||n{const i=this._stacks.get(t.value)||0;this._stacks.set(t.value,i-1)}}}class st{static create(){var t;return new st((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(` +`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Rs=new As;function Vt(e){Es(e)||Rs.onUnexpectedError(e)}function Ot(e){if(e instanceof Error){const{name:t,message:n}=e,s=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:s,noTelemetry:Se.isErrorNoTelemetry(e)}}return e}const tt="Canceled";function Es(e){return e instanceof Ps?!0:e instanceof Error&&e.name===tt&&e.message===tt}class Ps extends Error{constructor(){super(tt),this.name=this.message}}class Se extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Se)return t;const n=new Se;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class xe extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,xe.prototype)}}function Ds(e){const t=this;let n=!1,s;return function(){return n||(n=!0,s=e.apply(t,arguments)),s}}var He;(function(e){function t(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function s(){return n}e.empty=s;function*r(_){yield _}e.single=r;function i(_){return t(_)?_:r(_)}e.wrap=i;function o(_){return _||n}e.from=o;function l(_){return!_||_[Symbol.iterator]().next().done===!0}e.isEmpty=l;function c(_){return _[Symbol.iterator]().next().value}e.first=c;function u(_,N){for(const x of _)if(N(x))return!0;return!1}e.some=u;function m(_,N){for(const x of _)if(N(x))return x}e.find=m;function*h(_,N){for(const x of _)N(x)&&(yield x)}e.filter=h;function*f(_,N){let x=0;for(const y of _)yield N(y,x++)}e.map=f;function*d(..._){for(const N of _)for(const x of N)yield x}e.concat=d;function g(_,N,x){let y=x;for(const A of _)y=N(y,A);return y}e.reduce=g;function*p(_,N,x=_.length){for(N<0&&(N+=_.length),x<0?x+=_.length:x>_.length&&(x=_.length);N1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function ys(...e){return ke(()=>Ut(e))}function ke(e){return{dispose:Ds(()=>{e()})}}class _e{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Ut(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?_e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}_e.DISABLE_DISPOSED_WARNING=!1;class Fe{constructor(){this._store=new _e,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Fe.None=Object.freeze({dispose(){}});class I{constructor(t){this.element=t,this.next=I.Undefined,this.prev=I.Undefined}}I.Undefined=new I(void 0);class Ms{constructor(){this._first=I.Undefined,this._last=I.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===I.Undefined}clear(){let t=this._first;for(;t!==I.Undefined;){const n=t.next;t.prev=I.Undefined,t.next=I.Undefined,t=n}this._first=I.Undefined,this._last=I.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const s=new I(t);if(this._first===I.Undefined)this._first=s,this._last=s;else if(n){const i=this._last;this._last=s,s.prev=i,i.next=s}else{const i=this._first;this._first=s,s.next=i,i.prev=s}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(s))}}shift(){if(this._first!==I.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==I.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==I.Undefined&&t.next!==I.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===I.Undefined&&t.next===I.Undefined?(this._first=I.Undefined,this._last=I.Undefined):t.next===I.Undefined?(this._last=this._last.prev,this._last.next=I.Undefined):t.prev===I.Undefined&&(this._first=this._first.next,this._first.prev=I.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==I.Undefined;)yield t.element,t=t.next}}const ks=globalThis.performance&&typeof globalThis.performance.now=="function";class je{static create(t){return new je(t)}constructor(t){this._now=ks&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var nt;(function(e){e.None=()=>Fe.None;function t(C,S){return m(C,()=>{},0,void 0,!0,void 0,S)}e.defer=t;function n(C){return(S,v=null,b)=>{let R=!1,F;return F=C(U=>{if(!R)return F?F.dispose():R=!0,S.call(v,U)},null,b),R&&F.dispose(),F}}e.once=n;function s(C,S,v){return u((b,R=null,F)=>C(U=>b.call(R,S(U)),null,F),v)}e.map=s;function r(C,S,v){return u((b,R=null,F)=>C(U=>{S(U),b.call(R,U)},null,F),v)}e.forEach=r;function i(C,S,v){return u((b,R=null,F)=>C(U=>S(U)&&b.call(R,U),null,F),v)}e.filter=i;function o(C){return C}e.signal=o;function l(...C){return(S,v=null,b)=>ys(...C.map(R=>R(F=>S.call(v,F),null,b)))}e.any=l;function c(C,S,v,b){let R=v;return s(C,F=>(R=S(R,F),R),b)}e.reduce=c;function u(C,S){let v;const b={onWillAddFirstListener(){v=C(R.fire,R)},onDidRemoveLastListener(){v==null||v.dispose()}},R=new se(b);return S==null||S.add(R),R.event}function m(C,S,v=100,b=!1,R=!1,F,U){let Q,ye,Me,Ke=0,ve;const Di={leakWarningThreshold:F,onWillAddFirstListener(){Q=C(yi=>{Ke++,ye=S(ye,yi),b&&!Me&&(et.fire(ye),ye=void 0),ve=()=>{const Mi=ye;ye=void 0,Me=void 0,(!b||Ke>1)&&et.fire(Mi),Ke=0},typeof v=="number"?(clearTimeout(Me),Me=setTimeout(ve,v)):Me===void 0&&(Me=0,queueMicrotask(ve))})},onWillRemoveListener(){R&&Ke>0&&(ve==null||ve())},onDidRemoveLastListener(){ve=void 0,Q.dispose()}},et=new se(Di);return U==null||U.add(et),et.event}e.debounce=m;function h(C,S=0,v){return e.debounce(C,(b,R)=>b?(b.push(R),b):[R],S,void 0,!0,void 0,v)}e.accumulate=h;function f(C,S=(b,R)=>b===R,v){let b=!0,R;return i(C,F=>{const U=b||!S(F,R);return b=!1,R=F,U},v)}e.latch=f;function d(C,S,v){return[e.filter(C,S,v),e.filter(C,b=>!S(b),v)]}e.split=d;function g(C,S=!1,v=[]){let b=v.slice(),R=C(Q=>{b?b.push(Q):U.fire(Q)});const F=()=>{b==null||b.forEach(Q=>U.fire(Q)),b=null},U=new se({onWillAddFirstListener(){R||(R=C(Q=>U.fire(Q)))},onDidAddFirstListener(){b&&(S?setTimeout(F):F())},onDidRemoveLastListener(){R&&R.dispose(),R=null}});return U.event}e.buffer=g;class p{constructor(S){this.event=S,this.disposables=new _e}map(S){return new p(s(this.event,S,this.disposables))}forEach(S){return new p(r(this.event,S,this.disposables))}filter(S){return new p(i(this.event,S,this.disposables))}reduce(S,v){return new p(c(this.event,S,v,this.disposables))}latch(){return new p(f(this.event,void 0,this.disposables))}debounce(S,v=100,b=!1,R=!1,F){return new p(m(this.event,S,v,b,R,F,this.disposables))}on(S,v,b){return this.event(S,v,b)}once(S,v,b){return n(this.event)(S,v,b)}dispose(){this.disposables.dispose()}}function w(C){return new p(C)}e.chain=w;function _(C,S,v=b=>b){const b=(...Q)=>U.fire(v(...Q)),R=()=>C.on(S,b),F=()=>C.removeListener(S,b),U=new se({onWillAddFirstListener:R,onDidRemoveLastListener:F});return U.event}e.fromNodeEventEmitter=_;function N(C,S,v=b=>b){const b=(...Q)=>U.fire(v(...Q)),R=()=>C.addEventListener(S,b),F=()=>C.removeEventListener(S,b),U=new se({onWillAddFirstListener:R,onDidRemoveLastListener:F});return U.event}e.fromDOMEventEmitter=N;function x(C){return new Promise(S=>n(C)(S))}e.toPromise=x;function y(C,S){return S(void 0),C(v=>S(v))}e.runAndSubscribe=y;function A(C,S){let v=null;function b(F){v==null||v.dispose(),v=new _e,S(F,v)}b(void 0);const R=C(F=>b(F));return ke(()=>{R.dispose(),v==null||v.dispose()})}e.runAndSubscribeWithStore=A;class M{constructor(S,v){this._observable=S,this._counter=0,this._hasChanged=!1;const b={onWillAddFirstListener:()=>{S.addObserver(this)},onDidRemoveLastListener:()=>{S.removeObserver(this)}};this.emitter=new se(b),v&&v.add(this.emitter)}beginUpdate(S){this._counter++}handlePossibleChange(S){}handleChange(S,v){this._hasChanged=!0}endUpdate(S){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function P(C,S){return new M(C,S).emitter.event}e.fromObservable=P;function E(C){return S=>{let v=0,b=!1;const R={beginUpdate(){v++},endUpdate(){v--,v===0&&(C.reportChanges(),b&&(b=!1,S()))},handlePossibleChange(){},handleChange(){b=!0}};return C.addObserver(R),{dispose(){C.removeObserver(R)}}}}e.fromObservableLight=E})(nt||(nt={}));class Ce{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Ce._idPool++}`,Ce.all.add(this)}start(t){this._stopWatch=new je,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}Ce.all=new Set,Ce._idPool=0;let Fs=-1;class Ts{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){const s=this.threshold;if(s<=0||n{const i=this._stacks.get(t.value)||0;this._stacks.set(t.value,i-1)}}}class st{static create(){var t;return new st((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class rt{constructor(t){this.value=t}}const Is=2;class se{constructor(t){var n,s,r,i,o;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new Ts((r=(s=this._options)===null||s===void 0?void 0:s.leakWarningThreshold)!==null&&r!==void 0?r:Fs):void 0,this._perfMon=!((i=this._options)===null||i===void 0)&&i._profName?new Ce(this._options._profName):void 0,this._deliveryQueue=(o=this._options)===null||o===void 0?void 0:o.deliveryQueue}dispose(){var t,n,s,r;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(s=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||s===void 0||s.call(n),(r=this._leakageMon)===null||r===void 0||r.dispose())}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,s,r)=>{var i,o,l,c,u;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Fe.None;if(this._disposed)return Fe.None;s&&(n=n.bind(s));const m=new rt(n);let h;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(m.stack=st.create(),h=this._leakageMon.check(m.stack,this._size+1)),this._listeners?this._listeners instanceof rt?((u=this._deliveryQueue)!==null&&u!==void 0||(this._deliveryQueue=new Vs),this._listeners=[this._listeners,m]):this._listeners.push(m):((o=(i=this._options)===null||i===void 0?void 0:i.onWillAddFirstListener)===null||o===void 0||o.call(i,this),this._listeners=m,(c=(l=this._options)===null||l===void 0?void 0:l.onDidAddFirstListener)===null||c===void 0||c.call(l,this)),this._size++;const f=ke(()=>{h==null||h(),this._removeListener(m)});return r instanceof _e?r.add(f):Array.isArray(r)&&r.push(f),f}),this._event}_removeListener(t){var n,s,r,i;if((s=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||s===void 0||s.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(i=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||i===void 0||i.call(r,this),this._size=0;return}const o=this._listeners,l=o.indexOf(t);if(l===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[l]=void 0;const c=this._deliveryQueue.current===this;if(this._size*Is<=o.length){let u=0;for(let m=0;m0}}class Vs{constructor(){this.i=-1,this.end=0}enqueue(t,n,s){this.i=0,this.end=s,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Os(e){return typeof e=="string"}function Ws(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function it(e){const t=[];for(const n of Ws(e))typeof e[n]=="function"&&t.push(n);return t}function Us(e,t){const n=r=>function(){const i=Array.prototype.slice.call(arguments,0);return t(r,i)},s={};for(const r of e)s[r]=n(r);return s}let Bs=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Hs(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(s,r)=>{const i=r[0],o=t[i];let l=s;return typeof o=="string"?l=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(l=String(o)),l}),Bs&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function js(e,t,...n){return Hs(t,n)}function Ti(e){}var at;const Ne="en";let ot=!1,lt=!1,ut=!1,Ut=!1,qe,ct=Ne,Bt=Ne,qs,ee;const te=typeof self=="object"?self:typeof global=="object"?global:{};let q;typeof te.vscode!="undefined"&&typeof te.vscode.process!="undefined"?q=te.vscode.process:typeof process!="undefined"&&(q=process);const $s=typeof((at=q==null?void 0:q.versions)===null||at===void 0?void 0:at.electron)=="string"&&(q==null?void 0:q.type)==="renderer";if(typeof navigator=="object"&&!$s)ee=navigator.userAgent,ot=ee.indexOf("Windows")>=0,lt=ee.indexOf("Macintosh")>=0,(ee.indexOf("Macintosh")>=0||ee.indexOf("iPad")>=0||ee.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ut=ee.indexOf("Linux")>=0,(ee==null?void 0:ee.indexOf("Mobi"))>=0,Ut=!0,js({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),qe=Ne,ct=qe,Bt=navigator.language;else if(typeof q=="object"){ot=q.platform==="win32",lt=q.platform==="darwin",ut=q.platform==="linux",ut&&q.env.SNAP&&q.env.SNAP_REVISION,q.env.CI||q.env.BUILD_ARTIFACTSTAGINGDIRECTORY,qe=Ne,ct=Ne;const e=q.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];qe=t.locale,Bt=t.osLocale,ct=n||Ne,qs=t._translationsConfigFile}catch(t){}}else console.error("Unable to resolve platform.");const Te=ot,Gs=lt;Ut&&te.importScripts;const re=ee,zs=typeof te.postMessage=="function"&&!te.importScripts;(()=>{if(zs){const e=[];te.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let s=0,r=e.length;s{const s=++t;e.push({id:s,callback:n}),te.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})();const Ys=!!(re&&re.indexOf("Chrome")>=0);re&&re.indexOf("Firefox")>=0,!Ys&&re&&re.indexOf("Safari")>=0,re&&re.indexOf("Edg/")>=0,re&&re.indexOf("Android")>=0;class Js{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class Ht{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var jt;function Xs(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Qs(e){return e.split(/\r\n|\r|\n/)}function Zs(e){for(let t=0,n=e.length;t=0;n--){const s=e.charCodeAt(n);if(s!==32&&s!==9)return n}return-1}function qt(e){return e>=65&&e<=90}function ht(e){return 55296<=e&&e<=56319}function er(e){return 56320<=e&&e<=57343}function tr(e,t){return(e-55296<<10)+(t-56320)+65536}function nr(e,t,n){const s=e.charCodeAt(n);if(ht(s)&&n+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Z.cache=new Js(e=>{function t(u){const m=new Map;for(let h=0;h!u.startsWith("_")&&u in r);i.length===0&&(i=["_default"]);let o;for(const u of i){const m=t(r[u]);o=s(o,m)}const l=t(r._common),c=n(l,o);return new Z(c)}),Z._locales=new Ht(()=>Object.keys(Z.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(t){return ae.getData().has(t)}static get codePoints(){return ae.getData()}}ae._data=void 0;const ir="$initialize";class ar{constructor(t,n,s,r){this.vsWorker=t,this.req=n,this.method=s,this.args=r,this.type=0}}class $t{constructor(t,n,s,r){this.vsWorker=t,this.seq=n,this.res=s,this.err=r,this.type=1}}class or{constructor(t,n,s,r){this.vsWorker=t,this.req=n,this.eventName=s,this.arg=r,this.type=2}}class lr{constructor(t,n,s){this.vsWorker=t,this.req=n,this.event=s,this.type=3}}class ur{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class cr{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){const s=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[s]={resolve:r,reject:i},this._send(new ar(this._workerId,s,t,n))})}listen(t,n){let s=null;const r=new se({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,r),this._send(new or(this._workerId,s,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new ur(this._workerId,s)),s=null}});return r.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let s=t.err;t.err.$isError&&(s=new Error,s.name=t.err.name,s.message=t.err.message,s.stack=t.err.stack),n.reject(s);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.method,t.args).then(r=>{this._send(new $t(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=Ot(r.detail)),this._send(new $t(this._workerId,n,void 0,Ot(r)))})}_handleSubscribeEventMessage(t){const n=t.req,s=this._handler.handleEvent(t.eventName,t.arg)(r=>{this._send(new lr(this._workerId,n,r))});this._pendingEvents.set(n,s)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let s=0;sfunction(){const l=Array.prototype.slice.call(arguments,0);return t(o,l)},r=o=>function(l){return n(o,l)},i={};for(const o of e){if(zt(o)){i[o]=r(o);continue}if(Gt(o)){i[o]=n(o,void 0);continue}i[o]=s(o)}return i}class mr{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new cr({sendMessage:(s,r)=>{t(s,r)},handleMessage:(s,r)=>this._handleMessage(s,r),handleEvent:(s,r)=>this._handleEvent(s,r)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===ir)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(s){return Promise.reject(s)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(zt(t)){const s=this._requestHandler[t].call(this._requestHandler,n);if(typeof s!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return s}if(Gt(t)){const s=this._requestHandler[t];if(typeof s!="function")throw new Error(`Missing event ${t} on request handler.`);return s}throw new Error(`Malformed event name ${t}`)}initialize(t,n,s,r){this._protocol.setWorkerId(t);const l=hr(r,(c,u)=>this._protocol.sendMessage(c,u),(c,u)=>this._protocol.listen(c,u));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(it(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((c,u)=>{const m=globalThis.require;m([s],h=>{if(this._requestHandler=h.create(l),!this._requestHandler){u(new Error("No RequestHandler!"));return}c(it(this._requestHandler))},u)}))}}class oe{constructor(t,n,s,r){this.originalStart=t,this.originalLength=n,this.modifiedStart=s,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Yt(e,t){return(t<<5)-t+e|0}function fr(e,t){t=Yt(149417,t);for(let n=0,s=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new oe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class le{constructor(t,n,s=null){this.ContinueProcessingPredicate=s,this._originalSequence=t,this._modifiedSequence=n;const[r,i,o]=le._getElements(t),[l,c,u]=le._getElements(n);this._hasStrings=o&&u,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=l,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(le._isStringArray(n)){const s=new Int32Array(n.length);for(let r=0,i=n.length;r=t&&r>=s&&this.ElementsAreEqual(n,r);)n--,r--;if(t>n||s>r){let h;return s<=r?(we.Assert(t===n+1,"originalStart should only be one more than originalEnd"),h=[new oe(t,0,s,r-s+1)]):t<=n?(we.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),h=[new oe(t,n-t+1,s,0)]):(we.Assert(t===n+1,"originalStart should only be one more than originalEnd"),we.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}const o=[0],l=[0],c=this.ComputeRecursionPoint(t,n,s,r,o,l,i),u=o[0],m=l[0];if(c!==null)return c;if(!i[0]){const h=this.ComputeDiffRecursive(t,u,s,m,i);let f=[];return i[0]?f=[new oe(u+1,n-(u+1)+1,m+1,r-(m+1)+1)]:f=this.ComputeDiffRecursive(u+1,n,m+1,r,i),this.ConcatenateChanges(h,f)}return[new oe(t,n-t+1,s,r-s+1)]}WALKTRACE(t,n,s,r,i,o,l,c,u,m,h,f,d,g,p,w,_,N){let x=null,y=null,A=new Xt,M=n,E=s,P=d[0]-w[0]-r,C=-1073741824,S=this.m_forwardHistory.length-1;do{const v=P+t;v===M||v=0&&(u=this.m_forwardHistory[S],t=u[0],M=1,E=u.length-1)}while(--S>=-1);if(x=A.getReverseChanges(),N[0]){let v=d[0]+1,b=w[0]+1;if(x!==null&&x.length>0){const R=x[x.length-1];v=Math.max(v,R.getOriginalEnd()),b=Math.max(b,R.getModifiedEnd())}y=[new oe(v,f-v+1,b,p-b+1)]}else{A=new Xt,M=o,E=l,P=d[0]-w[0]-c,C=1073741824,S=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const v=P+i;v===M||v=m[v+1]?(h=m[v+1]-1,g=h-P-c,h>C&&A.MarkNextChange(),C=h+1,A.AddOriginalElement(h+1,g+1),P=v+1-i):(h=m[v-1],g=h-P-c,h>C&&A.MarkNextChange(),C=h,A.AddModifiedElement(h+1,g+1),P=v-1-i),S>=0&&(m=this.m_reverseHistory[S],i=m[0],M=1,E=m.length-1)}while(--S>=-1);y=A.getChanges()}return this.ConcatenateChanges(x,y)}ComputeRecursionPoint(t,n,s,r,i,o,l){let c=0,u=0,m=0,h=0,f=0,d=0;t--,s--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-t+(r-s),p=g+1,w=new Int32Array(p),_=new Int32Array(p),N=r-s,x=n-t,y=t-s,A=n-r,E=(x-N)%2===0;w[N]=t,_[x]=n,l[0]=!1;for(let P=1;P<=g/2+1;P++){let C=0,S=0;m=this.ClipDiagonalBound(N-P,P,N,p),h=this.ClipDiagonalBound(N+P,P,N,p);for(let b=m;b<=h;b+=2){b===m||bC+S&&(C=c,S=u),!E&&Math.abs(b-x)<=P-1&&c>=_[b])return i[0]=c,o[0]=u,R<=_[b]&&1447>0&&P<=1447+1?this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,E,l):null}const v=(C-t+(S-s)-P)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(C,v))return l[0]=!0,i[0]=C,o[0]=S,v>0&&1447>0&&P<=1447+1?this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,E,l):(t++,s++,[new oe(t,n-t+1,s,r-s+1)]);f=this.ClipDiagonalBound(x-P,P,x,p),d=this.ClipDiagonalBound(x+P,P,x,p);for(let b=f;b<=d;b+=2){b===f||b=_[b+1]?c=_[b+1]-1:c=_[b-1],u=c-(b-x)-A;const R=c;for(;c>t&&u>s&&this.ElementsAreEqual(c,u);)c--,u--;if(_[b]=c,E&&Math.abs(b-N)<=P&&c<=w[b])return i[0]=c,o[0]=u,R>=w[b]&&1447>0&&P<=1447+1?this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,E,l):null}if(P<=1447){let b=new Int32Array(h-m+2);b[0]=N-m+1,Le.Copy2(w,m,b,1,h-m+1),this.m_forwardHistory.push(b),b=new Int32Array(d-f+2),b[0]=x-f+1,Le.Copy2(_,f,b,1,d-f+1),this.m_reverseHistory.push(b)}}return this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,E,l)}PrettifyChanges(t){for(let n=0;n0,l=s.modifiedLength>0;for(;s.originalStart+s.originalLength=0;n--){const s=t[n];let r=0,i=0;if(n>0){const h=t[n-1];r=h.originalStart+h.originalLength,i=h.modifiedStart+h.modifiedLength}const o=s.originalLength>0,l=s.modifiedLength>0;let c=0,u=this._boundaryScore(s.originalStart,s.originalLength,s.modifiedStart,s.modifiedLength);for(let h=1;;h++){const f=s.originalStart-h,d=s.modifiedStart-h;if(fu&&(u=p,c=h)}s.originalStart-=c,s.modifiedStart-=c;const m=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],m)){t[n-1]=m[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,s=t.length;n0&&d>c&&(c=d,u=h,m=f)}return c>0?[u,m]:null}_contiguousSequenceScore(t,n,s){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const s=t+n;if(this._OriginalIsBoundary(s-1)||this._OriginalIsBoundary(s))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const s=t+n;if(this._ModifiedIsBoundary(s-1)||this._ModifiedIsBoundary(s))return!0}return!1}_boundaryScore(t,n,s,r){const i=this._OriginalRegionIsBoundary(t,n)?1:0,o=this._ModifiedRegionIsBoundary(s,r)?1:0;return i+o}ConcatenateChanges(t,n){const s=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],s)){const r=new Array(t.length+n.length-1);return Le.Copy(t,0,r,0,t.length-1),r[t.length-1]=s[0],Le.Copy(n,1,r,t.length,n.length-1),r}else{const r=new Array(t.length+n.length);return Le.Copy(t,0,r,0,t.length),Le.Copy(n,0,r,t.length,n.length),r}}ChangesOverlap(t,n,s){if(we.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),we.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const r=t.originalStart;let i=t.originalLength;const o=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),s[0]=new oe(r,i,o,l),!0}else return s[0]=null,!1}ClipDiagonalBound(t,n,s,r){if(t>=0&&t",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}},cwd(){return{ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_23740_GYGVCPPHNQAGVLPX",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}.VSCODE_CWD||process.cwd()}}:Ae={get platform(){return Te?"win32":Gs?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const $e=Ae.cwd;Ae.env;const gr=Ae.platform,_r=65,br=97,pr=90,vr=122,ue=46,j=47,z=92,ce=58,Sr=63;class Qt extends Error{constructor(t,n,s){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const i=t.indexOf(".")!==-1?"property":"argument";let o=`The "${t}" ${i} ${r} of type ${n}`;o+=`. Received type ${typeof s}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function xr(e,t){if(e===null||typeof e!="object")throw new Qt(t,"Object",e)}function U(e,t){if(typeof e!="string")throw new Qt(t,"string",e)}const he=gr==="win32";function D(e){return e===j||e===z}function mt(e){return e===j}function me(e){return e>=_r&&e<=pr||e>=br&&e<=vr}function Ge(e,t,n,s){let r="",i=0,o=-1,l=0,c=0;for(let u=0;u<=e.length;++u){if(u2){const m=r.lastIndexOf(n);m===-1?(r="",i=0):(r=r.slice(0,m),i=r.length-1-r.lastIndexOf(n)),o=u,l=0;continue}else if(r.length!==0){r="",i=0,o=u,l=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",i=2)}else r.length>0?r+=`${n}${e.slice(o+1,u)}`:r=e.slice(o+1,u),i=u-o-1;o=u,l=0}else c===ue&&l!==-1?++l:l=-1}return r}function Zt(e,t){xr(t,"pathObject");const n=t.dir||t.root,s=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${s}`:`${n}${e}${s}`:s}const G={resolve(...e){let t="",n="",s=!1;for(let r=e.length-1;r>=-1;r--){let i;if(r>=0){if(i=e[r],U(i,"path"),i.length===0)continue}else t.length===0?i=$e():(i={ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_23740_GYGVCPPHNQAGVLPX",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}[`=${t}`]||$e(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===z)&&(i=`${t}\\`));const o=i.length;let l=0,c="",u=!1;const m=i.charCodeAt(0);if(o===1)D(m)&&(l=1,u=!0);else if(D(m))if(u=!0,D(i.charCodeAt(1))){let h=2,f=h;for(;h2&&D(i.charCodeAt(2))&&(u=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(s){if(t.length>0)break}else if(n=`${i.slice(l)}\\${n}`,s=u,u&&t.length>0)break}return n=Ge(n,!s,"\\",D),s?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){U(e,"path");const t=e.length;if(t===0)return".";let n=0,s,r=!1;const i=e.charCodeAt(0);if(t===1)return mt(i)?"\\":e;if(D(i))if(r=!0,D(e.charCodeAt(1))){let l=2,c=l;for(;l2&&D(e.charCodeAt(2))&&(r=!0,n=3));let o=n0&&D(e.charCodeAt(t-1))&&(o+="\\"),s===void 0?r?`\\${o}`:o:r?`${s}\\${o}`:`${s}${o}`},isAbsolute(e){U(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return D(n)||t>2&&me(n)&&e.charCodeAt(1)===ce&&D(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let i=0;i0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let s=!0,r=0;if(typeof n=="string"&&D(n.charCodeAt(0))){++r;const i=n.length;i>1&&D(n.charCodeAt(1))&&(++r,i>2&&(D(n.charCodeAt(2))?++r:s=!1))}if(s){for(;r=2&&(t=`\\${t.slice(r)}`)}return G.normalize(t)},relative(e,t){if(U(e,"from"),U(t,"to"),e===t)return"";const n=G.resolve(e),s=G.resolve(t);if(n===s||(e=n.toLowerCase(),t=s.toLowerCase(),e===t))return"";let r=0;for(;rr&&e.charCodeAt(i-1)===z;)i--;const o=i-r;let l=0;for(;ll&&t.charCodeAt(c-1)===z;)c--;const u=c-l,m=om){if(t.charCodeAt(l+f)===z)return s.slice(l+f+1);if(f===2)return s.slice(l+f)}o>m&&(e.charCodeAt(r+f)===z?h=f:f===2&&(h=3)),h===-1&&(h=0)}let d="";for(f=r+h+1;f<=i;++f)(f===i||e.charCodeAt(f)===z)&&(d+=d.length===0?"..":"\\..");return l+=h,d.length>0?`${d}${s.slice(l,c)}`:(s.charCodeAt(l)===z&&++l,s.slice(l,c))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=G.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===z){if(t.charCodeAt(1)===z){const n=t.charCodeAt(2);if(n!==Sr&&n!==ue)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(me(t.charCodeAt(0))&&t.charCodeAt(1)===ce&&t.charCodeAt(2)===z)return`\\\\?\\${t}`;return e},dirname(e){U(e,"path");const t=e.length;if(t===0)return".";let n=-1,s=0;const r=e.charCodeAt(0);if(t===1)return D(r)?e:".";if(D(r)){if(n=s=1,D(e.charCodeAt(1))){let l=2,c=l;for(;l2&&D(e.charCodeAt(2))?3:2,s=n);let i=-1,o=!0;for(let l=t-1;l>=s;--l)if(D(e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;if(i===-1){if(n===-1)return".";i=n}return e.slice(0,i)},basename(e,t){t!==void 0&&U(t,"ext"),U(e,"path");let n=0,s=-1,r=!0,i;if(e.length>=2&&me(e.charCodeAt(0))&&e.charCodeAt(1)===ce&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){const c=e.charCodeAt(i);if(D(c)){if(!r){n=i+1;break}}else l===-1&&(r=!1,l=i+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(s=i):(o=-1,s=l))}return n===s?s=l:s===-1&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(D(e.charCodeAt(i))){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":e.slice(n,s)},extname(e){U(e,"path");let t=0,n=-1,s=0,r=-1,i=!0,o=0;e.length>=2&&e.charCodeAt(1)===ce&&me(e.charCodeAt(0))&&(t=s=2);for(let l=e.length-1;l>=t;--l){const c=e.charCodeAt(l);if(D(c)){if(!i){s=l+1;break}continue}r===-1&&(i=!1,r=l+1),c===ue?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||r===-1||o===0||o===1&&n===r-1&&n===s+1?"":e.slice(n,r)},format:Zt.bind(null,"\\"),parse(e){U(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let s=0,r=e.charCodeAt(0);if(n===1)return D(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(D(r)){if(s=1,D(e.charCodeAt(1))){let h=2,f=h;for(;h0&&(t.root=e.slice(0,s));let i=-1,o=s,l=-1,c=!0,u=e.length-1,m=0;for(;u>=s;--u){if(r=e.charCodeAt(u),D(r)){if(!c){o=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===ue?i===-1?i=u:m!==1&&(m=1):i!==-1&&(m=-1)}return l!==-1&&(i===-1||m===0||m===1&&i===l-1&&i===o+1?t.base=t.name=e.slice(o,l):(t.name=e.slice(o,i),t.base=e.slice(o,l),t.ext=e.slice(i,l))),o>0&&o!==s?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Cr=(()=>{if(he){const e=/\\/g;return()=>{const t=$e().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>$e()})(),Y={resolve(...e){let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const r=s>=0?e[s]:Cr();U(r,"path"),r.length!==0&&(t=`${r}/${t}`,n=r.charCodeAt(0)===j)}return t=Ge(t,!n,"/",mt),n?`/${t}`:t.length>0?t:"."},normalize(e){if(U(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===j,n=e.charCodeAt(e.length-1)===j;return e=Ge(e,!t,"/",mt),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return U(e,"path"),e.length>0&&e.charCodeAt(0)===j},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=s:t+=`/${s}`)}return t===void 0?".":Y.normalize(t)},relative(e,t){if(U(e,"from"),U(t,"to"),e===t||(e=Y.resolve(e),t=Y.resolve(t),e===t))return"";const n=1,s=e.length,r=s-n,i=1,o=t.length-i,l=rl){if(t.charCodeAt(i+u)===j)return t.slice(i+u+1);if(u===0)return t.slice(i+u)}else r>l&&(e.charCodeAt(n+u)===j?c=u:u===0&&(c=0));let m="";for(u=n+c+1;u<=s;++u)(u===s||e.charCodeAt(u)===j)&&(m+=m.length===0?"..":"/..");return`${m}${t.slice(i+c)}`},toNamespacedPath(e){return e},dirname(e){if(U(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===j;let n=-1,s=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===j){if(!s){n=r;break}}else s=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&U(t,"ext"),U(e,"path");let n=0,s=-1,r=!0,i;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=0;--i){const c=e.charCodeAt(i);if(c===j){if(!r){n=i+1;break}}else l===-1&&(r=!1,l=i+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(s=i):(o=-1,s=l))}return n===s?s=l:s===-1&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===j){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":e.slice(n,s)},extname(e){U(e,"path");let t=-1,n=0,s=-1,r=!0,i=0;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===j){if(!r){n=o+1;break}continue}s===-1&&(r=!1,s=o+1),l===ue?t===-1?t=o:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||s===-1||i===0||i===1&&t===s-1&&t===n+1?"":e.slice(t,s)},format:Zt.bind(null,"/"),parse(e){U(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===j;let s;n?(t.root="/",s=1):s=0;let r=-1,i=0,o=-1,l=!0,c=e.length-1,u=0;for(;c>=s;--c){const m=e.charCodeAt(c);if(m===j){if(!l){i=c+1;break}continue}o===-1&&(l=!1,o=c+1),m===ue?r===-1?r=c:u!==1&&(u=1):r!==-1&&(u=-1)}if(o!==-1){const m=i===0&&n?1:i;r===-1||u===0||u===1&&r===o-1&&r===i+1?t.base=t.name=e.slice(m,o):(t.name=e.slice(m,r),t.base=e.slice(m,o),t.ext=e.slice(r,o))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Y.win32=G.win32=G,Y.posix=G.posix=Y,he?G.normalize:Y.normalize,he?G.resolve:Y.resolve,he?G.relative:Y.relative,he?G.dirname:Y.dirname,he?G.basename:Y.basename,he?G.extname:Y.extname,he?G.sep:Y.sep;const Nr=/^\w[\w\d+.-]*$/,wr=/^\//,Lr=/^\/\//;function Ar(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Nr.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!wr.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Lr.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Rr(e,t){return!e&&!t?"file":e}function Pr(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ne&&(t=ne+t):t=ne;break}return t}const O="",ne="/",Er=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class be{static isUri(t){return t instanceof be?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,s,r,i,o=!1){typeof t=="object"?(this.scheme=t.scheme||O,this.authority=t.authority||O,this.path=t.path||O,this.query=t.query||O,this.fragment=t.fragment||O):(this.scheme=Rr(t,o),this.authority=n||O,this.path=Pr(this.scheme,s||O),this.query=r||O,this.fragment=i||O,Ar(this,o))}get fsPath(){return ft(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:s,path:r,query:i,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=O),s===void 0?s=this.authority:s===null&&(s=O),r===void 0?r=this.path:r===null&&(r=O),i===void 0?i=this.query:i===null&&(i=O),o===void 0?o=this.fragment:o===null&&(o=O),n===this.scheme&&s===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new Re(n,s,r,i,o)}static parse(t,n=!1){const s=Er.exec(t);return s?new Re(s[2]||O,ze(s[4]||O),ze(s[5]||O),ze(s[7]||O),ze(s[9]||O),n):new Re(O,O,O,O,O)}static file(t){let n=O;if(Te&&(t=t.replace(/\\/g,ne)),t[0]===ne&&t[1]===ne){const s=t.indexOf(ne,2);s===-1?(n=t.substring(2),t=ne):(n=t.substring(2,s),t=t.substring(s)||ne)}return new Re("file",n,t,O,O)}static from(t,n){return new Re(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let s;return Te&&t.scheme==="file"?s=be.file(G.join(ft(t,!0),...n)).path:s=Y.join(t.path,...n),t.with({path:s})}toString(t=!1){return dt(this,t)}toJSON(){return this}static revive(t){var n,s;if(t){if(t instanceof be)return t;{const r=new Re(t);return r._formatted=(n=t.external)!==null&&n!==void 0?n:null,r._fsPath=t._sep===Kt&&(s=t.fsPath)!==null&&s!==void 0?s:null,r}}else return t}}const Kt=Te?1:void 0;class Re extends be{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ft(this,!1)),this._fsPath}toString(t=!1){return t?dt(this,!0):(this._formatted||(this._formatted=dt(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Kt),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const en={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function tn(e,t,n){let s,r=-1;for(let i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)r!==-1&&(s+=encodeURIComponent(e.substring(r,i)),r=-1),s!==void 0&&(s+=e.charAt(i));else{s===void 0&&(s=e.substr(0,i));const l=en[o];l!==void 0?(r!==-1&&(s+=encodeURIComponent(e.substring(r,i)),r=-1),s+=l):r===-1&&(r=i)}}return r!==-1&&(s+=encodeURIComponent(e.substring(r))),s!==void 0?s:e}function Dr(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Te&&(n=n.replace(/\//g,"\\")),n}function dt(e,t){const n=t?Dr:tn;let s="",{scheme:r,authority:i,path:o,query:l,fragment:c}=e;if(r&&(s+=r,s+=":"),(i||r==="file")&&(s+=ne,s+=ne),i){let u=i.indexOf("@");if(u!==-1){const m=i.substr(0,u);i=i.substr(u+1),u=m.lastIndexOf(":"),u===-1?s+=n(m,!1,!1):(s+=n(m.substr(0,u),!1,!1),s+=":",s+=n(m.substr(u+1),!1,!0)),s+="@"}i=i.toLowerCase(),u=i.lastIndexOf(":"),u===-1?s+=n(i,!1,!0):(s+=n(i.substr(0,u),!1,!0),s+=i.substr(u))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const u=o.charCodeAt(1);u>=65&&u<=90&&(o=`/${String.fromCharCode(u+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const u=o.charCodeAt(0);u>=65&&u<=90&&(o=`${String.fromCharCode(u+32)}:${o.substr(2)}`)}s+=n(o,!0,!1)}return l&&(s+="?",s+=n(l,!1,!1)),c&&(s+="#",s+=t?c:tn(c,!1,!1)),s}function nn(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+nn(e.substr(3)):e}}const sn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ze(e){return e.match(sn)?e.replace(sn,t=>nn(t)):e}class ${constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new $(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return $.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return $.isBefore(this,t)}static isBefore(t,n){return t.lineNumbers||t===s&&n>r?(this.startLineNumber=s,this.startColumn=r,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=s,this.endColumn=r)}isEmpty(){return k.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return k.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return k.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return k.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return k.plusRange(this,t)}static plusRange(t,n){let s,r,i,o;return n.startLineNumbert.endLineNumber?(i=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(i=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(i=t.endLineNumber,o=t.endColumn),new k(s,r,i,o)}intersectRanges(t){return k.intersectRanges(this,t)}static intersectRanges(t,n){let s=t.startLineNumber,r=t.startColumn,i=t.endLineNumber,o=t.endColumn;const l=n.startLineNumber,c=n.startColumn,u=n.endLineNumber,m=n.endColumn;return su?(i=u,o=m):i===u&&(o=Math.min(o,m)),s>i||s===i&&r>o?null:new k(s,r,i,o)}equalsRange(t){return k.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return k.getEndPosition(this)}static getEndPosition(t){return new $(t.endLineNumber,t.endColumn)}getStartPosition(){return k.getStartPosition(this)}static getStartPosition(t){return new $(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new k(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new k(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return k.collapseToStart(this)}static collapseToStart(t){return new k(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return k.collapseToEnd(this)}static collapseToEnd(t){return new k(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new k(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new k(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new k(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}toJSON(){return this}}var rn;(function(e){function t(r){return r<0}e.isLessThan=t;function n(r){return r>0}e.isGreaterThan=n;function s(r){return r===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(rn||(rn={}));function an(e){return e<0?0:e>255?255:e|0}function Pe(e){return e<0?0:e>4294967295?4294967295:e|0}class yr{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Pe(t);const s=this.values,r=this.prefixSum,i=n.length;return i===0?!1:(this.values=new Uint32Array(s.length+i),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t),t+i),this.values.set(n,t),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Pe(t),n=Pe(n),this.values[t]===n?!1:(this.values[t]=n,t-1=s.length)return!1;const i=s.length-t;return n>=i&&(n=i),n===0?!1:(this.values=new Uint32Array(s.length-n),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Pe(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let s=n;s<=t;s++)this.prefixSum[s]=this.prefixSum[s-1]+this.values[s];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,s=this.values.length-1,r=0,i=0,o=0;for(;n<=s;)if(r=n+(s-n)/2|0,i=this.prefixSum[r],o=i-this.values[r],t=i)n=r+1;else break;return new Mr(r,t-o)}}class Mr{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class kr{constructor(t,n,s,r){this._uri=t,this._lines=n,this._eol=s,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const s of n)this._acceptDeleteRange(s.range),this._acceptInsertText(new $(s.range.startLineNumber,s.range.startColumn),s.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,s=new Uint32Array(n);for(let r=0;r/?";function Tr(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Fr)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const on=Tr();function Ir(e){let t=on;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const ln=new Ms;ln.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function gt(e,t,n,s,r){if(r||(r=He.first(ln)),n.length>r.maxLen){let u=e-r.maxLen/2;return u<0?u=0:s+=u,n=n.substring(u,e+r.maxLen/2),gt(e,t,n,s,r)}const i=Date.now(),o=e-1-s;let l=-1,c=null;for(let u=1;!(Date.now()-i>=r.timeBudget);u++){const m=o-r.windowSize*u;t.lastIndex=Math.max(0,m);const h=Vr(t,n,o,l);if(!h&&c||(c=h,m<=0))break;l=m}if(c){const u={word:c[0],startColumn:s+1+c.index,endColumn:s+1+c.index+c[0].length};return t.lastIndex=0,u}return null}function Vr(e,t,n,s){let r;for(;r=e.exec(t);){const i=r.index||0;if(i<=n&&e.lastIndex>=n)return r;if(s>0&&i>s)return null}return null}class _t{constructor(t){const n=an(t);this._defaultValue=n,this._asciiMap=_t._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const s=an(n);t>=0&&t<256?this._asciiMap[t]=s:this._map.set(t,s)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Or{constructor(t,n,s){const r=new Uint8Array(t*n);for(let i=0,o=t*n;in&&(n=c),l>s&&(s=l),u>s&&(s=u)}n++,s++;const r=new Or(s,n,0);for(let i=0,o=t.length;i=this._maxCharCode?0:this._states.get(t,n)}}let bt=null;function Ur(){return bt===null&&(bt=new Wr([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),bt}let Ie=null;function Br(){if(Ie===null){Ie=new _t(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;nr);if(r>0){const l=n.charCodeAt(r-1),c=n.charCodeAt(o);(l===40&&c===41||l===91&&c===93||l===123&&c===125)&&o--}return{range:{startLineNumber:s,startColumn:r+1,endLineNumber:s,endColumn:o+2},url:n.substring(r,o+1)}}static computeLinks(t,n=Ur()){const s=Br(),r=[];for(let i=1,o=t.getLineCount();i<=o;i++){const l=t.getLineContent(i),c=l.length;let u=0,m=0,h=0,f=1,d=!1,g=!1,p=!1,w=!1;for(;u=0?(r+=s?1:-1,r<0?r=t.length-1:r%=t.length,t[r]):null}}pt.INSTANCE=new pt;const un=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Je;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Xe?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:nt.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:un})})(Je||(Je={}));class Xe{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?un:(this._emitter||(this._emitter=new se),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class jr{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Xe),this._token}cancel(){this._token?this._token instanceof Xe&&this._token.cancel():this._token=Je.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Xe&&this._token.dispose():this._token=Je.None}}class vt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const Qe=new vt,St=new vt,xt=new vt,qr=new Array(230),$r=Object.create(null),Gr=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],s=[];for(const r of t){const[i,o,l,c,u,m,h,f,d]=r;if(s[o]||(s[o]=!0,$r[l]=o,Gr[l.toLowerCase()]=o),!n[c]){if(n[c]=!0,!u)throw new Error(`String representation missing for key code ${c} around scan code ${l}`);Qe.define(c,u),St.define(c,f||u),xt.define(c,d||f||u)}m&&(qr[m]=c)}})();var cn;(function(e){function t(l){return Qe.keyCodeToStr(l)}e.toString=t;function n(l){return Qe.strToKeyCode(l)}e.fromString=n;function s(l){return St.keyCodeToStr(l)}e.toUserSettingsUS=s;function r(l){return xt.keyCodeToStr(l)}e.toUserSettingsGeneral=r;function i(l){return St.strToKeyCode(l)||xt.strToKeyCode(l)}e.fromUserSettings=i;function o(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Qe.keyCodeToStr(l)}e.toElectronAccelerator=o})(cn||(cn={}));function zr(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class X extends k{constructor(t,n,s,r){super(t,n,s,r),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=s,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return X.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new X(this.startLineNumber,this.startColumn,t,n):new X(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new $(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new $(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new X(t,n,this.endLineNumber,this.endColumn):new X(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new X(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new X(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new X(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new X(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let s=0,r=t.length;s{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var s;(s=this._factories.get(t))===null||s===void 0||s.dispose();const r=new Jr(this,t,n);return this._factories.set(t,r),ke(()=>{const i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}getOrCreate(t){return Ct(this,void 0,void 0,function*(){const n=this.get(t);if(n)return n;const s=this._factories.get(t);return!s||s.isResolved?null:(yield s.resolve(),this.get(t))})}isResolved(t){if(this.get(t))return!0;const s=this._factories.get(t);return!!(!s||s.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Jr extends Fe{get isResolved(){return this._isResolved}constructor(t,n,s){super(),this._registry=t,this._languageId=n,this._factory=s,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Ct(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Ct(this,void 0,void 0,function*(){const t=yield this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))})}}class Xr{constructor(t,n,s){this.offset=t,this.type=n,this.language=s,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var mn;(function(e){const t=new Map;t.set(0,L.symbolMethod),t.set(1,L.symbolFunction),t.set(2,L.symbolConstructor),t.set(3,L.symbolField),t.set(4,L.symbolVariable),t.set(5,L.symbolClass),t.set(6,L.symbolStruct),t.set(7,L.symbolInterface),t.set(8,L.symbolModule),t.set(9,L.symbolProperty),t.set(10,L.symbolEvent),t.set(11,L.symbolOperator),t.set(12,L.symbolUnit),t.set(13,L.symbolValue),t.set(15,L.symbolEnum),t.set(14,L.symbolConstant),t.set(15,L.symbolEnum),t.set(16,L.symbolEnumMember),t.set(17,L.symbolKeyword),t.set(27,L.symbolSnippet),t.set(18,L.symbolText),t.set(19,L.symbolColor),t.set(20,L.symbolFile),t.set(21,L.symbolReference),t.set(22,L.symbolCustomColor),t.set(23,L.symbolFolder),t.set(24,L.symbolTypeParameter),t.set(25,L.account),t.set(26,L.issues);function n(i){let o=t.get(i);return o||(console.info("No codicon found for CompletionItemKind "+i),o=L.symbolProperty),o}e.toIcon=n;const s=new Map;s.set("method",0),s.set("function",1),s.set("constructor",2),s.set("field",3),s.set("variable",4),s.set("class",5),s.set("struct",6),s.set("interface",7),s.set("module",8),s.set("property",9),s.set("event",10),s.set("operator",11),s.set("unit",12),s.set("value",13),s.set("constant",14),s.set("enum",15),s.set("enum-member",16),s.set("enumMember",16),s.set("keyword",17),s.set("snippet",27),s.set("text",18),s.set("color",19),s.set("file",20),s.set("reference",21),s.set("customcolor",22),s.set("folder",23),s.set("type-parameter",24),s.set("typeParameter",24),s.set("account",25),s.set("issue",26);function r(i,o){let l=s.get(i);return typeof l=="undefined"&&!o&&(l=9),l}e.fromString=r})(mn||(mn={}));var fn;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(fn||(fn={}));var dn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(dn||(dn={}));var gn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(gn||(gn={}));var _n;(function(e){const t=new Map;t.set(0,L.symbolFile),t.set(1,L.symbolModule),t.set(2,L.symbolNamespace),t.set(3,L.symbolPackage),t.set(4,L.symbolClass),t.set(5,L.symbolMethod),t.set(6,L.symbolProperty),t.set(7,L.symbolField),t.set(8,L.symbolConstructor),t.set(9,L.symbolEnum),t.set(10,L.symbolInterface),t.set(11,L.symbolFunction),t.set(12,L.symbolVariable),t.set(13,L.symbolConstant),t.set(14,L.symbolString),t.set(15,L.symbolNumber),t.set(16,L.symbolBoolean),t.set(17,L.symbolArray),t.set(18,L.symbolObject),t.set(19,L.symbolKey),t.set(20,L.symbolNull),t.set(21,L.symbolEnumMember),t.set(22,L.symbolStruct),t.set(23,L.symbolEvent),t.set(24,L.symbolOperator),t.set(25,L.symbolTypeParameter);function n(s){let r=t.get(s);return r||(console.info("No codicon found for SymbolKind "+s),r=L.symbolProperty),r}e.toIcon=n})(_n||(_n={}));var bn;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(bn||(bn={}));var pn;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(pn||(pn={})),new Yr;var vn;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(vn||(vn={}));var Sn;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Sn||(Sn={}));var xn;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(xn||(xn={}));var Cn;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Cn||(Cn={}));var Nn;(function(e){e[e.Deprecated=1]="Deprecated"})(Nn||(Nn={}));var wn;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(wn||(wn={}));var Ln;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Ln||(Ln={}));var An;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(An||(An={}));var Rn;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Rn||(Rn={}));var Pn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Pn||(Pn={}));var En;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(En||(En={}));var Dn;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=7]="autoClosingDelete",e[e.autoClosingOvertype=8]="autoClosingOvertype",e[e.autoClosingQuotes=9]="autoClosingQuotes",e[e.autoIndent=10]="autoIndent",e[e.automaticLayout=11]="automaticLayout",e[e.autoSurround=12]="autoSurround",e[e.bracketPairColorization=13]="bracketPairColorization",e[e.guides=14]="guides",e[e.codeLens=15]="codeLens",e[e.codeLensFontFamily=16]="codeLensFontFamily",e[e.codeLensFontSize=17]="codeLensFontSize",e[e.colorDecorators=18]="colorDecorators",e[e.colorDecoratorsLimit=19]="colorDecoratorsLimit",e[e.columnSelection=20]="columnSelection",e[e.comments=21]="comments",e[e.contextmenu=22]="contextmenu",e[e.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",e[e.cursorBlinking=24]="cursorBlinking",e[e.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",e[e.cursorStyle=26]="cursorStyle",e[e.cursorSurroundingLines=27]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",e[e.cursorWidth=29]="cursorWidth",e[e.disableLayerHinting=30]="disableLayerHinting",e[e.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",e[e.domReadOnly=32]="domReadOnly",e[e.dragAndDrop=33]="dragAndDrop",e[e.dropIntoEditor=34]="dropIntoEditor",e[e.emptySelectionClipboard=35]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",e[e.extraEditorClassName=37]="extraEditorClassName",e[e.fastScrollSensitivity=38]="fastScrollSensitivity",e[e.find=39]="find",e[e.fixedOverflowWidgets=40]="fixedOverflowWidgets",e[e.folding=41]="folding",e[e.foldingStrategy=42]="foldingStrategy",e[e.foldingHighlight=43]="foldingHighlight",e[e.foldingImportsByDefault=44]="foldingImportsByDefault",e[e.foldingMaximumRegions=45]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=47]="fontFamily",e[e.fontInfo=48]="fontInfo",e[e.fontLigatures=49]="fontLigatures",e[e.fontSize=50]="fontSize",e[e.fontWeight=51]="fontWeight",e[e.fontVariations=52]="fontVariations",e[e.formatOnPaste=53]="formatOnPaste",e[e.formatOnType=54]="formatOnType",e[e.glyphMargin=55]="glyphMargin",e[e.gotoLocation=56]="gotoLocation",e[e.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",e[e.hover=58]="hover",e[e.inDiffEditor=59]="inDiffEditor",e[e.inlineSuggest=60]="inlineSuggest",e[e.letterSpacing=61]="letterSpacing",e[e.lightbulb=62]="lightbulb",e[e.lineDecorationsWidth=63]="lineDecorationsWidth",e[e.lineHeight=64]="lineHeight",e[e.lineNumbers=65]="lineNumbers",e[e.lineNumbersMinChars=66]="lineNumbersMinChars",e[e.linkedEditing=67]="linkedEditing",e[e.links=68]="links",e[e.matchBrackets=69]="matchBrackets",e[e.minimap=70]="minimap",e[e.mouseStyle=71]="mouseStyle",e[e.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=73]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",e[e.multiCursorModifier=75]="multiCursorModifier",e[e.multiCursorPaste=76]="multiCursorPaste",e[e.multiCursorLimit=77]="multiCursorLimit",e[e.occurrencesHighlight=78]="occurrencesHighlight",e[e.overviewRulerBorder=79]="overviewRulerBorder",e[e.overviewRulerLanes=80]="overviewRulerLanes",e[e.padding=81]="padding",e[e.pasteAs=82]="pasteAs",e[e.parameterHints=83]="parameterHints",e[e.peekWidgetDefaultFocus=84]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=85]="definitionLinkOpensInPeek",e[e.quickSuggestions=86]="quickSuggestions",e[e.quickSuggestionsDelay=87]="quickSuggestionsDelay",e[e.readOnly=88]="readOnly",e[e.readOnlyMessage=89]="readOnlyMessage",e[e.renameOnType=90]="renameOnType",e[e.renderControlCharacters=91]="renderControlCharacters",e[e.renderFinalNewline=92]="renderFinalNewline",e[e.renderLineHighlight=93]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=94]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=95]="renderValidationDecorations",e[e.renderWhitespace=96]="renderWhitespace",e[e.revealHorizontalRightPadding=97]="revealHorizontalRightPadding",e[e.roundedSelection=98]="roundedSelection",e[e.rulers=99]="rulers",e[e.scrollbar=100]="scrollbar",e[e.scrollBeyondLastColumn=101]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=102]="scrollBeyondLastLine",e[e.scrollPredominantAxis=103]="scrollPredominantAxis",e[e.selectionClipboard=104]="selectionClipboard",e[e.selectionHighlight=105]="selectionHighlight",e[e.selectOnLineNumbers=106]="selectOnLineNumbers",e[e.showFoldingControls=107]="showFoldingControls",e[e.showUnused=108]="showUnused",e[e.snippetSuggestions=109]="snippetSuggestions",e[e.smartSelect=110]="smartSelect",e[e.smoothScrolling=111]="smoothScrolling",e[e.stickyScroll=112]="stickyScroll",e[e.stickyTabStops=113]="stickyTabStops",e[e.stopRenderingLineAfter=114]="stopRenderingLineAfter",e[e.suggest=115]="suggest",e[e.suggestFontSize=116]="suggestFontSize",e[e.suggestLineHeight=117]="suggestLineHeight",e[e.suggestOnTriggerCharacters=118]="suggestOnTriggerCharacters",e[e.suggestSelection=119]="suggestSelection",e[e.tabCompletion=120]="tabCompletion",e[e.tabIndex=121]="tabIndex",e[e.unicodeHighlighting=122]="unicodeHighlighting",e[e.unusualLineTerminators=123]="unusualLineTerminators",e[e.useShadowDOM=124]="useShadowDOM",e[e.useTabStops=125]="useTabStops",e[e.wordBreak=126]="wordBreak",e[e.wordSeparators=127]="wordSeparators",e[e.wordWrap=128]="wordWrap",e[e.wordWrapBreakAfterCharacters=129]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=130]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=131]="wordWrapColumn",e[e.wordWrapOverride1=132]="wordWrapOverride1",e[e.wordWrapOverride2=133]="wordWrapOverride2",e[e.wrappingIndent=134]="wrappingIndent",e[e.wrappingStrategy=135]="wrappingStrategy",e[e.showDeprecated=136]="showDeprecated",e[e.inlayHints=137]="inlayHints",e[e.editorClassName=138]="editorClassName",e[e.pixelRatio=139]="pixelRatio",e[e.tabFocusMode=140]="tabFocusMode",e[e.layoutInfo=141]="layoutInfo",e[e.wrappingInfo=142]="wrappingInfo",e[e.defaultColorDecorators=143]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=144]="colorDecoratorsActivatedOn"})(Dn||(Dn={}));var yn;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(yn||(yn={}));var Mn;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Mn||(Mn={}));var kn;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(kn||(kn={}));var Fn;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Fn||(Fn={}));var Tn;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Tn||(Tn={}));var In;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(In||(In={}));var Vn;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Vn||(Vn={}));var Nt;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Nt||(Nt={}));var wt;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(wt||(wt={}));var Lt;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Lt||(Lt={}));var On;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(On||(On={}));var Wn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Wn||(Wn={}));var Un;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Un||(Un={}));var Bn;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Bn||(Bn={}));var Hn;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(Hn||(Hn={}));var jn;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(jn||(jn={}));var qn;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(qn||(qn={}));var $n;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})($n||($n={}));var Gn;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Gn||(Gn={}));var At;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(At||(At={}));var zn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(zn||(zn={}));var Yn;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Yn||(Yn={}));var Jn;(function(e){e[e.Deprecated=1]="Deprecated"})(Jn||(Jn={}));var Xn;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Xn||(Xn={}));var Qn;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Qn||(Qn={}));var Zn;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Zn||(Zn={}));var Kn;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Kn||(Kn={}));class Ve{static chord(t,n){return zr(t,n)}}Ve.CtrlCmd=2048,Ve.Shift=1024,Ve.Alt=512,Ve.WinCtrl=256;function Qr(){return{editor:void 0,languages:void 0,CancellationTokenSource:jr,Emitter:se,KeyCode:Nt,KeyMod:Ve,Position:$,Range:k,Selection:X,SelectionDirection:At,MarkerSeverity:wt,MarkerTag:Lt,Uri:be,Token:Xr}}var es;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(es||(es={}));var ts;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(ts||(ts={}));var ns;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(ns||(ns={}));var ss;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(ss||(ss={}));function Zr(e,t,n,s,r){if(s===0)return!0;const i=t.charCodeAt(s-1);if(e.get(i)!==0||i===13||i===10)return!0;if(r>0){const o=t.charCodeAt(s);if(e.get(o)!==0)return!0}return!1}function Kr(e,t,n,s,r){if(s+r===n)return!0;const i=t.charCodeAt(s+r);if(e.get(i)!==0||i===13||i===10)return!0;if(r>0){const o=t.charCodeAt(s+r-1);if(e.get(o)!==0)return!0}return!1}function ei(e,t,n,s,r){return Zr(e,t,n,s,r)&&Kr(e,t,n,s,r)}class ti{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let s;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(s=this._searchRegex.exec(t),!s))return null;const r=s.index,i=s[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){nr(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||ei(this._wordSeparators,t,n,r,i))return s}while(s);return null}}function ni(e,t="Unreachable"){throw new Error(t)}function Rt(e){if(!e()){debugger;e(),Vt(new xe("Assertion Failed"))}}function rs(e,t){let n=0;for(;n0){const C=N.charCodeAt(y-1);ht(C)&&y--}if(A+1=C){h=!0;break e}m.push(new k(w,y+1,w,A+1))}}while(f)}return{ranges:m,hasMore:h,ambiguousCharacterCount:d,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(t,n){const s=new is(n);switch(s.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=t.codePointAt(0),o=s.ambiguousCharacters.getPrimaryConfusable(i),l=Z.getLocales().filter(c=>!Z.getInstance(new Set([...n.allowedLocales,c])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function ri(e,t){return`[${Xs(e.map(s=>String.fromCodePoint(s)).join(""))}]`}class is{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Z.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of ae.codePoints)as(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const s=t.codePointAt(0);if(this.allowedCodePoints.has(s))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(n)for(const o of n){const l=o.codePointAt(0),c=rr(o);r=r||c,!c&&!this.ambiguousCharacters.isAmbiguous(l)&&!ae.isInvisibleCharacter(l)&&(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!as(t)&&ae.isInvisibleCharacter(s)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(s)?3:0}}function as(e){return e===" "||e===` -`||e===" "}class B{static fromRange(t){return new B(t.startLineNumber,t.endLineNumber)}static subtract(t,n){return n?t.startLineNumber=l.startLineNumber?o=new B(o.startLineNumber,Math.max(o.endLineNumberExclusive,l.endLineNumberExclusive)):(s.push(o),o=l)}return o!==null&&s.push(o),s}static ofLength(t,n){return new B(t,t+n)}static deserialize(t){return new B(t[0],t[1])}constructor(t,n){if(t>n)throw new xe(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var t;return new fe(this.modifiedRange,this.originalRange,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class Ze{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Ze(this.modifiedRange,this.originalRange)}}class Pt{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Pt(this.modifiedRange,this.originalRange)}}class Et{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new Et(this.lineRangeMapping.flip(),this.changes.map(t=>t.flip()))}}const ii=3;class ai{computeDiff(t,n,s){var r;const o=new ui(t,n,{maxComputationTime:s.maxComputationTimeMs,shouldIgnoreTrimWhitespace:s.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),l=[];let c=null;for(const u of o.changes){let m;u.originalEndLineNumber===0?m=new B(u.originalStartLineNumber+1,u.originalStartLineNumber+1):m=new B(u.originalStartLineNumber,u.originalEndLineNumber+1);let h;u.modifiedEndLineNumber===0?h=new B(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):h=new B(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let f=new fe(m,h,(r=u.charChanges)===null||r===void 0?void 0:r.map(d=>new Ze(new k(d.originalStartLineNumber,d.originalStartColumn,d.originalEndLineNumber,d.originalEndColumn),new k(d.modifiedStartLineNumber,d.modifiedStartColumn,d.modifiedEndLineNumber,d.modifiedEndColumn))));c&&(c.modifiedRange.endLineNumberExclusive===f.modifiedRange.startLineNumber||c.originalRange.endLineNumberExclusive===f.originalRange.startLineNumber)&&(f=new fe(c.originalRange.join(f.originalRange),c.modifiedRange.join(f.modifiedRange),c.innerChanges&&f.innerChanges?c.innerChanges.concat(f.innerChanges):void 0),l.pop()),l.push(f),c=f}return Rt(()=>rs(l,(u,m)=>m.originalRange.startLineNumber-u.originalRange.endLineNumberExclusive===m.modifiedRange.startLineNumber-u.modifiedRange.endLineNumberExclusive&&u.originalRange.endLineNumberExclusive(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class Ee{constructor(t,n,s,r,i,o,l,c){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=s,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=l,this.modifiedEndColumn=c}static createFromDiffChange(t,n,s){const r=n.getStartLineNumber(t.originalStart),i=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),c=s.getStartLineNumber(t.modifiedStart),u=s.getStartColumn(t.modifiedStart),m=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),h=s.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new Ee(r,i,o,l,c,u,m,h)}}function li(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let s=1,r=e.length;s0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const d=s.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(d.getElements().length>0&&g.getElements().length>0){let p=ls(d,g,i,!0).changes;l&&(p=li(p)),f=[];for(let w=0,_=p.length;w<_;w++)f.push(Ee.createFromDiffChange(p[w],d,g))}}return new Oe(c,u,m,h,f)}}class ui{constructor(t,n,s){this.shouldComputeCharChanges=s.shouldComputeCharChanges,this.shouldPostProcessCharChanges=s.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=s.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=s.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new us(t),this.modified=new us(n),this.continueLineDiff=cs(s.maxComputationTime),this.continueCharDiff=cs(s.maxComputationTime===0?0:Math.min(s.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=ls(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,s=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let c=0,u=n.length;c1&&p>1;){const w=f.charCodeAt(g-2),_=d.charCodeAt(p-2);if(w!==_)break;g--,p--}(g>1||p>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,g,o+1,1,p)}{let g=yt(f,1),p=yt(d,1);const w=f.length+1,_=d.length+1;for(;g!0;const t=Date.now();return()=>Date.now()-tn))return new V(t,n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new xe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new V(this.start+t,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}join(t){return new V(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),s=Math.min(this.endExclusive,t.endExclusive);if(n<=s)return new V(n,s)}}class ie{static trivial(t,n){return new ie([new J(new V(0,t.length),new V(0,n.length))],!1)}static trivialTimedOut(t,n){return new ie([new J(new V(0,t.length),new V(0,n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class J{constructor(t,n){this.seq1Range=t,this.seq2Range=n}reverse(){return new J(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new J(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new J(this.seq1Range.delta(t),this.seq2Range.delta(t))}}class We{isValid(){return!0}}We.instance=new We;class ci{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new xe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&p>0&&o.get(g-1,p-1)===3&&(N+=l.get(g-1,p-1)),N+=r?r(g,p):1):N=-1;const x=Math.max(w,_,N);if(x===N){const y=g>0&&p>0?l.get(g-1,p-1):0;l.set(g,p,y+1),o.set(g,p,3)}else x===w?(l.set(g,p,0),o.set(g,p,1)):x===_&&(l.set(g,p,0),o.set(g,p,2));i.set(g,p,x)}const c=[];let u=t.length,m=n.length;function h(g,p){(g+1!==u||p+1!==m)&&c.push(new J(new V(g+1,u),new V(p+1,m))),u=g,m=p}let f=t.length-1,d=n.length-1;for(;f>=0&&d>=0;)o.get(f,d)===3?(h(f,d),f--,d--):o.get(f,d)===1?f--:d--;return h(-1,-1),c.reverse(),new ie(c,!1)}}function hs(e,t,n){let s=n;return s=fi(e,t,s),s=di(e,t,s),s}function mi(e,t,n){const s=[];for(const r of n){const i=s[s.length-1];if(!i){s.push(r);continue}r.seq1Range.start-i.seq1Range.endExclusive<=2||r.seq2Range.start-i.seq2Range.endExclusive<=2?s[s.length-1]=new J(i.seq1Range.join(r.seq1Range),i.seq2Range.join(r.seq2Range)):s.push(r)}return s}function fi(e,t,n){const s=[];n.length>0&&s.push(n[0]);for(let i=1;i0&&(l=l.delta(u))}r.push(l)}return s.length>0&&r.push(s[s.length-1]),r}function di(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let s=0;s0?n[s-1]:void 0,i=n[s],o=s+1=s.start&&e.seq2Range.start-o>=r.start&&n.getElement(e.seq2Range.start-o)===n.getElement(e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let l=0;for(;e.seq1Range.start+lu&&(u=g,c=m)}return e.delta(c)}class gi{compute(t,n,s=We.instance){if(t.length===0||n.length===0)return ie.trivial(t,n);function r(d,g){for(;dt.length||N>n.length)continue;const x=r(_,N);o.set(c,x);const y=_===p?l.get(c+1):l.get(c-1);if(l.set(c,x!==_?new fs(y,_,N,x-_):y),o.get(c)===t.length&&o.get(c)-c===n.length)break e}}let u=l.get(c);const m=[];let h=t.length,f=n.length;for(;;){const d=u?u.x+u.length:0,g=u?u.y+u.length:0;if((d!==h||g!==f)&&m.push(new J(new V(d,h),new V(g,f))),!u)break;h=u.x,f=u.y,u=u.prev}return m.reverse(),new ie(m,!1)}}class fs{constructor(t,n,s,r){this.prev=t,this.x=n,this.y=s,this.length=r}}class _i{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const s=this.negativeArr;this.negativeArr=new Int32Array(s.length*2),this.negativeArr.set(s)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const s=this.positiveArr;this.positiveArr=new Int32Array(s.length*2),this.positiveArr.set(s)}this.positiveArr[t]=n}}}class bi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class pi{constructor(){this.dynamicProgrammingDiffing=new hi,this.myersDiffingAlgorithm=new gi}computeDiff(t,n,s){const r=s.maxComputationTimeMs===0?We.instance:new ci(s.maxComputationTimeMs),i=!s.ignoreTrimWhitespace,o=new Map;function l(A){let M=o.get(A);return M===void 0&&(M=o.size,o.set(A,M)),M}const c=t.map(A=>l(A.trim())),u=n.map(A=>l(A.trim())),m=new gs(c,t),h=new gs(u,n),f=(()=>m.length+h.length<1500?this.dynamicProgrammingDiffing.compute(m,h,r,(A,M)=>t[A]===n[M]?n[M].length===0?.1:1+Math.log(1+n[M].length):.99):this.myersDiffingAlgorithm.compute(m,h))();let d=f.diffs,g=f.hitTimeout;d=hs(m,h,d);const p=[],w=A=>{if(i)for(let M=0;MA.seq1Range.start-_===A.seq2Range.start-N);const M=A.seq1Range.start-_;w(M),_=A.seq1Range.endExclusive,N=A.seq2Range.endExclusive;const E=this.refineDiff(t,n,A,r,i);E.hitTimeout&&(g=!0);for(const P of E.mappings)p.push(P)}w(t.length-_);const x=ds(p,t,n),y=[];if(s.computeMoves){const A=x.filter(E=>E.modifiedRange.isEmpty&&E.originalRange.length>=3).map(E=>new xs(E.originalRange,t)),M=new Set(x.filter(E=>E.originalRange.isEmpty&&E.modifiedRange.length>=3).map(E=>new xs(E.modifiedRange,n)));for(const E of A){let P=-1,C;for(const S of M){const v=E.computeSimilarity(S);v>P&&(P=v,C=S)}if(P>.9&&C){const S=this.refineDiff(t,n,new J(new V(E.range.startLineNumber-1,E.range.endLineNumberExclusive-1),new V(C.range.startLineNumber-1,C.range.endLineNumberExclusive-1)),r,i),v=ds(S.mappings,t,n,!0);M.delete(C),y.push(new Et(new Pt(E.range,C.range),v))}}}return new os(x,y,g)}refineDiff(t,n,s,r,i){const o=new bs(t,s.seq1Range,i),l=new bs(n,s.seq2Range,i),c=o.length+l.length<500?this.dynamicProgrammingDiffing.compute(o,l,r):this.myersDiffingAlgorithm.compute(o,l,r);let u=c.diffs;return u=hs(o,l,u),u=vi(o,l,u),u=mi(o,l,u),{mappings:u.map(h=>new Ze(o.translateRange(h.seq1Range),l.translateRange(h.seq2Range))),hitTimeout:c.hitTimeout}}}function vi(e,t,n){const s=[];let r;function i(){if(!r)return;const l=r.s1Range.length-r.deleted;r.s2Range.length-r.added,Math.max(r.deleted,r.added)+(r.count-1)>l&&s.push(new J(r.s1Range,r.s2Range)),r=void 0}for(const l of n){let c=function(d,g){var p,w,_,N;if(!r||!r.s1Range.containsRange(d)||!r.s2Range.containsRange(g))if(r&&!(r.s1Range.endExclusive0||t.length>0;){const s=e[0],r=t[0];let i;s&&(!r||s.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}function ds(e,t,n,s=!1){const r=[];for(const i of Ci(e.map(o=>xi(o,t,n)),(o,l)=>o.originalRange.overlapOrTouch(l.originalRange)||o.modifiedRange.overlapOrTouch(l.modifiedRange))){const o=i[0],l=i[i.length-1];r.push(new fe(o.originalRange.join(l.originalRange),o.modifiedRange.join(l.modifiedRange),i.map(c=>c.innerChanges[0])))}return Rt(()=>!s&&r.length>0&&r[0].originalRange.startLineNumber!==r[0].modifiedRange.startLineNumber?!1:rs(r,(i,o)=>o.originalRange.startLineNumber-i.originalRange.endLineNumberExclusive===o.modifiedRange.startLineNumber-i.modifiedRange.endLineNumberExclusive&&i.originalRange.endLineNumberExclusive=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(s=1);const i=new B(e.originalRange.startLineNumber+s,e.originalRange.endLineNumber+1+r),o=new B(e.modifiedRange.startLineNumber+s,e.modifiedRange.endLineNumber+1+r);return new fe(i,o,[e])}function*Ci(e,t){let n,s;for(const r of e)s!==void 0&&t(s,r)?n.push(r):(n&&(yield n),n=[r]),s=r;n&&(yield n)}class gs{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:_s(this.lines[t-1]),s=t===this.lines.length?0:_s(this.lines[t]);return 1e3-(n+s)}}function _s(e){let t=0;for(;t0&&n.endExclusive>=t.length&&(n=new V(n.start-1,n.endExclusive),r=!0),this.lineRange=n;for(let i=this.lineRange.start;i{var i,o,l,c,u;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Fe.None;if(this._disposed)return Fe.None;s&&(n=n.bind(s));const m=new rt(n);let h;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(m.stack=st.create(),h=this._leakageMon.check(m.stack,this._size+1)),this._listeners?this._listeners instanceof rt?((u=this._deliveryQueue)!==null&&u!==void 0||(this._deliveryQueue=new Vs),this._listeners=[this._listeners,m]):this._listeners.push(m):((o=(i=this._options)===null||i===void 0?void 0:i.onWillAddFirstListener)===null||o===void 0||o.call(i,this),this._listeners=m,(c=(l=this._options)===null||l===void 0?void 0:l.onDidAddFirstListener)===null||c===void 0||c.call(l,this)),this._size++;const f=ke(()=>{h==null||h(),this._removeListener(m)});return r instanceof _e?r.add(f):Array.isArray(r)&&r.push(f),f}),this._event}_removeListener(t){var n,s,r,i;if((s=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||s===void 0||s.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(i=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||i===void 0||i.call(r,this),this._size=0;return}const o=this._listeners,l=o.indexOf(t);if(l===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[l]=void 0;const c=this._deliveryQueue.current===this;if(this._size*Is<=o.length){let u=0;for(let m=0;m0}}class Vs{constructor(){this.i=-1,this.end=0}enqueue(t,n,s){this.i=0,this.end=s,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Os(e){return typeof e=="string"}function Us(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function it(e){const t=[];for(const n of Us(e))typeof e[n]=="function"&&t.push(n);return t}function Ws(e,t){const n=r=>function(){const i=Array.prototype.slice.call(arguments,0);return t(r,i)},s={};for(const r of e)s[r]=n(r);return s}let Bs=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Hs(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(s,r)=>{const i=r[0],o=t[i];let l=s;return typeof o=="string"?l=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(l=String(o)),l}),Bs&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function js(e,t,...n){return Hs(t,n)}function Ti(e){}var at;const Ne="en";let ot=!1,lt=!1,ut=!1,Wt=!1,qe,ct=Ne,Bt=Ne,qs,ee;const te=typeof self=="object"?self:typeof global=="object"?global:{};let q;typeof te.vscode!="undefined"&&typeof te.vscode.process!="undefined"?q=te.vscode.process:typeof process!="undefined"&&(q=process);const $s=typeof((at=q==null?void 0:q.versions)===null||at===void 0?void 0:at.electron)=="string"&&(q==null?void 0:q.type)==="renderer";if(typeof navigator=="object"&&!$s)ee=navigator.userAgent,ot=ee.indexOf("Windows")>=0,lt=ee.indexOf("Macintosh")>=0,(ee.indexOf("Macintosh")>=0||ee.indexOf("iPad")>=0||ee.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ut=ee.indexOf("Linux")>=0,(ee==null?void 0:ee.indexOf("Mobi"))>=0,Wt=!0,js({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),qe=Ne,ct=qe,Bt=navigator.language;else if(typeof q=="object"){ot=q.platform==="win32",lt=q.platform==="darwin",ut=q.platform==="linux",ut&&q.env.SNAP&&q.env.SNAP_REVISION,q.env.CI||q.env.BUILD_ARTIFACTSTAGINGDIRECTORY,qe=Ne,ct=Ne;const e=q.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];qe=t.locale,Bt=t.osLocale,ct=n||Ne,qs=t._translationsConfigFile}catch(t){}}else console.error("Unable to resolve platform.");const Te=ot,Gs=lt;Wt&&te.importScripts;const re=ee,zs=typeof te.postMessage=="function"&&!te.importScripts;(()=>{if(zs){const e=[];te.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let s=0,r=e.length;s{const s=++t;e.push({id:s,callback:n}),te.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})();const Ys=!!(re&&re.indexOf("Chrome")>=0);re&&re.indexOf("Firefox")>=0,!Ys&&re&&re.indexOf("Safari")>=0,re&&re.indexOf("Edg/")>=0,re&&re.indexOf("Android")>=0;class Js{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class Ht{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var jt;function Xs(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Qs(e){return e.split(/\r\n|\r|\n/)}function Zs(e){for(let t=0,n=e.length;t=0;n--){const s=e.charCodeAt(n);if(s!==32&&s!==9)return n}return-1}function qt(e){return e>=65&&e<=90}function ht(e){return 55296<=e&&e<=56319}function er(e){return 56320<=e&&e<=57343}function tr(e,t){return(e-55296<<10)+(t-56320)+65536}function nr(e,t,n){const s=e.charCodeAt(n);if(ht(s)&&n+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Z.cache=new Js(e=>{function t(u){const m=new Map;for(let h=0;h!u.startsWith("_")&&u in r);i.length===0&&(i=["_default"]);let o;for(const u of i){const m=t(r[u]);o=s(o,m)}const l=t(r._common),c=n(l,o);return new Z(c)}),Z._locales=new Ht(()=>Object.keys(Z.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class ae{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ae.getRawData())),this._data}static isInvisibleCharacter(t){return ae.getData().has(t)}static get codePoints(){return ae.getData()}}ae._data=void 0;const ir="$initialize";class ar{constructor(t,n,s,r){this.vsWorker=t,this.req=n,this.method=s,this.args=r,this.type=0}}class $t{constructor(t,n,s,r){this.vsWorker=t,this.seq=n,this.res=s,this.err=r,this.type=1}}class or{constructor(t,n,s,r){this.vsWorker=t,this.req=n,this.eventName=s,this.arg=r,this.type=2}}class lr{constructor(t,n,s){this.vsWorker=t,this.req=n,this.event=s,this.type=3}}class ur{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class cr{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){const s=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[s]={resolve:r,reject:i},this._send(new ar(this._workerId,s,t,n))})}listen(t,n){let s=null;const r=new se({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,r),this._send(new or(this._workerId,s,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new ur(this._workerId,s)),s=null}});return r.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let s=t.err;t.err.$isError&&(s=new Error,s.name=t.err.name,s.message=t.err.message,s.stack=t.err.stack),n.reject(s);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.method,t.args).then(r=>{this._send(new $t(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=Ot(r.detail)),this._send(new $t(this._workerId,n,void 0,Ot(r)))})}_handleSubscribeEventMessage(t){const n=t.req,s=this._handler.handleEvent(t.eventName,t.arg)(r=>{this._send(new lr(this._workerId,n,r))});this._pendingEvents.set(n,s)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let s=0;sfunction(){const l=Array.prototype.slice.call(arguments,0);return t(o,l)},r=o=>function(l){return n(o,l)},i={};for(const o of e){if(zt(o)){i[o]=r(o);continue}if(Gt(o)){i[o]=n(o,void 0);continue}i[o]=s(o)}return i}class mr{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new cr({sendMessage:(s,r)=>{t(s,r)},handleMessage:(s,r)=>this._handleMessage(s,r),handleEvent:(s,r)=>this._handleEvent(s,r)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===ir)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(s){return Promise.reject(s)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(zt(t)){const s=this._requestHandler[t].call(this._requestHandler,n);if(typeof s!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return s}if(Gt(t)){const s=this._requestHandler[t];if(typeof s!="function")throw new Error(`Missing event ${t} on request handler.`);return s}throw new Error(`Malformed event name ${t}`)}initialize(t,n,s,r){this._protocol.setWorkerId(t);const l=hr(r,(c,u)=>this._protocol.sendMessage(c,u),(c,u)=>this._protocol.listen(c,u));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(it(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((c,u)=>{const m=globalThis.require;m([s],h=>{if(this._requestHandler=h.create(l),!this._requestHandler){u(new Error("No RequestHandler!"));return}c(it(this._requestHandler))},u)}))}}class oe{constructor(t,n,s,r){this.originalStart=t,this.originalLength=n,this.modifiedStart=s,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Yt(e,t){return(t<<5)-t+e|0}function fr(e,t){t=Yt(149417,t);for(let n=0,s=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new oe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class le{constructor(t,n,s=null){this.ContinueProcessingPredicate=s,this._originalSequence=t,this._modifiedSequence=n;const[r,i,o]=le._getElements(t),[l,c,u]=le._getElements(n);this._hasStrings=o&&u,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=l,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(le._isStringArray(n)){const s=new Int32Array(n.length);for(let r=0,i=n.length;r=t&&r>=s&&this.ElementsAreEqual(n,r);)n--,r--;if(t>n||s>r){let h;return s<=r?(we.Assert(t===n+1,"originalStart should only be one more than originalEnd"),h=[new oe(t,0,s,r-s+1)]):t<=n?(we.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),h=[new oe(t,n-t+1,s,0)]):(we.Assert(t===n+1,"originalStart should only be one more than originalEnd"),we.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}const o=[0],l=[0],c=this.ComputeRecursionPoint(t,n,s,r,o,l,i),u=o[0],m=l[0];if(c!==null)return c;if(!i[0]){const h=this.ComputeDiffRecursive(t,u,s,m,i);let f=[];return i[0]?f=[new oe(u+1,n-(u+1)+1,m+1,r-(m+1)+1)]:f=this.ComputeDiffRecursive(u+1,n,m+1,r,i),this.ConcatenateChanges(h,f)}return[new oe(t,n-t+1,s,r-s+1)]}WALKTRACE(t,n,s,r,i,o,l,c,u,m,h,f,d,g,p,w,_,N){let x=null,y=null,A=new Xt,M=n,P=s,E=d[0]-w[0]-r,C=-1073741824,S=this.m_forwardHistory.length-1;do{const v=E+t;v===M||v=0&&(u=this.m_forwardHistory[S],t=u[0],M=1,P=u.length-1)}while(--S>=-1);if(x=A.getReverseChanges(),N[0]){let v=d[0]+1,b=w[0]+1;if(x!==null&&x.length>0){const R=x[x.length-1];v=Math.max(v,R.getOriginalEnd()),b=Math.max(b,R.getModifiedEnd())}y=[new oe(v,f-v+1,b,p-b+1)]}else{A=new Xt,M=o,P=l,E=d[0]-w[0]-c,C=1073741824,S=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const v=E+i;v===M||v=m[v+1]?(h=m[v+1]-1,g=h-E-c,h>C&&A.MarkNextChange(),C=h+1,A.AddOriginalElement(h+1,g+1),E=v+1-i):(h=m[v-1],g=h-E-c,h>C&&A.MarkNextChange(),C=h,A.AddModifiedElement(h+1,g+1),E=v-1-i),S>=0&&(m=this.m_reverseHistory[S],i=m[0],M=1,P=m.length-1)}while(--S>=-1);y=A.getChanges()}return this.ConcatenateChanges(x,y)}ComputeRecursionPoint(t,n,s,r,i,o,l){let c=0,u=0,m=0,h=0,f=0,d=0;t--,s--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-t+(r-s),p=g+1,w=new Int32Array(p),_=new Int32Array(p),N=r-s,x=n-t,y=t-s,A=n-r,P=(x-N)%2===0;w[N]=t,_[x]=n,l[0]=!1;for(let E=1;E<=g/2+1;E++){let C=0,S=0;m=this.ClipDiagonalBound(N-E,E,N,p),h=this.ClipDiagonalBound(N+E,E,N,p);for(let b=m;b<=h;b+=2){b===m||bC+S&&(C=c,S=u),!P&&Math.abs(b-x)<=E-1&&c>=_[b])return i[0]=c,o[0]=u,R<=_[b]&&1447>0&&E<=1447+1?this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,P,l):null}const v=(C-t+(S-s)-E)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(C,v))return l[0]=!0,i[0]=C,o[0]=S,v>0&&1447>0&&E<=1447+1?this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,P,l):(t++,s++,[new oe(t,n-t+1,s,r-s+1)]);f=this.ClipDiagonalBound(x-E,E,x,p),d=this.ClipDiagonalBound(x+E,E,x,p);for(let b=f;b<=d;b+=2){b===f||b=_[b+1]?c=_[b+1]-1:c=_[b-1],u=c-(b-x)-A;const R=c;for(;c>t&&u>s&&this.ElementsAreEqual(c,u);)c--,u--;if(_[b]=c,P&&Math.abs(b-N)<=E&&c<=w[b])return i[0]=c,o[0]=u,R>=w[b]&&1447>0&&E<=1447+1?this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,P,l):null}if(E<=1447){let b=new Int32Array(h-m+2);b[0]=N-m+1,Le.Copy2(w,m,b,1,h-m+1),this.m_forwardHistory.push(b),b=new Int32Array(d-f+2),b[0]=x-f+1,Le.Copy2(_,f,b,1,d-f+1),this.m_reverseHistory.push(b)}}return this.WALKTRACE(N,m,h,y,x,f,d,A,w,_,c,n,i,u,r,o,P,l)}PrettifyChanges(t){for(let n=0;n0,l=s.modifiedLength>0;for(;s.originalStart+s.originalLength=0;n--){const s=t[n];let r=0,i=0;if(n>0){const h=t[n-1];r=h.originalStart+h.originalLength,i=h.modifiedStart+h.modifiedLength}const o=s.originalLength>0,l=s.modifiedLength>0;let c=0,u=this._boundaryScore(s.originalStart,s.originalLength,s.modifiedStart,s.modifiedLength);for(let h=1;;h++){const f=s.originalStart-h,d=s.modifiedStart-h;if(fu&&(u=p,c=h)}s.originalStart-=c,s.modifiedStart-=c;const m=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],m)){t[n-1]=m[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,s=t.length;n0&&d>c&&(c=d,u=h,m=f)}return c>0?[u,m]:null}_contiguousSequenceScore(t,n,s){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const s=t+n;if(this._OriginalIsBoundary(s-1)||this._OriginalIsBoundary(s))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const s=t+n;if(this._ModifiedIsBoundary(s-1)||this._ModifiedIsBoundary(s))return!0}return!1}_boundaryScore(t,n,s,r){const i=this._OriginalRegionIsBoundary(t,n)?1:0,o=this._ModifiedRegionIsBoundary(s,r)?1:0;return i+o}ConcatenateChanges(t,n){const s=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],s)){const r=new Array(t.length+n.length-1);return Le.Copy(t,0,r,0,t.length-1),r[t.length-1]=s[0],Le.Copy(n,1,r,t.length,n.length-1),r}else{const r=new Array(t.length+n.length);return Le.Copy(t,0,r,0,t.length),Le.Copy(n,0,r,t.length,n.length),r}}ChangesOverlap(t,n,s){if(we.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),we.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const r=t.originalStart;let i=t.originalLength;const o=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),s[0]=new oe(r,i,o,l),!0}else return s[0]=null,!1}ClipDiagonalBound(t,n,s,r){if(t>=0&&t",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}},cwd(){return{ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_6828_MLGRPUXSXUGOABLP",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}.VSCODE_CWD||process.cwd()}}:Ae={get platform(){return Te?"win32":Gs?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const $e=Ae.cwd;Ae.env;const gr=Ae.platform,_r=65,br=97,pr=90,vr=122,ue=46,j=47,z=92,ce=58,Sr=63;class Qt extends Error{constructor(t,n,s){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const i=t.indexOf(".")!==-1?"property":"argument";let o=`The "${t}" ${i} ${r} of type ${n}`;o+=`. Received type ${typeof s}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function xr(e,t){if(e===null||typeof e!="object")throw new Qt(t,"Object",e)}function W(e,t){if(typeof e!="string")throw new Qt(t,"string",e)}const he=gr==="win32";function D(e){return e===j||e===z}function mt(e){return e===j}function me(e){return e>=_r&&e<=pr||e>=br&&e<=vr}function Ge(e,t,n,s){let r="",i=0,o=-1,l=0,c=0;for(let u=0;u<=e.length;++u){if(u2){const m=r.lastIndexOf(n);m===-1?(r="",i=0):(r=r.slice(0,m),i=r.length-1-r.lastIndexOf(n)),o=u,l=0;continue}else if(r.length!==0){r="",i=0,o=u,l=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",i=2)}else r.length>0?r+=`${n}${e.slice(o+1,u)}`:r=e.slice(o+1,u),i=u-o-1;o=u,l=0}else c===ue&&l!==-1?++l:l=-1}return r}function Zt(e,t){xr(t,"pathObject");const n=t.dir||t.root,s=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${s}`:`${n}${e}${s}`:s}const G={resolve(...e){let t="",n="",s=!1;for(let r=e.length-1;r>=-1;r--){let i;if(r>=0){if(i=e[r],W(i,"path"),i.length===0)continue}else t.length===0?i=$e():(i={ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_6828_MLGRPUXSXUGOABLP",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}[`=${t}`]||$e(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===z)&&(i=`${t}\\`));const o=i.length;let l=0,c="",u=!1;const m=i.charCodeAt(0);if(o===1)D(m)&&(l=1,u=!0);else if(D(m))if(u=!0,D(i.charCodeAt(1))){let h=2,f=h;for(;h2&&D(i.charCodeAt(2))&&(u=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(s){if(t.length>0)break}else if(n=`${i.slice(l)}\\${n}`,s=u,u&&t.length>0)break}return n=Ge(n,!s,"\\",D),s?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){W(e,"path");const t=e.length;if(t===0)return".";let n=0,s,r=!1;const i=e.charCodeAt(0);if(t===1)return mt(i)?"\\":e;if(D(i))if(r=!0,D(e.charCodeAt(1))){let l=2,c=l;for(;l2&&D(e.charCodeAt(2))&&(r=!0,n=3));let o=n0&&D(e.charCodeAt(t-1))&&(o+="\\"),s===void 0?r?`\\${o}`:o:r?`${s}\\${o}`:`${s}${o}`},isAbsolute(e){W(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return D(n)||t>2&&me(n)&&e.charCodeAt(1)===ce&&D(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let i=0;i0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let s=!0,r=0;if(typeof n=="string"&&D(n.charCodeAt(0))){++r;const i=n.length;i>1&&D(n.charCodeAt(1))&&(++r,i>2&&(D(n.charCodeAt(2))?++r:s=!1))}if(s){for(;r=2&&(t=`\\${t.slice(r)}`)}return G.normalize(t)},relative(e,t){if(W(e,"from"),W(t,"to"),e===t)return"";const n=G.resolve(e),s=G.resolve(t);if(n===s||(e=n.toLowerCase(),t=s.toLowerCase(),e===t))return"";let r=0;for(;rr&&e.charCodeAt(i-1)===z;)i--;const o=i-r;let l=0;for(;ll&&t.charCodeAt(c-1)===z;)c--;const u=c-l,m=om){if(t.charCodeAt(l+f)===z)return s.slice(l+f+1);if(f===2)return s.slice(l+f)}o>m&&(e.charCodeAt(r+f)===z?h=f:f===2&&(h=3)),h===-1&&(h=0)}let d="";for(f=r+h+1;f<=i;++f)(f===i||e.charCodeAt(f)===z)&&(d+=d.length===0?"..":"\\..");return l+=h,d.length>0?`${d}${s.slice(l,c)}`:(s.charCodeAt(l)===z&&++l,s.slice(l,c))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=G.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===z){if(t.charCodeAt(1)===z){const n=t.charCodeAt(2);if(n!==Sr&&n!==ue)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(me(t.charCodeAt(0))&&t.charCodeAt(1)===ce&&t.charCodeAt(2)===z)return`\\\\?\\${t}`;return e},dirname(e){W(e,"path");const t=e.length;if(t===0)return".";let n=-1,s=0;const r=e.charCodeAt(0);if(t===1)return D(r)?e:".";if(D(r)){if(n=s=1,D(e.charCodeAt(1))){let l=2,c=l;for(;l2&&D(e.charCodeAt(2))?3:2,s=n);let i=-1,o=!0;for(let l=t-1;l>=s;--l)if(D(e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;if(i===-1){if(n===-1)return".";i=n}return e.slice(0,i)},basename(e,t){t!==void 0&&W(t,"ext"),W(e,"path");let n=0,s=-1,r=!0,i;if(e.length>=2&&me(e.charCodeAt(0))&&e.charCodeAt(1)===ce&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){const c=e.charCodeAt(i);if(D(c)){if(!r){n=i+1;break}}else l===-1&&(r=!1,l=i+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(s=i):(o=-1,s=l))}return n===s?s=l:s===-1&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(D(e.charCodeAt(i))){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":e.slice(n,s)},extname(e){W(e,"path");let t=0,n=-1,s=0,r=-1,i=!0,o=0;e.length>=2&&e.charCodeAt(1)===ce&&me(e.charCodeAt(0))&&(t=s=2);for(let l=e.length-1;l>=t;--l){const c=e.charCodeAt(l);if(D(c)){if(!i){s=l+1;break}continue}r===-1&&(i=!1,r=l+1),c===ue?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||r===-1||o===0||o===1&&n===r-1&&n===s+1?"":e.slice(n,r)},format:Zt.bind(null,"\\"),parse(e){W(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let s=0,r=e.charCodeAt(0);if(n===1)return D(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(D(r)){if(s=1,D(e.charCodeAt(1))){let h=2,f=h;for(;h0&&(t.root=e.slice(0,s));let i=-1,o=s,l=-1,c=!0,u=e.length-1,m=0;for(;u>=s;--u){if(r=e.charCodeAt(u),D(r)){if(!c){o=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===ue?i===-1?i=u:m!==1&&(m=1):i!==-1&&(m=-1)}return l!==-1&&(i===-1||m===0||m===1&&i===l-1&&i===o+1?t.base=t.name=e.slice(o,l):(t.name=e.slice(o,i),t.base=e.slice(o,l),t.ext=e.slice(i,l))),o>0&&o!==s?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Cr=(()=>{if(he){const e=/\\/g;return()=>{const t=$e().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>$e()})(),Y={resolve(...e){let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const r=s>=0?e[s]:Cr();W(r,"path"),r.length!==0&&(t=`${r}/${t}`,n=r.charCodeAt(0)===j)}return t=Ge(t,!n,"/",mt),n?`/${t}`:t.length>0?t:"."},normalize(e){if(W(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===j,n=e.charCodeAt(e.length-1)===j;return e=Ge(e,!t,"/",mt),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return W(e,"path"),e.length>0&&e.charCodeAt(0)===j},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=s:t+=`/${s}`)}return t===void 0?".":Y.normalize(t)},relative(e,t){if(W(e,"from"),W(t,"to"),e===t||(e=Y.resolve(e),t=Y.resolve(t),e===t))return"";const n=1,s=e.length,r=s-n,i=1,o=t.length-i,l=rl){if(t.charCodeAt(i+u)===j)return t.slice(i+u+1);if(u===0)return t.slice(i+u)}else r>l&&(e.charCodeAt(n+u)===j?c=u:u===0&&(c=0));let m="";for(u=n+c+1;u<=s;++u)(u===s||e.charCodeAt(u)===j)&&(m+=m.length===0?"..":"/..");return`${m}${t.slice(i+c)}`},toNamespacedPath(e){return e},dirname(e){if(W(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===j;let n=-1,s=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===j){if(!s){n=r;break}}else s=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&W(t,"ext"),W(e,"path");let n=0,s=-1,r=!0,i;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=0;--i){const c=e.charCodeAt(i);if(c===j){if(!r){n=i+1;break}}else l===-1&&(r=!1,l=i+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(s=i):(o=-1,s=l))}return n===s?s=l:s===-1&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===j){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":e.slice(n,s)},extname(e){W(e,"path");let t=-1,n=0,s=-1,r=!0,i=0;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===j){if(!r){n=o+1;break}continue}s===-1&&(r=!1,s=o+1),l===ue?t===-1?t=o:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||s===-1||i===0||i===1&&t===s-1&&t===n+1?"":e.slice(t,s)},format:Zt.bind(null,"/"),parse(e){W(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===j;let s;n?(t.root="/",s=1):s=0;let r=-1,i=0,o=-1,l=!0,c=e.length-1,u=0;for(;c>=s;--c){const m=e.charCodeAt(c);if(m===j){if(!l){i=c+1;break}continue}o===-1&&(l=!1,o=c+1),m===ue?r===-1?r=c:u!==1&&(u=1):r!==-1&&(u=-1)}if(o!==-1){const m=i===0&&n?1:i;r===-1||u===0||u===1&&r===o-1&&r===i+1?t.base=t.name=e.slice(m,o):(t.name=e.slice(m,r),t.base=e.slice(m,o),t.ext=e.slice(r,o))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Y.win32=G.win32=G,Y.posix=G.posix=Y,he?G.normalize:Y.normalize,he?G.resolve:Y.resolve,he?G.relative:Y.relative,he?G.dirname:Y.dirname,he?G.basename:Y.basename,he?G.extname:Y.extname,he?G.sep:Y.sep;const Nr=/^\w[\w\d+.-]*$/,wr=/^\//,Lr=/^\/\//;function Ar(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Nr.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!wr.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Lr.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Rr(e,t){return!e&&!t?"file":e}function Er(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ne&&(t=ne+t):t=ne;break}return t}const O="",ne="/",Pr=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class be{static isUri(t){return t instanceof be?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,s,r,i,o=!1){typeof t=="object"?(this.scheme=t.scheme||O,this.authority=t.authority||O,this.path=t.path||O,this.query=t.query||O,this.fragment=t.fragment||O):(this.scheme=Rr(t,o),this.authority=n||O,this.path=Er(this.scheme,s||O),this.query=r||O,this.fragment=i||O,Ar(this,o))}get fsPath(){return ft(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:s,path:r,query:i,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=O),s===void 0?s=this.authority:s===null&&(s=O),r===void 0?r=this.path:r===null&&(r=O),i===void 0?i=this.query:i===null&&(i=O),o===void 0?o=this.fragment:o===null&&(o=O),n===this.scheme&&s===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new Re(n,s,r,i,o)}static parse(t,n=!1){const s=Pr.exec(t);return s?new Re(s[2]||O,ze(s[4]||O),ze(s[5]||O),ze(s[7]||O),ze(s[9]||O),n):new Re(O,O,O,O,O)}static file(t){let n=O;if(Te&&(t=t.replace(/\\/g,ne)),t[0]===ne&&t[1]===ne){const s=t.indexOf(ne,2);s===-1?(n=t.substring(2),t=ne):(n=t.substring(2,s),t=t.substring(s)||ne)}return new Re("file",n,t,O,O)}static from(t,n){return new Re(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let s;return Te&&t.scheme==="file"?s=be.file(G.join(ft(t,!0),...n)).path:s=Y.join(t.path,...n),t.with({path:s})}toString(t=!1){return dt(this,t)}toJSON(){return this}static revive(t){var n,s;if(t){if(t instanceof be)return t;{const r=new Re(t);return r._formatted=(n=t.external)!==null&&n!==void 0?n:null,r._fsPath=t._sep===Kt&&(s=t.fsPath)!==null&&s!==void 0?s:null,r}}else return t}}const Kt=Te?1:void 0;class Re extends be{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ft(this,!1)),this._fsPath}toString(t=!1){return t?dt(this,!0):(this._formatted||(this._formatted=dt(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Kt),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const en={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function tn(e,t,n){let s,r=-1;for(let i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)r!==-1&&(s+=encodeURIComponent(e.substring(r,i)),r=-1),s!==void 0&&(s+=e.charAt(i));else{s===void 0&&(s=e.substr(0,i));const l=en[o];l!==void 0?(r!==-1&&(s+=encodeURIComponent(e.substring(r,i)),r=-1),s+=l):r===-1&&(r=i)}}return r!==-1&&(s+=encodeURIComponent(e.substring(r))),s!==void 0?s:e}function Dr(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Te&&(n=n.replace(/\//g,"\\")),n}function dt(e,t){const n=t?Dr:tn;let s="",{scheme:r,authority:i,path:o,query:l,fragment:c}=e;if(r&&(s+=r,s+=":"),(i||r==="file")&&(s+=ne,s+=ne),i){let u=i.indexOf("@");if(u!==-1){const m=i.substr(0,u);i=i.substr(u+1),u=m.lastIndexOf(":"),u===-1?s+=n(m,!1,!1):(s+=n(m.substr(0,u),!1,!1),s+=":",s+=n(m.substr(u+1),!1,!0)),s+="@"}i=i.toLowerCase(),u=i.lastIndexOf(":"),u===-1?s+=n(i,!1,!0):(s+=n(i.substr(0,u),!1,!0),s+=i.substr(u))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const u=o.charCodeAt(1);u>=65&&u<=90&&(o=`/${String.fromCharCode(u+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const u=o.charCodeAt(0);u>=65&&u<=90&&(o=`${String.fromCharCode(u+32)}:${o.substr(2)}`)}s+=n(o,!0,!1)}return l&&(s+="?",s+=n(l,!1,!1)),c&&(s+="#",s+=t?c:tn(c,!1,!1)),s}function nn(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+nn(e.substr(3)):e}}const sn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ze(e){return e.match(sn)?e.replace(sn,t=>nn(t)):e}class ${constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new $(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return $.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return $.isBefore(this,t)}static isBefore(t,n){return t.lineNumbers||t===s&&n>r?(this.startLineNumber=s,this.startColumn=r,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=s,this.endColumn=r)}isEmpty(){return k.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return k.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return k.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return k.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return k.plusRange(this,t)}static plusRange(t,n){let s,r,i,o;return n.startLineNumbert.endLineNumber?(i=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(i=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(i=t.endLineNumber,o=t.endColumn),new k(s,r,i,o)}intersectRanges(t){return k.intersectRanges(this,t)}static intersectRanges(t,n){let s=t.startLineNumber,r=t.startColumn,i=t.endLineNumber,o=t.endColumn;const l=n.startLineNumber,c=n.startColumn,u=n.endLineNumber,m=n.endColumn;return su?(i=u,o=m):i===u&&(o=Math.min(o,m)),s>i||s===i&&r>o?null:new k(s,r,i,o)}equalsRange(t){return k.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return k.getEndPosition(this)}static getEndPosition(t){return new $(t.endLineNumber,t.endColumn)}getStartPosition(){return k.getStartPosition(this)}static getStartPosition(t){return new $(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new k(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new k(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return k.collapseToStart(this)}static collapseToStart(t){return new k(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return k.collapseToEnd(this)}static collapseToEnd(t){return new k(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new k(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new k(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new k(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}toJSON(){return this}}var rn;(function(e){function t(r){return r<0}e.isLessThan=t;function n(r){return r>0}e.isGreaterThan=n;function s(r){return r===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(rn||(rn={}));function an(e){return e<0?0:e>255?255:e|0}function Ee(e){return e<0?0:e>4294967295?4294967295:e|0}class yr{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Ee(t);const s=this.values,r=this.prefixSum,i=n.length;return i===0?!1:(this.values=new Uint32Array(s.length+i),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t),t+i),this.values.set(n,t),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Ee(t),n=Ee(n),this.values[t]===n?!1:(this.values[t]=n,t-1=s.length)return!1;const i=s.length-t;return n>=i&&(n=i),n===0?!1:(this.values=new Uint32Array(s.length-n),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Ee(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let s=n;s<=t;s++)this.prefixSum[s]=this.prefixSum[s-1]+this.values[s];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,s=this.values.length-1,r=0,i=0,o=0;for(;n<=s;)if(r=n+(s-n)/2|0,i=this.prefixSum[r],o=i-this.values[r],t=i)n=r+1;else break;return new Mr(r,t-o)}}class Mr{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class kr{constructor(t,n,s,r){this._uri=t,this._lines=n,this._eol=s,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const s of n)this._acceptDeleteRange(s.range),this._acceptInsertText(new $(s.range.startLineNumber,s.range.startColumn),s.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,s=new Uint32Array(n);for(let r=0;r/?";function Tr(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Fr)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const on=Tr();function Ir(e){let t=on;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const ln=new Ms;ln.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function gt(e,t,n,s,r){if(r||(r=He.first(ln)),n.length>r.maxLen){let u=e-r.maxLen/2;return u<0?u=0:s+=u,n=n.substring(u,e+r.maxLen/2),gt(e,t,n,s,r)}const i=Date.now(),o=e-1-s;let l=-1,c=null;for(let u=1;!(Date.now()-i>=r.timeBudget);u++){const m=o-r.windowSize*u;t.lastIndex=Math.max(0,m);const h=Vr(t,n,o,l);if(!h&&c||(c=h,m<=0))break;l=m}if(c){const u={word:c[0],startColumn:s+1+c.index,endColumn:s+1+c.index+c[0].length};return t.lastIndex=0,u}return null}function Vr(e,t,n,s){let r;for(;r=e.exec(t);){const i=r.index||0;if(i<=n&&e.lastIndex>=n)return r;if(s>0&&i>s)return null}return null}class _t{constructor(t){const n=an(t);this._defaultValue=n,this._asciiMap=_t._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const s=an(n);t>=0&&t<256?this._asciiMap[t]=s:this._map.set(t,s)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Or{constructor(t,n,s){const r=new Uint8Array(t*n);for(let i=0,o=t*n;in&&(n=c),l>s&&(s=l),u>s&&(s=u)}n++,s++;const r=new Or(s,n,0);for(let i=0,o=t.length;i=this._maxCharCode?0:this._states.get(t,n)}}let bt=null;function Wr(){return bt===null&&(bt=new Ur([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),bt}let Ie=null;function Br(){if(Ie===null){Ie=new _t(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;nr);if(r>0){const l=n.charCodeAt(r-1),c=n.charCodeAt(o);(l===40&&c===41||l===91&&c===93||l===123&&c===125)&&o--}return{range:{startLineNumber:s,startColumn:r+1,endLineNumber:s,endColumn:o+2},url:n.substring(r,o+1)}}static computeLinks(t,n=Wr()){const s=Br(),r=[];for(let i=1,o=t.getLineCount();i<=o;i++){const l=t.getLineContent(i),c=l.length;let u=0,m=0,h=0,f=1,d=!1,g=!1,p=!1,w=!1;for(;u=0?(r+=s?1:-1,r<0?r=t.length-1:r%=t.length,t[r]):null}}pt.INSTANCE=new pt;const un=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Je;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Xe?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:nt.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:un})})(Je||(Je={}));class Xe{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?un:(this._emitter||(this._emitter=new se),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class jr{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Xe),this._token}cancel(){this._token?this._token instanceof Xe&&this._token.cancel():this._token=Je.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Xe&&this._token.dispose():this._token=Je.None}}class vt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const Qe=new vt,St=new vt,xt=new vt,qr=new Array(230),$r=Object.create(null),Gr=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],s=[];for(const r of t){const[i,o,l,c,u,m,h,f,d]=r;if(s[o]||(s[o]=!0,$r[l]=o,Gr[l.toLowerCase()]=o),!n[c]){if(n[c]=!0,!u)throw new Error(`String representation missing for key code ${c} around scan code ${l}`);Qe.define(c,u),St.define(c,f||u),xt.define(c,d||f||u)}m&&(qr[m]=c)}})();var cn;(function(e){function t(l){return Qe.keyCodeToStr(l)}e.toString=t;function n(l){return Qe.strToKeyCode(l)}e.fromString=n;function s(l){return St.keyCodeToStr(l)}e.toUserSettingsUS=s;function r(l){return xt.keyCodeToStr(l)}e.toUserSettingsGeneral=r;function i(l){return St.strToKeyCode(l)||xt.strToKeyCode(l)}e.fromUserSettings=i;function o(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Qe.keyCodeToStr(l)}e.toElectronAccelerator=o})(cn||(cn={}));function zr(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class X extends k{constructor(t,n,s,r){super(t,n,s,r),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=s,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return X.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new X(this.startLineNumber,this.startColumn,t,n):new X(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new $(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new $(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new X(t,n,this.endLineNumber,this.endColumn):new X(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new X(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new X(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new X(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new X(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let s=0,r=t.length;s{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var s;(s=this._factories.get(t))===null||s===void 0||s.dispose();const r=new Jr(this,t,n);return this._factories.set(t,r),ke(()=>{const i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}getOrCreate(t){return Ct(this,void 0,void 0,function*(){const n=this.get(t);if(n)return n;const s=this._factories.get(t);return!s||s.isResolved?null:(yield s.resolve(),this.get(t))})}isResolved(t){if(this.get(t))return!0;const s=this._factories.get(t);return!!(!s||s.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Jr extends Fe{get isResolved(){return this._isResolved}constructor(t,n,s){super(),this._registry=t,this._languageId=n,this._factory=s,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Ct(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Ct(this,void 0,void 0,function*(){const t=yield this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))})}}class Xr{constructor(t,n,s){this.offset=t,this.type=n,this.language=s,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var mn;(function(e){const t=new Map;t.set(0,L.symbolMethod),t.set(1,L.symbolFunction),t.set(2,L.symbolConstructor),t.set(3,L.symbolField),t.set(4,L.symbolVariable),t.set(5,L.symbolClass),t.set(6,L.symbolStruct),t.set(7,L.symbolInterface),t.set(8,L.symbolModule),t.set(9,L.symbolProperty),t.set(10,L.symbolEvent),t.set(11,L.symbolOperator),t.set(12,L.symbolUnit),t.set(13,L.symbolValue),t.set(15,L.symbolEnum),t.set(14,L.symbolConstant),t.set(15,L.symbolEnum),t.set(16,L.symbolEnumMember),t.set(17,L.symbolKeyword),t.set(27,L.symbolSnippet),t.set(18,L.symbolText),t.set(19,L.symbolColor),t.set(20,L.symbolFile),t.set(21,L.symbolReference),t.set(22,L.symbolCustomColor),t.set(23,L.symbolFolder),t.set(24,L.symbolTypeParameter),t.set(25,L.account),t.set(26,L.issues);function n(i){let o=t.get(i);return o||(console.info("No codicon found for CompletionItemKind "+i),o=L.symbolProperty),o}e.toIcon=n;const s=new Map;s.set("method",0),s.set("function",1),s.set("constructor",2),s.set("field",3),s.set("variable",4),s.set("class",5),s.set("struct",6),s.set("interface",7),s.set("module",8),s.set("property",9),s.set("event",10),s.set("operator",11),s.set("unit",12),s.set("value",13),s.set("constant",14),s.set("enum",15),s.set("enum-member",16),s.set("enumMember",16),s.set("keyword",17),s.set("snippet",27),s.set("text",18),s.set("color",19),s.set("file",20),s.set("reference",21),s.set("customcolor",22),s.set("folder",23),s.set("type-parameter",24),s.set("typeParameter",24),s.set("account",25),s.set("issue",26);function r(i,o){let l=s.get(i);return typeof l=="undefined"&&!o&&(l=9),l}e.fromString=r})(mn||(mn={}));var fn;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(fn||(fn={}));var dn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(dn||(dn={}));var gn;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(gn||(gn={}));var _n;(function(e){const t=new Map;t.set(0,L.symbolFile),t.set(1,L.symbolModule),t.set(2,L.symbolNamespace),t.set(3,L.symbolPackage),t.set(4,L.symbolClass),t.set(5,L.symbolMethod),t.set(6,L.symbolProperty),t.set(7,L.symbolField),t.set(8,L.symbolConstructor),t.set(9,L.symbolEnum),t.set(10,L.symbolInterface),t.set(11,L.symbolFunction),t.set(12,L.symbolVariable),t.set(13,L.symbolConstant),t.set(14,L.symbolString),t.set(15,L.symbolNumber),t.set(16,L.symbolBoolean),t.set(17,L.symbolArray),t.set(18,L.symbolObject),t.set(19,L.symbolKey),t.set(20,L.symbolNull),t.set(21,L.symbolEnumMember),t.set(22,L.symbolStruct),t.set(23,L.symbolEvent),t.set(24,L.symbolOperator),t.set(25,L.symbolTypeParameter);function n(s){let r=t.get(s);return r||(console.info("No codicon found for SymbolKind "+s),r=L.symbolProperty),r}e.toIcon=n})(_n||(_n={}));var bn;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(bn||(bn={}));var pn;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(pn||(pn={})),new Yr;var vn;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(vn||(vn={}));var Sn;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Sn||(Sn={}));var xn;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(xn||(xn={}));var Cn;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Cn||(Cn={}));var Nn;(function(e){e[e.Deprecated=1]="Deprecated"})(Nn||(Nn={}));var wn;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(wn||(wn={}));var Ln;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Ln||(Ln={}));var An;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(An||(An={}));var Rn;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Rn||(Rn={}));var En;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(En||(En={}));var Pn;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Pn||(Pn={}));var Dn;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=7]="autoClosingDelete",e[e.autoClosingOvertype=8]="autoClosingOvertype",e[e.autoClosingQuotes=9]="autoClosingQuotes",e[e.autoIndent=10]="autoIndent",e[e.automaticLayout=11]="automaticLayout",e[e.autoSurround=12]="autoSurround",e[e.bracketPairColorization=13]="bracketPairColorization",e[e.guides=14]="guides",e[e.codeLens=15]="codeLens",e[e.codeLensFontFamily=16]="codeLensFontFamily",e[e.codeLensFontSize=17]="codeLensFontSize",e[e.colorDecorators=18]="colorDecorators",e[e.colorDecoratorsLimit=19]="colorDecoratorsLimit",e[e.columnSelection=20]="columnSelection",e[e.comments=21]="comments",e[e.contextmenu=22]="contextmenu",e[e.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",e[e.cursorBlinking=24]="cursorBlinking",e[e.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",e[e.cursorStyle=26]="cursorStyle",e[e.cursorSurroundingLines=27]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",e[e.cursorWidth=29]="cursorWidth",e[e.disableLayerHinting=30]="disableLayerHinting",e[e.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",e[e.domReadOnly=32]="domReadOnly",e[e.dragAndDrop=33]="dragAndDrop",e[e.dropIntoEditor=34]="dropIntoEditor",e[e.emptySelectionClipboard=35]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",e[e.extraEditorClassName=37]="extraEditorClassName",e[e.fastScrollSensitivity=38]="fastScrollSensitivity",e[e.find=39]="find",e[e.fixedOverflowWidgets=40]="fixedOverflowWidgets",e[e.folding=41]="folding",e[e.foldingStrategy=42]="foldingStrategy",e[e.foldingHighlight=43]="foldingHighlight",e[e.foldingImportsByDefault=44]="foldingImportsByDefault",e[e.foldingMaximumRegions=45]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=47]="fontFamily",e[e.fontInfo=48]="fontInfo",e[e.fontLigatures=49]="fontLigatures",e[e.fontSize=50]="fontSize",e[e.fontWeight=51]="fontWeight",e[e.fontVariations=52]="fontVariations",e[e.formatOnPaste=53]="formatOnPaste",e[e.formatOnType=54]="formatOnType",e[e.glyphMargin=55]="glyphMargin",e[e.gotoLocation=56]="gotoLocation",e[e.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",e[e.hover=58]="hover",e[e.inDiffEditor=59]="inDiffEditor",e[e.inlineSuggest=60]="inlineSuggest",e[e.letterSpacing=61]="letterSpacing",e[e.lightbulb=62]="lightbulb",e[e.lineDecorationsWidth=63]="lineDecorationsWidth",e[e.lineHeight=64]="lineHeight",e[e.lineNumbers=65]="lineNumbers",e[e.lineNumbersMinChars=66]="lineNumbersMinChars",e[e.linkedEditing=67]="linkedEditing",e[e.links=68]="links",e[e.matchBrackets=69]="matchBrackets",e[e.minimap=70]="minimap",e[e.mouseStyle=71]="mouseStyle",e[e.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=73]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",e[e.multiCursorModifier=75]="multiCursorModifier",e[e.multiCursorPaste=76]="multiCursorPaste",e[e.multiCursorLimit=77]="multiCursorLimit",e[e.occurrencesHighlight=78]="occurrencesHighlight",e[e.overviewRulerBorder=79]="overviewRulerBorder",e[e.overviewRulerLanes=80]="overviewRulerLanes",e[e.padding=81]="padding",e[e.pasteAs=82]="pasteAs",e[e.parameterHints=83]="parameterHints",e[e.peekWidgetDefaultFocus=84]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=85]="definitionLinkOpensInPeek",e[e.quickSuggestions=86]="quickSuggestions",e[e.quickSuggestionsDelay=87]="quickSuggestionsDelay",e[e.readOnly=88]="readOnly",e[e.readOnlyMessage=89]="readOnlyMessage",e[e.renameOnType=90]="renameOnType",e[e.renderControlCharacters=91]="renderControlCharacters",e[e.renderFinalNewline=92]="renderFinalNewline",e[e.renderLineHighlight=93]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=94]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=95]="renderValidationDecorations",e[e.renderWhitespace=96]="renderWhitespace",e[e.revealHorizontalRightPadding=97]="revealHorizontalRightPadding",e[e.roundedSelection=98]="roundedSelection",e[e.rulers=99]="rulers",e[e.scrollbar=100]="scrollbar",e[e.scrollBeyondLastColumn=101]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=102]="scrollBeyondLastLine",e[e.scrollPredominantAxis=103]="scrollPredominantAxis",e[e.selectionClipboard=104]="selectionClipboard",e[e.selectionHighlight=105]="selectionHighlight",e[e.selectOnLineNumbers=106]="selectOnLineNumbers",e[e.showFoldingControls=107]="showFoldingControls",e[e.showUnused=108]="showUnused",e[e.snippetSuggestions=109]="snippetSuggestions",e[e.smartSelect=110]="smartSelect",e[e.smoothScrolling=111]="smoothScrolling",e[e.stickyScroll=112]="stickyScroll",e[e.stickyTabStops=113]="stickyTabStops",e[e.stopRenderingLineAfter=114]="stopRenderingLineAfter",e[e.suggest=115]="suggest",e[e.suggestFontSize=116]="suggestFontSize",e[e.suggestLineHeight=117]="suggestLineHeight",e[e.suggestOnTriggerCharacters=118]="suggestOnTriggerCharacters",e[e.suggestSelection=119]="suggestSelection",e[e.tabCompletion=120]="tabCompletion",e[e.tabIndex=121]="tabIndex",e[e.unicodeHighlighting=122]="unicodeHighlighting",e[e.unusualLineTerminators=123]="unusualLineTerminators",e[e.useShadowDOM=124]="useShadowDOM",e[e.useTabStops=125]="useTabStops",e[e.wordBreak=126]="wordBreak",e[e.wordSeparators=127]="wordSeparators",e[e.wordWrap=128]="wordWrap",e[e.wordWrapBreakAfterCharacters=129]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=130]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=131]="wordWrapColumn",e[e.wordWrapOverride1=132]="wordWrapOverride1",e[e.wordWrapOverride2=133]="wordWrapOverride2",e[e.wrappingIndent=134]="wrappingIndent",e[e.wrappingStrategy=135]="wrappingStrategy",e[e.showDeprecated=136]="showDeprecated",e[e.inlayHints=137]="inlayHints",e[e.editorClassName=138]="editorClassName",e[e.pixelRatio=139]="pixelRatio",e[e.tabFocusMode=140]="tabFocusMode",e[e.layoutInfo=141]="layoutInfo",e[e.wrappingInfo=142]="wrappingInfo",e[e.defaultColorDecorators=143]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=144]="colorDecoratorsActivatedOn"})(Dn||(Dn={}));var yn;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(yn||(yn={}));var Mn;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Mn||(Mn={}));var kn;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(kn||(kn={}));var Fn;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Fn||(Fn={}));var Tn;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Tn||(Tn={}));var In;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(In||(In={}));var Vn;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Vn||(Vn={}));var Nt;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Nt||(Nt={}));var wt;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(wt||(wt={}));var Lt;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Lt||(Lt={}));var On;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(On||(On={}));var Un;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Un||(Un={}));var Wn;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Wn||(Wn={}));var Bn;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Bn||(Bn={}));var Hn;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(Hn||(Hn={}));var jn;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(jn||(jn={}));var qn;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(qn||(qn={}));var $n;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})($n||($n={}));var Gn;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Gn||(Gn={}));var At;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(At||(At={}));var zn;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(zn||(zn={}));var Yn;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Yn||(Yn={}));var Jn;(function(e){e[e.Deprecated=1]="Deprecated"})(Jn||(Jn={}));var Xn;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Xn||(Xn={}));var Qn;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Qn||(Qn={}));var Zn;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Zn||(Zn={}));var Kn;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Kn||(Kn={}));class Ve{static chord(t,n){return zr(t,n)}}Ve.CtrlCmd=2048,Ve.Shift=1024,Ve.Alt=512,Ve.WinCtrl=256;function Qr(){return{editor:void 0,languages:void 0,CancellationTokenSource:jr,Emitter:se,KeyCode:Nt,KeyMod:Ve,Position:$,Range:k,Selection:X,SelectionDirection:At,MarkerSeverity:wt,MarkerTag:Lt,Uri:be,Token:Xr}}var es;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(es||(es={}));var ts;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(ts||(ts={}));var ns;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(ns||(ns={}));var ss;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(ss||(ss={}));function Zr(e,t,n,s,r){if(s===0)return!0;const i=t.charCodeAt(s-1);if(e.get(i)!==0||i===13||i===10)return!0;if(r>0){const o=t.charCodeAt(s);if(e.get(o)!==0)return!0}return!1}function Kr(e,t,n,s,r){if(s+r===n)return!0;const i=t.charCodeAt(s+r);if(e.get(i)!==0||i===13||i===10)return!0;if(r>0){const o=t.charCodeAt(s+r-1);if(e.get(o)!==0)return!0}return!1}function ei(e,t,n,s,r){return Zr(e,t,n,s,r)&&Kr(e,t,n,s,r)}class ti{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let s;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(s=this._searchRegex.exec(t),!s))return null;const r=s.index,i=s[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){nr(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||ei(this._wordSeparators,t,n,r,i))return s}while(s);return null}}function ni(e,t="Unreachable"){throw new Error(t)}function Rt(e){if(!e()){debugger;e(),Vt(new xe("Assertion Failed"))}}function rs(e,t){let n=0;for(;n0){const C=N.charCodeAt(y-1);ht(C)&&y--}if(A+1=C){h=!0;break e}m.push(new k(w,y+1,w,A+1))}}while(f)}return{ranges:m,hasMore:h,ambiguousCharacterCount:d,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(t,n){const s=new is(n);switch(s.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=t.codePointAt(0),o=s.ambiguousCharacters.getPrimaryConfusable(i),l=Z.getLocales().filter(c=>!Z.getInstance(new Set([...n.allowedLocales,c])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function ri(e,t){return`[${Xs(e.map(s=>String.fromCodePoint(s)).join(""))}]`}class is{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Z.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of ae.codePoints)as(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const s=t.codePointAt(0);if(this.allowedCodePoints.has(s))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(n)for(const o of n){const l=o.codePointAt(0),c=rr(o);r=r||c,!c&&!this.ambiguousCharacters.isAmbiguous(l)&&!ae.isInvisibleCharacter(l)&&(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!as(t)&&ae.isInvisibleCharacter(s)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(s)?3:0}}function as(e){return e===" "||e===` +`||e===" "}class B{static fromRange(t){return new B(t.startLineNumber,t.endLineNumber)}static subtract(t,n){return n?t.startLineNumber=l.startLineNumber?o=new B(o.startLineNumber,Math.max(o.endLineNumberExclusive,l.endLineNumberExclusive)):(s.push(o),o=l)}return o!==null&&s.push(o),s}static ofLength(t,n){return new B(t,t+n)}static deserialize(t){return new B(t[0],t[1])}constructor(t,n){if(t>n)throw new xe(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var t;return new fe(this.modifiedRange,this.originalRange,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class Ze{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Ze(this.modifiedRange,this.originalRange)}}class Et{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Et(this.modifiedRange,this.originalRange)}}class Pt{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new Pt(this.lineRangeMapping.flip(),this.changes.map(t=>t.flip()))}}const ii=3;class ai{computeDiff(t,n,s){var r;const o=new ui(t,n,{maxComputationTime:s.maxComputationTimeMs,shouldIgnoreTrimWhitespace:s.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),l=[];let c=null;for(const u of o.changes){let m;u.originalEndLineNumber===0?m=new B(u.originalStartLineNumber+1,u.originalStartLineNumber+1):m=new B(u.originalStartLineNumber,u.originalEndLineNumber+1);let h;u.modifiedEndLineNumber===0?h=new B(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):h=new B(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let f=new fe(m,h,(r=u.charChanges)===null||r===void 0?void 0:r.map(d=>new Ze(new k(d.originalStartLineNumber,d.originalStartColumn,d.originalEndLineNumber,d.originalEndColumn),new k(d.modifiedStartLineNumber,d.modifiedStartColumn,d.modifiedEndLineNumber,d.modifiedEndColumn))));c&&(c.modifiedRange.endLineNumberExclusive===f.modifiedRange.startLineNumber||c.originalRange.endLineNumberExclusive===f.originalRange.startLineNumber)&&(f=new fe(c.originalRange.join(f.originalRange),c.modifiedRange.join(f.modifiedRange),c.innerChanges&&f.innerChanges?c.innerChanges.concat(f.innerChanges):void 0),l.pop()),l.push(f),c=f}return Rt(()=>rs(l,(u,m)=>m.originalRange.startLineNumber-u.originalRange.endLineNumberExclusive===m.modifiedRange.startLineNumber-u.modifiedRange.endLineNumberExclusive&&u.originalRange.endLineNumberExclusive(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class Pe{constructor(t,n,s,r,i,o,l,c){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=s,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=l,this.modifiedEndColumn=c}static createFromDiffChange(t,n,s){const r=n.getStartLineNumber(t.originalStart),i=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),c=s.getStartLineNumber(t.modifiedStart),u=s.getStartColumn(t.modifiedStart),m=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),h=s.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new Pe(r,i,o,l,c,u,m,h)}}function li(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let s=1,r=e.length;s0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const d=s.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(d.getElements().length>0&&g.getElements().length>0){let p=ls(d,g,i,!0).changes;l&&(p=li(p)),f=[];for(let w=0,_=p.length;w<_;w++)f.push(Pe.createFromDiffChange(p[w],d,g))}}return new Oe(c,u,m,h,f)}}class ui{constructor(t,n,s){this.shouldComputeCharChanges=s.shouldComputeCharChanges,this.shouldPostProcessCharChanges=s.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=s.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=s.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new us(t),this.modified=new us(n),this.continueLineDiff=cs(s.maxComputationTime),this.continueCharDiff=cs(s.maxComputationTime===0?0:Math.min(s.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=ls(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,s=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let c=0,u=n.length;c1&&p>1;){const w=f.charCodeAt(g-2),_=d.charCodeAt(p-2);if(w!==_)break;g--,p--}(g>1||p>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,g,o+1,1,p)}{let g=yt(f,1),p=yt(d,1);const w=f.length+1,_=d.length+1;for(;g!0;const t=Date.now();return()=>Date.now()-tn))return new V(t,n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new xe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new V(this.start+t,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}join(t){return new V(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),s=Math.min(this.endExclusive,t.endExclusive);if(n<=s)return new V(n,s)}}class ie{static trivial(t,n){return new ie([new J(new V(0,t.length),new V(0,n.length))],!1)}static trivialTimedOut(t,n){return new ie([new J(new V(0,t.length),new V(0,n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class J{constructor(t,n){this.seq1Range=t,this.seq2Range=n}reverse(){return new J(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new J(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new J(this.seq1Range.delta(t),this.seq2Range.delta(t))}}class Ue{isValid(){return!0}}Ue.instance=new Ue;class ci{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new xe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&p>0&&o.get(g-1,p-1)===3&&(N+=l.get(g-1,p-1)),N+=r?r(g,p):1):N=-1;const x=Math.max(w,_,N);if(x===N){const y=g>0&&p>0?l.get(g-1,p-1):0;l.set(g,p,y+1),o.set(g,p,3)}else x===w?(l.set(g,p,0),o.set(g,p,1)):x===_&&(l.set(g,p,0),o.set(g,p,2));i.set(g,p,x)}const c=[];let u=t.length,m=n.length;function h(g,p){(g+1!==u||p+1!==m)&&c.push(new J(new V(g+1,u),new V(p+1,m))),u=g,m=p}let f=t.length-1,d=n.length-1;for(;f>=0&&d>=0;)o.get(f,d)===3?(h(f,d),f--,d--):o.get(f,d)===1?f--:d--;return h(-1,-1),c.reverse(),new ie(c,!1)}}function hs(e,t,n){let s=n;return s=fi(e,t,s),s=di(e,t,s),s}function mi(e,t,n){const s=[];for(const r of n){const i=s[s.length-1];if(!i){s.push(r);continue}r.seq1Range.start-i.seq1Range.endExclusive<=2||r.seq2Range.start-i.seq2Range.endExclusive<=2?s[s.length-1]=new J(i.seq1Range.join(r.seq1Range),i.seq2Range.join(r.seq2Range)):s.push(r)}return s}function fi(e,t,n){const s=[];n.length>0&&s.push(n[0]);for(let i=1;i0&&(l=l.delta(u))}r.push(l)}return s.length>0&&r.push(s[s.length-1]),r}function di(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let s=0;s0?n[s-1]:void 0,i=n[s],o=s+1=s.start&&e.seq2Range.start-o>=r.start&&n.getElement(e.seq2Range.start-o)===n.getElement(e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let l=0;for(;e.seq1Range.start+lu&&(u=g,c=m)}return e.delta(c)}class gi{compute(t,n,s=Ue.instance){if(t.length===0||n.length===0)return ie.trivial(t,n);function r(d,g){for(;dt.length||N>n.length)continue;const x=r(_,N);o.set(c,x);const y=_===p?l.get(c+1):l.get(c-1);if(l.set(c,x!==_?new fs(y,_,N,x-_):y),o.get(c)===t.length&&o.get(c)-c===n.length)break e}}let u=l.get(c);const m=[];let h=t.length,f=n.length;for(;;){const d=u?u.x+u.length:0,g=u?u.y+u.length:0;if((d!==h||g!==f)&&m.push(new J(new V(d,h),new V(g,f))),!u)break;h=u.x,f=u.y,u=u.prev}return m.reverse(),new ie(m,!1)}}class fs{constructor(t,n,s,r){this.prev=t,this.x=n,this.y=s,this.length=r}}class _i{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const s=this.negativeArr;this.negativeArr=new Int32Array(s.length*2),this.negativeArr.set(s)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const s=this.positiveArr;this.positiveArr=new Int32Array(s.length*2),this.positiveArr.set(s)}this.positiveArr[t]=n}}}class bi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class pi{constructor(){this.dynamicProgrammingDiffing=new hi,this.myersDiffingAlgorithm=new gi}computeDiff(t,n,s){const r=s.maxComputationTimeMs===0?Ue.instance:new ci(s.maxComputationTimeMs),i=!s.ignoreTrimWhitespace,o=new Map;function l(A){let M=o.get(A);return M===void 0&&(M=o.size,o.set(A,M)),M}const c=t.map(A=>l(A.trim())),u=n.map(A=>l(A.trim())),m=new gs(c,t),h=new gs(u,n),f=(()=>m.length+h.length<1500?this.dynamicProgrammingDiffing.compute(m,h,r,(A,M)=>t[A]===n[M]?n[M].length===0?.1:1+Math.log(1+n[M].length):.99):this.myersDiffingAlgorithm.compute(m,h))();let d=f.diffs,g=f.hitTimeout;d=hs(m,h,d);const p=[],w=A=>{if(i)for(let M=0;MA.seq1Range.start-_===A.seq2Range.start-N);const M=A.seq1Range.start-_;w(M),_=A.seq1Range.endExclusive,N=A.seq2Range.endExclusive;const P=this.refineDiff(t,n,A,r,i);P.hitTimeout&&(g=!0);for(const E of P.mappings)p.push(E)}w(t.length-_);const x=ds(p,t,n),y=[];if(s.computeMoves){const A=x.filter(P=>P.modifiedRange.isEmpty&&P.originalRange.length>=3).map(P=>new xs(P.originalRange,t)),M=new Set(x.filter(P=>P.originalRange.isEmpty&&P.modifiedRange.length>=3).map(P=>new xs(P.modifiedRange,n)));for(const P of A){let E=-1,C;for(const S of M){const v=P.computeSimilarity(S);v>E&&(E=v,C=S)}if(E>.9&&C){const S=this.refineDiff(t,n,new J(new V(P.range.startLineNumber-1,P.range.endLineNumberExclusive-1),new V(C.range.startLineNumber-1,C.range.endLineNumberExclusive-1)),r,i),v=ds(S.mappings,t,n,!0);M.delete(C),y.push(new Pt(new Et(P.range,C.range),v))}}}return new os(x,y,g)}refineDiff(t,n,s,r,i){const o=new bs(t,s.seq1Range,i),l=new bs(n,s.seq2Range,i),c=o.length+l.length<500?this.dynamicProgrammingDiffing.compute(o,l,r):this.myersDiffingAlgorithm.compute(o,l,r);let u=c.diffs;return u=hs(o,l,u),u=vi(o,l,u),u=mi(o,l,u),{mappings:u.map(h=>new Ze(o.translateRange(h.seq1Range),l.translateRange(h.seq2Range))),hitTimeout:c.hitTimeout}}}function vi(e,t,n){const s=[];let r;function i(){if(!r)return;const l=r.s1Range.length-r.deleted;r.s2Range.length-r.added,Math.max(r.deleted,r.added)+(r.count-1)>l&&s.push(new J(r.s1Range,r.s2Range)),r=void 0}for(const l of n){let c=function(d,g){var p,w,_,N;if(!r||!r.s1Range.containsRange(d)||!r.s2Range.containsRange(g))if(r&&!(r.s1Range.endExclusive0||t.length>0;){const s=e[0],r=t[0];let i;s&&(!r||s.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}function ds(e,t,n,s=!1){const r=[];for(const i of Ci(e.map(o=>xi(o,t,n)),(o,l)=>o.originalRange.overlapOrTouch(l.originalRange)||o.modifiedRange.overlapOrTouch(l.modifiedRange))){const o=i[0],l=i[i.length-1];r.push(new fe(o.originalRange.join(l.originalRange),o.modifiedRange.join(l.modifiedRange),i.map(c=>c.innerChanges[0])))}return Rt(()=>!s&&r.length>0&&r[0].originalRange.startLineNumber!==r[0].modifiedRange.startLineNumber?!1:rs(r,(i,o)=>o.originalRange.startLineNumber-i.originalRange.endLineNumberExclusive===o.modifiedRange.startLineNumber-i.modifiedRange.endLineNumberExclusive&&i.originalRange.endLineNumberExclusive=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(s=1);const i=new B(e.originalRange.startLineNumber+s,e.originalRange.endLineNumber+1+r),o=new B(e.modifiedRange.startLineNumber+s,e.modifiedRange.endLineNumber+1+r);return new fe(i,o,[e])}function*Ci(e,t){let n,s;for(const r of e)s!==void 0&&t(s,r)?n.push(r):(n&&(yield n),n=[r]),s=r;n&&(yield n)}class gs{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:_s(this.lines[t-1]),s=t===this.lines.length?0:_s(this.lines[t]);return 1e3-(n+s)}}function _s(e){let t=0;for(;t0&&n.endExclusive>=t.length&&(n=new V(n.start-1,n.endExclusive),r=!0),this.lineRange=n;for(let i=this.lineRange.start;iString.fromCharCode(t)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=vs(t>0?this.elements[t-1]:-1),s=vs(tt?s=i:n=i+1}const r=n===0?0:this.firstCharOffsetByLineMinusOne[n-1];return new $(this.lineRange.start+n+1,t-r+1+this.offsetByLine[n])}translateRange(t){return k.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!kt(this.elements[t]))return;let n=t;for(;n>0&&kt(this.elements[n-1]);)n--;let s=t;for(;s=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Ni={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function ps(e){return Ni[e]}function vs(e){return e===10?7:e===13?6:wi(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:4}function wi(e){return e===32||e===9}const Ft=new Map;function Ss(e){let t=Ft.get(e);return t===void 0&&(t=Ft.size,Ft.set(e,t)),t}class xs{constructor(t,n){this.range=t,this.lines=n,this.histogram=[];let s=0;for(let r=t.startLineNumber-1;rnew ai,getAdvanced:()=>new pi};function de(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class H{constructor(t,n,s,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,s))|0,this.a=de(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class K{constructor(t,n,s,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=de(Math.max(Math.min(1,n),0),3),this.l=de(Math.max(Math.min(1,s),0),3),this.a=de(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,s=t.g/255,r=t.b/255,i=t.a,o=Math.max(n,s,r),l=Math.min(n,s,r);let c=0,u=0;const m=(l+o)/2,h=o-l;if(h>0){switch(u=Math.min(m<=.5?h/(2*m):h/(2-2*m),1),o){case n:c=(s-r)/h+(s1&&(s-=1),s<1/6?t+(n-t)*6*s:s<1/2?n:s<2/3?t+(n-t)*(2/3-s)*6:t}static toRGBA(t){const n=t.h/360,{s,l:r,a:i}=t;let o,l,c;if(s===0)o=l=c=r;else{const u=r<.5?r*(1+s):r+s-r*s,m=2*r-u;o=K._hue2rgb(m,u,n+1/3),l=K._hue2rgb(m,u,n),c=K._hue2rgb(m,u,n-1/3)}return new H(Math.round(o*255),Math.round(l*255),Math.round(c*255),i)}}class De{constructor(t,n,s,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=de(Math.max(Math.min(1,n),0),3),this.v=de(Math.max(Math.min(1,s),0),3),this.a=de(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,s=t.g/255,r=t.b/255,i=Math.max(n,s,r),o=Math.min(n,s,r),l=i-o,c=i===0?0:l/i;let u;return l===0?u=0:i===n?u=((s-r)/l%6+6)%6:i===s?u=(r-n)/l+2:u=(n-s)/l+4,new De(Math.round(u*60),c,i,t.a)}static toRGBA(t){const{h:n,s,v:r,a:i}=t,o=r*s,l=o*(1-Math.abs(n/60%2-1)),c=r-o;let[u,m,h]=[0,0,0];return n<60?(u=o,m=l):n<120?(u=l,m=o):n<180?(m=o,h=l):n<240?(m=l,h=o):n<300?(u=l,h=o):n<=360&&(u=o,h=l),u=Math.round((u+c)*255),m=Math.round((m+c)*255),h=Math.round((h+c)*255),new H(u,m,h,i)}}class T{static fromHex(t){return T.Format.CSS.parseHex(t)||T.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:K.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:De.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof H)this.rgba=t;else if(t instanceof K)this._hsla=t,this.rgba=K.toRGBA(t);else if(t instanceof De)this._hsva=t,this.rgba=De.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&H.equals(this.rgba,t.rgba)&&K.equals(this.hsla,t.hsla)&&De.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=T._relativeLuminanceForComponent(this.rgba.r),n=T._relativeLuminanceForComponent(this.rgba.g),s=T._relativeLuminanceForComponent(this.rgba.b),r=.2126*t+.7152*n+.0722*s;return de(r,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),s=t.getRelativeLuminance();return n>s}isDarkerThan(t){const n=this.getRelativeLuminance(),s=t.getRelativeLuminance();return n0)for(const r of s){const i=r.filter(u=>u!==void 0),o=i[1],l=i[2];if(!l)continue;let c;if(o==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;c=ws(Ue(e,r),Be(l,u),!1)}else if(o==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;c=ws(Ue(e,r),Be(l,u),!0)}else if(o==="hsl"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;c=Ls(Ue(e,r),Be(l,u),!1)}else if(o==="hsla"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;c=Ls(Ue(e,r),Be(l,u),!0)}else o==="#"&&(c=Li(Ue(e,r),o+l));c&&t.push(c)}return t}function Ri(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Ai(e)}var ge=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(m){try{u(s.next(m))}catch(h){o(h)}}function c(m){try{u(s.throw(m))}catch(h){o(h)}}function u(m){m.done?i(m.value):r(m.value).then(l,c)}u((s=s.apply(e,t||[])).next())})};class Pi extends kr{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let s=0;sthis._lines.length)n=this._lines.length,s=this._lines[n-1].length+1,r=!0;else{const i=this._lines[n-1].length+1;s<1?(s=1,r=!0):s>i&&(s=i,r=!0)}return r?{lineNumber:n,column:s}:t}}class pe{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new Pi(be.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}computeUnicodeHighlights(t,n,s){return ge(this,void 0,void 0,function*(){const r=this._getModel(t);return r?si.computeUnicodeHighlights(r,n,s):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,n,s,r){return ge(this,void 0,void 0,function*(){const i=this._getModel(t),o=this._getModel(n);return!i||!o?null:pe.computeDiff(i,o,s,r)})}static computeDiff(t,n,s,r){const i=r==="advanced"?Cs.getAdvanced():Cs.getLegacy(),o=t.getLinesContent(),l=n.getLinesContent(),c=i.computeDiff(o,l,s),u=c.changes.length>0?!1:this._modelsAreIdentical(t,n);function m(h){return h.map(f=>{var d;return[f.originalRange.startLineNumber,f.originalRange.endLineNumberExclusive,f.modifiedRange.startLineNumber,f.modifiedRange.endLineNumberExclusive,(d=f.innerChanges)===null||d===void 0?void 0:d.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:u,quitEarly:c.hitTimeout,changes:m(c.changes),moves:c.moves.map(h=>[h.lineRangeMapping.originalRange.startLineNumber,h.lineRangeMapping.originalRange.endLineNumberExclusive,h.lineRangeMapping.modifiedRange.startLineNumber,h.lineRangeMapping.modifiedRange.endLineNumberExclusive,m(h.changes)])}}static _modelsAreIdentical(t,n){const s=t.getLineCount(),r=n.getLineCount();if(s!==r)return!1;for(let i=1;i<=s;i++){const o=t.getLineContent(i),l=n.getLineContent(i);if(o!==l)return!1}return!0}computeMoreMinimalEdits(t,n,s){return ge(this,void 0,void 0,function*(){const r=this._getModel(t);if(!r)return n;const i=[];let o;n=n.slice(0).sort((l,c)=>{if(l.range&&c.range)return k.compareRangesUsingStarts(l.range,c.range);const u=l.range?0:1,m=c.range?0:1;return u-m});for(let{range:l,text:c,eol:u}of n){if(typeof u=="number"&&(o=u),k.isEmpty(l)&&!c)continue;const m=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),m===c)continue;if(Math.max(c.length,m.length)>pe._diffLimit){i.push({range:l,text:c});continue}const h=dr(m,c,s),f=r.offsetAt(k.lift(l).getStartPosition());for(const d of h){const g=r.positionAt(f+d.originalStart),p=r.positionAt(f+d.originalStart+d.originalLength),w={text:c.substr(d.modifiedStart,d.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:p.lineNumber,endColumn:p.column}};r.getValueInRange(w.range)!==w.text&&i.push(w)}}return typeof o=="number"&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i})}computeLinks(t){return ge(this,void 0,void 0,function*(){const n=this._getModel(t);return n?Hr(n):null})}computeDefaultDocumentColors(t){return ge(this,void 0,void 0,function*(){const n=this._getModel(t);return n?Ri(n):null})}textualSuggest(t,n,s,r){return ge(this,void 0,void 0,function*(){const i=new je,o=new RegExp(s,r),l=new Set;e:for(const c of t){const u=this._getModel(c);if(u){for(const m of u.words(o))if(!(m===n||!isNaN(Number(m)))&&(l.add(m),l.size>pe._suggestionsLimit))break e}}return{words:Array.from(l),duration:i.elapsed()}})}computeWordRanges(t,n,s,r){return ge(this,void 0,void 0,function*(){const i=this._getModel(t);if(!i)return Object.create(null);const o=new RegExp(s,r),l=Object.create(null);for(let c=n.startLineNumber;cthis._host.fhr(l,c)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,n),Promise.resolve(it(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(s){return Promise.reject(s)}}}pe._diffLimit=1e5,pe._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=Qr());let It=!1;function Ei(e){if(It)return;It=!0;const t=new mr(n=>{globalThis.postMessage(n)},n=>new pe(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{It||Ei(null)}})(); +`);this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=s}computeSimilarity(t){var n,s;let r=0;const i=Math.max(this.histogram.length,t.histogram.length);for(let o=0;onew ai,getAdvanced:()=>new pi};function de(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class H{constructor(t,n,s,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,s))|0,this.a=de(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class K{constructor(t,n,s,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=de(Math.max(Math.min(1,n),0),3),this.l=de(Math.max(Math.min(1,s),0),3),this.a=de(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,s=t.g/255,r=t.b/255,i=t.a,o=Math.max(n,s,r),l=Math.min(n,s,r);let c=0,u=0;const m=(l+o)/2,h=o-l;if(h>0){switch(u=Math.min(m<=.5?h/(2*m):h/(2-2*m),1),o){case n:c=(s-r)/h+(s1&&(s-=1),s<1/6?t+(n-t)*6*s:s<1/2?n:s<2/3?t+(n-t)*(2/3-s)*6:t}static toRGBA(t){const n=t.h/360,{s,l:r,a:i}=t;let o,l,c;if(s===0)o=l=c=r;else{const u=r<.5?r*(1+s):r+s-r*s,m=2*r-u;o=K._hue2rgb(m,u,n+1/3),l=K._hue2rgb(m,u,n),c=K._hue2rgb(m,u,n-1/3)}return new H(Math.round(o*255),Math.round(l*255),Math.round(c*255),i)}}class De{constructor(t,n,s,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=de(Math.max(Math.min(1,n),0),3),this.v=de(Math.max(Math.min(1,s),0),3),this.a=de(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,s=t.g/255,r=t.b/255,i=Math.max(n,s,r),o=Math.min(n,s,r),l=i-o,c=i===0?0:l/i;let u;return l===0?u=0:i===n?u=((s-r)/l%6+6)%6:i===s?u=(r-n)/l+2:u=(n-s)/l+4,new De(Math.round(u*60),c,i,t.a)}static toRGBA(t){const{h:n,s,v:r,a:i}=t,o=r*s,l=o*(1-Math.abs(n/60%2-1)),c=r-o;let[u,m,h]=[0,0,0];return n<60?(u=o,m=l):n<120?(u=l,m=o):n<180?(m=o,h=l):n<240?(m=l,h=o):n<300?(u=l,h=o):n<=360&&(u=o,h=l),u=Math.round((u+c)*255),m=Math.round((m+c)*255),h=Math.round((h+c)*255),new H(u,m,h,i)}}class T{static fromHex(t){return T.Format.CSS.parseHex(t)||T.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:K.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:De.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof H)this.rgba=t;else if(t instanceof K)this._hsla=t,this.rgba=K.toRGBA(t);else if(t instanceof De)this._hsva=t,this.rgba=De.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&H.equals(this.rgba,t.rgba)&&K.equals(this.hsla,t.hsla)&&De.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=T._relativeLuminanceForComponent(this.rgba.r),n=T._relativeLuminanceForComponent(this.rgba.g),s=T._relativeLuminanceForComponent(this.rgba.b),r=.2126*t+.7152*n+.0722*s;return de(r,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),s=t.getRelativeLuminance();return n>s}isDarkerThan(t){const n=this.getRelativeLuminance(),s=t.getRelativeLuminance();return n0)for(const r of s){const i=r.filter(u=>u!==void 0),o=i[1],l=i[2];if(!l)continue;let c;if(o==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;c=ws(We(e,r),Be(l,u),!1)}else if(o==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;c=ws(We(e,r),Be(l,u),!0)}else if(o==="hsl"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;c=Ls(We(e,r),Be(l,u),!1)}else if(o==="hsla"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;c=Ls(We(e,r),Be(l,u),!0)}else o==="#"&&(c=Li(We(e,r),o+l));c&&t.push(c)}return t}function Ri(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Ai(e)}var ge=function(e,t,n,s){function r(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(m){try{u(s.next(m))}catch(h){o(h)}}function c(m){try{u(s.throw(m))}catch(h){o(h)}}function u(m){m.done?i(m.value):r(m.value).then(l,c)}u((s=s.apply(e,t||[])).next())})};class Ei extends kr{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let s=0;sthis._lines.length)n=this._lines.length,s=this._lines[n-1].length+1,r=!0;else{const i=this._lines[n-1].length+1;s<1?(s=1,r=!0):s>i&&(s=i,r=!0)}return r?{lineNumber:n,column:s}:t}}class pe{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new Ei(be.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}computeUnicodeHighlights(t,n,s){return ge(this,void 0,void 0,function*(){const r=this._getModel(t);return r?si.computeUnicodeHighlights(r,n,s):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,n,s,r){return ge(this,void 0,void 0,function*(){const i=this._getModel(t),o=this._getModel(n);return!i||!o?null:pe.computeDiff(i,o,s,r)})}static computeDiff(t,n,s,r){const i=r==="advanced"?Cs.getAdvanced():Cs.getLegacy(),o=t.getLinesContent(),l=n.getLinesContent(),c=i.computeDiff(o,l,s),u=c.changes.length>0?!1:this._modelsAreIdentical(t,n);function m(h){return h.map(f=>{var d;return[f.originalRange.startLineNumber,f.originalRange.endLineNumberExclusive,f.modifiedRange.startLineNumber,f.modifiedRange.endLineNumberExclusive,(d=f.innerChanges)===null||d===void 0?void 0:d.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:u,quitEarly:c.hitTimeout,changes:m(c.changes),moves:c.moves.map(h=>[h.lineRangeMapping.originalRange.startLineNumber,h.lineRangeMapping.originalRange.endLineNumberExclusive,h.lineRangeMapping.modifiedRange.startLineNumber,h.lineRangeMapping.modifiedRange.endLineNumberExclusive,m(h.changes)])}}static _modelsAreIdentical(t,n){const s=t.getLineCount(),r=n.getLineCount();if(s!==r)return!1;for(let i=1;i<=s;i++){const o=t.getLineContent(i),l=n.getLineContent(i);if(o!==l)return!1}return!0}computeMoreMinimalEdits(t,n,s){return ge(this,void 0,void 0,function*(){const r=this._getModel(t);if(!r)return n;const i=[];let o;n=n.slice(0).sort((l,c)=>{if(l.range&&c.range)return k.compareRangesUsingStarts(l.range,c.range);const u=l.range?0:1,m=c.range?0:1;return u-m});for(let{range:l,text:c,eol:u}of n){if(typeof u=="number"&&(o=u),k.isEmpty(l)&&!c)continue;const m=r.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,r.eol),m===c)continue;if(Math.max(c.length,m.length)>pe._diffLimit){i.push({range:l,text:c});continue}const h=dr(m,c,s),f=r.offsetAt(k.lift(l).getStartPosition());for(const d of h){const g=r.positionAt(f+d.originalStart),p=r.positionAt(f+d.originalStart+d.originalLength),w={text:c.substr(d.modifiedStart,d.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:p.lineNumber,endColumn:p.column}};r.getValueInRange(w.range)!==w.text&&i.push(w)}}return typeof o=="number"&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i})}computeLinks(t){return ge(this,void 0,void 0,function*(){const n=this._getModel(t);return n?Hr(n):null})}computeDefaultDocumentColors(t){return ge(this,void 0,void 0,function*(){const n=this._getModel(t);return n?Ri(n):null})}textualSuggest(t,n,s,r){return ge(this,void 0,void 0,function*(){const i=new je,o=new RegExp(s,r),l=new Set;e:for(const c of t){const u=this._getModel(c);if(u){for(const m of u.words(o))if(!(m===n||!isNaN(Number(m)))&&(l.add(m),l.size>pe._suggestionsLimit))break e}}return{words:Array.from(l),duration:i.elapsed()}})}computeWordRanges(t,n,s,r){return ge(this,void 0,void 0,function*(){const i=this._getModel(t);if(!i)return Object.create(null);const o=new RegExp(s,r),l=Object.create(null);for(let c=n.startLineNumber;cthis._host.fhr(l,c)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,n),Promise.resolve(it(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(s){return Promise.reject(s)}}}pe._diffLimit=1e5,pe._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=Qr());let It=!1;function Pi(e){if(It)return;It=!0;const t=new mr(n=>{globalThis.postMessage(n)},n=>new pe(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{It||Pi(null)}})(); diff --git a/packages/ide/example/assets/element-plus-5a57a137.js b/packages/ide/example/assets/element-plus-de0339d2.js similarity index 99% rename from packages/ide/example/assets/element-plus-5a57a137.js rename to packages/ide/example/assets/element-plus-de0339d2.js index 86ddfc7a5..45968fe29 100644 --- a/packages/ide/example/assets/element-plus-5a57a137.js +++ b/packages/ide/example/assets/element-plus-de0339d2.js @@ -1,4 +1,4 @@ -var vr=Object.defineProperty,mr=Object.defineProperties;var hr=Object.getOwnPropertyDescriptors;var Xn=Object.getOwnPropertySymbols;var _l=Object.prototype.hasOwnProperty,Ol=Object.prototype.propertyIsEnumerable;var Jn=Math.pow,Nl=(e,t,n)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))_l.call(t,n)&&Nl(e,n,t[n]);if(Xn)for(var n of Xn(t))Ol.call(t,n)&&Nl(e,n,t[n]);return e},Z=(e,t)=>mr(e,hr(t));var Ro=(e,t)=>{var n={};for(var o in e)_l.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Xn)for(var o of Xn(e))t.indexOf(o)<0&&Ol.call(e,o)&&(n[o]=e[o]);return n};var Ve=(e,t,n)=>new Promise((o,l)=>{var s=u=>{try{i(n.next(u))}catch(c){l(c)}},a=u=>{try{i(n.throw(u))}catch(c){l(c)}},i=u=>u.done?o(u.value):Promise.resolve(u.value).then(s,a);i((n=n.apply(e,t)).next())});import{g as gr,e as $s,k as E,r as Co,s as ut,m as ko,u as r,w as G,f as Te,h as ke,n as de,p as Ce,q as br,v as yr,x as Ze,y as Mt,z as Cr,N as Wt,A as Ke,B as bt,C as Et,l as g,D as Ye,E as se,i as Bt,F as kr,G as wr,H as Ie,I as M,J,o as C,c as A,K as Ge,L as Ut,M as x,O as K,P as $e,Q as Fe,a as R,R as k,S as _e,T as U,U as tt,V as pe,W as X,X as Ae,Y as st,j as qe,Z as Is,_ as Xe,t as $t,$ as Wn,a0 as ve,a1 as Er,a2 as Sr,a3 as we,a4 as $r,a5 as Ts,a6 as Ir,a7 as Ns,a8 as Tr,a9 as yn,aa as po,ab as _s,ac as Nr,ad as Re,ae as jt,af as Pe,ag as fe,ah as Os,ai as _r,aj as Ms,ak as Pn,al as Fo,am as Or,an as Mr,ao as Ml,ap as Br,aq as Pr,ar as Ar,as as Cn}from"./@vue-062efada.js";import{g as it,s as Lr,f as vo,c as Fn,a as Bl,i as nt,b as Rr,d as Uo,p as Fr,e as Go}from"./lodash-es-74278d6e.js";import{S as Dr}from"./async-validator-714e048b.js";import{s as Bs,w as Ps,c as As,i as Ls,a as sn,l as wo,b as Kr,d as al,v as zr,h as Vr,e as rl,f as jn,m as Hr,g as Wr,p as Rs,j as jr,k as qr,n as xr,o as Ur}from"./@element-plus-45f3a8b7.js";import{T as Fs}from"./@ctrl-b0f23ca4.js";import{y as Gr,E as Ds}from"./@popperjs-7c8154ca.js";const Yr='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Xr=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Pl=e=>Array.from(e.querySelectorAll(Yr)).filter(t=>Jr(t)&&Xr(t)),Jr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},ao=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const l=document.createEvent(o);return l.initEvent(t,...n),e.dispatchEvent(l),e},We=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const s=e==null?void 0:e(l);if(n===!1||!s)return t==null?void 0:t(l)},Al=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Qr=Object.defineProperty,Zr=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Rl=(e,t,n)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oi=(e,t)=>{for(var n in t||(t={}))ti.call(t,n)&&Rl(e,n,t[n]);if(Ll)for(var n of Ll(t))ni.call(t,n)&&Rl(e,n,t[n]);return e},li=(e,t)=>Zr(e,ei(t));function Fl(e,t){var n;const o=ut();return ko(()=>{o.value=e()},li(oi({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Co(o)}var Dl;const Me=typeof window!="undefined",si=e=>typeof e=="string",mo=()=>{},Ks=Me&&((Dl=window==null?void 0:window.navigator)==null?void 0:Dl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Dn(e){return typeof e=="function"?e():r(e)}function ai(e,t){function n(...o){return new Promise((l,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(l).catch(s)})}return n}function ri(e,t={}){let n,o,l=mo;const s=i=>{clearTimeout(i),l(),l=mo};return i=>{const u=Dn(e),c=Dn(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(i())):new Promise((f,d)=>{l=t.rejectOnCancel?d:f,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,f(i())},c)),n=setTimeout(()=>{o&&s(o),o=null,f(i())},u)})}}function ii(e){return e}function Eo(e){return gr()?($s(e),!0):!1}function ui(e,t=200,n={}){return ai(ri(t,n),e)}function ci(e,t=200,n={}){const o=E(e.value),l=ui(()=>{o.value=e.value},t,n);return G(e,()=>l()),o}function di(e,t=!0){Te()?ke(e):t?e():de(e)}function kn(e,t,n={}){const{immediate:o=!0}=n,l=E(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function i(){l.value=!1,a()}function u(...c){a(),l.value=!0,s=setTimeout(()=>{l.value=!1,s=null,e(...c)},Dn(t))}return o&&(l.value=!0,Me&&u()),Eo(i),{isPending:Co(l),start:u,stop:i}}function Vt(e){var t;const n=Dn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const So=Me?window:void 0,fi=Me?window.document:void 0;function ot(...e){let t,n,o,l;if(si(e[0])||Array.isArray(e[0])?([n,o,l]=e,t=So):[t,n,o,l]=e,!t)return mo;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],a=()=>{s.forEach(f=>f()),s.length=0},i=(f,d,v,m)=>(f.addEventListener(d,v,m),()=>f.removeEventListener(d,v,m)),u=G(()=>[Vt(t),Dn(l)],([f,d])=>{a(),f&&s.push(...n.flatMap(v=>o.map(m=>i(f,v,m,d))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return Eo(c),c}let Kl=!1;function pi(e,t,n={}){const{window:o=So,ignore:l=[],capture:s=!0,detectIframe:a=!1}=n;if(!o)return;Ks&&!Kl&&(Kl=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",mo)));let i=!0;const u=v=>l.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(h=>h===v.target||v.composedPath().includes(h));{const h=Vt(m);return h&&(v.target===h||v.composedPath().includes(h))}}),f=[ot(o,"click",v=>{const m=Vt(e);if(!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(i=!u(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:s}),ot(o,"pointerdown",v=>{const m=Vt(e);m&&(i=!v.composedPath().includes(m)&&!u(v))},{passive:!0}),a&&ot(o,"blur",v=>{var m;const h=Vt(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&t(v)})].filter(Boolean);return()=>f.forEach(v=>v())}function vi(e,t=!1){const n=E(),o=()=>n.value=!!e();return o(),di(o,t),n}const zl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Vl="__vueuse_ssr_handlers__";zl[Vl]=zl[Vl]||{};function mi({document:e=fi}={}){if(!e)return E("visible");const t=E(e.visibilityState);return ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Hl=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,bi=(e,t)=>{var n={};for(var o in e)hi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Hl)for(var o of Hl(e))t.indexOf(o)<0&&gi.call(e,o)&&(n[o]=e[o]);return n};function Pt(e,t,n={}){const o=n,{window:l=So}=o,s=bi(o,["window"]);let a;const i=vi(()=>l&&"ResizeObserver"in l),u=()=>{a&&(a.disconnect(),a=void 0)},c=G(()=>Vt(e),d=>{u(),i.value&&l&&d&&(a=new ResizeObserver(t),a.observe(d,s))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return Eo(f),{isSupported:i,stop:f}}var Wl;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Wl||(Wl={}));var yi=Object.defineProperty,jl=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable,ql=(e,t,n)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wi=(e,t)=>{for(var n in t||(t={}))Ci.call(t,n)&&ql(e,n,t[n]);if(jl)for(var n of jl(t))ki.call(t,n)&&ql(e,n,t[n]);return e};const Ei={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};wi({linear:ii},Ei);function Si({window:e=So}={}){if(!e)return E(!1);const t=E(e.document.hasFocus());return ot(e,"blur",()=>{t.value=!1}),ot(e,"focus",()=>{t.value=!0}),t}const $i=()=>Me&&/firefox/i.test(window.navigator.userAgent),il=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},ht=e=>e===void 0,lt=e=>typeof e=="boolean",Ee=e=>typeof e=="number",St=e=>typeof Element=="undefined"?!1:e instanceof Element,Ii=e=>Ce(e)?!Number.isNaN(Number(e)):!1,Ti=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),zt=e=>br(e),Yo=e=>Object.keys(e),Do=(e,t,n)=>({get value(){return it(e,t,n)},set value(o){Lr(e,t,o)}});class Ni extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ft(e,t){throw new Ni(`[${e}] ${t}`)}const zs=(e="")=>e.split(" ").filter(t=>!!t.trim()),Xo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ht=(e,t)=>{!e||!t.trim()||e.classList.add(...zs(t))},yt=(e,t)=>{!e||!t.trim()||e.classList.remove(...zs(t))},vn=(e,t)=>{var n;if(!Me||!e||!t)return"";let o=yr(t);o==="float"&&(o="cssFloat");try{const l=e.style[o];if(l)return l;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[o]:""}catch(l){return e.style[o]}};function at(e,t="px"){if(!e)return"";if(Ee(e)||Ii(e))return`${e}${t}`;if(Ce(e))return e}let Qn;const _i=e=>{var t;if(!Me)return 0;if(Qn!==void 0)return Qn;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const s=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Qn=o-s,Qn};function Oi(e,t){if(!Me)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),s=l+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;li&&(e.scrollTop=s-e.clientHeight)}const Vs="__epPropKey",oe=e=>e,Mi=e=>Ze(e)&&!!e[Vs],$o=(e,t)=>{if(!Ze(e)||Mi(e))return e;const{values:n,required:o,default:l,type:s,validator:a}=e,u={type:s,required:!!o,validator:n||a?c=>{let f=!1,d=[];if(n&&(d=Array.from(n),Mt(e,"default")&&d.push(l),f||(f=d.includes(c))),a&&(f||(f=a(c))),!f&&d.length>0){const v=[...new Set(d)].map(m=>JSON.stringify(m)).join(", ");Cr(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[Vs]:!0};return Mt(e,"default")&&(u.default=l),u},ie=e=>vo(Object.entries(e).map(([t,n])=>[t,$o(n,t)])),xe=oe([String,Object,Function]),Bi={Close:sn},ul={Close:sn,SuccessFilled:Bs,InfoFilled:Ls,WarningFilled:Ps,CircleCloseFilled:As},qt={success:Bs,warning:Ps,error:As,info:Ls},Pi={validating:wo,success:Kr,error:al},Ne=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},Hs=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),He=e=>(e.install=Wt,e),Ws=(...e)=>t=>{e.forEach(n=>{Ke(n)?n(t):n.value=t})},ce={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Se="update:modelValue",Ct="change",on="input",qn=["","default","small","large"],Ai={large:40,default:32,small:24},Li=e=>Ai[e||"default"],cl=e=>["",...qn].includes(e);var ro=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ro||{});const Ln=e=>{const t=bt(e)?e:[e],n=[];return t.forEach(o=>{var l;bt(o)?n.push(...Ln(o)):Et(o)&&bt(o.children)?n.push(...Ln(o.children)):(n.push(o),Et(o)&&((l=o.component)!=null&&l.subTree)&&n.push(...Ln(o.component.subTree)))}),n},js=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),qs=()=>Math.floor(Math.random()*1e4),mt=e=>e,Ri=["class","style"],Fi=/^on[A-Z]/,Di=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=g(()=>((n==null?void 0:n.value)||[]).concat(Ri)),l=Te();return l?g(()=>{var s;return vo(Object.entries((s=l.proxy)==null?void 0:s.$attrs).filter(([a])=>!o.value.includes(a)&&!(t&&Fi.test(a))))}):g(()=>({}))},an=({from:e,replacement:t,scope:n,version:o,ref:l,type:s="API"},a)=>{G(()=>r(a),i=>{},{immediate:!0})},Ki=(e,t,n)=>{let o={offsetX:0,offsetY:0};const l=i=>{const u=i.clientX,c=i.clientY,{offsetX:f,offsetY:d}=o,v=e.value.getBoundingClientRect(),m=v.left,h=v.top,p=v.width,y=v.height,b=document.documentElement.clientWidth,w=document.documentElement.clientHeight,$=-m+f,L=-h+d,q=b-m-p+f,D=w-h-y+d,T=_=>{const H=Math.min(Math.max(f+_.clientX-u,$),q),I=Math.min(Math.max(d+_.clientY-c,L),D);o={offsetX:H,offsetY:I},e.value.style.transform=`translate(${at(H)}, ${at(I)})`},B=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",B)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",l)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",l)};ke(()=>{ko(()=>{n.value?s():a()})}),Ye(()=>{a()})},zi=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var Vi={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Hi=e=>(t,n)=>Wi(t,n,r(e)),Wi=(e,t,n)=>it(n,e,e).replace(/\{(\w+)\}/g,(o,l)=>{var s;return`${(s=t==null?void 0:t[l])!=null?s:`{${l}}`}`}),ji=e=>{const t=g(()=>r(e).name),n=Bt(e)?e:E(e);return{lang:t,locale:n,t:Hi(e)}},xs=Symbol("localeContextKey"),It=e=>{const t=e||se(xs,E());return ji(g(()=>t.value||Vi))},ho="el",qi="is-",en=(e,t,n,o,l)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),o&&(s+=`__${o}`),l&&(s+=`--${l}`),s},Us=Symbol("namespaceContextKey"),dl=e=>{const t=e||se(Us,E(ho));return g(()=>r(t)||ho)},ee=(e,t)=>{const n=dl(t);return{namespace:n,b:(p="")=>en(n.value,e,p,"",""),e:p=>p?en(n.value,e,"",p,""):"",m:p=>p?en(n.value,e,"","",p):"",be:(p,y)=>p&&y?en(n.value,e,p,y,""):"",em:(p,y)=>p&&y?en(n.value,e,"",p,y):"",bm:(p,y)=>p&&y?en(n.value,e,p,"",y):"",bem:(p,y,b)=>p&&y&&b?en(n.value,e,p,y,b):"",is:(p,...y)=>{const b=y.length>=1?y[0]:!0;return p&&b?`${qi}${p}`:""},cssVar:p=>{const y={};for(const b in p)p[b]&&(y[`--${n.value}-${b}`]=p[b]);return y},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const y={};for(const b in p)p[b]&&(y[`--${n.value}-${e}-${b}`]=p[b]);return y},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},Gs=(e,t={})=>{Bt(e)||ft("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ee("popup"),o=kr(()=>n.bm("parent","hidden"));if(!Me||Xo(document.body,o.value))return;let l=0,s=!1,a="0";const i=()=>{setTimeout(()=>{yt(document==null?void 0:document.body,o.value),s&&document&&(document.body.style.width=a)},200)};G(e,u=>{if(!u){i();return}s=!Xo(document.body,o.value),s&&(a=document.body.style.width),l=_i(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||f==="scroll")&&s&&(document.body.style.width=`calc(100% - ${l}px)`),Ht(document.body,o.value)}),$s(()=>i())},xi=$o({type:oe(Boolean),default:null}),Ui=$o({type:oe(Function)}),Ys=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],l={[e]:xi,[n]:Ui};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:f,onHide:d})=>{const v=Te(),{emit:m}=v,h=v.props,p=g(()=>Ke(h[n])),y=g(()=>h[e]===null),b=T=>{a.value!==!0&&(a.value=!0,i&&(i.value=T),Ke(f)&&f(T))},w=T=>{a.value!==!1&&(a.value=!1,i&&(i.value=T),Ke(d)&&d(T))},$=T=>{if(h.disabled===!0||Ke(c)&&!c())return;const B=p.value&&Me;B&&m(t,!0),(y.value||!B)&&b(T)},L=T=>{if(h.disabled===!0||!Me)return;const B=p.value&&Me;B&&m(t,!1),(y.value||!B)&&w(T)},q=T=>{lt(T)&&(h.disabled&&T?p.value&&m(t,!1):a.value!==T&&(T?b():w()))},D=()=>{a.value?L():$()};return G(()=>h[e],q),u&&v.appContext.config.globalProperties.$route!==void 0&&G(()=>V({},v.proxy.$route),()=>{u.value&&a.value&&L()}),ke(()=>{q(h[e])}),{hide:L,show:$,toggle:D,hasUpdateHandler:p}},useModelToggleProps:l,useModelToggleEmits:o}};Ys("modelValue");const Xs=e=>{const t=Te();return g(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})},Gi=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=Yi(u);Object.assign(a.value,c)},requires:["computeStyles"]},l=g(()=>{const{onFirstUpdate:u,placement:c,strategy:f,modifiers:d}=r(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:f||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),s=ut(),a=E({styles:{popper:{position:r(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return G(l,u=>{const c=r(s);c&&c.setOptions(u)},{deep:!0}),G([e,t],([u,c])=>{i(),!(!u||!c)&&(s.value=Gr(u,c,r(l)))}),Ye(()=>{i()}),{state:g(()=>{var u;return V({},((u=r(s))==null?void 0:u.state)||{})}),styles:g(()=>r(a).styles),attributes:g(()=>r(a).attributes),update:()=>{var u;return(u=r(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=r(s))==null?void 0:u.forceUpdate()},instanceRef:g(()=>r(s))}};function Yi(e){const t=Object.keys(e.elements),n=vo(t.map(l=>[l,e.styles[l]||{}])),o=vo(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:o}}const Js=e=>{if(!e)return{onClick:Wt,onMousedown:Wt,onMouseup:Wt};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},Xi=(e,t=0)=>{if(t===0)return e;const n=E(!1);let o=0;const l=()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{n.value=e.value},t)};return ke(l),G(()=>e.value,s=>{s?l():n.value=s}),n};function xl(){let e;const t=(o,l)=>{n(),e=window.setTimeout(o,l)},n=()=>window.clearTimeout(e);return Eo(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Ul={prefix:Math.floor(Math.random()*1e4),current:0},Ji=Symbol("elIdInjection"),Qs=()=>Te()?se(Ji,Ul):Ul,kt=e=>{const t=Qs(),n=dl();return g(()=>r(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let mn=[];const Gl=e=>{const t=e;t.key===ce.esc&&mn.forEach(n=>n(t))},Qi=e=>{ke(()=>{mn.length===0&&document.addEventListener("keydown",Gl),Me&&mn.push(e)}),Ye(()=>{mn=mn.filter(t=>t!==e),mn.length===0&&Me&&document.removeEventListener("keydown",Gl)})};let Yl;const Zs=()=>{const e=dl(),t=Qs(),n=g(()=>`${e.value}-popper-container-${t.prefix}`),o=g(()=>`#${n.value}`);return{id:n,selector:o}},Zi=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},eu=()=>{const{id:e,selector:t}=Zs();return wr(()=>{Me&&!Yl&&!document.body.querySelector(t.value)&&(Yl=Zi(e.value))}),{id:e,selector:t}},tu=ie({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),nu=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:s}=xl(),{registerTimeout:a,cancelTimeout:i}=xl();return{onOpen:f=>{s(()=>{o(f);const d=r(n);Ee(d)&&d>0&&a(()=>{l(f)},d)},r(e))},onClose:f=>{i(),s(()=>{l(f)},r(t))}}},ea=Symbol("elForwardRef"),ou=e=>{Ie(ea,{setForwardRef:n=>{e.value=n}})},lu=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Xl=E(0),ta=2e3,na=Symbol("zIndexContextKey"),fl=e=>{const t=e||se(na,void 0),n=g(()=>{const s=r(t);return Ee(s)?s:ta}),o=g(()=>n.value+Xl.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Xl.value++,o.value)}};function su(e){const t=E();function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:s,value:a}=e.value;if(l==null||s==null)return;const i=a.slice(0,Math.max(0,l)),u=a.slice(Math.max(0,s));t.value={selectionStart:l,selectionEnd:s,value:a,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:s,afterTxt:a,selectionStart:i}=t.value;if(s==null||a==null||i==null)return;let u=l.length;if(l.endsWith(a))u=l.length-a.length;else if(l.startsWith(s))u=s.length;else{const c=s[i-1],f=l.indexOf(c,i-1);f!==-1&&(u=f+1)}e.value.setSelectionRange(u,u)}return[n,o]}const au=(e,t,n)=>Ln(e.subTree).filter(s=>{var a;return Et(s)&&((a=s.type)==null?void 0:a.name)===t&&!!s.component}).map(s=>s.component.uid).map(s=>n[s]).filter(s=>!!s),ru=(e,t)=>{const n={},o=ut([]);return{children:o,addChild:a=>{n[a.uid]=a,o.value=au(e,t,n)},removeChild:a=>{delete n[a],o.value=o.value.filter(i=>i.uid!==a)}}},At=$o({type:String,values:qn,required:!1}),oa=Symbol("size"),iu=()=>{const e=se(oa,{});return g(()=>r(e.size)||"")};function uu(e,{afterFocus:t,afterBlur:n}={}){const o=Te(),{emit:l}=o,s=ut(),a=E(!1),i=f=>{a.value||(a.value=!0,l("focus",f),t==null||t())},u=f=>{var d;f.relatedTarget&&((d=s.value)!=null&&d.contains(f.relatedTarget))||(a.value=!1,l("blur",f),n==null||n())},c=()=>{var f;(f=e.value)==null||f.focus()};return G(s,f=>{f&&(f.setAttribute("role","button"),f.setAttribute("tabindex","-1"))}),ot(s,"click",c),{wrapperRef:s,isFocused:a,handleFocus:i,handleBlur:u}}const la=Symbol(),go=E();function Io(e,t=void 0){const n=Te()?se(la,go):go;return e?g(()=>{var o,l;return(l=(o=n.value)==null?void 0:o[e])!=null?l:t}):n}function To(e,t){const n=Io(),o=ee(e,g(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||ho})),l=It(g(()=>{var i;return(i=n.value)==null?void 0:i.locale})),s=fl(g(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||ta})),a=g(()=>{var i;return r(t)||((i=n.value)==null?void 0:i.size)||""});return sa(g(()=>r(n)||{})),{ns:o,locale:l,zIndex:s,size:a}}const sa=(e,t,n=!1)=>{var o;const l=!!Te(),s=l?Io():void 0,a=(o=t==null?void 0:t.provide)!=null?o:l?Ie:void 0;if(!a)return;const i=g(()=>{const u=r(e);return s!=null&&s.value?cu(s.value,u):u});return a(la,i),a(xs,g(()=>i.value.locale)),a(Us,g(()=>i.value.namespace)),a(na,g(()=>i.value.zIndex)),a(oa,{size:g(()=>i.value.size||"")}),(n||!go.value)&&(go.value=i.value),i},cu=(e,t)=>{var n;const o=[...new Set([...Yo(e),...Yo(t)])],l={};for(const s of o)l[s]=(n=t[s])!=null?n:e[s];return l},du=ie({a11y:{type:Boolean,default:!0},locale:{type:oe(Object)},size:At,button:{type:oe(Object)},experimentalFeatures:{type:oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:oe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Jo={},fu=M({name:"ElConfigProvider",props:du,setup(e,{slots:t}){G(()=>e.message,o=>{Object.assign(Jo,o!=null?o:{})},{immediate:!0,deep:!0});const n=sa(e);return()=>J(t,"default",{config:n==null?void 0:n.value})}}),ab=Ne(fu);var ne=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n};const pu=ie({size:{type:oe([Number,String])},color:{type:String}}),vu=M({name:"ElIcon",inheritAttrs:!1}),mu=M(Z(V({},vu),{props:pu,setup(e){const t=e,n=ee("icon"),o=g(()=>{const{size:l,color:s}=t;return!l&&!s?{}:{fontSize:ht(l)?void 0:at(l),"--color":s}});return(l,s)=>(C(),A("i",Ge({class:r(n).b(),style:r(o)},l.$attrs),[J(l.$slots,"default")],16))}}));var hu=ne(mu,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ye=Ne(hu),gu=["light","dark"],bu=ie({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Yo(qt),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:gu,default:"light"}}),yu={close:e=>e instanceof MouseEvent},Cu=M({name:"ElAlert"}),ku=M(Z(V({},Cu),{props:bu,emits:yu,setup(e,{emit:t}){const n=e,{Close:o}=ul,l=Ut(),s=ee("alert"),a=E(!0),i=g(()=>qt[n.type]),u=g(()=>[s.e("icon"),{[s.is("big")]:!!n.description||!!l.default}]),c=g(()=>({[s.is("bold")]:n.description||l.default})),f=d=>{a.value=!1,t("close",d)};return(d,v)=>(C(),x(st,{name:r(s).b("fade"),persisted:""},{default:K(()=>[$e(R("div",{class:k([r(s).b(),r(s).m(d.type),r(s).is("center",d.center),r(s).is(d.effect)]),role:"alert"},[d.showIcon&&r(i)?(C(),x(r(ye),{key:0,class:k(r(u))},{default:K(()=>[(C(),x(_e(r(i))))]),_:1},8,["class"])):U("v-if",!0),R("div",{class:k(r(s).e("content"))},[d.title||d.$slots.title?(C(),A("span",{key:0,class:k([r(s).e("title"),r(c)])},[J(d.$slots,"title",{},()=>[tt(pe(d.title),1)])],2)):U("v-if",!0),d.$slots.default||d.description?(C(),A("p",{key:1,class:k(r(s).e("description"))},[J(d.$slots,"default",{},()=>[tt(pe(d.description),1)])],2)):U("v-if",!0),d.closable?(C(),A(Ae,{key:2},[d.closeText?(C(),A("div",{key:0,class:k([r(s).e("close-btn"),r(s).is("customed")]),onClick:f},pe(d.closeText),3)):(C(),x(r(ye),{key:1,class:k(r(s).e("close-btn")),onClick:f},{default:K(()=>[X(r(o))]),_:1},8,["class"]))],64)):U("v-if",!0)],2)],2),[[Fe,a.value]])]),_:3},8,["name"]))}}));var wu=ne(ku,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const rb=Ne(wu),Sn=Symbol("formContextKey"),xt=Symbol("formItemContextKey"),ct=(e,t={})=>{const n=E(void 0),o=t.prop?n:Xs("size"),l=t.global?n:iu(),s=t.form?{size:void 0}:se(Sn,void 0),a=t.formItem?{size:void 0}:se(xt,void 0);return g(()=>o.value||r(e)||(a==null?void 0:a.size)||(s==null?void 0:s.size)||l.value||"")},Gt=e=>{const t=Xs("disabled"),n=se(Sn,void 0);return g(()=>t.value||r(e)||(n==null?void 0:n.disabled)||!1)},Tt=()=>{const e=se(Sn,void 0),t=se(xt,void 0);return{form:e,formItem:t}},$n=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=E(!1)),o||(o=E(!1));const l=E();let s;const a=g(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return ke(()=>{s=G([qe(e,"id"),n],([i,u])=>{const c=i!=null?i:u?void 0:kt().value;c!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(o!=null&&o.value)&&!u&&c&&t.addInputId(c)),l.value=c)},{immediate:!0})}),Is(()=>{s&&s(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:a,inputId:l}},Eu=ie({size:{type:String,values:qn},disabled:Boolean}),Su=ie(Z(V({},Eu),{model:Object,rules:{type:oe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}})),$u={validate:(e,t,n)=>(bt(e)||Ce(e))&<(t)&&Ce(n)};function Iu(){const e=E([]),t=g(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){const a=e.value.indexOf(s);return a===-1&&t.value,a}function o(s,a){if(s&&a){const i=n(a);e.value.splice(i,1,s)}else s&&e.value.push(s)}function l(s){const a=n(s);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:l}}const Zn=(e,t)=>{const n=Fn(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},Tu="ElForm",Nu=M({name:Tu}),_u=M(Z(V({},Nu),{props:Su,emits:$u,setup(e,{expose:t,emit:n}){const o=e,l=[],s=ct(),a=ee("form"),i=g(()=>{const{labelPosition:w,inline:$}=o;return[a.b(),a.m(s.value||"default"),{[a.m(`label-${w}`)]:w,[a.m("inline")]:$}]}),u=w=>{l.push(w)},c=w=>{w.prop&&l.splice(l.indexOf(w),1)},f=(w=[])=>{o.model&&Zn(l,w).forEach($=>$.resetField())},d=(w=[])=>{Zn(l,w).forEach($=>$.clearValidate())},v=g(()=>!!o.model),m=w=>{if(l.length===0)return[];const $=Zn(l,w);return $.length?$:[]},h=w=>Ve(this,null,function*(){return y(void 0,w)}),p=(...$)=>Ve(this,[...$],function*(w=[]){if(!v.value)return!1;const L=m(w);if(L.length===0)return!0;let q={};for(const D of L)try{yield D.validate("")}catch(T){q=V(V({},q),T)}return Object.keys(q).length===0?!0:Promise.reject(q)}),y=(...L)=>Ve(this,[...L],function*(w=[],$){const q=!Ke($);try{const D=yield p(w);return D===!0&&($==null||$(D)),D}catch(D){if(D instanceof Error)throw D;const T=D;return o.scrollToError&&b(Object.keys(T)[0]),$==null||$(!1,T),q&&Promise.reject(T)}}),b=w=>{var $;const L=Zn(l,w)[0];L&&(($=L.$el)==null||$.scrollIntoView(o.scrollIntoViewOptions))};return G(()=>o.rules,()=>{o.validateOnRuleChange&&h().catch(w=>void 0)},{deep:!0}),Ie(Sn,Xe(V(Z(V({},$t(o)),{emit:n,resetFields:f,clearValidate:d,validateField:y,addField:u,removeField:c}),Iu()))),t({validate:h,validateField:y,resetFields:f,clearValidate:d,scrollToField:b}),(w,$)=>(C(),A("form",{class:k(r(i))},[J(w.$slots,"default")],2))}}));var Ou=ne(_u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);const Mu=["","error","validating","success"],Bu=ie({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:oe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:oe([Object,Array])},error:String,validateStatus:{type:String,values:Mu},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:qn}}),Jl="ElLabelWrap";var Pu=M({name:Jl,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=se(Sn,void 0),o=se(xt);o||ft(Jl,"usage: ");const l=ee("form"),s=E(),a=E(0),i=()=>{var f;if((f=s.value)!=null&&f.firstElementChild){const d=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},u=(f="update")=>{de(()=>{t.default&&e.isAutoWidth&&(f==="update"?a.value=i():f==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},c=()=>u("update");return ke(()=>{c()}),Ye(()=>{u("remove")}),Wn(()=>c()),G(a,(f,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,d))}),Pt(g(()=>{var f,d;return(d=(f=s.value)==null?void 0:f.firstElementChild)!=null?d:null}),c),()=>{var f,d;if(!t)return null;const{isAutoWidth:v}=e;if(v){const m=n==null?void 0:n.autoLabelWidth,h=o==null?void 0:o.hasLabel,p={};if(h&&m&&m!=="auto"){const y=Math.max(0,Number.parseInt(m,10)-a.value),b=n.labelPosition==="left"?"marginRight":"marginLeft";y&&(p[b]=`${y}px`)}return X("div",{ref:s,class:[l.be("item","label-wrap")],style:p},[(f=t.default)==null?void 0:f.call(t)])}else return X(Ae,{ref:s},[(d=t.default)==null?void 0:d.call(t)])}}});const Au=["role","aria-labelledby"],Lu=M({name:"ElFormItem"}),Ru=M(Z(V({},Lu),{props:Bu,setup(e,{expose:t}){const n=e,o=Ut(),l=se(Sn,void 0),s=se(xt,void 0),a=ct(void 0,{formItem:!1}),i=ee("form-item"),u=kt().value,c=E([]),f=E(""),d=ci(f,100),v=E(""),m=E();let h,p=!1;const y=g(()=>{if((l==null?void 0:l.labelPosition)==="top")return{};const ue=at(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return ue?{width:ue}:{}}),b=g(()=>{if((l==null?void 0:l.labelPosition)==="top"||l!=null&&l.inline)return{};if(!n.label&&!n.labelWidth&&_)return{};const ue=at(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return!n.label&&!o.label?{marginLeft:ue}:{}}),w=g(()=>[i.b(),i.m(a.value),i.is("error",f.value==="error"),i.is("validating",f.value==="validating"),i.is("success",f.value==="success"),i.is("required",P.value||n.required),i.is("no-asterisk",l==null?void 0:l.hideRequiredAsterisk),(l==null?void 0:l.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:l==null?void 0:l.statusIcon}]),$=g(()=>lt(n.inlineMessage)?n.inlineMessage:(l==null?void 0:l.inlineMessage)||!1),L=g(()=>[i.e("error"),{[i.em("error","inline")]:$.value}]),q=g(()=>n.prop?Ce(n.prop)?n.prop:n.prop.join("."):""),D=g(()=>!!(n.label||o.label)),T=g(()=>n.for||c.value.length===1?c.value[0]:void 0),B=g(()=>!T.value&&D.value),_=!!s,H=g(()=>{const ue=l==null?void 0:l.model;if(!(!ue||!n.prop))return Do(ue,n.prop).value}),I=g(()=>{const{required:ue}=n,be=[];n.rules&&be.push(...Fn(n.rules));const Be=l==null?void 0:l.rules;if(Be&&n.prop){const Oe=Do(Be,n.prop).value;Oe&&be.push(...Fn(Oe))}if(ue!==void 0){const Oe=be.map((De,Ue)=>[De,Ue]).filter(([De])=>Object.keys(De).includes("required"));if(Oe.length>0)for(const[De,Ue]of Oe)De.required!==ue&&(be[Ue]=Z(V({},De),{required:ue}));else be.push({required:ue})}return be}),W=g(()=>I.value.length>0),N=ue=>I.value.filter(Be=>!Be.trigger||!ue?!0:Array.isArray(Be.trigger)?Be.trigger.includes(ue):Be.trigger===ue).map(De=>{var Ue=De,{trigger:Be}=Ue,Oe=Ro(Ue,["trigger"]);return Oe}),P=g(()=>I.value.some(ue=>ue.required)),F=g(()=>{var ue;return d.value==="error"&&n.showMessage&&((ue=l==null?void 0:l.showMessage)!=null?ue:!0)}),z=g(()=>`${n.label||""}${(l==null?void 0:l.labelSuffix)||""}`),S=ue=>{f.value=ue},Q=ue=>{var be,Be;const{errors:Oe,fields:De}=ue;(!Oe||!De)&&console.error(ue),S("error"),v.value=Oe?(Be=(be=Oe==null?void 0:Oe[0])==null?void 0:be.message)!=null?Be:`${n.prop} is required`:"",l==null||l.emit("validate",n.prop,!1,v.value)},te=()=>{S("success"),l==null||l.emit("validate",n.prop,!0,"")},le=ue=>Ve(this,null,function*(){const be=q.value;return new Dr({[be]:ue}).validate({[be]:H.value},{firstFields:!0}).then(()=>(te(),!0)).catch(Oe=>(Q(Oe),Promise.reject(Oe)))}),ae=(ue,be)=>Ve(this,null,function*(){if(p||!n.prop)return!1;const Be=Ke(be);if(!W.value)return be==null||be(!1),!1;const Oe=N(ue);return Oe.length===0?(be==null||be(!0),!0):(S("validating"),le(Oe).then(()=>(be==null||be(!0),!0)).catch(De=>{const{fields:Ue}=De;return be==null||be(!1,Ue),Be?!1:Promise.reject(Ue)}))}),ge=()=>{S(""),v.value="",p=!1},ze=()=>Ve(this,null,function*(){const ue=l==null?void 0:l.model;if(!ue||!n.prop)return;const be=Do(ue,n.prop);p=!0,be.value=Bl(h),yield de(),ge(),p=!1}),je=ue=>{c.value.includes(ue)||c.value.push(ue)},Yt=ue=>{c.value=c.value.filter(be=>be!==ue)};G(()=>n.error,ue=>{v.value=ue||"",S(ue?"error":"")},{immediate:!0}),G(()=>n.validateStatus,ue=>S(ue||""));const Nt=Xe(Z(V({},$t(n)),{$el:m,size:a,validateState:f,labelId:u,inputIds:c,isGroup:B,hasLabel:D,addInputId:je,removeInputId:Yt,resetField:ze,clearValidate:ge,validate:ae}));return Ie(xt,Nt),ke(()=>{n.prop&&(l==null||l.addField(Nt),h=Bl(H.value))}),Ye(()=>{l==null||l.removeField(Nt)}),t({size:a,validateMessage:v,validateState:f,validate:ae,clearValidate:ge,resetField:ze}),(ue,be)=>{var Be;return C(),A("div",{ref_key:"formItemRef",ref:m,class:k(r(w)),role:r(B)?"group":void 0,"aria-labelledby":r(B)?r(u):void 0},[X(r(Pu),{"is-auto-width":r(y).width==="auto","update-all":((Be=r(l))==null?void 0:Be.labelWidth)==="auto"},{default:K(()=>[r(D)?(C(),x(_e(r(T)?"label":"div"),{key:0,id:r(u),for:r(T),class:k(r(i).e("label")),style:ve(r(y))},{default:K(()=>[J(ue.$slots,"label",{label:r(z)},()=>[tt(pe(r(z)),1)])]),_:3},8,["id","for","class","style"])):U("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),R("div",{class:k(r(i).e("content")),style:ve(r(b))},[J(ue.$slots,"default"),X(Er,{name:`${r(i).namespace.value}-zoom-in-top`},{default:K(()=>[r(F)?J(ue.$slots,"error",{key:0,error:v.value},()=>[R("div",{class:k(r(L))},pe(v.value),3)]):U("v-if",!0)]),_:3},8,["name"])],6)],10,Au)}}}));var aa=ne(Ru,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ib=Ne(Ou,{FormItem:aa}),ub=He(aa);let vt;const Fu=` +var vr=Object.defineProperty,mr=Object.defineProperties;var hr=Object.getOwnPropertyDescriptors;var Xn=Object.getOwnPropertySymbols;var _l=Object.prototype.hasOwnProperty,Ol=Object.prototype.propertyIsEnumerable;var Jn=Math.pow,Nl=(e,t,n)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))_l.call(t,n)&&Nl(e,n,t[n]);if(Xn)for(var n of Xn(t))Ol.call(t,n)&&Nl(e,n,t[n]);return e},Z=(e,t)=>mr(e,hr(t));var Ro=(e,t)=>{var n={};for(var o in e)_l.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Xn)for(var o of Xn(e))t.indexOf(o)<0&&Ol.call(e,o)&&(n[o]=e[o]);return n};var Ve=(e,t,n)=>new Promise((o,l)=>{var s=u=>{try{i(n.next(u))}catch(c){l(c)}},a=u=>{try{i(n.throw(u))}catch(c){l(c)}},i=u=>u.done?o(u.value):Promise.resolve(u.value).then(s,a);i((n=n.apply(e,t)).next())});import{g as gr,e as $s,k as E,r as Co,s as ut,m as ko,u as r,w as G,f as Te,h as ke,n as de,p as Ce,q as br,v as yr,x as Ze,y as Mt,z as Cr,N as Wt,A as Ke,B as bt,C as Et,l as g,D as Ye,E as se,i as Bt,F as kr,G as wr,H as Ie,I as M,J,o as C,c as A,K as Ge,L as Ut,M as x,O as K,P as $e,Q as Fe,a as R,R as k,S as _e,T as U,U as tt,V as pe,W as X,X as Ae,Y as st,j as qe,Z as Is,_ as Xe,t as $t,$ as Wn,a0 as ve,a1 as Er,a2 as Sr,a3 as we,a4 as $r,a5 as Ts,a6 as Ir,a7 as Ns,a8 as Tr,a9 as yn,aa as po,ab as _s,ac as Nr,ad as Re,ae as jt,af as Pe,ag as fe,ah as Os,ai as _r,aj as Ms,ak as Pn,al as Fo,am as Or,an as Mr,ao as Ml,ap as Br,aq as Pr,ar as Ar,as as Cn}from"./@vue-062efada.js";import{g as it,s as Lr,f as vo,c as Fn,a as Bl,i as nt,b as Rr,d as Uo,p as Fr,e as Go}from"./lodash-es-74278d6e.js";import{S as Dr}from"./async-validator-a2d0d42f.js";import{s as Bs,w as Ps,c as As,i as Ls,a as sn,l as wo,b as Kr,d as al,v as zr,h as Vr,e as rl,f as jn,m as Hr,g as Wr,p as Rs,j as jr,k as qr,n as xr,o as Ur}from"./@element-plus-45f3a8b7.js";import{T as Fs}from"./@ctrl-b0f23ca4.js";import{y as Gr,E as Ds}from"./@popperjs-7c8154ca.js";const Yr='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Xr=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Pl=e=>Array.from(e.querySelectorAll(Yr)).filter(t=>Jr(t)&&Xr(t)),Jr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},ao=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const l=document.createEvent(o);return l.initEvent(t,...n),e.dispatchEvent(l),e},We=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const s=e==null?void 0:e(l);if(n===!1||!s)return t==null?void 0:t(l)},Al=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Qr=Object.defineProperty,Zr=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Rl=(e,t,n)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oi=(e,t)=>{for(var n in t||(t={}))ti.call(t,n)&&Rl(e,n,t[n]);if(Ll)for(var n of Ll(t))ni.call(t,n)&&Rl(e,n,t[n]);return e},li=(e,t)=>Zr(e,ei(t));function Fl(e,t){var n;const o=ut();return ko(()=>{o.value=e()},li(oi({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Co(o)}var Dl;const Me=typeof window!="undefined",si=e=>typeof e=="string",mo=()=>{},Ks=Me&&((Dl=window==null?void 0:window.navigator)==null?void 0:Dl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Dn(e){return typeof e=="function"?e():r(e)}function ai(e,t){function n(...o){return new Promise((l,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(l).catch(s)})}return n}function ri(e,t={}){let n,o,l=mo;const s=i=>{clearTimeout(i),l(),l=mo};return i=>{const u=Dn(e),c=Dn(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(i())):new Promise((f,d)=>{l=t.rejectOnCancel?d:f,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,f(i())},c)),n=setTimeout(()=>{o&&s(o),o=null,f(i())},u)})}}function ii(e){return e}function Eo(e){return gr()?($s(e),!0):!1}function ui(e,t=200,n={}){return ai(ri(t,n),e)}function ci(e,t=200,n={}){const o=E(e.value),l=ui(()=>{o.value=e.value},t,n);return G(e,()=>l()),o}function di(e,t=!0){Te()?ke(e):t?e():de(e)}function kn(e,t,n={}){const{immediate:o=!0}=n,l=E(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function i(){l.value=!1,a()}function u(...c){a(),l.value=!0,s=setTimeout(()=>{l.value=!1,s=null,e(...c)},Dn(t))}return o&&(l.value=!0,Me&&u()),Eo(i),{isPending:Co(l),start:u,stop:i}}function Vt(e){var t;const n=Dn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const So=Me?window:void 0,fi=Me?window.document:void 0;function ot(...e){let t,n,o,l;if(si(e[0])||Array.isArray(e[0])?([n,o,l]=e,t=So):[t,n,o,l]=e,!t)return mo;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],a=()=>{s.forEach(f=>f()),s.length=0},i=(f,d,v,m)=>(f.addEventListener(d,v,m),()=>f.removeEventListener(d,v,m)),u=G(()=>[Vt(t),Dn(l)],([f,d])=>{a(),f&&s.push(...n.flatMap(v=>o.map(m=>i(f,v,m,d))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return Eo(c),c}let Kl=!1;function pi(e,t,n={}){const{window:o=So,ignore:l=[],capture:s=!0,detectIframe:a=!1}=n;if(!o)return;Ks&&!Kl&&(Kl=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",mo)));let i=!0;const u=v=>l.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(h=>h===v.target||v.composedPath().includes(h));{const h=Vt(m);return h&&(v.target===h||v.composedPath().includes(h))}}),f=[ot(o,"click",v=>{const m=Vt(e);if(!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(i=!u(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:s}),ot(o,"pointerdown",v=>{const m=Vt(e);m&&(i=!v.composedPath().includes(m)&&!u(v))},{passive:!0}),a&&ot(o,"blur",v=>{var m;const h=Vt(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&t(v)})].filter(Boolean);return()=>f.forEach(v=>v())}function vi(e,t=!1){const n=E(),o=()=>n.value=!!e();return o(),di(o,t),n}const zl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Vl="__vueuse_ssr_handlers__";zl[Vl]=zl[Vl]||{};function mi({document:e=fi}={}){if(!e)return E("visible");const t=E(e.visibilityState);return ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Hl=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,bi=(e,t)=>{var n={};for(var o in e)hi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Hl)for(var o of Hl(e))t.indexOf(o)<0&&gi.call(e,o)&&(n[o]=e[o]);return n};function Pt(e,t,n={}){const o=n,{window:l=So}=o,s=bi(o,["window"]);let a;const i=vi(()=>l&&"ResizeObserver"in l),u=()=>{a&&(a.disconnect(),a=void 0)},c=G(()=>Vt(e),d=>{u(),i.value&&l&&d&&(a=new ResizeObserver(t),a.observe(d,s))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return Eo(f),{isSupported:i,stop:f}}var Wl;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Wl||(Wl={}));var yi=Object.defineProperty,jl=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable,ql=(e,t,n)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wi=(e,t)=>{for(var n in t||(t={}))Ci.call(t,n)&&ql(e,n,t[n]);if(jl)for(var n of jl(t))ki.call(t,n)&&ql(e,n,t[n]);return e};const Ei={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};wi({linear:ii},Ei);function Si({window:e=So}={}){if(!e)return E(!1);const t=E(e.document.hasFocus());return ot(e,"blur",()=>{t.value=!1}),ot(e,"focus",()=>{t.value=!0}),t}const $i=()=>Me&&/firefox/i.test(window.navigator.userAgent),il=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},ht=e=>e===void 0,lt=e=>typeof e=="boolean",Ee=e=>typeof e=="number",St=e=>typeof Element=="undefined"?!1:e instanceof Element,Ii=e=>Ce(e)?!Number.isNaN(Number(e)):!1,Ti=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),zt=e=>br(e),Yo=e=>Object.keys(e),Do=(e,t,n)=>({get value(){return it(e,t,n)},set value(o){Lr(e,t,o)}});class Ni extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ft(e,t){throw new Ni(`[${e}] ${t}`)}const zs=(e="")=>e.split(" ").filter(t=>!!t.trim()),Xo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ht=(e,t)=>{!e||!t.trim()||e.classList.add(...zs(t))},yt=(e,t)=>{!e||!t.trim()||e.classList.remove(...zs(t))},vn=(e,t)=>{var n;if(!Me||!e||!t)return"";let o=yr(t);o==="float"&&(o="cssFloat");try{const l=e.style[o];if(l)return l;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[o]:""}catch(l){return e.style[o]}};function at(e,t="px"){if(!e)return"";if(Ee(e)||Ii(e))return`${e}${t}`;if(Ce(e))return e}let Qn;const _i=e=>{var t;if(!Me)return 0;if(Qn!==void 0)return Qn;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const s=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Qn=o-s,Qn};function Oi(e,t){if(!Me)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),s=l+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;li&&(e.scrollTop=s-e.clientHeight)}const Vs="__epPropKey",oe=e=>e,Mi=e=>Ze(e)&&!!e[Vs],$o=(e,t)=>{if(!Ze(e)||Mi(e))return e;const{values:n,required:o,default:l,type:s,validator:a}=e,u={type:s,required:!!o,validator:n||a?c=>{let f=!1,d=[];if(n&&(d=Array.from(n),Mt(e,"default")&&d.push(l),f||(f=d.includes(c))),a&&(f||(f=a(c))),!f&&d.length>0){const v=[...new Set(d)].map(m=>JSON.stringify(m)).join(", ");Cr(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[Vs]:!0};return Mt(e,"default")&&(u.default=l),u},ie=e=>vo(Object.entries(e).map(([t,n])=>[t,$o(n,t)])),xe=oe([String,Object,Function]),Bi={Close:sn},ul={Close:sn,SuccessFilled:Bs,InfoFilled:Ls,WarningFilled:Ps,CircleCloseFilled:As},qt={success:Bs,warning:Ps,error:As,info:Ls},Pi={validating:wo,success:Kr,error:al},Ne=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},Hs=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),He=e=>(e.install=Wt,e),Ws=(...e)=>t=>{e.forEach(n=>{Ke(n)?n(t):n.value=t})},ce={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Se="update:modelValue",Ct="change",on="input",qn=["","default","small","large"],Ai={large:40,default:32,small:24},Li=e=>Ai[e||"default"],cl=e=>["",...qn].includes(e);var ro=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ro||{});const Ln=e=>{const t=bt(e)?e:[e],n=[];return t.forEach(o=>{var l;bt(o)?n.push(...Ln(o)):Et(o)&&bt(o.children)?n.push(...Ln(o.children)):(n.push(o),Et(o)&&((l=o.component)!=null&&l.subTree)&&n.push(...Ln(o.component.subTree)))}),n},js=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),qs=()=>Math.floor(Math.random()*1e4),mt=e=>e,Ri=["class","style"],Fi=/^on[A-Z]/,Di=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=g(()=>((n==null?void 0:n.value)||[]).concat(Ri)),l=Te();return l?g(()=>{var s;return vo(Object.entries((s=l.proxy)==null?void 0:s.$attrs).filter(([a])=>!o.value.includes(a)&&!(t&&Fi.test(a))))}):g(()=>({}))},an=({from:e,replacement:t,scope:n,version:o,ref:l,type:s="API"},a)=>{G(()=>r(a),i=>{},{immediate:!0})},Ki=(e,t,n)=>{let o={offsetX:0,offsetY:0};const l=i=>{const u=i.clientX,c=i.clientY,{offsetX:f,offsetY:d}=o,v=e.value.getBoundingClientRect(),m=v.left,h=v.top,p=v.width,y=v.height,b=document.documentElement.clientWidth,w=document.documentElement.clientHeight,$=-m+f,L=-h+d,q=b-m-p+f,D=w-h-y+d,T=_=>{const H=Math.min(Math.max(f+_.clientX-u,$),q),I=Math.min(Math.max(d+_.clientY-c,L),D);o={offsetX:H,offsetY:I},e.value.style.transform=`translate(${at(H)}, ${at(I)})`},B=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",B)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",l)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",l)};ke(()=>{ko(()=>{n.value?s():a()})}),Ye(()=>{a()})},zi=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var Vi={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Hi=e=>(t,n)=>Wi(t,n,r(e)),Wi=(e,t,n)=>it(n,e,e).replace(/\{(\w+)\}/g,(o,l)=>{var s;return`${(s=t==null?void 0:t[l])!=null?s:`{${l}}`}`}),ji=e=>{const t=g(()=>r(e).name),n=Bt(e)?e:E(e);return{lang:t,locale:n,t:Hi(e)}},xs=Symbol("localeContextKey"),It=e=>{const t=e||se(xs,E());return ji(g(()=>t.value||Vi))},ho="el",qi="is-",en=(e,t,n,o,l)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),o&&(s+=`__${o}`),l&&(s+=`--${l}`),s},Us=Symbol("namespaceContextKey"),dl=e=>{const t=e||se(Us,E(ho));return g(()=>r(t)||ho)},ee=(e,t)=>{const n=dl(t);return{namespace:n,b:(p="")=>en(n.value,e,p,"",""),e:p=>p?en(n.value,e,"",p,""):"",m:p=>p?en(n.value,e,"","",p):"",be:(p,y)=>p&&y?en(n.value,e,p,y,""):"",em:(p,y)=>p&&y?en(n.value,e,"",p,y):"",bm:(p,y)=>p&&y?en(n.value,e,p,"",y):"",bem:(p,y,b)=>p&&y&&b?en(n.value,e,p,y,b):"",is:(p,...y)=>{const b=y.length>=1?y[0]:!0;return p&&b?`${qi}${p}`:""},cssVar:p=>{const y={};for(const b in p)p[b]&&(y[`--${n.value}-${b}`]=p[b]);return y},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const y={};for(const b in p)p[b]&&(y[`--${n.value}-${e}-${b}`]=p[b]);return y},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},Gs=(e,t={})=>{Bt(e)||ft("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ee("popup"),o=kr(()=>n.bm("parent","hidden"));if(!Me||Xo(document.body,o.value))return;let l=0,s=!1,a="0";const i=()=>{setTimeout(()=>{yt(document==null?void 0:document.body,o.value),s&&document&&(document.body.style.width=a)},200)};G(e,u=>{if(!u){i();return}s=!Xo(document.body,o.value),s&&(a=document.body.style.width),l=_i(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||f==="scroll")&&s&&(document.body.style.width=`calc(100% - ${l}px)`),Ht(document.body,o.value)}),$s(()=>i())},xi=$o({type:oe(Boolean),default:null}),Ui=$o({type:oe(Function)}),Ys=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],l={[e]:xi,[n]:Ui};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:f,onHide:d})=>{const v=Te(),{emit:m}=v,h=v.props,p=g(()=>Ke(h[n])),y=g(()=>h[e]===null),b=T=>{a.value!==!0&&(a.value=!0,i&&(i.value=T),Ke(f)&&f(T))},w=T=>{a.value!==!1&&(a.value=!1,i&&(i.value=T),Ke(d)&&d(T))},$=T=>{if(h.disabled===!0||Ke(c)&&!c())return;const B=p.value&&Me;B&&m(t,!0),(y.value||!B)&&b(T)},L=T=>{if(h.disabled===!0||!Me)return;const B=p.value&&Me;B&&m(t,!1),(y.value||!B)&&w(T)},q=T=>{lt(T)&&(h.disabled&&T?p.value&&m(t,!1):a.value!==T&&(T?b():w()))},D=()=>{a.value?L():$()};return G(()=>h[e],q),u&&v.appContext.config.globalProperties.$route!==void 0&&G(()=>V({},v.proxy.$route),()=>{u.value&&a.value&&L()}),ke(()=>{q(h[e])}),{hide:L,show:$,toggle:D,hasUpdateHandler:p}},useModelToggleProps:l,useModelToggleEmits:o}};Ys("modelValue");const Xs=e=>{const t=Te();return g(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})},Gi=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=Yi(u);Object.assign(a.value,c)},requires:["computeStyles"]},l=g(()=>{const{onFirstUpdate:u,placement:c,strategy:f,modifiers:d}=r(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:f||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),s=ut(),a=E({styles:{popper:{position:r(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return G(l,u=>{const c=r(s);c&&c.setOptions(u)},{deep:!0}),G([e,t],([u,c])=>{i(),!(!u||!c)&&(s.value=Gr(u,c,r(l)))}),Ye(()=>{i()}),{state:g(()=>{var u;return V({},((u=r(s))==null?void 0:u.state)||{})}),styles:g(()=>r(a).styles),attributes:g(()=>r(a).attributes),update:()=>{var u;return(u=r(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=r(s))==null?void 0:u.forceUpdate()},instanceRef:g(()=>r(s))}};function Yi(e){const t=Object.keys(e.elements),n=vo(t.map(l=>[l,e.styles[l]||{}])),o=vo(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:o}}const Js=e=>{if(!e)return{onClick:Wt,onMousedown:Wt,onMouseup:Wt};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},Xi=(e,t=0)=>{if(t===0)return e;const n=E(!1);let o=0;const l=()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{n.value=e.value},t)};return ke(l),G(()=>e.value,s=>{s?l():n.value=s}),n};function xl(){let e;const t=(o,l)=>{n(),e=window.setTimeout(o,l)},n=()=>window.clearTimeout(e);return Eo(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Ul={prefix:Math.floor(Math.random()*1e4),current:0},Ji=Symbol("elIdInjection"),Qs=()=>Te()?se(Ji,Ul):Ul,kt=e=>{const t=Qs(),n=dl();return g(()=>r(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let mn=[];const Gl=e=>{const t=e;t.key===ce.esc&&mn.forEach(n=>n(t))},Qi=e=>{ke(()=>{mn.length===0&&document.addEventListener("keydown",Gl),Me&&mn.push(e)}),Ye(()=>{mn=mn.filter(t=>t!==e),mn.length===0&&Me&&document.removeEventListener("keydown",Gl)})};let Yl;const Zs=()=>{const e=dl(),t=Qs(),n=g(()=>`${e.value}-popper-container-${t.prefix}`),o=g(()=>`#${n.value}`);return{id:n,selector:o}},Zi=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},eu=()=>{const{id:e,selector:t}=Zs();return wr(()=>{Me&&!Yl&&!document.body.querySelector(t.value)&&(Yl=Zi(e.value))}),{id:e,selector:t}},tu=ie({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),nu=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:s}=xl(),{registerTimeout:a,cancelTimeout:i}=xl();return{onOpen:f=>{s(()=>{o(f);const d=r(n);Ee(d)&&d>0&&a(()=>{l(f)},d)},r(e))},onClose:f=>{i(),s(()=>{l(f)},r(t))}}},ea=Symbol("elForwardRef"),ou=e=>{Ie(ea,{setForwardRef:n=>{e.value=n}})},lu=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Xl=E(0),ta=2e3,na=Symbol("zIndexContextKey"),fl=e=>{const t=e||se(na,void 0),n=g(()=>{const s=r(t);return Ee(s)?s:ta}),o=g(()=>n.value+Xl.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Xl.value++,o.value)}};function su(e){const t=E();function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:s,value:a}=e.value;if(l==null||s==null)return;const i=a.slice(0,Math.max(0,l)),u=a.slice(Math.max(0,s));t.value={selectionStart:l,selectionEnd:s,value:a,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:s,afterTxt:a,selectionStart:i}=t.value;if(s==null||a==null||i==null)return;let u=l.length;if(l.endsWith(a))u=l.length-a.length;else if(l.startsWith(s))u=s.length;else{const c=s[i-1],f=l.indexOf(c,i-1);f!==-1&&(u=f+1)}e.value.setSelectionRange(u,u)}return[n,o]}const au=(e,t,n)=>Ln(e.subTree).filter(s=>{var a;return Et(s)&&((a=s.type)==null?void 0:a.name)===t&&!!s.component}).map(s=>s.component.uid).map(s=>n[s]).filter(s=>!!s),ru=(e,t)=>{const n={},o=ut([]);return{children:o,addChild:a=>{n[a.uid]=a,o.value=au(e,t,n)},removeChild:a=>{delete n[a],o.value=o.value.filter(i=>i.uid!==a)}}},At=$o({type:String,values:qn,required:!1}),oa=Symbol("size"),iu=()=>{const e=se(oa,{});return g(()=>r(e.size)||"")};function uu(e,{afterFocus:t,afterBlur:n}={}){const o=Te(),{emit:l}=o,s=ut(),a=E(!1),i=f=>{a.value||(a.value=!0,l("focus",f),t==null||t())},u=f=>{var d;f.relatedTarget&&((d=s.value)!=null&&d.contains(f.relatedTarget))||(a.value=!1,l("blur",f),n==null||n())},c=()=>{var f;(f=e.value)==null||f.focus()};return G(s,f=>{f&&(f.setAttribute("role","button"),f.setAttribute("tabindex","-1"))}),ot(s,"click",c),{wrapperRef:s,isFocused:a,handleFocus:i,handleBlur:u}}const la=Symbol(),go=E();function Io(e,t=void 0){const n=Te()?se(la,go):go;return e?g(()=>{var o,l;return(l=(o=n.value)==null?void 0:o[e])!=null?l:t}):n}function To(e,t){const n=Io(),o=ee(e,g(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||ho})),l=It(g(()=>{var i;return(i=n.value)==null?void 0:i.locale})),s=fl(g(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||ta})),a=g(()=>{var i;return r(t)||((i=n.value)==null?void 0:i.size)||""});return sa(g(()=>r(n)||{})),{ns:o,locale:l,zIndex:s,size:a}}const sa=(e,t,n=!1)=>{var o;const l=!!Te(),s=l?Io():void 0,a=(o=t==null?void 0:t.provide)!=null?o:l?Ie:void 0;if(!a)return;const i=g(()=>{const u=r(e);return s!=null&&s.value?cu(s.value,u):u});return a(la,i),a(xs,g(()=>i.value.locale)),a(Us,g(()=>i.value.namespace)),a(na,g(()=>i.value.zIndex)),a(oa,{size:g(()=>i.value.size||"")}),(n||!go.value)&&(go.value=i.value),i},cu=(e,t)=>{var n;const o=[...new Set([...Yo(e),...Yo(t)])],l={};for(const s of o)l[s]=(n=t[s])!=null?n:e[s];return l},du=ie({a11y:{type:Boolean,default:!0},locale:{type:oe(Object)},size:At,button:{type:oe(Object)},experimentalFeatures:{type:oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:oe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Jo={},fu=M({name:"ElConfigProvider",props:du,setup(e,{slots:t}){G(()=>e.message,o=>{Object.assign(Jo,o!=null?o:{})},{immediate:!0,deep:!0});const n=sa(e);return()=>J(t,"default",{config:n==null?void 0:n.value})}}),ab=Ne(fu);var ne=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n};const pu=ie({size:{type:oe([Number,String])},color:{type:String}}),vu=M({name:"ElIcon",inheritAttrs:!1}),mu=M(Z(V({},vu),{props:pu,setup(e){const t=e,n=ee("icon"),o=g(()=>{const{size:l,color:s}=t;return!l&&!s?{}:{fontSize:ht(l)?void 0:at(l),"--color":s}});return(l,s)=>(C(),A("i",Ge({class:r(n).b(),style:r(o)},l.$attrs),[J(l.$slots,"default")],16))}}));var hu=ne(mu,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ye=Ne(hu),gu=["light","dark"],bu=ie({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Yo(qt),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:gu,default:"light"}}),yu={close:e=>e instanceof MouseEvent},Cu=M({name:"ElAlert"}),ku=M(Z(V({},Cu),{props:bu,emits:yu,setup(e,{emit:t}){const n=e,{Close:o}=ul,l=Ut(),s=ee("alert"),a=E(!0),i=g(()=>qt[n.type]),u=g(()=>[s.e("icon"),{[s.is("big")]:!!n.description||!!l.default}]),c=g(()=>({[s.is("bold")]:n.description||l.default})),f=d=>{a.value=!1,t("close",d)};return(d,v)=>(C(),x(st,{name:r(s).b("fade"),persisted:""},{default:K(()=>[$e(R("div",{class:k([r(s).b(),r(s).m(d.type),r(s).is("center",d.center),r(s).is(d.effect)]),role:"alert"},[d.showIcon&&r(i)?(C(),x(r(ye),{key:0,class:k(r(u))},{default:K(()=>[(C(),x(_e(r(i))))]),_:1},8,["class"])):U("v-if",!0),R("div",{class:k(r(s).e("content"))},[d.title||d.$slots.title?(C(),A("span",{key:0,class:k([r(s).e("title"),r(c)])},[J(d.$slots,"title",{},()=>[tt(pe(d.title),1)])],2)):U("v-if",!0),d.$slots.default||d.description?(C(),A("p",{key:1,class:k(r(s).e("description"))},[J(d.$slots,"default",{},()=>[tt(pe(d.description),1)])],2)):U("v-if",!0),d.closable?(C(),A(Ae,{key:2},[d.closeText?(C(),A("div",{key:0,class:k([r(s).e("close-btn"),r(s).is("customed")]),onClick:f},pe(d.closeText),3)):(C(),x(r(ye),{key:1,class:k(r(s).e("close-btn")),onClick:f},{default:K(()=>[X(r(o))]),_:1},8,["class"]))],64)):U("v-if",!0)],2)],2),[[Fe,a.value]])]),_:3},8,["name"]))}}));var wu=ne(ku,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const rb=Ne(wu),Sn=Symbol("formContextKey"),xt=Symbol("formItemContextKey"),ct=(e,t={})=>{const n=E(void 0),o=t.prop?n:Xs("size"),l=t.global?n:iu(),s=t.form?{size:void 0}:se(Sn,void 0),a=t.formItem?{size:void 0}:se(xt,void 0);return g(()=>o.value||r(e)||(a==null?void 0:a.size)||(s==null?void 0:s.size)||l.value||"")},Gt=e=>{const t=Xs("disabled"),n=se(Sn,void 0);return g(()=>t.value||r(e)||(n==null?void 0:n.disabled)||!1)},Tt=()=>{const e=se(Sn,void 0),t=se(xt,void 0);return{form:e,formItem:t}},$n=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=E(!1)),o||(o=E(!1));const l=E();let s;const a=g(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return ke(()=>{s=G([qe(e,"id"),n],([i,u])=>{const c=i!=null?i:u?void 0:kt().value;c!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(o!=null&&o.value)&&!u&&c&&t.addInputId(c)),l.value=c)},{immediate:!0})}),Is(()=>{s&&s(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:a,inputId:l}},Eu=ie({size:{type:String,values:qn},disabled:Boolean}),Su=ie(Z(V({},Eu),{model:Object,rules:{type:oe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}})),$u={validate:(e,t,n)=>(bt(e)||Ce(e))&<(t)&&Ce(n)};function Iu(){const e=E([]),t=g(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){const a=e.value.indexOf(s);return a===-1&&t.value,a}function o(s,a){if(s&&a){const i=n(a);e.value.splice(i,1,s)}else s&&e.value.push(s)}function l(s){const a=n(s);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:l}}const Zn=(e,t)=>{const n=Fn(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},Tu="ElForm",Nu=M({name:Tu}),_u=M(Z(V({},Nu),{props:Su,emits:$u,setup(e,{expose:t,emit:n}){const o=e,l=[],s=ct(),a=ee("form"),i=g(()=>{const{labelPosition:w,inline:$}=o;return[a.b(),a.m(s.value||"default"),{[a.m(`label-${w}`)]:w,[a.m("inline")]:$}]}),u=w=>{l.push(w)},c=w=>{w.prop&&l.splice(l.indexOf(w),1)},f=(w=[])=>{o.model&&Zn(l,w).forEach($=>$.resetField())},d=(w=[])=>{Zn(l,w).forEach($=>$.clearValidate())},v=g(()=>!!o.model),m=w=>{if(l.length===0)return[];const $=Zn(l,w);return $.length?$:[]},h=w=>Ve(this,null,function*(){return y(void 0,w)}),p=(...$)=>Ve(this,[...$],function*(w=[]){if(!v.value)return!1;const L=m(w);if(L.length===0)return!0;let q={};for(const D of L)try{yield D.validate("")}catch(T){q=V(V({},q),T)}return Object.keys(q).length===0?!0:Promise.reject(q)}),y=(...L)=>Ve(this,[...L],function*(w=[],$){const q=!Ke($);try{const D=yield p(w);return D===!0&&($==null||$(D)),D}catch(D){if(D instanceof Error)throw D;const T=D;return o.scrollToError&&b(Object.keys(T)[0]),$==null||$(!1,T),q&&Promise.reject(T)}}),b=w=>{var $;const L=Zn(l,w)[0];L&&(($=L.$el)==null||$.scrollIntoView(o.scrollIntoViewOptions))};return G(()=>o.rules,()=>{o.validateOnRuleChange&&h().catch(w=>void 0)},{deep:!0}),Ie(Sn,Xe(V(Z(V({},$t(o)),{emit:n,resetFields:f,clearValidate:d,validateField:y,addField:u,removeField:c}),Iu()))),t({validate:h,validateField:y,resetFields:f,clearValidate:d,scrollToField:b}),(w,$)=>(C(),A("form",{class:k(r(i))},[J(w.$slots,"default")],2))}}));var Ou=ne(_u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);const Mu=["","error","validating","success"],Bu=ie({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:oe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:oe([Object,Array])},error:String,validateStatus:{type:String,values:Mu},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:qn}}),Jl="ElLabelWrap";var Pu=M({name:Jl,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=se(Sn,void 0),o=se(xt);o||ft(Jl,"usage: ");const l=ee("form"),s=E(),a=E(0),i=()=>{var f;if((f=s.value)!=null&&f.firstElementChild){const d=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},u=(f="update")=>{de(()=>{t.default&&e.isAutoWidth&&(f==="update"?a.value=i():f==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},c=()=>u("update");return ke(()=>{c()}),Ye(()=>{u("remove")}),Wn(()=>c()),G(a,(f,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,d))}),Pt(g(()=>{var f,d;return(d=(f=s.value)==null?void 0:f.firstElementChild)!=null?d:null}),c),()=>{var f,d;if(!t)return null;const{isAutoWidth:v}=e;if(v){const m=n==null?void 0:n.autoLabelWidth,h=o==null?void 0:o.hasLabel,p={};if(h&&m&&m!=="auto"){const y=Math.max(0,Number.parseInt(m,10)-a.value),b=n.labelPosition==="left"?"marginRight":"marginLeft";y&&(p[b]=`${y}px`)}return X("div",{ref:s,class:[l.be("item","label-wrap")],style:p},[(f=t.default)==null?void 0:f.call(t)])}else return X(Ae,{ref:s},[(d=t.default)==null?void 0:d.call(t)])}}});const Au=["role","aria-labelledby"],Lu=M({name:"ElFormItem"}),Ru=M(Z(V({},Lu),{props:Bu,setup(e,{expose:t}){const n=e,o=Ut(),l=se(Sn,void 0),s=se(xt,void 0),a=ct(void 0,{formItem:!1}),i=ee("form-item"),u=kt().value,c=E([]),f=E(""),d=ci(f,100),v=E(""),m=E();let h,p=!1;const y=g(()=>{if((l==null?void 0:l.labelPosition)==="top")return{};const ue=at(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return ue?{width:ue}:{}}),b=g(()=>{if((l==null?void 0:l.labelPosition)==="top"||l!=null&&l.inline)return{};if(!n.label&&!n.labelWidth&&_)return{};const ue=at(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return!n.label&&!o.label?{marginLeft:ue}:{}}),w=g(()=>[i.b(),i.m(a.value),i.is("error",f.value==="error"),i.is("validating",f.value==="validating"),i.is("success",f.value==="success"),i.is("required",P.value||n.required),i.is("no-asterisk",l==null?void 0:l.hideRequiredAsterisk),(l==null?void 0:l.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:l==null?void 0:l.statusIcon}]),$=g(()=>lt(n.inlineMessage)?n.inlineMessage:(l==null?void 0:l.inlineMessage)||!1),L=g(()=>[i.e("error"),{[i.em("error","inline")]:$.value}]),q=g(()=>n.prop?Ce(n.prop)?n.prop:n.prop.join("."):""),D=g(()=>!!(n.label||o.label)),T=g(()=>n.for||c.value.length===1?c.value[0]:void 0),B=g(()=>!T.value&&D.value),_=!!s,H=g(()=>{const ue=l==null?void 0:l.model;if(!(!ue||!n.prop))return Do(ue,n.prop).value}),I=g(()=>{const{required:ue}=n,be=[];n.rules&&be.push(...Fn(n.rules));const Be=l==null?void 0:l.rules;if(Be&&n.prop){const Oe=Do(Be,n.prop).value;Oe&&be.push(...Fn(Oe))}if(ue!==void 0){const Oe=be.map((De,Ue)=>[De,Ue]).filter(([De])=>Object.keys(De).includes("required"));if(Oe.length>0)for(const[De,Ue]of Oe)De.required!==ue&&(be[Ue]=Z(V({},De),{required:ue}));else be.push({required:ue})}return be}),W=g(()=>I.value.length>0),N=ue=>I.value.filter(Be=>!Be.trigger||!ue?!0:Array.isArray(Be.trigger)?Be.trigger.includes(ue):Be.trigger===ue).map(De=>{var Ue=De,{trigger:Be}=Ue,Oe=Ro(Ue,["trigger"]);return Oe}),P=g(()=>I.value.some(ue=>ue.required)),F=g(()=>{var ue;return d.value==="error"&&n.showMessage&&((ue=l==null?void 0:l.showMessage)!=null?ue:!0)}),z=g(()=>`${n.label||""}${(l==null?void 0:l.labelSuffix)||""}`),S=ue=>{f.value=ue},Q=ue=>{var be,Be;const{errors:Oe,fields:De}=ue;(!Oe||!De)&&console.error(ue),S("error"),v.value=Oe?(Be=(be=Oe==null?void 0:Oe[0])==null?void 0:be.message)!=null?Be:`${n.prop} is required`:"",l==null||l.emit("validate",n.prop,!1,v.value)},te=()=>{S("success"),l==null||l.emit("validate",n.prop,!0,"")},le=ue=>Ve(this,null,function*(){const be=q.value;return new Dr({[be]:ue}).validate({[be]:H.value},{firstFields:!0}).then(()=>(te(),!0)).catch(Oe=>(Q(Oe),Promise.reject(Oe)))}),ae=(ue,be)=>Ve(this,null,function*(){if(p||!n.prop)return!1;const Be=Ke(be);if(!W.value)return be==null||be(!1),!1;const Oe=N(ue);return Oe.length===0?(be==null||be(!0),!0):(S("validating"),le(Oe).then(()=>(be==null||be(!0),!0)).catch(De=>{const{fields:Ue}=De;return be==null||be(!1,Ue),Be?!1:Promise.reject(Ue)}))}),ge=()=>{S(""),v.value="",p=!1},ze=()=>Ve(this,null,function*(){const ue=l==null?void 0:l.model;if(!ue||!n.prop)return;const be=Do(ue,n.prop);p=!0,be.value=Bl(h),yield de(),ge(),p=!1}),je=ue=>{c.value.includes(ue)||c.value.push(ue)},Yt=ue=>{c.value=c.value.filter(be=>be!==ue)};G(()=>n.error,ue=>{v.value=ue||"",S(ue?"error":"")},{immediate:!0}),G(()=>n.validateStatus,ue=>S(ue||""));const Nt=Xe(Z(V({},$t(n)),{$el:m,size:a,validateState:f,labelId:u,inputIds:c,isGroup:B,hasLabel:D,addInputId:je,removeInputId:Yt,resetField:ze,clearValidate:ge,validate:ae}));return Ie(xt,Nt),ke(()=>{n.prop&&(l==null||l.addField(Nt),h=Bl(H.value))}),Ye(()=>{l==null||l.removeField(Nt)}),t({size:a,validateMessage:v,validateState:f,validate:ae,clearValidate:ge,resetField:ze}),(ue,be)=>{var Be;return C(),A("div",{ref_key:"formItemRef",ref:m,class:k(r(w)),role:r(B)?"group":void 0,"aria-labelledby":r(B)?r(u):void 0},[X(r(Pu),{"is-auto-width":r(y).width==="auto","update-all":((Be=r(l))==null?void 0:Be.labelWidth)==="auto"},{default:K(()=>[r(D)?(C(),x(_e(r(T)?"label":"div"),{key:0,id:r(u),for:r(T),class:k(r(i).e("label")),style:ve(r(y))},{default:K(()=>[J(ue.$slots,"label",{label:r(z)},()=>[tt(pe(r(z)),1)])]),_:3},8,["id","for","class","style"])):U("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),R("div",{class:k(r(i).e("content")),style:ve(r(b))},[J(ue.$slots,"default"),X(Er,{name:`${r(i).namespace.value}-zoom-in-top`},{default:K(()=>[r(F)?J(ue.$slots,"error",{key:0,error:v.value},()=>[R("div",{class:k(r(L))},pe(v.value),3)]):U("v-if",!0)]),_:3},8,["name"])],6)],10,Au)}}}));var aa=ne(Ru,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ib=Ne(Ou,{FormItem:aa}),ub=He(aa);let vt;const Fu=` height:0 !important; visibility:hidden !important; ${$i()?"":"overflow:hidden !important;"} diff --git a/packages/ide/example/assets/html.worker-be110d32.js b/packages/ide/example/assets/html.worker-b0d6a2a9.js similarity index 82% rename from packages/ide/example/assets/html.worker-be110d32.js rename to packages/ide/example/assets/html.worker-b0d6a2a9.js index d295ccdfa..f362ede13 100644 --- a/packages/ide/example/assets/html.worker-be110d32.js +++ b/packages/ide/example/assets/html.worker-b0d6a2a9.js @@ -4,23 +4,23 @@ var Tu=Object.defineProperty;var ns=Object.getOwnPropertySymbols;var xu=Object.p `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const oe=new ve;function ne(e){mn(e)||oe.onUnexpectedError(e)}function Wt(e){if(e instanceof Error){const{name:t,message:n}=e,i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i,noTelemetry:Ie.isErrorNoTelemetry(e)}}return e}const ot="Canceled";function mn(e){return e instanceof pn?!0:e instanceof Error&&e.name===ot&&e.message===ot}class pn extends Error{constructor(){super(ot),this.name=this.message}}class Ie extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Ie)return t;const n=new Ie;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class pe extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,pe.prototype)}}function vt(e){const t=this;let n=!1,i;return function(){return n||(n=!0,i=e.apply(t,arguments)),i}}var Ht;(function(e){function t(y){return y&&typeof y=="object"&&typeof y[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function i(){return n}e.empty=i;function*r(y){yield y}e.single=r;function a(y){return t(y)?y:r(y)}e.wrap=a;function s(y){return y||n}e.from=s;function o(y){return!y||y[Symbol.iterator]().next().done===!0}e.isEmpty=o;function l(y){return y[Symbol.iterator]().next().value}e.first=l;function u(y,v){for(const S of y)if(v(S))return!0;return!1}e.some=u;function c(y,v){for(const S of y)if(v(S))return S}e.find=c;function*d(y,v){for(const S of y)v(S)&&(yield S)}e.filter=d;function*m(y,v){let S=0;for(const W of y)yield v(W,S++)}e.map=m;function*p(...y){for(const v of y)for(const S of v)yield S}e.concat=p;function b(y,v,S){let W=S;for(const H of y)W=v(W,H);return W}e.reduce=b;function*f(y,v,S=y.length){for(v<0&&(v+=y.length),S<0?S+=y.length:S>y.length&&(S=y.length);v1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function is(...e){return wt(()=>di(e))}function wt(e){return{dispose:vt(()=>{e()})}}class nt{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{di(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?nt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}nt.DISABLE_DISPOSED_WARNING=!1;class yt{constructor(){this._store=new nt,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}yt.None=Object.freeze({dispose(){}});let K=class hi{constructor(t){this.element=t,this.next=hi.Undefined,this.prev=hi.Undefined}};K.Undefined=new K(void 0);class rs{constructor(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===K.Undefined}clear(){let t=this._first;for(;t!==K.Undefined;){const n=t.next;t.prev=K.Undefined,t.next=K.Undefined,t=n}this._first=K.Undefined,this._last=K.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const i=new K(t);if(this._first===K.Undefined)this._first=i,this._last=i;else if(n){const a=this._last;this._last=i,i.prev=a,a.next=i}else{const a=this._first;this._first=i,i.next=a,a.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==K.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==K.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==K.Undefined&&t.next!==K.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===K.Undefined&&t.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):t.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):t.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==K.Undefined;)yield t.element,t=t.next}}const as=globalThis.performance&&typeof globalThis.performance.now=="function";class Ft{static create(t){return new Ft(t)}constructor(t){this._now=as&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var fn;(function(e){e.None=()=>yt.None;function t(_,L){return c(_,()=>{},0,void 0,!0,void 0,L)}e.defer=t;function n(_){return(L,x=null,A)=>{let R=!1,U;return U=_(F=>{if(!R)return U?U.dispose():R=!0,L.call(x,F)},null,A),R&&U.dispose(),U}}e.once=n;function i(_,L,x){return u((A,R=null,U)=>_(F=>A.call(R,L(F)),null,U),x)}e.map=i;function r(_,L,x){return u((A,R=null,U)=>_(F=>{L(F),A.call(R,F)},null,U),x)}e.forEach=r;function a(_,L,x){return u((A,R=null,U)=>_(F=>L(F)&&A.call(R,F),null,U),x)}e.filter=a;function s(_){return _}e.signal=s;function o(..._){return(L,x=null,A)=>is(..._.map(R=>R(U=>L.call(x,U),null,A)))}e.any=o;function l(_,L,x,A){let R=x;return i(_,U=>(R=L(R,U),R),A)}e.reduce=l;function u(_,L){let x;const A={onWillAddFirstListener(){x=_(R.fire,R)},onDidRemoveLastListener(){x==null||x.dispose()}},R=new Pe(A);return L==null||L.add(R),R.event}function c(_,L,x=100,A=!1,R=!1,U,F){let B,E,k,D=0,P;const M={leakWarningThreshold:U,onWillAddFirstListener(){B=_(z=>{D++,E=L(E,z),A&&!k&&(N.fire(E),E=void 0),P=()=>{const G=E;E=void 0,k=void 0,(!A||D>1)&&N.fire(G),D=0},typeof x=="number"?(clearTimeout(k),k=setTimeout(P,x)):k===void 0&&(k=0,queueMicrotask(P))})},onWillRemoveListener(){R&&D>0&&(P==null||P())},onDidRemoveLastListener(){P=void 0,B.dispose()}},N=new Pe(M);return F==null||F.add(N),N.event}e.debounce=c;function d(_,L=0,x){return e.debounce(_,(A,R)=>A?(A.push(R),A):[R],L,void 0,!0,void 0,x)}e.accumulate=d;function m(_,L=(A,R)=>A===R,x){let A=!0,R;return a(_,U=>{const F=A||!L(U,R);return A=!1,R=U,F},x)}e.latch=m;function p(_,L,x){return[e.filter(_,L,x),e.filter(_,A=>!L(A),x)]}e.split=p;function b(_,L=!1,x=[]){let A=x.slice(),R=_(B=>{A?A.push(B):F.fire(B)});const U=()=>{A==null||A.forEach(B=>F.fire(B)),A=null},F=new Pe({onWillAddFirstListener(){R||(R=_(B=>F.fire(B)))},onDidAddFirstListener(){A&&(L?setTimeout(U):U())},onDidRemoveLastListener(){R&&R.dispose(),R=null}});return F.event}e.buffer=b;class f{constructor(L){this.event=L,this.disposables=new nt}map(L){return new f(i(this.event,L,this.disposables))}forEach(L){return new f(r(this.event,L,this.disposables))}filter(L){return new f(a(this.event,L,this.disposables))}reduce(L,x){return new f(l(this.event,L,x,this.disposables))}latch(){return new f(m(this.event,void 0,this.disposables))}debounce(L,x=100,A=!1,R=!1,U){return new f(c(this.event,L,x,A,R,U,this.disposables))}on(L,x,A){return this.event(L,x,A)}once(L,x,A){return n(this.event)(L,x,A)}dispose(){this.disposables.dispose()}}function T(_){return new f(_)}e.chain=T;function y(_,L,x=A=>A){const A=(...B)=>F.fire(x(...B)),R=()=>_.on(L,A),U=()=>_.removeListener(L,A),F=new Pe({onWillAddFirstListener:R,onDidRemoveLastListener:U});return F.event}e.fromNodeEventEmitter=y;function v(_,L,x=A=>A){const A=(...B)=>F.fire(x(...B)),R=()=>_.addEventListener(L,A),U=()=>_.removeEventListener(L,A),F=new Pe({onWillAddFirstListener:R,onDidRemoveLastListener:U});return F.event}e.fromDOMEventEmitter=v;function S(_){return new Promise(L=>n(_)(L))}e.toPromise=S;function W(_,L){return L(void 0),_(x=>L(x))}e.runAndSubscribe=W;function H(_,L){let x=null;function A(U){x==null||x.dispose(),x=new nt,L(U,x)}A(void 0);const R=_(U=>A(U));return wt(()=>{R.dispose(),x==null||x.dispose()})}e.runAndSubscribeWithStore=H;class O{constructor(L,x){this._observable=L,this._counter=0,this._hasChanged=!1;const A={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new Pe(A),x&&x.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,x){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function w(_,L){return new O(_,L).emitter.event}e.fromObservable=w;function g(_){return L=>{let x=0,A=!1;const R={beginUpdate(){x++},endUpdate(){x--,x===0&&(_.reportChanges(),A&&(A=!1,L()))},handlePossibleChange(){},handleChange(){A=!0}};return _.addObserver(R),{dispose(){_.removeObserver(R)}}}}e.fromObservableLight=g})(fn||(fn={}));class lt{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${lt._idPool++}`,lt.all.add(this)}start(t){this._stopWatch=new Ft,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}lt.all=new Set,lt._idPool=0;let ss=-1;class os{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){const i=this.threshold;if(i<=0||n{const a=this._stacks.get(t.value)||0;this._stacks.set(t.value,a-1)}}}class gn{static create(){var t;return new gn((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class bn{constructor(t){this.value=t}}const ls=2;class Pe{constructor(t){var n,i,r,a,s;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new os((r=(i=this._options)===null||i===void 0?void 0:i.leakWarningThreshold)!==null&&r!==void 0?r:ss):void 0,this._perfMon=!((a=this._options)===null||a===void 0)&&a._profName?new lt(this._options._profName):void 0,this._deliveryQueue=(s=this._options)===null||s===void 0?void 0:s.deliveryQueue}dispose(){var t,n,i,r;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||i===void 0||i.call(n),(r=this._leakageMon)===null||r===void 0||r.dispose())}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,i,r)=>{var a,s,o,l,u;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),yt.None;if(this._disposed)return yt.None;i&&(n=n.bind(i));const c=new bn(n);let d;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(c.stack=gn.create(),d=this._leakageMon.check(c.stack,this._size+1)),this._listeners?this._listeners instanceof bn?((u=this._deliveryQueue)!==null&&u!==void 0||(this._deliveryQueue=new us),this._listeners=[this._listeners,c]):this._listeners.push(c):((s=(a=this._options)===null||a===void 0?void 0:a.onWillAddFirstListener)===null||s===void 0||s.call(a,this),this._listeners=c,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const m=wt(()=>{d==null||d(),this._removeListener(c)});return r instanceof nt?r.add(m):Array.isArray(r)&&r.push(m),m}),this._event}_removeListener(t){var n,i,r,a;if((i=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||i===void 0||i.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(a=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||a===void 0||a.call(r,this),this._size=0;return}const s=this._listeners,o=s.indexOf(t);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*ls<=s.length){let u=0;for(let c=0;c0}}class us{constructor(){this.i=-1,this.end=0}enqueue(t,n,i){this.i=0,this.end=i,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function cs(e){return typeof e=="string"}function hs(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function _n(e){const t=[];for(const n of hs(e))typeof e[n]=="function"&&t.push(n);return t}function ds(e,t){const n=r=>function(){const a=Array.prototype.slice.call(arguments,0);return t(r,a)},i={};for(const r of e)i[r]=n(r);return i}let ms=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function ps(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(i,r)=>{const a=r[0],s=t[a];let o=i;return typeof s=="string"?o=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(o=String(s)),o}),ms&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function fs(e,t,...n){return ps(t,n)}function Cu(e){}var vn;const ut="en";let wn=!1,yn=!1,Tn=!1,mi=!1,zt,xn=ut,pi=ut,gs,Le;const Ee=typeof self=="object"?self:typeof global=="object"?global:{};let ce;typeof Ee.vscode!="undefined"&&typeof Ee.vscode.process!="undefined"?ce=Ee.vscode.process:typeof process!="undefined"&&(ce=process);const bs=typeof((vn=ce==null?void 0:ce.versions)===null||vn===void 0?void 0:vn.electron)=="string"&&(ce==null?void 0:ce.type)==="renderer";if(typeof navigator=="object"&&!bs)Le=navigator.userAgent,wn=Le.indexOf("Windows")>=0,yn=Le.indexOf("Macintosh")>=0,(Le.indexOf("Macintosh")>=0||Le.indexOf("iPad")>=0||Le.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Tn=Le.indexOf("Linux")>=0,(Le==null?void 0:Le.indexOf("Mobi"))>=0,mi=!0,fs({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),zt=ut,xn=zt,pi=navigator.language;else if(typeof ce=="object"){wn=ce.platform==="win32",yn=ce.platform==="darwin",Tn=ce.platform==="linux",Tn&&ce.env.SNAP&&ce.env.SNAP_REVISION,ce.env.CI||ce.env.BUILD_ARTIFACTSTAGINGDIRECTORY,zt=ut,xn=ut;const e=ce.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];zt=t.locale,pi=t.osLocale,xn=n||ut,gs=t._translationsConfigFile}catch(t){}}else console.error("Unable to resolve platform.");const Tt=wn,_s=yn;mi&&Ee.importScripts;const Ue=Le,vs=typeof Ee.postMessage=="function"&&!Ee.importScripts;(()=>{if(vs){const e=[];Ee.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=e.length;i{const i=++t;e.push({id:i,callback:n}),Ee.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})();const ws=!!(Ue&&Ue.indexOf("Chrome")>=0);Ue&&Ue.indexOf("Firefox")>=0,!ws&&Ue&&Ue.indexOf("Safari")>=0,Ue&&Ue.indexOf("Edg/")>=0,Ue&&Ue.indexOf("Android")>=0;class ys{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class fi{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var gi;function Ts(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function xs(e){return e.split(/\r\n|\r|\n/)}function Ss(e){for(let t=0,n=e.length;t=0;n--){const i=e.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function bi(e){return e>=65&&e<=90}function Sn(e){return 55296<=e&&e<=56319}function ks(e){return 56320<=e&&e<=57343}function Cs(e,t){return(e-55296<<10)+(t-56320)+65536}function Ls(e,t,n){const i=e.charCodeAt(n);if(Sn(i)&&n+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Se.cache=new ys(e=>{function t(u){const c=new Map;for(let d=0;d!u.startsWith("_")&&u in r);a.length===0&&(a=["_default"]);let s;for(const u of a){const c=t(r[u]);s=i(s,c)}const o=t(r._common),l=n(o,s);return new Se(l)}),Se._locales=new fi(()=>Object.keys(Se.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class Oe{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Oe.getRawData())),this._data}static isInvisibleCharacter(t){return Oe.getData().has(t)}static get codePoints(){return Oe.getData()}}Oe._data=void 0;const Rs="$initialize";class Ms{constructor(t,n,i,r){this.vsWorker=t,this.req=n,this.method=i,this.args=r,this.type=0}}class _i{constructor(t,n,i,r){this.vsWorker=t,this.seq=n,this.res=i,this.err=r,this.type=1}}class Ns{constructor(t,n,i,r){this.vsWorker=t,this.req=n,this.eventName=i,this.arg=r,this.type=2}}class Is{constructor(t,n,i){this.vsWorker=t,this.req=n,this.event=i,this.type=3}}class Ps{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Us{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){const i=String(++this._lastSentReq);return new Promise((r,a)=>{this._pendingReplies[i]={resolve:r,reject:a},this._send(new Ms(this._workerId,i,t,n))})}listen(t,n){let i=null;const r=new Pe({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,r),this._send(new Ns(this._workerId,i,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Ps(this._workerId,i)),i=null}});return r.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let i=t.err;t.err.$isError&&(i=new Error,i.name=t.err.name,i.message=t.err.message,i.stack=t.err.stack),n.reject(i);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.method,t.args).then(r=>{this._send(new _i(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=Wt(r.detail)),this._send(new _i(this._workerId,n,void 0,Wt(r)))})}_handleSubscribeEventMessage(t){const n=t.req,i=this._handler.handleEvent(t.eventName,t.arg)(r=>{this._send(new Is(this._workerId,n,r))});this._pendingEvents.set(n,i)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return t(s,o)},r=s=>function(o){return n(s,o)},a={};for(const s of e){if(wi(s)){a[s]=r(s);continue}if(vi(s)){a[s]=n(s,void 0);continue}a[s]=i(s)}return a}class Hs{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Us({sendMessage:(i,r)=>{t(i,r)},handleMessage:(i,r)=>this._handleMessage(i,r),handleEvent:(i,r)=>this._handleEvent(i,r)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===Rs)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(i){return Promise.reject(i)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(wi(t)){const i=this._requestHandler[t].call(this._requestHandler,n);if(typeof i!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return i}if(vi(t)){const i=this._requestHandler[t];if(typeof i!="function")throw new Error(`Missing event ${t} on request handler.`);return i}throw new Error(`Malformed event name ${t}`)}initialize(t,n,i,r){this._protocol.setWorkerId(t);const o=Ws(r,(l,u)=>this._protocol.sendMessage(l,u),(l,u)=>this._protocol.listen(l,u));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(_n(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,u)=>{const c=globalThis.require;c([i],d=>{if(this._requestHandler=d.create(o),!this._requestHandler){u(new Error("No RequestHandler!"));return}l(_n(this._requestHandler))},u)}))}}class qe{constructor(t,n,i,r){this.originalStart=t,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function yi(e,t){return(t<<5)-t+e|0}function Fs(e,t){t=yi(149417,t);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new qe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ve{constructor(t,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=t,this._modifiedSequence=n;const[r,a,s]=Ve._getElements(t),[o,l,u]=Ve._getElements(n);this._hasStrings=s&&u,this._originalStringElements=r,this._originalElementsOrHash=a,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(Ve._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,a=n.length;r=t&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(t>n||i>r){let d;return i<=r?(ct.Assert(t===n+1,"originalStart should only be one more than originalEnd"),d=[new qe(t,0,i,r-i+1)]):t<=n?(ct.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new qe(t,n-t+1,i,0)]):(ct.Assert(t===n+1,"originalStart should only be one more than originalEnd"),ct.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const s=[0],o=[0],l=this.ComputeRecursionPoint(t,n,i,r,s,o,a),u=s[0],c=o[0];if(l!==null)return l;if(!a[0]){const d=this.ComputeDiffRecursive(t,u,i,c,a);let m=[];return a[0]?m=[new qe(u+1,n-(u+1)+1,c+1,r-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,c+1,r,a),this.ConcatenateChanges(d,m)}return[new qe(t,n-t+1,i,r-i+1)]}WALKTRACE(t,n,i,r,a,s,o,l,u,c,d,m,p,b,f,T,y,v){let S=null,W=null,H=new xi,O=n,w=i,g=p[0]-T[0]-r,_=-1073741824,L=this.m_forwardHistory.length-1;do{const x=g+t;x===O||x=0&&(u=this.m_forwardHistory[L],t=u[0],O=1,w=u.length-1)}while(--L>=-1);if(S=H.getReverseChanges(),v[0]){let x=p[0]+1,A=T[0]+1;if(S!==null&&S.length>0){const R=S[S.length-1];x=Math.max(x,R.getOriginalEnd()),A=Math.max(A,R.getModifiedEnd())}W=[new qe(x,m-x+1,A,f-A+1)]}else{H=new xi,O=s,w=o,g=p[0]-T[0]-l,_=1073741824,L=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const x=g+a;x===O||x=c[x+1]?(d=c[x+1]-1,b=d-g-l,d>_&&H.MarkNextChange(),_=d+1,H.AddOriginalElement(d+1,b+1),g=x+1-a):(d=c[x-1],b=d-g-l,d>_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,b+1),g=x-1-a),L>=0&&(c=this.m_reverseHistory[L],a=c[0],O=1,w=c.length-1)}while(--L>=-1);W=H.getChanges()}return this.ConcatenateChanges(S,W)}ComputeRecursionPoint(t,n,i,r,a,s,o){let l=0,u=0,c=0,d=0,m=0,p=0;t--,i--,a[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const b=n-t+(r-i),f=b+1,T=new Int32Array(f),y=new Int32Array(f),v=r-i,S=n-t,W=t-i,H=n-r,w=(S-v)%2===0;T[v]=t,y[S]=n,o[0]=!1;for(let g=1;g<=b/2+1;g++){let _=0,L=0;c=this.ClipDiagonalBound(v-g,g,v,f),d=this.ClipDiagonalBound(v+g,g,v,f);for(let A=c;A<=d;A+=2){A===c||A_+L&&(_=l,L=u),!w&&Math.abs(A-S)<=g-1&&l>=y[A])return a[0]=l,s[0]=u,R<=y[A]&&1447>0&&g<=1447+1?this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o):null}const x=(_-t+(L-i)-g)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_,x))return o[0]=!0,a[0]=_,s[0]=L,x>0&&1447>0&&g<=1447+1?this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o):(t++,i++,[new qe(t,n-t+1,i,r-i+1)]);m=this.ClipDiagonalBound(S-g,g,S,f),p=this.ClipDiagonalBound(S+g,g,S,f);for(let A=m;A<=p;A+=2){A===m||A=y[A+1]?l=y[A+1]-1:l=y[A-1],u=l-(A-S)-H;const R=l;for(;l>t&&u>i&&this.ElementsAreEqual(l,u);)l--,u--;if(y[A]=l,w&&Math.abs(A-v)<=g&&l<=T[A])return a[0]=l,s[0]=u,R>=T[A]&&1447>0&&g<=1447+1?this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o):null}if(g<=1447){let A=new Int32Array(d-c+2);A[0]=v-c+1,ht.Copy2(T,c,A,1,d-c+1),this.m_forwardHistory.push(A),A=new Int32Array(p-m+2),A[0]=S-m+1,ht.Copy2(y,m,A,1,p-m+1),this.m_reverseHistory.push(A)}}return this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o)}PrettifyChanges(t){for(let n=0;n0,o=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;n--){const i=t[n];let r=0,a=0;if(n>0){const d=t[n-1];r=d.originalStart+d.originalLength,a=d.modifiedStart+d.modifiedLength}const s=i.originalLength>0,o=i.modifiedLength>0;let l=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const m=i.originalStart-d,p=i.modifiedStart-d;if(mu&&(u=f,l=d)}i.originalStart-=l,i.modifiedStart-=l;const c=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],c)){t[n-1]=c[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=t.length;n0&&p>l&&(l=p,u=d,c=m)}return l>0?[u,c]:null}_contiguousSequenceScore(t,n,i){let r=0;for(let a=0;a=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(t,n,i,r){const a=this._OriginalRegionIsBoundary(t,n)?1:0,s=this._ModifiedRegionIsBoundary(i,r)?1:0;return a+s}ConcatenateChanges(t,n){const i=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],i)){const r=new Array(t.length+n.length-1);return ht.Copy(t,0,r,0,t.length-1),r[t.length-1]=i[0],ht.Copy(n,1,r,t.length,n.length-1),r}else{const r=new Array(t.length+n.length);return ht.Copy(t,0,r,0,t.length),ht.Copy(n,0,r,t.length,n.length),r}}ChangesOverlap(t,n,i){if(ct.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),ct.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const r=t.originalStart;let a=t.originalLength;const s=t.modifiedStart;let o=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(a=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-t.modifiedStart),i[0]=new qe(r,a,s,o),!0}else return i[0]=null,!1}ClipDiagonalBound(t,n,i,r){if(t>=0&&t",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}},cwd(){return{ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_23740_GYGVCPPHNQAGVLPX",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}.VSCODE_CWD||process.cwd()}}:dt={get platform(){return Tt?"win32":_s?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Bt=dt.cwd;dt.env;const Bs=dt.platform,Os=65,qs=97,Vs=90,js=122,je=46,le=47,fe=92,Ge=58,Gs=63;class Si extends Error{constructor(t,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const a=t.indexOf(".")!==-1?"property":"argument";let s=`The "${t}" ${a} ${r} of type ${n}`;s+=`. Received type ${typeof i}`,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function $s(e,t){if(e===null||typeof e!="object")throw new Si(t,"Object",e)}function ee(e,t){if(typeof e!="string")throw new Si(t,"string",e)}const $e=Bs==="win32";function j(e){return e===le||e===fe}function An(e){return e===le}function Ye(e){return e>=Os&&e<=Vs||e>=qs&&e<=js}function Ot(e,t,n,i){let r="",a=0,s=-1,o=0,l=0;for(let u=0;u<=e.length;++u){if(u2){const c=r.lastIndexOf(n);c===-1?(r="",a=0):(r=r.slice(0,c),a=r.length-1-r.lastIndexOf(n)),s=u,o=0;continue}else if(r.length!==0){r="",a=0,s=u,o=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",a=2)}else r.length>0?r+=`${n}${e.slice(s+1,u)}`:r=e.slice(s+1,u),a=u-s-1;s=u,o=0}else l===je&&o!==-1?++o:o=-1}return r}function Ai(e,t){$s(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const de={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let a;if(r>=0){if(a=e[r],ee(a,"path"),a.length===0)continue}else t.length===0?a=Bt():(a={ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_23740_GYGVCPPHNQAGVLPX",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.1",npm_package_dependencies__vtj_deps:"^0.5.1",npm_package_dependencies__vtj_engine:"^0.5.1",npm_package_dependencies__vtj_icons:"^0.5.1",npm_package_dependencies__vtj_runtime:"^0.5.1",npm_package_dependencies__vtj_ui:"^0.5.1",npm_package_dependencies__vtj_utils:"^0.5.1",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.1",npm_package_devDependencies__vtj_serve:"^0.5.1",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.1",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}[`=${t}`]||Bt(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===fe)&&(a=`${t}\\`));const s=a.length;let o=0,l="",u=!1;const c=a.charCodeAt(0);if(s===1)j(c)&&(o=1,u=!0);else if(j(c))if(u=!0,j(a.charCodeAt(1))){let d=2,m=d;for(;d2&&j(a.charCodeAt(2))&&(u=!0,o=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${a.slice(o)}\\${n}`,i=u,u&&t.length>0)break}return n=Ot(n,!i,"\\",j),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){ee(e,"path");const t=e.length;if(t===0)return".";let n=0,i,r=!1;const a=e.charCodeAt(0);if(t===1)return An(a)?"\\":e;if(j(a))if(r=!0,j(e.charCodeAt(1))){let o=2,l=o;for(;o2&&j(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&j(e.charCodeAt(t-1))&&(s+="\\"),i===void 0?r?`\\${s}`:s:r?`${i}\\${s}`:`${i}${s}`},isAbsolute(e){ee(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return j(n)||t>2&&Ye(n)&&e.charCodeAt(1)===Ge&&j(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let a=0;a0&&(t===void 0?t=n=s:t+=`\\${s}`)}if(t===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&j(n.charCodeAt(0))){++r;const a=n.length;a>1&&j(n.charCodeAt(1))&&(++r,a>2&&(j(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r=2&&(t=`\\${t.slice(r)}`)}return de.normalize(t)},relative(e,t){if(ee(e,"from"),ee(t,"to"),e===t)return"";const n=de.resolve(e),i=de.resolve(t);if(n===i||(e=n.toLowerCase(),t=i.toLowerCase(),e===t))return"";let r=0;for(;rr&&e.charCodeAt(a-1)===fe;)a--;const s=a-r;let o=0;for(;oo&&t.charCodeAt(l-1)===fe;)l--;const u=l-o,c=sc){if(t.charCodeAt(o+m)===fe)return i.slice(o+m+1);if(m===2)return i.slice(o+m)}s>c&&(e.charCodeAt(r+m)===fe?d=m:m===2&&(d=3)),d===-1&&(d=0)}let p="";for(m=r+d+1;m<=a;++m)(m===a||e.charCodeAt(m)===fe)&&(p+=p.length===0?"..":"\\..");return o+=d,p.length>0?`${p}${i.slice(o,l)}`:(i.charCodeAt(o)===fe&&++o,i.slice(o,l))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=de.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===fe){if(t.charCodeAt(1)===fe){const n=t.charCodeAt(2);if(n!==Gs&&n!==je)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ye(t.charCodeAt(0))&&t.charCodeAt(1)===Ge&&t.charCodeAt(2)===fe)return`\\\\?\\${t}`;return e},dirname(e){ee(e,"path");const t=e.length;if(t===0)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(t===1)return j(r)?e:".";if(j(r)){if(n=i=1,j(e.charCodeAt(1))){let o=2,l=o;for(;o2&&j(e.charCodeAt(2))?3:2,i=n);let a=-1,s=!0;for(let o=t-1;o>=i;--o)if(j(e.charCodeAt(o))){if(!s){a=o;break}}else s=!1;if(a===-1){if(n===-1)return".";a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&ee(t,"ext"),ee(e,"path");let n=0,i=-1,r=!0,a;if(e.length>=2&&Ye(e.charCodeAt(0))&&e.charCodeAt(1)===Ge&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,o=-1;for(a=e.length-1;a>=n;--a){const l=e.charCodeAt(a);if(j(l)){if(!r){n=a+1;break}}else o===-1&&(r=!1,o=a+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=o))}return n===i?i=o:i===-1&&(i=e.length),e.slice(n,i)}for(a=e.length-1;a>=n;--a)if(j(e.charCodeAt(a))){if(!r){n=a+1;break}}else i===-1&&(r=!1,i=a+1);return i===-1?"":e.slice(n,i)},extname(e){ee(e,"path");let t=0,n=-1,i=0,r=-1,a=!0,s=0;e.length>=2&&e.charCodeAt(1)===Ge&&Ye(e.charCodeAt(0))&&(t=i=2);for(let o=e.length-1;o>=t;--o){const l=e.charCodeAt(o);if(j(l)){if(!a){i=o+1;break}continue}r===-1&&(a=!1,r=o+1),l===je?n===-1?n=o:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||r===-1||s===0||s===1&&n===r-1&&n===i+1?"":e.slice(n,r)},format:Ai.bind(null,"\\"),parse(e){ee(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(n===1)return j(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(j(r)){if(i=1,j(e.charCodeAt(1))){let d=2,m=d;for(;d0&&(t.root=e.slice(0,i));let a=-1,s=i,o=-1,l=!0,u=e.length-1,c=0;for(;u>=i;--u){if(r=e.charCodeAt(u),j(r)){if(!l){s=u+1;break}continue}o===-1&&(l=!1,o=u+1),r===je?a===-1?a=u:c!==1&&(c=1):a!==-1&&(c=-1)}return o!==-1&&(a===-1||c===0||c===1&&a===o-1&&a===s+1?t.base=t.name=e.slice(s,o):(t.name=e.slice(s,a),t.base=e.slice(s,o),t.ext=e.slice(a,o))),s>0&&s!==i?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Ys=(()=>{if($e){const e=/\\/g;return()=>{const t=Bt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Bt()})(),ge={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:Ys();ee(r,"path"),r.length!==0&&(t=`${r}/${t}`,n=r.charCodeAt(0)===le)}return t=Ot(t,!n,"/",An),n?`/${t}`:t.length>0?t:"."},normalize(e){if(ee(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===le,n=e.charCodeAt(e.length-1)===le;return e=Ot(e,!t,"/",An),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return ee(e,"path"),e.length>0&&e.charCodeAt(0)===le},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=i:t+=`/${i}`)}return t===void 0?".":ge.normalize(t)},relative(e,t){if(ee(e,"from"),ee(t,"to"),e===t||(e=ge.resolve(e),t=ge.resolve(t),e===t))return"";const n=1,i=e.length,r=i-n,a=1,s=t.length-a,o=ro){if(t.charCodeAt(a+u)===le)return t.slice(a+u+1);if(u===0)return t.slice(a+u)}else r>o&&(e.charCodeAt(n+u)===le?l=u:u===0&&(l=0));let c="";for(u=n+l+1;u<=i;++u)(u===i||e.charCodeAt(u)===le)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(a+l)}`},toNamespacedPath(e){return e},dirname(e){if(ee(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===le;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===le){if(!i){n=r;break}}else i=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&ee(t,"ext"),ee(e,"path");let n=0,i=-1,r=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,o=-1;for(a=e.length-1;a>=0;--a){const l=e.charCodeAt(a);if(l===le){if(!r){n=a+1;break}}else o===-1&&(r=!1,o=a+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=o))}return n===i?i=o:i===-1&&(i=e.length),e.slice(n,i)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===le){if(!r){n=a+1;break}}else i===-1&&(r=!1,i=a+1);return i===-1?"":e.slice(n,i)},extname(e){ee(e,"path");let t=-1,n=0,i=-1,r=!0,a=0;for(let s=e.length-1;s>=0;--s){const o=e.charCodeAt(s);if(o===le){if(!r){n=s+1;break}continue}i===-1&&(r=!1,i=s+1),o===je?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:Ai.bind(null,"/"),parse(e){ee(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===le;let i;n?(t.root="/",i=1):i=0;let r=-1,a=0,s=-1,o=!0,l=e.length-1,u=0;for(;l>=i;--l){const c=e.charCodeAt(l);if(c===le){if(!o){a=l+1;break}continue}s===-1&&(o=!1,s=l+1),c===je?r===-1?r=l:u!==1&&(u=1):r!==-1&&(u=-1)}if(s!==-1){const c=a===0&&n?1:a;r===-1||u===0||u===1&&r===s-1&&r===a+1?t.base=t.name=e.slice(c,s):(t.name=e.slice(c,r),t.base=e.slice(c,s),t.ext=e.slice(r,s))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ge.win32=de.win32=de,ge.posix=de.posix=ge,$e?de.normalize:ge.normalize,$e?de.resolve:ge.resolve,$e?de.relative:ge.relative,$e?de.dirname:ge.dirname,$e?de.basename:ge.basename,$e?de.extname:ge.extname,$e?de.sep:ge.sep;const Js=/^\w[\w\d+.-]*$/,Xs=/^\//,Qs=/^\/\//;function Zs(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Js.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Xs.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Qs.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Ks(e,t){return!e&&!t?"file":e}function eo(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==De&&(t=De+t):t=De;break}return t}const Z="",De="/",to=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let kn=class dn{static isUri(t){return t instanceof dn?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,i,r,a,s=!1){typeof t=="object"?(this.scheme=t.scheme||Z,this.authority=t.authority||Z,this.path=t.path||Z,this.query=t.query||Z,this.fragment=t.fragment||Z):(this.scheme=Ks(t,s),this.authority=n||Z,this.path=eo(this.scheme,i||Z),this.query=r||Z,this.fragment=a||Z,Zs(this,s))}get fsPath(){return Cn(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:i,path:r,query:a,fragment:s}=t;return n===void 0?n=this.scheme:n===null&&(n=Z),i===void 0?i=this.authority:i===null&&(i=Z),r===void 0?r=this.path:r===null&&(r=Z),a===void 0?a=this.query:a===null&&(a=Z),s===void 0?s=this.fragment:s===null&&(s=Z),n===this.scheme&&i===this.authority&&r===this.path&&a===this.query&&s===this.fragment?this:new mt(n,i,r,a,s)}static parse(t,n=!1){const i=to.exec(t);return i?new mt(i[2]||Z,qt(i[4]||Z),qt(i[5]||Z),qt(i[7]||Z),qt(i[9]||Z),n):new mt(Z,Z,Z,Z,Z)}static file(t){let n=Z;if(Tt&&(t=t.replace(/\\/g,De)),t[0]===De&&t[1]===De){const i=t.indexOf(De,2);i===-1?(n=t.substring(2),t=De):(n=t.substring(2,i),t=t.substring(i)||De)}return new mt("file",n,t,Z,Z)}static from(t,n){return new mt(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Tt&&t.scheme==="file"?i=dn.file(de.join(Cn(t,!0),...n)).path:i=ge.join(t.path,...n),t.with({path:i})}toString(t=!1){return Ln(this,t)}toJSON(){return this}static revive(t){var n,i;if(t){if(t instanceof dn)return t;{const r=new mt(t);return r._formatted=(n=t.external)!==null&&n!==void 0?n:null,r._fsPath=t._sep===ki&&(i=t.fsPath)!==null&&i!==void 0?i:null,r}}else return t}};const ki=Tt?1:void 0;class mt extends kn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Cn(this,!1)),this._fsPath}toString(t=!1){return t?Ln(this,!0):(this._formatted||(this._formatted=Ln(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=ki),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const Ci={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Li(e,t,n){let i,r=-1;for(let a=0;a=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47||n&&s===91||n&&s===93||n&&s===58)r!==-1&&(i+=encodeURIComponent(e.substring(r,a)),r=-1),i!==void 0&&(i+=e.charAt(a));else{i===void 0&&(i=e.substr(0,a));const o=Ci[s];o!==void 0?(r!==-1&&(i+=encodeURIComponent(e.substring(r,a)),r=-1),i+=o):r===-1&&(r=a)}}return r!==-1&&(i+=encodeURIComponent(e.substring(r))),i!==void 0?i:e}function no(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Tt&&(n=n.replace(/\//g,"\\")),n}function Ln(e,t){const n=t?no:Li;let i="",{scheme:r,authority:a,path:s,query:o,fragment:l}=e;if(r&&(i+=r,i+=":"),(a||r==="file")&&(i+=De,i+=De),a){let u=a.indexOf("@");if(u!==-1){const c=a.substr(0,u);a=a.substr(u+1),u=c.lastIndexOf(":"),u===-1?i+=n(c,!1,!1):(i+=n(c.substr(0,u),!1,!1),i+=":",i+=n(c.substr(u+1),!1,!0)),i+="@"}a=a.toLowerCase(),u=a.lastIndexOf(":"),u===-1?i+=n(a,!1,!0):(i+=n(a.substr(0,u),!1,!0),i+=a.substr(u))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){const u=s.charCodeAt(1);u>=65&&u<=90&&(s=`/${String.fromCharCode(u+32)}:${s.substr(3)}`)}else if(s.length>=2&&s.charCodeAt(1)===58){const u=s.charCodeAt(0);u>=65&&u<=90&&(s=`${String.fromCharCode(u+32)}:${s.substr(2)}`)}i+=n(s,!0,!1)}return o&&(i+="?",i+=n(o,!1,!1)),l&&(i+="#",i+=t?l:Li(l,!1,!1)),i}function Ei(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Ei(e.substr(3)):e}}const Di=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function qt(e){return e.match(Di)?e.replace(Di,t=>Ei(t)):e}let We=class st{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new st(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return st.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return st.isBefore(this,t)}static isBefore(t,n){return t.lineNumberi||t===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return ie.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return ie.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return ie.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return ie.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return ie.plusRange(this,t)}static plusRange(t,n){let i,r,a,s;return n.startLineNumbert.endLineNumber?(a=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,s=t.endColumn),new ie(i,r,a,s)}intersectRanges(t){return ie.intersectRanges(this,t)}static intersectRanges(t,n){let i=t.startLineNumber,r=t.startColumn,a=t.endLineNumber,s=t.endColumn;const o=n.startLineNumber,l=n.startColumn,u=n.endLineNumber,c=n.endColumn;return iu?(a=u,s=c):a===u&&(s=Math.min(s,c)),i>a||i===a&&r>s?null:new ie(i,r,a,s)}equalsRange(t){return ie.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return ie.getEndPosition(this)}static getEndPosition(t){return new We(t.endLineNumber,t.endColumn)}getStartPosition(){return ie.getStartPosition(this)}static getStartPosition(t){return new We(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new ie(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new ie(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ie.collapseToStart(this)}static collapseToStart(t){return new ie(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return ie.collapseToEnd(this)}static collapseToEnd(t){return new ie(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new ie(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new ie(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new ie(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}toJSON(){return this}};var Ri;(function(e){function t(r){return r<0}e.isLessThan=t;function n(r){return r>0}e.isGreaterThan=n;function i(r){return r===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Ri||(Ri={}));function Mi(e){return e<0?0:e>255?255:e|0}function pt(e){return e<0?0:e>4294967295?4294967295:e|0}class io{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=pt(t);const i=this.values,r=this.prefixSum,a=n.length;return a===0?!1:(this.values=new Uint32Array(i.length+a),this.values.set(i.subarray(0,t),0),this.values.set(i.subarray(t),t+a),this.values.set(n,t),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=pt(t),n=pt(n),this.values[t]===n?!1:(this.values[t]=n,t-1=i.length)return!1;const a=i.length-t;return n>=a&&(n=a),n===0?!1:(this.values=new Uint32Array(i.length-n),this.values.set(i.subarray(0,t),0),this.values.set(i.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=pt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let i=n;i<=t;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,i=this.values.length-1,r=0,a=0,s=0;for(;n<=i;)if(r=n+(i-n)/2|0,a=this.prefixSum[r],s=a-this.values[r],t=a)n=r+1;else break;return new ro(r,t-s)}}class ro{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class ao{constructor(t,n,i,r){this._uri=t,this._lines=n,this._eol=i,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const i of n)this._acceptDeleteRange(i.range),this._acceptInsertText(new We(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,i=new Uint32Array(n);for(let r=0;r/?";function oo(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of so)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Ni=oo();function lo(e){let t=Ni;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Ii=new rs;Ii.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function En(e,t,n,i,r){if(r||(r=Ht.first(Ii)),n.length>r.maxLen){let u=e-r.maxLen/2;return u<0?u=0:i+=u,n=n.substring(u,e+r.maxLen/2),En(e,t,n,i,r)}const a=Date.now(),s=e-1-i;let o=-1,l=null;for(let u=1;!(Date.now()-a>=r.timeBudget);u++){const c=s-r.windowSize*u;t.lastIndex=Math.max(0,c);const d=uo(t,n,s,o);if(!d&&l||(l=d,c<=0))break;o=c}if(l){const u={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return t.lastIndex=0,u}return null}function uo(e,t,n,i){let r;for(;r=e.exec(t);){const a=r.index||0;if(a<=n&&e.lastIndex>=n)return r;if(i>0&&a>i)return null}return null}class Dn{constructor(t){const n=Mi(t);this._defaultValue=n,this._asciiMap=Dn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const i=Mi(n);t>=0&&t<256?this._asciiMap[t]=i:this._map.set(t,i)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class co{constructor(t,n,i){const r=new Uint8Array(t*n);for(let a=0,s=t*n;an&&(n=l),o>i&&(i=o),u>i&&(i=u)}n++,i++;const r=new co(i,n,0);for(let a=0,s=t.length;a=this._maxCharCode?0:this._states.get(t,n)}}let Rn=null;function mo(){return Rn===null&&(Rn=new ho([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Rn}let xt=null;function po(){if(xt===null){xt=new Dn(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;nr);if(r>0){const o=n.charCodeAt(r-1),l=n.charCodeAt(s);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&s--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:s+2},url:n.substring(r,s+1)}}static computeLinks(t,n=mo()){const i=po(),r=[];for(let a=1,s=t.getLineCount();a<=s;a++){const o=t.getLineContent(a),l=o.length;let u=0,c=0,d=0,m=1,p=!1,b=!1,f=!1,T=!1;for(;u=0?(r+=i?1:-1,r<0?r=t.length-1:r%=t.length,t[r]):null}}Mn.INSTANCE=new Mn;const Pi=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var jt;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Gt?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:fn.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Pi})})(jt||(jt={}));class Gt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Pi:(this._emitter||(this._emitter=new Pe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class go{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Gt),this._token}cancel(){this._token?this._token instanceof Gt&&this._token.cancel():this._token=jt.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Gt&&this._token.dispose():this._token=jt.None}}class Nn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const $t=new Nn,In=new Nn,Pn=new Nn,bo=new Array(230),_o=Object.create(null),vo=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[a,s,o,l,u,c,d,m,p]=r;if(i[s]||(i[s]=!0,_o[o]=s,vo[o.toLowerCase()]=s),!n[l]){if(n[l]=!0,!u)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);$t.define(l,u),In.define(l,m||u),Pn.define(l,p||m||u)}c&&(bo[c]=l)}})();var Ui;(function(e){function t(o){return $t.keyCodeToStr(o)}e.toString=t;function n(o){return $t.strToKeyCode(o)}e.fromString=n;function i(o){return In.keyCodeToStr(o)}e.toUserSettingsUS=i;function r(o){return Pn.keyCodeToStr(o)}e.toUserSettingsGeneral=r;function a(o){return In.strToKeyCode(o)||Pn.strToKeyCode(o)}e.fromUserSettings=a;function s(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return $t.keyCodeToStr(o)}e.toElectronAccelerator=s})(Ui||(Ui={}));function wo(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class we extends Ae{constructor(t,n,i,r){super(t,n,i,r),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return we.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new we(this.startLineNumber,this.startColumn,t,n):new we(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new We(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new We(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new we(t,n,this.endLineNumber,this.endColumn):new we(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new we(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new we(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new we(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new we(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let i=0,r=t.length;i{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var i;(i=this._factories.get(t))===null||i===void 0||i.dispose();const r=new To(this,t,n);return this._factories.set(t,r),wt(()=>{const a=this._factories.get(t);!a||a!==r||(this._factories.delete(t),a.dispose())})}getOrCreate(t){return Un(this,void 0,void 0,function*(){const n=this.get(t);if(n)return n;const i=this._factories.get(t);return!i||i.isResolved?null:(yield i.resolve(),this.get(t))})}isResolved(t){if(this.get(t))return!0;const i=this._factories.get(t);return!!(!i||i.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class To extends yt{get isResolved(){return this._isResolved}constructor(t,n,i){super(),this._registry=t,this._languageId=n,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Un(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Un(this,void 0,void 0,function*(){const t=yield this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))})}}class xo{constructor(t,n,i){this.offset=t,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Hi;(function(e){const t=new Map;t.set(0,q.symbolMethod),t.set(1,q.symbolFunction),t.set(2,q.symbolConstructor),t.set(3,q.symbolField),t.set(4,q.symbolVariable),t.set(5,q.symbolClass),t.set(6,q.symbolStruct),t.set(7,q.symbolInterface),t.set(8,q.symbolModule),t.set(9,q.symbolProperty),t.set(10,q.symbolEvent),t.set(11,q.symbolOperator),t.set(12,q.symbolUnit),t.set(13,q.symbolValue),t.set(15,q.symbolEnum),t.set(14,q.symbolConstant),t.set(15,q.symbolEnum),t.set(16,q.symbolEnumMember),t.set(17,q.symbolKeyword),t.set(27,q.symbolSnippet),t.set(18,q.symbolText),t.set(19,q.symbolColor),t.set(20,q.symbolFile),t.set(21,q.symbolReference),t.set(22,q.symbolCustomColor),t.set(23,q.symbolFolder),t.set(24,q.symbolTypeParameter),t.set(25,q.account),t.set(26,q.issues);function n(a){let s=t.get(a);return s||(console.info("No codicon found for CompletionItemKind "+a),s=q.symbolProperty),s}e.toIcon=n;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function r(a,s){let o=i.get(a);return typeof o=="undefined"&&!s&&(o=9),o}e.fromString=r})(Hi||(Hi={}));var Fi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Fi||(Fi={}));var zi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(zi||(zi={}));var Bi;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Bi||(Bi={}));var Oi;(function(e){const t=new Map;t.set(0,q.symbolFile),t.set(1,q.symbolModule),t.set(2,q.symbolNamespace),t.set(3,q.symbolPackage),t.set(4,q.symbolClass),t.set(5,q.symbolMethod),t.set(6,q.symbolProperty),t.set(7,q.symbolField),t.set(8,q.symbolConstructor),t.set(9,q.symbolEnum),t.set(10,q.symbolInterface),t.set(11,q.symbolFunction),t.set(12,q.symbolVariable),t.set(13,q.symbolConstant),t.set(14,q.symbolString),t.set(15,q.symbolNumber),t.set(16,q.symbolBoolean),t.set(17,q.symbolArray),t.set(18,q.symbolObject),t.set(19,q.symbolKey),t.set(20,q.symbolNull),t.set(21,q.symbolEnumMember),t.set(22,q.symbolStruct),t.set(23,q.symbolEvent),t.set(24,q.symbolOperator),t.set(25,q.symbolTypeParameter);function n(i){let r=t.get(i);return r||(console.info("No codicon found for SymbolKind "+i),r=q.symbolProperty),r}e.toIcon=n})(Oi||(Oi={}));var qi;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(qi||(qi={}));var Vi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Vi||(Vi={})),new yo;var ji;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(ji||(ji={}));var Gi;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Gi||(Gi={}));var $i;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})($i||($i={}));var Yi;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Yi||(Yi={}));var Ji;(function(e){e[e.Deprecated=1]="Deprecated"})(Ji||(Ji={}));var Xi;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Xi||(Xi={}));var Qi;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Qi||(Qi={}));var Zi;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Zi||(Zi={}));var Ki;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ki||(Ki={}));var er;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(er||(er={}));var tr;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(tr||(tr={}));var nr;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=7]="autoClosingDelete",e[e.autoClosingOvertype=8]="autoClosingOvertype",e[e.autoClosingQuotes=9]="autoClosingQuotes",e[e.autoIndent=10]="autoIndent",e[e.automaticLayout=11]="automaticLayout",e[e.autoSurround=12]="autoSurround",e[e.bracketPairColorization=13]="bracketPairColorization",e[e.guides=14]="guides",e[e.codeLens=15]="codeLens",e[e.codeLensFontFamily=16]="codeLensFontFamily",e[e.codeLensFontSize=17]="codeLensFontSize",e[e.colorDecorators=18]="colorDecorators",e[e.colorDecoratorsLimit=19]="colorDecoratorsLimit",e[e.columnSelection=20]="columnSelection",e[e.comments=21]="comments",e[e.contextmenu=22]="contextmenu",e[e.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",e[e.cursorBlinking=24]="cursorBlinking",e[e.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",e[e.cursorStyle=26]="cursorStyle",e[e.cursorSurroundingLines=27]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",e[e.cursorWidth=29]="cursorWidth",e[e.disableLayerHinting=30]="disableLayerHinting",e[e.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",e[e.domReadOnly=32]="domReadOnly",e[e.dragAndDrop=33]="dragAndDrop",e[e.dropIntoEditor=34]="dropIntoEditor",e[e.emptySelectionClipboard=35]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",e[e.extraEditorClassName=37]="extraEditorClassName",e[e.fastScrollSensitivity=38]="fastScrollSensitivity",e[e.find=39]="find",e[e.fixedOverflowWidgets=40]="fixedOverflowWidgets",e[e.folding=41]="folding",e[e.foldingStrategy=42]="foldingStrategy",e[e.foldingHighlight=43]="foldingHighlight",e[e.foldingImportsByDefault=44]="foldingImportsByDefault",e[e.foldingMaximumRegions=45]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=47]="fontFamily",e[e.fontInfo=48]="fontInfo",e[e.fontLigatures=49]="fontLigatures",e[e.fontSize=50]="fontSize",e[e.fontWeight=51]="fontWeight",e[e.fontVariations=52]="fontVariations",e[e.formatOnPaste=53]="formatOnPaste",e[e.formatOnType=54]="formatOnType",e[e.glyphMargin=55]="glyphMargin",e[e.gotoLocation=56]="gotoLocation",e[e.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",e[e.hover=58]="hover",e[e.inDiffEditor=59]="inDiffEditor",e[e.inlineSuggest=60]="inlineSuggest",e[e.letterSpacing=61]="letterSpacing",e[e.lightbulb=62]="lightbulb",e[e.lineDecorationsWidth=63]="lineDecorationsWidth",e[e.lineHeight=64]="lineHeight",e[e.lineNumbers=65]="lineNumbers",e[e.lineNumbersMinChars=66]="lineNumbersMinChars",e[e.linkedEditing=67]="linkedEditing",e[e.links=68]="links",e[e.matchBrackets=69]="matchBrackets",e[e.minimap=70]="minimap",e[e.mouseStyle=71]="mouseStyle",e[e.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=73]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",e[e.multiCursorModifier=75]="multiCursorModifier",e[e.multiCursorPaste=76]="multiCursorPaste",e[e.multiCursorLimit=77]="multiCursorLimit",e[e.occurrencesHighlight=78]="occurrencesHighlight",e[e.overviewRulerBorder=79]="overviewRulerBorder",e[e.overviewRulerLanes=80]="overviewRulerLanes",e[e.padding=81]="padding",e[e.pasteAs=82]="pasteAs",e[e.parameterHints=83]="parameterHints",e[e.peekWidgetDefaultFocus=84]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=85]="definitionLinkOpensInPeek",e[e.quickSuggestions=86]="quickSuggestions",e[e.quickSuggestionsDelay=87]="quickSuggestionsDelay",e[e.readOnly=88]="readOnly",e[e.readOnlyMessage=89]="readOnlyMessage",e[e.renameOnType=90]="renameOnType",e[e.renderControlCharacters=91]="renderControlCharacters",e[e.renderFinalNewline=92]="renderFinalNewline",e[e.renderLineHighlight=93]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=94]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=95]="renderValidationDecorations",e[e.renderWhitespace=96]="renderWhitespace",e[e.revealHorizontalRightPadding=97]="revealHorizontalRightPadding",e[e.roundedSelection=98]="roundedSelection",e[e.rulers=99]="rulers",e[e.scrollbar=100]="scrollbar",e[e.scrollBeyondLastColumn=101]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=102]="scrollBeyondLastLine",e[e.scrollPredominantAxis=103]="scrollPredominantAxis",e[e.selectionClipboard=104]="selectionClipboard",e[e.selectionHighlight=105]="selectionHighlight",e[e.selectOnLineNumbers=106]="selectOnLineNumbers",e[e.showFoldingControls=107]="showFoldingControls",e[e.showUnused=108]="showUnused",e[e.snippetSuggestions=109]="snippetSuggestions",e[e.smartSelect=110]="smartSelect",e[e.smoothScrolling=111]="smoothScrolling",e[e.stickyScroll=112]="stickyScroll",e[e.stickyTabStops=113]="stickyTabStops",e[e.stopRenderingLineAfter=114]="stopRenderingLineAfter",e[e.suggest=115]="suggest",e[e.suggestFontSize=116]="suggestFontSize",e[e.suggestLineHeight=117]="suggestLineHeight",e[e.suggestOnTriggerCharacters=118]="suggestOnTriggerCharacters",e[e.suggestSelection=119]="suggestSelection",e[e.tabCompletion=120]="tabCompletion",e[e.tabIndex=121]="tabIndex",e[e.unicodeHighlighting=122]="unicodeHighlighting",e[e.unusualLineTerminators=123]="unusualLineTerminators",e[e.useShadowDOM=124]="useShadowDOM",e[e.useTabStops=125]="useTabStops",e[e.wordBreak=126]="wordBreak",e[e.wordSeparators=127]="wordSeparators",e[e.wordWrap=128]="wordWrap",e[e.wordWrapBreakAfterCharacters=129]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=130]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=131]="wordWrapColumn",e[e.wordWrapOverride1=132]="wordWrapOverride1",e[e.wordWrapOverride2=133]="wordWrapOverride2",e[e.wrappingIndent=134]="wrappingIndent",e[e.wrappingStrategy=135]="wrappingStrategy",e[e.showDeprecated=136]="showDeprecated",e[e.inlayHints=137]="inlayHints",e[e.editorClassName=138]="editorClassName",e[e.pixelRatio=139]="pixelRatio",e[e.tabFocusMode=140]="tabFocusMode",e[e.layoutInfo=141]="layoutInfo",e[e.wrappingInfo=142]="wrappingInfo",e[e.defaultColorDecorators=143]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=144]="colorDecoratorsActivatedOn"})(nr||(nr={}));var ir;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(ir||(ir={}));var rr;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(rr||(rr={}));var ar;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(ar||(ar={}));var sr;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(sr||(sr={}));var or;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(or||(or={}));var lr;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(lr||(lr={}));var ur;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(ur||(ur={}));var Wn;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Wn||(Wn={}));var Hn;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Hn||(Hn={}));var Fn;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Fn||(Fn={}));var cr;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(cr||(cr={}));var hr;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(hr||(hr={}));var dr;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(dr||(dr={}));var mr;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(mr||(mr={}));var pr;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(pr||(pr={}));var fr;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(fr||(fr={}));var gr;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(gr||(gr={}));var br;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(br||(br={}));var _r;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(_r||(_r={}));var zn;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(zn||(zn={}));var vr;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(vr||(vr={}));var wr;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(wr||(wr={}));var yr;(function(e){e[e.Deprecated=1]="Deprecated"})(yr||(yr={}));var Tr;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Tr||(Tr={}));var xr;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(xr||(xr={}));var Sr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Sr||(Sr={}));var Ar;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Ar||(Ar={}));class St{static chord(t,n){return wo(t,n)}}St.CtrlCmd=2048,St.Shift=1024,St.Alt=512,St.WinCtrl=256;function So(){return{editor:void 0,languages:void 0,CancellationTokenSource:go,Emitter:Pe,KeyCode:Wn,KeyMod:St,Position:We,Range:Ae,Selection:we,SelectionDirection:zn,MarkerSeverity:Hn,MarkerTag:Fn,Uri:kn,Token:xo}}var kr;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(kr||(kr={}));var Cr;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Cr||(Cr={}));var Lr;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Lr||(Lr={}));var Er;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Er||(Er={}));function Ao(e,t,n,i,r){if(i===0)return!0;const a=t.charCodeAt(i-1);if(e.get(a)!==0||a===13||a===10)return!0;if(r>0){const s=t.charCodeAt(i);if(e.get(s)!==0)return!0}return!1}function ko(e,t,n,i,r){if(i+r===n)return!0;const a=t.charCodeAt(i+r);if(e.get(a)!==0||a===13||a===10)return!0;if(r>0){const s=t.charCodeAt(i+r-1);if(e.get(s)!==0)return!0}return!1}function Co(e,t,n,i,r){return Ao(e,t,n,i,r)&&ko(e,t,n,i,r)}class Lo{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(i=this._searchRegex.exec(t),!i))return null;const r=i.index,a=i[0].length;if(r===this._prevMatchStartIndex&&a===this._prevMatchLength){if(a===0){Ls(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=a,!this._wordSeparators||Co(this._wordSeparators,t,n,r,a))return i}while(i);return null}}function Eo(e,t="Unreachable"){throw new Error(t)}function Bn(e){if(!e()){debugger;e(),ne(new pe("Assertion Failed"))}}function Dr(e,t){let n=0;for(;n0){const _=v.charCodeAt(W-1);Sn(_)&&W--}if(H+1=_){d=!0;break e}c.push(new Ae(T,W+1,T,H+1))}}while(m)}return{ranges:c,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:f}}static computeUnicodeHighlightReason(t,n){const i=new Rr(n);switch(i.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const a=t.codePointAt(0),s=i.ambiguousCharacters.getPrimaryConfusable(a),o=Se.getLocales().filter(l=>!Se.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(a));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Ro(e,t){return`[${Ts(e.map(i=>String.fromCodePoint(i)).join(""))}]`}class Rr{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Se.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of Oe.codePoints)Mr(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const i=t.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,a=!1;if(n)for(const s of n){const o=s.codePointAt(0),l=Ds(s);r=r||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!Oe.isInvisibleCharacter(o)&&(a=!0)}return!r&&a?0:this.options.invisibleCharacters&&!Mr(t)&&Oe.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function Mr(e){return e===" "||e===` -`||e===" "}class te{static fromRange(t){return new te(t.startLineNumber,t.endLineNumber)}static subtract(t,n){return n?t.startLineNumber=o.startLineNumber?s=new te(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(i.push(s),s=o)}return s!==null&&i.push(s),i}static ofLength(t,n){return new te(t,t+n)}static deserialize(t){return new te(t[0],t[1])}constructor(t,n){if(t>n)throw new pe(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var t;return new Je(this.modifiedRange,this.originalRange,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class Yt{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Yt(this.modifiedRange,this.originalRange)}}class On{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new On(this.modifiedRange,this.originalRange)}}class qn{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new qn(this.lineRangeMapping.flip(),this.changes.map(t=>t.flip()))}}const Mo=3;class No{computeDiff(t,n,i){var r;const s=new Uo(t,n,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const u of s.changes){let c;u.originalEndLineNumber===0?c=new te(u.originalStartLineNumber+1,u.originalStartLineNumber+1):c=new te(u.originalStartLineNumber,u.originalEndLineNumber+1);let d;u.modifiedEndLineNumber===0?d=new te(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):d=new te(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let m=new Je(c,d,(r=u.charChanges)===null||r===void 0?void 0:r.map(p=>new Yt(new Ae(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn),new Ae(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn))));l&&(l.modifiedRange.endLineNumberExclusive===m.modifiedRange.startLineNumber||l.originalRange.endLineNumberExclusive===m.originalRange.startLineNumber)&&(m=new Je(l.originalRange.join(m.originalRange),l.modifiedRange.join(m.modifiedRange),l.innerChanges&&m.innerChanges?l.innerChanges.concat(m.innerChanges):void 0),o.pop()),o.push(m),l=m}return Bn(()=>Dr(o,(u,c)=>c.originalRange.startLineNumber-u.originalRange.endLineNumberExclusive===c.modifiedRange.startLineNumber-u.modifiedRange.endLineNumberExclusive&&u.originalRange.endLineNumberExclusive(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class ft{constructor(t,n,i,r,a,s,o,l){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=a,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(t,n,i){const r=n.getStartLineNumber(t.originalStart),a=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),o=n.getEndColumn(t.originalStart+t.originalLength-1),l=i.getStartLineNumber(t.modifiedStart),u=i.getStartColumn(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new ft(r,a,s,o,l,u,c,d)}}function Po(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&a()){const p=i.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),b=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(p.getElements().length>0&&b.getElements().length>0){let f=Ir(p,b,a,!0).changes;o&&(f=Po(f)),m=[];for(let T=0,y=f.length;T1&&f>1;){const T=m.charCodeAt(b-2),y=p.charCodeAt(f-2);if(T!==y)break;b--,f--}(b>1||f>1)&&this._pushTrimWhitespaceCharChange(r,a+1,1,b,s+1,1,f)}{let b=jn(m,1),f=jn(p,1);const T=m.length+1,y=p.length+1;for(;b!0;const t=Date.now();return()=>Date.now()-tn))return new Q(t,n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new pe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new Q(this.start+t,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}join(t){return new Q(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);if(n<=i)return new Q(n,i)}}class Be{static trivial(t,n){return new Be([new be(new Q(0,t.length),new Q(0,n.length))],!1)}static trivialTimedOut(t,n){return new Be([new be(new Q(0,t.length),new Q(0,n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class be{constructor(t,n){this.seq1Range=t,this.seq2Range=n}reverse(){return new be(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new be(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new be(this.seq1Range.delta(t),this.seq2Range.delta(t))}}class kt{isValid(){return!0}}kt.instance=new kt;class Wo{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new pe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&f>0&&s.get(b-1,f-1)===3&&(v+=o.get(b-1,f-1)),v+=r?r(b,f):1):v=-1;const S=Math.max(T,y,v);if(S===v){const W=b>0&&f>0?o.get(b-1,f-1):0;o.set(b,f,W+1),s.set(b,f,3)}else S===T?(o.set(b,f,0),s.set(b,f,1)):S===y&&(o.set(b,f,0),s.set(b,f,2));a.set(b,f,S)}const l=[];let u=t.length,c=n.length;function d(b,f){(b+1!==u||f+1!==c)&&l.push(new be(new Q(b+1,u),new Q(f+1,c))),u=b,c=f}let m=t.length-1,p=n.length-1;for(;m>=0&&p>=0;)s.get(m,p)===3?(d(m,p),m--,p--):s.get(m,p)===1?m--:p--;return d(-1,-1),l.reverse(),new Be(l,!1)}}function Wr(e,t,n){let i=n;return i=zo(e,t,i),i=Bo(e,t,i),i}function Fo(e,t,n){const i=[];for(const r of n){const a=i[i.length-1];if(!a){i.push(r);continue}r.seq1Range.start-a.seq1Range.endExclusive<=2||r.seq2Range.start-a.seq2Range.endExclusive<=2?i[i.length-1]=new be(a.seq1Range.join(r.seq1Range),a.seq2Range.join(r.seq2Range)):i.push(r)}return i}function zo(e,t,n){const i=[];n.length>0&&i.push(n[0]);for(let a=1;a0&&(o=o.delta(u))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function Bo(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i0?n[i-1]:void 0,a=n[i],s=i+1=i.start&&e.seq2Range.start-s>=r.start&&n.getElement(e.seq2Range.start-s)===n.getElement(e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+ou&&(u=b,l=c)}return e.delta(l)}class Oo{compute(t,n,i=kt.instance){if(t.length===0||n.length===0)return Be.trivial(t,n);function r(p,b){for(;pt.length||v>n.length)continue;const S=r(y,v);s.set(l,S);const W=y===f?o.get(l+1):o.get(l-1);if(o.set(l,S!==y?new Fr(W,y,v,S-y):W),s.get(l)===t.length&&s.get(l)-l===n.length)break e}}let u=o.get(l);const c=[];let d=t.length,m=n.length;for(;;){const p=u?u.x+u.length:0,b=u?u.y+u.length:0;if((p!==d||b!==m)&&c.push(new be(new Q(p,d),new Q(b,m))),!u)break;d=u.x,m=u.y,u=u.prev}return c.reverse(),new Be(c,!1)}}class Fr{constructor(t,n,i,r){this.prev=t,this.x=n,this.y=i,this.length=r}}class qo{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[t]=n}}}class Vo{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class jo{constructor(){this.dynamicProgrammingDiffing=new Ho,this.myersDiffingAlgorithm=new Oo}computeDiff(t,n,i){const r=i.maxComputationTimeMs===0?kt.instance:new Wo(i.maxComputationTimeMs),a=!i.ignoreTrimWhitespace,s=new Map;function o(H){let O=s.get(H);return O===void 0&&(O=s.size,s.set(H,O)),O}const l=t.map(H=>o(H.trim())),u=n.map(H=>o(H.trim())),c=new Br(l,t),d=new Br(u,n),m=(()=>c.length+d.length<1500?this.dynamicProgrammingDiffing.compute(c,d,r,(H,O)=>t[H]===n[O]?n[O].length===0?.1:1+Math.log(1+n[O].length):.99):this.myersDiffingAlgorithm.compute(c,d))();let p=m.diffs,b=m.hitTimeout;p=Wr(c,d,p);const f=[],T=H=>{if(a)for(let O=0;OH.seq1Range.start-y===H.seq2Range.start-v);const O=H.seq1Range.start-y;T(O),y=H.seq1Range.endExclusive,v=H.seq2Range.endExclusive;const w=this.refineDiff(t,n,H,r,a);w.hitTimeout&&(b=!0);for(const g of w.mappings)f.push(g)}T(t.length-y);const S=zr(f,t,n),W=[];if(i.computeMoves){const H=S.filter(w=>w.modifiedRange.isEmpty&&w.originalRange.length>=3).map(w=>new $r(w.originalRange,t)),O=new Set(S.filter(w=>w.originalRange.isEmpty&&w.modifiedRange.length>=3).map(w=>new $r(w.modifiedRange,n)));for(const w of H){let g=-1,_;for(const L of O){const x=w.computeSimilarity(L);x>g&&(g=x,_=L)}if(g>.9&&_){const L=this.refineDiff(t,n,new be(new Q(w.range.startLineNumber-1,w.range.endLineNumberExclusive-1),new Q(_.range.startLineNumber-1,_.range.endLineNumberExclusive-1)),r,a),x=zr(L.mappings,t,n,!0);O.delete(_),W.push(new qn(new On(w.range,_.range),x))}}}return new Nr(S,W,b)}refineDiff(t,n,i,r,a){const s=new qr(t,i.seq1Range,a),o=new qr(n,i.seq2Range,a),l=s.length+o.length<500?this.dynamicProgrammingDiffing.compute(s,o,r):this.myersDiffingAlgorithm.compute(s,o,r);let u=l.diffs;return u=Wr(s,o,u),u=Go(s,o,u),u=Fo(s,o,u),{mappings:u.map(d=>new Yt(s.translateRange(d.seq1Range),o.translateRange(d.seq2Range))),hitTimeout:l.hitTimeout}}}function Go(e,t,n){const i=[];let r;function a(){if(!r)return;const o=r.s1Range.length-r.deleted;r.s2Range.length-r.added,Math.max(r.deleted,r.added)+(r.count-1)>o&&i.push(new be(r.s1Range,r.s2Range)),r=void 0}for(const o of n){let l=function(p,b){var f,T,y,v;if(!r||!r.s1Range.containsRange(p)||!r.s2Range.containsRange(b))if(r&&!(r.s1Range.endExclusive0||t.length>0;){const i=e[0],r=t[0];let a;i&&(!r||i.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=a.seq1Range.start?n[n.length-1]=n[n.length-1].join(a):n.push(a)}return n}function zr(e,t,n,i=!1){const r=[];for(const a of Jo(e.map(s=>Yo(s,t,n)),(s,o)=>s.originalRange.overlapOrTouch(o.originalRange)||s.modifiedRange.overlapOrTouch(o.modifiedRange))){const s=a[0],o=a[a.length-1];r.push(new Je(s.originalRange.join(o.originalRange),s.modifiedRange.join(o.modifiedRange),a.map(l=>l.innerChanges[0])))}return Bn(()=>!i&&r.length>0&&r[0].originalRange.startLineNumber!==r[0].modifiedRange.startLineNumber?!1:Dr(r,(a,s)=>s.originalRange.startLineNumber-a.originalRange.endLineNumberExclusive===s.modifiedRange.startLineNumber-a.modifiedRange.endLineNumberExclusive&&a.originalRange.endLineNumberExclusive=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const a=new te(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),s=new te(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new Je(a,s,[e])}function*Jo(e,t){let n,i;for(const r of e)i!==void 0&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}class Br{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Or(this.lines[t-1]),i=t===this.lines.length?0:Or(this.lines[t]);return 1e3-(n+i)}}function Or(e){let t=0;for(;t0&&n.endExclusive>=t.length&&(n=new Q(n.start-1,n.endExclusive),r=!0),this.lineRange=n;for(let a=this.lineRange.start;aString.fromCharCode(t)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=jr(t>0?this.elements[t-1]:-1),i=jr(tt?i=a:n=a+1}const r=n===0?0:this.firstCharOffsetByLineMinusOne[n-1];return new We(this.lineRange.start+n+1,t-r+1+this.offsetByLine[n])}translateRange(t){return Ae.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!$n(this.elements[t]))return;let n=t;for(;n>0&&$n(this.elements[n-1]);)n--;let i=t;for(;i=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Xo={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Vr(e){return Xo[e]}function jr(e){return e===10?7:e===13?6:Qo(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:4}function Qo(e){return e===32||e===9}const Yn=new Map;function Gr(e){let t=Yn.get(e);return t===void 0&&(t=Yn.size,Yn.set(e,t)),t}class $r{constructor(t,n){this.range=t,this.lines=n,this.histogram=[];let i=0;for(let r=t.startLineNumber-1;rnew No,getAdvanced:()=>new jo};function Xe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class se{constructor(t,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class ke{constructor(t,n,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.l=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,i=t.g/255,r=t.b/255,a=t.a,s=Math.max(n,i,r),o=Math.min(n,i,r);let l=0,u=0;const c=(o+s)/2,d=s-o;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:l=(i-r)/d+(i1&&(i-=1),i<1/6?t+(n-t)*6*i:i<1/2?n:i<2/3?t+(n-t)*(2/3-i)*6:t}static toRGBA(t){const n=t.h/360,{s:i,l:r,a}=t;let s,o,l;if(i===0)s=o=l=r;else{const u=r<.5?r*(1+i):r+i-r*i,c=2*r-u;s=ke._hue2rgb(c,u,n+1/3),o=ke._hue2rgb(c,u,n),l=ke._hue2rgb(c,u,n-1/3)}return new se(Math.round(s*255),Math.round(o*255),Math.round(l*255),a)}}class gt{constructor(t,n,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.v=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,i=t.g/255,r=t.b/255,a=Math.max(n,i,r),s=Math.min(n,i,r),o=a-s,l=a===0?0:o/a;let u;return o===0?u=0:a===n?u=((i-r)/o%6+6)%6:a===i?u=(r-n)/o+2:u=(n-i)/o+4,new gt(Math.round(u*60),l,a,t.a)}static toRGBA(t){const{h:n,s:i,v:r,a}=t,s=r*i,o=s*(1-Math.abs(n/60%2-1)),l=r-s;let[u,c,d]=[0,0,0];return n<60?(u=s,c=o):n<120?(u=o,c=s):n<180?(c=s,d=o):n<240?(c=o,d=s):n<300?(u=o,d=s):n<=360&&(u=s,d=o),u=Math.round((u+l)*255),c=Math.round((c+l)*255),d=Math.round((d+l)*255),new se(u,c,d,a)}}let re=class Ce{static fromHex(t){return Ce.Format.CSS.parseHex(t)||Ce.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:ke.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:gt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof se)this.rgba=t;else if(t instanceof ke)this._hsla=t,this.rgba=ke.toRGBA(t);else if(t instanceof gt)this._hsva=t,this.rgba=gt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&se.equals(this.rgba,t.rgba)&&ke.equals(this.hsla,t.hsla)&>.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Ce._relativeLuminanceForComponent(this.rgba.r),n=Ce._relativeLuminanceForComponent(this.rgba.g),i=Ce._relativeLuminanceForComponent(this.rgba.b),r=.2126*t+.7152*n+.0722*i;return Xe(r,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n>i}isDarkerThan(t){const n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n0)for(const r of i){const a=r.filter(u=>u!==void 0),s=a[1],o=a[2];if(!o)continue;let l;if(s==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=Xr(Ct(e,r),Lt(o,u),!1)}else if(s==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Xr(Ct(e,r),Lt(o,u),!0)}else if(s==="hsl"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=Qr(Ct(e,r),Lt(o,u),!1)}else if(s==="hsla"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Qr(Ct(e,r),Lt(o,u),!0)}else s==="#"&&(l=Zo(Ct(e,r),s+o));l&&t.push(l)}return t}function el(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Ko(e)}var Qe=function(e,t,n,i){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):r(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})};class tl extends ao{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let i=0;ithis._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,r=!0;else{const a=this._lines[n-1].length+1;i<1?(i=1,r=!0):i>a&&(i=a,r=!0)}return r?{lineNumber:n,column:i}:t}}class it{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new tl(kn.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}computeUnicodeHighlights(t,n,i){return Qe(this,void 0,void 0,function*(){const r=this._getModel(t);return r?Do.computeUnicodeHighlights(r,n,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,n,i,r){return Qe(this,void 0,void 0,function*(){const a=this._getModel(t),s=this._getModel(n);return!a||!s?null:it.computeDiff(a,s,i,r)})}static computeDiff(t,n,i,r){const a=r==="advanced"?Yr.getAdvanced():Yr.getLegacy(),s=t.getLinesContent(),o=n.getLinesContent(),l=a.computeDiff(s,o,i),u=l.changes.length>0?!1:this._modelsAreIdentical(t,n);function c(d){return d.map(m=>{var p;return[m.originalRange.startLineNumber,m.originalRange.endLineNumberExclusive,m.modifiedRange.startLineNumber,m.modifiedRange.endLineNumberExclusive,(p=m.innerChanges)===null||p===void 0?void 0:p.map(b=>[b.originalRange.startLineNumber,b.originalRange.startColumn,b.originalRange.endLineNumber,b.originalRange.endColumn,b.modifiedRange.startLineNumber,b.modifiedRange.startColumn,b.modifiedRange.endLineNumber,b.modifiedRange.endColumn])]})}return{identical:u,quitEarly:l.hitTimeout,changes:c(l.changes),moves:l.moves.map(d=>[d.lineRangeMapping.originalRange.startLineNumber,d.lineRangeMapping.originalRange.endLineNumberExclusive,d.lineRangeMapping.modifiedRange.startLineNumber,d.lineRangeMapping.modifiedRange.endLineNumberExclusive,c(d.changes)])}}static _modelsAreIdentical(t,n){const i=t.getLineCount(),r=n.getLineCount();if(i!==r)return!1;for(let a=1;a<=i;a++){const s=t.getLineContent(a),o=n.getLineContent(a);if(s!==o)return!1}return!0}computeMoreMinimalEdits(t,n,i){return Qe(this,void 0,void 0,function*(){const r=this._getModel(t);if(!r)return n;const a=[];let s;n=n.slice(0).sort((o,l)=>{if(o.range&&l.range)return Ae.compareRangesUsingStarts(o.range,l.range);const u=o.range?0:1,c=l.range?0:1;return u-c});for(let{range:o,text:l,eol:u}of n){if(typeof u=="number"&&(s=u),Ae.isEmpty(o)&&!l)continue;const c=r.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,r.eol),c===l)continue;if(Math.max(l.length,c.length)>it._diffLimit){a.push({range:o,text:l});continue}const d=zs(c,l,i),m=r.offsetAt(Ae.lift(o).getStartPosition());for(const p of d){const b=r.positionAt(m+p.originalStart),f=r.positionAt(m+p.originalStart+p.originalLength),T={text:l.substr(p.modifiedStart,p.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:f.lineNumber,endColumn:f.column}};r.getValueInRange(T.range)!==T.text&&a.push(T)}}return typeof s=="number"&&a.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a})}computeLinks(t){return Qe(this,void 0,void 0,function*(){const n=this._getModel(t);return n?fo(n):null})}computeDefaultDocumentColors(t){return Qe(this,void 0,void 0,function*(){const n=this._getModel(t);return n?el(n):null})}textualSuggest(t,n,i,r){return Qe(this,void 0,void 0,function*(){const a=new Ft,s=new RegExp(i,r),o=new Set;e:for(const l of t){const u=this._getModel(l);if(u){for(const c of u.words(s))if(!(c===n||!isNaN(Number(c)))&&(o.add(c),o.size>it._suggestionsLimit))break e}}return{words:Array.from(o),duration:a.elapsed()}})}computeWordRanges(t,n,i,r){return Qe(this,void 0,void 0,function*(){const a=this._getModel(t);if(!a)return Object.create(null);const s=new RegExp(i,r),o=Object.create(null);for(let l=n.startLineNumber;lthis._host.fhr(o,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,n),Promise.resolve(_n(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}}it._diffLimit=1e5,it._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=So());let Xn=!1;function Zr(e){if(Xn)return;Xn=!0;const t=new Hs(n=>{globalThis.postMessage(n)},n=>new it(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Xn||Zr(null)};/*!----------------------------------------------------------------------------- +`))}}class bn{constructor(t){this.value=t}}const ls=2;class Pe{constructor(t){var n,i,r,a,s;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new os((r=(i=this._options)===null||i===void 0?void 0:i.leakWarningThreshold)!==null&&r!==void 0?r:ss):void 0,this._perfMon=!((a=this._options)===null||a===void 0)&&a._profName?new lt(this._options._profName):void 0,this._deliveryQueue=(s=this._options)===null||s===void 0?void 0:s.deliveryQueue}dispose(){var t,n,i,r;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(i=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||i===void 0||i.call(n),(r=this._leakageMon)===null||r===void 0||r.dispose())}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,i,r)=>{var a,s,o,l,u;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),yt.None;if(this._disposed)return yt.None;i&&(n=n.bind(i));const c=new bn(n);let d;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(c.stack=gn.create(),d=this._leakageMon.check(c.stack,this._size+1)),this._listeners?this._listeners instanceof bn?((u=this._deliveryQueue)!==null&&u!==void 0||(this._deliveryQueue=new us),this._listeners=[this._listeners,c]):this._listeners.push(c):((s=(a=this._options)===null||a===void 0?void 0:a.onWillAddFirstListener)===null||s===void 0||s.call(a,this),this._listeners=c,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const m=wt(()=>{d==null||d(),this._removeListener(c)});return r instanceof nt?r.add(m):Array.isArray(r)&&r.push(m),m}),this._event}_removeListener(t){var n,i,r,a;if((i=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||i===void 0||i.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(a=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||a===void 0||a.call(r,this),this._size=0;return}const s=this._listeners,o=s.indexOf(t);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*ls<=s.length){let u=0;for(let c=0;c0}}class us{constructor(){this.i=-1,this.end=0}enqueue(t,n,i){this.i=0,this.end=i,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function cs(e){return typeof e=="string"}function hs(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function _n(e){const t=[];for(const n of hs(e))typeof e[n]=="function"&&t.push(n);return t}function ds(e,t){const n=r=>function(){const a=Array.prototype.slice.call(arguments,0);return t(r,a)},i={};for(const r of e)i[r]=n(r);return i}let ms=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function ps(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(i,r)=>{const a=r[0],s=t[a];let o=i;return typeof s=="string"?o=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(o=String(s)),o}),ms&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function fs(e,t,...n){return ps(t,n)}function Cu(e){}var vn;const ut="en";let wn=!1,yn=!1,Tn=!1,mi=!1,zt,xn=ut,pi=ut,gs,Le;const Ee=typeof self=="object"?self:typeof global=="object"?global:{};let ce;typeof Ee.vscode!="undefined"&&typeof Ee.vscode.process!="undefined"?ce=Ee.vscode.process:typeof process!="undefined"&&(ce=process);const bs=typeof((vn=ce==null?void 0:ce.versions)===null||vn===void 0?void 0:vn.electron)=="string"&&(ce==null?void 0:ce.type)==="renderer";if(typeof navigator=="object"&&!bs)Le=navigator.userAgent,wn=Le.indexOf("Windows")>=0,yn=Le.indexOf("Macintosh")>=0,(Le.indexOf("Macintosh")>=0||Le.indexOf("iPad")>=0||Le.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Tn=Le.indexOf("Linux")>=0,(Le==null?void 0:Le.indexOf("Mobi"))>=0,mi=!0,fs({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),zt=ut,xn=zt,pi=navigator.language;else if(typeof ce=="object"){wn=ce.platform==="win32",yn=ce.platform==="darwin",Tn=ce.platform==="linux",Tn&&ce.env.SNAP&&ce.env.SNAP_REVISION,ce.env.CI||ce.env.BUILD_ARTIFACTSTAGINGDIRECTORY,zt=ut,xn=ut;const e=ce.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];zt=t.locale,pi=t.osLocale,xn=n||ut,gs=t._translationsConfigFile}catch(t){}}else console.error("Unable to resolve platform.");const Tt=wn,_s=yn;mi&&Ee.importScripts;const Ue=Le,vs=typeof Ee.postMessage=="function"&&!Ee.importScripts;(()=>{if(vs){const e=[];Ee.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=e.length;i{const i=++t;e.push({id:i,callback:n}),Ee.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})();const ws=!!(Ue&&Ue.indexOf("Chrome")>=0);Ue&&Ue.indexOf("Firefox")>=0,!ws&&Ue&&Ue.indexOf("Safari")>=0,Ue&&Ue.indexOf("Edg/")>=0,Ue&&Ue.indexOf("Android")>=0;class ys{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class fi{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var gi;function Ts(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function xs(e){return e.split(/\r\n|\r|\n/)}function Ss(e){for(let t=0,n=e.length;t=0;n--){const i=e.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function bi(e){return e>=65&&e<=90}function Sn(e){return 55296<=e&&e<=56319}function ks(e){return 56320<=e&&e<=57343}function Cs(e,t){return(e-55296<<10)+(t-56320)+65536}function Ls(e,t,n){const i=e.charCodeAt(n);if(Sn(i)&&n+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Se.cache=new ys(e=>{function t(u){const c=new Map;for(let d=0;d!u.startsWith("_")&&u in r);a.length===0&&(a=["_default"]);let s;for(const u of a){const c=t(r[u]);s=i(s,c)}const o=t(r._common),l=n(o,s);return new Se(l)}),Se._locales=new fi(()=>Object.keys(Se.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class Oe{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Oe.getRawData())),this._data}static isInvisibleCharacter(t){return Oe.getData().has(t)}static get codePoints(){return Oe.getData()}}Oe._data=void 0;const Rs="$initialize";class Ms{constructor(t,n,i,r){this.vsWorker=t,this.req=n,this.method=i,this.args=r,this.type=0}}class _i{constructor(t,n,i,r){this.vsWorker=t,this.seq=n,this.res=i,this.err=r,this.type=1}}class Ns{constructor(t,n,i,r){this.vsWorker=t,this.req=n,this.eventName=i,this.arg=r,this.type=2}}class Is{constructor(t,n,i){this.vsWorker=t,this.req=n,this.event=i,this.type=3}}class Ps{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Us{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){const i=String(++this._lastSentReq);return new Promise((r,a)=>{this._pendingReplies[i]={resolve:r,reject:a},this._send(new Ms(this._workerId,i,t,n))})}listen(t,n){let i=null;const r=new Pe({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,r),this._send(new Ns(this._workerId,i,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Ps(this._workerId,i)),i=null}});return r.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let i=t.err;t.err.$isError&&(i=new Error,i.name=t.err.name,i.message=t.err.message,i.stack=t.err.stack),n.reject(i);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.method,t.args).then(r=>{this._send(new _i(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=Wt(r.detail)),this._send(new _i(this._workerId,n,void 0,Wt(r)))})}_handleSubscribeEventMessage(t){const n=t.req,i=this._handler.handleEvent(t.eventName,t.arg)(r=>{this._send(new Is(this._workerId,n,r))});this._pendingEvents.set(n,i)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return t(s,o)},r=s=>function(o){return n(s,o)},a={};for(const s of e){if(wi(s)){a[s]=r(s);continue}if(vi(s)){a[s]=n(s,void 0);continue}a[s]=i(s)}return a}class Hs{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Us({sendMessage:(i,r)=>{t(i,r)},handleMessage:(i,r)=>this._handleMessage(i,r),handleEvent:(i,r)=>this._handleEvent(i,r)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===Rs)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(i){return Promise.reject(i)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(wi(t)){const i=this._requestHandler[t].call(this._requestHandler,n);if(typeof i!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return i}if(vi(t)){const i=this._requestHandler[t];if(typeof i!="function")throw new Error(`Missing event ${t} on request handler.`);return i}throw new Error(`Malformed event name ${t}`)}initialize(t,n,i,r){this._protocol.setWorkerId(t);const o=Ws(r,(l,u)=>this._protocol.sendMessage(l,u),(l,u)=>this._protocol.listen(l,u));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(_n(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,u)=>{const c=globalThis.require;c([i],d=>{if(this._requestHandler=d.create(o),!this._requestHandler){u(new Error("No RequestHandler!"));return}l(_n(this._requestHandler))},u)}))}}class qe{constructor(t,n,i,r){this.originalStart=t,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function yi(e,t){return(t<<5)-t+e|0}function Fs(e,t){t=yi(149417,t);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new qe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ve{constructor(t,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=t,this._modifiedSequence=n;const[r,a,s]=Ve._getElements(t),[o,l,u]=Ve._getElements(n);this._hasStrings=s&&u,this._originalStringElements=r,this._originalElementsOrHash=a,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(Ve._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,a=n.length;r=t&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(t>n||i>r){let d;return i<=r?(ct.Assert(t===n+1,"originalStart should only be one more than originalEnd"),d=[new qe(t,0,i,r-i+1)]):t<=n?(ct.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new qe(t,n-t+1,i,0)]):(ct.Assert(t===n+1,"originalStart should only be one more than originalEnd"),ct.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const s=[0],o=[0],l=this.ComputeRecursionPoint(t,n,i,r,s,o,a),u=s[0],c=o[0];if(l!==null)return l;if(!a[0]){const d=this.ComputeDiffRecursive(t,u,i,c,a);let m=[];return a[0]?m=[new qe(u+1,n-(u+1)+1,c+1,r-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,c+1,r,a),this.ConcatenateChanges(d,m)}return[new qe(t,n-t+1,i,r-i+1)]}WALKTRACE(t,n,i,r,a,s,o,l,u,c,d,m,p,b,f,T,y,v){let S=null,W=null,H=new xi,O=n,w=i,g=p[0]-T[0]-r,_=-1073741824,L=this.m_forwardHistory.length-1;do{const x=g+t;x===O||x=0&&(u=this.m_forwardHistory[L],t=u[0],O=1,w=u.length-1)}while(--L>=-1);if(S=H.getReverseChanges(),v[0]){let x=p[0]+1,A=T[0]+1;if(S!==null&&S.length>0){const R=S[S.length-1];x=Math.max(x,R.getOriginalEnd()),A=Math.max(A,R.getModifiedEnd())}W=[new qe(x,m-x+1,A,f-A+1)]}else{H=new xi,O=s,w=o,g=p[0]-T[0]-l,_=1073741824,L=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const x=g+a;x===O||x=c[x+1]?(d=c[x+1]-1,b=d-g-l,d>_&&H.MarkNextChange(),_=d+1,H.AddOriginalElement(d+1,b+1),g=x+1-a):(d=c[x-1],b=d-g-l,d>_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,b+1),g=x-1-a),L>=0&&(c=this.m_reverseHistory[L],a=c[0],O=1,w=c.length-1)}while(--L>=-1);W=H.getChanges()}return this.ConcatenateChanges(S,W)}ComputeRecursionPoint(t,n,i,r,a,s,o){let l=0,u=0,c=0,d=0,m=0,p=0;t--,i--,a[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const b=n-t+(r-i),f=b+1,T=new Int32Array(f),y=new Int32Array(f),v=r-i,S=n-t,W=t-i,H=n-r,w=(S-v)%2===0;T[v]=t,y[S]=n,o[0]=!1;for(let g=1;g<=b/2+1;g++){let _=0,L=0;c=this.ClipDiagonalBound(v-g,g,v,f),d=this.ClipDiagonalBound(v+g,g,v,f);for(let A=c;A<=d;A+=2){A===c||A_+L&&(_=l,L=u),!w&&Math.abs(A-S)<=g-1&&l>=y[A])return a[0]=l,s[0]=u,R<=y[A]&&1447>0&&g<=1447+1?this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o):null}const x=(_-t+(L-i)-g)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_,x))return o[0]=!0,a[0]=_,s[0]=L,x>0&&1447>0&&g<=1447+1?this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o):(t++,i++,[new qe(t,n-t+1,i,r-i+1)]);m=this.ClipDiagonalBound(S-g,g,S,f),p=this.ClipDiagonalBound(S+g,g,S,f);for(let A=m;A<=p;A+=2){A===m||A=y[A+1]?l=y[A+1]-1:l=y[A-1],u=l-(A-S)-H;const R=l;for(;l>t&&u>i&&this.ElementsAreEqual(l,u);)l--,u--;if(y[A]=l,w&&Math.abs(A-v)<=g&&l<=T[A])return a[0]=l,s[0]=u,R>=T[A]&&1447>0&&g<=1447+1?this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o):null}if(g<=1447){let A=new Int32Array(d-c+2);A[0]=v-c+1,ht.Copy2(T,c,A,1,d-c+1),this.m_forwardHistory.push(A),A=new Int32Array(p-m+2),A[0]=S-m+1,ht.Copy2(y,m,A,1,p-m+1),this.m_reverseHistory.push(A)}}return this.WALKTRACE(v,c,d,W,S,m,p,H,T,y,l,n,a,u,r,s,w,o)}PrettifyChanges(t){for(let n=0;n0,o=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;n--){const i=t[n];let r=0,a=0;if(n>0){const d=t[n-1];r=d.originalStart+d.originalLength,a=d.modifiedStart+d.modifiedLength}const s=i.originalLength>0,o=i.modifiedLength>0;let l=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const m=i.originalStart-d,p=i.modifiedStart-d;if(mu&&(u=f,l=d)}i.originalStart-=l,i.modifiedStart-=l;const c=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],c)){t[n-1]=c[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=t.length;n0&&p>l&&(l=p,u=d,c=m)}return l>0?[u,c]:null}_contiguousSequenceScore(t,n,i){let r=0;for(let a=0;a=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const i=t+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(t,n,i,r){const a=this._OriginalRegionIsBoundary(t,n)?1:0,s=this._ModifiedRegionIsBoundary(i,r)?1:0;return a+s}ConcatenateChanges(t,n){const i=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],i)){const r=new Array(t.length+n.length-1);return ht.Copy(t,0,r,0,t.length-1),r[t.length-1]=i[0],ht.Copy(n,1,r,t.length,n.length-1),r}else{const r=new Array(t.length+n.length);return ht.Copy(t,0,r,0,t.length),ht.Copy(n,0,r,t.length,n.length),r}}ChangesOverlap(t,n,i){if(ct.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),ct.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const r=t.originalStart;let a=t.originalLength;const s=t.modifiedStart;let o=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(a=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-t.modifiedStart),i[0]=new qe(r,a,s,o),!0}else return i[0]=null,!1}ClipDiagonalBound(t,n,i,r){if(t>=0&&t",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}},cwd(){return{ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_6828_MLGRPUXSXUGOABLP",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}.VSCODE_CWD||process.cwd()}}:dt={get platform(){return Tt?"win32":_s?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Bt=dt.cwd;dt.env;const Bs=dt.platform,Os=65,qs=97,Vs=90,js=122,je=46,le=47,fe=92,Ge=58,Gs=63;class Si extends Error{constructor(t,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const a=t.indexOf(".")!==-1?"property":"argument";let s=`The "${t}" ${a} ${r} of type ${n}`;s+=`. Received type ${typeof i}`,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function $s(e,t){if(e===null||typeof e!="object")throw new Si(t,"Object",e)}function ee(e,t){if(typeof e!="string")throw new Si(t,"string",e)}const $e=Bs==="win32";function j(e){return e===le||e===fe}function An(e){return e===le}function Je(e){return e>=Os&&e<=Vs||e>=qs&&e<=js}function Ot(e,t,n,i){let r="",a=0,s=-1,o=0,l=0;for(let u=0;u<=e.length;++u){if(u2){const c=r.lastIndexOf(n);c===-1?(r="",a=0):(r=r.slice(0,c),a=r.length-1-r.lastIndexOf(n)),s=u,o=0;continue}else if(r.length!==0){r="",a=0,s=u,o=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",a=2)}else r.length>0?r+=`${n}${e.slice(s+1,u)}`:r=e.slice(s+1,u),a=u-s-1;s=u,o=0}else l===je&&o!==-1?++o:o=-1}return r}function Ai(e,t){$s(t,"pathObject");const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const de={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let a;if(r>=0){if(a=e[r],ee(a,"path"),a.length===0)continue}else t.length===0?a=Bt():(a={ENV_TYPE:"uat",ALLUSERSPROFILE:"C:\\ProgramData",ANDROID_HOME:"D:\\Android\\Sdk",APPDATA:"C:\\Users\\chc\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_6828_MLGRPUXSXUGOABLP",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LAPTOP-RT2AJKTO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\WINDOWS\\notepad.exe",EMULATOR_AVD_ROOT:"D:\\Program Files\\MobileAppEngine\\emui",EMULATOR_SDK_ROOT:"D:\\Program Files\\MobileAppEngine\\EmulatorSdk",GIT_ASKPASS:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\chc",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\chc",INIT_CWD:"D:\\vtj\\vtj",LANG:"zh_CN.UTF-8",LOCALAPPDATA:"C:\\Users\\chc\\AppData\\Local",LOGONSERVER:"\\\\LAPTOP-RT2AJKTO",MYSQL_HOME:"D:\\Program Files",NODE:"C:\\nvm\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\nvm\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\chc\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\nvm\\nodejs\\etc\\npmrc",npm_config_global_prefix:"C:\\nvm\\nodejs",npm_config_hamefully_hoist:"true",npm_config_hoist:"true",npm_config_init_module:"C:\\Users\\chc\\.npm-init.js",npm_config_local_prefix:"D:\\vtj\\vtj",npm_config_metrics_registry:"https://registry.npmjs.org/",npm_config_node_gyp:"C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_node_linker:"hoisted",npm_config_prefix:"C:\\nvm\\nodejs",npm_config_recursive:"true",npm_config_registry:"https://registry.npmjs.org/",npm_config_userconfig:"C:\\Users\\chc\\.npmrc",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.0 win32 x64",npm_execpath:"D:\\vtj\\vtj\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build:example",npm_lifecycle_script:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_node_execpath:"C:\\nvm\\nodejs\\node.exe",npm_package_author:"陈华春 ",npm_package_dependencies__vtj_assets:"^0.5.2",npm_package_dependencies__vtj_deps:"^0.5.2",npm_package_dependencies__vtj_engine:"^0.5.2",npm_package_dependencies__vtj_icons:"^0.5.2",npm_package_dependencies__vtj_runtime:"^0.5.2",npm_package_dependencies__vtj_ui:"^0.5.2",npm_package_dependencies__vtj_utils:"^0.5.2",npm_package_description:"> TODO: description",npm_package_devDependencies__vtj_cli:"^0.5.2",npm_package_devDependencies__vtj_serve:"^0.5.2",npm_package_engines_node:">=16.0.0",npm_package_files_0:"dist",npm_package_files_1:"example",npm_package_gitHead:"53b27ae2dc4309e33627a1d9354bfa12cde4263b",npm_package_homepage:"",npm_package_license:"ISC",npm_package_name:"@vtj/ide",npm_package_private:"false",npm_package_publishConfig_access:"public",npm_package_scripts_build:"npm run build:prod",npm_package_scripts_build_example:"vue-tsc && cross-env ENV_TYPE=uat vite build",npm_package_scripts_build_prod:"vue-tsc && cross-env ENV_TYPE=live vite build",npm_package_scripts_dev:"cross-env ENV_TYPE=local vite",npm_package_scripts_dev_example:"cross-env ENV_TYPE=uat vite",npm_package_scripts_outdate:"npm outdate --registry=https://registry.npmmirror.com",npm_package_scripts_preview:"cross-env ENV_TYPE=live vite preview",npm_package_scripts_preview_example:"cross-env ENV_TYPE=uat vite preview",npm_package_scripts_setup:"npm install --registry=https://registry.npmmirror.com",npm_package_version:"0.5.2",npm_package_vtj_project_id:"ide",npm_package_vtj_project_name:"IDE",npm_package_vtj_raw:"true",npm_package_vtj_service:"file",NPM_PREFIX_NPM_CLI_JS:"C:\\nvm\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"8",NVM_HOME:"C:\\Users\\chc\\AppData\\Roaming\\nvm",NVM_SYMLINK:"C:\\nvm\\nodejs",OneDrive:"C:\\Users\\chc\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\vtj\\vtj\\packages\\ide\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\pnpm\\dist\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;D:\\vtj\\vtj\\node_modules\\.bin;D:\\vtj\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Users\\chc\\AppData\\Roaming\\nvm\\v18.16.0\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\chc\\.windows-build-tools\\python27;C:\\Program Files\\Git\\cmd;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;D:\\Program Files\\Tencent\\微信web开发者工具\\dll;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\chc\\AppData\\Local\\pnpm;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\mysql-8.0.21-winx64\\bin;C:\\Users\\chc\\AppData\\Local\\Microsoft\\WindowsApps;D:\\Program Files\\Microsoft VS Code\\bin;D:\\Program Files\\JetBrains\\WebStorm 2020.1\\bin;C:\\Users\\chc\\AppData\\Roaming\\npm;C:\\Users\\chc\\AppData\\Roaming\\nvm;C:\\nvm\\nodejs;D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\chc\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\vtj\\vtj\\packages\\ide",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Home China",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"8e0c",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Users\\chc\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\chc\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.71.2",TMP:"C:\\Users\\chc\\AppData\\Local\\Temp",USERDOMAIN:"LAPTOP-RT2AJKTO",USERDOMAIN_ROAMINGPROFILE:"LAPTOP-RT2AJKTO",USERNAME:"chc",USERPROFILE:"C:\\Users\\chc",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"d:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"D:\\Program Files\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-b4c82d5764-sock",VSCODE_INJECTION:"1",WebStorm:"D:\\Program Files\\JetBrains\\WebStorm 2022.3.1\\bin;",windir:"C:\\WINDOWS",ZES_ENABLE_SYSMAN:"1",__COMPAT_LAYER:"RunAsAdmin Installer"}[`=${t}`]||Bt(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===fe)&&(a=`${t}\\`));const s=a.length;let o=0,l="",u=!1;const c=a.charCodeAt(0);if(s===1)j(c)&&(o=1,u=!0);else if(j(c))if(u=!0,j(a.charCodeAt(1))){let d=2,m=d;for(;d2&&j(a.charCodeAt(2))&&(u=!0,o=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${a.slice(o)}\\${n}`,i=u,u&&t.length>0)break}return n=Ot(n,!i,"\\",j),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){ee(e,"path");const t=e.length;if(t===0)return".";let n=0,i,r=!1;const a=e.charCodeAt(0);if(t===1)return An(a)?"\\":e;if(j(a))if(r=!0,j(e.charCodeAt(1))){let o=2,l=o;for(;o2&&j(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&j(e.charCodeAt(t-1))&&(s+="\\"),i===void 0?r?`\\${s}`:s:r?`${i}\\${s}`:`${i}${s}`},isAbsolute(e){ee(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return j(n)||t>2&&Je(n)&&e.charCodeAt(1)===Ge&&j(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let a=0;a0&&(t===void 0?t=n=s:t+=`\\${s}`)}if(t===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&j(n.charCodeAt(0))){++r;const a=n.length;a>1&&j(n.charCodeAt(1))&&(++r,a>2&&(j(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r=2&&(t=`\\${t.slice(r)}`)}return de.normalize(t)},relative(e,t){if(ee(e,"from"),ee(t,"to"),e===t)return"";const n=de.resolve(e),i=de.resolve(t);if(n===i||(e=n.toLowerCase(),t=i.toLowerCase(),e===t))return"";let r=0;for(;rr&&e.charCodeAt(a-1)===fe;)a--;const s=a-r;let o=0;for(;oo&&t.charCodeAt(l-1)===fe;)l--;const u=l-o,c=sc){if(t.charCodeAt(o+m)===fe)return i.slice(o+m+1);if(m===2)return i.slice(o+m)}s>c&&(e.charCodeAt(r+m)===fe?d=m:m===2&&(d=3)),d===-1&&(d=0)}let p="";for(m=r+d+1;m<=a;++m)(m===a||e.charCodeAt(m)===fe)&&(p+=p.length===0?"..":"\\..");return o+=d,p.length>0?`${p}${i.slice(o,l)}`:(i.charCodeAt(o)===fe&&++o,i.slice(o,l))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=de.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===fe){if(t.charCodeAt(1)===fe){const n=t.charCodeAt(2);if(n!==Gs&&n!==je)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Je(t.charCodeAt(0))&&t.charCodeAt(1)===Ge&&t.charCodeAt(2)===fe)return`\\\\?\\${t}`;return e},dirname(e){ee(e,"path");const t=e.length;if(t===0)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(t===1)return j(r)?e:".";if(j(r)){if(n=i=1,j(e.charCodeAt(1))){let o=2,l=o;for(;o2&&j(e.charCodeAt(2))?3:2,i=n);let a=-1,s=!0;for(let o=t-1;o>=i;--o)if(j(e.charCodeAt(o))){if(!s){a=o;break}}else s=!1;if(a===-1){if(n===-1)return".";a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&ee(t,"ext"),ee(e,"path");let n=0,i=-1,r=!0,a;if(e.length>=2&&Je(e.charCodeAt(0))&&e.charCodeAt(1)===Ge&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,o=-1;for(a=e.length-1;a>=n;--a){const l=e.charCodeAt(a);if(j(l)){if(!r){n=a+1;break}}else o===-1&&(r=!1,o=a+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=o))}return n===i?i=o:i===-1&&(i=e.length),e.slice(n,i)}for(a=e.length-1;a>=n;--a)if(j(e.charCodeAt(a))){if(!r){n=a+1;break}}else i===-1&&(r=!1,i=a+1);return i===-1?"":e.slice(n,i)},extname(e){ee(e,"path");let t=0,n=-1,i=0,r=-1,a=!0,s=0;e.length>=2&&e.charCodeAt(1)===Ge&&Je(e.charCodeAt(0))&&(t=i=2);for(let o=e.length-1;o>=t;--o){const l=e.charCodeAt(o);if(j(l)){if(!a){i=o+1;break}continue}r===-1&&(a=!1,r=o+1),l===je?n===-1?n=o:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||r===-1||s===0||s===1&&n===r-1&&n===i+1?"":e.slice(n,r)},format:Ai.bind(null,"\\"),parse(e){ee(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(n===1)return j(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(j(r)){if(i=1,j(e.charCodeAt(1))){let d=2,m=d;for(;d0&&(t.root=e.slice(0,i));let a=-1,s=i,o=-1,l=!0,u=e.length-1,c=0;for(;u>=i;--u){if(r=e.charCodeAt(u),j(r)){if(!l){s=u+1;break}continue}o===-1&&(l=!1,o=u+1),r===je?a===-1?a=u:c!==1&&(c=1):a!==-1&&(c=-1)}return o!==-1&&(a===-1||c===0||c===1&&a===o-1&&a===s+1?t.base=t.name=e.slice(s,o):(t.name=e.slice(s,a),t.base=e.slice(s,o),t.ext=e.slice(a,o))),s>0&&s!==i?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Js=(()=>{if($e){const e=/\\/g;return()=>{const t=Bt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Bt()})(),ge={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:Js();ee(r,"path"),r.length!==0&&(t=`${r}/${t}`,n=r.charCodeAt(0)===le)}return t=Ot(t,!n,"/",An),n?`/${t}`:t.length>0?t:"."},normalize(e){if(ee(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===le,n=e.charCodeAt(e.length-1)===le;return e=Ot(e,!t,"/",An),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return ee(e,"path"),e.length>0&&e.charCodeAt(0)===le},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=i:t+=`/${i}`)}return t===void 0?".":ge.normalize(t)},relative(e,t){if(ee(e,"from"),ee(t,"to"),e===t||(e=ge.resolve(e),t=ge.resolve(t),e===t))return"";const n=1,i=e.length,r=i-n,a=1,s=t.length-a,o=ro){if(t.charCodeAt(a+u)===le)return t.slice(a+u+1);if(u===0)return t.slice(a+u)}else r>o&&(e.charCodeAt(n+u)===le?l=u:u===0&&(l=0));let c="";for(u=n+l+1;u<=i;++u)(u===i||e.charCodeAt(u)===le)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(a+l)}`},toNamespacedPath(e){return e},dirname(e){if(ee(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===le;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===le){if(!i){n=r;break}}else i=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&ee(t,"ext"),ee(e,"path");let n=0,i=-1,r=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,o=-1;for(a=e.length-1;a>=0;--a){const l=e.charCodeAt(a);if(l===le){if(!r){n=a+1;break}}else o===-1&&(r=!1,o=a+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=o))}return n===i?i=o:i===-1&&(i=e.length),e.slice(n,i)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===le){if(!r){n=a+1;break}}else i===-1&&(r=!1,i=a+1);return i===-1?"":e.slice(n,i)},extname(e){ee(e,"path");let t=-1,n=0,i=-1,r=!0,a=0;for(let s=e.length-1;s>=0;--s){const o=e.charCodeAt(s);if(o===le){if(!r){n=s+1;break}continue}i===-1&&(r=!1,i=s+1),o===je?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:Ai.bind(null,"/"),parse(e){ee(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===le;let i;n?(t.root="/",i=1):i=0;let r=-1,a=0,s=-1,o=!0,l=e.length-1,u=0;for(;l>=i;--l){const c=e.charCodeAt(l);if(c===le){if(!o){a=l+1;break}continue}s===-1&&(o=!1,s=l+1),c===je?r===-1?r=l:u!==1&&(u=1):r!==-1&&(u=-1)}if(s!==-1){const c=a===0&&n?1:a;r===-1||u===0||u===1&&r===s-1&&r===a+1?t.base=t.name=e.slice(c,s):(t.name=e.slice(c,r),t.base=e.slice(c,s),t.ext=e.slice(r,s))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ge.win32=de.win32=de,ge.posix=de.posix=ge,$e?de.normalize:ge.normalize,$e?de.resolve:ge.resolve,$e?de.relative:ge.relative,$e?de.dirname:ge.dirname,$e?de.basename:ge.basename,$e?de.extname:ge.extname,$e?de.sep:ge.sep;const Ys=/^\w[\w\d+.-]*$/,Xs=/^\//,Qs=/^\/\//;function Zs(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ys.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Xs.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Qs.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Ks(e,t){return!e&&!t?"file":e}function eo(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==De&&(t=De+t):t=De;break}return t}const Z="",De="/",to=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let kn=class dn{static isUri(t){return t instanceof dn?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,i,r,a,s=!1){typeof t=="object"?(this.scheme=t.scheme||Z,this.authority=t.authority||Z,this.path=t.path||Z,this.query=t.query||Z,this.fragment=t.fragment||Z):(this.scheme=Ks(t,s),this.authority=n||Z,this.path=eo(this.scheme,i||Z),this.query=r||Z,this.fragment=a||Z,Zs(this,s))}get fsPath(){return Cn(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:i,path:r,query:a,fragment:s}=t;return n===void 0?n=this.scheme:n===null&&(n=Z),i===void 0?i=this.authority:i===null&&(i=Z),r===void 0?r=this.path:r===null&&(r=Z),a===void 0?a=this.query:a===null&&(a=Z),s===void 0?s=this.fragment:s===null&&(s=Z),n===this.scheme&&i===this.authority&&r===this.path&&a===this.query&&s===this.fragment?this:new mt(n,i,r,a,s)}static parse(t,n=!1){const i=to.exec(t);return i?new mt(i[2]||Z,qt(i[4]||Z),qt(i[5]||Z),qt(i[7]||Z),qt(i[9]||Z),n):new mt(Z,Z,Z,Z,Z)}static file(t){let n=Z;if(Tt&&(t=t.replace(/\\/g,De)),t[0]===De&&t[1]===De){const i=t.indexOf(De,2);i===-1?(n=t.substring(2),t=De):(n=t.substring(2,i),t=t.substring(i)||De)}return new mt("file",n,t,Z,Z)}static from(t,n){return new mt(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Tt&&t.scheme==="file"?i=dn.file(de.join(Cn(t,!0),...n)).path:i=ge.join(t.path,...n),t.with({path:i})}toString(t=!1){return Ln(this,t)}toJSON(){return this}static revive(t){var n,i;if(t){if(t instanceof dn)return t;{const r=new mt(t);return r._formatted=(n=t.external)!==null&&n!==void 0?n:null,r._fsPath=t._sep===ki&&(i=t.fsPath)!==null&&i!==void 0?i:null,r}}else return t}};const ki=Tt?1:void 0;class mt extends kn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Cn(this,!1)),this._fsPath}toString(t=!1){return t?Ln(this,!0):(this._formatted||(this._formatted=Ln(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=ki),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const Ci={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Li(e,t,n){let i,r=-1;for(let a=0;a=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47||n&&s===91||n&&s===93||n&&s===58)r!==-1&&(i+=encodeURIComponent(e.substring(r,a)),r=-1),i!==void 0&&(i+=e.charAt(a));else{i===void 0&&(i=e.substr(0,a));const o=Ci[s];o!==void 0?(r!==-1&&(i+=encodeURIComponent(e.substring(r,a)),r=-1),i+=o):r===-1&&(r=a)}}return r!==-1&&(i+=encodeURIComponent(e.substring(r))),i!==void 0?i:e}function no(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Tt&&(n=n.replace(/\//g,"\\")),n}function Ln(e,t){const n=t?no:Li;let i="",{scheme:r,authority:a,path:s,query:o,fragment:l}=e;if(r&&(i+=r,i+=":"),(a||r==="file")&&(i+=De,i+=De),a){let u=a.indexOf("@");if(u!==-1){const c=a.substr(0,u);a=a.substr(u+1),u=c.lastIndexOf(":"),u===-1?i+=n(c,!1,!1):(i+=n(c.substr(0,u),!1,!1),i+=":",i+=n(c.substr(u+1),!1,!0)),i+="@"}a=a.toLowerCase(),u=a.lastIndexOf(":"),u===-1?i+=n(a,!1,!0):(i+=n(a.substr(0,u),!1,!0),i+=a.substr(u))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){const u=s.charCodeAt(1);u>=65&&u<=90&&(s=`/${String.fromCharCode(u+32)}:${s.substr(3)}`)}else if(s.length>=2&&s.charCodeAt(1)===58){const u=s.charCodeAt(0);u>=65&&u<=90&&(s=`${String.fromCharCode(u+32)}:${s.substr(2)}`)}i+=n(s,!0,!1)}return o&&(i+="?",i+=n(o,!1,!1)),l&&(i+="#",i+=t?l:Li(l,!1,!1)),i}function Ei(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Ei(e.substr(3)):e}}const Di=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function qt(e){return e.match(Di)?e.replace(Di,t=>Ei(t)):e}let We=class st{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new st(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return st.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return st.isBefore(this,t)}static isBefore(t,n){return t.lineNumberi||t===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return ie.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return ie.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return ie.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return ie.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return ie.plusRange(this,t)}static plusRange(t,n){let i,r,a,s;return n.startLineNumbert.endLineNumber?(a=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,s=t.endColumn),new ie(i,r,a,s)}intersectRanges(t){return ie.intersectRanges(this,t)}static intersectRanges(t,n){let i=t.startLineNumber,r=t.startColumn,a=t.endLineNumber,s=t.endColumn;const o=n.startLineNumber,l=n.startColumn,u=n.endLineNumber,c=n.endColumn;return iu?(a=u,s=c):a===u&&(s=Math.min(s,c)),i>a||i===a&&r>s?null:new ie(i,r,a,s)}equalsRange(t){return ie.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return ie.getEndPosition(this)}static getEndPosition(t){return new We(t.endLineNumber,t.endColumn)}getStartPosition(){return ie.getStartPosition(this)}static getStartPosition(t){return new We(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new ie(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new ie(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ie.collapseToStart(this)}static collapseToStart(t){return new ie(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return ie.collapseToEnd(this)}static collapseToEnd(t){return new ie(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new ie(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new ie(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new ie(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}toJSON(){return this}};var Ri;(function(e){function t(r){return r<0}e.isLessThan=t;function n(r){return r>0}e.isGreaterThan=n;function i(r){return r===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Ri||(Ri={}));function Mi(e){return e<0?0:e>255?255:e|0}function pt(e){return e<0?0:e>4294967295?4294967295:e|0}class io{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=pt(t);const i=this.values,r=this.prefixSum,a=n.length;return a===0?!1:(this.values=new Uint32Array(i.length+a),this.values.set(i.subarray(0,t),0),this.values.set(i.subarray(t),t+a),this.values.set(n,t),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=pt(t),n=pt(n),this.values[t]===n?!1:(this.values[t]=n,t-1=i.length)return!1;const a=i.length-t;return n>=a&&(n=a),n===0?!1:(this.values=new Uint32Array(i.length-n),this.values.set(i.subarray(0,t),0),this.values.set(i.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=pt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let i=n;i<=t;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,i=this.values.length-1,r=0,a=0,s=0;for(;n<=i;)if(r=n+(i-n)/2|0,a=this.prefixSum[r],s=a-this.values[r],t=a)n=r+1;else break;return new ro(r,t-s)}}class ro{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class ao{constructor(t,n,i,r){this._uri=t,this._lines=n,this._eol=i,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const i of n)this._acceptDeleteRange(i.range),this._acceptInsertText(new We(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,i=new Uint32Array(n);for(let r=0;r/?";function oo(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of so)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Ni=oo();function lo(e){let t=Ni;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Ii=new rs;Ii.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function En(e,t,n,i,r){if(r||(r=Ht.first(Ii)),n.length>r.maxLen){let u=e-r.maxLen/2;return u<0?u=0:i+=u,n=n.substring(u,e+r.maxLen/2),En(e,t,n,i,r)}const a=Date.now(),s=e-1-i;let o=-1,l=null;for(let u=1;!(Date.now()-a>=r.timeBudget);u++){const c=s-r.windowSize*u;t.lastIndex=Math.max(0,c);const d=uo(t,n,s,o);if(!d&&l||(l=d,c<=0))break;o=c}if(l){const u={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return t.lastIndex=0,u}return null}function uo(e,t,n,i){let r;for(;r=e.exec(t);){const a=r.index||0;if(a<=n&&e.lastIndex>=n)return r;if(i>0&&a>i)return null}return null}class Dn{constructor(t){const n=Mi(t);this._defaultValue=n,this._asciiMap=Dn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const i=Mi(n);t>=0&&t<256?this._asciiMap[t]=i:this._map.set(t,i)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class co{constructor(t,n,i){const r=new Uint8Array(t*n);for(let a=0,s=t*n;an&&(n=l),o>i&&(i=o),u>i&&(i=u)}n++,i++;const r=new co(i,n,0);for(let a=0,s=t.length;a=this._maxCharCode?0:this._states.get(t,n)}}let Rn=null;function mo(){return Rn===null&&(Rn=new ho([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Rn}let xt=null;function po(){if(xt===null){xt=new Dn(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;nr);if(r>0){const o=n.charCodeAt(r-1),l=n.charCodeAt(s);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&s--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:s+2},url:n.substring(r,s+1)}}static computeLinks(t,n=mo()){const i=po(),r=[];for(let a=1,s=t.getLineCount();a<=s;a++){const o=t.getLineContent(a),l=o.length;let u=0,c=0,d=0,m=1,p=!1,b=!1,f=!1,T=!1;for(;u=0?(r+=i?1:-1,r<0?r=t.length-1:r%=t.length,t[r]):null}}Mn.INSTANCE=new Mn;const Pi=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var jt;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Gt?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:fn.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Pi})})(jt||(jt={}));class Gt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Pi:(this._emitter||(this._emitter=new Pe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class go{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Gt),this._token}cancel(){this._token?this._token instanceof Gt&&this._token.cancel():this._token=jt.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Gt&&this._token.dispose():this._token=jt.None}}class Nn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const $t=new Nn,In=new Nn,Pn=new Nn,bo=new Array(230),_o=Object.create(null),vo=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const r of t){const[a,s,o,l,u,c,d,m,p]=r;if(i[s]||(i[s]=!0,_o[o]=s,vo[o.toLowerCase()]=s),!n[l]){if(n[l]=!0,!u)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);$t.define(l,u),In.define(l,m||u),Pn.define(l,p||m||u)}c&&(bo[c]=l)}})();var Ui;(function(e){function t(o){return $t.keyCodeToStr(o)}e.toString=t;function n(o){return $t.strToKeyCode(o)}e.fromString=n;function i(o){return In.keyCodeToStr(o)}e.toUserSettingsUS=i;function r(o){return Pn.keyCodeToStr(o)}e.toUserSettingsGeneral=r;function a(o){return In.strToKeyCode(o)||Pn.strToKeyCode(o)}e.fromUserSettings=a;function s(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return $t.keyCodeToStr(o)}e.toElectronAccelerator=s})(Ui||(Ui={}));function wo(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class we extends Ae{constructor(t,n,i,r){super(t,n,i,r),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return we.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new we(this.startLineNumber,this.startColumn,t,n):new we(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new We(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new We(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new we(t,n,this.endLineNumber,this.endColumn):new we(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new we(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new we(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new we(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new we(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let i=0,r=t.length;i{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var i;(i=this._factories.get(t))===null||i===void 0||i.dispose();const r=new To(this,t,n);return this._factories.set(t,r),wt(()=>{const a=this._factories.get(t);!a||a!==r||(this._factories.delete(t),a.dispose())})}getOrCreate(t){return Un(this,void 0,void 0,function*(){const n=this.get(t);if(n)return n;const i=this._factories.get(t);return!i||i.isResolved?null:(yield i.resolve(),this.get(t))})}isResolved(t){if(this.get(t))return!0;const i=this._factories.get(t);return!!(!i||i.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class To extends yt{get isResolved(){return this._isResolved}constructor(t,n,i){super(),this._registry=t,this._languageId=n,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Un(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Un(this,void 0,void 0,function*(){const t=yield this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))})}}class xo{constructor(t,n,i){this.offset=t,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Hi;(function(e){const t=new Map;t.set(0,q.symbolMethod),t.set(1,q.symbolFunction),t.set(2,q.symbolConstructor),t.set(3,q.symbolField),t.set(4,q.symbolVariable),t.set(5,q.symbolClass),t.set(6,q.symbolStruct),t.set(7,q.symbolInterface),t.set(8,q.symbolModule),t.set(9,q.symbolProperty),t.set(10,q.symbolEvent),t.set(11,q.symbolOperator),t.set(12,q.symbolUnit),t.set(13,q.symbolValue),t.set(15,q.symbolEnum),t.set(14,q.symbolConstant),t.set(15,q.symbolEnum),t.set(16,q.symbolEnumMember),t.set(17,q.symbolKeyword),t.set(27,q.symbolSnippet),t.set(18,q.symbolText),t.set(19,q.symbolColor),t.set(20,q.symbolFile),t.set(21,q.symbolReference),t.set(22,q.symbolCustomColor),t.set(23,q.symbolFolder),t.set(24,q.symbolTypeParameter),t.set(25,q.account),t.set(26,q.issues);function n(a){let s=t.get(a);return s||(console.info("No codicon found for CompletionItemKind "+a),s=q.symbolProperty),s}e.toIcon=n;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function r(a,s){let o=i.get(a);return typeof o=="undefined"&&!s&&(o=9),o}e.fromString=r})(Hi||(Hi={}));var Fi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Fi||(Fi={}));var zi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(zi||(zi={}));var Bi;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Bi||(Bi={}));var Oi;(function(e){const t=new Map;t.set(0,q.symbolFile),t.set(1,q.symbolModule),t.set(2,q.symbolNamespace),t.set(3,q.symbolPackage),t.set(4,q.symbolClass),t.set(5,q.symbolMethod),t.set(6,q.symbolProperty),t.set(7,q.symbolField),t.set(8,q.symbolConstructor),t.set(9,q.symbolEnum),t.set(10,q.symbolInterface),t.set(11,q.symbolFunction),t.set(12,q.symbolVariable),t.set(13,q.symbolConstant),t.set(14,q.symbolString),t.set(15,q.symbolNumber),t.set(16,q.symbolBoolean),t.set(17,q.symbolArray),t.set(18,q.symbolObject),t.set(19,q.symbolKey),t.set(20,q.symbolNull),t.set(21,q.symbolEnumMember),t.set(22,q.symbolStruct),t.set(23,q.symbolEvent),t.set(24,q.symbolOperator),t.set(25,q.symbolTypeParameter);function n(i){let r=t.get(i);return r||(console.info("No codicon found for SymbolKind "+i),r=q.symbolProperty),r}e.toIcon=n})(Oi||(Oi={}));var qi;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(qi||(qi={}));var Vi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Vi||(Vi={})),new yo;var ji;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(ji||(ji={}));var Gi;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Gi||(Gi={}));var $i;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})($i||($i={}));var Ji;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Ji||(Ji={}));var Yi;(function(e){e[e.Deprecated=1]="Deprecated"})(Yi||(Yi={}));var Xi;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Xi||(Xi={}));var Qi;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Qi||(Qi={}));var Zi;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Zi||(Zi={}));var Ki;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ki||(Ki={}));var er;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(er||(er={}));var tr;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(tr||(tr={}));var nr;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=7]="autoClosingDelete",e[e.autoClosingOvertype=8]="autoClosingOvertype",e[e.autoClosingQuotes=9]="autoClosingQuotes",e[e.autoIndent=10]="autoIndent",e[e.automaticLayout=11]="automaticLayout",e[e.autoSurround=12]="autoSurround",e[e.bracketPairColorization=13]="bracketPairColorization",e[e.guides=14]="guides",e[e.codeLens=15]="codeLens",e[e.codeLensFontFamily=16]="codeLensFontFamily",e[e.codeLensFontSize=17]="codeLensFontSize",e[e.colorDecorators=18]="colorDecorators",e[e.colorDecoratorsLimit=19]="colorDecoratorsLimit",e[e.columnSelection=20]="columnSelection",e[e.comments=21]="comments",e[e.contextmenu=22]="contextmenu",e[e.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",e[e.cursorBlinking=24]="cursorBlinking",e[e.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",e[e.cursorStyle=26]="cursorStyle",e[e.cursorSurroundingLines=27]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",e[e.cursorWidth=29]="cursorWidth",e[e.disableLayerHinting=30]="disableLayerHinting",e[e.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",e[e.domReadOnly=32]="domReadOnly",e[e.dragAndDrop=33]="dragAndDrop",e[e.dropIntoEditor=34]="dropIntoEditor",e[e.emptySelectionClipboard=35]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",e[e.extraEditorClassName=37]="extraEditorClassName",e[e.fastScrollSensitivity=38]="fastScrollSensitivity",e[e.find=39]="find",e[e.fixedOverflowWidgets=40]="fixedOverflowWidgets",e[e.folding=41]="folding",e[e.foldingStrategy=42]="foldingStrategy",e[e.foldingHighlight=43]="foldingHighlight",e[e.foldingImportsByDefault=44]="foldingImportsByDefault",e[e.foldingMaximumRegions=45]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=47]="fontFamily",e[e.fontInfo=48]="fontInfo",e[e.fontLigatures=49]="fontLigatures",e[e.fontSize=50]="fontSize",e[e.fontWeight=51]="fontWeight",e[e.fontVariations=52]="fontVariations",e[e.formatOnPaste=53]="formatOnPaste",e[e.formatOnType=54]="formatOnType",e[e.glyphMargin=55]="glyphMargin",e[e.gotoLocation=56]="gotoLocation",e[e.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",e[e.hover=58]="hover",e[e.inDiffEditor=59]="inDiffEditor",e[e.inlineSuggest=60]="inlineSuggest",e[e.letterSpacing=61]="letterSpacing",e[e.lightbulb=62]="lightbulb",e[e.lineDecorationsWidth=63]="lineDecorationsWidth",e[e.lineHeight=64]="lineHeight",e[e.lineNumbers=65]="lineNumbers",e[e.lineNumbersMinChars=66]="lineNumbersMinChars",e[e.linkedEditing=67]="linkedEditing",e[e.links=68]="links",e[e.matchBrackets=69]="matchBrackets",e[e.minimap=70]="minimap",e[e.mouseStyle=71]="mouseStyle",e[e.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=73]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",e[e.multiCursorModifier=75]="multiCursorModifier",e[e.multiCursorPaste=76]="multiCursorPaste",e[e.multiCursorLimit=77]="multiCursorLimit",e[e.occurrencesHighlight=78]="occurrencesHighlight",e[e.overviewRulerBorder=79]="overviewRulerBorder",e[e.overviewRulerLanes=80]="overviewRulerLanes",e[e.padding=81]="padding",e[e.pasteAs=82]="pasteAs",e[e.parameterHints=83]="parameterHints",e[e.peekWidgetDefaultFocus=84]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=85]="definitionLinkOpensInPeek",e[e.quickSuggestions=86]="quickSuggestions",e[e.quickSuggestionsDelay=87]="quickSuggestionsDelay",e[e.readOnly=88]="readOnly",e[e.readOnlyMessage=89]="readOnlyMessage",e[e.renameOnType=90]="renameOnType",e[e.renderControlCharacters=91]="renderControlCharacters",e[e.renderFinalNewline=92]="renderFinalNewline",e[e.renderLineHighlight=93]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=94]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=95]="renderValidationDecorations",e[e.renderWhitespace=96]="renderWhitespace",e[e.revealHorizontalRightPadding=97]="revealHorizontalRightPadding",e[e.roundedSelection=98]="roundedSelection",e[e.rulers=99]="rulers",e[e.scrollbar=100]="scrollbar",e[e.scrollBeyondLastColumn=101]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=102]="scrollBeyondLastLine",e[e.scrollPredominantAxis=103]="scrollPredominantAxis",e[e.selectionClipboard=104]="selectionClipboard",e[e.selectionHighlight=105]="selectionHighlight",e[e.selectOnLineNumbers=106]="selectOnLineNumbers",e[e.showFoldingControls=107]="showFoldingControls",e[e.showUnused=108]="showUnused",e[e.snippetSuggestions=109]="snippetSuggestions",e[e.smartSelect=110]="smartSelect",e[e.smoothScrolling=111]="smoothScrolling",e[e.stickyScroll=112]="stickyScroll",e[e.stickyTabStops=113]="stickyTabStops",e[e.stopRenderingLineAfter=114]="stopRenderingLineAfter",e[e.suggest=115]="suggest",e[e.suggestFontSize=116]="suggestFontSize",e[e.suggestLineHeight=117]="suggestLineHeight",e[e.suggestOnTriggerCharacters=118]="suggestOnTriggerCharacters",e[e.suggestSelection=119]="suggestSelection",e[e.tabCompletion=120]="tabCompletion",e[e.tabIndex=121]="tabIndex",e[e.unicodeHighlighting=122]="unicodeHighlighting",e[e.unusualLineTerminators=123]="unusualLineTerminators",e[e.useShadowDOM=124]="useShadowDOM",e[e.useTabStops=125]="useTabStops",e[e.wordBreak=126]="wordBreak",e[e.wordSeparators=127]="wordSeparators",e[e.wordWrap=128]="wordWrap",e[e.wordWrapBreakAfterCharacters=129]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=130]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=131]="wordWrapColumn",e[e.wordWrapOverride1=132]="wordWrapOverride1",e[e.wordWrapOverride2=133]="wordWrapOverride2",e[e.wrappingIndent=134]="wrappingIndent",e[e.wrappingStrategy=135]="wrappingStrategy",e[e.showDeprecated=136]="showDeprecated",e[e.inlayHints=137]="inlayHints",e[e.editorClassName=138]="editorClassName",e[e.pixelRatio=139]="pixelRatio",e[e.tabFocusMode=140]="tabFocusMode",e[e.layoutInfo=141]="layoutInfo",e[e.wrappingInfo=142]="wrappingInfo",e[e.defaultColorDecorators=143]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=144]="colorDecoratorsActivatedOn"})(nr||(nr={}));var ir;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(ir||(ir={}));var rr;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(rr||(rr={}));var ar;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(ar||(ar={}));var sr;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(sr||(sr={}));var or;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(or||(or={}));var lr;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(lr||(lr={}));var ur;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(ur||(ur={}));var Wn;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(Wn||(Wn={}));var Hn;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Hn||(Hn={}));var Fn;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Fn||(Fn={}));var cr;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(cr||(cr={}));var hr;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(hr||(hr={}));var dr;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(dr||(dr={}));var mr;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(mr||(mr={}));var pr;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(pr||(pr={}));var fr;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(fr||(fr={}));var gr;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(gr||(gr={}));var br;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(br||(br={}));var _r;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(_r||(_r={}));var zn;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(zn||(zn={}));var vr;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(vr||(vr={}));var wr;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(wr||(wr={}));var yr;(function(e){e[e.Deprecated=1]="Deprecated"})(yr||(yr={}));var Tr;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Tr||(Tr={}));var xr;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(xr||(xr={}));var Sr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Sr||(Sr={}));var Ar;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Ar||(Ar={}));class St{static chord(t,n){return wo(t,n)}}St.CtrlCmd=2048,St.Shift=1024,St.Alt=512,St.WinCtrl=256;function So(){return{editor:void 0,languages:void 0,CancellationTokenSource:go,Emitter:Pe,KeyCode:Wn,KeyMod:St,Position:We,Range:Ae,Selection:we,SelectionDirection:zn,MarkerSeverity:Hn,MarkerTag:Fn,Uri:kn,Token:xo}}var kr;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(kr||(kr={}));var Cr;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Cr||(Cr={}));var Lr;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Lr||(Lr={}));var Er;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Er||(Er={}));function Ao(e,t,n,i,r){if(i===0)return!0;const a=t.charCodeAt(i-1);if(e.get(a)!==0||a===13||a===10)return!0;if(r>0){const s=t.charCodeAt(i);if(e.get(s)!==0)return!0}return!1}function ko(e,t,n,i,r){if(i+r===n)return!0;const a=t.charCodeAt(i+r);if(e.get(a)!==0||a===13||a===10)return!0;if(r>0){const s=t.charCodeAt(i+r-1);if(e.get(s)!==0)return!0}return!1}function Co(e,t,n,i,r){return Ao(e,t,n,i,r)&&ko(e,t,n,i,r)}class Lo{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(i=this._searchRegex.exec(t),!i))return null;const r=i.index,a=i[0].length;if(r===this._prevMatchStartIndex&&a===this._prevMatchLength){if(a===0){Ls(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=a,!this._wordSeparators||Co(this._wordSeparators,t,n,r,a))return i}while(i);return null}}function Eo(e,t="Unreachable"){throw new Error(t)}function Bn(e){if(!e()){debugger;e(),ne(new pe("Assertion Failed"))}}function Dr(e,t){let n=0;for(;n0){const _=v.charCodeAt(W-1);Sn(_)&&W--}if(H+1=_){d=!0;break e}c.push(new Ae(T,W+1,T,H+1))}}while(m)}return{ranges:c,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:f}}static computeUnicodeHighlightReason(t,n){const i=new Rr(n);switch(i.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const a=t.codePointAt(0),s=i.ambiguousCharacters.getPrimaryConfusable(a),o=Se.getLocales().filter(l=>!Se.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(a));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Ro(e,t){return`[${Ts(e.map(i=>String.fromCodePoint(i)).join(""))}]`}class Rr{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Se.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of Oe.codePoints)Mr(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const i=t.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,a=!1;if(n)for(const s of n){const o=s.codePointAt(0),l=Ds(s);r=r||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!Oe.isInvisibleCharacter(o)&&(a=!0)}return!r&&a?0:this.options.invisibleCharacters&&!Mr(t)&&Oe.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function Mr(e){return e===" "||e===` +`||e===" "}class te{static fromRange(t){return new te(t.startLineNumber,t.endLineNumber)}static subtract(t,n){return n?t.startLineNumber=o.startLineNumber?s=new te(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(i.push(s),s=o)}return s!==null&&i.push(s),i}static ofLength(t,n){return new te(t,t+n)}static deserialize(t){return new te(t[0],t[1])}constructor(t,n){if(t>n)throw new pe(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var t;return new Ye(this.modifiedRange,this.originalRange,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class Jt{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Jt(this.modifiedRange,this.originalRange)}}class On{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new On(this.modifiedRange,this.originalRange)}}class qn{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new qn(this.lineRangeMapping.flip(),this.changes.map(t=>t.flip()))}}const Mo=3;class No{computeDiff(t,n,i){var r;const s=new Uo(t,n,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const u of s.changes){let c;u.originalEndLineNumber===0?c=new te(u.originalStartLineNumber+1,u.originalStartLineNumber+1):c=new te(u.originalStartLineNumber,u.originalEndLineNumber+1);let d;u.modifiedEndLineNumber===0?d=new te(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):d=new te(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let m=new Ye(c,d,(r=u.charChanges)===null||r===void 0?void 0:r.map(p=>new Jt(new Ae(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn),new Ae(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn))));l&&(l.modifiedRange.endLineNumberExclusive===m.modifiedRange.startLineNumber||l.originalRange.endLineNumberExclusive===m.originalRange.startLineNumber)&&(m=new Ye(l.originalRange.join(m.originalRange),l.modifiedRange.join(m.modifiedRange),l.innerChanges&&m.innerChanges?l.innerChanges.concat(m.innerChanges):void 0),o.pop()),o.push(m),l=m}return Bn(()=>Dr(o,(u,c)=>c.originalRange.startLineNumber-u.originalRange.endLineNumberExclusive===c.modifiedRange.startLineNumber-u.modifiedRange.endLineNumberExclusive&&u.originalRange.endLineNumberExclusive(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class ft{constructor(t,n,i,r,a,s,o,l){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=a,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(t,n,i){const r=n.getStartLineNumber(t.originalStart),a=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),o=n.getEndColumn(t.originalStart+t.originalLength-1),l=i.getStartLineNumber(t.modifiedStart),u=i.getStartColumn(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new ft(r,a,s,o,l,u,c,d)}}function Po(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&a()){const p=i.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),b=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(p.getElements().length>0&&b.getElements().length>0){let f=Ir(p,b,a,!0).changes;o&&(f=Po(f)),m=[];for(let T=0,y=f.length;T1&&f>1;){const T=m.charCodeAt(b-2),y=p.charCodeAt(f-2);if(T!==y)break;b--,f--}(b>1||f>1)&&this._pushTrimWhitespaceCharChange(r,a+1,1,b,s+1,1,f)}{let b=jn(m,1),f=jn(p,1);const T=m.length+1,y=p.length+1;for(;b!0;const t=Date.now();return()=>Date.now()-tn))return new Q(t,n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new pe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new Q(this.start+t,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}join(t){return new Q(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);if(n<=i)return new Q(n,i)}}class Be{static trivial(t,n){return new Be([new be(new Q(0,t.length),new Q(0,n.length))],!1)}static trivialTimedOut(t,n){return new Be([new be(new Q(0,t.length),new Q(0,n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class be{constructor(t,n){this.seq1Range=t,this.seq2Range=n}reverse(){return new be(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new be(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new be(this.seq1Range.delta(t),this.seq2Range.delta(t))}}class kt{isValid(){return!0}}kt.instance=new kt;class Wo{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new pe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&f>0&&s.get(b-1,f-1)===3&&(v+=o.get(b-1,f-1)),v+=r?r(b,f):1):v=-1;const S=Math.max(T,y,v);if(S===v){const W=b>0&&f>0?o.get(b-1,f-1):0;o.set(b,f,W+1),s.set(b,f,3)}else S===T?(o.set(b,f,0),s.set(b,f,1)):S===y&&(o.set(b,f,0),s.set(b,f,2));a.set(b,f,S)}const l=[];let u=t.length,c=n.length;function d(b,f){(b+1!==u||f+1!==c)&&l.push(new be(new Q(b+1,u),new Q(f+1,c))),u=b,c=f}let m=t.length-1,p=n.length-1;for(;m>=0&&p>=0;)s.get(m,p)===3?(d(m,p),m--,p--):s.get(m,p)===1?m--:p--;return d(-1,-1),l.reverse(),new Be(l,!1)}}function Wr(e,t,n){let i=n;return i=zo(e,t,i),i=Bo(e,t,i),i}function Fo(e,t,n){const i=[];for(const r of n){const a=i[i.length-1];if(!a){i.push(r);continue}r.seq1Range.start-a.seq1Range.endExclusive<=2||r.seq2Range.start-a.seq2Range.endExclusive<=2?i[i.length-1]=new be(a.seq1Range.join(r.seq1Range),a.seq2Range.join(r.seq2Range)):i.push(r)}return i}function zo(e,t,n){const i=[];n.length>0&&i.push(n[0]);for(let a=1;a0&&(o=o.delta(u))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function Bo(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i0?n[i-1]:void 0,a=n[i],s=i+1=i.start&&e.seq2Range.start-s>=r.start&&n.getElement(e.seq2Range.start-s)===n.getElement(e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+ou&&(u=b,l=c)}return e.delta(l)}class Oo{compute(t,n,i=kt.instance){if(t.length===0||n.length===0)return Be.trivial(t,n);function r(p,b){for(;pt.length||v>n.length)continue;const S=r(y,v);s.set(l,S);const W=y===f?o.get(l+1):o.get(l-1);if(o.set(l,S!==y?new Fr(W,y,v,S-y):W),s.get(l)===t.length&&s.get(l)-l===n.length)break e}}let u=o.get(l);const c=[];let d=t.length,m=n.length;for(;;){const p=u?u.x+u.length:0,b=u?u.y+u.length:0;if((p!==d||b!==m)&&c.push(new be(new Q(p,d),new Q(b,m))),!u)break;d=u.x,m=u.y,u=u.prev}return c.reverse(),new Be(c,!1)}}class Fr{constructor(t,n,i,r){this.prev=t,this.x=n,this.y=i,this.length=r}}class qo{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[t]=n}}}class Vo{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class jo{constructor(){this.dynamicProgrammingDiffing=new Ho,this.myersDiffingAlgorithm=new Oo}computeDiff(t,n,i){const r=i.maxComputationTimeMs===0?kt.instance:new Wo(i.maxComputationTimeMs),a=!i.ignoreTrimWhitespace,s=new Map;function o(H){let O=s.get(H);return O===void 0&&(O=s.size,s.set(H,O)),O}const l=t.map(H=>o(H.trim())),u=n.map(H=>o(H.trim())),c=new Br(l,t),d=new Br(u,n),m=(()=>c.length+d.length<1500?this.dynamicProgrammingDiffing.compute(c,d,r,(H,O)=>t[H]===n[O]?n[O].length===0?.1:1+Math.log(1+n[O].length):.99):this.myersDiffingAlgorithm.compute(c,d))();let p=m.diffs,b=m.hitTimeout;p=Wr(c,d,p);const f=[],T=H=>{if(a)for(let O=0;OH.seq1Range.start-y===H.seq2Range.start-v);const O=H.seq1Range.start-y;T(O),y=H.seq1Range.endExclusive,v=H.seq2Range.endExclusive;const w=this.refineDiff(t,n,H,r,a);w.hitTimeout&&(b=!0);for(const g of w.mappings)f.push(g)}T(t.length-y);const S=zr(f,t,n),W=[];if(i.computeMoves){const H=S.filter(w=>w.modifiedRange.isEmpty&&w.originalRange.length>=3).map(w=>new $r(w.originalRange,t)),O=new Set(S.filter(w=>w.originalRange.isEmpty&&w.modifiedRange.length>=3).map(w=>new $r(w.modifiedRange,n)));for(const w of H){let g=-1,_;for(const L of O){const x=w.computeSimilarity(L);x>g&&(g=x,_=L)}if(g>.9&&_){const L=this.refineDiff(t,n,new be(new Q(w.range.startLineNumber-1,w.range.endLineNumberExclusive-1),new Q(_.range.startLineNumber-1,_.range.endLineNumberExclusive-1)),r,a),x=zr(L.mappings,t,n,!0);O.delete(_),W.push(new qn(new On(w.range,_.range),x))}}}return new Nr(S,W,b)}refineDiff(t,n,i,r,a){const s=new qr(t,i.seq1Range,a),o=new qr(n,i.seq2Range,a),l=s.length+o.length<500?this.dynamicProgrammingDiffing.compute(s,o,r):this.myersDiffingAlgorithm.compute(s,o,r);let u=l.diffs;return u=Wr(s,o,u),u=Go(s,o,u),u=Fo(s,o,u),{mappings:u.map(d=>new Jt(s.translateRange(d.seq1Range),o.translateRange(d.seq2Range))),hitTimeout:l.hitTimeout}}}function Go(e,t,n){const i=[];let r;function a(){if(!r)return;const o=r.s1Range.length-r.deleted;r.s2Range.length-r.added,Math.max(r.deleted,r.added)+(r.count-1)>o&&i.push(new be(r.s1Range,r.s2Range)),r=void 0}for(const o of n){let l=function(p,b){var f,T,y,v;if(!r||!r.s1Range.containsRange(p)||!r.s2Range.containsRange(b))if(r&&!(r.s1Range.endExclusive0||t.length>0;){const i=e[0],r=t[0];let a;i&&(!r||i.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=a.seq1Range.start?n[n.length-1]=n[n.length-1].join(a):n.push(a)}return n}function zr(e,t,n,i=!1){const r=[];for(const a of Yo(e.map(s=>Jo(s,t,n)),(s,o)=>s.originalRange.overlapOrTouch(o.originalRange)||s.modifiedRange.overlapOrTouch(o.modifiedRange))){const s=a[0],o=a[a.length-1];r.push(new Ye(s.originalRange.join(o.originalRange),s.modifiedRange.join(o.modifiedRange),a.map(l=>l.innerChanges[0])))}return Bn(()=>!i&&r.length>0&&r[0].originalRange.startLineNumber!==r[0].modifiedRange.startLineNumber?!1:Dr(r,(a,s)=>s.originalRange.startLineNumber-a.originalRange.endLineNumberExclusive===s.modifiedRange.startLineNumber-a.modifiedRange.endLineNumberExclusive&&a.originalRange.endLineNumberExclusive=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const a=new te(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),s=new te(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new Ye(a,s,[e])}function*Yo(e,t){let n,i;for(const r of e)i!==void 0&&t(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}class Br{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Or(this.lines[t-1]),i=t===this.lines.length?0:Or(this.lines[t]);return 1e3-(n+i)}}function Or(e){let t=0;for(;t0&&n.endExclusive>=t.length&&(n=new Q(n.start-1,n.endExclusive),r=!0),this.lineRange=n;for(let a=this.lineRange.start;aString.fromCharCode(t)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=jr(t>0?this.elements[t-1]:-1),i=jr(tt?i=a:n=a+1}const r=n===0?0:this.firstCharOffsetByLineMinusOne[n-1];return new We(this.lineRange.start+n+1,t-r+1+this.offsetByLine[n])}translateRange(t){return Ae.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!$n(this.elements[t]))return;let n=t;for(;n>0&&$n(this.elements[n-1]);)n--;let i=t;for(;i=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Xo={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Vr(e){return Xo[e]}function jr(e){return e===10?7:e===13?6:Qo(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:4}function Qo(e){return e===32||e===9}const Jn=new Map;function Gr(e){let t=Jn.get(e);return t===void 0&&(t=Jn.size,Jn.set(e,t)),t}class $r{constructor(t,n){this.range=t,this.lines=n,this.histogram=[];let i=0;for(let r=t.startLineNumber-1;rnew No,getAdvanced:()=>new jo};function Xe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class se{constructor(t,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class ke{constructor(t,n,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.l=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,i=t.g/255,r=t.b/255,a=t.a,s=Math.max(n,i,r),o=Math.min(n,i,r);let l=0,u=0;const c=(o+s)/2,d=s-o;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:l=(i-r)/d+(i1&&(i-=1),i<1/6?t+(n-t)*6*i:i<1/2?n:i<2/3?t+(n-t)*(2/3-i)*6:t}static toRGBA(t){const n=t.h/360,{s:i,l:r,a}=t;let s,o,l;if(i===0)s=o=l=r;else{const u=r<.5?r*(1+i):r+i-r*i,c=2*r-u;s=ke._hue2rgb(c,u,n+1/3),o=ke._hue2rgb(c,u,n),l=ke._hue2rgb(c,u,n-1/3)}return new se(Math.round(s*255),Math.round(o*255),Math.round(l*255),a)}}class gt{constructor(t,n,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Xe(Math.max(Math.min(1,n),0),3),this.v=Xe(Math.max(Math.min(1,i),0),3),this.a=Xe(Math.max(Math.min(1,r),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,i=t.g/255,r=t.b/255,a=Math.max(n,i,r),s=Math.min(n,i,r),o=a-s,l=a===0?0:o/a;let u;return o===0?u=0:a===n?u=((i-r)/o%6+6)%6:a===i?u=(r-n)/o+2:u=(n-i)/o+4,new gt(Math.round(u*60),l,a,t.a)}static toRGBA(t){const{h:n,s:i,v:r,a}=t,s=r*i,o=s*(1-Math.abs(n/60%2-1)),l=r-s;let[u,c,d]=[0,0,0];return n<60?(u=s,c=o):n<120?(u=o,c=s):n<180?(c=s,d=o):n<240?(c=o,d=s):n<300?(u=o,d=s):n<=360&&(u=s,d=o),u=Math.round((u+l)*255),c=Math.round((c+l)*255),d=Math.round((d+l)*255),new se(u,c,d,a)}}let re=class Ce{static fromHex(t){return Ce.Format.CSS.parseHex(t)||Ce.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:ke.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:gt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof se)this.rgba=t;else if(t instanceof ke)this._hsla=t,this.rgba=ke.toRGBA(t);else if(t instanceof gt)this._hsva=t,this.rgba=gt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&se.equals(this.rgba,t.rgba)&&ke.equals(this.hsla,t.hsla)&>.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Ce._relativeLuminanceForComponent(this.rgba.r),n=Ce._relativeLuminanceForComponent(this.rgba.g),i=Ce._relativeLuminanceForComponent(this.rgba.b),r=.2126*t+.7152*n+.0722*i;return Xe(r,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n>i}isDarkerThan(t){const n=this.getRelativeLuminance(),i=t.getRelativeLuminance();return n0)for(const r of i){const a=r.filter(u=>u!==void 0),s=a[1],o=a[2];if(!o)continue;let l;if(s==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=Xr(Ct(e,r),Lt(o,u),!1)}else if(s==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Xr(Ct(e,r),Lt(o,u),!0)}else if(s==="hsl"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=Qr(Ct(e,r),Lt(o,u),!1)}else if(s==="hsla"){const u=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Qr(Ct(e,r),Lt(o,u),!0)}else s==="#"&&(l=Zo(Ct(e,r),s+o));l&&t.push(l)}return t}function el(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Ko(e)}var Qe=function(e,t,n,i){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):r(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})};class tl extends ao{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let i=0;ithis._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,r=!0;else{const a=this._lines[n-1].length+1;i<1?(i=1,r=!0):i>a&&(i=a,r=!0)}return r?{lineNumber:n,column:i}:t}}class it{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new tl(kn.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}computeUnicodeHighlights(t,n,i){return Qe(this,void 0,void 0,function*(){const r=this._getModel(t);return r?Do.computeUnicodeHighlights(r,n,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,n,i,r){return Qe(this,void 0,void 0,function*(){const a=this._getModel(t),s=this._getModel(n);return!a||!s?null:it.computeDiff(a,s,i,r)})}static computeDiff(t,n,i,r){const a=r==="advanced"?Jr.getAdvanced():Jr.getLegacy(),s=t.getLinesContent(),o=n.getLinesContent(),l=a.computeDiff(s,o,i),u=l.changes.length>0?!1:this._modelsAreIdentical(t,n);function c(d){return d.map(m=>{var p;return[m.originalRange.startLineNumber,m.originalRange.endLineNumberExclusive,m.modifiedRange.startLineNumber,m.modifiedRange.endLineNumberExclusive,(p=m.innerChanges)===null||p===void 0?void 0:p.map(b=>[b.originalRange.startLineNumber,b.originalRange.startColumn,b.originalRange.endLineNumber,b.originalRange.endColumn,b.modifiedRange.startLineNumber,b.modifiedRange.startColumn,b.modifiedRange.endLineNumber,b.modifiedRange.endColumn])]})}return{identical:u,quitEarly:l.hitTimeout,changes:c(l.changes),moves:l.moves.map(d=>[d.lineRangeMapping.originalRange.startLineNumber,d.lineRangeMapping.originalRange.endLineNumberExclusive,d.lineRangeMapping.modifiedRange.startLineNumber,d.lineRangeMapping.modifiedRange.endLineNumberExclusive,c(d.changes)])}}static _modelsAreIdentical(t,n){const i=t.getLineCount(),r=n.getLineCount();if(i!==r)return!1;for(let a=1;a<=i;a++){const s=t.getLineContent(a),o=n.getLineContent(a);if(s!==o)return!1}return!0}computeMoreMinimalEdits(t,n,i){return Qe(this,void 0,void 0,function*(){const r=this._getModel(t);if(!r)return n;const a=[];let s;n=n.slice(0).sort((o,l)=>{if(o.range&&l.range)return Ae.compareRangesUsingStarts(o.range,l.range);const u=o.range?0:1,c=l.range?0:1;return u-c});for(let{range:o,text:l,eol:u}of n){if(typeof u=="number"&&(s=u),Ae.isEmpty(o)&&!l)continue;const c=r.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,r.eol),c===l)continue;if(Math.max(l.length,c.length)>it._diffLimit){a.push({range:o,text:l});continue}const d=zs(c,l,i),m=r.offsetAt(Ae.lift(o).getStartPosition());for(const p of d){const b=r.positionAt(m+p.originalStart),f=r.positionAt(m+p.originalStart+p.originalLength),T={text:l.substr(p.modifiedStart,p.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:f.lineNumber,endColumn:f.column}};r.getValueInRange(T.range)!==T.text&&a.push(T)}}return typeof s=="number"&&a.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a})}computeLinks(t){return Qe(this,void 0,void 0,function*(){const n=this._getModel(t);return n?fo(n):null})}computeDefaultDocumentColors(t){return Qe(this,void 0,void 0,function*(){const n=this._getModel(t);return n?el(n):null})}textualSuggest(t,n,i,r){return Qe(this,void 0,void 0,function*(){const a=new Ft,s=new RegExp(i,r),o=new Set;e:for(const l of t){const u=this._getModel(l);if(u){for(const c of u.words(s))if(!(c===n||!isNaN(Number(c)))&&(o.add(c),o.size>it._suggestionsLimit))break e}}return{words:Array.from(o),duration:a.elapsed()}})}computeWordRanges(t,n,i,r){return Qe(this,void 0,void 0,function*(){const a=this._getModel(t);if(!a)return Object.create(null);const s=new RegExp(i,r),o=Object.create(null);for(let l=n.startLineNumber;lthis._host.fhr(o,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,n),Promise.resolve(_n(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}}it._diffLimit=1e5,it._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=So());let Xn=!1;function Zr(e){if(Xn)return;Xn=!0;const t=new Hs(n=>{globalThis.postMessage(n)},n=>new it(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Xn||Zr(null)};/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.40.0(83b3cf23ca80c94cccca7c5b3e48351b220f8e35) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/function nl(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(i,r)=>{let a=r[0];return typeof t[a]!="undefined"?t[a]:i}),n}function il(e,t,...n){return nl(t,n)}function Qn(e){return il}var Kr;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Kr||(Kr={}));var Jt;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Jt||(Jt={}));var ue;(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=Jt.MAX_VALUE),r===Number.MAX_VALUE&&(r=Jt.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){var r=i;return C.objectLiteral(r)&&C.uinteger(r.line)&&C.uinteger(r.character)}e.is=n})(ue||(ue={}));var J;(function(e){function t(i,r,a,s){if(C.uinteger(i)&&C.uinteger(r)&&C.uinteger(a)&&C.uinteger(s))return{start:ue.create(i,r),end:ue.create(a,s)};if(ue.is(i)&&ue.is(r))return{start:i,end:r};throw new Error("Range#create called with invalid arguments["+i+", "+r+", "+a+", "+s+"]")}e.create=t;function n(i){var r=i;return C.objectLiteral(r)&&ue.is(r.start)&&ue.is(r.end)}e.is=n})(J||(J={}));var Xt;(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&J.is(r.range)&&(C.string(r.uri)||C.undefined(r.uri))}e.is=n})(Xt||(Xt={}));var ea;(function(e){function t(i,r,a,s){return{targetUri:i,targetRange:r,targetSelectionRange:a,originSelectionRange:s}}e.create=t;function n(i){var r=i;return C.defined(r)&&J.is(r.targetRange)&&C.string(r.targetUri)&&(J.is(r.targetSelectionRange)||C.undefined(r.targetSelectionRange))&&(J.is(r.originSelectionRange)||C.undefined(r.originSelectionRange))}e.is=n})(ea||(ea={}));var Zn;(function(e){function t(i,r,a,s){return{red:i,green:r,blue:a,alpha:s}}e.create=t;function n(i){var r=i;return C.numberRange(r.red,0,1)&&C.numberRange(r.green,0,1)&&C.numberRange(r.blue,0,1)&&C.numberRange(r.alpha,0,1)}e.is=n})(Zn||(Zn={}));var ta;(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){var r=i;return J.is(r.range)&&Zn.is(r.color)}e.is=n})(ta||(ta={}));var na;(function(e){function t(i,r,a){return{label:i,textEdit:r,additionalTextEdits:a}}e.create=t;function n(i){var r=i;return C.string(r.label)&&(C.undefined(r.textEdit)||ae.is(r))&&(C.undefined(r.additionalTextEdits)||C.typedArray(r.additionalTextEdits,ae.is))}e.is=n})(na||(na={}));var Qt;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Qt||(Qt={}));var ia;(function(e){function t(i,r,a,s,o){var l={startLine:i,endLine:r};return C.defined(a)&&(l.startCharacter=a),C.defined(s)&&(l.endCharacter=s),C.defined(o)&&(l.kind=o),l}e.create=t;function n(i){var r=i;return C.uinteger(r.startLine)&&C.uinteger(r.startLine)&&(C.undefined(r.startCharacter)||C.uinteger(r.startCharacter))&&(C.undefined(r.endCharacter)||C.uinteger(r.endCharacter))&&(C.undefined(r.kind)||C.string(r.kind))}e.is=n})(ia||(ia={}));var Kn;(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&Xt.is(r.location)&&C.string(r.message)}e.is=n})(Kn||(Kn={}));var ra;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ra||(ra={}));var aa;(function(e){e.Unnecessary=1,e.Deprecated=2})(aa||(aa={}));var sa;(function(e){function t(n){var i=n;return i!=null&&C.string(i.href)}e.is=t})(sa||(sa={}));var Zt;(function(e){function t(i,r,a,s,o,l){var u={range:i,message:r};return C.defined(a)&&(u.severity=a),C.defined(s)&&(u.code=s),C.defined(o)&&(u.source=o),C.defined(l)&&(u.relatedInformation=l),u}e.create=t;function n(i){var r,a=i;return C.defined(a)&&J.is(a.range)&&C.string(a.message)&&(C.number(a.severity)||C.undefined(a.severity))&&(C.integer(a.code)||C.string(a.code)||C.undefined(a.code))&&(C.undefined(a.codeDescription)||C.string((r=a.codeDescription)===null||r===void 0?void 0:r.href))&&(C.string(a.source)||C.undefined(a.source))&&(C.undefined(a.relatedInformation)||C.typedArray(a.relatedInformation,Kn.is))}e.is=n})(Zt||(Zt={}));var Et;(function(e){function t(i,r){for(var a=[],s=2;s0&&(o.arguments=a),o}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.title)&&C.string(r.command)}e.is=n})(Et||(Et={}));var ae;(function(e){function t(a,s){return{range:a,newText:s}}e.replace=t;function n(a,s){return{range:{start:a,end:a},newText:s}}e.insert=n;function i(a){return{range:a,newText:""}}e.del=i;function r(a){var s=a;return C.objectLiteral(s)&&C.string(s.newText)&&J.is(s.range)}e.is=r})(ae||(ae={}));var bt;(function(e){function t(i,r,a){var s={label:i};return r!==void 0&&(s.needsConfirmation=r),a!==void 0&&(s.description=a),s}e.create=t;function n(i){var r=i;return r!==void 0&&C.objectLiteral(r)&&C.string(r.label)&&(C.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(C.string(r.description)||r.description===void 0)}e.is=n})(bt||(bt={}));var he;(function(e){function t(n){var i=n;return typeof i=="string"}e.is=t})(he||(he={}));var Ze;(function(e){function t(a,s,o){return{range:a,newText:s,annotationId:o}}e.replace=t;function n(a,s,o){return{range:{start:a,end:a},newText:s,annotationId:o}}e.insert=n;function i(a,s){return{range:a,newText:"",annotationId:s}}e.del=i;function r(a){var s=a;return ae.is(s)&&(bt.is(s.annotationId)||he.is(s.annotationId))}e.is=r})(Ze||(Ze={}));var Kt;(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&tn.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(Kt||(Kt={}));var Dt;(function(e){function t(i,r,a){var s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=t;function n(i){var r=i;return r&&r.kind==="create"&&C.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||C.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||C.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||he.is(r.annotationId))}e.is=n})(Dt||(Dt={}));var Rt;(function(e){function t(i,r,a,s){var o={kind:"rename",oldUri:i,newUri:r};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(i){var r=i;return r&&r.kind==="rename"&&C.string(r.oldUri)&&C.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||C.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||C.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||he.is(r.annotationId))}e.is=n})(Rt||(Rt={}));var Mt;(function(e){function t(i,r,a){var s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=t;function n(i){var r=i;return r&&r.kind==="delete"&&C.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||C.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||C.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||he.is(r.annotationId))}e.is=n})(Mt||(Mt={}));var ei;(function(e){function t(n){var i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(function(r){return C.string(r.kind)?Dt.is(r)||Rt.is(r)||Mt.is(r):Kt.is(r)}))}e.is=t})(ei||(ei={}));var en=function(){function e(t,n){this.edits=t,this.changeAnnotations=n}return e.prototype.insert=function(t,n,i){var r,a;if(i===void 0?r=ae.insert(t,n):he.is(i)?(a=i,r=Ze.insert(t,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(i),r=Ze.insert(t,n,a)),this.edits.push(r),a!==void 0)return a},e.prototype.replace=function(t,n,i){var r,a;if(i===void 0?r=ae.replace(t,n):he.is(i)?(a=i,r=Ze.replace(t,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(i),r=Ze.replace(t,n,a)),this.edits.push(r),a!==void 0)return a},e.prototype.delete=function(t,n){var i,r;if(n===void 0?i=ae.del(t):he.is(n)?(r=n,i=Ze.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Ze.del(t,r)),this.edits.push(i),r!==void 0)return r},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),oa=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var i;if(he.is(t)?i=t:(i=this.nextId(),n=t),this._annotations[i]!==void 0)throw new Error("Id "+i+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+i);return this._annotations[i]=n,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new oa(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(i){if(Kt.is(i)){var r=new en(i.edits,n._changeAnnotations);n._textEditChanges[i.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(function(i){var r=new en(t.changes[i]);n._textEditChanges[i]=r})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(tn.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:t.uri,version:t.version},i=this._textEditChanges[n.uri];if(!i){var r=[],a={textDocument:n,edits:r};this._workspaceEdit.documentChanges.push(a),i=new en(r,this._changeAnnotations),this._textEditChanges[n.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[t];if(!i){var r=[];this._workspaceEdit.changes[t]=r,i=new en(r),this._textEditChanges[t]=i}return i}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new oa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;bt.is(n)||he.is(n)?r=n:i=n;var a,s;if(r===void 0?a=Dt.create(t,i):(s=he.is(r)?r:this._changeAnnotations.manage(r),a=Dt.create(t,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(t,n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;bt.is(i)||he.is(i)?a=i:r=i;var s,o;if(a===void 0?s=Rt.create(t,n,r):(o=he.is(a)?a:this._changeAnnotations.manage(a),s=Rt.create(t,n,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},e.prototype.deleteFile=function(t,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;bt.is(n)||he.is(n)?r=n:i=n;var a,s;if(r===void 0?a=Mt.create(t,i):(s=he.is(r)?r:this._changeAnnotations.manage(r),a=Mt.create(t,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var la;(function(e){function t(i){return{uri:i}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)}e.is=n})(la||(la={}));var ua;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)&&C.integer(r.version)}e.is=n})(ua||(ua={}));var tn;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)&&(r.version===null||C.integer(r.version))}e.is=n})(tn||(tn={}));var ca;(function(e){function t(i,r,a,s){return{uri:i,languageId:r,version:a,text:s}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)&&C.string(r.languageId)&&C.integer(r.version)&&C.string(r.text)}e.is=n})(ca||(ca={}));var Re;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(Re||(Re={})),function(e){function t(n){var i=n;return i===e.PlainText||i===e.Markdown}e.is=t}(Re||(Re={}));var ti;(function(e){function t(n){var i=n;return C.objectLiteral(n)&&Re.is(i.kind)&&C.string(i.value)}e.is=t})(ti||(ti={}));var _e;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_e||(_e={}));var Me;(function(e){e.PlainText=1,e.Snippet=2})(Me||(Me={}));var ha;(function(e){e.Deprecated=1})(ha||(ha={}));var da;(function(e){function t(i,r,a){return{newText:i,insert:r,replace:a}}e.create=t;function n(i){var r=i;return r&&C.string(r.newText)&&J.is(r.insert)&&J.is(r.replace)}e.is=n})(da||(da={}));var ma;(function(e){e.asIs=1,e.adjustIndentation=2})(ma||(ma={}));var pa;(function(e){function t(n){return{label:n}}e.create=t})(pa||(pa={}));var fa;(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(fa||(fa={}));var nn;(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){var r=i;return C.string(r)||C.objectLiteral(r)&&C.string(r.language)&&C.string(r.value)}e.is=n})(nn||(nn={}));var ga;(function(e){function t(n){var i=n;return!!i&&C.objectLiteral(i)&&(ti.is(i.contents)||nn.is(i.contents)||C.typedArray(i.contents,nn.is))&&(n.range===void 0||J.is(n.range))}e.is=t})(ga||(ga={}));var ba;(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(ba||(ba={}));var _a;(function(e){function t(n,i){for(var r=[],a=2;a=0;c--){var d=l[c],m=a.offsetAt(d.range.start),p=a.offsetAt(d.range.end);if(p<=u)o=o.substring(0,m)+d.newText+o.substring(p,o.length);else throw new Error("Overlapping edit");u=m}return o}e.applyEdits=i;function r(a,s){if(a.length<=1)return a;var o=a.length/2|0,l=a.slice(0,o),u=a.slice(o);r(l,s),r(u,s);for(var c=0,d=0,m=0;c{let a=r[0];return typeof t[a]!="undefined"?t[a]:i}),n}function il(e,t,...n){return nl(t,n)}function Qn(e){return il}var Kr;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Kr||(Kr={}));var Yt;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Yt||(Yt={}));var ue;(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=Yt.MAX_VALUE),r===Number.MAX_VALUE&&(r=Yt.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){var r=i;return C.objectLiteral(r)&&C.uinteger(r.line)&&C.uinteger(r.character)}e.is=n})(ue||(ue={}));var Y;(function(e){function t(i,r,a,s){if(C.uinteger(i)&&C.uinteger(r)&&C.uinteger(a)&&C.uinteger(s))return{start:ue.create(i,r),end:ue.create(a,s)};if(ue.is(i)&&ue.is(r))return{start:i,end:r};throw new Error("Range#create called with invalid arguments["+i+", "+r+", "+a+", "+s+"]")}e.create=t;function n(i){var r=i;return C.objectLiteral(r)&&ue.is(r.start)&&ue.is(r.end)}e.is=n})(Y||(Y={}));var Xt;(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&Y.is(r.range)&&(C.string(r.uri)||C.undefined(r.uri))}e.is=n})(Xt||(Xt={}));var ea;(function(e){function t(i,r,a,s){return{targetUri:i,targetRange:r,targetSelectionRange:a,originSelectionRange:s}}e.create=t;function n(i){var r=i;return C.defined(r)&&Y.is(r.targetRange)&&C.string(r.targetUri)&&(Y.is(r.targetSelectionRange)||C.undefined(r.targetSelectionRange))&&(Y.is(r.originSelectionRange)||C.undefined(r.originSelectionRange))}e.is=n})(ea||(ea={}));var Zn;(function(e){function t(i,r,a,s){return{red:i,green:r,blue:a,alpha:s}}e.create=t;function n(i){var r=i;return C.numberRange(r.red,0,1)&&C.numberRange(r.green,0,1)&&C.numberRange(r.blue,0,1)&&C.numberRange(r.alpha,0,1)}e.is=n})(Zn||(Zn={}));var ta;(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){var r=i;return Y.is(r.range)&&Zn.is(r.color)}e.is=n})(ta||(ta={}));var na;(function(e){function t(i,r,a){return{label:i,textEdit:r,additionalTextEdits:a}}e.create=t;function n(i){var r=i;return C.string(r.label)&&(C.undefined(r.textEdit)||ae.is(r))&&(C.undefined(r.additionalTextEdits)||C.typedArray(r.additionalTextEdits,ae.is))}e.is=n})(na||(na={}));var Qt;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Qt||(Qt={}));var ia;(function(e){function t(i,r,a,s,o){var l={startLine:i,endLine:r};return C.defined(a)&&(l.startCharacter=a),C.defined(s)&&(l.endCharacter=s),C.defined(o)&&(l.kind=o),l}e.create=t;function n(i){var r=i;return C.uinteger(r.startLine)&&C.uinteger(r.startLine)&&(C.undefined(r.startCharacter)||C.uinteger(r.startCharacter))&&(C.undefined(r.endCharacter)||C.uinteger(r.endCharacter))&&(C.undefined(r.kind)||C.string(r.kind))}e.is=n})(ia||(ia={}));var Kn;(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&Xt.is(r.location)&&C.string(r.message)}e.is=n})(Kn||(Kn={}));var ra;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ra||(ra={}));var aa;(function(e){e.Unnecessary=1,e.Deprecated=2})(aa||(aa={}));var sa;(function(e){function t(n){var i=n;return i!=null&&C.string(i.href)}e.is=t})(sa||(sa={}));var Zt;(function(e){function t(i,r,a,s,o,l){var u={range:i,message:r};return C.defined(a)&&(u.severity=a),C.defined(s)&&(u.code=s),C.defined(o)&&(u.source=o),C.defined(l)&&(u.relatedInformation=l),u}e.create=t;function n(i){var r,a=i;return C.defined(a)&&Y.is(a.range)&&C.string(a.message)&&(C.number(a.severity)||C.undefined(a.severity))&&(C.integer(a.code)||C.string(a.code)||C.undefined(a.code))&&(C.undefined(a.codeDescription)||C.string((r=a.codeDescription)===null||r===void 0?void 0:r.href))&&(C.string(a.source)||C.undefined(a.source))&&(C.undefined(a.relatedInformation)||C.typedArray(a.relatedInformation,Kn.is))}e.is=n})(Zt||(Zt={}));var Et;(function(e){function t(i,r){for(var a=[],s=2;s0&&(o.arguments=a),o}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.title)&&C.string(r.command)}e.is=n})(Et||(Et={}));var ae;(function(e){function t(a,s){return{range:a,newText:s}}e.replace=t;function n(a,s){return{range:{start:a,end:a},newText:s}}e.insert=n;function i(a){return{range:a,newText:""}}e.del=i;function r(a){var s=a;return C.objectLiteral(s)&&C.string(s.newText)&&Y.is(s.range)}e.is=r})(ae||(ae={}));var bt;(function(e){function t(i,r,a){var s={label:i};return r!==void 0&&(s.needsConfirmation=r),a!==void 0&&(s.description=a),s}e.create=t;function n(i){var r=i;return r!==void 0&&C.objectLiteral(r)&&C.string(r.label)&&(C.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(C.string(r.description)||r.description===void 0)}e.is=n})(bt||(bt={}));var he;(function(e){function t(n){var i=n;return typeof i=="string"}e.is=t})(he||(he={}));var Ze;(function(e){function t(a,s,o){return{range:a,newText:s,annotationId:o}}e.replace=t;function n(a,s,o){return{range:{start:a,end:a},newText:s,annotationId:o}}e.insert=n;function i(a,s){return{range:a,newText:"",annotationId:s}}e.del=i;function r(a){var s=a;return ae.is(s)&&(bt.is(s.annotationId)||he.is(s.annotationId))}e.is=r})(Ze||(Ze={}));var Kt;(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&tn.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(Kt||(Kt={}));var Dt;(function(e){function t(i,r,a){var s={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=t;function n(i){var r=i;return r&&r.kind==="create"&&C.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||C.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||C.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||he.is(r.annotationId))}e.is=n})(Dt||(Dt={}));var Rt;(function(e){function t(i,r,a,s){var o={kind:"rename",oldUri:i,newUri:r};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}e.create=t;function n(i){var r=i;return r&&r.kind==="rename"&&C.string(r.oldUri)&&C.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||C.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||C.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||he.is(r.annotationId))}e.is=n})(Rt||(Rt={}));var Mt;(function(e){function t(i,r,a){var s={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=t;function n(i){var r=i;return r&&r.kind==="delete"&&C.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||C.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||C.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||he.is(r.annotationId))}e.is=n})(Mt||(Mt={}));var ei;(function(e){function t(n){var i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(function(r){return C.string(r.kind)?Dt.is(r)||Rt.is(r)||Mt.is(r):Kt.is(r)}))}e.is=t})(ei||(ei={}));var en=function(){function e(t,n){this.edits=t,this.changeAnnotations=n}return e.prototype.insert=function(t,n,i){var r,a;if(i===void 0?r=ae.insert(t,n):he.is(i)?(a=i,r=Ze.insert(t,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(i),r=Ze.insert(t,n,a)),this.edits.push(r),a!==void 0)return a},e.prototype.replace=function(t,n,i){var r,a;if(i===void 0?r=ae.replace(t,n):he.is(i)?(a=i,r=Ze.replace(t,n,i)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(i),r=Ze.replace(t,n,a)),this.edits.push(r),a!==void 0)return a},e.prototype.delete=function(t,n){var i,r;if(n===void 0?i=ae.del(t):he.is(n)?(r=n,i=Ze.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=Ze.del(t,r)),this.edits.push(i),r!==void 0)return r},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),oa=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var i;if(he.is(t)?i=t:(i=this.nextId(),n=t),this._annotations[i]!==void 0)throw new Error("Id "+i+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+i);return this._annotations[i]=n,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new oa(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(i){if(Kt.is(i)){var r=new en(i.edits,n._changeAnnotations);n._textEditChanges[i.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(function(i){var r=new en(t.changes[i]);n._textEditChanges[i]=r})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(tn.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:t.uri,version:t.version},i=this._textEditChanges[n.uri];if(!i){var r=[],a={textDocument:n,edits:r};this._workspaceEdit.documentChanges.push(a),i=new en(r,this._changeAnnotations),this._textEditChanges[n.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[t];if(!i){var r=[];this._workspaceEdit.changes[t]=r,i=new en(r),this._textEditChanges[t]=i}return i}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new oa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;bt.is(n)||he.is(n)?r=n:i=n;var a,s;if(r===void 0?a=Dt.create(t,i):(s=he.is(r)?r:this._changeAnnotations.manage(r),a=Dt.create(t,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(t,n,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;bt.is(i)||he.is(i)?a=i:r=i;var s,o;if(a===void 0?s=Rt.create(t,n,r):(o=he.is(a)?a:this._changeAnnotations.manage(a),s=Rt.create(t,n,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},e.prototype.deleteFile=function(t,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;bt.is(n)||he.is(n)?r=n:i=n;var a,s;if(r===void 0?a=Mt.create(t,i):(s=he.is(r)?r:this._changeAnnotations.manage(r),a=Mt.create(t,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e})();var la;(function(e){function t(i){return{uri:i}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)}e.is=n})(la||(la={}));var ua;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)&&C.integer(r.version)}e.is=n})(ua||(ua={}));var tn;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)&&(r.version===null||C.integer(r.version))}e.is=n})(tn||(tn={}));var ca;(function(e){function t(i,r,a,s){return{uri:i,languageId:r,version:a,text:s}}e.create=t;function n(i){var r=i;return C.defined(r)&&C.string(r.uri)&&C.string(r.languageId)&&C.integer(r.version)&&C.string(r.text)}e.is=n})(ca||(ca={}));var Re;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(Re||(Re={})),function(e){function t(n){var i=n;return i===e.PlainText||i===e.Markdown}e.is=t}(Re||(Re={}));var ti;(function(e){function t(n){var i=n;return C.objectLiteral(n)&&Re.is(i.kind)&&C.string(i.value)}e.is=t})(ti||(ti={}));var _e;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(_e||(_e={}));var Me;(function(e){e.PlainText=1,e.Snippet=2})(Me||(Me={}));var ha;(function(e){e.Deprecated=1})(ha||(ha={}));var da;(function(e){function t(i,r,a){return{newText:i,insert:r,replace:a}}e.create=t;function n(i){var r=i;return r&&C.string(r.newText)&&Y.is(r.insert)&&Y.is(r.replace)}e.is=n})(da||(da={}));var ma;(function(e){e.asIs=1,e.adjustIndentation=2})(ma||(ma={}));var pa;(function(e){function t(n){return{label:n}}e.create=t})(pa||(pa={}));var fa;(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(fa||(fa={}));var nn;(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){var r=i;return C.string(r)||C.objectLiteral(r)&&C.string(r.language)&&C.string(r.value)}e.is=n})(nn||(nn={}));var ga;(function(e){function t(n){var i=n;return!!i&&C.objectLiteral(i)&&(ti.is(i.contents)||nn.is(i.contents)||C.typedArray(i.contents,nn.is))&&(n.range===void 0||Y.is(n.range))}e.is=t})(ga||(ga={}));var ba;(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(ba||(ba={}));var _a;(function(e){function t(n,i){for(var r=[],a=2;a=0;c--){var d=l[c],m=a.offsetAt(d.range.start),p=a.offsetAt(d.range.end);if(p<=u)o=o.substring(0,m)+d.newText+o.substring(p,o.length);else throw new Error("Overlapping edit");u=m}return o}e.applyEdits=i;function r(a,s){if(a.length<=1)return a;var o=a.length/2|0,l=a.slice(0,o),u=a.slice(o);r(l,s),r(u,s);for(var c=0,d=0,m=0;c0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return ue.create(0,t);for(;it?r=a:i=a+1}var s=i-1;return ue.create(s,t-n[s])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var i=n[t.line],r=t.line+1e?i=a:n=a+1}let r=n-1;return{line:r,character:e-t[r]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1{let m=c.range.start.line-d.range.start.line;return m===0?c.range.start.character-d.range.start.character:m}),l=0;const u=[];for(const c of o){let d=r.offsetAt(c.range.start);if(dl&&u.push(s.substring(l,d)),c.newText.length&&u.push(c.newText),l=r.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}e.applyEdits=i})(ii||(ii={}));function ri(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),r=e.slice(n);ri(i,t),ri(r,t);let a=0,s=0,o=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function al(e){const t=Ra(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var I;(function(e){e[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS"})(I||(I={}));var V;(function(e){e[e.WithinContent=0]="WithinContent",e[e.AfterOpeningStartTag=1]="AfterOpeningStartTag",e[e.AfterOpeningEndTag=2]="AfterOpeningEndTag",e[e.WithinDoctype=3]="WithinDoctype",e[e.WithinTag=4]="WithinTag",e[e.WithinEndTag=5]="WithinEndTag",e[e.WithinComment=6]="WithinComment",e[e.WithinScriptContent=7]="WithinScriptContent",e[e.WithinStyleContent=8]="WithinStyleContent",e[e.AfterAttributeName=9]="AfterAttributeName",e[e.BeforeAttributeValue=10]="BeforeAttributeValue"})(V||(V={}));var Ma;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Re.Markdown,Re.PlainText]}},hover:{contentFormat:[Re.Markdown,Re.PlainText]}}}})(Ma||(Ma={}));var ai;(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(ai||(ai={}));var Ke=Qn(),sl=function(){function e(t,n){this.source=t,this.len=t.length,this.position=n}return e.prototype.eos=function(){return this.len<=this.position},e.prototype.getSource=function(){return this.source},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(t){this.position=t},e.prototype.goBack=function(t){this.position-=t},e.prototype.advance=function(t){this.position+=t},e.prototype.goToEnd=function(){this.position=this.source.length},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(t){return t===void 0&&(t=0),this.source.charCodeAt(this.position+t)||0},e.prototype.advanceIfChar=function(t){return t===this.source.charCodeAt(this.position)?(this.position++,!0):!1},e.prototype.advanceIfChars=function(t){var n;if(this.position+t.length>this.source.length)return!1;for(n=0;n0},e.prototype.advanceWhileChar=function(t){for(var n=this.position;this.position0?(a=V.WithinEndTag,f(v,I.EndTag)):r.skipWhitespace()?f(v,I.Whitespace,Ke("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(a=V.WithinEndTag,r.advanceUntilChar(He),v0?(u=!1,a=V.WithinTag,f(v,I.StartTag)):r.skipWhitespace()?f(v,I.Whitespace,Ke("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(a=V.WithinTag,r.advanceUntilChar(He),v0)?(a=V.AfterAttributeName,u=!1,f(v,I.AttributeName)):r.advanceIfChars([si,He])?(a=V.WithinContent,f(v,I.StartTagSelfClose)):r.advanceIfChar(He)?(c==="script"?m&&fl[m]?a=V.WithinContent:a=V.WithinScriptContent:c==="style"?a=V.WithinStyleContent:a=V.WithinContent,f(v,I.StartTagClose)):i&&r.peekChar()===on?(a=V.WithinContent,f(v,I.StartTagClose,Ke("error.closingBracketMissing","Closing bracket missing."))):(r.advance(1),f(v,I.Unknown,Ke("error.unexpectedCharacterInTag","Unexpected character in tag.")));case V.AfterAttributeName:return r.skipWhitespace()?(u=!0,f(v,I.Whitespace)):r.advanceIfChar(ol)?(a=V.BeforeAttributeValue,f(v,I.DelimiterAssign)):(a=V.WithinTag,y());case V.BeforeAttributeValue:if(r.skipWhitespace())return f(v,I.Whitespace);var H=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(H.length>0)return r.peekChar()===He&&r.peekChar(-1)===si&&(r.goBack(1),H=H.substr(0,H.length-1)),d==="type"&&(m=H),a=V.WithinTag,u=!1,f(v,I.AttributeValue);var O=r.peekChar();return O===ul||O===ll?(r.advance(1),r.advanceUntilChar(O)&&r.advance(1),d==="type"&&(m=r.getSource().substring(v+1,r.pos()-1)),a=V.WithinTag,u=!1,f(v,I.AttributeValue)):(a=V.WithinTag,u=!1,y());case V.WithinScriptContent:for(var w=1;!r.eos();){var g=r.advanceIfRegExp(/|<\/?script\s*\/?>?/i);if(g.length===0)return r.goToEnd(),f(v,I.Script);if(g==="")w=1;else if(g[1]!=="/")w===2&&(w=3);else if(w===3)w=2;else{r.goBack(g.length);break}}return a=V.WithinContent,v0)r=a-1;else return a}return-(i+1)}var bl=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function ln(e){return!!e&&gl(bl,e.toLowerCase(),function(t,n){return t.localeCompare(n)})>=0}var Pa=function(){function e(t,n,i,r){this.start=t,this.end=n,this.children=i,this.parent=r,this.closed=!1}return Object.defineProperty(e.prototype,"attributeNames",{get:function(){return this.attributes?Object.keys(this.attributes):[]},enumerable:!1,configurable:!0}),e.prototype.isSameTag=function(t){return this.tag===void 0?t===void 0:t!==void 0&&this.tag.length===t.length&&this.tag.toLowerCase()===t},Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length?this.children[this.children.length-1]:void 0},enumerable:!1,configurable:!0}),e.prototype.findNodeBefore=function(t){var n=Ia(this.children,function(a){return t<=a.start})-1;if(n>=0){var i=this.children[n];if(t>i.start){if(t=0){var i=this.children[n];if(t>i.start&&t<=i.end)return i.findNodeAt(t)}return this},e}();function Ua(e){for(var t=ye(e,void 0,void 0,!0),n=new Pa(0,e.length,[],void 0),i=n,r=-1,a=void 0,s=null,o=t.scan();o!==I.EOS;){switch(o){case I.StartTagOpen:var l=new Pa(t.getTokenOffset(),e.length,[],i);i.children.push(l),i=l;break;case I.StartTag:i.tag=t.getTokenText();break;case I.StartTagClose:i.parent&&(i.end=t.getTokenEnd(),t.getTokenLength()?(i.startTagEnd=t.getTokenEnd(),i.tag&&ln(i.tag)&&(i.closed=!0,i=i.parent)):i=i.parent);break;case I.StartTagSelfClose:i.parent&&(i.closed=!0,i.end=t.getTokenEnd(),i.startTagEnd=t.getTokenEnd(),i=i.parent);break;case I.EndTagOpen:r=t.getTokenOffset(),a=void 0;break;case I.EndTag:a=t.getTokenText().toLowerCase();break;case I.EndTagClose:for(var u=i;!u.isSameTag(a)&&u.parent;)u=u.parent;if(u.parent){for(;i!==u;)i.end=r,i.closed=!1,i=i.parent;i.closed=!0,i.endTagStart=r,i.end=t.getTokenEnd(),i=i.parent}break;case I.AttributeName:{s=t.getTokenText();var c=i.attributes;c||(i.attributes=c={}),c[s]=null;break}case I.AttributeValue:{var d=t.getTokenText(),c=i.attributes;c&&s&&(c[s]=d,s=null);break}}o=t.scan()}for(;i.parent;)i.end=e.length,i.closed=!1,i=i.parent;return{roots:n.children,findNodeBefore:n.findNodeBefore.bind(n),findNodeAt:n.findNodeAt.bind(n)}}var Nt={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦",brvbar:"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©",COPY:"©","copy;":"©",copy:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"⁣","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·",middot:"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":` `,"nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"⁠","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶",para:"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£",pound:"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®",REG:"®","reg;":"®",reg:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"‏","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"­",shy:"­","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":" ","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×",times:"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ",yuml:"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"‍","zwnj;":"‌"};function et(e,t){if(e.length0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Wa(e,t){for(var n="";t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}var vl="a".charCodeAt(0),wl="z".charCodeAt(0),yl="A".charCodeAt(0),Tl="Z".charCodeAt(0),xl="0".charCodeAt(0),Sl="9".charCodeAt(0);function It(e,t){var n=e.charCodeAt(t);return vl<=n&&n<=wl||yl<=n&&n<=Tl||xl<=n&&n<=Sl}function un(e){return typeof e!="undefined"}function Al(e){if(e)return typeof e=="string"?{kind:"markdown",value:e}:{kind:"markdown",value:e.value}}var Ha=function(){function e(t,n){var i=this;this.id=t,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=n.tags||[],this._globalAttributes=n.globalAttributes||[],this._tags.forEach(function(r){i._tagMap[r.name.toLowerCase()]=r}),n.valueSets&&n.valueSets.forEach(function(r){i._valueSetMap[r.name]=r.values})}return e.prototype.isApplicable=function(){return!0},e.prototype.getId=function(){return this.id},e.prototype.provideTags=function(){return this._tags},e.prototype.provideAttributes=function(t){var n=[],i=function(a){n.push(a)},r=this._tagMap[t.toLowerCase()];return r&&r.attributes.forEach(i),this._globalAttributes.forEach(i),n},e.prototype.provideValues=function(t,n){var i=this,r=[];n=n.toLowerCase();var a=function(o){o.forEach(function(l){l.name.toLowerCase()===n&&(l.values&&l.values.forEach(function(u){r.push(u)}),l.valueSet&&i._valueSetMap[l.valueSet]&&i._valueSetMap[l.valueSet].forEach(function(u){r.push(u)}))})},s=this._tagMap[t.toLowerCase()];return s&&a(s.attributes),a(this._globalAttributes),r},e}();function rt(e,t,n){t===void 0&&(t={});var i={kind:n?"markdown":"plaintext",value:""};if(e.description&&t.documentation!==!1){var r=Al(e.description);r&&(i.value+=r.value)}if(e.references&&e.references.length>0&&t.references!==!1&&(i.value.length&&(i.value+=` `),n?i.value+=e.references.map(function(a){return"[".concat(a.name,"](").concat(a.url,")")}).join(" | "):i.value+=e.references.map(function(a){return"".concat(a.name,": ").concat(a.url)}).join(` -`)),i.value!=="")return i}var Fa=function(e,t,n,i){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):r(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})},za=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(a=u[0]&2?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]c&&(M=c),{start:t.positionAt(M),end:t.positionAt(N)}}function T(M,N){var z=f(M,N);return o.forEach(function(G){G.provideTags().forEach(function(Y){a.items.push({label:Y.name,kind:_e.Property,documentation:rt(Y,void 0,l),textEdit:ae.replace(z,Y.name),insertTextFormat:Me.PlainText})})}),a}function y(M){for(var N=M;N>0;){var z=u.charAt(N-1);if(` -\r`.indexOf(z)>=0)return u.substring(N,M);if(!cn(z))return null;N--}return u.substring(0,M)}function v(M,N,z){z===void 0&&(z=c);var G=f(M,z),Y=Ba(u,z,V.WithinEndTag,I.EndTagClose)?"":">",$=d;for(N&&($=$.parent);$;){var X=$.tag;if(X&&(!$.closed||$.endTagStart&&$.endTagStart>c)){var me={label:"/"+X,kind:_e.Property,filterText:"/"+X,textEdit:ae.replace(G,"/"+X+Y),insertTextFormat:Me.PlainText},Fe=y($.start),tt=y(M-1);if(Fe!==null&&tt!==null&&Fe!==tt){var xe=Fe+"",kind:_e.Property,filterText:"",textEdit:ae.insert(z,"$0"),insertTextFormat:Me.Snippet})}return a}function W(M,N){return T(M,N),v(M,!0,N),a}function H(){var M=Object.create(null);return d.attributeNames.forEach(function(N){M[N]=!0}),M}function O(M,N){var z;N===void 0&&(N=c);for(var G=c;GM&&c<=N&&Fl(u[M])){var $=M+1,X=N;N>M&&u[N-1]===u[M]&&X--;var me=zl(u,c,$),Fe=Bl(u,c,X);z=f(me,Fe),Y=c>=$&&c<=X?u.substring($,c):"",G=!1}else z=f(M,N),Y=u.substring(M,c),G=!0;if(s.length>0)for(var tt=p.toLowerCase(),xe=b.toLowerCase(),at=f(M,N),Ne=0,Ka=s;Ne=0&&It(u,M);)M--,N--;if(M>=0&&u[M]==="&"){var z=J.create(ue.create(n.line,N-1),n);for(var G in Nt)if(_l(G,";")){var Y="&"+G;a.items.push({label:Y,kind:_e.Keyword,documentation:Wl("entity.propose","Character entity representing '".concat(Nt[G],"'")),textEdit:ae.replace(z,Y),insertTextFormat:Me.PlainText})}}return a}function A(M,N){var z=f(M,N);a.items.push({label:"!DOCTYPE",kind:_e.Property,documentation:"A preamble for an HTML document.",textEdit:ae.replace(z,"!DOCTYPE html>"),insertTextFormat:Me.PlainText})}for(var R=m.scan();R!==I.EOS&&m.getTokenOffset()<=c;){switch(R){case I.StartTagOpen:if(m.getTokenEnd()===c){var U=_(I.StartTag);return n.line===0&&A(c,U),W(c,U)}break;case I.StartTag:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return T(m.getTokenOffset(),m.getTokenEnd());p=m.getTokenText();break;case I.AttributeName:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return O(m.getTokenOffset(),m.getTokenEnd());b=m.getTokenText();break;case I.DelimiterAssign:if(m.getTokenEnd()===c){var U=_(I.AttributeValue);return g(c,U)}break;case I.AttributeValue:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return g(m.getTokenOffset(),m.getTokenEnd());break;case I.Whitespace:if(c<=m.getTokenEnd())switch(m.getScannerState()){case V.AfterOpeningStartTag:var F=m.getTokenOffset(),B=_(I.StartTag);return W(F,B);case V.WithinTag:case V.AfterAttributeName:return O(m.getTokenEnd());case V.BeforeAttributeValue:return g(m.getTokenEnd());case V.AfterOpeningEndTag:return v(m.getTokenOffset()-1,!1);case V.WithinContent:return L()}break;case I.EndTagOpen:if(c<=m.getTokenEnd()){var E=m.getTokenOffset()+1,k=_(I.EndTag);return v(E,!1,k)}break;case I.EndTag:if(c<=m.getTokenEnd())for(var D=m.getTokenOffset()-1;D>=0;){var P=u.charAt(D);if(P==="/")return v(D,!1,m.getTokenEnd());if(!cn(P))break;D--}break;case I.StartTagClose:if(c<=m.getTokenEnd()&&p)return S(m.getTokenEnd(),p);break;case I.Content:if(c<=m.getTokenEnd())return L();break;default:if(c<=m.getTokenEnd())return a;break}R=m.scan()}return a},e.prototype.doQuoteComplete=function(t,n,i,r){var a,s=t.offsetAt(n);if(s<=0)return null;var o=(a=r==null?void 0:r.attributeDefaultValue)!==null&&a!==void 0?a:"doublequotes";if(o==="empty")return null;var l=t.getText().charAt(s-1);if(l!=="=")return null;var u=o==="doublequotes"?'"$1"':"'$1'",c=i.findNodeBefore(s);if(c&&c.attributes&&c.starts))for(var d=ye(t.getText(),c.start),m=d.scan();m!==I.EOS&&d.getTokenEnd()<=s;){if(m===I.AttributeName&&d.getTokenEnd()===s-1)return m=d.scan(),m!==I.DelimiterAssign||(m=d.scan(),m===I.Unknown||m===I.AttributeValue)?null:u;m=d.scan()}return null},e.prototype.doTagComplete=function(t,n,i){var r=t.offsetAt(n);if(r<=0)return null;var a=t.getText().charAt(r-1);if(a===">"){var s=i.findNodeBefore(r);if(s&&s.tag&&!ln(s.tag)&&s.startr))for(var o=ye(t.getText(),s.start),l=o.scan();l!==I.EOS&&o.getTokenEnd()<=r;){if(l===I.StartTagClose&&o.getTokenEnd()===r)return"$0");l=o.scan()}}else if(a==="/"){for(var s=i.findNodeBefore(r);s&&s.closed&&!(s.endTagStart&&s.endTagStart>r);)s=s.parent;if(s&&s.tag)for(var o=ye(t.getText(),s.start),l=o.scan();l!==I.EOS&&o.getTokenEnd()<=r;){if(l===I.EndTagOpen&&o.getTokenEnd()===r)return"".concat(s.tag,">");l=o.scan()}}return null},e.prototype.convertCompletionList=function(t){return this.doesSupportMarkdown()||t.items.forEach(function(n){n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),t},e.prototype.doesSupportMarkdown=function(){var t,n,i;if(!un(this.supportsMarkdown)){if(!un(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var r=(i=(n=(t=this.lsOptions.clientCapabilities.textDocument)===null||t===void 0?void 0:t.completion)===null||n===void 0?void 0:n.completionItem)===null||i===void 0?void 0:i.documentationFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(Re.Markdown)!==-1}return this.supportsMarkdown},e}();function Fl(e){return/^["']*$/.test(e)}function cn(e){return/^\s*$/.test(e)}function Ba(e,t,n,i){for(var r=ye(e,t,n),a=r.scan();a===I.Whitespace;)a=r.scan();return a===i}function zl(e,t,n){for(;t>n&&!cn(e[t-1]);)t--;return t}function Bl(e,t,n){for(;t=0&&It(u,A);)A--,R--;for(var U=A+1,F=R;It(u,U);)U++,F++;if(A>=0&&u[A]==="&"){var B=null;return u[U]===";"?B=J.create(ue.create(n.line,R),ue.create(n.line,F+1)):B=J.create(ue.create(n.line,R),ue.create(n.line,F)),B}return null}function y(A){for(var R=o-1,U="&";R>=0&&It(A,R);)R--;for(R=R+1;It(A,R);)U+=A[R],R+=1;return U+=";",U}if(l.endTagStart&&o>=l.endTagStart){var v=f(I.EndTag,l.endTagStart);return v?d(l.tag,v):null}var S=f(I.StartTag,l.start);if(S)return d(l.tag,S);var W=f(I.AttributeName,l.start);if(W){var H=l.tag,O=t.getText(W);return m(H,O,W)}var w=T();if(w)return b(u,w);function g(A,R){for(var U=ye(t.getText(),A),F=U.scan(),B=void 0;F!==I.EOS&&U.getTokenEnd()<=R;)F=U.scan(),F===I.AttributeName&&(B=U.getTokenText());return B}var _=f(I.AttributeValue,l.start);if(_){var H=l.tag,L=Vl(t.getText(_)),x=g(l.start,t.offsetAt(_.start));if(x)return p(H,x,L,_)}return null},e.prototype.convertContents=function(t){if(!this.doesSupportMarkdown()){if(typeof t=="string")return t;if("kind"in t)return{kind:"plaintext",value:t.value};if(Array.isArray(t))t.map(function(n){return typeof n=="string"?n:n.value});else return t.value}return t},e.prototype.doesSupportMarkdown=function(){var t,n,i;if(!un(this.supportsMarkdown)){if(!un(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var r=(i=(n=(t=this.lsOptions.clientCapabilities)===null||t===void 0?void 0:t.textDocument)===null||n===void 0?void 0:n.hover)===null||i===void 0?void 0:i.contentFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(Re.Markdown)!==-1}return this.supportsMarkdown},e}();function Vl(e){return e.length<=1?e.replace(/['"]/,""):((e[0]==="'"||e[0]==='"')&&(e=e.slice(1)),(e[e.length-1]==="'"||e[e.length-1]==='"')&&(e=e.slice(0,-1)),e)}function jl(e,t){return e}var Oa;(function(){var e=[,,function(r){function a(l){this.__parent=l,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var l=new a(this.__parent);return l.set_indent(this.__indent_count,this.__alignment_count),l},a.prototype.item=function(l){return l<0?this.__items[this.__items.length+l]:this.__items[l]},a.prototype.has_match=function(l){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(l))return!0;return!1},a.prototype.set_indent=function(l,u){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(l){this.__items.push(l);var u=l.lastIndexOf(` +`)),i.value!=="")return i}var Fa=function(e,t,n,i){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):r(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})},za=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(a=u[0]&2?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]c&&(M=c),{start:t.positionAt(M),end:t.positionAt(N)}}function T(M,N){var z=f(M,N);return o.forEach(function(G){G.provideTags().forEach(function(J){a.items.push({label:J.name,kind:_e.Property,documentation:rt(J,void 0,l),textEdit:ae.replace(z,J.name),insertTextFormat:Me.PlainText})})}),a}function y(M){for(var N=M;N>0;){var z=u.charAt(N-1);if(` +\r`.indexOf(z)>=0)return u.substring(N,M);if(!cn(z))return null;N--}return u.substring(0,M)}function v(M,N,z){z===void 0&&(z=c);var G=f(M,z),J=Ba(u,z,V.WithinEndTag,I.EndTagClose)?"":">",$=d;for(N&&($=$.parent);$;){var X=$.tag;if(X&&(!$.closed||$.endTagStart&&$.endTagStart>c)){var me={label:"/"+X,kind:_e.Property,filterText:"/"+X,textEdit:ae.replace(G,"/"+X+J),insertTextFormat:Me.PlainText},Fe=y($.start),tt=y(M-1);if(Fe!==null&&tt!==null&&Fe!==tt){var xe=Fe+"",kind:_e.Property,filterText:"",textEdit:ae.insert(z,"$0"),insertTextFormat:Me.Snippet})}return a}function W(M,N){return T(M,N),v(M,!0,N),a}function H(){var M=Object.create(null);return d.attributeNames.forEach(function(N){M[N]=!0}),M}function O(M,N){var z;N===void 0&&(N=c);for(var G=c;GM&&c<=N&&Fl(u[M])){var $=M+1,X=N;N>M&&u[N-1]===u[M]&&X--;var me=zl(u,c,$),Fe=Bl(u,c,X);z=f(me,Fe),J=c>=$&&c<=X?u.substring($,c):"",G=!1}else z=f(M,N),J=u.substring(M,c),G=!0;if(s.length>0)for(var tt=p.toLowerCase(),xe=b.toLowerCase(),at=f(M,N),Ne=0,Ka=s;Ne=0&&It(u,M);)M--,N--;if(M>=0&&u[M]==="&"){var z=Y.create(ue.create(n.line,N-1),n);for(var G in Nt)if(_l(G,";")){var J="&"+G;a.items.push({label:J,kind:_e.Keyword,documentation:Wl("entity.propose","Character entity representing '".concat(Nt[G],"'")),textEdit:ae.replace(z,J),insertTextFormat:Me.PlainText})}}return a}function A(M,N){var z=f(M,N);a.items.push({label:"!DOCTYPE",kind:_e.Property,documentation:"A preamble for an HTML document.",textEdit:ae.replace(z,"!DOCTYPE html>"),insertTextFormat:Me.PlainText})}for(var R=m.scan();R!==I.EOS&&m.getTokenOffset()<=c;){switch(R){case I.StartTagOpen:if(m.getTokenEnd()===c){var U=_(I.StartTag);return n.line===0&&A(c,U),W(c,U)}break;case I.StartTag:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return T(m.getTokenOffset(),m.getTokenEnd());p=m.getTokenText();break;case I.AttributeName:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return O(m.getTokenOffset(),m.getTokenEnd());b=m.getTokenText();break;case I.DelimiterAssign:if(m.getTokenEnd()===c){var U=_(I.AttributeValue);return g(c,U)}break;case I.AttributeValue:if(m.getTokenOffset()<=c&&c<=m.getTokenEnd())return g(m.getTokenOffset(),m.getTokenEnd());break;case I.Whitespace:if(c<=m.getTokenEnd())switch(m.getScannerState()){case V.AfterOpeningStartTag:var F=m.getTokenOffset(),B=_(I.StartTag);return W(F,B);case V.WithinTag:case V.AfterAttributeName:return O(m.getTokenEnd());case V.BeforeAttributeValue:return g(m.getTokenEnd());case V.AfterOpeningEndTag:return v(m.getTokenOffset()-1,!1);case V.WithinContent:return L()}break;case I.EndTagOpen:if(c<=m.getTokenEnd()){var E=m.getTokenOffset()+1,k=_(I.EndTag);return v(E,!1,k)}break;case I.EndTag:if(c<=m.getTokenEnd())for(var D=m.getTokenOffset()-1;D>=0;){var P=u.charAt(D);if(P==="/")return v(D,!1,m.getTokenEnd());if(!cn(P))break;D--}break;case I.StartTagClose:if(c<=m.getTokenEnd()&&p)return S(m.getTokenEnd(),p);break;case I.Content:if(c<=m.getTokenEnd())return L();break;default:if(c<=m.getTokenEnd())return a;break}R=m.scan()}return a},e.prototype.doQuoteComplete=function(t,n,i,r){var a,s=t.offsetAt(n);if(s<=0)return null;var o=(a=r==null?void 0:r.attributeDefaultValue)!==null&&a!==void 0?a:"doublequotes";if(o==="empty")return null;var l=t.getText().charAt(s-1);if(l!=="=")return null;var u=o==="doublequotes"?'"$1"':"'$1'",c=i.findNodeBefore(s);if(c&&c.attributes&&c.starts))for(var d=ye(t.getText(),c.start),m=d.scan();m!==I.EOS&&d.getTokenEnd()<=s;){if(m===I.AttributeName&&d.getTokenEnd()===s-1)return m=d.scan(),m!==I.DelimiterAssign||(m=d.scan(),m===I.Unknown||m===I.AttributeValue)?null:u;m=d.scan()}return null},e.prototype.doTagComplete=function(t,n,i){var r=t.offsetAt(n);if(r<=0)return null;var a=t.getText().charAt(r-1);if(a===">"){var s=i.findNodeBefore(r);if(s&&s.tag&&!ln(s.tag)&&s.startr))for(var o=ye(t.getText(),s.start),l=o.scan();l!==I.EOS&&o.getTokenEnd()<=r;){if(l===I.StartTagClose&&o.getTokenEnd()===r)return"$0");l=o.scan()}}else if(a==="/"){for(var s=i.findNodeBefore(r);s&&s.closed&&!(s.endTagStart&&s.endTagStart>r);)s=s.parent;if(s&&s.tag)for(var o=ye(t.getText(),s.start),l=o.scan();l!==I.EOS&&o.getTokenEnd()<=r;){if(l===I.EndTagOpen&&o.getTokenEnd()===r)return"".concat(s.tag,">");l=o.scan()}}return null},e.prototype.convertCompletionList=function(t){return this.doesSupportMarkdown()||t.items.forEach(function(n){n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),t},e.prototype.doesSupportMarkdown=function(){var t,n,i;if(!un(this.supportsMarkdown)){if(!un(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var r=(i=(n=(t=this.lsOptions.clientCapabilities.textDocument)===null||t===void 0?void 0:t.completion)===null||n===void 0?void 0:n.completionItem)===null||i===void 0?void 0:i.documentationFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(Re.Markdown)!==-1}return this.supportsMarkdown},e}();function Fl(e){return/^["']*$/.test(e)}function cn(e){return/^\s*$/.test(e)}function Ba(e,t,n,i){for(var r=ye(e,t,n),a=r.scan();a===I.Whitespace;)a=r.scan();return a===i}function zl(e,t,n){for(;t>n&&!cn(e[t-1]);)t--;return t}function Bl(e,t,n){for(;t=0&&It(u,A);)A--,R--;for(var U=A+1,F=R;It(u,U);)U++,F++;if(A>=0&&u[A]==="&"){var B=null;return u[U]===";"?B=Y.create(ue.create(n.line,R),ue.create(n.line,F+1)):B=Y.create(ue.create(n.line,R),ue.create(n.line,F)),B}return null}function y(A){for(var R=o-1,U="&";R>=0&&It(A,R);)R--;for(R=R+1;It(A,R);)U+=A[R],R+=1;return U+=";",U}if(l.endTagStart&&o>=l.endTagStart){var v=f(I.EndTag,l.endTagStart);return v?d(l.tag,v):null}var S=f(I.StartTag,l.start);if(S)return d(l.tag,S);var W=f(I.AttributeName,l.start);if(W){var H=l.tag,O=t.getText(W);return m(H,O,W)}var w=T();if(w)return b(u,w);function g(A,R){for(var U=ye(t.getText(),A),F=U.scan(),B=void 0;F!==I.EOS&&U.getTokenEnd()<=R;)F=U.scan(),F===I.AttributeName&&(B=U.getTokenText());return B}var _=f(I.AttributeValue,l.start);if(_){var H=l.tag,L=Vl(t.getText(_)),x=g(l.start,t.offsetAt(_.start));if(x)return p(H,x,L,_)}return null},e.prototype.convertContents=function(t){if(!this.doesSupportMarkdown()){if(typeof t=="string")return t;if("kind"in t)return{kind:"plaintext",value:t.value};if(Array.isArray(t))t.map(function(n){return typeof n=="string"?n:n.value});else return t.value}return t},e.prototype.doesSupportMarkdown=function(){var t,n,i;if(!un(this.supportsMarkdown)){if(!un(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var r=(i=(n=(t=this.lsOptions.clientCapabilities)===null||t===void 0?void 0:t.textDocument)===null||n===void 0?void 0:n.hover)===null||i===void 0?void 0:i.contentFormat;this.supportsMarkdown=Array.isArray(r)&&r.indexOf(Re.Markdown)!==-1}return this.supportsMarkdown},e}();function Vl(e){return e.length<=1?e.replace(/['"]/,""):((e[0]==="'"||e[0]==='"')&&(e=e.slice(1)),(e[e.length-1]==="'"||e[e.length-1]==='"')&&(e=e.slice(0,-1)),e)}function jl(e,t){return e}var Oa;(function(){var e=[,,function(r){function a(l){this.__parent=l,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var l=new a(this.__parent);return l.set_indent(this.__indent_count,this.__alignment_count),l},a.prototype.item=function(l){return l<0?this.__items[this.__items.length+l]:this.__items[l]},a.prototype.has_match=function(l){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(l))return!0;return!1},a.prototype.set_indent=function(l,u){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(l){this.__items.push(l);var u=l.lastIndexOf(` `);u!==-1?this.__character_count=l.length-u:this.__character_count+=l.length},a.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function s(l,u){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),u=u||"",l.indent_level>0&&(u=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}s.prototype.get_indent_size=function(l,u){var c=this.__base_string_length;return u=u||0,l<0&&(c=0),c+=l*this.__indent_size,c+=u,c},s.prototype.get_indent_string=function(l,u){var c=this.__base_string;return u=u||0,l<0&&(l=0,c=""),u+=l*this.__indent_size,this.__ensure_cache(u),c+=this.__cache[u],c},s.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},s.prototype.__add_column=function(){var l=this.__cache.length,u=0,c="";this.__indent_size&&l>=this.__indent_size&&(u=Math.floor(l/this.__indent_size),l-=u*this.__indent_size,c=new Array(u+1).join(this.__indent_string)),l&&(c+=new Array(l+1).join(" ")),this.__cache.push(c)};function o(l,u){this.__indent_cache=new s(l,u),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(l,u){return this.__indent_cache.get_indent_string(l,u)},o.prototype.get_indent_size=function(l,u){return this.__indent_cache.get_indent_size(l,u)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(l){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===` `&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(` `);return l!==` @@ -52,11 +52,11 @@ You passed in: '`+this.raw_options[l]+"'");return d},a.prototype._is_valid_selec `)),x=B+x.replace(/\n/g,` `+B)}U&&(x?x=U+x+` `+F:x=U+F),w.print_newline(!1),x&&(g.text=x,g.whitespace_before="",g.newlines=0,w.add_raw_token(g),w.print_newline(!0))}},S.prototype._handle_tag_open=function(w,g,_,L){var x=this._get_tag_open_token(g);return(_.is_unformatted||_.is_content_unformatted)&&!_.is_empty_element&&g.type===c.TAG_OPEN&&g.text.indexOf("]*)/),this.tag_check=_?_[1]:""):(_=g.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=_?_[1]:"",g.text==="{{#>"&&this.tag_check===">"&&g.next!==null&&(this.tag_check=g.next.text)),this.tag_check=this.tag_check.toLowerCase(),g.type===c.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>",this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))}};S.prototype._get_tag_open_token=function(w){var g=new W(this._tag_stack.get_parser_token(),w);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||T(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&T(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&T(g.tag_check,this._options.content_unformatted),g.is_inline_element=T(g.tag_name,this._options.inline)||g.tag_start_char==="{",g},S.prototype._set_tag_position=function(w,g,_,L,x){if(_.is_empty_element||(_.is_end_tag?_.start_tag_token=this._tag_stack.try_pop(_.tag_name):(this._do_optional_end_element(_)&&(_.is_inline_element||w.print_newline(!1)),this._tag_stack.record_tag(_),(_.tag_name==="script"||_.tag_name==="style")&&!(_.is_unformatted||_.is_content_unformatted)&&(_.custom_beautifier_name=f(_.tag_check,g)))),T(_.tag_check,this._options.extra_liners)&&(w.print_newline(!1),w._output.just_added_blankline()||w.print_newline(!0)),_.is_empty_element){if(_.tag_start_char==="{"&&_.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_.indent_content=!0;var A=w.current_line_has_match(/{{#if/);A||w.print_newline(!1)}_.tag_name==="!--"&&x.type===c.TAG_CLOSE&&L.is_end_tag&&_.text.indexOf(` -`)===-1||(_.is_inline_element||_.is_unformatted||w.print_newline(!1),this._calcluate_parent_multiline(w,_))}else if(_.is_end_tag){var R=!1;R=_.start_tag_token&&_.start_tag_token.multiline_content,R=R||!_.is_inline_element&&!(L.is_inline_element||L.is_unformatted)&&!(x.type===c.TAG_CLOSE&&_.start_tag_token===L)&&x.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(R=!1),R&&w.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(x.type!=="TK_CONTENT"||_.is_content_unformatted)&&w.print_newline(!1),this._calcluate_parent_multiline(w,_)},S.prototype._calcluate_parent_multiline=function(w,g){g.parent&&w._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],O=["a","audio","del","ins","map","noscript","video"];S.prototype._do_optional_end_element=function(w){var g=null;if(!(w.is_empty_element||!w.is_start_tag||!w.parent)){if(w.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(w.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul"]);else if(w.tag_name==="dd"||w.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(w.parent.tag_name==="p"&&H.indexOf(w.tag_name)!==-1){var _=w.parent.parent;(!_||O.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else w.tag_name==="rp"||w.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):w.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):w.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):w.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):w.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):w.tag_name==="tbody"||w.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):w.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(w.tag_name==="th"||w.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return w.parent=this._tag_stack.get_parser_token(),g}},r.exports.Beautifier=S},function(r,a,s){var o=s(6).Options;function l(u){o.call(this,u,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}l.prototype=new o,r.exports.Options=l},function(r,a,s){var o=s(9).Tokenizer,l=s(9).TOKEN,u=s(13).Directives,c=s(14).TemplatablePattern,d=s(12).Pattern,m={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:l.START,RAW:l.RAW,EOF:l.EOF},p=new u(/<\!--/,/-->/),b=function(f,T){o.call(this,f,T),this._current_tag_name="";var y=new c(this._input).read_options(this._options),v=new d(this._input);if(this.__patterns={word:y.until(/[\n\r\t <]/),single_quote:y.until_after(/'/),double_quote:y.until_after(/"/),attribute:y.until(/[\n\r\t =>]|\/>/),element_name:y.until(/[\n\r\t >\/]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(//),cdata:v.starting_with(//),conditional_comment:v.starting_with(//),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var S=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(S).until_after(S)}};b.prototype=new o,b.prototype._is_comment=function(f){return!1},b.prototype._is_opening=function(f){return f.type===m.TAG_OPEN},b.prototype._is_closing=function(f,T){return f.type===m.TAG_CLOSE&&T&&((f.text===">"||f.text==="/>")&&T.text[0]==="<"||f.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")},b.prototype._reset=function(){this._current_tag_name=""},b.prototype._get_next_token=function(f,T){var y=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(m.EOF,""):(y=y||this._read_open_handlebars(v,T),y=y||this._read_attribute(v,f,T),y=y||this._read_close(v,T),y=y||this._read_raw_content(v,f,T),y=y||this._read_content_word(v),y=y||this._read_comment_or_cdata(v),y=y||this._read_processing(v),y=y||this._read_open(v,T),y=y||this._create_token(m.UNKNOWN,this._input.next()),y)},b.prototype._read_comment_or_cdata=function(f){var T=null,y=null,v=null;if(f==="<"){var S=this._input.peek(1);S==="!"&&(y=this.__patterns.comment.read(),y?(v=p.get_directives(y),v&&v.ignore==="start"&&(y+=p.readIgnored(this._input))):y=this.__patterns.cdata.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},b.prototype._read_processing=function(f){var T=null,y=null,v=null;if(f==="<"){var S=this._input.peek(1);(S==="!"||S==="?")&&(y=this.__patterns.conditional_comment.read(),y=y||this.__patterns.processing.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},b.prototype._read_open=function(f,T){var y=null,v=null;return T||f==="<"&&(y=this._input.next(),this._input.peek()==="/"&&(y+=this._input.next()),y+=this.__patterns.element_name.read(),v=this._create_token(m.TAG_OPEN,y)),v},b.prototype._read_open_handlebars=function(f,T){var y=null,v=null;return T||this._options.indent_handlebars&&f==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(y=this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars.read(),v=this._create_token(m.COMMENT,y)):(y=this.__patterns.handlebars_open.read(),v=this._create_token(m.TAG_OPEN,y))),v},b.prototype._read_close=function(f,T){var y=null,v=null;return T&&(T.text[0]==="<"&&(f===">"||f==="/"&&this._input.peek(1)===">")?(y=this._input.next(),f==="/"&&(y+=this._input.next()),v=this._create_token(m.TAG_CLOSE,y)):T.text[0]==="{"&&f==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(m.TAG_CLOSE,"}}"))),v},b.prototype._read_attribute=function(f,T,y){var v=null,S="";if(y&&y.text[0]==="<")if(f==="=")v=this._create_token(m.EQUALS,this._input.next());else if(f==='"'||f==="'"){var W=this._input.next();f==='"'?W+=this.__patterns.double_quote.read():W+=this.__patterns.single_quote.read(),v=this._create_token(m.VALUE,W)}else S=this.__patterns.attribute.read(),S&&(T.type===m.EQUALS?v=this._create_token(m.VALUE,S):v=this._create_token(m.ATTRIBUTE,S));return v},b.prototype._is_content_unformatted=function(f){return this._options.void_elements.indexOf(f)===-1&&(this._options.content_unformatted.indexOf(f)!==-1||this._options.unformatted.indexOf(f)!==-1)},b.prototype._read_raw_content=function(f,T,y){var v="";if(y&&y.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(T.type===m.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var S=T.opened.text.substr(1).toLowerCase();if(S==="script"||S==="style"){var W=this._read_comment_or_cdata(f);if(W)return W.type=m.TEXT,W;v=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(S)&&(v=this._input.readUntil(new RegExp("","ig")))}return v?this._create_token(m.TEXT,v):null},b.prototype._read_content_word=function(f){var T="";if(this._options.unformatted_content_delimiter&&f===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=this.__patterns.word.read()),T)return this._create_token(m.TEXT,T)},r.exports.Tokenizer=b,r.exports.TOKEN=m}],t={};function n(r){var a=t[r];if(a!==void 0)return a.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}var i=n(18);qa=i})();function $l(e,t){return qa(e,t,jl,Gl)}function Yl(e,t,n){var i=e.getText(),r=!0,a=0,s=n.tabSize||4;if(t){for(var o=e.offsetAt(t.start),l=o;l>0&&ja(i,l-1);)l--;l===0||Va(i,l-1)?o=l:l]*$/).test(d))return i=i.substring(o,u),[{range:t,newText:i}];if(r=u===i.length,i=i.substring(o,u),o!==0){var m=e.offsetAt(ue.create(t.start.line,0));a=Ql(e.getText(),m,n)}}else t=J.create(ue.create(0,0),e.positionAt(i.length));var p={indent_size:s,indent_char:n.insertSpaces?" ":" ",indent_empty_lines:Te(n,"indentEmptyLines",!1),wrap_line_length:Te(n,"wrapLineLength",120),unformatted:oi(n,"unformatted",void 0),content_unformatted:oi(n,"contentUnformatted",void 0),indent_inner_html:Te(n,"indentInnerHtml",!1),preserve_newlines:Te(n,"preserveNewLines",!0),max_preserve_newlines:Te(n,"maxPreserveNewLines",32786),indent_handlebars:Te(n,"indentHandlebars",!1),end_with_newline:r&&Te(n,"endWithNewline",!1),extra_liners:oi(n,"extraLiners",void 0),wrap_attributes:Te(n,"wrapAttributes","auto"),wrap_attributes_indent_size:Te(n,"wrapAttributesIndentSize",void 0),eol:` -`,indent_scripts:Te(n,"indentScripts","normal"),templating:Xl(n,"all"),unformatted_content_delimiter:Te(n,"unformattedContentDelimiter","")},b=$l(Jl(i),p);if(a>0){var f=n.insertSpaces?Wa(" ",s*a):Wa(" ",a);b=b.split(` +`)===-1||(_.is_inline_element||_.is_unformatted||w.print_newline(!1),this._calcluate_parent_multiline(w,_))}else if(_.is_end_tag){var R=!1;R=_.start_tag_token&&_.start_tag_token.multiline_content,R=R||!_.is_inline_element&&!(L.is_inline_element||L.is_unformatted)&&!(x.type===c.TAG_CLOSE&&_.start_tag_token===L)&&x.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(R=!1),R&&w.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(x.type!=="TK_CONTENT"||_.is_content_unformatted)&&w.print_newline(!1),this._calcluate_parent_multiline(w,_)},S.prototype._calcluate_parent_multiline=function(w,g){g.parent&&w._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],O=["a","audio","del","ins","map","noscript","video"];S.prototype._do_optional_end_element=function(w){var g=null;if(!(w.is_empty_element||!w.is_start_tag||!w.parent)){if(w.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(w.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul"]);else if(w.tag_name==="dd"||w.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(w.parent.tag_name==="p"&&H.indexOf(w.tag_name)!==-1){var _=w.parent.parent;(!_||O.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else w.tag_name==="rp"||w.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):w.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):w.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):w.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):w.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):w.tag_name==="tbody"||w.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):w.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(w.tag_name==="th"||w.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return w.parent=this._tag_stack.get_parser_token(),g}},r.exports.Beautifier=S},function(r,a,s){var o=s(6).Options;function l(u){o.call(this,u,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}l.prototype=new o,r.exports.Options=l},function(r,a,s){var o=s(9).Tokenizer,l=s(9).TOKEN,u=s(13).Directives,c=s(14).TemplatablePattern,d=s(12).Pattern,m={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:l.START,RAW:l.RAW,EOF:l.EOF},p=new u(/<\!--/,/-->/),b=function(f,T){o.call(this,f,T),this._current_tag_name="";var y=new c(this._input).read_options(this._options),v=new d(this._input);if(this.__patterns={word:y.until(/[\n\r\t <]/),single_quote:y.until_after(/'/),double_quote:y.until_after(/"/),attribute:y.until(/[\n\r\t =>]|\/>/),element_name:y.until(/[\n\r\t >\/]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(//),cdata:v.starting_with(//),conditional_comment:v.starting_with(//),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var S=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(S).until_after(S)}};b.prototype=new o,b.prototype._is_comment=function(f){return!1},b.prototype._is_opening=function(f){return f.type===m.TAG_OPEN},b.prototype._is_closing=function(f,T){return f.type===m.TAG_CLOSE&&T&&((f.text===">"||f.text==="/>")&&T.text[0]==="<"||f.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")},b.prototype._reset=function(){this._current_tag_name=""},b.prototype._get_next_token=function(f,T){var y=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(m.EOF,""):(y=y||this._read_open_handlebars(v,T),y=y||this._read_attribute(v,f,T),y=y||this._read_close(v,T),y=y||this._read_raw_content(v,f,T),y=y||this._read_content_word(v),y=y||this._read_comment_or_cdata(v),y=y||this._read_processing(v),y=y||this._read_open(v,T),y=y||this._create_token(m.UNKNOWN,this._input.next()),y)},b.prototype._read_comment_or_cdata=function(f){var T=null,y=null,v=null;if(f==="<"){var S=this._input.peek(1);S==="!"&&(y=this.__patterns.comment.read(),y?(v=p.get_directives(y),v&&v.ignore==="start"&&(y+=p.readIgnored(this._input))):y=this.__patterns.cdata.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},b.prototype._read_processing=function(f){var T=null,y=null,v=null;if(f==="<"){var S=this._input.peek(1);(S==="!"||S==="?")&&(y=this.__patterns.conditional_comment.read(),y=y||this.__patterns.processing.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},b.prototype._read_open=function(f,T){var y=null,v=null;return T||f==="<"&&(y=this._input.next(),this._input.peek()==="/"&&(y+=this._input.next()),y+=this.__patterns.element_name.read(),v=this._create_token(m.TAG_OPEN,y)),v},b.prototype._read_open_handlebars=function(f,T){var y=null,v=null;return T||this._options.indent_handlebars&&f==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(y=this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars.read(),v=this._create_token(m.COMMENT,y)):(y=this.__patterns.handlebars_open.read(),v=this._create_token(m.TAG_OPEN,y))),v},b.prototype._read_close=function(f,T){var y=null,v=null;return T&&(T.text[0]==="<"&&(f===">"||f==="/"&&this._input.peek(1)===">")?(y=this._input.next(),f==="/"&&(y+=this._input.next()),v=this._create_token(m.TAG_CLOSE,y)):T.text[0]==="{"&&f==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(m.TAG_CLOSE,"}}"))),v},b.prototype._read_attribute=function(f,T,y){var v=null,S="";if(y&&y.text[0]==="<")if(f==="=")v=this._create_token(m.EQUALS,this._input.next());else if(f==='"'||f==="'"){var W=this._input.next();f==='"'?W+=this.__patterns.double_quote.read():W+=this.__patterns.single_quote.read(),v=this._create_token(m.VALUE,W)}else S=this.__patterns.attribute.read(),S&&(T.type===m.EQUALS?v=this._create_token(m.VALUE,S):v=this._create_token(m.ATTRIBUTE,S));return v},b.prototype._is_content_unformatted=function(f){return this._options.void_elements.indexOf(f)===-1&&(this._options.content_unformatted.indexOf(f)!==-1||this._options.unformatted.indexOf(f)!==-1)},b.prototype._read_raw_content=function(f,T,y){var v="";if(y&&y.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(T.type===m.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var S=T.opened.text.substr(1).toLowerCase();if(S==="script"||S==="style"){var W=this._read_comment_or_cdata(f);if(W)return W.type=m.TEXT,W;v=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(S)&&(v=this._input.readUntil(new RegExp("","ig")))}return v?this._create_token(m.TEXT,v):null},b.prototype._read_content_word=function(f){var T="";if(this._options.unformatted_content_delimiter&&f===this._options.unformatted_content_delimiter[0]&&(T=this.__patterns.unformatted_content_delimiter.read()),T||(T=this.__patterns.word.read()),T)return this._create_token(m.TEXT,T)},r.exports.Tokenizer=b,r.exports.TOKEN=m}],t={};function n(r){var a=t[r];if(a!==void 0)return a.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}var i=n(18);qa=i})();function $l(e,t){return qa(e,t,jl,Gl)}function Jl(e,t,n){var i=e.getText(),r=!0,a=0,s=n.tabSize||4;if(t){for(var o=e.offsetAt(t.start),l=o;l>0&&ja(i,l-1);)l--;l===0||Va(i,l-1)?o=l:l]*$/).test(d))return i=i.substring(o,u),[{range:t,newText:i}];if(r=u===i.length,i=i.substring(o,u),o!==0){var m=e.offsetAt(ue.create(t.start.line,0));a=Ql(e.getText(),m,n)}}else t=Y.create(ue.create(0,0),e.positionAt(i.length));var p={indent_size:s,indent_char:n.insertSpaces?" ":" ",indent_empty_lines:Te(n,"indentEmptyLines",!1),wrap_line_length:Te(n,"wrapLineLength",120),unformatted:oi(n,"unformatted",void 0),content_unformatted:oi(n,"contentUnformatted",void 0),indent_inner_html:Te(n,"indentInnerHtml",!1),preserve_newlines:Te(n,"preserveNewLines",!0),max_preserve_newlines:Te(n,"maxPreserveNewLines",32786),indent_handlebars:Te(n,"indentHandlebars",!1),end_with_newline:r&&Te(n,"endWithNewline",!1),extra_liners:oi(n,"extraLiners",void 0),wrap_attributes:Te(n,"wrapAttributes","auto"),wrap_attributes_indent_size:Te(n,"wrapAttributesIndentSize",void 0),eol:` +`,indent_scripts:Te(n,"indentScripts","normal"),templating:Xl(n,"all"),unformatted_content_delimiter:Te(n,"unformattedContentDelimiter","")},b=$l(Yl(i),p);if(a>0){var f=n.insertSpaces?Wa(" ",s*a):Wa(" ",a);b=b.split(` `).join(` -`+f),t.start.character===0&&(b=f+b)}return[{range:t,newText:b}]}function Jl(e){return e.replace(/^\s+/,"")}function Te(e,t,n){if(e&&e.hasOwnProperty(t)){var i=e[t];if(i!==null)return i}return n}function oi(e,t,n){var i=Te(e,t,null);return typeof i=="string"?i.length>0?i.split(",").map(function(r){return r.trim().toLowerCase()}):[]:n}function Xl(e,t){var n=Te(e,"templating",t);return n===!0?["auto"]:["none"]}function Ql(e,t,n){for(var i=t,r=0,a=n.tabSize||4;i{var e={470:i=>{function r(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,l){for(var u,c="",d=0,m=-1,p=0,b=0;b<=o.length;++b){if(b2){var f=c.lastIndexOf("/");if(f!==c.length-1){f===-1?(c="",d=0):d=(c=c.slice(0,f)).length-1-c.lastIndexOf("/"),m=b,p=0;continue}}else if(c.length===2||c.length===1){c="",d=0,m=b,p=0;continue}}l&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(m+1,b):c=o.slice(m+1,b),d=b-m-1;m=b,p=0}else u===46&&p!==-1?++p:p=-1}return c}var s={resolve:function(){for(var o,l="",u=!1,c=arguments.length-1;c>=-1&&!u;c--){var d;c>=0?d=arguments[c]:(o===void 0&&(o=process.cwd()),d=o),r(d),d.length!==0&&(l=d+"/"+l,u=d.charCodeAt(0)===47)}return l=a(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(r(o),o.length===0)return".";var l=o.charCodeAt(0)===47,u=o.charCodeAt(o.length-1)===47;return(o=a(o,!l)).length!==0||l||(o="."),o.length>0&&u&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return r(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l0&&(o===void 0?o=u:o+="/"+u)}return o===void 0?".":s.normalize(o)},relative:function(o,l){if(r(o),r(l),o===l||(o=s.resolve(o))===(l=s.resolve(l)))return"";for(var u=1;ub){if(l.charCodeAt(m+T)===47)return l.slice(m+T+1);if(T===0)return l.slice(m+T)}else d>b&&(o.charCodeAt(u+T)===47?f=T:T===0&&(f=0));break}var y=o.charCodeAt(u+T);if(y!==l.charCodeAt(m+T))break;y===47&&(f=T)}var v="";for(T=u+f+1;T<=c;++T)T!==c&&o.charCodeAt(T)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+l.slice(m+f):(m+=f,l.charCodeAt(m)===47&&++m,l.slice(m))},_makeLong:function(o){return o},dirname:function(o){if(r(o),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,c=-1,d=!0,m=o.length-1;m>=1;--m)if((l=o.charCodeAt(m))===47){if(!d){c=m;break}}else d=!1;return c===-1?u?"/":".":u&&c===1?"//":o.slice(0,c)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');r(o);var u,c=0,d=-1,m=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var p=l.length-1,b=-1;for(u=o.length-1;u>=0;--u){var f=o.charCodeAt(u);if(f===47){if(!m){c=u+1;break}}else b===-1&&(m=!1,b=u+1),p>=0&&(f===l.charCodeAt(p)?--p==-1&&(d=u):(p=-1,d=b))}return c===d?d=b:d===-1&&(d=o.length),o.slice(c,d)}for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!m){c=u+1;break}}else d===-1&&(m=!1,d=u+1);return d===-1?"":o.slice(c,d)},extname:function(o){r(o);for(var l=-1,u=0,c=-1,d=!0,m=0,p=o.length-1;p>=0;--p){var b=o.charCodeAt(p);if(b!==47)c===-1&&(d=!1,c=p+1),b===46?l===-1?l=p:m!==1&&(m=1):l!==-1&&(m=-1);else if(!d){u=p+1;break}}return l===-1||c===-1||m===0||m===1&&l===c-1&&l===u+1?"":o.slice(l,c)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,u){var c=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+d:c+"/"+d:d}(0,o)},parse:function(o){r(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var u,c=o.charCodeAt(0),d=c===47;d?(l.root="/",u=1):u=0;for(var m=-1,p=0,b=-1,f=!0,T=o.length-1,y=0;T>=u;--T)if((c=o.charCodeAt(T))!==47)b===-1&&(f=!1,b=T+1),c===46?m===-1?m=T:y!==1&&(y=1):m!==-1&&(y=-1);else if(!f){p=T+1;break}return m===-1||b===-1||y===0||y===1&&m===b-1&&m===p+1?b!==-1&&(l.base=l.name=p===0&&d?o.slice(1,b):o.slice(p,b)):(p===0&&d?(l.name=o.slice(1,m),l.base=o.slice(1,b)):(l.name=o.slice(p,m),l.base=o.slice(p,b)),l.ext=o.slice(m,b)),p>0?l.dir=o.slice(0,p-1):d&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s},447:(i,r,a)=>{var s;if(a.r(r),a.d(r,{URI:()=>v,Utils:()=>R}),typeof process=="object")s=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;s=o.indexOf("Windows")>=0}var l,u,c=(l=function(E,k){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,P){D.__proto__=P}||function(D,P){for(var M in P)Object.prototype.hasOwnProperty.call(P,M)&&(D[M]=P[M])})(E,k)},function(E,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function D(){this.constructor=E}l(E,k),E.prototype=k===null?Object.create(k):(D.prototype=k.prototype,new D)}),d=/^\w[\w\d+.-]*$/,m=/^\//,p=/^\/\//;function b(E,k){if(!E.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(E.authority,'", path: "').concat(E.path,'", query: "').concat(E.query,'", fragment: "').concat(E.fragment,'"}'));if(E.scheme&&!d.test(E.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(E.path){if(E.authority){if(!m.test(E.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(p.test(E.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var f="",T="/",y=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,v=function(){function E(k,D,P,M,N,z){z===void 0&&(z=!1),typeof k=="object"?(this.scheme=k.scheme||f,this.authority=k.authority||f,this.path=k.path||f,this.query=k.query||f,this.fragment=k.fragment||f):(this.scheme=function(G,Y){return G||Y?G:"file"}(k,z),this.authority=D||f,this.path=function(G,Y){switch(G){case"https":case"http":case"file":Y?Y[0]!==T&&(Y=T+Y):Y=T}return Y}(this.scheme,P||f),this.query=M||f,this.fragment=N||f,b(this,z))}return E.isUri=function(k){return k instanceof E||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="string"&&typeof k.with=="function"&&typeof k.toString=="function"},Object.defineProperty(E.prototype,"fsPath",{get:function(){return g(this,!1)},enumerable:!1,configurable:!0}),E.prototype.with=function(k){if(!k)return this;var D=k.scheme,P=k.authority,M=k.path,N=k.query,z=k.fragment;return D===void 0?D=this.scheme:D===null&&(D=f),P===void 0?P=this.authority:P===null&&(P=f),M===void 0?M=this.path:M===null&&(M=f),N===void 0?N=this.query:N===null&&(N=f),z===void 0?z=this.fragment:z===null&&(z=f),D===this.scheme&&P===this.authority&&M===this.path&&N===this.query&&z===this.fragment?this:new W(D,P,M,N,z)},E.parse=function(k,D){D===void 0&&(D=!1);var P=y.exec(k);return P?new W(P[2]||f,A(P[4]||f),A(P[5]||f),A(P[7]||f),A(P[9]||f),D):new W(f,f,f,f,f)},E.file=function(k){var D=f;if(s&&(k=k.replace(/\\/g,T)),k[0]===T&&k[1]===T){var P=k.indexOf(T,2);P===-1?(D=k.substring(2),k=T):(D=k.substring(2,P),k=k.substring(P)||T)}return new W("file",D,k,f,f)},E.from=function(k){var D=new W(k.scheme,k.authority,k.path,k.query,k.fragment);return b(D,!0),D},E.prototype.toString=function(k){return k===void 0&&(k=!1),_(this,k)},E.prototype.toJSON=function(){return this},E.revive=function(k){if(k){if(k instanceof E)return k;var D=new W(k);return D._formatted=k.external,D._fsPath=k._sep===S?k.fsPath:null,D}return k},E}(),S=s?1:void 0,W=function(E){function k(){var D=E!==null&&E.apply(this,arguments)||this;return D._formatted=null,D._fsPath=null,D}return c(k,E),Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),k.prototype.toString=function(D){return D===void 0&&(D=!1),D?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)},k.prototype.toJSON=function(){var D={$mid:1};return this._fsPath&&(D.fsPath=this._fsPath,D._sep=S),this._formatted&&(D.external=this._formatted),this.path&&(D.path=this.path),this.scheme&&(D.scheme=this.scheme),this.authority&&(D.authority=this.authority),this.query&&(D.query=this.query),this.fragment&&(D.fragment=this.fragment),D},k}(v),H=((u={})[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u);function O(E,k){for(var D=void 0,P=-1,M=0;M=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===45||N===46||N===95||N===126||k&&N===47)P!==-1&&(D+=encodeURIComponent(E.substring(P,M)),P=-1),D!==void 0&&(D+=E.charAt(M));else{D===void 0&&(D=E.substr(0,M));var z=H[N];z!==void 0?(P!==-1&&(D+=encodeURIComponent(E.substring(P,M)),P=-1),D+=z):P===-1&&(P=M)}}return P!==-1&&(D+=encodeURIComponent(E.substring(P))),D!==void 0?D:E}function w(E){for(var k=void 0,D=0;D1&&E.scheme==="file"?"//".concat(E.authority).concat(E.path):E.path.charCodeAt(0)===47&&(E.path.charCodeAt(1)>=65&&E.path.charCodeAt(1)<=90||E.path.charCodeAt(1)>=97&&E.path.charCodeAt(1)<=122)&&E.path.charCodeAt(2)===58?k?E.path.substr(1):E.path[1].toLowerCase()+E.path.substr(2):E.path,s&&(D=D.replace(/\//g,"\\")),D}function _(E,k){var D=k?w:O,P="",M=E.scheme,N=E.authority,z=E.path,G=E.query,Y=E.fragment;if(M&&(P+=M,P+=":"),(N||M==="file")&&(P+=T,P+=T),N){var $=N.indexOf("@");if($!==-1){var X=N.substr(0,$);N=N.substr($+1),($=X.indexOf(":"))===-1?P+=D(X,!1):(P+=D(X.substr(0,$),!1),P+=":",P+=D(X.substr($+1),!1)),P+="@"}($=(N=N.toLowerCase()).indexOf(":"))===-1?P+=D(N,!1):(P+=D(N.substr(0,$),!1),P+=N.substr($))}if(z){if(z.length>=3&&z.charCodeAt(0)===47&&z.charCodeAt(2)===58)(me=z.charCodeAt(1))>=65&&me<=90&&(z="/".concat(String.fromCharCode(me+32),":").concat(z.substr(3)));else if(z.length>=2&&z.charCodeAt(1)===58){var me;(me=z.charCodeAt(0))>=65&&me<=90&&(z="".concat(String.fromCharCode(me+32),":").concat(z.substr(2)))}P+=D(z,!0)}return G&&(P+="?",P+=D(G,!1)),Y&&(P+="#",P+=k?Y:O(Y,!1)),P}function L(E){try{return decodeURIComponent(E)}catch(k){return E.length>3?E.substr(0,3)+L(E.substr(3)):E}}var x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function A(E){return E.match(x)?E.replace(x,function(k){return L(k)}):E}var R,U=a(470),F=function(E,k,D){if(D||arguments.length===2)for(var P,M=0,N=k.length;M{for(var a in r)n.o(r,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:r[a]})},n.o=(i,r)=>Object.prototype.hasOwnProperty.call(i,r),n.r=i=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},n(447)})();var{URI:Zl,Utils:Eu}=Ga;function li(e){var t=e[0],n=e[e.length-1];return t===n&&(t==="'"||t==='"')&&(e=e.substr(1,e.length-2)),e}function Kl(e,t){return!e.length||t==="handlebars"&&/{{|}}/.test(e)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(e)}function eu(e,t,n,i){if(!(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))){if(t=t.replace(/^\s*/g,""),/^https?:\/\//i.test(t)||/^file:\/\//i.test(t))return t;if(/^\#/i.test(t))return e+t;if(/^\/\//i.test(t)){var r=et(e,"https://")?"https":"http";return r+":"+t.replace(/^\s*/g,"")}return n?n.resolveReference(t,i||e):t}}function tu(e,t,n,i,r,a){var s=li(n);if(Kl(s,e.languageId)){s.lengthn.startLine){if(l.endLine<=n.endLine)i.push(n),n=l,s(o,i.length);else if(l.startLine>n.endLine){do n=i.pop();while(n&&l.startLine>n.endLine);n&&i.push(n),n=l,s(o,i.length)}}}for(var u=0,c=0,o=0;ot){c=o;break}u+=d}}for(var m=[],o=0;o=0&&a[d].tagName!==s;)d--;if(d>=0){var m=a[d];a.length=d;var p=e.positionAt(n.getTokenOffset()).line,c=m.startLine,b=p-1;b>c&&o!==c&&l({startLine:c,endLine:b})}break}case I.Comment:{var c=e.positionAt(n.getTokenOffset()).line,f=n.getTokenText(),T=f.match(/^\s*#(region\b)|(endregion\b)/);if(T)if(T[1])a.push({startLine:c,tagName:""});else{for(var d=a.length-1;d>=0&&a[d].tagName.length;)d--;if(d>=0){var m=a[d];a.length=d;var b=c;c=m.startLine,b>c&&o!==c&&l({startLine:c,endLine:b,kind:Qt.Region})}}else{var b=e.positionAt(n.getTokenOffset()+n.getTokenLength()).line;cy?cu(r,y):r}function du(e,t){function n(i){for(var r=mu(e,i),a=void 0,s=void 0,o=r.length-1;o>=0;o--){var l=r[o];(!a||l[0]!==a[0]||l[1]!==a[1])&&(s=an.create(J.create(e.positionAt(r[o][0]),e.positionAt(r[o][1])),s)),a=l}return s||(s=an.create(J.create(i,i))),s}return t.map(n)}function mu(e,t){var n=Ua(e.getText()),i=e.offsetAt(t),r=n.findNodeAt(i),a=pu(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];var s=J.create(e.positionAt(r.startTagEnd-2),e.positionAt(r.startTagEnd)),o=e.getText(s);o==="/>"?a.unshift([r.start+1,r.startTagEnd-2]):a.unshift([r.start+1,r.startTagEnd-1]);var l=Za(e,r,i);return a=l.concat(a),a}if(!r.startTagEnd||!r.endTagStart)return a;if(a.unshift([r.start,r.end]),r.start=r.endTagStart+2&&a.unshift([r.endTagStart+2,r.end-1]),a)}function pu(e){for(var t=e,n=function(r){return r.startTagEnd&&r.endTagStart&&r.startTagEnd=s.getTokenOffset()&&a<=s.getTokenEnd()&&(u.unshift([s.getTokenOffset(),s.getTokenEnd()]),(m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'")&&a>=s.getTokenOffset()+1&&a<=s.getTokenEnd()-1&&u.unshift([s.getTokenOffset()+1,s.getTokenEnd()-1]),u.push([d,s.getTokenEnd()]));break}}o=s.scan()}return u.map(function(p){return[p[0]+l,p[1]+l]})}var fu={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `__x__` or `__X__`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `` element. It specifies the type of content being loaded by the ``, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `` element. When used on a `` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set. +`+f),t.start.character===0&&(b=f+b)}return[{range:t,newText:b}]}function Yl(e){return e.replace(/^\s+/,"")}function Te(e,t,n){if(e&&e.hasOwnProperty(t)){var i=e[t];if(i!==null)return i}return n}function oi(e,t,n){var i=Te(e,t,null);return typeof i=="string"?i.length>0?i.split(",").map(function(r){return r.trim().toLowerCase()}):[]:n}function Xl(e,t){var n=Te(e,"templating",t);return n===!0?["auto"]:["none"]}function Ql(e,t,n){for(var i=t,r=0,a=n.tabSize||4;i{var e={470:i=>{function r(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,l){for(var u,c="",d=0,m=-1,p=0,b=0;b<=o.length;++b){if(b2){var f=c.lastIndexOf("/");if(f!==c.length-1){f===-1?(c="",d=0):d=(c=c.slice(0,f)).length-1-c.lastIndexOf("/"),m=b,p=0;continue}}else if(c.length===2||c.length===1){c="",d=0,m=b,p=0;continue}}l&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(m+1,b):c=o.slice(m+1,b),d=b-m-1;m=b,p=0}else u===46&&p!==-1?++p:p=-1}return c}var s={resolve:function(){for(var o,l="",u=!1,c=arguments.length-1;c>=-1&&!u;c--){var d;c>=0?d=arguments[c]:(o===void 0&&(o=process.cwd()),d=o),r(d),d.length!==0&&(l=d+"/"+l,u=d.charCodeAt(0)===47)}return l=a(l,!u),u?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(r(o),o.length===0)return".";var l=o.charCodeAt(0)===47,u=o.charCodeAt(o.length-1)===47;return(o=a(o,!l)).length!==0||l||(o="."),o.length>0&&u&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return r(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l0&&(o===void 0?o=u:o+="/"+u)}return o===void 0?".":s.normalize(o)},relative:function(o,l){if(r(o),r(l),o===l||(o=s.resolve(o))===(l=s.resolve(l)))return"";for(var u=1;ub){if(l.charCodeAt(m+T)===47)return l.slice(m+T+1);if(T===0)return l.slice(m+T)}else d>b&&(o.charCodeAt(u+T)===47?f=T:T===0&&(f=0));break}var y=o.charCodeAt(u+T);if(y!==l.charCodeAt(m+T))break;y===47&&(f=T)}var v="";for(T=u+f+1;T<=c;++T)T!==c&&o.charCodeAt(T)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+l.slice(m+f):(m+=f,l.charCodeAt(m)===47&&++m,l.slice(m))},_makeLong:function(o){return o},dirname:function(o){if(r(o),o.length===0)return".";for(var l=o.charCodeAt(0),u=l===47,c=-1,d=!0,m=o.length-1;m>=1;--m)if((l=o.charCodeAt(m))===47){if(!d){c=m;break}}else d=!1;return c===-1?u?"/":".":u&&c===1?"//":o.slice(0,c)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');r(o);var u,c=0,d=-1,m=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var p=l.length-1,b=-1;for(u=o.length-1;u>=0;--u){var f=o.charCodeAt(u);if(f===47){if(!m){c=u+1;break}}else b===-1&&(m=!1,b=u+1),p>=0&&(f===l.charCodeAt(p)?--p==-1&&(d=u):(p=-1,d=b))}return c===d?d=b:d===-1&&(d=o.length),o.slice(c,d)}for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!m){c=u+1;break}}else d===-1&&(m=!1,d=u+1);return d===-1?"":o.slice(c,d)},extname:function(o){r(o);for(var l=-1,u=0,c=-1,d=!0,m=0,p=o.length-1;p>=0;--p){var b=o.charCodeAt(p);if(b!==47)c===-1&&(d=!1,c=p+1),b===46?l===-1?l=p:m!==1&&(m=1):l!==-1&&(m=-1);else if(!d){u=p+1;break}}return l===-1||c===-1||m===0||m===1&&l===c-1&&l===u+1?"":o.slice(l,c)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,u){var c=u.dir||u.root,d=u.base||(u.name||"")+(u.ext||"");return c?c===u.root?c+d:c+"/"+d:d}(0,o)},parse:function(o){r(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var u,c=o.charCodeAt(0),d=c===47;d?(l.root="/",u=1):u=0;for(var m=-1,p=0,b=-1,f=!0,T=o.length-1,y=0;T>=u;--T)if((c=o.charCodeAt(T))!==47)b===-1&&(f=!1,b=T+1),c===46?m===-1?m=T:y!==1&&(y=1):m!==-1&&(y=-1);else if(!f){p=T+1;break}return m===-1||b===-1||y===0||y===1&&m===b-1&&m===p+1?b!==-1&&(l.base=l.name=p===0&&d?o.slice(1,b):o.slice(p,b)):(p===0&&d?(l.name=o.slice(1,m),l.base=o.slice(1,b)):(l.name=o.slice(p,m),l.base=o.slice(p,b)),l.ext=o.slice(m,b)),p>0?l.dir=o.slice(0,p-1):d&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s},447:(i,r,a)=>{var s;if(a.r(r),a.d(r,{URI:()=>v,Utils:()=>R}),typeof process=="object")s=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;s=o.indexOf("Windows")>=0}var l,u,c=(l=function(E,k){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,P){D.__proto__=P}||function(D,P){for(var M in P)Object.prototype.hasOwnProperty.call(P,M)&&(D[M]=P[M])})(E,k)},function(E,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function D(){this.constructor=E}l(E,k),E.prototype=k===null?Object.create(k):(D.prototype=k.prototype,new D)}),d=/^\w[\w\d+.-]*$/,m=/^\//,p=/^\/\//;function b(E,k){if(!E.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(E.authority,'", path: "').concat(E.path,'", query: "').concat(E.query,'", fragment: "').concat(E.fragment,'"}'));if(E.scheme&&!d.test(E.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(E.path){if(E.authority){if(!m.test(E.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(p.test(E.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var f="",T="/",y=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,v=function(){function E(k,D,P,M,N,z){z===void 0&&(z=!1),typeof k=="object"?(this.scheme=k.scheme||f,this.authority=k.authority||f,this.path=k.path||f,this.query=k.query||f,this.fragment=k.fragment||f):(this.scheme=function(G,J){return G||J?G:"file"}(k,z),this.authority=D||f,this.path=function(G,J){switch(G){case"https":case"http":case"file":J?J[0]!==T&&(J=T+J):J=T}return J}(this.scheme,P||f),this.query=M||f,this.fragment=N||f,b(this,z))}return E.isUri=function(k){return k instanceof E||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="string"&&typeof k.with=="function"&&typeof k.toString=="function"},Object.defineProperty(E.prototype,"fsPath",{get:function(){return g(this,!1)},enumerable:!1,configurable:!0}),E.prototype.with=function(k){if(!k)return this;var D=k.scheme,P=k.authority,M=k.path,N=k.query,z=k.fragment;return D===void 0?D=this.scheme:D===null&&(D=f),P===void 0?P=this.authority:P===null&&(P=f),M===void 0?M=this.path:M===null&&(M=f),N===void 0?N=this.query:N===null&&(N=f),z===void 0?z=this.fragment:z===null&&(z=f),D===this.scheme&&P===this.authority&&M===this.path&&N===this.query&&z===this.fragment?this:new W(D,P,M,N,z)},E.parse=function(k,D){D===void 0&&(D=!1);var P=y.exec(k);return P?new W(P[2]||f,A(P[4]||f),A(P[5]||f),A(P[7]||f),A(P[9]||f),D):new W(f,f,f,f,f)},E.file=function(k){var D=f;if(s&&(k=k.replace(/\\/g,T)),k[0]===T&&k[1]===T){var P=k.indexOf(T,2);P===-1?(D=k.substring(2),k=T):(D=k.substring(2,P),k=k.substring(P)||T)}return new W("file",D,k,f,f)},E.from=function(k){var D=new W(k.scheme,k.authority,k.path,k.query,k.fragment);return b(D,!0),D},E.prototype.toString=function(k){return k===void 0&&(k=!1),_(this,k)},E.prototype.toJSON=function(){return this},E.revive=function(k){if(k){if(k instanceof E)return k;var D=new W(k);return D._formatted=k.external,D._fsPath=k._sep===S?k.fsPath:null,D}return k},E}(),S=s?1:void 0,W=function(E){function k(){var D=E!==null&&E.apply(this,arguments)||this;return D._formatted=null,D._fsPath=null,D}return c(k,E),Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),k.prototype.toString=function(D){return D===void 0&&(D=!1),D?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)},k.prototype.toJSON=function(){var D={$mid:1};return this._fsPath&&(D.fsPath=this._fsPath,D._sep=S),this._formatted&&(D.external=this._formatted),this.path&&(D.path=this.path),this.scheme&&(D.scheme=this.scheme),this.authority&&(D.authority=this.authority),this.query&&(D.query=this.query),this.fragment&&(D.fragment=this.fragment),D},k}(v),H=((u={})[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u);function O(E,k){for(var D=void 0,P=-1,M=0;M=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===45||N===46||N===95||N===126||k&&N===47)P!==-1&&(D+=encodeURIComponent(E.substring(P,M)),P=-1),D!==void 0&&(D+=E.charAt(M));else{D===void 0&&(D=E.substr(0,M));var z=H[N];z!==void 0?(P!==-1&&(D+=encodeURIComponent(E.substring(P,M)),P=-1),D+=z):P===-1&&(P=M)}}return P!==-1&&(D+=encodeURIComponent(E.substring(P))),D!==void 0?D:E}function w(E){for(var k=void 0,D=0;D1&&E.scheme==="file"?"//".concat(E.authority).concat(E.path):E.path.charCodeAt(0)===47&&(E.path.charCodeAt(1)>=65&&E.path.charCodeAt(1)<=90||E.path.charCodeAt(1)>=97&&E.path.charCodeAt(1)<=122)&&E.path.charCodeAt(2)===58?k?E.path.substr(1):E.path[1].toLowerCase()+E.path.substr(2):E.path,s&&(D=D.replace(/\//g,"\\")),D}function _(E,k){var D=k?w:O,P="",M=E.scheme,N=E.authority,z=E.path,G=E.query,J=E.fragment;if(M&&(P+=M,P+=":"),(N||M==="file")&&(P+=T,P+=T),N){var $=N.indexOf("@");if($!==-1){var X=N.substr(0,$);N=N.substr($+1),($=X.indexOf(":"))===-1?P+=D(X,!1):(P+=D(X.substr(0,$),!1),P+=":",P+=D(X.substr($+1),!1)),P+="@"}($=(N=N.toLowerCase()).indexOf(":"))===-1?P+=D(N,!1):(P+=D(N.substr(0,$),!1),P+=N.substr($))}if(z){if(z.length>=3&&z.charCodeAt(0)===47&&z.charCodeAt(2)===58)(me=z.charCodeAt(1))>=65&&me<=90&&(z="/".concat(String.fromCharCode(me+32),":").concat(z.substr(3)));else if(z.length>=2&&z.charCodeAt(1)===58){var me;(me=z.charCodeAt(0))>=65&&me<=90&&(z="".concat(String.fromCharCode(me+32),":").concat(z.substr(2)))}P+=D(z,!0)}return G&&(P+="?",P+=D(G,!1)),J&&(P+="#",P+=k?J:O(J,!1)),P}function L(E){try{return decodeURIComponent(E)}catch(k){return E.length>3?E.substr(0,3)+L(E.substr(3)):E}}var x=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function A(E){return E.match(x)?E.replace(x,function(k){return L(k)}):E}var R,U=a(470),F=function(E,k,D){if(D||arguments.length===2)for(var P,M=0,N=k.length;M{for(var a in r)n.o(r,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:r[a]})},n.o=(i,r)=>Object.prototype.hasOwnProperty.call(i,r),n.r=i=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},n(447)})();var{URI:Zl,Utils:Eu}=Ga;function li(e){var t=e[0],n=e[e.length-1];return t===n&&(t==="'"||t==='"')&&(e=e.substr(1,e.length-2)),e}function Kl(e,t){return!e.length||t==="handlebars"&&/{{|}}/.test(e)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(e)}function eu(e,t,n,i){if(!(/^\s*javascript\:/i.test(t)||/[\n\r]/.test(t))){if(t=t.replace(/^\s*/g,""),/^https?:\/\//i.test(t)||/^file:\/\//i.test(t))return t;if(/^\#/i.test(t))return e+t;if(/^\/\//i.test(t)){var r=et(e,"https://")?"https":"http";return r+":"+t.replace(/^\s*/g,"")}return n?n.resolveReference(t,i||e):t}}function tu(e,t,n,i,r,a){var s=li(n);if(Kl(s,e.languageId)){s.lengthn.startLine){if(l.endLine<=n.endLine)i.push(n),n=l,s(o,i.length);else if(l.startLine>n.endLine){do n=i.pop();while(n&&l.startLine>n.endLine);n&&i.push(n),n=l,s(o,i.length)}}}for(var u=0,c=0,o=0;ot){c=o;break}u+=d}}for(var m=[],o=0;o=0&&a[d].tagName!==s;)d--;if(d>=0){var m=a[d];a.length=d;var p=e.positionAt(n.getTokenOffset()).line,c=m.startLine,b=p-1;b>c&&o!==c&&l({startLine:c,endLine:b})}break}case I.Comment:{var c=e.positionAt(n.getTokenOffset()).line,f=n.getTokenText(),T=f.match(/^\s*#(region\b)|(endregion\b)/);if(T)if(T[1])a.push({startLine:c,tagName:""});else{for(var d=a.length-1;d>=0&&a[d].tagName.length;)d--;if(d>=0){var m=a[d];a.length=d;var b=c;c=m.startLine,b>c&&o!==c&&l({startLine:c,endLine:b,kind:Qt.Region})}}else{var b=e.positionAt(n.getTokenOffset()+n.getTokenLength()).line;cy?cu(r,y):r}function du(e,t){function n(i){for(var r=mu(e,i),a=void 0,s=void 0,o=r.length-1;o>=0;o--){var l=r[o];(!a||l[0]!==a[0]||l[1]!==a[1])&&(s=an.create(Y.create(e.positionAt(r[o][0]),e.positionAt(r[o][1])),s)),a=l}return s||(s=an.create(Y.create(i,i))),s}return t.map(n)}function mu(e,t){var n=Ua(e.getText()),i=e.offsetAt(t),r=n.findNodeAt(i),a=pu(r);if(r.startTagEnd&&!r.endTagStart){if(r.startTagEnd!==r.end)return[[r.start,r.end]];var s=Y.create(e.positionAt(r.startTagEnd-2),e.positionAt(r.startTagEnd)),o=e.getText(s);o==="/>"?a.unshift([r.start+1,r.startTagEnd-2]):a.unshift([r.start+1,r.startTagEnd-1]);var l=Za(e,r,i);return a=l.concat(a),a}if(!r.startTagEnd||!r.endTagStart)return a;if(a.unshift([r.start,r.end]),r.start=r.endTagStart+2&&a.unshift([r.endTagStart+2,r.end-1]),a)}function pu(e){for(var t=e,n=function(r){return r.startTagEnd&&r.endTagStart&&r.startTagEnd=s.getTokenOffset()&&a<=s.getTokenEnd()&&(u.unshift([s.getTokenOffset(),s.getTokenEnd()]),(m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'")&&a>=s.getTokenOffset()+1&&a<=s.getTokenEnd()-1&&u.unshift([s.getTokenOffset()+1,s.getTokenEnd()-1]),u.push([d,s.getTokenEnd()]));break}}o=s.scan()}return u.map(function(p){return[p[0]+l,p[1]+l]})}var fu={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `__x__` or `__X__`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `` element. It specifies the type of content being loaded by the ``, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `` element. When used on a `` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set. This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are: @@ -455,4 +455,4 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support * a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation; * \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention; -* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](/en-US/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for , +
+ + + diff --git a/dev/src/vite-env.d.ts b/dev/src/vite-env.d.ts index 323c78a6c..79719449e 100644 --- a/dev/src/vite-env.d.ts +++ b/dev/src/vite-env.d.ts @@ -1,7 +1,9 @@ /// declare module '*.vue' { - import type { DefineComponent } from 'vue' - const component: DefineComponent<{}, {}, any> - export default component + import type { DefineComponent } from 'vue'; + const component: DefineComponent<{}, {}, any>; + export default component; } + +declare module '@vtj/engine/coder'; diff --git a/packages/engine/src/coder/Collecter.ts b/packages/engine/src/coder/Collecter.ts index b278ea745..79a4719a4 100644 --- a/packages/engine/src/coder/Collecter.ts +++ b/packages/engine/src/coder/Collecter.ts @@ -1,3 +1,102 @@ +import { BlockSchema, Dependencie, JSExpression, JSFunction } from '../core'; +import { isJSFunction, isJSExpression, dedupArray } from '../utils'; export class Collecter { - constructor() {} + libraryMap: Record = {}; + libraryKeys: string[]; + libraryRegex: RegExp[] = []; + imports: Record> = {}; + constructor(public dsl: BlockSchema, public packages: Dependencie[]) { + this.libraryMap = packages.reduce((prev, current) => { + if (current.library) { + prev[current.library] = true; + } + return prev; + }, {} as Record); + this.libraryKeys = Object.keys(this.libraryMap); + this.libraryRegex = this.libraryKeys.map((key) => { + return new RegExp(`this.\\$libs.${key}.([\\\w]+)`, 'g'); + }); + this.walk(dsl); + } + + getPackageName(library: string) { + return this.packages.find((n) => n.library === library)?.package || null; + } + + isCode(val: unknown): val is JSExpression | JSFunction { + return isJSExpression(val) || isJSFunction(val); + } + + collectImport(str: string) { + const items = str.split('.'); + if (items.length === 4) { + const name = items.pop(); + const path = items.join('.') + '.'; + const library = items.pop(); + if (name && library) { + const packageName = this.getPackageName(library); + if (packageName) { + const imports = + this.imports[packageName] || + (this.imports[packageName] = new Set()); + imports.add(name); + } + } + + return { + name, + path, + library + }; + } + return null; + } + + pick(code: string = '') { + let result = code; + const { libraryRegex } = this; + for (const regex of libraryRegex) { + const matches = code.match(regex) || []; + for (const match of matches) { + const res = this.collectImport(match); + if (res) { + result = result.replaceAll(res.path, ''); + } + } + } + + return result; + } + + walk(dsl: BlockSchema) { + const walking = (item: unknown) => { + if (!item) return; + if (typeof item !== 'object') return; + if (Array.isArray(item)) { + for (let n of item) { + walking(n); + } + return; + } + + const entries = Object.entries(item as Record); + for (const [key, value] of entries) { + if (this.isCode(value)) { + const newValue = this.pick(value.value); + value.value = newValue; + } else { + walking(value); + } + } + }; + walking(dsl); + } + + getRefs(components: string[] = []) { + let array: string[] = [...components]; + for (const set of Object.values(this.imports)) { + array = array.concat(Array.from(set)); + } + return dedupArray(array); + } } diff --git a/packages/engine/src/coder/index.ts b/packages/engine/src/coder/index.ts index 842ef3338..9ea557525 100644 --- a/packages/engine/src/coder/index.ts +++ b/packages/engine/src/coder/index.ts @@ -1,31 +1,42 @@ -import { BlockSchema, ComponentDescription, ApiSchema } from '../core'; +import { + BlockSchema, + ComponentDescription, + ApiSchema, + Dependencie +} from '../core'; import { compiled } from './template'; import { parser, Tokens } from './tokens'; import { tsFormatter, htmlFormatter, cssFormatter } from './formatters'; +import { cloneDeep } from '../utils'; +export { tsFormatter, htmlFormatter, cssFormatter }; export interface ICoderOptions { pages: BlockSchema[]; blocks: BlockSchema[]; apis: ApiSchema[]; componentMap: Record; + packages: Dependencie[]; } export interface ICoderError { dsl: BlockSchema; componentMap: Record; + packages: Dependencie[]; tokens?: Tokens; source?: string; e?: any; } -function vueCoder( +export function vueCoder( dsl: BlockSchema, componentMap: Record, + packages: Dependencie[] = [], onError?: (e: ICoderError) => void ) { let tokens, source; + try { - tokens = parser(dsl, componentMap); + tokens = parser(cloneDeep(dsl), componentMap, packages); source = compiled(tokens); return htmlFormatter(`