text: /*!--------------------------------------------------------
   * Copyright (C) Microsoft Corporation. All rights reserved.
   *--------------------------------------------------------*/
  (function(){
  var e=["require","exports","vs/base/common/strings","vs/base/common/platform","vs/base/common/path","vs/base/common/arrays","vs/base/common/event","vs/base/common/uri","vs/base/common/extpath","vs/base/common/errors","vs/base/common/lifecycle","vs/base/common/async","vs/base/common/objects","vs/base/common/types","vs/base/common/map","vs/base/common/glob","child_process","vs/base/common/cancellation","vs/base/node/pfs","vs/platform/instantiation/common/instantiation","vs/base/common/normalization","fs","vs/workbench/services/search/common/search","vs/base/common/functional","vs/base/common/iterator","vs/base/common/process","vs/base/common/stopwatch","vs/base/common/buffer","string_decoder","vs/base/node/encoding","vs/base/parts/quickopen/common/quickOpenScorer","vs/nls","vs/nls!vs/workbench/services/search/node/searchApp","vs/base/common/errorMessage","vs/platform/registry/common/platform","vs/workbench/services/search/common/searchExtTypes","vs/workbench/services/search/node/ripgrepSearchUtils","vs/base/common/assert","vs/base/common/collections","vs/base/common/linkedList","vs/base/common/stream","vs/base/common/comparers","vs/base/common/amd","vs/base/common/console","vs/base/common/filters","vs/base/common/network","vs/base/common/resources","vs/base/common/uuid","vs/base/node/decoder","util","vs/base/parts/ipc/common/ipc","vs/nls!vs/base/common/errorMessage","vs/nls!vs/base/node/processes","vs/base/node/processes","vs/base/parts/ipc/node/ipc.cp","vs/nls!vs/workbench/common/views","vs/platform/contextkey/common/contextkey","vs/platform/log/common/log","vs/workbench/common/views","vs/workbench/services/search/common/textSearchManager","vs/workbench/services/search/node/searchIpc","vs/workbench/services/search/node/textSearchManager","vs/workbench/services/search/node/ripgrepFileSearch","vscode-ripgrep","vs/workbench/services/search/node/fileSearch","vs/workbench/services/search/node/ripgrepTextSearchEngine","vs/workbench/services/search/node/textSearchAdapter","vs/workbench/services/search/node/rawSearchService","iconv-lite","stream","os","events","graceful-fs","vs/workbench/services/search/node/searchApp"],t=function(t){
  for(var r=[],n=0,s=t.length;n<s;n++)r[n]=e[t[n]];return r};define(e[37],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}})),define(e[38],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=Object.prototype.hasOwnProperty;t.values=function(e){const t=[];for(let n in e)r.call(e,n)&&t.push(e[n]);return t},t.size=function(e){let t=0;for(let n in e)r.call(e,n)&&(t+=1);return t},t.first=function(e){for(const t in e)if(r.call(e,t))return e[t]},t.forEach=function(e,t){for(let n in e)if(r.call(e,n)){if(!1===t({key:n,value:e[n]},(function(){delete e[n]})))return}},t.groupBy=function(e,t){const r=Object.create(null);for(const n of e){const e=t(n);let s=r[e];s||(s=r[e]=[]),s.push(n)}return r},t.fromMap=function(e){const t=Object.create(null);return e&&e.forEach((e,r)=>{t[r]=e}),t},t.mapValues=function(e){const t=[];return e.forEach(e=>t.push(e)),t}
  ;t.SetMap=class{constructor(){this.map=new Map}add(e,t){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(t)}delete(e,t){const r=this.map.get(e);r&&(r.delete(t),0===r.size&&this.map.delete(e))}forEach(e,t){const r=this.map.get(e);r&&r.forEach(t)}}})),define(e[9],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}t.ErrorHandler=r,t.errorHandler=new r,
  t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=function(e){s(e)||t.errorHandler.onUnexpectedError(e)},t.onUnexpectedExternalError=function(e){s(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error){let{name:t,message:r}=e;return{$isError:!0,name:t,message:r,stack:e.stacktrace||e.stack}}return e};const n="Canceled";function s(e){return e instanceof Error&&e.name===n&&e.message===n}t.isPromiseCanceledError=s,t.canceled=function(){const e=new Error(n);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")},t.readonly=function(e){return e?new Error(`readonly property '${e} cannot be changed'`):new Error("readonly property cannot be changed")},t.disposed=function(e){const t=new Error(`${e} has been disposed`)
  ;return t.name="DISPOSED",t},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"};class i extends Error{constructor(e){super("NotImplemented"),e&&(this.message=e)}}t.NotImplementedError=i})),define(e[5],t([0,1,9]),(function(e,t,r){"use strict";function n(e,t){let r=0,n=e.length;if(0===n)return 0;for(;r<n;){const s=Math.floor((r+n)/2);t(e[s])?n=s:r=s+1}return r}function s(e,t){return function e(t,r,n,s,i){if(s<=n)return;const o=n+(s-n)/2|0;e(t,r,n,o,i);e(t,r,o+1,s,i);if(r(t[o],t[o+1])<=0)return;!function(e,t,r,n,s,i){let o=r,a=n+1;for(let t=r;t<=s;t++)i[t]=e[t];for(let c=r;c<=s;c++)o>n?e[c]=i[a++]:a>s?e[c]=i[o++]:t(i[a],i[o])<0?e[c]=i[a++]:e[c]=i[o++]}(t,r,n,o,s,i)}(e,t,0,e.length-1,[]),e}function i(e,t,r){const n=[];function s(e,t,r){if(0===t&&0===r.length)return;const s=n[n.length-1];s&&s.start+s.deleteCount===e?(s.deleteCount+=t,s.toInsert.push(...r)):n.push({start:e,deleteCount:t,toInsert:r})}let i=0,o=0;for(;;){if(i===e.length){s(i,0,t.slice(o))
  ;break}if(o===t.length){s(i,e.length-i,[]);break}const n=e[i],a=t[o],c=r(n,a);0===c?(i+=1,o+=1):c<0?(s(i,1,[]),i+=1):c>0&&(s(i,0,[a]),o+=1)}return n}function o(e,t,r,s,i){for(const o=r.length;s<i;s++){const i=e[s];if(t(i,r[o-1])<0){r.pop();const e=n(r,e=>t(i,e)<0);r.splice(e,0,i)}}}function a(e,t){for(let r=0;r<e.length;r++){if(t(e[r]))return r}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t=0){return e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,r=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,s=e.length;n<s;n++)if(!r(e[n],t[n]))return!1;return!0},t.binarySearch=function(e,t,r){let n=0,s=e.length-1;for(;n<=s;){const i=(n+s)/2|0,o=r(e[i],t);if(o<0)n=i+1;else{if(!(o>0))return i;s=i-1}}return-(n+1)},t.findFirstInSorted=n,t.mergeSort=s,t.groupBy=function(e,t){const r=[];let n=void 0
  ;for(const i of s(e.slice(0),t))n&&0===t(n[0],i)?n.push(i):(n=[i],r.push(n));return r},t.sortedDiff=i,t.delta=function(e,t,r){const n=i(e,t,r),s=[],o=[];for(const t of n)s.push(...e.slice(t.start,t.start+t.deleteCount)),o.push(...t.toInsert);return{removed:s,added:o}},t.top=function(e,t,r){if(0===r)return[];const n=e.slice(0,r).sort(t);return o(e,t,n,r,e.length),n},t.topAsync=function(e,t,n,s,i){return 0===n?Promise.resolve([]):new Promise((a,c)=>{(async()=>{const a=e.length,c=e.slice(0,n).sort(t);for(let l=n,u=Math.min(n+s,a);l<a;l=u,u=Math.min(u+s,a)){if(l>n&&await new Promise(e=>setTimeout(e)),i&&i.isCancellationRequested)throw r.canceled();o(e,t,c,l,u)}return c})().then(a,c)})},t.coalesce=function(e){return e.filter(e=>!!e)},t.coalesceInPlace=function(e){let t=0;for(let r=0;r<e.length;r++)e[r]&&(e[t]=e[r],t+=1);e.length=t},t.move=function(e,t,r){e.splice(r,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},t.isNonEmptyArray=function(e){
  return Array.isArray(e)&&e.length>0},t.distinct=function(e,t){if(!t)return e.filter((t,r)=>e.indexOf(t)===r);const r=Object.create(null);return e.filter(e=>{const n=t(e);return!r[n]&&(r[n]=!0,!0)})},t.distinctES6=function(e){const t=new Set;return e.filter(e=>!t.has(e)&&(t.add(e),!0))},t.fromSet=function(e){const t=[];return e.forEach(e=>t.push(e)),t},t.uniqueFilter=function(e){const t=Object.create(null);return r=>{const n=e(r);return!t[n]&&(t[n]=!0,!0)}},t.lastIndex=function(e,t){for(let r=e.length-1;r>=0;r--){if(t(e[r]))return r}return-1},t.firstIndex=a,t.first=function(e,t,r){const n=a(e,t);return n<0?r:e[n]},t.firstOrDefault=function(e,t){return e.length>0?e[0]:t},t.commonPrefixLength=function(e,t,r=((e,t)=>e===t)){let n=0;for(let s=0,i=Math.min(e.length,t.length);s<i&&r(e[s],t[s]);s++)n++;return n},t.flatten=function(e){return[].concat(...e)},t.range=function(e,t){let r="number"==typeof t?e:0;"number"==typeof t?r=e:(r=0,t=e);const n=[]
  ;if(r<=t)for(let e=r;e<t;e++)n.push(e);else for(let e=r;e>t;e--)n.push(e);return n},t.fill=function(e,t,r=[]){for(let n=0;n<e;n++)r[n]=t;return r},t.index=function(e,t,r=(e=>e)){return e.reduce((e,n)=>{const s=t(n);return e[s]=r(n,e[s]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),()=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)}},t.arrayInsert=function(e,t,r){const n=e.slice(0,t),s=e.slice(t);return n.concat(r,s)},t.shuffle=function(e,t){let r;if("number"==typeof t){let e=t;r=()=>{const t=179426549*Math.sin(e++);return t-Math.floor(t)}}else r=Math.random;for(let t=e.length-1;t>0;t-=1){const n=Math.floor(r()*(t+1)),s=e[t];e[t]=e[n],e[n]=s}},t.pushToStart=function(e,t){const r=e.indexOf(t);r>-1&&(e.splice(r,1),e.unshift(t))},t.pushToEnd=function(e,t){const r=e.indexOf(t);r>-1&&(e.splice(r,1),e.push(t))},t.find=function(e,t){for(let r=0;r<e.length;r++){const n=e[r];if(t(n,r,e))return n}},t.mapArrayOrNot=function(e,t){return Array.isArray(e)?e.map(t):t(e)},t.asArray=function(e){
  return Array.isArray(e)?e:[e]}})),define(e[23],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let r,n=!1;return function(){return n?r:(n=!0,r=e.apply(t,arguments))}}})),define(e[24],t([0,1]),(function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0},function(e){const r={next:()=>t.FIN};e.empty=function(){return r},e.single=function(e){let r=!1;return{next:()=>r?t.FIN:(r=!0,{done:!1,value:e})}},e.fromArray=function(e,r=0,n=e.length){return{next:()=>r>=n?t.FIN:{done:!1,value:e[r++]}}},e.fromNativeIterator=function(e){return{next(){const r=e.next();return r.done?t.FIN:{done:!1,value:r.value}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,r){return{next(){const n=e.next();return n.done?t.FIN:{done:!1,value:r(n.value)}}}},e.filter=function(e,r){return{next(){for(;;){const n=e.next();if(n.done)return t.FIN;if(r(n.value))return{done:!1,value:n.value
  }}}}},e.forEach=function(e,t){for(let r=e.next();!r.done;r=e.next())t(r.value)},e.collect=function(e,t=Number.POSITIVE_INFINITY){const r=[];if(0===t)return r;let n=0;for(let s=e.next();!s.done&&(r.push(s.value),!(++n>=t));s=e.next());return r},e.concat=function(...e){let r=0;return{next(){if(r>=e.length)return t.FIN;const n=e[r].next();return n.done?(r++,this.next()):n}}},e.chain=function(e){return new n(e)}}(r=t.Iterator||(t.Iterator={}));class n{constructor(e){this.it=e}next(){return this.it.next()}map(e){return new n(r.map(this.it,e))}filter(e){return new n(r.filter(this.it,e))}}t.ChainableIterator=n,t.getSequenceIterator=function(e){return Array.isArray(e)?r.fromArray(e):e||r.empty()};class s{constructor(e,t=0,r=e.length,n=t-1){this.items=e,this.start=t,this.end=r,this.index=n}first(){return this.index=this.start,this.current()}next(){return this.index=Math.min(this.index+1,this.end),this.current()}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}}
  t.ArrayIterator=s;t.ArrayNavigator=class extends s{constructor(e,t=0,r=e.length,n=t-1){super(e,t,r,n)}current(){return super.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}parent(){return null}};class i{constructor(e,t){this.iterator=e,this.fn=t}next(){return this.fn(this.iterator.next())}}t.MappedIterator=i;t.MappedNavigator=class extends i{constructor(e,t){super(e,t),this.navigator=e}current(){return this.fn(this.navigator.current())}previous(){return this.fn(this.navigator.previous())}parent(){return this.fn(this.navigator.parent())}first(){return this.fn(this.navigator.first())}last(){return this.fn(this.navigator.last())}next(){return this.fn(this.navigator.next())}}})),define(e[10],t([0,1,23]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=!1,s="__is_disposable_tracked__";function i(e){if(n&&e&&e!==l.None)try{e[s]=!0
  }catch(e){}}function o(e){if(!n)return e;const t=new Error("Potentially leaked disposable").stack;return setTimeout(()=>{e[s]||console.log(t)},3e3),e}function a(e){return Array.isArray(e)?(e.forEach(e=>{e&&(i(e),e.dispose())}),[]):e?(i(e),e.dispose(),e):void 0}t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=a,t.combinedDisposable=function(...e){return e.forEach(i),o({dispose:()=>a(e)})},t.toDisposable=function(e){const t=o({dispose:()=>{i(t),e()}});return t};class c{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(i(this),this._isDisposed=!0,this.clear())}clear(){this._toDispose.forEach(e=>e.dispose()),this._toDispose.clear()}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return i(e),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}
  t.DisposableStore=c;class l{constructor(){this._store=new c,o(this)}dispose(){i(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}t.Disposable=l,l.None=Object.freeze({dispose(){}});t.MutableDisposable=class{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&i(e),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,i(this),this._value&&this._value.dispose(),this._value=void 0}};t.ReferenceCollection=class{constructor(){this.references=new Map}acquire(e){let t=this.references.get(e);t||(t={counter:0,object:this.createReferencedObject(e)},this.references.set(e,t));const{object:n}=t,s=r.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),this.references.delete(e))});return t.counter++,{object:n,dispose:s}}};t.ImmortalReference=class{constructor(e){this.object=e}
  dispose(){}}})),define(e[39],t([0,1,24]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);t.LinkedList=class{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const r=new n(e);if(this._first===n.Undefined)this._first=r,this._last=r;else if(t){const e=this._last;this._last=r,r.prev=e,e.next=r}else{const e=this._first;this._first=r,r.next=e,e.prev=r}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(r))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){
  if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}iterator(){let e,t=this._first;return{next:()=>t===n.Undefined?r.FIN:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}toArray(){const e=[];for(let t=this._first;t!==n.Undefined;t=t.next)e.push(t.element);return e}}})),define(e[6],t([0,1,9,23,10,39]),(function(e,t,r,n,s,i){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){function t(e){return(t,r=null,n)=>{let s,i=!1;return s=e(e=>{if(!i)return s?s.dispose():i=!0,t.call(r,e)},null,n),i&&s.dispose(),s}}function r(e,t){return a((r,n=null,s)=>e(e=>r.call(n,t(e)),null,s))}function n(e,t){return a((r,n=null,s)=>e(e=>{t(e),r.call(n,e)},null,s))}function i(e,t){
  return a((r,n=null,s)=>e(e=>t(e)&&r.call(n,e),null,s))}function o(e,t,n){let s=n;return r(e,e=>s=t(s,e))}function a(e){let t;const r=new l({onFirstListenerAdd(){t=e(r.fire,r)},onLastListenerRemove(){t.dispose()}});return r.event}function c(e,t,r=100,n=!1,s){let i,o=void 0,a=void 0,c=0;const u=new l({leakWarningThreshold:s,onFirstListenerAdd(){i=e(e=>{c++,o=t(o,e),n&&!a&&u.fire(o),clearTimeout(a),a=setTimeout(()=>{const e=o;o=void 0,a=void 0,(!n||c>1)&&u.fire(e),c=0},r)})},onLastListenerRemove(){i.dispose()}});return u.event}function u(e){let t,r=!0;return i(e,e=>{const n=r||e!==t;return r=!1,t=e,n})}e.None=()=>s.Disposable.None,e.once=t,e.map=r,e.forEach=n,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,r=null,n)=>s.combinedDisposable(...e.map(e=>e(e=>t.call(r,e),null,n)))},e.reduce=o,e.snapshot=a,e.debounce=c,e.stopwatch=function(e){const n=(new Date).getTime();return r(t(e),e=>(new Date).getTime()-n)},e.latch=u,e.buffer=function(e,t=!1,r=[]){let n=r.slice(),s=e(e=>{
  n?n.push(e):o.fire(e)});const i=()=>{n&&n.forEach(e=>o.fire(e)),n=null},o=new l({onFirstListenerAdd(){s||(s=e(e=>o.fire(e)))},onFirstListenerDidAdd(){n&&(t?setTimeout(i):i())},onLastListenerRemove(){s&&s.dispose(),s=null}});return o.event};class h{constructor(e){this.event=e}map(e){return new h(r(this.event,e))}forEach(e){return new h(n(this.event,e))}filter(e){return new h(i(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(u(this.event))}debounce(e,t=100,r=!1,n){return new h(c(this.event,e,t,r,n))}on(e,t,r){return this.event(e,t,r)}once(e,r,n){return t(this.event)(e,r,n)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,r=(e=>e)){const n=(...e)=>s.fire(r(...e)),s=new l({onFirstListenerAdd:()=>e.on(t,n),onLastListenerRemove:()=>e.removeListener(t,n)});return s.event},e.fromDOMEventEmitter=function(e,t,r=(e=>e)){const n=(...e)=>s.fire(r(...e)),s=new l({onFirstListenerAdd:()=>e.addEventListener(t,n),onLastListenerRemove:()=>e.removeEventListener(t,n)})
  ;return s.event},e.fromPromise=function(e){const t=new l;let r=!1;return e.then(void 0,()=>null).then(()=>{r?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),r=!0,t.event},e.toPromise=function(e){return new Promise(r=>t(e)(r))}}(o=t.Event||(t.Event={}));let a=-1;t.setGlobalLeakWarningThreshold=function(e){const t=a;return a=e,{dispose(){a=t}}};class c{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){let t=a;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const r=(new Error).stack.split("\n").slice(3).join("\n"),n=this._stacks.get(r)||0;if(this._stacks.set(r,n+1),this._warnCountdown-=1,this._warnCountdown<=0){let r;this._warnCountdown=.5*t;let n=0;this._stacks.forEach((e,t)=>{(!r||n<e)&&(r=t,n=e)}),
  console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${n}):`),console.warn(r)}return()=>{const e=this._stacks.get(r)||0;this._stacks.set(r,e-1)}}}class l{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=a>0?new c(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=(e,t,r)=>{this._listeners||(this._listeners=new i.LinkedList);const n=this._listeners.isEmpty();n&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);let a,c;return n&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),this._leakageMon&&(a=this._leakageMon.check(this._listeners.size)),c={dispose:()=>{if(a&&a(),c.dispose=l._noop,!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){
  this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},r instanceof s.DisposableStore?r.add(c):Array.isArray(r)&&r.push(c),c}),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new i.LinkedList);for(let t=this._listeners.iterator(),r=t.next();!r.done;r=t.next())this._deliveryQueue.push([r.value,e]);for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}t.Emitter=l,l._noop=function(){};t.PauseableEmitter=class extends l{constructor(e){super(e),this._isPaused=0,this._eventQueue=new i.LinkedList,this._mergeFn=e&&e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=this._eventQueue.toArray();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))}};t.AsyncEmitter=class extends l{async fireAsync(e,t,n){if(this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new i.LinkedList);for(let t=this._listeners.iterator(),r=t.next();!r.done;r=t.next())this._asyncDeliveryQueue.push([r.value,e]);for(;this._asyncDeliveryQueue.size>0&&!t.isCancellationRequested;){const[e,t]=this._asyncDeliveryQueue.shift(),s=[],i=Object.assign(Object.assign({},t),{waitUntil:t=>{if(Object.isFrozen(s))throw new Error("waitUntil can NOT be called asynchronous");n&&(t=n(t,"function"==typeof e?e:e[0])),s.push(t)}});try{"function"==typeof e?e.call(void 0,i):e[0].call(e[1],i)}catch(e){r.onUnexpectedError(e);continue}Object.freeze(s),await Promise.all(s).catch(e=>r.onUnexpectedError(e))}}}};t.EventMultiplexer=class{constructor(){this.hasListeners=!1,this.events=[],
  this.emitter=new l({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return s.toDisposable(n.once(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}};t.EventBufferer=class{constructor(){this.buffers=[]}wrapEvent(e){return(t,r,n)=>e(e=>{const n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(r,e)):t.call(r,e)},void 0,n)}bufferEvents(e){const t=[];this.buffers.push(t);const r=e();return this.buffers.pop(),t.forEach(e=>e()),r}};t.Relay=class{constructor(){this.listening=!1,
  this.inputEvent=o.None,this.inputEventListener=s.Disposable.None,this.emitter=new l({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()}}})),define(e[17],t([0,1,6]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=Object.freeze((function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof i||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,
  onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n})}(s=t.CancellationToken||(t.CancellationToken={}));class i{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?n:(this._emitter||(this._emitter=new r.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}t.CancellationTokenSource=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new i),this._token}cancel(){this._token?this._token instanceof i&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),
  this._token?this._token instanceof i&&this._token.dispose():this._token=s.None}}})),define(e[11],t([0,1,17,9,6,10]),(function(e,t,r,n,s,i){"use strict";function o(e){return e&&"function"==typeof e.then}function a(e){const t=new r.CancellationTokenSource,s=e(t.token),i=new Promise((e,r)=>{t.token.onCancellationRequested(()=>{r(n.canceled())}),Promise.resolve(s).then(r=>{t.dispose(),e(r)},e=>{t.dispose(),r(e)})});return new class{cancel(){t.cancel()}then(e,t){return i.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return i.finally(e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=o,t.createCancelablePromise=a,t.raceCancellation=function(e,t,r){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(r)))])},t.asPromise=function(e){return new Promise((t,r)=>{const n=e();o(n)?n.then(t,r):t(n)})};class c{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,
  !this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}t.Throttler=c;t.Sequencer=class{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}};class l{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{this.completionPromise=null,this.doResolve=null;const e=this.task;return this.task=null,e()})),this.timeout=setTimeout(()=>{this.timeout=null,
  this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject(n.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=l;t.ThrottledDelayer=class{constructor(e){this.delayer=new l(e),this.throttler=new c}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}};function u(e,t){return t?new Promise((r,s)=>{const i=setTimeout(r,e);t.onCancellationRequested(()=>{clearTimeout(i),s(n.canceled())})}):a(t=>u(e,t))}t.Barrier=class{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}},t.timeout=u,t.disposableTimeout=function(e,t=0){
  const r=setTimeout(e,t);return i.toDisposable(()=>clearTimeout(r))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=function(e){const t=[];let r=0;const n=e.length;return Promise.resolve(null).then((function s(i){null!=i&&t.push(i);const o=r<n?e[r++]():null;return o?o.then(s):Promise.resolve(t)}))},t.first=function(e,t=(e=>!!e),r=null){let n=0;const s=e.length,i=()=>{if(n>=s)return Promise.resolve(r);const o=e[n++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):i())};return i()};class h{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new s.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,r)=>{this.outstandingPromises.push({factory:e,c:t,e:r}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++
  ;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}t.Limiter=h;class f extends h{constructor(){super(1)}}t.Queue=f;t.ResourceQueue=class{constructor(){this.queues=new Map}queueFor(e){const t=e.toString();if(!this.queues.has(t)){const e=new f;e.onFinished(()=>{e.dispose(),this.queues.delete(t)}),this.queues.set(t,e)}return this.queues.get(t)}};t.TimeoutTimer=class{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}};t.IntervalTimer=class{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){
  -1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}};class d{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}t.RunOnceScheduler=d;t.RunOnceWorker=class extends d{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){const e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,
  timeRemaining:()=>15});t.runWhenIdle=t=>{const r=setTimeout(()=>t(e));let n=!1;return{dispose(){n||(n=!0,clearTimeout(r))}}}}else t.runWhenIdle=(e,t)=>{const r=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(r))}}}}();t.IdleValue=class{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=t.runWhenIdle(()=>this._executor())}dispose(){this._handle.dispose()}getValue(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}},t.retry=async function(e,t,r){let n;for(let s=0;s<r;s++)try{return await e()}catch(e){n=e,await u(t)}throw n}})),define(e[3],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=!1,n=!1,s=!1,i=!1,o=!1,a=!1,c=void 0,l="en",u=void 0,h=void 0
  ;const f="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||f){if("object"==typeof process){r="win32"===process.platform,n="darwin"===process.platform,s="linux"===process.platform,c="en",l="en";const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),r=t.availableLanguages["*"];c=t.locale,l=r||"en",u=t._translationsConfigFile}catch(e){}i=!0}}else h=navigator.userAgent,r=h.indexOf("Windows")>=0,n=h.indexOf("Macintosh")>=0,a=h.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,s=h.indexOf("Linux")>=0,o=!0,l=c=navigator.language;!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(t.Platform||(t.Platform={})),t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};let d=0;n?d=1:r?d=3:s&&(d=2),t.isWindows=r,t.isMacintosh=n,t.isLinux=s,t.isNative=i,t.isWeb=o,t.isIOS=a,
  t.platform=d,t.userAgent=h,t.isRootUser=function(){return i&&!r&&0===process.getuid()},t.language=l,function(e){e.value=function(){return t.language},e.isDefaultVariant=function(){return 2===t.language.length?"en"===t.language:t.language.length>=3&&("e"===t.language[0]&&"n"===t.language[1]&&"-"===t.language[2])},e.isDefault=function(){return"en"===t.language}}(t.Language||(t.Language={})),t.locale=c,t.translationsConfigFile=u;const p="object"==typeof self?self:"object"==typeof global?global:{};t.globals=p,t.setImmediate=function(){if(t.globals.setImmediate)return t.globals.setImmediate.bind(t.globals);if("function"==typeof t.globals.postMessage&&!t.globals.importScripts){let e=[];t.globals.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n.id===t.data.vscodeSetImmediateId)return e.splice(r,1),void n.callback()}});let r=0;return n=>{const s=++r;e.push({id:s,callback:n}),t.globals.postMessage({vscodeSetImmediateId:s},"*")}}
  if("undefined"!=typeof process&&"function"==typeof process.nextTick)return process.nextTick.bind(process);const e=Promise.resolve();return t=>e.then(t)}(),function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=n?2:r?1:3})),define(e[25],t([0,1,3]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"==typeof process?{cwd:()=>"/",env:Object.create(null),get platform(){return r.isWindows?"win32":r.isMacintosh?"darwin":"linux"},nextTick:e=>r.setImmediate(e)}:process;t.cwd=n.cwd,t.env=n.env,t.platform=n.platform,t.nextTick=n.nextTick})),define(e[4],t([0,1,25]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=65,s=97,i=90,o=122,a=46,c=47,l=92;class u extends Error{constructor(e,t,r){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const s=-1!==e.indexOf(".")?"property":"argument"
  ;let i=`The "${e}" ${s} ${n} of type ${t}`;super(i+=`. Received type ${typeof r}`),this.code="ERR_INVALID_ARG_TYPE"}}function h(e,t){if("string"!=typeof e)throw new u(t,"string",e)}function f(e){return e===c||e===l}function d(e){return e===c}function p(e){return e>=n&&e<=i||e>=s&&e<=o}function m(e,t,r,n){let s,i="",o=0,l=-1,u=0;for(let h=0;h<=e.length;++h){if(h<e.length)s=e.charCodeAt(h);else{if(n(s))break;s=c}if(n(s)){if(l===h-1||1===u);else if(l!==h-1&&2===u){if(i.length<2||2!==o||i.charCodeAt(i.length-1)!==a||i.charCodeAt(i.length-2)!==a){if(i.length>2){const e=i.lastIndexOf(r);-1===e?(i="",o=0):o=(i=i.slice(0,e)).length-1-i.lastIndexOf(r),l=h,u=0;continue}if(2===i.length||1===i.length){i="",o=0,l=h,u=0;continue}}t&&(i.length>0?i+=`${r}..`:i="..",o=2)}else i.length>0?i+=r+e.slice(l+1,h):i=e.slice(l+1,h),o=h-l-1;l=h,u=0}else s===a&&-1!==u?++u:u=-1}return i}function g(e,t){const r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}t.win32={resolve(...e){let t="",n="",s=!1
  ;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0?o=e[i]:t?void 0!==(o=r.env["="+t]||r.cwd())&&o.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(o=t+"\\"):o=r.cwd(),h(o,"path"),0===o.length)continue;const a=o.length;let c=0,l="",u=!1;const d=o.charCodeAt(0);if(a>1)if(f(d))if(u=!0,f(o.charCodeAt(1))){let e=2,t=e;for(;e<a&&!f(o.charCodeAt(e));++e);if(e<a&&e!==t){const r=o.slice(t,e);for(t=e;e<a&&f(o.charCodeAt(e));++e);if(e<a&&e!==t){for(t=e;e<a&&!f(o.charCodeAt(e));++e);e===a?(l="\\\\"+r+"\\"+o.slice(t),c=e):e!==t&&(l="\\\\"+r+"\\"+o.slice(t,e),c=e)}}}else c=1;else p(d)&&58===o.charCodeAt(1)&&(l=o.slice(0,2),c=2,a>2&&f(o.charCodeAt(2))&&(u=!0,c=3));else f(d)&&(c=1,u=!0);if(!(l.length>0&&t.length>0&&l.toLowerCase()!==t.toLowerCase())&&(0===t.length&&l.length>0&&(t=l),s||(n=o.slice(c)+"\\"+n,s=u),t.length>0&&s))break}return t+(s?"\\":"")+(n=m(n,!s,"\\",f))||"."},normalize(e){h(e,"path");const t=e.length;if(0===t)return".";let r,n=0,s=!1;const i=e.charCodeAt(0);if(t>1)if(f(i))if(s=!0,f(e.charCodeAt(1))){
  let s=2,i=s;for(;s<t&&!f(e.charCodeAt(s));++s);if(s<t&&s!==i){const o=e.slice(i,s);for(i=s;s<t&&f(e.charCodeAt(s));++s);if(s<t&&s!==i){for(i=s;s<t&&!f(e.charCodeAt(s));++s);if(s===t)return"\\\\"+o+"\\"+e.slice(i)+"\\";s!==i&&(r="\\\\"+o+"\\"+e.slice(i,s),n=s)}}}else n=1;else p(i)&&58===e.charCodeAt(1)&&(r=e.slice(0,2),n=2,t>2&&f(e.charCodeAt(2))&&(s=!0,n=3));else if(f(i))return"\\";let o;return 0!==(o=n<t?m(e.slice(n),!s,"\\",f):"").length||s||(o="."),o.length>0&&f(e.charCodeAt(t-1))&&(o+="\\"),void 0===r?s?o.length>0?"\\"+o:"\\":o.length>0?o:"":s?o.length>0?r+"\\"+o:r+"\\":o.length>0?r+o:r},isAbsolute(e){h(e,"path");const t=e.length;if(0===t)return!1;const r=e.charCodeAt(0);return!!f(r)||!!(p(r)&&t>2&&58===e.charCodeAt(1)&&f(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let r,n;for(let t=0;t<e.length;++t){const s=e[t];h(s,"path"),s.length>0&&(void 0===r?r=n=s:r+="\\"+s)}if(void 0===r)return".";let s=!0,i=0;if("string"==typeof n&&f(n.charCodeAt(0))){++i;const e=n.length
  ;e>1&&f(n.charCodeAt(1))&&(++i,e>2&&(f(n.charCodeAt(2))?++i:s=!1))}if(s){for(;i<r.length&&f(r.charCodeAt(i));++i);i>=2&&(r="\\"+r.slice(i))}return t.win32.normalize(r)},relative(e,r){if(h(e,"from"),h(r,"to"),e===r)return"";const n=t.win32.resolve(e),s=t.win32.resolve(r);if(n===s)return"";if((e=n.toLowerCase())===(r=s.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===l;++i);let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===l;--o);const a=o-i;let c=0;for(;c<r.length&&r.charCodeAt(c)===l;++c);let u=r.length;for(;u-1>c&&r.charCodeAt(u-1)===l;--u);const f=u-c,d=a<f?a:f;let p=-1,m=0;for(;m<=d;++m){if(m===d){if(f>d){if(r.charCodeAt(c+m)===l)return s.slice(c+m+1);if(2===m)return s.slice(c+m)}a>d&&(e.charCodeAt(i+m)===l?p=m:2===m&&(p=3));break}const t=e.charCodeAt(i+m);if(t!==r.charCodeAt(c+m))break;t===l&&(p=m)}if(m!==d&&-1===p)return s;let g="";for(-1===p&&(p=0),m=i+p+1;m<=o;++m)m!==o&&e.charCodeAt(m)!==l||(0===g.length?g+="..":g+="\\..");return g.length>0?g+s.slice(c+p,u):(c+=p,
  s.charCodeAt(c)===l&&++c,s.slice(c,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const r=t.win32.resolve(e);if(r.length>=3)if(r.charCodeAt(0)===l){if(r.charCodeAt(1)===l){const e=r.charCodeAt(2);if(63!==e&&e!==a)return"\\\\?\\UNC\\"+r.slice(2)}}else if(p(r.charCodeAt(0))&&58===r.charCodeAt(1)&&r.charCodeAt(2)===l)return"\\\\?\\"+r;return e},dirname(e){h(e,"path");const t=e.length;if(0===t)return".";let r=-1,n=-1,s=!0,i=0;const o=e.charCodeAt(0);if(t>1)if(f(o)){if(r=i=1,f(e.charCodeAt(1))){let n=2,s=n;for(;n<t&&!f(e.charCodeAt(n));++n);if(n<t&&n!==s){for(s=n;n<t&&f(e.charCodeAt(n));++n);if(n<t&&n!==s){for(s=n;n<t&&!f(e.charCodeAt(n));++n);if(n===t)return e;n!==s&&(r=i=n+1)}}}}else p(o)&&58===e.charCodeAt(1)&&(r=i=2,t>2&&f(e.charCodeAt(2))&&(r=i=3));else if(f(o))return e;for(let r=t-1;r>=i;--r)if(f(e.charCodeAt(r))){if(!s){n=r;break}}else s=!1;if(-1===n){if(-1===r)return".";n=r}return e.slice(0,n)},basename(e,t){void 0!==t&&h(t,"ext"),h(e,"path");let r,n=0,s=-1,i=!0
  ;if(e.length>=2){p(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let o=t.length-1,a=-1;for(r=e.length-1;r>=n;--r){const c=e.charCodeAt(r);if(f(c)){if(!i){n=r+1;break}}else-1===a&&(i=!1,a=r+1),o>=0&&(c===t.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=n;--r)if(f(e.charCodeAt(r))){if(!i){n=r+1;break}}else-1===s&&(i=!1,s=r+1);return-1===s?"":e.slice(n,s)},extname(e){h(e,"path");let t=0,r=-1,n=0,s=-1,i=!0,o=0;e.length>=2&&58===e.charCodeAt(1)&&p(e.charCodeAt(0))&&(t=n=2);for(let c=e.length-1;c>=t;--c){const t=e.charCodeAt(c);if(f(t)){if(!i){n=c+1;break}}else-1===s&&(i=!1,s=c+1),t===a?-1===r?r=c:1!==o&&(o=1):-1!==r&&(o=-1)}return-1===r||-1===s||0===o||1===o&&r===s-1&&r===n+1?"":e.slice(r,s)},format(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return g("\\",e)},parse(e){h(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""}
  ;if(0===e.length)return t;const r=e.length;let n=0,s=e.charCodeAt(0);if(r>1){if(f(s)){if(n=1,f(e.charCodeAt(1))){let t=2,s=t;for(;t<r&&!f(e.charCodeAt(t));++t);if(t<r&&t!==s){for(s=t;t<r&&f(e.charCodeAt(t));++t);if(t<r&&t!==s){for(s=t;t<r&&!f(e.charCodeAt(t));++t);t===r?n=t:t!==s&&(n=t+1)}}}}else if(p(s)&&58===e.charCodeAt(1)){if(n=2,!(r>2))return t.root=t.dir=e,t;if(f(e.charCodeAt(2))){if(3===r)return t.root=t.dir=e,t;n=3}}}else if(f(s))return t.root=t.dir=e,t;n>0&&(t.root=e.slice(0,n));let i=-1,o=n,c=-1,l=!0,u=e.length-1,d=0;for(;u>=n;--u)if(f(s=e.charCodeAt(u))){if(!l){o=u+1;break}}else-1===c&&(l=!1,c=u+1),s===a?-1===i?i=u:1!==d&&(d=1):-1!==i&&(d=-1);return-1===i||-1===c||0===d||1===d&&i===c-1&&i===o+1?-1!==c&&(t.base=t.name=e.slice(o,c)):(t.name=e.slice(o,i),t.base=e.slice(o,c),t.ext=e.slice(i,c)),t.dir=o>0&&o!==n?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){let i;h(i=s>=0?e[s]:r.cwd(),"path"),
  0!==i.length&&(t=i+"/"+t,n=i.charCodeAt(0)===c)}return t=m(t,!n,"/",d),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(h(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,r=e.charCodeAt(e.length-1)===c;return 0!==(e=m(e,!t,"/",d)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(h(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let r;for(let t=0;t<e.length;++t){const e=arguments[t];h(e,"path"),e.length>0&&(void 0===r?r=e:r+="/"+e)}return void 0===r?".":t.posix.normalize(r)},relative(e,r){if(h(e,"from"),h(r,"to"),e===r)return"";if((e=t.posix.resolve(e))===(r=t.posix.resolve(r)))return"";let n=1;for(;n<e.length&&e.charCodeAt(n)===c;++n);const s=e.length,i=s-n;let o=1;for(;o<r.length&&r.charCodeAt(o)===c;++o);const a=r.length-o,l=i<a?i:a;let u=-1,f=0;for(;f<=l;++f){if(f===l){if(a>l){if(r.charCodeAt(o+f)===c)return r.slice(o+f+1);if(0===f)return r.slice(o+f)}else i>l&&(e.charCodeAt(n+f)===c?u=f:0===f&&(u=0));break}const t=e.charCodeAt(n+f)
  ;if(t!==r.charCodeAt(o+f))break;t===c&&(u=f)}let d="";for(f=n+u+1;f<=s;++f)f!==s&&e.charCodeAt(f)!==c||(0===d.length?d+="..":d+="/..");return d.length>0?d+r.slice(o+u):(o+=u,r.charCodeAt(o)===c&&++o,r.slice(o))},toNamespacedPath:e=>e,dirname(e){if(h(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let r=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===c){if(!n){r=t;break}}else n=!1;return-1===r?t?"/":".":t&&1===r?"//":e.slice(0,r)},basename(e,t){void 0!==t&&h(t,"ext"),h(e,"path");let r,n=0,s=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let o=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){const l=e.charCodeAt(r);if(l===c){if(!i){n=r+1;break}}else-1===a&&(i=!1,a=r+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=a))}return n===s?s=a:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===c){if(!i){n=r+1;break}}else-1===s&&(i=!1,s=r+1);return-1===s?"":e.slice(n,s)},extname(e){h(e,"path");let t=-1,r=0,n=-1,s=!0,i=0
  ;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l!==c)-1===n&&(s=!1,n=o+1),l===a?-1===t?t=o:1!==i&&(i=1):-1!==t&&(i=-1);else if(!s){r=o+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)},format(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return g("/",e)},parse(e){h(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const r=e.charCodeAt(0)===c;let n;r?(t.root="/",n=1):n=0;let s=-1,i=0,o=-1,l=!0,u=e.length-1,f=0;for(;u>=n;--u){const t=e.charCodeAt(u);if(t!==c)-1===o&&(l=!1,o=u+1),t===a?-1===s?s=u:1!==f&&(f=1):-1!==s&&(f=-1);else if(!l){i=u+1;break}}return-1===s||-1===o||0===f||1===f&&s===o-1&&s===i+1?-1!==o&&(t.base=t.name=0===i&&r?e.slice(1,o):e.slice(i,o)):(0===i&&r?(t.name=e.slice(1,s),t.base=e.slice(1,o)):(t.name=e.slice(i,s),t.base=e.slice(i,o)),t.ext=e.slice(s,o)),i>0?t.dir=e.slice(0,i-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,
  t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===r.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===r.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===r.platform?t.win32.join:t.posix.join,t.resolve="win32"===r.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===r.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===r.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===r.platform?t.win32.basename:t.posix.basename,t.extname="win32"===r.platform?t.win32.extname:t.posix.extname,t.format="win32"===r.platform?t.win32.format:t.posix.format,t.parse="win32"===r.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===r.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===r.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===r.platform?t.win32.delimiter:t.posix.delimiter})),define(e[26],t([0,1,3]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
  ;const n=r.globals.performance&&"function"==typeof r.globals.performance.now;class s{constructor(e){this._highResolution=n&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new s(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?r.globals.performance.now():(new Date).getTime()}}t.StopWatch=s})),define(e[40],t([0,1]),(function(e,t){"use strict";function r(e){return new n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStream=function(e){const t=e;return t&&[t.on,t.pause,t.resume,t.destroy].every(e=>"function"==typeof e)},t.newWriteableStream=r;class n{constructor(e){this.reducer=e,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]}}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),
  this.flowErrors(),this.flowEnd())}write(e){this.state.destroyed||(this.state.flowing?this.listeners.data.forEach(t=>t(e)):this.buffer.data.push(e))}error(e){this.state.destroyed||(this.state.flowing?this.listeners.error.forEach(t=>t(e)):this.buffer.error.push(e))}end(e){this.state.destroyed||(e instanceof Error?this.error(e):e&&this.write(e),this.state.flowing?(this.listeners.end.forEach(e=>e()),this.destroy()):this.state.ended=!0)}on(e,t){if(!this.state.destroyed)switch(e){case"data":this.listeners.data.push(t),this.resume();break;case"end":this.listeners.end.push(t),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(t),this.state.flowing&&this.flowErrors()}}flowData(){if(this.buffer.data.length>0){const e=this.reducer(this.buffer.data);this.listeners.data.forEach(t=>t(e)),this.buffer.data.length=0}}flowErrors(){if(this.listeners.error.length>0){for(const e of this.buffer.error)this.listeners.error.forEach(t=>t(e));this.buffer.error.length=0}}flowEnd(){
  return!!this.state.ended&&(this.listeners.end.forEach(e=>e()),this.listeners.end.length>0)}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0)}}t.consumeReadable=function(e,t){const r=[];let n;for(;null!==(n=e.read());)r.push(n);return t(r)},t.consumeReadableWithLimit=function(e,t,r){const n=[];let s=void 0;for(;null!==(s=e.read())&&n.length<r;)n.push(s);return null===s&&n.length>0?t(n):{read:()=>{if(n.length>0)return n.shift();if(void 0!==s){const e=s;return s=void 0,e}return e.read()}}},t.consumeStream=function(e,t){return new Promise((r,n)=>{const s=[];e.on("data",e=>s.push(e)),e.on("error",e=>n(e)),e.on("end",()=>r(t(s)))})},t.consumeStreamWithLimit=function(e,t,n){return new Promise((s,i)=>{const o=[];let a=void 0;e.on("data",e=>{if(!a&&o.length===n){for(a=r(t);o.length;)a.write(o.shift());return a.write(e),s(a)}a?a.write(e):o.push(e)}),
  e.on("error",e=>{if(!a)return i(e);a.error(e)}),e.on("end",()=>{if(!a)return s(t(o));for(;o.length;)a.write(o.shift());a.end()})})},t.toStream=function(e,t){const n=r(t);return n.end(e),n},t.toReadable=function(e){let t=!1;return{read:()=>t?null:(t=!0,e)}},t.transform=function(e,t,n){const s=r(n);return e.on("data",e=>s.write(t.data(e))),e.on("end",()=>s.end()),e.on("error",e=>s.error(t.error?t.error(e):e)),s}})),define(e[2],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,r="0"){const n=""+e,s=[n];for(let e=n.length;e<t;e++)s.push(r);return s.reverse().join("")};const r=/{(\d+)}/g;function n(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function s(e,t){if(!e||!t)return e;const r=t.length;if(0===r||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=r;return e.substring(n)}function i(e,t){if(!e||!t)return e;const r=t.length,n=e.length
  ;if(0===r||0===n)return e;let s=n,i=-1;for(;-1!==(i=e.lastIndexOf(t,s-1))&&i+r===s;){if(0===i)return"";s=i}return e.substring(0,s)}function o(e,t){return e<t?-1:e>t?1:0}function a(e){return e>=97&&e<=122}function c(e){return e>=65&&e<=90}function l(e){return a(e)||c(e)}function u(e,t,r=e.length){for(let n=0;n<r;n++){const r=e.charCodeAt(n),s=t.charCodeAt(n);if(r!==s)if(l(r)&&l(s)){const e=Math.abs(r-s);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(r).toLowerCase()!==String.fromCharCode(s).toLowerCase())return!1}return!0}function h(e,t,r,n,s,i){for(;t<r&&s<i;){if(e[t]!==n[s])return!1;t+=1,s+=1}return!0}function f(e){return 55296<=e&&e<=56319}function d(e){return 56320<=e&&e<=57343}function p(e,t,r){const n=e.charCodeAt(r);if(f(n)&&r+1<t){const t=e.charCodeAt(r+1);if(d(t))return t-56320+(n-55296<<10)+65536}return n}function m(e,t){const r=e.charCodeAt(t-1);if(d(r)&&t>1){const n=e.charCodeAt(t-2);if(f(n))return r-56320+(n-55296<<10)+65536}return r}function g(e,t){
  const r=S.getInstance(),n=e.length,s=t,i=p(e,n,t),o=r.getGraphemeBreakType(i);t+=i>=65536?2:1;let a=o;for(;t<n;){const s=p(e,n,t),i=r.getGraphemeBreakType(s);if(P(a,i))break;t+=s>=65536?2:1,a=i}const c=t;for(t=s,a=o;t>0;){const n=m(e,t),s=r.getGraphemeBreakType(n);if(P(s,a))break;t-=n>=65536?2:1,a=s}return[t,c]}t.format=function(e,...t){return 0===t.length?e:e.replace(r,(function(e,r){const n=parseInt(r,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))},t.escape=function(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}}))},t.escapeRegExpCharacters=n,t.trim=function(e,t=" "){return i(s(e,t),t)},t.ltrim=s,t.rtrim=i,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(let r=0;r<t.length;r++)if(e[r]!==t[r])return!1
  ;return!0},t.endsWith=function(e,t){const r=e.length-t.length;return r>0?e.indexOf(t,r)===r:0===r&&e===t},t.createRegExp=function(e,t,r={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let s="";return r.global&&(s+="g"),r.matchCase||(s+="i"),r.multiline&&(s+="m"),r.unicode&&(s+="u"),new RegExp(e,s)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(let t=0,r=e.length;t<r;t++){const r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1},t.getLeadingWhitespace=function(e,t=0,r=e.length){for(let n=t;n<r;n++){const r=e.charCodeAt(n)
  ;if(32!==r&&9!==r)return e.substring(t,n)}return e.substring(t,r)},t.lastNonWhitespaceIndex=function(e,t=e.length-1){for(let r=t;r>=0;r--){const t=e.charCodeAt(r);if(32!==t&&9!==t)return r}return-1},t.compare=o,t.compareIgnoreCase=function(e,t){const r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let r=e.charCodeAt(n),s=t.charCodeAt(n);if(r===s)continue;c(r)&&(r+=32),c(s)&&(s+=32);const i=r-s;if(0!==i)return a(r)&&a(s)?i:o(e.toLowerCase(),t.toLowerCase())}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=a,t.isUpperAsciiLetter=c,t.equalsIgnoreCase=function(e,t){return e.length===t.length&&u(e,t)},t.startsWithIgnoreCase=function(e,t){const r=t.length;return!(t.length>e.length)&&u(e,t,r)},t.commonPrefixLength=function(e,t){let r,n=Math.min(e.length,t.length);for(r=0;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n},t.commonSuffixLength=function(e,t){let r,n=Math.min(e.length,t.length);const s=e.length-1,i=t.length-1
  ;for(r=0;r<n;r++)if(e.charCodeAt(s-r)!==t.charCodeAt(i-r))return r;return n},t.overlap=function(e,t){const r=e.length;let n=t.length,s=r-n;if(0===s)return e===t?r:0;for(s<0&&(n+=s,s=0);s<r&&n>0;){if(h(e,s,r,t,0,n))return n;n-=1,s+=1}return 0},t.isHighSurrogate=f,t.isLowSurrogate=d,t.getNextCodePoint=p,t.nextCharLength=function(e,t){const r=S.getInstance(),n=t,s=e.length,i=p(e,s,t);t+=i>=65536?2:1;let o=r.getGraphemeBreakType(i);for(;t<s;){const n=p(e,s,t),i=r.getGraphemeBreakType(n);if(P(o,i))break;t+=n>=65536?2:1,o=i}return t-n},t.prevCharLength=function(e,t){const r=S.getInstance(),n=t,s=m(e,t);t-=s>=65536?2:1;let i=r.getGraphemeBreakType(s);for(;t>0;){const n=m(e,t),s=r.getGraphemeBreakType(n);if(P(s,i))break;t-=n>=65536?2:1,i=s}return n-t},t.getCharContainingOffset=function(e,t){return t>0&&d(e.charCodeAt(t))?g(e,t-1):g(e,t)},t.encodeUTF8=function(e){const t=e.length;let r=0,n=0;for(;n<t;){const s=p(e,t,n);n+=s>=65536?2:1,r+=s<128?1:s<2048?2:s<65536?3:4}const s=new Uint8Array(r);n=0;let i=0;for(;n<t;){
  const r=p(e,t,n);n+=r>=65536?2:1,r<128?s[i++]=r:r<2048?(s[i++]=192|(1984&r)>>>6,s[i++]=128|(63&r)>>>0):r<65536?(s[i++]=224|(61440&r)>>>12,s[i++]=128|(4032&r)>>>6,s[i++]=128|(63&r)>>>0):(s[i++]=240|(1835008&r)>>>18,s[i++]=128|(258048&r)>>>12,s[i++]=128|(4032&r)>>>6,s[i++]=128|(63&r)>>>0)}return s},t.decodeUTF8=function(e){const t=e.byteLength,r=[];let n=0;for(;n<t;){const s=e[n];let i;if((i=s>=240&&n+3<t?(7&e[n++])<<18>>>0|(63&e[n++])<<12>>>0|(63&e[n++])<<6>>>0|(63&e[n++])<<0>>>0:s>=224&&n+2<t?(15&e[n++])<<12>>>0|(63&e[n++])<<6>>>0|(63&e[n++])<<0>>>0:s>=192&&n+1<t?(31&e[n++])<<6>>>0|(63&e[n++])<<0>>>0:e[n++])>=0&&i<=55295||i>=57344&&i<=65535)r.push(String.fromCharCode(i));else if(i>=65536&&i<=1114111){const e=i-65536,t=55296+((1047552&e)>>>10),n=56320+((1023&e)>>>0);r.push(String.fromCharCode(t)),r.push(String.fromCharCode(n))}else r.push(String.fromCharCode(65533))}return r.join("")}
  ;const v=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return v.test(e)};const w=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;t.containsEmoji=function(e){return w.test(e)};const y=/^[\t\n\r\x20-\x7E]*$/;function b(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}t.isBasicASCII=function(e){return y.test(e)},t.containsFullWidthCharacter=function(e){
  for(let t=0,r=e.length;t<r;t++)if(b(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=b,t.isEmojiImprecise=function(e){return e>=127462&&e<=127487||e>=9728&&e<=10175||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129651||e>=129656&&e<=129666||e>=129680&&e<=129685},t.lcut=function(e,t){if(e.length<t)return e;const r=/\b/g;let n=0;for(;r.test(e)&&!(e.length-r.lastIndex<t);)n=r.lastIndex,r.lastIndex+=1;return e.substring(n).replace(/^\s/,"")};const _=/\x1B\x5B[12]?K/g,x=/\x1b\[\d+m/g,C=/\x1b\[0?m/g;function E(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function P(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(_,"")).replace(x,"")).replace(C,"")),e},
  t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};{const e=/[\u0300-\u036f]/g;return function(t){return t.normalize("NFD").replace(e,"")}}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=E,t.stripUTF8BOM=function(e){return E(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r},t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;const r=t.length,n=e.toLowerCase();let s=0,i=-1;for(;s<r;){const e=n.indexOf(t[s],i+1);if(e<0)return!1;i=e,s++}return!0},t.containsUppercaseCharacter=function(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.getNLines=function(e,t=1){if(0===t)return"";let r=-1;do{r=e.indexOf("\n",r+1),t--}while(t>0&&r>=0);return r>=0?e.substr(0,r):e},t.singleLetterHash=function(e){
  return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)},t.getGraphemeBreakType=function(e){return S.getInstance().getGraphemeBreakType(e)},t.breakBetweenGraphemeBreakType=P,function(e){e[e.Other=0]="Other",e[e.Prepend=1]="Prepend",e[e.CR=2]="CR",e[e.LF=3]="LF",e[e.Control=4]="Control",e[e.Extend=5]="Extend",e[e.Regional_Indicator=6]="Regional_Indicator",e[e.SpacingMark=7]="SpacingMark",e[e.L=8]="L",e[e.V=9]="V",e[e.T=10]="T",e[e.LV=11]="LV",e[e.LVT=12]="LVT",e[e.ZWJ=13]="ZWJ",e[e.Extended_Pictographic=14]="Extended_Pictographic"}(t.GraphemeBreakType||(t.GraphemeBreakType={}));class S{constructor(){
  this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")
  }static getInstance(){return S._INSTANCE||(S._INSTANCE=new S),S._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,r=t.length/3;let n=1;for(;n<=r;)if(e<t[3*n])n*=2;else{if(!(e>t[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}S._INSTANCE=null})),define(e[27],t([0,1,2,40]),(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s="undefined"!=typeof Buffer,i="undefined"!=typeof TextEncoder,o="undefined"!=typeof TextDecoder;let a,c;class l{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static alloc(e){return new l(s?Buffer.allocUnsafe(e):new Uint8Array(e))}static wrap(e){return s&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new l(e)}static fromString(e){return s?new l(Buffer.from(e)):i?(a||(a=new TextEncoder),new l(a.encode(e))):new l(r.encodeUTF8(e))}static concat(e,t){if(void 0===t){t=0;for(let r=0,n=e.length;r<n;r++)t+=e[r].byteLength}const r=l.alloc(t);let n=0
  ;for(let t=0,s=e.length;t<s;t++){const s=e[t];r.set(s,n),n+=s.byteLength}return r}toString(){return s?this.buffer.toString():o?(c||(c=new TextDecoder),c.decode(this.buffer)):r.decodeUTF8(this.buffer)}slice(e,t){return new l(this.buffer.subarray(e,t))}set(e,t){this.buffer.set(e.buffer,t)}readUInt32BE(e){return u(this.buffer,e)}writeUInt32BE(e,t){h(this.buffer,e,t)}readUInt8(e){return function(e,t){return e[t]}(this.buffer,e)}writeUInt8(e,t){!function(e,t,r){e[r]=t}(this.buffer,e,t)}}function u(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function h(e,t,r){e[r+3]=t,t>>>=8,e[r+2]=t,t>>>=8,e[r+1]=t,t>>>=8,e[r]=t}t.VSBuffer=l,t.readUInt32BE=u,t.writeUInt32BE=h,t.readableToBuffer=function(e){return n.consumeReadable(e,e=>l.concat(e))},t.bufferToReadable=function(e){return n.toReadable(e)},t.streamToBuffer=function(e){return n.consumeStream(e,e=>l.concat(e))},t.bufferToStream=function(e){return n.toStream(e,e=>l.concat(e))},t.streamToBufferReadableStream=function(e){return n.transform(e,{
  data:e=>"string"==typeof e?l.fromString(e):l.wrap(e)},e=>l.concat(e))},t.newWriteableBufferStream=function(){return n.newWriteableStream(e=>l.concat(e))}})),define(e[41],t([0,1,2,4,11]),(function(e,t,r,n,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=new s.IdleValue(()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}});function o(e,t,r=!1){const n=e||"",s=t||"",o=i.getValue().collator.compare(n,s);return i.getValue().collatorIsNumeric&&0===o&&n!==s?n<s?-1:1:o}t.compareFileNames=o;const a=/^(.*?)(\.([^.]*))?$/;function c(e){const t=e?a.exec(e):[];return[t&&t[1]||"",t&&t[3]||""]}function l(e,t,r=!1){return r||(e=e&&e.toLowerCase(),t=t&&t.toLowerCase()),e===t?0:e<t?-1:1}function u(e,t,n){const s=e.toLowerCase(),i=t.toLowerCase(),o=r.startsWith(s,n),a=r.startsWith(i,n);if(o!==a)return o?-1:1;if(o&&a){if(s.length<i.length)return-1;if(s.length>i.length)return 1}return 0}
  t.noIntlCompareFileNames=function(e,t,r=!1){r||(e=e&&e.toLowerCase(),t=t&&t.toLowerCase());const[n,s]=c(e),[i,o]=c(t);return n!==i?n<i?-1:1:s===o?0:s<o?-1:1},t.compareFileExtensions=function(e,t){const[r,n]=c(e),[s,o]=c(t);let a=i.getValue().collator.compare(n,o);if(0===a){if(i.getValue().collatorIsNumeric&&n!==o)return n<o?-1:1;if(a=i.getValue().collator.compare(r,s),i.getValue().collatorIsNumeric&&0===a&&r!==s)return r<s?-1:1}return a},t.comparePaths=function(e,t,r=!1){const s=e.split(n.sep),i=t.split(n.sep),a=s.length-1,c=i.length-1;let u,h;for(let e=0;;e++){if(h=c===e,(u=a===e)&&h)return o(s[e],i[e],r);if(u)return-1;if(h)return 1;const t=l(s[e],i[e],r);if(0!==t)return t}},t.compareAnything=function(e,t,n){const s=e.toLowerCase(),i=t.toLowerCase(),a=u(e,t,n);if(a)return a;const c=r.endsWith(s,n);if(c!==r.endsWith(i,n))return c?-1:1;const l=o(s,i);return 0!==l?l:s.localeCompare(i)},t.compareByPrefix=u})),define(e[8],t([0,1,3,2,4]),(function(e,t,r,n,s){"use strict";function i(e){return 47===e||92===e}
  Object.defineProperty(t,"__esModule",{value:!0}),t.isPathSeparator=i,t.toSlashes=function(e){return e.replace(/[\\/]/g,s.posix.sep)},t.getRoot=function(e,t=s.posix.sep){if(!e)return"";const r=e.length,n=e.charCodeAt(0);if(i(n)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let n=3;const s=n;for(;n<r&&!i(e.charCodeAt(n));n++);if(s!==n&&!i(e.charCodeAt(n+1)))for(n+=1;n<r;n++)if(i(e.charCodeAt(n)))return e.slice(0,n+1).replace(/[\\/]/g,t)}return t}if(l(n)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let o=e.indexOf("://");if(-1!==o)for(o+=3;o<r;o++)if(i(e.charCodeAt(o)))return e.slice(0,o+1);return""},t.isUNC=function(e){if(!r.isWindows)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;let n=2;const s=n;for(;n<e.length&&92!==(t=e.charCodeAt(n));n++);return s!==n&&(t=e.charCodeAt(n+1),!isNaN(t)&&92!==t)};const o=/[\\/:\*\?"<>\|]/g,a=/[\\/]/g,c=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;function l(e){
  return e>=65&&e<=90||e>=97&&e<=122}t.isValidBasename=function(e,t=r.isWindows){const n=t?o:a;return!(!e||0===e.length||/^\s+$/.test(e))&&(n.lastIndex=0,!n.test(e)&&((!t||!c.test(e))&&("."!==e&&".."!==e&&((!t||"."!==e[e.length-1])&&((!t||e.length===e.trim().length)&&!(e.length>255))))))},t.isEqual=function(e,t,r){const s=e===t;return!r||s?s:!(!e||!t)&&n.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,r,i=s.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(r){if(!n.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)},t.isWindowsDriveLetter=l,t.sanitizeFilePath=function(e,t){return r.isWindows&&n.endsWith(e,":")&&(e+=s.sep),s.isAbsolute(e)||(e=s.join(t,e)),e=s.normalize(e),r.isWindows?(e=n.rtrim(e,s.sep),n.endsWith(e,":")&&(e+=s.sep)):(e=n.rtrim(e,s.sep))||(e=s.sep),e},t.isRootOrDriveLetter=function(e){const t=s.normalize(e)
  ;return r.isWindows?!(e.length>3)&&(l(t.charCodeAt(0))&&58===t.charCodeAt(1)&&(2===e.length||92===t.charCodeAt(2))):t===s.posix.sep}})),define(e[13],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==r.number||e.constructor!==Array)}function s(e){return typeof e===r.string||e instanceof String}function i(e){return!(typeof e!==r.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){return typeof e===r.undefined}function a(e){return o(e)||null===e}t.isArray=n,t.isString=s,t.isStringArray=function(e){return n(e)&&e.every(e=>s(e))},t.isObject=i,t.isNumber=function(e){return(typeof e===r.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=o,t.isUndefinedOrNull=a,t.assertType=function(e,t){
  if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")},t.assertIsDefined=function(e){if(a(e))throw new Error("Assertion Failed: argument is undefined or null");return e},t.assertAllDefined=function(...e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];if(a(n))throw new Error(`Assertion Failed: argument at index ${r} is undefined or null`);t.push(n)}return t};const c=Object.prototype.hasOwnProperty;function l(e){return typeof e===r.function}function u(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(l(t)){try{if(e instanceof t)return}catch(e){}if(!a(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function h(e){let t=[],r=Object.getPrototypeOf(e);for(;Object.prototype!==r;)t=t.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r)
  ;return t}t.isEmptyObject=function(e){if(!i(e))return!1;for(let t in e)if(c.call(e,t))return!1;return!0},t.isFunction=l,t.areFunctions=function(...e){return e.length>0&&e.every(l)},t.validateConstraints=function(e,t){const r=Math.min(e.length,t.length);for(let n=0;n<r;n++)u(e[n],t[n])},t.validateConstraint=u,t.getAllPropertyNames=h,t.getAllMethodNames=function(e){const t=[];for(const r of h(e))"function"==typeof e[r]&&t.push(r);return t},t.createProxyObject=function(e,t){const r=e=>(function(){const r=Array.prototype.slice.call(arguments,0);return t(e,r)});let n={};for(const t of e)n[t]=r(t);return n},t.withNullAsUndefined=function(e){return null===e?void 0:e},t.withUndefinedAsNull=function(e){return void 0===e?null:e}})),define(e[12],t([0,1,13]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=function e(t){if(!t||"object"!=typeof t)return t;if(t instanceof RegExp)return t;const r=Array.isArray(t)?[]:{};return Object.keys(t).forEach(n=>{
  t[n]&&"object"==typeof t[n]?r[n]=e(t[n]):r[n]=t[n]}),r},t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const r in e)if(n.call(e,r)){const n=e[r];"object"!=typeof n||Object.isFrozen(n)||t.push(n)}}return e};const n=Object.prototype.hasOwnProperty;function s(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(!s(e[r],t[r]))return!1}else{const i=[];for(n in e)i.push(n);i.sort();const o=[];for(n in t)o.push(n);if(o.sort(),!s(i,o))return!1;for(r=0;r<i.length;r++)if(!s(e[i[r]],t[i[r]]))return!1}return!0}t.cloneAndChange=function(e,t){return function e(t,s,i){if(r.isUndefinedOrNull(t))return t;const o=s(t);if(void 0!==o)return o;if(r.isArray(t)){const r=[];for(const n of t)r.push(e(n,s,i));return r}if(r.isObject(t)){
  if(i.has(t))throw new Error("Cannot clone recursive data-structure");i.add(t);const r={};for(let o in t)n.call(t,o)&&(r[o]=e(t[o],s,i));return i.delete(t),r}return t}(e,t,new Set)},t.mixin=function e(t,n,s=!0){return r.isObject(t)?(r.isObject(n)&&Object.keys(n).forEach(i=>{i in t?s&&(r.isObject(t[i])&&r.isObject(n[i])?e(t[i],n[i],s):t[i]=n[i]):t[i]=n[i]}),t):n},t.assign=function(e,...t){return t.forEach(t=>Object.keys(t).forEach(r=>e[r]=t[r])),e},t.equals=s,t.safeStringify=function(e){const t=[];return JSON.stringify(e,(e,n)=>{if(r.isObject(n)||Array.isArray(n)){if(-1!==t.indexOf(n))return"[Circular]";t.push(n)}return n})},t.getOrDefault=function(e,t,r){const n=t(e);return void 0===n?r:n},t.distinct=function(e,t){const r=Object.create(null);return e&&t?(Object.keys(t).forEach(n=>{const i=e[n],o=t[n];s(i,o)||(r[n]=o)}),r):r}})),define(e[7],t([0,1,3]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=/^\w[\w\d+.-]*$/,s=/^\//,i=/^\/\//
  ;const o="",a="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class l{constructor(e,t,r,c,l,u=!1){"object"==typeof e?(this.scheme=e.scheme||o,this.authority=e.authority||o,this.path=e.path||o,this.query=e.query||o,this.fragment=e.fragment||o):(this.scheme=function(e,t){return e||t?e:"file"}(e,u),this.authority=t||o,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==a&&(t=a+t):t=a}return t}(this.scheme,r||o),this.query=c||o,this.fragment=l||o,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!n.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!s.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')
  }else if(i.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,u))}static isUri(e){return e instanceof l||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return m(this)}with(e){if(!e)return this;let{scheme:t,authority:r,path:n,query:s,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=o),void 0===r?r=this.authority:null===r&&(r=o),void 0===n?n=this.path:null===n&&(n=o),void 0===s?s=this.query:null===s&&(s=o),void 0===i?i=this.fragment:null===i&&(i=o),t===this.scheme&&r===this.authority&&n===this.path&&s===this.query&&i===this.fragment?this:new h(t,r,n,s,i)}static parse(e,t=!1){const r=c.exec(e);return r?new h(r[2]||o,w(r[4]||o),w(r[5]||o),w(r[7]||o),w(r[9]||o),t):new h(o,o,o,o,o)}static file(e){let t=o
  ;if(r.isWindows&&(e=e.replace(/\\/g,a)),e[0]===a&&e[1]===a){const r=e.indexOf(a,2);-1===r?(t=e.substring(2),e=a):(t=e.substring(2,r),e=e.substring(r)||a)}return new h("file",t,e,o,o)}static from(e){return new h(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return g(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof l)return e;{const t=new h(e);return t._formatted=e.external,t._fsPath=e._sep===u?e.fsPath:null,t}}return e}}t.URI=l;const u=r.isWindows?1:void 0;class h extends l{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=m(this)),this._fsPath}toString(e=!1){return e?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),
  this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const f={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function d(e,t){let r=void 0,n=-1;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==n&&(r+=encodeURIComponent(e.substring(n,s)),n=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=f[i];void 0!==t?(-1!==n&&(r+=encodeURIComponent(e.substring(n,s)),n=-1),r+=t):-1===n&&(n=s)}}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function p(e){let t=void 0;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=f[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function m(e){let t
  ;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,r.isWindows&&(t=t.replace(/\//g,"\\")),t}function g(e,t){const r=t?p:d;let n="",{scheme:s,authority:i,path:o,query:c,fragment:l}=e;if(s&&(n+=s,n+=":"),(i||"file"===s)&&(n+=a,n+=a),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),-1===(e=t.indexOf(":"))?n+=r(t,!1):(n+=r(t.substr(0,e),!1),n+=":",n+=r(t.substr(e+1),!1)),n+="@"}-1===(e=(i=i.toLowerCase()).indexOf(":"))?n+=r(i,!1):(n+=r(i.substr(0,e),!1),n+=i.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}
  n+=r(o,!0)}return c&&(n+="?",n+=r(c,!1)),l&&(n+="#",n+=t?l:d(l,!1)),n}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(v)?e.replace(v,e=>(function e(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}})(e)):e}})),define(e[42],t([0,1,7]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return r.URI.parse(e.toUrl(t)).fsPath},t.registerAndGetAmdImageURL=function(t){return e.toUrl(t)}})),define(e[43],t([0,1,7]),(function(e,t,r){"use strict";function n(e){const t=[];let r;try{const n=JSON.parse(e.arguments),s=n[n.length-1];s&&s.__$stack&&(n.pop(),r=s.__$stack),t.push(...n)}catch(r){t.push("Unable to log remote console arguments",e.arguments)}return{args:t,stack:r}}function s(e){if(!e)return e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function i(e){return`color: ${e}`}Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteConsoleLog=function(e){const t=e
  ;return t&&"string"==typeof t.type&&"string"==typeof t.severity},t.parse=n,t.getFirstFrame=function e(t){if("string"!=typeof t)return e(n(t).stack);if(t){const e=s(t),n=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(e||"");if(n&&4===n.length)return{uri:r.URI.file(n[1]),line:Number(n[2]),column:Number(n[3])}}},t.log=function(e,t){const{args:r,stack:o}=n(e),a="string"==typeof r[0]&&1===r.length;let c=s(o);c&&(c=`(${c.trim()})`);let l=[];if(l="string"==typeof r[0]?c&&a?[`%c[${t}] %c${r[0]} %c${c}`,i("blue"),i(""),i("grey")]:[`%c[${t}] %c${r[0]}`,i("blue"),i(""),...r.slice(1)]:[`%c[${t}]%`,i("blue"),...r],c&&!a&&l.push(c),"function"!=typeof console[e.severity])throw new Error("Unknown console method");console[e.severity].apply(console,l)}})),define(e[14],t([0,1,7,24]),(function(e,t,r,n){"use strict";function s(e){const t=[];return e.forEach(e=>t.push(e)),t}function i(e){const t=[];return e.forEach((e,r)=>t.push(r)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=s,t.keys=i,
  t.getOrSet=function(e,t,r){let n=e.get(t);return void 0===n&&(n=r,e.set(t,n)),n},t.mapToString=function(e){const t=[];return e.forEach((e,r)=>{t.push(`${r} => ${e}`)}),`Map(${e.size}) {${t.join(", ")}}`},t.setToString=function(e){const t=[];return e.forEach(e=>{t.push(e)}),`Set(${e.size}) {${t.join(", ")}}`},t.mapToSerializable=function(e){const t=[];return e.forEach((e,r)=>{t.push([r,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[r,n]of e)t.set(r,n);return t};class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=o;class a{constructor(e=!0){this._splitOnBackslash=e}reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0
  ;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){let t=0;const r=e.length;let n=this._from;for(;t<r&&n<this._to;){const r=e.charCodeAt(t)-this._value.charCodeAt(n);if(0!==r)return r;t+=1,n+=1}return r===this._to-this._from?0:t<r?-1:1}value(){return this._value.substring(this._from,this._to)}}t.PathIterator=a;class c{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class l{constructor(e){this._iter=e}static forPaths(){return new l(new a)}static forStrings(){return new l(new o)}clear(){this._root=void 0}set(e,t){const r=this._iter.reset(e);let n;for(this._root||(this._root=new c,this._root.segment=r.value()),n=this._root;;){const e=r.cmp(n.segment);if(e>0)n.left||(n.left=new c,n.left.segment=r.value()),n=n.left;else if(e<0)n.right||(n.right=new c,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new c,n.mid.segment=r.value()),
  n=n.mid}}const s=n.value;return n.value=t,n.key=e,s}get(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),r=r.mid}}return r?r.value:void 0}delete(e){const t=this._iter.reset(e),r=[];let n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)r.push([1,n]),n=n.left;else if(e<0)r.push([-1,n]),n=n.right;else{if(!t.hasNext()){for(n.value=void 0;r.length>0&&n.isEmpty();){let[e,t]=r.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}n=t}break}t.next(),r.push([0,n]),n=n.mid}}}findSubstr(e){const t=this._iter.reset(e);let r=this._root,n=void 0;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{if(!t.hasNext())break;t.next(),n=r.value||n,r=r.mid}}return r&&r.value||n}findSuperstr(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)r=r.left;else if(e<0)r=r.right;else{
  if(!t.hasNext())return r.mid?this._nodeIterator(r.mid):void 0;t.next(),r=r.mid}}}_nodeIterator(e){let t,r,s;return{next:()=>(s||(s=[],r=0,this._forEach(e,e=>s.push(e))),r>=s.length?n.FIN:(t?t.value=s[r++]:t={done:!1,value:s[r++]},t))}}forEach(e){this._forEach(this._root,e)}_forEach(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))}}t.TernarySearchTree=l;class u{constructor(){this.map=new Map,this.ignoreCase=!1}set(e,t){this.map.set(this.toKey(e),t)}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e){this.map.forEach(e)}values(){return s(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return i(this.map).map(e=>r.URI.parse(e))}clone(){const e=new u;return this.map.forEach((t,r)=>e.map.set(r,t)),e}}t.ResourceMap=u,function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",
  e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class h{constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}has(e){return this._map.has(e)}get(e,t=0){const r=this._map.get(e);if(r)return 0!==t&&this.touch(r,t),r.value}set(e,t,r=0){let n=this._map.get(e);if(n)n.value=t,0!==r&&this.touch(n,r);else{switch(n={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:default:this.addItemLast(n)}this._map.set(e,n),this._size++}}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._head
  ;for(;r;)t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),r=r.next}values(){const e=[];let t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){const e=[];let t=this._head;for(;t;)e.push(t.key),t=t.next;return e}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0)}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list")
  ;e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;const t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){this.clear();for(const[t,r]of e)this.set(t,r)}}t.LinkedMap=h;t.LRUCache=class extends h{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}
  set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e){return super.get(e,2)}peek(e){return super.get(e,0)}set(e,t){super.set(e,t,2),this.checkTrim()}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}})),define(e[44],t([0,1,14,2]),(function(e,t,r,n){"use strict";function s(...e){return function(t,r){for(let n=0,s=e.length;n<s;n++){const s=e[n](t,r);if(s)return s}return null}}function i(e,t,r){if(!r||r.length<t.length)return null;let s;return(s=e?n.startsWithIgnoreCase(r,t):0===r.indexOf(t))?t.length>0?[{start:0,end:t.length}]:[]:null}function o(e,t){const r=t.toLowerCase().indexOf(e.toLowerCase());return-1===r?null:[{start:r,end:r+e.length}]}function a(e,t){return function e(t,r,n,s){if(n===t.length)return[];if(s===r.length)return null;if(t[n]===r[s]){let i=null;return(i=e(t,r,n+1,s+1))?m({start:s,end:s+1},i):null}return e(t,r,n,s+1)}(e.toLowerCase(),t.toLowerCase(),0,0)}function c(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function u(e){
  return 48<=e&&e<=57}function h(e){return 32===e||9===e||10===e||13===e}Object.defineProperty(t,"__esModule",{value:!0}),t.or=s,t.matchesStrictPrefix=i.bind(void 0,!1),t.matchesPrefix=i.bind(void 0,!0),t.matchesContiguousSubString=o,t.matchesSubString=a,t.isUpper=l;const f=new Set;function d(e){return h(e)||f.has(e)}function p(e){return c(e)||l(e)||u(e)}function m(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function g(e,t){for(let r=t;r<e.length;r++){const t=e.charCodeAt(r);if(l(t)||u(t)||r>0&&!p(e.charCodeAt(r-1)))return r}return e.length}function v(e,t,r,n){if(r===e.length)return[];if(n===t.length)return null;if(e[r]!==t[n].toLowerCase())return null;{let s=null,i=n+1;for(s=v(e,t,r+1,n+1);!s&&(i=g(t,i))<t.length;)s=v(e,t,r+1,i),i++;return null===s?null:m({start:n,end:n+1},s)}}function w(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,r=0,n=0,s=0;for(let i=0;i<e.length;i++)l(n=e.charCodeAt(i))&&t++,c(n)&&r++,h(n)&&s++
  ;return 0!==t&&0!==r||0!==s?t<=5:e.length<=30}(e))return null;if(t.length>60)return null;const r=function(e){let t=0,r=0,n=0,s=0,i=0;for(let o=0;o<e.length;o++)l(i=e.charCodeAt(o))&&t++,c(i)&&r++,p(i)&&n++,u(i)&&s++;return{upperPercent:t/e.length,lowerPercent:r/e.length,alphaPercent:n/e.length,numericPercent:s/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:r,alphaPercent:n,numericPercent:s}=e;return r>.2&&t<.8&&n>.6&&s<.2}(r)){if(!function(e){const{upperPercent:t,lowerPercent:r}=e;return 0===r&&t>.6}(r))return null;t=t.toLowerCase()}let n=null,s=0;for(e=e.toLowerCase();s<t.length&&null===(n=v(e,t,0,s));)s=g(t,s+1);return n}function y(e,t,r,n,s){if(r===e.length)return[];if(n===t.length)return null;if(i=e.charCodeAt(r),o=t.charCodeAt(n),i===o||d(i)&&d(o)){let i=null,o=n+1;if(i=y(e,t,r+1,n+1,s),!s)for(;!i&&(o=b(t,o))<t.length;)i=y(e,t,r+1,o,s),o++;return null===i?null:m({start:n,end:n+1},i)}return null;var i,o}function b(e,t){
  for(let r=t;r<e.length;r++)if(d(e.charCodeAt(r))||r>0&&d(e.charCodeAt(r-1)))return r;return e.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(e=>f.add(e.charCodeAt(0))),t.matchesCamelCase=w,t.matchesWords=function(e,t,r=!1){if(!t||0===t.length)return null;let n=null,s=0;for(e=e.toLowerCase(),t=t.toLowerCase();s<t.length&&null===(n=y(e,t,0,s,r));)s=b(t,s+1);return n};const _=s(t.matchesPrefix,w,o),x=s(t.matchesPrefix,w,a),C=new r.LRUCache(1e4);function E(e){if(void 0===e)return[];const t=e[1].toString(2),r=[];for(let n=e[2];n<P;n++)if("1"===t[t.length-(n+1)]){const e=r[r.length-1];e&&e.end===n?e.end=n+1:r.push({start:n,end:n+1})}return r}t.matchesFuzzy=function(e,t,r=!1){if("string"!=typeof e||"string"!=typeof t)return null;let s=C.get(e);s||(s=new RegExp(n.convertSimple2RegExpPattern(e),"i"),C.set(e,s));const i=s.exec(t);return i?[{start:i.index,end:i.index+i[0].length}]:r?x(e,t):_(e,t)},t.matchesFuzzy2=function(e,t){const r=M(e,e.toLowerCase(),0,t,t.toLowerCase(),0,!0);return r?E(r):null},
  t.anyScore=function(e,t,r,n,s,i){const o=M(e,t,0,n,s,0,!0);if(o)return o;let a=0,c=0,l=i;for(let e=0;e<t.length&&e<P;++e){const r=s.indexOf(t.charAt(e),l);if(r>=0)c+=1,a+=2**r,l=r+1;else if(0!==a)break}return[c,a,i]},t.createMatches=E;const P=128;function S(){const e=[],t=[0];for(let e=1;e<=P;e++)t.push(-e);for(let r=0;r<=P;r++){const n=t.slice(0);n[0]=-r,e.push(n)}return e}const A=S(),L=S(),k=S(),T=!1;function R(e,t,r,n,s){function i(e,t,r=" "){for(;e.length<t;)e=r+e;return e}let o=` |   |${n.split("").map(e=>i(e,3)).join("|")}\n`;for(let n=0;n<=r;n++)o+=0===n?" |":`${t[n-1]}|`,o+=e[n].slice(0,s+1).map(e=>i(e.toString(),3)).join("|")+"\n";return o}function D(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function O(e,t,r){return t[e]!==r[e]}function I(e,t,r,n,s,i){for(;t<r&&s<i;)e[t]===n[s]&&(t+=1),s+=1;return t===r}var F;function M(e,t,r,n,s,i,o){
  const a=e.length>P?P:e.length,c=n.length>P?P:n.length;if(r>=a||i>=c||a-r>c-i)return;if(!I(t,r,a,s,i,c))return;let l=1,u=1,h=r,f=i;for(l=1,h=r;h<a;l++,h++)for(u=1,f=i;f<c;u++,f++){const i=N(e,t,h,r,n,s,f);L[l][u]=i;const o=A[l-1][u-1]+(i>1?1:i),a=A[l-1][u]+-1,c=A[l][u-1]+-1;c>=a?c>o?(A[l][u]=c,k[l][u]=4):c===o?(A[l][u]=c,k[l][u]=6):(A[l][u]=o,k[l][u]=2):a>o?(A[l][u]=a,k[l][u]=1):a===o?(A[l][u]=a,k[l][u]=3):(A[l][u]=o,k[l][u]=2)}return T&&function(e,t,r,n){e=e.substr(t),r=r.substr(n),console.log(R(A,e,e.length,r,r.length)),console.log(R(k,e,e.length,r,r.length)),console.log(R(L,e,e.length,r,r.length))}(e,r,n,i),j=0,U=-100,z=i,B=o,function e(t,r,n,s,i){if(j>=10||n<-25)return;let o=0;for(;t>0&&r>0;){const a=L[t][r],c=k[t][r];if(4===c)r-=1,i?n-=5:0!==s&&(n-=1),i=!1,o=0;else{if(!(2&c))return;if(4&c&&e(t,r-1,0!==s?n-1:n,s,i),n+=a,t-=1,i=!0,s+=2**((r-=1)+z),1===a){if(o+=1,0===t&&!B)return}else n+=1+o*(a-1),o=0}}n-=r>=3?9:3*r;j+=1;n>U&&(U=n,q=s)}(l-1,u-1,a===c?1:0,0,!1),0!==j?[U,q,i]:void 0}function N(e,t,r,n,s,i,o){
  return t[r]!==i[o]?-1:o===r-n?e[r]===s[o]?7:5:!O(o,s,i)||0!==o&&O(o-1,s,i)?!D(i,o)||0!==o&&D(i,o-1)?D(i,o-1)||function(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}(i,o-1)?5:1:5:e[r]===s[o]?7:5}t.isPatternInWord=I,function(e){e[e.Top=1]="Top",e[e.Diag=2]="Diag",e[e.Left=4]="Left"}(F||(F={})),function(e){e.Default=Object.freeze([-100,0,0]),e.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}}(t.FuzzyScore||(t.FuzzyScore={})),t.fuzzyScore=M;let j=0,q=0,U=0,z=0,B=!1;function W(e,t,r,n,s,i,o,a){let c=M(e,t,r,n,s,i,a);if(c&&!o)return c;if(e.length>=3){const t=Math.min(7,e.length-1);for(let o=r+1;o<t;o++){const t=$(e,o);if(t){const e=M(t,t.toLowerCase(),r,n,s,i,a);e&&(e[0]-=3,(!c||e[0]>c[0])&&(c=e))}}}return c}function $(e,t){if(t+1>=e.length)return;const r=e[t],n=e[t+1];return r!==n?e.slice(0,t)+n+r+e.slice(t+2):void 0}t.fuzzyScoreGracefulAggressive=function(e,t,r,n,s,i,o){return W(e,t,r,n,s,i,!0,o)},t.fuzzyScoreGraceful=function(e,t,r,n,s,i,o){
  return W(e,t,r,n,s,i,!1,o)}})),define(e[15],t([0,1,5,2,8,4,14,11]),(function(e,t,r,n,s,i,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};const c="**",l="/",u="[/\\\\]",h="[^/\\\\]",f=/\//g;function d(e){switch(e){case 0:return"";case 1:return`${h}*?`;default:return`(?:${u}|${h}+${u}|${u}${h}+)*?`}}function p(e,t){if(!e)return[];const r=[];let n=!1,s=!1,i="";for(const o of e){switch(o){case t:if(!n&&!s){r.push(i),i="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":s=!0;break;case"]":s=!1}i+=o}return i&&r.push(i),r}t.splitGlobAware=p;const m=/^\*\*\/\*\.[\w\.-]+$/,g=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,w=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,y=/^\*\*((\/[\w\.-]+)+)\/?$/,b=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,_=new o.LRUCache(1e4),x=function(){return!1},C=function(){return null};function E(e,t){if(!e)return C;let s
  ;const i=`${s=(s="string"!=typeof e?e.pattern:e).trim()}_${!!t.trimForExclusions}`;let o,a=_.get(i);if(a)return P(a,e);if(m.test(s)){const e=s.substr(4);a=function(t,r){return"string"==typeof t&&n.endsWith(t,e)?s:null}}else a=(o=g.exec(S(s,t)))?function(e,t){const r=`/${e}`,s=`\\${e}`,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||n.endsWith(i,r)||n.endsWith(i,s)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,i}(o[1],s):(t.trimForExclusions?w:v).test(s)?function(e,t){const n=R(e.slice(1,-1).split(",").map(e=>E(e,t)).filter(e=>e!==C),e),s=n.length;if(!s)return C;if(1===s)return n[0];const i=function(t,r){for(let s=0,i=n.length;s<i;s++)if(n[s](t,r))return e;return null},o=r.first(n,e=>!!e.allBasenames);o&&(i.allBasenames=o.allBasenames);const a=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(i.allPaths=a);return i}(s,t):(o=y.exec(S(s,t)))?A(o[1].substr(1),s,!0):(o=b.exec(S(s,t)))?A(o[1],s,!1):function(e){try{const t=new RegExp(`^${function e(t){
  if(!t)return"";let r="";const s=p(t,l);if(s.every(e=>e===c))r=".*";else{let t=!1;s.forEach((i,o)=>{if(i===c)return void(t||(r+=d(2),t=!0));let a=!1,f="",m=!1,g="";for(const t of i)if("}"!==t&&a)f+=t;else if(!m||"]"===t&&g)switch(t){case"{":a=!0;continue;case"[":m=!0;continue;case"}":const s=`(?:${p(f,",").map(t=>e(t)).join("|")})`;r+=s,a=!1,f="";break;case"]":r+="["+g+"]",m=!1,g="";break;case"?":r+=h;continue;case"*":r+=d(1);continue;default:r+=n.escapeRegExpCharacters(t)}else{let e;g+=e="-"===t?t:"^"!==t&&"!"!==t||g?t===l?"":n.escapeRegExpCharacters(t):"^"}o<s.length-1&&(s[o+1]!==c||o+2<s.length)&&(r+=u),t=!1})}return r}(e)}$`);return function(r,n){return t.lastIndex=0,"string"==typeof r&&t.test(r)?e:null}}catch(e){return C}}(s);return _.set(i,a),P(a,e)}function P(e,t){return"string"==typeof t?e:function(r,n){return s.isEqualOrParent(r,t.base)?e(i.relative(t.base,r),n):null}}function S(e,t){return t.trimForExclusions&&n.endsWith(e,"/**")?e.substr(0,e.length-2):e}function A(e,t,r){
  const s=i.sep!==i.posix.sep?e.replace(f,i.sep):e,o=i.sep+s,a=r?function(e,r){return"string"!=typeof e||e!==s&&!n.endsWith(e,o)?null:t}:function(e,r){return"string"==typeof e&&e===s?t:null};return a.allPaths=[(r?"*/":"./")+e],a}function L(e,t={}){if(!e)return x;if("string"==typeof e||T(e)){const r=E(e,t);if(r===C)return x;const n=function(e,t){return!!r(e,t)};return r.allBasenames&&(n.allBasenames=r.allBasenames),r.allPaths&&(n.allPaths=r.allPaths),n}return function(e,t){const n=R(Object.getOwnPropertyNames(e).map(r=>(function(e,t,r){if(!1===t)return C;const n=E(e,r);if(n===C)return C;if("boolean"==typeof t)return n;if(t){const r=t.when;if("string"==typeof r){const t=(t,s,i,o)=>{if(!o||!n(t,s))return null;const c=o(r.replace("$(basename)",i));return a.isThenable(c)?c.then(t=>t?e:null):c?e:null};return t.requiresSiblings=!0,t}}return n})(r,e[r],t)).filter(e=>e!==C)),s=n.length;if(!s)return C;if(!n.some(e=>!!e.requiresSiblings)){if(1===s)return n[0];const e=function(e,t){for(let r=0,s=n.length;r<s;r++){
  const s=n[r](e,t);if(s)return s}return null},t=r.first(n,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const i=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return i.length&&(e.allPaths=i),e}const o=function(e,t,r){let s=void 0;for(let o=0,a=n.length;o<a;o++){const a=n[o];a.requiresSiblings&&r&&(t||(t=i.basename(e)),s||(s=t.substr(0,t.length-i.extname(e).length)));const c=a(e,t,s,r);if(c)return c}return null},c=r.first(n,e=>!!e.allBasenames);c&&(o.allBasenames=c.allBasenames);const l=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(o.allPaths=l);return o}(e,t)}function k(e){const t={};for(const r of e)t[r]=!0;return t}function T(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function R(e,t){const r=e.filter(e=>!!e.basenames);if(r.length<2)return e;const n=r.reduce((e,t)=>{const r=t.basenames;return r?e.concat(r):e},[]);let s;if(t){s=[];for(let e=0,r=n.length;e<r;e++)s.push(t)}else s=r.reduce((e,t)=>{const r=t.patterns;return r?e.concat(r):e},[])
  ;const i=function(e,t){if("string"!=typeof e)return null;if(!t){let r;for(r=e.length;r>0;r--){const t=e.charCodeAt(r-1);if(47===t||92===t)break}t=e.substr(r)}const r=n.indexOf(t);return-1!==r?s[r]:null};i.basenames=n,i.patterns=s,i.allBasenames=n;const o=e.filter(e=>!e.basenames);return o.push(i),o}t.match=function(e,t,r){return!(!e||"string"!=typeof t)&&L(e)(t,void 0,r)},t.parse=L,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return r=>(t||(t=(e()||Promise.resolve([])).then(e=>e?k(e):{})),t.then(e=>!!e[r]))},t.hasSiblingFn=function(e){if(!e)return;let t;return r=>{if(!t){const r=e();t=r?k(r):{}}return!!t[r]}},t.isRelativePattern=T,t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}})),define(e[45],t([0,1,7,3]),(function(e,t,r,n){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",
  e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata"}(s=t.Schemas||(t.Schemas={}));t.RemoteAuthorities=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}setDelegate(e){this._delegate=e}set(e,t,r){this._hosts[e]=t,this._ports[e]=r}setConnectionToken(e,t){this._connectionTokens[e]=t}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&(i=`[${i}]`);const o=this._ports[t],a=this._connectionTokens[t];let c=`path=${encodeURIComponent(e.path)}`;return"string"==typeof a&&(c+=`&tkn=${encodeURIComponent(a)}`),r.URI.from({scheme:n.isWeb?this._preferredWebSchema:s.vscodeRemoteResource,
  authority:`${i}:${o}`,path:"/vscode-remote-resource",query:c})}}})),define(e[20],t([0,1,14]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;const n=new r.LRUCache(1e4);t.normalizeNFC=function(e){return o(e,"NFC",n)};const s=new r.LRUCache(1e4);t.normalizeNFD=function(e){return o(e,"NFD",s)};const i=/[^\u0000-\u0080]/;function o(e,r,n){if(!t.canNormalize||!e)return e;const s=n.get(e);if(s)return s;let o;return o=i.test(e)?e.normalize(r):e,n.set(e,o),o}})),define(e[46],t([0,1,8,4,7,2,45,3,15,14]),(function(e,t,r,n,s,i,o,a,c,l){"use strict";function u(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function h(e,t,n=u(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return r.isEqualOrParent(p(e),p(t),n);if(f(e.authority,t.authority))return r.isEqualOrParent(e.path,t.path,n,"/")}return!1}function f(e,t){return e===t||i.equalsIgnoreCase(e,t)}function d(e){return n.posix.basename(e.path)}function p(e){let t;const n=e.path
  ;return t=e.authority&&n.length>1&&e.scheme===o.Schemas.file?`//${e.authority}${n}`:a.isWindows&&47===n.charCodeAt(0)&&r.isWindowsDriveLetter(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function m(e,t=n.sep){if(e.scheme===o.Schemas.file){const n=p(e);return n.length>r.getRoot(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)}}function g(e,t,s=u(e)){if(e.scheme!==t.scheme||!f(e.authority,t.authority))return;if(e.scheme===o.Schemas.file){const s=n.relative(e.path,t.path);return a.isWindows?r.toSlashes(s):s}let i=e.path||"/",c=t.path||"/";if(s){let e=0;for(const t=Math.min(i.length,c.length);e<t&&(i.charCodeAt(e)===c.charCodeAt(e)||i.charAt(e).toLowerCase()===c.charAt(e).toLowerCase());e++);i=c.substr(0,e)+i.substr(e)}return n.posix.relative(i,c)}Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return u(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=u,
  t.basenameOrAuthority=function(e){return d(e)||e.authority},t.isEqualOrParent=h,t.isEqualAuthority=f,t.isEqual=function(e,t,r=u(e)){if(e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;const n=e.path||"/",s=t.path||"/";return n===s||r&&i.equalsIgnoreCase(n||"/",s||"/")},t.basename=d,t.extname=function(e){return n.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return s.URI.file(n.dirname(p(e)));let t=n.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/"),e.with({path:t})},t.joinPath=function(e,...t){let r;return r=e.scheme===o.Schemas.file?s.URI.file(n.join(p(e),...t)).path:n.posix.join(e.path||"/",...t),e.with({path:r})},t.normalizePath=function(e){if(!e.path.length)return e;let t;return t=e.scheme===o.Schemas.file?s.URI.file(n.normalize(p(e))).path:n.posix.normalize(e.path),e.with({path:t})},t.originalFSPath=p,
  t.isAbsolutePath=function(e){return!!e.path&&"/"===e.path[0]},t.hasTrailingPathSeparator=m,t.removeTrailingPathSeparator=function(e,t=n.sep){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.addTrailingPathSeparator=function(e,t=n.sep){let s=!1;if(e.scheme===o.Schemas.file){const n=p(e);s=void 0!==n&&n.length===r.getRoot(n).length&&n[n.length-1]===t}else{t="/";const r=e.path;s=1===r.length&&47===r.charCodeAt(r.length-1)}return s||m(e,t)?e:e.with({path:e.path+"/"})},t.relativePath=g,t.resolvePath=function(e,t){if(e.scheme===o.Schemas.file){const r=s.URI.file(n.resolve(p(e),t));return e.with({authority:r.authority,path:r.path})}return-1===t.indexOf("/")&&(t=r.toSlashes(t),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t)),e.with({path:n.posix.resolve(e.path,t)})},t.distinctParents=function(e,t){const r=[];for(let n=0;n<e.length;n++){const s=t(e[n]);e.some((e,r)=>r!==n&&h(s,t(e)))||r.push(e[n])}return r},function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",
  e.META_DATA_MIME="mime",e.parseMetaData=function(t){const r=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,n]=e.split(":");t&&n&&r.set(t,n)});const n=t.path.substring(0,t.path.indexOf(";"));return n&&r.set(e.META_DATA_MIME,n),r}}(t.DataUri||(t.DataUri={}));t.ResourceGlobMatcher=class{constructor(e,t){this.expressionsByRoot=l.TernarySearchTree.forPaths(),this.globalExpression=c.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:c.parse(e.expression)})}matches(e){const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const r=g(t.root,e);if(r&&t.expression(r))return!0}return!!this.globalExpression(e.path)}},t.toLocalResource=function(e,t){if(t){let r=e.path;return r&&r[0]!==n.posix.sep&&(r=n.posix.sep+r),e.with({scheme:o.Schemas.vscodeRemote,authority:t,path:r})}return e.with({scheme:o.Schemas.file})}})),define(e[47],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
  ;class r{constructor(e){this._value=e}asHex(){return this._value}}class n extends r{constructor(){super([n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),"-",n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),"-","4",n._randomHex(),n._randomHex(),n._randomHex(),"-",n._oneOf(n._timeHighBits),n._randomHex(),n._randomHex(),n._randomHex(),"-",n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return n._oneOf(n._chars)}}function s(){return new n}n._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n._timeHighBits=["8","9","a","b"],t.v4=s;const i=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function o(e){return i.test(e)}t.isUUID=o,t.parse=function(e){
  if(!o(e))throw new Error("invalid uuid");return new r(e)},t.generateUuid=function(){return s().asHex()}})),define(e[48],t([0,1,28]),(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LineDecoder=class{constructor(e="utf8"){this.stringDecoder=new r.StringDecoder(e),this.remaining=null}write(e){const t=[],r=this.remaining?this.remaining+this.stringDecoder.write(e):this.stringDecoder.write(e);if(r.length<1)return t;let n,s=0,i=s;for(;i<r.length;)if(13===(n=r.charCodeAt(i))||10===n){if(t.push(r.substring(s,i)),++i<r.length){const e=n;n=r.charCodeAt(i),(13===e&&10===n||10===e&&13===n)&&i++}s=i}else i++;return this.remaining=s<r.length?r.substr(s):null,t}end(){return this.remaining}}})),define(e[29],t([0,1,68,3,16,69]),(function(e,t,r,n,s,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.isUTFEncoding=function(e){return[t.UTF8,t.UTF8_with_bom,t.UTF16be,t.UTF16le].some(t=>t===e)},
  t.UTF16be_BOM=[254,255],t.UTF16le_BOM=[255,254],t.UTF8_BOM=[239,187,191];const o=512,a=512,c=4096;function l(e){return e===t.UTF8_with_bom||null===e?t.UTF8:e}function u(e,r){if(!e||r<t.UTF16be_BOM.length)return null;const n=e.readUInt8(0),s=e.readUInt8(1);if(n===t.UTF16be_BOM[0]&&s===t.UTF16be_BOM[1])return t.UTF16be;if(n===t.UTF16le_BOM[0]&&s===t.UTF16le_BOM[1])return t.UTF16le;if(r<t.UTF8_BOM.length)return null;const i=e.readUInt8(2);return n===t.UTF8_BOM[0]&&s===t.UTF8_BOM[1]&&i===t.UTF8_BOM[2]?t.UTF8_with_bom:null}t.toDecodeStream=function(e,t){return t.minBytesRequiredForDetection||(t.minBytesRequiredForDetection=t.guessEncoding?c:a),new Promise((n,s)=>{const o=new class extends i.Writable{constructor(){super(...arguments),this.bufferedChunks=[],this.bytesBuffered=0}_write(e,r,n){if(!Buffer.isBuffer(e))return n(new Error("toDecodeStream(): data must be a buffer"));this.decodeStream?this.decodeStream.write(e,n):(this.bufferedChunks.push(e),this.bytesBuffered+=e.byteLength,
  this.decodeStreamPromise?this.decodeStreamPromise.then(()=>n(null),e=>n(e)):"number"==typeof t.minBytesRequiredForDetection&&this.bytesBuffered>=t.minBytesRequiredForDetection?this._startDecodeStream(n):n(null))}_startDecodeStream(e){this.decodeStreamPromise=Promise.resolve(p({buffer:Buffer.concat(this.bufferedChunks),bytesRead:this.bytesBuffered},t.guessEncoding)).then(s=>{s.encoding=t.overwriteEncoding(s.encoding),this.decodeStream=function(e){return r.decodeStream(l(e))}(s.encoding),this.decodeStream.write(Buffer.concat(this.bufferedChunks),e),this.bufferedChunks.length=0,n({detected:s,stream:this.decodeStream})},t=>{this.emit("error",t),e(t)})}_final(e){this.decodeStream?this.decodeStream.end(e):this._startDecodeStream(()=>{this.decodeStream&&this.decodeStream.end(e)})}};e.on("error",s),e.pipe(o)})},t.decode=function(e,t){return r.decode(e,l(t))},t.encode=function(e,t,n){return r.encode(e,l(t),n)},t.encodingExists=function(e){return r.encodingExists(l(e))},t.encodeStream=function(e,t){
  return r.encodeStream(l(e),t)},t.detectEncodingByBOMFromBuffer=u;const h=["ascii","utf-16","utf-32"];const f={ibm866:"cp866",big5:"cp950"};function d(e){const t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return f[t]||t}function p({buffer:r,bytesRead:n},s){let i=u(r,n),a=!1;if(i!==t.UTF16be&&i!==t.UTF16le&&r){let e=!0,s=!0,c=!1;for(let t=0;t<n&&t<o;t++){const n=t%2==1,i=0===r.readInt8(t);if(i&&(c=!0),e&&(n&&!i||!n&&i)&&(e=!1),s&&(n&&i||!n&&!i)&&(s=!1),i&&!e&&!s)break}c&&(e?i=t.UTF16le:s?i=t.UTF16be:a=!0)}return s&&!a&&!i&&r?async function(t){const r=(await new Promise((t,r)=>{e(["jschardet"],t,r)})).detect(t);if(!r||!r.encoding)return null;const n=r.encoding.toLowerCase();return 0<=h.indexOf(n)?null:d(r.encoding)}(r.slice(0,n)).then(e=>({seemsBinary:!1,encoding:e})):{seemsBinary:a,encoding:i}}t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":
  return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:const t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}},t.detectEncodingFromBuffer=p;const m={437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};t.resolveTerminalEncoding=async function(e){let i;const o=process.env.VSCODE_CLI_ENCODING;o?(e&&console.log(`Found VSCODE_CLI_ENCODING variable: ${o}`),i=Promise.resolve(o)):i=n.isLinux||n.isMacintosh?new Promise(t=>{e&&console.log('Running "locale charmap" to detect terminal encoding...'),s.exec("locale charmap",(e,r,n)=>t(r))}):new Promise(t=>{e&&console.log('Running "chcp" to detect terminal encoding...'),s.exec("chcp",(e,r,n)=>{if(r){const e=Object.keys(m);for(const n of e)if(r.indexOf(n)>=0)return t(m[n])}return t(void 0)})});const a=await i;if(e&&console.log(`Detected raw terminal encoding: ${a}`),
  !a||"utf-8"===a.toLowerCase()||a.toLowerCase()===t.UTF8)return t.UTF8;const c=d(a);return r.encodingExists(c)?c:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)}})),define(e[18],t([0,1,4,11,21,70,3,6,2,49,8,47,20,29]),(function(e,t,r,n,s,i,o,a,c,l,u,h,f,d){"use strict";var p;async function m(e,t=p.UNLINK){if(u.isRootOrDriveLetter(e))throw new Error("rimraf - will refuse to recursively delete root");return t===p.UNLINK?g(e):async function(e){try{const t=r.join(i.tmpdir(),h.generateUuid());try{await C(e,t)}catch(t){return g(e)}g(t)}catch(e){if("ENOENT"!==e.code)throw e}}(e)}async function g(e){try{const t=await x(e);if(!t.isDirectory()||t.isSymbolicLink()){const r=t.mode;return 128&r||await b(e,128|r),E(e)}{const t=await v(e);await Promise.all(t.map(t=>g(r.join(e,t)))),await l.promisify(s.rmdir)(e)}}catch(e){if("ENOENT"!==e.code)throw e}}async function v(e){return y(await l.promisify(s.readdir)(e))}function w(e){return y(s.readdirSync(e))}function y(e){
  return o.isMacintosh?e.map(e=>f.normalizeNFC(e)):e}function b(e,t){return l.promisify(s.chmod)(e,t)}function _(e){return l.promisify(s.stat)(e)}function x(e){return l.promisify(s.lstat)(e)}function C(e,t){return l.promisify(s.rename)(e,t)}function E(e){return l.promisify(s.unlink)(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.UNLINK=0]="UNLINK",e[e.MOVE=1]="MOVE"}(p=t.RimRafMode||(t.RimRafMode={})),t.rimraf=m,t.rimrafSync=function e(t){if(u.isRootOrDriveLetter(t))throw new Error("rimraf - will refuse to recursively delete root");try{const n=s.lstatSync(t);if(!n.isDirectory()||n.isSymbolicLink()){const e=n.mode;return 128&e||s.chmodSync(t,128|e),s.unlinkSync(t)}w(t).map(n=>e(r.join(t,n))),s.rmdirSync(t)}catch(e){if("ENOENT"!==e.code)throw e}},t.readdir=v,t.readdirWithFileTypes=async function(e){const t=await l.promisify(s.readdir)(e,{withFileTypes:!0});if(o.isMacintosh)for(const e of t)e.name=f.normalizeNFC(e.name);return t},t.readdirSync=w,t.exists=function(e){
  return l.promisify(s.exists)(e)},t.chmod=b,t.stat=_,t.statLink=async function(e){let t,r;try{t=await x(e)}catch(e){r=e}const n=!(!t||!t.isSymbolicLink());if(r||n){return{stat:await _(e),isSymbolicLink:n}}return{stat:t,isSymbolicLink:!1}},t.lstat=x,t.rename=C,t.renameIgnoreError=function(e,t){return new Promise(r=>{s.rename(e,t,()=>r())})},t.unlink=E,t.symlink=function(e,t,r){return l.promisify(s.symlink)(e,t,r)},t.truncate=function(e,t){return l.promisify(s.truncate)(e,t)},t.readFile=function(e,t){return l.promisify(s.readFile)(e,t)};const P=new Map;t.writeFile=function(e,t,r){return function(e){const t=P.get(e);if(t)return t;const r=new n.Queue;return P.set(e,r),a.Event.once(r.onFinished)(()=>{P.delete(e),r.dispose()}),r}(function(e){let t=e;(o.isWindows||o.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(()=>(function(e,t,r){const n=A(r);return new Promise((r,i)=>{"string"==typeof t||Buffer.isBuffer(t)||t instanceof Uint8Array?function(e,t,r,n){
  r.encoding&&(t=d.encode(t instanceof Uint8Array?Buffer.from(t):t,r.encoding.charset,{addBOM:r.encoding.addBOM}));if(!S)return s.writeFile(e,t,{mode:r.mode,flag:r.flag},n);s.open(e,r.flag,r.mode,(e,r)=>{if(e)return n(e);s.writeFile(r,t,e=>{if(e)return s.close(r,()=>n(e));s.fdatasync(r,e=>(e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),S=!1),s.close(r,e=>n(e))))})})}(e,t,n,e=>e?i(e):r()):function(e,t,r,n){let i=!1;const o=e=>{i||(i=!0,e?l?(a.once("close",()=>n(e)),a.destroy()):n(e):n())},a=s.createWriteStream(e,{mode:r.mode,flags:r.flag,autoClose:!1});let c,l;a.once("open",e=>{c=e,l=!0,r.encoding&&(t=t.pipe(d.encodeStream(r.encoding.charset,{addBOM:r.encoding.addBOM}))),t.pipe(a)}),t.once("error",e=>o(e)),a.once("error",e=>o(e)),a.once("finish",()=>{S&&l?s.fdatasync(c,e=>{e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),S=!1),a.destroy()}):a.destroy()}),a.once("close",()=>o())}(e,t,n,e=>e?i(e):r())})})(e,t,r))}
  ;let S=!0;function A(e){return e?{mode:"number"==typeof e.mode?e.mode:438,flag:"string"==typeof e.flag?e.flag:"w",encoding:e.encoding}:{mode:438,flag:"w"}}async function L(e){try{return(await _(e)).isDirectory()}catch(e){return!1}}async function k(e,t,n){const i=n||Object.create(null),o=await _(e);if(!o.isDirectory())return async function(e,t,r){return new Promise((n,i)=>{const o=s.createReadStream(e),a=s.createWriteStream(t,{mode:r});let c=!1;const l=e=>{if(!c){if(c=!0,e)return i(e);s.chmod(t,r,e=>e?i(e):n())}};o.once("error",e=>l(e)),a.once("error",e=>l(e)),a.once("close",()=>l()),o.pipe(a)})}(e,t,511&o.mode);if(i[e])return Promise.resolve();i[e]=!0,await T(t,511&o.mode);const a=await v(e);for(let n=0;n<a.length;n++){const s=a[n];await k(r.join(e,s),r.join(t,s),i)}}async function T(e,t){return l.promisify(s.mkdir)(e,{mode:t,recursive:!0})}t.writeFileSync=function(e,t,r){const n=A(r);if(n.encoding&&(t=d.encode(t,n.encoding.charset,{addBOM:n.encoding.addBOM})),!S)return s.writeFileSync(e,t,{mode:n.mode,
  flag:n.flag});const i=s.openSync(e,n.flag,n.mode);try{s.writeFileSync(i,t);try{s.fdatasyncSync(i)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),S=!1}}finally{s.closeSync(i)}},t.readDirsInDir=async function(e){const t=await v(e),n=[];for(const s of t)await L(r.join(e,s))&&n.push(s);return n},t.dirExists=L,t.fileExists=async function(e){try{return(await _(e)).isFile()}catch(e){return!1}},t.whenDeleted=function(e){return new Promise(t=>{let r=!1;const n=setInterval(()=>{r||(r=!0,s.exists(e,e=>{r=!1,e||(clearInterval(n),t(void 0))}))},1e3)})},t.move=async function(e,t){if(e===t)return Promise.resolve();async function r(e){const t=await x(e);if(t.isDirectory()||t.isSymbolicLink())return Promise.resolve();const r=await l.promisify(s.open)(e,"a");try{await l.promisify(s.futimes)(r,t.atime,new Date)}catch(e){}return l.promisify(s.close)(r)}try{await C(e,t),await r(t)}catch(n){
  if(!(e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||c.endsWith(e,".")))throw n;await k(e,t),await m(e,p.MOVE),await r(t)}},t.copy=k,t.mkdirp=T;t.MAX_FILE_SIZE="ia32"===process.arch?314572800:17179869184,t.MAX_HEAP_SIZE="ia32"===process.arch?734003200:1468006400})),define(e[50],t([0,1,6,10,11,17,9,27]),(function(e,t,r,n,s,i,o,a){"use strict";var c,l;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(t.RequestType||(t.RequestType={})),function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(t.ResponseType||(t.ResponseType={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(c||(c={}));class u{constructor(e){this.buffer=e,this.pos=0}read(e){const t=this.buffer.slice(this.pos,this.pos+e)
  ;return this.pos+=t.byteLength,t}}class h{constructor(){this.buffers=[]}get buffer(){return a.VSBuffer.concat(this.buffers)}write(e){this.buffers.push(e)}}function f(e){const t=a.VSBuffer.alloc(4);return t.writeUInt32BE(e,0),t}function d(e){return e.read(4).readUInt32BE(0)}function p(e){const t=a.VSBuffer.alloc(1);return t.writeUInt8(e,0),t}!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.VSBuffer=3]="VSBuffer",e[e.Array=4]="Array",e[e.Object=5]="Object"}(l||(l={}));const m={Undefined:p(l.Undefined),String:p(l.String),Buffer:p(l.Buffer),VSBuffer:p(l.VSBuffer),Array:p(l.Array),Object:p(l.Object)},g="undefined"!=typeof Buffer;function v(e,t){if(void 0===t)e.write(m.Undefined);else if("string"==typeof t){const r=a.VSBuffer.fromString(t);e.write(m.String),e.write(f(r.byteLength)),e.write(r)}else if(g&&Buffer.isBuffer(t)){const r=a.VSBuffer.wrap(t);e.write(m.Buffer),e.write(f(r.byteLength)),e.write(r)}else if(t instanceof a.VSBuffer)e.write(m.VSBuffer),
  e.write(f(t.byteLength)),e.write(t);else if(Array.isArray(t)){e.write(m.Array),e.write(f(t.length));for(const r of t)v(e,r)}else{const r=a.VSBuffer.fromString(JSON.stringify(t));e.write(m.Object),e.write(f(r.byteLength)),e.write(r)}}function w(e){switch(e.read(1).readUInt8(0)){case l.Undefined:return;case l.String:return e.read(d(e)).toString();case l.Buffer:return e.read(d(e)).buffer;case l.VSBuffer:return e.read(d(e));case l.Array:{const t=d(e),r=[];for(let n=0;n<t;n++)r.push(w(e));return r}case l.Object:return JSON.parse(e.read(d(e)).toString())}}class y{constructor(e,t,r=1e3){this.protocol=e,this.ctx=t,this.timeoutDelay=r,this.channels=new Map,this.activeRequests=new Map,this.pendingRequests=new Map,this.protocolListener=this.protocol.onMessage(e=>this.onRawMessage(e)),this.sendResponse({type:200})}registerChannel(e,t){this.channels.set(e,t),setTimeout(()=>this.flushPendingRequests(e),0)}sendResponse(e){switch(e.type){case 200:return this.send([e.type]);case 201:case 202:case 204:case 203:
  return this.send([e.type,e.id],e.data)}}send(e,t){const r=new h;v(r,e),v(r,t),this.sendBuffer(r.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onRawMessage(e){const t=new u(e),r=w(t),n=w(t),s=r[0];switch(s){case 100:return this.onPromise({type:s,id:r[1],channelName:r[2],name:r[3],arg:n});case 102:return this.onEventListen({type:s,id:r[1],channelName:r[2],name:r[3],arg:n});case 101:case 103:return this.disposeActiveRequest({type:s,id:r[1]})}}onPromise(e){const t=this.channels.get(e.channelName);if(!t)return void this.collectPendingRequest(e);const r=new i.CancellationTokenSource;let s;try{s=t.call(this.ctx,e.name,e.arg,r.token)}catch(e){s=Promise.reject(e)}const o=e.id;s.then(t=>{this.sendResponse({id:o,data:t,type:201}),this.activeRequests.delete(e.id)},t=>{t instanceof Error?this.sendResponse({id:o,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:202}):this.sendResponse({id:o,data:t,type:203}),this.activeRequests.delete(e.id)})
  ;const a=n.toDisposable(()=>r.cancel());this.activeRequests.set(e.id,a)}onEventListen(e){const t=this.channels.get(e.channelName);if(!t)return void this.collectPendingRequest(e);const r=e.id,n=t.listen(this.ctx,e.name,e.arg)(e=>this.sendResponse({id:r,data:e,type:204}));this.activeRequests.set(e.id,n)}disposeActiveRequest(e){const t=this.activeRequests.get(e.id);t&&(t.dispose(),this.activeRequests.delete(e.id))}collectPendingRequest(e){let t=this.pendingRequests.get(e.channelName);t||(t=[],this.pendingRequests.set(e.channelName,t));const r=setTimeout(()=>{console.error(`Unknown channel: ${e.channelName}`),100===e.type&&this.sendResponse({id:e.id,data:{name:"Unknown channel",message:`Channel name '${e.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);t.push({request:e,timeoutTimer:r})}flushPendingRequests(e){const t=this.pendingRequests.get(e);if(t){for(const e of t)switch(clearTimeout(e.timeoutTimer),e.request.type){case 100:this.onPromise(e.request);break
  ;case 102:this.onEventListen(e.request)}this.pendingRequests.delete(e)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelServer=y;class b{constructor(e){this.protocol=e,this.state=c.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new r.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(e=>this.onBuffer(e))}getChannel(e){const t=this;return{call:(r,n,s)=>t.requestPromise(e,r,n,s),listen:(r,n)=>t.requestEvent(e,r,n)}}requestPromise(e,t,r,a=i.CancellationToken.None){const c=this.lastRequestId++,l={id:c,type:100,channelName:e,name:t,arg:r};if(a.isCancellationRequested)return Promise.reject(o.canceled());let u;return new Promise((e,t)=>{if(a.isCancellationRequested)return t(o.canceled());let r=s.createCancelablePromise(e=>this.whenInitialized());r.then(()=>{r=null
  ;this.handlers.set(c,r=>{switch(r.type){case 201:this.handlers.delete(c),e(r.data);break;case 202:this.handlers.delete(c);const n=new Error(r.data.message);n.stack=r.data.stack,n.name=r.data.name,t(n);break;case 203:this.handlers.delete(c),t(r.data)}}),this.sendRequest(l)});const i=()=>{r?(r.cancel(),r=null):this.sendRequest({id:c,type:101}),t(o.canceled())},h=a.onCancellationRequested(i);u=n.combinedDisposable(n.toDisposable(i),h),this.activeRequests.add(u)}).finally(()=>this.activeRequests.delete(u))}requestEvent(e,t,n){const i=this.lastRequestId++,o={id:i,type:102,channelName:e,name:t,arg:n};let a=null;const c=new r.Emitter({onFirstListenerAdd:()=>{(a=s.createCancelablePromise(e=>this.whenInitialized())).then(()=>{a=null,this.activeRequests.add(c),this.sendRequest(o)})},onLastListenerRemove:()=>{a?(a.cancel(),a=null):(this.activeRequests.delete(c),this.sendRequest({id:i,type:103}))}});return this.handlers.set(i,e=>c.fire(e.data)),c.event}sendRequest(e){switch(e.type){case 100:case 102:
  return this.send([e.type,e.id,e.channelName,e.name],e.arg);case 101:case 103:return this.send([e.type,e.id])}}send(e,t){const r=new h;v(r,e),v(r,t),this.sendBuffer(r.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onBuffer(e){const t=new u(e),r=w(t),n=w(t);switch(r[0]){case 200:return this.onResponse({type:r[0]});case 201:case 202:case 204:case 203:return this.onResponse({type:r[0],id:r[1],data:n})}}onResponse(e){if(200===e.type)return this.state=c.Idle,void this._onDidInitialize.fire();const t=this.handlers.get(e.id);t&&t(e)}whenInitialized(){return this.state===c.Idle?Promise.resolve():r.Event.toPromise(this.onDidInitialize)}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelClient=b;t.IPCServer=class{constructor(e){this.channels=new Map,this._connections=new Set,this._onDidChangeConnections=new r.Emitter,this.onDidChangeConnections=this._onDidChangeConnections.event,
  e(({protocol:e,onDidClientDisconnect:t})=>{r.Event.once(e.onMessage)(r=>{const n=w(new u(r)),s=new y(e,n),i=new b(e);this.channels.forEach((e,t)=>s.registerChannel(t,e));const o={channelServer:s,channelClient:i,ctx:n};this._connections.add(o),this._onDidChangeConnections.fire(o),t(()=>{s.dispose(),i.dispose(),this._connections.delete(o)})})})}get connections(){const e=[];return this._connections.forEach(t=>e.push(t)),e}getChannel(e,t){const r=this;return{call:(n,s,i)=>_(t.routeCall(r,n,s).then(t=>t.channelClient.getChannel(e))).call(n,s,i),listen:(n,s)=>_(t.routeEvent(r,n,s).then(t=>t.channelClient.getChannel(e))).listen(n,s)}}registerChannel(e,t){this.channels.set(e,t),this._connections.forEach(r=>{r.channelServer.registerChannel(e,t)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidChangeConnections.dispose()}};function _(e){return{call:(t,r,n)=>e.then(e=>e.call(t,r,n)),listen(t,n){const s=new r.Relay;return e.then(e=>s.input=e.listen(t,n)),s.event}}}t.IPCClient=class{constructor(e,t){
  const r=new h;v(r,t),e.send(r.buffer),this.channelClient=new b(e),this.channelServer=new y(e,t)}getChannel(e){return this.channelClient.getChannel(e)}registerChannel(e,t){this.channelServer.registerChannel(e,t)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}},t.getDelayedChannel=_,t.getNextTickChannel=function(e){let t=!1;return{call:(r,n,i)=>t?e.call(r,n,i):s.timeout(0).then(()=>t=!0).then(()=>e.call(r,n,i)),listen(n,i){if(t)return e.listen(n,i);const o=new r.Relay;return s.timeout(0).then(()=>t=!0).then(()=>o.input=e.listen(n,i)),o.event}}};t.StaticRouter=class{constructor(e){this.fn=e}routeCall(e){return this.route(e)}routeEvent(e){return this.route(e)}async route(e){for(const t of e.connections)if(await Promise.resolve(this.fn(t.ctx)))return Promise.resolve(t);return await r.Event.toPromise(e.onDidChangeConnections),await this.route(e)}}})),define(e[30],t([0,1,41,44,4,3,2]),(function(e,t,r,n,s,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=0,c=[a,[]]
  ;function l(e,t,r,n){if(!e||!t)return c;const s=e.length,i=t.length;if(s<i)return c;const o=e.toLowerCase();if(!n){if(-1===o.indexOf(r))return c}return function(e,t,r,n,s,i){const o=[],c=[];for(let l=0;l<r;l++){const r=l*i,h=r-i,f=l>0,d=e[l],p=t[l];for(let e=0;e<i;e++){const t=e>0,i=r+e,l=i-1,m=h+e-1,g=t?o[l]:0,v=f&&t?o[m]:0,w=f&&t?c[m]:0;let y;(y=!v&&f?0:u(d,p,n,s,e,w))&&v+y>=g?(c[i]=w+1,o[i]=v+y):(c[i]=a,o[i]=g)}}const l=[];let h=r-1,f=i-1;for(;h>=0&&f>=0;){c[h*i+f]===a?f--:(l.push(f),h--,f--)}return[o[r*i-1],l.reverse()]}(t,r,i,e,o,s)}function u(e,t,r,s,i,o){let a=0;if(t!==s[i])return a;if(a+=1,o>0&&(a+=5*o),e===r[i]&&(a+=1),0===i)a+=8;else{const e=function(e){switch(e){case 47:case 92:return 5;case 95:case 45:case 46:case 32:case 39:case 34:case 58:return 4;default:return 0}}(r.charCodeAt(i-1));e?a+=e:n.isUpper(r.charCodeAt(i))&&(a+=1)}return a}t.score=l;const h=Object.freeze({score:0}),f=1<<18,d=1<<17,p=65536,m=32768;function g(e,t,r,a,c){if(!e||!t.value)return h;const u=a.getItemLabel(e);if(!u)return h
  ;const g=a.getItemDescription(e);let w;const y=c[w=g?`${u}${g}${t.value}${r}`:`${u}${t.value}${r}`];if(y)return y;const b=function(e,t,r,a,c){if(r&&(i.isLinux?a.original===r:o.equalsIgnoreCase(a.original,r)))return{score:f,labelMatch:[{start:0,end:e.length}],descriptionMatch:t?[{start:0,end:t.length}]:void 0};if(!r||!a.containsPathSeparator){const t=n.matchesPrefix(a.value,e);if(t)return{score:d,labelMatch:t};const r=n.matchesCamelCase(a.value,e);if(r)return{score:p,labelMatch:r};const[s,i]=l(e,a.value,a.lowercase,c);if(s)return{score:s+m,labelMatch:v(i)}}if(t){let n=t;r&&(n=`${t}${s.sep}`);const i=n.length,o=`${n}${e}`,[u,h]=l(o,a.value,a.lowercase,c);if(u){const e=v(h),t=[],r=[];return e.forEach(e=>{e.start<i&&e.end>i?(t.push({start:0,end:e.end-i}),r.push({start:e.start,end:i})):e.start>=i?t.push({start:e.start-i,end:e.end-i}):r.push(e)}),{score:u,labelMatch:t,descriptionMatch:r}}}return h}(u,g,a.getItemPath(e),t,r);return c[w]=b,b}function v(e){let t,r=[];if(!e)return r
  ;for(const n of e)t&&t.end===n?t.end+=1:(t={start:n,end:n+1},r.push(t));return r}function w(e,t,r){let n=-1,s=-1;if(t.descriptionMatch&&t.descriptionMatch.length?n=t.descriptionMatch[0].start:t.labelMatch&&t.labelMatch.length&&(n=t.labelMatch[0].start),t.labelMatch&&t.labelMatch.length){if(s=t.labelMatch[t.labelMatch.length-1].end,t.descriptionMatch&&t.descriptionMatch.length){const t=r.getItemDescription(e);t&&(s+=t.length)}}else t.descriptionMatch&&t.descriptionMatch.length&&(s=t.descriptionMatch[t.descriptionMatch.length-1].end);return s-n}function y(e,t,n,s){const i=s.getItemLabel(e)||"",o=s.getItemLabel(t)||"",a=s.getItemDescription(e),c=s.getItemDescription(t),l=i.length+(a?a.length:0),u=o.length+(c?c.length:0);if(l!==u)return l-u;const h=s.getItemPath(e),f=s.getItemPath(t);return h&&f&&h.length!==f.length?h.length-f.length:i!==o?r.compareAnything(i,o,n.value):a&&c&&a!==c?r.compareAnything(a,c,n.value):h&&f&&h!==f?r.compareAnything(h,f,n.value):0}t.prepareQuery=function(e){e||(e="")
  ;let t=o.stripWildcards(e).replace(/\s/g,"");i.isWindows&&(t=t.replace(/\//g,s.sep));const r=t.toLowerCase(),n=t.indexOf(s.sep)>=0;return{original:e,value:t,lowercase:r,containsPathSeparator:n}},t.scoreItem=g,t.compareItemsByScore=function(e,t,r,n,s,i,o=y){const a=g(e,r,n,s,i),c=g(t,r,n,s,i),l=a.score,u=c.score;if((l===f||u===f)&&l!==u)return l===f?-1:1;if(l===d||u===d){if(l!==u)return l===d?-1:1;const r=s.getItemLabel(e)||"",n=s.getItemLabel(t)||"";if(r.length!==n.length)return r.length-n.length}if(l===p||u===p){if(l!==u)return l===p?-1:1;const r=s.getItemLabel(e)||"",n=s.getItemLabel(t)||"",i=function(e,t){if(!((e||t)&&(e&&e.length||t&&t.length)))return 0;if(!t||!t.length)return-1;if(!e||!e.length)return 1;const r=e[0].start,n=e[e.length-1].end-r,s=t[0].start,i=t[t.length-1].end-s;return n===i?0:i<n?1:-1}(a.labelMatch,c.labelMatch);if(0!==i)return i;if(r.length!==n.length)return r.length-n.length}if(l>m||u>m){if(u<m)return-1;if(l<m)return 1}if(l!==u)return l>u?-1:1;const h=w(e,a,s),v=w(t,c,s)
  ;return h&&v&&h!==v?v>h?-1:1:o(e,t,r,s)},t.fallbackCompare=y})),define(e[51],t([31,32]),(function(e,t){return e.create("vs/base/common/errorMessage",t)})),define(e[33],t([0,1,51,13,5]),(function(e,t,r,n,s){"use strict";function i(e,t){return e.message?t&&(e.stack||e.stacktrace)?r.localize(0,null,a(e),o(e.stack)||o(e.stacktrace)):a(e):r.localize(1,null)}function o(e){return Array.isArray(e)?e.join("\n"):e}function a(e){return"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?r.localize(2,null,e.message):e.message}Object.defineProperty(t,"__esModule",{value:!0}),t.toErrorMessage=function e(t=null,o=!1){if(!t)return r.localize(3,null);if(Array.isArray(t)){const n=s.coalesce(t),i=e(n[0],o);return n.length>1?r.localize(4,null,i,n.length):i}if(n.isString(t))return t;if(t.detail){const e=t.detail;if(e.error)return i(e.error,o);if(e.exception)return i(e.exception,o)}return t.stack?i(t,o):t.message?t.message:r.localize(5,null)}})),define(e[52],t([31,32]),(function(e,t){
  return e.create("vs/base/node/processes",t)})),define(e[53],t([0,1,4,21,49,16,52,13,12,8,3,48,42]),(function(e,t,r,n,s,i,o,a,c,l,u,h,f){"use strict";function d(e){switch(e){case 0:return 0;case 1:return 2;case 128:return 3;default:return 1}}function p(){return process.env.comspec||"cmd.exe"}Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowsShell=p;class m{constructor(e,t,r,n){if(void 0!==t&&void 0!==r&&void 0!==n)this.cmd=e,this.args=t,this.shell=r,this.options=n;else{const t=e;this.cmd=t.command,this.shell=t.isShellCommand,this.args=t.args.slice(0),this.options=t.options||{}}if(this.childProcess=null,this.childProcessPromise=null,this.terminateRequested=!1,this.options.env){const e=Object.create(null);Object.keys(process.env).forEach(t=>{e[t]=process.env[t]}),Object.keys(this.options.env).forEach(t=>{e[t]=this.options.env[t]}),this.options.env=e}}getSanitizedCommand(){let e=this.cmd.toLowerCase();const t=e.lastIndexOf(r.sep);return-1!==t&&(e=e.substring(t+1)),m.WellKnowCommands[e]?e:"other"}
  start(e){return u.isWindows&&(this.options&&this.options.cwd&&l.isUNC(this.options.cwd)||!this.options&&l.isUNC(process.cwd()))?Promise.reject(new Error(o.localize(0,null))):this.useExec().then(t=>{let r,n;const s=new Promise((e,t)=>{r=e,n=t});if(t){let t=this.cmd;this.args&&(t=t+" "+this.args.join(" ")),this.childProcess=i.exec(t,this.options,(t,s,i)=>{this.childProcess=null;t&&t.killed?n({killed:this.terminateRequested,stdout:s.toString(),stderr:i.toString()}):this.handleExec(r,e,t,s,i)})}else{let t=null;const s=t=>{this.childProcess=null,this.childProcessPromise=null,this.handleClose(t,r,e,n);const s={terminated:this.terminateRequested};a.isNumber(t)&&(s.cmdCode=t),r(s)};if(this.shell&&u.isWindows){const e=c.deepClone(this.options);e.windowsVerbatimArguments=!0,e.detached=!1;let r=!1,n=!1;const s=[];let o=this.ensureQuotes(this.cmd);s.push(o.value),r=o.quoted,this.args&&this.args.forEach(e=>{o=this.ensureQuotes(e),s.push(o.value),n=n&&o.quoted});const a=["/s","/c"]
  ;r?n?a.push('"'+s.join(" ")+'"'):s.length>1?a.push('"'+s[0]+'" '+s.slice(1).join(" ")):a.push('"'+s[0]+'"'):a.push(s.join(" ")),t=i.spawn(p(),a,e)}else this.cmd&&(t=i.spawn(this.cmd,this.args,this.options));t&&(this.childProcess=t,this.childProcessPromise=Promise.resolve(t),this.pidResolve&&(this.pidResolve(a.isNumber(t.pid)?t.pid:-1),this.pidResolve=void 0),t.on("error",e=>{this.childProcess=null,n({terminated:this.terminateRequested,error:e})}),t.pid&&(this.childProcess.on("close",s),this.handleSpawn(t,r,e,n,!0)))}return s})}handleClose(e,t,r,n){}ensureQuotes(e){return m.regexp.test(e)?{value:'"'+e+'"',quoted:!0}:{value:e,quoted:e.length>0&&'"'===e[0]&&'"'===e[e.length-1]}}get pid(){return this.childProcessPromise?this.childProcessPromise.then(e=>e.pid,e=>-1):new Promise(e=>{this.pidResolve=e})}terminate(){return this.childProcessPromise?this.childProcessPromise.then(t=>(this.terminateRequested=!0,function(t,r){if(u.isWindows)try{const e={stdio:["pipe","pipe","ignore"]};r&&(e.cwd=r)
  ;const n=i.execFile("taskkill",["/T","/F","/PID",t.pid.toString()],e);return new Promise((e,t)=>{n.once("error",t=>{e({success:!1,error:t})}),n.once("exit",(t,r)=>{e(0===t?{success:!0}:{success:!1,code:null!==t?t:1})})})}catch(e){return Promise.resolve({success:!1,error:e,code:e.status?d(e.status):1})}else if(u.isLinux||u.isMacintosh)try{const r=f.getPathFromAmdModule(e,"vs/base/node/terminateProcess.sh");return new Promise((e,n)=>{i.execFile(r,[t.pid.toString()],{encoding:"utf8",shell:!0},(t,r,n)=>{e(t?{success:!1,error:t}:{success:!0})})})}catch(e){return Promise.resolve({success:!1,error:e})}else t.kill("SIGKILL");return Promise.resolve({success:!0})}(t,this.options.cwd).then(e=>(e.success&&(this.childProcess=null),e))),e=>({success:!0})):Promise.resolve({success:!0})}useExec(){return new Promise((e,t)=>{if(!this.shell||!u.isWindows)return e(!1);const r=i.spawn(p(),["/s","/c"]);r.on("error",t=>e(!0)),r.on("exit",t=>e(!1))})}}t.AbstractProcess=m,m.WellKnowCommands={ant:!0,cmake:!0,eslint:!0,gradle:!0,
  grunt:!0,gulp:!0,jake:!0,jenkins:!0,jshint:!0,make:!0,maven:!0,msbuild:!0,msc:!0,nmake:!0,npm:!0,rake:!0,tsc:!0,xbuild:!0},m.regexp=/^[^"].* .*[^"]/;t.LineProcess=class extends m{constructor(e,t,r,n){super(e,t,r,n),this.stdoutLineDecoder=null,this.stderrLineDecoder=null}handleExec(e,t,r,n,s){[n,s].forEach((e,r)=>{const n=new h.LineDecoder;n.write(e).forEach(e=>{t({line:e,source:0===r?0:1})});const s=n.end();s&&t({line:s,source:0===r?0:1})}),e({terminated:this.terminateRequested,error:r})}handleSpawn(e,t,r,n,s){const i=new h.LineDecoder,o=new h.LineDecoder;e.stdout.on("data",e=>{i.write(e).forEach(e=>r({line:e,source:0}))}),e.stderr.on("data",e=>{o.write(e).forEach(e=>r({line:e,source:1}))}),this.stdoutLineDecoder=i,this.stderrLineDecoder=o}handleClose(e,t,r,n){const s=this.stdoutLineDecoder?this.stdoutLineDecoder.end():null;s&&r({line:s,source:0});const i=this.stderrLineDecoder?this.stderrLineDecoder.end():null;i&&r({line:i,source:1})}},t.createQueuedSender=function(e){let t=[],r=!1;const n=function(s){
  if(r)return void t.push(s);e.send(s,e=>{if(e&&console.error(e),r=!1,t.length>0){const e=t.slice(0);t=[],e.forEach(e=>n(e))}})&&!u.isWindows||(r=!0)};return{send:n}},function(e){e.findExecutable=async function(e,t,i){if(r.isAbsolute(e))return e;if(void 0===t&&(t=process.cwd()),"."!==r.dirname(e))return r.join(t,e);if(void 0===i&&a.isString(process.env.PATH)&&(i=process.env.PATH.split(r.delimiter)),void 0===i||0===i.length)return r.join(t,e);async function o(e){return!!await s.promisify(n.exists)(e)&&!(await s.promisify(n.stat)(e)).isDirectory}for(let n of i){let s;if(s=r.isAbsolute(n)?r.join(n,e):r.join(t,n,e),await o(s))return s;let i=s+".com";if(await o(i))return i;if(i=s+".exe",await o(i))return i}return r.join(t,e)}}(t.win32||(t.win32={}))})),define(e[54],t([0,1,16,10,11,12,6,53,50,43,17,9,27]),(function(e,t,r,n,s,i,o,a,c,l,u,h,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class d extends c.ChannelServer{constructor(e){super({send:e=>{try{
  process.send&&process.send(e.buffer.toString("base64"))}catch(e){}},onMessage:o.Event.fromNodeEventEmitter(process,"message",e=>f.VSBuffer.wrap(Buffer.from(e,"base64")))},e),process.once("disconnect",()=>this.dispose())}}t.Server=d;t.Client=class{constructor(e,t){this.modulePath=e,this.options=t,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new o.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const r=t&&t.timeout?t.timeout:6e4;this.disposeDelayer=new s.Delayer(r),this.child=null,this._client=null}getChannel(e){const t=this;return{call:(r,n,s)=>t.requestPromise(e,r,n,s),listen:(r,n)=>t.requestEvent(e,r,n)}}requestPromise(e,t,r,i=u.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(i.isCancellationRequested)return Promise.reject(h.canceled());this.disposeDelayer.cancel();const o=this.getCachedChannel(e),a=s.createCancelablePromise(e=>o.call(t,r,e)),c=i.onCancellationRequested(()=>a.cancel()),l=n.toDisposable(()=>a.cancel())
  ;return this.activeRequests.add(l),a.finally(()=>{c.dispose(),this.activeRequests.delete(l),0===this.activeRequests.size&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),a}requestEvent(e,t,r){if(!this.disposeDelayer)return o.Event.None;let n;this.disposeDelayer.cancel();const s=new o.Emitter({onFirstListenerAdd:()=>{const i=this.getCachedChannel(e).listen(t,r);n=i(s.fire,s),this.activeRequests.add(n)},onLastListenerRemove:()=>{this.activeRequests.delete(n),n.dispose(),0===this.activeRequests.size&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return s.event}get client(){if(!this._client){const e=this.options&&this.options.args?this.options.args:[],t=Object.create(null);t.env=i.assign(i.deepClone(process.env),{VSCODE_PARENT_PID:String(process.pid)}),this.options&&this.options.env&&(t.env=i.assign(t.env,this.options.env)),this.options&&this.options.freshExecArgv&&(t.execArgv=[]),
  this.options&&"number"==typeof this.options.debug&&(t.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&"number"==typeof this.options.debugBrk&&(t.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),this.child=r.fork(this.modulePath,e,t);const s=new o.Emitter;o.Event.fromNodeEventEmitter(this.child,"message",e=>e)(e=>{l.isRemoteConsoleLog(e)?l.log(e,`IPC Library: ${this.options.serverName}`):s.fire(f.VSBuffer.wrap(Buffer.from(e,"base64")))});const u=this.options.useQueue?a.createQueuedSender(this.child):this.child,h={send:e=>this.child&&this.child.connected&&u.send(e.buffer.toString("base64")),onMessage:s.event};this._client=new c.ChannelClient(h);const d=()=>this.disposeClient();process.once("exit",d),this.child.on("error",e=>console.warn('IPC "'+this.options.serverName+'" errored with '+e)),this.child.on("exit",(e,t)=>{process.removeListener("exit",d),this.activeRequests.forEach(e=>n.dispose(e)),this.activeRequests.clear(),
  0!==e&&"SIGTERM"!==t&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+e+" and signal "+t),this.disposeDelayer&&this.disposeDelayer.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:e,signal:t})})}return this._client}getCachedChannel(e){let t=this.channels.get(e);return t||(t=this.client.getChannel(e),this.channels.set(e,t)),t}disposeClient(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer&&(this.disposeDelayer.cancel(),this.disposeDelayer=void 0),this.disposeClient(),this.activeRequests.clear()}}})),define(e[55],t([31,32]),(function(e,t){return e.create("vs/workbench/common/views",t)})),define(e[19],t([0,1]),(function(e,t){"use strict";var r;function n(e,t,n,s){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n,optional:s}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n,optional:s}],t[r.DI_TARGET]=t)}function s(e){
  if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,r,s){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,s,!1)};return t.toString=()=>e,r.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r=t._util||(t._util={})),t.IInstantiationService=s("instantiationService"),t.createDecorator=s,t.optional=function(e){return function(t,r,s){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,s,!0)}}})),define(e[56],t([0,1,2,19]),(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Defined=1]="Defined",e[e.Not=2]="Not",e[e.Equals=3]="Equals",e[e.NotEquals=4]="NotEquals",e[e.And=5]="And",e[e.Regex=6]="Regex",e[e.NotRegex=7]="NotRegex",e[e.Or=8]="Or"
  }(t.ContextKeyExprType||(t.ContextKeyExprType={}));class s{static has(e){return o.create(e)}static equals(e,t){return a.create(e,t)}static notEquals(e,t){return c.create(e,t)}static regex(e,t){return u.create(e,t)}static not(e){return l.create(e)}static and(...e){return f.create(e)}static or(...e){return d.create(e)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let r=e.split("||");return d.create(r.map(e=>this._deserializeAndExpression(e,t)))}static _deserializeAndExpression(e,t){let r=e.split("&&");return f.create(r.map(e=>this._deserializeOne(e,t)))}static _deserializeOne(e,t){if((e=e.trim()).indexOf("!=")>=0){let r=e.split("!=");return c.create(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("==")>=0){let r=e.split("==");return a.create(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("=~")>=0){let r=e.split("=~");return u.create(r[0].trim(),this._deserializeRegexValue(r[1],t))}
  return/^\!\s*/.test(e)?l.create(e.substr(1).trim()):o.create(e)}static _deserializeValue(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;let r=/^'([^']*)'$/.exec(e);return r?r[1].trim():e}static _deserializeRegexValue(e,t){if(r.isFalsyOrWhitespace(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=e.indexOf("/"),s=e.lastIndexOf("/");if(n===s||n<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let i=e.slice(n+1,s),o="i"===e[s+1]?"i":"";try{return new RegExp(i,o)}catch(r){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${r}`);return console.warn(`bad regexp-value '${e}', parse error: ${r}`),null}}}function i(e,t){let r=e.getType(),n=t.getType();if(r!==n)return r-n;switch(r){case 1:case 2:case 3:case 4:case 6:case 7:case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}
  t.ContextKeyExpr=s;class o{constructor(e){this.key=e}static create(e){return new o(e)}getType(){return 1}cmp(e){return this.key<e.key?-1:this.key>e.key?1:0}equals(e){return e instanceof o&&this.key===e.key}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return l.create(this.key)}}t.ContextKeyDefinedExpr=o;class a{constructor(e,t){this.key=e,this.value=t}static create(e,t){return"boolean"==typeof t?t?o.create(e):l.create(e):new a(e,t)}getType(){return 3}cmp(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0}equals(e){return e instanceof a&&(this.key===e.key&&this.value===e.value)}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return this.key+" == '"+this.value+"'"}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return c.create(this.key,this.value)}}t.ContextKeyEqualsExpr=a;class c{constructor(e,t){this.key=e,this.value=t}
  static create(e,t){return"boolean"==typeof t?t?l.create(e):o.create(e):new c(e,t)}getType(){return 4}cmp(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0}equals(e){return e instanceof c&&(this.key===e.key&&this.value===e.value)}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return this.key+" != '"+this.value+"'"}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return a.create(this.key,this.value)}}t.ContextKeyNotEqualsExpr=c;class l{constructor(e){this.key=e}static create(e){return new l(e)}getType(){return 2}cmp(e){return this.key<e.key?-1:this.key>e.key?1:0}equals(e){return e instanceof l&&this.key===e.key}evaluate(e){return!e.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return o.create(this.key)}}t.ContextKeyNotExpr=l;class u{constructor(e,t){this.key=e,this.regexp=t}static create(e,t){return new u(e,t)}getType(){return 6}cmp(e){
  if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return t<r?-1:t>r?1:0}equals(e){if(e instanceof u){const t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return this.key===e.key&&t===r}return!1}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return h.create(this)}}t.ContextKeyRegexExpr=u;class h{constructor(e){this._actual=e}static create(e){return new h(e)}getType(){return 7}cmp(e){return this._actual.cmp(e._actual)}equals(e){return e instanceof h&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}map(e){return new h(this._actual.map(e))}negate(){return this._actual
  }}t.ContextKeyNotRegexExpr=h;class f{constructor(e){this.expr=e}static create(e){const t=f._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new f(t)}getType(){return 5}cmp(e){if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,r=this.expr.length;t<r;t++){const r=i(this.expr[t],e.expr[t]);if(0!==r)return r}return 0}equals(e){if(e instanceof f){if(this.expr.length!==e.expr.length)return!1;for(let t=0,r=this.expr.length;t<r;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,r=this.expr.length;t<r;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e){let t=[];if(e){for(let r=0,n=e.length;r<n;r++){let n=e[r];if(n)if(n instanceof f)t=t.concat(n.expr);else{if(n instanceof d)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');t.push(n)}}t.sort(i)}return t}serialize(){
  return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}map(e){return new f(this.expr.map(t=>t.map(e)))}negate(){let e=[];for(let t of this.expr)e.push(t.negate());return d.create(e)}}t.ContextKeyAndExpr=f;class d{constructor(e){this.expr=e}static create(e){const t=d._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new d(t)}getType(){return 8}equals(e){if(e instanceof d){if(this.expr.length!==e.expr.length)return!1;for(let t=0,r=this.expr.length;t<r;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,r=this.expr.length;t<r;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e){let t=[];if(e){for(let r=0,n=e.length;r<n;r++){let n=e[r];n&&(n instanceof d?t=t.concat(n.expr):t.push(n))}t.sort(i)}return t}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}map(e){return new d(this.expr.map(t=>t.map(e)))}
  negate(){let e=[];for(let t of this.expr)e.push(t.negate());const t=e=>e instanceof d?e.expr:[e];for(;e.length>1;){const r=e.shift(),n=e.shift(),i=[];for(const e of t(r))for(const r of t(n))i.push(s.and(e,r));e.unshift(s.or(...i))}return e[0]}}t.ContextKeyOrExpr=d;t.RawContextKey=class extends o{constructor(e,t){super(e),this._defaultValue=t}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return s.not(this.key)}isEqualTo(e){return s.equals(this.key,e)}notEqualsTo(e){return s.notEquals(this.key,e)}},t.IContextKeyService=n.createDecorator("contextKeyService"),t.SET_CONTEXT_COMMAND_ID="setContext"})),define(e[57],t([0,1,19,10,3,6]),(function(e,t,r,n,s,i){"use strict";function o(){return(new Date).toISOString()}var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=r.createDecorator("logService"),t.ILoggerService=r.createDecorator("loggerService"),function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",
  e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(a=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=a.Info;class c extends n.Disposable{constructor(){super(...arguments),this.level=t.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new i.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}t.AbstractLogService=c;t.ConsoleLogMainService=class extends c{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e),this.useColors=!s.isWindows}trace(e,...t){this.getLevel()<=a.Trace&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}debug(e,...t){this.getLevel()<=a.Debug&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}info(e,...t){
  this.getLevel()<=a.Info&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}warn(e,...t){this.getLevel()<=a.Warning&&(this.useColors?console.warn(`[93m[main ${o()}][0m`,e,...t):console.warn(`[main ${o()}]`,e,...t))}error(e,...t){this.getLevel()<=a.Error&&(this.useColors?console.error(`[91m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}critical(e,...t){this.getLevel()<=a.Critical&&(this.useColors?console.error(`[90m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}dispose(){}flush(){}};t.ConsoleLogService=class extends c{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=a.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=a.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=a.Info&&console.log("%c INFO","color: #33f",e,...t)}warn(e,...t){this.getLevel()<=a.Warning&&console.log("%c WARN","color: #993",e,...t)
  }error(e,...t){this.getLevel()<=a.Error&&console.log("%c  ERR","color: #f33",e,...t)}critical(e,...t){this.getLevel()<=a.Critical&&console.log("%cCRITI","background: #f33; color: white",e,...t)}dispose(){}flush(){}};t.ConsoleLogInMainService=class extends c{constructor(e,r=t.DEFAULT_LOG_LEVEL){super(),this.client=e,this.setLevel(r)}trace(e,...t){this.getLevel()<=a.Trace&&this.client.consoleLog("trace",[e,...t])}debug(e,...t){this.getLevel()<=a.Debug&&this.client.consoleLog("debug",[e,...t])}info(e,...t){this.getLevel()<=a.Info&&this.client.consoleLog("info",[e,...t])}warn(e,...t){this.getLevel()<=a.Warning&&this.client.consoleLog("warn",[e,...t])}error(e,...t){this.getLevel()<=a.Error&&this.client.consoleLog("error",[e,...t])}critical(e,...t){this.getLevel()<=a.Critical&&this.client.consoleLog("critical",[e,...t])}dispose(){}flush(){}};t.MultiplexLogService=class extends c{constructor(e){super(),this.logServices=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){
  for(const t of this.logServices)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const r of this.logServices)r.trace(e,...t)}debug(e,...t){for(const r of this.logServices)r.debug(e,...t)}info(e,...t){for(const r of this.logServices)r.info(e,...t)}warn(e,...t){for(const r of this.logServices)r.warn(e,...t)}error(e,...t){for(const r of this.logServices)r.error(e,...t)}critical(e,...t){for(const r of this.logServices)r.critical(e,...t)}flush(){for(const e of this.logServices)e.flush()}dispose(){for(const e of this.logServices)e.dispose()}};class l extends n.Disposable{constructor(e){super(),this.logService=e,this._register(e)}get onDidChangeLogLevel(){return this.logService.onDidChangeLogLevel}setLevel(e){this.logService.setLevel(e)}getLevel(){return this.logService.getLevel()}trace(e,...t){this.logService.trace(e,...t)}debug(e,...t){this.logService.debug(e,...t)}info(e,...t){this.logService.info(e,...t)}warn(e,...t){this.logService.warn(e,...t)}error(e,...t){this.logService.error(e,...t)}critical(e,...t){
  this.logService.critical(e,...t)}flush(){this.logService.flush()}}t.DelegatedLogService=l;t.NullLogService=class{constructor(){this.onDidChangeLogLevel=(new i.Emitter).event}setLevel(e){}getLevel(){return a.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}critical(e,...t){}dispose(){}flush(){}},t.getLogLevel=function(e){if(e.verbose)return a.Trace;if("string"==typeof e.args.log){switch(e.args.log.toLowerCase()){case"trace":return a.Trace;case"debug":return a.Debug;case"info":return a.Info;case"warn":return a.Warning;case"error":return a.Error;case"critical":return a.Critical;case"off":return a.Off}}return t.DEFAULT_LOG_LEVEL}})),define(e[34],t([0,1,13,37]),(function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Registry=new class{constructor(){this.data=new Map}add(e,t){n.ok(r.isString(e)),n.ok(r.isObject(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}knows(e){return this.data.has(e)}as(e){
  return this.data.get(e)||null}}})),define(e[58],t([0,1,6,56,55,19,10,14,34]),(function(e,t,r,n,s,i,o,a,c){"use strict";var l;Object.defineProperty(t,"__esModule",{value:!0}),t.TEST_VIEW_CONTAINER_ID="workbench.view.extension.test",t.FocusedViewContext=new n.RawContextKey("focusedView",""),function(e){e.ViewContainersRegistry="workbench.registry.view.containers",e.ViewsRegistry="workbench.registry.view"}(l=t.Extensions||(t.Extensions={}));class u{constructor(e,t,r,n){this.id=e,this.hideIfEmpty=t,this.extensionId=r,this.orderDelegate=n}}t.ViewContainer=u;class h extends o.Disposable{constructor(){super(...arguments),this._onDidRegister=this._register(new r.Emitter),this.onDidRegister=this._onDidRegister.event,this._onDidDeregister=this._register(new r.Emitter),this.onDidDeregister=this._onDidDeregister.event,this.viewContainers=new Map}get all(){return a.values(this.viewContainers)}registerViewContainer(e,t,r,n){const s=this.viewContainers.get(e);if(s)return s;const i=new class extends u{constructor(){
  super(e,!!t,r,n)}};return this.viewContainers.set(e,i),this._onDidRegister.fire(i),i}deregisterViewContainer(e){this.viewContainers.get(e.id)&&(this.viewContainers.delete(e.id),this._onDidDeregister.fire(e))}get(e){return this.viewContainers.get(e)}}c.Registry.add(l.ViewContainersRegistry,new h);class f extends o.Disposable{constructor(){super(...arguments),this._onViewsRegistered=this._register(new r.Emitter),this.onViewsRegistered=this._onViewsRegistered.event,this._onViewsDeregistered=this._register(new r.Emitter),this.onViewsDeregistered=this._onViewsDeregistered.event,this._onDidChangeContainer=this._register(new r.Emitter),this.onDidChangeContainer=this._onDidChangeContainer.event,this._viewContainers=[],this._views=new Map}registerViews(e,t){this.addViews(e,t),this._onViewsRegistered.fire({views:e,viewContainer:t})}deregisterViews(e,t){const r=this.removeViews(e,t);r.length&&this._onViewsDeregistered.fire({views:r,viewContainer:t})}moveViews(e,t){a.keys(this._views).forEach(r=>{if(r!==t){
  const n=this.removeViews(e,r);n.length&&(this.addViews(n,t),this._onDidChangeContainer.fire({views:n,from:r,to:t}))}})}getViews(e){return this._views.get(e)||[]}getView(e){for(const t of this._viewContainers){const r=(this._views.get(t)||[]).filter(t=>t.id===e)[0];if(r)return r}return null}getViewContainer(e){for(const t of this._viewContainers){if((this._views.get(t)||[]).filter(t=>t.id===e)[0])return t}return null}addViews(e,t){let r=this._views.get(t);r||(r=[],this._views.set(t,r),this._viewContainers.push(t));for(const n of e){if(r.some(e=>e.id===n.id))throw new Error(s.localize(0,null,n.id,t.id));r.push(n)}}removeViews(e,t){const r=this._views.get(t);if(!r)return[];const n=[],s=[];for(const t of r)-1===e.indexOf(t)?s.push(t):n.push(t);return n.length&&(s.length?this._views.set(t,s):(this._views.delete(t),this._viewContainers.splice(this._viewContainers.indexOf(t),1))),n}}c.Registry.add(l.ViewsRegistry,new f),t.IViewsService=i.createDecorator("viewsService"),function(e){e[e.None=0]="None",
  e[e.Collapsed=1]="Collapsed",e[e.Expanded=2]="Expanded"}(t.TreeItemCollapsibleState||(t.TreeItemCollapsibleState={}))})),define(e[22],t([0,1,5,15,12,8,2,19,58,34,4]),(function(e,t,r,n,s,i,o,a,c,l,u){"use strict";var h;function f(e){return!!e.resource}Object.defineProperty(t,"__esModule",{value:!0}),t.VIEWLET_ID="workbench.view.search",t.PANEL_ID="workbench.view.search",t.VIEW_ID="workbench.view.search",t.VIEW_CONTAINER=l.Registry.as(c.Extensions.ViewContainersRegistry).registerViewContainer(t.VIEWLET_ID,!0),t.ISearchService=a.createDecorator("searchService"),function(e){e[e.file=0]="file",e[e.text=1]="text"}(t.SearchProviderType||(t.SearchProviderType={})),function(e){e[e.File=1]="File",e[e.Text=2]="Text"}(t.QueryType||(t.QueryType={})),t.resultIsMatch=function(e){return!!e.preview},t.isFileMatch=f,t.isProgressMessage=function(e){return!f(e)};t.FileMatch=class{constructor(e){this.resource=e,this.results=[]}};t.TextSearchMatch=class{constructor(e,t,n){if(this.ranges=t,
  !n||1!==n.matchLines||Array.isArray(t)&&1!==t.length||!function(e){return Array.isArray(e)?e[0].startLineNumber===e[0].endLineNumber:e.startLineNumber===e.endLineNumber}(t)){const n=Array.isArray(t)?t[0].startLineNumber:t.startLineNumber;this.preview={text:e,matches:r.mapArrayOrNot(t,e=>new d(e.startLineNumber-n,e.startColumn,e.endLineNumber-n,e.endColumn))}}else{const r=Array.isArray(t)?t[0]:t;e=o.getNLines(e,n.matchLines);const s=Math.floor(n.charsPerLine/5),i=Math.max(r.startColumn-s,0),a=e.substring(i,n.charsPerLine+i),c=r.endLineNumber-r.startLineNumber+1<=n.matchLines?Math.min(a.length,r.endColumn-i):a.length,l=new p(0,r.startColumn-i,c);this.preview={text:a,matches:Array.isArray(t)?[l]:l}}}};class d{constructor(e,t,r,n){this.startLineNumber=e,this.startColumn=t,this.endLineNumber=r,this.endColumn=n}}t.SearchRange=d;class p extends d{constructor(e,t,r){super(e,t,e,r)}}t.OneLineRange=p,t.getExcludes=function(e,t=!0){const r=e&&e.files&&e.files.exclude,n=t&&e&&e.search&&e.search.exclude;if(!r&&!n)return
  ;if(!r||!n)return r||n;let i=Object.create(null);return i=s.mixin(i,s.deepClone(r)),i=s.mixin(i,s.deepClone(n),!0)},t.pathIncludedInQuery=function(e,t){return(!e.excludePattern||!n.match(e.excludePattern,t))&&(!(e.includePattern&&!n.match(e.includePattern,t))&&(!e.usingSearchPaths||!!e.folderQueries&&e.folderQueries.every(e=>{const r=e.folder.fsPath;if(i.isEqualOrParent(t,r)){const s=u.relative(r,t);return!e.includePattern||!!n.match(e.includePattern,s)}return!1})))},function(e){e[e.unknownEncoding=1]="unknownEncoding",e[e.regexParseError=2]="regexParseError",e[e.globParseError=3]="globParseError",e[e.invalidLiteral=4]="invalidLiteral",e[e.rgProcessError=5]="rgProcessError",e[e.other=6]="other"}(h=t.SearchErrorCode||(t.SearchErrorCode={}));class m extends Error{constructor(e,t){super(e),this.code=t}}t.SearchError=m,t.deserializeSearchError=function(e){try{const t=JSON.parse(e);return new m(t.message,t.code)}catch(t){return new m(e,h.other)}},t.serializeSearchError=function(e){const t={message:e.message,
  code:e.code};return new Error(JSON.stringify(t))},t.isSerializedSearchComplete=function(e){return"error"===e.type||"success"===e.type},t.isSerializedSearchSuccess=function(e){return"success"===e.type},t.isSerializedFileMatch=function(e){return!!e.path};t.SerializableFileMatch=class{constructor(e){this.path=e,this.results=[]}addMatch(e){this.results.push(e)}serialize(){return{path:this.path,results:this.results,numMatches:this.results.length}}},t.resolvePatternsForProvider=function(e,t){const r=Object.assign(Object.assign({},e||{}),t||{});return Object.keys(r).filter(e=>{const t=r[e];return"boolean"==typeof t&&t})};t.QueryGlobTester=class{constructor(e,t){this._parsedIncludeExpression=null,this._excludeExpression=Object.assign(Object.assign({},e.excludePattern||{}),t.excludePattern||{}),this._parsedExcludeExpression=n.parse(this._excludeExpression);let r=e.includePattern;t.includePattern&&(r=r?Object.assign(Object.assign({},r),t.includePattern):t.includePattern),r&&(this._parsedIncludeExpression=n.parse(r))}
  includedInQuerySync(e,t,r){return(!this._parsedExcludeExpression||!this._parsedExcludeExpression(e,t,r))&&!(this._parsedIncludeExpression&&!this._parsedIncludeExpression(e,t,r))}includedInQuery(e,t,r){return(this._parsedExcludeExpression?Promise.resolve(this._parsedExcludeExpression(e,t,r)).then(e=>!!e):Promise.resolve(!1)).then(n=>!n&&(this._parsedIncludeExpression?Promise.resolve(this._parsedIncludeExpression(e,t,r)).then(e=>!!e):Promise.resolve(!0))).then(e=>e)}hasSiblingExcludeClauses(){return function(e){for(const t in e)if("boolean"!=typeof e[t])return!0;return!1}(this._excludeExpression)}}})),define(e[35],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t){this.line=e,this.character=t}isBefore(e){return!1}isBeforeOrEqual(e){return!1}isAfter(e){return!1}isAfterOrEqual(e){return!1}isEqual(e){return!1}compareTo(e){return 0}translate(e,t){return new r(0,0)}with(e){return new r(0,0)}}t.Position=r;class n{constructor(e,t,n,s){this.isEmpty=!1,
  this.isSingleLine=!1,this.start=new r(e,t),this.end=new r(n,s)}contains(e){return!1}isEqual(e){return!1}intersection(e){}union(e){return new n(0,0,0,0)}with(e){return new n(0,0,0,0)}}t.Range=n})),define(e[59],t([0,1,4,5,17,33,46,15,7,22,25]),(function(e,t,r,n,s,i,o,a,c,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TextSearchManager=class{constructor(e,t,r){this.query=e,this.provider=t,this.fileUtils=r,this.collector=null,this.isLimitHit=!1,this.resultCount=0}search(e,t){const r=this.query.folderQueries||[],n=new s.CancellationTokenSource;return t.onCancellationRequested(()=>n.cancel()),new Promise((t,s)=>{this.collector=new h(e);let o=!1;const a=(e,t)=>{if(!o&&!this.isLimitHit){const r=this.resultSize(e);f(e)&&"number"==typeof this.query.maxResults&&this.resultCount+r>this.query.maxResults&&(this.isLimitHit=!0,o=!0,n.cancel(),e=this.trimResultToSize(e,this.query.maxResults-this.resultCount));const s=this.resultSize(e);this.resultCount+=s,s>0&&this.collector.add(e,t)}}
  ;Promise.all(r.map((e,t)=>this.searchInFolder(e,e=>a(e,t),n.token))).then(e=>{n.dispose(),this.collector.flush();const r=e.some(e=>!!e&&!!e.limitHit);t({limitHit:this.isLimitHit||r,stats:{type:"textSearchProvider"}})},e=>{n.dispose();const t=i.toErrorMessage(e);s(new Error(t))})})}resultSize(e){const t=e;return Array.isArray(t.ranges)?t.ranges.length:1}trimResultToSize(e,t){const r=Array.isArray(e.ranges)?e.ranges:[e.ranges],n=Array.isArray(e.preview.matches)?e.preview.matches:[e.preview.matches];return{ranges:r.slice(0,t),preview:{matches:n.slice(0,t),text:e.preview.text},uri:e.uri}}searchInFolder(e,t,n){const s=new l.QueryGlobTester(this.query,e),i=[],c={report:n=>{if(!this.validateProviderResult(n))return;const c="file"===e.folder.scheme?a.hasSiblingPromiseFn(()=>this.fileUtils.readdir(o.dirname(n.uri))):void 0,l=o.relativePath(e.folder,n.uri);l&&i.push(s.includedInQuery(l,r.basename(l),c).then(e=>{e&&t(n)}))}},h=this.getSearchOptionsForFolder(e)
  ;return new Promise(e=>u.nextTick(e)).then(()=>this.provider.provideTextSearchResults(function(e){return{isCaseSensitive:e.isCaseSensitive||!1,isRegExp:e.isRegExp||!1,isWordMatch:e.isWordMatch||!1,isMultiline:e.isMultiline||!1,pattern:e.pattern}}(this.query.contentPattern),h,c,n)).then(e=>Promise.all(i).then(()=>e))}validateProviderResult(e){if(f(e))if(Array.isArray(e.ranges)){if(!Array.isArray(e.preview.matches))return console.warn("INVALID - A text search provider match's`ranges` and`matches` properties must have the same type."),!1;if(e.preview.matches.length!==e.ranges.length)return console.warn("INVALID - A text search provider match's`ranges` and`matches` properties must have the same length."),!1}else if(Array.isArray(e.preview.matches))return console.warn("INVALID - A text search provider match's`ranges` and`matches` properties must have the same length."),!1;return!0}getSearchOptionsForFolder(e){
  const t=l.resolvePatternsForProvider(this.query.includePattern,e.includePattern),r=l.resolvePatternsForProvider(this.query.excludePattern,e.excludePattern),n={folder:c.URI.from(e.folder),excludes:r,includes:t,useIgnoreFiles:!e.disregardIgnoreFiles,useGlobalIgnoreFiles:!e.disregardGlobalIgnoreFiles,followSymlinks:!e.ignoreSymlinks,encoding:e.fileEncoding&&this.fileUtils.toCanonicalName(e.fileEncoding),maxFileSize:this.query.maxFileSize,maxResults:this.query.maxResults,previewOptions:this.query.previewOptions,afterContext:this.query.afterContext,beforeContext:this.query.beforeContext};return n.usePCRE2=this.query.usePCRE2,n}};class h{constructor(e){this._onResult=e,this._currentFolderIdx=-1,this._currentFileMatch=null,this._batchedCollector=new d(512,e=>this.sendItems(e))}add(e,t){!this._currentFileMatch||this._currentFolderIdx===t&&o.isEqual(this._currentUri,e.uri)||(this.pushToCollector(),this._currentFileMatch=null),this._currentFileMatch||(this._currentFolderIdx=t,this._currentFileMatch={resource:e.uri,
  results:[]}),this._currentFileMatch.results.push(function(e){return f(e)?{preview:{matches:n.mapArrayOrNot(e.preview.matches,e=>({startLineNumber:e.start.line,startColumn:e.start.character,endLineNumber:e.end.line,endColumn:e.end.character})),text:e.preview.text},ranges:n.mapArrayOrNot(e.ranges,e=>({startLineNumber:e.start.line,startColumn:e.start.character,endLineNumber:e.end.line,endColumn:e.end.character}))}:{text:e.text,lineNumber:e.lineNumber}}(e))}pushToCollector(){const e=this._currentFileMatch&&this._currentFileMatch.results?this._currentFileMatch.results.length:0;this._batchedCollector.addItem(this._currentFileMatch,e)}flush(){this.pushToCollector(),this._batchedCollector.flush()}sendItems(e){this._onResult(e)}}function f(e){return!!e.preview}t.TextSearchResultsCollector=h,t.extensionResultIsMatch=f;class d{constructor(e,t){this.maxBatchSize=e,this.cb=t,this.totalNumberCompleted=0,this.batch=[],this.batchSize=0}addItem(e,t){e&&this.addItemToBatch(e,t)}addItems(e,t){e&&this.addItemsToBatch(e,t)}
  addItemToBatch(e,t){this.batch.push(e),this.batchSize+=t,this.onUpdate()}addItemsToBatch(e,t){this.batch=this.batch.concat(e),this.batchSize+=t,this.onUpdate()}onUpdate(){this.totalNumberCompleted<d.START_BATCH_AFTER_COUNT?this.flush():this.batchSize>=this.maxBatchSize?this.flush():this.timeoutHandle||(this.timeoutHandle=setTimeout(()=>{this.flush()},d.TIMEOUT))}flush(){this.batchSize&&(this.totalNumberCompleted+=this.batchSize,this.cb(this.batch),this.batch=[],this.batchSize=0,this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=0))}}t.BatchedCollector=d,d.TIMEOUT=4e3,d.START_BATCH_AFTER_COUNT=50}));var r=this&&this.__decorate||function(e,t,r,n){var s,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__param||function(e,t){
  return function(r,n){t(r,n,e)}};define(e[36],t([0,1,2,57,22,5,35]),(function(e,t,s,i,o,a,c){"use strict";function l(e){return new o.SearchRange(e.start.line,e.start.character,e.end.line,e.end.character)}function u(e){return new c.Range(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn)}Object.defineProperty(t,"__esModule",{value:!0}),t.anchorGlob=function(e){return s.startsWith(e,"**")||s.startsWith(e,"/")?e:`/${e}`},t.createTextSearchResult=function(e,t,r,n){const s=a.mapArrayOrNot(r,l),i=new o.TextSearchMatch(t,s,n),c=i.preview.matches;return{ranges:a.mapArrayOrNot(s,u),uri:e,preview:{text:i.preview.text,matches:a.mapArrayOrNot(c,u)}}};let h=class{constructor(e){this.logService=e}appendLine(e){this.logService.debug("RipgrepSearchEH#search",e)}};h=r([n(0,i.ILogService)],h),t.OutputChannel=h})),define(e[60],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SearchChannel=class{constructor(e){this.service=e}listen(e,t,r){switch(t){case"fileSearch":
  return this.service.fileSearch(r);case"textSearch":return this.service.textSearch(r)}throw new Error("Event not found")}call(e,t,r){switch(t){case"clearCache":return this.service.clearCache(r)}throw new Error("Call not found")}};t.SearchChannelClient=class{constructor(e){this.channel=e}fileSearch(e){return this.channel.listen("fileSearch",e)}textSearch(e){return this.channel.listen("textSearch",e)}clearCache(e){return this.channel.call("clearCache",e)}}})),define(e[61],t([0,1,29,18,59]),(function(e,t,r,n,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i extends s.TextSearchManager{constructor(e,t,s=n){super(e,t,{readdir:e=>s.readdir(e.fsPath),toCanonicalName:e=>r.toCanonicalName(e)})}}t.NativeTextSearchManager=i})),define(e[62],t([0,1,16,4,20,12,8,3,2,36,63]),(function(e,t,r,n,s,i,o,a,c,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const h=u.rgPath.replace(/\bnode_modules\.asar\b/,"node_modules.asar.unpacked");function f(e,t,r,n=!0){const s=[];let o={}
  ;return e.forEach(e=>{const a=p(i.assign({},e.excludePattern||{},t||{}),n?e.folder.fsPath:void 0,r);s.push(...a.globArgs),a.siblingClauses&&(o=i.assign(o,a.siblingClauses))}),{globArgs:s,siblingClauses:o}}function d(e,t,r=!0){const n=[];return e.forEach(e=>{const s=p(i.assign({},t||{},e.includePattern||{}),r?e.folder.fsPath:void 0);n.push(...s.globArgs)}),n}function p(e,t,r){const n=[],s={};return Object.keys(e).forEach(i=>{if(r&&r.has(i))return;if(!i)return;const o=e[i];i=function(e){return e=c.rtrim(e,"\\"),c.rtrim(e,"/")}(t?m(t,i):i),i=c.startsWith(i,"\\\\")?"\\\\"+i.substr(2).replace(/\\/g,"/"):i.replace(/\\/g,"/"),"boolean"==typeof o&&o?(c.startsWith(i,"\\\\")&&(i+="**"),n.push(g(i))):o&&o.when&&(s[i]=o)}),{globArgs:n,siblingClauses:s}}function m(e,t){return n.isAbsolute(t)?t:n.join(e,t)}function g(e){return"c:/"===o.getRoot(e).toLowerCase()?e.replace(/^c:[/\\]/i,"/"):e}t.spawnRipgrepCmd=function(e,t,n,i){const o=function(e,t,r,n){const i=["--files","--hidden","--case-sensitive"];d([t],r,!1).forEach(e=>{
  const t=l.anchorGlob(e);if(i.push("-g",t),a.isMacintosh){const e=s.normalizeNFD(t);e!==t&&i.push("-g",e)}});const o=f([t],n,void 0,!1);o.globArgs.forEach(e=>{const t=`!${l.anchorGlob(e)}`;if(i.push("-g",t),a.isMacintosh){const e=s.normalizeNFD(t);e!==t&&i.push("-g",e)}}),!1!==t.disregardIgnoreFiles?i.push("--no-ignore"):i.push("--no-ignore-parent");t.ignoreSymlinks||i.push("--follow");e.exists&&i.push("--quiet");i.push("--no-config"),t.disregardGlobalIgnoreFiles&&i.push("--no-ignore-global");return{args:i,siblingClauses:o.siblingClauses}}(e,t,n,i),c=t.folder.fsPath;return{cmd:r.spawn(h,o.args,{cwd:c}),siblingClauses:o.siblingClauses,rgArgs:o,cwd:c}},t.foldersToRgExcludeGlobs=f,t.foldersToIncludeGlobs=d,t.getAbsoluteGlob=m,t.fixDriveC=g})),define(e[64],t([0,1,16,21,4,28,5,33,15,20,12,8,3,26,2,13,18,62,30]),(function(e,t,r,n,s,i,o,a,c,l,u,h,f,d,p,m,g,v,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const y=new Set;process.on("exit",()=>{y.forEach(e=>e())});class b{constructor(e){
  this.normalizedFilePatternLowercase=null,this.maxFilesize=null,this.isCanceled=!1,this.fileWalkSW=null,this.cmdSW=null,this.cmdResultCount=0,this.config=e,this.filePattern=e.filePattern||"",this.includePattern=e.includePattern&&c.parse(e.includePattern),this.maxResults=e.maxResults||null,this.exists=!!e.exists,this.walkedPaths=Object.create(null),this.resultCount=0,this.isLimitHit=!1,this.directoriesWalked=0,this.filesWalked=0,this.errors=[],this.filePattern&&(this.normalizedFilePatternLowercase=w.prepareQuery(this.filePattern).lowercase),this.globalExcludePattern=e.excludePattern&&c.parse(e.excludePattern),this.folderExcludePatterns=new Map,e.folderQueries.forEach(t=>{const r=u.assign({},t.excludePattern||{},this.config.excludePattern||{}),n=t.folder.fsPath;e.folderQueries.map(e=>e.folder.fsPath).filter(e=>e!==n).forEach(e=>{h.isEqualOrParent(e,n)&&(r[s.relative(n,e)]=!0)}),this.folderExcludePatterns.set(n,new _(r,n))})}cancel(){this.isCanceled=!0}walk(e,t,r,n,i){if(this.fileWalkSW=d.StopWatch.create(!1),
  this.isCanceled)return i(null,this.isLimitHit);t.forEach(e=>{const t=s.basename(e.fsPath);this.globalExcludePattern&&this.globalExcludePattern(e.fsPath,t)||this.matchFile(r,{relativePath:e.fsPath,basename:t})}),this.cmdSW=d.StopWatch.create(!1),this.parallel(e,(e,t)=>{this.call(this.cmdTraversal,this,e,r,n,e=>{if(e){const r=a.toErrorMessage(e);console.error(r),this.errors.push(r),t(e,void 0)}else t(null,void 0)})},(e,t)=>{this.fileWalkSW.stop();const r=e?o.coalesce(e)[0]:null;i(r,this.isLimitHit)})}parallel(e,t,r){const n=new Array(e.length),s=new Array(e.length);let i=!1,o=0;if(0===e.length)return r(null,[]);e.forEach((a,c)=>{t(a,(t,a)=>{if(t?(i=!0,n[c]=null,s[c]=t):(n[c]=a,s[c]=null),++o===e.length)return r(i?s:null,n)})})}call(e,t,...r){try{e.apply(t,r)}catch(e){r[r.length-1](e)}}cmdTraversal(e,t,r,n){const i=e.folder.fsPath,o=f.isMacintosh;let a;const c=()=>a&&a.kill();y.add(c);let u=e=>{y.delete(c),u=()=>{},n(e)},h="";const d=this.initDirectoryTree();let p
  ;const m=v.spawnRipgrepCmd(this.config,e,this.config.includePattern,this.folderExcludePatterns.get(e.folder.fsPath).expression);a=m.cmd,p=!Object.keys(m.siblingClauses).length;let g=`rg ${m.rgArgs.args.map(e=>e.match(/^-/)?e:`'${e}'`).join(" ")}\n - cwd: ${m.cwd}`;m.rgArgs.siblingClauses&&(g+=`\n - Sibling clauses: ${JSON.stringify(m.rgArgs.siblingClauses)}`),r({message:g}),this.cmdResultCount=0,this.collectStdout(a,"utf8",r,(e,r,n)=>{if(e)return void u(e);if(this.isLimitHit)return void u();const a=(h+(o?l.normalizeNFC(r||""):r)).split("\n");if(n){const e=a.length;a[e-1]=a[e-1].trim(),a[e-1]||a.pop()}else h=a.pop()||"";if(a.length&&-1!==a[0].indexOf("\n"))u(new Error("Splitting up files failed"));else if(this.cmdResultCount+=a.length,p){for(const e of a){const r=s.basename(e);if(this.matchFile(t,{base:i,relativePath:e,basename:r}),this.isLimitHit){c();break}}(n||this.isLimitHit)&&u()}else this.addDirectoryEntries(d,i,a,t),n&&(this.matchDirectoryTree(d,i,t),u())})}spawnFindCmd(e){
  const t=this.folderExcludePatterns.get(e.folder.fsPath),n=t.getBasenameTerms(),s=t.getPathTerms(),i=["-L","."];if(n.length||s.length){i.push("-not","(","(");for(const e of n)i.push("-name",e),i.push("-o");for(const e of s)i.push("-path",e),i.push("-o");i.pop(),i.push(")","-prune",")")}return i.push("-type","f"),r.spawn("find",i,{cwd:e.folder.fsPath})}readStdout(e,t,r){let n="";this.collectStdout(e,t,()=>{},(e,t,s)=>{e?r(e):(n+=t,s&&r(null,n))})}collectStdout(e,t,r,n){let s,i=(e,t,r)=>{(e||r)&&(i=()=>{},this.cmdSW&&this.cmdSW.stop()),n(e,t,r)},o=!1;e.stdout?(this.forwardData(e.stdout,t,i),e.stdout.once("data",()=>o=!0)):r({message:"stdout is null"}),e.stderr?s=this.collectData(e.stderr):r({message:"stderr is null"}),e.on("error",e=>{i(e)}),e.on("close",e=>{let r;!o&&(r=this.decodeData(s,t))&&x(r)?i(new Error(`command failed with error code ${e}: ${this.decodeData(s,t)}`)):(this.exists&&0===e&&(this.isLimitHit=!0),i(null,"",!0))})}forwardData(e,t,r){const n=new i.StringDecoder(t);return e.on("data",e=>{
  r(null,n.write(e))}),n}collectData(e){const t=[];return e.on("data",e=>{t.push(e)}),t}decodeData(e,t){const r=new i.StringDecoder(t);return e.map(e=>r.write(e)).join("")}initDirectoryTree(){const e={rootEntries:[],pathToEntries:Object.create(null)};return e.pathToEntries["."]=e.rootEntries,e}addDirectoryEntries({pathToEntries:e},t,r,n){if(-1!==r.indexOf(this.filePattern)){const e=s.basename(this.filePattern);this.matchFile(n,{base:t,relativePath:this.filePattern,basename:e})}r.forEach((function r(n){const i=s.basename(n),o=s.dirname(n);let a=e[o];a||(a=e[o]=[],r(o)),a.push({base:t,relativePath:n,basename:i})}))}matchDirectoryTree({rootEntries:e,pathToEntries:t},r,n){const s=this,i=this.folderExcludePatterns.get(r),o=this.filePattern;!function e(r){s.directoriesWalked++;const a=c.hasSiblingFn(()=>r.map(e=>e.basename));for(let c=0,l=r.length;c<l;c++){const l=r[c],{relativePath:u,basename:h}=l;if(i.test(u,h,o!==h?a:void 0))continue;const f=t[u];if(f)e(f);else{if(s.filesWalked++,u===o)continue;s.matchFile(n,l)}
  if(s.isLimitHit)break}}(e)}getStats(){return{cmdTime:this.cmdSW.elapsed(),fileWalkTime:this.fileWalkSW.elapsed(),directoriesWalked:this.directoriesWalked,filesWalked:this.filesWalked,cmdResultCount:this.cmdResultCount}}doWalk(e,t,r,i,a){const l=e.folder,u=c.hasSiblingFn(()=>r);this.parallel(r,(r,o)=>{if(this.isCanceled||this.isLimitHit)return o(null);const a=t?[t,r].join(s.sep):r;if(this.folderExcludePatterns.get(e.folder.fsPath).test(a,r,this.config.filePattern!==r?u:void 0))return o(null);const c=[l.fsPath,a].join(s.sep);n.lstat(c,(t,n)=>{if(t||this.isCanceled||this.isLimitHit)return o(null);this.statLinkIfNeeded(c,n,(t,s)=>t||this.isCanceled||this.isLimitHit?o(null):s.isDirectory()?(this.directoriesWalked++,this.realPathIfNeeded(c,n,(t,r)=>t||this.isCanceled||this.isLimitHit?o(null):(r=r||"",this.walkedPaths[r]?o(null):(this.walkedPaths[r]=!0,g.readdir(c).then(t=>{if(this.isCanceled||this.isLimitHit)return o(null);this.doWalk(e,a,t,i,e=>o(e||null))},e=>{o(null)}))))):(this.filesWalked++,
  a===this.filePattern?o(null,void 0):this.maxFilesize&&m.isNumber(s.size)&&s.size>this.maxFilesize?o(null,void 0):(this.matchFile(i,{base:l.fsPath,relativePath:a,basename:r,size:s.size}),o(null,void 0))))})},e=>(e&&(e=o.coalesce(e)),a(e&&e.length>0?e[0]:void 0)))}matchFile(e,t){!this.isFilePatternMatch(t.relativePath)||this.includePattern&&!this.includePattern(t.relativePath,t.basename)||(this.resultCount++,(this.exists||this.maxResults&&this.resultCount>this.maxResults)&&(this.isLimitHit=!0),this.isLimitHit||e(t))}isFilePatternMatch(e){if(this.filePattern){if("*"===this.filePattern)return!0;if(this.normalizedFilePatternLowercase)return p.fuzzyContains(e,this.normalizedFilePatternLowercase)}return!0}statLinkIfNeeded(e,t,r){return t.isSymbolicLink()?n.stat(e,r):r(null,t)}realPathIfNeeded(e,t,r){return t.isSymbolicLink()?n.realpath(e,(e,t)=>e?r(e):r(null,t)):r(null,e)}}t.FileWalker=b;t.Engine=class{constructor(e){this.folderQueries=e.folderQueries,this.extraFiles=e.extraFileResources||[],this.walker=new b(e)}
  search(e,t,r){this.walker.walk(this.folderQueries,this.extraFiles,e,t,(e,t)=>{r(e,{limitHit:t,stats:this.walker.getStats()})})}cancel(){this.walker.cancel()}};class _{constructor(e,t){this.expression=e,this.root=t,this.init(e)}init(e){let t,r;Object.keys(e).filter(t=>e[t]).forEach(n=>{s.isAbsolute(n)?(t=t||c.getEmptyExpression())[n]=e[n]:(r=r||c.getEmptyExpression())[n]=e[n]}),this.absoluteParsedExpr=t&&c.parse(t,{trimForExclusions:!0}),this.relativeParsedExpr=r&&c.parse(r,{trimForExclusions:!0})}test(e,t,r){return this.relativeParsedExpr&&this.relativeParsedExpr(e,t,r)||this.absoluteParsedExpr&&this.absoluteParsedExpr(s.join(this.root,e),t,r)}getBasenameTerms(){const e=[];return this.absoluteParsedExpr&&e.push(...c.getBasenameTerms(this.absoluteParsedExpr)),this.relativeParsedExpr&&e.push(...c.getBasenameTerms(this.relativeParsedExpr)),e}getPathTerms(){const e=[];return this.absoluteParsedExpr&&e.push(...c.getPathTerms(this.absoluteParsedExpr)),
  this.relativeParsedExpr&&e.push(...c.getPathTerms(this.relativeParsedExpr)),e}}function x(e){const t=e.trim().split("\n"),r=t[0].trim();return p.startsWith(r,"Error parsing regex")?r:p.startsWith(r,"regex parse error")?p.uppercaseFirstLetter(t[t.length-1].trim()):p.startsWith(r,"error parsing glob")||p.startsWith(r,"unsupported encoding")?r.charAt(0).toUpperCase()+r.substr(1):"Literal '\\n' not allowed."===r?"Literal '\\n' currently not supported":p.startsWith(r,"Literal ")?r:void 0}t.rgErrorMsgForDisplay=x})),define(e[65],t([0,1,16,71,4,28,2,7,22,63,36,5,15,38,35]),(function(e,t,r,n,s,i,o,a,c,l,u,h,f,d,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const m=l.rgPath.replace(/\bnode_modules\.asar\b/,"node_modules.asar.unpacked");function g(e){const t=e.split("\n"),r=t[0].trim();if(t.some(e=>o.startsWith(e,"regex parse error")))return new c.SearchError(v(t),c.SearchErrorCode.regexParseError);const n=r.match(/grep config error: unknown encoding: (.*)/)
  ;return n?new c.SearchError(`Unknown encoding: ${n[1]}`,c.SearchErrorCode.unknownEncoding):o.startsWith(r,"error parsing glob")?new c.SearchError(r.charAt(0).toUpperCase()+r.substr(1),c.SearchErrorCode.globParseError):o.startsWith(r,"the literal")?new c.SearchError(r.charAt(0).toUpperCase()+r.substr(1),c.SearchErrorCode.invalidLiteral):o.startsWith(r,"PCRE2: error compiling pattern")?new c.SearchError(r,c.SearchErrorCode.regexParseError):void 0}function v(e){let t=["Regex parse error"],r=e.filter(e=>o.startsWith(e,"PCRE2:"));if(r.length>=1){let e=r[0].replace("PCRE2:","");if(-1!==e.indexOf(":")&&e.split(":").length>=2){let r=e.split(":")[1];t.push(":"+r)}}return t.join("")}t.RipgrepTextSearchEngine=class{constructor(e){this.outputChannel=e}provideTextSearchResults(e,t,n,s){return this.outputChannel.appendLine(`provideTextSearchResults ${e.pattern}, ${JSON.stringify(Object.assign(Object.assign({},t),{folder:t.folder.toString()}))}`),new Promise((i,a)=>{s.onCancellationRequested(()=>P());const l=function(e,t){
  const r=["--hidden"];r.push(e.isCaseSensitive?"--case-sensitive":"--ignore-case");const{doubleStarIncludes:n,otherIncludes:s}=d.groupBy(t.includes,e=>o.startsWith(e,"**")?"doubleStarIncludes":"otherIncludes");if(s&&s.length){const e=new Set;s.forEach(t=>{o.endsWith(t,"/**")||(t+="/**"),e.add(t)}),r.push("-g","!*"),e.forEach(e=>{b(e).map(u.anchorGlob).forEach(e=>{r.push("-g",e)})})}n&&n.length&&n.forEach(e=>{r.push("-g",e)});t.excludes.map(u.anchorGlob).forEach(e=>r.push("-g",`!${e}`)),t.maxFileSize&&r.push("--max-filesize",t.maxFileSize+"");t.useIgnoreFiles?r.push("--no-ignore-parent"):r.push("--no-ignore");t.followSymlinks&&r.push("--follow");t.encoding&&"utf8"!==t.encoding&&r.push("--encoding",t.encoding);"--"===e.pattern&&(e.isRegExp=!0,e.pattern="\\-\\-");e.isMultiline&&!e.isRegExp&&(e.pattern=o.escapeRegExpCharacters(e.pattern),e.isRegExp=!0);t.usePCRE2&&r.push("--pcre2");r.push("--crlf"),e.isRegExp&&(e.pattern=_(e.pattern),r.push("--auto-hybrid-regex"));let i;if(e.isWordMatch){
  const t=o.createRegExp(e.pattern,!!e.isRegExp,{wholeWord:e.isWordMatch}).source.replace(/\\\//g,"/");r.push("--regexp",t)}else if(e.isRegExp){let t=x(e.pattern);t=C(t),r.push("--regexp",t)}else i=e.pattern,r.push("--fixed-strings");r.push("--no-config"),t.useGlobalIgnoreFiles||r.push("--no-ignore-global");r.push("--json"),e.isMultiline&&r.push("--multiline");t.beforeContext&&r.push("--before-context",t.beforeContext+"");t.afterContext&&r.push("--after-context",t.afterContext+"");r.push("--"),i&&r.push(i);return r.push("."),r}(e,t),h=t.folder.fsPath,f=l.map(e=>e.match(/^-/)?e:`'${e}'`).join(" ");this.outputChannel.appendLine(`rg ${f}\n - cwd: ${h}`);let p=r.spawn(m,l,{cwd:h});p.on("error",e=>{console.error(e),this.outputChannel.appendLine("Error: "+(e&&e.message)),a(c.serializeSearchError(new c.SearchError(e&&e.message,c.SearchErrorCode.rgProcessError)))});let v=!1;const y=new w(t.maxResults,h,t.previewOptions);y.on("result",e=>{v=!0,n.report(e)});let E=!1;const P=()=>{E=!0,p&&p.kill(),y&&y.cancel()};let S=!1
  ;y.on("hitLimit",()=>{S=!0,P()}),p.stdout.on("data",e=>{y.handleData(e)});let A=!1;p.stdout.once("data",()=>A=!0);let L="";p.stderr.on("data",e=>{const t=e.toString();this.outputChannel.appendLine(t),L+=t}),p.on("close",()=>{if(this.outputChannel.appendLine(A?"Got data from stdout":"No data from stdout"),this.outputChannel.appendLine(v?"Got result from parser":"No result from parser"),this.outputChannel.appendLine(""),E)i({limitHit:S});else{let e;y.flush(),p=null,L&&!A&&(e=g(L))?a(c.serializeSearchError(new c.SearchError(e.message,e.code))):i({limitHit:S})}})})}},t.rgErrorMsgForDisplay=g,t.buildRegexParseError=v;class w extends n.EventEmitter{constructor(e,t,r){super(),this.maxResults=e,this.rootFolder=t,this.previewOptions=r,this.remainder="",this.isDone=!1,this.hitLimit=!1,this.numResults=0,this.stringDecoder=new i.StringDecoder}cancel(){this.isDone=!0}flush(){this.handleDecodedData(this.stringDecoder.end())}on(e,t){return super.on(e,t),this}handleData(e){if(this.isDone)return
  ;const t="string"==typeof e?e:this.stringDecoder.write(e);this.handleDecodedData(t)}handleDecodedData(e){let t=e.indexOf("\n");const r=this.remainder+e;if(!(t>=0))return void(this.remainder=r);t+=this.remainder.length;let n=0;for(;t>=0;)this.handleLine(r.substring(n,t).trim()),n=t+1,t=r.indexOf("\n",n);this.remainder=r.substring(n)}handleLine(e){if(this.isDone||!e)return;let t;try{t=JSON.parse(e)}catch(t){throw new Error(`malformed line from rg: ${e}`)}if("match"===t.type){const e=y(t.data.path),r=a.URI.file(s.join(this.rootFolder,e)),n=this.createTextSearchMatch(t.data,r);this.onResult(n),this.hitLimit&&(this.cancel(),this.emit("hitLimit"))}else if("context"===t.type){const e=y(t.data.path),r=a.URI.file(s.join(this.rootFolder,e));this.createTextSearchContext(t.data,r).forEach(e=>this.onResult(e))}}createTextSearchMatch(e,t){const r=e.line_number-1;let n=!1,s=y(e.lines);0===r&&o.startsWithUTF8BOM(s)&&(n=!0,s=o.stripUTF8BOM(s));const i=Buffer.from(s);let a=0,c=0,l=r;const f=h.coalesce(e.submatches.map((e,t)=>{
  if(this.hitLimit)return null;this.numResults++,this.numResults>=this.maxResults&&(this.hitLimit=!0);let s=y(e.match);0===r&&0===t&&n&&(s=o.stripUTF8BOM(s),e.start=e.start<=3?0:e.start-3,e.end=e.end<=3?0:e.end-3);const u=i.slice(a,e.start).toString().length;let h=c+u;const f=function(e){const t=/\n/g;let r,n=0,s=-1;for(;r=t.exec(e);)n++,s=r.index;const i=s>=0?e.length-s-1:e.length;return{numLines:n,lastLineLength:i}}(s),d=l,m=f.numLines+d;let g=f.numLines>0?f.lastLineLength:f.lastLineLength+h;return a=e.end,c=g,l=m,new p.Range(d,h,m,g)}));return u.createTextSearchResult(t,s,f,this.previewOptions)}createTextSearchContext(e,t){const r=y(e.lines),n=e.line_number;return r.replace(/\r?\n$/,"").split("\n").map((e,r)=>({text:e,uri:t,lineNumber:n+r}))}onResult(e){this.emit("result",e)}}function y(e){return e.bytes?Buffer.from(e.bytes,"base64").toString():e.text}function b(e){const t=f.splitGlobAware(e,"/");return"**"!==t[t.length-1]&&t.push("**"),t.map((e,r)=>t.slice(0,r+1).join("/"))}function _(e){
  const t=/((?:[^\\]|^)(?:\\\\)*)\\u([a-z0-9]{4})/g;for(;e.match(t);)e=e.replace(t,"$1\\x{$2}");const r=/((?:[^\\]|^)(?:\\\\)*)\\u\{([a-z0-9]{4})\}/g;for(;e.match(r);)e=e.replace(r,"$1\\x{$2}");return e}function x(e){return e.replace(/([^\\]|^)(\\\\)*\\n/g,"$1$2\\r?\\n")}function C(e){return e.replace(/\n/g,"\\r?\\n")}t.RipgrepParser=w,t.spreadGlobComponents=b,t.unicodeEscapesToPCRE2=_,t.fixRegexNewline=x,t.fixNewline=C})),define(e[66],t([0,1,18,65,61]),(function(e,t,r,n,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return{path:e.resource&&e.resource.fsPath,results:e.results,numMatches:(e.results||[]).reduce((e,t)=>{if(t.ranges){const r=t;return e+(Array.isArray(r.ranges)?r.ranges.length:1)}return e+1},0)}}t.TextSearchEngineAdapter=class{constructor(e){this.query=e}search(e,t,o){if(!(this.query.folderQueries&&this.query.folderQueries.length||this.query.extraFileResources&&this.query.extraFileResources.length))return Promise.resolve({type:"success",limitHit:!1,stats:{
  type:"searchProcess"}});const a={appendLine(e){o({message:e})}},c=new s.NativeTextSearchManager(this.query,new n.RipgrepTextSearchEngine(a),r);return new Promise((r,n)=>c.search(e=>{t(e.map(i))},e).then(e=>r({limitHit:e.limitHit,type:"success"}),n))}}})),define(e[67],t([0,1,21,72,4,5,11,9,6,12,26,2,7,30,18,64,66]),(function(e,t,r,n,s,i,o,a,c,l,u,h,f,d,p,m,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.gracefulify(r);class v{constructor(){this.caches=Object.create(null)}fileSearch(e){let t;const r=b(e),n=new c.Emitter({onFirstListenerDidAdd:()=>{(t=o.createCancelablePromise(e=>this.doFileSearchWithEngine(m.Engine,r,e=>n.fire(e),e))).then(e=>n.fire(e),e=>n.fire({type:"error",error:{message:e.message,stack:e.stack}}))},onLastListenerRemove:()=>{t.cancel()}});return n.event}textSearch(e){let t;const r=b(e),n=new c.Emitter({onFirstListenerDidAdd:()=>{(t=o.createCancelablePromise(e=>this.ripgrepTextSearch(r,e=>n.fire(e),e))).then(e=>n.fire(e),e=>n.fire({type:"error",error:{message:e.message,
  stack:e.stack}}))},onLastListenerRemove:()=>{t.cancel()}});return n.event}ripgrepTextSearch(e,t,r){return e.maxFileSize=p.MAX_FILE_SIZE,new g.TextSearchEngineAdapter(e).search(r,t,t)}doFileSearch(e,t,r){return this.doFileSearchWithEngine(m.Engine,e,t,r)}doFileSearchWithEngine(e,t,r,n,s=v.BATCH_SIZE){let i=0;const o=e=>{Array.isArray(e)?(i+=e.length,r(e.map(e=>this.rawMatchToSearchItem(e)))):e.relativePath?(i++,r(this.rawMatchToSearchItem(e))):r(e)};if(t.sortByScore){let i=this.trySortedSearchFromCache(t,o,n);if(!i){const s=new e(t.maxResults?l.assign({},t,{maxResults:null}):t);i=this.doSortedSearch(s,t,r,o,n)}return new Promise((e,t)=>{i.then(([t,n])=>{const i=n.map(e=>this.rawMatchToSearchItem(e));this.sendProgress(i,r,s),e(t)},t)})}const a=new e(t);return this.doSearch(a,o,s,n).then(e=>({limitHit:e.limitHit,type:"success",stats:{detailStats:e.stats,type:"searchProcess",fromCache:!1,resultCount:i,sortingTime:void 0}}))}rawMatchToSearchItem(e){return{path:e.base?s.join(e.base,e.relativePath):e.relativePath}}
  doSortedSearch(e,t,r,n,s){const i=new c.Emitter;let a,l=o.createCancelablePromise(t=>{let r=[];return this.doSearch(e,e=>{Array.isArray(e)?r=e:(n(e),i.fire(e))},-1,t).then(e=>[e,r])});if(t.cacheKey){a=this.getOrCreateCache(t.cacheKey);const e={promise:l,event:i.event,resolved:!1};a.resultsToSearchCache[t.filePattern||""]=e,l.then(()=>{e.resolved=!0},e=>{delete a.resultsToSearchCache[t.filePattern||""]}),l=this.preventCancellation(l)}return l.then(([e,r])=>{const n=a?a.scorerCache:Object.create(null),i=("number"!=typeof t.maxResults||t.maxResults>0)&&u.StopWatch.create(!1);return this.sortResults(t,r,n,s).then(n=>{const s=i?i.elapsed():-1;return[{type:"success",stats:{detailStats:e.stats,sortingTime:s,fromCache:!1,type:"searchProcess",workspaceFolderCount:t.folderQueries.length,resultCount:n.length},limitHit:e.limitHit||"number"==typeof t.maxResults&&r.length>t.maxResults},n]})})}getOrCreateCache(e){const t=this.caches[e];return t||(this.caches[e]=new w)}trySortedSearchFromCache(e,t,r){
  const n=e.cacheKey&&this.caches[e.cacheKey];if(!n)return;const s=this.getResultsFromCache(n,e.filePattern||"",t,r);return s?s.then(([t,s,i])=>{const o=u.StopWatch.create(!1);return this.sortResults(e,s,n.scorerCache,r).then(r=>{const n=o.elapsed(),a={fromCache:!0,detailStats:i,type:"searchProcess",resultCount:s.length,sortingTime:n};return[{type:"success",limitHit:t.limitHit||"number"==typeof e.maxResults&&s.length>e.maxResults,stats:a},r]})}):void 0}sortResults(e,t,r,n){const s=d.prepareQuery(e.filePattern||""),o="number"==typeof e.maxResults?e.maxResults:Number.MAX_VALUE;return i.topAsync(t,(e,t)=>d.compareItemsByScore(e,t,s,!0,y,r),o,1e4,n)}sendProgress(e,t,r){if(r&&r>0)for(let n=0;n<e.length;n+=r)t(e.slice(n,n+r));else t(e)}getResultsFromCache(e,t,r,n){const i=u.StopWatch.create(!1),o=t.indexOf(s.sep)>=0;let c;for(const r in e.resultsToSearchCache)if(h.startsWith(t,r)){if(o&&r.indexOf(s.sep)<0&&""!==r)continue;const t=e.resultsToSearchCache[r];c={promise:this.preventCancellation(t.promise),event:t.event,
  resolved:t.resolved};break}if(!c)return null;const l=i.elapsed(),f=u.StopWatch.create(!1),p=c.event(r);return n&&n.onCancellationRequested(()=>{p.dispose()}),c.promise.then(([e,r])=>{if(n&&n.isCancellationRequested)throw a.canceled();const s=[],i=d.prepareQuery(t).lowercase;for(const e of r)h.fuzzyContains(e.relativePath,i)&&s.push(e);return[e,s,{cacheWasResolved:c.resolved,cacheLookupTime:l,cacheFilterTime:f.elapsed(),cacheEntryCount:r.length}]})}doSearch(e,t,r,n){return new Promise((s,i)=>{let o=[];n&&n.onCancellationRequested(()=>e.cancel()),e.search(e=>{e&&(r?(o.push(e),r>0&&o.length>=r&&(t(o),o=[])):t(e))},e=>{t(e)},(e,r)=>{o.length&&t(o),e?i(e):s(r)})})}clearCache(e){return delete this.caches[e],Promise.resolve(void 0)}preventCancellation(e){return new class{cancel(){}then(t,r){return e.then(t,r)}catch(e){return this.then(void 0,e)}finally(t){return e.finally(t)}}}}t.SearchService=v,v.BATCH_SIZE=512;class w{constructor(){this.resultsToSearchCache=Object.create(null),this.scorerCache=Object.create(null)}
  }const y=new class{getItemLabel(e){return e.basename}getItemDescription(e){return e.relativePath.substr(0,e.relativePath.length-e.basename.length-1)}getItemPath(e){return e.relativePath}};function b(e){return Object.assign(Object.assign({},e),{folderQueries:e.folderQueries&&e.folderQueries.map(_),extraFileResources:e.extraFileResources&&e.extraFileResources.map(e=>f.URI.revive(e))})}function _(e){return Object.assign(Object.assign({},e),{folder:f.URI.revive(e.folder)})}})),define(e[73],t([0,1,54,60,67]),(function(e,t,r,n,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=new r.Server("search"),o=new s.SearchService,a=new n.SearchChannel(o);i.registerChannel("search",a)}))}).call(this);
  //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/26076a4de974ead31f97692a0d32f90d735645c0/core/vs/workbench/services/search/node/searchApp.js.map
  