diff --git a/dist/cli.js b/dist/cli.js old mode 100644 new mode 100755 index 70f14af..3aff56b --- a/dist/cli.js +++ b/dist/cli.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -"use strict";module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return 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){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=114)}([function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},function(e,t,r){var n=r(97),o=r(99),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=Object.defineProperty&&function(){var e={};try{for(var t in Object.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,r,n){var o;t in e&&("function"!=typeof(o=n)||"[object Function]"!==s.call(o)||!n())||(a?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},l=function(e,t){var r=arguments.length>2?arguments[2]:{},s=n(t);i&&(s=s.concat(Object.getOwnPropertySymbols(t))),o(s,function(n){c(e,n,t[n],r[n])})};l.supportsDescriptors=!!a,e.exports=l},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("util")},function(e,t,r){var n=r(9);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,r){const n=r(3),o=r(4),i=r(42),s=r(56),a=r(57),c=r(59),l=r(60),u=r(63),p=r(64),f=r(66),h=r(67),d=1e7;function m(e,t,r){let n;return(r=Object.assign({extendEnv:!0,env:{}},r)).extendEnv&&(r.env=Object.assign({},process.env,r.env)),!0===r.__winShell?(delete r.__winShell,n={command:e,args:t,options:r,file:e,original:e}):n=i._parse(e,t,r),(r=Object.assign({maxBuffer:d,stripEof:!0,preferLocal:!0,localDir:n.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},n.options)).stdio=h(r),r.preferLocal&&(r.env=a.env(Object.assign({},r,{cwd:r.localDir}))),{cmd:n.command,args:n.args,opts:r,parsed:n}}function g(e,t){return t&&e.stripEof&&(t=s(t)),t}function y(e,t,r){let n="/bin/sh",o=["-c",t];return r=Object.assign({},r),"win32"===process.platform&&(r.__winShell=!0,n=process.env.comspec||"cmd.exe",o=["/s","/c",`"${t}"`],r.windowsVerbatimArguments=!0),r.shell&&(n=r.shell,delete r.shell),e(n,o,r)}function v(e,t,r,n){if(!e[t])return null;let o;return(o=r?l(e[t],{encoding:r,maxBuffer:n}):l.buffer(e[t],{maxBuffer:n})).catch(e=>{throw e.stream=t,e.message=`${t} ${e.message}`,e})}e.exports=((e,t,r)=>{let o=e;Array.isArray(t)&&t.length>0&&(o+=" "+t.join(" "));const s=m(e,t,r),a=s.opts.encoding,l=s.opts.maxBuffer;let h,d;try{h=n.spawn(s.cmd,s.args,s.opts)}catch(e){return Promise.reject(e)}s.opts.cleanup&&(d=p(()=>{h.kill()}));let y=null,b=!1;const w=()=>{y&&(clearTimeout(y),y=null)};s.opts.timeout>0&&(y=setTimeout(()=>{y=null,b=!0,h.kill(s.opts.killSignal)},s.opts.timeout));const x=new Promise(e=>{h.on("exit",(t,r)=>{w(),e({code:t,signal:r})}),h.on("error",t=>{w(),e({err:t})}),h.stdin&&h.stdin.on("error",t=>{w(),e({err:t})})});function S(){h.stdout&&h.stdout.destroy(),h.stderr&&h.stderr.destroy()}const E=()=>u(Promise.all([x,v(h,"stdout",a,l),v(h,"stderr",a,l)]).then(e=>{const t=e[0],r=e[1],n=e[2];let i=t.err;const a=t.code,c=t.signal;if(d&&d(),i||0!==a||null!==c){if(!i){let e="";Array.isArray(s.opts.stdio)?("inherit"!==s.opts.stdio[2]&&(e+=e.length>0?n:`\n${n}`),"inherit"!==s.opts.stdio[1]&&(e+=`\n${r}`)):"inherit"!==s.opts.stdio&&(e=`\n${n}${r}`),(i=new Error(`Command failed: ${o}${e}`)).code=a<0?f(a):a}if(i.killed=i.killed||h.killed,i.stdout=r,i.stderr=n,i.failed=!0,i.signal=c||null,i.cmd=o,i.timedOut=b,!s.opts.reject)return i;throw i}return{stdout:g(s.opts,r),stderr:g(s.opts,n),code:0,failed:!1,killed:!1,signal:null,cmd:o,timedOut:!1}}),S);return i._enoent.hookChildProcess(h,s.parsed),function(e,t){const r=t.input;null!==r&&void 0!==r&&(c(r)?r.pipe(e.stdin):e.stdin.end(r))}(h,s.opts),h.then=((e,t)=>E().then(e,t)),h.catch=(e=>E().catch(e)),h}),e.exports.stdout=function(){return e.exports.apply(null,arguments).then(e=>e.stdout)},e.exports.stderr=function(){return e.exports.apply(null,arguments).then(e=>e.stderr)},e.exports.shell=((t,r)=>y(e.exports,t,r)),e.exports.sync=((e,t,r)=>{const o=m(e,t,r);if(c(o.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const i=n.spawnSync(o.cmd,o.args,o.opts);if(i.error||0!==i.status)throw i.error||new Error(""===i.stderr?i.stdout:i.stderr);return i.stdout=g(o.opts,i.stdout),i.stderr=g(o.opts,i.stderr),i}),e.exports.shellSync=((t,r)=>y(e.exports.sync,t,r)),e.exports.spawn=o.deprecate(e.exports,"execa.spawn() is deprecated. Use execa() instead.")},function(e,t){e.exports=require("os")},function(e,t,r){const n=r(0),o=r(1),i=r(3),s=r(16),a=r(11),c=r(86),l=e=>new Promise(t=>{i.exec(e,{stdio:[0,"pipe","ignore"]},(e,r)=>{t((e?"":r.toString()||"").trim())})}),u=function(e){const t=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===e&&console.log(e,JSON.stringify(t))},p=e=>new Promise(t=>{o.stat(e,r=>t(r?null:e))}),f=e=>new Promise(t=>{e||t(null),o.readFile(e,"utf8",(e,r)=>t(r||null))}),h=e=>p(e).then(f).then(e=>e?JSON.parse(e):null),d=/\d+\.[\d+|.]+/g,m=e=>{u("trace","findDarwinApplication",e);const t=`mdfind "kMDItemCFBundleIdentifier=='${e}'"`;return u("trace",t),l(t).then(e=>e.replace(/(\s)/g,"\\ "))},g=(e,t)=>{var r=(t||["CFBundleShortVersionString"]).map(function(e){return"-c Print:"+e});return["/usr/libexec/PlistBuddy"].concat(r).concat([e]).join(" ")},y=(e,t)=>{const r=[];let n=null;for(;null!==(n=e.exec(t));)r.push(n);return r};e.exports={run:l,log:u,fileExists:p,readFile:f,requireJson:h,versionRegex:d,findDarwinApplication:m,generatePlistBuddyCommand:g,matchAll:y,parseSDKManagerOutput:e=>{const t=e.split("Available")[0];return{apiLevels:y(c.androidAPILevels,t).map(e=>e[1]),buildTools:y(c.androidBuildTools,t).map(e=>e[1]),systemImages:y(c.androidSystemImages,t).map(e=>e[1].split("|").map(e=>e.trim())).map(e=>e[0].split(";")[0]+" | "+e[2].split(" System Image")[0])}},isObject:e=>"object"==typeof e&&!Array.isArray(e),noop:e=>e,pipe:e=>t=>e.reduce((e,t)=>t(e),t),browserBundleIdentifiers:{Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:e=>(i.execSync(e,{stdio:[0,"pipe","ignore"]}).toString()||"").trim(),which:e=>new Promise(t=>s(e,(e,r)=>t(r))),getDarwinApplicationVersion:e=>{var t;return u("trace","getDarwinApplicationVersion",e),t="darwin"!==process.platform?"N/A":m(e).then(e=>l(g(n.join(e,"Contents","Info.plist"),["CFBundleShortVersionString"]))),Promise.resolve(t)},uniq:e=>Array.from(new Set(e)),toReadableBytes:e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return e?(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][t]:"0 Bytes"},omit:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)<0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),pick:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)>=0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),getPackageJsonByName:e=>h(n.join(process.cwd(),"node_modules",e,"package.json")),getPackageJsonByPath:e=>h(n.join(process.cwd(),e)),getPackageJsonByFullPath:e=>(u("trace","getPackageJsonByFullPath",e),h(e)),getAllPackageJsonPaths:e=>(u("trace","getAllPackageJsonPaths",e),new Promise(t=>{const r=(e,r)=>t(r||[]);return a(e?n.join("node_modules",e,"package.json"):n.join("node_modules","**","package.json"),r)})),sortObject:e=>Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}),findVersion:(e,t,r)=>{const n=r||0,o=t||d,i=e.match(o);return i?i[n]:e},condensePath:e=>(e||"").replace(process.env.HOME,"~"),determineFound:(e,t,r)=>(u("trace","determineFound",e,t,r),"N/A"===t||"N/A"===t&&"N/A"===r?Promise.resolve([e,"N/A"]):t?r?Promise.resolve([e,t,r]):Promise.resolve([e,t]):Promise.resolve([e,"Not Found"]))}},function(e,t,r){var n=r(100);e.exports=Function.prototype.bind||n},function(e,t){e.exports=require("assert")},function(e,t,r){e.exports=b;var n=r(1),o=r(20),i=r(12),s=(i.Minimatch,r(82)),a=r(19).EventEmitter,c=r(0),l=r(10),u=r(13),p=r(84),f=r(21),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,m=r(85),g=(r(4),f.childrenIgnored),y=f.isIgnored,v=r(23);function b(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return p(e,t)}return new x(e,t,r)}b.sync=p;var w=b.GlobSync=p.GlobSync;function x(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof x))return new x(e,t,r);h(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=v(r),this.on("error",r),this.on("end",function(e){r(null,e)}));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var i=!0,s=0;s1)return!0;for(var o=0;othis.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!o||"DIR"===i)return t(null,i);if(o&&"FILE"===i)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var a=s.isDirectory()?"DIR":"FILE";return o&&"FILE"===a?t():t(null,a,s)}var c=this,l=m("stat\0"+r,function(o,i){if(i&&i.isSymbolicLink())return n.stat(r,function(n,o){n?c._stat2(e,r,null,i,t):c._stat2(e,r,n,o,t)});c._stat2(e,r,o,i,t)});l&&n.lstat(r,l)},x.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,n)}},function(e,t,r){e.exports=d,d.Minimatch=m;var n={sep:"/"};try{n=r(0)}catch(e){}var o=d.GLOBSTAR=m.GLOBSTAR={},i=r(79),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{});var f=/\/+/;function h(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function d(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new m(t,r).match(e))}function m(e,t){if(!(this instanceof m))return new m(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function g(e,t){if(t||(t=this instanceof m?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}d.filter=function(e,t){return t=t||{},function(r,n,o){return d(r,e,t)}},d.defaults=function(e){if(!e||!Object.keys(e).length)return d;var t=d,r=function(r,n,o){return t.minimatch(r,n,h(e,o))};return r.Minimatch=function(r,n){return new t.Minimatch(r,h(e,n))},r},m.defaults=function(e){return e&&Object.keys(e).length?d.defaults(e).Minimatch:m},m.prototype.debug=function(){},m.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map(function(e){return e.split(f)}),this.debug(this.pattern,r),r=r.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},m.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(this.options.nonegate)return;for(var n=0,o=e.length;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return o;if(""===e)return"";var n,i="",l=!!r.nocase,u=!1,f=[],h=[],d=!1,m=-1,g=-1,v="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(n){switch(n){case"*":i+=c,l=!0;break;case"?":i+=a,l=!0;break;default:i+="\\"+n}b.debug("clearStateChar %j %j",n,i),n=!1}}for(var x,S=0,E=e.length;S-1;A--){var _=h[A],C=i.slice(0,_.reStart),N=i.slice(_.reStart,_.reEnd-8),F=i.slice(_.reEnd-8,_.reEnd),D=i.slice(_.reEnd);F+=D;var $=C.split("(").length-1,M=D;for(S=0;S<$;S++)M=M.replace(/\)[+*?]?/,"");var B="";""===(D=M)&&t!==y&&(B="$");var V=C+N+D+B+F;i=V}""!==i&&l&&(i="(?=.)"+i);k&&(i=v+i);if(t===y)return[i,l];if(!l)return e.replace(/\\(.)/g,"$1");var R=r.nocase?"i":"";try{var G=new RegExp("^"+i+"$",R)}catch(e){return new RegExp("$.")}return G._glob=e,G._src=i,G};var y={};d.makeRe=function(e,t){return new m(e,t||{}).makeRe()},m.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?c:t.dot?l:u,n=t.nocase?"i":"",i=e.map(function(e){return e.map(function(e){return e===o?r:"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},d.match=function(e,t,r){var n=new m(t,r=r||{});return e=e.filter(function(e){return n.match(e)}),n.options.nonull&&!e.length&&e.push(t),e},m.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/"));e=e.split(f),this.debug(this.pattern,"split",e);var o,i,s=this.set;for(this.debug(this.pattern,"set",s),i=e.length-1;i>=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,f,t,h),f!==a))}if("string"==typeof u?(l=n.nocase?p.toLowerCase()===u.toLowerCase():p===u,this.debug("string match",u,p,l)):(l=p.match(u),this.debug("pattern match",u,p,l)),!l)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}},function(e,t,r){function n(e){return"/"===e.charAt(0)}function o(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?o:n,e.exports.posix=n,e.exports.win32=o},function(e,t,r){var n=Function.prototype.toString,o=/^\s*class /,i=function(e){try{var t=n.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return o.test(t)}catch(e){return!1}},s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(a)return function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,r){var n=r(0),o=r(16),i=new(r(17))({max:50,maxAge:3e4});e.exports=function(e,t){var r;if(t=!!t,r=i.get(e+"!"+t),i.has(e))return i.get(e);try{r=t?o.sync(e,{pathExt:n.delimiter+(process.env.PATHEXT||"")}):o.sync(e)}catch(e){}return i.set(e+"!"+t,r),r}},function(e,t,r){e.exports=l,l.sync=function(e,t){for(var r=c(e,t=t||{}),n=r.env,i=r.ext,l=r.extExe,u=[],p=0,f=n.length;pt.maxAge:e[p]&&r>e[p]}function x(e){if(e[c]>e[a])for(var t=e[d].tail;e[c]>e[a]&&null!==t;){var r=t.prev;S(e,t),t=r}}function S(e,t){if(t){var r=t.value;e[f]&&e[f](r.key,r.value),e[c]-=r.length,e[m].delete(r.key),e[d].removeNode(t)}}Object.defineProperty(y.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,x(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(e){this[u]=!!e},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[p]=e,x(this)},get:function(){return this[p]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=g),e!==this[l]&&(this[l]=e,this[c]=0,this[d].forEach(function(e){e.length=this[l](e.value,e.key),this[c]+=e.length},this)),x(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),y.prototype.rforEach=function(e,t){t=t||this;for(var r=this[d].tail;null!==r;){var n=r.prev;v(this,e,r,t),r=n}},y.prototype.forEach=function(e,t){t=t||this;for(var r=this[d].head;null!==r;){var n=r.next;v(this,e,r,t),r=n}},y.prototype.keys=function(){return this[d].toArray().map(function(e){return e.key},this)},y.prototype.values=function(){return this[d].toArray().map(function(e){return e.value},this)},y.prototype.reset=function(){this[f]&&this[d]&&this[d].length&&this[d].forEach(function(e){this[f](e.key,e.value)},this),this[m]=new o,this[d]=new s,this[c]=0},y.prototype.dump=function(){return this[d].map(function(e){if(!w(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}},this).toArray().filter(function(e){return e})},y.prototype.dumpLru=function(){return this[d]},y.prototype.inspect=function(e,t){var r="LRUCache {",n=!1;this[u]&&(r+="\n allowStale: true",n=!0);var o=this[a];o&&o!==1/0&&(n&&(r+=","),r+="\n max: "+i.inspect(o,t),n=!0);var s=this[p];s&&(n&&(r+=","),r+="\n maxAge: "+i.inspect(s,t),n=!0);var f=this[l];f&&f!==g&&(n&&(r+=","),r+="\n length: "+i.inspect(this[c],t),n=!0);var h=!1;return this[d].forEach(function(e){h?r+=",\n ":(n&&(r+=",\n"),h=!0,r+="\n ");var o=i.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==s&&(a.maxAge=e.maxAge),f!==g&&(a.length=e.length),w(this,e)&&(a.stale=!0),a=i.inspect(a,t).split("\n").join("\n "),r+=o+" => "+a}),(h||n)&&(r+="\n"),r+="}"},y.prototype.set=function(e,t,r){var n=(r=r||this[p])?Date.now():0,o=this[l](t,e);if(this[m].has(e)){if(o>this[a])return S(this,this[m].get(e)),!1;var i=this[m].get(e).value;return this[f]&&(this[h]||this[f](e,i.value)),i.now=n,i.maxAge=r,i.value=t,this[c]+=o-i.length,i.length=o,this.get(e),x(this),!0}var s=new function(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}(e,t,o,n,r);return s.length>this[a]?(this[f]&&this[f](e,t),!1):(this[c]+=s.length,this[d].unshift(s),this[m].set(e,this[d].head),x(this),!0)},y.prototype.has=function(e){return!!this[m].has(e)&&!w(this,this[m].get(e).value)},y.prototype.get=function(e){return b(this,e,!0)},y.prototype.peek=function(e){return b(this,e,!1)},y.prototype.pop=function(){var e=this[d].tail;return e?(S(this,e),e.value):null},y.prototype.del=function(e){S(this,this[m].get(e))},y.prototype.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{var i=o-t;i>0&&this.set(n.k,n.v,i)}}},y.prototype.prune=function(){var e=this;this[m].forEach(function(t,r){b(e,r,!1)})}},function(e,t,r){e.exports=function(e,t){return e=""+e,e=t?'"'+(e=(e=e.replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"))+'"':e.replace(/([()%!^<>&|;,"'\s])/g,"^$1")}},function(e,t){e.exports=require("events")},function(e,t,r){e.exports=u,u.realpath=u,u.sync=p,u.realpathSync=p,u.monkeypatch=function(){n.realpath=u,n.realpathSync=p},u.unmonkeypatch=function(){n.realpath=o,n.realpathSync=i};var n=r(1),o=n.realpath,i=n.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),c=r(78);function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function u(e,t,r){if(a)return o(e,t,r);"function"==typeof t&&(r=t,t=null),o(e,t,function(n,o){l(n)?c.realpath(e,t,r):r(n,o)})}function p(e,t){if(a)return i(e,t);try{return i(e,t)}catch(r){if(l(r))return c.realpathSync(e,t);throw r}}},function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.alphasort=l,t.alphasorti=c,t.setopts=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(u))}(e,r),e.changedCwd=!1;var i=process.cwd();n(r,"cwd")?(e.cwd=o.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i;e.root=r.root||o.resolve(e.cwd,"/"),e.root=o.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=s(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new a(t,r),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,o=e.matches.length;n2?arguments[2]:[];if(!this.IsCallable(e))throw new TypeError(e+" is not a function");return e.apply(t,r)},ToPrimitive:o,ToNumber:function(e){var t=h(e)?e:o(e,Number);if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof t){if(v(t))return this.ToNumber(d(y(t,2),2));if(b(t))return this.ToNumber(d(y(t,2),8));if(E(t)||O(t))return NaN;var r=function(e){return I(e,P,"")}(t);if(r!==t)return this.ToNumber(r)}return Number(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(a(t)||0===t||!c(t))return 0;var r=p(t)*Math.floor(Math.abs(t));return f(r,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(a(t)||t<=0)return 0;if(t>=255)return 255;var r=Math.floor(e);return r+.5l?l:t},CanonicalNumericIndexString:function(e){if("[object String]"!==i.call(e))throw new TypeError("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:T.CheckObjectCoercible,IsArray:Array.isArray||function(e){return"[object Array]"===i.call(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:function(e){return!Object.preventExtensions||!h(e)&&Object.isExtensible(e)},IsInteger:function(e){if("number"!=typeof e||a(e)||!c(e))return!1;var t=Math.abs(e);return Math.floor(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(s){var t=e[Symbol.match];if(void 0!==t)return T.ToBoolean(t)}return k(e)},SameValueZero:function(e,t){return e===t||a(e)&&a(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(e,t);if(null!=r){if(!this.IsCallable(r))throw new TypeError(t+"is not a function");return r}},Get:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":T.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==this.Type(r))throw new TypeError("O.constructor is not an Object");var n=s&&Symbol.species?r[Symbol.species]:void 0;if(null==n)return t;if(this.IsConstructor(n))return n;throw new TypeError("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(n(e,"[[Value]]")||(e["[[Value]]"]=void 0),n(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(n(e,"[[Get]]")||(e["[[Get]]"]=void 0),n(e,"[[Set]]")||(e["[[Set]]"]=void 0)),n(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),n(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,r,n){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");if("Boolean"!==this.Type(n))throw new TypeError("Throw must be a Boolean");if(n)return e[t]=r,!0;try{e[t]=r}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return n(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(s&&"symbol"==typeof Symbol.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");var r=g(arguments,2),n=this.GetV(e,t);return this.Call(n,e,r)},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new TypeError("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new TypeError("R must be an Object");if("String"!==this.Type(t))throw new TypeError("S must be a String");var r=this.Get(e,"exec");if(this.IsCallable(r)){var n=this.Call(r,e,[t]);if(null===n||"Object"===this.Type(n))return n;throw new TypeError('"exec" method must return `null` or an Object')}return w(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new TypeError("Assertion failed: length must be an integer >= 0");var r,n=0===t?0:t;if(this.IsArray(e)&&(r=this.Get(e,"constructor"),"Object"===this.Type(r)&&s&&Symbol.species&&null===(r=this.Get(r,Symbol.species))&&(r=void 0)),void 0===r)return Array(n);if(!this.IsConstructor(r))throw new TypeError("C must be a constructor");return new r(n)},CreateDataProperty:function(e,t,r){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=Object.getOwnPropertyDescriptor(e,t),o=n||"function"!=typeof Object.isExtensible||Object.isExtensible(e);if(n&&(!n.writable||!n.configurable)||!o)return!1;var i={configurable:!0,enumerable:!0,value:r,writable:!0};return Object.defineProperty(e,t,i),!0},CreateDataPropertyOrThrow:function(e,t,r){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(e,t,r);if(!n)throw new TypeError("unable to create data property");return n},AdvanceStringIndex:function(e,t,r){if("String"!==this.Type(e))throw new TypeError("Assertion failed: Type(S) is not String");if(!this.IsInteger(t))throw new TypeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if(t<0||t>l)throw new RangeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if("Boolean"!==this.Type(r))throw new TypeError("Assertion failed: Type(unicode) is not Boolean");if(!r)return t+1;if(t+1>=e.length)return t+1;var n=e.charCodeAt(t);if(n<55296||n>56319)return t+1;var o=e.charCodeAt(t+1);return o<56320||o>57343?t+1:t+2}});delete A.CheckObjectCoercible,e.exports=A},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(Object.assign)return Object.assign(e,t);for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var r=e%t;return Math.floor(r>=0?r:r+t)}},function(e,t,r){var n=r(24),o=Number.isNaN||function(e){return e!=e},i=Number.isFinite||function(e){return"number"==typeof e&&global.isFinite(e)},s=Array.prototype.indexOf;e.exports=function(e){var t=arguments.length>1?n.ToInteger(arguments[1]):0;if(s&&!o(e)&&i(t)&&void 0!==e)return s.apply(this,arguments)>-1;var r=n.ToObject(this),a=n.ToLength(r.length);if(0===a)return!1;for(var c=t>=0?t:Math.max(0,a+t);c0?e:s.defaults,a=Object.entries(r).reduce((e,r)=>{const n=r[0],i=r[1],s=o[`get${n}`];return s?(i&&e.push(s(i,t)),e):e=e.concat((i||[]).map(e=>{const t=o[`get${e.replace(/\s/g,"")}Info`];return t?t():Promise.resolve(["Unknown"])}))},[]);return Promise.all(a).then(e=>{const r=e.reduce((e,t)=>(t&&t[0]&&Object.assign(e,{[t[0]]:t}),e),{});return function(e,t){const r=(()=>t.json?i.json:t.markdown?i.markdown:i.yaml)();t.console&&console.log(r(e,Object.assign({},t,{console:!0})));const o=r(e,Object.assign({},t,{console:!1}));return t.clipboard&&n.writeSync(o),o}(Object.entries(s.defaults).reduce((e,t)=>{const n=t[0],o=t[1];return r[n]?Object.assign(e,{[n]:r[n][1]}):Object.assign(e,{[n]:(o||[]).reduce((e,t)=>r[t]?(r[t].shift(),1===r[t].length?Object.assign(e,{[t]:r[t][0]}):Object.assign(e,{[t]:{version:r[t][0],path:r[t][1]}})):e,{})})},{}),t)})}Array.prototype.includes||c.shim(),Object.entries||l.shim(),Object.values||u.shim(),e.exports={cli:function(e){if(e.all)return p(Object.assign({},s.defaults,{npmPackages:!0,npmGlobalPackages:!0}),e);if(e.raw)return p(JSON.parse(e.raw),e);if(e.helper){const t=o[`get${e.helper}`]||o[`get${e.helper}Info`]||o[e.helper];return t?t().then(console.log):console.error("Not Found")}const t=(e,t)=>e.toLowerCase().includes(t.toLowerCase()),r=Object.keys(e).filter(e=>Object.keys(s.defaults).some(r=>t(r,e))),n=Object.entries(s.defaults).reduce((n,o)=>r.some(e=>t(e,o[0]))?Object.assign(n,{[o[0]]:o[1]||e[o[0]]}):n,{});return e.preset?(s[e.preset]||console.error(`\nNo "${e.preset}" preset found.`),p(Object.assign({},a.omit(s[e.preset],["options"]),n),Object.assign({},s[e.preset].options,a.pick(e,["duplicates","fullTree","json","markdown","console","clipboard"])))):p(n,e)},helpers:o,main:p,run:function(e,t){return p(e,t)}}},function(e,t,r){const n=r(41),o=r(68),i=r(69),s=r(70);function a(){switch(process.platform){case"darwin":return i;case"win32":return s;case"android":if("/data/data/com.termux/files/usr"!==process.env.PREFIX)throw new Error("You need to install Termux for this module to work on Android: https://termux.com");return n;default:return o}}t.write=(e=>"string"!=typeof e?Promise.reject(new TypeError(`Expected a string, got ${typeof e}`)):a().copy({input:e}).then(()=>{})),t.read=(()=>a().paste({stripEof:!1})),t.writeSync=(e=>{if("string"!=typeof e)throw new TypeError(`Expected a string, got ${typeof e}`);a().copySync({input:e})}),t.readSync=(()=>a().pasteSync({stripEof:!1}).stdout)},function(e,t,r){const n=r(6),o=e=>{if("ENOENT"===e.code)throw new Error("Couldn't find the termux-api scripts. You can install them with: apt install termux-api");throw e};e.exports={copy:e=>n("termux-clipboard-set",e).catch(o),paste:e=>n.stdout("termux-clipboard-get",e).catch(o),copySync:e=>{try{return n.sync("termux-clipboard-set",e)}catch(e){o(e)}},pasteSync:e=>{try{return n.sync("termux-clipboard-get",e)}catch(e){o(e)}}}},function(e,t,r){var n=r(3),o=r(43),i=r(55),s=n.spawnSync;function a(e,t,r){var s,a;return s=o(e,t,r),a=n.spawn(s.command,s.args,s.options),i.hookChildProcess(a,s),a}e.exports=a,e.exports.spawn=a,e.exports.sync=function(e,t,n){var a,c;if(!s)try{s=r(!function(){var e=new Error("Cannot find module 'spawn-sync'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){throw new Error("In order to use spawnSync on node 0.10 or older, you must install spawn-sync:\n\n npm install spawn-sync --save")}return a=o(e,t,n),(c=s(a.command,a.args,a.options)).error=c.error||i.verifyENOENTSync(c.status,a),c},e.exports._parse=o,e.exports._enoent=i},function(e,t,r){var n=r(15),o=r(50),i=r(18),s=r(51),a=r(52),c="win32"===process.platform,l=/\.(?:com|exe)$/i,u=parseInt(process.version.substr(1).split(".")[0],10)>=6||4===parseInt(process.version.substr(1).split(".")[0],10)&&parseInt(process.version.substr(1).split(".")[1],10)>=8;e.exports=function(e,t,r){var p;return t&&!Array.isArray(t)&&(r=t,t=null),p={command:e,args:t=t?t.slice(0):[],options:r=r||{},file:void 0,original:e},r.shell?function(e){var t;return u?e:(t=[e.command].concat(e.args).join(" "),c?(e.command="string"==typeof e.options.shell?e.options.shell:process.env.comspec||"cmd.exe",e.args=["/d","/s","/c",'"'+t+'"'],e.options.windowsVerbatimArguments=!0):("string"==typeof e.options.shell?e.command=e.options.shell:"android"===process.platform?e.command="/system/bin/sh":e.command="/bin/sh",e.args=["-c",t]),e)}(p):function(e){var t,r,u;return c?(e.file=n(e.command),e.file=e.file||n(e.command,!0),(t=e.file&&a(e.file))?(e.args.unshift(e.file),e.command=t,r=o||!l.test(n(t)||n(t,!0))):r=o||!l.test(e.file),r&&(u="echo"!==e.command,e.command=s(e.command),e.args=e.args.map(function(e){return i(e,u)}),e.args=["/d","/s","/c",'"'+e.command+(e.args.length?" "+e.args.join(" "):"")+'"'],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0),e):e}(p)}},function(e,t,r){var n;r(1);function o(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(function(r,n){o(e,t||{},function(e,t){e?n(e):r(t)})})}n(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}n="win32"===process.platform||global.TESTING_WINDOWS?r(45):r(46),e.exports=o,o.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},function(e,t,r){e.exports=i,i.sync=function(e,t){return o(n.statSync(e),e,t)};var n=r(1);function o(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n0)for(var n=0,o=arguments.length;n1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&othis.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)n.push(i.value);return n},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this}},function(e,t,r){var n;e.exports="win32"===process.platform&&0===(n=process.version.substr(1).split(".").map(function(e){return parseInt(e,10)}))[0]&&n[1]<12},function(e,t,r){var n=r(18);e.exports=function(e){return/^[a-z0-9_-]+$/i.test(e)?e:n(e,!0)}},function(e,t,r){var n=r(1),o=r(17),i=r(53),s=new o({max:50,maxAge:3e4});e.exports=function(e){var t,r,o;if(s.has(e))return s.get(e);t=new Buffer(150);try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return o=i(t.toString()),s.set(e,o),o}},function(e,t,r){var n=r(54);e.exports=function(e){var t=e.match(n);if(!t)return null;var r=t[0].replace(/#! ?/,"").split(" "),o=r[0].split("/").pop(),i=r[1];return"env"===o?i:o+(i?" "+i:"")}},function(e,t,r){e.exports=/^#!.*/},function(e,t,r){var n="win32"===process.platform,o=r(15),i=0===process.version.indexOf("v0.10.");function s(e,t){var r;return(r=new Error(t+" "+e+" ENOENT")).code=r.errno="ENOENT",r.syscall=t+" "+e,r}function a(e,t){return n&&1===e&&!t.file?s(t.original,"spawn"):null}e.exports.hookChildProcess=function(e,t){var r;n&&(r=e.emit,e.emit=function(n,o){var i;return"exit"===n&&(i=a(o,t))?r.call(e,"error",i):r.apply(e,arguments)})},e.exports.verifyENOENT=a,e.exports.verifyENOENTSync=function(e,t){return n&&1===e&&!t.file?s(t.original,"spawnSync"):i&&-1===e&&(t.file=n?t.file:o(t.original),!t.file)?s(t.original,"spawnSync"):null},e.exports.notFoundError=s},function(e,t,r){e.exports=function(e){var t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}},function(e,t,r){const n=r(0),o=r(58);e.exports=(e=>{let t;e=Object.assign({cwd:process.cwd(),path:process.env[o()]},e);let r=n.resolve(e.cwd);const i=[];for(;t!==r;)i.push(n.join(r,"node_modules/.bin")),t=r,r=n.resolve(r,"..");return i.push(n.dirname(process.execPath)),i.concat(e.path).join(n.delimiter)}),e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env),n=o({env:r});return t.path=r[n],r[n]=e.exports(t),r})},function(e,t,r){e.exports=(e=>{const t=(e=e||{}).env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).find(e=>"PATH"===e.toUpperCase())||"Path"})},function(e,t,r){var n=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};n.writable=function(e){return n(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},n.readable=function(e){return n(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},n.duplex=function(e){return n.writable(e)&&n.readable(e)},n.transform=function(e){return n.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},function(e,t,r){const n=r(61);function o(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));const r=(t=Object.assign({maxBuffer:1/0},t)).maxBuffer;let o,i;const s=new Promise((s,a)=>{const c=e=>{e&&(e.bufferedData=o.getBufferedValue()),a(e)};o=n(t),e.once("error",c),e.pipe(o),o.on("data",()=>{o.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),o.once("error",c),o.on("end",s),i=(()=>{e.unpipe&&e.unpipe(o)})});return s.then(i,i),s.then(()=>o.getBufferedValue())}e.exports=o,e.exports.buffer=((e,t)=>o(e,Object.assign({},t,{encoding:"buffer"}))),e.exports.array=((e,t)=>o(e,Object.assign({},t,{array:!0})))},function(e,t,r){const n=r(62).PassThrough;e.exports=(e=>{const t=(e=Object.assign({},e)).array;let r=e.encoding;const o="buffer"===r;let i=!1;t?i=!(r||o):r=r||"utf8",o&&(r=null);let s=0;const a=[],c=new n({objectMode:i});return r&&c.setEncoding(r),c.on("data",e=>{a.push(e),i?s=a.length:s+=e.length}),c.getBufferedValue=(()=>t?a:o?Buffer.concat(a,s):a.join("")),c.getBufferedLength=(()=>s),c})},function(e,t){e.exports=require("stream")},function(e,t,r){e.exports=((e,t)=>(t=t||(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))))},function(e,t,r){var n,o=r(10),i=r(65),s=r(19);function a(){u&&(u=!1,i.forEach(function(e){try{process.removeListener(e,l[e])}catch(e){}}),process.emit=d,process.reallyExit=f,n.count-=1)}function c(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))}"function"!=typeof s&&(s=s.EventEmitter),process.__signal_exit_emitter__?n=process.__signal_exit_emitter__:((n=process.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),e.exports=function(e,t){o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===u&&p();var r="exit";t&&t.alwaysLast&&(r="afterexit");return n.on(r,e),function(){n.removeListener(r,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}},e.exports.unload=a;var l={};i.forEach(function(e){l[e]=function(){process.listeners(e).length===n.count&&(a(),c("exit",null,e),c("afterexit",null,e),process.kill(process.pid,e))}}),e.exports.signals=function(){return i},e.exports.load=p;var u=!1;function p(){u||(u=!0,n.count+=1,i=i.filter(function(e){try{return process.on(e,l[e]),!0}catch(e){return!1}}),process.emit=m,process.reallyExit=h)}var f=process.reallyExit;function h(e){process.exitCode=e||0,c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),f.call(process,process.exitCode)}var d=process.emit;function m(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=d.apply(this,arguments);return c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),r}return d.apply(this,arguments)}},function(e,t){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},function(e,t,r){let n;try{if("function"!=typeof(n=process.binding("uv")).errname)throw new TypeError("uv.errname is not a function")}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e),n=null}function o(e,t){if(e)return e.errname(t);if(!(t<0))throw new Error("err >= 0");return`Unknown system error ${t}`}e.exports=(e=>o(n,e)),e.exports.__test__=o},function(e,t,r){const n=["stdin","stdout","stderr"];e.exports=(e=>{if(!e)return null;if(e.stdio&&(e=>n.some(t=>Boolean(e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof e.stdio)return e.stdio;const t=e.stdio||[];if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=[],o=Math.max(t.length,n.length);for(let i=0;i{if("ENOENT"===e.code)throw new Error("Couldn't find the required `xsel` binary. On Debian/Ubuntu you can install it with: sudo apt install xsel");throw e},s=n.join(t,"../fallbacks/linux/xsel");e.exports={copy:e=>o(s,["--clipboard","--input"],e).catch(()=>o("xsel",["--clipboard","--input"],e)).catch(i),paste:e=>o.stdout(s,["--clipboard","--output"],e).catch(()=>o.stdout("xsel",["--clipboard","--output"],e)).catch(i),copySync:e=>{try{return o.sync(s,["--clipboard","--input"],e)}catch(t){try{return o.sync("xsel",["--clipboard","--input"],e)}catch(e){i(e)}}},pasteSync:e=>{try{return o.sync(s,["--clipboard","--output"],e)}catch(t){try{return o.sync("xsel",["--clipboard","--output"],e)}catch(e){i(e)}}}}}).call(this,"/")},function(e,t,r){const n=r(6),o=Object.assign({},process.env,{LC_CTYPE:"UTF-8"});e.exports={copy:e=>n("pbcopy",Object.assign({},e,{env:o})),paste:e=>n.stdout("pbpaste",Object.assign({},e,{env:o})),copySync:e=>n.sync("pbcopy",Object.assign({},e,{env:o})),pasteSync:e=>n.sync("pbpaste",Object.assign({},e,{env:o}))}},function(e,t,r){(function(t){const n=r(0),o=r(6),i="x64"===r(71)()?n.join(t,"../fallbacks/windows/clipboard_x86_64.exe"):n.join(t,"../fallbacks/windows/clipboard_i686.exe");e.exports={copy:e=>o(i,["--copy"],e),paste:e=>o.stdout(i,["--paste"],e),copySync:e=>o.sync(i,["--copy"],e),pasteSync:e=>o.sync(i,["--paste"],e)}}).call(this,"/")},function(e,t,r){var n=r(3),o=r(1),i=r(0);e.exports=function(){if("x64"===process.arch)return"x64";if("darwin"===process.platform)return"x64";if("win32"===process.platform){var e=!1;try{e=!(!process.env.SYSTEMROOT||!o.statSync(process.env.SYSTEMROOT))}catch(e){}var t=e?process.env.SYSTEMROOT:"C:\\Windows",r=!1;try{r=!!o.statSync(i.join(t,"sysnative"))}catch(e){}return r?"x64":"x86"}return"linux"===process.platform&&"64\n"===n.execSync("getconf LONG_BIT",{encoding:"utf8"})?"x64":"x86"}},function(e,t,r){const n=r(7),o=r(73),i=r(0),s=r(77),a=r(8),c="N/A",l="darwin"===process.platform,u="linux"===process.platform,p=process.platform.startsWith("win");e.exports=Object.assign({},a,s,{getiOSSDKInfo:()=>l?a.run("xcodebuild -showsdks").then(e=>e.match(/[\w]+\s[\d|.]+/g)).then(a.uniq).then(e=>e.length?["iOS SDK",{Platforms:e}]:["iOS SDK","Not Found"]):Promise.resolve(["iOS SDK",c]),getAndroidSDKInfo:()=>a.run(process.env.ANDROID_HOME?"$ANDROID_HOME/tools/bin/sdkmanager --list":"sdkmanager --list").then(e=>!e&&l?a.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):e).then(e=>{const t=a.parseSDKManagerOutput(e);return t.buildTools.length||t.apiLevels.length||t.systemImages.length?Promise.resolve(["Android SDK",{"API Levels":t.apiLevels||"Not Found","Build Tools":t.buildTools||"Not Found","System Images":t.systemImages||"Not Found"}]):Promise.resolve(["Android SDK","Not Found"])}),getAndroidStudioInfo:()=>{let e;return l?e=a.run(a.generatePlistBuddyCommand(i.join("/","Applications","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])).then(e=>e.split("\n").join(" ")):u?e=Promise.all([a.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(a.findVersion),a.run("cat /opt/android-studio/build.txt")]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"}):p&&(e=Promise.all([a.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then(e=>e.replace(/(\r\n|\n|\r)/gm,"")),a.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then(e=>e.replace(/(\r\n|\n|\r)/gm,""))]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"})),e.then(e=>a.determineFound("Android Studio",e))},getAtomInfo:()=>(a.log("trace","getAtomInfo"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers.Atom),c]).then(e=>a.determineFound("Atom",e[0],e[1]))),getMySQLInfo:()=>(a.log("trace","getMySQLInfo"),Promise.all([a.run("mysql --version").then(e=>`${a.findVersion(e,null,1)}${e.includes("MariaDB")?" (MariaDB)":""}`),a.which("mysql")]).then(e=>a.determineFound("MySQL",e[0],e[1]))),getMongoDBInfo:()=>(a.log("trace","getMongoDBInfo"),Promise.all([a.run("mongo --version").then(a.findVersion),a.which("mongo")]).then(e=>a.determineFound("MongoDB",e[0],e[1]))),getSQLiteInfo:()=>(a.log("trace","getSQLiteInfo"),Promise.all([a.run("sqlite3 --version").then(a.findVersion),a.which("sqlite3")]).then(e=>a.determineFound("SQLite",e[0],e[1]))),getPostgreSQLInfo:()=>(a.log("trace","getPostgreSQLInfo"),Promise.all([a.run("postgres --version").then(a.findVersion),a.which("postgres")]).then(e=>a.determineFound("PostgreSQL",e[0],e[1]))),getCPUInfo:()=>{let e;a.log("trace","getCPUInfo");try{const t=n.cpus();e="("+t.length+") "+n.arch()+" "+t[0].model}catch(t){e="Unknown"}return Promise.all(["CPU",e])},getBashInfo:()=>(a.log("trace","getBashInfo"),Promise.all([a.run("bash --version").then(a.findVersion),a.which("bash")]).then(e=>a.determineFound("Bash",e[0],e[1]))),getPerlInfo:()=>(a.log("trace","getPerlInfo"),Promise.all([a.run("perl -v").then(a.findVersion),a.which("perl")]).then(e=>a.determineFound("Perl",e[0],e[1]))),getPHPInfo:()=>(a.log("trace","getPHPInfo"),Promise.all([a.run("php -v").then(a.findVersion),a.which("php")]).then(e=>a.determineFound("PHP",e[0],e[1]))),getParallelsInfo:()=>(a.log("trace","getParallelsInfo"),Promise.all([a.run("prlctl --version").then(a.findVersion),a.which("prlctl")]).then(e=>a.determineFound("Parallels",e[0],e[1]))),getDockerInfo:()=>(a.log("trace","getDockerInfo"),Promise.all([a.run("docker --version").then(a.findVersion),a.which("docker")]).then(e=>a.determineFound("Docker",e[0],e[1]))),getElixirInfo:()=>(a.log("trace","getElixirInfo"),Promise.all([a.run("elixir --version").then(e=>a.findVersion(e,/[Elixir]+\s([\d+.[\d+|.]+)/,1)),a.which("elixir")]).then(e=>Promise.resolve(a.determineFound("Elixir",e[0],e[1])))),getMemoryInfo:()=>(a.log("trace","getMemoryInfo"),Promise.all(["Memory",`${a.toReadableBytes(n.freemem())} / ${a.toReadableBytes(n.totalmem())}`])),getSublimeTextInfo:()=>(a.log("trace","getSublimeTextInfo"),Promise.all([a.run("subl --version").then(e=>a.findVersion(e,/\d+/)),a.which("subl")]).then(e=>""===e[0]&&l?(a.log("trace","getSublimeTextInfo using plist"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers["Sublime Text"]),c])):e).then(e=>a.determineFound("Sublime Text",e[0],e[1]))),getHomeBrewInfo:()=>{return a.log("trace","getHomeBrewInfo"),l?Promise.all(["Homebrew",a.run("brew --version").then(a.findVersion),a.which("brew")]):Promise.all(["Homebrew",c])},getGoInfo:()=>(a.log("trace","getGoInfo"),Promise.all([a.run("go version").then(a.findVersion),a.which("go")]).then(e=>a.determineFound("Go",e[0],e[1]))),getRubyInfo:()=>(a.log("trace","getRubyInfo"),Promise.all([a.run("ruby -v").then(a.findVersion),a.which("ruby")]).then(e=>a.determineFound("Ruby",e[0],e[1]))),getNodeInfo:()=>(a.log("trace","getNodeInfo"),Promise.all([a.which("node").then(e=>e?a.run(e+" -v"):Promise.resolve("")).then(e=>e.replace("v","")),a.which("node").then(a.condensePath)]).then(e=>a.determineFound("Node",e[0],e[1]))),getnpmInfo:()=>(a.log("trace","getnpmInfo"),Promise.all([a.run("npm -v"),a.which("npm").then(a.condensePath)]).then(e=>a.determineFound("npm",e[0],e[1]))),getShellInfo:()=>{if(a.log("trace","getShellInfo",process.env),l||u){const e=process.env.SHELL||a.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1");return Promise.all([a.run(`${e} --version`).then(a.findVersion),a.which(e)]).then(e=>a.determineFound("Shell",e[0]||"Unknown",e[1]))}return Promise.resolve(["Shell",c])},getOSInfo:()=>{let e;return a.log("trace","getOSInfo"),(e=l?a.run("sw_vers -productVersion "):u?a.run("cat /etc/os-release").then(e=>{const t=(e||"").match(/NAME="(.+)"/),r=(e||"").match(/VERSION="(.+)"/)||[];return`${t[1]} ${r[1]}`.trim()||""}):Promise.resolve()).then(e=>{let t=o(n.platform(),n.release());return e&&(t+=` ${e}`),["OS",t]})},getContainerInfo:()=>(a.log("trace","getContainerInfo"),u?Promise.all([a.fileExists("/.dockerenv"),a.readFile("/proc/self/cgroup")]).then(e=>(a.log("trace","getContainerInfoThen",e),Promise.resolve(["Container",e[0]||e[1]?"Yes":c]))).catch(e=>a.log("trace","getContainerInfoCatch",e)):Promise.resolve(["Container",c])),getWatchmanInfo:()=>(a.log("trace","getWatchmanInfo"),Promise.all([a.which("watchman").then(e=>e?a.run(e+" -v"):void 0),a.which("watchman")]).then(e=>a.determineFound("Watchman",e[0],e[1]))),getVSCodeInfo:()=>(a.log("trace","getVSCodeInfo"),Promise.all([a.run("code --version").then(a.findVersion),a.which("code")]).then(e=>a.determineFound("VSCode",e[0],e[1]))),getIntelliJInfo:()=>(a.log("trace","getIntelliJInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.IntelliJ).then(e=>a.determineFound("IntelliJ",e))),getPhpStormInfo:()=>(a.log("trace","getPhpStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.PhpStorm).then(e=>a.determineFound("PhpStorm",e))),getWebStormInfo:()=>(a.log("trace","getWebStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.WebStorm).then(e=>a.determineFound("WebStorm",e))),getVirtualBoxInfo:()=>(a.log("trace","getVirtualBoxInfo"),Promise.all([a.run("vboxmanage --version").then(a.findVersion),a.which("vboxmanage")]).then(e=>a.determineFound("VirtualBox",e[0],e[1]))),getVMwareFusionInfo:()=>(a.log("trace","getVMwareFusionInfo"),a.getDarwinApplicationVersion("com.vmware.fusion").then(e=>a.determineFound("VMWare Fusion",e,c))),getPythonInfo:()=>(a.log("trace","getPythonInfo"),Promise.all([a.run("python -V 2>&1").then(a.findVersion),a.run("which python")]).then(e=>a.determineFound("Python",e[0],e[1]))),getXcodeInfo:()=>(a.log("trace","getXcodeInfo"),l?Promise.all([a.which("xcodebuild").then(e=>a.run(e+" -version")).then(e=>`${a.findVersion(e)}/${e.split("Build version ")[1]}`),a.which("xcodebuild")]).then(e=>a.determineFound("Xcode",e[0],e[1])):Promise.resolve(["Xcode",c])),getYarnInfo:()=>(a.log("trace","getYarnInfo"),Promise.all([a.run("yarn -v"),a.which("yarn").then(a.condensePath)]).then(e=>a.determineFound("Yarn",e[0],e[1]))),getEdgeInfo:()=>{let e;return a.log("trace","getEdgeInfo"),(e=p&&"10"===n.release().split(".")[0]?a.run("powershell get-appxpackage Microsoft.MicrosoftEdge").then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Edge",e,c))},getInternetExplorerInfo:()=>{let e;if(a.log("trace","getInternetExplorerInfo"),p){const t=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");e=a.run(`wmic datafile where "name='${t}'" get Version`).then(a.findVersion)}else e=Promise.resolve(c);return e.then(e=>a.determineFound("Internet Explorer",e,c))},getChromeInfo:()=>{let e;return a.log("trace","getChromeInfo"),(e=u?a.run("google-chrome --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):l?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Chrome).then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Chrome",e,c))},getChromeCanaryInfo:()=>{return a.log("trace","getChromeCanaryInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Chrome Canary"]).then(e=>a.determineFound("Chrome Canary",e,c))},getFirefoxDeveloperEditionInfo:()=>{return a.log("trace","getFirefoxDeveloperEditionInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Developer Edition"]).then(e=>a.determineFound("Firefox Developer Edition",e,c))},getSafariTechnologyPreviewInfo:()=>{return a.log("trace","getSafariTechnologyPreviewInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Safari Technology Preview"]).then(e=>a.determineFound("Safari Technology Preview",e,c))},getSafariInfo:()=>{return a.log("trace","getSafariInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Safari).then(e=>a.determineFound("Safari",e,c))},getFirefoxInfo:()=>{let e;return a.log("trace","getFirefoxInfo"),(e=u?a.run("firefox --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):l?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Firefox):Promise.resolve(c)).then(e=>a.determineFound("Firefox",e,c))},getFirefoxNightlyInfo:()=>{let e;return a.log("trace","getFirefoxNightlyInfo"),(e=u?a.run("firefox-trunk --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):l?a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve(c)).then(e=>a.determineFound("Firefox Nightly",e,c))},getGitInfo:()=>(a.log("trace","getGitInfo"),l||u?Promise.all([a.run("git --version").then(a.findVersion),a.run("which git")]).then(e=>a.determineFound("Git",e[0],e[1])):Promise.resolve(["Git",c])),getMakeInfo:()=>(a.log("trace","getMakeInfo"),l||u?Promise.all([a.run("make --version").then(a.findVersion),a.run("which make")]).then(e=>a.determineFound("Make",e[0],e[1])):Promise.resolve(["Make",c])),getCMakeInfo:()=>(a.log("trace","getCMakeInfo"),l||u?Promise.all([a.run("cmake --version").then(a.findVersion),a.run("which cmake")]).then(e=>a.determineFound("CMake",e[0],e[1])):Promise.resolve(["CMake",c])),getGCCInfo:()=>(a.log("trace","getGCCInfo"),l||u?Promise.all([a.run("gcc -v 2>&1").then(a.findVersion),a.run("which gcc")]).then(e=>a.determineFound("GCC",e[0],e[1])):Promise.resolve(["GCC",c])),getNanoInfo:()=>(a.log("trace","getNanoInfo"),l||u?Promise.all([a.run("nano --version").then(a.findVersion),a.run("which nano")]).then(e=>a.determineFound("Nano",e[0],e[1])):Promise.resolve(["Nano",c])),getEmacsInfo:()=>(a.log("trace","getEmacsInfo"),l||u?Promise.all([a.run("emacs --version").then(a.findVersion),a.run("which emacs")]).then(e=>a.determineFound("Emacs",e[0],e[1])):Promise.resolve(["Emacs",c])),getVimInfo:()=>(a.log("trace","getVimInfo"),l||u?Promise.all([a.run("vim --version").then(a.findVersion),a.run("which vim")]).then(e=>a.determineFound("Vim",e[0],e[1])):Promise.resolve(["Vim",c])),getNvimInfo:()=>(a.log("trace","getNvimInfo"),l||u?Promise.all([a.run("nvim --version").then(a.findVersion),a.run("which nvim")]).then(e=>a.determineFound("Nvim",e[0],e[1])):Promise.resolve(["Vim",c])),getRustInfo:()=>(a.log("trace","getRustInfo"),l||u?Promise.all([a.run("rustup --version").then(a.findVersion),a.run("which rustup")]).then(e=>a.determineFound("Rust",e[0],e[1])):Promise.resolve(["Rust",c])),getScalaInfo:()=>(a.log("trace","getScalaInfo"),l||u?Promise.all([a.run("scalac -version").then(a.findVersion),a.run("which scalac")]).then(e=>a.determineFound("Scala",e[0],e[1])):Promise.resolve(["Scala",c])),getJavaInfo:()=>(a.log("trace","getJavaInfo"),l||u?Promise.all([a.run("javac -version 2>&1").then(a.findVersion),a.run("which javac")]).then(e=>a.determineFound("Java",e[0],e[1])):Promise.resolve(["Java",c])),getApacheInfo:()=>(a.log("trace","getApacheInfo"),l||u?Promise.all([a.run("apachectl -v").then(a.findVersion),a.run("which apachectl")]).then(e=>a.determineFound("Apache",e[0],e[1])):Promise.resolve(["Apache",c])),getNginxInfo:()=>(a.log("trace","getNginxInfo"),l||u?Promise.all([a.run("nginx -v 2>&1").then(a.findVersion),a.run("which nginx")]).then(e=>a.determineFound("Nginx",e[0],e[1])):Promise.resolve(["Nginx",c]))})},function(e,t,r){var n=r(7),o=r(74),i=r(75);e.exports=function(e,t){if(!e&&t)throw new Error("You can't specify a `release` without specifying `platform`");var r;return e=e||n.platform(),t=t||n.release(),"darwin"===e?(Number(t.split(".")[0])>15?"macOS":"OS X")+((r=o(t).name)?" "+r:""):"linux"===e?"Linux"+((r=t.replace(/^(\d+\.\d+).*/,"$1"))?" "+r:""):"win32"===e?"Windows"+((r=i(t))?" "+r:""):e}},function(e,t,r){var n=r(7),o={17:"High Sierra",16:"Sierra",15:"El Capitan",14:"Yosemite",13:"Mavericks",12:"Mountain Lion",11:"Lion",10:"Snow Leopard",9:"Leopard",8:"Tiger",7:"Panther",6:"Jaguar",5:"Puma"};e.exports=function(e){return e=(e||n.release()).split(".")[0],{name:o[e],version:"10."+(Number(e)-4)}}},function(e,t,r){var n=r(7),o=r(76),i={"10.0":"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.1:"XP","5.0":"2000",4.9:"ME",4.1:"98","4.0":"95"};e.exports=function(e){var t=/\d+\.\d+/,s=t.exec(e||n.release());if(!e&&"win32"===process.platform&&o.satisfies(process.version,">=0.12.0 <3.1.0"))try{s=t.exec(String(r(3).execSync("ver.exe",{timeout:2e3})))}catch(e){}if(e&&!s)throw new Error("`release` argument doesn't match `n.n`");return i[(s||[])[0]]}},function(e,t){var r;t=e.exports=J,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],s=t.src=[],a=0,c=a++;s[c]="0|[1-9]\\d*";var l=a++;s[l]="[0-9]+";var u=a++;s[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=a++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var f=a++;s[f]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var h=a++;s[h]="(?:"+s[c]+"|"+s[u]+")";var d=a++;s[d]="(?:"+s[l]+"|"+s[u]+")";var m=a++;s[m]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var g=a++;s[g]="(?:-?("+s[d]+"(?:\\."+s[d]+")*))";var y=a++;s[y]="[0-9A-Za-z-]+";var v=a++;s[v]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var b=a++,w="v?"+s[p]+s[m]+"?"+s[v]+"?";s[b]="^"+w+"$";var x="[v=\\s]*"+s[f]+s[g]+"?"+s[v]+"?",S=a++;s[S]="^"+x+"$";var E=a++;s[E]="((?:<|>)?=?)";var O=a++;s[O]=s[l]+"|x|X|\\*";var j=a++;s[j]=s[c]+"|x|X|\\*";var P=a++;s[P]="[v=\\s]*("+s[j]+")(?:\\.("+s[j]+")(?:\\.("+s[j]+")(?:"+s[m]+")?"+s[v]+"?)?)?";var I=a++;s[I]="[v=\\s]*("+s[O]+")(?:\\.("+s[O]+")(?:\\.("+s[O]+")(?:"+s[g]+")?"+s[v]+"?)?)?";var T=a++;s[T]="^"+s[E]+"\\s*"+s[P]+"$";var k=a++;s[k]="^"+s[E]+"\\s*"+s[I]+"$";var A=a++;s[A]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var _=a++;s[_]="(?:~>?)";var C=a++;s[C]="(\\s*)"+s[_]+"\\s+",i[C]=new RegExp(s[C],"g");var N=a++;s[N]="^"+s[_]+s[P]+"$";var F=a++;s[F]="^"+s[_]+s[I]+"$";var D=a++;s[D]="(?:\\^)";var $=a++;s[$]="(\\s*)"+s[D]+"\\s+",i[$]=new RegExp(s[$],"g");var M=a++;s[M]="^"+s[D]+s[P]+"$";var B=a++;s[B]="^"+s[D]+s[I]+"$";var V=a++;s[V]="^"+s[E]+"\\s*("+x+")$|^$";var R=a++;s[R]="^"+s[E]+"\\s*("+w+")$|^$";var G=a++;s[G]="(\\s*)"+s[E]+"\\s*("+x+"|"+s[P]+")",i[G]=new RegExp(s[G],"g");var L=a++;s[L]="^\\s*("+s[P]+")\\s+-\\s+("+s[P]+")\\s*$";var U=a++;s[U]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var K=a++;s[K]="(<|>)?=?\\s*\\*";for(var q=0;qn)return null;if(!(t?i[S]:i[b]).test(e))return null;try{return new J(e,t)}catch(e){return null}}function J(e,t){if(e instanceof J){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof J))return new J(e,t);r("SemVer",e,t),this.loose=t;var s=e.trim().match(t?i[S]:i[b]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new J(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var r=W(e),n=W(t);if(r.prerelease.length||n.prerelease.length){for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return"pre"+o;return"prerelease"}for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return o},t.compareIdentifiers=Y;var H=/^[0-9]+$/;function Y(e,t){var r=H.test(e),n=H.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function z(e,t,r){return new J(e,r).compare(new J(t,r))}function Q(e,t,r){return z(e,t,r)>0}function X(e,t,r){return z(e,t,r)<0}function Z(e,t,r){return 0===z(e,t,r)}function ee(e,t,r){return 0!==z(e,t,r)}function te(e,t,r){return z(e,t,r)>=0}function re(e,t,r){return z(e,t,r)<=0}function ne(e,t,r,n){var o;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e===r;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e!==r;break;case"":case"=":case"==":o=Z(e,r,n);break;case"!=":o=ee(e,r,n);break;case">":o=Q(e,r,n);break;case">=":o=te(e,r,n);break;case"<":o=X(e,r,n);break;case"<=":o=re(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return o}function oe(e,t){if(e instanceof oe){if(e.loose===t)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.loose=t,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new J(e,t).major},t.minor=function(e,t){return new J(e,t).minor},t.patch=function(e,t){return new J(e,t).patch},t.compare=z,t.compareLoose=function(e,t){return z(e,t,!0)},t.rcompare=function(e,t,r){return z(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=Q,t.lt=X,t.eq=Z,t.neq=ee,t.gte=te,t.lte=re,t.cmp=ne,t.Comparator=oe;var ie={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ae(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,r,n,o,i,s,a,c,l,u,p,f){return((t=ae(r)?"":ae(n)?">="+r+".0.0":ae(o)?">="+r+"."+n+".0":">="+t)+" "+(a=ae(c)?"":ae(l)?"<"+(+c+1)+".0.0":ae(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+a)).trim()}function le(e,t){for(var n=0;n0){var o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,r){try{t=new se(t,r)}catch(e){return!1}return t.test(e)}function pe(e,t,r,n){var o,i,s,a,c;switch(e=new J(e,n),t=new se(t,n),r){case">":o=Q,i=re,s=X,a=">",c=">=";break;case"<":o=X,i=te,s=Q,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,n))return!1;for(var l=0;l=0.0.0")),u=u||e,p=p||e,o(e.semver,u.semver,n)?u=e:s(e.semver,p.semver,n)&&(p=e)}),u.operator===a||u.operator===c)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.loose?i[V]:i[R],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new J(r[2],this.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return r("Comparator.test",e,this.loose),this.semver===ie||("string"==typeof e&&(e=new J(e,this.loose)),ne(e,this.operator,this.semver,this.loose))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new se(e.value,t),ue(this.value,r,t);if(""===e.operator)return r=new se(this.value,t),ue(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||c},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),r("range",e,t);var n=t?i[U]:i[L];e=e.replace(n,ce),r("hyphen replace",e),e=e.replace(i[G],"$1$2$3"),r("comparator trim",e,i[G]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[$],"$1^")).split(/\s+/).join(" ");var o=t?i[V]:i[R],s=e.split(" ").map(function(e){return function(e,t){return r("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t?i[B]:i[M];return e.replace(n,function(t,n,o,i,s){var a;return r("caret",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),"-"!==s.charAt(0)&&(s="-"+s),a="0"===n?"0"===o?">="+n+"."+o+"."+i+s+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t?i[F]:i[N];return e.replace(n,function(t,n,o,i,s){var a;return r("tilde",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(r("replaceTilde pr",s),"-"!==s.charAt(0)&&(s="-"+s),a=">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",a),a})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t?i[k]:i[T];return e.replace(n,function(t,n,o,i,s,a){r("xRange",e,t,n,o,i,s,a);var c=ae(o),l=c||ae(i),u=l||ae(s),p=u;return"="===n&&p&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&p?(l&&(i=0),u&&(s=0),">"===n?(n=">=",l?(o=+o+1,i=0,s=0):u&&(i=+i+1,s=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),t=n+o+"."+i+"."+s):l?t=">="+o+".0.0 <"+(+o+1)+".0.0":u&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(i[K],"")}(e,t),r("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(s=s.filter(function(e){return!!e.match(o)})),s=s.map(function(e){return new oe(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new J(e,this.loose));for(var t=0;t",r)},t.outside=pe,t.prerelease=function(e,t){var r=W(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new se(e,r),t=new se(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof J)return e;if("string"!=typeof e)return null;var t=e.match(i[A]);return null==t?null:W((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,r){const n=r(11),o=r(0),i=r(8),s=e=>{const t=e.split("node_modules/"),r=t[t.length-1];return"@"===r.charAt(0)?[r.split("/")[0],r.split("/")[1]].join("/"):r.split("/")[0]};e.exports={getnpmPackages:function(e,t){i.log("trace","getnpmPackages"),t||(t={});let r=null,n=null;return"string"==typeof e&&(e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(",")),Promise.all(["npmPackages",i.getPackageJsonByPath("package.json").then(e=>Object.assign({},(e||{}).devDependencies||{},(e||{}).dependencies||{})).then(e=>(n=e,t.fullTree||t.duplicates||r?i.getAllPackageJsonPaths(r):Promise.resolve(Object.keys(e||[]).map(e=>o.join("node_modules",e,"package.json"))))).then(o=>!r&&"boolean"!=typeof e||t.fullTree?Array.isArray(e)?Promise.resolve((o||[]).filter(t=>e.includes(s(t)))):Promise.resolve(o):Promise.resolve((o||[]).filter(e=>Object.keys(n||[]).includes(s(e))))).then(e=>Promise.all([e,Promise.all(e.map(e=>i.getPackageJsonByPath(e)))])).then(e=>{const r=e[0];return e[1].reduce((e,o,s)=>o&&o.name?(e[o.name]||(e[o.name]={}),t.duplicates&&e[o.name].installed&&e[o.name].installed!==o.version&&i.uniq(e[o.name].duplicates=(e[o.name].duplicates||[]).concat(o.version)),1===(r[s].match(/node_modules/g)||[]).length&&(e[o.name].installed=o.version),n[o.name]&&(e[o.name].wanted=n[o.name]),e):e,{})}).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r)).then(e=>i.sortObject(e))])},getnpmGlobalPackages:function(e,t){i.log("trace","getnpmGlobalPackages",e);let r=null;return"string"==typeof e?e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(","):Array.isArray(e)||(e=!0),Promise.all(["npmGlobalPackages",i.run("npm get prefix --global").then(e=>new Promise((t,i)=>n(o.join(e,"lib","node_modules",r||"{*,@*/*}","package.json"),(e,r)=>{e||t(r),i(e)}))).then(t=>Promise.all(t.filter(t=>"boolean"==typeof e||null!==r||e.includes(s(t))).map(e=>i.getPackageJsonByFullPath(e)))).then(e=>e.reduce((e,t)=>t?Object.assign(e,{[t.name]:t.version}):e,{})).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r))])}}},function(e,t,r){var n=r(0),o="win32"===process.platform,i=r(1),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}n.normalize;if(o)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(o)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,a,u,p=e,f={},h={};function d(){var t=l.exec(e);r=t[0].length,s=t[0],a=t[0],u="",o&&!h[a]&&(i.lstatSync(a),h[a]=!0)}for(d();r=e.length)return t&&(t[h]=e),r(null,e);c.lastIndex=s;var n=c.exec(e);return f=u,u+=n[0],p=f+n[1],s=c.lastIndex,m[p]||t&&t[p]===p?process.nextTick(y):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):i.lstat(p,v)}function v(e,n){if(e)return r(e);if(!n.isSymbolicLink())return m[p]=!0,t&&(t[p]=p),process.nextTick(y);if(!o){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(d.hasOwnProperty(s))return b(null,d[s],p)}i.stat(p,function(e){if(e)return r(e);i.readlink(p,function(e,t){o||(d[s]=t),b(e,t)})})}function b(e,o,i){if(e)return r(e);var s=n.resolve(f,o);t&&(t[i]=s),w(s)}function w(t){e=n.resolve(t,e.slice(s)),g()}g()}},function(e,t,r){var n=r(80),o=r(81);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var i=[];var s=o("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=c||l;var g=s.body.indexOf(",")>=0;if(!p&&!g)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];var y;if(p)y=s.body.split(/\.\./);else if(1===(y=function e(t){if(!t)return[""];var r=[];var n=o("{","}",t);if(!n)return t.split(",");var i=n.pre;var s=n.body;var a=n.post;var c=i.split(",");c[c.length-1]+="{"+s+"}";var l=e(a);a.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l));r.push.apply(r,c);return r}(s.body)).length&&1===(y=e(y[0],!1).map(f)).length){var v=s.post.length?e(s.post,!1):[""];return v.map(function(e){return s.pre+y[0]+e})}var b=s.pre;var v=s.post.length?e(s.post,!1):[""];var w;if(p){var x=u(y[0]),S=u(y[1]),E=Math.max(y[0].length,y[1].length),O=3==y.length?Math.abs(u(y[2])):1,j=d,P=S0){var _=new Array(A+1).join("0");k=T<0?"-"+_+k.slice(1):_+k}}w.push(k)}}else w=n(y,function(t){return e(t,!1)});for(var C=0;C=t}},function(e,t){e.exports=function(e,t){for(var n=[],o=0;o=0&&l>0){for(n=[],i=r.length;u>=0&&!a;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?a=[n.pop(),l]:((o=n.pop())=0?c:l;n.length&&(a=[i,s])}return a}e.exports=n,n.range=i},function(e,t,r){try{var n=r(4);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(83)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){e.exports=d,d.GlobSync=m;var n=r(1),o=r(20),i=r(12),s=(i.Minimatch,r(11).Glob,r(4),r(0)),a=r(10),c=r(13),l=r(21),u=(l.alphasort,l.alphasorti,l.setopts),p=l.ownProp,f=l.childrenIgnored,h=l.isIgnored;function d(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new m(e,t).found}function m(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof m))return new m(e,t);if(u(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||"DIR"===o)return o;if(r&&"FILE"===o)return!1}var i=this.statCache[t];if(!i){var s;try{s=n.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=n.statSync(t)}catch(e){i=s}else i=s}this.statCache[t]=i;o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,(!r||"FILE"!==o)&&o},m.prototype._mark=function(e){return l.mark(this,e)},m.prototype._makeAbs=function(e){return l.makeAbs(this,e)}},function(e,t,r){var n=r(22),o=Object.create(null),i=r(23);e.exports=n(function(e,t){return o[e]?(o[e].push(t),null):(o[e]=[t],function(e){return i(function t(){var r=o[e],n=r.length,i=function(e){for(var t=e.length,r=[],n=0;nn?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete o[e]}})}(e))})},function(e,t){e.exports={androidSystemImages:/system-images;([\S \t]+)/g,androidAPILevels:/platforms;android-(\d+)[\S\s]/g,androidBuildTools:/build-tools;([\d|.]+)[\S\s]/g}},function(e,t,r){const n=r(88),o=r(8);function i(e,t){return o.log("trace","clean",e),Object.keys(e).reduce((r,n)=>!t.showNotFound&&"Not Found"===e[n]||"N/A"===e[n]||void 0===e[n]||0===Object.keys(e[n]).length?r:o.isObject(e[n])?Object.values(e[n]).every(e=>"N/A"===e||!t.showNotFound&&"Not Found"===e)?r:Object.assign(r,{[n]:i(e[n],t)}):Object.assign(r,{[n]:e[n]}),{})}function s(e,t){o.log("trace","formatHeaders"),t||(t={type:"underline"});const r={underline:["",""]};return e.slice().split("\n").map(e=>{if(":"===e.slice("-1")){const n=e.match(/^[\s]*/g)[0];return`${n}${r[t.type][0]}${e.slice(n.length)}${r[t.type][1]}`}return e}).join("\n")}function a(e){return o.log("trace","formatPackages"),e.npmPackages?Object.assign(e,{npmPackages:Object.entries(e.npmPackages||{}).reduce((e,t)=>{const r=t[0],n=t[1];if("Not Found"===n)return Object.assign(e,{[r]:n});const o=n.wanted?`${n.wanted} =>`:"",i=Array.isArray(n.installed)?n.installed.join(", "):n.installed,s=n.duplicates?`(${n.duplicates.join(", ")})`:"";return Object.assign(e,{[r]:`${o} ${i} ${s}`})},{})}):e}function c(e,t,r){return r||(r={emptyMessage:"None"}),Array.isArray(t)&&(t=t.length>0?t.join(", "):r.emptyMessage),{[e]:t}}function l(e){return o.log("trace","serializeArrays"),function e(t,r){return Object.entries(t).reduce((t,n)=>{const i=n[0],s=n[1];return o.isObject(s)?Object.assign(t,{[i]:e(s,r)}):Object.assign(t,r(i,s))},{})}(e,c)}function u(e){return o.log("trace","serializeVersionsAndPaths"),Object.entries(e).reduce((e,t)=>Object.assign(e,{[t[0]]:Object.entries(t[1]).reduce((e,t)=>{const r=t[0],n=t[1];return n.version?Object.assign(e,{[r]:[n.version,n.path].filter(Boolean).join(" - ")}):Object.assign(e,{[r]:n})},{})},{}),{})}function p(e){return n(e,{indent:" ",prefix:"\n",postfix:"\n"})}function f(e){return e.slice().split("\n").map(e=>{if(""!==e){const t=":"===e.slice("-1"),r=e.search(/\S|$/);return t?`${"#".repeat(r/2+1)} `+e.slice(r):" - "+e.slice(r)}return""}).join("\n")}function h(e,t){return t||(t={indent:" "}),JSON.stringify(e,null,t.indent)}e.exports={json:function(e,t){return o.log("trace","formatToJson"),t||(t={}),e=o.pipe([()=>i(e,t),t.title?e=>({[t.title]:e}):o.noop,h])(e),e=t.console?`\n${e}\n`:e},markdown:function(e,t){return o.log("trace","formatToMarkdown"),o.pipe([()=>i(e,t),a,l,u,p,f,t.title?e=>`\n# ${t.title}${e}`:o.noop])(e,t)},yaml:function(e,t){return o.log("trace","formatToYaml",t),o.pipe([()=>i(e,t),a,l,u,t.title?e=>({[t.title]:e}):o.noop,p,t.console?s:o.noop])(e,t)}}},function(e,t,r){var n=r(89),o=r(90),i=r(94),s=["object","array"];e.exports=function(e,t){var r=o(t),a=r.colors,c=r.prefix,l=r.postfix,u=r.dateToString,p=r.errorToString,f=r.indent;function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===Object.keys(e).length)return" {}";var o="\n",a=i(t,f);return Object.keys(e).forEach(function(c){var l=e[c],u=n(l),p=i(r," "),f=-1!==s.indexOf(u)?"":" ",h=m(u,l,t+1,r);o+=`${p}${a}${c}:${f}${h}\n`}),o.substring(0,o.length-1)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return" []";var o="\n",s=i(t,f);return e.forEach(function(e){var a=n(e),c=i(r," "),l=m(a,e,t,r+1).toString().trimLeft();o+=`${c}${s}- ${l}\n`}),o.substring(0,o.length-1)}function m(e,t,r,n){switch(e){case"array":return d(t,r,n);case"object":return h(t,r,n);case"string":return a.string(t);case"symbol":return a.symbol(t.toString());case"number":return a.number(t);case"boolean":return a.boolean(t);case"null":return a.null("null");case"undefined":return a.undefined("undefined");case"date":return a.date(u(t));case"error":return a.error(p(t));default:return t&&t.toString?t.toString():Object.prototype.toString.call(t)}}var g="";return"object"===n(e)&&Object.keys(e).length>0?g=h(e):"array"===n(e)&&e.length>0&&(g=d(e)),0===g.length?"":`${c}${g.slice(1)}${l}`}},function(e,t,r){e.exports=function(e){return Array.isArray(e)?"array":e instanceof Date?"date":e instanceof Error?"error":null===e?"null":"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)?"object":typeof e}},function(e,t,r){var n=r(91),o=r(92),i=r(93),s=" ",a="\n",c="";function l(e,t){return void 0===e?t:e}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{indent:l(e.indent,s),prefix:l(e.prefix,a),postfix:l(e.postfix,c),errorToString:e.errorToString||n,dateToString:e.dateToString||o,colors:Object.assign({},i,e.colors)}}},function(e,t,r){e.exports=function(e){return Error.prototype.toString.call(e)}},function(e,t,r){e.exports=function(e){return`new Date(${Date.prototype.toISOString.call(e)})`}},function(e,t,r){function n(e){return e}e.exports={date:n,error:n,symbol:n,string:n,number:n,boolean:n,null:n,undefined:n}},function(e,t,r){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r="",n=0;n0&&!n.call(e,0))for(var m=0;m0)for(var g=0;g=0&&"[object Function]"===n.call(e.callee)),r}},function(e,t){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==n.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var s=0;s1&&(t===String?c="string":t===Number&&(c="number")),n&&(Symbol.toPrimitive?r=function(e,t){var r=e[t];if(null!==r&&void 0!==r){if(!i(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):a(e)&&(r=Symbol.prototype.valueOf)),void 0!==r){var l=r.call(e,c);if(o(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===c&&(s(e)||a(e))&&(c="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,s,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(n(t)||0===t||!o(t))return 0;var r=i(t)*Math.floor(Math.abs(t));return s(r,65536)},ToString:function(e){return String(e)},ToObject:function(e){return this.CheckObjectCoercible(e),Object(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new TypeError(t||"Cannot call method on "+e);return e},IsCallable:a,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:n(e)&&n(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(l(e,r)&&!t[r])return!1;var n=l(e,"[[Value]]"),o=l(e,"[[Get]]")||l(e,"[[Set]]");if(n&&o)throw new TypeError("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!l(e,"[[Get]]")&&!l(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!l(e,"[[Value]]")&&!l(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new TypeError("ToPropertyDescriptor requires an object");var t={};if(l(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),l(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),l(e,"value")&&(t["[[Value]]"]=e.value),l(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),l(e,"get")){var r=e.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(l(e,"set")){var n=e.set;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("setter must be a function");t["[[Set]]"]=n}if((l(t,"[[Get]]")||l(t,"[[Set]]"))&&(l(t,"[[Value]]")||l(t,"[[Writable]]")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=u},function(e,t,r){var n=Object.prototype.toString,o=r(26),i=r(14),s=function(e,t){var r=t||("[object Date]"===n.call(e)?String:Number);if(r===String||r===Number){var s,a,c=r===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a-1?(console.log("\n ,,', ,, ,,,,,, ,',,\n ,,, ,,, ,,,\n ,, ,,,,, ,,,,,, ,,, ,, ,, .,,,,,, ,,,,,,, ,,,,, ,,\n ,, ,, ,, ,,, ,,, ,, ,,, ,, ,,, ,,, ,, ,,, ,,, ,,\n ,,, ,, .,, ,,, ,, ,,, ,, ,, ,,, ,, ,, ,, ,, ,,,\n ,, ,,,,,,,,,, ,,, ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,,\n ,, ,,, ,,, ,, ,,,,, ,, ,,, ,, ,, ,,, ,,, ,,\n ,, ,,,,,,, ,,, ,, ,,, ,, ,,, ,, ,, ,,,,,,, ,,\n ,,, ,,,\n ,,,' ',,,\n\n VERSION: 5.12.0\n\n USAGE:\n\n `envinfo` || `npx envinfo`\n\n OPTIONS:\n\n --system Print general system info such as OS, CPU, Memory and Shell\n --browsers Get version numbers of installed web browsers\n --SDKs Get platforms, build tools and SDKs of iOS and Android\n --IDEs Get version numbers of installed IDEs\n --languages Get version numbers of installed languages such as Java, Python, PHP, etc\n --binaries Get version numbers of node, npm, watchman, etc\n --npmPackages Get version numbers of locally installed npm packages - glob, string, or comma delimited list\n --npmGlobalPackages Get version numbers of globally installed npm packages\n\n --duplicates Mark duplicate npm packages inside parentheses eg. (2.1.4)\n --fullTree Traverse entire node_modules dependency tree, not just top level\n\n --markdown Print output in markdown format\n --json Print output in JSON format\n --console Print to console (defaults to on for CLI usage, off for programmatic usage)\n --clipboard Copy output to your system clipboard\n --showNotFound Don't filter out values marked 'Not Found'\n --title Give your report a top level title ie 'Environment Report'\n "),process.exit(0)):(o.version||o.v||o._.indexOf("version")>-1)&&(console.log("5.12.0"),process.exit(0)),n.cli(o)},function(e,t){function r(e){return"number"==typeof e||(!!/^0x[0-9a-f]+$/i.test(e)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}e.exports=function(e,t){t||(t={});var n={bools:{},strings:{},unknownFn:null};"function"==typeof t.unknown&&(n.unknownFn=t.unknown),"boolean"==typeof t.boolean&&t.boolean?n.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(e){n.bools[e]=!0});var o={};Object.keys(t.alias||{}).forEach(function(e){o[e]=[].concat(t.alias[e]),o[e].forEach(function(t){o[t]=[e].concat(o[e].filter(function(e){return t!==e}))})}),[].concat(t.string).filter(Boolean).forEach(function(e){n.strings[e]=!0,o[e]&&(n.strings[o[e]]=!0)});var i=t.default||{},s={_:[]};Object.keys(n.bools).forEach(function(e){c(e,void 0!==i[e]&&i[e])});var a=[];function c(e,t,i){if(!i||!n.unknownFn||function(e,t){return n.allBools&&/^--[^=]+$/.test(t)||n.strings[e]||n.bools[e]||o[e]}(e,i)||!1!==n.unknownFn(i)){var a=!n.strings[e]&&r(t)?Number(t):t;l(s,e.split("."),a),(o[e]||[]).forEach(function(e){l(s,e.split("."),a)})}}function l(e,t,r){var o=e;t.slice(0,-1).forEach(function(e){void 0===o[e]&&(o[e]={}),o=o[e]});var i=t[t.length-1];void 0===o[i]||n.bools[i]||"boolean"==typeof o[i]?o[i]=r:Array.isArray(o[i])?o[i].push(r):o[i]=[o[i],r]}function u(e){return o[e].some(function(e){return n.bools[e]})}-1!==e.indexOf("--")&&(a=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var p=0;p2?arguments[2]:{},i=n(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;snew Promise(t=>{i.exec(e,{stdio:[0,"pipe","ignore"]},(e,r)=>{t((e?"":r.toString()||"").trim())})}),u=function(e){const t=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===e&&console.log(e,JSON.stringify(t))},p=e=>new Promise(t=>{o.stat(e,r=>t(r?null:e))}),f=e=>new Promise(t=>{e||t(null),o.readFile(e,"utf8",(e,r)=>t(r||null))}),h=e=>p(e).then(f).then(e=>e?JSON.parse(e):null),d=/\d+\.[\d+|.]+/g,m=e=>{u("trace","findDarwinApplication",e);const t=`mdfind "kMDItemCFBundleIdentifier=='${e}'"`;return u("trace",t),l(t).then(e=>e.replace(/(\s)/g,"\\ "))},y=(e,t)=>{var r=(t||["CFBundleShortVersionString"]).map(function(e){return"-c Print:"+e});return["/usr/libexec/PlistBuddy"].concat(r).concat([e]).join(" ")},g=(e,t)=>{const r=[];let n=null;for(;null!==(n=e.exec(t));)r.push(n);return r};e.exports={run:l,log:u,fileExists:p,readFile:f,requireJson:h,versionRegex:d,findDarwinApplication:m,generatePlistBuddyCommand:y,matchAll:g,parseSDKManagerOutput:e=>{const t=e.split("Available")[0];return{apiLevels:g(c.androidAPILevels,t).map(e=>e[1]),buildTools:g(c.androidBuildTools,t).map(e=>e[1]),systemImages:g(c.androidSystemImages,t).map(e=>e[1].split("|").map(e=>e.trim())).map(e=>e[0].split(";")[0]+" | "+e[2].split(" System Image")[0])}},isObject:e=>"object"==typeof e&&!Array.isArray(e),noop:e=>e,pipe:e=>t=>e.reduce((e,t)=>t(e),t),browserBundleIdentifiers:{Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:e=>(i.execSync(e,{stdio:[0,"pipe","ignore"]}).toString()||"").trim(),which:e=>new Promise(t=>a(e,(e,r)=>t(r))),getDarwinApplicationVersion:e=>{var t;return u("trace","getDarwinApplicationVersion",e),t="darwin"!==process.platform?"N/A":m(e).then(e=>l(y(n.join(e,"Contents","Info.plist"),["CFBundleShortVersionString"]))),Promise.resolve(t)},uniq:e=>Array.from(new Set(e)),toReadableBytes:e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return e?(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][t]:"0 Bytes"},omit:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)<0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),pick:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)>=0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),getPackageJsonByName:e=>h(n.join(process.cwd(),"node_modules",e,"package.json")),getPackageJsonByPath:e=>h(n.join(process.cwd(),e)),getPackageJsonByFullPath:e=>(u("trace","getPackageJsonByFullPath",e),h(e)),getAllPackageJsonPaths:e=>(u("trace","getAllPackageJsonPaths",e),new Promise(t=>{const r=(e,r)=>t(r||[]);return s(e?n.join("node_modules",e,"package.json"):n.join("node_modules","**","package.json"),r)})),sortObject:e=>Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}),findVersion:(e,t,r)=>{const n=r||0,o=t||d,i=e.match(o);return i?i[n]:e},condensePath:e=>(e||"").replace(process.env.HOME,"~"),determineFound:(e,t,r)=>(u("trace","determineFound",e,t,r),"N/A"===t||"N/A"===t&&"N/A"===r?Promise.resolve([e,"N/A"]):t?r?Promise.resolve([e,t,r]):Promise.resolve([e,t]):Promise.resolve([e,"Not Found"]))}},function(e,t,r){e.exports=b;var n=r(1),o=r(13),i=r(8),a=(i.Minimatch,r(45)),s=r(47).EventEmitter,c=r(0),l=r(14),u=r(10),p=r(48),f=r(15),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,m=r(49),y=(r(9),f.childrenIgnored),g=f.isIgnored,v=r(17);function b(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return p(e,t)}return new S(e,t,r)}b.sync=p;var w=b.GlobSync=p.GlobSync;function S(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof S))return new S(e,t,r);h(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=v(r),this.on("error",r),this.on("end",function(e){r(null,e)}));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return s();for(var i=!0,a=0;a1)return!0;for(var o=0;othis.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!o||"DIR"===i)return t(null,i);if(o&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var s=a.isDirectory()?"DIR":"FILE";return o&&"FILE"===s?t():t(null,s,a)}var c=this,l=m("stat\0"+r,function(o,i){if(i&&i.isSymbolicLink())return n.stat(r,function(n,o){n?c._stat2(e,r,null,i,t):c._stat2(e,r,n,o,t)});c._stat2(e,r,o,i,t)});l&&n.lstat(r,l)},S.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,i&&"FILE"===a?o():o(null,a,n)}},function(e,t,r){e.exports=d,d.Minimatch=m;var n={sep:"/"};try{n=r(0)}catch(e){}var o=d.GLOBSTAR=m.GLOBSTAR={},i=r(42),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},s="[^/]",c=s+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",p=function(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}("().*{}+?[]^$\\!");var f=/\/+/;function h(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function d(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new m(t,r).match(e))}function m(e,t){if(!(this instanceof m))return new m(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function y(e,t){if(t||(t=this instanceof m?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}d.filter=function(e,t){return t=t||{},function(r,n,o){return d(r,e,t)}},d.defaults=function(e){if(!e||!Object.keys(e).length)return d;var t=d,r=function(r,n,o){return t.minimatch(r,n,h(e,o))};return r.Minimatch=function(r,n){return new t.Minimatch(r,h(e,n))},r},m.defaults=function(e){return e&&Object.keys(e).length?d.defaults(e).Minimatch:m},m.prototype.debug=function(){},m.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map(function(e){return e.split(f)}),this.debug(this.pattern,r),r=r.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},m.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(this.options.nonegate)return;for(var n=0,o=e.length;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return o;if(""===e)return"";var n,i="",l=!!r.nocase,u=!1,f=[],h=[],d=!1,m=-1,y=-1,v="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(n){switch(n){case"*":i+=c,l=!0;break;case"?":i+=s,l=!0;break;default:i+="\\"+n}b.debug("clearStateChar %j %j",n,i),n=!1}}for(var S,P=0,j=e.length;P-1;$--){var T=h[$],F=i.slice(0,T.reStart),C=i.slice(T.reStart,T.reEnd-8),N=i.slice(T.reEnd-8,T.reEnd),_=i.slice(T.reEnd);N+=_;var D=F.split("(").length-1,M=_;for(P=0;P=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,f,t,h),f!==s))}if("string"==typeof u?(l=n.nocase?p.toLowerCase()===u.toLowerCase():p===u,this.debug("string match",u,p,l)):(l=p.match(u),this.debug("pattern match",u,p,l)),!l)return!1}if(i===s&&a===c)return!0;if(i===s)return r;if(a===c)return i===s-1&&""===e[i];throw new Error("wtf?")}},function(e,t){e.exports=require("util")},function(e,t,r){function n(e){return"/"===e.charAt(0)}function o(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?o:n,e.exports.posix=n,e.exports.win32=o},function(e,t,r){var n=Function.prototype.toString,o=/^\s*class\b/,i=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},a=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t){e.exports=require("child_process")},function(e,t,r){e.exports=u,u.realpath=u,u.sync=p,u.realpathSync=p,u.monkeypatch=function(){n.realpath=u,n.realpathSync=p},u.unmonkeypatch=function(){n.realpath=o,n.realpathSync=i};var n=r(1),o=n.realpath,i=n.realpathSync,a=process.version,s=/^v[0-5]\./.test(a),c=r(41);function l(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function u(e,t,r){if(s)return o(e,t,r);"function"==typeof t&&(r=t,t=null),o(e,t,function(n,o){l(n)?c.realpath(e,t,r):r(n,o)})}function p(e,t){if(s)return i(e,t);try{return i(e,t)}catch(r){if(l(r))return c.realpathSync(e,t);throw r}}},function(e,t){e.exports=require("assert")},function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.alphasort=l,t.alphasorti=c,t.setopts=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(u))}(e,r),e.changedCwd=!1;var i=process.cwd();n(r,"cwd")?(e.cwd=o.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i;e.root=r.root||o.resolve(e.cwd,"/"),e.root=o.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=a(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new s(t,r),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,o=e.matches.length;n2?arguments[2]:[];if(!this.IsCallable(e))throw new a(e+" is not a function");return e.apply(t,r)},ToPrimitive:o,ToNumber:function(e){var t=S(e)?e:o(e,p);if("symbol"==typeof t)throw new a("Cannot convert a Symbol value to a number");if("string"==typeof t){if(A(t))return this.ToNumber(P(I(t,2),2));if(x(t))return this.ToNumber(P(I(t,2),8));if($(t)||T(t))return NaN;var r=function(e){return G(e,V,"")}(t);if(r!==t)return this.ToNumber(r)}return p(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!y(t))return 0;var r=b(t)*N(_(t));return w(r,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var r=N(e);return r+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==C(e))throw new a("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:L.CheckObjectCoercible,IsArray:c.isArray||function(e){return"[object Array]"===C(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!S(e)&&B(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=_(e);return N(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(d){var t=e[f.match];if(void 0!==t)return L.ToBoolean(t)}return U(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new a("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new a("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(e,t);if(null!=r){if(!this.IsCallable(r))throw new a(t+"is not a function");return r}},Get:function(e,t){if("Object"!==this.Type(e))throw new a("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new a("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":L.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new a("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==this.Type(r))throw new a("O.constructor is not an Object");var n=d&&f.species?r[f.species]:void 0;if(null==n)return t;if(this.IsConstructor(n))return n;throw new a("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new a("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(n(e,"[[Value]]")||(e["[[Value]]"]=void 0),n(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(n(e,"[[Get]]")||(e["[[Get]]"]=void 0),n(e,"[[Set]]")||(e["[[Set]]"]=void 0)),n(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),n(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,r,n){if("Object"!==this.Type(e))throw new a("O must be an Object");if(!this.IsPropertyKey(t))throw new a("P must be a Property Key");if("Boolean"!==this.Type(n))throw new a("Throw must be a Boolean");if(n)return e[t]=r,!0;try{e[t]=r}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new a("O must be an Object");if(!this.IsPropertyKey(t))throw new a("P must be a Property Key");return n(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new a("O must be an Object");if(!this.IsPropertyKey(t))throw new a("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(d&&"symbol"==typeof f.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new a("P must be a Property Key");var r=O(arguments,2),n=this.GetV(e,t);return this.Call(n,e,r)},GetIterator:function(e,t){if(!d)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var r=t;arguments.length<2&&(r=this.GetMethod(e,f.iterator));var n=this.Call(r,e);if("Object"!==this.Type(n))throw new a("iterator must return an object");return n},IteratorNext:function(e,t){var r=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(r))throw new a("iterator next must return an object");return r},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new a("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new a("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new a("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new a("Assertion failed: completion is not a thunk for a Completion Record");var r,n=t,o=this.GetMethod(e,"return");if(void 0===o)return n();try{var i=this.Call(o,e,[])}catch(e){throw r=n(),n=null,e}if(r=n(),n=null,"Object"!==this.Type(i))throw new a("iterator .return must return an object");return r},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new a("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new a("R must be an Object");if("String"!==this.Type(t))throw new a("S must be a String");var r=this.Get(e,"exec");if(this.IsCallable(r)){var n=this.Call(r,e,[t]);if(null===n||"Object"===this.Type(n))return n;throw new a('"exec" method must return `null` or an Object')}return E(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new a("Assertion failed: length must be an integer >= 0");var r,n=0===t?0:t;if(this.IsArray(e)&&(r=this.Get(e,"constructor"),"Object"===this.Type(r)&&d&&f.species&&null===(r=this.Get(r,f.species))&&(r=void 0)),void 0===r)return c(n);if(!this.IsConstructor(r))throw new a("C must be a constructor");return new r(n)},CreateDataProperty:function(e,t,r){if("Object"!==this.Type(e))throw new a("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new a("Assertion failed: IsPropertyKey(P) is not true");var n=M(e,t),o=n||"function"!=typeof B||B(e);if(n&&(!n.writable||!n.configurable)||!o)return!1;var i={configurable:!0,enumerable:!0,value:r,writable:!0};return Object.defineProperty(e,t,i),!0},CreateDataPropertyOrThrow:function(e,t,r){if("Object"!==this.Type(e))throw new a("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new a("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(e,t,r);if(!n)throw new a("unable to create data property");return n},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new a("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new s("es-abstract does not yet support internal slots");if(null===e&&!D)throw new s("native Object.create support is required to create null objects");return D(e)},AdvanceStringIndex:function(e,t,r){if("String"!==this.Type(e))throw new a("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new a("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(r))throw new a("Assertion failed: unicode must be a Boolean");if(!r)return t+1;if(t+1>=e.length)return t+1;var n=F(e,t);if(n<55296||n>56319)return t+1;var o=F(e,t+1);return o<56320||o>57343?t+1:t+2}});delete W.CheckObjectCoercible,e.exports=W},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,r){var n=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),c={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":n,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var r="$ "+e;if(!(r in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[r]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[r]}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,r){var n=r(4).call(Function.call,Object.prototype.hasOwnProperty),o=Object.assign;e.exports=function(e,t){if(o)return o(e,t);for(var r in t)n(t,r)&&(e[r]=t[r]);return e}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var r=e%t;return Math.floor(r>=0?r:r+t)}},function(e,t,r){var n=r(18),o=Number.isNaN||function(e){return e!=e},i=Number.isFinite||function(e){return"number"==typeof e&&global.isFinite(e)},a=Array.prototype.indexOf;e.exports=function(e){var t=arguments.length>1?n.ToInteger(arguments[1]):0;if(a&&!o(e)&&i(t)&&void 0!==e)return a.apply(this,arguments)>-1;var r=n.ToObject(this),s=n.ToLength(r.length);if(0===s)return!1;for(var c=t>=0?t:Math.max(0,s+t);c0?e:i.defaults,a=Object.entries(r).reduce((e,r)=>{const o=r[0],i=r[1],a=n[`get${o}`];return a?(i&&e.push(a(i,t)),e):e=e.concat((i||[]).map(e=>{const t=n[`get${e.replace(/\s/g,"")}Info`];return t?t():Promise.resolve(["Unknown"])}))},[]);return Promise.all(a).then(e=>{const r=e.reduce((e,t)=>(t&&t[0]&&Object.assign(e,{[t[0]]:t}),e),{});return function(e,t){const r=t.json?o.json:t.markdown?o.markdown:o.yaml;return t.console&&console.log(r(e,Object.assign({},t,{console:!0}))),r(e,Object.assign({},t,{console:!1}))}(Object.entries(i.defaults).reduce((e,t)=>{const n=t[0],o=t[1];return r[n]?Object.assign(e,{[n]:r[n][1]}):Object.assign(e,{[n]:(o||[]).reduce((e,t)=>r[t]?(r[t].shift(),1===r[t].length?Object.assign(e,{[t]:r[t][0]}):Object.assign(e,{[t]:{version:r[t][0],path:r[t][1]}})):e,{})})},{}),t)})}Array.prototype.includes||s.shim(),Object.entries||c.shim(),Object.values||l.shim(),e.exports={cli:function(e){if(e.all)return u(Object.assign({},i.defaults,{npmPackages:!0,npmGlobalPackages:!0}),e);if(e.raw)return u(JSON.parse(e.raw),e);if(e.helper){const t=n[`get${e.helper}`]||n[`get${e.helper}Info`]||n[e.helper];return t?t().then(console.log):console.error("Not Found")}const t=(e,t)=>e.toLowerCase().includes(t.toLowerCase()),r=Object.keys(e).filter(e=>Object.keys(i.defaults).some(r=>t(r,e))),o=Object.entries(i.defaults).reduce((n,o)=>r.some(e=>t(e,o[0]))?Object.assign(n,{[o[0]]:o[1]||e[o[0]]}):n,{});return e.preset?(i[e.preset]||console.error(`\nNo "${e.preset}" preset found.`),u(Object.assign({},a.omit(i[e.preset],["options"]),o),Object.assign({},i[e.preset].options,a.pick(e,["duplicates","fullTree","json","markdown","console"])))):u(o,e)},helpers:n,main:u,run:function(e,t){return"string"==typeof e.preset?u(i[e.preset],t):u(e,t)}}},function(e,t,r){const n=r(5),o=r(36),i=r(0),a=r(40),s=r(6),c="N/A",l="darwin"===process.platform,u="linux"===process.platform,p=process.platform.startsWith("win");e.exports=Object.assign({},s,a,{getiOSSDKInfo:()=>l?s.run("xcodebuild -showsdks").then(e=>e.match(/[\w]+\s[\d|.]+/g)).then(s.uniq).then(e=>e.length?["iOS SDK",{Platforms:e}]:["iOS SDK","Not Found"]):Promise.resolve(["iOS SDK",c]),getAndroidSDKInfo:()=>s.run(process.env.ANDROID_HOME?"$ANDROID_HOME/tools/bin/sdkmanager --list":"sdkmanager --list").then(e=>!e&&l?s.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):e).then(e=>{const t=s.parseSDKManagerOutput(e);return t.buildTools.length||t.apiLevels.length||t.systemImages.length?Promise.resolve(["Android SDK",{"API Levels":t.apiLevels||"Not Found","Build Tools":t.buildTools||"Not Found","System Images":t.systemImages||"Not Found"}]):Promise.resolve(["Android SDK","Not Found"])}),getAndroidStudioInfo:()=>{let e;return l?e=s.run(s.generatePlistBuddyCommand(i.join("/","Applications","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])).then(e=>e.split("\n").join(" ")):u?e=Promise.all([s.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(s.findVersion),s.run("cat /opt/android-studio/build.txt")]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"}):p&&(e=Promise.all([s.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then(e=>e.replace(/(\r\n|\n|\r)/gm,"")),s.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then(e=>e.replace(/(\r\n|\n|\r)/gm,""))]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"})),e.then(e=>s.determineFound("Android Studio",e))},getAtomInfo:()=>(s.log("trace","getAtomInfo"),Promise.all([s.getDarwinApplicationVersion(s.ideBundleIdentifiers.Atom),c]).then(e=>s.determineFound("Atom",e[0],e[1]))),getMySQLInfo:()=>(s.log("trace","getMySQLInfo"),Promise.all([s.run("mysql --version").then(e=>`${s.findVersion(e,null,1)}${e.includes("MariaDB")?" (MariaDB)":""}`),s.which("mysql")]).then(e=>s.determineFound("MySQL",e[0],e[1]))),getMongoDBInfo:()=>(s.log("trace","getMongoDBInfo"),Promise.all([s.run("mongo --version").then(s.findVersion),s.which("mongo")]).then(e=>s.determineFound("MongoDB",e[0],e[1]))),getSQLiteInfo:()=>(s.log("trace","getSQLiteInfo"),Promise.all([s.run("sqlite3 --version").then(s.findVersion),s.which("sqlite3")]).then(e=>s.determineFound("SQLite",e[0],e[1]))),getPostgreSQLInfo:()=>(s.log("trace","getPostgreSQLInfo"),Promise.all([s.run("postgres --version").then(s.findVersion),s.which("postgres")]).then(e=>s.determineFound("PostgreSQL",e[0],e[1]))),getCPUInfo:()=>{let e;s.log("trace","getCPUInfo");try{const t=n.cpus();e="("+t.length+") "+n.arch()+" "+t[0].model}catch(t){e="Unknown"}return Promise.all(["CPU",e])},getBashInfo:()=>(s.log("trace","getBashInfo"),Promise.all([s.run("bash --version").then(s.findVersion),s.which("bash")]).then(e=>s.determineFound("Bash",e[0],e[1]))),getPerlInfo:()=>(s.log("trace","getPerlInfo"),Promise.all([s.run("perl -v").then(s.findVersion),s.which("perl")]).then(e=>s.determineFound("Perl",e[0],e[1]))),getPHPInfo:()=>(s.log("trace","getPHPInfo"),Promise.all([s.run("php -v").then(s.findVersion),s.which("php")]).then(e=>s.determineFound("PHP",e[0],e[1]))),getParallelsInfo:()=>(s.log("trace","getParallelsInfo"),Promise.all([s.run("prlctl --version").then(s.findVersion),s.which("prlctl")]).then(e=>s.determineFound("Parallels",e[0],e[1]))),getDockerInfo:()=>(s.log("trace","getDockerInfo"),Promise.all([s.run("docker --version").then(s.findVersion),s.which("docker")]).then(e=>s.determineFound("Docker",e[0],e[1]))),getElixirInfo:()=>(s.log("trace","getElixirInfo"),Promise.all([s.run("elixir --version").then(e=>s.findVersion(e,/[Elixir]+\s([\d+.[\d+|.]+)/,1)),s.which("elixir")]).then(e=>Promise.resolve(s.determineFound("Elixir",e[0],e[1])))),getMemoryInfo:()=>(s.log("trace","getMemoryInfo"),Promise.all(["Memory",`${s.toReadableBytes(n.freemem())} / ${s.toReadableBytes(n.totalmem())}`])),getSublimeTextInfo:()=>(s.log("trace","getSublimeTextInfo"),Promise.all([s.run("subl --version").then(e=>s.findVersion(e,/\d+/)),s.which("subl")]).then(e=>""===e[0]&&l?(s.log("trace","getSublimeTextInfo using plist"),Promise.all([s.getDarwinApplicationVersion(s.ideBundleIdentifiers["Sublime Text"]),c])):e).then(e=>s.determineFound("Sublime Text",e[0],e[1]))),getHomeBrewInfo:()=>{return s.log("trace","getHomeBrewInfo"),l?Promise.all(["Homebrew",s.run("brew --version").then(s.findVersion),s.which("brew")]):Promise.all(["Homebrew",c])},getGoInfo:()=>(s.log("trace","getGoInfo"),Promise.all([s.run("go version").then(s.findVersion),s.which("go")]).then(e=>s.determineFound("Go",e[0],e[1]))),getRubyInfo:()=>(s.log("trace","getRubyInfo"),Promise.all([s.run("ruby -v").then(s.findVersion),s.which("ruby")]).then(e=>s.determineFound("Ruby",e[0],e[1]))),getNodeInfo:()=>(s.log("trace","getNodeInfo"),Promise.all([s.which("node").then(e=>e?s.run(e+" -v"):Promise.resolve("")).then(e=>e.replace("v","")),s.which("node").then(s.condensePath)]).then(e=>s.determineFound("Node",e[0],e[1]))),getnpmInfo:()=>(s.log("trace","getnpmInfo"),Promise.all([s.run("npm -v"),s.which("npm").then(s.condensePath)]).then(e=>s.determineFound("npm",e[0],e[1]))),getShellInfo:()=>{if(s.log("trace","getShellInfo",process.env),l||u){const e=process.env.SHELL||s.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1");return Promise.all([s.run(`${e} --version`).then(s.findVersion),s.which(e)]).then(e=>s.determineFound("Shell",e[0]||"Unknown",e[1]))}return Promise.resolve(["Shell",c])},getOSInfo:()=>{let e;return s.log("trace","getOSInfo"),(e=l?s.run("sw_vers -productVersion "):u?s.run("cat /etc/os-release").then(e=>{const t=(e||"").match(/NAME="(.+)"/),r=(e||"").match(/VERSION="(.+)"/)||[];return`${t[1]} ${r[1]}`.trim()||""}):Promise.resolve()).then(e=>{let t=o(n.platform(),n.release());return e&&(t+=` ${e}`),["OS",t]})},getContainerInfo:()=>(s.log("trace","getContainerInfo"),u?Promise.all([s.fileExists("/.dockerenv"),s.readFile("/proc/self/cgroup")]).then(e=>(s.log("trace","getContainerInfoThen",e),Promise.resolve(["Container",e[0]||e[1]?"Yes":c]))).catch(e=>s.log("trace","getContainerInfoCatch",e)):Promise.resolve(["Container",c])),getWatchmanInfo:()=>(s.log("trace","getWatchmanInfo"),Promise.all([s.which("watchman").then(e=>e?s.run(e+" -v"):void 0),s.which("watchman")]).then(e=>s.determineFound("Watchman",e[0],e[1]))),getVSCodeInfo:()=>(s.log("trace","getVSCodeInfo"),Promise.all([s.run("code --version").then(s.findVersion),s.which("code")]).then(e=>s.determineFound("VSCode",e[0],e[1]))),getIntelliJInfo:()=>(s.log("trace","getIntelliJInfo"),s.getDarwinApplicationVersion(s.ideBundleIdentifiers.IntelliJ).then(e=>s.determineFound("IntelliJ",e))),getPhpStormInfo:()=>(s.log("trace","getPhpStormInfo"),s.getDarwinApplicationVersion(s.ideBundleIdentifiers.PhpStorm).then(e=>s.determineFound("PhpStorm",e))),getWebStormInfo:()=>(s.log("trace","getWebStormInfo"),s.getDarwinApplicationVersion(s.ideBundleIdentifiers.WebStorm).then(e=>s.determineFound("WebStorm",e))),getVirtualBoxInfo:()=>(s.log("trace","getVirtualBoxInfo"),Promise.all([s.run("vboxmanage --version").then(s.findVersion),s.which("vboxmanage")]).then(e=>s.determineFound("VirtualBox",e[0],e[1]))),getVMwareFusionInfo:()=>(s.log("trace","getVMwareFusionInfo"),s.getDarwinApplicationVersion("com.vmware.fusion").then(e=>s.determineFound("VMWare Fusion",e,c))),getPythonInfo:()=>(s.log("trace","getPythonInfo"),Promise.all([s.run("python -V 2>&1").then(s.findVersion),s.run("which python")]).then(e=>s.determineFound("Python",e[0],e[1]))),getXcodeInfo:()=>(s.log("trace","getXcodeInfo"),l?Promise.all([s.which("xcodebuild").then(e=>s.run(e+" -version")).then(e=>`${s.findVersion(e)}/${e.split("Build version ")[1]}`),s.which("xcodebuild")]).then(e=>s.determineFound("Xcode",e[0],e[1])):Promise.resolve(["Xcode",c])),getYarnInfo:()=>(s.log("trace","getYarnInfo"),Promise.all([s.run("yarn -v"),s.which("yarn").then(s.condensePath)]).then(e=>s.determineFound("Yarn",e[0],e[1]))),getEdgeInfo:()=>{let e;return s.log("trace","getEdgeInfo"),(e=p&&"10"===n.release().split(".")[0]?s.run("powershell get-appxpackage Microsoft.MicrosoftEdge").then(s.findVersion):Promise.resolve(c)).then(e=>s.determineFound("Edge",e,c))},getInternetExplorerInfo:()=>{let e;if(s.log("trace","getInternetExplorerInfo"),p){const t=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");e=s.run(`wmic datafile where "name='${t}'" get Version`).then(s.findVersion)}else e=Promise.resolve(c);return e.then(e=>s.determineFound("Internet Explorer",e,c))},getChromeInfo:()=>{let e;return s.log("trace","getChromeInfo"),(e=u?s.run("google-chrome --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):l?s.getDarwinApplicationVersion(s.browserBundleIdentifiers.Chrome).then(s.findVersion):Promise.resolve(c)).then(e=>s.determineFound("Chrome",e,c))},getChromeCanaryInfo:()=>{return s.log("trace","getChromeCanaryInfo"),s.getDarwinApplicationVersion(s.browserBundleIdentifiers["Chrome Canary"]).then(e=>s.determineFound("Chrome Canary",e,c))},getFirefoxDeveloperEditionInfo:()=>{return s.log("trace","getFirefoxDeveloperEditionInfo"),s.getDarwinApplicationVersion(s.browserBundleIdentifiers["Firefox Developer Edition"]).then(e=>s.determineFound("Firefox Developer Edition",e,c))},getSafariTechnologyPreviewInfo:()=>{return s.log("trace","getSafariTechnologyPreviewInfo"),s.getDarwinApplicationVersion(s.browserBundleIdentifiers["Safari Technology Preview"]).then(e=>s.determineFound("Safari Technology Preview",e,c))},getSafariInfo:()=>{return s.log("trace","getSafariInfo"),s.getDarwinApplicationVersion(s.browserBundleIdentifiers.Safari).then(e=>s.determineFound("Safari",e,c))},getFirefoxInfo:()=>{let e;return s.log("trace","getFirefoxInfo"),(e=u?s.run("firefox --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):l?s.getDarwinApplicationVersion(s.browserBundleIdentifiers.Firefox):Promise.resolve(c)).then(e=>s.determineFound("Firefox",e,c))},getFirefoxNightlyInfo:()=>{let e;return s.log("trace","getFirefoxNightlyInfo"),(e=u?s.run("firefox-trunk --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):l?s.getDarwinApplicationVersion(s.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve(c)).then(e=>s.determineFound("Firefox Nightly",e,c))},getGitInfo:()=>(s.log("trace","getGitInfo"),l||u?Promise.all([s.run("git --version").then(s.findVersion),s.run("which git")]).then(e=>s.determineFound("Git",e[0],e[1])):Promise.resolve(["Git",c])),getMakeInfo:()=>(s.log("trace","getMakeInfo"),l||u?Promise.all([s.run("make --version").then(s.findVersion),s.run("which make")]).then(e=>s.determineFound("Make",e[0],e[1])):Promise.resolve(["Make",c])),getCMakeInfo:()=>(s.log("trace","getCMakeInfo"),l||u?Promise.all([s.run("cmake --version").then(s.findVersion),s.run("which cmake")]).then(e=>s.determineFound("CMake",e[0],e[1])):Promise.resolve(["CMake",c])),getGCCInfo:()=>(s.log("trace","getGCCInfo"),l||u?Promise.all([s.run("gcc -v 2>&1").then(s.findVersion),s.run("which gcc")]).then(e=>s.determineFound("GCC",e[0],e[1])):Promise.resolve(["GCC",c])),getNanoInfo:()=>(s.log("trace","getNanoInfo"),l||u?Promise.all([s.run("nano --version").then(s.findVersion),s.run("which nano")]).then(e=>s.determineFound("Nano",e[0],e[1])):Promise.resolve(["Nano",c])),getEmacsInfo:()=>(s.log("trace","getEmacsInfo"),l||u?Promise.all([s.run("emacs --version").then(s.findVersion),s.run("which emacs")]).then(e=>s.determineFound("Emacs",e[0],e[1])):Promise.resolve(["Emacs",c])),getVimInfo:()=>(s.log("trace","getVimInfo"),l||u?Promise.all([s.run("vim --version").then(s.findVersion),s.run("which vim")]).then(e=>s.determineFound("Vim",e[0],e[1])):Promise.resolve(["Vim",c])),getNvimInfo:()=>(s.log("trace","getNvimInfo"),l||u?Promise.all([s.run("nvim --version").then(s.findVersion),s.run("which nvim")]).then(e=>s.determineFound("Nvim",e[0],e[1])):Promise.resolve(["Vim",c])),getRustInfo:()=>(s.log("trace","getRustInfo"),l||u?Promise.all([s.run("rustup --version").then(s.findVersion),s.run("which rustup")]).then(e=>s.determineFound("Rust",e[0],e[1])):Promise.resolve(["Rust",c])),getScalaInfo:()=>(s.log("trace","getScalaInfo"),l||u?Promise.all([s.run("scalac -version").then(s.findVersion),s.run("which scalac")]).then(e=>s.determineFound("Scala",e[0],e[1])):Promise.resolve(["Scala",c])),getJavaInfo:()=>(s.log("trace","getJavaInfo"),l||u?Promise.all([s.run("javac -version 2>&1").then(s.findVersion),s.run("which javac")]).then(e=>s.determineFound("Java",e[0],e[1])):Promise.resolve(["Java",c])),getApacheInfo:()=>(s.log("trace","getApacheInfo"),l||u?Promise.all([s.run("apachectl -v").then(s.findVersion),s.run("which apachectl")]).then(e=>s.determineFound("Apache",e[0],e[1])):Promise.resolve(["Apache",c])),getNginxInfo:()=>(s.log("trace","getNginxInfo"),l||u?Promise.all([s.run("nginx -v 2>&1").then(s.findVersion),s.run("which nginx")]).then(e=>s.determineFound("Nginx",e[0],e[1])):Promise.resolve(["Nginx",c]))})},function(e,t,r){var n=r(5),o=r(37),i=r(38);e.exports=function(e,t){if(!e&&t)throw new Error("You can't specify a `release` without specifying `platform`");var r;return e=e||n.platform(),t=t||n.release(),"darwin"===e?(Number(t.split(".")[0])>15?"macOS":"OS X")+((r=o(t).name)?" "+r:""):"linux"===e?"Linux"+((r=t.replace(/^(\d+\.\d+).*/,"$1"))?" "+r:""):"win32"===e?"Windows"+((r=i(t))?" "+r:""):e}},function(e,t,r){var n=r(5),o={17:"High Sierra",16:"Sierra",15:"El Capitan",14:"Yosemite",13:"Mavericks",12:"Mountain Lion",11:"Lion",10:"Snow Leopard",9:"Leopard",8:"Tiger",7:"Panther",6:"Jaguar",5:"Puma"};e.exports=function(e){return e=(e||n.release()).split(".")[0],{name:o[e],version:"10."+(Number(e)-4)}}},function(e,t,r){var n=r(5),o=r(39),i={"10.0":"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.1:"XP","5.0":"2000",4.9:"ME",4.1:"98","4.0":"95"};e.exports=function(e){var t=/\d+\.\d+/,a=t.exec(e||n.release());if(!e&&"win32"===process.platform&&o.satisfies(process.version,">=0.12.0 <3.1.0"))try{a=t.exec(String(r(12).execSync("ver.exe",{timeout:2e3})))}catch(e){}if(e&&!a)throw new Error("`release` argument doesn't match `n.n`");return i[(a||[])[0]]}},function(e,t){var r;t=e.exports=q,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],a=t.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var l=s++;a[l]="[0-9]+";var u=s++;a[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var f=s++;a[f]="("+a[l]+")\\.("+a[l]+")\\.("+a[l]+")";var h=s++;a[h]="(?:"+a[c]+"|"+a[u]+")";var d=s++;a[d]="(?:"+a[l]+"|"+a[u]+")";var m=s++;a[m]="(?:-("+a[h]+"(?:\\."+a[h]+")*))";var y=s++;a[y]="(?:-?("+a[d]+"(?:\\."+a[d]+")*))";var g=s++;a[g]="[0-9A-Za-z-]+";var v=s++;a[v]="(?:\\+("+a[g]+"(?:\\."+a[g]+")*))";var b=s++,w="v?"+a[p]+a[m]+"?"+a[v]+"?";a[b]="^"+w+"$";var S="[v=\\s]*"+a[f]+a[y]+"?"+a[v]+"?",P=s++;a[P]="^"+S+"$";var j=s++;a[j]="((?:<|>)?=?)";var O=s++;a[O]=a[l]+"|x|X|\\*";var I=s++;a[I]=a[c]+"|x|X|\\*";var A=s++;a[A]="[v=\\s]*("+a[I]+")(?:\\.("+a[I]+")(?:\\.("+a[I]+")(?:"+a[m]+")?"+a[v]+"?)?)?";var x=s++;a[x]="[v=\\s]*("+a[O]+")(?:\\.("+a[O]+")(?:\\.("+a[O]+")(?:"+a[y]+")?"+a[v]+"?)?)?";var E=s++;a[E]="^"+a[j]+"\\s*"+a[A]+"$";var k=s++;a[k]="^"+a[j]+"\\s*"+a[x]+"$";var $=s++;a[$]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var T=s++;a[T]="(?:~>?)";var F=s++;a[F]="(\\s*)"+a[T]+"\\s+",i[F]=new RegExp(a[F],"g");var C=s++;a[C]="^"+a[T]+a[A]+"$";var N=s++;a[N]="^"+a[T]+a[x]+"$";var _=s++;a[_]="(?:\\^)";var D=s++;a[D]="(\\s*)"+a[_]+"\\s+",i[D]=new RegExp(a[D],"g");var M=s++;a[M]="^"+a[_]+a[A]+"$";var B=s++;a[B]="^"+a[_]+a[x]+"$";var R=s++;a[R]="^"+a[j]+"\\s*("+S+")$|^$";var V=s++;a[V]="^"+a[j]+"\\s*("+w+")$|^$";var G=s++;a[G]="(\\s*)"+a[j]+"\\s*("+S+"|"+a[A]+")",i[G]=new RegExp(a[G],"g");var L=s++;a[L]="^\\s*("+a[A]+")\\s+-\\s+("+a[A]+")\\s*$";var U=s++;a[U]="^\\s*("+a[x]+")\\s+-\\s+("+a[x]+")\\s*$";var W=s++;a[W]="(<|>)?=?\\s*\\*";for(var K=0;Kn)return null;if(!(t.loose?i[P]:i[b]).test(e))return null;try{return new q(e,t)}catch(e){return null}}function q(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof q){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof q))return new q(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[P]:i[b]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new q(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var r=J(e),n=J(t);if(r.prerelease.length||n.prerelease.length){for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return"pre"+o;return"prerelease"}for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return o},t.compareIdentifiers=Q;var H=/^[0-9]+$/;function Q(e,t){var r=H.test(e),n=H.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function Y(e,t,r){return new q(e,r).compare(new q(t,r))}function X(e,t,r){return Y(e,t,r)>0}function z(e,t,r){return Y(e,t,r)<0}function Z(e,t,r){return 0===Y(e,t,r)}function ee(e,t,r){return 0!==Y(e,t,r)}function te(e,t,r){return Y(e,t,r)>=0}function re(e,t,r){return Y(e,t,r)<=0}function ne(e,t,r,n){var o;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e===r;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e!==r;break;case"":case"=":case"==":o=Z(e,r,n);break;case"!=":o=ee(e,r,n);break;case">":o=X(e,r,n);break;case">=":o=te(e,r,n);break;case"<":o=z(e,r,n);break;case"<=":o=re(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return o}function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return Q(t,e)},t.major=function(e,t){return new q(e,t).major},t.minor=function(e,t){return new q(e,t).minor},t.patch=function(e,t){return new q(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,r){return Y(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=X,t.lt=z,t.eq=Z,t.neq=ee,t.gte=te,t.lte=re,t.cmp=ne,t.Comparator=oe;var ie={};function ae(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof oe)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,r,n,o,i,a,s,c,l,u,p,f){return((t=se(r)?"":se(n)?">="+r+".0.0":se(o)?">="+r+"."+n+".0":">="+t)+" "+(s=se(c)?"":se(l)?"<"+(+c+1)+".0.0":se(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+s)).trim()}function le(e,t,n){for(var o=0;o0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function ue(e,t,r){try{t=new ae(t,r)}catch(e){return!1}return t.test(e)}function pe(e,t,r,n){var o,i,a,s,c;switch(e=new q(e,n),t=new ae(t,n),r){case">":o=X,i=re,a=z,s=">",c=">=";break;case"<":o=z,i=te,a=X,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,n))return!1;for(var l=0;l=0.0.0")),u=u||e,p=p||e,o(e.semver,u.semver,n)?u=e:a(e.semver,p.semver,n)&&(p=e)}),u.operator===s||u.operator===c)return!1;if((!p.operator||p.operator===s)&&i(e,p.semver))return!1;if(p.operator===c&&a(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?i[R]:i[V],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new q(r[2],this.options.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return r("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new q(e,this.options)),ne(e,this.operator,this.semver,this.options))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return r=new ae(e.value,t),ue(this.value,r,t);if(""===e.operator)return r=new ae(this.value,t),ue(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&a||s||c},t.Range=ae,ae.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?i[U]:i[L];e=e.replace(n,ce),r("hyphen replace",e),e=e.replace(i[G],"$1$2$3"),r("comparator trim",e,i[G]),e=(e=(e=e.replace(i[F],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[R]:i[V],a=e.split(" ").map(function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t),t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1});var n=t.loose?i[B]:i[M];return e.replace(n,function(t,n,o,i,a){var s;return r("caret",e,t,n,o,i,a),se(n)?s="":se(o)?s=">="+n+".0.0 <"+(+n+1)+".0.0":se(i)?s="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":a?(r("replaceCaret pr",a),"-"!==a.charAt(0)&&(a="-"+a),s="0"===n?"0"===o?">="+n+"."+o+"."+i+a+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+a+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+a+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",s),s})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1});var n=t.loose?i[N]:i[C];return e.replace(n,function(t,n,o,i,a){var s;return r("tilde",e,t,n,o,i,a),se(n)?s="":se(o)?s=">="+n+".0.0 <"+(+n+1)+".0.0":se(i)?s=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":a?(r("replaceTilde pr",a),"-"!==a.charAt(0)&&(a="-"+a),s=">="+n+"."+o+"."+i+a+" <"+n+"."+(+o+1)+".0"):s=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",s),s})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim(),t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1});var n=t.loose?i[k]:i[E];return e.replace(n,function(t,n,o,i,a,s){r("xRange",e,t,n,o,i,a,s);var c=se(o),l=c||se(i),u=l||se(a),p=u;return"="===n&&p&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&p?(l&&(i=0),u&&(a=0),">"===n?(n=">=",l?(o=+o+1,i=0,a=0):u&&(i=+i+1,a=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),t=n+o+"."+i+"."+a):l?t=">="+o+".0.0 <"+(+o+1)+".0.0":u&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(i[W],"")}(e,t),r("stars",e),e}(e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(e){return!!e.match(o)})),a=a.map(function(e){return new oe(e,this.options)},this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new ae(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new q(e,this.options));for(var t=0;t",r)},t.outside=pe,t.prerelease=function(e,t){var r=J(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new ae(e,r),t=new ae(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof q)return e;if("string"!=typeof e)return null;var t=e.match(i[$]);return null==t?null:J((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,r){const n=r(7),o=r(0),i=r(6),a=e=>{const t=e.split("node_modules/"),r=t[t.length-1];return"@"===r.charAt(0)?[r.split("/")[0],r.split("/")[1]].join("/"):r.split("/")[0]};e.exports={getnpmPackages:function(e,t){i.log("trace","getnpmPackages"),t||(t={});let r=null,n=null;return"string"==typeof e&&(e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(",")),Promise.all(["npmPackages",i.getPackageJsonByPath("package.json").then(e=>Object.assign({},(e||{}).devDependencies||{},(e||{}).dependencies||{})).then(e=>(n=e,t.fullTree||t.duplicates||r?i.getAllPackageJsonPaths(r):Promise.resolve(Object.keys(e||[]).map(e=>o.join("node_modules",e,"package.json"))))).then(o=>!r&&"boolean"!=typeof e||t.fullTree?Array.isArray(e)?Promise.resolve((o||[]).filter(t=>e.includes(a(t)))):Promise.resolve(o):Promise.resolve((o||[]).filter(e=>Object.keys(n||[]).includes(a(e))))).then(e=>Promise.all([e,Promise.all(e.map(e=>i.getPackageJsonByPath(e)))])).then(e=>{const r=e[0];return e[1].reduce((e,o,a)=>o&&o.name?(e[o.name]||(e[o.name]={}),t.duplicates&&e[o.name].installed&&e[o.name].installed!==o.version&&i.uniq(e[o.name].duplicates=(e[o.name].duplicates||[]).concat(o.version)),1===(r[a].match(/node_modules/g)||[]).length&&(e[o.name].installed=o.version),n[o.name]&&(e[o.name].wanted=n[o.name]),e):e,{})}).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r)).then(e=>i.sortObject(e))])},getnpmGlobalPackages:function(e,t){i.log("trace","getnpmGlobalPackages",e);let r=null;return"string"==typeof e?e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(","):Array.isArray(e)||(e=!0),Promise.all(["npmGlobalPackages",i.run("npm get prefix --global").then(e=>new Promise((t,i)=>n(o.join(e,"lib","node_modules",r||"{*,@*/*}","package.json"),(e,r)=>{e||t(r),i(e)}))).then(t=>Promise.all(t.filter(t=>"boolean"==typeof e||null!==r||e.includes(a(t))).map(e=>i.getPackageJsonByFullPath(e)))).then(e=>e.reduce((e,t)=>t?Object.assign(e,{[t.name]:t.version}):e,{})).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r))])}}},function(e,t,r){var n=r(0),o="win32"===process.platform,i=r(1),a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function s(e){return"function"==typeof e?e:function(){var e;if(a){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}n.normalize;if(o)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(o)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else l=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,a,s,u,p=e,f={},h={};function d(){var t=l.exec(e);r=t[0].length,a=t[0],s=t[0],u="",o&&!h[s]&&(i.lstatSync(s),h[s]=!0)}for(d();r=e.length)return t&&(t[h]=e),r(null,e);c.lastIndex=a;var n=c.exec(e);return f=u,u+=n[0],p=f+n[1],a=c.lastIndex,m[p]||t&&t[p]===p?process.nextTick(g):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):i.lstat(p,v)}function v(e,n){if(e)return r(e);if(!n.isSymbolicLink())return m[p]=!0,t&&(t[p]=p),process.nextTick(g);if(!o){var a=n.dev.toString(32)+":"+n.ino.toString(32);if(d.hasOwnProperty(a))return b(null,d[a],p)}i.stat(p,function(e){if(e)return r(e);i.readlink(p,function(e,t){o||(d[a]=t),b(e,t)})})}function b(e,o,i){if(e)return r(e);var a=n.resolve(f,o);t&&(t[i]=a),w(a)}function w(t){e=n.resolve(t,e.slice(a)),y()}y()}},function(e,t,r){var n=r(43),o=r(44);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var i=[];var a=o("{","}",t);if(!a||/\$$/.test(a.pre))return[t];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var p=c||l;var y=a.body.indexOf(",")>=0;if(!p&&!y)return a.post.match(/,.*\}/)?(t=a.pre+"{"+a.body+s+a.post,e(t)):[t];var g;if(p)g=a.body.split(/\.\./);else if(1===(g=function e(t){if(!t)return[""];var r=[];var n=o("{","}",t);if(!n)return t.split(",");var i=n.pre;var a=n.body;var s=n.post;var c=i.split(",");c[c.length-1]+="{"+a+"}";var l=e(s);s.length&&(c[c.length-1]+=l.shift(),c.push.apply(c,l));r.push.apply(r,c);return r}(a.body)).length&&1===(g=e(g[0],!1).map(f)).length){var v=a.post.length?e(a.post,!1):[""];return v.map(function(e){return a.pre+g[0]+e})}var b=a.pre;var v=a.post.length?e(a.post,!1):[""];var w;if(p){var S=u(g[0]),P=u(g[1]),j=Math.max(g[0].length,g[1].length),O=3==g.length?Math.abs(u(g[2])):1,I=d,A=P0){var T=new Array($+1).join("0");k=E<0?"-"+T+k.slice(1):T+k}}w.push(k)}}else w=n(g,function(t){return e(t,!1)});for(var F=0;F=t}},function(e,t){e.exports=function(e,t){for(var n=[],o=0;o=0&&l>0){for(n=[],i=r.length;u>=0&&!s;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?s=[n.pop(),l]:((o=n.pop())=0?c:l;n.length&&(s=[i,a])}return s}e.exports=n,n.range=i},function(e,t,r){try{var n=r(9);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(46)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t){e.exports=require("events")},function(e,t,r){e.exports=d,d.GlobSync=m;var n=r(1),o=r(13),i=r(8),a=(i.Minimatch,r(7).Glob,r(9),r(0)),s=r(14),c=r(10),l=r(15),u=(l.alphasort,l.alphasorti,l.setopts),p=l.ownProp,f=l.childrenIgnored,h=l.isIgnored;function d(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new m(e,t).found}function m(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof m))return new m(e,t);if(u(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||"DIR"===o)return o;if(r&&"FILE"===o)return!1}var i=this.statCache[t];if(!i){var a;try{a=n.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=n.statSync(t)}catch(e){i=a}else i=a}this.statCache[t]=i;o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,(!r||"FILE"!==o)&&o},m.prototype._mark=function(e){return l.mark(this,e)},m.prototype._makeAbs=function(e){return l.makeAbs(this,e)}},function(e,t,r){var n=r(16),o=Object.create(null),i=r(17);e.exports=n(function(e,t){return o[e]?(o[e].push(t),null):(o[e]=[t],function(e){return i(function t(){var r=o[e],n=r.length,i=function(e){for(var t=e.length,r=[],n=0;nn?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete o[e]}})}(e))})},function(e,t,r){e.exports=l,l.sync=function(e,t){for(var r=c(e,t=t||{}),n=r.env,i=r.ext,l=r.extExe,u=[],p=0,f=n.length;p!t.showNotFound&&"Not Found"===e[n]||"N/A"===e[n]||void 0===e[n]||0===Object.keys(e[n]).length?r:o.isObject(e[n])?Object.values(e[n]).every(e=>"N/A"===e||!t.showNotFound&&"Not Found"===e)?r:Object.assign(r,{[n]:i(e[n],t)}):Object.assign(r,{[n]:e[n]}),{})}function a(e,t){o.log("trace","formatHeaders"),t||(t={type:"underline"});const r={underline:["",""]};return e.slice().split("\n").map(e=>{if(":"===e.slice("-1")){const n=e.match(/^[\s]*/g)[0];return`${n}${r[t.type][0]}${e.slice(n.length)}${r[t.type][1]}`}return e}).join("\n")}function s(e){return o.log("trace","formatPackages"),e.npmPackages?Object.assign(e,{npmPackages:Object.entries(e.npmPackages||{}).reduce((e,t)=>{const r=t[0],n=t[1];if("Not Found"===n)return Object.assign(e,{[r]:n});const o=n.wanted?`${n.wanted} =>`:"",i=Array.isArray(n.installed)?n.installed.join(", "):n.installed,a=n.duplicates?`(${n.duplicates.join(", ")})`:"";return Object.assign(e,{[r]:`${o} ${i} ${a}`})},{})}):e}function c(e,t,r){return r||(r={emptyMessage:"None"}),Array.isArray(t)&&(t=t.length>0?t.join(", "):r.emptyMessage),{[e]:t}}function l(e){return o.log("trace","serializeArrays"),function e(t,r){return Object.entries(t).reduce((t,n)=>{const i=n[0],a=n[1];return o.isObject(a)?Object.assign(t,{[i]:e(a,r)}):Object.assign(t,r(i,a))},{})}(e,c)}function u(e){return o.log("trace","serializeVersionsAndPaths"),Object.entries(e).reduce((e,t)=>Object.assign(e,{[t[0]]:Object.entries(t[1]).reduce((e,t)=>{const r=t[0],n=t[1];return n.version?Object.assign(e,{[r]:[n.version,n.path].filter(Boolean).join(" - ")}):Object.assign(e,{[r]:n})},{})},{}),{})}function p(e){return n(e,{indent:" ",prefix:"\n",postfix:"\n"})}function f(e){return e.slice().split("\n").map(e=>{if(""!==e){const t=":"===e.slice("-1"),r=e.search(/\S|$/);return t?`${"#".repeat(r/2+1)} `+e.slice(r):" - "+e.slice(r)}return""}).join("\n")}function h(e,t){return t||(t={indent:" "}),JSON.stringify(e,null,t.indent)}e.exports={json:function(e,t){return o.log("trace","formatToJson"),t||(t={}),e=o.pipe([()=>i(e,t),t.title?e=>({[t.title]:e}):o.noop,h])(e),e=t.console?`\n${e}\n`:e},markdown:function(e,t){return o.log("trace","formatToMarkdown"),o.pipe([()=>i(e,t),s,l,u,p,f,t.title?e=>`\n# ${t.title}${e}`:o.noop])(e,t)},yaml:function(e,t){return o.log("trace","formatToYaml",t),o.pipe([()=>i(e,t),s,l,u,t.title?e=>({[t.title]:e}):o.noop,p,t.console?a:o.noop])(e,t)}}},function(e,t,r){var n=r(57),o=r(58),i=r(62),a=["object","array"];e.exports=function(e,t){var r=o(t),s=r.colors,c=r.prefix,l=r.postfix,u=r.dateToString,p=r.errorToString,f=r.indent;function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===Object.keys(e).length)return" {}";var o="\n",s=i(t,f);return Object.keys(e).forEach(function(c){var l=e[c],u=n(l),p=i(r," "),f=-1!==a.indexOf(u)?"":" ",h=m(u,l,t+1,r);o+=`${p}${s}${c}:${f}${h}\n`}),o.substring(0,o.length-1)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return" []";var o="\n",a=i(t,f);return e.forEach(function(e){var s=n(e),c=i(r," "),l=m(s,e,t,r+1).toString().trimLeft();o+=`${c}${a}- ${l}\n`}),o.substring(0,o.length-1)}function m(e,t,r,n){switch(e){case"array":return d(t,r,n);case"object":return h(t,r,n);case"string":return s.string(t);case"symbol":return s.symbol(t.toString());case"number":return s.number(t);case"boolean":return s.boolean(t);case"null":return s.null("null");case"undefined":return s.undefined("undefined");case"date":return s.date(u(t));case"error":return s.error(p(t));default:return t&&t.toString?t.toString():Object.prototype.toString.call(t)}}var y="";return"object"===n(e)&&Object.keys(e).length>0?y=h(e):"array"===n(e)&&e.length>0&&(y=d(e)),0===y.length?"":`${c}${y.slice(1)}${l}`}},function(e,t,r){e.exports=function(e){return Array.isArray(e)?"array":e instanceof Date?"date":e instanceof Error?"error":null===e?"null":"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)?"object":typeof e}},function(e,t,r){var n=r(59),o=r(60),i=r(61),a=" ",s="\n",c="";function l(e,t){return void 0===e?t:e}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{indent:l(e.indent,a),prefix:l(e.prefix,s),postfix:l(e.postfix,c),errorToString:e.errorToString||n,dateToString:e.dateToString||o,colors:Object.assign({},i,e.colors)}}},function(e,t,r){e.exports=function(e){return Error.prototype.toString.call(e)}},function(e,t,r){e.exports=function(e){return`new Date(${Date.prototype.toISOString.call(e)})`}},function(e,t,r){function n(e){return e}e.exports={date:n,error:n,symbol:n,string:n,number:n,boolean:n,null:n,undefined:n}},function(e,t,r){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r="",n=0;n0&&!n.call(e,0))for(var m=0;m0)for(var y=0;y=0&&"[object Function]"===n.call(e.callee)),r}},function(e,t,r){var n=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,i=n.call(arguments,1),a=Math.max(0,t.length-i.length),s=[],c=0;c1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=function(e,t){var r=e[t];if(null!==r&&void 0!==r){if(!i(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var c=t.call(e,r);if(o(c))return c;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(a(e)||s(e))&&(r="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!c(t))return 0;var r=l(t)*Math.floor(Math.abs(t));return u(r,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:p,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(h(e,r)&&!t[r])return!1;var n=h(e,"[[Value]]"),o=h(e,"[[Get]]")||h(e,"[[Set]]");if(n&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return!(!h(e,"[[Get]]")&&!h(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return!(!h(e,"[[Value]]")&&!h(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(h(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),h(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),h(e,"value")&&(t["[[Value]]"]=e.value),h(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),h(e,"get")){var r=e.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(h(e,"set")){var n=e.set;if(void 0!==n&&!this.IsCallable(n))throw new i("setter must be a function");t["[[Set]]"]=n}if((h(t,"[[Get]]")||h(t,"[[Set]]"))&&(h(t,"[[Value]]")||h(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=d},function(e,t,r){var n=Object.prototype.toString,o=r(20),i=r(11),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===n.call(e)?String:Number)===String||t===Number){var r,a,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},function(e,t,r){var n=r(3),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,a=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s)return"[object RegExp]"===a.call(e);var t=i(e,"lastIndex");return!(!t||!n(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,r){var n=r(2),o=r(28);e.exports=function(){var e=o();return n(Array.prototype,{includes:e},{includes:function(){return Array.prototype.includes!==e}}),e}},function(e,t,r){var n=r(2),o=r(29),i=r(31),a=r(81),s=i();n(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},function(e,t,r){var n=r(19),o=r(24),i=o(o({},n),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t,r){var n=r(31),o=r(2);e.exports=function(){var e=n();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},function(e,t,r){var n=r(2),o=r(32),i=r(33),a=r(83),s=i();n(s,{getPolyfill:i,implementation:o,shim:a}),e.exports=s},function(e,t,r){var n=r(33),o=r(2);e.exports=function(){var e=n();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,r){const n=r(34),o=r(85)(process.argv.slice(2));o.console=!0,o.help||o._.indexOf("help")>-1?(console.log(`\n ,,', ,, ,,,,,, ,',,\n ,,, ,,, ,,,\n ,, ,,,,, ,,,,,, ,,, ,, ,, .,,,,,, ,,,,,,, ,,,,, ,,\n ,, ,, ,, ,,, ,,, ,, ,,, ,, ,,, ,,, ,, ,,, ,,, ,,\n ,,, ,, .,, ,,, ,, ,,, ,, ,, ,,, ,, ,, ,, ,, ,,,\n ,, ,,,,,,,,,, ,,, ,, ,, ,, ,, ,,, ,, ,, ,, ,, ,,\n ,, ,,, ,,, ,, ,,,,, ,, ,,, ,, ,, ,,, ,,, ,,\n ,, ,,,,,,, ,,, ,, ,,, ,, ,,, ,, ,, ,,,,,,, ,,\n ,,, ,,,\n ,,,' ',,,\n\n VERSION: ${version}\n\n USAGE:\n\n \`envinfo\` || \`npx envinfo\`\n\n OPTIONS:\n\n --system Print general system info such as OS, CPU, Memory and Shell\n --browsers Get version numbers of installed web browsers\n --SDKs Get platforms, build tools and SDKs of iOS and Android\n --IDEs Get version numbers of installed IDEs\n --languages Get version numbers of installed languages such as Java, Python, PHP, etc\n --binaries Get version numbers of node, npm, watchman, etc\n --npmPackages Get version numbers of locally installed npm packages - glob, string, or comma delimited list\n --npmGlobalPackages Get version numbers of globally installed npm packages\n\n --duplicates Mark duplicate npm packages inside parentheses eg. (2.1.4)\n --fullTree Traverse entire node_modules dependency tree, not just top level\n\n --markdown Print output in markdown format\n --json Print output in JSON format\n --console Print to console (defaults to on for CLI usage, off for programmatic usage)\n --showNotFound Don't filter out values marked 'Not Found'\n --title Give your report a top level title ie 'Environment Report'\n\n --clipboard *Removed - use clipboardy or clipboard-cli directly*\n `),process.exit(0)):(o.version||o.v||o._.indexOf("version")>-1)&&(console.log(version),process.exit(0)),n.cli(o)},function(e,t){function r(e){return"number"==typeof e||(!!/^0x[0-9a-f]+$/i.test(e)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}e.exports=function(e,t){t||(t={});var n={bools:{},strings:{},unknownFn:null};"function"==typeof t.unknown&&(n.unknownFn=t.unknown),"boolean"==typeof t.boolean&&t.boolean?n.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(e){n.bools[e]=!0});var o={};Object.keys(t.alias||{}).forEach(function(e){o[e]=[].concat(t.alias[e]),o[e].forEach(function(t){o[t]=[e].concat(o[e].filter(function(e){return t!==e}))})}),[].concat(t.string).filter(Boolean).forEach(function(e){n.strings[e]=!0,o[e]&&(n.strings[o[e]]=!0)});var i=t.default||{},a={_:[]};Object.keys(n.bools).forEach(function(e){c(e,void 0!==i[e]&&i[e])});var s=[];function c(e,t,i){if(!i||!n.unknownFn||function(e,t){return n.allBools&&/^--[^=]+$/.test(t)||n.strings[e]||n.bools[e]||o[e]}(e,i)||!1!==n.unknownFn(i)){var s=!n.strings[e]&&r(t)?Number(t):t;l(a,e.split("."),s),(o[e]||[]).forEach(function(e){l(a,e.split("."),s)})}}function l(e,t,r){var o=e;t.slice(0,-1).forEach(function(e){void 0===o[e]&&(o[e]={}),o=o[e]});var i=t[t.length-1];void 0===o[i]||n.bools[i]||"boolean"==typeof o[i]?o[i]=r:Array.isArray(o[i])?o[i].push(r):o[i]=[o[i],r]}function u(e){return o[e].some(function(e){return n.bools[e]})}-1!==e.indexOf("--")&&(s=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var p=0;p2?arguments[2]:{},s=n(t);i&&(s=s.concat(Object.getOwnPropertySymbols(t))),o(s,function(n){c(e,n,t[n],r[n])})};u.supportsDescriptors=!!a,e.exports=u},function(e,t){e.exports=require("child_process")},function(e,t){e.exports=require("util")},function(e,t,r){var n=r(9);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,r){"use strict";const n=r(3),o=r(4),i=r(42),s=r(56),a=r(57),c=r(59),u=r(60),l=r(63),p=r(64),h=r(66),f=r(67),d=1e7;function m(e,t,r){let n;return(r=Object.assign({extendEnv:!0,env:{}},r)).extendEnv&&(r.env=Object.assign({},process.env,r.env)),!0===r.__winShell?(delete r.__winShell,n={command:e,args:t,options:r,file:e,original:e}):n=i._parse(e,t,r),(r=Object.assign({maxBuffer:d,stripEof:!0,preferLocal:!0,localDir:n.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},n.options)).stdio=f(r),r.preferLocal&&(r.env=a.env(Object.assign({},r,{cwd:r.localDir}))),{cmd:n.command,args:n.args,opts:r,parsed:n}}function g(e,t){return t&&e.stripEof&&(t=s(t)),t}function y(e,t,r){let n="/bin/sh",o=["-c",t];return r=Object.assign({},r),"win32"===process.platform&&(r.__winShell=!0,n=process.env.comspec||"cmd.exe",o=["/s","/c",`"${t}"`],r.windowsVerbatimArguments=!0),r.shell&&(n=r.shell,delete r.shell),e(n,o,r)}function v(e,t,r,n){if(!e[t])return null;let o;return(o=r?u(e[t],{encoding:r,maxBuffer:n}):u.buffer(e[t],{maxBuffer:n})).catch(e=>{throw e.stream=t,e.message=`${t} ${e.message}`,e})}e.exports=((e,t,r)=>{let o=e;Array.isArray(t)&&t.length>0&&(o+=" "+t.join(" "));const s=m(e,t,r),a=s.opts.encoding,u=s.opts.maxBuffer;let f,d;try{f=n.spawn(s.cmd,s.args,s.opts)}catch(e){return Promise.reject(e)}s.opts.cleanup&&(d=p(()=>{f.kill()}));let y=null,b=!1;const w=()=>{y&&(clearTimeout(y),y=null)};s.opts.timeout>0&&(y=setTimeout(()=>{y=null,b=!0,f.kill(s.opts.killSignal)},s.opts.timeout));const x=new Promise(e=>{f.on("exit",(t,r)=>{w(),e({code:t,signal:r})}),f.on("error",t=>{w(),e({err:t})}),f.stdin&&f.stdin.on("error",t=>{w(),e({err:t})})});function S(){f.stdout&&f.stdout.destroy(),f.stderr&&f.stderr.destroy()}const E=()=>l(Promise.all([x,v(f,"stdout",a,u),v(f,"stderr",a,u)]).then(e=>{const t=e[0],r=e[1],n=e[2];let i=t.err;const a=t.code,c=t.signal;if(d&&d(),i||0!==a||null!==c){if(!i){let e="";Array.isArray(s.opts.stdio)?("inherit"!==s.opts.stdio[2]&&(e+=e.length>0?n:`\n${n}`),"inherit"!==s.opts.stdio[1]&&(e+=`\n${r}`)):"inherit"!==s.opts.stdio&&(e=`\n${n}${r}`),(i=new Error(`Command failed: ${o}${e}`)).code=a<0?h(a):a}if(i.killed=i.killed||f.killed,i.stdout=r,i.stderr=n,i.failed=!0,i.signal=c||null,i.cmd=o,i.timedOut=b,!s.opts.reject)return i;throw i}return{stdout:g(s.opts,r),stderr:g(s.opts,n),code:0,failed:!1,killed:!1,signal:null,cmd:o,timedOut:!1}}),S);return i._enoent.hookChildProcess(f,s.parsed),function(e,t){const r=t.input;null!==r&&void 0!==r&&(c(r)?r.pipe(e.stdin):e.stdin.end(r))}(f,s.opts),f.then=((e,t)=>E().then(e,t)),f.catch=(e=>E().catch(e)),f}),e.exports.stdout=function(){return e.exports.apply(null,arguments).then(e=>e.stdout)},e.exports.stderr=function(){return e.exports.apply(null,arguments).then(e=>e.stderr)},e.exports.shell=((t,r)=>y(e.exports,t,r)),e.exports.sync=((e,t,r)=>{const o=m(e,t,r);if(c(o.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const i=n.spawnSync(o.cmd,o.args,o.opts);if(i.error||0!==i.status)throw i.error||new Error(""===i.stderr?i.stdout:i.stderr);return i.stdout=g(o.opts,i.stdout),i.stderr=g(o.opts,i.stderr),i}),e.exports.shellSync=((t,r)=>y(e.exports.sync,t,r)),e.exports.spawn=o.deprecate(e.exports,"execa.spawn() is deprecated. Use execa() instead.")},function(e,t){e.exports=require("os")},function(e,t,r){const n=r(0),o=r(1),i=r(3),s=r(16),a=r(11),c=r(86),u=e=>new Promise(t=>{i.exec(e,{stdio:[0,"pipe","ignore"]},(e,r)=>{t((e?"":r.toString()||"").trim())})}),l=function(e){const t=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===e&&console.log(e,JSON.stringify(t))},p=e=>new Promise(t=>{o.stat(e,r=>t(r?null:e))}),h=e=>new Promise(t=>{e||t(null),o.readFile(e,"utf8",(e,r)=>t(r||null))}),f=e=>p(e).then(h).then(e=>e?JSON.parse(e):null),d=/\d+\.[\d+|.]+/g,m=e=>{l("trace","findDarwinApplication",e);const t=`mdfind "kMDItemCFBundleIdentifier=='${e}'"`;return l("trace",t),u(t).then(e=>e.replace(/(\s)/g,"\\ "))},g=(e,t)=>{var r=(t||["CFBundleShortVersionString"]).map(function(e){return"-c Print:"+e});return["/usr/libexec/PlistBuddy"].concat(r).concat([e]).join(" ")},y=(e,t)=>{const r=[];let n=null;for(;null!==(n=e.exec(t));)r.push(n);return r};e.exports={run:u,log:l,fileExists:p,readFile:h,requireJson:f,versionRegex:d,findDarwinApplication:m,generatePlistBuddyCommand:g,matchAll:y,parseSDKManagerOutput:e=>{const t=e.split("Available")[0];return{apiLevels:y(c.androidAPILevels,t).map(e=>e[1]),buildTools:y(c.androidBuildTools,t).map(e=>e[1]),systemImages:y(c.androidSystemImages,t).map(e=>e[1].split("|").map(e=>e.trim())).map(e=>e[0].split(";")[0]+" | "+e[2].split(" System Image")[0])}},isObject:e=>"object"==typeof e&&!Array.isArray(e),noop:e=>e,pipe:e=>t=>e.reduce((e,t)=>t(e),t),browserBundleIdentifiers:{Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:e=>(i.execSync(e,{stdio:[0,"pipe","ignore"]}).toString()||"").trim(),which:e=>new Promise(t=>s(e,(e,r)=>t(r))),getDarwinApplicationVersion:e=>{var t;return l("trace","getDarwinApplicationVersion",e),t="darwin"!==process.platform?"N/A":m(e).then(e=>u(g(n.join(e,"Contents","Info.plist"),["CFBundleShortVersionString"]))),Promise.resolve(t)},uniq:e=>Array.from(new Set(e)),toReadableBytes:e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return e?(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][t]:"0 Bytes"},omit:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)<0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),pick:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)>=0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),getPackageJsonByName:e=>f(n.join(process.cwd(),"node_modules",e,"package.json")),getPackageJsonByPath:e=>f(n.join(process.cwd(),e)),getPackageJsonByFullPath:e=>(l("trace","getPackageJsonByFullPath",e),f(e)),getAllPackageJsonPaths:e=>(l("trace","getAllPackageJsonPaths",e),new Promise(t=>{const r=(e,r)=>t(r||[]);return a(e?n.join("node_modules",e,"package.json"):n.join("node_modules","**","package.json"),r)})),sortObject:e=>Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}),findVersion:(e,t,r)=>{const n=r||0,o=t||d,i=e.match(o);return i?i[n]:e},condensePath:e=>(e||"").replace(process.env.HOME,"~"),determineFound:(e,t,r)=>(l("trace","determineFound",e,t,r),"N/A"===t||"N/A"===t&&"N/A"===r?Promise.resolve([e,"N/A"]):t?r?Promise.resolve([e,t,r]):Promise.resolve([e,t]):Promise.resolve([e,"Not Found"]))}},function(e,t,r){"use strict";var n=r(100);e.exports=Function.prototype.bind||n},function(e,t){e.exports=require("assert")},function(e,t,r){e.exports=b;var n=r(1),o=r(20),i=r(12),s=(i.Minimatch,r(82)),a=r(19).EventEmitter,c=r(0),u=r(10),l=r(13),p=r(84),h=r(21),f=(h.alphasort,h.alphasorti,h.setopts),d=h.ownProp,m=r(85),g=(r(4),h.childrenIgnored),y=h.isIgnored,v=r(23);function b(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return p(e,t)}return new x(e,t,r)}b.sync=p;var w=b.GlobSync=p.GlobSync;function x(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof x))return new x(e,t,r);f(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=v(r),this.on("error",r),this.on("end",function(e){r(null,e)}));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var i=!0,s=0;s1)return!0;for(var o=0;othis.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!o||"DIR"===i)return t(null,i);if(o&&"FILE"===i)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var a=s.isDirectory()?"DIR":"FILE";return o&&"FILE"===a?t():t(null,a,s)}var c=this,u=m("stat\0"+r,function(o,i){if(i&&i.isSymbolicLink())return n.stat(r,function(n,o){n?c._stat2(e,r,null,i,t):c._stat2(e,r,n,o,t)});c._stat2(e,r,o,i,t)});u&&n.lstat(r,u)},x.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,n)}},function(e,t,r){e.exports=d,d.Minimatch=m;var n={sep:"/"};try{n=r(0)}catch(e){}var o=d.GLOBSTAR=m.GLOBSTAR={},i=r(79),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",p="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{});var h=/\/+/;function f(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function d(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new m(t,r).match(e))}function m(e,t){if(!(this instanceof m))return new m(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function g(e,t){if(t||(t=this instanceof m?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}d.filter=function(e,t){return t=t||{},function(r,n,o){return d(r,e,t)}},d.defaults=function(e){if(!e||!Object.keys(e).length)return d;var t=d,r=function(r,n,o){return t.minimatch(r,n,f(e,o))};return r.Minimatch=function(r,n){return new t.Minimatch(r,f(e,n))},r},m.defaults=function(e){return e&&Object.keys(e).length?d.defaults(e).Minimatch:m},m.prototype.debug=function(){},m.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map(function(e){return e.split(h)}),this.debug(this.pattern,r),r=r.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},m.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(this.options.nonegate)return;for(var n=0,o=e.length;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return o;if(""===e)return"";var n,i="",u=!!r.nocase,l=!1,h=[],f=[],d=!1,m=-1,g=-1,v="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(n){switch(n){case"*":i+=c,u=!0;break;case"?":i+=a,u=!0;break;default:i+="\\"+n}b.debug("clearStateChar %j %j",n,i),n=!1}}for(var x,S=0,E=e.length;S-1;k--){var _=f[k],C=i.slice(0,_.reStart),N=i.slice(_.reStart,_.reEnd-8),F=i.slice(_.reEnd-8,_.reEnd),D=i.slice(_.reEnd);F+=D;var $=C.split("(").length-1,M=D;for(S=0;S<$;S++)M=M.replace(/\)[+*?]?/,"");var V="";""===(D=M)&&t!==y&&(V="$");var B=C+N+D+V+F;i=B}""!==i&&u&&(i="(?=.)"+i);A&&(i=v+i);if(t===y)return[i,u];if(!u)return e.replace(/\\(.)/g,"$1");var R=r.nocase?"i":"";try{var L=new RegExp("^"+i+"$",R)}catch(e){return new RegExp("$.")}return L._glob=e,L._src=i,L};var y={};d.makeRe=function(e,t){return new m(e,t||{}).makeRe()},m.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?c:t.dot?u:l,n=t.nocase?"i":"",i=e.map(function(e){return e.map(function(e){return e===o?r:"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},d.match=function(e,t,r){var n=new m(t,r=r||{});return e=e.filter(function(e){return n.match(e)}),n.options.nonull&&!e.length&&e.push(t),e},m.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/"));e=e.split(h),this.debug(this.pattern,"split",e);var o,i,s=this.set;for(this.debug(this.pattern,"set",s),i=e.length-1;i>=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,h,t,f),h!==a))}if("string"==typeof l?(u=n.nocase?p.toLowerCase()===l.toLowerCase():p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}},function(e,t,r){"use strict";function n(e){return"/"===e.charAt(0)}function o(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?o:n,e.exports.posix=n,e.exports.win32=o},function(e,t,r){"use strict";var n=Function.prototype.toString,o=/^\s*class /,i=function(e){try{var t=n.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return o.test(t)}catch(e){return!1}},s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(a)return function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,r){"use strict";var n=r(0),o=r(16),i=new(r(17))({max:50,maxAge:3e4});e.exports=function(e,t){var r;if(t=!!t,r=i.get(e+"!"+t),i.has(e))return i.get(e);try{r=t?o.sync(e,{pathExt:n.delimiter+(process.env.PATHEXT||"")}):o.sync(e)}catch(e){}return i.set(e+"!"+t,r),r}},function(e,t,r){e.exports=u,u.sync=function(e,t){for(var r=c(e,t=t||{}),n=r.env,i=r.ext,u=r.extExe,l=[],p=0,h=n.length;pt.maxAge:e[p]&&r>e[p]}function x(e){if(e[c]>e[a])for(var t=e[d].tail;e[c]>e[a]&&null!==t;){var r=t.prev;S(e,t),t=r}}function S(e,t){if(t){var r=t.value;e[h]&&e[h](r.key,r.value),e[c]-=r.length,e[m].delete(r.key),e[d].removeNode(t)}}Object.defineProperty(y.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,x(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(e){this[l]=!!e},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[p]=e,x(this)},get:function(){return this[p]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=g),e!==this[u]&&(this[u]=e,this[c]=0,this[d].forEach(function(e){e.length=this[u](e.value,e.key),this[c]+=e.length},this)),x(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),y.prototype.rforEach=function(e,t){t=t||this;for(var r=this[d].tail;null!==r;){var n=r.prev;v(this,e,r,t),r=n}},y.prototype.forEach=function(e,t){t=t||this;for(var r=this[d].head;null!==r;){var n=r.next;v(this,e,r,t),r=n}},y.prototype.keys=function(){return this[d].toArray().map(function(e){return e.key},this)},y.prototype.values=function(){return this[d].toArray().map(function(e){return e.value},this)},y.prototype.reset=function(){this[h]&&this[d]&&this[d].length&&this[d].forEach(function(e){this[h](e.key,e.value)},this),this[m]=new o,this[d]=new s,this[c]=0},y.prototype.dump=function(){return this[d].map(function(e){if(!w(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}},this).toArray().filter(function(e){return e})},y.prototype.dumpLru=function(){return this[d]},y.prototype.inspect=function(e,t){var r="LRUCache {",n=!1;this[l]&&(r+="\n allowStale: true",n=!0);var o=this[a];o&&o!==1/0&&(n&&(r+=","),r+="\n max: "+i.inspect(o,t),n=!0);var s=this[p];s&&(n&&(r+=","),r+="\n maxAge: "+i.inspect(s,t),n=!0);var h=this[u];h&&h!==g&&(n&&(r+=","),r+="\n length: "+i.inspect(this[c],t),n=!0);var f=!1;return this[d].forEach(function(e){f?r+=",\n ":(n&&(r+=",\n"),f=!0,r+="\n ");var o=i.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==s&&(a.maxAge=e.maxAge),h!==g&&(a.length=e.length),w(this,e)&&(a.stale=!0),a=i.inspect(a,t).split("\n").join("\n "),r+=o+" => "+a}),(f||n)&&(r+="\n"),r+="}"},y.prototype.set=function(e,t,r){var n=(r=r||this[p])?Date.now():0,o=this[u](t,e);if(this[m].has(e)){if(o>this[a])return S(this,this[m].get(e)),!1;var i=this[m].get(e).value;return this[h]&&(this[f]||this[h](e,i.value)),i.now=n,i.maxAge=r,i.value=t,this[c]+=o-i.length,i.length=o,this.get(e),x(this),!0}var s=new function(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}(e,t,o,n,r);return s.length>this[a]?(this[h]&&this[h](e,t),!1):(this[c]+=s.length,this[d].unshift(s),this[m].set(e,this[d].head),x(this),!0)},y.prototype.has=function(e){return!!this[m].has(e)&&!w(this,this[m].get(e).value)},y.prototype.get=function(e){return b(this,e,!0)},y.prototype.peek=function(e){return b(this,e,!1)},y.prototype.pop=function(){var e=this[d].tail;return e?(S(this,e),e.value):null},y.prototype.del=function(e){S(this,this[m].get(e))},y.prototype.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{var i=o-t;i>0&&this.set(n.k,n.v,i)}}},y.prototype.prune=function(){var e=this;this[m].forEach(function(t,r){b(e,r,!1)})}},function(e,t,r){"use strict";e.exports=function(e,t){return e=""+e,e=t?'"'+(e=(e=e.replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"))+'"':e.replace(/([()%!^<>&|;,"'\s])/g,"^$1")}},function(e,t){e.exports=require("events")},function(e,t,r){e.exports=l,l.realpath=l,l.sync=p,l.realpathSync=p,l.monkeypatch=function(){n.realpath=l,n.realpathSync=p},l.unmonkeypatch=function(){n.realpath=o,n.realpathSync=i};var n=r(1),o=n.realpath,i=n.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),c=r(78);function u(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function l(e,t,r){if(a)return o(e,t,r);"function"==typeof t&&(r=t,t=null),o(e,t,function(n,o){u(n)?c.realpath(e,t,r):r(n,o)})}function p(e,t){if(a)return i(e,t);try{return i(e,t)}catch(r){if(u(r))return c.realpathSync(e,t);throw r}}},function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.alphasort=u,t.alphasorti=c,t.setopts=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(e,r),e.changedCwd=!1;var i=process.cwd();n(r,"cwd")?(e.cwd=o.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i;e.root=r.root||o.resolve(e.cwd,"/"),e.root=o.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=s(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new a(t,r),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,o=e.matches.length;n2?arguments[2]:[];if(!this.IsCallable(e))throw new TypeError(e+" is not a function");return e.apply(t,r)},ToPrimitive:o,ToNumber:function(e){var t=f(e)?e:o(e,Number);if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof t){if(v(t))return this.ToNumber(d(y(t,2),2));if(b(t))return this.ToNumber(d(y(t,2),8));if(E(t)||j(t))return NaN;var r=function(e){return I(e,P,"")}(t);if(r!==t)return this.ToNumber(r)}return Number(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(a(t)||0===t||!c(t))return 0;var r=p(t)*Math.floor(Math.abs(t));return h(r,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(a(t)||t<=0)return 0;if(t>=255)return 255;var r=Math.floor(e);return r+.5u?u:t},CanonicalNumericIndexString:function(e){if("[object String]"!==i.call(e))throw new TypeError("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:T.CheckObjectCoercible,IsArray:Array.isArray||function(e){return"[object Array]"===i.call(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:function(e){return!Object.preventExtensions||!f(e)&&Object.isExtensible(e)},IsInteger:function(e){if("number"!=typeof e||a(e)||!c(e))return!1;var t=Math.abs(e);return Math.floor(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(s){var t=e[Symbol.match];if(void 0!==t)return T.ToBoolean(t)}return A(e)},SameValueZero:function(e,t){return e===t||a(e)&&a(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(e,t);if(null!=r){if(!this.IsCallable(r))throw new TypeError(t+"is not a function");return r}},Get:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":T.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==this.Type(r))throw new TypeError("O.constructor is not an Object");var n=s&&Symbol.species?r[Symbol.species]:void 0;if(null==n)return t;if(this.IsConstructor(n))return n;throw new TypeError("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(n(e,"[[Value]]")||(e["[[Value]]"]=void 0),n(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(n(e,"[[Get]]")||(e["[[Get]]"]=void 0),n(e,"[[Set]]")||(e["[[Set]]"]=void 0)),n(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),n(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,r,n){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");if("Boolean"!==this.Type(n))throw new TypeError("Throw must be a Boolean");if(n)return e[t]=r,!0;try{e[t]=r}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return n(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(s&&"symbol"==typeof Symbol.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");var r=g(arguments,2),n=this.GetV(e,t);return this.Call(n,e,r)},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new TypeError("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new TypeError("R must be an Object");if("String"!==this.Type(t))throw new TypeError("S must be a String");var r=this.Get(e,"exec");if(this.IsCallable(r)){var n=this.Call(r,e,[t]);if(null===n||"Object"===this.Type(n))return n;throw new TypeError('"exec" method must return `null` or an Object')}return w(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new TypeError("Assertion failed: length must be an integer >= 0");var r,n=0===t?0:t;if(this.IsArray(e)&&(r=this.Get(e,"constructor"),"Object"===this.Type(r)&&s&&Symbol.species&&null===(r=this.Get(r,Symbol.species))&&(r=void 0)),void 0===r)return Array(n);if(!this.IsConstructor(r))throw new TypeError("C must be a constructor");return new r(n)},CreateDataProperty:function(e,t,r){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=Object.getOwnPropertyDescriptor(e,t),o=n||"function"!=typeof Object.isExtensible||Object.isExtensible(e);if(n&&(!n.writable||!n.configurable)||!o)return!1;var i={configurable:!0,enumerable:!0,value:r,writable:!0};return Object.defineProperty(e,t,i),!0},CreateDataPropertyOrThrow:function(e,t,r){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(e,t,r);if(!n)throw new TypeError("unable to create data property");return n},AdvanceStringIndex:function(e,t,r){if("String"!==this.Type(e))throw new TypeError("Assertion failed: Type(S) is not String");if(!this.IsInteger(t))throw new TypeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if(t<0||t>u)throw new RangeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if("Boolean"!==this.Type(r))throw new TypeError("Assertion failed: Type(unicode) is not Boolean");if(!r)return t+1;if(t+1>=e.length)return t+1;var n=e.charCodeAt(t);if(n<55296||n>56319)return t+1;var o=e.charCodeAt(t+1);return o<56320||o>57343?t+1:t+2}});delete k.CheckObjectCoercible,e.exports=k},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(Object.assign)return Object.assign(e,t);for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var r=e%t;return Math.floor(r>=0?r:r+t)}},function(e,t,r){"use strict";var n=r(24),o=Number.isNaN||function(e){return e!=e},i=Number.isFinite||function(e){return"number"==typeof e&&global.isFinite(e)},s=Array.prototype.indexOf;e.exports=function(e){var t=arguments.length>1?n.ToInteger(arguments[1]):0;if(s&&!o(e)&&i(t)&&void 0!==e)return s.apply(this,arguments)>-1;var r=n.ToObject(this),a=n.ToLength(r.length);if(0===a)return!1;for(var c=t>=0?t:Math.max(0,a+t);c0?e:s.defaults,a=Object.entries(r).reduce((e,r)=>{const n=r[0],i=r[1],s=o[`get${n}`];return s?(i&&e.push(s(i,t)),e):e=e.concat((i||[]).map(e=>{const t=o[`get${e.replace(/\s/g,"")}Info`];return t?t():Promise.resolve(["Unknown"])}))},[]);return Promise.all(a).then(e=>{const r=e.reduce((e,t)=>(t&&t[0]&&Object.assign(e,{[t[0]]:t}),e),{});return function(e,t){const r=(()=>t.json?i.json:t.markdown?i.markdown:i.yaml)();t.console&&console.log(r(e,Object.assign({},t,{console:!0})));const o=r(e,Object.assign({},t,{console:!1}));return t.clipboard&&n.writeSync(o),o}(Object.entries(s.defaults).reduce((e,t)=>{const n=t[0],o=t[1];return r[n]?Object.assign(e,{[n]:r[n][1]}):Object.assign(e,{[n]:(o||[]).reduce((e,t)=>r[t]?(r[t].shift(),1===r[t].length?Object.assign(e,{[t]:r[t][0]}):Object.assign(e,{[t]:{version:r[t][0],path:r[t][1]}})):e,{})})},{}),t)})}Array.prototype.includes||c.shim(),Object.entries||u.shim(),Object.values||l.shim(),e.exports={cli:function(e){if(e.all)return p(Object.assign({},s.defaults,{npmPackages:!0,npmGlobalPackages:!0}),e);if(e.raw)return p(JSON.parse(e.raw),e);if(e.helper){const t=o[`get${e.helper}`]||o[`get${e.helper}Info`]||o[e.helper];return t?t().then(console.log):console.error("Not Found")}const t=(e,t)=>e.toLowerCase().includes(t.toLowerCase()),r=Object.keys(e).filter(e=>Object.keys(s.defaults).some(r=>t(r,e))),n=Object.entries(s.defaults).reduce((n,o)=>r.some(e=>t(e,o[0]))?Object.assign(n,{[o[0]]:o[1]||e[o[0]]}):n,{});return e.preset?(s[e.preset]||console.error(`\nNo "${e.preset}" preset found.`),p(Object.assign({},a.omit(s[e.preset],["options"]),n),Object.assign({},s[e.preset].options,a.pick(e,["duplicates","fullTree","json","markdown","console","clipboard"])))):p(n,e)},helpers:o,main:p,run:function(e,t){return p(e,t)}}},function(e,t,r){"use strict";const n=r(41),o=r(68),i=r(69),s=r(70);function a(){switch(process.platform){case"darwin":return i;case"win32":return s;case"android":if("/data/data/com.termux/files/usr"!==process.env.PREFIX)throw new Error("You need to install Termux for this module to work on Android: https://termux.com");return n;default:return o}}t.write=(e=>"string"!=typeof e?Promise.reject(new TypeError(`Expected a string, got ${typeof e}`)):a().copy({input:e}).then(()=>{})),t.read=(()=>a().paste({stripEof:!1})),t.writeSync=(e=>{if("string"!=typeof e)throw new TypeError(`Expected a string, got ${typeof e}`);a().copySync({input:e})}),t.readSync=(()=>a().pasteSync({stripEof:!1}).stdout)},function(e,t,r){"use strict";const n=r(6),o=e=>{if("ENOENT"===e.code)throw new Error("Couldn't find the termux-api scripts. You can install them with: apt install termux-api");throw e};e.exports={copy:e=>n("termux-clipboard-set",e).catch(o),paste:e=>n.stdout("termux-clipboard-get",e).catch(o),copySync:e=>{try{return n.sync("termux-clipboard-set",e)}catch(e){o(e)}},pasteSync:e=>{try{return n.sync("termux-clipboard-get",e)}catch(e){o(e)}}}},function(e,t,r){"use strict";var n=r(3),o=r(43),i=r(55),s=n.spawnSync;function a(e,t,r){var s,a;return s=o(e,t,r),a=n.spawn(s.command,s.args,s.options),i.hookChildProcess(a,s),a}e.exports=a,e.exports.spawn=a,e.exports.sync=function(e,t,n){var a,c;if(!s)try{s=r(!function(){var e=new Error("Cannot find module 'spawn-sync'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){throw new Error("In order to use spawnSync on node 0.10 or older, you must install spawn-sync:\n\n npm install spawn-sync --save")}return a=o(e,t,n),(c=s(a.command,a.args,a.options)).error=c.error||i.verifyENOENTSync(c.status,a),c},e.exports._parse=o,e.exports._enoent=i},function(e,t,r){"use strict";var n=r(15),o=r(50),i=r(18),s=r(51),a=r(52),c="win32"===process.platform,u=/\.(?:com|exe)$/i,l=parseInt(process.version.substr(1).split(".")[0],10)>=6||4===parseInt(process.version.substr(1).split(".")[0],10)&&parseInt(process.version.substr(1).split(".")[1],10)>=8;e.exports=function(e,t,r){var p;return t&&!Array.isArray(t)&&(r=t,t=null),p={command:e,args:t=t?t.slice(0):[],options:r=r||{},file:void 0,original:e},r.shell?function(e){var t;return l?e:(t=[e.command].concat(e.args).join(" "),c?(e.command="string"==typeof e.options.shell?e.options.shell:process.env.comspec||"cmd.exe",e.args=["/d","/s","/c",'"'+t+'"'],e.options.windowsVerbatimArguments=!0):("string"==typeof e.options.shell?e.command=e.options.shell:"android"===process.platform?e.command="/system/bin/sh":e.command="/bin/sh",e.args=["-c",t]),e)}(p):function(e){var t,r,l;return c?(e.file=n(e.command),e.file=e.file||n(e.command,!0),(t=e.file&&a(e.file))?(e.args.unshift(e.file),e.command=t,r=o||!u.test(n(t)||n(t,!0))):r=o||!u.test(e.file),r&&(l="echo"!==e.command,e.command=s(e.command),e.args=e.args.map(function(e){return i(e,l)}),e.args=["/d","/s","/c",'"'+e.command+(e.args.length?" "+e.args.join(" "):"")+'"'],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0),e):e}(p)}},function(e,t,r){var n;r(1);function o(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(function(r,n){o(e,t||{},function(e,t){e?n(e):r(t)})})}n(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}n="win32"===process.platform||global.TESTING_WINDOWS?r(45):r(46),e.exports=o,o.sync=function(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},function(e,t,r){e.exports=i,i.sync=function(e,t){return o(n.statSync(e),e,t)};var n=r(1);function o(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n0)for(var n=0,o=arguments.length;n1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&othis.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)n.push(i.value);return n},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this}},function(e,t,r){"use strict";var n;e.exports="win32"===process.platform&&0===(n=process.version.substr(1).split(".").map(function(e){return parseInt(e,10)}))[0]&&n[1]<12},function(e,t,r){"use strict";var n=r(18);e.exports=function(e){return/^[a-z0-9_-]+$/i.test(e)?e:n(e,!0)}},function(e,t,r){"use strict";var n=r(1),o=r(17),i=r(53),s=new o({max:50,maxAge:3e4});e.exports=function(e){var t,r,o;if(s.has(e))return s.get(e);t=new Buffer(150);try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return o=i(t.toString()),s.set(e,o),o}},function(e,t,r){"use strict";var n=r(54);e.exports=function(e){var t=e.match(n);if(!t)return null;var r=t[0].replace(/#! ?/,"").split(" "),o=r[0].split("/").pop(),i=r[1];return"env"===o?i:o+(i?" "+i:"")}},function(e,t,r){"use strict";e.exports=/^#!.*/},function(e,t,r){"use strict";var n="win32"===process.platform,o=r(15),i=0===process.version.indexOf("v0.10.");function s(e,t){var r;return(r=new Error(t+" "+e+" ENOENT")).code=r.errno="ENOENT",r.syscall=t+" "+e,r}function a(e,t){return n&&1===e&&!t.file?s(t.original,"spawn"):null}e.exports.hookChildProcess=function(e,t){var r;n&&(r=e.emit,e.emit=function(n,o){var i;return"exit"===n&&(i=a(o,t))?r.call(e,"error",i):r.apply(e,arguments)})},e.exports.verifyENOENT=a,e.exports.verifyENOENTSync=function(e,t){return n&&1===e&&!t.file?s(t.original,"spawnSync"):i&&-1===e&&(t.file=n?t.file:o(t.original),!t.file)?s(t.original,"spawnSync"):null},e.exports.notFoundError=s},function(e,t,r){"use strict";e.exports=function(e){var t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}},function(e,t,r){"use strict";const n=r(0),o=r(58);e.exports=(e=>{let t;e=Object.assign({cwd:process.cwd(),path:process.env[o()]},e);let r=n.resolve(e.cwd);const i=[];for(;t!==r;)i.push(n.join(r,"node_modules/.bin")),t=r,r=n.resolve(r,"..");return i.push(n.dirname(process.execPath)),i.concat(e.path).join(n.delimiter)}),e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env),n=o({env:r});return t.path=r[n],r[n]=e.exports(t),r})},function(e,t,r){"use strict";e.exports=(e=>{const t=(e=e||{}).env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).find(e=>"PATH"===e.toUpperCase())||"Path"})},function(e,t,r){"use strict";var n=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};n.writable=function(e){return n(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},n.readable=function(e){return n(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},n.duplex=function(e){return n.writable(e)&&n.readable(e)},n.transform=function(e){return n.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},function(e,t,r){"use strict";const n=r(61);function o(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));const r=(t=Object.assign({maxBuffer:1/0},t)).maxBuffer;let o,i;const s=new Promise((s,a)=>{const c=e=>{e&&(e.bufferedData=o.getBufferedValue()),a(e)};o=n(t),e.once("error",c),e.pipe(o),o.on("data",()=>{o.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),o.once("error",c),o.on("end",s),i=(()=>{e.unpipe&&e.unpipe(o)})});return s.then(i,i),s.then(()=>o.getBufferedValue())}e.exports=o,e.exports.buffer=((e,t)=>o(e,Object.assign({},t,{encoding:"buffer"}))),e.exports.array=((e,t)=>o(e,Object.assign({},t,{array:!0})))},function(e,t,r){"use strict";const n=r(62).PassThrough;e.exports=(e=>{const t=(e=Object.assign({},e)).array;let r=e.encoding;const o="buffer"===r;let i=!1;t?i=!(r||o):r=r||"utf8",o&&(r=null);let s=0;const a=[],c=new n({objectMode:i});return r&&c.setEncoding(r),c.on("data",e=>{a.push(e),i?s=a.length:s+=e.length}),c.getBufferedValue=(()=>t?a:o?Buffer.concat(a,s):a.join("")),c.getBufferedLength=(()=>s),c})},function(e,t){e.exports=require("stream")},function(e,t,r){"use strict";e.exports=((e,t)=>(t=t||(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))))},function(e,t,r){var n,o=r(10),i=r(65),s=r(19);function a(){l&&(l=!1,i.forEach(function(e){try{process.removeListener(e,u[e])}catch(e){}}),process.emit=d,process.reallyExit=h,n.count-=1)}function c(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))}"function"!=typeof s&&(s=s.EventEmitter),process.__signal_exit_emitter__?n=process.__signal_exit_emitter__:((n=process.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),e.exports=function(e,t){o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===l&&p();var r="exit";t&&t.alwaysLast&&(r="afterexit");return n.on(r,e),function(){n.removeListener(r,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}},e.exports.unload=a;var u={};i.forEach(function(e){u[e]=function(){process.listeners(e).length===n.count&&(a(),c("exit",null,e),c("afterexit",null,e),process.kill(process.pid,e))}}),e.exports.signals=function(){return i},e.exports.load=p;var l=!1;function p(){l||(l=!0,n.count+=1,i=i.filter(function(e){try{return process.on(e,u[e]),!0}catch(e){return!1}}),process.emit=m,process.reallyExit=f)}var h=process.reallyExit;function f(e){process.exitCode=e||0,c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),h.call(process,process.exitCode)}var d=process.emit;function m(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=d.apply(this,arguments);return c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),r}return d.apply(this,arguments)}},function(e,t){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},function(e,t,r){"use strict";let n;try{if("function"!=typeof(n=process.binding("uv")).errname)throw new TypeError("uv.errname is not a function")}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e),n=null}function o(e,t){if(e)return e.errname(t);if(!(t<0))throw new Error("err >= 0");return`Unknown system error ${t}`}e.exports=(e=>o(n,e)),e.exports.__test__=o},function(e,t,r){"use strict";const n=["stdin","stdout","stderr"];e.exports=(e=>{if(!e)return null;if(e.stdio&&(e=>n.some(t=>Boolean(e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof e.stdio)return e.stdio;const t=e.stdio||[];if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=[],o=Math.max(t.length,n.length);for(let i=0;i{if("ENOENT"===e.code)throw new Error("Couldn't find the required `xsel` binary. On Debian/Ubuntu you can install it with: sudo apt install xsel");throw e},s=n.join(t,"../fallbacks/linux/xsel");e.exports={copy:e=>o(s,["--clipboard","--input"],e).catch(()=>o("xsel",["--clipboard","--input"],e)).catch(i),paste:e=>o.stdout(s,["--clipboard","--output"],e).catch(()=>o.stdout("xsel",["--clipboard","--output"],e)).catch(i),copySync:e=>{try{return o.sync(s,["--clipboard","--input"],e)}catch(t){try{return o.sync("xsel",["--clipboard","--input"],e)}catch(e){i(e)}}},pasteSync:e=>{try{return o.sync(s,["--clipboard","--output"],e)}catch(t){try{return o.sync("xsel",["--clipboard","--output"],e)}catch(e){i(e)}}}}}).call(this,"/")},function(e,t,r){"use strict";const n=r(6),o=Object.assign({},process.env,{LC_CTYPE:"UTF-8"});e.exports={copy:e=>n("pbcopy",Object.assign({},e,{env:o})),paste:e=>n.stdout("pbpaste",Object.assign({},e,{env:o})),copySync:e=>n.sync("pbcopy",Object.assign({},e,{env:o})),pasteSync:e=>n.sync("pbpaste",Object.assign({},e,{env:o}))}},function(e,t,r){"use strict";(function(t){const n=r(0),o=r(6),i="x64"===r(71)()?n.join(t,"../fallbacks/windows/clipboard_x86_64.exe"):n.join(t,"../fallbacks/windows/clipboard_i686.exe");e.exports={copy:e=>o(i,["--copy"],e),paste:e=>o.stdout(i,["--paste"],e),copySync:e=>o.sync(i,["--copy"],e),pasteSync:e=>o.sync(i,["--paste"],e)}}).call(this,"/")},function(e,t,r){var n=r(3),o=r(1),i=r(0);e.exports=function(){if("x64"===process.arch)return"x64";if("darwin"===process.platform)return"x64";if("win32"===process.platform){var e=!1;try{e=!(!process.env.SYSTEMROOT||!o.statSync(process.env.SYSTEMROOT))}catch(e){}var t=e?process.env.SYSTEMROOT:"C:\\Windows",r=!1;try{r=!!o.statSync(i.join(t,"sysnative"))}catch(e){}return r?"x64":"x86"}return"linux"===process.platform&&"64\n"===n.execSync("getconf LONG_BIT",{encoding:"utf8"})?"x64":"x86"}},function(e,t,r){const n=r(7),o=r(73),i=r(0),s=r(77),a=r(8),c="N/A",u="darwin"===process.platform,l="linux"===process.platform,p=process.platform.startsWith("win");e.exports=Object.assign({},a,s,{getiOSSDKInfo:()=>u?a.run("xcodebuild -showsdks").then(e=>e.match(/[\w]+\s[\d|.]+/g)).then(a.uniq).then(e=>e.length?["iOS SDK",{Platforms:e}]:["iOS SDK","Not Found"]):Promise.resolve(["iOS SDK",c]),getAndroidSDKInfo:()=>a.run(process.env.ANDROID_HOME?"$ANDROID_HOME/tools/bin/sdkmanager --list":"sdkmanager --list").then(e=>!e&&u?a.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):e).then(e=>{const t=a.parseSDKManagerOutput(e);return t.buildTools.length||t.apiLevels.length||t.systemImages.length?Promise.resolve(["Android SDK",{"API Levels":t.apiLevels||"Not Found","Build Tools":t.buildTools||"Not Found","System Images":t.systemImages||"Not Found"}]):Promise.resolve(["Android SDK","Not Found"])}),getAndroidStudioInfo:()=>{let e;return u?e=a.run(a.generatePlistBuddyCommand(i.join("/","Applications","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])).then(e=>e.split("\n").join(" ")):l?e=Promise.all([a.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(a.findVersion),a.run("cat /opt/android-studio/build.txt")]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"}):p&&(e=Promise.all([a.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then(e=>e.replace(/(\r\n|\n|\r)/gm,"")),a.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then(e=>e.replace(/(\r\n|\n|\r)/gm,""))]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"})),e.then(e=>a.determineFound("Android Studio",e))},getAtomInfo:()=>(a.log("trace","getAtomInfo"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers.Atom),c]).then(e=>a.determineFound("Atom",e[0],e[1]))),getMySQLInfo:()=>(a.log("trace","getMySQLInfo"),Promise.all([a.run("mysql --version").then(e=>`${a.findVersion(e,null,1)}${e.includes("MariaDB")?" (MariaDB)":""}`),a.which("mysql")]).then(e=>a.determineFound("MySQL",e[0],e[1]))),getMongoDBInfo:()=>(a.log("trace","getMongoDBInfo"),Promise.all([a.run("mongo --version").then(a.findVersion),a.which("mongo")]).then(e=>a.determineFound("MongoDB",e[0],e[1]))),getSQLiteInfo:()=>(a.log("trace","getSQLiteInfo"),Promise.all([a.run("sqlite3 --version").then(a.findVersion),a.which("sqlite3")]).then(e=>a.determineFound("SQLite",e[0],e[1]))),getPostgreSQLInfo:()=>(a.log("trace","getPostgreSQLInfo"),Promise.all([a.run("postgres --version").then(a.findVersion),a.which("postgres")]).then(e=>a.determineFound("PostgreSQL",e[0],e[1]))),getCPUInfo:()=>{let e;a.log("trace","getCPUInfo");try{const t=n.cpus();e="("+t.length+") "+n.arch()+" "+t[0].model}catch(t){e="Unknown"}return Promise.all(["CPU",e])},getBashInfo:()=>(a.log("trace","getBashInfo"),Promise.all([a.run("bash --version").then(a.findVersion),a.which("bash")]).then(e=>a.determineFound("Bash",e[0],e[1]))),getPerlInfo:()=>(a.log("trace","getPerlInfo"),Promise.all([a.run("perl -v").then(a.findVersion),a.which("perl")]).then(e=>a.determineFound("Perl",e[0],e[1]))),getPHPInfo:()=>(a.log("trace","getPHPInfo"),Promise.all([a.run("php -v").then(a.findVersion),a.which("php")]).then(e=>a.determineFound("PHP",e[0],e[1]))),getParallelsInfo:()=>(a.log("trace","getParallelsInfo"),Promise.all([a.run("prlctl --version").then(a.findVersion),a.which("prlctl")]).then(e=>a.determineFound("Parallels",e[0],e[1]))),getDockerInfo:()=>(a.log("trace","getDockerInfo"),Promise.all([a.run("docker --version").then(a.findVersion),a.which("docker")]).then(e=>a.determineFound("Docker",e[0],e[1]))),getElixirInfo:()=>(a.log("trace","getElixirInfo"),Promise.all([a.run("elixir --version").then(e=>a.findVersion(e,/[Elixir]+\s([\d+.[\d+|.]+)/,1)),a.which("elixir")]).then(e=>Promise.resolve(a.determineFound("Elixir",e[0],e[1])))),getMemoryInfo:()=>(a.log("trace","getMemoryInfo"),Promise.all(["Memory",`${a.toReadableBytes(n.freemem())} / ${a.toReadableBytes(n.totalmem())}`])),getSublimeTextInfo:()=>(a.log("trace","getSublimeTextInfo"),Promise.all([a.run("subl --version").then(e=>a.findVersion(e,/\d+/)),a.which("subl")]).then(e=>""===e[0]&&u?(a.log("trace","getSublimeTextInfo using plist"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers["Sublime Text"]),c])):e).then(e=>a.determineFound("Sublime Text",e[0],e[1]))),getHomeBrewInfo:()=>{return a.log("trace","getHomeBrewInfo"),u?Promise.all(["Homebrew",a.run("brew --version").then(a.findVersion),a.which("brew")]):Promise.all(["Homebrew",c])},getGoInfo:()=>(a.log("trace","getGoInfo"),Promise.all([a.run("go version").then(a.findVersion),a.which("go")]).then(e=>a.determineFound("Go",e[0],e[1]))),getRubyInfo:()=>(a.log("trace","getRubyInfo"),Promise.all([a.run("ruby -v").then(a.findVersion),a.which("ruby")]).then(e=>a.determineFound("Ruby",e[0],e[1]))),getNodeInfo:()=>(a.log("trace","getNodeInfo"),Promise.all([a.which("node").then(e=>e?a.run(e+" -v"):Promise.resolve("")).then(e=>e.replace("v","")),a.which("node").then(a.condensePath)]).then(e=>a.determineFound("Node",e[0],e[1]))),getnpmInfo:()=>(a.log("trace","getnpmInfo"),Promise.all([a.run("npm -v"),a.which("npm").then(a.condensePath)]).then(e=>a.determineFound("npm",e[0],e[1]))),getShellInfo:()=>{if(a.log("trace","getShellInfo",process.env),u||l){const e=process.env.SHELL||a.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1");return Promise.all([a.run(`${e} --version`).then(a.findVersion),a.which(e)]).then(e=>a.determineFound("Shell",e[0]||"Unknown",e[1]))}return Promise.resolve(["Shell",c])},getOSInfo:()=>{let e;return a.log("trace","getOSInfo"),(e=u?a.run("sw_vers -productVersion "):l?a.run("cat /etc/os-release").then(e=>{const t=(e||"").match(/NAME="(.+)"/),r=(e||"").match(/VERSION="(.+)"/)||[];return`${t[1]} ${r[1]}`.trim()||""}):Promise.resolve()).then(e=>{let t=o(n.platform(),n.release());return e&&(t+=` ${e}`),["OS",t]})},getContainerInfo:()=>(a.log("trace","getContainerInfo"),l?Promise.all([a.fileExists("/.dockerenv"),a.readFile("/proc/self/cgroup")]).then(e=>(a.log("trace","getContainerInfoThen",e),Promise.resolve(["Container",e[0]||e[1]?"Yes":c]))).catch(e=>a.log("trace","getContainerInfoCatch",e)):Promise.resolve(["Container",c])),getWatchmanInfo:()=>(a.log("trace","getWatchmanInfo"),Promise.all([a.which("watchman").then(e=>e?a.run(e+" -v"):void 0),a.which("watchman")]).then(e=>a.determineFound("Watchman",e[0],e[1]))),getVSCodeInfo:()=>(a.log("trace","getVSCodeInfo"),Promise.all([a.run("code --version").then(a.findVersion),a.which("code")]).then(e=>a.determineFound("VSCode",e[0],e[1]))),getIntelliJInfo:()=>(a.log("trace","getIntelliJInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.IntelliJ).then(e=>a.determineFound("IntelliJ",e))),getPhpStormInfo:()=>(a.log("trace","getPhpStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.PhpStorm).then(e=>a.determineFound("PhpStorm",e))),getWebStormInfo:()=>(a.log("trace","getWebStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.WebStorm).then(e=>a.determineFound("WebStorm",e))),getVirtualBoxInfo:()=>(a.log("trace","getVirtualBoxInfo"),Promise.all([a.run("vboxmanage --version").then(a.findVersion),a.which("vboxmanage")]).then(e=>a.determineFound("VirtualBox",e[0],e[1]))),getVMwareFusionInfo:()=>(a.log("trace","getVMwareFusionInfo"),a.getDarwinApplicationVersion("com.vmware.fusion").then(e=>a.determineFound("VMWare Fusion",e,c))),getPythonInfo:()=>(a.log("trace","getPythonInfo"),Promise.all([a.run("python -V 2>&1").then(a.findVersion),a.run("which python")]).then(e=>a.determineFound("Python",e[0],e[1]))),getXcodeInfo:()=>(a.log("trace","getXcodeInfo"),u?Promise.all([a.which("xcodebuild").then(e=>a.run(e+" -version")).then(e=>`${a.findVersion(e)}/${e.split("Build version ")[1]}`),a.which("xcodebuild")]).then(e=>a.determineFound("Xcode",e[0],e[1])):Promise.resolve(["Xcode",c])),getYarnInfo:()=>(a.log("trace","getYarnInfo"),Promise.all([a.run("yarn -v"),a.which("yarn").then(a.condensePath)]).then(e=>a.determineFound("Yarn",e[0],e[1]))),getEdgeInfo:()=>{let e;return a.log("trace","getEdgeInfo"),(e=p&&"10"===n.release().split(".")[0]?a.run("powershell get-appxpackage Microsoft.MicrosoftEdge").then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Edge",e,c))},getInternetExplorerInfo:()=>{let e;if(a.log("trace","getInternetExplorerInfo"),p){const t=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");e=a.run(`wmic datafile where "name='${t}'" get Version`).then(a.findVersion)}else e=Promise.resolve(c);return e.then(e=>a.determineFound("Internet Explorer",e,c))},getChromeInfo:()=>{let e;return a.log("trace","getChromeInfo"),(e=l?a.run("google-chrome --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Chrome).then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Chrome",e,c))},getChromeCanaryInfo:()=>{return a.log("trace","getChromeCanaryInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Chrome Canary"]).then(e=>a.determineFound("Chrome Canary",e,c))},getFirefoxDeveloperEditionInfo:()=>{return a.log("trace","getFirefoxDeveloperEditionInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Developer Edition"]).then(e=>a.determineFound("Firefox Developer Edition",e,c))},getSafariTechnologyPreviewInfo:()=>{return a.log("trace","getSafariTechnologyPreviewInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Safari Technology Preview"]).then(e=>a.determineFound("Safari Technology Preview",e,c))},getSafariInfo:()=>{return a.log("trace","getSafariInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Safari).then(e=>a.determineFound("Safari",e,c))},getFirefoxInfo:()=>{let e;return a.log("trace","getFirefoxInfo"),(e=l?a.run("firefox --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Firefox):Promise.resolve(c)).then(e=>a.determineFound("Firefox",e,c))},getFirefoxNightlyInfo:()=>{let e;return a.log("trace","getFirefoxNightlyInfo"),(e=l?a.run("firefox-trunk --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve(c)).then(e=>a.determineFound("Firefox Nightly",e,c))},getGitInfo:()=>(a.log("trace","getGitInfo"),u||l?Promise.all([a.run("git --version").then(a.findVersion),a.run("which git")]).then(e=>a.determineFound("Git",e[0],e[1])):Promise.resolve(["Git",c])),getMakeInfo:()=>(a.log("trace","getMakeInfo"),u||l?Promise.all([a.run("make --version").then(a.findVersion),a.run("which make")]).then(e=>a.determineFound("Make",e[0],e[1])):Promise.resolve(["Make",c])),getCMakeInfo:()=>(a.log("trace","getCMakeInfo"),u||l?Promise.all([a.run("cmake --version").then(a.findVersion),a.run("which cmake")]).then(e=>a.determineFound("CMake",e[0],e[1])):Promise.resolve(["CMake",c])),getGCCInfo:()=>(a.log("trace","getGCCInfo"),u||l?Promise.all([a.run("gcc -v 2>&1").then(a.findVersion),a.run("which gcc")]).then(e=>a.determineFound("GCC",e[0],e[1])):Promise.resolve(["GCC",c])),getNanoInfo:()=>(a.log("trace","getNanoInfo"),u||l?Promise.all([a.run("nano --version").then(a.findVersion),a.run("which nano")]).then(e=>a.determineFound("Nano",e[0],e[1])):Promise.resolve(["Nano",c])),getEmacsInfo:()=>(a.log("trace","getEmacsInfo"),u||l?Promise.all([a.run("emacs --version").then(a.findVersion),a.run("which emacs")]).then(e=>a.determineFound("Emacs",e[0],e[1])):Promise.resolve(["Emacs",c])),getVimInfo:()=>(a.log("trace","getVimInfo"),u||l?Promise.all([a.run("vim --version").then(a.findVersion),a.run("which vim")]).then(e=>a.determineFound("Vim",e[0],e[1])):Promise.resolve(["Vim",c])),getNvimInfo:()=>(a.log("trace","getNvimInfo"),u||l?Promise.all([a.run("nvim --version").then(a.findVersion),a.run("which nvim")]).then(e=>a.determineFound("Nvim",e[0],e[1])):Promise.resolve(["Vim",c])),getRustInfo:()=>(a.log("trace","getRustInfo"),u||l?Promise.all([a.run("rustup --version").then(a.findVersion),a.run("which rustup")]).then(e=>a.determineFound("Rust",e[0],e[1])):Promise.resolve(["Rust",c])),getScalaInfo:()=>(a.log("trace","getScalaInfo"),u||l?Promise.all([a.run("scalac -version").then(a.findVersion),a.run("which scalac")]).then(e=>a.determineFound("Scala",e[0],e[1])):Promise.resolve(["Scala",c])),getJavaInfo:()=>(a.log("trace","getJavaInfo"),u||l?Promise.all([a.run("javac -version 2>&1").then(a.findVersion),a.run("which javac")]).then(e=>a.determineFound("Java",e[0],e[1])):Promise.resolve(["Java",c])),getApacheInfo:()=>(a.log("trace","getApacheInfo"),u||l?Promise.all([a.run("apachectl -v").then(a.findVersion),a.run("which apachectl")]).then(e=>a.determineFound("Apache",e[0],e[1])):Promise.resolve(["Apache",c])),getNginxInfo:()=>(a.log("trace","getNginxInfo"),u||l?Promise.all([a.run("nginx -v 2>&1").then(a.findVersion),a.run("which nginx")]).then(e=>a.determineFound("Nginx",e[0],e[1])):Promise.resolve(["Nginx",c]))})},function(e,t,r){"use strict";var n=r(7),o=r(74),i=r(75);e.exports=function(e,t){if(!e&&t)throw new Error("You can't specify a `release` without specifying `platform`");var r;return e=e||n.platform(),t=t||n.release(),"darwin"===e?(Number(t.split(".")[0])>15?"macOS":"OS X")+((r=o(t).name)?" "+r:""):"linux"===e?"Linux"+((r=t.replace(/^(\d+\.\d+).*/,"$1"))?" "+r:""):"win32"===e?"Windows"+((r=i(t))?" "+r:""):e}},function(e,t,r){"use strict";var n=r(7),o={17:"High Sierra",16:"Sierra",15:"El Capitan",14:"Yosemite",13:"Mavericks",12:"Mountain Lion",11:"Lion",10:"Snow Leopard",9:"Leopard",8:"Tiger",7:"Panther",6:"Jaguar",5:"Puma"};e.exports=function(e){return e=(e||n.release()).split(".")[0],{name:o[e],version:"10."+(Number(e)-4)}}},function(e,t,r){"use strict";var n=r(7),o=r(76),i={"10.0":"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.1:"XP","5.0":"2000",4.9:"ME",4.1:"98","4.0":"95"};e.exports=function(e){var t=/\d+\.\d+/,s=t.exec(e||n.release());if(!e&&"win32"===process.platform&&o.satisfies(process.version,">=0.12.0 <3.1.0"))try{s=t.exec(String(r(3).execSync("ver.exe",{timeout:2e3})))}catch(e){}if(e&&!s)throw new Error("`release` argument doesn't match `n.n`");return i[(s||[])[0]]}},function(e,t){var r;t=e.exports=J,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],s=t.src=[],a=0,c=a++;s[c]="0|[1-9]\\d*";var u=a++;s[u]="[0-9]+";var l=a++;s[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=a++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var h=a++;s[h]="("+s[u]+")\\.("+s[u]+")\\.("+s[u]+")";var f=a++;s[f]="(?:"+s[c]+"|"+s[l]+")";var d=a++;s[d]="(?:"+s[u]+"|"+s[l]+")";var m=a++;s[m]="(?:-("+s[f]+"(?:\\."+s[f]+")*))";var g=a++;s[g]="(?:-?("+s[d]+"(?:\\."+s[d]+")*))";var y=a++;s[y]="[0-9A-Za-z-]+";var v=a++;s[v]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var b=a++,w="v?"+s[p]+s[m]+"?"+s[v]+"?";s[b]="^"+w+"$";var x="[v=\\s]*"+s[h]+s[g]+"?"+s[v]+"?",S=a++;s[S]="^"+x+"$";var E=a++;s[E]="((?:<|>)?=?)";var j=a++;s[j]=s[u]+"|x|X|\\*";var O=a++;s[O]=s[c]+"|x|X|\\*";var P=a++;s[P]="[v=\\s]*("+s[O]+")(?:\\.("+s[O]+")(?:\\.("+s[O]+")(?:"+s[m]+")?"+s[v]+"?)?)?";var I=a++;s[I]="[v=\\s]*("+s[j]+")(?:\\.("+s[j]+")(?:\\.("+s[j]+")(?:"+s[g]+")?"+s[v]+"?)?)?";var T=a++;s[T]="^"+s[E]+"\\s*"+s[P]+"$";var A=a++;s[A]="^"+s[E]+"\\s*"+s[I]+"$";var k=a++;s[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var _=a++;s[_]="(?:~>?)";var C=a++;s[C]="(\\s*)"+s[_]+"\\s+",i[C]=new RegExp(s[C],"g");var N=a++;s[N]="^"+s[_]+s[P]+"$";var F=a++;s[F]="^"+s[_]+s[I]+"$";var D=a++;s[D]="(?:\\^)";var $=a++;s[$]="(\\s*)"+s[D]+"\\s+",i[$]=new RegExp(s[$],"g");var M=a++;s[M]="^"+s[D]+s[P]+"$";var V=a++;s[V]="^"+s[D]+s[I]+"$";var B=a++;s[B]="^"+s[E]+"\\s*("+x+")$|^$";var R=a++;s[R]="^"+s[E]+"\\s*("+w+")$|^$";var L=a++;s[L]="(\\s*)"+s[E]+"\\s*("+x+"|"+s[P]+")",i[L]=new RegExp(s[L],"g");var G=a++;s[G]="^\\s*("+s[P]+")\\s+-\\s+("+s[P]+")\\s*$";var U=a++;s[U]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var K=a++;s[K]="(<|>)?=?\\s*\\*";for(var q=0;qn)return null;if(!(t?i[S]:i[b]).test(e))return null;try{return new J(e,t)}catch(e){return null}}function J(e,t){if(e instanceof J){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof J))return new J(e,t);r("SemVer",e,t),this.loose=t;var s=e.trim().match(t?i[S]:i[b]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new J(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var r=W(e),n=W(t);if(r.prerelease.length||n.prerelease.length){for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return"pre"+o;return"prerelease"}for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return o},t.compareIdentifiers=Y;var H=/^[0-9]+$/;function Y(e,t){var r=H.test(e),n=H.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function Q(e,t,r){return new J(e,r).compare(new J(t,r))}function X(e,t,r){return Q(e,t,r)>0}function z(e,t,r){return Q(e,t,r)<0}function Z(e,t,r){return 0===Q(e,t,r)}function ee(e,t,r){return 0!==Q(e,t,r)}function te(e,t,r){return Q(e,t,r)>=0}function re(e,t,r){return Q(e,t,r)<=0}function ne(e,t,r,n){var o;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e===r;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e!==r;break;case"":case"=":case"==":o=Z(e,r,n);break;case"!=":o=ee(e,r,n);break;case">":o=X(e,r,n);break;case">=":o=te(e,r,n);break;case"<":o=z(e,r,n);break;case"<=":o=re(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return o}function oe(e,t){if(e instanceof oe){if(e.loose===t)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.loose=t,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new J(e,t).major},t.minor=function(e,t){return new J(e,t).minor},t.patch=function(e,t){return new J(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,r){return Q(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=X,t.lt=z,t.eq=Z,t.neq=ee,t.gte=te,t.lte=re,t.cmp=ne,t.Comparator=oe;var ie={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ae(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,r,n,o,i,s,a,c,u,l,p,h){return((t=ae(r)?"":ae(n)?">="+r+".0.0":ae(o)?">="+r+"."+n+".0":">="+t)+" "+(a=ae(c)?"":ae(u)?"<"+(+c+1)+".0.0":ae(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+a)).trim()}function ue(e,t){for(var n=0;n0){var o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function le(e,t,r){try{t=new se(t,r)}catch(e){return!1}return t.test(e)}function pe(e,t,r,n){var o,i,s,a,c;switch(e=new J(e,n),t=new se(t,n),r){case">":o=X,i=re,s=z,a=">",c=">=";break;case"<":o=z,i=te,s=X,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,n))return!1;for(var u=0;u=0.0.0")),l=l||e,p=p||e,o(e.semver,l.semver,n)?l=e:s(e.semver,p.semver,n)&&(p=e)}),l.operator===a||l.operator===c)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.loose?i[B]:i[R],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new J(r[2],this.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return r("Comparator.test",e,this.loose),this.semver===ie||("string"==typeof e&&(e=new J(e,this.loose)),ne(e,this.operator,this.semver,this.loose))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new se(e.value,t),le(this.value,r,t);if(""===e.operator)return r=new se(this.value,t),le(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||c},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),r("range",e,t);var n=t?i[U]:i[G];e=e.replace(n,ce),r("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),r("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[$],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[R],s=e.split(" ").map(function(e){return function(e,t){return r("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t?i[V]:i[M];return e.replace(n,function(t,n,o,i,s){var a;return r("caret",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),"-"!==s.charAt(0)&&(s="-"+s),a="0"===n?"0"===o?">="+n+"."+o+"."+i+s+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t?i[F]:i[N];return e.replace(n,function(t,n,o,i,s){var a;return r("tilde",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(r("replaceTilde pr",s),"-"!==s.charAt(0)&&(s="-"+s),a=">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",a),a})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t?i[A]:i[T];return e.replace(n,function(t,n,o,i,s,a){r("xRange",e,t,n,o,i,s,a);var c=ae(o),u=c||ae(i),l=u||ae(s),p=l;return"="===n&&p&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&p?(u&&(i=0),l&&(s=0),">"===n?(n=">=",u?(o=+o+1,i=0,s=0):l&&(i=+i+1,s=0)):"<="===n&&(n="<",u?o=+o+1:i=+i+1),t=n+o+"."+i+"."+s):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(i[K],"")}(e,t),r("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(s=s.filter(function(e){return!!e.match(o)})),s=s.map(function(e){return new oe(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new J(e,this.loose));for(var t=0;t",r)},t.outside=pe,t.prerelease=function(e,t){var r=W(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new se(e,r),t=new se(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof J)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);return null==t?null:W((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,r){const n=r(11),o=r(0),i=r(8),s=e=>{const t=e.split("node_modules/"),r=t[t.length-1];return"@"===r.charAt(0)?[r.split("/")[0],r.split("/")[1]].join("/"):r.split("/")[0]};e.exports={getnpmPackages:function(e,t){i.log("trace","getnpmPackages"),t||(t={});let r=null,n=null;return"string"==typeof e&&(e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(",")),Promise.all(["npmPackages",i.getPackageJsonByPath("package.json").then(e=>Object.assign({},(e||{}).devDependencies||{},(e||{}).dependencies||{})).then(e=>(n=e,t.fullTree||t.duplicates||r?i.getAllPackageJsonPaths(r):Promise.resolve(Object.keys(e||[]).map(e=>o.join("node_modules",e,"package.json"))))).then(o=>!r&&"boolean"!=typeof e||t.fullTree?Array.isArray(e)?Promise.resolve((o||[]).filter(t=>e.includes(s(t)))):Promise.resolve(o):Promise.resolve((o||[]).filter(e=>Object.keys(n||[]).includes(s(e))))).then(e=>Promise.all([e,Promise.all(e.map(e=>i.getPackageJsonByPath(e)))])).then(e=>{const r=e[0];return e[1].reduce((e,o,s)=>o&&o.name?(e[o.name]||(e[o.name]={}),t.duplicates&&e[o.name].installed&&e[o.name].installed!==o.version&&i.uniq(e[o.name].duplicates=(e[o.name].duplicates||[]).concat(o.version)),1===(r[s].match(/node_modules/g)||[]).length&&(e[o.name].installed=o.version),n[o.name]&&(e[o.name].wanted=n[o.name]),e):e,{})}).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r)).then(e=>i.sortObject(e))])},getnpmGlobalPackages:function(e,t){i.log("trace","getnpmGlobalPackages",e);let r=null;return"string"==typeof e?e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(","):Array.isArray(e)||(e=!0),Promise.all(["npmGlobalPackages",i.run("npm get prefix --global").then(e=>new Promise((t,i)=>n(o.join(e,"lib","node_modules",r||"{*,@*/*}","package.json"),(e,r)=>{e||t(r),i(e)}))).then(t=>Promise.all(t.filter(t=>"boolean"==typeof e||null!==r||e.includes(s(t))).map(e=>i.getPackageJsonByFullPath(e)))).then(e=>e.reduce((e,t)=>t?Object.assign(e,{[t.name]:t.version}):e,{})).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r))])}}},function(e,t,r){var n=r(0),o="win32"===process.platform,i=r(1),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}n.normalize;if(o)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(o)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else u=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,a,l,p=e,h={},f={};function d(){var t=u.exec(e);r=t[0].length,s=t[0],a=t[0],l="",o&&!f[a]&&(i.lstatSync(a),f[a]=!0)}for(d();r=e.length)return t&&(t[f]=e),r(null,e);c.lastIndex=s;var n=c.exec(e);return h=l,l+=n[0],p=h+n[1],s=c.lastIndex,m[p]||t&&t[p]===p?process.nextTick(y):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):i.lstat(p,v)}function v(e,n){if(e)return r(e);if(!n.isSymbolicLink())return m[p]=!0,t&&(t[p]=p),process.nextTick(y);if(!o){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(d.hasOwnProperty(s))return b(null,d[s],p)}i.stat(p,function(e){if(e)return r(e);i.readlink(p,function(e,t){o||(d[s]=t),b(e,t)})})}function b(e,o,i){if(e)return r(e);var s=n.resolve(h,o);t&&(t[i]=s),w(s)}function w(t){e=n.resolve(t,e.slice(s)),g()}g()}},function(e,t,r){var n=r(80),o=r(81);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var i=[];var s=o("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=c||u;var g=s.body.indexOf(",")>=0;if(!p&&!g)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];var y;if(p)y=s.body.split(/\.\./);else if(1===(y=function e(t){if(!t)return[""];var r=[];var n=o("{","}",t);if(!n)return t.split(",");var i=n.pre;var s=n.body;var a=n.post;var c=i.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));r.push.apply(r,c);return r}(s.body)).length&&1===(y=e(y[0],!1).map(h)).length){var v=s.post.length?e(s.post,!1):[""];return v.map(function(e){return s.pre+y[0]+e})}var b=s.pre;var v=s.post.length?e(s.post,!1):[""];var w;if(p){var x=l(y[0]),S=l(y[1]),E=Math.max(y[0].length,y[1].length),j=3==y.length?Math.abs(l(y[2])):1,O=d,P=S0){var _=new Array(k+1).join("0");A=T<0?"-"+_+A.slice(1):_+A}}w.push(A)}}else w=n(y,function(t){return e(t,!1)});for(var C=0;C=t}},function(e,t){e.exports=function(e,t){for(var n=[],o=0;o=0&&u>0){for(n=[],i=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((o=n.pop())=0?c:u;n.length&&(a=[i,s])}return a}e.exports=n,n.range=i},function(e,t,r){try{var n=r(4);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(83)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){e.exports=d,d.GlobSync=m;var n=r(1),o=r(20),i=r(12),s=(i.Minimatch,r(11).Glob,r(4),r(0)),a=r(10),c=r(13),u=r(21),l=(u.alphasort,u.alphasorti,u.setopts),p=u.ownProp,h=u.childrenIgnored,f=u.isIgnored;function d(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new m(e,t).found}function m(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof m))return new m(e,t);if(l(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||"DIR"===o)return o;if(r&&"FILE"===o)return!1}var i=this.statCache[t];if(!i){var s;try{s=n.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=n.statSync(t)}catch(e){i=s}else i=s}this.statCache[t]=i;o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,(!r||"FILE"!==o)&&o},m.prototype._mark=function(e){return u.mark(this,e)},m.prototype._makeAbs=function(e){return u.makeAbs(this,e)}},function(e,t,r){var n=r(22),o=Object.create(null),i=r(23);e.exports=n(function(e,t){return o[e]?(o[e].push(t),null):(o[e]=[t],function(e){return i(function t(){var r=o[e],n=r.length,i=function(e){for(var t=e.length,r=[],n=0;nn?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete o[e]}})}(e))})},function(e,t){e.exports={androidSystemImages:/system-images;([\S \t]+)/g,androidAPILevels:/platforms;android-(\d+)[\S\s]/g,androidBuildTools:/build-tools;([\d|.]+)[\S\s]/g}},function(e,t,r){const n=r(88),o=r(8);function i(e,t){return o.log("trace","clean",e),Object.keys(e).reduce((r,n)=>!t.showNotFound&&"Not Found"===e[n]||"N/A"===e[n]||void 0===e[n]||0===Object.keys(e[n]).length?r:o.isObject(e[n])?Object.values(e[n]).every(e=>"N/A"===e||!t.showNotFound&&"Not Found"===e)?r:Object.assign(r,{[n]:i(e[n],t)}):Object.assign(r,{[n]:e[n]}),{})}function s(e,t){o.log("trace","formatHeaders"),t||(t={type:"underline"});const r={underline:["",""]};return e.slice().split("\n").map(e=>{if(":"===e.slice("-1")){const n=e.match(/^[\s]*/g)[0];return`${n}${r[t.type][0]}${e.slice(n.length)}${r[t.type][1]}`}return e}).join("\n")}function a(e){return o.log("trace","formatPackages"),e.npmPackages?Object.assign(e,{npmPackages:Object.entries(e.npmPackages||{}).reduce((e,t)=>{const r=t[0],n=t[1];if("Not Found"===n)return Object.assign(e,{[r]:n});const o=n.wanted?`${n.wanted} =>`:"",i=Array.isArray(n.installed)?n.installed.join(", "):n.installed,s=n.duplicates?`(${n.duplicates.join(", ")})`:"";return Object.assign(e,{[r]:`${o} ${i} ${s}`})},{})}):e}function c(e,t,r){return r||(r={emptyMessage:"None"}),Array.isArray(t)&&(t=t.length>0?t.join(", "):r.emptyMessage),{[e]:t}}function u(e){return o.log("trace","serializeArrays"),function e(t,r){return Object.entries(t).reduce((t,n)=>{const i=n[0],s=n[1];return o.isObject(s)?Object.assign(t,{[i]:e(s,r)}):Object.assign(t,r(i,s))},{})}(e,c)}function l(e){return o.log("trace","serializeVersionsAndPaths"),Object.entries(e).reduce((e,t)=>Object.assign(e,{[t[0]]:Object.entries(t[1]).reduce((e,t)=>{const r=t[0],n=t[1];return n.version?Object.assign(e,{[r]:[n.version,n.path].filter(Boolean).join(" - ")}):Object.assign(e,{[r]:n})},{})},{}),{})}function p(e){return n(e,{indent:" ",prefix:"\n",postfix:"\n"})}function h(e){return e.slice().split("\n").map(e=>{if(""!==e){const t=":"===e.slice("-1"),r=e.search(/\S|$/);return t?`${"#".repeat(r/2+1)} `+e.slice(r):" - "+e.slice(r)}return""}).join("\n")}function f(e,t){return t||(t={indent:" "}),JSON.stringify(e,null,t.indent)}e.exports={json:function(e,t){return o.log("trace","formatToJson"),t||(t={}),e=o.pipe([()=>i(e,t),t.title?e=>({[t.title]:e}):o.noop,f])(e),e=t.console?`\n${e}\n`:e},markdown:function(e,t){return o.log("trace","formatToMarkdown"),o.pipe([()=>i(e,t),a,u,l,p,h,t.title?e=>`\n# ${t.title}${e}`:o.noop])(e,t)},yaml:function(e,t){return o.log("trace","formatToYaml",t),o.pipe([()=>i(e,t),a,u,l,t.title?e=>({[t.title]:e}):o.noop,p,t.console?s:o.noop])(e,t)}}},function(e,t,r){"use strict";var n=r(89),o=r(90),i=r(94),s=["object","array"];e.exports=function(e,t){var r=o(t),a=r.colors,c=r.prefix,u=r.postfix,l=r.dateToString,p=r.errorToString,h=r.indent;function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===Object.keys(e).length)return" {}";var o="\n",a=i(t,h);return Object.keys(e).forEach(function(c){var u=e[c],l=n(u),p=i(r," "),h=-1!==s.indexOf(l)?"":" ",f=m(l,u,t+1,r);o+=`${p}${a}${c}:${h}${f}\n`}),o.substring(0,o.length-1)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return" []";var o="\n",s=i(t,h);return e.forEach(function(e){var a=n(e),c=i(r," "),u=m(a,e,t,r+1).toString().trimLeft();o+=`${c}${s}- ${u}\n`}),o.substring(0,o.length-1)}function m(e,t,r,n){switch(e){case"array":return d(t,r,n);case"object":return f(t,r,n);case"string":return a.string(t);case"symbol":return a.symbol(t.toString());case"number":return a.number(t);case"boolean":return a.boolean(t);case"null":return a.null("null");case"undefined":return a.undefined("undefined");case"date":return a.date(l(t));case"error":return a.error(p(t));default:return t&&t.toString?t.toString():Object.prototype.toString.call(t)}}var g="";return"object"===n(e)&&Object.keys(e).length>0?g=f(e):"array"===n(e)&&e.length>0&&(g=d(e)),0===g.length?"":`${c}${g.slice(1)}${u}`}},function(e,t,r){"use strict";e.exports=function(e){return Array.isArray(e)?"array":e instanceof Date?"date":e instanceof Error?"error":null===e?"null":"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)?"object":typeof e}},function(e,t,r){"use strict";var n=r(91),o=r(92),i=r(93),s=" ",a="\n",c="";function u(e,t){return void 0===e?t:e}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{indent:u(e.indent,s),prefix:u(e.prefix,a),postfix:u(e.postfix,c),errorToString:e.errorToString||n,dateToString:e.dateToString||o,colors:Object.assign({},i,e.colors)}}},function(e,t,r){"use strict";e.exports=function(e){return Error.prototype.toString.call(e)}},function(e,t,r){"use strict";e.exports=function(e){return`new Date(${Date.prototype.toISOString.call(e)})`}},function(e,t,r){"use strict";function n(e){return e}e.exports={date:n,error:n,symbol:n,string:n,number:n,boolean:n,null:n,undefined:n}},function(e,t,r){"use strict";e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r="",n=0;n0&&!n.call(e,0))for(var m=0;m0)for(var g=0;g=0&&"[object Function]"===n.call(e.callee)),r}},function(e,t){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==n.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var s=0;s1&&(t===String?c="string":t===Number&&(c="number")),n&&(Symbol.toPrimitive?r=function(e,t){var r=e[t];if(null!==r&&void 0!==r){if(!i(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):a(e)&&(r=Symbol.prototype.valueOf)),void 0!==r){var u=r.call(e,c);if(o(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===c&&(s(e)||a(e))&&(c="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,s,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(n(t)||0===t||!o(t))return 0;var r=i(t)*Math.floor(Math.abs(t));return s(r,65536)},ToString:function(e){return String(e)},ToObject:function(e){return this.CheckObjectCoercible(e),Object(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new TypeError(t||"Cannot call method on "+e);return e},IsCallable:a,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:n(e)&&n(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(u(e,r)&&!t[r])return!1;var n=u(e,"[[Value]]"),o=u(e,"[[Get]]")||u(e,"[[Set]]");if(n&&o)throw new TypeError("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!u(e,"[[Get]]")&&!u(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!u(e,"[[Value]]")&&!u(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new TypeError("ToPropertyDescriptor requires an object");var t={};if(u(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),u(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),u(e,"value")&&(t["[[Value]]"]=e.value),u(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),u(e,"get")){var r=e.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(u(e,"set")){var n=e.set;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("setter must be a function");t["[[Set]]"]=n}if((u(t,"[[Get]]")||u(t,"[[Set]]"))&&(u(t,"[[Value]]")||u(t,"[[Writable]]")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=l},function(e,t,r){"use strict";var n=Object.prototype.toString,o=r(26),i=r(14),s=function(e,t){var r=t||("[object Date]"===n.call(e)?String:Number);if(r===String||r===Number){var s,a,c=r===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a2?arguments[2]:{},i=n(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;anew Promise(t=>{i.exec(e,{stdio:[0,"pipe","ignore"]},(e,r)=>{t((e?"":r.toString()||"").trim())})}),l=function(e){const t=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===e&&console.log(e,JSON.stringify(t))},p=e=>new Promise(t=>{o.stat(e,r=>t(r?null:e))}),f=e=>new Promise(t=>{e||t(null),o.readFile(e,"utf8",(e,r)=>t(r||null))}),h=e=>p(e).then(f).then(e=>e?JSON.parse(e):null),d=/\d+\.[\d+|.]+/g,y=e=>{l("trace","findDarwinApplication",e);const t=`mdfind "kMDItemCFBundleIdentifier=='${e}'"`;return l("trace",t),u(t).then(e=>e.replace(/(\s)/g,"\\ "))},m=(e,t)=>{var r=(t||["CFBundleShortVersionString"]).map(function(e){return"-c Print:"+e});return["/usr/libexec/PlistBuddy"].concat(r).concat([e]).join(" ")},g=(e,t)=>{const r=[];let n=null;for(;null!==(n=e.exec(t));)r.push(n);return r};e.exports={run:u,log:l,fileExists:p,readFile:f,requireJson:h,versionRegex:d,findDarwinApplication:y,generatePlistBuddyCommand:m,matchAll:g,parseSDKManagerOutput:e=>{const t=e.split("Available")[0];return{apiLevels:g(c.androidAPILevels,t).map(e=>e[1]),buildTools:g(c.androidBuildTools,t).map(e=>e[1]),systemImages:g(c.androidSystemImages,t).map(e=>e[1].split("|").map(e=>e.trim())).map(e=>e[0].split(";")[0]+" | "+e[2].split(" System Image")[0])}},isObject:e=>"object"==typeof e&&!Array.isArray(e),noop:e=>e,pipe:e=>t=>e.reduce((e,t)=>t(e),t),browserBundleIdentifiers:{Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:e=>(i.execSync(e,{stdio:[0,"pipe","ignore"]}).toString()||"").trim(),which:e=>new Promise(t=>s(e,(e,r)=>t(r))),getDarwinApplicationVersion:e=>{var t;return l("trace","getDarwinApplicationVersion",e),t="darwin"!==process.platform?"N/A":y(e).then(e=>u(m(n.join(e,"Contents","Info.plist"),["CFBundleShortVersionString"]))),Promise.resolve(t)},uniq:e=>Array.from(new Set(e)),toReadableBytes:e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return e?(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][t]:"0 Bytes"},omit:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)<0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),pick:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)>=0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),getPackageJsonByName:e=>h(n.join(process.cwd(),"node_modules",e,"package.json")),getPackageJsonByPath:e=>h(n.join(process.cwd(),e)),getPackageJsonByFullPath:e=>(l("trace","getPackageJsonByFullPath",e),h(e)),getAllPackageJsonPaths:e=>(l("trace","getAllPackageJsonPaths",e),new Promise(t=>{const r=(e,r)=>t(r||[]);return a(e?n.join("node_modules",e,"package.json"):n.join("node_modules","**","package.json"),r)})),sortObject:e=>Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}),findVersion:(e,t,r)=>{const n=r||0,o=t||d,i=e.match(o);return i?i[n]:e},condensePath:e=>(e||"").replace(process.env.HOME,"~"),determineFound:(e,t,r)=>(l("trace","determineFound",e,t,r),"N/A"===t||"N/A"===t&&"N/A"===r?Promise.resolve([e,"N/A"]):t?r?Promise.resolve([e,t,r]):Promise.resolve([e,t]):Promise.resolve([e,"Not Found"]))}},function(e,t,r){e.exports=b;var n=r(1),o=r(13),i=r(8),s=(i.Minimatch,r(45)),a=r(47).EventEmitter,c=r(0),u=r(14),l=r(10),p=r(48),f=r(15),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,y=r(49),m=(r(9),f.childrenIgnored),g=f.isIgnored,v=r(17);function b(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return p(e,t)}return new S(e,t,r)}b.sync=p;var w=b.GlobSync=p.GlobSync;function S(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof S))return new S(e,t,r);h(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=v(r),this.on("error",r),this.on("end",function(e){r(null,e)}));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var i=!0,s=0;s1)return!0;for(var o=0;othis.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!o||"DIR"===i)return t(null,i);if(o&&"FILE"===i)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var a=s.isDirectory()?"DIR":"FILE";return o&&"FILE"===a?t():t(null,a,s)}var c=this,u=y("stat\0"+r,function(o,i){if(i&&i.isSymbolicLink())return n.stat(r,function(n,o){n?c._stat2(e,r,null,i,t):c._stat2(e,r,n,o,t)});c._stat2(e,r,o,i,t)});u&&n.lstat(r,u)},S.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,n)}},function(e,t,r){e.exports=d,d.Minimatch=y;var n={sep:"/"};try{n=r(0)}catch(e){}var o=d.GLOBSTAR=y.GLOBSTAR={},i=r(42),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",p=function(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}("().*{}+?[]^$\\!");var f=/\/+/;function h(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function d(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new y(t,r).match(e))}function y(e,t){if(!(this instanceof y))return new y(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(e,t){if(t||(t=this instanceof y?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}d.filter=function(e,t){return t=t||{},function(r,n,o){return d(r,e,t)}},d.defaults=function(e){if(!e||!Object.keys(e).length)return d;var t=d,r=function(r,n,o){return t.minimatch(r,n,h(e,o))};return r.Minimatch=function(r,n){return new t.Minimatch(r,h(e,n))},r},y.defaults=function(e){return e&&Object.keys(e).length?d.defaults(e).Minimatch:y},y.prototype.debug=function(){},y.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map(function(e){return e.split(f)}),this.debug(this.pattern,r),r=r.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},y.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(this.options.nonegate)return;for(var n=0,o=e.length;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return o;if(""===e)return"";var n,i="",u=!!r.nocase,l=!1,f=[],h=[],d=!1,y=-1,m=-1,v="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(n){switch(n){case"*":i+=c,u=!0;break;case"?":i+=a,u=!0;break;default:i+="\\"+n}b.debug("clearStateChar %j %j",n,i),n=!1}}for(var S,P=0,j=e.length;P-1;$--){var T=h[$],C=i.slice(0,T.reStart),F=i.slice(T.reStart,T.reEnd-8),N=i.slice(T.reEnd-8,T.reEnd),_=i.slice(T.reEnd);N+=_;var D=C.split("(").length-1,M=_;for(P=0;P=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,f,t,h),f!==a))}if("string"==typeof l?(u=n.nocase?p.toLowerCase()===l.toLowerCase():p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}},function(e,t){e.exports=require("util")},function(e,t,r){"use strict";function n(e){return"/"===e.charAt(0)}function o(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?o:n,e.exports.posix=n,e.exports.win32=o},function(e,t,r){"use strict";var n=Function.prototype.toString,o=/^\s*class\b/,i=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(a)return function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t){e.exports=require("child_process")},function(e,t,r){e.exports=l,l.realpath=l,l.sync=p,l.realpathSync=p,l.monkeypatch=function(){n.realpath=l,n.realpathSync=p},l.unmonkeypatch=function(){n.realpath=o,n.realpathSync=i};var n=r(1),o=n.realpath,i=n.realpathSync,s=process.version,a=/^v[0-5]\./.test(s),c=r(41);function u(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function l(e,t,r){if(a)return o(e,t,r);"function"==typeof t&&(r=t,t=null),o(e,t,function(n,o){u(n)?c.realpath(e,t,r):r(n,o)})}function p(e,t){if(a)return i(e,t);try{return i(e,t)}catch(r){if(u(r))return c.realpathSync(e,t);throw r}}},function(e,t){e.exports=require("assert")},function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.alphasort=u,t.alphasorti=c,t.setopts=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(l))}(e,r),e.changedCwd=!1;var i=process.cwd();n(r,"cwd")?(e.cwd=o.resolve(r.cwd),e.changedCwd=e.cwd!==i):e.cwd=i;e.root=r.root||o.resolve(e.cwd,"/"),e.root=o.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=s(e.cwd)?e.cwd:p(e,e.cwd),"win32"===process.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new a(t,r),e.options=e.minimatch.options},t.ownProp=n,t.makeAbs=p,t.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,o=e.matches.length;n2?arguments[2]:[];if(!this.IsCallable(e))throw new s(e+" is not a function");return e.apply(t,r)},ToPrimitive:o,ToNumber:function(e){var t=S(e)?e:o(e,p);if("symbol"==typeof t)throw new s("Cannot convert a Symbol value to a number");if("string"==typeof t){if(A(t))return this.ToNumber(P(I(t,2),2));if(x(t))return this.ToNumber(P(I(t,2),8));if($(t)||T(t))return NaN;var r=function(e){return G(e,R,"")}(t);if(r!==t)return this.ToNumber(r)}return p(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(y(t)||0===t||!m(t))return 0;var r=b(t)*N(_(t));return w(r,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(y(t)||t<=0)return 0;if(t>=255)return 255;var r=N(e);return r+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==F(e))throw new s("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:L.CheckObjectCoercible,IsArray:c.isArray||function(e){return"[object Array]"===F(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!S(e)&&V(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||y(e)||!m(e))return!1;var t=_(e);return N(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(d){var t=e[f.match];if(void 0!==t)return L.ToBoolean(t)}return U(e)},SameValueZero:function(e,t){return e===t||y(e)&&y(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(e,t);if(null!=r){if(!this.IsCallable(r))throw new s(t+"is not a function");return r}},Get:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":L.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==this.Type(r))throw new s("O.constructor is not an Object");var n=d&&f.species?r[f.species]:void 0;if(null==n)return t;if(this.IsConstructor(n))return n;throw new s("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new s("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(n(e,"[[Value]]")||(e["[[Value]]"]=void 0),n(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(n(e,"[[Get]]")||(e["[[Get]]"]=void 0),n(e,"[[Set]]")||(e["[[Set]]"]=void 0)),n(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),n(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,r,n){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");if("Boolean"!==this.Type(n))throw new s("Throw must be a Boolean");if(n)return e[t]=r,!0;try{e[t]=r}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return n(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new s("O must be an Object");if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(d&&"symbol"==typeof f.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new s("P must be a Property Key");var r=O(arguments,2),n=this.GetV(e,t);return this.Call(n,e,r)},GetIterator:function(e,t){if(!d)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var r=t;arguments.length<2&&(r=this.GetMethod(e,f.iterator));var n=this.Call(r,e);if("Object"!==this.Type(n))throw new s("iterator must return an object");return n},IteratorNext:function(e,t){var r=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(r))throw new s("iterator next must return an object");return r},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new s("Assertion failed: completion is not a thunk for a Completion Record");var r,n=t,o=this.GetMethod(e,"return");if(void 0===o)return n();try{var i=this.Call(o,e,[])}catch(e){throw r=n(),n=null,e}if(r=n(),n=null,"Object"!==this.Type(i))throw new s("iterator .return must return an object");return r},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new s("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new s("R must be an Object");if("String"!==this.Type(t))throw new s("S must be a String");var r=this.Get(e,"exec");if(this.IsCallable(r)){var n=this.Call(r,e,[t]);if(null===n||"Object"===this.Type(n))return n;throw new s('"exec" method must return `null` or an Object')}return E(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new s("Assertion failed: length must be an integer >= 0");var r,n=0===t?0:t;if(this.IsArray(e)&&(r=this.Get(e,"constructor"),"Object"===this.Type(r)&&d&&f.species&&null===(r=this.Get(r,f.species))&&(r=void 0)),void 0===r)return c(n);if(!this.IsConstructor(r))throw new s("C must be a constructor");return new r(n)},CreateDataProperty:function(e,t,r){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=M(e,t),o=n||"function"!=typeof V||V(e);if(n&&(!n.writable||!n.configurable)||!o)return!1;var i={configurable:!0,enumerable:!0,value:r,writable:!0};return Object.defineProperty(e,t,i),!0},CreateDataPropertyOrThrow:function(e,t,r){if("Object"!==this.Type(e))throw new s("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new s("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(e,t,r);if(!n)throw new s("unable to create data property");return n},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new s("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new a("es-abstract does not yet support internal slots");if(null===e&&!D)throw new a("native Object.create support is required to create null objects");return D(e)},AdvanceStringIndex:function(e,t,r){if("String"!==this.Type(e))throw new s("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new s("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(r))throw new s("Assertion failed: unicode must be a Boolean");if(!r)return t+1;if(t+1>=e.length)return t+1;var n=C(e,t);if(n<55296||n>56319)return t+1;var o=C(e,t+1);return o<56320||o>57343?t+1:t+2}});delete W.CheckObjectCoercible,e.exports=W},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,r){"use strict";var n=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},s=void 0,a="undefined"==typeof Uint8Array?void 0:i(Uint8Array),c={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":s&&o&&Symbol.asyncIterator?s[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":n,"$ %TypedArray%":a,"$ %TypedArrayPrototype%":a?a.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var r="$ "+e;if(!(r in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[r]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[r]}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,r){var n=r(4).call(Function.call,Object.prototype.hasOwnProperty),o=Object.assign;e.exports=function(e,t){if(o)return o(e,t);for(var r in t)n(t,r)&&(e[r]=t[r]);return e}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var r=e%t;return Math.floor(r>=0?r:r+t)}},function(e,t,r){"use strict";var n=r(18),o=Number.isNaN||function(e){return e!=e},i=Number.isFinite||function(e){return"number"==typeof e&&global.isFinite(e)},s=Array.prototype.indexOf;e.exports=function(e){var t=arguments.length>1?n.ToInteger(arguments[1]):0;if(s&&!o(e)&&i(t)&&void 0!==e)return s.apply(this,arguments)>-1;var r=n.ToObject(this),a=n.ToLength(r.length);if(0===a)return!1;for(var c=t>=0?t:Math.max(0,a+t);c0?e:i.defaults,s=Object.entries(r).reduce((e,r)=>{const o=r[0],i=r[1],s=n[`get${o}`];return s?(i&&e.push(s(i,t)),e):e=e.concat((i||[]).map(e=>{const t=n[`get${e.replace(/\s/g,"")}Info`];return t?t():Promise.resolve(["Unknown"])}))},[]);return Promise.all(s).then(e=>{const r=e.reduce((e,t)=>(t&&t[0]&&Object.assign(e,{[t[0]]:t}),e),{});return function(e,t){const r=t.json?o.json:t.markdown?o.markdown:o.yaml;return t.console&&console.log(r(e,Object.assign({},t,{console:!0}))),r(e,Object.assign({},t,{console:!1}))}(Object.entries(i.defaults).reduce((e,t)=>{const n=t[0],o=t[1];return r[n]?Object.assign(e,{[n]:r[n][1]}):Object.assign(e,{[n]:(o||[]).reduce((e,t)=>r[t]?(r[t].shift(),1===r[t].length?Object.assign(e,{[t]:r[t][0]}):Object.assign(e,{[t]:{version:r[t][0],path:r[t][1]}})):e,{})})},{}),t)})}Array.prototype.includes||a.shim(),Object.entries||c.shim(),Object.values||u.shim(),e.exports={cli:function(e){if(e.all)return l(Object.assign({},i.defaults,{npmPackages:!0,npmGlobalPackages:!0}),e);if(e.raw)return l(JSON.parse(e.raw),e);if(e.helper){const t=n[`get${e.helper}`]||n[`get${e.helper}Info`]||n[e.helper];return t?t().then(console.log):console.error("Not Found")}const t=(e,t)=>e.toLowerCase().includes(t.toLowerCase()),r=Object.keys(e).filter(e=>Object.keys(i.defaults).some(r=>t(r,e))),o=Object.entries(i.defaults).reduce((n,o)=>r.some(e=>t(e,o[0]))?Object.assign(n,{[o[0]]:o[1]||e[o[0]]}):n,{});return e.preset?(i[e.preset]||console.error(`\nNo "${e.preset}" preset found.`),l(Object.assign({},s.omit(i[e.preset],["options"]),o),Object.assign({},i[e.preset].options,s.pick(e,["duplicates","fullTree","json","markdown","console"])))):l(o,e)},helpers:n,main:l,run:function(e,t){return"string"==typeof e.preset?l(i[e.preset],t):l(e,t)}}},function(e,t,r){const n=r(5),o=r(36),i=r(0),s=r(40),a=r(6),c="N/A",u="darwin"===process.platform,l="linux"===process.platform,p=process.platform.startsWith("win");e.exports=Object.assign({},a,s,{getiOSSDKInfo:()=>u?a.run("xcodebuild -showsdks").then(e=>e.match(/[\w]+\s[\d|.]+/g)).then(a.uniq).then(e=>e.length?["iOS SDK",{Platforms:e}]:["iOS SDK","Not Found"]):Promise.resolve(["iOS SDK",c]),getAndroidSDKInfo:()=>a.run(process.env.ANDROID_HOME?"$ANDROID_HOME/tools/bin/sdkmanager --list":"sdkmanager --list").then(e=>!e&&u?a.run("~/Library/Android/sdk/tools/bin/sdkmanager --list"):e).then(e=>{const t=a.parseSDKManagerOutput(e);return t.buildTools.length||t.apiLevels.length||t.systemImages.length?Promise.resolve(["Android SDK",{"API Levels":t.apiLevels||"Not Found","Build Tools":t.buildTools||"Not Found","System Images":t.systemImages||"Not Found"}]):Promise.resolve(["Android SDK","Not Found"])}),getAndroidStudioInfo:()=>{let e;return u?e=a.run(a.generatePlistBuddyCommand(i.join("/","Applications","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])).then(e=>e.split("\n").join(" ")):l?e=Promise.all([a.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(a.findVersion),a.run("cat /opt/android-studio/build.txt")]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"}):p&&(e=Promise.all([a.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then(e=>e.replace(/(\r\n|\n|\r)/gm,"")),a.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then(e=>e.replace(/(\r\n|\n|\r)/gm,""))]).then(e=>{return`${e[0]} ${e[1]}`.trim()||"Not Found"})),e.then(e=>a.determineFound("Android Studio",e))},getAtomInfo:()=>(a.log("trace","getAtomInfo"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers.Atom),c]).then(e=>a.determineFound("Atom",e[0],e[1]))),getMySQLInfo:()=>(a.log("trace","getMySQLInfo"),Promise.all([a.run("mysql --version").then(e=>`${a.findVersion(e,null,1)}${e.includes("MariaDB")?" (MariaDB)":""}`),a.which("mysql")]).then(e=>a.determineFound("MySQL",e[0],e[1]))),getMongoDBInfo:()=>(a.log("trace","getMongoDBInfo"),Promise.all([a.run("mongo --version").then(a.findVersion),a.which("mongo")]).then(e=>a.determineFound("MongoDB",e[0],e[1]))),getSQLiteInfo:()=>(a.log("trace","getSQLiteInfo"),Promise.all([a.run("sqlite3 --version").then(a.findVersion),a.which("sqlite3")]).then(e=>a.determineFound("SQLite",e[0],e[1]))),getPostgreSQLInfo:()=>(a.log("trace","getPostgreSQLInfo"),Promise.all([a.run("postgres --version").then(a.findVersion),a.which("postgres")]).then(e=>a.determineFound("PostgreSQL",e[0],e[1]))),getCPUInfo:()=>{let e;a.log("trace","getCPUInfo");try{const t=n.cpus();e="("+t.length+") "+n.arch()+" "+t[0].model}catch(t){e="Unknown"}return Promise.all(["CPU",e])},getBashInfo:()=>(a.log("trace","getBashInfo"),Promise.all([a.run("bash --version").then(a.findVersion),a.which("bash")]).then(e=>a.determineFound("Bash",e[0],e[1]))),getPerlInfo:()=>(a.log("trace","getPerlInfo"),Promise.all([a.run("perl -v").then(a.findVersion),a.which("perl")]).then(e=>a.determineFound("Perl",e[0],e[1]))),getPHPInfo:()=>(a.log("trace","getPHPInfo"),Promise.all([a.run("php -v").then(a.findVersion),a.which("php")]).then(e=>a.determineFound("PHP",e[0],e[1]))),getParallelsInfo:()=>(a.log("trace","getParallelsInfo"),Promise.all([a.run("prlctl --version").then(a.findVersion),a.which("prlctl")]).then(e=>a.determineFound("Parallels",e[0],e[1]))),getDockerInfo:()=>(a.log("trace","getDockerInfo"),Promise.all([a.run("docker --version").then(a.findVersion),a.which("docker")]).then(e=>a.determineFound("Docker",e[0],e[1]))),getElixirInfo:()=>(a.log("trace","getElixirInfo"),Promise.all([a.run("elixir --version").then(e=>a.findVersion(e,/[Elixir]+\s([\d+.[\d+|.]+)/,1)),a.which("elixir")]).then(e=>Promise.resolve(a.determineFound("Elixir",e[0],e[1])))),getMemoryInfo:()=>(a.log("trace","getMemoryInfo"),Promise.all(["Memory",`${a.toReadableBytes(n.freemem())} / ${a.toReadableBytes(n.totalmem())}`])),getSublimeTextInfo:()=>(a.log("trace","getSublimeTextInfo"),Promise.all([a.run("subl --version").then(e=>a.findVersion(e,/\d+/)),a.which("subl")]).then(e=>""===e[0]&&u?(a.log("trace","getSublimeTextInfo using plist"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers["Sublime Text"]),c])):e).then(e=>a.determineFound("Sublime Text",e[0],e[1]))),getHomeBrewInfo:()=>{return a.log("trace","getHomeBrewInfo"),u?Promise.all(["Homebrew",a.run("brew --version").then(a.findVersion),a.which("brew")]):Promise.all(["Homebrew",c])},getGoInfo:()=>(a.log("trace","getGoInfo"),Promise.all([a.run("go version").then(a.findVersion),a.which("go")]).then(e=>a.determineFound("Go",e[0],e[1]))),getRubyInfo:()=>(a.log("trace","getRubyInfo"),Promise.all([a.run("ruby -v").then(a.findVersion),a.which("ruby")]).then(e=>a.determineFound("Ruby",e[0],e[1]))),getNodeInfo:()=>(a.log("trace","getNodeInfo"),Promise.all([a.which("node").then(e=>e?a.run(e+" -v"):Promise.resolve("")).then(e=>e.replace("v","")),a.which("node").then(a.condensePath)]).then(e=>a.determineFound("Node",e[0],e[1]))),getnpmInfo:()=>(a.log("trace","getnpmInfo"),Promise.all([a.run("npm -v"),a.which("npm").then(a.condensePath)]).then(e=>a.determineFound("npm",e[0],e[1]))),getShellInfo:()=>{if(a.log("trace","getShellInfo",process.env),u||l){const e=process.env.SHELL||a.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1");return Promise.all([a.run(`${e} --version`).then(a.findVersion),a.which(e)]).then(e=>a.determineFound("Shell",e[0]||"Unknown",e[1]))}return Promise.resolve(["Shell",c])},getOSInfo:()=>{let e;return a.log("trace","getOSInfo"),(e=u?a.run("sw_vers -productVersion "):l?a.run("cat /etc/os-release").then(e=>{const t=(e||"").match(/NAME="(.+)"/),r=(e||"").match(/VERSION="(.+)"/)||[];return`${t[1]} ${r[1]}`.trim()||""}):Promise.resolve()).then(e=>{let t=o(n.platform(),n.release());return e&&(t+=` ${e}`),["OS",t]})},getContainerInfo:()=>(a.log("trace","getContainerInfo"),l?Promise.all([a.fileExists("/.dockerenv"),a.readFile("/proc/self/cgroup")]).then(e=>(a.log("trace","getContainerInfoThen",e),Promise.resolve(["Container",e[0]||e[1]?"Yes":c]))).catch(e=>a.log("trace","getContainerInfoCatch",e)):Promise.resolve(["Container",c])),getWatchmanInfo:()=>(a.log("trace","getWatchmanInfo"),Promise.all([a.which("watchman").then(e=>e?a.run(e+" -v"):void 0),a.which("watchman")]).then(e=>a.determineFound("Watchman",e[0],e[1]))),getVSCodeInfo:()=>(a.log("trace","getVSCodeInfo"),Promise.all([a.run("code --version").then(a.findVersion),a.which("code")]).then(e=>a.determineFound("VSCode",e[0],e[1]))),getIntelliJInfo:()=>(a.log("trace","getIntelliJInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.IntelliJ).then(e=>a.determineFound("IntelliJ",e))),getPhpStormInfo:()=>(a.log("trace","getPhpStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.PhpStorm).then(e=>a.determineFound("PhpStorm",e))),getWebStormInfo:()=>(a.log("trace","getWebStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.WebStorm).then(e=>a.determineFound("WebStorm",e))),getVirtualBoxInfo:()=>(a.log("trace","getVirtualBoxInfo"),Promise.all([a.run("vboxmanage --version").then(a.findVersion),a.which("vboxmanage")]).then(e=>a.determineFound("VirtualBox",e[0],e[1]))),getVMwareFusionInfo:()=>(a.log("trace","getVMwareFusionInfo"),a.getDarwinApplicationVersion("com.vmware.fusion").then(e=>a.determineFound("VMWare Fusion",e,c))),getPythonInfo:()=>(a.log("trace","getPythonInfo"),Promise.all([a.run("python -V 2>&1").then(a.findVersion),a.run("which python")]).then(e=>a.determineFound("Python",e[0],e[1]))),getXcodeInfo:()=>(a.log("trace","getXcodeInfo"),u?Promise.all([a.which("xcodebuild").then(e=>a.run(e+" -version")).then(e=>`${a.findVersion(e)}/${e.split("Build version ")[1]}`),a.which("xcodebuild")]).then(e=>a.determineFound("Xcode",e[0],e[1])):Promise.resolve(["Xcode",c])),getYarnInfo:()=>(a.log("trace","getYarnInfo"),Promise.all([a.run("yarn -v"),a.which("yarn").then(a.condensePath)]).then(e=>a.determineFound("Yarn",e[0],e[1]))),getEdgeInfo:()=>{let e;return a.log("trace","getEdgeInfo"),(e=p&&"10"===n.release().split(".")[0]?a.run("powershell get-appxpackage Microsoft.MicrosoftEdge").then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Edge",e,c))},getInternetExplorerInfo:()=>{let e;if(a.log("trace","getInternetExplorerInfo"),p){const t=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");e=a.run(`wmic datafile where "name='${t}'" get Version`).then(a.findVersion)}else e=Promise.resolve(c);return e.then(e=>a.determineFound("Internet Explorer",e,c))},getChromeInfo:()=>{let e;return a.log("trace","getChromeInfo"),(e=l?a.run("google-chrome --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Chrome).then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Chrome",e,c))},getChromeCanaryInfo:()=>{return a.log("trace","getChromeCanaryInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Chrome Canary"]).then(e=>a.determineFound("Chrome Canary",e,c))},getFirefoxDeveloperEditionInfo:()=>{return a.log("trace","getFirefoxDeveloperEditionInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Developer Edition"]).then(e=>a.determineFound("Firefox Developer Edition",e,c))},getSafariTechnologyPreviewInfo:()=>{return a.log("trace","getSafariTechnologyPreviewInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Safari Technology Preview"]).then(e=>a.determineFound("Safari Technology Preview",e,c))},getSafariInfo:()=>{return a.log("trace","getSafariInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Safari).then(e=>a.determineFound("Safari",e,c))},getFirefoxInfo:()=>{let e;return a.log("trace","getFirefoxInfo"),(e=l?a.run("firefox --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Firefox):Promise.resolve(c)).then(e=>a.determineFound("Firefox",e,c))},getFirefoxNightlyInfo:()=>{let e;return a.log("trace","getFirefoxNightlyInfo"),(e=l?a.run("firefox-trunk --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve(c)).then(e=>a.determineFound("Firefox Nightly",e,c))},getGitInfo:()=>(a.log("trace","getGitInfo"),u||l?Promise.all([a.run("git --version").then(a.findVersion),a.run("which git")]).then(e=>a.determineFound("Git",e[0],e[1])):Promise.resolve(["Git",c])),getMakeInfo:()=>(a.log("trace","getMakeInfo"),u||l?Promise.all([a.run("make --version").then(a.findVersion),a.run("which make")]).then(e=>a.determineFound("Make",e[0],e[1])):Promise.resolve(["Make",c])),getCMakeInfo:()=>(a.log("trace","getCMakeInfo"),u||l?Promise.all([a.run("cmake --version").then(a.findVersion),a.run("which cmake")]).then(e=>a.determineFound("CMake",e[0],e[1])):Promise.resolve(["CMake",c])),getGCCInfo:()=>(a.log("trace","getGCCInfo"),u||l?Promise.all([a.run("gcc -v 2>&1").then(a.findVersion),a.run("which gcc")]).then(e=>a.determineFound("GCC",e[0],e[1])):Promise.resolve(["GCC",c])),getNanoInfo:()=>(a.log("trace","getNanoInfo"),u||l?Promise.all([a.run("nano --version").then(a.findVersion),a.run("which nano")]).then(e=>a.determineFound("Nano",e[0],e[1])):Promise.resolve(["Nano",c])),getEmacsInfo:()=>(a.log("trace","getEmacsInfo"),u||l?Promise.all([a.run("emacs --version").then(a.findVersion),a.run("which emacs")]).then(e=>a.determineFound("Emacs",e[0],e[1])):Promise.resolve(["Emacs",c])),getVimInfo:()=>(a.log("trace","getVimInfo"),u||l?Promise.all([a.run("vim --version").then(a.findVersion),a.run("which vim")]).then(e=>a.determineFound("Vim",e[0],e[1])):Promise.resolve(["Vim",c])),getNvimInfo:()=>(a.log("trace","getNvimInfo"),u||l?Promise.all([a.run("nvim --version").then(a.findVersion),a.run("which nvim")]).then(e=>a.determineFound("Nvim",e[0],e[1])):Promise.resolve(["Vim",c])),getRustInfo:()=>(a.log("trace","getRustInfo"),u||l?Promise.all([a.run("rustup --version").then(a.findVersion),a.run("which rustup")]).then(e=>a.determineFound("Rust",e[0],e[1])):Promise.resolve(["Rust",c])),getScalaInfo:()=>(a.log("trace","getScalaInfo"),u||l?Promise.all([a.run("scalac -version").then(a.findVersion),a.run("which scalac")]).then(e=>a.determineFound("Scala",e[0],e[1])):Promise.resolve(["Scala",c])),getJavaInfo:()=>(a.log("trace","getJavaInfo"),u||l?Promise.all([a.run("javac -version 2>&1").then(a.findVersion),a.run("which javac")]).then(e=>a.determineFound("Java",e[0],e[1])):Promise.resolve(["Java",c])),getApacheInfo:()=>(a.log("trace","getApacheInfo"),u||l?Promise.all([a.run("apachectl -v").then(a.findVersion),a.run("which apachectl")]).then(e=>a.determineFound("Apache",e[0],e[1])):Promise.resolve(["Apache",c])),getNginxInfo:()=>(a.log("trace","getNginxInfo"),u||l?Promise.all([a.run("nginx -v 2>&1").then(a.findVersion),a.run("which nginx")]).then(e=>a.determineFound("Nginx",e[0],e[1])):Promise.resolve(["Nginx",c]))})},function(e,t,r){"use strict";var n=r(5),o=r(37),i=r(38);e.exports=function(e,t){if(!e&&t)throw new Error("You can't specify a `release` without specifying `platform`");var r;return e=e||n.platform(),t=t||n.release(),"darwin"===e?(Number(t.split(".")[0])>15?"macOS":"OS X")+((r=o(t).name)?" "+r:""):"linux"===e?"Linux"+((r=t.replace(/^(\d+\.\d+).*/,"$1"))?" "+r:""):"win32"===e?"Windows"+((r=i(t))?" "+r:""):e}},function(e,t,r){"use strict";var n=r(5),o={17:"High Sierra",16:"Sierra",15:"El Capitan",14:"Yosemite",13:"Mavericks",12:"Mountain Lion",11:"Lion",10:"Snow Leopard",9:"Leopard",8:"Tiger",7:"Panther",6:"Jaguar",5:"Puma"};e.exports=function(e){return e=(e||n.release()).split(".")[0],{name:o[e],version:"10."+(Number(e)-4)}}},function(e,t,r){"use strict";var n=r(5),o=r(39),i={"10.0":"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.1:"XP","5.0":"2000",4.9:"ME",4.1:"98","4.0":"95"};e.exports=function(e){var t=/\d+\.\d+/,s=t.exec(e||n.release());if(!e&&"win32"===process.platform&&o.satisfies(process.version,">=0.12.0 <3.1.0"))try{s=t.exec(String(r(12).execSync("ver.exe",{timeout:2e3})))}catch(e){}if(e&&!s)throw new Error("`release` argument doesn't match `n.n`");return i[(s||[])[0]]}},function(e,t){var r;t=e.exports=J,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],s=t.src=[],a=0,c=a++;s[c]="0|[1-9]\\d*";var u=a++;s[u]="[0-9]+";var l=a++;s[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=a++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var f=a++;s[f]="("+s[u]+")\\.("+s[u]+")\\.("+s[u]+")";var h=a++;s[h]="(?:"+s[c]+"|"+s[l]+")";var d=a++;s[d]="(?:"+s[u]+"|"+s[l]+")";var y=a++;s[y]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=a++;s[m]="(?:-?("+s[d]+"(?:\\."+s[d]+")*))";var g=a++;s[g]="[0-9A-Za-z-]+";var v=a++;s[v]="(?:\\+("+s[g]+"(?:\\."+s[g]+")*))";var b=a++,w="v?"+s[p]+s[y]+"?"+s[v]+"?";s[b]="^"+w+"$";var S="[v=\\s]*"+s[f]+s[m]+"?"+s[v]+"?",P=a++;s[P]="^"+S+"$";var j=a++;s[j]="((?:<|>)?=?)";var O=a++;s[O]=s[u]+"|x|X|\\*";var I=a++;s[I]=s[c]+"|x|X|\\*";var A=a++;s[A]="[v=\\s]*("+s[I]+")(?:\\.("+s[I]+")(?:\\.("+s[I]+")(?:"+s[y]+")?"+s[v]+"?)?)?";var x=a++;s[x]="[v=\\s]*("+s[O]+")(?:\\.("+s[O]+")(?:\\.("+s[O]+")(?:"+s[m]+")?"+s[v]+"?)?)?";var E=a++;s[E]="^"+s[j]+"\\s*"+s[A]+"$";var k=a++;s[k]="^"+s[j]+"\\s*"+s[x]+"$";var $=a++;s[$]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var T=a++;s[T]="(?:~>?)";var C=a++;s[C]="(\\s*)"+s[T]+"\\s+",i[C]=new RegExp(s[C],"g");var F=a++;s[F]="^"+s[T]+s[A]+"$";var N=a++;s[N]="^"+s[T]+s[x]+"$";var _=a++;s[_]="(?:\\^)";var D=a++;s[D]="(\\s*)"+s[_]+"\\s+",i[D]=new RegExp(s[D],"g");var M=a++;s[M]="^"+s[_]+s[A]+"$";var V=a++;s[V]="^"+s[_]+s[x]+"$";var B=a++;s[B]="^"+s[j]+"\\s*("+S+")$|^$";var R=a++;s[R]="^"+s[j]+"\\s*("+w+")$|^$";var G=a++;s[G]="(\\s*)"+s[j]+"\\s*("+S+"|"+s[A]+")",i[G]=new RegExp(s[G],"g");var L=a++;s[L]="^\\s*("+s[A]+")\\s+-\\s+("+s[A]+")\\s*$";var U=a++;s[U]="^\\s*("+s[x]+")\\s+-\\s+("+s[x]+")\\s*$";var W=a++;s[W]="(<|>)?=?\\s*\\*";for(var K=0;Kn)return null;if(!(t.loose?i[P]:i[b]).test(e))return null;try{return new J(e,t)}catch(e){return null}}function J(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof J){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof J))return new J(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var s=e.trim().match(t.loose?i[P]:i[b]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new J(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var r=q(e),n=q(t);if(r.prerelease.length||n.prerelease.length){for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return"pre"+o;return"prerelease"}for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return o},t.compareIdentifiers=Q;var H=/^[0-9]+$/;function Q(e,t){var r=H.test(e),n=H.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function Y(e,t,r){return new J(e,r).compare(new J(t,r))}function X(e,t,r){return Y(e,t,r)>0}function z(e,t,r){return Y(e,t,r)<0}function Z(e,t,r){return 0===Y(e,t,r)}function ee(e,t,r){return 0!==Y(e,t,r)}function te(e,t,r){return Y(e,t,r)>=0}function re(e,t,r){return Y(e,t,r)<=0}function ne(e,t,r,n){var o;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e===r;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e!==r;break;case"":case"=":case"==":o=Z(e,r,n);break;case"!=":o=ee(e,r,n);break;case">":o=X(e,r,n);break;case">=":o=te(e,r,n);break;case"<":o=z(e,r,n);break;case"<=":o=re(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return o}function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return Q(t,e)},t.major=function(e,t){return new J(e,t).major},t.minor=function(e,t){return new J(e,t).minor},t.patch=function(e,t){return new J(e,t).patch},t.compare=Y,t.compareLoose=function(e,t){return Y(e,t,!0)},t.rcompare=function(e,t,r){return Y(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=X,t.lt=z,t.eq=Z,t.neq=ee,t.gte=te,t.lte=re,t.cmp=ne,t.Comparator=oe;var ie={};function se(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof se)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ae(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,r,n,o,i,s,a,c,u,l,p,f){return((t=ae(r)?"":ae(n)?">="+r+".0.0":ae(o)?">="+r+"."+n+".0":">="+t)+" "+(a=ae(c)?"":ae(u)?"<"+(+c+1)+".0.0":ae(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+a)).trim()}function ue(e,t,n){for(var o=0;o0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function le(e,t,r){try{t=new se(t,r)}catch(e){return!1}return t.test(e)}function pe(e,t,r,n){var o,i,s,a,c;switch(e=new J(e,n),t=new se(t,n),r){case">":o=X,i=re,s=z,a=">",c=">=";break;case"<":o=z,i=te,s=X,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,n))return!1;for(var u=0;u=0.0.0")),l=l||e,p=p||e,o(e.semver,l.semver,n)?l=e:s(e.semver,p.semver,n)&&(p=e)}),l.operator===a||l.operator===c)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?i[B]:i[R],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new J(r[2],this.options.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return r("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new J(e,this.options)),ne(e,this.operator,this.semver,this.options))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return r=new se(e.value,t),le(this.value,r,t);if(""===e.operator)return r=new se(this.value,t),le(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||c},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?i[U]:i[L];e=e.replace(n,ce),r("hyphen replace",e),e=e.replace(i[G],"$1$2$3"),r("comparator trim",e,i[G]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[D],"$1^")).split(/\s+/).join(" ");var o=t?i[B]:i[R],s=e.split(" ").map(function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t),t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1});var n=t.loose?i[V]:i[M];return e.replace(n,function(t,n,o,i,s){var a;return r("caret",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),"-"!==s.charAt(0)&&(s="-"+s),a="0"===n?"0"===o?">="+n+"."+o+"."+i+s+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1});var n=t.loose?i[N]:i[F];return e.replace(n,function(t,n,o,i,s){var a;return r("tilde",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(r("replaceTilde pr",s),"-"!==s.charAt(0)&&(s="-"+s),a=">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",a),a})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim(),t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1});var n=t.loose?i[k]:i[E];return e.replace(n,function(t,n,o,i,s,a){r("xRange",e,t,n,o,i,s,a);var c=ae(o),u=c||ae(i),l=u||ae(s),p=l;return"="===n&&p&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&p?(u&&(i=0),l&&(s=0),">"===n?(n=">=",u?(o=+o+1,i=0,s=0):l&&(i=+i+1,s=0)):"<="===n&&(n="<",u?o=+o+1:i=+i+1),t=n+o+"."+i+"."+s):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(i[W],"")}(e,t),r("stars",e),e}(e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter(function(e){return!!e.match(o)})),s=s.map(function(e){return new oe(e,this.options)},this)},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new J(e,this.options));for(var t=0;t",r)},t.outside=pe,t.prerelease=function(e,t){var r=q(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new se(e,r),t=new se(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof J)return e;if("string"!=typeof e)return null;var t=e.match(i[$]);return null==t?null:q((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,r){const n=r(7),o=r(0),i=r(6),s=e=>{const t=e.split("node_modules/"),r=t[t.length-1];return"@"===r.charAt(0)?[r.split("/")[0],r.split("/")[1]].join("/"):r.split("/")[0]};e.exports={getnpmPackages:function(e,t){i.log("trace","getnpmPackages"),t||(t={});let r=null,n=null;return"string"==typeof e&&(e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(",")),Promise.all(["npmPackages",i.getPackageJsonByPath("package.json").then(e=>Object.assign({},(e||{}).devDependencies||{},(e||{}).dependencies||{})).then(e=>(n=e,t.fullTree||t.duplicates||r?i.getAllPackageJsonPaths(r):Promise.resolve(Object.keys(e||[]).map(e=>o.join("node_modules",e,"package.json"))))).then(o=>!r&&"boolean"!=typeof e||t.fullTree?Array.isArray(e)?Promise.resolve((o||[]).filter(t=>e.includes(s(t)))):Promise.resolve(o):Promise.resolve((o||[]).filter(e=>Object.keys(n||[]).includes(s(e))))).then(e=>Promise.all([e,Promise.all(e.map(e=>i.getPackageJsonByPath(e)))])).then(e=>{const r=e[0];return e[1].reduce((e,o,s)=>o&&o.name?(e[o.name]||(e[o.name]={}),t.duplicates&&e[o.name].installed&&e[o.name].installed!==o.version&&i.uniq(e[o.name].duplicates=(e[o.name].duplicates||[]).concat(o.version)),1===(r[s].match(/node_modules/g)||[]).length&&(e[o.name].installed=o.version),n[o.name]&&(e[o.name].wanted=n[o.name]),e):e,{})}).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r)).then(e=>i.sortObject(e))])},getnpmGlobalPackages:function(e,t){i.log("trace","getnpmGlobalPackages",e);let r=null;return"string"==typeof e?e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(","):Array.isArray(e)||(e=!0),Promise.all(["npmGlobalPackages",i.run("npm get prefix --global").then(e=>new Promise((t,i)=>n(o.join(e,"lib","node_modules",r||"{*,@*/*}","package.json"),(e,r)=>{e||t(r),i(e)}))).then(t=>Promise.all(t.filter(t=>"boolean"==typeof e||null!==r||e.includes(s(t))).map(e=>i.getPackageJsonByFullPath(e)))).then(e=>e.reduce((e,t)=>t?Object.assign(e,{[t.name]:t.version}):e,{})).then(r=>(t.showNotFound&&Array.isArray(e)&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r))])}}},function(e,t,r){var n=r(0),o="win32"===process.platform,i=r(1),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}n.normalize;if(o)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(o)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else u=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,a,l,p=e,f={},h={};function d(){var t=u.exec(e);r=t[0].length,s=t[0],a=t[0],l="",o&&!h[a]&&(i.lstatSync(a),h[a]=!0)}for(d();r=e.length)return t&&(t[h]=e),r(null,e);c.lastIndex=s;var n=c.exec(e);return f=l,l+=n[0],p=f+n[1],s=c.lastIndex,y[p]||t&&t[p]===p?process.nextTick(g):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):i.lstat(p,v)}function v(e,n){if(e)return r(e);if(!n.isSymbolicLink())return y[p]=!0,t&&(t[p]=p),process.nextTick(g);if(!o){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(d.hasOwnProperty(s))return b(null,d[s],p)}i.stat(p,function(e){if(e)return r(e);i.readlink(p,function(e,t){o||(d[s]=t),b(e,t)})})}function b(e,o,i){if(e)return r(e);var s=n.resolve(f,o);t&&(t[i]=s),w(s)}function w(t){e=n.resolve(t,e.slice(s)),m()}m()}},function(e,t,r){var n=r(43),o=r(44);e.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var i=[];var s=o("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=c||u;var m=s.body.indexOf(",")>=0;if(!p&&!m)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];var g;if(p)g=s.body.split(/\.\./);else if(1===(g=function e(t){if(!t)return[""];var r=[];var n=o("{","}",t);if(!n)return t.split(",");var i=n.pre;var s=n.body;var a=n.post;var c=i.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u));r.push.apply(r,c);return r}(s.body)).length&&1===(g=e(g[0],!1).map(f)).length){var v=s.post.length?e(s.post,!1):[""];return v.map(function(e){return s.pre+g[0]+e})}var b=s.pre;var v=s.post.length?e(s.post,!1):[""];var w;if(p){var S=l(g[0]),P=l(g[1]),j=Math.max(g[0].length,g[1].length),O=3==g.length?Math.abs(l(g[2])):1,I=d,A=P0){var T=new Array($+1).join("0");k=E<0?"-"+T+k.slice(1):T+k}}w.push(k)}}else w=n(g,function(t){return e(t,!1)});for(var C=0;C=t}},function(e,t){e.exports=function(e,t){for(var n=[],o=0;o=0&&u>0){for(n=[],i=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((o=n.pop())=0?c:u;n.length&&(a=[i,s])}return a}e.exports=n,n.range=i},function(e,t,r){try{var n=r(9);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(46)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t){e.exports=require("events")},function(e,t,r){e.exports=d,d.GlobSync=y;var n=r(1),o=r(13),i=r(8),s=(i.Minimatch,r(7).Glob,r(9),r(0)),a=r(14),c=r(10),u=r(15),l=(u.alphasort,u.alphasorti,u.setopts),p=u.ownProp,f=u.childrenIgnored,h=u.isIgnored;function d(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new y(e,t).found}function y(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof y))return new y(e,t);if(l(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||"DIR"===o)return o;if(r&&"FILE"===o)return!1}var i=this.statCache[t];if(!i){var s;try{s=n.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=n.statSync(t)}catch(e){i=s}else i=s}this.statCache[t]=i;o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,(!r||"FILE"!==o)&&o},y.prototype._mark=function(e){return u.mark(this,e)},y.prototype._makeAbs=function(e){return u.makeAbs(this,e)}},function(e,t,r){var n=r(16),o=Object.create(null),i=r(17);e.exports=n(function(e,t){return o[e]?(o[e].push(t),null):(o[e]=[t],function(e){return i(function t(){var r=o[e],n=r.length,i=function(e){for(var t=e.length,r=[],n=0;nn?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete o[e]}})}(e))})},function(e,t,r){e.exports=u,u.sync=function(e,t){for(var r=c(e,t=t||{}),n=r.env,i=r.ext,u=r.extExe,l=[],p=0,f=n.length;p!t.showNotFound&&"Not Found"===e[n]||"N/A"===e[n]||void 0===e[n]||0===Object.keys(e[n]).length?r:o.isObject(e[n])?Object.values(e[n]).every(e=>"N/A"===e||!t.showNotFound&&"Not Found"===e)?r:Object.assign(r,{[n]:i(e[n],t)}):Object.assign(r,{[n]:e[n]}),{})}function s(e,t){o.log("trace","formatHeaders"),t||(t={type:"underline"});const r={underline:["",""]};return e.slice().split("\n").map(e=>{if(":"===e.slice("-1")){const n=e.match(/^[\s]*/g)[0];return`${n}${r[t.type][0]}${e.slice(n.length)}${r[t.type][1]}`}return e}).join("\n")}function a(e){return o.log("trace","formatPackages"),e.npmPackages?Object.assign(e,{npmPackages:Object.entries(e.npmPackages||{}).reduce((e,t)=>{const r=t[0],n=t[1];if("Not Found"===n)return Object.assign(e,{[r]:n});const o=n.wanted?`${n.wanted} =>`:"",i=Array.isArray(n.installed)?n.installed.join(", "):n.installed,s=n.duplicates?`(${n.duplicates.join(", ")})`:"";return Object.assign(e,{[r]:`${o} ${i} ${s}`})},{})}):e}function c(e,t,r){return r||(r={emptyMessage:"None"}),Array.isArray(t)&&(t=t.length>0?t.join(", "):r.emptyMessage),{[e]:t}}function u(e){return o.log("trace","serializeArrays"),function e(t,r){return Object.entries(t).reduce((t,n)=>{const i=n[0],s=n[1];return o.isObject(s)?Object.assign(t,{[i]:e(s,r)}):Object.assign(t,r(i,s))},{})}(e,c)}function l(e){return o.log("trace","serializeVersionsAndPaths"),Object.entries(e).reduce((e,t)=>Object.assign(e,{[t[0]]:Object.entries(t[1]).reduce((e,t)=>{const r=t[0],n=t[1];return n.version?Object.assign(e,{[r]:[n.version,n.path].filter(Boolean).join(" - ")}):Object.assign(e,{[r]:n})},{})},{}),{})}function p(e){return n(e,{indent:" ",prefix:"\n",postfix:"\n"})}function f(e){return e.slice().split("\n").map(e=>{if(""!==e){const t=":"===e.slice("-1"),r=e.search(/\S|$/);return t?`${"#".repeat(r/2+1)} `+e.slice(r):" - "+e.slice(r)}return""}).join("\n")}function h(e,t){return t||(t={indent:" "}),JSON.stringify(e,null,t.indent)}e.exports={json:function(e,t){return o.log("trace","formatToJson"),t||(t={}),e=o.pipe([()=>i(e,t),t.title?e=>({[t.title]:e}):o.noop,h])(e),e=t.console?`\n${e}\n`:e},markdown:function(e,t){return o.log("trace","formatToMarkdown"),o.pipe([()=>i(e,t),a,u,l,p,f,t.title?e=>`\n# ${t.title}${e}`:o.noop])(e,t)},yaml:function(e,t){return o.log("trace","formatToYaml",t),o.pipe([()=>i(e,t),a,u,l,t.title?e=>({[t.title]:e}):o.noop,p,t.console?s:o.noop])(e,t)}}},function(e,t,r){"use strict";var n=r(57),o=r(58),i=r(62),s=["object","array"];e.exports=function(e,t){var r=o(t),a=r.colors,c=r.prefix,u=r.postfix,l=r.dateToString,p=r.errorToString,f=r.indent;function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===Object.keys(e).length)return" {}";var o="\n",a=i(t,f);return Object.keys(e).forEach(function(c){var u=e[c],l=n(u),p=i(r," "),f=-1!==s.indexOf(l)?"":" ",h=y(l,u,t+1,r);o+=`${p}${a}${c}:${f}${h}\n`}),o.substring(0,o.length-1)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return" []";var o="\n",s=i(t,f);return e.forEach(function(e){var a=n(e),c=i(r," "),u=y(a,e,t,r+1).toString().trimLeft();o+=`${c}${s}- ${u}\n`}),o.substring(0,o.length-1)}function y(e,t,r,n){switch(e){case"array":return d(t,r,n);case"object":return h(t,r,n);case"string":return a.string(t);case"symbol":return a.symbol(t.toString());case"number":return a.number(t);case"boolean":return a.boolean(t);case"null":return a.null("null");case"undefined":return a.undefined("undefined");case"date":return a.date(l(t));case"error":return a.error(p(t));default:return t&&t.toString?t.toString():Object.prototype.toString.call(t)}}var m="";return"object"===n(e)&&Object.keys(e).length>0?m=h(e):"array"===n(e)&&e.length>0&&(m=d(e)),0===m.length?"":`${c}${m.slice(1)}${u}`}},function(e,t,r){"use strict";e.exports=function(e){return Array.isArray(e)?"array":e instanceof Date?"date":e instanceof Error?"error":null===e?"null":"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)?"object":typeof e}},function(e,t,r){"use strict";var n=r(59),o=r(60),i=r(61),s=" ",a="\n",c="";function u(e,t){return void 0===e?t:e}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{indent:u(e.indent,s),prefix:u(e.prefix,a),postfix:u(e.postfix,c),errorToString:e.errorToString||n,dateToString:e.dateToString||o,colors:Object.assign({},i,e.colors)}}},function(e,t,r){"use strict";e.exports=function(e){return Error.prototype.toString.call(e)}},function(e,t,r){"use strict";e.exports=function(e){return`new Date(${Date.prototype.toISOString.call(e)})`}},function(e,t,r){"use strict";function n(e){return e}e.exports={date:n,error:n,symbol:n,string:n,number:n,boolean:n,null:n,undefined:n}},function(e,t,r){"use strict";e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r="",n=0;n0&&!n.call(e,0))for(var y=0;y0)for(var m=0;m=0&&"[object Function]"===n.call(e.callee)),r}},function(e,t,r){"use strict";var n=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,i=n.call(arguments,1),s=Math.max(0,t.length-i.length),a=[],c=0;c1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=function(e,t){var r=e[t];if(null!==r&&void 0!==r){if(!i(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):a(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var c=t.call(e,r);if(o(c))return c;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(s(e)||a(e))&&(r="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,s,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(a(t)||0===t||!c(t))return 0;var r=u(t)*Math.floor(Math.abs(t));return l(r,65536)},ToString:function(e){return s(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:p,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:a(e)&&a(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(h(e,r)&&!t[r])return!1;var n=h(e,"[[Value]]"),o=h(e,"[[Get]]")||h(e,"[[Set]]");if(n&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return!(!h(e,"[[Get]]")&&!h(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return!(!h(e,"[[Value]]")&&!h(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new i("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(h(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),h(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),h(e,"value")&&(t["[[Value]]"]=e.value),h(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),h(e,"get")){var r=e.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(h(e,"set")){var n=e.set;if(void 0!==n&&!this.IsCallable(n))throw new i("setter must be a function");t["[[Set]]"]=n}if((h(t,"[[Get]]")||h(t,"[[Set]]"))&&(h(t,"[[Value]]")||h(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=d},function(e,t,r){"use strict";var n=Object.prototype.toString,o=r(20),i=r(11),s=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===n.call(e)?String:Number)===String||t===Number){var r,s,a=t===String?["toString","valueOf"]:["valueOf","toString"];for(s=0;s1?s(e,arguments[1]):s(e)}},function(e,t,r){"use strict";var n=r(3),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a)return"[object RegExp]"===s.call(e);var t=i(e,"lastIndex");return!(!t||!n(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,r){"use strict";var n=r(2),o=r(28);e.exports=function(){var e=o();return n(Array.prototype,{includes:e},{includes:function(){return Array.prototype.includes!==e}}),e}},function(e,t,r){"use strict";var n=r(2),o=r(29),i=r(31),s=r(81),a=i();n(a,{getPolyfill:i,implementation:o,shim:s}),e.exports=a},function(e,t,r){"use strict";var n=r(19),o=r(24),i=o(o({},n),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t,r){"use strict";var n=r(31),o=r(2);e.exports=function(){var e=n();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},function(e,t,r){"use strict";var n=r(2),o=r(32),i=r(33),s=r(83),a=i();n(a,{getPolyfill:i,implementation:o,shim:s}),e.exports=a},function(e,t,r){"use strict";var n=r(33),o=r(2);e.exports=function(){var e=n();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}}]); \ No newline at end of file diff --git a/src/cli.js b/src/cli.js index 619202a..02760f3 100644 --- a/src/cli.js +++ b/src/cli.js @@ -1,6 +1,6 @@ const envinfo = require('./envinfo.js'); const argv = require('minimist')(process.argv.slice(2)); -const version = __VERSION__ || ''; // eslint-disable-line +// const version = __VERSION__ || ''; // eslint-disable-line argv.console = true; @@ -41,9 +41,10 @@ if (argv.help || argv._.indexOf('help') > -1) { --markdown Print output in markdown format --json Print output in JSON format --console Print to console (defaults to on for CLI usage, off for programmatic usage) - --clipboard Copy output to your system clipboard --showNotFound Don't filter out values marked 'Not Found' --title Give your report a top level title ie 'Environment Report' + + --clipboard *Removed - use clipboardy or clipboard-cli directly* `); process.exit(0); } else if (argv.version || argv.v || argv._.indexOf('version') > -1) { diff --git a/src/envinfo.js b/src/envinfo.js index 6bc26a5..dab06ae 100644 --- a/src/envinfo.js +++ b/src/envinfo.js @@ -1,6 +1,5 @@ 'use strict'; -const copypasta = require('clipboardy'); const helpers = require('./helpers'); const formatters = require('./formatters'); const presets = require('./presets'); @@ -23,15 +22,16 @@ function format(data, options) { if (options.console) console.log(formatter(data, Object.assign({}, options, { console: true }))); // eslint-disable-line no-console - // call the formatter with console option off first to return, or pipe to clipboard + // call the formatter with console option off first to return const formatted = formatter(data, Object.assign({}, options, { console: false })); - if (options.clipboard) copypasta.writeSync(formatted); return formatted; } function main(props, options) { options = options || {}; + if (options.clipboard) + console.log('\n*** Clipboard option removed - use clipboardy or clipboard-cli directly ***\n'); // set props to passed in props or default to presets.defaults const defaults = Object.keys(props).length > 0 ? props : presets.defaults; // collect a list of promises of helper functions @@ -100,7 +100,7 @@ function cli(options) { helpers[`get${options.helper}`] || helpers[`get${options.helper}Info`] || helpers[options.helper]; - return helper ? helper().then(console.log) : console.error('Not Found'); + return helper ? helper().then(console.log) : console.error('Not Found'); // eslint-disable-line no-console } // generic function to make sure passed option exists in presets.defaults list // TODO: This will eventually be replaced with a better fuzzy finder. @@ -118,13 +118,13 @@ function cli(options) { }, {}); // if there is a preset, merge that with the parsed props and options if (options.preset) { - if (!presets[options.preset]) console.error(`\nNo "${options.preset}" preset found.`); + if (!presets[options.preset]) console.error(`\nNo "${options.preset}" preset found.`); // eslint-disable-line no-console return main( Object.assign({}, utils.omit(presets[options.preset], ['options']), props), Object.assign( {}, presets[options.preset].options, - utils.pick(options, ['duplicates', 'fullTree', 'json', 'markdown', 'console', 'clipboard']) + utils.pick(options, ['duplicates', 'fullTree', 'json', 'markdown', 'console']) ) ); } diff --git a/src/helpers.js b/src/helpers.js index 4af3ded..b8f75b6 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -17,9 +17,8 @@ module.exports = Object.assign({}, utils, packages, { .run('xcodebuild -showsdks') .then(sdks => sdks.match(/[\w]+\s[\d|.]+/g)) .then(utils.uniq) - .then( - platforms => - platforms.length ? ['iOS SDK', { Platforms: platforms }] : ['iOS SDK', NotFound] + .then(platforms => + platforms.length ? ['iOS SDK', { Platforms: platforms }] : ['iOS SDK', NotFound] ); } return Promise.resolve(['iOS SDK', NA]); diff --git a/src/presets.js b/src/presets.js index 47b3231..c437c96 100644 --- a/src/presets.js +++ b/src/presets.js @@ -68,7 +68,6 @@ module.exports = { npmPackages: ['react', 'react-dom', 'react-scripts'], npmGlobalPackages: ['create-react-app'], options: { - clipboard: true, duplicates: true, showNotFound: true, },