alm
Version:
The best IDE for TypeScript
7 lines • 3.16 MB
JavaScript
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(403)},function(e,t,n){"use strict";function r(){var e=document.createElement("div"),n=function(){t.ReactDOM.unmountComponentAtNode(e),e.remove()};return{node:e,unmount:n}}function i(e){_.info(e,null,{timeOut:600})}function a(e,t){_.info(e,null,t&&{onclick:t.onClick})}function o(e,t){_.warning(e,null,t&&{onclick:t.onClick})}function s(e,t){_.success(e,null,t&&{onclick:t.onClick})}function c(e){_.info("Coming soon! : "+e)}function u(e){var t=e,n=e.nativeEvent,r="Tab"==t.key,i=n.shiftKey,a=n.metaKey||n.ctrlKey,o="Enter"==t.key,s="ArrowUp"==t.key,c="ArrowDown"==t.key,u=r&&!i,l=r&&i;return{tab:r,tabNext:u,tabPrevious:l,up:s,down:c,shift:i,mod:a,enter:o}}function l(e,t){return void 0===t&&(t=4),Array(e*t+1).join().split("").map(function(e){return" "})}function d(e,t){void 0===t&&(t=!1);var n=t?50:0,r=t?.2:1;switch(e){case ts.ScriptElementKind.keyword:case"snippet":return"rgba("+(249+n)+","+(38+n)+","+(114+n)+","+r+")";case ts.ScriptElementKind.scriptElement:case ts.ScriptElementKind.moduleElement:case ts.ScriptElementKind.classElement:case ts.ScriptElementKind.localClassElement:case ts.ScriptElementKind.interfaceElement:case ts.ScriptElementKind.typeElement:case ts.ScriptElementKind.enumElement:case ts.ScriptElementKind.alias:case ts.ScriptElementKind.typeParameterElement:case ts.ScriptElementKind.primitiveType:return"rgba("+(230+n)+","+(219+n)+","+(116+n)+","+r+")";case ts.ScriptElementKind.variableElement:case ts.ScriptElementKind.localVariableElement:case ts.ScriptElementKind.memberVariableElement:case ts.ScriptElementKind.letElement:case ts.ScriptElementKind.constElement:case ts.ScriptElementKind.label:case ts.ScriptElementKind.parameterElement:case ts.ScriptElementKind.indexSignatureElement:return"rgba("+(102+n)+","+(217+n)+","+(239+n)+","+r+")";case ts.ScriptElementKind.functionElement:case ts.ScriptElementKind.localFunctionElement:case ts.ScriptElementKind.memberFunctionElement:case ts.ScriptElementKind.memberGetAccessorElement:case ts.ScriptElementKind.memberSetAccessorElement:case ts.ScriptElementKind.callSignatureElement:case ts.ScriptElementKind.constructorImplementationElement:case"path":return"rgba("+(166+n)+","+(226+n)+","+(46+n)+","+r+")";default:return"rgba("+(170+n)+","+(170+n)+","+(170+n)+","+r+")"}}function f(e){switch(e){case"snippet":return h.toFontAwesomeCharCode(h.FAIconName.exchange);case"path":return h.toFontAwesomeCharCode(h.FAIconName.fileText);case ts.ScriptElementKind.keyword:return h.toFontAwesomeCharCode(h.FAIconName.key);case ts.ScriptElementKind.classElement:return h.toFontAwesomeCharCode(h.FAIconName.copyright);case ts.ScriptElementKind.interfaceElement:return h.toFontAwesomeCharCode(h.FAIconName.infoCircle);case ts.ScriptElementKind.scriptElement:case ts.ScriptElementKind.moduleElement:case ts.ScriptElementKind.localClassElement:case ts.ScriptElementKind.typeElement:case ts.ScriptElementKind.enumElement:case ts.ScriptElementKind.alias:case ts.ScriptElementKind.typeParameterElement:case ts.ScriptElementKind.primitiveType:return h.toFontAwesomeCharCode(h.FAIconName.archive);case ts.ScriptElementKind.variableElement:case ts.ScriptElementKind.localVariableElement:case ts.ScriptElementKind.memberVariableElement:case ts.ScriptElementKind.letElement:case ts.ScriptElementKind.constElement:case ts.ScriptElementKind.label:case ts.ScriptElementKind.parameterElement:case ts.ScriptElementKind.indexSignatureElement:return h.toFontAwesomeCharCode(h.FAIconName.at);case ts.ScriptElementKind.functionElement:case ts.ScriptElementKind.localFunctionElement:case ts.ScriptElementKind.memberFunctionElement:case ts.ScriptElementKind.memberGetAccessorElement:case ts.ScriptElementKind.memberSetAccessorElement:case ts.ScriptElementKind.callSignatureElement:case ts.ScriptElementKind.constructorImplementationElement:return h.toFontAwesomeCharCode(h.FAIconName.circleArrowRight);default:return h.toFontAwesomeCharCode(h.FAIconName.info)}}var p=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.React=n(2),t.ReactDOM=n(17);var m=n(19);t.$=n(36);var g=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.disposible=new m.CompositeDisposible,n.isUnmounted=!1,n._afterComponentDidUpdateQueue=[],n.getParentDomNode=function(){var e=t.ReactDOM.findDOMNode(n);return e.parentElement},n}return p(n,e),n.prototype.componentWillUnmount=function(){this.disposible.dispose(),this.isUnmounted=!0},n.prototype.ref=function(e){return this.refs[e]},n.prototype.afterComponentDidUpdate=function(e){this._afterComponentDidUpdateQueue.push(e)},n.prototype.componentDidUpdate=function(){this._afterComponentDidUpdateQueue.forEach(function(e){return e()}),this._afterComponentDidUpdateQueue=[]},n}(t.React.Component);t.BaseComponent=g,t.getUnmountableNode=r,t.Toggle=n(323),n(361);var _=n(149);n(362),t.notifyInfoQuickDisappear=i,t.notifyInfoNormalDisappear=a,t.notifyWarningNormalDisappear=o,t.notifySuccessNormalDisappear=s,t.comingSoon=c,t.getKeyStates=u,t.DraggableCore=n(312).DraggableCore,t.indent=l,t.kindToColor=d;var h=n(467);t.kindToIcon=f},function(e,t,n){"use strict";e.exports=n(34)},function(e,t){"use strict";function n(){console.log("log")}function r(e){return e.reduce(function(e,t){return e[t]=!0,e},{})}function i(e,t){var n={};return e.forEach(function(e){var r=t(e);n[r]=n[r]?n[r].concat(e):[e]}),n}function a(e){var t={};return Object.keys(e).forEach(function(n){t[e[n]]=n}),t}function o(e){var t=r(e);return Object.keys(t)}function s(e){return Object.keys(e).map(function(t){return e[t]})}function c(e,t,n){void 0===n&&(n=!1);var r,i,a,o,s,c=t,u=function(){var t=j()-o;c>t&&t>0?r=setTimeout(u,c-t):(r=null,n||(s=e.apply(a,i),r||(a=i=null)))};return function(){a=this,i=arguments,o=j();var t=n&&!r;return r||(r=setTimeout(u,c)),t&&(s=e.apply(a,i),a=i=null),s}}function u(e){var t,n,r=!1,i=null,a=function(){var o=j()-n;o<e.milliseconds?(i&&(clearTimeout(i),i=null),i=setTimeout(a,e.milliseconds-o)):(e.func(t),r=!1)};return function(i){var o=r&&e.mustcall(i,t);o&&e.func(t),t=i,r=!0,n=j(),a()}}function l(e,t,n){var r,i,a,o=null,s=0;n||(n={});var c=j,u=function(){s=n.leading===!1?0:c(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var l=c();s||n.leading!==!1||(s=l);var d=t-(l-s);return r=this,i=arguments,0>=d||d>t?(o&&(clearTimeout(o),o=null),s=l,a=e.apply(r,i),o||(r=i=null)):o||n.trailing===!1||(o=setTimeout(u,d)),a}}function d(e){var t=!1,n=void 0;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}}function f(e){var t=e.num,n=e.min,r=e.max,i=e.loopAround,a=Math.max(Math.min(t,r),n);return i&&a>t?r:i&&t>a?n:a}function p(e){var t=e.split(".");return t[t.length-1].toLowerCase()}function m(e){var t=e.lastIndexOf(".");return-1===t?e:e.substring(0,t)}function g(e){var t=e.split(":"),n=t[0],r=t[1],i=r?parseInt(r)-1:0;return i=i>0?i:0,{filePath:n,line:i}}function _(e){var t=e.split("/");return t[t.length-1]}function h(e){var t=e.substring(0,e.lastIndexOf("/"));return t}function v(e){var t=h(e),n=_(t),r=_(e);return n+"/"+r}function y(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}function b(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)})}function x(e){for(var t=[],n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++)t.push(e[n][r]);return t}function S(e){var t=k(e).filePath;return t}function k(e){var t=e.substr(0,e.indexOf("://")),n=e.substr((t+"://").length);return{protocol:t,filePath:n}}function C(e){return e.protocol+"://"+e.filePath}function E(e){Object.keys(e).map(function(t){return e[t]=t})}function T(e){return function(){return e.intercept.apply(null,arguments),e.orig.apply(e.context,arguments)}}function D(e){return W.some(function(t){return e.endsWith("."+t)})}function w(e){var t=p(e);return U[t]}function A(e){var t,n=e.query,r=/x^/;e.isRegex||(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),e.isFullWord&&(n="\\b"+n+"\\b");try{t=new RegExp(n,e.isCaseSensitive?"g":"gi")}catch(i){t=r}return t.test("")&&(t=r),t}function N(e,t){var n=" ";return n.substring(0,t-e.length)+e}function P(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++){var a=i[r];for(var o in a)n[o]=a[o]}return n}function F(){var e=(new Date).getTime();return{get seconds(){var t=Math.ceil(((new Date).getTime()-e)/1e3)+"s";return t},get ms(){var t=(new Date).getTime()-e+"ms";return t}}}function I(e){if(1e3>e)return e+"ms";var t=e/1e3;if(60>t)return t.toFixed(2)+"s";var n=t/60;return n.toFixed(2)+"min"}function O(e){var n=_(e);return!!t.supportedAutocompleteConfigFileNames[n]}function M(e){var n=_(e);return!!t.supportedHoverConfigFileNames[n]}function L(e){return new Promise(function(n,r){var i=0,a=function(){if(i===e.items.length)n({});else if(e.cancellationToken.isCancelled)r(t.cancelled);else{var o=e.items[i++];e.cb(o),setTimeout(a)}};a()})}function R(e){var t,n,r,i=0,a=function(){return null},o=function(){t=null;var i=V(e()),o=i.promise,s=i.cancel;a=s,o.then(function(e){n(e)})["catch"](function(e){r(e)})},s=function(){return new Promise(function(e,s){t&&clearTimeout(t),a(),n=e,r=s,t=setTimeout(o,i)})};return s}function B(e){return new Promise(function(t){return setTimeout(t,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.log=n,t.createMap=r,t.createMapByKey=i,t.reverseKeysAndValues=a,t.distinct=o,t.uniq=o,t.values=s;var j=function(){return(new Date).getTime()};t.debounce=c,t.triggeredDebounce=u,t.throttle=l,t.once=d,t.rangeLimited=f,t.isTs=function(e,t){return void 0===t&&(t=p(e)),"ts"==t||"tsx"==t},t.isTsx=function(e,t){return void 0===t&&(t=p(e)),"tsx"==t},t.isJs=function(e,t){return void 0===t&&(t=p(e)),"js"==t||"jsx"==t},t.isJsOrTs=function(e){var n=p(e);return t.isJs(e,n)||t.isTs(e,n)},t.getExt=p,t.removeExt=m,t.getFilePathLine=g,t.getFileName=_,t.getDirectory=h,t.getDirectoryAndFileName=v,t.arraysEqual=y,t.createId=b,t.createGuid=b,t.selectMany=x,t.getFilePathFromUrl=S,t.getFilePathAndProtocolFromUrl=k,t.getUrlFromFilePathAndProtocol=C,t.resolve=Promise.resolve.bind(Promise);var z=r([";","{","}","(",")",".",":","<",">","'",'"']);t.prefixEndsInPunctuation=function(e){return e.length&&e.trim().length&&z[e.trim()[e.trim().length-1]]},t.stringEnum=E,t.intercepted=T,t.relative=function(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}for(var r=n(e.split("/")),i=n(t.split("/")),a=Math.min(r.length,i.length),o=a,s=0;a>s;s++)if(r[s]!==i[s]){o=s;break}for(var c=[],s=o;s<r.length;s++)c.push("..");return c=c.concat(i.slice(o)),c.join("/")},t.imageUrl="/images";var U={svg:"image/svg+xml",gif:"image/gif",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",bmp:"image/bmp"},W=Object.keys(U);t.isImage=D,t.getImageMimeType=w,t.findOptionsToQueryRegex=A,t.padLeft=N,t.extend=P,t.timer=F,t.formatMilliseconds=I,t.supportedAutocompleteConfigFileNames={"tsconfig.json":!0,"package.json":!0,"tslint.json":!0,"alm.json":!0},t.isSupportedConfigFileForAutocomplete=O,t.supportedHoverConfigFileNames={"package.json":!0},t.isSupportedConfigFileForHover=M,t.cancellationToken=function(){var e=!1;return{get isCancelled(){return e},cancel:function(){return e=!0}}},t.cancelled="cancelled",t.cancellableForEach=L;var V=function(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r({isCanceled:!0}):n(e)}),e["catch"](function(e){return r(t?{isCanceled:!0}:e)})});return{promise:n,cancel:function(){t=!0}}};t.onlyLastCall=R,t.delay=B},function(e,t,n){"use strict";function r(e,t,n,r,a,o,s,c){if(i(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,o,s,c],d=0;u=new Error(t.replace(/%s/g,function(){return l[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var i=function(e){};e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(474),i=n(164);t.Types=i.Types;var a;!function(e){e.increment=function(e){return Promise.resolve({num:++e.num})}}(a||(a={}));t.server=(o=r.run({clientImplementation:a,serverContract:i.server,cast:i.cast}),o.server),t.cast=o.cast,t.pendingRequestsChanged=o.pendingRequestsChanged,t.connectionStatusChanged=o.connectionStatusChanged,t.cast.hello.on(function(e){console.log(e)});var o},function(e,t){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i instanceof Array)throw new Error("User error: use extend(a,b) instead of extend([a,b]). Object: "+i)}for(var a={},o=0,s=e;o<s.length;o++){var i=s[o];for(var c in i)a[c]=i[c]}return a}Object.defineProperty(t,"__esModule",{value:!0}),t.extend=n,t.flexRoot={display:"flex"},t.pass={display:"inherit",flexDirection:"inherit",flexGrow:1},t.inlineRoot={display:"inline-flex"},t.horizontal=n(t.flexRoot,{flexDirection:"row"}),t.vertical=n(t.flexRoot,{flexDirection:"column"}),t.wrap={flexWrap:"wrap"},t.flexNone={flex:"none"},t.content={flexShrink:0},t.flex={flex:1},t.flex1=t.flex,t.flex2={flex:2},t.flex3={flex:3},t.flex4={flex:4},t.flex5={flex:5},t.flex6={flex:6},t.flex7={flex:7},t.flex8={flex:8},t.flex9={flex:9},t.flex10={flex:10},t.flex11={flex:11},t.flex12={flex:12},t.start={alignItems:"flex-start"},t.center={alignItems:"center"},t.end={alignItems:"flex-end"},t.startJustified={justifyContent:"flex-start"},t.centerJustified={justifyContent:"center"},t.endJustified={justifyContent:"flex-end"},t.aroundJustified={justifyContent:"space-around"},t.betweenJustified={justifyContent:"space-between"},t.centerCenter=n(t.flexRoot,t.center,t.centerJustified),t.selfStart={alignSelf:"flex-start"},t.selfCenter={alignSelf:"center"},t.selfEnd={alignSelf:"flex-end"},t.selfStretch={alignSelf:"stretch"},t.block={display:"block"},t.hidden={display:"none"},t.invisible={visibility:"hidden"},t.relative={position:"relative"},t.fit={position:"absolute",top:0,right:0,bottom:0,left:0},t.fullBleedBody={margin:0,height:"100vh"},t.scroll={overflow:"auto"},t.fixed={position:"fixed"},t.fixedTop=n(t.fixed,{top:0,left:0,right:0}),t.fixedRight=n(t.fixed,{top:0,right:0,bottom:0}),t.fixedBottom=n(t.fixed,{right:0,bottom:0,left:0}),t.fixedLeft=n(t.fixed,{top:0,bottom:0,left:0}),t.newLayerParent={position:"relative"},t.newLayer={position:"absolute",left:0,right:0,top:0,bottom:0};var r;!function(e){function t(e){return"number"==typeof e?e.toString()+"px":e}function n(e){var n=function(n,r,i,a){void 0===r&&void 0===i&&void 0===a?r=i=a=n:void 0===i&&void 0===a&&(i=n,a=r);var o={top:t(n),right:t(r),bottom:t(i),left:t(a)};return e(o)};return n}e.padding=n(function(e){return{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}}),e.margin=n(function(e){return{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}}),e.border=n(function(e){return{borderTop:e.top,borderRight:e.right,borderBottom:e.bottom,borderLeft:e.left}})}(r=t.Box||(t.Box={}));var i;!function(e){e.flexRoot={display:["-webkit-flex","flex"]},e.content={"-webkit-flex-shrink":0,flexShrink:0},e.pass={display:"inherit","-webkit-flex-direction":"pass",flexDirection:"inherit","-webkit-flex-grow":1,flexGrow:1},e.flex={"-webkit-flex":1,flex:1},e.horizontal=n(e.flexRoot,{"-webkit-flex-direction":"row",flexDirection:"row"}),e.vertical=n(e.flexRoot,{"-webkit-flex-direction":"column",flexDirection:"column"}),e.selfCenter={"-webkit-align-self":"center",alignSelf:"center"},e.center={"-webkit-align-items":"center",alignItems:"center"},e.centerJustified={"-webkit-justify-content":"center",justifyContent:"center"},e.centerCenter=n(e.flexRoot,e.center,e.centerJustified),e.scroll={"-webkit-overflow-scrolling":"touch",overflow:"auto"}}(i=t.vendorPrefixed||(t.vendorPrefixed={}))},function(e,t,n){"use strict";function r(){t.commandRegistry.forEach(function(e){e.config.context==s.Global&&e.config.keyboardShortcut&&o.bindGlobal(e.config.keyboardShortcut,function(){return e.emit({}),!!e.config.allowDefault})})}function i(e){new u({keyboardShortcut:e.kbd,description:"Editor: "+e.label,context:s.Editor,editorCommandName:e.id})}var a=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(63);n(241);var s,c=n(19);!function(e){e[e.Global=0]="Global",e[e.Editor=1]="Editor",e[e.TreeView=2]="TreeView"}(s=t.CommandContext||(t.CommandContext={})),t.commandRegistry=[];var u=function(e){function n(n){var r=e.call(this)||this;return r.config=n,t.commandRegistry.push(r),r}return a(n,e),n}(c.TypedEvent);t.UICommand=u,t.esc=new u({keyboardShortcut:"esc",description:"Close any open dialogs and focus back to any open tab",context:s.Global}),t.gotoNext=new u({keyboardShortcut:"mod+f8",description:"Main Panel : Goto next error in project",context:s.Global}),t.gotoPrevious=new u({keyboardShortcut:"mod+shift+f8",description:"Main Panel : Goto previous error in project",context:s.Global}),t.nextTab=new u({keyboardShortcut:"alt+k",description:"Tabs: Focus on the Next Tab",context:s.Global}),t.prevTab=new u({keyboardShortcut:"alt+j",description:"Tabs: Focus on the Previous Tab",context:s.Global}),t.closeTab=new u({keyboardShortcut:"alt+w",description:"Tabs: Close current tab",context:s.Global}),t.undoCloseTab=new u({keyboardShortcut:"shift+alt+w",description:"Tabs: Undo close tab",context:s.Global}),t.saveTab=new u({keyboardShortcut:"mod+s",description:"Tabs: Save current tab",context:s.Global}),t.closeOtherTabs=new u({description:"Tabs: Close other tabs",context:s.Global}),t.closeAllTabs=new u({description:"Tabs: Close all tabs",context:s.Global}),t.jumpToTab=new u({keyboardShortcut:"mod+shift+enter",description:"Tabs: Jump to tab",context:s.Global}),t.duplicateTab=new u({description:"Tabs: Duplicate",context:s.Global}),t.duplicateWindow=new u({description:"Window: Duplicate in a new browser window",context:s.Global}),t.sync=new u({keyboardShortcut:"shift+f6",description:"TypeScript: Sync",context:s.Global}),t.build=new u({keyboardShortcut:"f6",description:"TypeScript: Build",context:s.Global}),t.toggleOutputJS=new u({keyboardShortcut:"mod+shift+m",description:"TypeScript: Toggle output js file",context:s.Global}),t.enableLiveDemo=new u({description:"TypeScript: Demo file",context:s.Global}),t.disableLiveDemo=new u({description:"TypeScript: Demo stop",context:s.Global}),t.enableLiveDemoReact=new u({description:"TypeScript: Demo react file",context:s.Global}),t.disableLiveDemoReact=new u({description:"TypeScript: Demo react stop",context:s.Global}),t.gotoTab1=new u({keyboardShortcut:"mod+1",description:"Tabs: Goto Tab 1",context:s.Global}),t.gotoTab2=new u({keyboardShortcut:"mod+2",description:"Tabs: Goto Tab 2",context:s.Global}),t.gotoTab3=new u({keyboardShortcut:"mod+3",description:"Tabs: Goto Tab 3",context:s.Global}),t.gotoTab4=new u({keyboardShortcut:"mod+4",description:"Tabs: Goto Tab 4",context:s.Global}),t.gotoTab5=new u({keyboardShortcut:"mod+5",description:"Tabs: Goto Tab 5",context:s.Global}),t.gotoTab6=new u({keyboardShortcut:"mod+6",description:"Tabs: Goto Tab 6",context:s.Global}),t.gotoTab7=new u({keyboardShortcut:"mod+7",description:"Tabs: Goto Tab 7",context:s.Global}),t.gotoTab8=new u({keyboardShortcut:"mod+8",description:"Tabs: Goto Tab 8",context:s.Global}),t.gotoTab9=new u({keyboardShortcut:"mod+9",description:"Tabs: Goto Tab 9",context:s.Global}),t.omniFindFile=new u({keyboardShortcut:"mod+o",description:"Find a file in the working directory",context:s.Global}),t.omniFindCommand=new u({keyboardShortcut:"mod+shift+p",description:"Find a command",context:s.Global}),t.omniSelectProject=new u({keyboardShortcut:"alt+shift+p",description:"Find and set active project",context:s.Global}),t.omniProjectSymbols=new u({keyboardShortcut:"mod+shift+h",description:"Find Symbols (Hieroglyphs) in active project",context:s.Global}),t.omniProjectSourcefile=new u({keyboardShortcut:"mod+p",description:"Find Source File in active project",context:s.Global}),t.findAndReplace=new u({keyboardShortcut:"mod+f",description:"Show find and replace dialog",context:s.Global}),t.findAndReplaceMulti=new u({keyboardShortcut:"mod+shift+f",description:"Show find and replace in files",context:s.Global}),t.findNext=new u({keyboardShortcut:"f3",description:"Find the next search result",context:s.Global}),t.findPrevious=new u({keyboardShortcut:"shift+f3",description:"Find the previous search result",context:s.Global}),t.replaceNext=new c.TypedEvent,t.replacePrevious=new c.TypedEvent,t.replaceAll=new c.TypedEvent,t.toggleMessagePanel=new u({keyboardShortcut:"mod+;",description:"Toggle Message Panel",context:s.Global}),t.cycleMessagesPanel=new u({keyboardShortcut:"mod+shift+;",description:"Cycle Message Panel",context:s.Global}),t.toggleDoctor=new u({keyboardShortcut:"mod+'",description:"Editor: Toggle Doctor",context:s.Global}),t.toggleDocumentationBrowser=new u({keyboardShortcut:"mod+shift+'",description:"Documentation Browser: Open",context:s.Global}),t.doOpenUmlDiagram=new u({description:"UML Class diagram",context:s.Global}),t.toggleSemanticView=new u({description:"Toggle Semantic View",context:s.Global}),t.launchTsFlow=new u({description:"Launch TypeScript flow based programming",context:s.Global}),t.doOpenTestResultsView=new u({description:"Test Results View",context:s.Global}),t.previousCursorLocation=new u({keyboardShortcut:"mod+u",description:"Cursor: Previous Cursor Location",context:s.Global}),t.nextCursorLocation=new u({keyboardShortcut:"mod+shift+u",description:"Cursor: Next Cursor Location",context:s.Global}),t.copy=new u({keyboardShortcut:"mod+c",description:"Copy",context:s.Global,allowDefault:!0}),t.cut=new u({keyboardShortcut:"mod+x",description:"Cut",context:s.Global,allowDefault:!0}),t.pasteFromRing=new u({keyboardShortcut:"mod+shift+v",description:"PasteFromRing",context:s.Global,allowDefault:!1}),t.treeViewToggle=new u({keyboardShortcut:"mod+\\",description:"Tree View: Toggle",context:s.Global}),t.treeViewRevealActiveFile=new u({keyboardShortcut:"mod+shift+\\",description:"Tree View: Reveal Active File",context:s.Global}),t.treeViewFocus=new u({keyboardShortcut:"mod+0",description:"Tree View: Focus",context:s.Global}),t.treeAddFile=new u({keyboardShortcut:"a",description:"Tree View: Add File",context:s.TreeView}),t.treeAddFolder=new u({keyboardShortcut:"shift+a",description:"Tree View: Add Folder",context:s.TreeView}),t.treeDuplicateFile=new u({keyboardShortcut:"d",description:"Tree View: Duplicate File|Folder",context:s.TreeView}),t.treeMoveFile=new u({keyboardShortcut:"m",description:"Tree View: Move File|Folder",context:s.TreeView}),t.treeRenameFile=new u({keyboardShortcut:"r",description:"Tree View: Rename File|Folder",context:s.TreeView}),t.treeDeleteFile=new u({keyboardShortcut:"del",description:"Tree View: Delete File|Folder",context:s.TreeView}),t.treeOpenInExplorerFinder=new u({keyboardShortcut:"o",description:"Tree View: Open folder in explorer / finder",context:s.TreeView}),t.treeOpenInCmdTerminal=new u({keyboardShortcut:"shift+o",description:"Tree View: Open folder in cmd / terminal",context:s.TreeView}),t.doOpenFile=new c.TypedEvent,t.doOpenOrFocusFile=new c.TypedEvent,t.openFileFromDisk=new u({keyboardShortcut:"mod+shift+o",description:"Open a file present on server disk",context:s.Global}),t.doOpenOrFocusTab=new c.TypedEvent,t.closeFilesDirs=new c.TypedEvent,t.doOpenOrActivateFileTab=new c.TypedEvent,t.doToggleFileTab=new c.TypedEvent,t.ensureLiveDemoTab=new c.TypedEvent,t.closeDemoTab=new c.TypedEvent,t.ensureLiveDemoReactTab=new c.TypedEvent,t.closeDemoReactTab=new c.TypedEvent,t.doOpenDependencyView=new u({description:"Open Dependency View",context:s.Global}),t.doOpenASTView=new u({description:"Open AST View",context:s.Global}),t.doOpenASTFullView=new u({description:"Open AST-Full View",context:s.Global}),t.createEditorconfig=new u({description:"Create a .editorconfig",context:s.Global}),t.openSettingsFile=new u({description:"Open settings file",context:s.Global}),t.gitAddAllCommitAndPush=new u({description:"Git: Add all, Commit and Push",context:s.Global}),t.gitFetchLatestAndRebase=new u({description:"Git: Fetch + Pull latest, and rebase any local commits",context:s.Global}),t.gitStatusNeedsRefresh=new c.TypedEvent,t.register=r,t.ios=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),t.mac=t.ios||/Mac/.test(navigator.platform),t.windows=/win/i.test(navigator.platform),t.modName=t.mac?"⌘":"Ctrl";var l=(t.mac?"Cmd":"Ctrl",n(395)),d=l.getActions();t.mac,d.forEach(i),t.fileContentsChanged=new c.TypedEvent;var f=n(149);t.esc.on(function(){f.clear()}),o.bindGlobal("mod+y",function(e){return!1}),o.bindGlobal("mod+h",function(e){return!1})},function(e,t,n){"use strict";var r=n(21),i=r;e.exports=i},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;t>r;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var i=new Error(n);throw i.name="Invariant Violation",i.framesToPop=1,i}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.textColor="#BBB",t.errorColor="#f92672",t.warningColor="#f6d675",t.successColor="#00c990",t.highlightColor="#6edeef",t.selectedBackgroundColor="#444",t.monokaiBackgroundColor="#272822",t.monokaiTextColor="#e6db74",t.icons={tested:"futbol-o",testedSuite:"pagelines",testedTest:"leaf"},t.blackHighlightColor="#1C1D18",t.someChildWillScroll={overflow:"hidden"},t.tabHeaderContainer={background:"grey"},t.tabHeader={fontSize:".8em",fontFamily:"Roboto, sans-serif",fontWeight:"bold",paddingLeft:"10px",paddingRight:"10px",paddingTop:"5px",paddingBottom:"5px",background:"rgb(66, 66, 66)",color:"rgb(150,150,150)",borderLeft:"6px solid rgb(88, 88, 88)",cursor:"pointer",userSelect:"none",transition:"color .5s, border-left .5s, background .5s"},t.tabHeaderActive={color:t.highlightColor,borderLeft:"6px solid "+t.highlightColor},t.tabHeaderUnsaved={background:"#777"},t.fullWindow={position:"absolute",left:"10px",right:"10px",top:"10px",bottom:"10px"},t.padded1={padding:".25rem"},t.padded1TopBottom={paddingTop:t.padded1.padding,paddingBottom:t.padded1.padding},t.padded1LeftRightBottom={paddingLeft:t.padded1.padding,paddingRight:t.padded1.padding,paddingBottom:t.padded1.padding},t.padded2={padding:".5rem"},t.fullSize={width:"100%",height:"100%"};var i=25;t.statusBar={height:i+"px",color:"#999",paddingLeft:"3px",paddingRight:"3px",fontSize:"12px",border:"1px solid #999"},t.statusBarSection={paddingLeft:"3px",paddingRight:"3px"},t.statusBarError={color:t.errorColor},t.statusBarSuccess={color:t.successColor},t.noSelect={userSelect:"none",cursor:"default"},t.hand={cursor:"pointer"},t.noWrap={whiteSpace:"nowrap"},t.codeFont={fontFamily:"monospace"};var a;!function(e){e.success={color:t.successColor},e.main={color:t.textColor,fontFamily:t.codeFont.fontFamily,padding:"6px",overflow:"hidden",display:"flex",flexDirection:"column"},e.headerSection={flexShrink:0,marginBottom:"5px"},e.tooMany={fontSize:"1.2rem",fontWeight:"bolder"},e.filePath={fontSize:"1rem",fontWeight:"bold",padding:"8px 8px 8px 0px",cursor:t.hand.cursor},e.perFileList={};var n=r.extend(t.hand,{padding:"3px"});e.errorDetailsContainer=r.extend(n,{borderLeft:"6px solid "+t.errorColor}),e.warningDetailsContainer=r.extend(n,{borderLeft:"6px solid "+t.warningColor}),e.errorDetailsContent={padding:"3px"},e.errorMessage={paddingBottom:"3px",cursor:"pointer",userSelect:"none"},e.errorPreview={padding:"3px",background:"black",border:"2px solid #999",cursor:"pointer"}}(a=t.errorsPanel||(t.errorsPanel={}));var o;!function(e){e.keyStrokeStyle={fontSize:"0.9rem",background:"#111",paddingTop:"1px",paddingBottom:"1px",paddingLeft:"4px",paddingRight:"4px",borderRadius:"5px",border:"2px solid"},e.inputStyleBase={backgroundColor:"rgb(42,42,42)",color:"white",outline:"none",padding:"2px",fontSize:"1.5rem",lineHeight:"2rem",fontFamily:"monospace",border:"3px solid #3C3C3C",transition:"border .2s","&:focus":{boxShadow:"0px 0px 1px 1px #3C3C3C"}},e.previewContainerStyle={background:t.tabHeader.background,padding:"5px"}}(o=t.modal||(t.modal={})),t.hiddenInput={height:"0px",width:"0px",color:"transparent",background:"transparent",position:"absolute",top:"0px"};var s;!function(e){e.inputBlackStyleBase={backgroundColor:"#333",color:"white",outline:"none",padding:"2px",border:"2px solid #3C3C3C",transition:"border .2s","&:focus":{border:"2px solid #0099E0",boxShadow:"0px 0px 1px 1px #0099E0"}}}(s=t.Input||(t.Input={}));var c;!function(e){e.root=r.extend({color:"grey",lineHeight:"1.5rem",fontSize:".8rem"},t.padded1),e.keyboardShortCutStyle={border:"2px solid",borderRadius:"6px",padding:"2px",backgroundColor:"black"}}(c=t.Tip||(t.Tip={})),t.noFocusOutlineBase={"&:focus":{outline:"none"}},t.ellipsis={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),i=n(452),a=n(3),o={activeProject:null,errorsExpanded:!1,errorsDisplayMode:r.ErrorsDisplayMode.all,errorsFilter:"",activeProjectFilePathTruthTable:{},filePathsInActiveProject:[],outputStatusCache:{},liveBuildResults:{builtCount:0,totalCount:0},pendingRequests:[],findOptions:{isShown:!1,query:"",isRegex:!1,isCaseSensitive:!1,isFullWord:!1},socketConnected:!1,filePaths:[],filePathsCompleted:!1,fileTreeShown:!1,showDoctor:!1,showSemanticView:!1,tsWorking:{working:!1},testedWorking:{working:!1}},s=new i.SimpleRedux(o);t.store=s.store,t.getState=s.getState,t.subscribe=s.subscribe,t.subscribeSub=s.subscribeSub,t.setActiveProject=s.add("setActiveProject",function(e,t){return{activeProject:t}}),t.inActiveProjectFilePath=function(e){return!!t.getState().activeProjectFilePathTruthTable[e]},t.inActiveProjectUrl=function(e){if(!e)return!1;var n=(i=a.getFilePathAndProtocolFromUrl(e),i.protocol),r=i.filePath;return"file"==n||"ast"==n||"astfull"==n?t.inActiveProjectFilePath(r):!0;var i},t.setFilePathsInActiveProject=s.add("setActiveProjectFiles",function(e,t){t=t.filter(function(e){return!e.endsWith(".json")});var n=a.createMap(t);return t.forEach(function(e){for(var t=a.getDirectory(e);t&&!n[t];)n[t]=!0,t=a.getDirectory(t)}),{activeProjectFilePathTruthTable:n,filePathsInActiveProject:t}}),t.expandErrors=s.add("expandErrors",function(e,t){return{errorsExpanded:!0}}),t.collapseErrors=s.add("collapseErrors",function(e,t){return{errorsExpanded:!1}}),t.setErrorsDisplayMode=s.add("setErrorsDisplayMode",function(e,t){return{errorsDisplayMode:t}}),t.setErrorsFilter=s.add("setErrorsFilter",function(e,t){return{errorsFilter:t}}),t.setPendingRequests=s.add("setPendingRequests",function(e,t){return{pendingRequests:t}}),t.setFindOptionsQuery=s.add("setFindOptionsQuery",function(e,t){var n=e.findOptions,r=s.updateFields({query:t})(n);return{findOptions:r}}),t.setFindOptionsIsCaseSensitive=s.add("setFindOptionsIsCaseSensitive",function(e,t){var n=e.findOptions,r=s.updateFields({isCaseSensitive:t
})(n);return{findOptions:r}}),t.setFindOptionsIsRegex=s.add("setFindOptionsIsRegex",function(e,t){var n=e.findOptions,r=s.updateFields({isRegex:t})(n);return{findOptions:r}}),t.setFindOptionsIsFullWord=s.add("setFindOptionsIsFullWord",function(e,t){var n=e.findOptions,r=s.updateFields({isFullWord:t})(n);return{findOptions:r}}),t.setFindOptionsIsShown=s.add("setFindOptionsIsShown",function(e,t){var n=e.findOptions,r=s.updateFields({isShown:t})(n);return{findOptions:r}}),t.setSocketConnected=s.add("setSocketConnected",function(e,t){return{socketConnected:t}}),t.setFilePaths=s.add("setFilePaths",function(e,t){return{filePaths:t.filePaths,rootDir:t.rootDir,filePathsCompleted:t.completed}}),t.expandFileTree=s.add("expandFileTree",function(e,t){return{fileTreeShown:!0}}),t.collapseFileTree=s.add("collapseFileTree",function(e,t){return{fileTreeShown:!1}}),t.toggleDoctor=s.add("toggleDoctor",function(e,t){return{showDoctor:!e.showDoctor}}),t.setShowDoctor=s.add("setShowDoctor",function(e,t){return{showDoctor:t}}),t.toggleSemanticView=s.add("toggleSemanticView",function(e,t){return{showSemanticView:!e.showSemanticView}}),t.setShowSemanticView=s.add("setShowSemanticView",function(e,t){return{showSemanticView:t}}),t.fileOuputStatusUpdated=s.add("fileOuputStatusUpdated",function(e,t){var n=s.updateFields((r={},r[t.inputFilePath]=t,r))(e.outputStatusCache);return{outputStatusCache:n};var r}),t.completeOuputStatusCacheUpdated=s.add("completeOuputStatusCacheUpdated",function(e,t){var n=t;return{outputStatusCache:n}}),t.setLiveBuildResults=s.add("setLiveBuildResults",function(e,t){return{liveBuildResults:t}}),t.ifJSStatusWasCurrentThenMoveToOutOfDate=s.add("ifJSStatusWasCurrentThenMoveToOutOfDate",function(e,t){var n=e.outputStatusCache[t.inputFilePath];if(!n||n.state!==r.JSOutputState.JSUpToDate)return{};var i={inputFilePath:n.inputFilePath,outputFilePath:n.outputFilePath,state:r.JSOutputState.JSOutOfDate},a=s.updateFields((o={},o[t.inputFilePath]=i,o))(e.outputStatusCache);return{outputStatusCache:a};var o}),t.setTSWorking=s.add("setTSWorking",function(e,t){return{tsWorking:t}}),t.setTestedWorking=s.add("setTestedWorking",function(e,t){return{testedWorking:t}})},function(e,t){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join("")?!1:!0}catch(a){return!1}}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,s,c=n(e),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var l in r)a.call(r,l)&&(c[l]=r[l]);if(i){s=i(r);for(var d=0;d<s.length;d++)o.call(r,s[d])&&(c[s[d]]=r[s[d]])}}return c}},function(e,t,n){"use strict";function r(e){var t=new i.TypeStyle({autoGenerateTag:!1});return e&&t.setStylesTarget(e),t}var i=n(379),a=n(380);t.types=a;var o=n(151);t.extend=o.extend,t.classes=o.classes,t.media=o.media;var s=new i.TypeStyle({autoGenerateTag:!0});t.setStylesTarget=s.setStylesTarget,t.cssRaw=s.cssRaw,t.cssRule=s.cssRule,t.forceRenderStyles=s.forceRenderStyles,t.fontFace=s.fontFace,t.getStyles=s.getStyles,t.keyframes=s.keyframes,t.reinit=s.reinit,t.style=s.style,t.createTypeStyle=r},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(r[a]=!0)}for(i=0;i<t.length;i++){var o=t[i];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=d[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(s(r.parts[a],t))}else{for(var o=[],a=0;a<r.parts.length;a++)o.push(s(r.parts[a],t));d[r.id]={id:r.id,refs:1,parts:o}}}}function i(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],a=i[0],o=i[1],s=i[2],c=i[3],u={css:o,media:s,sourceMap:c};n[a]?n[a].parts.push(u):t.push(n[a]={id:a,parts:[u]})}return t}function a(){var e=document.createElement("style"),t=m();return e.type="text/css",t.appendChild(e),e}function o(){var e=document.createElement("link"),t=m();return e.rel="stylesheet",t.appendChild(e),e}function s(e,t){var n,r,i;if(t.singleton){var s=_++;n=g||(g=a()),r=c.bind(null,n,s,!1),i=c.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=o(),r=l.bind(null,n),i=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(),r=u.bind(null,n),i=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function u(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function l(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(i),a&&URL.revokeObjectURL(a)}var d={},f=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=f(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,_=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=p());var n=i(e);return r(n,t),function(e){for(var a=[],o=0;o<n.length;o++){var s=n[o],c=d[s.id];c.refs--,a.push(c)}if(e){var u=i(e);r(u,t)}for(var o=0;o<a.length;o++){var c=a[o];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete d[c.id]}}}};var h=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(m)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function i(e){for(var t;t=e._renderedComponent;)e=t;return e}function a(e,t){var n=i(e);n._hostNode=t,t[_]=n}function o(e){var t=e._hostNode;t&&(delete t[_],e._hostNode=null)}function s(e,t){if(!(e._flags&g.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var c=n[s],u=i(c)._domID;if(0!==u){for(;null!==o;o=o.nextSibling)if(r(o,u)){a(c,o);continue e}d("32",u)}}e._flags|=g.hasCachedChildNodes}}function c(e){if(e[_])return e[_];for(var t=[];!e[_];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[_]);e=t.pop())n=r,t.length&&s(r,e);return n}function u(e){var t=c(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode?d("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:d("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var d=n(9),f=n(39),p=n(110),m=(n(4),f.ID_ATTRIBUTE_NAME),g=p,_="__reactInternalInstance$"+Math.random().toString(36).slice(2),h={getClosestInstanceFromNode:c,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:s,precacheNode:a,uncacheNode:o};e.exports=h},function(e,t,n){"use strict";e.exports=n(261)},function(e,t){"use strict";function n(e){var t=e.editor.getSelection(),n={identifier:{major:0,minor:++g},text:e.newText,range:t,forceMoveMarkers:!1};e.editor.getModel().pushEditOperations([],[n],null)}function r(e){var t={identifier:{major:0,minor:++g},text:e.newText,range:new monaco.Range(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),forceMoveMarkers:!1,isAutoWhitespaceEdit:!1};e.model.pushEditOperations([],[t],null)}function i(e){var t={identifier:{major:0,minor:++g},text:e.str,range:new monaco.Range(e.pos.lineNumber,e.pos.column,e.pos.lineNumber,e.pos.column),forceMoveMarkers:!0};e.model.pushEditOperations([],[t],null)}function a(e){var t=e.editor.getAction("editor.action.format");t.run()}function o(e,t){var n,r=500,i=new Promise(function(i,a){var o=function(){t.isCancellationRequested?a("cancelled"):e().then(function(e){t.isCancellationRequested?a("cancelled"):i(e)})};n=setTimeout(o,r),t.onCancellationRequested(function(){clearTimeout(n),a("cancelled")})});return i}function s(e){var t=e.editor.getModel(),n=t.getPositionAt(e.textSpan.start),r=t.getPositionAt(e.textSpan.start+e.textSpan.length);e.editor.setSelection({startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column})}function c(e){var t={lineNumber:e.position.line+1,column:e.position.ch+1};e.editor.setPosition(t),e.editor.revealPosition(t)}function u(e){var t=e._view.layoutProvider.getLinesViewportData().visibleRange;return t}function l(e){var t=e.getPosition(),n=u(e);return t.lineNumber-n.startLineNumber<n.endLineNumber-t.lineNumber}function d(e){var t=e.getSelection(),n=!t.isEmpty();if(n){var r=e.getModel().getValueInRange(t);return r}var r=e.getModel().getLineContent(t.startLineNumber);return r}function f(e){var t=e.getPosition();return e.getModel().getOffsetAt(t)}function p(e,t){return e.getOffsetAt(t)}function m(e,t){return e.getPositionAt(t)}Object.defineProperty(t,"__esModule",{value:!0});var g=0;t.replaceSelection=n,t.replaceRange=r,t.writeString=i,t.format=a,t.onlyLastCallWithDelay=o,t.setSelection=s,t.gotoPosition=c,t.getVisibleLines=u,t.isCursorInTopHalf=l,t.getSelectionOrCurrentLine=d,t.getCurrentPosition=f,t.positionToOffset=p,t.offsetToPosition=m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.disposibles=[],this.add=function(t){e.disposibles.push(t)},this.dispose=function(){e.disposibles.forEach(function(e){return e.dispose()})}}return e}();t.CompositeDisposible=n;var r=function(){function e(){var e=this;this.listeners=[],this.listenersOncer=[],this.on=function(t){return e.listeners.push(t),{dispose:function(){return e.off(t)}}},this.once=function(t){e.listenersOncer.push(t)},this.off=function(t){var n=e.listeners.indexOf(t);n>-1&&e.listeners.splice(n,1)},this.emit=function(t){for(e._last=t;e._currentQueue.length;){var n=e._currentQueue.pop();n.resolve(t)}e.listeners.forEach(function(e){return e(t)}),e.listenersOncer.forEach(function(e){return e(t)}),e.listenersOncer=[]},this.pipe=function(t){return e.on(function(e){return t.emit(e)})},this._currentQueue=[],this._last=null,this.current=function(){if(null!=e._last)return Promise.resolve(e._last);var t=new Promise(function(n,r){e._currentQueue.push({promise:t,resolve:n,reject:r})});return t},this.join=function(t){return null!=e._last&&t(e._last),e.on(t)}}return e}();t.TypedEvent=r;var i=function(){function e(){var e=this;this.listener=null,this.pending=[],this.pendingCount=function(){return e.pending.length}}return e.prototype.on=function(e){var t=this;this.listener=e,this.pending.forEach(function(e){return t.listener(e)}),this.pending=[]},e.prototype.off=function(){this.listener=null},e.prototype.emit=function(e){this.listener?this.listener(e):this.pending.push(e)},e}();t.SingleListenerQueue=i},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t){"use strict";function n(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];t[i.filePath]||(t[i.filePath]=[]),t[i.filePath].push(i)}for(var a in t){var o=t[a];o.sort(function(e,t){return t.span.start-e.span.start})}return t}function r(e,t,n){return{source:n,filePath:e,from:{line:0,ch:0},to:{line:0,ch:0},message:t,preview:null,level:"error"}}Object.defineProperty(t,"__esModule",{value:!0}),t.cacheDir="./.alm",t.title="Application Lifecycle Management tools for TypeScript";var i;!function(e){e[e.Unknown=0]="Unknown",e[e.True=1]="True",e[e.False=2]="False"}(i=t.TriState||(t.TriState={})),t.errors={CALLED_WHEN_NO_ACTIVE_PROJECT_FOR_FILE_PATH:"A query *that needs an active project* was made when there is no active project for given filePath",CALLED_WHEN_NO_ACTIVE_PROJECT_GLOBAL:"A query *that needs an active project* was made when there is no active project"},t.urlHashNormal="root",t.urlHashNewSession="new-session",t.urlHashDebugSession="debug",t.maxCountFindAndReplaceMultiResults=1e3,t.getRefactoringsByFilePath=n;var a;!function(e){e[e.File=0]="File",e[e.Dir=1]="Dir"}(a=t.FilePathType||(t.FilePathType={}));var o;!function(e){e[e.NoJSFile=1]="NoJSFile",e[e.JSUpToDate=2]="JSUpToDate",e[e.JSOutOfDate=3]="JSOutOfDate"}(o=t.JSOutputState||(t.JSOutputState={})),t.completionKindSnippet="snippet",t.completionKindPath="path";var s;!function(e){e[e.all=1]="all",e[e.openFiles=2]="openFiles"}(s=t.ErrorsDisplayMode||(t.ErrorsDisplayMode={}));var c;!function(e){e[e.Global=0]="Global",e[e.Namespace=1]="Namespace",e[e.Variable=2]="Variable",e[e.Function=3]="Function",e[e.FunctionGeneric=4]="FunctionGeneric",e[e.Enum=5]="Enum",e[e.EnumMember=6]="EnumMember",e[e.Interface=7]="Interface",e[e.InterfaceGeneric=8]="InterfaceGeneric",e[e.InterfaceConstructor=9]="InterfaceConstructor",e[e.InterfaceProperty=10]="InterfaceProperty",e[e.InterfaceMethod=11]="InterfaceMethod",e[e.InterfaceMethodGeneric=12]="InterfaceMethodGeneric",e[e.InterfaceIndexSignature=13]="InterfaceIndexSignature",e[e.Class=14]="Class",e[e.ClassGeneric=15]="ClassGeneric",e[e.ClassConstructor=16]="ClassConstructor",e[e.ClassProperty=17]="ClassProperty",e[e.ClassMethod=18]="ClassMethod",e[e.ClassMethodGeneric=19]="ClassMethodGeneric",e[e.ClassIndexSignature=20]="ClassIndexSignature"}(c=t.IconType||(t.IconType={}));var u;!function(e){e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=3]="Protected"}(u=t.UMLClassMemberVisibility||(t.UMLClassMemberVisibility={}));var l;!function(e){e[e.Instance=1]="Instance",e[e.Static=2]="Static"}(l=t.UMLClassMemberLifetime||(t.UMLClassMemberLifetime={}));var d;!function(e){e[e.NotRunYet=1]="NotRunYet",e[e.Fail=2]="Fail",e[e.Success=3]="Success",e[e.Skipped=4]="Skipped"}(d=t.TestStatus||(t.TestStatus={})),t.makeBlandError=r,t.liveDemoMountUrl="/demo"},function(e,t,n){"use strict";function r(){D.ReactReconcileTransaction&&x?void 0:l("123")}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=D.ReactReconcileTransaction.getPooled(!0)}function a(e,t,n,i,a,o){return r(),x.batchedUpdates(e,t,n,i,a,o)}function o(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==h.length?l("124",t,h.length):void 0,h.sort(o),v++;for(var n=0;t>n;n++){var r=h[n],i=r._pendingCallbacks;r._pendingCallbacks=null;var a;if(m.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),a="React update: "+s.getName(),console.time(a)}if(g.performUpdateIfNecessary(r,e.reconcileTransaction,v),a&&console.timeEnd(a),i)for(var c=0;c<i.length;c++)e.callbackQueue.enqueue(i[c],r.getPublicInstance())}}function c(e){return r(),x.isBatchingUpdates?(h.push(e),void(null==e._updateBatchNumber&&(e._updateBatchNumber=v+1))):void x.batchedUpdates(c,e)}function u(e,t){x.isBatchingUpdates?void 0:l("125"),y.enqueue(e,t),b=!0}var l=n(9),d=n(12),f=n(107),p=n(32),m=n(116),g=n(33),_=n(56),h=(n(4),[]),v=0,y=f.getPooled(),b=!1,x=null,S={initialize:function(){this.dirtyComponentsLength=h.length},close:function(){this.dirtyComponentsLength!==h.length?(h.splice(0,this.dirtyComponentsLength),E()):h.length=0}},k={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[S,k];d(i.prototype,_,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,f.release(this.callbackQueue),this.callbackQueue=null,D.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return _.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(i);var E=function(){for(;h.length||b;){if(h.length){var e=i.getPooled();e.perform(s,null,e),i.release(e)}if(b){b=!1;var t=y;y=f.getPooled(),t.notifyAll(),f.release(t)}}},T={injectReconcileTransaction:function(e){e?void 0:l("126"),D.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:l("127"),"function"!=typeof e.batchedUpdates?l("128"):void 0,"boolean"!=typeof e.isBatchingUpdates?l("129"):void 0,x=e}},D={ReactReconcileTransaction:null,batchedUpdates:a,enqueueUpdate:c,flushBatchedUpdates:E,injection:T,asap:u}