@lakutata/core 1.0.30 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/build/Application.d.ts +1 -0
  2. package/build/Application.js +4 -7
  3. package/build/Application.js.map +1 -1
  4. package/build/ApplicationManagement.js.map +1 -1
  5. package/build/base/BaseObject.js +1 -1
  6. package/build/base/BaseObject.js.map +1 -1
  7. package/build/base/ValidatorClass.d.ts +1 -0
  8. package/build/base/ValidatorClass.js +70 -53
  9. package/build/base/ValidatorClass.js.map +1 -1
  10. package/build/base/abstracts/Exception.js +5 -2
  11. package/build/base/abstracts/Exception.js.map +1 -1
  12. package/build/base/abstracts/Module.js +8 -8
  13. package/build/base/abstracts/Module.js.map +1 -1
  14. package/build/base/abstracts/Workflow.js +1 -1
  15. package/build/base/abstracts/Workflow.js.map +1 -1
  16. package/build/base/process/ProcessManager.js +1 -1
  17. package/build/base/process/ProcessManager.js.map +1 -1
  18. package/build/base/thread/ThreadManager.js +1 -1
  19. package/build/base/thread/ThreadManager.js.map +1 -1
  20. package/build/decorators/MethodValidation.js.map +1 -1
  21. package/build/interfaces/ShellJsInterfaces.d.ts +162 -0
  22. package/build/interfaces/ShellJsInterfaces.js +3 -0
  23. package/build/interfaces/ShellJsInterfaces.js.map +1 -0
  24. package/build/lib/multipleRunner/lib/Process.js +3 -3
  25. package/build/lib/multipleRunner/lib/Process.js.map +1 -1
  26. package/build/lib/multipleRunner/lib/Thread.js +4 -4
  27. package/build/lib/multipleRunner/lib/Thread.js.map +1 -1
  28. package/build/plugins/Crypto.js +2 -2
  29. package/build/plugins/Crypto.js.map +1 -1
  30. package/build/plugins/Formatter.js +1 -1
  31. package/build/plugins/Formatter.js.map +1 -1
  32. package/build/plugins/HttpRequest.js +8 -8
  33. package/build/plugins/HttpRequest.js.map +1 -1
  34. package/build/plugins/Logger.js +12 -7
  35. package/build/plugins/Logger.js.map +1 -1
  36. package/build/plugins/MessagePack.js +2 -2
  37. package/build/plugins/MessagePack.js.map +1 -1
  38. package/build/plugins/Security.js +24 -24
  39. package/build/plugins/Security.js.map +1 -1
  40. package/build/plugins/Shell.d.ts +39 -0
  41. package/build/plugins/Shell.js +58 -0
  42. package/build/plugins/Shell.js.map +1 -0
  43. package/build/utils/Delay.js +1 -1
  44. package/build/utils/Delay.js.map +1 -1
  45. package/build/utils/Timeout.js +1 -1
  46. package/build/utils/Timeout.js.map +1 -1
  47. package/build/utils/ValidDataUrl.d.ts +1 -0
  48. package/build/utils/ValidDataUrl.js +8 -0
  49. package/build/utils/ValidDataUrl.js.map +1 -0
  50. package/package.json +4 -4
  51. package/src/Application.ts +4 -11
  52. package/src/ApplicationManagement.ts +1 -1
  53. package/src/base/ValidatorClass.ts +44 -7
  54. package/src/base/abstracts/Exception.ts +2 -2
  55. package/src/decorators/MethodValidation.ts +6 -6
  56. package/src/interfaces/ShellJsInterfaces.ts +858 -0
  57. package/src/lib/minified/ShellJs.min.js +1 -0
  58. package/src/plugins/Crypto.ts +3 -3
  59. package/src/plugins/Logger.ts +8 -3
  60. package/src/plugins/Shell.ts +371 -0
  61. package/src/tests/Main.spec.ts +2 -1
  62. package/src/utils/ValidDataUrl.ts +8 -0
