/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["exports","require","vs/base/common/platform","vs/base/common/extpath","vs/base/common/path","vs/base/common/strings","vs/base/common/uri","vs/base/common/network","vs/base/common/map","vs/base/common/async","vs/base/common/arrays","vs/base/common/glob","vs/base/common/process","vs/base/common/resources","vs/base/common/iterator","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/errors","vs/base/common/cancellation","vs/workbench/contrib/output/common/outputLinkComputer","vs/editor/common/core/range"],t=function(t){for(var s=[],r=0,n=t.length;r<n;r++)s[r]=e[t[r]];return s};define(e[9],t([1,0,18,17,16,15]),(function(e,t,s,r,n,i){"use strict";function o(e){return e&&"function"==typeof e.then}function a(e){const t=new s.CancellationTokenSource,n=e(t.token),i=new Promise((e,s)=>{t.token.onCancellationRequested(()=>{s(r.canceled())}),Promise.resolve(n).then(s=>{t.dispose(),e(s)},e=>{t.dispose(),s(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,s){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(s)))])},t.asPromise=function(e){return new Promise((t,s)=>{const r=e();o(r)?r.then(t,s):t(r)})};class h{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=h;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(r.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 h}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 c(e,t){return t?new Promise((s,n)=>{const i=setTimeout(s,e);t.onCancellationRequested(()=>{clearTimeout(i),n(r.canceled())})}):a(t=>c(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=c,t.disposableTimeout=function(e,t=0){const s=setTimeout(e,t);return i.toDisposable(()=>clearTimeout(s))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=function(e){const t=[];let s=0;const r=e.length;return Promise.resolve(null).then((function n(i){null!=i&&t.push(i);const o=s<r?e[s++]():null;return o?o.then(n):Promise.resolve(t)}))},t.first=function(e,t=(e=>!!e),s=null){let r=0;const n=e.length,i=()=>{if(r>=n)return Promise.resolve(s);const o=e[r++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):i())}
;return i()};class u{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new n.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,s)=>{this.outstandingPromises.push({factory:e,c:t,e:s}),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=u;class f extends u{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 s=setTimeout(()=>t(e));let r=!1;return{dispose(){r||(r=!0,clearTimeout(s))}}}}else t.runWhenIdle=(e,t)=>{const s=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(s))}}}}();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,s){let r;for(let n=0;n<s;n++)try{return await e()}catch(e){r=e,await c(t)}throw r}})),define(e[12],t([1,0,2]),(function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"==typeof process?{cwd:()=>"/",env:Object.create(null),get platform(){return s.isWindows?"win32":s.isMacintosh?"darwin":"linux"},nextTick:e=>s.setImmediate(e)}:process;t.cwd=r.cwd,t.env=r.env,t.platform=r.platform,t.nextTick=r.nextTick})),define(e[4],t([1,0,12]),(function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=65,n=97,i=90,o=122,a=46,h=47,l=92;class c extends Error{constructor(e,t,s){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const n=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${n} ${r} of type ${t}`
;super(i+=`. Received type ${typeof s}`),this.code="ERR_INVALID_ARG_TYPE"}}function u(e,t){if("string"!=typeof e)throw new c(t,"string",e)}function f(e){return e===h||e===l}function d(e){return e===h}function m(e){return e>=r&&e<=i||e>=n&&e<=o}function p(e,t,s,r){let n,i="",o=0,l=-1,c=0;for(let u=0;u<=e.length;++u){if(u<e.length)n=e.charCodeAt(u);else{if(r(n))break;n=h}if(r(n)){if(l===u-1||1===c);else if(l!==u-1&&2===c){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(s);-1===e?(i="",o=0):o=(i=i.slice(0,e)).length-1-i.lastIndexOf(s),l=u,c=0;continue}if(2===i.length||1===i.length){i="",o=0,l=u,c=0;continue}}t&&(i.length>0?i+=`${s}..`:i="..",o=2)}else i.length>0?i+=s+e.slice(l+1,u):i=e.slice(l+1,u),o=u-l-1;l=u,c=0}else n===a&&-1!==c?++c:c=-1}return i}function g(e,t){const s=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return s?s===t.root?s+r:s+e+r:r}t.win32={resolve(...e){let t="",r="",n=!1;for(let i=e.length-1;i>=-1;i--){let o
;if(i>=0?o=e[i]:t?void 0!==(o=s.env["="+t]||s.cwd())&&o.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(o=t+"\\"):o=s.cwd(),u(o,"path"),0===o.length)continue;const a=o.length;let h=0,l="",c=!1;const d=o.charCodeAt(0);if(a>1)if(f(d))if(c=!0,f(o.charCodeAt(1))){let e=2,t=e;for(;e<a&&!f(o.charCodeAt(e));++e);if(e<a&&e!==t){const s=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="\\\\"+s+"\\"+o.slice(t),h=e):e!==t&&(l="\\\\"+s+"\\"+o.slice(t,e),h=e)}}}else h=1;else m(d)&&58===o.charCodeAt(1)&&(l=o.slice(0,2),h=2,a>2&&f(o.charCodeAt(2))&&(c=!0,h=3));else f(d)&&(h=1,c=!0);if(!(l.length>0&&t.length>0&&l.toLowerCase()!==t.toLowerCase())&&(0===t.length&&l.length>0&&(t=l),n||(r=o.slice(h)+"\\"+r,n=c),t.length>0&&n))break}return t+(n?"\\":"")+(r=p(r,!n,"\\",f))||"."},normalize(e){u(e,"path");const t=e.length;if(0===t)return".";let s,r=0,n=!1;const i=e.charCodeAt(0);if(t>1)if(f(i))if(n=!0,f(e.charCodeAt(1))){let n=2,i=n;for(;n<t&&!f(e.charCodeAt(n));++n);
if(n<t&&n!==i){const o=e.slice(i,n);for(i=n;n<t&&f(e.charCodeAt(n));++n);if(n<t&&n!==i){for(i=n;n<t&&!f(e.charCodeAt(n));++n);if(n===t)return"\\\\"+o+"\\"+e.slice(i)+"\\";n!==i&&(s="\\\\"+o+"\\"+e.slice(i,n),r=n)}}}else r=1;else m(i)&&58===e.charCodeAt(1)&&(s=e.slice(0,2),r=2,t>2&&f(e.charCodeAt(2))&&(n=!0,r=3));else if(f(i))return"\\";let o;return 0!==(o=r<t?p(e.slice(r),!n,"\\",f):"").length||n||(o="."),o.length>0&&f(e.charCodeAt(t-1))&&(o+="\\"),void 0===s?n?o.length>0?"\\"+o:"\\":o.length>0?o:"":n?o.length>0?s+"\\"+o:s+"\\":o.length>0?s+o:s},isAbsolute(e){u(e,"path");const t=e.length;if(0===t)return!1;const s=e.charCodeAt(0);return!!f(s)||!!(m(s)&&t>2&&58===e.charCodeAt(1)&&f(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let s,r;for(let t=0;t<e.length;++t){const n=e[t];u(n,"path"),n.length>0&&(void 0===s?s=r=n:s+="\\"+n)}if(void 0===s)return".";let n=!0,i=0;if("string"==typeof r&&f(r.charCodeAt(0))){++i;const e=r.length;e>1&&f(r.charCodeAt(1))&&(++i,e>2&&(f(r.charCodeAt(2))?++i:n=!1))}if(n){
for(;i<s.length&&f(s.charCodeAt(i));++i);i>=2&&(s="\\"+s.slice(i))}return t.win32.normalize(s)},relative(e,s){if(u(e,"from"),u(s,"to"),e===s)return"";const r=t.win32.resolve(e),n=t.win32.resolve(s);if(r===n)return"";if((e=r.toLowerCase())===(s=n.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 h=0;for(;h<s.length&&s.charCodeAt(h)===l;++h);let c=s.length;for(;c-1>h&&s.charCodeAt(c-1)===l;--c);const f=c-h,d=a<f?a:f;let m=-1,p=0;for(;p<=d;++p){if(p===d){if(f>d){if(s.charCodeAt(h+p)===l)return n.slice(h+p+1);if(2===p)return n.slice(h+p)}a>d&&(e.charCodeAt(i+p)===l?m=p:2===p&&(m=3));break}const t=e.charCodeAt(i+p);if(t!==s.charCodeAt(h+p))break;t===l&&(m=p)}if(p!==d&&-1===m)return n;let g="";for(-1===m&&(m=0),p=i+m+1;p<=o;++p)p!==o&&e.charCodeAt(p)!==l||(0===g.length?g+="..":g+="\\..");return g.length>0?g+n.slice(h+m,c):(h+=m,n.charCodeAt(h)===l&&++h,n.slice(h,c))},toNamespacedPath(e){if("string"!=typeof e)return e
;if(0===e.length)return"";const s=t.win32.resolve(e);if(s.length>=3)if(s.charCodeAt(0)===l){if(s.charCodeAt(1)===l){const e=s.charCodeAt(2);if(63!==e&&e!==a)return"\\\\?\\UNC\\"+s.slice(2)}}else if(m(s.charCodeAt(0))&&58===s.charCodeAt(1)&&s.charCodeAt(2)===l)return"\\\\?\\"+s;return e},dirname(e){u(e,"path");const t=e.length;if(0===t)return".";let s=-1,r=-1,n=!0,i=0;const o=e.charCodeAt(0);if(t>1)if(f(o)){if(s=i=1,f(e.charCodeAt(1))){let r=2,n=r;for(;r<t&&!f(e.charCodeAt(r));++r);if(r<t&&r!==n){for(n=r;r<t&&f(e.charCodeAt(r));++r);if(r<t&&r!==n){for(n=r;r<t&&!f(e.charCodeAt(r));++r);if(r===t)return e;r!==n&&(s=i=r+1)}}}}else m(o)&&58===e.charCodeAt(1)&&(s=i=2,t>2&&f(e.charCodeAt(2))&&(s=i=3));else if(f(o))return e;for(let s=t-1;s>=i;--s)if(f(e.charCodeAt(s))){if(!n){r=s;break}}else n=!1;if(-1===r){if(-1===s)return".";r=s}return e.slice(0,r)},basename(e,t){void 0!==t&&u(t,"ext"),u(e,"path");let s,r=0,n=-1,i=!0;if(e.length>=2){m(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=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(s=e.length-1;s>=r;--s){const h=e.charCodeAt(s);if(f(h)){if(!i){r=s+1;break}}else-1===a&&(i=!1,a=s+1),o>=0&&(h===t.charCodeAt(o)?-1==--o&&(n=s):(o=-1,n=a))}return r===n?n=a:-1===n&&(n=e.length),e.slice(r,n)}for(s=e.length-1;s>=r;--s)if(f(e.charCodeAt(s))){if(!i){r=s+1;break}}else-1===n&&(i=!1,n=s+1);return-1===n?"":e.slice(r,n)},extname(e){u(e,"path");let t=0,s=-1,r=0,n=-1,i=!0,o=0;e.length>=2&&58===e.charCodeAt(1)&&m(e.charCodeAt(0))&&(t=r=2);for(let h=e.length-1;h>=t;--h){const t=e.charCodeAt(h);if(f(t)){if(!i){r=h+1;break}}else-1===n&&(i=!1,n=h+1),t===a?-1===s?s=h:1!==o&&(o=1):-1!==s&&(o=-1)}return-1===s||-1===n||0===o||1===o&&s===n-1&&s===r+1?"":e.slice(s,n)},format(e){if(null===e||"object"!=typeof e)throw new c("pathObject","Object",e);return g("\\",e)},parse(e){u(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const s=e.length;let r=0,n=e.charCodeAt(0)
;if(s>1){if(f(n)){if(r=1,f(e.charCodeAt(1))){let t=2,n=t;for(;t<s&&!f(e.charCodeAt(t));++t);if(t<s&&t!==n){for(n=t;t<s&&f(e.charCodeAt(t));++t);if(t<s&&t!==n){for(n=t;t<s&&!f(e.charCodeAt(t));++t);t===s?r=t:t!==n&&(r=t+1)}}}}else if(m(n)&&58===e.charCodeAt(1)){if(r=2,!(s>2))return t.root=t.dir=e,t;if(f(e.charCodeAt(2))){if(3===s)return t.root=t.dir=e,t;r=3}}}else if(f(n))return t.root=t.dir=e,t;r>0&&(t.root=e.slice(0,r));let i=-1,o=r,h=-1,l=!0,c=e.length-1,d=0;for(;c>=r;--c)if(f(n=e.charCodeAt(c))){if(!l){o=c+1;break}}else-1===h&&(l=!1,h=c+1),n===a?-1===i?i=c:1!==d&&(d=1):-1!==i&&(d=-1);return-1===i||-1===h||0===d||1===d&&i===h-1&&i===o+1?-1!==h&&(t.base=t.name=e.slice(o,h)):(t.name=e.slice(o,i),t.base=e.slice(o,h),t.ext=e.slice(i,h)),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i;u(i=n>=0?e[n]:s.cwd(),"path"),0!==i.length&&(t=i+"/"+t,r=i.charCodeAt(0)===h)}return t=p(t,!r,"/",d),
r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(u(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,s=e.charCodeAt(e.length-1)===h;return 0!==(e=p(e,!t,"/",d)).length||t||(e="."),e.length>0&&s&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(u(e,"path"),e.length>0&&e.charCodeAt(0)===h),join(...e){if(0===e.length)return".";let s;for(let t=0;t<e.length;++t){const e=arguments[t];u(e,"path"),e.length>0&&(void 0===s?s=e:s+="/"+e)}return void 0===s?".":t.posix.normalize(s)},relative(e,s){if(u(e,"from"),u(s,"to"),e===s)return"";if((e=t.posix.resolve(e))===(s=t.posix.resolve(s)))return"";let r=1;for(;r<e.length&&e.charCodeAt(r)===h;++r);const n=e.length,i=n-r;let o=1;for(;o<s.length&&s.charCodeAt(o)===h;++o);const a=s.length-o,l=i<a?i:a;let c=-1,f=0;for(;f<=l;++f){if(f===l){if(a>l){if(s.charCodeAt(o+f)===h)return s.slice(o+f+1);if(0===f)return s.slice(o+f)}else i>l&&(e.charCodeAt(r+f)===h?c=f:0===f&&(c=0));break}const t=e.charCodeAt(r+f);if(t!==s.charCodeAt(o+f))break;t===h&&(c=f)}let d=""
;for(f=r+c+1;f<=n;++f)f!==n&&e.charCodeAt(f)!==h||(0===d.length?d+="..":d+="/..");return d.length>0?d+s.slice(o+c):(o+=c,s.charCodeAt(o)===h&&++o,s.slice(o))},toNamespacedPath:e=>e,dirname(e){if(u(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let s=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===h){if(!r){s=t;break}}else r=!1;return-1===s?t?"/":".":t&&1===s?"//":e.slice(0,s)},basename(e,t){void 0!==t&&u(t,"ext"),u(e,"path");let s,r=0,n=-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(s=e.length-1;s>=0;--s){const l=e.charCodeAt(s);if(l===h){if(!i){r=s+1;break}}else-1===a&&(i=!1,a=s+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(n=s):(o=-1,n=a))}return r===n?n=a:-1===n&&(n=e.length),e.slice(r,n)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===h){if(!i){r=s+1;break}}else-1===n&&(i=!1,n=s+1);return-1===n?"":e.slice(r,n)},extname(e){u(e,"path");let t=-1,s=0,r=-1,n=!0,i=0;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o)
;if(l!==h)-1===r&&(n=!1,r=o+1),l===a?-1===t?t=o:1!==i&&(i=1):-1!==t&&(i=-1);else if(!n){s=o+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===s+1?"":e.slice(t,r)},format(e){if(null===e||"object"!=typeof e)throw new c("pathObject","Object",e);return g("/",e)},parse(e){u(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const s=e.charCodeAt(0)===h;let r;s?(t.root="/",r=1):r=0;let n=-1,i=0,o=-1,l=!0,c=e.length-1,f=0;for(;c>=r;--c){const t=e.charCodeAt(c);if(t!==h)-1===o&&(l=!1,o=c+1),t===a?-1===n?n=c:1!==f&&(f=1):-1!==n&&(f=-1);else if(!l){i=c+1;break}}return-1===n||-1===o||0===f||1===f&&n===o-1&&n===i+1?-1!==o&&(t.base=t.name=0===i&&s?e.slice(1,o):e.slice(i,o)):(0===i&&s?(t.name=e.slice(1,n),t.base=e.slice(1,o)):(t.name=e.slice(i,n),t.base=e.slice(i,o)),t.ext=e.slice(n,o)),i>0?t.dir=e.slice(0,i-1):s&&(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"===s.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===s.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===s.platform?t.win32.join:t.posix.join,t.resolve="win32"===s.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===s.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===s.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===s.platform?t.win32.basename:t.posix.basename,t.extname="win32"===s.platform?t.win32.extname:t.posix.extname,t.format="win32"===s.platform?t.win32.format:t.posix.format,t.parse="win32"===s.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===s.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===s.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===s.platform?t.win32.delimiter:t.posix.delimiter})),define(e[3],t([1,0,2,5,4]),(function(e,t,s,r,n){"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,n.posix.sep)},t.getRoot=function(e,t=n.posix.sep){if(!e)return"";const s=e.length,r=e.charCodeAt(0);if(i(r)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let r=3;const n=r;for(;r<s&&!i(e.charCodeAt(r));r++);if(n!==r&&!i(e.charCodeAt(r+1)))for(r+=1;r<s;r++)if(i(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(l(r)&&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<s;o++)if(i(e.charCodeAt(o)))return e.slice(0,o+1);return""},t.isUNC=function(e){if(!s.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 r=2;const n=r;for(;r<e.length&&92!==(t=e.charCodeAt(r));r++);return n!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};const o=/[\\/:\*\?"<>\|]/g,a=/[\\/]/g,h=/^(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=s.isWindows){
const r=t?o:a;return!(!e||0===e.length||/^\s+$/.test(e))&&(r.lastIndex=0,!r.test(e)&&((!t||!h.test(e))&&("."!==e&&".."!==e&&((!t||"."!==e[e.length-1])&&((!t||e.length===e.trim().length)&&!(e.length>255))))))},t.isEqual=function(e,t,s){const n=e===t;return!s||n?n:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,s,i=n.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(s){if(!r.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let s=t.length;return t.charAt(t.length-1)===i&&s--,e.charAt(s)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)},t.isWindowsDriveLetter=l,t.sanitizeFilePath=function(e,t){return s.isWindows&&r.endsWith(e,":")&&(e+=n.sep),n.isAbsolute(e)||(e=n.join(t,e)),e=n.normalize(e),s.isWindows?(e=r.rtrim(e,n.sep),r.endsWith(e,":")&&(e+=n.sep)):(e=r.rtrim(e,n.sep))||(e=n.sep),e},t.isRootOrDriveLetter=function(e){const t=n.normalize(e)
;return s.isWindows?!(e.length>3)&&(l(t.charCodeAt(0))&&58===t.charCodeAt(1)&&(2===e.length||92===t.charCodeAt(2))):t===n.posix.sep}})),define(e[8],t([1,0,6,14]),(function(e,t,s,r){"use strict";function n(e){const t=[];return e.forEach(e=>t.push(e)),t}function i(e){const t=[];return e.forEach((e,s)=>t.push(s)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=n,t.keys=i,t.getOrSet=function(e,t,s){let r=e.get(t);return void 0===r&&(r=s,e.set(t,r)),r},t.mapToString=function(e){const t=[];return e.forEach((e,s)=>{t.push(`${s} => ${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,s)=>{t.push([s,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[s,r]of e)t.set(s,r);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 s=e.length;let r=this._from;for(;t<s&&r<this._to;){const s=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==s)return s;t+=1,r+=1}return s===this._to-this._from?0:t<s?-1:1}value(){return this._value.substring(this._from,this._to)}}t.PathIterator=a;class h{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 s=this._iter.reset(e);let r;for(this._root||(this._root=new h,this._root.segment=s.value()),r=this._root;;){const e=s.cmp(r.segment);if(e>0)r.left||(r.left=new h,r.left.segment=s.value()),r=r.left;else if(e<0)r.right||(r.right=new h,r.right.segment=s.value()),r=r.right;else{if(!s.hasNext())break;s.next(),r.mid||(r.mid=new h,r.mid.segment=s.value()),r=r.mid}}const n=r.value;return r.value=t,r.key=e,n}get(e){const t=this._iter.reset(e);let s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),s=s.mid}}return s?s.value:void 0}delete(e){const t=this._iter.reset(e),s=[];let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)s.push([1,r]),r=r.left;else if(e<0)s.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;s.length>0&&r.isEmpty();){let[e,t]=s.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}r=t}break}t.next(),s.push([0,r]),r=r.mid}}}findSubstr(e){
const t=this._iter.reset(e);let s=this._root,r=void 0;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())break;t.next(),r=s.value||r,s=s.mid}}return s&&s.value||r}findSuperstr(e){const t=this._iter.reset(e);let s=this._root;for(;s;){const e=t.cmp(s.segment);if(e>0)s=s.left;else if(e<0)s=s.right;else{if(!t.hasNext())return s.mid?this._nodeIterator(s.mid):void 0;t.next(),s=s.mid}}}_nodeIterator(e){let t,s,n;return{next:()=>(n||(n=[],s=0,this._forEach(e,e=>n.push(e))),s>=n.length?r.FIN:(t?t.value=n[s++]:t={done:!1,value:n[s++]},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 c{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 n(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return i(this.map).map(e=>s.URI.parse(e))}clone(){const e=new c;return this.map.forEach((t,s)=>e.map.set(s,t)),e}}t.ResourceMap=c,function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class u{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 s=this._map.get(e);if(s)return 0!==t&&this.touch(s,t),s.value}set(e,t,s=0){let r=this._map.get(e);if(r)r.value=t,0!==s&&this.touch(r,s);else{switch(r={key:e,value:t,next:void 0,previous:void 0},s){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),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 s=this._head;for(;s;)t?e.bind(t)(s.value,s.key,this):e(s.value,s.key,this),s=s.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,s=this.size;for(;t&&s>e;)this._map.delete(t.key),t=t.next,s--;this._head=t,this._size=s,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,s=e.previous;if(!t||!s)throw new Error("Invalid list");t.previous=s,s.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,s=e.previous;e===this._tail?(s.next=void 0,this._tail=s):(t.previous=s,s.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,s=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=s,s.next=t),e.next=void 0,e.previous=this._tail,
this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,s)=>{e.push([s,t])}),e}fromJSON(e){this.clear();for(const[t,s]of e)this.set(t,s)}}t.LinkedMap=u;t.LRUCache=class extends u{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[11],t([1,0,10,5,3,4,8,9]),(function(e,t,s,r,n,i,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};const h="**",l="/",c="[/\\\\]",u="[^/\\\\]",f=/\//g;function d(e){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${c}|${u}+${c}|${c}${u}+)*?`}}function m(e,t){if(!e)return[]
;const s=[];let r=!1,n=!1,i="";for(const o of e){switch(o){case t:if(!r&&!n){s.push(i),i="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":n=!0;break;case"]":n=!1}i+=o}return i&&s.push(i),s}t.splitGlobAware=m;const p=/^\*\*\/\*\.[\w\.-]+$/,g=/^\*\*\/([\w\.-]+)\/?$/,_=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,v=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,w=/^\*\*((\/[\w\.-]+)+)\/?$/,C=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,b=new o.LRUCache(1e4),A=function(){return!1},x=function(){return null};function P(e,t){if(!e)return x;let n;const i=`${n=(n="string"!=typeof e?e.pattern:e).trim()}_${!!t.trimForExclusions}`;let o,a=b.get(i);if(a)return y(a,e);if(p.test(n)){const e=n.substr(4);a=function(t,s){return"string"==typeof t&&r.endsWith(t,e)?n:null}}else a=(o=g.exec(k(n,t)))?function(e,t){const s=`/${e}`,n=`\\${e}`,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||r.endsWith(i,s)||r.endsWith(i,n)?t:null},o=[e];return i.basenames=o,
i.patterns=[t],i.allBasenames=o,i}(o[1],n):(t.trimForExclusions?v:_).test(n)?function(e,t){const r=I(e.slice(1,-1).split(",").map(e=>P(e,t)).filter(e=>e!==x),e),n=r.length;if(!n)return x;if(1===n)return r[0];const i=function(t,s){for(let n=0,i=r.length;n<i;n++)if(r[n](t,s))return e;return null},o=s.first(r,e=>!!e.allBasenames);o&&(i.allBasenames=o.allBasenames);const a=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(i.allPaths=a);return i}(n,t):(o=w.exec(k(n,t)))?T(o[1].substr(1),n,!0):(o=C.exec(k(n,t)))?T(o[1],n,!1):function(e){try{const t=new RegExp(`^${function e(t){if(!t)return"";let s="";const n=m(t,l);if(n.every(e=>e===h))s=".*";else{let t=!1;n.forEach((i,o)=>{if(i===h)return void(t||(s+=d(2),t=!0));let a=!1,f="",p=!1,g="";for(const t of i)if("}"!==t&&a)f+=t;else if(!p||"]"===t&&g)switch(t){case"{":a=!0;continue;case"[":p=!0;continue;case"}":const n=`(?:${m(f,",").map(t=>e(t)).join("|")})`;s+=n,a=!1,f="";break;case"]":s+="["+g+"]",p=!1,g="";break;case"?":s+=u;continue;case"*":s+=d(1)
;continue;default:s+=r.escapeRegExpCharacters(t)}else{let e;g+=e="-"===t?t:"^"!==t&&"!"!==t||g?t===l?"":r.escapeRegExpCharacters(t):"^"}o<n.length-1&&(n[o+1]!==h||o+2<n.length)&&(s+=c),t=!1})}return s}(e)}$`);return function(s,r){return t.lastIndex=0,"string"==typeof s&&t.test(s)?e:null}}catch(e){return x}}(n);return b.set(i,a),y(a,e)}function y(e,t){return"string"==typeof t?e:function(s,r){return n.isEqualOrParent(s,t.base)?e(i.relative(t.base,s),r):null}}function k(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function T(e,t,s){const n=i.sep!==i.posix.sep?e.replace(f,i.sep):e,o=i.sep+n,a=s?function(e,s){return"string"!=typeof e||e!==n&&!r.endsWith(e,o)?null:t}:function(e,s){return"string"==typeof e&&e===n?t:null};return a.allPaths=[(s?"*/":"./")+e],a}function E(e,t={}){if(!e)return A;if("string"==typeof e||R(e)){const s=P(e,t);if(s===x)return A;const r=function(e,t){return!!s(e,t)};return s.allBasenames&&(r.allBasenames=s.allBasenames),s.allPaths&&(r.allPaths=s.allPaths),r}
return function(e,t){const r=I(Object.getOwnPropertyNames(e).map(s=>(function(e,t,s){if(!1===t)return x;const r=P(e,s);if(r===x)return x;if("boolean"==typeof t)return r;if(t){const s=t.when;if("string"==typeof s){const t=(t,n,i,o)=>{if(!o||!r(t,n))return null;const h=o(s.replace("$(basename)",i));return a.isThenable(h)?h.then(t=>t?e:null):h?e:null};return t.requiresSiblings=!0,t}}return r})(s,e[s],t)).filter(e=>e!==x)),n=r.length;if(!n)return x;if(!r.some(e=>!!e.requiresSiblings)){if(1===n)return r[0];const e=function(e,t){for(let s=0,n=r.length;s<n;s++){const n=r[s](e,t);if(n)return n}return null},t=s.first(r,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const i=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return i.length&&(e.allPaths=i),e}const o=function(e,t,s){let n=void 0;for(let o=0,a=r.length;o<a;o++){const a=r[o];a.requiresSiblings&&s&&(t||(t=i.basename(e)),n||(n=t.substr(0,t.length-i.extname(e).length)));const h=a(e,t,n,s);if(h)return h}return null},h=s.first(r,e=>!!e.allBasenames)
;h&&(o.allBasenames=h.allBasenames);const l=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(o.allPaths=l);return o}(e,t)}function S(e){const t={};for(const s of e)t[s]=!0;return t}function R(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function I(e,t){const s=e.filter(e=>!!e.basenames);if(s.length<2)return e;const r=s.reduce((e,t)=>{const s=t.basenames;return s?e.concat(s):e},[]);let n;if(t){n=[];for(let e=0,s=r.length;e<s;e++)n.push(t)}else n=s.reduce((e,t)=>{const s=t.patterns;return s?e.concat(s):e},[]);const i=function(e,t){if("string"!=typeof e)return null;if(!t){let s;for(s=e.length;s>0;s--){const t=e.charCodeAt(s-1);if(47===t||92===t)break}t=e.substr(s)}const s=r.indexOf(t);return-1!==s?n[s]:null};i.basenames=r,i.patterns=n,i.allBasenames=r;const o=e.filter(e=>!e.basenames);return o.push(i),o}t.match=function(e,t,s){return!(!e||"string"!=typeof t)&&E(e)(t,void 0,s)},t.parse=E,t.hasSiblingPromiseFn=function(e){if(!e)return;let t
;return s=>(t||(t=(e()||Promise.resolve([])).then(e=>e?S(e):{})),t.then(e=>!!e[s]))},t.hasSiblingFn=function(e){if(!e)return;let t;return s=>{if(!t){const s=e();t=s?S(s):{}}return!!t[s]}},t.isRelativePattern=R,t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}})),define(e[7],t([1,0,6,2]),(function(e,t,s,r){"use strict";var n;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"}(n=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,s){this._hosts[e]=t,this._ports[e]=s}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 h=`path=${encodeURIComponent(e.path)}`;return"string"==typeof a&&(h+=`&tkn=${encodeURIComponent(a)}`),s.URI.from({scheme:r.isWeb?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${o}`,path:"/vscode-remote-resource",query:h})}}})),define(e[13],t([1,0,3,4,6,5,7,2,11,8]),(function(e,t,s,r,n,i,o,a,h,l){"use strict";function c(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function u(e,t,r=c(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return s.isEqualOrParent(m(e),m(t),r);if(f(e.authority,t.authority))return s.isEqualOrParent(e.path,t.path,r,"/")}return!1}function f(e,t){
return e===t||i.equalsIgnoreCase(e,t)}function d(e){return r.posix.basename(e.path)}function m(e){let t;const r=e.path;return t=e.authority&&r.length>1&&e.scheme===o.Schemas.file?`//${e.authority}${r}`:a.isWindows&&47===r.charCodeAt(0)&&s.isWindowsDriveLetter(r.charCodeAt(1))&&58===r.charCodeAt(2)?r.substr(1):r,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function p(e,t=r.sep){if(e.scheme===o.Schemas.file){const r=m(e);return r.length>s.getRoot(r).length&&r[r.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)}}function g(e,t,n=c(e)){if(e.scheme!==t.scheme||!f(e.authority,t.authority))return;if(e.scheme===o.Schemas.file){const n=r.relative(e.path,t.path);return a.isWindows?s.toSlashes(n):n}let i=e.path||"/",h=t.path||"/";if(n){let e=0;for(const t=Math.min(i.length,h.length);e<t&&(i.charCodeAt(e)===h.charCodeAt(e)||i.charAt(e).toLowerCase()===h.charAt(e).toLowerCase());e++);i=h.substr(0,e)+i.substr(e)}return r.posix.relative(i,h)}Object.defineProperty(t,"__esModule",{value:!0}),
t.getComparisonKey=function(e){return c(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=c,t.basenameOrAuthority=function(e){return d(e)||e.authority},t.isEqualOrParent=u,t.isEqualAuthority=f,t.isEqual=function(e,t,s=c(e)){if(e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;const r=e.path||"/",n=t.path||"/";return r===n||s&&i.equalsIgnoreCase(r||"/",n||"/")},t.basename=d,t.extname=function(e){return r.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return n.URI.file(r.dirname(m(e)));let t=r.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 s;return s=e.scheme===o.Schemas.file?n.URI.file(r.join(m(e),...t)).path:r.posix.join(e.path||"/",...t),e.with({path:s})},t.normalizePath=function(e){if(!e.path.length)return e;let t
;return t=e.scheme===o.Schemas.file?n.URI.file(r.normalize(m(e))).path:r.posix.normalize(e.path),e.with({path:t})},t.originalFSPath=m,t.isAbsolutePath=function(e){return!!e.path&&"/"===e.path[0]},t.hasTrailingPathSeparator=p,t.removeTrailingPathSeparator=function(e,t=r.sep){return p(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.addTrailingPathSeparator=function(e,t=r.sep){let n=!1;if(e.scheme===o.Schemas.file){const r=m(e);n=void 0!==r&&r.length===s.getRoot(r).length&&r[r.length-1]===t}else{t="/";const s=e.path;n=1===s.length&&47===s.charCodeAt(s.length-1)}return n||p(e,t)?e:e.with({path:e.path+"/"})},t.relativePath=g,t.resolvePath=function(e,t){if(e.scheme===o.Schemas.file){const s=n.URI.file(r.resolve(m(e),t));return e.with({authority:s.authority,path:s.path})}return-1===t.indexOf("/")&&(t=s.toSlashes(t),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t)),e.with({path:r.posix.resolve(e.path,t)})},t.distinctParents=function(e,t){const s=[];for(let r=0;r<e.length;r++){const n=t(e[r])
;e.some((e,s)=>s!==r&&u(n,t(e)))||s.push(e[r])}return s},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 s=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,r]=e.split(":");t&&r&&s.set(t,r)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&s.set(e.META_DATA_MIME,r),s}}(t.DataUri||(t.DataUri={}));t.ResourceGlobMatcher=class{constructor(e,t){this.expressionsByRoot=l.TernarySearchTree.forPaths(),this.globalExpression=h.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:h.parse(e.expression)})}matches(e){const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const s=g(t.root,e);if(s&&t.expression(s))return!0}return!!this.globalExpression(e.path)}},t.toLocalResource=function(e,t){if(t){let s=e.path;return s&&s[0]!==r.posix.sep&&(s=r.posix.sep+s),e.with({scheme:o.Schemas.vscodeRemote,
authority:t,path:s})}return e.with({scheme:o.Schemas.file})}})),define(e[19],t([1,0,6,3,13,5,20,2,7,10]),(function(e,t,s,r,n,i,o,a,h,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class c{constructor(e,t){this.ctx=e,this.patterns=new Map,this.computePatterns(t)}computePatterns(e){e.workspaceFolders.map(e=>s.URI.parse(e)).forEach(e=>{const t=c.createPatterns(e);this.patterns.set(e,t)})}getModel(e){const t=this.ctx.getMirrorModels();return l.find(t,t=>t.uri.toString()===e)}computeLinks(e){const t=this.getModel(e);if(!t)return Promise.resolve([]);const s=[],r=t.getValue().split(/\r\n|\r|\n/);return this.patterns.forEach((e,t)=>{const i={toResource:e=>"string"==typeof e?n.joinPath(t,e):null};for(let t=0,n=r.length;t<n;t++)s.push(...c.detectLinks(r[t],t+1,e,i))}),Promise.resolve(s)}static createPatterns(e){const t=[],s=e.scheme===h.Schemas.file?e.fsPath:e.path,n=[s];return a.isWindows&&e.scheme===h.Schemas.file&&n.push(r.toSlashes(s)),n.forEach(e=>{
const s='(?:[^\\s\\(\\):<>"]| [^\\s\\(\\):<>"])+\\.[^\\s\\(\\):<>"]+';t.push(new RegExp(i.escapeRegExpCharacters(e)+`(${s}) on line ((\\d+)(, column (\\d+))?)`,"gi")),t.push(new RegExp(i.escapeRegExpCharacters(e)+`(${s}):line ((\\d+)(, column (\\d+))?)`,"gi")),t.push(new RegExp(i.escapeRegExpCharacters(e)+`(${s})(\\s?\\((\\d+)(,(\\d+))?)\\)`,"gi")),t.push(new RegExp(i.escapeRegExpCharacters(e)+'([^\\s\\(\\):<>"]+)(:(\\d+))?(:(\\d+))?',"gi"))}),t}static detectLinks(e,t,s,r){const n=[];return s.forEach(s=>{let a;s.lastIndex=0;let h=0;for(;null!==(a=s.exec(e));){const s=i.rtrim(a[1],".").replace(/\\/g,"/");let l;try{const e=r.toResource(s);e&&(l=e.toString())}catch(e){continue}if(a[3]){const e=a[3];if(a[5]){const t=a[5];l=i.format("{0}#{1},{2}",l,e,t)}else l=i.format("{0}#{1}",l,e)}const c=i.rtrim(a[0],"."),u=e.indexOf(c,h);h+=u+c.length;const f={startColumn:u+1,startLineNumber:t,endColumn:u+1+c.length,endLineNumber:t};if(n.some(e=>o.Range.areIntersectingOrTouching(e.range,f)))return;n.push({range:f,url:l})}}),n
}}t.OutputLinkComputer=c,t.create=function(e,t){return new c(e,t)}}))}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/9579eda04fdb3a9bba2750f15193e5fafe16b959/core/vs/workbench/contrib/output/common/outputLinkComputer.js.map
