ethereum-lite-explorer
Version:
Ethereum Lite Explorer
1 lines • 216 kB
JavaScript
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};e[n].call(i.exports,i,i.exports,r);i.l=!0;return i.exports}r.m=e;r.c=t;r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})};r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};r.t=function(e,t){1&t&&(e=r(e));if(8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);r.r(n);Object.defineProperty(n,"default",{enumerable:!0,value:e});if(2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n};r.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};r.d(t,"a",t);return t};r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};r.p="";r(r.s="AkBx")}({"5IsQ":function(e,t){var r=e.exports={};var n;var i;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout){n=setTimeout;return setTimeout(e,0)}try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(e)}try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}var c=[];var l=!1;var f;var h=-1;function d(){if(!l||!f)return;l=!1;f.length?c=f.concat(c):h=-1;c.length&&p()}function p(){if(l)return;var e=s(d);l=!0;var t=c.length;for(;t;){f=c;c=[];for(;++h<t;)f&&f[h].run();h=-1;t=c.length}f=null;l=!1;u(e)}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new m(e,t));1!==c.length||l||s(p)};function m(e,t){this.fun=e;this.array=t}m.prototype.run=function(){this.fun.apply(null,this.array)};r.title="browser";r.browser=!0;r.env={};r.argv=[];r.version="";r.versions={};function v(){}r.on=v;r.addListener=v;r.once=v;r.off=v;r.removeListener=v;r.removeAllListeners=v;r.emit=v;r.prependListener=v;r.prependOnceListener=v;r.listeners=function(e){return[]};r.binding=function(e){throw new Error("process.binding is not supported")};r.cwd=function(){return"/"};r.chdir=function(e){throw new Error("process.chdir is not supported")};r.umask=function(){return 0}},"9X2a":function(e,t,r){"use strict";(function(e,n){r.d(t,"c",function(){return b});r.d(t,"b",function(){return E});r.d(t,"a",function(){return N});r.d(t,"d",function(){return w});var i=!1;var o=!1;var a=!1;var s=!1;var u=!1;var c=void 0;var l=void 0;var f=void 0;var h="en";var d=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||d){if("object"==typeof e){i="win32"===e.platform;o="darwin"===e.platform;a="linux"===e.platform;c="en";l="en";var p=e.env["VSCODE_NLS_CONFIG"];if(p)try{var m=JSON.parse(p);var v=m.availableLanguages["*"];c=m.locale;l=v||"en";f=m._translationsConfigFile}catch(e){}s=!0}}else{var g=navigator.userAgent;i=g.indexOf("Windows")>=0;o=g.indexOf("Macintosh")>=0;a=g.indexOf("Linux")>=0;u=!0;l=c=navigator.language}var y=0;s&&(o?y=1:i?y=3:a&&(y=2));var b=i;var _=o;var C=a;var S=s;var E=u;var A;var N="object"==typeof self?self:"object"==typeof n?n:{};var x=null;function w(t){null===x&&(x=N.setImmediate?N.setImmediate.bind(N):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):N.setTimeout.bind(N));return x(t)}var k=o?2:i?1:3}).call(this,r("5IsQ"),r("pCvA"))},AkBx:function(e,t,r){"use strict";r.r(t);var n=r("eu5a");var i={};function o(e){var t=e.detail;var r=t.id;if(t.parent){t.handler&&i&&delete i[r];return}i[r]=t;1===Object.keys(i).length&&setTimeout(function(){var e=i;i={};Object.keys(e).forEach(function(t){var r=e[t];r.exception?u(r.exception):r.error&&u(r.error);console.log("WARNING: Promise with no error callback:"+r.id);console.log(r);r.exception&&console.log(r.exception.stack)})},0)}n["b"].addEventListener("error",o);var a;var s=new(function(){function e(){this.listeners=[];this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})};e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e);this.emit(e)};e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)};return e}());function u(e){h(e)||s.onUnexpectedError(e);return}function c(e){h(e)||s.onUnexpectedExternalError(e);return}function l(e){if(e instanceof Error){var t,r;var n;return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}}return e}var f="Canceled";function h(e){return e instanceof Error&&e.name===f&&e.message===f}function d(){var e=new Error(f);e.name=e.message;return e}function p(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function m(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}function v(e){return"function"==typeof e.dispose&&0===e.dispose.length}function g(e){var t=[];for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Array.isArray(e)){e.forEach(function(e){return e&&e.dispose()});return[]}if(0===t.length){if(e){e.dispose();return e}return}g(e);g(t);return[]}function y(e){return{dispose:function(){return g(e)}}}function b(e){return{dispose:function(){e()}}}var _=function(){function e(){this._toDispose=[]}e.prototype.dispose=function(){this._toDispose=g(this._toDispose)};e.prototype._register=function(e){this._toDispose.push(e);return e};e.None=Object.freeze({dispose:function(){}});return e}();var C=function(){function e(e){this.object=e}e.prototype.dispose=function(){};return e}();var S=r("9X2a");function E(e){var t=this;var r=!1;var n;return function(){if(r)return n;r=!0;return n=e.apply(t,arguments)}}var A=(N=function(e,t){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){N(e,t);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});var N;var x={done:!0,value:void 0};var w;!function(e){var t={next:function(){return x}};function r(){return t}e.empty=r;function n(e,t,r){void 0===t&&(t=0);void 0===r&&(r=e.length);return{next:function(){if(t>=r)return x;return{done:!1,value:e[t++]}}}}e.fromArray=n;function i(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}e.from=i;function o(e,t){return{next:function(){var r=e.next();return r.done?x:{done:!1,value:t(r.value)}}}}e.map=o;function a(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return x;if(t(r.value))return{done:!1,value:r.value}}}}}e.filter=a;function s(e,t){for(var r=e.next();!r.done;r=e.next())t(r.value)}e.forEach=s;function u(e){var t=[];s(e,function(e){return t.push(e)});return t}e.collect=u}(w||(w={}));var k;var O=function(e){A(t,e);function t(t,r,n,i){void 0===r&&(r=0);void 0===n&&(n=t.length);void 0===i&&(i=r-1);return e.call(this,t,r,n,i)||this}t.prototype.current=function(){return e.prototype.current.call(this)};t.prototype.previous=function(){this.index=Math.max(this.index-1,this.start-1);return this.current()};t.prototype.first=function(){this.index=this.start;return this.current()};t.prototype.last=function(){this.index=this.end-1;return this.current()};t.prototype.parent=function(){return null};return t}(function(){function e(e,t,r,n){void 0===t&&(t=0);void 0===r&&(r=e.length);void 0===n&&(n=t-1);this.items=e;this.start=t;this.end=r;this.index=n}e.prototype.next=function(){this.index=Math.min(this.index+1,this.end);return this.current()};e.prototype.current=function(){if(this.index===this.start-1||this.index===this.end)return null;return this.items[this.index]};return e}());var L=function(){function e(e,t){this.iterator=e;this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())};return e}();var T=function(){function e(e){this.element=e}return e}();var P=function(){function e(){}e.prototype.isEmpty=function(){return!this._first};e.prototype.unshift=function(e){return this.insert(e,!1)};e.prototype.push=function(e){return this.insert(e,!0)};e.prototype.insert=function(e,t){var r=this;var n=new T(e);if(this._first)if(t){var i=this._last;this._last=n;n.prev=i;i.next=n}else{var o=this._first;this._first=n;n.next=o;o.prev=n}else{this._first=n;this._last=n}return function(){var e=r._first;for(;e instanceof T;){if(e!==n){e=e.next;continue}if(e.prev&&e.next){var t=e.prev;t.next=e.next;e.next.prev=t}else if(e.prev||e.next)if(e.next){if(!e.prev){r._first=r._first.next;r._first.prev=void 0}}else{r._last=r._last.prev;r._last.next=void 0}else{r._first=void 0;r._last=void 0}break}}};e.prototype.iterator=function(){var e;var t=this._first;return{next:function(){if(!t)return x;e?e.value=t.element:e={done:!1,value:t.element};t=t.next;return e}}};return e}();var I;!function(e){var t={dispose:function(){}};e.None=function(){return t}}(I||(I={}));var M=function(){function e(e){void 0===e&&(e=null);this._options=e;this._event=null;this._disposed=!1;this._deliveryQueue=null;this._listeners=null}Object.defineProperty(e.prototype,"event",{get:function(){var t=this;this._event||(this._event=function(r,n,i){t._listeners||(t._listeners=new P);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var a=t._listeners.push(n?[r,n]:r);o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t);t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,r,n);var s;s={dispose:function(){s.dispose=e._noop;if(!t._disposed){a();if(t._options&&t._options.onLastListenerRemove){var r;t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)}}}};Array.isArray(i)&&i.push(s);return s});return this._event},enumerable:!0,configurable:!0});e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),r=t.next();!r.done;r=t.next())this._deliveryQueue.push([r.value,e]);for(;this._deliveryQueue.length>0;){var n=this._deliveryQueue.shift(),i=n[0],o=n[1];try{"function"==typeof i?i.call(void 0,o):i[0].call(i[1],o)}catch(r){u(r)}}}};e.prototype.dispose=function(){this._listeners&&(this._listeners=null);this._deliveryQueue&&(this._deliveryQueue.length=0);this._disposed=!0};e._noop=function(){};return e}();var D=function(){function e(){var e=this;this.hasListeners=!1;this.events=[];this.emitter=new M({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0});e.prototype.add=function(e){var t=this;var r={event:e,listener:null};this.events.push(r);this.hasListeners&&this.hook(r);var n;return b(E(function(){t.hasListeners&&t.unhook(r);var e=t.events.indexOf(r);t.events.splice(e,1)}))};e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0;this.events.forEach(function(t){return e.hook(t)})};e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1;this.events.forEach(function(t){return e.unhook(t)})};e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})};e.prototype.unhook=function(e){e.listener&&e.listener.dispose();e.listener=null};e.prototype.dispose=function(){this.emitter.dispose()};return e}();function R(e){return function(t,r,n){void 0===r&&(r=null);var i=!1;var o=e(function(e){if(i)return;o?o.dispose():i=!0;return t.call(r,e)},null,n);i&&o.dispose();return o}}function F(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,r,n){void 0===r&&(r=null);return y(e.map(function(e){return e(function(e){return t.call(r,e)},null,n)}))}}function j(e,t,r,n){void 0===r&&(r=100);void 0===n&&(n=!1);var i;var o=void 0;var a=void 0;var s=0;var u=new M({onFirstListenerAdd:function(){i=e(function(e){s++;o=t(o,e);n&&!a&&u.fire(o);clearTimeout(a);a=setTimeout(function(){var e=o;o=void 0;a=void 0;(!n||s>1)&&u.fire(e);s=0},r)})},onLastListenerRemove:function(){i.dispose()}});return u.event}var V=function(){function e(){this.buffers=[]}e.prototype.wrapEvent=function(e){var t=this;return function(r,n,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return r.call(n,e)}):r.call(n,e)},void 0,i)}};e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var r=e();this.buffers.pop();t.forEach(function(e){return e()});return r};return e}();function U(e,t){return function(r,n,i){void 0===n&&(n=null);return e(function(e){return r.call(n,t(e))},null,i)}}function W(e,t){return function(r,n,i){void 0===n&&(n=null);return e(function(e){return t(e)&&r.call(n,e)},null,i)}}var B=function(){function e(e){this._event=e}Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0});e.prototype.map=function(t){return new e(U(this._event,t))};e.prototype.filter=function(t){return new e(W(this._event,t))};e.prototype.on=function(e,t,r){return this._event(e,t,r)};return e}();function K(e){return new B(e)}var q=function(){function e(){var e=this;this.listening=!1;this.inputEvent=I.None;this.inputEventListener=_.None;this.emitter=new M({onFirstListenerDidAdd:function(){e.listening=!0;e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1;e.inputEventListener.dispose()}});this.event=this.emitter.event}Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e;if(this.listening){this.inputEventListener.dispose();this.inputEventListener=e(this.emitter.fire,this.emitter)}},enumerable:!0,configurable:!0});e.prototype.dispose=function(){this.inputEventListener.dispose();this.emitter.dispose()};return e}();var Y=Object.freeze(function(e,t){var r=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(r)}}});var $;!function(e){function t(t){if(t===e.None||t===e.Cancelled)return!0;if(t instanceof J)return!0;if(!t||"object"!=typeof t)return!1;return"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested}e.isCancellationToken=t;e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:I.None});e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Y})}($||($={}));var J=function(){function e(){this._isCancelled=!1;this._emitter=null}e.prototype.cancel=function(){if(!this._isCancelled){this._isCancelled=!0;if(this._emitter){this._emitter.fire(void 0);this.dispose()}}};Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){if(this._isCancelled)return Y;this._emitter||(this._emitter=new M);return this._emitter.event},enumerable:!0,configurable:!0});e.prototype.dispose=function(){if(this._emitter){this._emitter.dispose();this._emitter=null}};return e}();var H=function(){function e(){}Object.defineProperty(e.prototype,"token",{get:function(){this._token||(this._token=new J);return this._token},enumerable:!0,configurable:!0});e.prototype.cancel=function(){this._token?this._token instanceof J&&this._token.cancel():this._token=$.Cancelled};e.prototype.dispose=function(){this._token?this._token instanceof J&&this._token.dispose():this._token=$.None};return e}();var G=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function z(e){return e&&"function"==typeof e.then}function Q(e){var t=new H;var r=e(t.token);var n=new Promise(function(e,n){t.token.onCancellationRequested(function(){n(d())});Promise.resolve(r).then(function(r){t.dispose();e(r)},function(e){t.dispose();n(e)})});return new(function(){function e(){}e.prototype.cancel=function(){t.cancel()};e.prototype.then=function(e,t){return n.then(e,t)};e.prototype.catch=function(e){return this.then(void 0,e)};return e}())}var X=function(){function e(e){this.defaultDelay=e;this.timeout=null;this.completionPromise=null;this.doResolve=null;this.task=null}e.prototype.trigger=function(e,t){var r=this;void 0===t&&(t=this.defaultDelay);this.task=e;this.cancelTimeout();this.completionPromise||(this.completionPromise=new n["b"](function(e,t){r.doResolve=e;r.doReject=t}).then(function(){r.completionPromise=null;r.doResolve=null;var e=r.task;r.task=null;return e()}));this.timeout=setTimeout(function(){r.timeout=null;r.doResolve(null)},t);return this.completionPromise};e.prototype.cancel=function(){this.cancelTimeout();if(this.completionPromise){this.doReject(d());this.completionPromise=null}};e.prototype.cancelTimeout=function(){if(null!==this.timeout){clearTimeout(this.timeout);this.timeout=null}};e.prototype.dispose=function(){this.cancelTimeout()};return e}();function Z(e,t){if(!t)return Q(function(t){return Z(e,t)});return new Promise(function(r,n){var i=setTimeout(r,e);t.onCancellationRequested(function(){clearTimeout(i);n(d())})})}function ee(e,t){function r(){try{t()}catch(e){u(e)}}e.then(function(e){return r()},function(e){return r()});return Promise.resolve(e)}function te(e,t,r){void 0===t&&(t=function(e){return!!e});void 0===r&&(r=null);var n=0;var i=e.length;var o=function(){if(n>=i)return Promise.resolve(r);var a=e[n++];var s;return Promise.resolve(a()).then(function(e){if(t(e))return Promise.resolve(e);return o()})};return o()}var re=function(e){G(t,e);function t(t,r){var n=e.call(this)||this;n._token=-1;"function"==typeof t&&"number"==typeof r&&n.setIfNotSet(t,r);return n}t.prototype.dispose=function(){this.cancel();e.prototype.dispose.call(this)};t.prototype.cancel=function(){if(-1!==this._token){clearTimeout(this._token);this._token=-1}};t.prototype.cancelAndSet=function(e,t){var r=this;this.cancel();this._token=setTimeout(function(){r._token=-1;e()},t)};t.prototype.setIfNotSet=function(e,t){var r=this;if(-1!==this._token)return;this._token=setTimeout(function(){r._token=-1;e()},t)};return t}(_);var ne=function(e){G(t,e);function t(){var t=e.call(this)||this;t._token=-1;return t}t.prototype.dispose=function(){this.cancel();e.prototype.dispose.call(this)};t.prototype.cancel=function(){if(-1!==this._token){clearInterval(this._token);this._token=-1}};t.prototype.cancelAndSet=function(e,t){this.cancel();this._token=setInterval(function(){e()},t)};return t}(_);var ie=function(){function e(e,t){this.timeoutToken=-1;this.runner=e;this.timeout=t;this.timeoutHandler=this.onTimeout.bind(this)}e.prototype.dispose=function(){this.cancel();this.runner=null};e.prototype.cancel=function(){if(this.isScheduled()){clearTimeout(this.timeoutToken);this.timeoutToken=-1}};e.prototype.schedule=function(e){void 0===e&&(e=this.timeout);this.cancel();this.timeoutToken=setTimeout(this.timeoutHandler,e)};e.prototype.isScheduled=function(){return-1!==this.timeoutToken};e.prototype.onTimeout=function(){this.timeoutToken=-1;this.runner&&this.doRun()};e.prototype.doRun=function(){this.runner&&this.runner()};return e}();var oe;!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});oe=function(t,r){void 0===r&&(r=0);var n=setTimeout(function(){return t(e)},r);var i=!1;return{dispose:function(){if(i)return;i=!0;clearTimeout(n)}}}}else oe=function(e,t){var r=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);var n=!1;return{dispose:function(){if(n)return;n=!0;cancelIdleCallback(r)}}}}();var ae=function(){function e(e){var t=this;this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}};this._handle=oe(function(){return t._executor()})}e.prototype.dispose=function(){this._handle.dispose()};e.prototype.getValue=function(){if(!this._didRun){this._handle.dispose();this._executor()}if(this._error)throw this._error;return this._value};return e}();function se(e){return z(e)&&"function"==typeof e.done}var ue=function(){function e(e){se(e)?this._winjsPromise=e:this._winjsPromise=new n["a"](function(t,r){var n=!0;e(function(e){n?S["d"](function(){return t(e)}):t(e)},function(e){n?S["d"](function(){return r(e)}):r(e)});n=!1})}e.all=function(t){return new e(n["a"].join(t).then(null,function(e){for(var t in e)if(e.hasOwnProperty(t))return e[t]}))};e.race=function(t){return new e(n["a"].any(t).then(function(e){return e.value},function(e){return e.value}))};e.resolve=function(t){return new e(n["a"].wrap(t))};e.reject=function(t){return new e(n["a"].wrapError(t))};e.prototype.then=function(t,r){var i=!0;var o=new e(this._winjsPromise.then(t&&function(e){return i?new n["a"](function(r,n){S["d"](function(){var i;try{i=t(e)}catch(e){n(e);return}r(i)})}):t(e)},r&&function(e){return i?new n["a"](function(t,n){S["d"](function(){var i;try{i=r(e)}catch(e){n(e);return}t(i)})}):r(e)}));i=!1;return o};e.prototype.catch=function(e){return this.then(null,e)};return e}();var ce=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();var le=self;void 0===le.Promise&&(le.Promise=ue);var fe="$initialize";var he=!1;function de(e){if(!S["b"])return;if(!he){he=!0;console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")}console.warn(e.message)}var pe=function(){function e(e){this._workerId=-1;this._handler=e;this._lastSentReq=0;this._pendingReplies=Object.create(null)}e.prototype.setWorkerId=function(e){this._workerId=e};e.prototype.sendMessage=function(e,t){var r=this;var n=String(++this._lastSentReq);return new Promise(function(i,o){r._pendingReplies[n]={resolve:i,reject:o};r._send({vsWorker:r._workerId,req:n,method:e,args:t})})};e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){return}if(!t||!t.vsWorker)return;if(-1!==this._workerId&&t.vsWorker!==this._workerId)return;this._handleMessage(t)};e.prototype._handleMessage=function(e){var t=this;if(e.seq){var r=e;if(!this._pendingReplies[r.seq]){console.warn("Got reply to unknown seq");return}var n=this._pendingReplies[r.seq];delete this._pendingReplies[r.seq];if(r.err){var i=r.err;if(r.err.$isError){(i=new Error).name=r.err.name;i.message=r.err.message;i.stack=r.err.stack}n.reject(i);return}n.resolve(r.res);return}var o=e;var a=o.req;var s;this._handler.handleMessage(o.method,o.args).then(function(e){t._send({vsWorker:t._workerId,seq:a,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=l(e.detail));t._send({vsWorker:t._workerId,seq:a,res:void 0,err:l(e)})})};e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)};return e}();var me=function(e){ce(t,e);function t(t,r){var n=e.call(this)||this;var i=null;n._worker=n._register(t.create("vs/base/common/worker/simpleWorker",function(e){n._protocol.handleMessage(e)},function(e){i&&i(e)}));n._protocol=new pe({sendMessage:function(e){n._worker.postMessage(e)},handleMessage:function(e,t){return Promise.resolve(null)}});n._protocol.setWorkerId(n._worker.getId());var o=null;void 0!==self.require&&"function"==typeof self.require.getConfig?o=self.require.getConfig():void 0!==self.requirejs&&(o=self.requirejs.s.contexts._.config);n._onModuleLoaded=n._protocol.sendMessage(fe,[n._worker.getId(),r,o]);n._lazyProxy=new Promise(function(e,t){i=t;n._onModuleLoaded.then(function(t){var r={};for(var n=0;n<t.length;n++)r[t[n]]=s(t[n],a);e(r)},function(e){t(e);n._onError("Worker failed to load "+r,e)})});var a=function(e,t){return n._request(e,t)};var s=function(e,t){return function(){var r=Array.prototype.slice.call(arguments,0);return t(e,r)}};return n}t.prototype.getProxyObject=function(){return this._lazyProxy};t.prototype._request=function(e,t){var r=this;return new Promise(function(n,i){r._onModuleLoaded.then(function(){r._protocol.sendMessage(e,t).then(n,i)},i)})};t.prototype._onError=function(e,t){console.error(e);console.info(t)};return t}(_);var ve=function(){function e(e,t){var r=this;this._requestHandler=t;this._protocol=new pe({sendMessage:function(t){e(t)},handleMessage:function(e,t){return r._handleMessage(e,t)}})}e.prototype.onmessage=function(e){this._protocol.handleMessage(e)};e.prototype._handleMessage=function(e,t){if(e===fe)return this.initialize(t[0],t[1],t[2]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}};e.prototype.initialize=function(e,t,r){var n=this;this._protocol.setWorkerId(e);if(this._requestHandler){var i=[];for(var o in this._requestHandler)"function"==typeof this._requestHandler[o]&&i.push(o);return Promise.resolve(i)}if(r){void 0!==r.baseUrl&&delete r["baseUrl"];void 0!==r.paths&&void 0!==r.paths.vs&&delete r.paths["vs"];r.catchError=!0;self.require.config(r)}return new Promise(function(e,r){self.require([t],function(){var t=[];for(var i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[0];n._requestHandler=o.create();if(!n._requestHandler){r(new Error("No RequestHandler!"));return}var a=[];for(var s in n._requestHandler)"function"==typeof n._requestHandler[s]&&a.push(s);e(a)},r)})};return e}();function ge(e){return new ve(e,null)}function ye(e,t){void 0===t&&(t=0);return e[e.length-(1+t)]}function be(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function _e(e,t,r){void 0===r&&(r=function(e,t){return e===t});if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!r(e[n],t[n]))return!1;return!0}function Ce(e,t,r){var n=0,i=e.length-1;for(;n<=i;){var o=(n+i)/2|0;var a=r(e[o],t);if(a<0)n=o+1;else{if(!(a>0))return o;i=o-1}}return-(n+1)}function Se(e,t){var r=0,n=e.length;if(0===n)return 0;for(;r<n;){var i=Math.floor((r+n)/2);t(e[i])?n=i:r=i+1}return r}function Ee(e,t){Ne(e,t,0,e.length-1,[]);return e}function Ae(e,t,r,n,i,o){var a=r,s=n+1;for(var u=r;u<=i;u++)o[u]=e[u];for(var u=r;u<=i;u++)a>n?e[u]=o[s++]:s>i?e[u]=o[a++]:t(o[s],o[a])<0?e[u]=o[s++]:e[u]=o[a++]}function Ne(e,t,r,n,i){if(n<=r)return;var o=r+(n-r)/2|0;Ne(e,t,r,o,i);Ne(e,t,o+1,n,i);if(t(e[o],e[o+1])<=0)return;Ae(e,t,r,o,n,i)}function xe(e,t){var r=[];var n=void 0;for(var i=0,o=Ee(e.slice(0),t);i<o.length;i++){var a=o[i];if(n&&0===t(n[0],a))n.push(a);else{n=[a];r.push(n)}}return r}function we(e){if(!e)return e;return e.filter(function(e){return!!e})}function ke(e){return!Array.isArray(e)||0===e.length}function Oe(e,t){if(!t)return e.filter(function(t,r){return e.indexOf(t)===r});var r=Object.create(null);return e.filter(function(e){var n=t(e);if(r[n])return!1;r[n]=!0;return!0})}function Le(e,t){for(var r=0;r<e.length;r++){var n;if(t(e[r]))return r}return-1}function Te(e,t,r){void 0===r&&(r=null);var n=Le(e,t);return n<0?r:e[n]}function Pe(e){var t;return(t=[]).concat.apply(t,e)}function Ie(e,t){var r="number"==typeof t?e:0;if("number"==typeof t)r=e;else{r=0;t=e}var n=[];if(r<=t)for(var i=r;i<t;i++)n.push(i);else for(var i=r;i>t;i--)n.push(i);return n}function Me(e,t,r){var n=e.slice(0,t);var i=e.slice(t);return n.concat(r,i)}var De=function(){function e(e,t,r,n){this.originalStart=e;this.originalLength=t;this.modifiedStart=r;this.modifiedLength=n}e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength};e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength};return e}();function Re(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function Fe(e,t,r){return new Be(Re(e),Re(t)).ComputeDiff(r)}var je=function(){function e(){}e.Assert=function(e,t){if(!e)throw new Error(t)};return e}();var Ve=function(){function e(){}e.Copy=function(e,t,r,n,i){for(var o=0;o<i;o++)r[n+o]=e[t+o]};return e}();var Ue=1447;var We=function(){function e(){this.m_changes=[];this.m_originalStart=Number.MAX_VALUE;this.m_modifiedStart=Number.MAX_VALUE;this.m_originalCount=0;this.m_modifiedCount=0}e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new De(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount));this.m_originalCount=0;this.m_modifiedCount=0;this.m_originalStart=Number.MAX_VALUE;this.m_modifiedStart=Number.MAX_VALUE};e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e);this.m_modifiedStart=Math.min(this.m_modifiedStart,t);this.m_originalCount++};e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e);this.m_modifiedStart=Math.min(this.m_modifiedStart,t);this.m_modifiedCount++};e.prototype.getChanges=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange();return this.m_changes};e.prototype.getReverseChanges=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange();this.m_changes.reverse();return this.m_changes};return e}();var Be=function(){function e(e,t,r){void 0===r&&(r=null);this.OriginalSequence=e;this.ModifiedSequence=t;this.ContinueProcessingPredicate=r;this.m_forwardHistory=[];this.m_reverseHistory=[]}e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)};e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)};e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)};e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)};e.prototype._ComputeDiff=function(e,t,r,n,i){var o=[!1];var a=this.ComputeDiffRecursive(e,t,r,n,o);if(i)return this.PrettifyChanges(a);return a};e.prototype.ComputeDiffRecursive=function(e,t,r,n,i){i[0]=!1;for(;e<=t&&r<=n&&this.ElementsAreEqual(e,r);){e++;r++}for(;t>=e&&n>=r&&this.ElementsAreEqual(t,n);){t--;n--}if(e>t||r>n){var o=void 0;if(r<=n){je.Assert(e===t+1,"originalStart should only be one more than originalEnd");o=[new De(e,0,r,n-r+1)]}else if(e<=t){je.Assert(r===n+1,"modifiedStart should only be one more than modifiedEnd");o=[new De(e,t-e+1,r,0)]}else{je.Assert(e===t+1,"originalStart should only be one more than originalEnd");je.Assert(r===n+1,"modifiedStart should only be one more than modifiedEnd");o=[]}return o}var a=[0],s=[0];var u=this.ComputeRecursionPoint(e,t,r,n,a,s,i);var c=a[0];var l=s[0];if(null!==u)return u;if(!i[0]){var f=this.ComputeDiffRecursive(e,c,r,l,i);var h=[];h=i[0]?[new De(c+1,t-(c+1)+1,l+1,n-(l+1)+1)]:this.ComputeDiffRecursive(c+1,t,l+1,n,i);return this.ConcatenateChanges(f,h)}return[new De(e,t-e+1,r,n-r+1)]};e.prototype.WALKTRACE=function(e,t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,v,g){var y=null,b=null;var _=new We;var C=t;var S=r;var E=h[0]-m[0]-n;var A=Number.MIN_VALUE;var N=this.m_forwardHistory.length-1;var x;do{if((x=E+e)===C||x<S&&u[x-1]<u[x+1]){d=(l=u[x+1])-E-n;l<A&&_.MarkNextChange();A=l;_.AddModifiedElement(l+1,d);E=x+1-e}else{d=(l=u[x-1]+1)-E-n;l<A&&_.MarkNextChange();A=l-1;_.AddOriginalElement(l,d+1);E=x-1-e}if(N>=0){e=(u=this.m_forwardHistory[N])[0];C=1;S=u.length-1}}while(--N>=-1);y=_.getReverseChanges();if(g[0]){var w=h[0]+1;var k=m[0]+1;if(null!==y&&y.length>0){var O=y[y.length-1];w=Math.max(w,O.getOriginalEnd());k=Math.max(k,O.getModifiedEnd())}b=[new De(w,f-w+1,k,p-k+1)]}else{_=new We;C=o;S=a;E=h[0]-m[0]-s;A=Number.MAX_VALUE;N=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{if((x=E+i)===C||x<S&&c[x-1]>=c[x+1]){d=(l=c[x+1]-1)-E-s;l>A&&_.MarkNextChange();A=l+1;_.AddOriginalElement(l+1,d+1);E=x+1-i}else{d=(l=c[x-1])-E-s;l>A&&_.MarkNextChange();A=l;_.AddModifiedElement(l+1,d+1);E=x-1-i}if(N>=0){i=(c=this.m_reverseHistory[N])[0];C=1;S=c.length-1}}while(--N>=-1);b=_.getChanges()}return this.ConcatenateChanges(y,b)};e.prototype.ComputeRecursionPoint=function(e,t,r,n,i,o,a){var s=0,u=0;var c=0,l=0;var f=0,h=0;var d;e--;r--;i[0]=0;o[0]=0;this.m_forwardHistory=[];this.m_reverseHistory=[];var p=t-e+(n-r);var m=p+1;var v=new Array(m);var g=new Array(m);var y=n-r;var b=t-e;var _=e-r;var C=t-n;var S;var E=(b-y)%2==0;v[y]=e;g[b]=t;a[0]=!1;var A,N;for(d=1;d<=p/2+1;d++){var x=0;var w=0;c=this.ClipDiagonalBound(y-d,d,y,m);l=this.ClipDiagonalBound(y+d,d,y,m);for(A=c;A<=l;A+=2){u=(s=A===c||A<l&&v[A-1]<v[A+1]?v[A+1]:v[A-1]+1)-(A-y)-_;N=s;for(;s<t&&u<n&&this.ElementsAreEqual(s+1,u+1);){s++;u++}v[A]=s;if(s+u>x+w){x=s;w=u}if(!E&&Math.abs(A-b)<=d-1&&s>=g[A]){i[0]=s;o[0]=u;return N<=g[A]&&d<=1448?this.WALKTRACE(y,c,l,_,b,f,h,C,v,g,s,t,i,u,n,o,E,a):null}}var k=(x-e+(w-r)-d)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(x,this.OriginalSequence,k)){a[0]=!0;i[0]=x;o[0]=w;return k>0&&d<=1448?this.WALKTRACE(y,c,l,_,b,f,h,C,v,g,s,t,i,u,n,o,E,a):[new De(++e,t-e+1,++r,n-r+1)]}f=this.ClipDiagonalBound(b-d,d,b,m);h=this.ClipDiagonalBound(b+d,d,b,m);for(A=f;A<=h;A+=2){u=(s=A===f||A<h&&g[A-1]>=g[A+1]?g[A+1]-1:g[A-1])-(A-b)-C;N=s;for(;s>e&&u>r&&this.ElementsAreEqual(s,u);){s--;u--}g[A]=s;if(E&&Math.abs(A-y)<=d&&s<=v[A]){i[0]=s;o[0]=u;return N>=v[A]&&d<=1448?this.WALKTRACE(y,c,l,_,b,f,h,C,v,g,s,t,i,u,n,o,E,a):null}}if(d<=1447){var O=new Array(l-c+2);O[0]=y-c+1;Ve.Copy(v,c,O,1,l-c+1);this.m_forwardHistory.push(O);(O=new Array(h-f+2))[0]=b-f+1;Ve.Copy(g,f,O,1,h-f+1);this.m_reverseHistory.push(O)}}return this.WALKTRACE(y,c,l,_,b,f,h,C,v,g,s,t,i,u,n,o,E,a)};e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){var r=e[t];var n=t<e.length-1?e[t+1].originalStart:this.OriginalSequence.getLength();var i=t<e.length-1?e[t+1].modifiedStart:this.ModifiedSequence.getLength();var o=r.originalLength>0;var a=r.modifiedLength>0;for(;r.originalStart+r.originalLength<n&&r.modifiedStart+r.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!a||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){r.originalStart++;r.modifiedStart++}var s=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)){e[t]=s[0];e.splice(t+1,1);t--;continue}}for(var t=e.length-1;t>=0;t--){var r=e[t];var n=0;var i=0;if(t>0){var u=e[t-1];u.originalLength>0&&(n=u.originalStart+u.originalLength);u.modifiedLength>0&&(i=u.modifiedStart+u.modifiedLength)}var o=r.originalLength>0;var a=r.modifiedLength>0;var c=0;var l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(var f=1;;f++){var h=r.originalStart-f;var d=r.modifiedStart-f;if(h<n||d<i)break;if(o&&!this.OriginalElementsAreEqual(h,h+r.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(d,d+r.modifiedLength))break;var p=this._boundaryScore(h,r.originalLength,d,r.modifiedLength);if(p>l){l=p;c=f}}r.originalStart-=c;r.modifiedStart-=c}return e};e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)};e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var r=e+t;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1};e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)};e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var r=e+t;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1};e.prototype._boundaryScore=function(e,t,r,n){var i;var o;return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(r,n)?1:0)};e.prototype.ConcatenateChanges=function(e,t){var r=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],r)){var n=new Array(e.length+t.length-1);Ve.Copy(e,0,n,0,e.length-1);n[e.length-1]=r[0];Ve.Copy(t,1,n,e.length,t.length-1);return n}var n=new Array(e.length+t.length);Ve.Copy(e,0,n,0,e.length);Ve.Copy(t,0,n,e.length,t.length);return n};e.prototype.ChangesOverlap=function(e,t,r){je.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change");je.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change");if(e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var n=e.originalStart;var i=e.originalLength;var o=e.modifiedStart;var a=e.modifiedLength;e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart);e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart);r[0]=new De(n,i,o,a);return!0}r[0]=null;return!1};e.prototype.ClipDiagonalBound=function(e,t,r,n){if(e>=0&&e<n)return e;var i;var o=n-r-1;var a=t%2==0;if(e<0){var s;return a===(r%2==0)?0:1}var u;return a===(o%2==0)?n-1:n-2};return e}();var Ke=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();var qe;var Ye=/^\w[\w\d+.-]*$/;var $e=/^\//;var Je=/^\/\//;var He=!0;function Ge(e){if(!e.scheme){if(He)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!Ye.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!$e.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(Je.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function ze(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Xe&&(t=Xe+t):t=Xe}return t}var Qe="";var Xe="/";var Ze=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var et=function(){function e(e,t,r,n,i){if("object"==typeof e){this.scheme=e.scheme||Qe;this.authority=e.authority||Qe;this.path=e.path||Qe;this.query=e.query||Qe;this.fragment=e.fragment||Qe}else{this.scheme=e||Qe;this.authority=t||Qe;this.path=ze(this.scheme,r||Qe);this.query=n||Qe;this.fragment=i||Qe;Ge(this)}}e.isUri=function(t){if(t instanceof e)return!0;if(!t)return!1;return"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme};Object.defineProperty(e.prototype,"fsPath",{get:function(){return ot(this)},enumerable:!0,configurable:!0});e.prototype.with=function(e){if(!e)return this;var t=e.scheme,r=e.authority,n=e.path,i=e.query,o=e.fragment;void 0===t?t=this.scheme:null===t&&(t=Qe);void 0===r?r=this.authority:null===r&&(r=Qe);void 0===n?n=this.path:null===n&&(n=Qe);void 0===i?i=this.query:null===i&&(i=Qe);void 0===o?o=this.fragment:null===o&&(o=Qe);if(t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&o===this.fragment)return this;return new tt(t,r,n,i,o)};e.parse=function(e){var t=Ze.exec(e);if(!t)return new tt(Qe,Qe,Qe,Qe,Qe);return new tt(t[2]||Qe,decodeURIComponent(t[4]||Qe),decodeURIComponent(t[5]||Qe),decodeURIComponent(t[7]||Qe),decodeURIComponent(t[9]||Qe))};e.file=function(e){var t=Qe;S["c"]&&(e=e.replace(/\\/g,Xe));if(e[0]===Xe&&e[1]===Xe){var r=e.indexOf(Xe,2);if(-1===r){t=e.substring(2);e=Xe}else{t=e.substring(2,r);e=e.substring(r)||Xe}}return new tt("file",t,e,Qe,Qe)};e.from=function(e){return new tt(e.scheme,e.authority,e.path,e.query,e.fragment)};e.prototype.toString=function(e){void 0===e&&(e=!1);return at(this,e)};e.prototype.toJSON=function(){return this};e.revive=function(t){if(t){if(t instanceof e)return t;var r=new tt(t);r._fsPath=t.fsPath;r._formatted=t.external;return r}return t};return e}();var tt=function(e){Ke(t,e);function t(){var t=null!==e&&e.apply(this,arguments)||this;t._formatted=null;t._fsPath=null;return t}Object.defineProperty(t.prototype,"fsPath",{get:function(){this._fsPath||(this._fsPath=ot(this));return this._fsPath},enumerable:!0,configurable:!0});t.prototype.toString=function(e){void 0===e&&(e=!1);if(e)return at(this,!0);this._formatted||(this._formatted=at(this,!1));return this._formatted};t.prototype.toJSON=function(){var e={$mid:1};this._fsPath&&(e.fsPath=this._fsPath);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);return e};return t}(et);var rt=((qe={})[58]="%3A",qe[47]="%2F",qe[63]="%3F",qe[35]="%23",qe[91]="%5B",qe[93]="%5D",qe[64]="%40",qe[33]="%21",qe[36]="%24",qe[38]="%26",qe[39]="%27",qe[40]="%28",qe[41]="%29",qe[42]="%2A",qe[43]="%2B",qe[44]="%2C",qe[59]="%3B",qe[61]="%3D",qe[32]="%20",qe);function nt(e,t){var r=void 0;var n=-1;for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o){if(-1!==n){r+=encodeURIComponent(e.substring(n,i));n=-1}void 0!==r&&(r+=e.charAt(i))}else{void 0===r&&(r=e.substr(0,i));var a=rt[o];if(void 0!==a){if(-1!==n){r+=encodeURIComponent(e.substring(n,i));n=-1}r+=a}else-1===n&&(n=i)}}-1!==n&&(r+=encodeURIComponent(e.substring(n)));return void 0!==r?r:e}function it(e){var t=void 0;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(35===n||63===n){void 0===t&&(t=e.substr(0,r));t+=rt[n]}else void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function ot(e){var t;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;S["c"]&&(t=t.replace(/\//g,"\\"));return t}function at(e,t){var r=t?it:nt;var n="";var i=e.scheme,o=e.authority,a=e.path,s=e.query,u=e.fragment;if(i){n+=i;n+=":"}if(o||"file"===i){n+=Xe;n+=Xe}if(o){var c=o.indexOf("@");if(-1!==c){var l=o.substr(0,c);o=o.substr(c+1);if(-1===(c=l.indexOf(":")))n+=r(l,!1);else{n+=r(l.substr(0,c),!1);n+=":";n+=r(l.substr(c+1),!1)}n+="@"}if(-1===(c=(o=o.toLowerCase()).indexOf(":")))n+=r(o,!1);else{n+=r(o.substr(0,c),!1);n+=o.substr(c)}}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){var f;(f=a.charCodeAt(1))>=65&&f<=90&&(a="/"+String.fromCharCode(f+32)+":"+a.substr(3))}else if(a.length>=2&&58===a.charCodeAt(1)){var f;(f=a.charCodeAt(0))>=65&&f<=90&&(a=String.fromCharCode(f+32)+":"+a.substr(2))}n+=r(a,!0)}if(s){n+="?";n+=r(s,!1)}if(u){n+="#";n+=t?u:nt(u,!1)}return n}var st=function(){function e(e,t){this.lineNumber=e;this.column=t}e.prototype.with=function(t,r){void 0===t&&(t=this.lineNumber);void 0===r&&(r=this.column);return t===this.lineNumber&&r===this.column?this:new e(t,r)};e.prototype.delta=function(e,t){void 0===e&&(e=0);void 0===t&&(t=0);return this.with(this.lineNumber+e,this.column+t)};e.prototype.equals=function(t){return e.equals(this,t)};e.equals=function(e,t){if(!e&&!t)return!0;return!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column};e.prototype.isBefore=function(t){return e.isBefore(this,t)};e.isBefore=function(e,t){if(e.lineNumber<t.lineNumber)return!0;if(t.lineNumber<e.lineNumber)return!1;return e.column<t.column};e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)};e.isBeforeOrEqual=function(e,t){if(e.lineNumber<t.lineNumber)return!0;if(t.lineNumber<e.lineNumber)return!1;return e.column<=t.column};e.compare=function(e,t){var r=0|e.lineNumber;var n=0|t.lineNumber;if(r===n){var i;var o;return(0|e.column)-(0|t.column)}return r-n};e.prototype.clone=function(){return new e(this.lineNumber,this.column)};e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"};e.lift=function(t){return new e(t.lineNumber,t.column)};e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column};return e}();var ut=function(){function e(e,t,r,n){if(e>r||e===r&&t>n){this.startLineNumber=r;this.startColumn=n;this.endLineNumber=e;this.endColumn=t}else{this.startLineNumber=e;this.startColumn=t;this.endLineNumber=r;this.endColumn=n}}e.prototype.isEmpty=function(){return e.isEmpty(this)};e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn};e.prototype.containsPosition=function(t){return e.containsPosition(this,t)};e.containsPosition=function(e,t){if(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)return!1;if(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)return!1;if(t.lineNumber===e.endLineNumber&&t.column>e.endColumn)return!1;return!0};e.prototype.containsRange=function(t){return e.containsRange(this,t)};e.containsRange=function(e,t){if(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)return!1;if(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)return!1;if(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)return!1;if(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)return!1;return!0};e.prototype.plusRange=function(t){return e.plusRange(this,t)};e.plusRange=function(t,r){var n;var i;var o;var a;if(r.startLineNumber<t.startLineNumber){n=r.startLineNumber;i=r.startColumn}else if(r.startLineNumber===t.startLineNumber){n=r.startLineNumber;i=Math.min(r.startColumn,t.startColumn)}else{n=t.startLineNumber;i=t.startColumn}if(r.endLineNumber>t.endLineNumber){o=r.endLineNumber;a=r.endColumn}else if(r.endLineNumber===t.endLineNumber){o=r.endLineNumber;a=Math.max(r.endColumn,t.endColumn)}else{o=t.endLineNumber;a=t.endColumn}return new e(n,i,o,a)};e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)};e.intersectRanges=function(t,r){var n=t.startLineNumber;var i=t.startColumn;var o=t.endLineNumber;var a=t.endColumn;var s=r.startLineNumber;var u=r.startColumn;var c=r.endLineNumber;var l=r.endColumn;if(n<s){n=s;i=u}else n===s&&(i=Math.max(i,u));if(o>c){o=c;a=l}else o===c&&(a=Math.min(a,l));if(n>o)return null;if(n===o&&i>a)return null;return new e(n,i,o,a)};e.prototype.equalsRange=function(t){return e.equalsRange(this,t)};e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn};e.prototype.getEndPosition=function(){return new st(this.endLineNumber,this.endColumn)};e.prototype.getStartPosition=function(){return new st(this.startLineNumber,this.startColumn)};e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"};e.prototype.setEndPosition=function(t,r){return new e(this.startLineNumber,this.startColumn,t,r)};e.prototype.setStartPosition=function(t,r){return new e(t,r,this.endLineNumber,this.endColumn)};e.prototype.collapseToStart=function(){return e.collapseToStart(this)};e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)};e.fromPositions=function(t,r){void 0===r&&(r=t);return new e(t.lineNumber,t.column,r.lineNumber,r.column)};e.lift=function(t){if(!t)return null;return new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn)};e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn};e.areIntersectingOrTouching=function(e,t){if(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)return!1;if(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)return!1;return!0};e.areIntersecting=function(e,t){if(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)return!1;if(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)return!1;return!0};e.compareRangesUsingStarts=function(e,t){if(e&&t){var r=0|e.startLineNumber;var n=0|t.startLineNumber;if(r===n){var i=0|e.startColumn;var o=0|t.startColumn;if(i===o){var a=0|e.endLineNumber;var s=0|t.endLineNumber;if(a===s){var u;var c;return(0|e.endColumn)-(0|t.endColumn)}return a-s}return i-o}return r-n}var l;var f;return(e?1:0)-(t?1:0)};e.compareRangesUsingEnds=function(e,t){if(e.endLineNumber===t.endLineNumber){if(e.endColumn===t.endColumn){if(e.startLineNumber===t.startLineNumber)return e.startColumn-t.startColumn;return e.startLineNumber-t.startLineNumber}return e.endColumn-t.