@@ -0,0 +1 @@
1
+ (()=>{var e={6099:e=>{e.exports=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"]},3819:e=>{"use strict";e.exports=balanced;function balanced(e,r,t){if(e instanceof RegExp)e=maybeMatch(e,t);if(r instanceof RegExp)r=maybeMatch(r,t);var n=range(e,r,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+e.length,n[1]),post:t.slice(n[1]+r.length)}}function maybeMatch(e,r){var t=r.match(e);return t?t[0]:null}balanced.range=range;function range(e,r,t){var n,i,s,o,a;var c=t.indexOf(e);var l=t.indexOf(r,c+1);var u=c;if(c>=0&&l>0){if(e===r){return[c,l]}n=[];s=t.length;while(u>=0&&!a){if(u==c){n.push(u);c=t.indexOf(e,u+1)}else if(n.length==1){a=[n.pop(),l]}else{i=n.pop();if(i<s){s=i;o=l}l=t.indexOf(r,u+1)}u=c<l&&c>=0?c:l}if(n.length){a=[s,o]}}return a}},1190:(e,r,t)=>{var n=t(78);var i=t(3819);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var r=[];var t=i("{","}",e);if(!t)return e.split(",");var n=t.pre;var s=t.body;var o=t.post;var a=n.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}r.push.apply(r,a);return r}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,r){return e<=r}function gte(e,r){return e>=r}function expand(e,r){var t=[];var s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=o||c;var u=s.body.indexOf(",")>=0;if(!l&&!u){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var p;if(l){p=s.body.split(/\.\./)}else{p=parseCommaParts(s.body);if(p.length===1){p=expand(p[0],false).map(embrace);if(p.length===1){var h=s.post.length?expand(s.post,false):[""];return h.map((function(e){return s.pre+p[0]+e}))}}}var d=s.pre;var h=s.post.length?expand(s.post,false):[""];var v;if(l){var m=numeric(p[0]);var y=numeric(p[1]);var g=Math.max(p[0].length,p[1].length);var b=p.length==3?Math.abs(numeric(p[2])):1;var w=lte;var S=y<m;if(S){b*=-1;w=gte}var x=p.some(isPadded);v=[];for(var _=m;w(_,y);_+=b){var k;if(c){k=String.fromCharCode(_);if(k==="\\")k=""}else{k=String(_);if(x){var O=g-k.length;if(O>0){var j=new Array(O+1).join("0");if(_<0)k="-"+j+k.slice(1);else k=j+k}}}v.push(k)}}else{v=n(p,(function(e){return expand(e,false)}))}for(var C=0;C<v.length;C++){for(var R=0;R<h.length;R++){var L=d+v[C]+h[R];if(!r||l||L)t.push(L)}}return t}},78:e=>{e.exports=function(e,t){var n=[];for(var i=0;i<e.length;i++){var s=t(e[i],i);if(r(s))n.push.apply(n,s);else n.push(s)}return n};var r=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},5775:(e,r,t)=>{"use strict";const n=t(2081);const i=t(4810);const s=t(8496);function spawn(e,r,t){const o=i(e,r,t);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,r,t){const o=i(e,r,t);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},8496:e=>{"use strict";const r=process.platform==="win32";function notFoundError(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,t){if(!r){return}const n=e.emit;e.emit=function(r,i){if(r==="exit"){const r=verifyENOENT(i,t,"spawn");if(r){return n.call(e,"error",r)}}return n.apply(e,arguments)}}function verifyENOENT(e,t){if(r&&e===1&&!t.file){return notFoundError(t.original,"spawn")}return null}function verifyENOENTSync(e,t){if(r&&e===1&&!t.file){return notFoundError(t.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},4810:(e,r,t)=>{"use strict";const n=t(1017);const i=t(5526);const s=t(1463);const o=t(7358);const a=t(6409);const c=t(2774);const l=process.platform==="win32";const u=/\.(?:com|exe)$/i;const p=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const h=i((()=>c.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true)))||false;function detectShebang(e){e.file=s(e);const r=e.file&&a(e.file);if(r){e.args.unshift(e.file);e.command=r;return s(e)}return e.file}function parseNonShell(e){if(!l){return e}const r=detectShebang(e);const t=!u.test(r);if(e.options.forceShell||t){const t=p.test(r);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,t)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(h){return e}const r=[e.command].concat(e.args).join(" ");if(l){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${r}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",r]}return e}function parse(e,r,t){if(r&&!Array.isArray(r)){t=r;r=null}r=r?r.slice(0):[];t=Object.assign({},t);const n={command:e,args:r,options:t,file:undefined,original:{command:e,args:r}};return t.shell?parseShell(n):parseNonShell(n)}e.exports=parse},7358:e=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(r,"^$1");return e}function escapeArgument(e,t){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(r,"^$1");if(t){e=e.replace(r,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},6409:(e,r,t)=>{"use strict";const n=t(7147);const i=t(8701);function readShebang(e){const r=150;let t;if(Buffer.alloc){t=Buffer.alloc(r)}else{t=new Buffer(r);t.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,t,0,r,0);n.closeSync(s)}catch(e){}return i(t.toString())}e.exports=readShebang},1463:(e,r,t)=>{"use strict";const n=t(1017);const i=t(6446);const s=t(5200)();function resolveCommandAttempt(e,r){const t=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:r?n.delimiter:undefined})}catch(e){}finally{process.chdir(t)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},2774:(e,r)=>{r=e.exports=SemVer;var t;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){t=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{t=function(){}}r.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=r.re=[];var a=r.src=[];var c=0;var l=c++;a[l]="0|[1-9]\\d*";var u=c++;a[u]="[0-9]+";var p=c++;a[p]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var h=c++;a[h]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var d=c++;a[d]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var v=c++;a[v]="(?:"+a[l]+"|"+a[p]+")";var m=c++;a[m]="(?:"+a[u]+"|"+a[p]+")";var y=c++;a[y]="(?:-("+a[v]+"(?:\\."+a[v]+")*))";var g=c++;a[g]="(?:-?("+a[m]+"(?:\\."+a[m]+")*))";var b=c++;a[b]="[0-9A-Za-z-]+";var w=c++;a[w]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var S=c++;var x="v?"+a[h]+a[y]+"?"+a[w]+"?";a[S]="^"+x+"$";var _="[v=\\s]*"+a[d]+a[g]+"?"+a[w]+"?";var k=c++;a[k]="^"+_+"$";var O=c++;a[O]="((?:<|>)?=?)";var j=c++;a[j]=a[u]+"|x|X|\\*";var C=c++;a[C]=a[l]+"|x|X|\\*";var R=c++;a[R]="[v=\\s]*("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:"+a[y]+")?"+a[w]+"?"+")?)?";var L=c++;a[L]="[v=\\s]*("+a[j]+")"+"(?:\\.("+a[j]+")"+"(?:\\.("+a[j]+")"+"(?:"+a[g]+")?"+a[w]+"?"+")?)?";var I=c++;a[I]="^"+a[O]+"\\s*"+a[R]+"$";var A=c++;a[A]="^"+a[O]+"\\s*"+a[L]+"$";var P=c++;a[P]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var T=c++;a[T]="(?:~>?)";var N=c++;a[N]="(\\s*)"+a[T]+"\\s+";o[N]=new RegExp(a[N],"g");var D="$1~";var G=c++;a[G]="^"+a[T]+a[R]+"$";var M=c++;a[M]="^"+a[T]+a[L]+"$";var $=c++;a[$]="(?:\\^)";var V=c++;a[V]="(\\s*)"+a[$]+"\\s+";o[V]=new RegExp(a[V],"g");var q="$1^";var B=c++;a[B]="^"+a[$]+a[R]+"$";var X=c++;a[X]="^"+a[$]+a[L]+"$";var U=c++;a[U]="^"+a[O]+"\\s*("+_+")$|^$";var W=c++;a[W]="^"+a[O]+"\\s*("+x+")$|^$";var z=c++;a[z]="(\\s*)"+a[O]+"\\s*("+_+"|"+a[R]+")";o[z]=new RegExp(a[z],"g");var H="$1$2$3";var Q=c++;a[Q]="^\\s*("+a[R]+")"+"\\s+-\\s+"+"("+a[R]+")"+"\\s*$";var Y=c++;a[Y]="^\\s*("+a[L]+")"+"\\s+-\\s+"+"("+a[L]+")"+"\\s*$";var K=c++;a[K]="(<|>)?=?\\s*\\*";for(var Z=0;Z<c;Z++){t(Z,a[Z]);if(!o[Z]){o[Z]=new RegExp(a[Z])}}r.parse=parse;function parse(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var t=r.loose?o[k]:o[S];if(!t.test(e)){return null}try{return new SemVer(e,r)}catch(e){return null}}r.valid=valid;function valid(e,r){var t=parse(e,r);return t?t.version:null}r.clean=clean;function clean(e,r){var t=parse(e.trim().replace(/^[=v]+/,""),r);return t?t.version:null}r.SemVer=SemVer;function SemVer(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===r.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,r)}t("SemVer",e,r);this.options=r;this.loose=!!r.loose;var s=e.trim().match(r.loose?o[k]:o[S]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var r=+e;if(r>=0&&r<i){return r}}return e}))}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){t("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var r=0;do{var n=this.prerelease[r];var i=e.prerelease[r];t("prerelease compare",r,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++r)};SemVer.prototype.inc=function(e,r){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r);this.inc("pre",r);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r)}this.inc("pre",r);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var t=this.prerelease.length;while(--t>=0){if(typeof this.prerelease[t]==="number"){this.prerelease[t]++;t=-2}}if(t===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};r.inc=inc;function inc(e,r,t,n){if(typeof t==="string"){n=t;t=undefined}try{return new SemVer(e,t).inc(r,n).version}catch(e){return null}}r.diff=diff;function diff(e,r){if(eq(e,r)){return null}else{var t=parse(e);var n=parse(r);var i="";if(t.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in t){if(o==="major"||o==="minor"||o==="patch"){if(t[o]!==n[o]){return i+o}}}return s}}r.compareIdentifiers=compareIdentifiers;var J=/^[0-9]+$/;function compareIdentifiers(e,r){var t=J.test(e);var n=J.test(r);if(t&&n){e=+e;r=+r}return e===r?0:t&&!n?-1:n&&!t?1:e<r?-1:1}r.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,r){return compareIdentifiers(r,e)}r.major=major;function major(e,r){return new SemVer(e,r).major}r.minor=minor;function minor(e,r){return new SemVer(e,r).minor}r.patch=patch;function patch(e,r){return new SemVer(e,r).patch}r.compare=compare;function compare(e,r,t){return new SemVer(e,t).compare(new SemVer(r,t))}r.compareLoose=compareLoose;function compareLoose(e,r){return compare(e,r,true)}r.rcompare=rcompare;function rcompare(e,r,t){return compare(r,e,t)}r.sort=sort;function sort(e,t){return e.sort((function(e,n){return r.compare(e,n,t)}))}r.rsort=rsort;function rsort(e,t){return e.sort((function(e,n){return r.rcompare(e,n,t)}))}r.gt=gt;function gt(e,r,t){return compare(e,r,t)>0}r.lt=lt;function lt(e,r,t){return compare(e,r,t)<0}r.eq=eq;function eq(e,r,t){return compare(e,r,t)===0}r.neq=neq;function neq(e,r,t){return compare(e,r,t)!==0}r.gte=gte;function gte(e,r,t){return compare(e,r,t)>=0}r.lte=lte;function lte(e,r,t){return compare(e,r,t)<=0}r.cmp=cmp;function cmp(e,r,t,n){switch(r){case"===":if(typeof e==="object")e=e.version;if(typeof t==="object")t=t.version;return e===t;case"!==":if(typeof e==="object")e=e.version;if(typeof t==="object")t=t.version;return e!==t;case"":case"=":case"==":return eq(e,t,n);case"!=":return neq(e,t,n);case">":return gt(e,t,n);case">=":return gte(e,t,n);case"<":return lt(e,t,n);case"<=":return lte(e,t,n);default:throw new TypeError("Invalid operator: "+r)}}r.Comparator=Comparator;function Comparator(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!r.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,r)}t("comparator",e,r);this.options=r;this.loose=!!r.loose;this.parse(e);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}t("comp",this)}var ee={};Comparator.prototype.parse=function(e){var r=this.options.loose?o[U]:o[W];var t=e.match(r);if(!t){throw new TypeError("Invalid comparator: "+e)}this.operator=t[1];if(this.operator==="="){this.operator=""}if(!t[2]){this.semver=ee}else{this.semver=new SemVer(t[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){t("Comparator.test",e,this.options.loose);if(this.semver===ee){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,r){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}var t;if(this.operator===""){t=new Range(e.value,r);return satisfies(this.value,t,r)}else if(e.operator===""){t=new Range(this.value,r);return satisfies(e.semver,t,r)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,r)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,r)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};r.Range=Range;function Range(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{return new Range(e.raw,r)}}if(e instanceof Comparator){return new Range(e.value,r)}if(!(this instanceof Range)){return new Range(e,r)}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.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}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var r=this.options.loose;e=e.trim();var n=r?o[Y]:o[Q];e=e.replace(n,hyphenReplace);t("hyphen replace",e);e=e.replace(o[z],H);t("comparator trim",e,o[z]);e=e.replace(o[N],D);e=e.replace(o[V],q);e=e.split(/\s+/).join(" ");var i=r?o[U]:o[W];var s=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter((function(e){return!!e.match(i)}))}s=s.map((function(e){return new Comparator(e,this.options)}),this);return s};Range.prototype.intersects=function(e,r){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(t){return t.every((function(t){return e.set.some((function(e){return e.every((function(e){return t.intersects(e,r)}))}))}))}))};r.toComparators=toComparators;function toComparators(e,r){return new Range(e,r).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,r){t("comp",e,r);e=replaceCarets(e,r);t("caret",e);e=replaceTildes(e,r);t("tildes",e);e=replaceXRanges(e,r);t("xrange",e);e=replaceStars(e,r);t("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,r){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,r)})).join(" ")}function replaceTilde(e,r){var n=r.loose?o[M]:o[G];return e.replace(n,(function(r,n,i,s,o){t("tilde",e,r,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){t("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}t("tilde return",a);return a}))}function replaceCarets(e,r){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,r)})).join(" ")}function replaceCaret(e,r){t("caret",e,r);var n=r.loose?o[X]:o[B];return e.replace(n,(function(r,n,i,s,o){t("caret",e,r,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){t("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{t("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}t("caret return",a);return a}))}function replaceXRanges(e,r){t("replaceXRanges",e,r);return e.split(/\s+/).map((function(e){return replaceXRange(e,r)})).join(" ")}function replaceXRange(e,r){e=e.trim();var n=r.loose?o[A]:o[I];return e.replace(n,(function(r,n,i,s,o,a){t("xRange",e,r,n,i,s,o,a);var c=isX(i);var l=c||isX(s);var u=l||isX(o);var p=u;if(n==="="&&p){n=""}if(c){if(n===">"||n==="<"){r="<0.0.0"}else{r="*"}}else if(n&&p){if(l){s=0}o=0;if(n===">"){n=">=";if(l){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(l){i=+i+1}else{s=+s+1}}r=n+i+"."+s+"."+o}else if(l){r=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(u){r=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}t("xRange return",r);return r}))}function replaceStars(e,r){t("replaceStars",e,r);return e.trim().replace(o[K],"")}function hyphenReplace(e,r,t,n,i,s,o,a,c,l,u,p,h){if(isX(t)){r=""}else if(isX(n)){r=">="+t+".0.0"}else if(isX(i)){r=">="+t+"."+n+".0"}else{r=">="+r}if(isX(c)){a=""}else if(isX(l)){a="<"+(+c+1)+".0.0"}else if(isX(u)){a="<"+c+"."+(+l+1)+".0"}else if(p){a="<="+c+"."+l+"."+u+"-"+p}else{a="<="+a}return(r+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var r=0;r<this.set.length;r++){if(testSet(this.set[r],e,this.options)){return true}}return false};function testSet(e,r,n){for(var i=0;i<e.length;i++){if(!e[i].test(r)){return false}}if(r.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){t(e[i].semver);if(e[i].semver===ee){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===r.major&&s.minor===r.minor&&s.patch===r.patch){return true}}}return false}return true}r.satisfies=satisfies;function satisfies(e,r,t){try{r=new Range(r,t)}catch(e){return false}return r.test(e)}r.maxSatisfying=maxSatisfying;function maxSatisfying(e,r,t){var n=null;var i=null;try{var s=new Range(r,t)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,t)}}}));return n}r.minSatisfying=minSatisfying;function minSatisfying(e,r,t){var n=null;var i=null;try{var s=new Range(r,t)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,t)}}}));return n}r.minVersion=minVersion;function minVersion(e,r){e=new Range(e,r);var t=new SemVer("0.0.0");if(e.test(t)){return t}t=new SemVer("0.0.0-0");if(e.test(t)){return t}t=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach((function(e){var r=new SemVer(e.semver.version);switch(e.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!t||gt(t,r)){t=r}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(t&&e.test(t)){return t}return null}r.validRange=validRange;function validRange(e,r){try{return new Range(e,r).range||"*"}catch(e){return null}}r.ltr=ltr;function ltr(e,r,t){return outside(e,r,"<",t)}r.gtr=gtr;function gtr(e,r,t){return outside(e,r,">",t)}r.outside=outside;function outside(e,r,t,n){e=new SemVer(e,n);r=new Range(r,n);var i,s,o,a,c;switch(t){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,r,n)){return false}for(var l=0;l<r.set.length;++l){var u=r.set[l];var p=null;var h=null;u.forEach((function(e){if(e.semver===ee){e=new Comparator(">=0.0.0")}p=p||e;h=h||e;if(i(e.semver,p.semver,n)){p=e}else if(o(e.semver,h.semver,n)){h=e}}));if(p.operator===a||p.operator===c){return false}if((!h.operator||h.operator===a)&&s(e,h.semver)){return false}else if(h.operator===c&&o(e,h.semver)){return false}}return true}r.prerelease=prerelease;function prerelease(e,r){var t=parse(e,r);return t&&t.prerelease.length?t.prerelease:null}r.intersects=intersects;function intersects(e,r,t){e=new Range(e,t);r=new Range(r,t);return e.intersects(r)}r.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var r=e.match(o[P]);if(r==null){return null}return parse(r[1]+"."+(r[2]||"0")+"."+(r[3]||"0"))}},7242:(e,r,t)=>{var n=t(8666);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,r,t){if(typeof r==="function")return eos(e,null,r);if(!r)r={};t=n(t||noop);var i=e._writableState;var s=e._readableState;var o=r.readable||r.readable!==false&&e.readable;var a=r.writable||r.writable!==false&&e.writable;var c=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){a=false;if(!o)t.call(e)};var onend=function(){o=false;if(!a)t.call(e)};var onexit=function(r){t.call(e,r?new Error("exited with error code: "+r):null)};var onerror=function(r){t.call(e,r)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(c)return;if(o&&!(s&&(s.ended&&!s.destroyed)))return t.call(e,new Error("premature close"));if(a&&!(i&&(i.ended&&!i.destroyed)))return t.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(a&&!i){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(r.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){c=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},1910:(e,r,t)=>{"use strict";const n=t(1017);const i=t(2081);const s=t(5775);const o=t(8226);const a=t(1513);const c=t(6425);const l=t(152);const u=t(732);const p=t(3056);const h=t(8546);const d=t(6464);const v=1e3*1e3*10;function handleArgs(e,r,t){let i;t=Object.assign({extendEnv:true,env:{}},t);if(t.extendEnv){t.env=Object.assign({},process.env,t.env)}if(t.__winShell===true){delete t.__winShell;i={command:e,args:r,options:t,file:e,original:{cmd:e,args:r}}}else{i=s._parse(e,r,t)}t=Object.assign({maxBuffer:v,buffer:true,stripEof:true,preferLocal:true,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},i.options);t.stdio=d(t);if(t.preferLocal){t.env=a.env(Object.assign({},t,{cwd:t.localDir}))}if(t.detached){t.cleanup=false}if(process.platform==="win32"&&n.basename(i.command)==="cmd.exe"){i.args.unshift("/q")}return{cmd:i.command,args:i.args,opts:t,parsed:i}}function handleInput(e,r){if(r===null||r===undefined){return}if(c(r)){r.pipe(e.stdin)}else{e.stdin.end(r)}}function handleOutput(e,r){if(r&&e.stripEof){r=o(r)}return r}function handleShell(e,r,t){let n="/bin/sh";let i=["-c",r];t=Object.assign({},t);if(process.platform==="win32"){t.__winShell=true;n=process.env.comspec||"cmd.exe";i=["/s","/c",`"${r}"`];t.windowsVerbatimArguments=true}if(t.shell){n=t.shell;delete t.shell}return e(n,i,t)}function getStream(e,r,{encoding:t,buffer:n,maxBuffer:i}){if(!e[r]){return null}let s;if(!n){s=new Promise(((t,n)=>{e[r].once("end",t).once("error",n)}))}else if(t){s=l(e[r],{encoding:t,maxBuffer:i})}else{s=l.buffer(e[r],{maxBuffer:i})}return s.catch((e=>{e.stream=r;e.message=`${r} ${e.message}`;throw e}))}function makeError(e,r){const{stdout:t,stderr:n}=e;let i=e.error;const{code:s,signal:o}=e;const{parsed:a,joinedCmd:c}=r;const l=r.timedOut||false;if(!i){let e="";if(Array.isArray(a.opts.stdio)){if(a.opts.stdio[2]!=="inherit"){e+=e.length>0?n:`\n${n}`}if(a.opts.stdio[1]!=="inherit"){e+=`\n${t}`}}else if(a.opts.stdio!=="inherit"){e=`\n${n}${t}`}i=new Error(`Command failed: ${c}${e}`);i.code=s<0?h(s):s}i.stdout=t;i.stderr=n;i.failed=true;i.signal=o||null;i.cmd=c;i.timedOut=l;return i}function joinCmd(e,r){let t=e;if(Array.isArray(r)&&r.length>0){t+=" "+r.join(" ")}return t}e.exports=(e,r,t)=>{const n=handleArgs(e,r,t);const{encoding:o,buffer:a,maxBuffer:c}=n.opts;const l=joinCmd(e,r);let h;try{h=i.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let d;if(n.opts.cleanup){d=p((()=>{h.kill()}))}let v=null;let m=false;const cleanup=()=>{if(v){clearTimeout(v);v=null}if(d){d()}};if(n.opts.timeout>0){v=setTimeout((()=>{v=null;m=true;h.kill(n.opts.killSignal)}),n.opts.timeout)}const y=new Promise((e=>{h.on("exit",((r,t)=>{cleanup();e({code:r,signal:t})}));h.on("error",(r=>{cleanup();e({error:r})}));if(h.stdin){h.stdin.on("error",(r=>{cleanup();e({error:r})}))}}));function destroy(){if(h.stdout){h.stdout.destroy()}if(h.stderr){h.stderr.destroy()}}const handlePromise=()=>u(Promise.all([y,getStream(h,"stdout",{encoding:o,buffer:a,maxBuffer:c}),getStream(h,"stderr",{encoding:o,buffer:a,maxBuffer:c})]).then((e=>{const r=e[0];r.stdout=e[1];r.stderr=e[2];if(r.error||r.code!==0||r.signal!==null){const e=makeError(r,{joinedCmd:l,parsed:n,timedOut:m});e.killed=e.killed||h.killed;if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,r.stdout),stderr:handleOutput(n.opts,r.stderr),code:0,failed:false,killed:false,signal:null,cmd:l,timedOut:false}})),destroy);s._enoent.hookChildProcess(h,n.parsed);handleInput(h,n.opts.input);h.then=(e,r)=>handlePromise().then(e,r);h.catch=e=>handlePromise().catch(e);return h};e.exports.stdout=(...r)=>e.exports(...r).then((e=>e.stdout));e.exports.stderr=(...r)=>e.exports(...r).then((e=>e.stderr));e.exports.shell=(r,t)=>handleShell(e.exports,r,t);e.exports.sync=(e,r,t)=>{const n=handleArgs(e,r,t);const s=joinCmd(e,r);if(c(n.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const o=i.spawnSync(n.cmd,n.args,n.opts);o.code=o.status;if(o.error||o.status!==0||o.signal!==null){const e=makeError(o,{joinedCmd:s,parsed:n});if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,o.stdout),stderr:handleOutput(n.opts,o.stderr),code:0,failed:false,signal:null,cmd:s,timedOut:false}};e.exports.shellSync=(r,t)=>handleShell(e.exports.sync,r,t)},8546:(e,r,t)=>{"use strict";const n=t(3837);let i;if(typeof n.getSystemErrorName==="function"){e.exports=n.getSystemErrorName}else{try{i=process.binding("uv");if(typeof i.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);i=null}e.exports=e=>errname(i,e)}e.exports.__test__=errname;function errname(e,r){if(e){return e.errname(r)}if(!(r<0)){throw new Error("err >= 0")}return`Unknown system error ${r}`}},6464:e=>{"use strict";const r=["stdin","stdout","stderr"];const hasAlias=e=>r.some((r=>Boolean(e[r])));e.exports=e=>{if(!e){return null}if(e.stdio&&hasAlias(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map((e=>`\`${e}\``)).join(", ")}`)}if(typeof e.stdio==="string"){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 n=[];const i=Math.max(t.length,r.length);for(let s=0;s<i;s++){let i=null;if(t[s]!==undefined){i=t[s]}else if(e[r[s]]!==undefined){i=e[r[s]]}n[s]=i}return n}},2229:(e,r,t)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=t(7147);var i=n.realpath;var s=n.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=t(6035);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,r,t){if(a){return i(e,r,t)}if(typeof r==="function"){t=r;r=null}i(e,r,(function(n,i){if(newError(n)){c.realpath(e,r,t)}else{t(n,i)}}))}function realpathSync(e,r){if(a){return s(e,r)}try{return s(e,r)}catch(t){if(newError(t)){return c.realpathSync(e,r)}else{throw t}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=s}},6035:(e,r,t)=>{var n=t(1017);var i=process.platform==="win32";var s=t(7147);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var r=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){r.message=e.message;e=r;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var r="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(r);else console.error(r)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}r.realpathSync=function realpathSync(e,r){e=n.resolve(e);if(r&&Object.prototype.hasOwnProperty.call(r,e)){return r[e]}var t=e,o={},a={};var u;var p;var h;var d;start();function start(){var r=l.exec(e);u=r[0].length;p=r[0];h=r[0];d="";if(i&&!a[h]){s.lstatSync(h);a[h]=true}}while(u<e.length){c.lastIndex=u;var v=c.exec(e);d=p;p+=v[0];h=d+v[1];u=c.lastIndex;if(a[h]||r&&r[h]===h){continue}var m;if(r&&Object.prototype.hasOwnProperty.call(r,h)){m=r[h]}else{var y=s.lstatSync(h);if(!y.isSymbolicLink()){a[h]=true;if(r)r[h]=h;continue}var g=null;if(!i){var b=y.dev.toString(32)+":"+y.ino.toString(32);if(o.hasOwnProperty(b)){g=o[b]}}if(g===null){s.statSync(h);g=s.readlinkSync(h)}m=n.resolve(d,g);if(r)r[h]=m;if(!i)o[b]=g}e=n.resolve(m,e.slice(u));start()}if(r)r[t]=e;return e};r.realpath=function realpath(e,r,t){if(typeof t!=="function"){t=maybeCallback(r);r=null}e=n.resolve(e);if(r&&Object.prototype.hasOwnProperty.call(r,e)){return process.nextTick(t.bind(null,null,r[e]))}var o=e,a={},u={};var p;var h;var d;var v;start();function start(){var r=l.exec(e);p=r[0].length;h=r[0];d=r[0];v="";if(i&&!u[d]){s.lstat(d,(function(e){if(e)return t(e);u[d]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(p>=e.length){if(r)r[o]=e;return t(null,e)}c.lastIndex=p;var n=c.exec(e);v=h;h+=n[0];d=v+n[1];p=c.lastIndex;if(u[d]||r&&r[d]===d){return process.nextTick(LOOP)}if(r&&Object.prototype.hasOwnProperty.call(r,d)){return gotResolvedLink(r[d])}return s.lstat(d,gotStat)}function gotStat(e,n){if(e)return t(e);if(!n.isSymbolicLink()){u[d]=true;if(r)r[d]=d;return process.nextTick(LOOP)}if(!i){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],d)}}s.stat(d,(function(e){if(e)return t(e);s.readlink(d,(function(e,r){if(!i)a[o]=r;gotTarget(e,r)}))}))}function gotTarget(e,i,s){if(e)return t(e);var o=n.resolve(v,i);if(r)r[s]=o;gotResolvedLink(o)}function gotResolvedLink(r){e=n.resolve(r,e.slice(p));start()}}},1191:(e,r,t)=>{"use strict";const{PassThrough:n}=t(2781);e.exports=e=>{e=Object.assign({},e);const{array:r}=e;let{encoding:t}=e;const i=t==="buffer";let s=false;if(r){s=!(t||i)}else{t=t||"utf8"}if(i){t=null}let o=0;const a=[];const c=new n({objectMode:s});if(t){c.setEncoding(t)}c.on("data",(e=>{a.push(e);if(s){o=a.length}else{o+=e.length}}));c.getBufferedValue=()=>{if(r){return a}return i?Buffer.concat(a,o):a.join("")};c.getBufferedLength=()=>o;return c}},152:(e,r,t)=>{"use strict";const n=t(1410);const i=t(1191);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,r){if(!e){return Promise.reject(new Error("Expected a stream"))}r=Object.assign({maxBuffer:Infinity},r);const{maxBuffer:t}=r;let s;return new Promise(((o,a)=>{const rejectPromise=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=n(e,i(r),(e=>{if(e){rejectPromise(e);return}o()}));s.on("data",(()=>{if(s.getBufferedLength()>t){rejectPromise(new MaxBufferError)}}))})).then((()=>s.getBufferedValue()))}e.exports=getStream;e.exports.buffer=(e,r)=>getStream(e,Object.assign({},r,{encoding:"buffer"}));e.exports.array=(e,r)=>getStream(e,Object.assign({},r,{array:true}));e.exports.MaxBufferError=MaxBufferError},20:(e,r,t)=>{r.setopts=setopts;r.ownProp=ownProp;r.makeAbs=makeAbs;r.finish=finish;r.mark=mark;r.isIgnored=isIgnored;r.childrenIgnored=childrenIgnored;function ownProp(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var n=t(7147);var i=t(1017);var s=t(6930);var o=t(4257);var a=s.Minimatch;function alphasort(e,r){return e.localeCompare(r,"en")}function setupIgnores(e,r){e.ignore=r.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var r=null;if(e.slice(-3)==="/**"){var t=e.replace(/(\/\*\*)+$/,"");r=new a(t,{dot:true})}return{matcher:new a(e,{dot:true}),gmatcher:r}}function setopts(e,r,t){if(!t)t={};if(t.matchBase&&-1===r.indexOf("/")){if(t.noglobstar){throw new Error("base matching requires globstar")}r="**/"+r}e.silent=!!t.silent;e.pattern=r;e.strict=t.strict!==false;e.realpath=!!t.realpath;e.realpathCache=t.realpathCache||Object.create(null);e.follow=!!t.follow;e.dot=!!t.dot;e.mark=!!t.mark;e.nodir=!!t.nodir;if(e.nodir)e.mark=true;e.sync=!!t.sync;e.nounique=!!t.nounique;e.nonull=!!t.nonull;e.nosort=!!t.nosort;e.nocase=!!t.nocase;e.stat=!!t.stat;e.noprocess=!!t.noprocess;e.absolute=!!t.absolute;e.fs=t.fs||n;e.maxLength=t.maxLength||Infinity;e.cache=t.cache||Object.create(null);e.statCache=t.statCache||Object.create(null);e.symlinks=t.symlinks||Object.create(null);setupIgnores(e,t);e.changedCwd=false;var s=process.cwd();if(!ownProp(t,"cwd"))e.cwd=s;else{e.cwd=i.resolve(t.cwd);e.changedCwd=e.cwd!==s}e.root=t.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=o(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!t.nomount;t.nonegate=true;t.nocomment=true;e.minimatch=new a(r,t);e.options=e.minimatch.options}function finish(e){var r=e.nounique;var t=r?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];if(r)t.push(o);else t[o]=true}}else{var a=Object.keys(s);if(r)t.push.apply(t,a);else a.forEach((function(e){t[e]=true}))}}if(!r)t=Object.keys(t);if(!e.nosort)t=t.sort(alphasort);if(e.mark){for(var n=0;n<t.length;n++){t[n]=e._mark(t[n])}if(e.nodir){t=t.filter((function(r){var t=!/\/$/.test(r);var n=e.cache[r]||e.cache[makeAbs(e,r)];if(t&&n)t=n!=="DIR"&&!Array.isArray(n);return t}))}}if(e.ignore.length)t=t.filter((function(r){return!isIgnored(e,r)}));e.found=t}function mark(e,r){var t=makeAbs(e,r);var n=e.cache[t];var i=r;if(n){var s=n==="DIR"||Array.isArray(n);var o=r.slice(-1)==="/";if(s&&!o)i+="/";else if(!s&&o)i=i.slice(0,-1);if(i!==r){var a=makeAbs(e,i);e.statCache[a]=e.statCache[t];e.cache[a]=e.cache[t]}}return i}function makeAbs(e,r){var t=r;if(r.charAt(0)==="/"){t=i.join(e.root,r)}else if(o(r)||r===""){t=r}else if(e.changedCwd){t=i.resolve(e.cwd,r)}else{t=i.resolve(r)}if(process.platform==="win32")t=t.replace(/\\/g,"/");return t}function isIgnored(e,r){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(r)||!!(e.gmatcher&&e.gmatcher.match(r))}))}function childrenIgnored(e,r){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(r))}))}},7545:(e,r,t)=>{e.exports=glob;var n=t(2229);var i=t(6930);var s=i.Minimatch;var o=t(2150);var a=t(2361).EventEmitter;var c=t(1017);var l=t(9491);var u=t(4257);var p=t(28);var h=t(20);var d=h.setopts;var v=h.ownProp;var m=t(5867);var y=t(3837);var g=h.childrenIgnored;var b=h.isIgnored;var w=t(8666);function glob(e,r,t){if(typeof r==="function")t=r,r={};if(!r)r={};if(r.sync){if(t)throw new TypeError("callback provided to sync glob");return p(e,r)}return new Glob(e,r,t)}glob.sync=p;var S=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(e,r){if(r===null||typeof r!=="object"){return e}var t=Object.keys(r);var n=t.length;while(n--){e[t[n]]=r[t[n]]}return e}glob.hasMagic=function(e,r){var t=extend({},r);t.noprocess=true;var n=new Glob(e,t);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var s=0;s<i[0].length;s++){if(typeof i[0][s]!=="string")return true}return false};glob.Glob=Glob;o(Glob,a);function Glob(e,r,t){if(typeof r==="function"){t=r;r=null}if(r&&r.sync){if(t)throw new TypeError("callback provided to sync glob");return new S(e,r)}if(!(this instanceof Glob))return new Glob(e,r,t);d(this,e,r);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof t==="function"){t=w(t);this.on("error",t);this.on("end",(function(e){t(null,e)}))}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var s=true;for(var o=0;o<n;o++){this._process(this.minimatch.set[o],o,false,done)}s=false;function done(){--i._processing;if(i._processing<=0){if(s){process.nextTick((function(){i._finish()}))}else{i._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();h.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var r=this;for(var t=0;t<this.matches.length;t++)this._realpathSet(t,next);function next(){if(--e===0)r._finish()}};Glob.prototype._realpathSet=function(e,r){var t=this.matches[e];if(!t)return r();var i=Object.keys(t);var s=this;var o=i.length;if(o===0)return r();var a=this.matches[e]=Object.create(null);i.forEach((function(t,i){t=s._makeAbs(t);n.realpath(t,s.realpathCache,(function(n,i){if(!n)a[i]=true;else if(n.syscall==="stat")a[t]=true;else s.emit("error",n);if(--o===0){s.matches[e]=a;r()}}))}))};Glob.prototype._mark=function(e){return h.mark(this,e)};Glob.prototype._makeAbs=function(e){return h.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var r=0;r<e.length;r++){var t=e[r];this._emitMatch(t[0],t[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var r=0;r<n.length;r++){var i=n[r];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,r,t,n){l(this instanceof Glob);l(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,r,t,n]);return}var s=0;while(typeof e[s]==="string"){s++}var o;switch(s){case e.length:this._processSimple(e.join("/"),r,n);return;case 0:o=null;break;default:o=e.slice(0,s).join("/");break}var a=e.slice(s);var c;if(o===null)c=".";else if(u(o)||u(e.join("/"))){if(!o||!u(o))o="/"+o;c=o}else c=o;var p=this._makeAbs(c);if(g(this,c))return n();var h=a[0]===i.GLOBSTAR;if(h)this._processGlobStar(o,c,p,a,r,t,n);else this._processReaddir(o,c,p,a,r,t,n)};Glob.prototype._processReaddir=function(e,r,t,n,i,s,o){var a=this;this._readdir(t,s,(function(c,l){return a._processReaddir2(e,r,t,n,i,s,l,o)}))};Glob.prototype._processReaddir2=function(e,r,t,n,i,s,o,a){if(!o)return a();var l=n[0];var u=!!this.minimatch.negate;var p=l._glob;var h=this.dot||p.charAt(0)===".";var d=[];for(var v=0;v<o.length;v++){var m=o[v];if(m.charAt(0)!=="."||h){var y;if(u&&!e){y=!m.match(l)}else{y=m.match(l)}if(y)d.push(m)}}var g=d.length;if(g===0)return a();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var v=0;v<g;v++){var m=d[v];if(e){if(e!=="/")m=e+"/"+m;else m=e+m}if(m.charAt(0)==="/"&&!this.nomount){m=c.join(this.root,m)}this._emitMatch(i,m)}return a()}n.shift();for(var v=0;v<g;v++){var m=d[v];var b;if(e){if(e!=="/")m=e+"/"+m;else m=e+m}this._process([m].concat(n),i,s,a)}a()};Glob.prototype._emitMatch=function(e,r){if(this.aborted)return;if(b(this,r))return;if(this.paused){this._emitQueue.push([e,r]);return}var t=u(r)?r:this._makeAbs(r);if(this.mark)r=this._mark(r);if(this.absolute)r=t;if(this.matches[e][r])return;if(this.nodir){var n=this.cache[t];if(n==="DIR"||Array.isArray(n))return}this.matches[e][r]=true;var i=this.statCache[t];if(i)this.emit("stat",r,i);this.emit("match",r)};Glob.prototype._readdirInGlobStar=function(e,r){if(this.aborted)return;if(this.follow)return this._readdir(e,false,r);var t="lstat\0"+e;var n=this;var i=m(t,lstatcb_);if(i)n.fs.lstat(e,i);function lstatcb_(t,i){if(t&&t.code==="ENOENT")return r();var s=i&&i.isSymbolicLink();n.symlinks[e]=s;if(!s&&i&&!i.isDirectory()){n.cache[e]="FILE";r()}else n._readdir(e,false,r)}};Glob.prototype._readdir=function(e,r,t){if(this.aborted)return;t=m("readdir\0"+e+"\0"+r,t);if(!t)return;if(r&&!v(this.symlinks,e))return this._readdirInGlobStar(e,t);if(v(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return t();if(Array.isArray(n))return t(null,n)}var i=this;i.fs.readdir(e,readdirCb(this,e,t))};function readdirCb(e,r,t){return function(n,i){if(n)e._readdirError(r,n,t);else e._readdirEntries(r,i,t)}}Glob.prototype._readdirEntries=function(e,r,t){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<r.length;n++){var i=r[n];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=r;return t(null,r)};Glob.prototype._readdirError=function(e,r,t){if(this.aborted)return;switch(r.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(r.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=r.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",r);this.abort()}if(!this.silent)console.error("glob error",r);break}return t()};Glob.prototype._processGlobStar=function(e,r,t,n,i,s,o){var a=this;this._readdir(t,s,(function(c,l){a._processGlobStar2(e,r,t,n,i,s,l,o)}))};Glob.prototype._processGlobStar2=function(e,r,t,n,i,s,o,a){if(!o)return a();var c=n.slice(1);var l=e?[e]:[];var u=l.concat(c);this._process(u,i,false,a);var p=this.symlinks[t];var h=o.length;if(p&&s)return a();for(var d=0;d<h;d++){var v=o[d];if(v.charAt(0)==="."&&!this.dot)continue;var m=l.concat(o[d],c);this._process(m,i,true,a);var y=l.concat(o[d],n);this._process(y,i,true,a)}a()};Glob.prototype._processSimple=function(e,r,t){var n=this;this._stat(e,(function(i,s){n._processSimple2(e,r,i,s,t)}))};Glob.prototype._processSimple2=function(e,r,t,n,i){if(!this.matches[r])this.matches[r]=Object.create(null);if(!n)return i();if(e&&u(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(r,e);i()};Glob.prototype._stat=function(e,r){var t=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return r();if(!this.stat&&v(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return r(null,i);if(n&&i==="FILE")return r()}var s;var o=this.statCache[t];if(o!==undefined){if(o===false)return r(null,o);else{var a=o.isDirectory()?"DIR":"FILE";if(n&&a==="FILE")return r();else return r(null,a,o)}}var c=this;var l=m("stat\0"+t,lstatcb_);if(l)c.fs.lstat(t,l);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return c.fs.stat(t,(function(n,s){if(n)c._stat2(e,t,null,i,r);else c._stat2(e,t,n,s,r)}))}else{c._stat2(e,t,n,i,r)}}};Glob.prototype._stat2=function(e,r,t,n,i){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[r]=false;return i()}var s=e.slice(-1)==="/";this.statCache[r]=n;if(r.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var o=true;if(n)o=n.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||o;if(s&&o==="FILE")return i();return i(null,o,n)}},28:(e,r,t)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=t(2229);var i=t(6930);var s=i.Minimatch;var o=t(7545).Glob;var a=t(3837);var c=t(1017);var l=t(9491);var u=t(4257);var p=t(20);var h=p.setopts;var d=p.ownProp;var v=p.childrenIgnored;var m=p.isIgnored;function globSync(e,r){if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,r).found}function GlobSync(e,r){if(!e)throw new Error("must provide pattern");if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,r);h(this,e,r);if(this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var n=0;n<t;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){l(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(r,t){var i=e.matches[t]=Object.create(null);for(var s in r){try{s=e._makeAbs(s);var o=n.realpathSync(s,e.realpathCache);i[o]=true}catch(r){if(r.syscall==="stat")i[e._makeAbs(s)]=true;else throw r}}}))}p.finish(this)};GlobSync.prototype._process=function(e,r,t){l(this instanceof GlobSync);var n=0;while(typeof e[n]==="string"){n++}var s;switch(n){case e.length:this._processSimple(e.join("/"),r);return;case 0:s=null;break;default:s=e.slice(0,n).join("/");break}var o=e.slice(n);var a;if(s===null)a=".";else if(u(s)||u(e.join("/"))){if(!s||!u(s))s="/"+s;a=s}else a=s;var c=this._makeAbs(a);if(v(this,a))return;var p=o[0]===i.GLOBSTAR;if(p)this._processGlobStar(s,a,c,o,r,t);else this._processReaddir(s,a,c,o,r,t)};GlobSync.prototype._processReaddir=function(e,r,t,n,i,s){var o=this._readdir(t,s);if(!o)return;var a=n[0];var l=!!this.minimatch.negate;var u=a._glob;var p=this.dot||u.charAt(0)===".";var h=[];for(var d=0;d<o.length;d++){var v=o[d];if(v.charAt(0)!=="."||p){var m;if(l&&!e){m=!v.match(a)}else{m=v.match(a)}if(m)h.push(v)}}var y=h.length;if(y===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<y;d++){var v=h[d];if(e){if(e.slice(-1)!=="/")v=e+"/"+v;else v=e+v}if(v.charAt(0)==="/"&&!this.nomount){v=c.join(this.root,v)}this._emitMatch(i,v)}return}n.shift();for(var d=0;d<y;d++){var v=h[d];var g;if(e)g=[e,v];else g=[v];this._process(g.concat(n),i,s)}};GlobSync.prototype._emitMatch=function(e,r){if(m(this,r))return;var t=this._makeAbs(r);if(this.mark)r=this._mark(r);if(this.absolute){r=t}if(this.matches[e][r])return;if(this.nodir){var n=this.cache[t];if(n==="DIR"||Array.isArray(n))return}this.matches[e][r]=true;if(this.stat)this._stat(r)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var r;var t;var n;try{t=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var i=t&&t.isSymbolicLink();this.symlinks[e]=i;if(!i&&t&&!t.isDirectory())this.cache[e]="FILE";else r=this._readdir(e,false);return r};GlobSync.prototype._readdir=function(e,r){var t;if(r&&!d(this.symlinks,e))return this._readdirInGlobStar(e);if(d(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(r){this._readdirError(e,r);return null}};GlobSync.prototype._readdirEntries=function(e,r){if(!this.mark&&!this.stat){for(var t=0;t<r.length;t++){var n=r[t];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=r;return r};GlobSync.prototype._readdirError=function(e,r){switch(r.code){case"ENOTSUP":case"ENOTDIR":var t=this._makeAbs(e);this.cache[t]="FILE";if(t===this.cwdAbs){var n=new Error(r.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=r.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw r;if(!this.silent)console.error("glob error",r);break}};GlobSync.prototype._processGlobStar=function(e,r,t,n,i,s){var o=this._readdir(t,s);if(!o)return;var a=n.slice(1);var c=e?[e]:[];var l=c.concat(a);this._process(l,i,false);var u=o.length;var p=this.symlinks[t];if(p&&s)return;for(var h=0;h<u;h++){var d=o[h];if(d.charAt(0)==="."&&!this.dot)continue;var v=c.concat(o[h],a);this._process(v,i,true);var m=c.concat(o[h],n);this._process(m,i,true)}};GlobSync.prototype._processSimple=function(e,r){var t=this._stat(e);if(!this.matches[r])this.matches[r]=Object.create(null);if(!t)return;if(e&&u(e)&&!this.nomount){var n=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(n)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(r,e)};GlobSync.prototype._stat=function(e){var r=this._makeAbs(e);var t=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&d(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!t||n==="DIR")return n;if(t&&n==="FILE")return false}var i;var s=this.statCache[r];if(!s){var o;try{o=this.fs.lstatSync(r)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[r]=false;return false}}if(o&&o.isSymbolicLink()){try{s=this.fs.statSync(r)}catch(e){s=o}}else{s=o}}this.statCache[r]=s;var n=true;if(s)n=s.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||n;if(t&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return p.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return p.makeAbs(this,e)}},5867:(e,r,t)=>{var n=t(9002);var i=Object.create(null);var s=t(8666);e.exports=n(inflight);function inflight(e,r){if(i[e]){i[e].push(r);return null}else{i[e]=[r];return makeres(e)}}function makeres(e){return s((function RES(){var r=i[e];var t=r.length;var n=slice(arguments);try{for(var s=0;s<t;s++){r[s].apply(null,n)}}finally{if(r.length>t){r.splice(0,t);process.nextTick((function(){RES.apply(null,n)}))}else{delete i[e]}}}))}function slice(e){var r=e.length;var t=[];for(var n=0;n<r;n++)t[n]=e[n];return t}},2150:(e,r,t)=>{try{var n=t(3837);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(r){e.exports=t(8531)}},8531:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,r){if(r){e.super_=r;e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,r){if(r){e.super_=r;var TempCtor=function(){};TempCtor.prototype=r.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},6425:e=>{"use strict";var r=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};r.writable=function(e){return r(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};r.readable=function(e){return r(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};r.duplex=function(e){return r.writable(e)&&r.readable(e)};r.transform=function(e){return r.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},8068:(e,r,t)=>{var n=t(7147);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=t(2665)}else{i=t(2093)}e.exports=isexe;isexe.sync=sync;function isexe(e,r,t){if(typeof r==="function"){t=r;r={}}if(!t){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(t,n){isexe(e,r||{},(function(e,r){if(e){n(e)}else{t(r)}}))}))}i(e,r||{},(function(e,n){if(e){if(e.code==="EACCES"||r&&r.ignoreErrors){e=null;n=false}}t(e,n)}))}function sync(e,r){try{return i.sync(e,r||{})}catch(e){if(r&&r.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},2093:(e,r,t)=>{e.exports=isexe;isexe.sync=sync;var n=t(7147);function isexe(e,r,t){n.stat(e,(function(e,n){t(e,e?false:checkStat(n,r))}))}function sync(e,r){return checkStat(n.statSync(e),r)}function checkStat(e,r){return e.isFile()&&checkMode(e,r)}function checkMode(e,r){var t=e.mode;var n=e.uid;var i=e.gid;var s=r.uid!==undefined?r.uid:process.getuid&&process.getuid();var o=r.gid!==undefined?r.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var l=parseInt("001",8);var u=a|c;var p=t&l||t&c&&i===o||t&a&&n===s||t&u&&s===0;return p}},2665:(e,r,t)=>{e.exports=isexe;isexe.sync=sync;var n=t(7147);function checkPathExt(e,r){var t=r.pathExt!==undefined?r.pathExt:process.env.PATHEXT;if(!t){return true}t=t.split(";");if(t.indexOf("")!==-1){return true}for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,r,t){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(r,t)}function isexe(e,r,t){n.stat(e,(function(n,i){t(n,n?false:checkStat(i,e,r))}))}function sync(e,r){return checkStat(n.statSync(e),e,r)}},6930:(e,r,t)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=t(1017)}catch(e){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=t(1190);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var u="(?:(?!(?:\\/|^)\\.).)*?";var p=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,r){e[r]=true;return e}),{})}var h=/\/+/;minimatch.filter=filter;function filter(e,r){r=r||{};return function(t,n,i){return minimatch(t,e,r)}}function ext(e,r){e=e||{};r=r||{};var t={};Object.keys(r).forEach((function(e){t[e]=r[e]}));Object.keys(e).forEach((function(r){t[r]=e[r]}));return t}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var r=minimatch;var t=function minimatch(t,n,i){return r.minimatch(t,n,ext(e,i))};t.Minimatch=function Minimatch(t,n){return new r.Minimatch(t,ext(e,n))};return t};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,r,t){if(typeof r!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};if(!t.nocomment&&r.charAt(0)==="#"){return false}if(r.trim()==="")return e==="";return new Minimatch(r,t).match(e)}function Minimatch(e,r){if(!(this instanceof Minimatch)){return new Minimatch(e,r)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=r;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var t=this.globSet=this.braceExpand();if(r.debug)this.debug=console.error;this.debug(this.pattern,t);t=this.globParts=t.map((function(e){return e.split(h)}));this.debug(this.pattern,t);t=t.map((function(e,r,t){return e.map(this.parse,this)}),this);this.debug(this.pattern,t);t=t.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,t);this.set=t}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var r=false;var t=this.options;var n=0;if(t.nonegate)return;for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++){r=!r;n++}if(n)this.pattern=e.substr(n);this.negate=r}minimatch.braceExpand=function(e,r){return braceExpand(e,r)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,r){if(!r){if(this instanceof Minimatch){r=this.options}else{r={}}}e=typeof e==="undefined"?this.pattern:e;if(typeof e==="undefined"){throw new TypeError("undefined pattern")}if(r.nobrace||!e.match(/\{.*\}/)){return[e]}return s(e)}Minimatch.prototype.parse=parse;var d={};function parse(e,r){if(e.length>1024*64){throw new TypeError("pattern is too long")}var t=this.options;if(!t.noglobstar&&e==="**")return i;if(e==="")return"";var n="";var s=!!t.nocase;var l=false;var u=[];var h=[];var v;var m=false;var y=-1;var g=-1;var b=e.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(v){switch(v){case"*":n+=c;s=true;break;case"?":n+=a;s=true;break;default:n+="\\"+v;break}w.debug("clearStateChar %j %j",v,n);v=false}}for(var S=0,x=e.length,_;S<x&&(_=e.charAt(S));S++){this.debug("%s\t%s %s %j",e,S,n,_);if(l&&p[_]){n+="\\"+_;l=false;continue}switch(_){case"/":return false;case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,S,n,_);if(m){this.debug(" in class");if(_==="!"&&S===g+1)_="^";n+=_;continue}w.debug("call clearStateChar %j",v);clearStateChar();v=_;if(t.noext)clearStateChar();continue;case"(":if(m){n+="(";continue}if(!v){n+="\\(";continue}u.push({type:v,start:S-1,reStart:n.length,open:o[v].open,close:o[v].close});n+=v==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",v,n);v=false;continue;case")":if(m||!u.length){n+="\\)";continue}clearStateChar();s=true;var k=u.pop();n+=k.close;if(k.type==="!"){h.push(k)}k.reEnd=n.length;continue;case"|":if(m||!u.length||l){n+="\\|";l=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(m){n+="\\"+_;continue}m=true;g=S;y=n.length;n+=_;continue;case"]":if(S===g+1||!m){n+="\\"+_;l=false;continue}if(m){var O=e.substring(g+1,S);try{RegExp("["+O+"]")}catch(e){var j=this.parse(O,d);n=n.substr(0,y)+"\\["+j[0]+"\\]";s=s||j[1];m=false;continue}}s=true;m=false;n+=_;continue;default:clearStateChar();if(l){l=false}else if(p[_]&&!(_==="^"&&m)){n+="\\"}n+=_}}if(m){O=e.substr(g+1);j=this.parse(O,d);n=n.substr(0,y)+"\\["+j[0];s=s||j[1]}for(k=u.pop();k;k=u.pop()){var C=n.slice(k.reStart+k.open.length);this.debug("setting tail",n,k);C=C.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,r,t){if(!t){t="\\"}return r+r+t+"|"}));this.debug("tail=%j\n %s",C,C,k,n);var R=k.type==="*"?c:k.type==="?"?a:"\\"+k.type;s=true;n=n.slice(0,k.reStart)+R+"\\("+C}clearStateChar();if(l){n+="\\\\"}var L=false;switch(n.charAt(0)){case".":case"[":case"(":L=true}for(var I=h.length-1;I>-1;I--){var A=h[I];var P=n.slice(0,A.reStart);var T=n.slice(A.reStart,A.reEnd-8);var N=n.slice(A.reEnd-8,A.reEnd);var D=n.slice(A.reEnd);N+=D;var G=P.split("(").length-1;var M=D;for(S=0;S<G;S++){M=M.replace(/\)[+*?]?/,"")}D=M;var $="";if(D===""&&r!==d){$="$"}var V=P+T+D+$+N;n=V}if(n!==""&&s){n="(?=.)"+n}if(L){n=b+n}if(r===d){return[n,s]}if(!s){return globUnescape(e)}var q=t.nocase?"i":"";try{var B=new RegExp("^"+n+"$",q)}catch(e){return new RegExp("$.")}B._glob=e;B._src=n;return B}minimatch.makeRe=function(e,r){return new Minimatch(e,r||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var r=this.options;var t=r.noglobstar?c:r.dot?l:u;var n=r.nocase?"i":"";var s=e.map((function(e){return e.map((function(e){return e===i?t:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,r,t){t=t||{};var n=new Minimatch(r,t);e=e.filter((function(e){return n.match(e)}));if(n.options.nonull&&!e.length){e.push(r)}return e};Minimatch.prototype.match=match;function match(e,r){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&r)return true;var t=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(h);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<i.length;o++){var a=i[o];var c=e;if(t.matchBase&&a.length===1){c=[s]}var l=this.matchOne(c,a,r);if(l){if(t.flipNegate)return true;return!this.negate}}if(t.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(e,r,t){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:r});this.debug("matchOne",e.length,r.length);for(var s=0,o=0,a=e.length,c=r.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var l=r[o];var u=e[s];this.debug(r,l,u);if(l===false)return false;if(l===i){this.debug("GLOBSTAR",[r,l,u]);var p=s;var h=o+1;if(h===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(p<a){var d=e[p];this.debug("\nglobstar while",e,p,r,h,d);if(this.matchOne(e.slice(p),r.slice(h),t)){this.debug("globstar found match!",p,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,p,r,h);break}this.debug("globstar swallow a segment, and continue");p++}}if(t){this.debug("\n>>> no match, partial?",e,p,r,h);if(p===a)return true}return false}var v;if(typeof l==="string"){if(n.nocase){v=u.toLowerCase()===l.toLowerCase()}else{v=u===l}this.debug("string match",l,u,v)}else{v=u.match(l);this.debug("pattern match",l,u,v)}if(!v)return false}if(s===a&&o===c){return true}else if(s===a){return t}else if(o===c){var m=s===a-1&&e[s]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},5526:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},1513:(e,r,t)=>{"use strict";const n=t(1017);const i=t(5200);e.exports=e=>{e=Object.assign({cwd:process.cwd(),path:process.env[i()]},e);let r;let t=n.resolve(e.cwd);const s=[];while(r!==t){s.push(n.join(t,"node_modules/.bin"));r=t;t=n.resolve(t,"..")}s.push(n.dirname(process.execPath));return s.concat(e.path).join(n.delimiter)};e.exports.env=r=>{r=Object.assign({env:process.env},r);const t=Object.assign({},r.env);const n=i({env:t});r.path=t[n];t[n]=e.exports(r);return t}},8666:(e,r,t)=>{var n=t(9002);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";f.onceError=r+" shouldn't be called more than once";f.called=false;return f}},732:e=>{"use strict";e.exports=(e,r)=>{r=r||(()=>{});return e.then((e=>new Promise((e=>{e(r())})).then((()=>e))),(e=>new Promise((e=>{e(r())})).then((()=>{throw e}))))}},4257:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var t=r.exec(e);var n=t[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(t[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},5200:e=>{"use strict";e.exports=e=>{e=e||{};const r=e.env||process.env;const t=e.platform||process.platform;if(t!=="win32"){return"PATH"}return Object.keys(r).find((e=>e.toUpperCase()==="PATH"))||"Path"}},1410:(e,r,t)=>{var n=t(8666);var i=t(7242);var s=t(7147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!s)return false;return(e instanceof(s.ReadStream||noop)||e instanceof(s.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,r,t,s){s=n(s);var o=false;e.on("close",(function(){o=true}));i(e,{readable:r,writable:t},(function(e){if(e)return s(e);o=true;s()}));var a=false;return function(r){if(o)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();s(r||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,r){return e.pipe(r)};var pump=function(){var e=Array.prototype.slice.call(arguments);var r=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var t;var n=e.map((function(i,s){var o=s<e.length-1;var a=s>0;return destroyer(i,o,a,(function(e){if(!t)t=e;if(e)n.forEach(call);if(o)return;n.forEach(call);r(t)}))}));return e.reduce(pipe)};e.exports=pump},8701:(e,r,t)=>{"use strict";var n=t(9440);e.exports=function(e){var r=e.match(n);if(!r){return null}var t=r[0].replace(/#! ?/,"").split(" ");var i=t[0].split("/").pop();var s=t[1];return i==="env"?s:i+(s?" "+s:"")}},9440:e=>{"use strict";e.exports=/^#!.*/},3056:(e,r,t)=>{var n=global.process;const processOk=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!processOk(n)){e.exports=function(){}}else{var i=t(9491);var s=t(3791);var o=/^win/i.test(n.platform);var a=t(2361);if(typeof a!=="function"){a=a.EventEmitter}var c;if(n.__signal_exit_emitter__){c=n.__signal_exit_emitter__}else{c=n.__signal_exit_emitter__=new a;c.count=0;c.emitted={}}if(!c.infinite){c.setMaxListeners(Infinity);c.infinite=true}e.exports=function(e,r){if(!processOk(global.process)){return}i.equal(typeof e,"function","a callback must be provided for exit handler");if(h===false){d()}var t="exit";if(r&&r.alwaysLast){t="afterexit"}var remove=function(){c.removeListener(t,e);if(c.listeners("exit").length===0&&c.listeners("afterexit").length===0){l()}};c.on(t,e);return remove};var l=function unload(){if(!h||!processOk(global.process)){return}h=false;s.forEach((function(e){try{n.removeListener(e,p[e])}catch(e){}}));n.emit=y;n.reallyExit=v;c.count-=1};e.exports.unload=l;var u=function emit(e,r,t){if(c.emitted[e]){return}c.emitted[e]=true;c.emit(e,r,t)};var p={};s.forEach((function(e){p[e]=function listener(){if(!processOk(global.process)){return}var r=n.listeners(e);if(r.length===c.count){l();u("exit",null,e);u("afterexit",null,e);if(o&&e==="SIGHUP"){e="SIGINT"}n.kill(n.pid,e)}}}));e.exports.signals=function(){return s};var h=false;var d=function load(){if(h||!processOk(global.process)){return}h=true;c.count+=1;s=s.filter((function(e){try{n.on(e,p[e]);return true}catch(e){return false}}));n.emit=g;n.reallyExit=m};e.exports.load=d;var v=n.reallyExit;var m=function processReallyExit(e){if(!processOk(global.process)){return}n.exitCode=e||0;u("exit",n.exitCode,null);u("afterexit",n.exitCode,null);v.call(n,n.exitCode)};var y=n.emit;var g=function processEmit(e,r){if(e==="exit"&&processOk(global.process)){if(r!==undefined){n.exitCode=r}var t=y.apply(this,arguments);u("exit",n.exitCode,null);u("afterexit",n.exitCode,null);return t}else{return y.apply(this,arguments)}}}},3791:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},8226:e=>{"use strict";e.exports=function(e){var r=typeof e==="string"?"\n":"\n".charCodeAt();var t=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===r){e=e.slice(0,e.length-1)}if(e[e.length-1]===t){e=e.slice(0,e.length-1)}return e}},6446:(e,r,t)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=t(1017);var s=n?";":":";var o=t(8068);function getNotFoundError(e){var r=new Error("not found: "+e);r.code="ENOENT";return r}function getPathInfo(e,r){var t=r.colon||s;var i=r.path||process.env.PATH||"";var o=[""];i=i.split(t);var a="";if(n){i.unshift(process.cwd());a=r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(t);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,r,t){if(typeof r==="function"){t=r;r={}}var n=getPathInfo(e,r);var s=n.env;var a=n.ext;var c=n.extExe;var l=[];(function F(n,u){if(n===u){if(r.all&&l.length)return t(null,l);else return t(getNotFoundError(e))}var p=s[n];if(p.charAt(0)==='"'&&p.slice(-1)==='"')p=p.slice(1,-1);var h=i.join(p,e);if(!p&&/^\.[\\\/]/.test(e)){h=e.slice(0,2)+h}(function E(e,i){if(e===i)return F(n+1,u);var s=a[e];o(h+s,{pathExt:c},(function(n,o){if(!n&&o){if(r.all)l.push(h+s);else return t(null,h+s)}return E(e+1,i)}))})(0,a.length)})(0,s.length)}function whichSync(e,r){r=r||{};var t=getPathInfo(e,r);var n=t.env;var s=t.ext;var a=t.extExe;var c=[];for(var l=0,u=n.length;l<u;l++){var p=n[l];if(p.charAt(0)==='"'&&p.slice(-1)==='"')p=p.slice(1,-1);var h=i.join(p,e);if(!p&&/^\.[\\\/]/.test(e)){h=e.slice(0,2)+h}for(var d=0,v=s.length;d<v;d++){var m=h+s[d];var y;try{y=o.sync(m,{pathExt:a});if(y){if(r.all)c.push(m);else return m}}catch(e){}}}if(r.all&&c.length)return c;if(r.nothrow)return null;throw getNotFoundError(e)}},9002:e=>{e.exports=wrappy;function wrappy(e,r){if(e&&r)return wrappy(e)(r);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(r){wrapper[r]=e[r]}));return wrapper;function wrapper(){var r=new Array(arguments.length);for(var t=0;t<r.length;t++){r[t]=arguments[t]}var n=e.apply(this,r);var i=r[r.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n}}},1914:(e,r,t)=>{function __ncc_wildcard$0(e){if(e==="cat.js"||e==="cat")return t(1665);else if(e==="cd.js"||e==="cd")return t(5113);else if(e==="chmod.js"||e==="chmod")return t(9547);else if(e==="cmd.js"||e==="cmd")return t(7583);else if(e==="common.js"||e==="common")return t(4963);else if(e==="cp.js"||e==="cp")return t(7480);else if(e==="dirs.js"||e==="dirs")return t(4252);else if(e==="echo.js"||e==="echo")return t(7647);else if(e==="error.js"||e==="error")return t(717);else if(e==="exec-child.js"||e==="exec-child")return t(7964);else if(e==="exec.js"||e==="exec")return t(9866);else if(e==="find.js"||e==="find")return t(2716);else if(e==="grep.js"||e==="grep")return t(2743);else if(e==="head.js"||e==="head")return t(2264);else if(e==="ln.js"||e==="ln")return t(8976);else if(e==="ls.js"||e==="ls")return t(3014);else if(e==="mkdir.js"||e==="mkdir")return t(1343);else if(e==="mv.js"||e==="mv")return t(3599);else if(e==="popd.js"||e==="popd")return t(6551);else if(e==="pushd.js"||e==="pushd")return t(8243);else if(e==="pwd.js"||e==="pwd")return t(4480);else if(e==="rm.js"||e==="rm")return t(8994);else if(e==="sed.js"||e==="sed")return t(8710);else if(e==="set.js"||e==="set")return t(9058);else if(e==="sort.js"||e==="sort")return t(989);else if(e==="tail.js"||e==="tail")return t(4811);else if(e==="tempdir.js"||e==="tempdir")return t(1076);else if(e==="test.js"||e==="test")return t(7428);else if(e==="to.js"||e==="to")return t(4812);else if(e==="toEnd.js"||e==="toEnd")return t(269);else if(e==="touch.js"||e==="touch")return t(490);else if(e==="uniq.js"||e==="uniq")return t(185);else if(e==="which.js"||e==="which")return t(8947)}var n=t(4963);t(6099).forEach((function(e){__ncc_wildcard$0(e)}));r.exit=process.exit;r.error=t(717);r.ShellString=n.ShellString;r.env=process.env;r.config=n.config},1665:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("cat",_cat,{canReceivePipe:true,cmdOptions:{n:"number"}});function _cat(e,r){var t=n.readFromPipe();if(!r&&!t)n.error("no paths given");r=[].slice.call(arguments,1);r.forEach((function(e){if(!i.existsSync(e)){n.error("no such file or directory: "+e)}else if(n.statFollowLinks(e).isDirectory()){n.error(e+": Is a directory")}t+=i.readFileSync(e,"utf8")}));if(e.number){t=addNumbers(t)}return t}e.exports=_cat;function addNumbers(e){var r=e.split("\n");var t=r.pop();r=r.map((function(e,r){return numberedLine(r+1,e)}));if(t.length){t=numberedLine(r.length+1,t)}r.push(t);return r.join("\n")}function numberedLine(e,r){var t=(" "+e).slice(-6)+"\t";return t+r}},5113:(e,r,t)=>{var n=t(2037);var i=t(4963);i.register("cd",_cd,{});function _cd(e,r){if(!r)r=n.homedir();if(r==="-"){if(!process.env.OLDPWD){i.error("could not find previous directory")}else{r=process.env.OLDPWD}}try{var t=process.cwd();process.chdir(r);process.env.OLDPWD=t}catch(e){var s;try{i.statFollowLinks(r);s="not a directory: "+r}catch(e){s="no such file or directory: "+r}if(s)i.error(s)}return""}e.exports=_cd},9547:(e,r,t)=>{var n=t(4963);var i=t(7147);var s=t(1017);var o=function(e){return{OTHER_EXEC:e.EXEC,OTHER_WRITE:e.WRITE,OTHER_READ:e.READ,GROUP_EXEC:e.EXEC<<3,GROUP_WRITE:e.WRITE<<3,GROUP_READ:e.READ<<3,OWNER_EXEC:e.EXEC<<6,OWNER_WRITE:e.WRITE<<6,OWNER_READ:e.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)}}({EXEC:1,WRITE:2,READ:4});n.register("chmod",_chmod,{});function _chmod(e,r,t){if(!t){if(e.length>0&&e.charAt(0)==="-"){[].unshift.call(arguments,"")}else{n.error("You must specify a file.")}}e=n.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"});t=[].slice.call(arguments,2);var a;if(e.recursive){a=[];t.forEach((function addFile(e){var r=n.statNoFollowLinks(e);if(!r.isSymbolicLink()){a.push(e);if(r.isDirectory()){i.readdirSync(e).forEach((function(r){addFile(e+"/"+r)}))}}}))}else{a=t}a.forEach((function innerChmod(t){t=s.resolve(t);if(!i.existsSync(t)){n.error("File not found: "+t)}if(e.recursive&&n.statNoFollowLinks(t).isSymbolicLink()){return}var a=n.statFollowLinks(t);var c=a.isDirectory();var l=a.mode;var u=l&o.TYPE_MASK;var p=l;if(Number.isNaN(parseInt(r,8))){r.split(",").forEach((function(r){var s=/([ugoa]*)([=+-])([rwxXst]*)/i;var a=s.exec(r);if(a){var h=a[1];var d=a[2];var v=a[3];var m=h.indexOf("u")!==-1||h==="a"||h==="";var y=h.indexOf("g")!==-1||h==="a"||h==="";var g=h.indexOf("o")!==-1||h==="a"||h==="";var b=v.indexOf("r")!==-1;var w=v.indexOf("w")!==-1;var S=v.indexOf("x")!==-1;var x=v.indexOf("X")!==-1;var _=v.indexOf("t")!==-1;var k=v.indexOf("s")!==-1;if(x&&c){S=true}var O=0;if(m){O|=(b?o.OWNER_READ:0)+(w?o.OWNER_WRITE:0)+(S?o.OWNER_EXEC:0)+(k?o.SETUID:0)}if(y){O|=(b?o.GROUP_READ:0)+(w?o.GROUP_WRITE:0)+(S?o.GROUP_EXEC:0)+(k?o.SETGID:0)}if(g){O|=(b?o.OTHER_READ:0)+(w?o.OTHER_WRITE:0)+(S?o.OTHER_EXEC:0)}if(_){O|=o.STICKY}switch(d){case"+":p|=O;break;case"-":p&=~O;break;case"=":p=u+O;if(n.statFollowLinks(t).isDirectory()){p|=o.SETUID+o.SETGID&l}break;default:n.error("Could not recognize operator: `"+d+"`")}if(e.verbose){console.log(t+" -> "+p.toString(8))}if(l!==p){if(!e.verbose&&e.changes){console.log(t+" -> "+p.toString(8))}i.chmodSync(t,p);l=p}}else{n.error("Invalid symbolic mode change: "+r)}}))}else{p=u+parseInt(r,8);if(n.statFollowLinks(t).isDirectory()){p|=o.SETUID+o.SETGID&l}i.chmodSync(t,p)}}));return""}e.exports=_chmod},7583:(e,r,t)=>{var n=t(4963);var i=t(1910);var s=20*1024*1024;var o=127;n.register("cmd",_cmd,{cmdOptions:null,globStart:1,canReceivePipe:true,wrapOutput:true});function commandNotFound(e){if(process.platform==="win32"){var r="is not recognized as an internal or external command";return e.code&&e.stderr.includes(r)}else{return e.code&&e.stdout===null&&e.stderr===null}}function _cmd(e,r,t,a){if(!r){n.error("Must specify a non-empty string as a command")}t=[].slice.call(arguments,2);if(t.length===0){a={}}else{var c=t.pop();if(n.isObject(c)){a=c}else{a={};t.push(c)}}var l=n.readFromPipe();var u={maxBuffer:s,stripEof:false,reject:false};var p={input:l,shell:false};var h=Object.assign(u,a,p);var d=i.sync(r,t,h);var v;var m;var y;if(commandNotFound(d)){v="";m="'"+r+"': command not found";y=o}else{v=d.stdout.toString();m=d.stderr.toString();y=d.code}if(y)n.error(m,y,{silent:true,continue:true});return new n.ShellString(v,m,y)}e.exports=_cmd},4963:(e,r,t)=>{"use strict";var n=t(2037);var i=t(7147);var s=t(7545);var o=t(1914);var a=Object.create(o);r.extend=Object.assign;var c=Boolean(process.versions.electron);var l={fatal:false,globOptions:{},maxdepth:255,noglob:false,silent:false,verbose:false,execPath:null,bufLength:64*1024};var u={reset:function(){Object.assign(this,l);if(!c){this.execPath=process.execPath}},resetForTesting:function(){this.reset();this.silent=true}};u.reset();r.config=u;var p={error:null,errorCode:0,currentCmd:"shell.js"};r.state=p;delete process.env.OLDPWD;function isObject(e){return typeof e==="object"&&e!==null}r.isObject=isObject;function log(){if(!u.silent){console.error.apply(console,arguments)}}r.log=log;function convertErrorOutput(e){if(typeof e!=="string"){throw new TypeError("input must be a string")}return e.replace(/\\/g,"/")}r.convertErrorOutput=convertErrorOutput;function CommandError(e){this.returnValue=e}CommandError.prototype=Object.create(Error.prototype);CommandError.prototype.constructor=CommandError;r.CommandError=CommandError;function error(e,r,t){if(typeof e!=="string")throw new Error("msg must be a string");var n={continue:false,code:1,prefix:p.currentCmd+": ",silent:false,fatal:u.fatal};if(typeof r==="number"&&isObject(t)){t.code=r}else if(isObject(r)){t=r}else if(typeof r==="number"){t={code:r}}else if(typeof r!=="number"){t={}}t=Object.assign({},n,t);if(!p.errorCode)p.errorCode=t.code;var i=convertErrorOutput(t.prefix+e);p.error=p.error?p.error+"\n":"";p.error+=i;if(t.fatal)throw new Error(i);if(e.length>0&&!t.silent)log(i);if(!t.continue){throw new CommandError(new ShellString("",p.error,p.errorCode))}}r.error=error;function ShellString(e,r,t){var n;if(e instanceof Array){n=e;n.stdout=e.join("\n");if(e.length>0)n.stdout+="\n"}else{n=new String(e);n.stdout=e}n.stderr=r;n.code=t;v.forEach((function(e){n[e]=a[e].bind(n)}));return n}r.ShellString=ShellString;function parseOptions(e,r,t){t=t||{};if(typeof e!=="string"&&!isObject(e)){throw new TypeError("options must be strings or key-value pairs")}else if(!isObject(r)){throw new TypeError("parseOptions() internal error: map must be an object")}else if(!isObject(t)){throw new TypeError("parseOptions() internal error: errorOptions must be object")}if(e==="--"){return{}}var n={};Object.keys(r).forEach((function(e){var t=r[e];if(t[0]!=="!"){n[t]=false}}));if(e==="")return n;if(typeof e==="string"){if(e[0]!=="-"){throw new Error("Options string must start with a '-'")}var i=e.slice(1).split("");i.forEach((function(e){if(e in r){var i=r[e];if(i[0]==="!"){n[i.slice(1)]=false}else{n[i]=true}}else{error("option not recognized: "+e,t)}}))}else{Object.keys(e).forEach((function(i){if(i[0]==="-"){var s=i[1];if(s in r){var o=r[s];n[o]=e[i]}else{error("option not recognized: "+s,t)}}else if(i in n){n[i]=e[i]}else{error("option not recognized: {"+i+":...}",t)}}))}return n}r.parseOptions=parseOptions;function expand(e){if(!Array.isArray(e)){throw new TypeError("must be an array")}var r=[];e.forEach((function(e){if(typeof e!=="string"){r.push(e)}else{var t;try{t=s.sync(e,u.globOptions);t=t.length>0?t:[e]}catch(r){t=[e]}r=r.concat(t)}}));return r}r.expand=expand;var h=typeof Buffer.alloc==="function"?function(e){return Buffer.alloc(e||u.bufLength)}:function(e){return new Buffer(e||u.bufLength)};r.buffer=h;function unlinkSync(e){try{i.unlinkSync(e)}catch(r){if(r.code==="EPERM"){i.chmodSync(e,"0666");i.unlinkSync(e)}else{throw r}}}r.unlinkSync=unlinkSync;function statFollowLinks(){return i.statSync.apply(i,arguments)}r.statFollowLinks=statFollowLinks;function statNoFollowLinks(){return i.lstatSync.apply(i,arguments)}r.statNoFollowLinks=statNoFollowLinks;function randomFileName(){function randomHash(e){if(e===1){return parseInt(16*Math.random(),10).toString(16)}var r="";for(var t=0;t<e;t++){r+=randomHash(1)}return r}return"shelljs_"+randomHash(20)}r.randomFileName=randomFileName;function wrap(e,r,t){t=t||{};return function(){var i=null;p.currentCmd=e;p.error=null;p.errorCode=0;try{var s=[].slice.call(arguments,0);if(u.verbose){console.error.apply(console,[e].concat(s))}p.pipedValue=this&&typeof this.stdout==="string"?this.stdout:"";if(t.unix===false){i=r.apply(this,s)}else{if(isObject(s[0])&&s[0].constructor.name==="Object"){}else if(s.length===0||typeof s[0]!=="string"||s[0].length<=1||s[0][0]!=="-"){s.unshift("")}s=s.reduce((function(e,r){if(Array.isArray(r)){return e.concat(r)}e.push(r);return e}),[]);s=s.map((function(e){if(isObject(e)&&e.constructor.name==="String"){return e.toString()}return e}));var o=n.homedir();s=s.map((function(e){if(typeof e==="string"&&e.slice(0,2)==="~/"||e==="~"){return e.replace(/^~/,o)}return e}));if(!u.noglob&&t.allowGlobbing===true){s=s.slice(0,t.globStart).concat(expand(s.slice(t.globStart)))}try{if(isObject(t.cmdOptions)){s[0]=parseOptions(s[0],t.cmdOptions)}i=r.apply(this,s)}catch(e){if(e instanceof CommandError){i=e.returnValue}else{throw e}}}}catch(e){if(!p.error){e.name="ShellJSInternalError";throw e}if(u.fatal||t.handlesFatalDynamically)throw e}if(t.wrapOutput&&(typeof i==="string"||Array.isArray(i))){i=new ShellString(i,p.error,p.errorCode)}p.currentCmd="shell.js";return i}}r.wrap=wrap;function _readFromPipe(){return p.pipedValue}r.readFromPipe=_readFromPipe;var d={allowGlobbing:true,canReceivePipe:false,cmdOptions:null,globStart:1,handlesFatalDynamically:false,pipeOnly:false,wrapOutput:true,unix:true};var v=[];function _register(e,r,t){t=t||{};Object.keys(t).forEach((function(e){if(!d.hasOwnProperty(e)){throw new Error("Unknown option '"+e+"'")}if(typeof t[e]!==typeof d[e]){throw new TypeError("Unsupported type '"+typeof t[e]+"' for option '"+e+"'")}}));t=Object.assign({},d,t);if(o.hasOwnProperty(e)){throw new Error("Command `"+e+"` already exists")}if(t.pipeOnly){t.canReceivePipe=true;a[e]=wrap(e,r,t)}else{o[e]=wrap(e,r,t)}if(t.canReceivePipe){v.push(e)}}r.register=_register},7480:(e,r,t)=>{var n=t(7147);var i=t(1017);var s=t(4963);s.register("cp",_cp,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:false});function copyFileSync(e,r,t){if(!n.existsSync(e)){s.error("copyFileSync: no such file or directory: "+e)}var i=process.platform==="win32";try{if(t.update&&s.statFollowLinks(e).mtime<n.statSync(r).mtime){return}}catch(e){}if(s.statNoFollowLinks(e).isSymbolicLink()&&!t.followsymlink){try{s.statNoFollowLinks(r);s.unlinkSync(r)}catch(e){}var o=n.readlinkSync(e);n.symlinkSync(o,r,i?"junction":null)}else{var a=s.buffer();var c=a.length;var l=c;var u=0;var p=null;var h=null;try{p=n.openSync(e,"r")}catch(r){s.error("copyFileSync: could not read src file ("+e+")")}try{h=n.openSync(r,"w")}catch(e){s.error("copyFileSync: could not write to dest file (code="+e.code+"):"+r)}while(l===c){l=n.readSync(p,a,0,c,u);n.writeSync(h,a,0,l);u+=l}n.closeSync(p);n.closeSync(h);n.chmodSync(r,s.statFollowLinks(e).mode)}}function cpdirSyncRecursive(e,r,t,i){if(!i)i={};if(t>=s.config.maxdepth)return;t++;var o=process.platform==="win32";try{n.mkdirSync(r)}catch(e){if(e.code!=="EEXIST")throw e}var a=n.readdirSync(e);for(var c=0;c<a.length;c++){var l=e+"/"+a[c];var u=r+"/"+a[c];var p=s.statNoFollowLinks(l);var h;if(i.followsymlink){if(cpcheckcycle(e,l)){console.error("Cycle link found.");h=n.readlinkSync(l);n.symlinkSync(h,u,o?"junction":null);continue}}if(p.isDirectory()){cpdirSyncRecursive(l,u,t,i)}else if(p.isSymbolicLink()&&!i.followsymlink){h=n.readlinkSync(l);try{s.statNoFollowLinks(u);s.unlinkSync(u)}catch(e){}n.symlinkSync(h,u,o?"junction":null)}else if(p.isSymbolicLink()&&i.followsymlink){p=s.statFollowLinks(l);if(p.isDirectory()){cpdirSyncRecursive(l,u,t,i)}else{copyFileSync(l,u,i)}}else if(n.existsSync(u)&&i.no_force){s.log("skipping existing file: "+a[c])}else{copyFileSync(l,u,i)}}var d=s.statFollowLinks(e);n.chmodSync(r,d.mode)}function checkRecentCreated(e,r){var t=e[r];return e.slice(0,r).some((function(e){return i.basename(e)===i.basename(t)}))}function cpcheckcycle(e,r){var t=s.statNoFollowLinks(r);if(t.isSymbolicLink()){var i=s.statFollowLinks(r);if(i.isDirectory()){var o=n.realpathSync(e);var a=n.realpathSync(r);var c=new RegExp(a);if(c.test(o)){return true}}}return false}function _cp(e,r,t){if(e.followsymlink){e.noFollowsymlink=false}if(!e.recursive&&!e.noFollowsymlink){e.followsymlink=true}if(arguments.length<3){s.error("missing <source> and/or <dest>")}else{r=[].slice.call(arguments,1,arguments.length-1);t=arguments[arguments.length-1]}var o=n.existsSync(t);var a=o&&s.statFollowLinks(t);if((!o||!a.isDirectory())&&r.length>1){s.error("dest is not a directory (too many sources)")}if(o&&a.isFile()&&e.no_force){return new s.ShellString("","",0)}r.forEach((function(o,c){if(!n.existsSync(o)){if(o==="")o="''";s.error("no such file or directory: "+o,{continue:true});return}var l=s.statFollowLinks(o);if(!e.noFollowsymlink&&l.isDirectory()){if(!e.recursive){s.error("omitting directory '"+o+"'",{continue:true})}else{var u=a&&a.isDirectory()?i.join(t,i.basename(o)):t;try{s.statFollowLinks(i.dirname(t));cpdirSyncRecursive(o,u,0,{no_force:e.no_force,followsymlink:e.followsymlink,update:e.update})}catch(e){s.error("cannot create directory '"+t+"': No such file or directory")}}}else{var p=t;if(a&&a.isDirectory()){p=i.normalize(t+"/"+i.basename(o))}var h=n.existsSync(p);if(h&&checkRecentCreated(r,c)){if(!e.no_force){s.error("will not overwrite just-created '"+p+"' with '"+o+"'",{continue:true})}return}if(h&&e.no_force){return}if(i.relative(o,p)===""){s.error("'"+p+"' and '"+o+"' are the same file",{continue:true});return}copyFileSync(o,p,e)}}));return new s.ShellString("",s.state.error,s.state.errorCode)}e.exports=_cp},4252:(e,r,t)=>{var n=t(4963);var i=t(5113);var s=t(1017);n.register("dirs",_dirs,{wrapOutput:false});n.register("pushd",_pushd,{wrapOutput:false});n.register("popd",_popd,{wrapOutput:false});var o=[];function _isStackIndex(e){return/^[-+]\d+$/.test(e)}function _parseStackIndex(e){if(_isStackIndex(e)){if(Math.abs(e)<o.length+1){return/^-/.test(e)?Number(e)-1:Number(e)}n.error(e+": directory stack index out of range")}else{n.error(e+": invalid number")}}function _actualDirStack(){return[process.cwd()].concat(o)}function _pushd(e,r){if(_isStackIndex(e)){r=e;e=""}e=n.parseOptions(e,{n:"no-cd",q:"quiet"});var t=_actualDirStack();if(r==="+0"){return t}else if(!r){if(t.length>1){t=t.splice(1,1).concat(t)}else{return n.error("no other directory")}}else if(_isStackIndex(r)){var a=_parseStackIndex(r);t=t.slice(a).concat(t.slice(0,a))}else if(e["no-cd"]){t.splice(1,0,r)}else{t.unshift(r)}if(e["no-cd"]){t=t.slice(1)}else{r=s.resolve(t.shift());i("",r)}o=t;return _dirs(e.quiet?"-q":"")}r.pushd=_pushd;function _popd(e,r){if(_isStackIndex(e)){r=e;e=""}e=n.parseOptions(e,{n:"no-cd",q:"quiet"});if(!o.length){return n.error("directory stack empty")}r=_parseStackIndex(r||"+0");if(e["no-cd"]||r>0||o.length+r===0){r=r>0?r-1:r;o.splice(r,1)}else{var t=s.resolve(o.shift());i("",t)}return _dirs(e.quiet?"-q":"")}r.popd=_popd;function _dirs(e,r){if(_isStackIndex(e)){r=e;e=""}e=n.parseOptions(e,{c:"clear",q:"quiet"});if(e.clear){o=[];return o}var t=_actualDirStack();if(r){r=_parseStackIndex(r);if(r<0){r=t.length+r}if(!e.quiet){n.log(t[r])}return t[r]}if(!e.quiet){n.log(t.join(" "))}return t}r.dirs=_dirs},7647:(e,r,t)=>{var n=t(3837).format;var i=t(4963);i.register("echo",_echo,{allowGlobbing:false});function _echo(e){var r=[].slice.call(arguments,e?0:1);var t={};try{t=i.parseOptions(r[0],{e:"escapes",n:"no_newline"},{silent:true});if(r[0]){r.shift()}}catch(e){i.state.error=null}var s=n.apply(null,r);if(!t.no_newline){s+="\n"}process.stdout.write(s);return s}e.exports=_echo},717:(e,r,t)=>{var n=t(4963);function error(){return n.state.error}e.exports=error},7964:(e,r,t)=>{var n=t(2081);var i=t(7147);var s=process.argv[2];var o=i.readFileSync(s,"utf8");var a=JSON.parse(o);var c=a.command;var l=a.execOptions;var u=a.pipe;var p=a.stdoutFile;var h=a.stderrFile;function isMaxBufferError(e){var r=/^.*\bmaxBuffer\b.*exceeded.*$/;if(e instanceof Error&&e.message&&e.message.match(r)){return true}else if(e instanceof RangeError&&e.message&&e.message.match(r)){return true}return false}var d=i.createWriteStream(p);var v=i.createWriteStream(h);function appendError(e,r){v.write(e);process.exitCode=r}var m=n.exec(c,l,(function(e){if(!e){process.exitCode=0}else if(isMaxBufferError(e)){appendError("maxBuffer exceeded",1)}else if(e.code===undefined&&e.message){appendError(e.message,1)}else if(e.code===undefined){appendError("Unknown issue",1)}else{process.exitCode=e.code}}));m.stdout.pipe(d);m.stderr.pipe(v);m.stdout.pipe(process.stdout);m.stderr.pipe(process.stderr);if(u){m.stdin.end(u)}},9866:(e,r,t)=>{var n=t(4963);var i=t(1076).tempDir;var s=t(4480);var o=t(1017);var a=t(7147);var c=t(2081);var l=t(2037);var u=20*1024*1024;var p=1;n.register("exec",_exec,{unix:false,canReceivePipe:true,wrapOutput:false,handlesFatalDynamically:true});function execSync(e,r,t){if(!n.config.execPath){try{n.error("Unable to find a path to the node binary. Please manually set config.execPath")}catch(e){if(r.fatal){throw e}return}}var h=i();var d=o.join(h,n.randomFileName());var v=o.join(h,n.randomFileName());var m=o.join(h,n.randomFileName());r=n.extend({silent:n.config.silent,fatal:n.config.fatal,cwd:s().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},r);if(a.existsSync(d))n.unlinkSync(d);if(a.existsSync(v))n.unlinkSync(v);if(a.existsSync(m))n.unlinkSync(m);r.cwd=o.resolve(r.cwd);var y={command:e,execOptions:r,pipe:t,stdoutFile:m,stderrFile:v};var g=o.join(a.mkdtempSync(o.resolve(l.tmpdir(),"./exec-child")),"./ec.js");a.writeFileSync(g,'var _0x2ebd9=_0xfba4;function _0x3ec8(){var e=["10TkCKhI","execOptions","pipe","8875989FViKzn","stderr","20DEUCEB","child_process","4480888eYLCzb","8336ulcEVA","createWriteStream","end","58615oDVIMo","stdin","utf8","exec","stdout","57rTthsd","3371088MkRZSY","exitCode","691236NGgxwL","argv","581912dvdQDA","code","main","parse","This file should not be required","command"];return(_0x3ec8=function(){return e})()}if(function(e,r){for(var s=_0xfba4,t=_0x3ec8();;)try{if(366987===-parseInt(s(233))/1+parseInt(s(220))/2*(-parseInt(s(228))/3)+parseInt(s(217))/4*(-parseInt(s(223))/5)+parseInt(s(229))/6+parseInt(s(231))/7+-parseInt(s(219))/8+-parseInt(s(215))/9*(-parseInt(s(212))/10))break;t.push(t.shift())}catch(e){t.push(t.shift())}}(),require[_0x2ebd9(235)]!==module)throw new Error(_0x2ebd9(210));var childProcess=require(_0x2ebd9(218)),fs=require("fs"),paramFilePath=process[_0x2ebd9(232)][2],serializedParams=fs.readFileSync(paramFilePath,_0x2ebd9(225)),params=JSON[_0x2ebd9(209)](serializedParams),cmd=params[_0x2ebd9(211)],execOptions=params[_0x2ebd9(213)],pipe=params[_0x2ebd9(214)],stdoutFile=params.stdoutFile,stderrFile=params.stderrFile,c=childProcess[_0x2ebd9(226)](cmd,execOptions,(function(e){var r=_0x2ebd9;e?void 0===e.code?process[r(230)]=1:process[r(230)]=e[r(234)]:process[r(230)]=0})),stdoutStream=fs[_0x2ebd9(221)](stdoutFile),stderrStream=fs[_0x2ebd9(221)](stderrFile);function _0xfba4(e,r){var s=_0x3ec8();return(_0xfba4=function(e,r){return s[e-=209]})(e,r)}c[_0x2ebd9(227)].pipe(stdoutStream),c.stderr[_0x2ebd9(214)](stderrStream),c.stdout[_0x2ebd9(214)](process[_0x2ebd9(227)]),c.stderr[_0x2ebd9(214)](process[_0x2ebd9(216)]),pipe&&c[_0x2ebd9(224)][_0x2ebd9(222)](pipe);',"utf8");a.writeFileSync(d,JSON.stringify(y),"utf8");var b=[g,d];if(r.silent){r.stdio="ignore"}else{r.stdio=[0,1,2]}var w=0;try{delete r.shell;c.execFileSync(n.config.execPath,b,r)}catch(e){w=e.status||p}var S="";var x="";if(r.encoding==="buffer"){S=a.readFileSync(m);x=a.readFileSync(v)}else{S=a.readFileSync(m,r.encoding);x=a.readFileSync(v,r.encoding)}try{n.unlinkSync(d)}catch(e){}try{n.unlinkSync(v)}catch(e){}try{n.unlinkSync(m)}catch(e){}if(w!==0){n.error(x,w,{continue:true,silent:true,fatal:r.fatal})}var _=n.ShellString(S,x,w);return _}function execAsync(e,r,t,i){r=n.extend({silent:n.config.silent,fatal:n.config.fatal,cwd:s().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},r);var o=c.exec(e,r,(function(e,r,t){if(i){if(!e){i(0,r,t)}else if(e.code===undefined){i(1,r,t)}else{i(e.code,r,t)}}}));if(t)o.stdin.end(t);if(!r.silent){o.stdout.pipe(process.stdout);o.stderr.pipe(process.stderr)}return o}function _exec(e,r,t){r=r||{};var i=n.readFromPipe();if(typeof r==="function"){t=r;r={async:true}}if(typeof r==="object"&&typeof t==="function"){r.async=true}r=n.extend({silent:n.config.silent,fatal:n.config.fatal,async:false},r);if(!e){try{n.error("must specify command")}catch(e){if(r.fatal){throw e}return}}if(r.async){return execAsync(e,r,i,t)}else{return execSync(e,r,i)}}e.exports=_exec},2716:(e,r,t)=>{var n=t(1017);var i=t(4963);var s=t(3014);i.register("find",_find,{});function _find(e,r){if(!r){i.error("no path specified")}else if(typeof r==="string"){r=[].slice.call(arguments,1)}var t=[];function pushFile(e){if(process.platform==="win32"){e=e.replace(/\\/g,"/")}t.push(e)}r.forEach((function(e){var r;try{r=i.statFollowLinks(e)}catch(r){i.error("no such file or directory: "+e)}pushFile(e);if(r.isDirectory()){s({recursive:true,all:true},e).forEach((function(r){pushFile(n.join(e,r))}))}}));return t}e.exports=_find},2743:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("grep",_grep,{globStart:2,canReceivePipe:true,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase"}});function _grep(e,r,t){var s=n.readFromPipe();if(!t&&!s)n.error("no paths given",2);t=[].slice.call(arguments,2);if(s){t.unshift("-")}var o=[];if(e.ignoreCase){r=new RegExp(r,"i")}t.forEach((function(t){if(!i.existsSync(t)&&t!=="-"){n.error("no such file or directory: "+t,2,{continue:true});return}var a=t==="-"?s:i.readFileSync(t,"utf8");if(e.nameOnly){if(a.match(r)){o.push(t)}}else{var c=a.split("\n");c.forEach((function(t){var n=t.match(r);if(e.inverse&&!n||!e.inverse&&n){o.push(t)}}))}}));if(o.length===0&&n.state.errorCode!==2){n.error("",{silent:true})}return o.join("\n")+"\n"}e.exports=_grep},2264:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("head",_head,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function readSomeLines(e,r){var t=n.buffer();var s=t.length;var o=s;var a=0;var c=i.openSync(e,"r");var l=0;var u="";while(o===s&&l<r){o=i.readSync(c,t,0,s,a);var p=t.toString("utf8",0,o);l+=p.split("\n").length-1;u+=p;a+=o}i.closeSync(c);return u}function _head(e,r){var t=[];var s=n.readFromPipe();if(!r&&!s)n.error("no paths given");var o=1;if(e.numLines===true){o=2;e.numLines=Number(arguments[1])}else if(e.numLines===false){e.numLines=10}r=[].slice.call(arguments,o);if(s){r.unshift("-")}var a=false;r.forEach((function(r){if(r!=="-"){if(!i.existsSync(r)){n.error("no such file or directory: "+r,{continue:true});return}else if(n.statFollowLinks(r).isDirectory()){n.error("error reading '"+r+"': Is a directory",{continue:true});return}}var o;if(r==="-"){o=s}else if(e.numLines<0){o=i.readFileSync(r,"utf8")}else{o=readSomeLines(r,e.numLines)}var c=o.split("\n");var l=c[c.length-1]==="";if(l){c.pop()}a=l||e.numLines<c.length;t=t.concat(c.slice(0,e.numLines))}));if(a){t.push("")}return t.join("\n")}e.exports=_head},8976:(e,r,t)=>{var n=t(7147);var i=t(1017);var s=t(4963);s.register("ln",_ln,{cmdOptions:{s:"symlink",f:"force"}});function _ln(e,r,o){if(!r||!o){s.error("Missing <source> and/or <dest>")}r=String(r);var a=i.normalize(r).replace(RegExp(i.sep+"$"),"");var c=i.resolve(r)===a;o=i.resolve(process.cwd(),String(o));if(n.existsSync(o)){if(!e.force){s.error("Destination file exists",{continue:true})}n.unlinkSync(o)}if(e.symlink){var l=process.platform==="win32";var u=l?"file":null;var p=c?a:t.ab+"shelljs/"+i.dirname(o)+"/"+r;if(!n.existsSync(p)){s.error("Source file does not exist",{continue:true})}else if(l&&s.statFollowLinks(p).isDirectory()){u="junction"}try{n.symlinkSync(u==="junction"?p:r,o,u)}catch(e){s.error(e.message)}}else{if(!n.existsSync(r)){s.error("Source file does not exist",{continue:true})}try{n.linkSync(r,o)}catch(e){s.error(e.message)}}return""}e.exports=_ln},3014:(e,r,t)=>{var n=t(1017);var i=t(7147);var s=t(4963);var o=t(7545);var a=n.sep+"**";s.register("ls",_ls,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}});function _ls(e,r){if(e.all_deprecated){s.log("ls: Option -a is deprecated. Use -A instead");e.all=true}if(!r){r=["."]}else{r=[].slice.call(arguments,1)}var t=[];function pushFile(r,n,i){if(process.platform==="win32"){n=n.replace(/\\/g,"/")}if(e.long){i=i||(e.link?s.statFollowLinks(r):s.statNoFollowLinks(r));t.push(addLsAttributes(n,i))}else{t.push(n)}}r.forEach((function(r){var t;try{t=e.link?s.statFollowLinks(r):s.statNoFollowLinks(r);if(t.isSymbolicLink()){try{var c=s.statFollowLinks(r);if(c.isDirectory()){t=c}}catch(e){}}}catch(e){s.error("no such file or directory: "+r,2,{continue:true});return}if(t.isDirectory()&&!e.directory){if(e.recursive){o.sync(r+a,{dot:e.all,follow:e.link}).forEach((function(e){if(n.relative(r,e)){pushFile(e,n.relative(r,e))}}))}else if(e.all){i.readdirSync(r).forEach((function(e){pushFile(n.join(r,e),e)}))}else{i.readdirSync(r).forEach((function(e){if(e[0]!=="."){pushFile(n.join(r,e),e)}}))}}else{pushFile(r,r,t)}}));return t}function addLsAttributes(e,r){r.name=e;r.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")};return r}e.exports=_ls},1343:(e,r,t)=>{var n=t(4963);var i=t(7147);var s=t(1017);n.register("mkdir",_mkdir,{cmdOptions:{p:"fullpath"}});function mkdirSyncRecursive(e){var r=s.dirname(e);if(r===e){n.error("dirname() failed: ["+e+"]")}if(!i.existsSync(r)){mkdirSyncRecursive(r)}try{i.mkdirSync(e,parseInt("0777",8))}catch(r){if(r.code!=="EEXIST"||n.statNoFollowLinks(e).isFile()){throw r}}}function _mkdir(e,r){if(!r)n.error("no paths given");if(typeof r==="string"){r=[].slice.call(arguments,1)}r.forEach((function(r){try{var t=n.statNoFollowLinks(r);if(!e.fullpath){n.error("path already exists: "+r,{continue:true})}else if(t.isFile()){n.error("cannot create directory "+r+": File exists",{continue:true})}return}catch(e){}var o=s.dirname(r);if(!i.existsSync(o)&&!e.fullpath){n.error("no such file or directory: "+o,{continue:true});return}try{if(e.fullpath){mkdirSyncRecursive(s.resolve(r))}else{i.mkdirSync(r,parseInt("0777",8))}}catch(e){var a;if(e.code==="EACCES"){a="Permission denied"}else if(e.code==="ENOTDIR"||e.code==="ENOENT"){a="Not a directory"}else{throw e}n.error("cannot create directory "+r+": "+a,{continue:true})}}));return""}e.exports=_mkdir},3599:(e,r,t)=>{var n=t(7147);var i=t(1017);var s=t(4963);var o=t(7480);var a=t(8994);s.register("mv",_mv,{cmdOptions:{f:"!no_force",n:"no_force"}});function checkRecentCreated(e,r){var t=e[r];return e.slice(0,r).some((function(e){return i.basename(e)===i.basename(t)}))}function _mv(e,r,t){if(arguments.length<3){s.error("missing <source> and/or <dest>")}else if(arguments.length>3){r=[].slice.call(arguments,1,arguments.length-1);t=arguments[arguments.length-1]}else if(typeof r==="string"){r=[r]}else{s.error("invalid arguments")}var c=n.existsSync(t);var l=c&&s.statFollowLinks(t);if((!c||!l.isDirectory())&&r.length>1){s.error("dest is not a directory (too many sources)")}if(c&&l.isFile()&&e.no_force){s.error("dest file already exists: "+t)}r.forEach((function(c,l){if(!n.existsSync(c)){s.error("no such file or directory: "+c,{continue:true});return}var u=t;if(n.existsSync(t)&&s.statFollowLinks(t).isDirectory()){u=i.normalize(t+"/"+i.basename(c))}var p=n.existsSync(u);if(p&&checkRecentCreated(r,l)){if(!e.no_force){s.error("will not overwrite just-created '"+u+"' with '"+c+"'",{continue:true})}return}if(n.existsSync(u)&&e.no_force){s.error("dest file already exists: "+u,{continue:true});return}if(i.resolve(c)===i.dirname(i.resolve(u))){s.error("cannot move to self: "+c,{continue:true});return}try{n.renameSync(c,u)}catch(e){if(e.code==="EXDEV"){o({recursive:true},c,u);a({recursive:true,force:true},c)}}}));return""}e.exports=_mv},6551:()=>{},8243:()=>{},4480:(e,r,t)=>{var n=t(1017);var i=t(4963);i.register("pwd",_pwd,{allowGlobbing:false});function _pwd(){var e=n.resolve(process.cwd());return e}e.exports=_pwd},8994:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("rm",_rm,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}});function rmdirSyncRecursive(e,r,t){var s;s=i.readdirSync(e);for(var o=0;o<s.length;o++){var a=e+"/"+s[o];var c=n.statNoFollowLinks(a);if(c.isDirectory()){rmdirSyncRecursive(a,r)}else if(r||isWriteable(a)){try{n.unlinkSync(a)}catch(e){n.error("could not remove file (code "+e.code+"): "+a,{continue:true})}}}if(t)return;var l;try{var u=Date.now();for(;;){try{l=i.rmdirSync(e);if(i.existsSync(e))throw{code:"EAGAIN"};break}catch(e){if(process.platform==="win32"&&(e.code==="ENOTEMPTY"||e.code==="EBUSY"||e.code==="EPERM"||e.code==="EAGAIN")){if(Date.now()-u>1e3)throw e}else if(e.code==="ENOENT"){break}else{throw e}}}}catch(r){n.error("could not remove directory (code "+r.code+"): "+e,{continue:true})}return l}function isWriteable(e){var r=true;try{var t=i.openSync(e,"a");i.closeSync(t)}catch(e){r=false}return r}function handleFile(e,r){if(r.force||isWriteable(e)){n.unlinkSync(e)}else{n.error("permission denied: "+e,{continue:true})}}function handleDirectory(e,r){if(r.recursive){rmdirSyncRecursive(e,r.force)}else{n.error("path is a directory",{continue:true})}}function handleSymbolicLink(e,r){var t;try{t=n.statFollowLinks(e)}catch(r){n.unlinkSync(e);return}if(t.isFile()){n.unlinkSync(e)}else if(t.isDirectory()){if(e[e.length-1]==="/"){if(r.recursive){var i=true;rmdirSyncRecursive(e,r.force,i)}else{n.error("path is a directory",{continue:true})}}else{n.unlinkSync(e)}}}function handleFIFO(e){n.unlinkSync(e)}function _rm(e,r){if(!r)n.error("no paths given");r=[].slice.call(arguments,1);r.forEach((function(r){var t;try{var i=r[r.length-1]==="/"?r.slice(0,-1):r;t=n.statNoFollowLinks(i)}catch(t){if(!e.force){n.error("no such file or directory: "+r,{continue:true})}return}if(t.isFile()){handleFile(r,e)}else if(t.isDirectory()){handleDirectory(r,e)}else if(t.isSymbolicLink()){handleSymbolicLink(r,e)}else if(t.isFIFO()){handleFIFO(r)}}));return""}e.exports=_rm},8710:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("sed",_sed,{globStart:3,canReceivePipe:true,cmdOptions:{i:"inplace"}});function _sed(e,r,t,s){var o=n.readFromPipe();if(typeof t!=="string"&&typeof t!=="function"){if(typeof t==="number"){t=t.toString()}else{n.error("invalid replacement string")}}if(typeof r==="string"){r=RegExp(r)}if(!s&&!o){n.error("no files given")}s=[].slice.call(arguments,3);if(o){s.unshift("-")}var a=[];s.forEach((function(s){if(!i.existsSync(s)&&s!=="-"){n.error("no such file or directory: "+s,2,{continue:true});return}var c=s==="-"?o:i.readFileSync(s,"utf8");var l=c.split("\n");var u=l.map((function(e){return e.replace(r,t)})).join("\n");a.push(u);if(e.inplace){i.writeFileSync(s,u,"utf8")}}));return a.join("\n")}e.exports=_sed},9058:(e,r,t)=>{var n=t(4963);n.register("set",_set,{allowGlobbing:false,wrapOutput:false});function _set(e){if(!e){var r=[].slice.call(arguments,0);if(r.length<2)n.error("must provide an argument");e=r[1]}var t=e[0]==="+";if(t){e="-"+e.slice(1)}e=n.parseOptions(e,{e:"fatal",v:"verbose",f:"noglob"});if(t){Object.keys(e).forEach((function(r){e[r]=!e[r]}))}Object.keys(e).forEach((function(r){if(t!==e[r]){n.config[r]=e[r]}}))}e.exports=_set},989:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("sort",_sort,{canReceivePipe:true,cmdOptions:{r:"reverse",n:"numerical"}});function parseNumber(e){var r=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(r[1]),value:r[2]}}function unixCmp(e,r){var t=e.toLowerCase();var n=r.toLowerCase();return t===n?-1*e.localeCompare(r):t.localeCompare(n)}function numericalCmp(e,r){var t=parseNumber(e);var n=parseNumber(r);if(t.hasOwnProperty("num")&&n.hasOwnProperty("num")){return t.num!==n.num?t.num-n.num:unixCmp(t.value,n.value)}else{return unixCmp(t.value,n.value)}}function _sort(e,r){var t=n.readFromPipe();if(!r&&!t)n.error("no files given");r=[].slice.call(arguments,1);if(t){r.unshift("-")}var s=r.reduce((function(e,r){if(r!=="-"){if(!i.existsSync(r)){n.error("no such file or directory: "+r,{continue:true});return e}else if(n.statFollowLinks(r).isDirectory()){n.error("read failed: "+r+": Is a directory",{continue:true});return e}}var s=r==="-"?t:i.readFileSync(r,"utf8");return e.concat(s.trimRight().split("\n"))}),[]);var o=s.sort(e.numerical?numericalCmp:unixCmp);if(e.reverse){o=o.reverse()}return o.join("\n")+"\n"}e.exports=_sort},4811:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("tail",_tail,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function _tail(e,r){var t=[];var s=n.readFromPipe();if(!r&&!s)n.error("no paths given");var o=1;if(e.numLines===true){o=2;e.numLines=Number(arguments[1])}else if(e.numLines===false){e.numLines=10}e.numLines=-1*Math.abs(e.numLines);r=[].slice.call(arguments,o);if(s){r.unshift("-")}var a=false;r.forEach((function(r){if(r!=="-"){if(!i.existsSync(r)){n.error("no such file or directory: "+r,{continue:true});return}else if(n.statFollowLinks(r).isDirectory()){n.error("error reading '"+r+"': Is a directory",{continue:true});return}}var o=r==="-"?s:i.readFileSync(r,"utf8");var c=o.split("\n");if(c[c.length-1]===""){c.pop();a=true}else{a=false}t=t.concat(c.slice(e.numLines))}));if(a){t.push("")}return t.join("\n")}e.exports=_tail},1076:(e,r,t)=>{var n=t(4963);var i=t(2037);var s=t(7147);n.register("tempdir",_tempDir,{allowGlobbing:false,wrapOutput:false});function writeableDir(e){if(!e||!s.existsSync(e))return false;if(!n.statFollowLinks(e).isDirectory())return false;var r=e+"/"+n.randomFileName();try{s.writeFileSync(r," ");n.unlinkSync(r);return e}catch(e){return false}}var o;function _tempDir(){if(o)return o;o=writeableDir(i.tmpdir())||writeableDir(process.env.TMPDIR)||writeableDir(process.env.TEMP)||writeableDir(process.env.TMP)||writeableDir(process.env.Wimp$ScrapDir)||writeableDir("C:\\TEMP")||writeableDir("C:\\TMP")||writeableDir("\\TEMP")||writeableDir("\\TMP")||writeableDir("/tmp")||writeableDir("/var/tmp")||writeableDir("/usr/tmp")||writeableDir(".");return o}function isCached(){return o}function clearCache(){o=undefined}e.exports.tempDir=_tempDir;e.exports.isCached=isCached;e.exports.clearCache=clearCache},7428:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("test",_test,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:false,allowGlobbing:false});function _test(e,r){if(!r)n.error("no path given");var t=false;Object.keys(e).forEach((function(r){if(e[r]===true){t=true}}));if(!t)n.error("could not interpret expression");if(e.link){try{return n.statNoFollowLinks(r).isSymbolicLink()}catch(e){return false}}if(!i.existsSync(r))return false;if(e.exists)return true;var s=n.statFollowLinks(r);if(e.block)return s.isBlockDevice();if(e.character)return s.isCharacterDevice();if(e.directory)return s.isDirectory();if(e.file)return s.isFile();if(e.pipe)return s.isFIFO();if(e.socket)return s.isSocket();return false}e.exports=_test},4812:(e,r,t)=>{var n=t(4963);var i=t(7147);var s=t(1017);n.register("to",_to,{pipeOnly:true,wrapOutput:false});function _to(e,r){if(!r)n.error("wrong arguments");if(!i.existsSync(s.dirname(r))){n.error("no such file or directory: "+s.dirname(r))}try{i.writeFileSync(r,this.stdout||this.toString(),"utf8");return this}catch(e){n.error("could not write to file (code "+e.code+"): "+r,{continue:true})}}e.exports=_to},269:(e,r,t)=>{var n=t(4963);var i=t(7147);var s=t(1017);n.register("toEnd",_toEnd,{pipeOnly:true,wrapOutput:false});function _toEnd(e,r){if(!r)n.error("wrong arguments");if(!i.existsSync(s.dirname(r))){n.error("no such file or directory: "+s.dirname(r))}try{i.appendFileSync(r,this.stdout||this.toString(),"utf8");return this}catch(e){n.error("could not append to file (code "+e.code+"): "+r,{continue:true})}}e.exports=_toEnd},490:(e,r,t)=>{var n=t(4963);var i=t(7147);n.register("touch",_touch,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}});function _touch(e,r){if(!r){n.error("no files given")}else if(typeof r==="string"){r=[].slice.call(arguments,1)}else{n.error("file arg should be a string file path or an Array of string file paths")}r.forEach((function(r){touchFile(e,r)}));return""}function touchFile(e,r){var t=tryStatFile(r);if(t&&t.isDirectory()){return}if(!t&&e.no_create){return}i.closeSync(i.openSync(r,"a"));var s=new Date;var o=e.date||s;var a=e.date||s;if(e.reference){var c=tryStatFile(e.reference);if(!c){n.error("failed to get attributess of "+e.reference)}o=c.mtime;a=c.atime}else if(e.date){o=e.date;a=e.date}if(e.atime_only&&e.mtime_only){}else if(e.atime_only){o=t.mtime}else if(e.mtime_only){a=t.atime}i.utimesSync(r,a,o)}e.exports=_touch;function tryStatFile(e){try{return n.statFollowLinks(e)}catch(e){return null}}},185:(e,r,t)=>{var n=t(4963);var i=t(7147);function lpad(e,r){var t=""+r;if(t.length<e){t=Array(e-t.length+1).join(" ")+t}return t}n.register("uniq",_uniq,{canReceivePipe:true,cmdOptions:{i:"ignoreCase",c:"count",d:"duplicates"}});function _uniq(e,r,t){var s=n.readFromPipe();if(!s){if(!r)n.error("no input given");if(!i.existsSync(r)){n.error(r+": No such file or directory")}else if(n.statFollowLinks(r).isDirectory()){n.error("error reading '"+r+"'")}}if(t&&i.existsSync(t)&&n.statFollowLinks(t).isDirectory()){n.error(t+": Is a directory")}var o=(r?i.readFileSync(r,"utf8"):s).trimRight().split("\n");var compare=function(r,t){return e.ignoreCase?r.toLocaleLowerCase().localeCompare(t.toLocaleLowerCase()):r.localeCompare(t)};var a=o.reduceRight((function(e,r){if(e.length===0){return[{count:1,ln:r}]}else if(compare(e[0].ln,r)===0){return[{count:e[0].count+1,ln:r}].concat(e.slice(1))}else{return[{count:1,ln:r}].concat(e)}}),[]).filter((function(r){return e.duplicates?r.count>1:true})).map((function(r){return(e.count?lpad(7,r.count)+" ":"")+r.ln})).join("\n")+"\n";if(t){new n.ShellString(a).to(t);return""}else{return a}}e.exports=_uniq},8947:(e,r,t)=>{var n=t(4963);var i=t(7147);var s=t(1017);n.register("which",_which,{allowGlobbing:false,cmdOptions:{a:"all"}});var o=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh";var a=1;function isWindowsPlatform(){return process.platform==="win32"}function splitPath(e){return e?e.split(s.delimiter):[]}function isExecutable(e){try{i.accessSync(e,a)}catch(e){return false}return true}function checkPath(e){return i.existsSync(e)&&!n.statFollowLinks(e).isDirectory()&&(isWindowsPlatform()||isExecutable(e))}function _which(e,r){if(!r)n.error("must specify command");var t=isWindowsPlatform();var i=splitPath(process.env.PATH);var a=[];if(r.indexOf("/")===-1){var c=[""];if(t){var l=process.env.PATHEXT||o;c=splitPath(l.toUpperCase())}for(var u=0;u<i.length;u++){if(a.length>0&&!e.all)break;var p=s.resolve(i[u],r);if(t){p=p.toUpperCase()}var h=p.match(/\.[^<>:"/|?*.]+$/);if(h&&c.indexOf(h[0])>=0){if(checkPath(p)){a.push(p);break}}else{for(var d=0;d<c.length;d++){var v=c[d];var m=p+v;if(checkPath(m)){a.push(m);break}}}}}else if(checkPath(r)){a.push(s.resolve(r))}if(a.length>0){return e.all?a:a[0]}return e.all?[]:null}e.exports=_which},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},2781:e=>{"use strict";e.exports=require("stream")},3837:e=>{"use strict";e.exports=require("util")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={exports:{}};var s=true;try{e[t](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete r[t]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(1914);module.exports=t})();
@@ -118,12 +118,12 @@ export class Crypto extends Plugin {
118
118
  try {
119
119
  if (key.isPrivate() && !decryptResult) decryptResult = key.decrypt(bufferData).toString()
120
120
  } catch (e) {
121
- decryptException = new CryptoException(e.message)
121
+ decryptException = new CryptoException((e as Error).message)
122
122
  }
123
123
  try {
124
124
  if (key.isPublic() && !decryptResult) decryptResult = key.decryptPublic(bufferData).toString()
125
125
  } catch (e) {
126
- decryptException = new CryptoException(e.message)
126
+ decryptException = new CryptoException((e as Error).message)
127
127
  }
128
128
  if (decryptResult) {
129
129
  return decryptResult
@@ -137,4 +137,4 @@ export class Crypto extends Plugin {
137
137
  return decryptedData
138
138
  }
139
139
  }
140
- }
140
+ }
@@ -1,10 +1,11 @@
1
1
  import {Plugin} from '../base/Plugin'
2
- import {createLogger, Logger as WinstonLogger, transports, format} from 'winston'
2
+ import {createLogger, Logger as WinstonLogger, transports} from 'winston'
3
3
  import {Configurable} from '../decorators/DependencyInjection'
4
4
  import * as Transport from 'winston-transport'
5
5
  import {format as utilFormat} from 'util'
6
6
  import {ConsoleTransportOptions} from 'winston/lib/winston/transports'
7
7
  import momentTimezone from 'moment-timezone'
8
+ import {TimestampOptions, format} from 'logform'
8
9
 
9
10
  declare module '../Core' {
10
11
  interface Application {
@@ -28,10 +29,14 @@ export class Logger extends Plugin {
28
29
  protected readonly console: ConsoleTransportOptions = {
29
30
  silent: false,
30
31
  format: format.combine(
31
- format.timestamp(),
32
+ format.timestamp({
33
+ format: () => {
34
+ return momentTimezone.tz(Date.now(), <string>process.env.TZ).format('YYYY-MM-DD HH:mm:ss')
35
+ }
36
+ }),
32
37
  format.colorize(),
33
38
  format.printf(packet => {
34
- return `${momentTimezone.tz(packet.timestamp, <string>process.env.TZ).format('YYYY-MM-DD HH:mm:ss')} ${packet.level}: ${packet.message}`
39
+ return `${packet.timestamp} ${packet.level}: ${packet.message}`
35
40
  })
36
41
  )
37
42
  }