@rsdoctor/client 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/resource/js/{index.62094508.js → index.fc9559d0.js} +2 -2
  3. package/dist/resource/js/monaco-1.7ad7764f.js +369 -0
  4. package/dist/resource/js/{monaco-9.34b51cf9.js → monaco-10.4db28e1a.js} +1 -1
  5. package/dist/resource/js/monaco-11.18edf242.js +25 -0
  6. package/dist/resource/js/monaco-12.f2868e03.js +5 -0
  7. package/dist/resource/js/monaco-13.88108488.js +1 -0
  8. package/dist/resource/js/{monaco-13.c39a81c1.js → monaco-14.9ed23e83.js} +1 -1
  9. package/dist/resource/js/{monaco-1.7b4f9f8c.js → monaco-2.6895e134.js} +1 -1
  10. package/dist/resource/js/monaco-3.51c02ad7.js +31 -0
  11. package/dist/resource/js/monaco-4.2525ec7c.js +31 -0
  12. package/dist/resource/js/{monaco-4.12cd3f32.js → monaco-5.5bc856bc.js} +1 -1
  13. package/dist/resource/js/monaco-6.6e712e08.js +1 -0
  14. package/dist/resource/js/monaco-7.1fa8c3af.js +1 -0
  15. package/dist/resource/js/monaco-8.dcf3e8dc.js +38 -0
  16. package/dist/resource/js/{monaco-8.fa1080e5.js → monaco-9.7c59b09b.js} +1 -1
  17. package/package.json +3 -3
  18. package/dist/resource/js/monaco-10.3718b786.js +0 -25
  19. package/dist/resource/js/monaco-11.2ffe6be1.js +0 -369
  20. package/dist/resource/js/monaco-12.d0039040.js +0 -1
  21. package/dist/resource/js/monaco-14.ab3cfa3a.js +0 -31
  22. package/dist/resource/js/monaco-2.deeec9f1.js +0 -4
  23. package/dist/resource/js/monaco-3.09ebbb5b.js +0 -31
  24. package/dist/resource/js/monaco-5.59c23100.js +0 -2
  25. package/dist/resource/js/monaco-6.e7bfde98.js +0 -1
  26. package/dist/resource/js/monaco-7.020d48ca.js +0 -38
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["790"],{72740:function(e,t,i){"use strict";i.d(t,{T:function(){return r}});var n=i("9737"),s=i("71628");let o=RegExp(`(\\\\)?\\$\\((${s.dT.iconNameExpression}(?:${s.dT.iconModifierExpression})?)\\)`,"g");function r(e){let t;let i=[],r=0,l=0;for(;null!==(t=o.exec(e));){l=t.index||0,i.push(e.substring(r,l)),r=(t.index||0)+t[0].length;let[,o,a]=t;i.push(o?`$(${a})`:function(e){let t=n.$("span");return t.classList.add(...s.dT.asClassNameArray(e)),t}({id:a}))}return r<e.length&&i.push(e.substring(r)),i}},3692:function(e,t,i){"use strict";i.d(t,{F:function(){return r}});var n=i("85142"),s=i("507"),o=i("80189");class r{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new n.X(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=o.$.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=o.$.empty(),i){let n=new Set,s=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{var t;if(null!==e.element){if(n.add(e.element),this.nodes.set(e.element,e),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();s.add(t),this.nodesByIdentity.set(t,e)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,e)}},onDidDeleteNode:e=>{var t;if(null!==e.element){if(!n.has(e.element)&&this.nodes.delete(e.element),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();!s.has(t)&&this.nodesByIdentity.delete(t)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,e)}}}))}preserveCollapseState(e=o.$.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),o.$.map(e,e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){let i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});let i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible,n=void 0!==e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)})})}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new s.ac(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new s.ac(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new s.ac(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];let t=this.nodes.get(e);if(!t)throw new s.ac(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}},16904:function(e,t,i){"use strict";i.d(t,{D0:function(){return _},E7:function(){return b},F3:function(){return g},K3:function(){return m},Q5:function(){return c},ZD:function(){return v},ju:function(){return n}});var n,s=i("61111"),o=i("19527"),r=i("62300"),l=i("30039");!function(e){function t(e){}function i(e){return(t,i=null,n)=>{let s,o=!1;return s=e(e=>o?void 0:(s?s.dispose():o=!0,t.call(i,e)),null,n),o&&s.dispose(),s}}function n(e,t,i){return a((i,n=null,s)=>e(e=>i.call(n,t(e)),null,s),i)}function s(e,t,i){return a((i,n=null,s)=>e(e=>{t(e),i.call(n,e)},null,s),i)}function r(e,t,i){return a((i,n=null,s)=>e(e=>t(e)&&i.call(n,e),null,s),i)}e.None=()=>o.JT.None,e.once=i,e.map=n,e.forEach=s,e.filter=r;e.signal=function(e){return e};function l(e,t,i,s){let o=i;return n(e,e=>o=t(o,e),s)}function a(e,i){let n;let s={onFirstListenerAdd(){n=e(o.fire,o)},onLastListenerRemove(){null==n||n.dispose()}};!i&&t(s);let o=new c(s);return null==i||i.add(o),o.event}function d(e,i,n=100,s=!1,o,r){let l,a,d;let h=0,u={leakWarningThreshold:o,onFirstListenerAdd(){l=e(e=>{h++,a=i(a,e),s&&!d&&(g.fire(a),a=void 0),clearTimeout(d),d=setTimeout(()=>{let e=a;a=void 0,d=void 0,(!s||h>1)&&g.fire(e),h=0},n)})},onLastListenerRemove(){l.dispose()}};!r&&t(u);let g=new c(u);return null==r||r.add(g),g.event}function h(e,t=(e,t)=>e===t,i){let n,s=!0;return r(e,e=>{let i=s||!t(e,n);return s=!1,n=e,i},i)}e.any=function(...e){return(t,i=null,n)=>(0,o.F8)(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=l,e.debounce=d,e.latch=h;e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]};e.buffer=function(e,t=!1,i=[]){let n=i.slice(),s=e(e=>{n?n.push(e):r.fire(e)}),o=()=>{null==n||n.forEach(e=>r.fire(e)),n=null},r=new c({onFirstListenerAdd(){!s&&(s=e(e=>r.fire(e)))},onFirstListenerDidAdd(){n&&(t?setTimeout(o):o())},onLastListenerRemove(){s&&s.dispose(),s=null}});return r.event};class u{constructor(e){this.event=e,this.disposables=new o.SL}map(e){return new u(n(this.event,e,this.disposables))}forEach(e){return new u(s(this.event,e,this.disposables))}filter(e){return new u(r(this.event,e,this.disposables))}reduce(e,t){return new u(l(this.event,e,t,this.disposables))}latch(){return new u(h(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n){return new u(d(this.event,e,t,i,n,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,t,n){return i(this.event)(e,t,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new u(e)};e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>s.fire(i(...e)),s=new c({onFirstListenerAdd:()=>e.on(t,n),onLastListenerRemove:()=>e.removeListener(t,n)});return s.event};e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>s.fire(i(...e)),s=new c({onFirstListenerAdd:()=>e.addEventListener(t,n),onLastListenerRemove:()=>e.removeEventListener(t,n)});return s.event};e.toPromise=function(e){return new Promise(t=>i(e)(t))};e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))};e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new o.SL)}n(void 0);let s=e(e=>n(e));return(0,o.OF)(()=>{s.dispose(),null==i||i.dispose()})};class g{constructor(e,i){this.obs=e,this._counter=0,this._hasChanged=!1;let n={onFirstListenerAdd:()=>{e.addObserver(this)},onLastListenerRemove:()=>{e.removeObserver(this)}};!i&&t(n),this.emitter=new c(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handleChange(e,t){this._hasChanged=!0}endUpdate(e){0==--this._counter&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}e.fromObservable=function(e,t){return new g(e,t).emitter.event}}(n||(n={}));class a{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${a._idPool++}`}start(e){this._stopWatch=new l.G(!0),this._listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}a._idPool=0;class d{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let i=-1;if("number"==typeof this.customThreshold&&(i=this.customThreshold),i<=0||t<i)return;!this._stacks&&(this._stacks=new Map);let n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*i;let n=0;for(let[t,i]of this._stacks)(!e||n<i)&&(e=t,n=i);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${n}):`),console.warn(e)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class h{constructor(e){this.value=e}static create(){var e;return new h(null!==(e=Error().stack)&&void 0!==e?e:"")}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new o.dt}invoke(e){this.callback.call(this.callbackThis,e)}}class c{constructor(e){var t,i;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new a(this._options._profName):void 0,this._deliveryQueue=null===(i=this._options)||void 0===i?void 0:i.deliveryQueue}dispose(){var e,t,i,n,s;if(!this._disposed){if(this._disposed=!0,this._listeners){;this._listeners.clear()}null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(i=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose()}}get event(){return!this._event&&(this._event=(e,t,i)=>{var n,s,l;let a,d;!this._listeners&&(this._listeners=new r.S);let c=this._listeners.isEmpty();c&&(null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this),this._leakageMon&&this._listeners.size>=30&&(d=h.create(),a=this._leakageMon.check(d,this._listeners.size+1));let g=new u(e,t,d),p=this._listeners.push(g);c&&(null===(s=this._options)||void 0===s?void 0:s.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),(null===(l=this._options)||void 0===l?void 0:l.onListenerDidAdd)&&this._options.onListenerDidAdd(this,e,t);let f=g.subscription.set(()=>{null==a||a(),!this._disposed&&(p(),this._options&&this._options.onLastListenerRemove&&!(this._listeners&&!this._listeners.isEmpty())&&this._options.onLastListenerRemove(this))});return i instanceof o.SL?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}fire(e){var t,i;if(this._listeners){for(let t of(!this._deliveryQueue&&(this._deliveryQueue=new p),this._listeners))this._deliveryQueue.push(this,t,e);null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(i=this._perfMon)||void 0===i||i.stop()}}}class g{constructor(){this._queue=new r.S}get size(){return this._queue.size}push(e,t,i){this._queue.push(new f(e,t,i))}clear(e){let t=new r.S;for(let i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){let e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){(0,s.dL)(e)}}}}class p extends g{clear(e){this._queue.clear()}}class f{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class m extends c{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class _ extends m{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){!this._handle&&(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class b{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class v{constructor(){this.listening=!1,this.inputEvent=n.None,this.inputEventListener=o.JT.None,this.emitter=new c({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},80189:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};let t=Object.freeze([]);e.empty=function(){return t};e.single=function*(e){yield e};e.from=function(e){return e||t};e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done};e.first=function(e){return e[Symbol.iterator]().next().value};e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1};e.find=function(e,t){for(let i of e)if(t(i))return i};e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)};e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)};e.concat=function*(...e){for(let t of e)for(let e of t)yield e};e.concatNested=function*(e){for(let t of e)for(let e of t)yield e};e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n};e.forEach=function(e,t){let i=0;for(let n of e)t(n,i++)};function i(t,i=Number.POSITIVE_INFINITY){let n=[];if(0===i)return[n,t];let s=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]}e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=i;e.collect=function(e){return i(e)[0]};e.equals=function(e,t,i=(e,t)=>e===t){let n=e[Symbol.iterator](),s=t[Symbol.iterator]();for(;;){let e=n.next(),t=s.next();if(e.done!==t.done)return!1;if(e.done)return!0;else if(!i(e.value,t.value))return!1}}}(n||(n={}))},63368:function(e,t,i){"use strict";i.d(t,{og:function(){return s},xY:function(){return T}});var n,s,o=i("9737"),r=i("85763"),l=i("62880"),a=i("96479"),d=i("26573"),h=i("31453"),u=i("3868"),c=i("71628"),g=i("9778"),p=i("49714"),f=i("16904"),m=i("47578"),_=i("19527"),b=i("7875"),v=i("66763"),C=i("44138"),y=i("86329");i("39910");var w=i("8339"),S=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let k=o.$;class L{constructor(e){this.hidden=!1,this._onChecked=new f.Q5,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class x{get templateId(){return x.ID}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=o.R3(e,k(".quick-input-list-entry"));let i=o.R3(t.entry,k("label.quick-input-list-label"));t.toDisposeTemplate.push(o.mu(i,o.tw.CLICK,e=>{!t.checkbox.offsetParent&&e.preventDefault()})),t.checkbox=o.R3(i,k("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(o.mu(t.checkbox,o.tw.CHANGE,e=>{t.element.checked=t.checkbox.checked}));let n=o.R3(i,k(".quick-input-list-rows")),s=o.R3(n,k(".quick-input-list-row")),r=o.R3(n,k(".quick-input-list-row"));t.label=new a.g(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});let h=o.R3(s,k(".quick-input-list-entry-keybinding"));t.keybinding=new d.e(h,b.OS);let u=o.R3(r,k(".quick-input-list-label-meta"));return t.detail=new a.g(u,{supportHighlights:!0,supportIcons:!0}),t.separator=o.R3(t.entry,k(".quick-input-list-separator")),t.actionBar=new l.o(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=(0,_.B9)(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(e=>i.checkbox.checked=e));let{labelHighlights:n,descriptionHighlights:s,detailHighlights:o}=e,r=Object.create(null);r.matches=n||[],r.descriptionTitle=e.saneDescription,r.descriptionMatches=s||[],r.extraClasses=e.item.iconClasses,r.italic=e.item.italic,r.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,r),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:o,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();let l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((t,i)=>{let n=t.iconClass||(t.iconPath?(0,y.Q)(t.iconPath):void 0);t.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");let s=new h.aU(`id-${i}`,"",n,!0,()=>{var i,n,s,o;return i=this,n=void 0,s=void 0,o=function*(){e.fireButtonTriggered({button:t,item:e.item})},new(s||(s=Promise))(function(e,t){function r(e){try{a(o.next(e))}catch(e){t(e)}}function l(e){try{a(o.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):((i=t.value)instanceof s?i:new s(function(e){e(i)})).then(r,l)}a((o=o.apply(i,n||[])).next())})});return s.tooltip=t.tooltip||"",s}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=(0,_.B9)(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=(0,_.B9)(e.toDisposeElement),e.toDisposeTemplate=(0,_.B9)(e.toDisposeTemplate)}}x.ID="listelement";class D{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return x.ID}}(n=s||(s={}))[n.First=1]="First",n[n.Second=2]="Second",n[n.Last=3]="Last",n[n.Next=4]="Next",n[n.Previous=5]="Previous",n[n.NextPage=6]="NextPage",n[n.PreviousPage=7]="PreviousPage";class T{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new f.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new f.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new f.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new f.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new f.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new f.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new f.Q5,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=o.R3(this.parent,k(".quick-input-list"));let n=new D,s=new E;this.list=i.createList("QuickInput",this.container,n,[new x],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{let t=new r.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(b.dz?e.metaKey:e.ctrlKey)&&this.list.setFocus((0,u.w6)(this.list.length));break;case 16:{let e=this.list.getFocus();1===e.length&&0===e[0]&&this._onLeave.fire();break}case 18:{let e=this.list.getFocus();1===e.length&&e[0]===this.list.length-1&&this._onLeave.fire()}}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(o.nm(this.container,o.tw.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return f.ju.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return f.ju.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)t[i].checked&&e++;return e}getVisibleCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)!t[i].hidden&&e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{!t.hidden&&(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=(0,_.B9)(this.elementDisposables);let t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((i,n,s)=>{var o,r,l;if("separator"!==n.type){let a=s&&e[s-1],d=n.label&&n.label.replace(/\r?\n/g," "),h=(0,m.Ho)(d).text.trim(),u=n.meta&&n.meta.replace(/\r?\n/g," "),g=n.description&&n.description.replace(/\r?\n/g," "),p=n.detail&&n.detail.replace(/\r?\n/g," "),f=n.ariaLabel||[d,g,p].map(e=>(0,c.JL)(e)).filter(e=>!!e).join(", "),_=this.parent.classList.contains("show-checkboxes");i.push(new L({hasCheckbox:_,index:s,item:n,saneLabel:d,saneSortLabel:h,saneMeta:u,saneAriaLabel:f,saneDescription:g,saneDetail:p,labelHighlights:null===(o=n.highlights)||void 0===o?void 0:o.label,descriptionHighlights:null===(r=n.highlights)||void 0===r?void 0:r.description,detailHighlights:null===(l=n.highlights)||void 0===l?void 0:l.detail,checked:!1,separator:a&&"separator"===a.type?a:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){let e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;let t=new Set;for(let i of e)t.add(i);for(let e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===s.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=s.First),e===s.Previous&&0===this.list.getFocus()[0]&&(e=s.Last),e===s.Second&&this.list.length<2&&(e=s.First),e){case s.First:this.list.focusFirst();break;case s.Second:this.list.focusNth(1);break;case s.Last:this.list.focusLast();break;case s.Next:this.list.focusNext();break;case s.Previous:this.list.focusPrevious();break;case s.NextPage:this.list.focusNextPage();break;case s.PreviousPage:this.list.focusPreviousPage()}let t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;let t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this.elements.forEach(n=>{let s;s="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneLabel))):void 0:this.matchOnLabel?(0,C.f6)(function(e,t){let{text:i,iconOffsets:n}=t;if(!n||0===n.length)return N(e,i);let s=(0,v.j3)(i," "),o=i.length-s.length,r=N(e,s);if(r)for(let e of r){let t=n[e.start+o]+o;e.start+=t,e.end+=t}return r}(t,(0,m.Ho)(n.saneLabel))):void 0;let o=this.matchOnDescription?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneDescription||""))):void 0,r=this.matchOnDetail?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneDetail||""))):void 0,l=this.matchOnMeta?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneMeta||""))):void 0;if(s||o||r||l?(n.labelHighlights=s,n.descriptionHighlights=o,n.detailHighlights=r,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){let e=n.index&&this.inputElements[n.index-1];(i=e&&"separator"===e.type?e:i)&&!n.hidden&&(n.separator=i,i=void 0)}})}else this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;let t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});let i=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){let t=e.toLowerCase();i.sort((e,i)=>(function(e,t,i){let n=e.labelHighlights||[],s=t.labelHighlights||[];return n.length&&!s.length?-1:!n.length&&s.length?1:0===n.length&&0===s.length?0:(0,g.LE)(e.saneSortLabel,t.saneSortLabel,i)})(e,i,t))}return this.elementsToIndexes=i.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;let e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(let i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=(0,_.B9)(this.elementDisposables),this.disposables=(0,_.B9)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}S([p.H],T.prototype,"onDidChangeFocus",null),S([p.H],T.prototype,"onDidChangeSelection",null);function N(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1!==i?[{start:i,end:i+e.length}]:null}class E{getWidgetAriaLabel(){return(0,w.NC)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}},52603:function(e,t,i){"use strict";(0,i("54606").H)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"23517"))})},37429:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}},4458:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},34667:function(e,t,i){"use strict";let n,s;i.r(t),i.d(t,{conf:function(){return g},language:function(){return p}});var o=i("99334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!d.call(e,s)&&s!==i&&r(e,s,{get:()=>t[s],enumerable:!(n=l(t,s))||n.enumerable});return e},u={};h(u,n=o,"default"),s&&h(s,n,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],g={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:u.languages.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:u.languages.IndentAction.Indent}}]},p={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}},1696:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},s={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}},94575:function(e,t,i){"use strict";(0,i("54606").H)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"9151"))})},5690:function(e,t,i){"use strict";let n,s;i.r(t),i.d(t,{conf:function(){return c},language:function(){return g}});var o=i("99334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!d.call(e,s)&&s!==i&&r(e,s,{get:()=>t[s],enumerable:!(n=l(t,s))||n.enumerable});return e},u={};h(u,n=o,"default"),s&&h(s,n,"default");var c={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:u.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:u.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:u.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:u.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:RegExp("^\\s*//\\s*#?region\\b"),end:RegExp("^\\s*//\\s*#?endregion\\b")}}},g={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},36790:function(e,t,i){"use strict";i.d(t,{n:function(){return s}});var n=i("16904");let s=new class e{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}},48379:function(e,t,i){"use strict";i.d(t,{S:function(){return p}});var n=i("9737"),s=i("19219"),o=i("67518"),r=i("19527"),l=i("7875"),a=i("47388"),d=i("75205"),h=i("83140"),u=i("57938"),c=i("61065"),g=i("48331");class p extends g.O{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new a.rp(this._context,i),this._mouseDownOperation=this._register(new f(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(133).height;let o=new d.N5(this.viewHelper.viewDomNode);this._register(o.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(o.onMouseMove(this.viewHelper.viewDomNode,e=>{this._onMouseMove(e),!this._mouseLeaveMonitor&&(this._mouseLeaveMonitor=n.nm(document,"mousemove",e=>{!this.viewHelper.viewDomNode.contains(e.target)&&this._onMouseLeave(new d.gy(e,!1,this.viewHelper.viewDomNode))}))})),this._register(o.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(o.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e)));let r=0;this._register(o.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>{r=t})),this._register(n.nm(this.viewHelper.viewDomNode,n.tw.POINTER_UP,e=>{this._mouseDownOperation.onPointerUp()})),this._register(o.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e,r)));this._register(n.nm(this.viewHelper.viewDomNode,n.tw.MOUSE_WHEEL,e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(70))return;let t=new s.q(e);if(l.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){let e=h.C.getZoomLevel(),i=t.deltaY>0?1:-1;h.C.setZoomLevel(e+i),t.preventDefault(),t.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(133)){let e=this._context.configuration.options.get(133).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){let i=new d.rU(e,t).toPageCoordinates(),n=(0,d.kG)(this.viewHelper.viewDomNode);if(i.y<n.y||i.y>n.y+n.height||i.x<n.x||i.x>n.x+n.width)return null;let s=(0,d.Pp)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,s,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){let t=n.Ay(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find(e=>this.viewHelper.viewDomNode.contains(e)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(!this.mouseTargetFactory.mouseTargetIsWidget(e)&&e.preventDefault(),!this._mouseDownOperation.isActive())!(e.timestamp<this.lastMouseLeaveTime)&&this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){let i=this._createMouseTarget(e,!0),n=6===i.type||7===i.type,s=2===i.type||3===i.type||4===i.type,o=3===i.type,r=this._context.configuration.options.get(100),a=8===i.type||5===i.type,d=9===i.type,h=e.leftButton||e.middleButton;l.dz&&e.leftButton&&e.ctrlKey&&(h=!1);let u=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(h&&(n||o&&r))u(),this._mouseDownOperation.start(i.type,e,t);else if(s)e.preventDefault();else if(a){let n=i.detail;h&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(u(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else d&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(u(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class f extends r.JT{constructor(e,t,i,n,s){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=s,this._mouseMoveMonitor=this._register(new d.AL(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new o._F),this._mouseState=new m,this._currentSelection=new c.Y(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);let t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);let n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;let s=this._context.configuration.options;if(!s.get(83)&&s.get(31)&&!s.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),e=>{let t=this._findMousePosition(this._lastMouseEvent,!1);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey),!this._isActive&&(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;let e=this._findMousePosition(this._lastMouseEvent,!1);if(!!e)!this._mouseState.isDragAndDrop&&this._dispatchMouse(e,!0)},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){let t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,s=this._getMouseColumn(e);if(e.posy<t.y){let i=Math.max(n.getCurrentScrollTop()-(t.y-e.posy),0),o=a.Iq.getZoneAtCoord(this._context,i);if(o){let e=this._helpPositionJumpOverViewZone(o);if(e)return a.ZP.createOutsideEditor(s,e)}let r=n.getLineNumberAtVerticalOffset(i);return a.ZP.createOutsideEditor(s,new u.L(r,1))}if(e.posy>t.y+t.height){let t=n.getCurrentScrollTop()+e.relativePos.y,o=a.Iq.getZoneAtCoord(this._context,t);if(o){let e=this._helpPositionJumpOverViewZone(o);if(e)return a.ZP.createOutsideEditor(s,e)}let r=n.getLineNumberAtVerticalOffset(t);return a.ZP.createOutsideEditor(s,new u.L(r,i.getLineMaxColumn(r)))}let o=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);return e.posx<t.x?a.ZP.createOutsideEditor(s,new u.L(o,1)):e.posx>t.x+t.width?a.ZP.createOutsideEditor(s,new u.L(o,i.getLineMaxColumn(o))):null}_findMousePosition(e,t){let i=this._getPositionOutsideEditor(e);if(i)return i;let n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){let e=this._helpPositionJumpOverViewZone(n.detail);if(e)return a.ZP.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){let t=new u.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;if(i&&n)return i.isBefore(t)?i:n;return null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class m{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){let i=new Date().getTime();i-this._lastSetMouseDownCountTime>m.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}m.CLEAR_MOUSE_DOWN_COUNT_TIME=400},94019:function(e,t,i){"use strict";i.d(t,{a:function(){return g}});var n=i("9737"),s=i("7875"),o=i("66569"),r=i("19527"),l=i("48379"),a=i("75205"),d=i("72646"),h=i("37717");class u extends l.S{constructor(e,t,i){super(e,t,i),this._register(o.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Tap,e=>this.onTap(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Change,e=>this.onChange(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Contextmenu,e=>this._onContextMenu(new a.gy(e,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(n.nm(this.viewHelper.linesContentDomNode,"pointerdown",e=>{let t=e.pointerType;if("mouse"===t){this._lastPointerType="mouse";return}"touch"===t?this._lastPointerType="touch":this._lastPointerType="pen"}));let s=new a.tC(this.viewHelper.viewDomNode);this._register(s.onPointerMove(this.viewHelper.viewDomNode,e=>this._onMouseMove(e))),this._register(s.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>this._onMouseDown(e,t)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.gy(e,!1,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class c extends l.S{constructor(e,t,i){super(e,t,i),this._register(o.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Tap,e=>this.onTap(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Change,e=>this.onChange(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Contextmenu,e=>this._onContextMenu(new a.gy(e,!1,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.gy(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){let e=document.createEvent("CustomEvent");e.initEvent(h.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class g extends r.JT{constructor(e,t,i){super(),s.gn&&d.D.pointerEvents?this.handler=this._register(new u(e,t,i)):window.TouchEvent?this.handler=this._register(new c(e,t,i)):this.handler=this._register(new l.S(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}},61493:function(e,t,i){"use strict";i.d(t,{U:function(){return s}}),i("51532");var n=i("11428");class s extends n.$U{constructor(e){super(),this._context=e;let t=this._context.configuration.options.get(133);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options.get(133);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){let t=e.getDecorationsInViewport(),i=[],s=0;for(let e=0,o=t.length;e<o;e++){let o=t[e],r=o.options.linesDecorationsClassName;r&&(i[s++]=new n.tv(o.range.startLineNumber,o.range.endLineNumber,r));let l=o.options.firstLineDecorationClassName;l&&(i[s++]=new n.tv(o.range.startLineNumber,o.range.startLineNumber,l))}return i}prepareRender(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s=this._decorationsLeft.toString(),o='" style="left:'+s+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let e=t;e<=i;e++){let i=e-t,s=n[i],l="";for(let e=0,t=s.length;e<t;e++)l+='<div class="cldr '+s[e]+o;r[i]=l}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}},53049:function(e,t,i){"use strict";i.d(t,{N:function(){return s},q:function(){return o}});var n=i("79673");class s{constructor(e){let t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=s._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){let i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class o{constructor(){this._actual=new s(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},12952:function(e,t,i){"use strict";i.d(t,{Nu:function(){return v},g_:function(){return b},u6:function(){return _}});var n=i("61111"),s=i("66763"),o=i("38846"),r=i("39379"),l=i("8932"),a=i("7910"),d=i("40890"),h=i("61045"),u=i("57938"),c=i("49286"),g=i("62785"),p=i("65633"),f=i("45477"),m=i("79125");class _{static indent(e,t,i){if(null===t||null===i)return[];let n=[];for(let t=0,s=i.length;t<s;t++)n[t]=new r.U(i[t],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){let n=[];for(let t=0,s=i.length;t<s;t++)n[t]=new r.U(i[t],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static shiftIndent(e,t,i){return i=i||1,r.U.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return i=i||1,r.U.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){let s=[];for(let e=0,t=i.length;e<t;e++)s[e]=new o.T4(i[e],n[e]);return new a.Tp(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,s){let r=[];for(let e=0,t=i.length;e<t;e++){let t=i[e],l=t.getPosition();if(s&&!t.isEmpty()&&(s=!1),s&&n.indexOf("\n")!==n.length-1&&(s=!1),s){let i=new h.e(l.lineNumber,1,l.lineNumber,1);r[e]=new o.hP(i,n,t,!0)}else r[e]=new o.T4(t,n)}return new a.Tp(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,o){if(n||1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1));let e=s.uq(i);if(e.length===t.length)return e}return null}static paste(e,t,i,n,s,o){let r=this._distributePasteToCursors(e,i,n,s,o);return r?(i=i.sort(h.e.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,s)}static _goodIndentForLine(e,t,i){let n=null,o="",r=(0,f.r7)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(r)n=r.action,o=r.indentation;else if(i>1){let n;for(n=i-1;n>=1;n--){let e=t.getLineContent(n);if(s.ow(e)>=0)break}if(n<1)return null;let r=t.getLineMaxColumn(n),l=(0,m.A)(e.autoIndent,t,new h.e(n,r,n,r),e.languageConfigurationService);l&&(o=l.indentation+l.appendText)}return(n&&(n===c.wU.Indent&&(o=_.shiftIndent(e,o)),n===c.wU.Outdent&&(o=_.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o)?o:null}static _replaceJumpToNextIndent(e,t,i,n){let s="",r=i.getStartPosition();if(e.insertSpaces){let i=e.visibleColumnFromColumn(t,r),n=e.indentSize,o=n-i%n;for(let e=0;e<o;e++)s+=" "}else s=" ";return new o.T4(i,s,n)}static tab(e,t,i){let n=[];for(let s=0,l=i.length;s<l;s++){let l=i[s];if(l.isEmpty()){let i=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(l.startLineNumber)){let r=this._goodIndentForLine(e,t,l.startLineNumber);r=r||" ";let a=e.normalizeIndentation(r);if(!i.startsWith(a)){n[s]=new o.T4(new h.e(l.startLineNumber,1,l.startLineNumber,i.length+1),a,!0);continue}}n[s]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){let i=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==i){n[s]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}n[s]=new r.U(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return n}static compositionType(e,t,i,n,s,o,r,l){let d=n.map(e=>this._compositionType(i,e,s,o,r,l));return new a.Tp(4,d,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,s,r){if(!t.isEmpty())return null;let l=t.getPosition(),a=Math.max(1,l.column-n),d=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+s),u=new h.e(l.lineNumber,a,l.lineNumber,d);return e.getValueInRange(u)===i&&0===r?null:new o.Uo(u,i,0,r)}static _typeCommand(e,t,i){return i?new o.Sj(e,t,!0):new o.T4(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return _._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){let o=t.getLineContent(n.startLineNumber),r=s.V8(o).substring(0,n.startColumn-1);return _._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}let r=(0,m.A)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===c.wU.None)return _._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===c.wU.Indent)return _._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);else if(r.indentAction===c.wU.IndentOutdent){let t=e.normalizeIndentation(r.indentation),s=e.normalizeIndentation(r.indentation+r.appendText),l="\n"+s+"\n"+t;return i?new o.Sj(n,l,!0):new o.Uo(n,l,-1,s.length-t.length,!0)}else if(r.indentAction===c.wU.Outdent){let t=_.unshiftIndent(e,r.indentation);return _._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}let l=t.getLineContent(n.startLineNumber),a=s.V8(l).substring(0,n.startColumn-1);if(e.autoIndent>=4){let r=(0,f.UF)(e.autoIndent,t,n,{unshiftIndent:t=>_.unshiftIndent(e,t),shiftIndent:t=>_.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let l=e.visibleColumnFromColumn(t,n.getEndPosition()),a=n.endColumn,d=t.getLineContent(n.endLineNumber),h=s.LC(d);if(n=h>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,h+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new o.Sj(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return a<=h+1&&(!e.insertSpaces&&(l=Math.ceil(l/e.indentSize)),t=Math.min(l+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new o.Uo(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return _._typeCommand(n,"\n"+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;e<n;e++)if(!t.tokenization.isCheapToTokenize(i[e].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){let s=(0,g.u0)(t,i.startLineNumber,i.startColumn),o=(0,f.$9)(e.autoIndent,t,i,n,{shiftIndent:t=>_.shiftIndent(e,t),unshiftIndent:t=>_.unshiftIndent(e,t)},e.languageConfigurationService);if(null===o)return null;if(o!==e.normalizeIndentation(s)){let s=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===s?_._typeCommand(new h.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+n,!1):_._typeCommand(new h.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+t.getLineContent(i.startLineNumber).substring(s-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if("never"===e.autoClosingOvertype||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let o=0,r=i.length;o<r;o++){let r=i[o];if(!r.isEmpty())return!1;let l=r.getPosition(),d=t.getLineContent(l.lineNumber);if(d.charAt(l.column-1)!==s)return!1;let h=(0,a.LN)(s);if(92===(l.column>2?d.charCodeAt(l.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){let i=n[t];if(l.lineNumber===i.startLineNumber&&l.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,s){let r=[];for(let e=0,t=n.length;e<t;e++){let t=n[e].getPosition(),i=new h.e(t.lineNumber,t.column,t.lineNumber,t.column+1);r[e]=new o.T4(i,s)}return new a.Tp(4,r,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){let i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],s=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],o=n.some(e=>t.startsWith(e.open)),r=s.some(e=>t.startsWith(e.close));return!o&&r}static _findAutoClosingPairOpen(e,t,i,n){let s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let o=null;for(let e of s)if(null===o||e.open.length>o.open.length){let s=!0;for(let o of i)if(t.getValueInRange(new h.e(o.lineNumber,o.column-e.open.length+1,o.lineNumber,o.column))+n!==e.open){s=!1;break}s&&(o=e)}return o}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;let i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[],s=null;for(let e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!s||e.open.length>s.open.length)&&(s=e);return s}static _getAutoClosingPairClose(e,t,i,n,s){let o=(0,a.LN)(n),r=o?e.autoClosingQuotes:e.autoClosingBrackets,l=o?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if("never"===r)return null;for(let e of i)if(!e.isEmpty())return null;let h=i.map(e=>{let t=e.getPosition();return s?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}}),c=this._findAutoClosingPairOpen(e,t,h.map(e=>new u.L(e.lineNumber,e.beforeColumn)),n);if(!c)return null;let g=this._findContainedAutoClosingPair(e,c),f=g?g.close:"",m=!0;for(let i of h){let{lineNumber:s,beforeColumn:o,afterColumn:a}=i,h=t.getLineContent(s),u=h.substring(0,o-1),g=h.substring(a-1);if(!g.startsWith(f)&&(m=!1),g.length>0){let t=g.charAt(0);if(!_._isBeforeClosingBrace(e,g)&&!l(t))return null}if(1===c.open.length&&("'"===n||'"'===n)&&"always"!==r){let t=(0,d.u)(e.wordSeparators);if(u.length>0){let e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(s))return null;t.tokenization.forceTokenization(s);let b=t.tokenization.getLineTokens(s),v=(0,p.wH)(b,o-1);if(!c.shouldAutoClose(v,o-v.firstCharOffset))return null;let C=c.findNeutralCharacter();if(C){let e=t.tokenization.getTokenTypeIfInsertingCharacter(s,o,C);if(!c.isOK(e))return null}}return m?c.close.substring(0,c.close.length-f.length):c.close}static _runAutoClosingOpenCharType(e,t,i,n,s,o,r){let l=[];for(let e=0,t=n.length;e<t;e++){let t=n[e];l[e]=new b(t,s,!o,r)}return new a.Tp(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return(0,a.LN)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!_._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;let s=(0,a.LN)(n);for(let e of i){if(e.isEmpty())return!1;let i=!0;for(let n=e.startLineNumber;n<=e.endLineNumber;n++){let s=t.getLineContent(n),o=n===e.startLineNumber?e.startColumn-1:0,r=n===e.endLineNumber?e.endColumn-1:s.length,l=s.substring(o,r);if(/[^ \t]/.test(l)){i=!1;break}}if(i)return!1;if(s&&e.startLineNumber===e.endLineNumber&&e.startColumn+1===e.endColumn){let i=t.getValueInRange(e);if((0,a.LN)(i))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,s){let o=[];for(let e=0,i=n.length;e<i;e++){let i=n[e],r=t.surroundingPairs[s];o[e]=new l.F(i,s,r)}return new a.Tp(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!!(1===i.length&&t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))||!1}static _typeInterceptorElectricChar(e,t,i,r,l){let d;if(!t.electricChars.hasOwnProperty(l)||!r.isEmpty())return null;let u=r.getPosition();i.tokenization.forceTokenization(u.lineNumber);let c=i.tokenization.getLineTokens(u.lineNumber);try{d=t.onElectricCharacter(l,c,u.column)}catch(e){return(0,n.dL)(e),null}if(!d)return null;if(d.matchOpenBracket){let n=(c.getLineContent()+l).lastIndexOf(d.matchOpenBracket)+1,r=i.bracketPairs.findMatchingBracketUp(d.matchOpenBracket,{lineNumber:u.lineNumber,column:n},500);if(r){if(r.startLineNumber===u.lineNumber)return null;let n=i.getLineContent(r.startLineNumber),d=s.V8(n),c=t.normalizeIndentation(d),g=i.getLineContent(u.lineNumber),p=i.getLineFirstNonWhitespaceColumn(u.lineNumber)||u.column,f=c+g.substring(p-1,u.column-1)+l,m=new h.e(u.lineNumber,1,u.lineNumber,u.column),_=new o.T4(m,f);return new a.Tp(C(f,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,i,n,s,r){if(!n)return null;let d=null;for(let e of n)if(null===d)d=e.insertedText;else if(d!==e.insertedText)return null;if(!d||1!==d.length)return null;let u=d,c=!1;for(let e of n)if(0!==e.deletedText.length){c=!0;break}if(c){if(!_._shouldSurroundChar(t,u)||!t.surroundingPairs.hasOwnProperty(u))return null;let e=(0,a.LN)(u);for(let t of n)if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length||/^[ \t]+$/.test(t.deletedText)||e&&(0,a.LN)(t.deletedText))return null;let i=[];for(let e of s){if(!e.isEmpty())return null;i.push(e.getPosition())}if(i.length!==n.length)return null;let o=[];for(let e=0,t=i.length;e<t;e++)o.push(new l.K(i[e],n[e].deletedText,u));return new a.Tp(4,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,i,s,r,u)){let e=s.map(e=>new o.T4(new h.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new a.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let g=this._getAutoClosingPairClose(t,i,s,u,!0);return null!==g?this._runAutoClosingOpenCharType(e,t,i,s,u,!0,g):null}static typeWithInterceptors(e,t,i,n,s,r,l){if(!e&&"\n"===l){let e=[];for(let t=0,o=s.length;t<o;t++)e[t]=_._enter(i,n,!1,s[t]);return new a.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,s)){let e=[],t=!1;for(let o=0,r=s.length;o<r;o++)if(e[o]=this._runAutoIndentType(i,n,s[o],l),!e[o]){t=!0;break}if(!t)return new a.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,n,s,r,l))return this._runAutoClosingOvertype(t,i,n,s,l);if(!e){let e=this._getAutoClosingPairClose(i,n,s,l,!1);if(e)return this._runAutoClosingOpenCharType(t,i,n,s,l,!1,e)}if(!e&&this._isSurroundSelectionType(i,n,s,l))return this._runSurroundSelectionType(t,i,n,s,l);if(!e&&this._isTypeInterceptorElectricChar(i,n,s)){let e=this._typeInterceptorElectricChar(t,i,n,s[0],l);if(e)return e}let d=[];for(let e=0,t=s.length;e<t;e++)d[e]=new o.T4(s[e],l);let h=C(l,t);return new a.Tp(h,d,{shouldPushStackElementBefore:y(t,h),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,s){let r=[];for(let e=0,t=n.length;e<t;e++)r[e]=new o.T4(n[e],s);let l=C(s,e);return new a.Tp(l,r,{shouldPushStackElementBefore:y(e,l),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];let n=[];for(let s=0,r=i.length;s<r;s++){let r=i[s].positionLineNumber;if(1===r)n[s]=new o.Sj(new h.e(1,1,1,1),"\n");else{r--;let i=t.getLineMaxColumn(r);n[s]=this._enter(e,t,!1,new h.e(r,i,r,i))}}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];let n=[];for(let s=0,o=i.length;s<o;s++){let o=i[s].positionLineNumber,r=t.getLineMaxColumn(o);n[s]=this._enter(e,t,!1,new h.e(o,r,o,r))}return n}static lineBreakInsert(e,t,i){let n=[];for(let s=0,o=i.length;s<o;s++)n[s]=this._enter(e,t,!0,i[s]);return n}}class b extends o.Uo{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new h.e(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new h.e(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}class v{constructor(e,t,i,n,s,o){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=n,this.insertedSelectionStart=s,this.insertedSelectionEnd=o}}function C(e,t){return" "===e?5===t||6===t?6:5:4}function y(e,t){return!!S(e)&&!S(t)||5!==e&&w(e)!==w(t)}function w(e){return 6===e||5===e?"space":e}function S(e){return 4===e||5===e||6===e}},31468:function(e,t,i){"use strict";i.d(t,{O:function(){return r}});var n=i("3868"),s=i("65633"),o=i("23865");class r{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t)}return(0,n.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if((0,s.Bu)(t.getStandardTokenType(n)))return null;let r=this._richEditBrackets.reversedRegex,l=t.getLineContent().substring(0,i-1)+e,a=o.Vr.findPrevBracketInRange(r,1,l,0,l.length);if(!a)return null;let d=l.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[d])return null;let h=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:d}:null}}},99599:function(e,t,i){"use strict";i.d(t,{HS:function(){return W},qx:function(){return K},yO:function(){return R}});var n=i("3868"),s=i("35271"),o=i("61111"),r=i("16904"),l=i("19527"),a=i("66763"),d=i("38505"),h=i("11211"),u=i("65972"),c=i("57938"),g=i("61045"),p=i("61065"),f=i("55062"),m=i("10870"),_=i("62785"),b=i("63681"),v=i("26148"),C=i("76345"),y=i("74459"),w=i("2349"),S=i("91137"),k=i("69723"),L=i("81695"),x=i("17318"),D=i("83968"),T=i("62521"),N=i("86043"),E=i("52365"),O=function(e,t){return function(i,n){t(i,n,e)}};function I(e,t){let i;return(i="string"==typeof e?function(e){let t=new x.M;return t.acceptChunk(e),t.finish()}(e):b.Hf(e)?function(e){let t;let i=new x.M;for(;"string"==typeof(t=e.read());)i.acceptChunk(t);return i.finish()}(e):e).create(t)}let M=0;class A{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,i=0;for(;;){let n=this._source.read();if(null===n){if(this._eos=!0,0===t)return null;return e.join("")}if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}let P=()=>{throw Error("Invalid change accessor")},R=class e extends l.JT{constructor(t,i,n,s=null,o,l,h){super(),this._undoRedoService=o,this._languageService=l,this._languageConfigurationService=h,this._onWillDispose=this._register(new r.Q5),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Q(e=>this.handleBeforeFireDecorationsChangedEvent(e))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.Q5),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.Q5),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.Q5),this._eventEmitter=this._register(new Z),this._deltaDecorationCallCnt=0,M++,this.id="$model"+M,this.isForSimpleWidget=n.isForSimpleWidget,null==s?this._associatedResource=d.o.parse("inmemory://model/"+M):this._associatedResource=s,this._attachedEditorCount=0;let{textBuffer:u,disposable:c}=I(t,n.defaultEOL);this._buffer=u,this._bufferDisposable=c,this._options=e.resolveOptions(this._buffer,n),this._bracketPairs=this._register(new v.Q(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new w.l(this,this._languageConfigurationService)),this._decorationProvider=this._register(new C.z(this)),this._tokenizationTextModelPart=new T.P(this._languageService,this._languageConfigurationService,this,this._bracketPairs,i);let p=this._buffer.getLineCount(),f=this._buffer.getValueLengthInRange(new g.e(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?this._isTooLargeForTokenization=f>e.LARGE_FILE_SIZE_THRESHOLD||p>e.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=f>e.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=a.PJ(M),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new j,this._commandManager=new y.NL(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){let i=(0,S.L)(e,t.tabSize,t.insertSpaces);return new b.dJ({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new b.dJ({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return(0,l.F8)(this._eventEmitter.fastEvent(t=>e(t)),this._onDidChangeInjectedText.event(t=>e(t)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;let e=new L.A([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=l.JT.None}_assertNotDisposed(){if(this._isDisposed)throw Error("Model is disposed!")}_emitContentChangedEvent(e,t){!this.__isDisposing&&(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new N.fV(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e)return;let{textBuffer:t,disposable:i}=I(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,o,r){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:s,isRedoing:o,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();let i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokenizationTextModelPart.flush(),this._decorations=Object.create(null),this._decorationsTree=new j,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new N.dQ([new N.Jx],this._versionId,!1,!1),this._createContentChanged2(new g.e(1,1,s,o),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();let t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;let i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new N.dQ([new N.CZ],this._versionId,!1,!1),this._createContentChanged2(new g.e(1,1,s,o),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){let e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i<n;i++){let n=t[i],s=n.range,o=n.cachedAbsoluteStart-n.start,r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),l=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);n.cachedAbsoluteStart=r,n.cachedAbsoluteEnd=l,n.cachedVersionId=e,n.start=r-o,n.end=l-o,(0,k.sR)(n)}}onBeforeAttached(){this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}onBeforeDetached(){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0,i=this._buffer.getLineCount();for(let n=1;n<=i;n++){let i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();let t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,i=void 0!==e.indentSize?e.indentSize:this._options.indentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,s=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new b.dJ({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:o});if(this._options.equals(r))return;let l=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();let i=(0,S.L)(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,u.x)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){let t=this.findMatches(a.Qe.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(e=>({range:e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();let t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();let t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();let i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new A(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();let i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){let t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn,s=Math.floor("number"!=typeof i||isNaN(i)?1:i),o=Math.floor("number"!=typeof n||isNaN(n)?1:n);if(s<1)s=1,o=1;else if(s>t)s=t,o=this.getLineMaxColumn(s);else if(o<=1)o=1;else{let e=this.getLineMaxColumn(s);o>=e&&(o=e)}let r=e.endLineNumber,l=e.endColumn,a=Math.floor("number"!=typeof r||isNaN(r)?1:r),d=Math.floor("number"!=typeof l||isNaN(l)?1:l);if(a<1)a=1,d=1;else if(a>t)a=t,d=this.getLineMaxColumn(a);else if(d<=1)d=1;else{let e=this.getLineMaxColumn(a);d>=e&&(d=e)}return i===s&&n===o&&r===a&&l===d&&e instanceof g.e&&!(e instanceof p.Y)?e:new g.e(s,o,a,d)}_isValidPosition(e,t,i){if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||e<1||t<1||(0|e)!==e||(0|t)!==t||e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){let i=this._buffer.getLineCharCode(e,t-2);if(a.ZG(i))return!1}return!0}_validatePosition(e,t,i){let n=Math.floor("number"!=typeof e||isNaN(e)?1:e),s=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(n<1)return new c.L(1,1);if(n>o)return new c.L(o,this.getLineMaxColumn(o));if(s<=1)return new c.L(n,1);let r=this.getLineMaxColumn(n);if(s>=r)return new c.L(n,r);if(1===i){let e=this._buffer.getLineCharCode(n,s-2);if(a.ZG(e))return new c.L(n,s-1)}return new c.L(n,s)}validatePosition(e){return(this._assertNotDisposed(),e instanceof c.L&&this._isValidPosition(e.lineNumber,e.column,1))?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){let i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(i,n,0)||!this._isValidPosition(s,o,0))return!1;if(1===t){let e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,r=a.ZG(e),l=a.ZG(t);return!r&&!l&&!0}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.e&&!(e instanceof p.Y)&&this._isValidRange(e,1))return e;let t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,s=t.column,o=i.lineNumber,r=i.column;{let e=s>1?this._buffer.getLineCharCode(n,s-2):0,t=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,i=a.ZG(e),l=a.ZG(t);return i||l?n===o&&s===r?new g.e(n,s-1,o,r-1):i&&l?new g.e(n,s-1,o,r+1):i?new g.e(n,s-1,o,r):new g.e(n,s,o,r+1):new g.e(n,s,o,r)}}modifyPosition(e,t){this._assertNotDisposed();let i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();let e=this.getLineCount();return new g.e(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,s,o,r=999){let l;this._assertNotDisposed();let a=null;null!==t&&(!Array.isArray(t)&&(t=[t]),t.every(e=>g.e.isIRange(e))&&(a=t.map(e=>this.validateRange(e)))),null===a&&(a=[this.getFullModelRange()]),a=a.sort((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn);let d=[];if(d.push(a.reduce((e,t)=>g.e.areIntersecting(e,t)?e.plusRange(t):(d.push(e),t))),!i&&0>e.indexOf("\n")){let t=new D.bc(e,i,n,s).parseSearchRequest();if(!t)return[];l=e=>this.findMatchesLineByLine(e,t,o,r)}else l=t=>D.pM.findMatches(this,new D.bc(e,i,n,s),t,o,r);return d.map(l).reduce((e,t)=>e.concat(t),[])}findNextMatch(e,t,i,n,s,o){this._assertNotDisposed();let r=this.validatePosition(t);if(!i&&0>e.indexOf("\n")){let t=new D.bc(e,i,n,s).parseSearchRequest();if(!t)return null;let l=this.getLineCount(),a=new g.e(r.lineNumber,r.column,l,this.getLineMaxColumn(l)),d=this.findMatchesLineByLine(a,t,o,1);return(D.pM.findNextMatch(this,new D.bc(e,i,n,s),r,o),d.length>0)?d[0]:(a=new g.e(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),(d=this.findMatchesLineByLine(a,t,o,1)).length>0)?d[0]:null}return D.pM.findNextMatch(this,new D.bc(e,i,n,s),r,o)}findPreviousMatch(e,t,i,n,s,o){this._assertNotDisposed();let r=this.validatePosition(t);return D.pM.findPreviousMatch(this,new D.bc(e,i,n,s),r,o)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof b.Qi?e:new b.Qi(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){let i=t.map(e=>({range:this.validateRange(e.range),text:e.text})),n=!0;if(e)for(let t=0,s=e.length;t<s;t++){let s=e[t],o=!1;for(let e=0,t=i.length;e<t;e++){let t=i[e].range,n=t.startLineNumber>s.endLineNumber,r=s.startLineNumber>t.endLineNumber;if(!n&&!r){o=!0;break}}if(!o){n=!1;break}}if(n)for(let e=0,n=this._trimAutoWhitespaceLines.length;e<n;e++){let n=this._trimAutoWhitespaceLines[e],s=this.getLineMaxColumn(n),o=!0;for(let e=0,t=i.length;e<t;e++){let t=i[e].range,r=i[e].text;if(!(n<t.startLineNumber||n>t.endLineNumber||n===t.startLineNumber&&t.startColumn===s&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0))){if(!(n===t.startLineNumber&&1===t.startColumn&&t.isEmpty())||!r||!(r.length>0)||"\n"!==r.charAt(r.length-1)){o=!1;break}}}if(o){let e=new g.e(n,1,n,s);t.push(new b.Qi(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){let s=e.map(e=>{let t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}});this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){let s=e.map(e=>{let t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}});this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();let i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){let i=this._buffer.getLineCount(),s=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=s.changes;if(this._trimAutoWhitespaceLines=s.trimAutoWhitespaceLineNumbers,0!==r.length){for(let e=0,t=r.length;e<t;e++){let t=r[e],[i,n,s]=(0,h.Q)(t.text);this._tokenizationTextModelPart.acceptEdit(t.range,t.text,i,n,s),this._decorationsTree.acceptReplace(t.rangeOffset,t.rangeLength,t.text.length,t.forceMoveMarkers)}let e=[];this._increaseVersionId();let t=i;for(let i=0,s=r.length;i<s;i++){let s=r[i],[l]=(0,h.Q)(s.text);this._onDidChangeDecorations.fire();let a=s.range.startLineNumber,d=s.range.endLineNumber,u=d-a,g=Math.min(u,l),p=l-u,f=o-t-p+a,m=f+l,_=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new c.L(f,1)),this.getOffsetAt(new c.L(m,this.getLineMaxColumn(m))),0),b=N.gk.fromDecorations(_),v=new n.H9(b);for(let t=g;t>=0;t--){let i=a+t,n=f+t;v.takeFromEndWhile(e=>e.lineNumber>n);let s=v.takeFromEndWhile(e=>e.lineNumber===n);e.push(new N.rU(i,this.getLineContent(n),s))}if(g<u){let t=a+g;e.push(new N.lN(t+1,d))}if(g<l){let i=new n.H9(b),s=a+g,r=l-g,d=o-t-r+s+1,h=[],u=[];for(let e=0;e<r;e++){let t=d+e;u[e]=this.getLineContent(t),i.takeWhile(e=>e.lineNumber<t),h[e]=i.takeWhile(e=>e.lineNumber===t)}e.push(new N.Tx(s+1,a+l,u,h))}t+=p}this._emitContentChangedEvent(new N.dQ(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===s.reverseEdits?void 0:s.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;let t=Array.from(e).map(e=>new N.rU(e,this.getLineContent(e),this._getInjectedTextInLine(e)));this._onDidChangeInjectedText.fire(new N.D8(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){let i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,q(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)},n=null;try{n=t(i)}catch(e){(0,o.dL)(e)}return i.addDecoration=P,i.changeDecoration=P,i.changeDecorationOptions=P,i.removeDecoration=P,i.deltaDecorations=P,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),!e&&(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,o.dL)(Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){let n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:U[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;let s=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,s),n.setOptions(U[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;let t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,i=t.length;e<i;e++){let i=t[e];this._decorationsTree.delete(i),delete this._decorations[i.id]}}getDecorationOptions(e){let t=this._decorations[e];return t?t.options:null}getDecorationRange(e){let t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,s=!1){let o=this.getLineCount(),r=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(r),a=new g.e(Math.min(o,Math.max(1,e)),1,r,l),d=this._getDecorationsInRange(a,i,s);return(0,n.vA)(d,this._decorationProvider.getDecorationsInRange(a,i,s)),d}getDecorationsInRange(e,t=0,i=!1){let s=this.validateRange(e),o=this._getDecorationsInRange(s,t,i);return(0,n.vA)(o,this._decorationProvider.getDecorationsInRange(s,t,i)),o}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){let t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return N.gk.fromDecorations(n).filter(t=>t.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t))}_getDecorationsInRange(e,t,i){let n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,s,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){let i=this._decorations[e];if(!i)return;if(i.options.after){let t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){let t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}let n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){let i=this._decorations[e];if(!i)return;let n=!!i.options.overviewRuler&&!!i.options.overviewRuler.color,s=!!t.overviewRuler&&!!t.overviewRuler.color;if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){let e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){let e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}n!==s?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){let n=this.getVersionId(),s=t.length,o=0,r=i.length,l=0,a=Array(r);for(;o<s||l<r;){let d=null;if(o<s){do d=this._decorations[t[o++]];while(!d&&o<s);if(d){if(d.options.after){let e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(d.options.before){let e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(d),this._onDidChangeDecorations.checkAffectedAndFire(d.options)}}if(l<r){if(!d){let e=++this._lastDecorationId,t=`${this._instanceId};${e}`;d=new k.fL(t,0,0),this._decorations[t]=d}let t=i[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=q(t.options),r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),h=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);d.ownerId=e,d.reset(n,r,h,s),d.setOptions(o),d.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),d.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(d),a[l]=d.id,l++}else d&&delete this._decorations[d.id]}return a}getLanguageId(){return this.tokenization.getLanguageId()}setMode(e){this.tokenization.setLanguageId(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(let i of e)if(" "===i||" "===i)t++;else break;return t}(this.getLineContent(e))+1}};R.MODEL_SYNC_LIMIT=52428800,R.LARGE_FILE_SIZE_THRESHOLD=20971520,R.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,R.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:f.D.tabSize,indentSize:f.D.indentSize,insertSpaces:f.D.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:f.D.trimAutoWhitespace,largeFileOptimizations:f.D.largeFileOptimizations,bracketPairColorizationOptions:f.D.bracketPairColorizationOptions},R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([O(4,E.tJ),O(5,m.O),O(6,_.c_)],R);function F(e){return!!e.options.overviewRuler&&!!e.options.overviewRuler.color}function z(e){return!!e.options.after||!!e.options.before}class j{constructor(){this._decorationsTree0=new k.IF,this._decorationsTree1=new k.IF,this._injectedTextDecorationsTree=new k.IF}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1)}_ensureNodesHaveRanges(e,t){for(let i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,s){let o=e.getVersionId(),r=this._intervalSearch(t,i,n,s,o);return this._ensureNodesHaveRanges(e,r)}_intervalSearch(e,t,i,n,s){let o=this._decorationsTree0.intervalSearch(e,t,i,n,s),r=this._decorationsTree1.intervalSearch(e,t,i,n,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,s);return o.concat(r).concat(l)}getInjectedTextInInterval(e,t,i,n){let s=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,s);return this._ensureNodesHaveRanges(e,o).filter(e=>e.options.showIfCollapsed||!e.range.isEmpty())}getAllInjectedText(e,t){let i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(e=>e.options.showIfCollapsed||!e.range.isEmpty())}getAll(e,t,i,n){let s=e.getVersionId(),o=this._search(t,i,n,s);return this._ensureNodesHaveRanges(e,o)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{let i=this._decorationsTree0.search(e,t,n),s=this._decorationsTree1.search(e,t,n),o=this._injectedTextDecorationsTree.search(e,t,n);return i.concat(s).concat(o)}}collectNodesFromOwner(e){let t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){let e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){z(e)?this._injectedTextDecorationsTree.insert(e):F(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){z(e)?this._injectedTextDecorationsTree.delete(e):F(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){let i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){z(e)?this._injectedTextDecorationsTree.resolveNode(e,t):F(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function V(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class H{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class B extends H{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:b.sh.Center}getColor(e){return!this._resolvedColor&&("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;let i=e?t.getColor(e.id):null;return i?i.toString():""}}class $ extends H{constructor(e){super(e),this.position=e.position}getColor(e){return!this._resolvedColor&&("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?s.Il.fromHex(e):t.getColor(e.id)}}class W{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof W?e:new W(e)}}class K{constructor(e){var t,i;this.description=e.description,this.blockClassName=e.blockClassName?V(e.blockClassName):null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?V(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new B(e.overviewRuler):null,this.minimap=e.minimap?new $(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?V(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?V(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?V(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?V(e.marginClassName):null,this.inlineClassName=e.inlineClassName?V(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?V(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?V(e.afterContentClassName):null,this.after=e.after?W.from(e.after):null,this.before=e.before?W.from(e.before):null,this.hideInCommentTokens=null!==(t=e.hideInCommentTokens)&&void 0!==t&&t,this.hideInStringTokens=null!==(i=e.hideInStringTokens)&&void 0!==i&&i}static register(e){return new K(e)}static createDynamic(e){return new K(e)}}K.EMPTY=K.register({description:"empty"});let U=[K.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),K.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),K.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),K.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function q(e){return e instanceof K?e:K.createDynamic(e)}class Q extends l.JT{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.Q5),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,0===this._deferredCnt){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);let e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(e)}null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){!this._affectedInjectedTextLines&&(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){!this._affectsMinimap&&(this._affectsMinimap=!!e.minimap&&!!e.minimap.position),!this._affectsOverviewRuler&&(this._affectsOverviewRuler=!!e.overviewRuler&&!!e.overviewRuler.color),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Z extends l.JT{constructor(){super(),this._fastEmitter=this._register(new r.Q5),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.Q5),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;let t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}},97319:function(e,t,i){"use strict";i.d(t,{r:function(){return a}});var n=i("24342"),s=i("37454"),o=i("95394"),r=i("12416");let l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function a(e,t,i,a){let h=a===r.R.ROOT_FOLDER?["rootfolder-icon"]:a===r.R.FOLDER?["folder-icon"]:["file-icon"];if(i){let u;if(i.scheme===n.lg.data)u=s.Vb.parseMetaData(i).get(s.Vb.META_DATA_LABEL);else{let e=i.path.match(l);e?(u=d(e[2].toLowerCase()),e[1]&&h.push(`${d(e[1].toLowerCase())}-name-dir-icon`)):u=d(i.authority.toLowerCase())}if(a===r.R.FOLDER)h.push(`${u}-name-folder-icon`);else{if(u){if(h.push(`${u}-name-file-icon`),h.push("name-file-icon"),u.length<=255){let e=u.split(".");for(let t=1;t<e.length;t++)h.push(`${e.slice(t).join(".")}-ext-file-icon`)}h.push("ext-file-icon")}let r=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===n.lg.data){let e=s.Vb.parseMetaData(i).get(s.Vb.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{let t=e.getModel(i);t&&(r=t.getLanguageId())}return r&&r!==o.bd?r:t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);r&&h.push(`${d(r)}-lang-file-icon`)}}return h}function d(e){return e.replace(/[\11\12\14\15\40]/g,"/")}},78936:function(e,t,i){"use strict";i.d(t,{S:function(){return n}});let n=(0,i("6301").yh)("textModelService")},91685:function(e,t,i){"use strict";i.d(t,{W:function(){return l}});var n=i("15776"),s=i("57938"),o=i("86043"),r=i("38643");function l(e,t){return null!==e?new a(e,t):t?d.INSTANCE:h.INSTANCE}class a{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){let n;this._assertVisible();let s=i>0?this._projectionData.breakOffsets[i-1]:0,r=this._projectionData.breakOffsets[i];if(null!==this._projectionData.injectionOffsets){let i=this._projectionData.injectionOffsets.map((e,t)=>new o.gk(0,0,e+1,this._projectionData.injectionOptions[t],0));n=o.gk.applyInjectedText(e.getLineContent(t),i).substring(s,r)}else n=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:r+1});return i>0&&(n=c(this._projectionData.wrappedTextIndentLength)+n),n}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){let n=[];return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,s,o,l,a){let d;this._assertVisible();let h=this._projectionData,u=h.injectionOffsets,c=h.injectionOptions,g=null;if(u){g=[];let e=0,t=0;for(let i=0;i<h.getOutputLineCount();i++){let n=[];g[i]=n;let s=i>0?h.breakOffsets[i-1]:0,o=h.breakOffsets[i];for(;t<u.length;){let l=c[t].content.length,a=u[t]+e,d=a+l;if(a>o)break;if(s<d){let e=c[t];if(e.inlineClassName){let t=i>0?h.wrappedTextIndentLength:0,l=t+Math.max(a-s,0),u=t+Math.min(d-s,o);l!==u&&n.push(new r.Wx(l,u,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(d<=o)e+=l,t++;else break}}}d=u?e.tokenization.getLineTokens(t).withInserted(u.map((e,t)=>({offset:e,text:c[t].content,tokenMetadata:n.A.defaultTokenMetadata}))):e.tokenization.getLineTokens(t);for(let e=i;e<i+s;e++){let t=o+e-i;if(!l[t]){a[t]=null;continue}a[t]=this._getViewLineData(d,g?g[e]:null,e)}}_getViewLineData(e,t,i){this._assertVisible();let n=this._projectionData,s=i>0?n.wrappedTextIndentLength:0,o=i>0?n.breakOffsets[i-1]:0,l=n.breakOffsets[i],a=e.sliceAndInflate(o,l,s),d=a.getLineContent();i>0&&(d=c(n.wrappedTextIndentLength)+d);let h=this._projectionData.getMinOutputOffset(i)+1,u=d.length+1,g=i+1<this.getViewLineCount(),p=0===i?0:n.breakOffsetsVisibleColumn[i-1];return new r.IP(d,g,h,u,p,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){return this._assertVisible(),this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){return this._assertVisible(),e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){let n=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(n)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw Error("Not supported")}}class d{constructor(){}isVisible(){return!0}setVisible(e){return e?this:h.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){let n=e.tokenization.getLineTokens(t),s=n.getLineContent();return new r.IP(s,!1,1,s.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,s,o,r){if(!o[s]){r[s]=null;return}r[s]=this.getViewLineData(e,t,0)}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new s.L(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}d.INSTANCE=new d;class h{constructor(){}isVisible(){return!1}setVisible(e){return e?d.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw Error("Not supported")}getViewLineLength(e,t,i){throw Error("Not supported")}getViewLineMinColumn(e,t,i){throw Error("Not supported")}getViewLineMaxColumn(e,t,i){throw Error("Not supported")}getViewLineData(e,t,i){throw Error("Not supported")}getViewLinesData(e,t,i,n,s,o,r){throw Error("Not supported")}getModelColumnOfViewPosition(e,t){throw Error("Not supported")}getViewPositionOfModelPosition(e,t){throw Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw Error("Not supported")}normalizePosition(e,t,i){throw Error("Not supported")}getInjectedTextAt(e,t){throw Error("Not supported")}}h.INSTANCE=new h;let u=[""];function c(e){if(e>=u.length)for(let t=1;t<=e;t++)u[t]=function(e){return Array(e+1).join(" ")}(t);return u[e]}},63636:function(e,t,i){"use strict";i.d(t,{$t:function(){return d},CU:function(){return l},Fd:function(){return a},zg:function(){return h}});var n=i("57938"),s=i("61045"),o=i("38643"),r=i("16637");class l{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){let t=e.id,i=this._decorationsCache[t];if(!i){let r;let l=e.range,a=e.options;if(a.isWholeLine){let e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(l.startLineNumber,1),0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(l.endLineNumber,this.model.getLineMaxColumn(l.endLineNumber)),1);r=new s.e(e.lineNumber,e.column,t.lineNumber,t.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(l,1);i=new o.$l(r,a),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return!(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))&&(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){let t=new s.e(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){let t=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$J)(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,l=[],d=0,h=[];for(let e=i;e<=n;e++)h[e-i]=[];for(let e=0,r=t.length;e<r;e++){let r=t[e],u=r.options;if(!a(this.model,r))continue;let c=this._getOrCreateViewModelDecoration(r),g=c.range;if(l[d++]=c,u.inlineClassName){let e=new o.$t(g,u.inlineClassName,u.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(i,g.startLineNumber),s=Math.min(n,g.endLineNumber);for(let n=t;n<=s;n++)h[n-i].push(e)}if(u.beforeContentClassName&&i<=g.startLineNumber&&g.startLineNumber<=n){let e=new o.$t(new s.e(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),u.beforeContentClassName,1);h[g.startLineNumber-i].push(e)}if(u.afterContentClassName&&i<=g.endLineNumber&&g.endLineNumber<=n){let e=new o.$t(new s.e(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),u.afterContentClassName,2);h[g.endLineNumber-i].push(e)}}return{decorations:l,inlineDecorations:h}}}function a(e,t){return!(t.options.hideInCommentTokens&&d(e,t)||t.options.hideInStringTokens&&h(e,t))&&!0}function d(e,t){return u(e,t.range,e=>1===e)}function h(e,t){return u(e,t.range,e=>2===e)}function u(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let s=e.tokenization.getLineTokens(n),o=n===t.startLineNumber,r=n===t.endLineNumber,l=o?s.findTokenIndexAtOffset(t.startColumn-1):0;for(;l<s.getCount()&&!(r&&s.getStartOffset(l)>t.endColumn-1);){;if(!i(s.getStandardTokenType(l)))return!1;l++}}return!0}},87092:function(e,t,i){"use strict";var n=i("59923"),s=i("76617"),o=i("12188"),r=i("8339");class l extends n.R6{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[];for(let e of t.getSelections())i.push(new o.T(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Qr)(class e extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:r.NC("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:s.u.writable})}}),(0,n.Qr)(class e extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:r.NC("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:s.u.writable})}})},10798:function(e,t,i){"use strict";var n=i("59923"),s=i("38846"),o=i("77287"),r=i("61045"),l=i("76617"),a=i("8339");class d extends n.R6{constructor(){super({id:"editor.action.transposeLetters",label:a.NC("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:l.u.writable,kbOpts:{kbExpr:l.u.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[];for(let e of t.getSelections()){if(!e.isEmpty())continue;let t=e.startLineNumber,l=e.startColumn,a=i.getLineMaxColumn(t);if(1===t&&(1===l||2===l&&2===a))continue;let d=l===a?e.getPosition():o.o.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),h=o.o.leftPosition(i,d),u=o.o.leftPosition(i,h),c=i.getValueInRange(r.e.fromPositions(u,h)),g=i.getValueInRange(r.e.fromPositions(h,d)),p=r.e.fromPositions(u,d);n.push(new s.T4(p,g+c))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.Qr)(d)},64228:function(e,t,i){"use strict";var n=i("59527"),s=i("7875"),o=i("37717"),r=i("59923"),l=i("83368"),a=i("76617"),d=i("8339"),h=i("51553"),u=i("4264");let c="9_cutcopypaste",g=s.tY||document.queryCommandSupported("cut"),p=s.tY||document.queryCommandSupported("copy"),f=void 0!==navigator.clipboard&&!n.isFirefox||document.queryCommandSupported("paste");function m(e){return e.register(),e}let _=g?m(new r.AJ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:s.tY?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:d.NC({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:h.eH.EditorContext,group:c,title:d.NC("actions.clipboard.cutLabel","Cut"),when:a.u.writable,order:1},{menuId:h.eH.CommandPalette,group:"",title:d.NC("actions.clipboard.cutLabel","Cut"),order:1},{menuId:h.eH.SimpleEditorContext,group:c,title:d.NC("actions.clipboard.cutLabel","Cut"),when:a.u.writable,order:1}]})):void 0,b=p?m(new r.AJ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:s.tY?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:d.NC({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:h.eH.EditorContext,group:c,title:d.NC("actions.clipboard.copyLabel","Copy"),order:2},{menuId:h.eH.CommandPalette,group:"",title:d.NC("actions.clipboard.copyLabel","Copy"),order:1},{menuId:h.eH.SimpleEditorContext,group:c,title:d.NC("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;h.BH.appendMenuItem(h.eH.MenubarEditMenu,{submenu:h.eH.MenubarCopy,title:{value:d.NC("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),h.BH.appendMenuItem(h.eH.EditorContext,{submenu:h.eH.EditorContextCopy,title:{value:d.NC("copy as","Copy As"),original:"Copy As"},group:c,order:3}),h.BH.appendMenuItem(h.eH.EditorContext,{submenu:h.eH.EditorContextShare,title:{value:d.NC("share","Share"),original:"Share"},group:"11_share",order:-1});let v=f?m(new r.AJ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:s.tY?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:d.NC({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:h.eH.EditorContext,group:c,title:d.NC("actions.clipboard.pasteLabel","Paste"),when:a.u.writable,order:4},{menuId:h.eH.CommandPalette,group:"",title:d.NC("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:h.eH.SimpleEditorContext,group:c,title:d.NC("actions.clipboard.pasteLabel","Paste"),when:a.u.writable,order:4}]})):void 0;class C extends r.R6{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.NC("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:a.u.textInputFocus,primary:0,weight:100}})}run(e,t){if(!!t.hasModel())!(!t.getOption(33)&&t.getSelection().isEmpty())&&(o.RA.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),o.RA.forceCopyWithSyntaxHighlighting=!1)}}function y(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,i)=>{let n=e.get(l.$).getFocusedCodeEditor();if(n&&n.hasTextFocus()){let e=n.getOption(33),i=n.getSelection();return!!(i&&i.isEmpty())&&!e||(document.execCommand(t),!0)}return!1}),e.addImplementation(0,"generic-dom",(e,i)=>(document.execCommand(t),!0)))}y(_,"cut"),y(b,"copy"),v&&(v.addImplementation(1e4,"code-editor",(e,t)=>{let i=e.get(l.$),n=e.get(u.p),r=i.getFocusedCodeEditor();if(r&&r.hasTextFocus()){if(!document.execCommand("paste")&&s.$L){var a,d,h,c;return a=void 0,d=void 0,h=void 0,c=function*(){let e=yield n.readText();if(""!==e){let t=o.Nl.INSTANCE.get(e),i=!1,n=null,s=null;t&&(i=r.getOption(33)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,s=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:s})}},new(h||(h=Promise))(function(e,t){function i(e){try{s(c.next(e))}catch(e){t(e)}}function n(e){try{s(c.throw(e))}catch(e){t(e)}}function s(t){var s;t.done?e(t.value):((s=t.value)instanceof h?s:new h(function(e){e(s)})).then(i,n)}s((c=c.apply(a,d||[])).next())})}return!0}return!1}),v.addImplementation(0,"generic-dom",(e,t)=>(document.execCommand("paste"),!0))),p&&(0,r.Qr)(C)},84315:function(e,t,i){"use strict";i.d(t,{n:function(){return _}});var n,s,o=i("67518"),r=i("862"),l=i("35271"),a=i("19527"),d=i("61045"),h=i("44126"),u=i("68487"),c=i("82524"),g=i("98048"),p=i("39703"),f=function(e,t,i,n){return new(i||(i=Promise))(function(s,o){function r(e){try{a(n.next(e))}catch(e){o(e)}}function l(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};class m{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let _=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return o.Aq.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return f(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let e=u.i.get(this._editor);if(!e)return[];for(let i of t){if(!e.isColorDecoration(i))continue;let t=e.getColorData(i.range.getStartPosition());if(t)return[(yield this._createColorHover(this._editor.getModel(),t.colorInfo,t.provider))]}return[]})}_createColorHover(e,t,i){return f(this,void 0,void 0,function*(){let n=e.getValueInRange(t.range),{red:s,green:o,blue:a,alpha:u}=t.color,g=new l.VS(Math.round(255*s),Math.round(255*o),Math.round(255*a),u),p=new l.Il(g),f=yield(0,h.R)(e,t,i,r.T.None),_=new c.A(p,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(p,n),new m(this,d.e.lift(t.range),_,i)})}renderHoverParts(e,t){if(0===t.length||!this._editor.hasModel())return a.JT.None;let i=new a.SL,n=t[0],s=this._editor.getModel(),o=n.model,l=i.add(new g.YW(e.fragment,o,this._editor.getOption(131),this._themeService));e.setColorPicker(l);let u=new d.e(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn),c=()=>{let t,i;if(o.presentation.textEdit){t=[o.presentation.textEdit],i=new d.e(o.presentation.textEdit.range.startLineNumber,o.presentation.textEdit.range.startColumn,o.presentation.textEdit.range.endLineNumber,o.presentation.textEdit.range.endColumn);let e=this._editor.getModel()._setTrackedRange(null,i,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t),i=this._editor.getModel()._getTrackedRange(e)||i}else t=[{range:u,text:o.presentation.label,forceMoveMarkers:!1}],i=u.setEndPosition(u.endLineNumber,u.startColumn+o.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t);o.presentation.additionalTextEdits&&(t=[...o.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",t),e.hide()),this._editor.pushUndoStop(),u=i},p=e=>(0,h.R)(s,{range:u,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},n.provider,r.T.None).then(e=>{o.colorPresentations=e||[]});return i.add(o.onColorFlushed(e=>{p(e).then(c)})),i.add(o.onDidChangeColor(p)),i}};_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,s=p.XE,function(e,t){s(e,t,1)})],_)},44739:function(e,t,i){"use strict";i.d(t,{l:function(){return C}});var n=i("9737"),s=i("70691"),o=i("19527"),r=i("77403"),l=i("61045"),a=i("10870"),d=i("88936"),h=i("49429"),u=i("8339"),c=i("38204"),g=i("51553"),p=i("21095"),f=i("49436"),m=i("80204"),_=i("37623"),b=function(e,t){return function(i,n){t(i,n,e)}};class v{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return(null===(i=null===(t=null===(e=this.controller.activeModel)||void 0===e?void 0:e.activeInlineCompletionsModel)||void 0===t?void 0:t.completionSession.value)||void 0===i?void 0:i.commands)||[]}}let C=class{constructor(e,t,i,n,s,o,r){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=s,this._openerService=o,this.accessibilityService=r,this.hoverOrdinal=3}suggestHoverAnchor(e){let t=h.Kp.get(this._editor);if(!t)return null;let i=e.target;if(8===i.type){let e=i.detail;if(t.shouldShowHoverAtViewZone(e.viewZoneId))return new d.YM(1e3,this,l.e.fromPositions(e.positionBefore||e.position,e.positionBefore||e.position))}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new d.YM(1e3,this,i.range):null}computeSync(e,t){let i=h.Kp.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new v(this,e.range,i)]:[]}renderHoverParts(e,t){let i=new o.SL,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);let s=i.add(this._menuService.createMenu(g.eH.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:u.NC("showNextInlineSuggestion","Next"),commandId:h.L8.ID,run:()=>this._commandService.executeCommand(h.L8.ID)}),l=e.statusBar.addAction({label:u.NC("showPreviousInlineSuggestion","Previous"),commandId:h.a5.ID,run:()=>this._commandService.executeCommand(h.a5.ID)});e.statusBar.addAction({label:u.NC("acceptInlineSuggestion","Accept"),commandId:_.O,run:()=>this._commandService.executeCommand(_.O)});let a=[r,l];for(let e of a)e.setEnabled(!1);for(let t of(n.hasMultipleSuggestions().then(e=>{for(let t of a)t.setEnabled(e)}),n.commands))e.statusBar.addAction({label:t.title,commandId:t.id,run:()=>this._commandService.executeCommand(t.id,...t.arguments||[])});for(let[t,i]of s.getActions())for(let t of i)t instanceof g.U8&&e.statusBar.addAction({label:t.label,commandId:t.item.id,run:()=>this._commandService.executeCommand(t.item.id)});return i}renderScreenReaderText(e,t,i){var o,l;let a=n.$,d=a("div.hover-row.markdown-hover"),h=n.R3(d,a("div.hover-contents")),c=i.add(new r.$({editor:this._editor},this._languageService,this._openerService)),g=null===(l=null===(o=t.controller.activeModel)||void 0===o?void 0:o.inlineCompletionsModel)||void 0===l?void 0:l.ghostText;if(g){let t=this._editor.getModel().getLineContent(g.lineNumber);(t=>{i.add(c.onDidRenderAsync(()=>{h.className="hover-contents code-hover-contents",e.onContentsChanged()}));let n=u.NC("inlineSuggestionFollows","Suggestion:"),o=i.add(c.render(new s.W5().appendText(n).appendCodeblock("text",t)));h.replaceChildren(o.element)})(g.renderForScreenReader(t))}e.fragment.appendChild(d)}};C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([b(1,p.Hy),b(2,g.co),b(3,f.i6),b(4,a.O),b(5,m.v4),b(6,c.F)],C)},93642:function(e,t,i){"use strict";i.d(t,{T:function(){return o}});var n=i("47578"),s=i("82168");class o extends s.Z{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,n.x$)(i.label)||i.id});return t}}},61810:function(e,t,i){"use strict";var n,s,o,r=i("19527"),l=i("59923"),a=i("78540"),d=i("32633"),h=i("862"),u=i("9737"),c=i("34630"),g=i("81161"),p=i("30751"),f=i("67518"),m=i("57938"),_=function(e,t,i,n){return new(i||(i=Promise))(function(s,o){function r(e){try{a(n.next(e))}catch(e){o(e)}}function l(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};let b=class extends r.JT{constructor(e,t){super(),this._sessionStore=new r.SL,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new y(this._editor),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new f.pY(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(!1===this._editor.getOption(34).stickyScroll.enabled){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(e=>this._onTokensChange(e))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){for(let t of this.stickyScrollWidget.getCurrentLines())for(let i of e.ranges)if(t>=i.fromLineNumber&&t<=i.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return _(this,void 0,void 0,function*(){e&&(null===(t=this._cts)||void 0===t||t.dispose(!0),this._cts=new h.A,yield this._updateOutlineModel(this._cts.token));let n=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(n)for(let e of n)this._ranges=this._ranges.filter(t=>!(t[0]>=e.startLineNumber&&t[1]<=e.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(null==e?void 0:e.children.size){let i=!1;for(let n of null==e?void 0:e.children.values()){let e=n.symbol.kind;(4===e||8===e||11===e||10===e||5===e||1===e)&&(i=!0,this._findLineRanges(n,t+1))}!i&&this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){let s=e.symbol.kind;if((4===s||8===s||11===s||10===s||5===s||1===s)&&(i=null==e?void 0:e.symbol.range.startLineNumber,n=null==e?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof d.sT)e=e.parent;else break}}_updateOutlineModel(e){return _(this,void 0,void 0,function*(){if(this._editor.hasModel()){let t=this._editor.getModel(),i=t.getVersionId(),n=yield d.C3.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(!e.isCancellationRequested)for(let e of(this._ranges=[],this._rangesVersionId=i,n.children.values())){if(e instanceof d.sT){let t=e.symbol.kind;4===t||8===t||11===t||10===t||5===t||1===t?this._findLineRanges(e,1):this._findLineRanges(e,0)}this._ranges=this._ranges.sort(function(e,t){return e[0]!==t[0]?e[0]-t[0]:e[1]!==t[1]?t[1]-e[1]:e[2]-t[2]});let t=[];for(let[e,i]of this._ranges.entries()){let[n,s,o]=i;t[0]===n&&t[1]===s?this._ranges.splice(e,1):t=i}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;let e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;let i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();let n=new Set;for(let[s,o]of this._ranges.entries()){let[r,l,a]=o;if(l-r>0&&""!==t.getLineContent(r)){let t=(a-1)*e,o=a*e,d=this._editor.getBottomForLineNumber(r)-i,h=this._editor.getTopForLineNumber(l)-i,u=this._editor.getBottomForLineNumber(l)-i;if(n.has(r))this._ranges.splice(s,1);else{if(t>=h-1&&t<u-2){n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,-1,u-o));break}o>d&&o<u-1&&(n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,0,0)))}}}this.stickyScrollWidget.updateRootNode()}dispose(){super.dispose(),this._sessionStore.dispose()}};b.ID="store.contrib.stickyScrollController",b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,s=a.p,function(e,t){s(e,t,1)})],b);let v=null===(o=window.trustedTypes)||void 0===o?void 0:o.createPolicy("stickyScrollViewLayer",{createHTML:e=>e});class C{constructor(e,t,i,n,s){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=s,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){let e,t;let i=document.createElement("div"),n=this._editor._getViewModel(),s=n.coordinatesConverter.convertModelPositionToViewPosition(new m.L(this._lineNumber,1)).lineNumber,o=n.getViewLineRenderingData(s);try{e=p.Kp.filter(o.inlineDecorations,s,o.minColumn,o.maxColumn)}catch(t){e=[]}let r=new g.IJ(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,e,o.tabSize,o.startVisibleColumn,1,1,1,100,"none",!0,!0,null),l=(0,c.l$)(400);(0,g.d1)(r,l),t=v?v.createHTML(l.build()):l.build();let a=document.createElement("span");a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",a.style.overflow="hidden",a.style.whiteSpace="nowrap",a.style.display="inline-block",a.style.lineHeight=this._editor.getOption(61).toString()+"px",a.innerHTML=t;let d=document.createElement("span");d.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.color="var(--vscode-editorLineNumber-foreground)",d.style.display="inline-block",d.style.lineHeight=this._editor.getOption(61).toString()+"px";let h=document.createElement("span");return h.innerText=this._lineNumber.toString(),h.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",h.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",h.style.backgroundColor="var(--vscode-editorStickyScroll-background)",h.style.textAlign="right",h.style.float="left",h.style.lineHeight=this._editor.getOption(61).toString()+"px",d.appendChild(h),i.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},i.onmouseover=e=>{h.style.background="var(--vscode-editorStickyScrollHover-background)",a.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",i.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",h.style.cursor="pointer",a.style.cursor="pointer",i.style.cursor="pointer",d.style.cursor="pointer"},i.onmouseleave=e=>{h.style.background="var(--vscode-editorStickyScroll-background)",a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(a),this._editor.applyFontInfo(h),i.appendChild(d),i.appendChild(a),i.style.zIndex=this._zIndex.toString(),i.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.style.width="100%",i.style.lineHeight=this._editor.getOption(61).toString()+"px",i.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(i.style.position="relative",i.style.top=this._relativePosition+"px",i.style.width="100%"),i}}class y{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){let e=[];for(let t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(let t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,u.PO(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}(0,l._K)(b.ID,b)},56886:function(e,t,i){"use strict";i.d(t,{Re:function(){return m},mh:function(){return _},nJ:function(){return f}});var n,s,o=i("9737"),r=i("42401"),l=i("71628"),a=i("16904"),d=i("70691"),h=i("19527"),u=i("77403"),c=i("59725"),g=i("8339"),p=i("6301");function f(e){return!!e&&!!(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let m=class{constructor(e,t){this._editor=e,this._onDidClose=new a.Q5,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new a.Q5,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.SL,this._renderDisposeable=new h.SL,this._borderWidth=1,this._size=new o.Ro(330,0),this.domNode=o.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(u.$,{editor:e}),this._body=o.$(".body"),this._scrollbar=new r.s$(this._body,{alwaysConsumeMouseWheel:!0}),o.R3(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=o.R3(this._body,o.$(".header")),this._close=o.R3(this._header,o.$("span"+l.lA.close.cssSelector)),this._close.title=g.NC("details.close","Close"),this._type=o.R3(this._header,o.$("p.type")),this._docs=o.R3(this._body,o.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(46)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){let e=this._editor.getOptions(),t=e.get(46),i=t.getMassagedFontFamily(),n=e.get(109)||t.fontSize,s=e.get(110)||t.lineHeight,o=t.fontWeight,r=`${n}px`,l=`${s}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=`${s/n}`,this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){let e=this._editor.getOption(110)||this._editor.getOption(46).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=g.NC("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:r}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}
1
+ (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["387"],{72740:function(e,t,i){"use strict";i.d(t,{T:function(){return r}});var n=i("9737"),s=i("71628");let o=RegExp(`(\\\\)?\\$\\((${s.dT.iconNameExpression}(?:${s.dT.iconModifierExpression})?)\\)`,"g");function r(e){let t;let i=[],r=0,l=0;for(;null!==(t=o.exec(e));){l=t.index||0,i.push(e.substring(r,l)),r=(t.index||0)+t[0].length;let[,o,a]=t;i.push(o?`$(${a})`:function(e){let t=n.$("span");return t.classList.add(...s.dT.asClassNameArray(e)),t}({id:a}))}return r<e.length&&i.push(e.substring(r)),i}},3692:function(e,t,i){"use strict";i.d(t,{F:function(){return r}});var n=i("85142"),s=i("507"),o=i("80189");class r{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new n.X(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=o.$.empty(),i={}){let n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=o.$.empty(),i){let n=new Set,s=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{var t;if(null!==e.element){if(n.add(e.element),this.nodes.set(e.element,e),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();s.add(t),this.nodesByIdentity.set(t,e)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,e)}},onDidDeleteNode:e=>{var t;if(null!==e.element){if(!n.has(e.element)&&this.nodes.delete(e.element),this.identityProvider){let t=this.identityProvider.getId(e.element).toString();!s.has(t)&&this.nodesByIdentity.delete(t)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,e)}}}))}preserveCollapseState(e=o.$.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),o.$.map(e,e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){let i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});let i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible,n=void 0!==e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)})})}rerender(e){let t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){let t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){let t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);let t=this.nodes.get(e);if(!t)throw new s.ac(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new s.ac(this.user,"Invalid getParentNodeLocation call");let t=this.nodes.get(e);if(!t)throw new s.ac(this.user,`Tree element not found: ${e}`);let i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];let t=this.nodes.get(e);if(!t)throw new s.ac(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}},16904:function(e,t,i){"use strict";i.d(t,{D0:function(){return _},E7:function(){return b},F3:function(){return g},K3:function(){return m},Q5:function(){return c},ZD:function(){return v},ju:function(){return n}});var n,s=i("61111"),o=i("19527"),r=i("62300"),l=i("30039");!function(e){function t(e){}function i(e){return(t,i=null,n)=>{let s,o=!1;return s=e(e=>o?void 0:(s?s.dispose():o=!0,t.call(i,e)),null,n),o&&s.dispose(),s}}function n(e,t,i){return a((i,n=null,s)=>e(e=>i.call(n,t(e)),null,s),i)}function s(e,t,i){return a((i,n=null,s)=>e(e=>{t(e),i.call(n,e)},null,s),i)}function r(e,t,i){return a((i,n=null,s)=>e(e=>t(e)&&i.call(n,e),null,s),i)}e.None=()=>o.JT.None,e.once=i,e.map=n,e.forEach=s,e.filter=r;e.signal=function(e){return e};function l(e,t,i,s){let o=i;return n(e,e=>o=t(o,e),s)}function a(e,i){let n;let s={onFirstListenerAdd(){n=e(o.fire,o)},onLastListenerRemove(){null==n||n.dispose()}};!i&&t(s);let o=new c(s);return null==i||i.add(o),o.event}function d(e,i,n=100,s=!1,o,r){let l,a,d;let h=0,u={leakWarningThreshold:o,onFirstListenerAdd(){l=e(e=>{h++,a=i(a,e),s&&!d&&(g.fire(a),a=void 0),clearTimeout(d),d=setTimeout(()=>{let e=a;a=void 0,d=void 0,(!s||h>1)&&g.fire(e),h=0},n)})},onLastListenerRemove(){l.dispose()}};!r&&t(u);let g=new c(u);return null==r||r.add(g),g.event}function h(e,t=(e,t)=>e===t,i){let n,s=!0;return r(e,e=>{let i=s||!t(e,n);return s=!1,n=e,i},i)}e.any=function(...e){return(t,i=null,n)=>(0,o.F8)(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=l,e.debounce=d,e.latch=h;e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]};e.buffer=function(e,t=!1,i=[]){let n=i.slice(),s=e(e=>{n?n.push(e):r.fire(e)}),o=()=>{null==n||n.forEach(e=>r.fire(e)),n=null},r=new c({onFirstListenerAdd(){!s&&(s=e(e=>r.fire(e)))},onFirstListenerDidAdd(){n&&(t?setTimeout(o):o())},onLastListenerRemove(){s&&s.dispose(),s=null}});return r.event};class u{constructor(e){this.event=e,this.disposables=new o.SL}map(e){return new u(n(this.event,e,this.disposables))}forEach(e){return new u(s(this.event,e,this.disposables))}filter(e){return new u(r(this.event,e,this.disposables))}reduce(e,t){return new u(l(this.event,e,t,this.disposables))}latch(){return new u(h(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n){return new u(d(this.event,e,t,i,n,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,t,n){return i(this.event)(e,t,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new u(e)};e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>s.fire(i(...e)),s=new c({onFirstListenerAdd:()=>e.on(t,n),onLastListenerRemove:()=>e.removeListener(t,n)});return s.event};e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>s.fire(i(...e)),s=new c({onFirstListenerAdd:()=>e.addEventListener(t,n),onLastListenerRemove:()=>e.removeEventListener(t,n)});return s.event};e.toPromise=function(e){return new Promise(t=>i(e)(t))};e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))};e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new o.SL)}n(void 0);let s=e(e=>n(e));return(0,o.OF)(()=>{s.dispose(),null==i||i.dispose()})};class g{constructor(e,i){this.obs=e,this._counter=0,this._hasChanged=!1;let n={onFirstListenerAdd:()=>{e.addObserver(this)},onLastListenerRemove:()=>{e.removeObserver(this)}};!i&&t(n),this.emitter=new c(n),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handleChange(e,t){this._hasChanged=!0}endUpdate(e){0==--this._counter&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}e.fromObservable=function(e,t){return new g(e,t).emitter.event}}(n||(n={}));class a{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${a._idPool++}`}start(e){this._stopWatch=new l.G(!0),this._listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}a._idPool=0;class d{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e,t){let i=-1;if("number"==typeof this.customThreshold&&(i=this.customThreshold),i<=0||t<i)return;!this._stacks&&(this._stacks=new Map);let n=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let e;this._warnCountdown=.5*i;let n=0;for(let[t,i]of this._stacks)(!e||n<i)&&(e=t,n=i);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${n}):`),console.warn(e)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class h{constructor(e){this.value=e}static create(){var e;return new h(null!==(e=Error().stack)&&void 0!==e?e:"")}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class u{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new o.dt}invoke(e){this.callback.call(this.callbackThis,e)}}class c{constructor(e){var t,i;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new a(this._options._profName):void 0,this._deliveryQueue=null===(i=this._options)||void 0===i?void 0:i.deliveryQueue}dispose(){var e,t,i,n,s;if(!this._disposed){if(this._disposed=!0,this._listeners){;this._listeners.clear()}null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(i=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose()}}get event(){return!this._event&&(this._event=(e,t,i)=>{var n,s,l;let a,d;!this._listeners&&(this._listeners=new r.S);let c=this._listeners.isEmpty();c&&(null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this),this._leakageMon&&this._listeners.size>=30&&(d=h.create(),a=this._leakageMon.check(d,this._listeners.size+1));let g=new u(e,t,d),p=this._listeners.push(g);c&&(null===(s=this._options)||void 0===s?void 0:s.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),(null===(l=this._options)||void 0===l?void 0:l.onListenerDidAdd)&&this._options.onListenerDidAdd(this,e,t);let f=g.subscription.set(()=>{null==a||a(),!this._disposed&&(p(),this._options&&this._options.onLastListenerRemove&&!(this._listeners&&!this._listeners.isEmpty())&&this._options.onLastListenerRemove(this))});return i instanceof o.SL?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}fire(e){var t,i;if(this._listeners){for(let t of(!this._deliveryQueue&&(this._deliveryQueue=new p),this._listeners))this._deliveryQueue.push(this,t,e);null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(i=this._perfMon)||void 0===i||i.stop()}}}class g{constructor(){this._queue=new r.S}get size(){return this._queue.size}push(e,t,i){this._queue.push(new f(e,t,i))}clear(e){let t=new r.S;for(let i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){let e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){(0,s.dL)(e)}}}}class p extends g{clear(e){this._queue.clear()}}class f{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class m extends c{constructor(e){super(e),this._isPaused=0,this._eventQueue=new r.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class _ extends m{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){!this._handle&&(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class b{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class v{constructor(){this.listening=!1,this.inputEvent=n.None,this.inputEventListener=o.JT.None,this.emitter=new c({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},80189:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};let t=Object.freeze([]);e.empty=function(){return t};e.single=function*(e){yield e};e.from=function(e){return e||t};e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done};e.first=function(e){return e[Symbol.iterator]().next().value};e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1};e.find=function(e,t){for(let i of e)if(t(i))return i};e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)};e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)};e.concat=function*(...e){for(let t of e)for(let e of t)yield e};e.concatNested=function*(e){for(let t of e)for(let e of t)yield e};e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n};e.forEach=function(e,t){let i=0;for(let n of e)t(n,i++)};function i(t,i=Number.POSITIVE_INFINITY){let n=[];if(0===i)return[n,t];let s=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=s.next();if(t.done)return[n,e.empty()];n.push(t.value)}return[n,{[Symbol.iterator]:()=>s}]}e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=i;e.collect=function(e){return i(e)[0]};e.equals=function(e,t,i=(e,t)=>e===t){let n=e[Symbol.iterator](),s=t[Symbol.iterator]();for(;;){let e=n.next(),t=s.next();if(e.done!==t.done)return!1;if(e.done)return!0;else if(!i(e.value,t.value))return!1}}}(n||(n={}))},63368:function(e,t,i){"use strict";i.d(t,{og:function(){return s},xY:function(){return T}});var n,s,o=i("9737"),r=i("85763"),l=i("62880"),a=i("96479"),d=i("26573"),h=i("31453"),u=i("3868"),c=i("71628"),g=i("9778"),p=i("49714"),f=i("16904"),m=i("47578"),_=i("19527"),b=i("7875"),v=i("66763"),C=i("44138"),y=i("86329");i("39910");var w=i("8339"),S=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let k=o.$;class L{constructor(e){this.hidden=!1,this._onChecked=new f.Q5,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class x{get templateId(){return x.ID}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=o.R3(e,k(".quick-input-list-entry"));let i=o.R3(t.entry,k("label.quick-input-list-label"));t.toDisposeTemplate.push(o.mu(i,o.tw.CLICK,e=>{!t.checkbox.offsetParent&&e.preventDefault()})),t.checkbox=o.R3(i,k("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(o.mu(t.checkbox,o.tw.CHANGE,e=>{t.element.checked=t.checkbox.checked}));let n=o.R3(i,k(".quick-input-list-rows")),s=o.R3(n,k(".quick-input-list-row")),r=o.R3(n,k(".quick-input-list-row"));t.label=new a.g(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});let h=o.R3(s,k(".quick-input-list-entry-keybinding"));t.keybinding=new d.e(h,b.OS);let u=o.R3(r,k(".quick-input-list-label-meta"));return t.detail=new a.g(u,{supportHighlights:!0,supportIcons:!0}),t.separator=o.R3(t.entry,k(".quick-input-list-separator")),t.actionBar=new l.o(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=(0,_.B9)(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(e=>i.checkbox.checked=e));let{labelHighlights:n,descriptionHighlights:s,detailHighlights:o}=e,r=Object.create(null);r.matches=n||[],r.descriptionTitle=e.saneDescription,r.descriptionMatches=s||[],r.extraClasses=e.item.iconClasses,r.italic=e.item.italic,r.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,r),i.keybinding.set(e.item.keybinding),e.saneDetail&&i.detail.setLabel(e.saneDetail,void 0,{matches:o,title:e.saneDetail}),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();let l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((t,i)=>{let n=t.iconClass||(t.iconPath?(0,y.Q)(t.iconPath):void 0);t.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");let s=new h.aU(`id-${i}`,"",n,!0,()=>{var i,n,s,o;return i=this,n=void 0,s=void 0,o=function*(){e.fireButtonTriggered({button:t,item:e.item})},new(s||(s=Promise))(function(e,t){function r(e){try{a(o.next(e))}catch(e){t(e)}}function l(e){try{a(o.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):((i=t.value)instanceof s?i:new s(function(e){e(i)})).then(r,l)}a((o=o.apply(i,n||[])).next())})});return s.tooltip=t.tooltip||"",s}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=(0,_.B9)(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=(0,_.B9)(e.toDisposeElement),e.toDisposeTemplate=(0,_.B9)(e.toDisposeTemplate)}}x.ID="listelement";class D{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return x.ID}}(n=s||(s={}))[n.First=1]="First",n[n.Second=2]="Second",n[n.Last=3]="Last",n[n.Next=4]="Next",n[n.Previous=5]="Previous",n[n.NextPage=6]="NextPage",n[n.PreviousPage=7]="PreviousPage";class T{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnLabelMode="fuzzy",this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new f.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new f.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new f.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new f.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new f.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new f.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new f.Q5,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=o.R3(this.parent,k(".quick-input-list"));let n=new D,s=new E;this.list=i.createList("QuickInput",this.container,n,[new x],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{let t=new r.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(b.dz?e.metaKey:e.ctrlKey)&&this.list.setFocus((0,u.w6)(this.list.length));break;case 16:{let e=this.list.getFocus();1===e.length&&0===e[0]&&this._onLeave.fire();break}case 18:{let e=this.list.getFocus();1===e.length&&e[0]===this.list.length-1&&this._onLeave.fire()}}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(o.nm(this.container,o.tw.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return f.ju.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return f.ju.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(e){this.list.scrollTop=e}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)t[i].checked&&e++;return e}getVisibleCount(){let e=0,t=this.elements;for(let i=0,n=t.length;i<n;i++)!t[i].hidden&&e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{!t.hidden&&(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=(0,_.B9)(this.elementDisposables);let t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((i,n,s)=>{var o,r,l;if("separator"!==n.type){let a=s&&e[s-1],d=n.label&&n.label.replace(/\r?\n/g," "),h=(0,m.Ho)(d).text.trim(),u=n.meta&&n.meta.replace(/\r?\n/g," "),g=n.description&&n.description.replace(/\r?\n/g," "),p=n.detail&&n.detail.replace(/\r?\n/g," "),f=n.ariaLabel||[d,g,p].map(e=>(0,c.JL)(e)).filter(e=>!!e).join(", "),_=this.parent.classList.contains("show-checkboxes");i.push(new L({hasCheckbox:_,index:s,item:n,saneLabel:d,saneSortLabel:h,saneMeta:u,saneAriaLabel:f,saneDescription:g,saneDetail:p,labelHighlights:null===(o=n.highlights)||void 0===o?void 0:o.label,descriptionHighlights:null===(r=n.highlights)||void 0===r?void 0:r.description,detailHighlights:null===(l=n.highlights)||void 0===l?void 0:l.detail,checked:!1,separator:a&&"separator"===a.type?a:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){let e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;let t=new Set;for(let i of e)t.add(i);for(let e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===s.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=s.First),e===s.Previous&&0===this.list.getFocus()[0]&&(e=s.Last),e===s.Second&&this.list.length<2&&(e=s.First),e){case s.First:this.list.focusFirst();break;case s.Second:this.list.focusNth(1);break;case s.Last:this.list.focusLast();break;case s.Next:this.list.focusNext();break;case s.Previous:this.list.focusPrevious();break;case s.NextPage:this.list.focusNextPage();break;case s.PreviousPage:this.list.focusPreviousPage()}let t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;let t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this.elements.forEach(n=>{let s;s="fuzzy"===this.matchOnLabelMode?this.matchOnLabel?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneLabel))):void 0:this.matchOnLabel?(0,C.f6)(function(e,t){let{text:i,iconOffsets:n}=t;if(!n||0===n.length)return N(e,i);let s=(0,v.j3)(i," "),o=i.length-s.length,r=N(e,s);if(r)for(let e of r){let t=n[e.start+o]+o;e.start+=t,e.end+=t}return r}(t,(0,m.Ho)(n.saneLabel))):void 0;let o=this.matchOnDescription?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneDescription||""))):void 0,r=this.matchOnDetail?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneDetail||""))):void 0,l=this.matchOnMeta?(0,C.f6)((0,m.Gt)(e,(0,m.Ho)(n.saneMeta||""))):void 0;if(s||o||r||l?(n.labelHighlights=s,n.descriptionHighlights=o,n.detailHighlights=r,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){let e=n.index&&this.inputElements[n.index-1];(i=e&&"separator"===e.type?e:i)&&!n.hidden&&(n.separator=i,i=void 0)}})}else this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;let t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});let i=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){let t=e.toLowerCase();i.sort((e,i)=>(function(e,t,i){let n=e.labelHighlights||[],s=t.labelHighlights||[];return n.length&&!s.length?-1:!n.length&&s.length?1:0===n.length&&0===s.length?0:(0,g.LE)(e.saneSortLabel,t.saneSortLabel,i)})(e,i,t))}return this.elementsToIndexes=i.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length,i),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(i.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;let e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(let i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=(0,_.B9)(this.elementDisposables),this.disposables=(0,_.B9)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}S([p.H],T.prototype,"onDidChangeFocus",null),S([p.H],T.prototype,"onDidChangeSelection",null);function N(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1!==i?[{start:i,end:i+e.length}]:null}class E{getWidgetAriaLabel(){return(0,w.NC)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox)return{value:e.checked,onDidChange:e.onChecked}}}},52603:function(e,t,i){"use strict";(0,i("54606").H)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"23517"))})},37429:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}},4458:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}},34667:function(e,t,i){"use strict";let n,s;i.r(t),i.d(t,{conf:function(){return g},language:function(){return p}});var o=i("99334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!d.call(e,s)&&s!==i&&r(e,s,{get:()=>t[s],enumerable:!(n=l(t,s))||n.enumerable});return e},u={};h(u,n=o,"default"),s&&h(s,n,"default");var c=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],g={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:u.languages.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${c.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:u.languages.IndentAction.Indent}}]},p={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}},1696:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},s={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}},94575:function(e,t,i){"use strict";(0,i("54606").H)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"9151"))})},5690:function(e,t,i){"use strict";let n,s;i.r(t),i.d(t,{conf:function(){return c},language:function(){return g}});var o=i("99334"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,h=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!d.call(e,s)&&s!==i&&r(e,s,{get:()=>t[s],enumerable:!(n=l(t,s))||n.enumerable});return e},u={};h(u,n=o,"default"),s&&h(s,n,"default");var c={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:u.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:u.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:u.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:u.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:RegExp("^\\s*//\\s*#?region\\b"),end:RegExp("^\\s*//\\s*#?endregion\\b")}}},g={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},36790:function(e,t,i){"use strict";i.d(t,{n:function(){return s}});var n=i("16904");let s=new class e{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.Q5,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}},48379:function(e,t,i){"use strict";i.d(t,{S:function(){return p}});var n=i("9737"),s=i("19219"),o=i("67518"),r=i("19527"),l=i("7875"),a=i("47388"),d=i("75205"),h=i("83140"),u=i("57938"),c=i("61065"),g=i("48331");class p extends g.O{constructor(e,t,i){super(),this._mouseLeaveMonitor=null,this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new a.rp(this._context,i),this._mouseDownOperation=this._register(new f(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(133).height;let o=new d.N5(this.viewHelper.viewDomNode);this._register(o.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(o.onMouseMove(this.viewHelper.viewDomNode,e=>{this._onMouseMove(e),!this._mouseLeaveMonitor&&(this._mouseLeaveMonitor=n.nm(document,"mousemove",e=>{!this.viewHelper.viewDomNode.contains(e.target)&&this._onMouseLeave(new d.gy(e,!1,this.viewHelper.viewDomNode))}))})),this._register(o.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(o.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e)));let r=0;this._register(o.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>{r=t})),this._register(n.nm(this.viewHelper.viewDomNode,n.tw.POINTER_UP,e=>{this._mouseDownOperation.onPointerUp()})),this._register(o.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e,r)));this._register(n.nm(this.viewHelper.viewDomNode,n.tw.MOUSE_WHEEL,e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(70))return;let t=new s.q(e);if(l.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){let e=h.C.getZoomLevel(),i=t.deltaY>0?1:-1;h.C.setZoomLevel(e+i),t.preventDefault(),t.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(133)){let e=this._context.configuration.options.get(133).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){let i=new d.rU(e,t).toPageCoordinates(),n=(0,d.kG)(this.viewHelper.viewDomNode);if(i.y<n.y||i.y>n.y+n.height||i.x<n.x||i.x>n.x+n.width)return null;let s=(0,d.Pp)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,s,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){let t=n.Ay(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find(e=>this.viewHelper.viewDomNode.contains(e)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(!this.mouseTargetFactory.mouseTargetIsWidget(e)&&e.preventDefault(),!this._mouseDownOperation.isActive())!(e.timestamp<this.lastMouseLeaveTime)&&this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e,t){let i=this._createMouseTarget(e,!0),n=6===i.type||7===i.type,s=2===i.type||3===i.type||4===i.type,o=3===i.type,r=this._context.configuration.options.get(100),a=8===i.type||5===i.type,d=9===i.type,h=e.leftButton||e.middleButton;l.dz&&e.leftButton&&e.ctrlKey&&(h=!1);let u=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(h&&(n||o&&r))u(),this._mouseDownOperation.start(i.type,e,t);else if(s)e.preventDefault();else if(a){let n=i.detail;h&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(u(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else d&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(u(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class f extends r.JT{constructor(e,t,i,n,s){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=s,this._mouseMoveMonitor=this._register(new d.AL(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new o._F),this._mouseState=new m,this._currentSelection=new c.Y(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);let t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);let n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;let s=this._context.configuration.options;if(!s.get(83)&&s.get(31)&&!s.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),e=>{let t=this._findMousePosition(this._lastMouseEvent,!1);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey),!this._isActive&&(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;let e=this._findMousePosition(this._lastMouseEvent,!1);if(!!e)!this._mouseState.isDragAndDrop&&this._dispatchMouse(e,!0)},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){let t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,s=this._getMouseColumn(e);if(e.posy<t.y){let i=Math.max(n.getCurrentScrollTop()-(t.y-e.posy),0),o=a.Iq.getZoneAtCoord(this._context,i);if(o){let e=this._helpPositionJumpOverViewZone(o);if(e)return a.ZP.createOutsideEditor(s,e)}let r=n.getLineNumberAtVerticalOffset(i);return a.ZP.createOutsideEditor(s,new u.L(r,1))}if(e.posy>t.y+t.height){let t=n.getCurrentScrollTop()+e.relativePos.y,o=a.Iq.getZoneAtCoord(this._context,t);if(o){let e=this._helpPositionJumpOverViewZone(o);if(e)return a.ZP.createOutsideEditor(s,e)}let r=n.getLineNumberAtVerticalOffset(t);return a.ZP.createOutsideEditor(s,new u.L(r,i.getLineMaxColumn(r)))}let o=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);return e.posx<t.x?a.ZP.createOutsideEditor(s,new u.L(o,1)):e.posx>t.x+t.width?a.ZP.createOutsideEditor(s,new u.L(o,i.getLineMaxColumn(o))):null}_findMousePosition(e,t){let i=this._getPositionOutsideEditor(e);if(i)return i;let n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){let e=this._helpPositionJumpOverViewZone(n.detail);if(e)return a.ZP.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){let t=new u.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;if(i&&n)return i.isBefore(t)?i:n;return null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class m{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){let i=new Date().getTime();i-this._lastSetMouseDownCountTime>m.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}m.CLEAR_MOUSE_DOWN_COUNT_TIME=400},94019:function(e,t,i){"use strict";i.d(t,{a:function(){return g}});var n=i("9737"),s=i("7875"),o=i("66569"),r=i("19527"),l=i("48379"),a=i("75205"),d=i("72646"),h=i("37717");class u extends l.S{constructor(e,t,i){super(e,t,i),this._register(o.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Tap,e=>this.onTap(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Change,e=>this.onChange(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Contextmenu,e=>this._onContextMenu(new a.gy(e,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(n.nm(this.viewHelper.linesContentDomNode,"pointerdown",e=>{let t=e.pointerType;if("mouse"===t){this._lastPointerType="mouse";return}"touch"===t?this._lastPointerType="touch":this._lastPointerType="pen"}));let s=new a.tC(this.viewHelper.viewDomNode);this._register(s.onPointerMove(this.viewHelper.viewDomNode,e=>this._onMouseMove(e))),this._register(s.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(s.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(s.onPointerDown(this.viewHelper.viewDomNode,(e,t)=>this._onMouseDown(e,t)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.gy(e,!1,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class c extends l.S{constructor(e,t,i){super(e,t,i),this._register(o.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Tap,e=>this.onTap(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Change,e=>this.onChange(e))),this._register(n.nm(this.viewHelper.linesContentDomNode,o.t.Contextmenu,e=>this._onContextMenu(new a.gy(e,!1,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();let t=this._createMouseTarget(new a.gy(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){let e=document.createEvent("CustomEvent");e.initEvent(h.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class g extends r.JT{constructor(e,t,i){super(),s.gn&&d.D.pointerEvents?this.handler=this._register(new u(e,t,i)):window.TouchEvent?this.handler=this._register(new c(e,t,i)):this.handler=this._register(new l.S(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}},61493:function(e,t,i){"use strict";i.d(t,{U:function(){return s}}),i("51532");var n=i("11428");class s extends n.$U{constructor(e){super(),this._context=e;let t=this._context.configuration.options.get(133);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options.get(133);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){let t=e.getDecorationsInViewport(),i=[],s=0;for(let e=0,o=t.length;e<o;e++){let o=t[e],r=o.options.linesDecorationsClassName;r&&(i[s++]=new n.tv(o.range.startLineNumber,o.range.endLineNumber,r));let l=o.options.firstLineDecorationClassName;l&&(i[s++]=new n.tv(o.range.startLineNumber,o.range.startLineNumber,l))}return i}prepareRender(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),s=this._decorationsLeft.toString(),o='" style="left:'+s+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let e=t;e<=i;e++){let i=e-t,s=n[i],l="";for(let e=0,t=s.length;e<t;e++)l+='<div class="cldr '+s[e]+o;r[i]=l}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}},53049:function(e,t,i){"use strict";i.d(t,{N:function(){return s},q:function(){return o}});var n=i("79673");class s{constructor(e){let t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=s._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){let i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class o{constructor(){this._actual=new s(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},12952:function(e,t,i){"use strict";i.d(t,{Nu:function(){return v},g_:function(){return b},u6:function(){return _}});var n=i("61111"),s=i("66763"),o=i("38846"),r=i("39379"),l=i("8932"),a=i("7910"),d=i("40890"),h=i("61045"),u=i("57938"),c=i("49286"),g=i("62785"),p=i("65633"),f=i("45477"),m=i("79125");class _{static indent(e,t,i){if(null===t||null===i)return[];let n=[];for(let t=0,s=i.length;t<s;t++)n[t]=new r.U(i[t],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static outdent(e,t,i){let n=[];for(let t=0,s=i.length;t<s;t++)n[t]=new r.U(i[t],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService);return n}static shiftIndent(e,t,i){return i=i||1,r.U.shiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return i=i||1,r.U.unshiftIndent(t,t.length+i,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){let s=[];for(let e=0,t=i.length;e<t;e++)s[e]=new o.T4(i[e],n[e]);return new a.Tp(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,s){let r=[];for(let e=0,t=i.length;e<t;e++){let t=i[e],l=t.getPosition();if(s&&!t.isEmpty()&&(s=!1),s&&n.indexOf("\n")!==n.length-1&&(s=!1),s){let i=new h.e(l.lineNumber,1,l.lineNumber,1);r[e]=new o.hP(i,n,t,!0)}else r[e]=new o.T4(t,n)}return new a.Tp(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,o){if(n||1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),13===i.charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1));let e=s.uq(i);if(e.length===t.length)return e}return null}static paste(e,t,i,n,s,o){let r=this._distributePasteToCursors(e,i,n,s,o);return r?(i=i.sort(h.e.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,s)}static _goodIndentForLine(e,t,i){let n=null,o="",r=(0,f.r7)(e.autoIndent,t,i,!1,e.languageConfigurationService);if(r)n=r.action,o=r.indentation;else if(i>1){let n;for(n=i-1;n>=1;n--){let e=t.getLineContent(n);if(s.ow(e)>=0)break}if(n<1)return null;let r=t.getLineMaxColumn(n),l=(0,m.A)(e.autoIndent,t,new h.e(n,r,n,r),e.languageConfigurationService);l&&(o=l.indentation+l.appendText)}return(n&&(n===c.wU.Indent&&(o=_.shiftIndent(e,o)),n===c.wU.Outdent&&(o=_.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o)?o:null}static _replaceJumpToNextIndent(e,t,i,n){let s="",r=i.getStartPosition();if(e.insertSpaces){let i=e.visibleColumnFromColumn(t,r),n=e.indentSize,o=n-i%n;for(let e=0;e<o;e++)s+=" "}else s=" ";return new o.T4(i,s,n)}static tab(e,t,i){let n=[];for(let s=0,l=i.length;s<l;s++){let l=i[s];if(l.isEmpty()){let i=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(i)&&t.tokenization.isCheapToTokenize(l.startLineNumber)){let r=this._goodIndentForLine(e,t,l.startLineNumber);r=r||" ";let a=e.normalizeIndentation(r);if(!i.startsWith(a)){n[s]=new o.T4(new h.e(l.startLineNumber,1,l.startLineNumber,i.length+1),a,!0);continue}}n[s]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){let i=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==i){n[s]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}n[s]=new r.U(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent},e.languageConfigurationService)}}return n}static compositionType(e,t,i,n,s,o,r,l){let d=n.map(e=>this._compositionType(i,e,s,o,r,l));return new a.Tp(4,d,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,s,r){if(!t.isEmpty())return null;let l=t.getPosition(),a=Math.max(1,l.column-n),d=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+s),u=new h.e(l.lineNumber,a,l.lineNumber,d);return e.getValueInRange(u)===i&&0===r?null:new o.Uo(u,i,0,r)}static _typeCommand(e,t,i){return i?new o.Sj(e,t,!0):new o.T4(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return _._typeCommand(n,"\n",i);if(!t.tokenization.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){let o=t.getLineContent(n.startLineNumber),r=s.V8(o).substring(0,n.startColumn-1);return _._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}let r=(0,m.A)(e.autoIndent,t,n,e.languageConfigurationService);if(r){if(r.indentAction===c.wU.None)return _._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===c.wU.Indent)return _._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);else if(r.indentAction===c.wU.IndentOutdent){let t=e.normalizeIndentation(r.indentation),s=e.normalizeIndentation(r.indentation+r.appendText),l="\n"+s+"\n"+t;return i?new o.Sj(n,l,!0):new o.Uo(n,l,-1,s.length-t.length,!0)}else if(r.indentAction===c.wU.Outdent){let t=_.unshiftIndent(e,r.indentation);return _._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}let l=t.getLineContent(n.startLineNumber),a=s.V8(l).substring(0,n.startColumn-1);if(e.autoIndent>=4){let r=(0,f.UF)(e.autoIndent,t,n,{unshiftIndent:t=>_.unshiftIndent(e,t),shiftIndent:t=>_.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let l=e.visibleColumnFromColumn(t,n.getEndPosition()),a=n.endColumn,d=t.getLineContent(n.endLineNumber),h=s.LC(d);if(n=h>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,h+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new o.Sj(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return a<=h+1&&(!e.insertSpaces&&(l=Math.ceil(l/e.indentSize)),t=Math.min(l+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new o.Uo(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return _._typeCommand(n,"\n"+e.normalizeIndentation(a),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;e<n;e++)if(!t.tokenization.isCheapToTokenize(i[e].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){let s=(0,g.u0)(t,i.startLineNumber,i.startColumn),o=(0,f.$9)(e.autoIndent,t,i,n,{shiftIndent:t=>_.shiftIndent(e,t),unshiftIndent:t=>_.unshiftIndent(e,t)},e.languageConfigurationService);if(null===o)return null;if(o!==e.normalizeIndentation(s)){let s=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===s?_._typeCommand(new h.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+n,!1):_._typeCommand(new h.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(o)+t.getLineContent(i.startLineNumber).substring(s-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,s){if("never"===e.autoClosingOvertype||!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(s))return!1;for(let o=0,r=i.length;o<r;o++){let r=i[o];if(!r.isEmpty())return!1;let l=r.getPosition(),d=t.getLineContent(l.lineNumber);if(d.charAt(l.column-1)!==s)return!1;let h=(0,a.LN)(s);if(92===(l.column>2?d.charCodeAt(l.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){let i=n[t];if(l.lineNumber===i.startLineNumber&&l.column===i.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,s){let r=[];for(let e=0,t=n.length;e<t;e++){let t=n[e].getPosition(),i=new h.e(t.lineNumber,t.column,t.lineNumber,t.column+1);r[e]=new o.T4(i,s)}return new a.Tp(4,r,{shouldPushStackElementBefore:y(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){let i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],s=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],o=n.some(e=>t.startsWith(e.open)),r=s.some(e=>t.startsWith(e.close));return!o&&r}static _findAutoClosingPairOpen(e,t,i,n){let s=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!s)return null;let o=null;for(let e of s)if(null===o||e.open.length>o.open.length){let s=!0;for(let o of i)if(t.getValueInRange(new h.e(o.lineNumber,o.column-e.open.length+1,o.lineNumber,o.column))+n!==e.open){s=!1;break}s&&(o=e)}return o}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;let i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[],s=null;for(let e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!s||e.open.length>s.open.length)&&(s=e);return s}static _getAutoClosingPairClose(e,t,i,n,s){let o=(0,a.LN)(n),r=o?e.autoClosingQuotes:e.autoClosingBrackets,l=o?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;if("never"===r)return null;for(let e of i)if(!e.isEmpty())return null;let h=i.map(e=>{let t=e.getPosition();return s?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}}),c=this._findAutoClosingPairOpen(e,t,h.map(e=>new u.L(e.lineNumber,e.beforeColumn)),n);if(!c)return null;let g=this._findContainedAutoClosingPair(e,c),f=g?g.close:"",m=!0;for(let i of h){let{lineNumber:s,beforeColumn:o,afterColumn:a}=i,h=t.getLineContent(s),u=h.substring(0,o-1),g=h.substring(a-1);if(!g.startsWith(f)&&(m=!1),g.length>0){let t=g.charAt(0);if(!_._isBeforeClosingBrace(e,g)&&!l(t))return null}if(1===c.open.length&&("'"===n||'"'===n)&&"always"!==r){let t=(0,d.u)(e.wordSeparators);if(u.length>0){let e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(s))return null;t.tokenization.forceTokenization(s);let b=t.tokenization.getLineTokens(s),v=(0,p.wH)(b,o-1);if(!c.shouldAutoClose(v,o-v.firstCharOffset))return null;let C=c.findNeutralCharacter();if(C){let e=t.tokenization.getTokenTypeIfInsertingCharacter(s,o,C);if(!c.isOK(e))return null}}return m?c.close.substring(0,c.close.length-f.length):c.close}static _runAutoClosingOpenCharType(e,t,i,n,s,o,r){let l=[];for(let e=0,t=n.length;e<t;e++){let t=n[e];l[e]=new b(t,s,!o,r)}return new a.Tp(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return(0,a.LN)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!_._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;let s=(0,a.LN)(n);for(let e of i){if(e.isEmpty())return!1;let i=!0;for(let n=e.startLineNumber;n<=e.endLineNumber;n++){let s=t.getLineContent(n),o=n===e.startLineNumber?e.startColumn-1:0,r=n===e.endLineNumber?e.endColumn-1:s.length,l=s.substring(o,r);if(/[^ \t]/.test(l)){i=!1;break}}if(i)return!1;if(s&&e.startLineNumber===e.endLineNumber&&e.startColumn+1===e.endColumn){let i=t.getValueInRange(e);if((0,a.LN)(i))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,s){let o=[];for(let e=0,i=n.length;e<i;e++){let i=n[e],r=t.surroundingPairs[s];o[e]=new l.F(i,s,r)}return new a.Tp(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!!(1===i.length&&t.tokenization.isCheapToTokenize(i[0].getEndPosition().lineNumber))||!1}static _typeInterceptorElectricChar(e,t,i,r,l){let d;if(!t.electricChars.hasOwnProperty(l)||!r.isEmpty())return null;let u=r.getPosition();i.tokenization.forceTokenization(u.lineNumber);let c=i.tokenization.getLineTokens(u.lineNumber);try{d=t.onElectricCharacter(l,c,u.column)}catch(e){return(0,n.dL)(e),null}if(!d)return null;if(d.matchOpenBracket){let n=(c.getLineContent()+l).lastIndexOf(d.matchOpenBracket)+1,r=i.bracketPairs.findMatchingBracketUp(d.matchOpenBracket,{lineNumber:u.lineNumber,column:n},500);if(r){if(r.startLineNumber===u.lineNumber)return null;let n=i.getLineContent(r.startLineNumber),d=s.V8(n),c=t.normalizeIndentation(d),g=i.getLineContent(u.lineNumber),p=i.getLineFirstNonWhitespaceColumn(u.lineNumber)||u.column,f=c+g.substring(p-1,u.column-1)+l,m=new h.e(u.lineNumber,1,u.lineNumber,u.column),_=new o.T4(m,f);return new a.Tp(C(f,e),[_],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,i,n,s,r){if(!n)return null;let d=null;for(let e of n)if(null===d)d=e.insertedText;else if(d!==e.insertedText)return null;if(!d||1!==d.length)return null;let u=d,c=!1;for(let e of n)if(0!==e.deletedText.length){c=!0;break}if(c){if(!_._shouldSurroundChar(t,u)||!t.surroundingPairs.hasOwnProperty(u))return null;let e=(0,a.LN)(u);for(let t of n)if(0!==t.deletedSelectionStart||t.deletedSelectionEnd!==t.deletedText.length||/^[ \t]+$/.test(t.deletedText)||e&&(0,a.LN)(t.deletedText))return null;let i=[];for(let e of s){if(!e.isEmpty())return null;i.push(e.getPosition())}if(i.length!==n.length)return null;let o=[];for(let e=0,t=i.length;e<t;e++)o.push(new l.K(i[e],n[e].deletedText,u));return new a.Tp(4,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,i,s,r,u)){let e=s.map(e=>new o.T4(new h.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new a.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let g=this._getAutoClosingPairClose(t,i,s,u,!0);return null!==g?this._runAutoClosingOpenCharType(e,t,i,s,u,!0,g):null}static typeWithInterceptors(e,t,i,n,s,r,l){if(!e&&"\n"===l){let e=[];for(let t=0,o=s.length;t<o;t++)e[t]=_._enter(i,n,!1,s[t]);return new a.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,s)){let e=[],t=!1;for(let o=0,r=s.length;o<r;o++)if(e[o]=this._runAutoIndentType(i,n,s[o],l),!e[o]){t=!0;break}if(!t)return new a.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(i,n,s,r,l))return this._runAutoClosingOvertype(t,i,n,s,l);if(!e){let e=this._getAutoClosingPairClose(i,n,s,l,!1);if(e)return this._runAutoClosingOpenCharType(t,i,n,s,l,!1,e)}if(!e&&this._isSurroundSelectionType(i,n,s,l))return this._runSurroundSelectionType(t,i,n,s,l);if(!e&&this._isTypeInterceptorElectricChar(i,n,s)){let e=this._typeInterceptorElectricChar(t,i,n,s[0],l);if(e)return e}let d=[];for(let e=0,t=s.length;e<t;e++)d[e]=new o.T4(s[e],l);let h=C(l,t);return new a.Tp(h,d,{shouldPushStackElementBefore:y(t,h),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,s){let r=[];for(let e=0,t=n.length;e<t;e++)r[e]=new o.T4(n[e],s);let l=C(s,e);return new a.Tp(l,r,{shouldPushStackElementBefore:y(e,l),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];let n=[];for(let s=0,r=i.length;s<r;s++){let r=i[s].positionLineNumber;if(1===r)n[s]=new o.Sj(new h.e(1,1,1,1),"\n");else{r--;let i=t.getLineMaxColumn(r);n[s]=this._enter(e,t,!1,new h.e(r,i,r,i))}}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];let n=[];for(let s=0,o=i.length;s<o;s++){let o=i[s].positionLineNumber,r=t.getLineMaxColumn(o);n[s]=this._enter(e,t,!1,new h.e(o,r,o,r))}return n}static lineBreakInsert(e,t,i){let n=[];for(let s=0,o=i.length;s<o;s++)n[s]=this._enter(e,t,!0,i[s]);return n}}class b extends o.Uo{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new h.e(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new h.e(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}class v{constructor(e,t,i,n,s,o){this.deletedText=e,this.deletedSelectionStart=t,this.deletedSelectionEnd=i,this.insertedText=n,this.insertedSelectionStart=s,this.insertedSelectionEnd=o}}function C(e,t){return" "===e?5===t||6===t?6:5:4}function y(e,t){return!!S(e)&&!S(t)||5!==e&&w(e)!==w(t)}function w(e){return 6===e||5===e?"space":e}function S(e){return 4===e||5===e||6===e}},31468:function(e,t,i){"use strict";i.d(t,{O:function(){return r}});var n=i("3868"),s=i("65633"),o=i("23865");class r{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t)}return(0,n.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if((0,s.Bu)(t.getStandardTokenType(n)))return null;let r=this._richEditBrackets.reversedRegex,l=t.getLineContent().substring(0,i-1)+e,a=o.Vr.findPrevBracketInRange(r,1,l,0,l.length);if(!a)return null;let d=l.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[d])return null;let h=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:d}:null}}},99599:function(e,t,i){"use strict";i.d(t,{HS:function(){return W},qx:function(){return K},yO:function(){return R}});var n=i("3868"),s=i("35271"),o=i("61111"),r=i("16904"),l=i("19527"),a=i("66763"),d=i("38505"),h=i("11211"),u=i("65972"),c=i("57938"),g=i("61045"),p=i("61065"),f=i("55062"),m=i("10870"),_=i("62785"),b=i("63681"),v=i("26148"),C=i("76345"),y=i("74459"),w=i("2349"),S=i("91137"),k=i("69723"),L=i("81695"),x=i("17318"),D=i("83968"),T=i("62521"),N=i("86043"),E=i("52365"),O=function(e,t){return function(i,n){t(i,n,e)}};function I(e,t){let i;return(i="string"==typeof e?function(e){let t=new x.M;return t.acceptChunk(e),t.finish()}(e):b.Hf(e)?function(e){let t;let i=new x.M;for(;"string"==typeof(t=e.read());)i.acceptChunk(t);return i.finish()}(e):e).create(t)}let M=0;class A{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,i=0;for(;;){let n=this._source.read();if(null===n){if(this._eos=!0,0===t)return null;return e.join("")}if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}let P=()=>{throw Error("Invalid change accessor")},R=class e extends l.JT{constructor(t,i,n,s=null,o,l,h){super(),this._undoRedoService=o,this._languageService=l,this._languageConfigurationService=h,this._onWillDispose=this._register(new r.Q5),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Q(e=>this.handleBeforeFireDecorationsChangedEvent(e))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.Q5),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.Q5),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.Q5),this._eventEmitter=this._register(new Z),this._deltaDecorationCallCnt=0,M++,this.id="$model"+M,this.isForSimpleWidget=n.isForSimpleWidget,null==s?this._associatedResource=d.o.parse("inmemory://model/"+M):this._associatedResource=s,this._attachedEditorCount=0;let{textBuffer:u,disposable:c}=I(t,n.defaultEOL);this._buffer=u,this._bufferDisposable=c,this._options=e.resolveOptions(this._buffer,n),this._bracketPairs=this._register(new v.Q(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new w.l(this,this._languageConfigurationService)),this._decorationProvider=this._register(new C.z(this)),this._tokenizationTextModelPart=new T.P(this._languageService,this._languageConfigurationService,this,this._bracketPairs,i);let p=this._buffer.getLineCount(),f=this._buffer.getValueLengthInRange(new g.e(1,1,p,this._buffer.getLineLength(p)+1),0);n.largeFileOptimizations?this._isTooLargeForTokenization=f>e.LARGE_FILE_SIZE_THRESHOLD||p>e.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=f>e.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=a.PJ(M),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new j,this._commandManager=new y.NL(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){if(t.detectIndentation){let i=(0,S.L)(e,t.tabSize,t.insertSpaces);return new b.dJ({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new b.dJ({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}onDidChangeContentOrInjectedText(e){return(0,l.F8)(this._eventEmitter.fastEvent(t=>e(t)),this._onDidChangeInjectedText.event(t=>e(t)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;let e=new L.A([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=l.JT.None}_assertNotDisposed(){if(this._isDisposed)throw Error("Model is disposed!")}_emitContentChangedEvent(e,t){!this.__isDisposing&&(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new N.fV(e,t)))}setValue(e){if(this._assertNotDisposed(),null===e)return;let{textBuffer:t,disposable:i}=I(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,s,o,r){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:s,isRedoing:o,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();let i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokenizationTextModelPart.flush(),this._decorations=Object.create(null),this._decorationsTree=new j,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new N.dQ([new N.Jx],this._versionId,!1,!1),this._createContentChanged2(new g.e(1,1,s,o),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();let t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;let i=this.getFullModelRange(),n=this.getValueLengthInRange(i),s=this.getLineCount(),o=this.getLineMaxColumn(s);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new N.dQ([new N.CZ],this._versionId,!1,!1),this._createContentChanged2(new g.e(1,1,s,o),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){let e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i<n;i++){let n=t[i],s=n.range,o=n.cachedAbsoluteStart-n.start,r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),l=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);n.cachedAbsoluteStart=r,n.cachedAbsoluteEnd=l,n.cachedVersionId=e,n.start=r-o,n.end=l-o,(0,k.sR)(n)}}onBeforeAttached(){this._attachedEditorCount++,1===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}onBeforeDetached(){this._attachedEditorCount--,0===this._attachedEditorCount&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0))}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0,i=this._buffer.getLineCount();for(let n=1;n<=i;n++){let i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();let t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,i=void 0!==e.indentSize?e.indentSize:this._options.indentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,s=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new b.dJ({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:s,bracketPairColorizationOptions:o});if(this._options.equals(r))return;let l=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(l),this._decorationProvider.handleDidChangeOptions(l),this._onDidChangeOptions.fire(l)}detectIndentation(e,t){this._assertNotDisposed();let i=(0,S.L)(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,u.x)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){let t=this.findMatches(a.Qe.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(e=>({range:e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();let t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();let t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();let i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new A(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();let i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){let t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn,s=Math.floor("number"!=typeof i||isNaN(i)?1:i),o=Math.floor("number"!=typeof n||isNaN(n)?1:n);if(s<1)s=1,o=1;else if(s>t)s=t,o=this.getLineMaxColumn(s);else if(o<=1)o=1;else{let e=this.getLineMaxColumn(s);o>=e&&(o=e)}let r=e.endLineNumber,l=e.endColumn,a=Math.floor("number"!=typeof r||isNaN(r)?1:r),d=Math.floor("number"!=typeof l||isNaN(l)?1:l);if(a<1)a=1,d=1;else if(a>t)a=t,d=this.getLineMaxColumn(a);else if(d<=1)d=1;else{let e=this.getLineMaxColumn(a);d>=e&&(d=e)}return i===s&&n===o&&r===a&&l===d&&e instanceof g.e&&!(e instanceof p.Y)?e:new g.e(s,o,a,d)}_isValidPosition(e,t,i){if("number"!=typeof e||"number"!=typeof t||isNaN(e)||isNaN(t)||e<1||t<1||(0|e)!==e||(0|t)!==t||e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){let i=this._buffer.getLineCharCode(e,t-2);if(a.ZG(i))return!1}return!0}_validatePosition(e,t,i){let n=Math.floor("number"!=typeof e||isNaN(e)?1:e),s=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(n<1)return new c.L(1,1);if(n>o)return new c.L(o,this.getLineMaxColumn(o));if(s<=1)return new c.L(n,1);let r=this.getLineMaxColumn(n);if(s>=r)return new c.L(n,r);if(1===i){let e=this._buffer.getLineCharCode(n,s-2);if(a.ZG(e))return new c.L(n,s-1)}return new c.L(n,s)}validatePosition(e){return(this._assertNotDisposed(),e instanceof c.L&&this._isValidPosition(e.lineNumber,e.column,1))?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){let i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(i,n,0)||!this._isValidPosition(s,o,0))return!1;if(1===t){let e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=o>1&&o<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,o-2):0,r=a.ZG(e),l=a.ZG(t);return!r&&!l&&!0}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof g.e&&!(e instanceof p.Y)&&this._isValidRange(e,1))return e;let t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,s=t.column,o=i.lineNumber,r=i.column;{let e=s>1?this._buffer.getLineCharCode(n,s-2):0,t=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,i=a.ZG(e),l=a.ZG(t);return i||l?n===o&&s===r?new g.e(n,s-1,o,r-1):i&&l?new g.e(n,s-1,o,r+1):i?new g.e(n,s-1,o,r):new g.e(n,s,o,r+1):new g.e(n,s,o,r)}}modifyPosition(e,t){this._assertNotDisposed();let i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();let e=this.getLineCount();return new g.e(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,s,o,r=999){let l;this._assertNotDisposed();let a=null;null!==t&&(!Array.isArray(t)&&(t=[t]),t.every(e=>g.e.isIRange(e))&&(a=t.map(e=>this.validateRange(e)))),null===a&&(a=[this.getFullModelRange()]),a=a.sort((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn);let d=[];if(d.push(a.reduce((e,t)=>g.e.areIntersecting(e,t)?e.plusRange(t):(d.push(e),t))),!i&&0>e.indexOf("\n")){let t=new D.bc(e,i,n,s).parseSearchRequest();if(!t)return[];l=e=>this.findMatchesLineByLine(e,t,o,r)}else l=t=>D.pM.findMatches(this,new D.bc(e,i,n,s),t,o,r);return d.map(l).reduce((e,t)=>e.concat(t),[])}findNextMatch(e,t,i,n,s,o){this._assertNotDisposed();let r=this.validatePosition(t);if(!i&&0>e.indexOf("\n")){let t=new D.bc(e,i,n,s).parseSearchRequest();if(!t)return null;let l=this.getLineCount(),a=new g.e(r.lineNumber,r.column,l,this.getLineMaxColumn(l)),d=this.findMatchesLineByLine(a,t,o,1);return(D.pM.findNextMatch(this,new D.bc(e,i,n,s),r,o),d.length>0)?d[0]:(a=new g.e(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),(d=this.findMatchesLineByLine(a,t,o,1)).length>0)?d[0]:null}return D.pM.findNextMatch(this,new D.bc(e,i,n,s),r,o)}findPreviousMatch(e,t,i,n,s,o){this._assertNotDisposed();let r=this.validatePosition(t);return D.pM.findPreviousMatch(this,new D.bc(e,i,n,s),r,o)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof b.Qi?e:new b.Qi(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){let i=t.map(e=>({range:this.validateRange(e.range),text:e.text})),n=!0;if(e)for(let t=0,s=e.length;t<s;t++){let s=e[t],o=!1;for(let e=0,t=i.length;e<t;e++){let t=i[e].range,n=t.startLineNumber>s.endLineNumber,r=s.startLineNumber>t.endLineNumber;if(!n&&!r){o=!0;break}}if(!o){n=!1;break}}if(n)for(let e=0,n=this._trimAutoWhitespaceLines.length;e<n;e++){let n=this._trimAutoWhitespaceLines[e],s=this.getLineMaxColumn(n),o=!0;for(let e=0,t=i.length;e<t;e++){let t=i[e].range,r=i[e].text;if(!(n<t.startLineNumber||n>t.endLineNumber||n===t.startLineNumber&&t.startColumn===s&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0))){if(!(n===t.startLineNumber&&1===t.startColumn&&t.isEmpty())||!r||!(r.length>0)||"\n"!==r.charAt(r.length-1)){o=!1;break}}}if(o){let e=new g.e(n,1,n,s);t.push(new b.Qi(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){let s=e.map(e=>{let t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new g.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}});this._applyUndoRedoEdits(s,t,!0,!1,i,n)}_applyRedo(e,t,i,n){let s=e.map(e=>{let t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new g.e(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}});this._applyUndoRedoEdits(s,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,s,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(s)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();let i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){let i=this._buffer.getLineCount(),s=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),r=s.changes;if(this._trimAutoWhitespaceLines=s.trimAutoWhitespaceLineNumbers,0!==r.length){for(let e=0,t=r.length;e<t;e++){let t=r[e],[i,n,s]=(0,h.Q)(t.text);this._tokenizationTextModelPart.acceptEdit(t.range,t.text,i,n,s),this._decorationsTree.acceptReplace(t.rangeOffset,t.rangeLength,t.text.length,t.forceMoveMarkers)}let e=[];this._increaseVersionId();let t=i;for(let i=0,s=r.length;i<s;i++){let s=r[i],[l]=(0,h.Q)(s.text);this._onDidChangeDecorations.fire();let a=s.range.startLineNumber,d=s.range.endLineNumber,u=d-a,g=Math.min(u,l),p=l-u,f=o-t-p+a,m=f+l,_=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new c.L(f,1)),this.getOffsetAt(new c.L(m,this.getLineMaxColumn(m))),0),b=N.gk.fromDecorations(_),v=new n.H9(b);for(let t=g;t>=0;t--){let i=a+t,n=f+t;v.takeFromEndWhile(e=>e.lineNumber>n);let s=v.takeFromEndWhile(e=>e.lineNumber===n);e.push(new N.rU(i,this.getLineContent(n),s))}if(g<u){let t=a+g;e.push(new N.lN(t+1,d))}if(g<l){let i=new n.H9(b),s=a+g,r=l-g,d=o-t-r+s+1,h=[],u=[];for(let e=0;e<r;e++){let t=d+e;u[e]=this.getLineContent(t),i.takeWhile(e=>e.lineNumber<t),h[e]=i.takeWhile(e=>e.lineNumber===t)}e.push(new N.Tx(s+1,a+l,u,h))}t+=p}this._emitContentChangedEvent(new N.dQ(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===s.reverseEdits?void 0:s.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;let t=Array.from(e).map(e=>new N.rU(e,this.getLineContent(e),this._getInjectedTextInLine(e)));this._onDidChangeInjectedText.fire(new N.D8(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){let i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,q(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)},n=null;try{n=t(i)}catch(e){(0,o.dL)(e)}return i.addDecoration=P,i.changeDecoration=P,i.changeDecorationOptions=P,i.removeDecoration=P,i.deltaDecorations=P,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),!e&&(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,o.dL)(Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){let n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:U[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;let s=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),r=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,s),n.setOptions(U[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;let t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,i=t.length;e<i;e++){let i=t[e];this._decorationsTree.delete(i),delete this._decorations[i.id]}}getDecorationOptions(e){let t=this._decorations[e];return t?t.options:null}getDecorationRange(e){let t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,s=!1){let o=this.getLineCount(),r=Math.min(o,Math.max(1,t)),l=this.getLineMaxColumn(r),a=new g.e(Math.min(o,Math.max(1,e)),1,r,l),d=this._getDecorationsInRange(a,i,s);return(0,n.vA)(d,this._decorationProvider.getDecorationsInRange(a,i,s)),d}getDecorationsInRange(e,t=0,i=!1){let s=this.validateRange(e),o=this._getDecorationsInRange(s,t,i);return(0,n.vA)(o,this._decorationProvider.getDecorationsInRange(s,t,i)),o}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){let t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return N.gk.fromDecorations(n).filter(t=>t.lineNumber===e)}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t))}_getDecorationsInRange(e,t,i){let n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,s,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){let i=this._decorations[e];if(!i)return;if(i.options.after){let t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){let t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}let n=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),o=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),s,o,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){let i=this._decorations[e];if(!i)return;let n=!!i.options.overviewRuler&&!!i.options.overviewRuler.color,s=!!t.overviewRuler&&!!t.overviewRuler.color;if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){let e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){let e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}n!==s?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i){let n=this.getVersionId(),s=t.length,o=0,r=i.length,l=0,a=Array(r);for(;o<s||l<r;){let d=null;if(o<s){do d=this._decorations[t[o++]];while(!d&&o<s);if(d){if(d.options.after){let e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(d.options.before){let e=this._decorationsTree.getNodeRange(this,d);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(d),this._onDidChangeDecorations.checkAffectedAndFire(d.options)}}if(l<r){if(!d){let e=++this._lastDecorationId,t=`${this._instanceId};${e}`;d=new k.fL(t,0,0),this._decorations[t]=d}let t=i[l],s=this._validateRangeRelaxedNoAllocations(t.range),o=q(t.options),r=this._buffer.getOffsetAt(s.startLineNumber,s.startColumn),h=this._buffer.getOffsetAt(s.endLineNumber,s.endColumn);d.ownerId=e,d.reset(n,r,h,s),d.setOptions(o),d.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.endLineNumber),d.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(s.startLineNumber),this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(d),a[l]=d.id,l++}else d&&delete this._decorations[d.id]}return a}getLanguageId(){return this.tokenization.getLanguageId()}setMode(e){this.tokenization.setLanguageId(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(let i of e)if(" "===i||" "===i)t++;else break;return t}(this.getLineContent(e))+1}};R.MODEL_SYNC_LIMIT=52428800,R.LARGE_FILE_SIZE_THRESHOLD=20971520,R.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,R.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:f.D.tabSize,indentSize:f.D.indentSize,insertSpaces:f.D.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:f.D.trimAutoWhitespace,largeFileOptimizations:f.D.largeFileOptimizations,bracketPairColorizationOptions:f.D.bracketPairColorizationOptions},R=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([O(4,E.tJ),O(5,m.O),O(6,_.c_)],R);function F(e){return!!e.options.overviewRuler&&!!e.options.overviewRuler.color}function z(e){return!!e.options.after||!!e.options.before}class j{constructor(){this._decorationsTree0=new k.IF,this._decorationsTree1=new k.IF,this._injectedTextDecorationsTree=new k.IF}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1)}_ensureNodesHaveRanges(e,t){for(let i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,s){let o=e.getVersionId(),r=this._intervalSearch(t,i,n,s,o);return this._ensureNodesHaveRanges(e,r)}_intervalSearch(e,t,i,n,s){let o=this._decorationsTree0.intervalSearch(e,t,i,n,s),r=this._decorationsTree1.intervalSearch(e,t,i,n,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,s);return o.concat(r).concat(l)}getInjectedTextInInterval(e,t,i,n){let s=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,s);return this._ensureNodesHaveRanges(e,o).filter(e=>e.options.showIfCollapsed||!e.range.isEmpty())}getAllInjectedText(e,t){let i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,n).filter(e=>e.options.showIfCollapsed||!e.range.isEmpty())}getAll(e,t,i,n){let s=e.getVersionId(),o=this._search(t,i,n,s);return this._ensureNodesHaveRanges(e,o)}_search(e,t,i,n){if(i)return this._decorationsTree1.search(e,t,n);{let i=this._decorationsTree0.search(e,t,n),s=this._decorationsTree1.search(e,t,n),o=this._injectedTextDecorationsTree.search(e,t,n);return i.concat(s).concat(o)}}collectNodesFromOwner(e){let t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){let e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){z(e)?this._injectedTextDecorationsTree.insert(e):F(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){z(e)?this._injectedTextDecorationsTree.delete(e):F(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){let i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){z(e)?this._injectedTextDecorationsTree.resolveNode(e,t):F(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function V(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class H{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class B extends H{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:b.sh.Center}getColor(e){return!this._resolvedColor&&("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;let i=e?t.getColor(e.id):null;return i?i.toString():""}}class $ extends H{constructor(e){super(e),this.position=e.position}getColor(e){return!this._resolvedColor&&("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?s.Il.fromHex(e):t.getColor(e.id)}}class W{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}static from(e){return e instanceof W?e:new W(e)}}class K{constructor(e){var t,i;this.description=e.description,this.blockClassName=e.blockClassName?V(e.blockClassName):null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?V(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new B(e.overviewRuler):null,this.minimap=e.minimap?new $(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?V(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?V(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?V(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?V(e.marginClassName):null,this.inlineClassName=e.inlineClassName?V(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?V(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?V(e.afterContentClassName):null,this.after=e.after?W.from(e.after):null,this.before=e.before?W.from(e.before):null,this.hideInCommentTokens=null!==(t=e.hideInCommentTokens)&&void 0!==t&&t,this.hideInStringTokens=null!==(i=e.hideInStringTokens)&&void 0!==i&&i}static register(e){return new K(e)}static createDynamic(e){return new K(e)}}K.EMPTY=K.register({description:"empty"});let U=[K.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),K.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),K.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),K.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function q(e){return e instanceof K?e:K.createDynamic(e)}class Q extends l.JT{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.Q5),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,0===this._deferredCnt){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);let e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(e)}null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){!this._affectedInjectedTextLines&&(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){!this._affectsMinimap&&(this._affectsMinimap=!!e.minimap&&!!e.minimap.position),!this._affectsOverviewRuler&&(this._affectsOverviewRuler=!!e.overviewRuler&&!!e.overviewRuler.color),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Z extends l.JT{constructor(){super(),this._fastEmitter=this._register(new r.Q5),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.Q5),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;let t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e),this._slowEmitter.fire(e)}}},97319:function(e,t,i){"use strict";i.d(t,{r:function(){return a}});var n=i("24342"),s=i("37454"),o=i("95394"),r=i("12416");let l=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function a(e,t,i,a){let h=a===r.R.ROOT_FOLDER?["rootfolder-icon"]:a===r.R.FOLDER?["folder-icon"]:["file-icon"];if(i){let u;if(i.scheme===n.lg.data)u=s.Vb.parseMetaData(i).get(s.Vb.META_DATA_LABEL);else{let e=i.path.match(l);e?(u=d(e[2].toLowerCase()),e[1]&&h.push(`${d(e[1].toLowerCase())}-name-dir-icon`)):u=d(i.authority.toLowerCase())}if(a===r.R.FOLDER)h.push(`${u}-name-folder-icon`);else{if(u){if(h.push(`${u}-name-file-icon`),h.push("name-file-icon"),u.length<=255){let e=u.split(".");for(let t=1;t<e.length;t++)h.push(`${e.slice(t).join(".")}-ext-file-icon`)}h.push("ext-file-icon")}let r=function(e,t,i){if(!i)return null;let r=null;if(i.scheme===n.lg.data){let e=s.Vb.parseMetaData(i).get(s.Vb.META_DATA_MIME);e&&(r=t.getLanguageIdByMimeType(e))}else{let t=e.getModel(i);t&&(r=t.getLanguageId())}return r&&r!==o.bd?r:t.guessLanguageIdByFilepathOrFirstLine(i)}(e,t,i);r&&h.push(`${d(r)}-lang-file-icon`)}}return h}function d(e){return e.replace(/[\11\12\14\15\40]/g,"/")}},78936:function(e,t,i){"use strict";i.d(t,{S:function(){return n}});let n=(0,i("6301").yh)("textModelService")},91685:function(e,t,i){"use strict";i.d(t,{W:function(){return l}});var n=i("15776"),s=i("57938"),o=i("86043"),r=i("38643");function l(e,t){return null!==e?new a(e,t):t?d.INSTANCE:h.INSTANCE}class a{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){let n;this._assertVisible();let s=i>0?this._projectionData.breakOffsets[i-1]:0,r=this._projectionData.breakOffsets[i];if(null!==this._projectionData.injectionOffsets){let i=this._projectionData.injectionOffsets.map((e,t)=>new o.gk(0,0,e+1,this._projectionData.injectionOptions[t],0));n=o.gk.applyInjectedText(e.getLineContent(t),i).substring(s,r)}else n=e.getValueInRange({startLineNumber:t,startColumn:s+1,endLineNumber:t,endColumn:r+1});return i>0&&(n=c(this._projectionData.wrappedTextIndentLength)+n),n}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){let n=[];return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,s,o,l,a){let d;this._assertVisible();let h=this._projectionData,u=h.injectionOffsets,c=h.injectionOptions,g=null;if(u){g=[];let e=0,t=0;for(let i=0;i<h.getOutputLineCount();i++){let n=[];g[i]=n;let s=i>0?h.breakOffsets[i-1]:0,o=h.breakOffsets[i];for(;t<u.length;){let l=c[t].content.length,a=u[t]+e,d=a+l;if(a>o)break;if(s<d){let e=c[t];if(e.inlineClassName){let t=i>0?h.wrappedTextIndentLength:0,l=t+Math.max(a-s,0),u=t+Math.min(d-s,o);l!==u&&n.push(new r.Wx(l,u,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(d<=o)e+=l,t++;else break}}}d=u?e.tokenization.getLineTokens(t).withInserted(u.map((e,t)=>({offset:e,text:c[t].content,tokenMetadata:n.A.defaultTokenMetadata}))):e.tokenization.getLineTokens(t);for(let e=i;e<i+s;e++){let t=o+e-i;if(!l[t]){a[t]=null;continue}a[t]=this._getViewLineData(d,g?g[e]:null,e)}}_getViewLineData(e,t,i){this._assertVisible();let n=this._projectionData,s=i>0?n.wrappedTextIndentLength:0,o=i>0?n.breakOffsets[i-1]:0,l=n.breakOffsets[i],a=e.sliceAndInflate(o,l,s),d=a.getLineContent();i>0&&(d=c(n.wrappedTextIndentLength)+d);let h=this._projectionData.getMinOutputOffset(i)+1,u=d.length+1,g=i+1<this.getViewLineCount(),p=0===i?0:n.breakOffsetsVisibleColumn[i-1];return new r.IP(d,g,h,u,p,a,t)}getModelColumnOfViewPosition(e,t){return this._assertVisible(),this._projectionData.translateToInputOffset(e,t-1)+1}getViewPositionOfModelPosition(e,t,i=2){return this._assertVisible(),this._projectionData.translateToOutputPosition(t-1,i).toPosition(e)}getViewLineNumberOfModelPosition(e,t){return this._assertVisible(),e+this._projectionData.translateToOutputPosition(t-1).outputLineIndex}normalizePosition(e,t,i){let n=t.lineNumber-e;return this._projectionData.normalizeOutputPosition(e,t.column-1,i).toPosition(n)}getInjectedTextAt(e,t){return this._projectionData.getInjectedText(e,t-1)}_assertVisible(){if(!this._isVisible)throw Error("Not supported")}}class d{constructor(){}isVisible(){return!0}setVisible(e){return e?this:h.INSTANCE}getProjectionData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){let n=e.tokenization.getLineTokens(t),s=n.getLineContent();return new r.IP(s,!1,1,s.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,s,o,r){if(!o[s]){r[s]=null;return}r[s]=this.getViewLineData(e,t,0)}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new s.L(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i){return t}getInjectedTextAt(e,t){return null}}d.INSTANCE=new d;class h{constructor(){}isVisible(){return!1}setVisible(e){return e?d.INSTANCE:this}getProjectionData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw Error("Not supported")}getViewLineLength(e,t,i){throw Error("Not supported")}getViewLineMinColumn(e,t,i){throw Error("Not supported")}getViewLineMaxColumn(e,t,i){throw Error("Not supported")}getViewLineData(e,t,i){throw Error("Not supported")}getViewLinesData(e,t,i,n,s,o,r){throw Error("Not supported")}getModelColumnOfViewPosition(e,t){throw Error("Not supported")}getViewPositionOfModelPosition(e,t){throw Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw Error("Not supported")}normalizePosition(e,t,i){throw Error("Not supported")}getInjectedTextAt(e,t){throw Error("Not supported")}}h.INSTANCE=new h;let u=[""];function c(e){if(e>=u.length)for(let t=1;t<=e;t++)u[t]=function(e){return Array(e+1).join(" ")}(t);return u[e]}},63636:function(e,t,i){"use strict";i.d(t,{$t:function(){return d},CU:function(){return l},Fd:function(){return a},zg:function(){return h}});var n=i("57938"),s=i("61045"),o=i("38643"),r=i("16637");class l{constructor(e,t,i,n,s){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=s,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){let t=e.id,i=this._decorationsCache[t];if(!i){let r;let l=e.range,a=e.options;if(a.isWholeLine){let e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(l.startLineNumber,1),0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.L(l.endLineNumber,this.model.getLineMaxColumn(l.endLineNumber)),1);r=new s.e(e.lineNumber,e.column,t.lineNumber,t.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(l,1);i=new o.$l(r,a),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return!(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))&&(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e){let t=new s.e(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(t).inlineDecorations[0]}_getDecorationsInRange(e){let t=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$J)(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber,l=[],d=0,h=[];for(let e=i;e<=n;e++)h[e-i]=[];for(let e=0,r=t.length;e<r;e++){let r=t[e],u=r.options;if(!a(this.model,r))continue;let c=this._getOrCreateViewModelDecoration(r),g=c.range;if(l[d++]=c,u.inlineClassName){let e=new o.$t(g,u.inlineClassName,u.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(i,g.startLineNumber),s=Math.min(n,g.endLineNumber);for(let n=t;n<=s;n++)h[n-i].push(e)}if(u.beforeContentClassName&&i<=g.startLineNumber&&g.startLineNumber<=n){let e=new o.$t(new s.e(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn),u.beforeContentClassName,1);h[g.startLineNumber-i].push(e)}if(u.afterContentClassName&&i<=g.endLineNumber&&g.endLineNumber<=n){let e=new o.$t(new s.e(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn),u.afterContentClassName,2);h[g.endLineNumber-i].push(e)}}return{decorations:l,inlineDecorations:h}}}function a(e,t){return!(t.options.hideInCommentTokens&&d(e,t)||t.options.hideInStringTokens&&h(e,t))&&!0}function d(e,t){return u(e,t.range,e=>1===e)}function h(e,t){return u(e,t.range,e=>2===e)}function u(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let s=e.tokenization.getLineTokens(n),o=n===t.startLineNumber,r=n===t.endLineNumber,l=o?s.findTokenIndexAtOffset(t.startColumn-1):0;for(;l<s.getCount()&&!(r&&s.getStartOffset(l)>t.endColumn-1);){;if(!i(s.getStandardTokenType(l)))return!1;l++}}return!0}},87092:function(e,t,i){"use strict";var n=i("59923"),s=i("76617"),o=i("12188"),r=i("8339");class l extends n.R6{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[];for(let e of t.getSelections())i.push(new o.T(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Qr)(class e extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:r.NC("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:s.u.writable})}}),(0,n.Qr)(class e extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:r.NC("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:s.u.writable})}})},10798:function(e,t,i){"use strict";var n=i("59923"),s=i("38846"),o=i("77287"),r=i("61045"),l=i("76617"),a=i("8339");class d extends n.R6{constructor(){super({id:"editor.action.transposeLetters",label:a.NC("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:l.u.writable,kbOpts:{kbExpr:l.u.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[];for(let e of t.getSelections()){if(!e.isEmpty())continue;let t=e.startLineNumber,l=e.startColumn,a=i.getLineMaxColumn(t);if(1===t&&(1===l||2===l&&2===a))continue;let d=l===a?e.getPosition():o.o.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),h=o.o.leftPosition(i,d),u=o.o.leftPosition(i,h),c=i.getValueInRange(r.e.fromPositions(u,h)),g=i.getValueInRange(r.e.fromPositions(h,d)),p=r.e.fromPositions(u,d);n.push(new s.T4(p,g+c))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.Qr)(d)},64228:function(e,t,i){"use strict";var n=i("59527"),s=i("7875"),o=i("37717"),r=i("59923"),l=i("83368"),a=i("76617"),d=i("8339"),h=i("51553"),u=i("4264");let c="9_cutcopypaste",g=s.tY||document.queryCommandSupported("cut"),p=s.tY||document.queryCommandSupported("copy"),f=void 0!==navigator.clipboard&&!n.isFirefox||document.queryCommandSupported("paste");function m(e){return e.register(),e}let _=g?m(new r.AJ({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:s.tY?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:d.NC({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:h.eH.EditorContext,group:c,title:d.NC("actions.clipboard.cutLabel","Cut"),when:a.u.writable,order:1},{menuId:h.eH.CommandPalette,group:"",title:d.NC("actions.clipboard.cutLabel","Cut"),order:1},{menuId:h.eH.SimpleEditorContext,group:c,title:d.NC("actions.clipboard.cutLabel","Cut"),when:a.u.writable,order:1}]})):void 0,b=p?m(new r.AJ({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:s.tY?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:d.NC({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:h.eH.EditorContext,group:c,title:d.NC("actions.clipboard.copyLabel","Copy"),order:2},{menuId:h.eH.CommandPalette,group:"",title:d.NC("actions.clipboard.copyLabel","Copy"),order:1},{menuId:h.eH.SimpleEditorContext,group:c,title:d.NC("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;h.BH.appendMenuItem(h.eH.MenubarEditMenu,{submenu:h.eH.MenubarCopy,title:{value:d.NC("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),h.BH.appendMenuItem(h.eH.EditorContext,{submenu:h.eH.EditorContextCopy,title:{value:d.NC("copy as","Copy As"),original:"Copy As"},group:c,order:3}),h.BH.appendMenuItem(h.eH.EditorContext,{submenu:h.eH.EditorContextShare,title:{value:d.NC("share","Share"),original:"Share"},group:"11_share",order:-1});let v=f?m(new r.AJ({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:s.tY?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:h.eH.MenubarEditMenu,group:"2_ccp",title:d.NC({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:h.eH.EditorContext,group:c,title:d.NC("actions.clipboard.pasteLabel","Paste"),when:a.u.writable,order:4},{menuId:h.eH.CommandPalette,group:"",title:d.NC("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:h.eH.SimpleEditorContext,group:c,title:d.NC("actions.clipboard.pasteLabel","Paste"),when:a.u.writable,order:4}]})):void 0;class C extends r.R6{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:d.NC("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:a.u.textInputFocus,primary:0,weight:100}})}run(e,t){if(!!t.hasModel())!(!t.getOption(33)&&t.getSelection().isEmpty())&&(o.RA.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),o.RA.forceCopyWithSyntaxHighlighting=!1)}}function y(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,i)=>{let n=e.get(l.$).getFocusedCodeEditor();if(n&&n.hasTextFocus()){let e=n.getOption(33),i=n.getSelection();return!!(i&&i.isEmpty())&&!e||(document.execCommand(t),!0)}return!1}),e.addImplementation(0,"generic-dom",(e,i)=>(document.execCommand(t),!0)))}y(_,"cut"),y(b,"copy"),v&&(v.addImplementation(1e4,"code-editor",(e,t)=>{let i=e.get(l.$),n=e.get(u.p),r=i.getFocusedCodeEditor();if(r&&r.hasTextFocus()){if(!document.execCommand("paste")&&s.$L){var a,d,h,c;return a=void 0,d=void 0,h=void 0,c=function*(){let e=yield n.readText();if(""!==e){let t=o.Nl.INSTANCE.get(e),i=!1,n=null,s=null;t&&(i=r.getOption(33)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,s=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:s})}},new(h||(h=Promise))(function(e,t){function i(e){try{s(c.next(e))}catch(e){t(e)}}function n(e){try{s(c.throw(e))}catch(e){t(e)}}function s(t){var s;t.done?e(t.value):((s=t.value)instanceof h?s:new h(function(e){e(s)})).then(i,n)}s((c=c.apply(a,d||[])).next())})}return!0}return!1}),v.addImplementation(0,"generic-dom",(e,t)=>(document.execCommand("paste"),!0))),p&&(0,r.Qr)(C)},84315:function(e,t,i){"use strict";i.d(t,{n:function(){return _}});var n,s,o=i("67518"),r=i("862"),l=i("35271"),a=i("19527"),d=i("61045"),h=i("44126"),u=i("68487"),c=i("82524"),g=i("98048"),p=i("39703"),f=function(e,t,i,n){return new(i||(i=Promise))(function(s,o){function r(e){try{a(n.next(e))}catch(e){o(e)}}function l(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};class m{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let _=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=1}computeSync(e,t){return[]}computeAsync(e,t,i){return o.Aq.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return f(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let e=u.i.get(this._editor);if(!e)return[];for(let i of t){if(!e.isColorDecoration(i))continue;let t=e.getColorData(i.range.getStartPosition());if(t)return[(yield this._createColorHover(this._editor.getModel(),t.colorInfo,t.provider))]}return[]})}_createColorHover(e,t,i){return f(this,void 0,void 0,function*(){let n=e.getValueInRange(t.range),{red:s,green:o,blue:a,alpha:u}=t.color,g=new l.VS(Math.round(255*s),Math.round(255*o),Math.round(255*a),u),p=new l.Il(g),f=yield(0,h.R)(e,t,i,r.T.None),_=new c.A(p,[],0);return _.colorPresentations=f||[],_.guessColorPresentation(p,n),new m(this,d.e.lift(t.range),_,i)})}renderHoverParts(e,t){if(0===t.length||!this._editor.hasModel())return a.JT.None;let i=new a.SL,n=t[0],s=this._editor.getModel(),o=n.model,l=i.add(new g.YW(e.fragment,o,this._editor.getOption(131),this._themeService));e.setColorPicker(l);let u=new d.e(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn),c=()=>{let t,i;if(o.presentation.textEdit){t=[o.presentation.textEdit],i=new d.e(o.presentation.textEdit.range.startLineNumber,o.presentation.textEdit.range.startColumn,o.presentation.textEdit.range.endLineNumber,o.presentation.textEdit.range.endColumn);let e=this._editor.getModel()._setTrackedRange(null,i,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t),i=this._editor.getModel()._getTrackedRange(e)||i}else t=[{range:u,text:o.presentation.label,forceMoveMarkers:!1}],i=u.setEndPosition(u.endLineNumber,u.startColumn+o.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",t);o.presentation.additionalTextEdits&&(t=[...o.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",t),e.hide()),this._editor.pushUndoStop(),u=i},p=e=>(0,h.R)(s,{range:u,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},n.provider,r.T.None).then(e=>{o.colorPresentations=e||[]});return i.add(o.onColorFlushed(e=>{p(e).then(c)})),i.add(o.onDidChangeColor(p)),i}};_=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,s=p.XE,function(e,t){s(e,t,1)})],_)},44739:function(e,t,i){"use strict";i.d(t,{l:function(){return C}});var n=i("9737"),s=i("70691"),o=i("19527"),r=i("77403"),l=i("61045"),a=i("10870"),d=i("88936"),h=i("49429"),u=i("8339"),c=i("38204"),g=i("51553"),p=i("21095"),f=i("49436"),m=i("80204"),_=i("37623"),b=function(e,t){return function(i,n){t(i,n,e)}};class v{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return(null===(i=null===(t=null===(e=this.controller.activeModel)||void 0===e?void 0:e.activeInlineCompletionsModel)||void 0===t?void 0:t.completionSession.value)||void 0===i?void 0:i.commands)||[]}}let C=class{constructor(e,t,i,n,s,o,r){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=s,this._openerService=o,this.accessibilityService=r,this.hoverOrdinal=3}suggestHoverAnchor(e){let t=h.Kp.get(this._editor);if(!t)return null;let i=e.target;if(8===i.type){let e=i.detail;if(t.shouldShowHoverAtViewZone(e.viewZoneId))return new d.YM(1e3,this,l.e.fromPositions(e.positionBefore||e.position,e.positionBefore||e.position))}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new d.YM(1e3,this,i.range):null}computeSync(e,t){let i=h.Kp.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new v(this,e.range,i)]:[]}renderHoverParts(e,t){let i=new o.SL,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);let s=i.add(this._menuService.createMenu(g.eH.InlineCompletionsActions,this._contextKeyService)),r=e.statusBar.addAction({label:u.NC("showNextInlineSuggestion","Next"),commandId:h.L8.ID,run:()=>this._commandService.executeCommand(h.L8.ID)}),l=e.statusBar.addAction({label:u.NC("showPreviousInlineSuggestion","Previous"),commandId:h.a5.ID,run:()=>this._commandService.executeCommand(h.a5.ID)});e.statusBar.addAction({label:u.NC("acceptInlineSuggestion","Accept"),commandId:_.O,run:()=>this._commandService.executeCommand(_.O)});let a=[r,l];for(let e of a)e.setEnabled(!1);for(let t of(n.hasMultipleSuggestions().then(e=>{for(let t of a)t.setEnabled(e)}),n.commands))e.statusBar.addAction({label:t.title,commandId:t.id,run:()=>this._commandService.executeCommand(t.id,...t.arguments||[])});for(let[t,i]of s.getActions())for(let t of i)t instanceof g.U8&&e.statusBar.addAction({label:t.label,commandId:t.item.id,run:()=>this._commandService.executeCommand(t.item.id)});return i}renderScreenReaderText(e,t,i){var o,l;let a=n.$,d=a("div.hover-row.markdown-hover"),h=n.R3(d,a("div.hover-contents")),c=i.add(new r.$({editor:this._editor},this._languageService,this._openerService)),g=null===(l=null===(o=t.controller.activeModel)||void 0===o?void 0:o.inlineCompletionsModel)||void 0===l?void 0:l.ghostText;if(g){let t=this._editor.getModel().getLineContent(g.lineNumber);(t=>{i.add(c.onDidRenderAsync(()=>{h.className="hover-contents code-hover-contents",e.onContentsChanged()}));let n=u.NC("inlineSuggestionFollows","Suggestion:"),o=i.add(c.render(new s.W5().appendText(n).appendCodeblock("text",t)));h.replaceChildren(o.element)})(g.renderForScreenReader(t))}e.fragment.appendChild(d)}};C=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([b(1,p.Hy),b(2,g.co),b(3,f.i6),b(4,a.O),b(5,m.v4),b(6,c.F)],C)},93642:function(e,t,i){"use strict";i.d(t,{T:function(){return o}});var n=i("47578"),s=i("82168");class o extends s.Z{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:(0,n.x$)(i.label)||i.id});return t}}},61810:function(e,t,i){"use strict";var n,s,o,r=i("19527"),l=i("59923"),a=i("78540"),d=i("32633"),h=i("862"),u=i("9737"),c=i("34630"),g=i("81161"),p=i("30751"),f=i("67518"),m=i("57938"),_=function(e,t,i,n){return new(i||(i=Promise))(function(s,o){function r(e){try{a(n.next(e))}catch(e){o(e)}}function l(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,l)}a((n=n.apply(e,t||[])).next())})};let b=class extends r.JT{constructor(e,t){super(),this._sessionStore=new r.SL,this._ranges=[],this._rangesVersionId=0,this._editor=e,this._languageFeaturesService=t,this.stickyScrollWidget=new y(this._editor),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(34)&&this.onConfigurationChange()})),this._updateSoon=this._register(new f.pY(()=>this._update(!0),50)),this.onConfigurationChange()}onConfigurationChange(){if(!1===this._editor.getOption(34).stickyScroll.enabled){this.stickyScrollWidget.emptyRootNode(),this._editor.removeOverlayWidget(this.stickyScrollWidget),this._sessionStore.clear();return}this._editor.addOverlayWidget(this.stickyScrollWidget),this._sessionStore.add(this._editor.onDidChangeModel(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._update(!1))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this._update(!0))),this._sessionStore.add(this._editor.onDidChangeModelTokens(e=>this._onTokensChange(e))),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this._update(!0))),this._update(!0)}_needsUpdate(e){for(let t of this.stickyScrollWidget.getCurrentLines())for(let i of e.ranges)if(t>=i.fromLineNumber&&t<=i.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._update(!1)}_update(e=!1){var t,i;return _(this,void 0,void 0,function*(){e&&(null===(t=this._cts)||void 0===t||t.dispose(!0),this._cts=new h.A,yield this._updateOutlineModel(this._cts.token));let n=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(n)for(let e of n)this._ranges=this._ranges.filter(t=>!(t[0]>=e.startLineNumber&&t[1]<=e.endLineNumber+1));this._renderStickyScroll()})}_findLineRanges(e,t){if(null==e?void 0:e.children.size){let i=!1;for(let n of null==e?void 0:e.children.values()){let e=n.symbol.kind;(4===e||8===e||11===e||10===e||5===e||1===e)&&(i=!0,this._findLineRanges(n,t+1))}!i&&this._addOutlineRanges(e,t)}else this._addOutlineRanges(e,t)}_addOutlineRanges(e,t){let i=0,n=0;for(;e;){let s=e.symbol.kind;if((4===s||8===s||11===s||10===s||5===s||1===s)&&(i=null==e?void 0:e.symbol.range.startLineNumber,n=null==e?void 0:e.symbol.range.endLineNumber,this._ranges.push([i,n,t]),t--),e.parent instanceof d.sT)e=e.parent;else break}}_updateOutlineModel(e){return _(this,void 0,void 0,function*(){if(this._editor.hasModel()){let t=this._editor.getModel(),i=t.getVersionId(),n=yield d.C3.create(this._languageFeaturesService.documentSymbolProvider,t,e);if(!e.isCancellationRequested)for(let e of(this._ranges=[],this._rangesVersionId=i,n.children.values())){if(e instanceof d.sT){let t=e.symbol.kind;4===t||8===t||11===t||10===t||5===t||1===t?this._findLineRanges(e,1):this._findLineRanges(e,0)}this._ranges=this._ranges.sort(function(e,t){return e[0]!==t[0]?e[0]-t[0]:e[1]!==t[1]?t[1]-e[1]:e[2]-t[2]});let t=[];for(let[e,i]of this._ranges.entries()){let[n,s,o]=i;t[0]===n&&t[1]===s?this._ranges.splice(e,1):t=i}}}})}_renderStickyScroll(){if(!this._editor.hasModel())return;let e=this._editor.getOption(61),t=this._editor.getModel();if(this._rangesVersionId!==t.getVersionId())return;let i=this._editor.getScrollTop();this.stickyScrollWidget.emptyRootNode();let n=new Set;for(let[s,o]of this._ranges.entries()){let[r,l,a]=o;if(l-r>0&&""!==t.getLineContent(r)){let t=(a-1)*e,o=a*e,d=this._editor.getBottomForLineNumber(r)-i,h=this._editor.getTopForLineNumber(l)-i,u=this._editor.getBottomForLineNumber(l)-i;if(n.has(r))this._ranges.splice(s,1);else{if(t>=h-1&&t<u-2){n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,-1,u-o));break}o>d&&o<u-1&&(n.add(r),this.stickyScrollWidget.pushCodeLine(new C(r,a,this._editor,0,0)))}}}this.stickyScrollWidget.updateRootNode()}dispose(){super.dispose(),this._sessionStore.dispose()}};b.ID="store.contrib.stickyScrollController",b=function(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([(n=1,s=a.p,function(e,t){s(e,t,1)})],b);let v=null===(o=window.trustedTypes)||void 0===o?void 0:o.createPolicy("stickyScrollViewLayer",{createHTML:e=>e});class C{constructor(e,t,i,n,s){this._lineNumber=e,this._depth=t,this._editor=i,this._zIndex=n,this._relativePosition=s,this.effectiveLineHeight=0,this.effectiveLineHeight=this._editor.getOption(61)+this._relativePosition}get lineNumber(){return this._lineNumber}getDomNode(){let e,t;let i=document.createElement("div"),n=this._editor._getViewModel(),s=n.coordinatesConverter.convertModelPositionToViewPosition(new m.L(this._lineNumber,1)).lineNumber,o=n.getViewLineRenderingData(s);try{e=p.Kp.filter(o.inlineDecorations,s,o.minColumn,o.maxColumn)}catch(t){e=[]}let r=new g.IJ(!0,!0,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,0,o.tokens,e,o.tabSize,o.startVisibleColumn,1,1,1,100,"none",!0,!0,null),l=(0,c.l$)(400);(0,g.d1)(r,l),t=v?v.createHTML(l.build()):l.build();let a=document.createElement("span");a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",a.style.overflow="hidden",a.style.whiteSpace="nowrap",a.style.display="inline-block",a.style.lineHeight=this._editor.getOption(61).toString()+"px",a.innerHTML=t;let d=document.createElement("span");d.style.width=this._editor.getLayoutInfo().contentLeft.toString()+"px",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.color="var(--vscode-editorLineNumber-foreground)",d.style.display="inline-block",d.style.lineHeight=this._editor.getOption(61).toString()+"px";let h=document.createElement("span");return h.innerText=this._lineNumber.toString(),h.style.paddingLeft=this._editor.getLayoutInfo().lineNumbersLeft.toString()+"px",h.style.width=this._editor.getLayoutInfo().lineNumbersWidth.toString()+"px",h.style.backgroundColor="var(--vscode-editorStickyScroll-background)",h.style.textAlign="right",h.style.float="left",h.style.lineHeight=this._editor.getOption(61).toString()+"px",d.appendChild(h),i.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._editor.revealPosition({lineNumber:this._lineNumber-this._depth+1,column:1})},i.onmouseover=e=>{h.style.background="var(--vscode-editorStickyScrollHover-background)",a.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",d.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",i.style.backgroundColor="var(--vscode-editorStickyScrollHover-background)",h.style.cursor="pointer",a.style.cursor="pointer",i.style.cursor="pointer",d.style.cursor="pointer"},i.onmouseleave=e=>{h.style.background="var(--vscode-editorStickyScroll-background)",a.style.backgroundColor="var(--vscode-editorStickyScroll-background)",d.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.backgroundColor="var(--vscode-editorStickyScroll-background)"},this._editor.applyFontInfo(a),this._editor.applyFontInfo(h),i.appendChild(d),i.appendChild(a),i.style.zIndex=this._zIndex.toString(),i.style.backgroundColor="var(--vscode-editorStickyScroll-background)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.style.width="100%",i.style.lineHeight=this._editor.getOption(61).toString()+"px",i.style.height=this._editor.getOption(61).toString()+"px",this._relativePosition&&(i.style.position="relative",i.style.top=this._relativePosition+"px",i.style.width="100%"),i}}class y{constructor(e){this._editor=e,this.arrayOfCodeLines=[],this.rootDomNode=document.createElement("div"),this.rootDomNode=document.createElement("div"),this.rootDomNode.style.width="100%",this.rootDomNode.style.boxShadow="var(--vscode-scrollbar-shadow) 0 6px 6px -6px"}getCurrentLines(){let e=[];for(let t of this.arrayOfCodeLines)e.push(t.lineNumber);return e}pushCodeLine(e){this.arrayOfCodeLines.push(e)}updateRootNode(){let e=0;for(let t of this.arrayOfCodeLines)e+=t.effectiveLineHeight,this.rootDomNode.appendChild(t.getDomNode());this.rootDomNode.style.height=e.toString()+"px"}emptyRootNode(){this.arrayOfCodeLines.length=0,u.PO(this.rootDomNode)}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this.rootDomNode.style.zIndex="2",this.rootDomNode.style.backgroundColor="var(--vscode-editorStickyScroll-background)",this.rootDomNode}getPosition(){return{preference:null}}}(0,l._K)(b.ID,b)},56886:function(e,t,i){"use strict";i.d(t,{Re:function(){return m},mh:function(){return _},nJ:function(){return f}});var n,s,o=i("9737"),r=i("42401"),l=i("71628"),a=i("16904"),d=i("70691"),h=i("19527"),u=i("77403"),c=i("59725"),g=i("8339"),p=i("6301");function f(e){return!!e&&!!(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let m=class{constructor(e,t){this._editor=e,this._onDidClose=new a.Q5,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new a.Q5,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new h.SL,this._renderDisposeable=new h.SL,this._borderWidth=1,this._size=new o.Ro(330,0),this.domNode=o.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(u.$,{editor:e}),this._body=o.$(".body"),this._scrollbar=new r.s$(this._body,{alwaysConsumeMouseWheel:!0}),o.R3(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=o.R3(this._body,o.$(".header")),this._close=o.R3(this._header,o.$("span"+l.lA.close.cssSelector)),this._close.title=g.NC("details.close","Close"),this._type=o.R3(this._header,o.$("p.type")),this._docs=o.R3(this._body,o.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(46)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){let e=this._editor.getOptions(),t=e.get(46),i=t.getMassagedFontFamily(),n=e.get(109)||t.fontSize,s=e.get(110)||t.lineHeight,o=t.fontWeight,r=`${n}px`,l=`${s}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=`${s/n}`,this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){let e=this._editor.getOption(110)||this._editor.getOption(46).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=g.NC("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:s,documentation:r}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}
2
2
  prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}
3
3
  word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}
4
4
  distance: ${e.distance} (localityBonus-setting)