UNPKG

react-monaco-editor

Version:
2 lines 122 kB
#!/usr/bin/env node module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=114)}([function(t,e){t.exports=require("path")},function(t,e){t.exports=require("fs")},function(t,e){t.exports=require("child_process")},function(t,e,r){"use strict";var n=r(97),o=r(99),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=Object.defineProperty&&function(){var t={};try{for(var e in Object.defineProperty(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,r,n){var o;e in t&&("function"!=typeof(o=n)||"[object Function]"!==s.call(o)||!n())||(a?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},u=function(t,e){var r=arguments.length>2?arguments[2]:{},s=n(e);i&&(s=s.concat(Object.getOwnPropertySymbols(e))),o(s,function(n){c(t,n,e[n],r[n])})};u.supportsDescriptors=!!a,t.exports=u},function(t,e){t.exports=require("util")},function(t,e,r){var n=r(9);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";const n=r(2),o=r(4),i=r(44),s=r(58),a=r(59),c=r(61),u=r(62),l=r(65),p=r(66),f=r(68),h=r(69),d=1e7;function y(t,e,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:t,args:e,options:r,file:t,original:t}):n=i._parse(t,e,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 m(t,e){return e&&t.stripEof&&(e=s(e)),e}function v(t,e,r){let n="/bin/sh",o=["-c",e];return r=Object.assign({},r),"win32"===process.platform&&(r.__winShell=!0,n=process.env.comspec||"cmd.exe",o=["/s","/c",`"${e}"`],r.windowsVerbatimArguments=!0),r.shell&&(n=r.shell,delete r.shell),t(n,o,r)}function g(t,e,r,n){if(!t[e])return null;let o;return(o=r?u(t[e],{encoding:r,maxBuffer:n}):u.buffer(t[e],{maxBuffer:n})).catch(t=>{throw t.stream=e,t.message=`${e} ${t.message}`,t})}t.exports=((t,e,r)=>{let o=t;Array.isArray(e)&&e.length>0&&(o+=" "+e.join(" "));const s=y(t,e,r),a=s.opts.encoding,u=s.opts.maxBuffer;let h,d;try{h=n.spawn(s.cmd,s.args,s.opts)}catch(t){return Promise.reject(t)}s.opts.cleanup&&(d=p(()=>{h.kill()}));let v=null,b=!1;const w=()=>{v&&(clearTimeout(v),v=null)};s.opts.timeout>0&&(v=setTimeout(()=>{v=null,b=!0,h.kill(s.opts.killSignal)},s.opts.timeout));const x=new Promise(t=>{h.on("exit",(e,r)=>{w(),t({code:e,signal:r})}),h.on("error",e=>{w(),t({err:e})}),h.stdin&&h.stdin.on("error",e=>{w(),t({err:e})})});function S(){h.stdout&&h.stdout.destroy(),h.stderr&&h.stderr.destroy()}const j=()=>l(Promise.all([x,g(h,"stdout",a,u),g(h,"stderr",a,u)]).then(t=>{const e=t[0],r=t[1],n=t[2];let i=e.err;const a=e.code,c=e.signal;if(d&&d(),i||0!==a||null!==c){if(!i){let t="";Array.isArray(s.opts.stdio)?("inherit"!==s.opts.stdio[2]&&(t+=t.length>0?n:`\n${n}`),"inherit"!==s.opts.stdio[1]&&(t+=`\n${r}`)):"inherit"!==s.opts.stdio&&(t=`\n${n}${r}`),(i=new Error(`Command failed: ${o}${t}`)).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:m(s.opts,r),stderr:m(s.opts,n),code:0,failed:!1,killed:!1,signal:null,cmd:o,timedOut:!1}}),S);return i._enoent.hookChildProcess(h,s.parsed),function(t,e){const r=e.input;null!==r&&void 0!==r&&(c(r)?r.pipe(t.stdin):t.stdin.end(r))}(h,s.opts),h.then=((t,e)=>j().then(t,e)),h.catch=(t=>j().catch(t)),h}),t.exports.stdout=function(){return t.exports.apply(null,arguments).then(t=>t.stdout)},t.exports.stderr=function(){return t.exports.apply(null,arguments).then(t=>t.stderr)},t.exports.shell=((e,r)=>v(t.exports,e,r)),t.exports.sync=((t,e,r)=>{const o=y(t,e,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=m(o.opts,i.stdout),i.stderr=m(o.opts,i.stderr),i}),t.exports.shellSync=((e,r)=>v(t.exports.sync,e,r)),t.exports.spawn=o.deprecate(t.exports,"execa.spawn() is deprecated. Use execa() instead.")},function(t,e){t.exports=require("os")},function(t,e,r){var n=r(0),o=r(1),i=r(2);t.exports={customGenericVersionFunction:function(t,e){var r;void 0===e&&(e="Not Found");try{r=t()}catch(t){r=e}return r},getPackageJsonByName:function(t){return this.requireJson(n.join(process.cwd(),"node_modules",t,"package.json"))},getPackageJsonByPath:function(t){return this.requireJson(n.join(process.cwd(),t))},isObject:t=>"object"==typeof t&&!Array.isArray(t),noop:t=>t,omit:function(t,e){return Object.keys(t).filter(t=>e.indexOf(t)<0).reduce((e,r)=>Object.assign(e,{[r]:t[r]}),{})},pick:function(t,e){return Object.keys(t).filter(t=>e.indexOf(t)>=0).reduce((e,r)=>Object.assign(e,{[r]:t[r]}),{})},pipe:t=>e=>t.reduce((t,e)=>e(t),e),requireJson:function(t){var e;if(o.existsSync(t)){try{e=JSON.parse(o.readFileSync(t,"utf8"))}catch(t){return null}return e}return null},run:function(t){return(i.execSync(t,{stdio:[0,"pipe","ignore"]}).toString()||"").trim()},sortObject:function(t){return Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{})},toReadableBytes:function(t){const e=Math.floor(Math.log(t)/Math.log(1024));return t?(t/Math.pow(1024,e)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][e]:"0 Bytes"},uniq:function(t){return Array.from(new Set(t))},versionRegex:/\d+\.[\d+|\.]+/}},function(t,e,r){"use strict";var n=r(100);t.exports=Function.prototype.bind||n},function(t,e){t.exports=require("assert")},function(t,e,r){t.exports=d,d.Minimatch=y;var n={sep:"/"};try{n=r(0)}catch(t){}var o=d.GLOBSTAR=y.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(t,e){return t[e]=!0,t},{});var f=/\/+/;function h(t,e){t=t||{},e=e||{};var r={};return Object.keys(e).forEach(function(t){r[t]=e[t]}),Object.keys(t).forEach(function(e){r[e]=t[e]}),r}function d(t,e,r){if("string"!=typeof e)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new y(e,r).match(t))}function y(t,e){if(!(this instanceof y))return new y(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==n.sep&&(t=t.split(n.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(t,e){if(e||(e=this instanceof y?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:i(t)}d.filter=function(t,e){return e=e||{},function(r,n,o){return d(r,t,e)}},d.defaults=function(t){if(!t||!Object.keys(t).length)return d;var e=d,r=function(r,n,o){return e.minimatch(r,n,h(t,o))};return r.Minimatch=function(r,n){return new e.Minimatch(r,h(t,n))},r},y.defaults=function(t){return t&&Object.keys(t).length?d.defaults(t).Minimatch:y},y.prototype.debug=function(){},y.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map(function(t){return t.split(f)}),this.debug(this.pattern,r),r=r.map(function(t,e,r){return t.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},y.prototype.parseNegate=function(){var t=this.pattern,e=!1,r=0;if(this.options.nonegate)return;for(var n=0,o=t.length;n<o&&"!"===t.charAt(n);n++)e=!e,r++;r&&(this.pattern=t.substr(r));this.negate=e},d.braceExpand=function(t,e){return m(t,e)},y.prototype.braceExpand=m,y.prototype.parse=function(t,e){if(t.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===t)return o;if(""===t)return"";var n,i="",u=!!r.nocase,l=!1,f=[],h=[],d=!1,y=-1,m=-1,g="."===t.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,j=t.length;S<j&&(x=t.charAt(S));S++)if(this.debug("%s\t%s %s %j",t,S,i,x),l&&p[x])i+="\\"+x,l=!1;else switch(x){case"/":return!1;case"\\":w(),l=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,S,i,x),d){this.debug(" in class"),"!"===x&&S===m+1&&(x="^"),i+=x;continue}b.debug("call clearStateChar %j",n),w(),n=x,r.noext&&w();continue;case"(":if(d){i+="(";continue}if(!n){i+="\\(";continue}f.push({type:n,start:S-1,reStart:i.length,open:s[n].open,close:s[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(d||!f.length){i+="\\)";continue}w(),u=!0;var O=f.pop();i+=O.close,"!"===O.type&&h.push(O),O.reEnd=i.length;continue;case"|":if(d||!f.length||l){i+="\\|",l=!1;continue}w(),i+="|";continue;case"[":if(w(),d){i+="\\"+x;continue}d=!0,m=S,y=i.length,i+=x;continue;case"]":if(S===m+1||!d){i+="\\"+x,l=!1;continue}if(d){var E=t.substring(m+1,S);try{RegExp("["+E+"]")}catch(t){var T=this.parse(E,v);i=i.substr(0,y)+"\\["+T[0]+"\\]",u=u||T[1],d=!1;continue}}u=!0,d=!1,i+=x;continue;default:w(),l?l=!1:!p[x]||"^"===x&&d||(i+="\\"),i+=x}d&&(E=t.substr(m+1),T=this.parse(E,v),i=i.substr(0,y)+"\\["+T[0],u=u||T[1]);for(O=f.pop();O;O=f.pop()){var k=i.slice(O.reStart+O.open.length);this.debug("setting tail",i,O),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(t,e,r){return r||(r="\\"),e+e+r+"|"}),this.debug("tail=%j\n %s",k,k,O,i);var A="*"===O.type?c:"?"===O.type?a:"\\"+O.type;u=!0,i=i.slice(0,O.reStart)+A+"\\("+k}w(),l&&(i+="\\\\");var _=!1;switch(i.charAt(0)){case".":case"[":case"(":_=!0}for(var P=h.length-1;P>-1;P--){var I=h[P],N=i.slice(0,I.reStart),C=i.slice(I.reStart,I.reEnd-8),$=i.slice(I.reEnd-8,I.reEnd),D=i.slice(I.reEnd);$+=D;var V=N.split("(").length-1,F=D;for(S=0;S<V;S++)F=F.replace(/\)[+*?]?/,"");var R="";""===(D=F)&&e!==v&&(R="$");var G=N+C+D+R+$;i=G}""!==i&&u&&(i="(?=.)"+i);_&&(i=g+i);if(e===v)return[i,u];if(!u)return t.replace(/\\(.)/g,"$1");var M=r.nocase?"i":"";try{var B=new RegExp("^"+i+"$",M)}catch(t){return new RegExp("$.")}return B._glob=t,B._src=i,B};var v={};d.makeRe=function(t,e){return new y(t,e||{}).makeRe()},y.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?c:e.dot?u:l,n=e.nocase?"i":"",i=t.map(function(t){return t.map(function(t){return t===o?r:"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(t){this.regexp=!1}return this.regexp},d.match=function(t,e,r){var n=new y(e,r=r||{});return t=t.filter(function(t){return n.match(t)}),n.options.nonull&&!t.length&&t.push(e),t},y.prototype.match=function(t,e){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;var r=this.options;"/"!==n.sep&&(t=t.split(n.sep).join("/"));t=t.split(f),this.debug(this.pattern,"split",t);var o,i,s=this.set;for(this.debug(this.pattern,"set",s),i=t.length-1;i>=0&&!(o=t[i]);i--);for(i=0;i<s.length;i++){var a=s[i],c=t;r.matchBase&&1===a.length&&(c=[o]);var u=this.matchOne(c,a,e);if(u)return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},y.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,s=0,a=t.length,c=e.length;i<a&&s<c;i++,s++){this.debug("matchOne loop");var u,l=e[s],p=t[i];if(this.debug(e,l,p),!1===l)return!1;if(l===o){this.debug("GLOBSTAR",[e,l,p]);var f=i,h=s+1;if(h===c){for(this.debug("** at the end");i<a;i++)if("."===t[i]||".."===t[i]||!n.dot&&"."===t[i].charAt(0))return!1;return!0}for(;f<a;){var d=t[f];if(this.debug("\nglobstar while",t,f,e,h,d),this.matchOne(t.slice(f),e.slice(h),r))return this.debug("globstar found match!",f,a,d),!0;if("."===d||".."===d||!n.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,f,e,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!r||(this.debug("\n>>> no match, partial?",t,f,e,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&&""===t[i];throw new Error("wtf?")}},function(t,e,r){"use strict";function n(t){return"/"===t.charAt(0)}function o(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),r=e[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(e[2]||n)}t.exports="win32"===process.platform?o:n,t.exports.posix=n,t.exports.win32=o},function(t,e,r){"use strict";var n=Function.prototype.toString,o=/^\s*class /,i=function(t){try{var e=n.call(t).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return o.test(e)}catch(t){return!1}},s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(a)return function(t){try{return!i(t)&&(n.call(t),!0)}catch(t){return!1}}(t);if(i(t))return!1;var e=s.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},function(t,e,r){"use strict";var n=r(0),o=r(15),i=new(r(16))({max:50,maxAge:3e4});t.exports=function(t,e){var r;if(e=!!e,r=i.get(t+"!"+e),i.has(t))return i.get(t);try{r=e?o.sync(t,{pathExt:n.delimiter+(process.env.PATHEXT||"")}):o.sync(t)}catch(t){}return i.set(t+"!"+e,r),r}},function(t,e,r){t.exports=u,u.sync=function(t,e){for(var r=c(t,e=e||{}),n=r.env,i=r.ext,u=r.extExe,l=[],p=0,f=n.length;p<f;p++){var h=n[p];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var d=o.join(h,t);!h&&/^\.[\\\/]/.test(t)&&(d=t.slice(0,2)+d);for(var y=0,m=i.length;y<m;y++){var v=d+i[y];try{if(s.sync(v,{pathExt:u})){if(!e.all)return v;l.push(v)}}catch(t){}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw a(t)};var n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,o=r(0),i=n?";":":",s=r(46);function a(t){var e=new Error("not found: "+t);return e.code="ENOENT",e}function c(t,e){var r=e.colon||i,o=e.path||process.env.PATH||"",s=[""];o=o.split(r);var a="";return n&&(o.unshift(process.cwd()),s=(a=e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==t.indexOf(".")&&""!==s[0]&&s.unshift("")),(t.match(/\//)||n&&t.match(/\\/))&&(o=[""]),{env:o,ext:s,extExe:a}}function u(t,e,r){"function"==typeof e&&(r=e,e={});var n=c(t,e),i=n.env,u=n.ext,l=n.extExe,p=[];!function n(c,f){if(c===f)return e.all&&p.length?r(null,p):r(a(t));var h=i[c];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var d=o.join(h,t);!h&&/^\.[\\\/]/.test(t)&&(d=t.slice(0,2)+d),function t(o,i){if(o===i)return n(c+1,f);var a=u[o];s(d+a,{pathExt:l},function(n,s){if(!n&&s){if(!e.all)return r(null,d+a);p.push(d+a)}return t(o+1,i)})}(0,u.length)}(0,i.length)}},function(t,e,r){"use strict";t.exports=v;var n,o=r(49),i=r(4),s=r(51),a=(n="function"==typeof Symbol?function(t){return Symbol.for(t)}:function(t){return"_"+t})("max"),c=n("length"),u=n("lengthCalculator"),l=n("allowStale"),p=n("maxAge"),f=n("dispose"),h=n("noDisposeOnSet"),d=n("lruList"),y=n("cache");function m(){return 1}function v(t){if(!(this instanceof v))return new v(t);"number"==typeof t&&(t={max:t}),t||(t={});var e=this[a]=t.max;(!e||"number"!=typeof e||e<=0)&&(this[a]=1/0);var r=t.length||m;"function"!=typeof r&&(r=m),this[u]=r,this[l]=t.stale||!1,this[p]=t.maxAge||0,this[f]=t.dispose,this[h]=t.noDisposeOnSet||!1,this.reset()}function g(t,e,r,n){var o=r.value;w(t,o)&&(S(t,r),t[l]||(o=void 0)),o&&e.call(n,o.value,o.key,t)}function b(t,e,r){var n=t[y].get(e);if(n){var o=n.value;w(t,o)?(S(t,n),t[l]||(o=void 0)):r&&t[d].unshiftNode(n),o&&(o=o.value)}return o}function w(t,e){if(!e||!e.maxAge&&!t[p])return!1;var r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[p]&&r>t[p]}function x(t){if(t[c]>t[a])for(var e=t[d].tail;t[c]>t[a]&&null!==e;){var r=e.prev;S(t,e),e=r}}function S(t,e){if(e){var r=e.value;t[f]&&t[f](r.key,r.value),t[c]-=r.length,t[y].delete(r.key),t[d].removeNode(e)}}Object.defineProperty(v.prototype,"max",{set:function(t){(!t||"number"!=typeof t||t<=0)&&(t=1/0),this[a]=t,x(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(v.prototype,"allowStale",{set:function(t){this[l]=!!t},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(v.prototype,"maxAge",{set:function(t){(!t||"number"!=typeof t||t<0)&&(t=0),this[p]=t,x(this)},get:function(){return this[p]},enumerable:!0}),Object.defineProperty(v.prototype,"lengthCalculator",{set:function(t){"function"!=typeof t&&(t=m),t!==this[u]&&(this[u]=t,this[c]=0,this[d].forEach(function(t){t.length=this[u](t.value,t.key),this[c]+=t.length},this)),x(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(v.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(v.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),v.prototype.rforEach=function(t,e){e=e||this;for(var r=this[d].tail;null!==r;){var n=r.prev;g(this,t,r,e),r=n}},v.prototype.forEach=function(t,e){e=e||this;for(var r=this[d].head;null!==r;){var n=r.next;g(this,t,r,e),r=n}},v.prototype.keys=function(){return this[d].toArray().map(function(t){return t.key},this)},v.prototype.values=function(){return this[d].toArray().map(function(t){return t.value},this)},v.prototype.reset=function(){this[f]&&this[d]&&this[d].length&&this[d].forEach(function(t){this[f](t.key,t.value)},this),this[y]=new o,this[d]=new s,this[c]=0},v.prototype.dump=function(){return this[d].map(function(t){if(!w(this,t))return{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}},this).toArray().filter(function(t){return t})},v.prototype.dumpLru=function(){return this[d]},v.prototype.inspect=function(t,e){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,e),n=!0);var s=this[p];s&&(n&&(r+=","),r+="\n maxAge: "+i.inspect(s,e),n=!0);var f=this[u];f&&f!==m&&(n&&(r+=","),r+="\n length: "+i.inspect(this[c],e),n=!0);var h=!1;return this[d].forEach(function(t){h?r+=",\n ":(n&&(r+=",\n"),h=!0,r+="\n ");var o=i.inspect(t.key).split("\n").join("\n "),a={value:t.value};t.maxAge!==s&&(a.maxAge=t.maxAge),f!==m&&(a.length=t.length),w(this,t)&&(a.stale=!0),a=i.inspect(a,e).split("\n").join("\n "),r+=o+" => "+a}),(h||n)&&(r+="\n"),r+="}"},v.prototype.set=function(t,e,r){var n=(r=r||this[p])?Date.now():0,o=this[u](e,t);if(this[y].has(t)){if(o>this[a])return S(this,this[y].get(t)),!1;var i=this[y].get(t).value;return this[f]&&(this[h]||this[f](t,i.value)),i.now=n,i.maxAge=r,i.value=e,this[c]+=o-i.length,i.length=o,this.get(t),x(this),!0}var s=new function(t,e,r,n,o){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=o||0}(t,e,o,n,r);return s.length>this[a]?(this[f]&&this[f](t,e),!1):(this[c]+=s.length,this[d].unshift(s),this[y].set(t,this[d].head),x(this),!0)},v.prototype.has=function(t){return!!this[y].has(t)&&!w(this,this[y].get(t).value)},v.prototype.get=function(t){return b(this,t,!0)},v.prototype.peek=function(t){return b(this,t,!1)},v.prototype.pop=function(){var t=this[d].tail;return t?(S(this,t),t.value):null},v.prototype.del=function(t){S(this,this[y].get(t))},v.prototype.load=function(t){this.reset();for(var e=Date.now(),r=t.length-1;r>=0;r--){var n=t[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{var i=o-e;i>0&&this.set(n.k,n.v,i)}}},v.prototype.prune=function(){var t=this;this[y].forEach(function(e,r){b(t,r,!1)})}},function(t,e,r){"use strict";t.exports=function(t,e){return t=""+t,t=e?'"'+(t=(t=t.replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"))+'"':t.replace(/([()%!^<>&|;,"'\s])/g,"^$1")}},function(t,e){t.exports=require("events")},function(t,e,r){const n=r(2),o=r(7),i=r(74),s=r(0),a=r(15),c=r(20),u=r(8);var l={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"};function p(t){var e;try{e=u.run('mdfind "kMDItemCFBundleIdentifier=="'+t+'""').replace(/(\s)/g,"\\ ")}catch(t){e=null}return e}function f(t,e){var r=(e||["CFBundleShortVersionString"]).map(function(t){return"-c Print:"+t});return["/usr/libexec/PlistBuddy"].concat(r).concat([t]).join(" ")}function h(t){var e;if("darwin"===process.platform){try{e=u.run(f(s.join(p(t),"Contents","Info.plist"),["CFBundleShortVersionString"]))}catch(t){e="Not Found"}return e}return"N/A"}t.exports=Object.assign(c,{browserBundleIdentifiers:l,findDarwinApplication:p,generatePlistBuddyCommand:f,getAllAndroidSDKs:function(){var t=[],e=[];try{for(var r,n=process.env.ANDROID_HOME?"$ANDROID_HOME/tools/bin/sdkmanager":"sdkmanager",o=u.run(n+" --list").split("Available")[0],i=/build-tools;([\d|.]+)[\S\s]/g,s=/platforms;android-(\d+)[\S\s]/g;r=i.exec(o);)t.push(r[1]);for(;r=s.exec(o);)e.push(r[1])}catch(r){t=["Unknown"],e=["Unknown"]}return{"Build Tools":t,"API Levels":e}},getAlliOSSDKs:function(){var t;if("darwin"!==process.platform)return"N/A";try{t=u.run("xcodebuild -showsdks").match(/[\w]+\s[\d|.]+/g)}catch(e){t="Unknown"}return{Platforms:u.uniq(t)}},getAndroidStudioVersion:function(){var t="Not Found";if("darwin"===process.platform)try{t=u.run(f("/Applications/Android\\ Studio.app/Contents/Info.plist",["CFBundleShortVersionString","CFBundleVersion"])).split("\n").join(" ")}catch(e){t="Not Found"}else if("linux"===process.platform)try{var e=u.run("cat /opt/android-studio/build.txt");t=`${u.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').match(/\d\.\d/)[0]} ${e}`}catch(e){t="Not Found"}else if(process.platform.startsWith("win"))try{t=`${u.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').replace(/(\r\n|\n|\r)/gm,"")} ${u.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').replace(/(\r\n|\n|\r)/gm,"")}`}catch(e){t="Not Found"}return t},getAtomVersion:function(){return u.customGenericVersionFunction(()=>h("com.github.atom"))},getBashVersion:function(){var t,e;try{e=a.sync("bash"),t=u.run(`${e} --version`).match(u.versionRegex)[0]}catch(e){t="Not Found"}return t},getCPUInfo:function(){return u.customGenericVersionFunction(()=>o.arch()+" "+o.cpus()[0].model,"Unknown")},getDarwinApplicationVersion:h,getDockerVersion:function(){return u.customGenericVersionFunction(()=>u.run("docker --version").replace("Docker version ",""))},getElixirVersion:function(){return u.customGenericVersionFunction(()=>/[Elixir]+\s([\d|.]+)/g.exec(u.run("elixir --version"))[1])},getFreeMemory:function(){return u.toReadableBytes(o.freemem())},getGoVersion:function(){return u.customGenericVersionFunction(()=>u.run("go version").replace("go version go","").split(" ",1).join())},getHomeBrewVersion:function(){var t;if("darwin"===process.platform)try{t=u.run("brew --version").replace("Homebrew ","").split("\n",1).join()}catch(e){t="Not Found"}else t="N/A";return t},getNodeVersion:function(){return u.customGenericVersionFunction(()=>u.run("node --version").replace("v",""))},getNpmVersion:function(){return u.customGenericVersionFunction(()=>u.run("npm -v"))},getOperatingSystemInfo:function(){var t;try{t=i(o.platform(),o.release()),"darwin"===process.platform&&(t=t+" "+u.run("sw_vers -productVersion "))}catch(e){t+=" Unknown Version"}return t},getPhpVersion:function(){return u.customGenericVersionFunction(()=>u.run("php -v").split(" ",2)[1])},getParallelsVersion:function(){return u.customGenericVersionFunction(()=>u.run("prlctl --version").match(/[version]+\s([\d|.]+)/)[1])},getPythonVersion:function(){var t,e;try{e=u.run("which python"),t=n.execFileSync(e,["-c","import platform; print(platform.python_version());"]).toString().replace(/(\r\n|\n|\r)/gm,"")}catch(e){t="Not Found"}return t},getRubyVersion:function(){return u.customGenericVersionFunction(()=>u.run("ruby --version").replace("ruby ","").split(" ",1).join())},getShell:function(t){t=t||process.env.SHELL;const e=u.customGenericVersionFunction(()=>u.run(`${t} --version`).match(u.versionRegex)[0]);return t&&e&&`${t} - ${e}`||"¯\\_(ツ)_/¯"},getSublimeTextVersion:function(){return u.customGenericVersionFunction(()=>h("com.sublimetext.3"))},getTotalMemory:function(){return u.toReadableBytes(o.totalmem())},getVirtualBoxVersion:function(){return u.customGenericVersionFunction(()=>u.run("vboxmanage --version"))},getVMwareVersion:function(){return u.customGenericVersionFunction(()=>h("com.vmware.fusion"))},getVSCodeVersion:function(){return u.customGenericVersionFunction(()=>u.run("code --version").split("\n",1).join(""))},getWatchmanVersion:function(){return u.customGenericVersionFunction(()=>a.sync("watchman")&&u.run(a.sync("watchman")+" --version"))},getXcodeVersion:function(){var t;if("darwin"===process.platform){var e=a.sync("xcodebuild");try{t=e&&u.run(e+" -version").split("\n").join(" ")}catch(e){t="Not Found"}}else t="N/A";return t},getYarnVersion:function(){return u.customGenericVersionFunction(()=>u.run("yarn --version"))},getChromeVersion:function(){var t;if("linux"===process.platform)try{t=u.run("google-chrome --version").replace(/^.* ([^ ]*)/g,"$1")}catch(e){t="Not Found"}else t=h(l.Chrome);return t},getFirefoxVersion:function(){var t;if("linux"===process.platform)try{t=u.run("firefox --version").replace(/^.* ([^ ]*)/g,"$1")}catch(e){t="Not Found"}else t=h(l.Firefox);return t},getFirefoxNightlyVersion:function(){var t;if("linux"===process.platform)try{t=u.run("firefox-trunk --version").replace(/^.* ([^ ]*)/g,"$1")}catch(e){t="Not Found"}else t=h(l["Firefox Nightly"]);return t}})},function(t,e,r){const n=r(21),o=r(8);function i(t){return t?n.sync(`node_modules/${t}/package.json`):n.sync("node_modules/**/package.json")}function s(t,e){const r=e.filter(e=>e.includes(`/${t.name}/package.json`)).map(t=>{var e=o.getPackageJsonByPath(t);return!!e&&e.version}).filter(Boolean).reduce((t,e)=>(t.includes(e)||t.push(e),t),[]);return r.length>1&&(t.duplicates=r),t}function a(t){var e=t.trim(),r=o.getPackageJsonByName(e);return r?r.version:"Not Found"}function c(t,e){const r=e.duplicates?{[e.name]:{wanted:e.wanted,installed:a(e.name),duplicates:e.duplicates}}:{[e.name]:{wanted:e.wanted,installed:a(e.name)}};return Object.assign(t,r)}function u(t){return t.map(t=>{var e=o.getPackageJsonByPath(t);return{name:e.name,installed:e.version}}).reduce((t,e)=>Object.assign(t,{[e.name]:t[e.name]?t[e.name].concat([e.installed]):[e.installed]}),{})}function l(t){return{name:t[0],wanted:t[1]}}function p(t){return{name:t[0],installed:t[1]}}function f(t,e){const r=Object.keys(e).indexOf(t.name);return r>-1?Object.assign(t,{wanted:Object.values(e)[r]}):t}t.exports={getPackageInfo:function(t,e){e||(e={});let r=null;"string"==typeof t&&(t.includes("*")||t.includes("?")||t.includes("+")||t.includes("!")?r=t:t=t.split(","));const n=(r||e.duplicates||e.fullTree)&&i(),a=r&&i(r),h=o.getPackageJsonByPath("package.json")||{},d=Object.assign({},h.devDependencies||{},h.dependencies||{}),y=Object.keys(d),m=(a||[]).filter(t=>y.includes(t.match(/(?:node_modules)\/(.+)\/(?:.*)/)[1]));return r?o.sortObject(Object.entries(e.fullTree?u(a):u(m)).map(e.fullTree?p:l).map(t=>f(t,d)).map(t=>e.duplicates?s(t,n):t).reduce(c,{})):Array.isArray(t)?o.sortObject(Object.entries(d).map(l).filter(e=>t.includes(e.name)).map(t=>e.duplicates?s(t,n):t).reduce(c,{})):"boolean"==typeof t?o.sortObject(Object.entries(e.fullTree?u(n):d).map(e.fullTree?p:l).map(t=>f(t,d)).map(t=>e.duplicates?s(t,n):t).reduce(c,{})):{}},getNpmGlobalPackages:function(t){var e;"string"==typeof t&&(t=t.split(","));try{e=o.run("npm list -g --depth=0 --json"),e=JSON.parse(e)}catch(t){if(t.stdout&&(e=JSON.parse(t.stdout.toString())),!e)return"Not Found"}return e=Object.entries(e.dependencies).reduce((e,r)=>{const n=r[0],o=r[1];return!Array.isArray(t)||t.some(t=>t.toLowerCase()===n.toLowerCase())?Object.assign(e,{[n]:o.version}):e},{})}}},function(t,e,r){t.exports=b;var n=r(1),o=r(22),i=r(11),s=(i.Minimatch,r(82)),a=r(18).EventEmitter,c=r(0),u=r(10),l=r(12),p=r(84),f=r(23),h=(f.alphasort,f.alphasorti,f.setopts),d=f.ownProp,y=r(85),m=(r(4),f.childrenIgnored),v=f.isIgnored,g=r(25);function b(t,e,r){if("function"==typeof e&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return p(t,e)}return new x(t,e,r)}b.sync=p;var w=b.GlobSync=p.GlobSync;function x(t,e,r){if("function"==typeof e&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(t,e)}if(!(this instanceof x))return new x(t,e,r);h(this,t,e),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=g(r),this.on("error",r),this.on("end",function(t){r(null,t)}));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;s<n;s++)this._process(this.minimatch.set[s],s,!1,a);function a(){--o._processing,o._processing<=0&&(i?process.nextTick(function(){o._finish()}):o._finish())}i=!1}b.glob=b,b.hasMagic=function(t,e){var r=function(t,e){if(null===e||"object"!=typeof e)return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}({},e);r.noprocess=!0;var n=new x(t,r).minimatch.set;if(!t)return!1;if(n.length>1)return!0;for(var o=0;o<n[0].length;o++)if("string"!=typeof n[0][o])return!0;return!1},b.Glob=x,s(x,a),x.prototype._finish=function(){if(u(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();f.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var t=this.matches.length;if(0===t)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--t&&e._finish()}},x.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r),i=this,s=n.length;if(0===s)return e();var a=this.matches[t]=Object.create(null);n.forEach(function(r,n){r=i._makeAbs(r),o.realpath(r,i.realpathCache,function(n,o){n?"stat"===n.syscall?a[r]=!0:i.emit("error",n):a[o]=!0,0==--s&&(i.matches[t]=a,e())})})},x.prototype._mark=function(t){return f.mark(this,t)},x.prototype._makeAbs=function(t){return f.makeAbs(this,t)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(e=0;e<n.length;e++){var o=n[e];this._processing--,this._process(o[0],o[1],o[2],o[3])}}}},x.prototype._process=function(t,e,r,n){if(u(this instanceof x),u("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([t,e,r,n]);else{for(var o,s=0;"string"==typeof t[s];)s++;switch(s){case t.length:return void this._processSimple(t.join("/"),e,n);case 0:o=null;break;default:o=t.slice(0,s).join("/")}var a,c=t.slice(s);null===o?a=".":l(o)||l(t.join("/"))?(o&&l(o)||(o="/"+o),a=o):a=o;var p=this._makeAbs(a);if(m(this,a))return n();c[0]===i.GLOBSTAR?this._processGlobStar(o,a,p,c,e,r,n):this._processReaddir(o,a,p,c,e,r,n)}},x.prototype._processReaddir=function(t,e,r,n,o,i,s){var a=this;this._readdir(r,i,function(c,u){return a._processReaddir2(t,e,r,n,o,i,u,s)})},x.prototype._processReaddir2=function(t,e,r,n,o,i,s,a){if(!s)return a();for(var u=n[0],l=!!this.minimatch.negate,p=u._glob,f=this.dot||"."===p.charAt(0),h=[],d=0;d<s.length;d++){if("."!==(m=s[d]).charAt(0)||f)(l&&!t?!m.match(u):m.match(u))&&h.push(m)}var y=h.length;if(0===y)return a();if(1===n.length&&!this.mark&&!this.stat){this.matches[o]||(this.matches[o]=Object.create(null));for(d=0;d<y;d++){var m=h[d];t&&(m="/"!==t?t+"/"+m:t+m),"/"!==m.charAt(0)||this.nomount||(m=c.join(this.root,m)),this._emitMatch(o,m)}return a()}n.shift();for(d=0;d<y;d++){m=h[d];t&&(m="/"!==t?t+"/"+m:t+m),this._process([m].concat(n),o,i,a)}a()},x.prototype._emitMatch=function(t,e){if(!this.aborted&&!v(this,e))if(this.paused)this._emitQueue.push([t,e]);else{var r=l(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[t][e]=!0;var o=this.statCache[r];o&&this.emit("stat",e,o),this.emit("match",e)}}},x.prototype._readdirInGlobStar=function(t,e){if(!this.aborted){if(this.follow)return this._readdir(t,!1,e);var r=this,o=y("lstat\0"+t,function(n,o){if(n&&"ENOENT"===n.code)return e();var i=o&&o.isSymbolicLink();r.symlinks[t]=i,i||!o||o.isDirectory()?r._readdir(t,!1,e):(r.cache[t]="FILE",e())});o&&n.lstat(t,o)}},x.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=y("readdir\0"+t+"\0"+e,r))){if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t,r);if(d(this.cache,t)){var o=this.cache[t];if(!o||"FILE"===o)return r();if(Array.isArray(o))return r(null,o)}n.readdir(t,function(t,e,r){return function(n,o){n?t._readdirError(e,n,r):t._readdirEntries(e,o,r)}}(this,t,r))}},x.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var o=e[n];o="/"===t?t+o:t+"/"+o,this.cache[o]=!0}return this.cache[t]=e,r(null,e)}},x.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(t);if(this.cache[n]="FILE",n===this.cwdAbs){var o=new Error(e.code+" invalid cwd "+this.cwd);o.path=this.cwd,o.code=e.code,this.emit("error",o),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e)}return r()}},x.prototype._processGlobStar=function(t,e,r,n,o,i,s){var a=this;this._readdir(r,i,function(c,u){a._processGlobStar2(t,e,r,n,o,i,u,s)})},x.prototype._processGlobStar2=function(t,e,r,n,o,i,s,a){if(!s)return a();var c=n.slice(1),u=t?[t]:[],l=u.concat(c);this._process(l,o,!1,a);var p=this.symlinks[r],f=s.length;if(p&&i)return a();for(var h=0;h<f;h++){if("."!==s[h].charAt(0)||this.dot){var d=u.concat(s[h],c);this._process(d,o,!0,a);var y=u.concat(s[h],n);this._process(y,o,!0,a)}}a()},x.prototype._processSimple=function(t,e,r){var n=this;this._stat(t,function(o,i){n._processSimple2(t,e,o,i,r)})},x.prototype._processSimple2=function(t,e,r,n,o){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return o();if(t&&l(t)&&!this.nomount){var i=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=c.join(this.root,t):(t=c.resolve(this.root,t),i&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),o()},x.prototype._stat=function(t,e){var r=this._makeAbs(t),o="/"===t.slice(-1);if(t.length>this.maxLength)return e();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!o||"DIR"===i)return e(null,i);if(o&&"FILE"===i)return e()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return o&&"FILE"===a?e():e(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(t,r,null,i,e):c._stat2(t,r,n,o,e)});c._stat2(t,r,o,i,e)});u&&n.lstat(r,u)},x.prototype._stat2=function(t,e,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[e]=!1,o();var i="/"===t.slice(-1);if(this.statCache[e]=n,"/"===e.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,i&&"FILE"===s?o():o(null,s,n)}},function(t,e,r){t.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(t){return t&&"realpath"===t.syscall&&("ELOOP"===t.code||"ENOMEM"===t.code||"ENAMETOOLONG"===t.code)}function l(t,e,r){if(a)return o(t,e,r);"function"==typeof e&&(r=e,e=null),o(t,e,function(n,o){u(n)?c.realpath(t,e,r):r(n,o)})}function p(t,e){if(a)return i(t,e);try{return i(t,e)}catch(r){if(u(r))return c.realpathSync(t,e);throw r}}},function(t,e,r){function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.alphasort=u,e.alphasorti=c,e.setopts=function(t,e,r){r||(r={});if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=!1!==r.strict,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0);t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),function(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]);t.ignore.length&&(t.ignore=t.ignore.map(l))}(t,r),t.changedCwd=!1;var i=process.cwd();n(r,"cwd")?(t.cwd=o.resolve(r.cwd),t.changedCwd=t.cwd!==i):t.cwd=i;t.root=r.root||o.resolve(t.cwd,"/"),t.root=o.resolve(t.root),"win32"===process.platform&&(t.root=t.root.replace(/\\/g,"/"));t.cwdAbs=s(t.cwd)?t.cwd:p(t,t.cwd),"win32"===process.platform&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/"));t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,t.minimatch=new a(e,r),t.options=t.minimatch.options},e.ownProp=n,e.makeAbs=p,e.finish=function(t){for(var e=t.nounique,r=e?[]:Object.create(null),n=0,o=t.matches.length;n<o;n++){var i=t.matches[n];if(i&&0!==Object.keys(i).length){var s=Object.keys(i);e?r.push.apply(r,s):s.forEach(function(t){r[t]=!0})}else if(t.nonull){var a=t.minimatch.globSet[n];e?r.push(a):r[a]=!0}}e||(r=Object.keys(r));t.nosort||(r=r.sort(t.nocase?c:u));if(t.mark){for(var n=0;n<r.length;n++)r[n]=t._mark(r[n]);t.nodir&&(r=r.filter(function(e){var r=!/\/$/.test(e),n=t.cache[e]||t.cache[p(t,e)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r}))}t.ignore.length&&(r=r.filter(function(e){return!f(t,e)}));t.found=r},e.mark=function(t,e){var r=p(t,e),n=t.cache[r],o=e;if(n){var i="DIR"===n||Array.isArray(n),s="/"===e.slice(-1);if(i&&!s?o+="/":!i&&s&&(o=o.slice(0,-1)),o!==e){var a=p(t,o);t.statCache[a]=t.statCache[r],t.cache[a]=t.cache[r]}}return o},e.isIgnored=f,e.childrenIgnored=function(t,e){return!!t.ignore.length&&t.ignore.some(function(t){return!(!t.gmatcher||!t.gmatcher.match(e))})};var o=r(0),i=r(11),s=r(12),a=i.Minimatch;function c(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function u(t,e){return t.localeCompare(e)}function l(t){var e=null;if("/**"===t.slice(-3)){var r=t.replace(/(\/\*\*)+$/,"");e=new a(r,{dot:!0})}return{matcher:new a(t,{dot:!0}),gmatcher:e}}function p(t,e){var r=e;return r="/"===e.charAt(0)?o.join(t.root,e):s(e)||""===e?e:t.changedCwd?o.resolve(t.cwd,e):o.resolve(e),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function f(t,e){return!!t.ignore.length&&t.ignore.some(function(t){return t.matcher.match(e)||!(!t.gmatcher||!t.gmatcher.match(e))})}},function(t,e){t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){n[t]=e[t]});return n;function n(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),o=t[t.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach(function(t){n[t]=o[t]}),n}}},function(t,e,r){var n=r(24);function o(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function i(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=n(o),t.exports.strict=n(i),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})})},function(t,e,r){"use strict";t.exports=r(27)},function(t,e,r){"use strict";var n=r(5),o=r(101),i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=r(29),c=r(30),u=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,l=r(31),p=r(32),f=r(33),h=r(104),d=parseInt,y=r(9),m=y.call(Function.call,Array.prototype.slice),v=y.call(Function.call,String.prototype.slice),g=y.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i),b=y.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i),w=y.call(Function.call,RegExp.prototype.exec),x=["…","​","￾"].join(""),S=new RegExp("["+x+"]","g"),j=y.call(Function.call,RegExp.prototype.test,S),O=y.call(Function.call,RegExp.prototype.test,/^[-+]0x[0-9a-f]+$/i),E=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),T=new RegExp("(^["+E+"]+)|(["+E+"]+$)","g"),k=y.call(Function.call,String.prototype.replace),A=r(105),_=r(107),P=l(l({},A),{Call:function(t,e){var r=arguments.length>2?arguments[2]:[];if(!this.IsCallable(t))throw new TypeError(t+" is not a function");return t.apply(e,r)},ToPrimitive:o,ToNumber:function(t){var e=h(t)?t:o(t,Number);if("symbol"==typeof e)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof e){if(g(e))return this.ToNumber(d(v(e,2),2));if(b(e))return this.ToNumber(d(v(e,2),8));if(j(e)||O(e))return NaN;var r=function(t){return k(t,T,"")}(e);if(r!==e)return this.ToNumber(r)}return Number(e)},ToInt16:function(t){var e=this.ToUint16(t);return e>=32768?e-65536:e},ToInt8:function(t){var e=this.ToUint8(t);return e>=128?e-256:e},ToUint8:function(t){var e=this.ToNumber(t);if(a(e)||0===e||!c(e))return 0;var r=p(e)*Math.floor(Math.abs(e));return f(r,256)},ToUint8Clamp:function(t){var e=this.ToNumber(t);if(a(e)||e<=0)return 0;if(e>=255)return 255;var r=Math.floor(t);return r+.5<e?r+1:e<r+.5?r:r%2!=0?r+1:r},ToString:function(t){if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a string");return String(t)},ToObject:function(t){return this.RequireObjectCoercible(t),Object(t)},ToPropertyKey:function(t){var e=this.ToPrimitive(t,String);return"symbol"==typeof e?e:this.ToString(e)},ToLength:function(t){var e=this.ToInteger(t);return e<=0?0:e>u?u:e},CanonicalNumericIndexString:function(t){if("[object String]"!==i.call(t))throw new TypeError("must be a string");if("-0"===t)return-0;var e=this.ToNumber(t);return this.SameValue(this.ToString(e),t)?e:void 0},RequireObjectCoercible:A.CheckObjectCoercible,IsArray:Array.isArray||function(t){return"[object Array]"===i.call(t)},IsConstructor:function(t){return"function"==typeof t&&!!t.prototype},IsExtensible:function(t){return!Object.preventExtensions||!h(t)&&Object.isExtensible(t)},IsInteger:function(t){if("number"!=typeof t||a(t)||!c(t))return!1;var e=Math.abs(t);return Math.floor(e)===e},IsPropertyKey:function(t){return"string"==typeof t||"symbol"==typeof t},IsRegExp:function(t){if(!t||"object"!=typeof t)return!1;if(s){var e=t[Symbol.match];if(void 0!==e)return A.ToBoolean(e)}return _(t)},SameValueZero:function(t,e){return t===e||a(t)&&a(e)},GetV:function(t,e){if(!this.IsPropertyKey(e))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(t)[e]},GetMethod:function(t,e){if(!this.IsPropertyKey(e))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(t,e);if(null!=r){if(!this.IsCallable(r))throw new TypeError(e+"is not a function");return r}},Get:function(t,e){if("Object"!==this.Type(t))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return t[e]},Type:function(t){return"symbol"==typeof t?"Symbol":A.Type(t)},SpeciesConstructor:function(t,e){if("Object"!==this.Type(t))throw new TypeError("Assertion failed: Type(O) is not Object");var r=t.constructor;if(void 0===r)return e;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 e;if(this.IsConstructor(n))return n;throw new TypeError("no constructor found")},CompletePropertyDescriptor:function(t){if(!this.IsPropertyDescriptor(t))throw new TypeError("Desc must be a Property Descriptor");return this.IsGenericDescriptor(t)||this.IsDataDescriptor(t)?(n(t,"[[Value]]")||(t["[[Value]]"]=void 0),n(t,"[[Writable]]")||(t["[[Writable]]"]=!1)):(n(t,"[[Get]]")||(t["[[Get]]"]=void 0),n(t,"[[Set]]")||(t["[[Set]]"]=void 0)),n(t,"[[Enumerable]]")||(t["[[Enumerable]]"]=!1),n(t,"[[Configurable]]")||(t["[[Configurable]]"]=!1),t},Set:function(t,e,r,n){if("Object"!==this.Type(t))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(e))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 t[e]=r,!0;try{t[e]=r}catch(t){return!1}},HasOwnProperty:function(t,e){if("Object"!==this.Type(t))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(e))throw new TypeError("P must be a Property Key");return n(t,e)},HasProperty:function(t,e){if("Object"!==this.Type(t))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(e))throw new TypeError("P must be a Property Key");return e in t},IsConcatSpreadable:function(t){if("Object"!==this.Type(t))return!1;if(s&&"symbol"==typeof Symbol.isConcatSpreadable){var e=this.Get(t,Symbol.isConcatSpreadable);if(void 0!==e)return this.ToBoolean(e)}return this.IsArray(t)},Invoke:function(t,e){if(!this.IsPropertyKey(e))throw new TypeError("P must be a Property Key");var r=m(arguments,2),n=this.GetV(t,e);return this.Call(n,t,r)},CreateIterResultObject:function(t,e){if("Boolean"!==this.Type(e))throw new TypeError("Assertion failed: Type(done) is not Boolean");return{value:t,done:e}},RegExpExec:function(t,e){if("Object"!==this.Type(t))throw new TypeError("R must be an Object");if("String"!==this.Type(e))throw new TypeError("S must be a String");var r=this.Get(t,"exec");if(this.IsCallable(r)){var n=this.Call(r,t,[e]);if(null===n||"Object"===this.Type(n))return n;throw new TypeError('"exec" method must return `null` or an Object')}return w(t,e)},ArraySpeciesCreate:function(t,e){if(!this.IsInteger(e)||e<0)throw new TypeError("Assertion failed: length must be an integer >= 0");var r,n=0===e?0:e;if(this.IsArray(t)&&(r=this.Get(t,"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(t,e,r){if("Object"!==this.Type(t))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=Object.getOwnPropertyDescriptor(t,e),o=n||"function"!=typeof Object.isExtensible||Object.isExtensible(t);if(n&&(!n.writable||!n.configurable)||!o)return!1;var i={configurable:!0,enumerable:!0,value:r,writable:!0};return Object.defineProperty(t,e,i),!0},CreateDataPropertyOrThrow:function(t,e,r){if("Object"!==this.Type(t))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(e))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(t,e,r);if(!n)throw new TypeError("unable to create data property");return n},AdvanceStringIndex:function(t,e,r){if("String"!==this.Type(t))throw new TypeError("Assertion failed: Type(S) is not String");if(!this.IsInteger(e))throw new TypeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if(e<0||e>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 e+1;if(e+1>=t.length)return e+1;var n=t.charCodeAt(e);if(n<55296||n>56319)return e+1;var o=t.charCodeAt(e+1);return o<56320||o>57343?e+1:e+2}});delete P.CheckObjectCoercible,t.exports=P},function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e){t.exports=Number.isNaN||function(t){return t!=t}},function(t,e){var r=Number.isNaN|