(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o2?arguments[2]:{};var props=keys(map);if(hasSymbols){props=props.concat(Object.getOwnPropertySymbols(map))}foreach(props,function(name){defineProperty(object,name,map[name],predicates[name])})};defineProperties.supportsDescriptors=!!supportsDescriptors;module.exports=defineProperties},{foreach:18,"object-keys":26}],6:[function(require,module,exports){"use strict";var has=require("has");var toPrimitive=require("es-to-primitive/es6");var toStr=Object.prototype.toString;var hasSymbols=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol";var $isNaN=require("./helpers/isNaN");var $isFinite=require("./helpers/isFinite");var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;var assign=require("./helpers/assign");var sign=require("./helpers/sign");var mod=require("./helpers/mod");var isPrimitive=require("./helpers/isPrimitive");var parseInteger=parseInt;var bind=require("function-bind");var arraySlice=bind.call(Function.call,Array.prototype.slice);var strSlice=bind.call(Function.call,String.prototype.slice);var isBinary=bind.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i);var isOctal=bind.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i);var regexExec=bind.call(Function.call,RegExp.prototype.exec);var nonWS=["…","​","￾"].join("");var nonWSregex=new RegExp("["+nonWS+"]","g");var hasNonWS=bind.call(Function.call,RegExp.prototype.test,nonWSregex);var invalidHexLiteral=/^[-+]0x[0-9a-f]+$/i;var isInvalidHexLiteral=bind.call(Function.call,RegExp.prototype.test,invalidHexLiteral);var ws=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join("");var trimRegex=new RegExp("(^["+ws+"]+)|(["+ws+"]+$)","g");var replace=bind.call(Function.call,String.prototype.replace);var trim=function(value){return replace(value,trimRegex,"")};var ES5=require("./es5");var hasRegExpMatcher=require("is-regex");var ES6=assign(assign({},ES5),{Call:function Call(F,V){var args=arguments.length>2?arguments[2]:[];if(!this.IsCallable(F)){throw new TypeError(F+" is not a function")}return F.apply(V,args)},ToPrimitive:toPrimitive,ToNumber:function ToNumber(argument){var value=isPrimitive(argument)?argument:toPrimitive(argument,Number);if(typeof value==="symbol"){throw new TypeError("Cannot convert a Symbol value to a number")}if(typeof value==="string"){if(isBinary(value)){return this.ToNumber(parseInteger(strSlice(value,2),2))}else if(isOctal(value)){return this.ToNumber(parseInteger(strSlice(value,2),8))}else if(hasNonWS(value)||isInvalidHexLiteral(value)){return NaN}else{var trimmed=trim(value);if(trimmed!==value){return this.ToNumber(trimmed)}}}return Number(value)},ToInt16:function ToInt16(argument){var int16bit=this.ToUint16(argument);return int16bit>=32768?int16bit-65536:int16bit},ToInt8:function ToInt8(argument){var int8bit=this.ToUint8(argument);return int8bit>=128?int8bit-256:int8bit},ToUint8:function ToUint8(argument){var number=this.ToNumber(argument);if($isNaN(number)||number===0||!$isFinite(number)){return 0}var posInt=sign(number)*Math.floor(Math.abs(number));return mod(posInt,256)},ToUint8Clamp:function ToUint8Clamp(argument){var number=this.ToNumber(argument);if($isNaN(number)||number<=0){return 0}if(number>=255){return 255}var f=Math.floor(argument);if(f+.5MAX_SAFE_INTEGER){return MAX_SAFE_INTEGER}return len},CanonicalNumericIndexString:function CanonicalNumericIndexString(argument){if(toStr.call(argument)!=="[object String]"){throw new TypeError("must be a string")}if(argument==="-0"){return-0}var n=this.ToNumber(argument);if(this.SameValue(this.ToString(n),argument)){return n}return void 0},RequireObjectCoercible:ES5.CheckObjectCoercible,IsArray:Array.isArray||function IsArray(argument){return toStr.call(argument)==="[object Array]"},IsConstructor:function IsConstructor(argument){return typeof argument==="function"&&!!argument.prototype},IsExtensible:function IsExtensible(obj){if(!Object.preventExtensions){return true}if(isPrimitive(obj)){return false}return Object.isExtensible(obj)},IsInteger:function IsInteger(argument){if(typeof argument!=="number"||$isNaN(argument)||!$isFinite(argument)){return false}var abs=Math.abs(argument);return Math.floor(abs)===abs},IsPropertyKey:function IsPropertyKey(argument){return typeof argument==="string"||typeof argument==="symbol"},IsRegExp:function IsRegExp(argument){if(!argument||typeof argument!=="object"){return false}if(hasSymbols){var isRegExp=argument[Symbol.match];if(typeof isRegExp!=="undefined"){return ES5.ToBoolean(isRegExp)}}return hasRegExpMatcher(argument)},SameValueZero:function SameValueZero(x,y){return x===y||$isNaN(x)&&$isNaN(y)},GetV:function GetV(V,P){if(!this.IsPropertyKey(P)){throw new TypeError("Assertion failed: IsPropertyKey(P) is not true")}var O=this.ToObject(V);return O[P]},GetMethod:function GetMethod(O,P){if(!this.IsPropertyKey(P)){throw new TypeError("Assertion failed: IsPropertyKey(P) is not true")}var func=this.GetV(O,P);if(func==null){return void 0}if(!this.IsCallable(func)){throw new TypeError(P+"is not a function")}return func},Get:function Get(O,P){if(this.Type(O)!=="Object"){throw new TypeError("Assertion failed: Type(O) is not Object")}if(!this.IsPropertyKey(P)){throw new TypeError("Assertion failed: IsPropertyKey(P) is not true")}return O[P]},Type:function Type(x){if(typeof x==="symbol"){return"Symbol"}return ES5.Type(x)},SpeciesConstructor:function SpeciesConstructor(O,defaultConstructor){if(this.Type(O)!=="Object"){throw new TypeError("Assertion failed: Type(O) is not Object")}var C=O.constructor;if(typeof C==="undefined"){return defaultConstructor}if(this.Type(C)!=="Object"){throw new TypeError("O.constructor is not an Object")}var S=hasSymbols&&Symbol.species?C[Symbol.species]:void 0;if(S==null){return defaultConstructor}if(this.IsConstructor(S)){return S}throw new TypeError("no constructor found")},CompletePropertyDescriptor:function CompletePropertyDescriptor(Desc){if(!this.IsPropertyDescriptor(Desc)){throw new TypeError("Desc must be a Property Descriptor")}if(this.IsGenericDescriptor(Desc)||this.IsDataDescriptor(Desc)){if(!has(Desc,"[[Value]]")){Desc["[[Value]]"]=void 0}if(!has(Desc,"[[Writable]]")){Desc["[[Writable]]"]=false}}else{if(!has(Desc,"[[Get]]")){Desc["[[Get]]"]=void 0}if(!has(Desc,"[[Set]]")){Desc["[[Set]]"]=void 0}}if(!has(Desc,"[[Enumerable]]")){Desc["[[Enumerable]]"]=false}if(!has(Desc,"[[Configurable]]")){Desc["[[Configurable]]"]=false}return Desc},Set:function Set(O,P,V,Throw){if(this.Type(O)!=="Object"){throw new TypeError("O must be an Object")}if(!this.IsPropertyKey(P)){throw new TypeError("P must be a Property Key")}if(this.Type(Throw)!=="Boolean"){throw new TypeError("Throw must be a Boolean")}if(Throw){O[P]=V;return true}else{try{O[P]=V}catch(e){return false}}},HasOwnProperty:function HasOwnProperty(O,P){if(this.Type(O)!=="Object"){throw new TypeError("O must be an Object")}if(!this.IsPropertyKey(P)){throw new TypeError("P must be a Property Key")}return has(O,P)},HasProperty:function HasProperty(O,P){if(this.Type(O)!=="Object"){throw new TypeError("O must be an Object")}if(!this.IsPropertyKey(P)){throw new TypeError("P must be a Property Key")}return P in O},IsConcatSpreadable:function IsConcatSpreadable(O){if(this.Type(O)!=="Object"){return false}if(hasSymbols&&typeof Symbol.isConcatSpreadable==="symbol"){var spreadable=this.Get(O,Symbol.isConcatSpreadable);if(typeof spreadable!=="undefined"){return this.ToBoolean(spreadable)}}return this.IsArray(O)},Invoke:function Invoke(O,P){if(!this.IsPropertyKey(P)){throw new TypeError("P must be a Property Key")}var argumentsList=arraySlice(arguments,2);var func=this.GetV(O,P);return this.Call(func,O,argumentsList)},CreateIterResultObject:function CreateIterResultObject(value,done){if(this.Type(done)!=="Boolean"){throw new TypeError("Assertion failed: Type(done) is not Boolean")}return{value:value,done:done}},RegExpExec:function RegExpExec(R,S){if(this.Type(R)!=="Object"){throw new TypeError("R must be an Object")}if(this.Type(S)!=="String"){throw new TypeError("S must be a String")}var exec=this.Get(R,"exec");if(this.IsCallable(exec)){var result=this.Call(exec,R,[S]);if(result===null||this.Type(result)==="Object"){return result}throw new TypeError('"exec" method must return `null` or an Object')}return regexExec(R,S)},ArraySpeciesCreate:function ArraySpeciesCreate(originalArray,length){if(!this.IsInteger(length)||length<0){throw new TypeError("Assertion failed: length must be an integer >= 0")}var len=length===0?0:length;var C;var isArray=this.IsArray(originalArray);if(isArray){C=this.Get(originalArray,"constructor");if(this.Type(C)==="Object"&&hasSymbols&&Symbol.species){C=this.Get(C,Symbol.species);if(C===null){C=void 0}}}if(typeof C==="undefined"){return Array(len)}if(!this.IsConstructor(C)){throw new TypeError("C must be a constructor")}return new C(len)},CreateDataProperty:function CreateDataProperty(O,P,V){if(this.Type(O)!=="Object"){throw new TypeError("Assertion failed: Type(O) is not Object")}if(!this.IsPropertyKey(P)){throw new TypeError("Assertion failed: IsPropertyKey(P) is not true")}var oldDesc=Object.getOwnPropertyDescriptor(O,P);var extensible=oldDesc||(typeof Object.isExtensible!=="function"||Object.isExtensible(O));var immutable=oldDesc&&(!oldDesc.writable||!oldDesc.configurable);if(immutable||!extensible){return false}var newDesc={configurable:true,enumerable:true,value:V,writable:true};Object.defineProperty(O,P,newDesc);return true},CreateDataPropertyOrThrow:function CreateDataPropertyOrThrow(O,P,V){if(this.Type(O)!=="Object"){throw new TypeError("Assertion failed: Type(O) is not Object")}if(!this.IsPropertyKey(P)){throw new TypeError("Assertion failed: IsPropertyKey(P) is not true")}var success=this.CreateDataProperty(O,P,V);if(!success){throw new TypeError("unable to create data property")}return success}});delete ES6.CheckObjectCoercible;module.exports=ES6},{"./es5":7,"./helpers/assign":9,"./helpers/isFinite":10,"./helpers/isNaN":11,"./helpers/isPrimitive":12,"./helpers/mod":13,"./helpers/sign":14,"es-to-primitive/es6":16,"function-bind":20,has:21,"is-regex":24}],7:[function(require,module,exports){"use strict";var $isNaN=require("./helpers/isNaN");var $isFinite=require("./helpers/isFinite");var sign=require("./helpers/sign");var mod=require("./helpers/mod");var IsCallable=require("is-callable");var toPrimitive=require("es-to-primitive/es5");var has=require("has");var ES5={ToPrimitive:toPrimitive,ToBoolean:function ToBoolean(value){return!!value},ToNumber:function ToNumber(value){return Number(value)},ToInteger:function ToInteger(value){var number=this.ToNumber(value);if($isNaN(number)){return 0}if(number===0||!$isFinite(number)){return number}return sign(number)*Math.floor(Math.abs(number))},ToInt32:function ToInt32(x){return this.ToNumber(x)>>0},ToUint32:function ToUint32(x){return this.ToNumber(x)>>>0},ToUint16:function ToUint16(value){var number=this.ToNumber(value);if($isNaN(number)||number===0||!$isFinite(number)){return 0}var posInt=sign(number)*Math.floor(Math.abs(number));return mod(posInt,65536)},ToString:function ToString(value){return String(value)},ToObject:function ToObject(value){this.CheckObjectCoercible(value);return Object(value)},CheckObjectCoercible:function CheckObjectCoercible(value,optMessage){if(value==null){throw new TypeError(optMessage||"Cannot call method on "+value)}return value},IsCallable:IsCallable,SameValue:function SameValue(x,y){if(x===y){if(x===0){return 1/x===1/y}return true}return $isNaN(x)&&$isNaN(y)},Type:function Type(x){if(x===null){return"Null"}if(typeof x==="undefined"){return"Undefined"}if(typeof x==="function"||typeof x==="object"){return"Object"}if(typeof x==="number"){return"Number"}if(typeof x==="boolean"){return"Boolean"}if(typeof x==="string"){return"String"}},IsPropertyDescriptor:function IsPropertyDescriptor(Desc){if(this.Type(Desc)!=="Object"){return false}var allowed={"[[Configurable]]":true,"[[Enumerable]]":true,"[[Get]]":true,"[[Set]]":true,"[[Value]]":true,"[[Writable]]":true};for(var key in Desc){if(has(Desc,key)&&!allowed[key]){return false}}var isData=has(Desc,"[[Value]]");var IsAccessor=has(Desc,"[[Get]]")||has(Desc,"[[Set]]");if(isData&&IsAccessor){throw new TypeError("Property Descriptors may not be both accessor and data descriptors")}return true},IsAccessorDescriptor:function IsAccessorDescriptor(Desc){if(typeof Desc==="undefined"){return false}if(!this.IsPropertyDescriptor(Desc)){throw new TypeError("Desc must be a Property Descriptor")}if(!has(Desc,"[[Get]]")&&!has(Desc,"[[Set]]")){return false}return true},IsDataDescriptor:function IsDataDescriptor(Desc){if(typeof Desc==="undefined"){return false}if(!this.IsPropertyDescriptor(Desc)){throw new TypeError("Desc must be a Property Descriptor")}if(!has(Desc,"[[Value]]")&&!has(Desc,"[[Writable]]")){return false}return true},IsGenericDescriptor:function IsGenericDescriptor(Desc){if(typeof Desc==="undefined"){return false}if(!this.IsPropertyDescriptor(Desc)){throw new TypeError("Desc must be a Property Descriptor")}if(!this.IsAccessorDescriptor(Desc)&&!this.IsDataDescriptor(Desc)){return true}return false},FromPropertyDescriptor:function FromPropertyDescriptor(Desc){if(typeof Desc==="undefined"){return Desc}if(!this.IsPropertyDescriptor(Desc)){throw new TypeError("Desc must be a Property Descriptor")}if(this.IsDataDescriptor(Desc)){return{value:Desc["[[Value]]"],writable:!!Desc["[[Writable]]"],enumerable:!!Desc["[[Enumerable]]"],configurable:!!Desc["[[Configurable]]"]}}else if(this.IsAccessorDescriptor(Desc)){return{get:Desc["[[Get]]"],set:Desc["[[Set]]"],enumerable:!!Desc["[[Enumerable]]"],configurable:!!Desc["[[Configurable]]"]}}else{throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor")}},ToPropertyDescriptor:function ToPropertyDescriptor(Obj){if(this.Type(Obj)!=="Object"){throw new TypeError("ToPropertyDescriptor requires an object")}var desc={};if(has(Obj,"enumerable")){desc["[[Enumerable]]"]=this.ToBoolean(Obj.enumerable)}if(has(Obj,"configurable")){desc["[[Configurable]]"]=this.ToBoolean(Obj.configurable)}if(has(Obj,"value")){desc["[[Value]]"]=Obj.value}if(has(Obj,"writable")){desc["[[Writable]]"]=this.ToBoolean(Obj.writable)}if(has(Obj,"get")){var getter=Obj.get;if(typeof getter!=="undefined"&&!this.IsCallable(getter)){throw new TypeError("getter must be a function")}desc["[[Get]]"]=getter}if(has(Obj,"set")){var setter=Obj.set;if(typeof setter!=="undefined"&&!this.IsCallable(setter)){throw new TypeError("setter must be a function")}desc["[[Set]]"]=setter}if((has(desc,"[[Get]]")||has(desc,"[[Set]]"))&&(has(desc,"[[Value]]")||has(desc,"[[Writable]]"))){throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute")}return desc}};module.exports=ES5},{"./helpers/isFinite":10,"./helpers/isNaN":11,"./helpers/mod":13,"./helpers/sign":14,"es-to-primitive/es5":15,has:21,"is-callable":22}],8:[function(require,module,exports){"use strict";module.exports=require("./es2015")},{"./es2015":6}],9:[function(require,module,exports){var has=Object.prototype.hasOwnProperty;module.exports=function assign(target,source){if(Object.assign){return Object.assign(target,source)}for(var key in source){if(has.call(source,key)){target[key]=source[key]}}return target}},{}],10:[function(require,module,exports){var $isNaN=Number.isNaN||function(a){return a!==a};module.exports=Number.isFinite||function(x){return typeof x==="number"&&!$isNaN(x)&&x!==Infinity&&x!==-Infinity}},{}],11:[function(require,module,exports){module.exports=Number.isNaN||function isNaN(a){return a!==a}},{}],12:[function(require,module,exports){module.exports=function isPrimitive(value){return value===null||typeof value!=="function"&&typeof value!=="object"}},{}],13:[function(require,module,exports){module.exports=function mod(number,modulo){var remain=number%modulo;return Math.floor(remain>=0?remain:remain+modulo)}},{}],14:[function(require,module,exports){module.exports=function sign(number){return number>=0?1:-1}},{}],15:[function(require,module,exports){"use strict";var toStr=Object.prototype.toString;var isPrimitive=require("./helpers/isPrimitive");var isCallable=require("is-callable");var ES5internalSlots={"[[DefaultValue]]":function(O,hint){var actualHint=hint||(toStr.call(O)==="[object Date]"?String:Number);if(actualHint===String||actualHint===Number){var methods=actualHint===String?["toString","valueOf"]:["valueOf","toString"];var value,i;for(i=0;i1){if(PreferredType===String){hint="string"}else if(PreferredType===Number){hint="number"}}var exoticToPrim;if(hasSymbols){if(Symbol.toPrimitive){exoticToPrim=GetMethod(input,Symbol.toPrimitive)}else if(isSymbol(input)){exoticToPrim=Symbol.prototype.valueOf}}if(typeof exoticToPrim!=="undefined"){var result=exoticToPrim.call(input,hint);if(isPrimitive(result)){return result}throw new TypeError("unable to convert exotic object to primitive")}if(hint==="default"&&(isDate(input)||isSymbol(input))){hint="string"}return ordinaryToPrimitive(input,hint==="default"?"number":hint)}},{"./helpers/isPrimitive":17,"is-callable":22,"is-date-object":23,"is-symbol":25}],17:[function(require,module,exports){arguments[4][12][0].apply(exports,arguments)},{dup:12}],18:[function(require,module,exports){var hasOwn=Object.prototype.hasOwnProperty;var toString=Object.prototype.toString;module.exports=function forEach(obj,fn,ctx){if(toString.call(fn)!=="[object Function]"){throw new TypeError("iterator must be a function")}var l=obj.length;if(l===+l){for(var i=0;i0&&!has.call(object,0)){for(var i=0;i0){for(var j=0;j=0&&toStr.call(value.callee)==="[object Function]"}return isArgs}},{}],28:[function(require,module,exports){if(!String.prototype.includes){(function(){"use strict";var toString={}.toString;var defineProperty=function(){try{var object={};var $defineProperty=Object.defineProperty;var result=$defineProperty(object,object,object)&&$defineProperty}catch(error){}return result}();var indexOf="".indexOf;var includes=function(search){if(this==null){throw TypeError()}var string=String(this);if(search&&toString.call(search)=="[object RegExp]"){throw TypeError()}var stringLength=string.length;var searchString=String(search);var searchLength=searchString.length;var position=arguments.length>1?arguments[1]:undefined;var pos=position?Number(position):0;if(pos!=pos){pos=0}var start=Math.min(Math.max(pos,0),stringLength);if(searchLength+start>stringLength){return false}return indexOf.call(string,searchString,pos)!=-1};if(defineProperty){defineProperty(String.prototype,"includes",{value:includes,configurable:true,writable:true})}else{String.prototype.includes=includes}})()}},{}],29:[function(require,module,exports){if(!String.prototype.repeat){(function(){"use strict";var defineProperty=function(){try{var object={};var $defineProperty=Object.defineProperty;var result=$defineProperty(object,object,object)&&$defineProperty}catch(error){}return result}();var repeat=function(count){if(this==null){throw TypeError()}var string=String(this);var n=count?Number(count):0;if(n!=n){n=0}if(n<0||n==Infinity){throw RangeError()}var result="";while(n){if(n%2==1){result+=string}if(n>1){string+=string}n>>=1}return result};if(defineProperty){defineProperty(String.prototype,"repeat",{value:repeat,configurable:true,writable:true})}else{String.prototype.repeat=repeat}})()}},{}],30:[function(require,module,exports){if(!String.prototype.startsWith){(function(){"use strict";var defineProperty=function(){try{var object={};var $defineProperty=Object.defineProperty;var result=$defineProperty(object,object,object)&&$defineProperty}catch(error){}return result}();var toString={}.toString;var startsWith=function(search){if(this==null){throw TypeError()}var string=String(this);if(search&&toString.call(search)=="[object RegExp]"){throw TypeError()}var stringLength=string.length;var searchString=String(search);var searchLength=searchString.length;var position=arguments.length>1?arguments[1]:undefined;var pos=position?Number(position):0;if(pos!=pos){pos=0}var start=Math.min(Math.max(pos,0),stringLength);if(searchLength+start>stringLength){return false}var index=-1;while(++index=0;i--){var part=parts[i];if(part==="."){parts.splice(i,1)}else if(part===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}return"/"+parts.join("/")}module.exports=bashEmulator},{"./commands":36,"array.prototype.findindex":2,"string.prototype.includes":28,"string.prototype.repeat":29,"string.prototype.startswith":30}],45:[function(require,module,exports){function addLineNumber(width,num,line){var numChars=num.toString().length;var space=" ".repeat(width-numChars);return space+num+" "+line}module.exports.addLineNumber=addLineNumber;module.exports.addLineNumbers=function(width,lines){return lines.map(function(line,i){var num=i+1;return addLineNumber(width,num,line)})}},{}]},{},[31]);