@usecannon/ganache
Version:
A library and cli to create a local blockchain for fast Ethereum development.
2 lines • 456 kB
JavaScript
/*! For license information please see 4.js.LICENSE.txt */
exports.id=4,exports.ids=[4],exports.modules={471:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=r(6),a=n.styles=r(472),s=Object.defineProperties,u=new RegExp(/[\r\n]+/g);n.supportsColor=r(473).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};n.stylize=function stylize(e,t){if(!n.enabled)return e+"";var r=a[t];return!r&&t in n?n[t](e):r.open+e+r.close};var o=/[|\\{}()[\]^$+*?.]/g;function build(e){var t=function builder(){return applyStyle.apply(builder,arguments)};return t._styles=e,t.__proto__=h,t}var l,c=(l={},a.grey=a.gray,Object.keys(a).forEach((function(e){a[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(o,"\\$&")}(a[e].close),"g"),l[e]={get:function(){return build(this._styles.concat(e))}}})),l),h=s((function colors(){}),c);function applyStyle(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),s=this._styles,o=s.length;o--;){var l=a[s[o]];t=l.open+t.replace(l.closeRe,l.open)+l.close,r&&(t=t.replace(u,(function(e){return l.close+e+l.open})))}return t}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var i=r;for(var a in e[t])i=n[e[t][a]](i);return i}return n[e[t]](r)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var p=function sequencer(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var d in n.trap=r(475),n.zalgo=r(476),n.maps={},n.maps.america=r(477)(n),n.maps.zebra=r(478)(n),n.maps.rainbow=r(479)(n),n.maps.random=r(480)(n),n.maps)!function(e){n[e]=function(t){return p(n.maps[e],t)}}(d);s(n,function init(){var e={};return Object.keys(c).forEach((function(t){e[t]={get:function(){return build([t])}}})),e}())},475:e=>{e.exports=function runTheTrap(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","\u0104","\u023a","\u0245","\u0394","\u039b","\u0414"],b:["\xdf","\u0181","\u0243","\u026e","\u03b2","\u0e3f"],c:["\xa9","\u023b","\u03fe"],d:["\xd0","\u018a","\u0500","\u0501","\u0502","\u0503"],e:["\xcb","\u0115","\u018e","\u0258","\u03a3","\u03be","\u04bc","\u0a6c"],f:["\u04fa"],g:["\u0262"],h:["\u0126","\u0195","\u04a2","\u04ba","\u04c7","\u050a"],i:["\u0f0f"],j:["\u0134"],k:["\u0138","\u04a0","\u04c3","\u051e"],l:["\u0139"],m:["\u028d","\u04cd","\u04ce","\u0520","\u0521","\u0d69"],n:["\xd1","\u014b","\u019d","\u0376","\u03a0","\u048a"],o:["\xd8","\xf5","\xf8","\u01fe","\u0298","\u047a","\u05dd","\u06dd","\u0e4f"],p:["\u01f7","\u048e"],q:["\u09cd"],r:["\xae","\u01a6","\u0210","\u024c","\u0280","\u042f"],s:["\xa7","\u03de","\u03df","\u03e8"],t:["\u0141","\u0166","\u0373"],u:["\u01b1","\u054d"],v:["\u05d8"],w:["\u0428","\u0460","\u047c","\u0d70"],x:["\u04b2","\u04fe","\u04fc","\u04fd"],y:["\xa5","\u04b0","\u04cb"],z:["\u01b5","\u0240"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},476:e=>{e.exports=function zalgo(e,t){e=e||" he is here ";var r={up:["\u030d","\u030e","\u0304","\u0305","\u033f","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030a","\u0342","\u0313","\u0308","\u034a","\u034b","\u034c","\u0303","\u0302","\u030c","\u0350","\u0300","\u0301","\u030b","\u030f","\u0312","\u0313","\u0314","\u033d","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036a","\u036b","\u036c","\u036d","\u036e","\u036f","\u033e","\u035b","\u0346","\u031a"],down:["\u0316","\u0317","\u0318","\u0319","\u031c","\u031d","\u031e","\u031f","\u0320","\u0324","\u0325","\u0326","\u0329","\u032a","\u032b","\u032c","\u032d","\u032e","\u032f","\u0330","\u0331","\u0332","\u0333","\u0339","\u033a","\u033b","\u033c","\u0345","\u0347","\u0348","\u0349","\u034d","\u034e","\u0353","\u0354","\u0355","\u0356","\u0359","\u035a","\u0323"],mid:["\u0315","\u031b","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035c","\u035d","\u035e","\u035f","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},n=[].concat(r.up,r.down,r.mid);function randomNumber(e){return Math.floor(Math.random()*e)}function isChar(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function heComes(e,t){var n,i,a="";for(i in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!isChar(i)){switch(a+=e[i],n={up:0,down:0,mid:0},t.size){case"mini":n.up=randomNumber(8),n.mid=randomNumber(2),n.down=randomNumber(8);break;case"maxi":n.up=randomNumber(16)+3,n.mid=randomNumber(4)+1,n.down=randomNumber(64)+3;break;default:n.up=randomNumber(8)+1,n.mid=randomNumber(6)/2,n.down=randomNumber(8)+1}var s=["up","mid","down"];for(var u in s)for(var o=s[u],l=0;l<=n[o];l++)t[o]&&(a+=r[o][randomNumber(r[o].length)])}return a}(e,t)}},477:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},479:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},480:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},478:e=>{e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},472:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="\x1b["+n[0]+"m",i.close="\x1b["+n[1]+"m"}))},474:e=>{"use strict";e.exports=function(e,t){var r=(t=t||process.argv).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===r||i<r)}},473:(e,t,r)=>{"use strict";var n=r(18),i=r(474),a=process.env,s=void 0;function getSupportLevel(e){var t=function supportsColor(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var r=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in a}))||"codeship"===a.CI_NAME?1:t;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var u=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,t)}(e);return function translateLevel(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},470:(e,t,r)=>{var n=r(471);e.exports=n},525:e=>{"use strict";const t=e.exports;e.exports.default=t;const r="\x1b[",n="\x1b]",i="\x07",a=";",s="Apple_Terminal"===process.env.TERM_PROGRAM;t.cursorTo=(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");return"number"!=typeof t?r+(e+1)+"G":r+(t+1)+";"+(e+1)+"H"},t.cursorMove=(e,t)=>{if("number"!=typeof e)throw new TypeError("The `x` argument is required");let n="";return e<0?n+=r+-e+"D":e>0&&(n+=r+e+"C"),t<0?n+=r+-t+"A":t>0&&(n+=r+t+"B"),n},t.cursorUp=(e=1)=>r+e+"A",t.cursorDown=(e=1)=>r+e+"B",t.cursorForward=(e=1)=>r+e+"C",t.cursorBackward=(e=1)=>r+e+"D",t.cursorLeft="\x1b[G",t.cursorSavePosition=s?"\x1b7":"\x1b[s",t.cursorRestorePosition=s?"\x1b8":"\x1b[u",t.cursorGetPosition="\x1b[6n",t.cursorNextLine="\x1b[E",t.cursorPrevLine="\x1b[F",t.cursorHide="\x1b[?25l",t.cursorShow="\x1b[?25h",t.eraseLines=e=>{let r="";for(let n=0;n<e;n++)r+=t.eraseLine+(n<e-1?t.cursorUp():"");return e&&(r+=t.cursorLeft),r},t.eraseEndLine="\x1b[K",t.eraseStartLine="\x1b[1K",t.eraseLine="\x1b[2K",t.eraseDown="\x1b[J",t.eraseUp="\x1b[1J",t.eraseScreen="\x1b[2J",t.scrollUp="\x1b[S",t.scrollDown="\x1b[T",t.clearScreen="\x1bc",t.clearTerminal="win32"===process.platform?`${t.eraseScreen}${r}0f`:`${t.eraseScreen}${r}3J${r}H`,t.beep=i,t.link=(e,t)=>[n,"8",a,a,t,i,e,n,"8",a,a,i].join(""),t.image=(e,t={})=>{let r=`${n}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),!1===t.preserveAspectRatio&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+i},t.iTerm={setCwd:(e=process.cwd())=>`${n}50;CurrentDir=${e}${i}`,annotation:(e,t={})=>{let r=`${n}1337;`;const a=void 0!==t.x,s=void 0!==t.y;if((a||s)&&(!a||!s||void 0===t.length))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(a?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+i}}},459:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},204:e=>{"use strict";var t={white:37,black:30,blue:34,cyan:36,green:32,magenta:35,red:31,yellow:33,brightBlack:90,brightRed:91,brightGreen:92,brightYellow:93,brightBlue:94,brightMagenta:95,brightCyan:96,brightWhite:97},r={bgBlack:40,bgRed:41,bgGreen:42,bgYellow:43,bgBlue:44,bgMagenta:45,bgCyan:46,bgWhite:47,bgBrightBlack:100,bgBrightRed:101,bgBrightGreen:102,bgBrightYellow:103,bgBrightBlue:104,bgBrightMagenta:105,bgBrightCyan:106,bgBrightWhite:107},n={},i={},a={};Object.keys(t).forEach((function(e){var r=n[e]="\x1b["+t[e]+"m",s=i[e]="\x1b[39m";a[e]=function(e){return r+e+s}})),Object.keys(r).forEach((function(e){var t=n[e]="\x1b["+r[e]+"m",s=i[e]="\x1b[49m";a[e]=function(e){return t+e+s}})),e.exports=a,a.open=n,a.close=i},543:e=>{e.exports=function allocUnsafe(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)}},541:(e,t,r)=>{var n=r(542),i=r(543);e.exports=function alloc(e,t,r){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(e,t,r);var a=i(e);return 0===e?a:void 0===t?n(a,0):("string"!=typeof r&&(r=void 0),n(a,t,r))}},542:e=>{var t=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),"61006200"===e.toString("hex")}catch(e){return!1}}();function fillWithNumber(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");return r>>>=0,(n=void 0===n?e.length:n>>>0)>r&&e.fill(t,r,n),e}e.exports=function fill(e,r,n,i,a){if(t)return e.fill(r,n,i,a);if("number"==typeof r)return fillWithNumber(e,r,n,i);if("string"==typeof r){if("string"==typeof n?(a=n,n=0,i=e.length):"string"==typeof i&&(a=i,i=e.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("latin1"===a&&(a="binary"),"string"==typeof a&&!Buffer.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(""===r)return fillWithNumber(e,0,n,i);if(function isSingleByte(e){return 1===e.length&&e.charCodeAt(0)<256}(r))return fillWithNumber(e,r.charCodeAt(0),n,i);r=new Buffer(r,a)}return Buffer.isBuffer(r)?function fillWithBuffer(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");if(n<=r)return e;r>>>=0,n=void 0===n?e.length:n>>>0;for(var i=r,a=t.length;i<=n-a;)t.copy(e,i),i+=a;return i!==n&&t.copy(e,i,0,n-i),e}(e,r,n,i):fillWithNumber(e,0,n,i)}},540:e=>{var t=Object.prototype.toString,r="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function bufferFrom(e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return function isArrayBuffer(e){return"ArrayBuffer"===t.call(e).slice(8,-1)}(e)?function fromArrayBuffer(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,n,i):"string"==typeof e?function fromString(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,t):new Buffer(e,t)}(e,n):r?Buffer.from(e):new Buffer(e)}},481:(e,t,r)=>{"use strict";e.exports={highlight:r(128),highlightFile:r(483),highlightFileSync:r(484)}},128:(e,t,r)=>{"use strict";var n=r(299),i=r(482),a=r(204).brightBlack;e.exports=function highlight(e,t){t=t||{};try{var r=n(e,t.theme||i,{jsx:!!t.jsx}),s=t.firstline&&!isNaN(t.firstline)?t.firstline:1;return t.linenos?function addLinenos(e,t){var r=e.split("\n");!function trimEmptyLines(e){for(var t=e.pop();!t||!t.length;)t=e.pop();t&&e.push(t)}(r);var n,i,s=r.length,u=[];function getDigits(e){return e<10?1:e<100?2:e<1e3?3:e<1e4?4:5}function pad(e,t){switch(t-getDigits(e)){case 0:return""+e;case 1:return" "+e;case 2:return" "+e;case 3:return" "+e;case 4:return" "+e;case 5:return" "+e}}n=getDigits(s+t-1);for(var o=0;o<s;o++)i=a(pad(o+t,n)+": ").replace("\x1b[39m",""),u.push(i+r[o]);return u.join("\n")}(r.code,s):r.code}catch(e){throw e.message="Unable to perform highlight. The code contained syntax errors: "+e.message,e}}},483:(e,t,r)=>{"use strict";var n=r(9),i=r(128);e.exports=function highlightFile(e,t,r){(function isFunction(e){return"[object Function]"===toString.call(e)})(t)&&(r=t,t={}),t=t||{},n.readFile(e,"utf-8",(function(e,n){if(e)return r(e);try{r(null,i(n,t))}catch(e){r(e)}}))}},484:(e,t,r)=>{"use strict";var n=r(9),i=r(128);e.exports=function highlightFileSync(e,t){var r=n.readFileSync(e,"utf-8");return i(r,t=t||{})}},482:(e,t,r)=>{var n=r(204);e.exports={Boolean:{true:void 0,false:void 0,_default:n.brightRed},Identifier:{undefined:n.brightBlack,self:n.brightRed,console:n.blue,log:n.blue,warn:n.red,error:n.brightRed,_default:n.white},Null:{_default:n.brightBlack},Numeric:{_default:n.blue},String:{_default:function(e,t){var r=t.tokens[t.tokenIndex+1];return r&&"Punctuator"===r.type&&":"===r.value?n.green(e):n.brightGreen(e)}},Keyword:{break:void 0,case:void 0,catch:n.cyan,class:void 0,const:void 0,continue:void 0,debugger:void 0,default:void 0,delete:n.red,do:void 0,else:void 0,enum:void 0,export:void 0,extends:void 0,finally:n.cyan,for:void 0,function:void 0,if:void 0,implements:void 0,import:void 0,in:void 0,instanceof:void 0,let:void 0,new:n.red,package:void 0,private:void 0,protected:void 0,public:void 0,return:n.red,static:void 0,super:void 0,switch:void 0,this:n.brightRed,throw:void 0,try:n.cyan,typeof:void 0,var:n.green,void:void 0,while:void 0,with:void 0,yield:void 0,_default:n.brightBlue},Punctuator:{";":n.brightBlack,".":n.green,",":n.green,"{":n.yellow,"}":n.yellow,"(":n.brightBlack,")":n.brightBlack,"[":n.yellow,"]":n.yellow,"<":void 0,">":void 0,"+":void 0,"-":void 0,"*":void 0,"%":void 0,"&":void 0,"|":void 0,"^":void 0,"!":void 0,"~":void 0,"?":void 0,":":void 0,"=":void 0,"<=":void 0,">=":void 0,"==":void 0,"!=":void 0,"++":void 0,"--":void 0,"<<":void 0,">>":void 0,"&&":void 0,"||":void 0,"+=":void 0,"-=":void 0,"*=":void 0,"%=":void 0,"&=":void 0,"|=":void 0,"^=":void 0,"/=":void 0,"=>":void 0,"**":void 0,"===":void 0,"!==":void 0,">>>":void 0,"<<=":void 0,">>=":void 0,"...":void 0,"**=":void 0,">>>=":void 0,_default:n.brightYellow},Line:{_default:n.brightBlack},Block:{_default:n.brightBlack},JSXAttribute:{_default:n.magenta},JSXClosingElement:{_default:n.magenta},JSXElement:{_default:n.magenta},JSXEmptyExpression:{_default:n.magenta},JSXExpressionContainer:{_default:n.magenta},JSXIdentifier:{className:n.blue,_default:n.magenta},JSXMemberExpression:{_default:n.magenta},JSXNamespacedName:{_default:n.magenta},JSXOpeningElement:{_default:n.magenta},JSXSpreadAttribute:{_default:n.magenta},JSXText:{_default:n.brightGreen},_default:void 0}},549:(e,t,r)=>{var n=r(550),i=r(828),a=i.repeat,s=i.truncate,u=i.pad;function Table(e){if(this.options=i.options({chars:{top:"\u2500","top-mid":"\u252c","top-left":"\u250c","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251c",mid:"\u2500","mid-mid":"\u253c",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},e),e&&e.rows)for(var t=0;t<e.rows.length;t++)this.push(e.rows[t])}Table.prototype.__proto__=Array.prototype,Table.prototype.__defineGetter__("width",(function(){var e=this.toString().split("\n");return e.length?e[0].length:0})),Table.prototype.render,Table.prototype.toString=function(){var e,t="",r=this.options,o=r.style,l=r.head,c=r.chars,h=r.truncate,p=r.colWidths||new Array(this.head.length);if(!l.length&&!this.length)return"";if(!p.length){var d=this.slice(0);l.length&&(d=d.concat([l])),d.forEach((function(e){if("object"==typeof e&&e.length)extractColumnWidths(e);else{var t=Object.keys(e)[0],r=e[t];p[0]=Math.max(p[0]||0,get_width(t)||0),"object"==typeof r&&r.length?extractColumnWidths(r,1):p[1]=Math.max(p[1]||0,get_width(r)||0)}}))}function extractColumnWidths(e,t){t=t||0;e.forEach((function(e,r){p[r+t]=Math.max(p[r+t]||0,get_width(e)||0)}))}function get_width(e){return"object"==typeof e&&null!=e.width?e.width:("object"==typeof e?i.strlen(e.text):i.strlen(e))+(o["padding-left"]||0)+(o["padding-right"]||0)}function line(t,n,i,s){var u=0;t=n+a(t,e-2)+i;return p.forEach((function(e,r){r!=p.length-1&&(u+=e+1,t=t.substr(0,u)+s+t.substr(u+1))})),applyStyles(r.style.border,t)}function lineTop(){var e=line(c.top,c["top-left"]||c.top,c["top-right"]||c.top,c["top-mid"]);e&&(t+=e+"\n")}function generateRow(e,t){var n=[],i=0;if(!Array.isArray(e)&&"object"==typeof e){var a=Object.keys(e)[0],s=e[a],u=!0;Array.isArray(s)?(e=s).unshift(a):e=[a,s]}e.forEach((function(e,t){var r=e.toString().split("\n").reduce((function(e,r){return e.push(string(r,t)),e}),[]),a=r.length;a>i&&(i=a),n.push({contents:r,height:a})}));var o=new Array(i);n.forEach((function(e,n){e.contents.forEach((function(e,i){o[i]||(o[i]=[]),(t||u&&0===n&&r.style.head)&&(e=applyStyles(r.style.head,e)),o[i].push(e)}));for(var a=e.height,s=i;a<s;a++)o[a]||(o[a]=[]),o[a].push(string("",n))}));var l="";return o.forEach((function(e,t){l.length>0&&(l+="\n"+applyStyles(r.style.border,c.left)),l+=e.join(applyStyles(r.style.border,c.middle))+applyStyles(r.style.border,c.right)})),applyStyles(r.style.border,c.left)+l}function applyStyles(e,t){return t?(e.forEach((function(e){t=n[e](t)})),t):""}function string(e,t){e=String("object"==typeof e&&e.text?e.text:e);var n=i.strlen(e),l=p[t]-(o["padding-left"]||0)-(o["padding-right"]||0),c=r.colAligns[t]||"left";return a(" ",o["padding-left"]||0)+(n==l?e:n<l?u(e,l+(e.length-n)," ","left"==c?"right":"middle"==c?"both":"left"):h?s(e,l,h):e)+a(" ",o["padding-right"]||0)}e=(1==p.length?p[0]:p.reduce((function(e,t){return e+t})))+p.length+1,l.length&&(lineTop(),t+=generateRow(l,o.head)+"\n"),this.length&&this.forEach((function(e,r){if(l.length||0!=r){if(!o.compact||r<!!l.length||0==e.length){var n=line(c.mid,c["left-mid"],c["right-mid"],c["mid-mid"]);n&&(t+=n+"\n")}}else lineTop();e.hasOwnProperty("length")&&!e.length||(t+=generateRow(e)+"\n")}));var f=line(c.bottom,c["bottom-left"]||c.bottom,c["bottom-right"]||c.bottom,c["bottom-mid"]);return f?t+=f:t=t.slice(0,-1),t},e.exports=Table,e.exports.version="0.0.1"},828:(e,t)=>{t.repeat=function(e,t){return Array(t+1).join(e)},t.pad=function(e,t,r,n){if(t+1>=e.length)switch(n){case"left":e=Array(t+1-e.length).join(r)+e;break;case"both":var i=Math.ceil((padlen=t-e.length)/2),a=padlen-i;e=Array(a+1).join(r)+e+Array(i+1).join(r);break;default:e+=Array(t+1-e.length).join(r)}return e},t.truncate=function(e,t,r){return r=r||"\u2026",e.length>=t?e.substr(0,t-r.length)+r:e},t.options=function options(e,t){for(var r in t)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]&&t[r].constructor&&t[r].constructor===Object?(e[r]=e[r]||{},options(e[r],t[r])):e[r]=t[r]);return e},t.strlen=function(e){return(""+e).replace(/\u001b\[(?:\d*;){0,5}\d*m/g,"").split("\n").reduce((function(e,t){return t.length>e?t.length:e}),0)}},822:(e,t,r)=>{e.exports=r(467)},469:(e,t,r)=>{const{info:n,debug:i}=r(127),a=r(203);class Cell{constructor(e){this.setOptions(e),this.x=null,this.y=null}setOptions(e){-1!==["boolean","number","string"].indexOf(typeof e)&&(e={content:""+e}),e=e||{},this.options=e;let t=e.content;if(-1!==["boolean","number","string"].indexOf(typeof t))this.content=String(t);else{if(t)throw new Error("Content needs to be a primitive, got: "+typeof t);this.content=this.options.href||""}this.colSpan=e.colSpan||1,this.rowSpan=e.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(e,t){this.cells=t;let r=this.options.chars||{},n=e.chars,i=this.chars={};s.forEach((function(e){setOption(r,n,e,i)})),this.truncate=this.options.truncate||e.truncate;let u=this.options.style=this.options.style||{},o=e.style;setOption(u,o,"padding-left",this),setOption(u,o,"padding-right",this),this.head=u.head||o.head,this.border=u.border||o.border,this.fixedWidth=e.colWidths[this.x],this.lines=this.computeLines(e),this.desiredWidth=a.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(e){const t=e.wordWrap||e.textWrap,{wordWrap:r=t}=this.options;if(this.fixedWidth&&r){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let t=1;for(;t<this.colSpan;)this.fixedWidth+=e.colWidths[this.x+t],t++}const{wrapOnWordBoundary:t=!0}=e,{wrapOnWordBoundary:r=t}=this.options;return this.wrapLines(a.wordWrap(this.fixedWidth,this.content,r))}return this.wrapLines(this.content.split("\n"))}wrapLines(e){const t=a.colorizeLines(e);return this.href?t.map((e=>a.hyperlink(this.href,e))):t}init(e){let t=this.x,r=this.y;this.widths=e.colWidths.slice(t,t+this.colSpan),this.heights=e.rowHeights.slice(r,r+this.rowSpan),this.width=this.widths.reduce(sumPlusOne,-1),this.height=this.heights.reduce(sumPlusOne,-1),this.hAlign=this.options.hAlign||e.colAligns[t],this.vAlign=this.options.vAlign||e.rowAligns[r],this.drawRight=t+this.colSpan==e.colWidths.length}draw(e,t){if("top"==e)return this.drawTop(this.drawRight);if("bottom"==e)return this.drawBottom(this.drawRight);let r=a.truncate(this.content,10,this.truncate);e||n(`${this.y}-${this.x}: ${this.rowSpan-e}x${this.colSpan} Cell ${r}`);let i,s=Math.max(this.height-this.lines.length,0);switch(this.vAlign){case"center":i=Math.ceil(s/2);break;case"bottom":i=s;break;default:i=0}if(e<i||e>=i+this.lines.length)return this.drawEmpty(this.drawRight,t);let u=this.lines.length>this.height&&e+1>=this.height;return this.drawLine(e-i,this.drawRight,u,t)}drawTop(e){let t=[];return this.cells?this.widths.forEach((function(e,r){t.push(this._topLeftChar(r)),t.push(a.repeat(this.chars[0==this.y?"top":"mid"],e))}),this):(t.push(this._topLeftChar(0)),t.push(a.repeat(this.chars[0==this.y?"top":"mid"],this.width))),e&&t.push(this.chars[0==this.y?"topRight":"rightMid"]),this.wrapWithStyleColors("border",t.join(""))}_topLeftChar(e){let t,r=this.x+e;if(0==this.y)t=0==r?"topLeft":0==e?"topMid":"top";else if(0==r)t="leftMid";else if(t=0==e?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][r]instanceof Cell.ColSpanCell&&(t=0==e?"topMid":"mid"),0==e){let e=1;for(;this.cells[this.y][r-e]instanceof Cell.ColSpanCell;)e++;this.cells[this.y][r-e]instanceof Cell.RowSpanCell&&(t="leftMid")}}return this.chars[t]}wrapWithStyleColors(e,t){if(!this[e]||!this[e].length)return t;try{let n=r(470);for(let t=this[e].length-1;t>=0;t--)n=n[this[e][t]];return n(t)}catch(e){return t}}drawLine(e,t,r,n){let i=this.chars[0==this.x?"left":"middle"];if(this.x&&n&&this.cells){let e=this.cells[this.y+n][this.x-1];for(;e instanceof ColSpanCell;)e=this.cells[e.y][e.x-1];e instanceof RowSpanCell||(i=this.chars.rightMid)}let s=a.repeat(" ",this.paddingLeft),u=t?this.chars.right:"",o=a.repeat(" ",this.paddingRight),l=this.lines[e],c=this.width-(this.paddingLeft+this.paddingRight);r&&(l+=this.truncate||"\u2026");let h=a.truncate(l,c,this.truncate);return h=a.pad(h,c," ",this.hAlign),h=s+h+o,this.stylizeLine(i,h,u)}stylizeLine(e,t,r){return e=this.wrapWithStyleColors("border",e),r=this.wrapWithStyleColors("border",r),0===this.y&&(t=this.wrapWithStyleColors("head",t)),e+t+r}drawBottom(e){let t=this.chars[0==this.x?"bottomLeft":"bottomMid"],r=a.repeat(this.chars.bottom,this.width),n=e?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",t+r+n)}drawEmpty(e,t){let r=this.chars[0==this.x?"left":"middle"];if(this.x&&t&&this.cells){let e=this.cells[this.y+t][this.x-1];for(;e instanceof ColSpanCell;)e=this.cells[e.y][e.x-1];e instanceof RowSpanCell||(r=this.chars.rightMid)}let n=e?this.chars.right:"",i=a.repeat(" ",this.width);return this.stylizeLine(r,i,n)}}class ColSpanCell{constructor(){}draw(e){return"number"==typeof e&&i(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}}class RowSpanCell{constructor(e){this.originalCell=e}init(e){let t=this.y,r=this.originalCell.y;this.cellOffset=t-r,this.offset=function findDimension(e,t,r){let n=e[t];for(let i=1;i<r;i++)n+=1+e[t+i];return n}(e.rowHeights,r,this.cellOffset)}draw(e){return"top"==e?this.originalCell.draw(this.offset,this.cellOffset):"bottom"==e?this.originalCell.draw("bottom"):(i(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+e))}mergeTableOptions(){}}function firstDefined(...e){return e.filter((e=>null!=e)).shift()}function setOption(e,t,r,n){let i=r.split("-");i.length>1?(i[1]=i[1].charAt(0).toUpperCase()+i[1].substr(1),i=i.join(""),n[i]=firstDefined(e[i],e[r],t[i],t[r])):n[r]=firstDefined(e[r],t[r])}function sumPlusOne(e,t){return e+t+1}let s=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];e.exports=Cell,e.exports.ColSpanCell=ColSpanCell,e.exports.RowSpanCell=RowSpanCell},127:e=>{let t=[],r=0;const debug=(e,n)=>{r>=n&&t.push(e)};debug.WARN=1,debug.INFO=2,debug.DEBUG=3,debug.reset=()=>{t=[]},debug.setDebugLevel=e=>{r=e},debug.warn=e=>debug(e,debug.WARN),debug.info=e=>debug(e,debug.INFO),debug.debug=e=>debug(e,debug.DEBUG),debug.debugMessages=()=>t,e.exports=debug},468:(e,t,r)=>{const{warn:n,debug:i}=r(127),a=r(469),{ColSpanCell:s,RowSpanCell:u}=a;function makeComputeWidths(e,t,r,n){return function(i,a){let s=[],u=[],o={};a.forEach((function(i){i.forEach((function(i){(i[e]||1)>1?u.push(i):s[i[r]]=Math.max(s[i[r]]||0,i[t]||0,n)}))})),i.forEach((function(e,t){"number"==typeof e&&(s[t]=e)}));for(let n=u.length-1;n>=0;n--){let a=u[n],l=a[e],c=a[r],h=s[c],p="number"==typeof i[c]?0:1;if("number"==typeof h)for(let e=1;e<l;e++)h+=1+s[c+e],"number"!=typeof i[c+e]&&p++;else h="desiredWidth"===t?a.desiredWidth-1:1,(!o[c]||o[c]<h)&&(o[c]=h);if(a[t]>h){let e=0;for(;p>0&&a[t]>h;){if("number"!=typeof i[c+e]){let r=Math.round((a[t]-h)/p);h+=r,s[c+e]+=r,p--}e++}}}Object.assign(i,s,o);for(let e=0;e<i.length;e++)i[e]=Math.max(n,i[e]||0)}}!function(){function next(e,t){return e[t]>0?next(e,t+1):t}function layoutTable(e){let t={};e.forEach((function(e,r){let n=0;e.forEach((function(e){e.y=r,e.x=r?next(t,n):n;const i=e.rowSpan||1,a=e.colSpan||1;if(i>1)for(let r=0;r<a;r++)t[e.x+r]=i;n=e.x+a})),Object.keys(t).forEach((e=>{t[e]--,t[e]<1&&delete t[e]}))}))}function maxWidth(e){let t=0;return e.forEach((function(e){e.forEach((function(e){t=Math.max(t,e.x+(e.colSpan||1))}))})),t}function cellsConflict(e,t){let r=e.y,n=e.y-1+(e.rowSpan||1),i=t.y,a=!(r>t.y-1+(t.rowSpan||1)||i>n),s=e.x,u=e.x-1+(e.colSpan||1),o=t.x,l=t.x-1+(t.colSpan||1);return a&&!(s>l||o>u)}function conflictExists(e,t,r){let n=Math.min(e.length-1,r),i={x:t,y:r};for(let t=0;t<=n;t++){let r=e[t];for(let e=0;e<r.length;e++)if(cellsConflict(i,r[e]))return!0}return!1}function allBlank(e,t,r,n){for(let i=r;i<n;i++)if(conflictExists(e,i,t))return!1;return!0}function addRowSpanCells(e){e.forEach((function(t,r){t.forEach((function(t){for(let n=1;n<t.rowSpan;n++){let i=new u(t);i.x=t.x,i.y=t.y+n,i.colSpan=t.colSpan,insertCell(i,e[r+n])}}))}))}function insertCell(e,t){let r=0;for(;r<t.length&&t[r].x<e.x;)r++;t.splice(r,0,e)}function fillInTable(e){let t=function maxHeight(e){return e.length}(e),r=maxWidth(e);i(`Max rows: ${t}; Max cols: ${r}`);for(let i=0;i<t;i++)for(let s=0;s<r;s++)if(!conflictExists(e,s,i)){let u={x:s,y:i,colSpan:1,rowSpan:1};for(s++;s<r&&!conflictExists(e,s,i);)u.colSpan++,s++;let o=i+1;for(;o<t&&allBlank(e,o,u.x,u.x+u.colSpan);)u.rowSpan++,o++;let l=new a(u);l.x=u.x,l.y=u.y,n(`Missing cell at ${l.y}-${l.x}.`),insertCell(l,e[i])}}e.exports={makeTableLayout:function makeTableLayout(e){let t=function generateCells(e){return e.map((function(e){if(!Array.isArray(e)){let t=Object.keys(e)[0];e=e[t],Array.isArray(e)?(e=e.slice()).unshift(t):e=[t,e]}return e.map((function(e){return new a(e)}))}))}(e);return layoutTable(t),fillInTable(t),addRowSpanCells(t),function addColSpanCells(e){for(let t=e.length-1;t>=0;t--){let r=e[t];for(let e=0;e<r.length;e++){let t=r[e];for(let n=1;n<t.colSpan;n++){let i=new s;i.x=t.x+n,i.y=t.y,r.splice(e+1,0,i)}}}}(t),t},layoutTable,addRowSpanCells,maxWidth,fillInTable,computeWidths:makeComputeWidths("colSpan","desiredWidth","x",1),computeHeights:makeComputeWidths("rowSpan","desiredHeight","y",1)}}()},467:(e,t,r)=>{const n=r(127),i=r(203),a=r(468);class Table extends Array{constructor(e){super();const t=i.mergeOptions(e);if(Object.defineProperty(this,"options",{value:t,enumerable:t.debug}),t.debug){switch(typeof t.debug){case"boolean":n.setDebugLevel(n.WARN);break;case"number":n.setDebugLevel(t.debug);break;case"string":n.setDebugLevel(parseInt(t.debug,10));break;default:n.setDebugLevel(n.WARN),n.warn("Debug option is expected to be boolean, number, or string. Received a "+typeof t.debug)}Object.defineProperty(this,"messages",{get:()=>n.debugMessages()})}}toString(){let e=this,t=this.options.head&&this.options.head.length;t?(e=[this.options.head],this.length&&e.push.apply(e,this)):this.options.style.head=[];let r=a.makeTableLayout(e);r.forEach((function(e){e.forEach((function(e){e.mergeTableOptions(this.options,r)}),this)}),this),a.computeWidths(this.options.colWidths,r),a.computeHeights(this.options.rowHeights,r),r.forEach((function(e){e.forEach((function(e){e.init(this.options)}),this)}),this);let n=[];for(let e=0;e<r.length;e++){let i=r[e],a=this.options.rowHeights[e];(0===e||!this.options.style.compact||1==e&&t)&&doDraw(i,"top",n);for(let e=0;e<a;e++)doDraw(i,e,n);e+1==r.length&&doDraw(i,"bottom",n)}return n.join("\n")}get width(){return this.toString().split("\n")[0].length}}function doDraw(e,t,r){let n=[];e.forEach((function(e){n.push(e.draw(t))}));let i=n.join("");i.length&&r.push(i)}Table.reset=()=>n.reset(),e.exports=Table},203:(e,t,r)=>{const n=r(82);function codeRegex(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function strlen(e){let t=codeRegex();return(""+e).replace(t,"").split("\n").reduce((function(e,t){return n(t)>e?n(t):e}),0)}function repeat(e,t){return Array(t+1).join(e)}let i={};function addToCodeCache(e,t,r){r="\x1b["+r+"m",i[t="\x1b["+t+"m"]={set:e,to:!0},i[r]={set:e,to:!1},i[e]={on:t,off:r}}function updateState(e,t){let r=t[1]?parseInt(t[1].split(";")[0]):0;if(r>=30&&r<=39||r>=90&&r<=97)return void(e.lastForegroundAdded=t[0]);if(r>=40&&r<=49||r>=100&&r<=107)return void(e.lastBackgroundAdded=t[0]);if(0===r){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&delete e[t];return}let n=i[t[0]];n&&(e[n.set]=n.to)}function readState(e){let t=codeRegex(!0),r=t.exec(e),n={};for(;null!==r;)updateState(n,r),r=t.exec(e);return n}function unwindState(e,t){let r=e.lastBackgroundAdded,n=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach((function(r){e[r]&&(t+=i[r].off)})),r&&"\x1b[49m"!=r&&(t+="\x1b[49m"),n&&"\x1b[39m"!=n&&(t+="\x1b[39m"),t}function rewindState(e,t){let r=e.lastBackgroundAdded,n=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach((function(r){e[r]&&(t=i[r].on+t)})),r&&"\x1b[49m"!=r&&(t=r+t),n&&"\x1b[39m"!=n&&(t=n+t),t}function truncateWidth(e,t){if(e.length===strlen(e))return e.substr(0,t);for(;strlen(e)>t;)e=e.slice(0,-1);return e}function wordWrap(e,t){let r,n=[],i=t.split(/(\s+)/g),a=[],s=0;for(let t=0;t<i.length;t+=2){let u=i[t],o=s+strlen(u);s>0&&r&&(o+=r.length),o>e?(0!==s&&n.push(a.join("")),a=[u],s=strlen(u)):(a.push(r||"",u),s=o),r=i[t+1]}return s&&n.push(a.join("")),n}function textWrap(e,t){let r=[],n="";function pushLine(t,i){for(n.length&&i&&(n+=i),n+=t;n.length>e;)r.push(n.slice(0,e)),n=n.slice(e)}let i=t.split(/(\s+)/g);for(let e=0;e<i.length;e+=2)pushLine(i[e],e&&i[e-1]);return n.length&&r.push(n),r}addToCodeCache("bold",1,22),addToCodeCache("italics",3,23),addToCodeCache("underline",4,24),addToCodeCache("inverse",7,27),addToCodeCache("strikethrough",9,29),e.exports={strlen,repeat,pad:function pad(e,t,r,n){let i=strlen(e);if(t+1>=i){let a=t-i;switch(n){case"right":e=repeat(r,a)+e;break;case"center":{let t=Math.ceil(a/2);e=repeat(r,a-t)+e+repeat(r,t);break}default:e+=repeat(r,a)}}return e},truncate:function truncate(e,t,r){if(r=r||"\u2026",strlen(e)<=t)return e;return function truncateWidthWithAnsi(e,t){let r,n=codeRegex(!0),i=e.split(codeRegex()),a=0,s=0,u="",o={};for(;s<t;){r=n.exec(e);let l=i[a];if(a++,s+strlen(l)>t&&(l=truncateWidth(l,t-s)),u+=l,s+=strlen(l),s<t){if(!r)break;u+=r[0],updateState(o,r)}}return unwindState(o,u)}(e,t-=strlen(r))+r},mergeOptions:function mergeOptions(e,t){e=e||{},t=t||{chars:{top:"\u2500","top-mid":"\u252c","top-left":"\u250c","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251c",mid:"\u2500","mid-mid":"\u253c",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]};let r=Object.assign({},t,e);return r.chars=Object.assign({},t.chars,e.chars),r.style=Object.assign({},t.style,e.style),r},wordWrap:function multiLineWordWrap(e,t,r=!0){let n=[];t=t.split("\n");const i=r?wordWrap:textWrap;for(let r=0;r<t.length;r++)n.push.apply(n,i(e,t[r]));return n},colorizeLines:function colorizeLines(e){let t={},r=[];for(let n=0;n<e.length;n++){let i=rewindState(t,e[n]);t=readState(i);let a=Object.assign({},t);r.push(unwindState(a,i))}return r},hyperlink:function hyperlink(e,t){const r="\x1b]",n="\x07",i=";";return[r,"8",i,i,e||t,n,t,r,"8",i,i,n].join("")}}},57:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=n.styles=r(551),a=Object.defineProperties;n.supportsColor=r(552),void 0===n.enabled&&(n.enabled=n.supportsColor),n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};n.stylize=function stylize(e,t){return i[t].open+e+i[t].close};var s=/[|\\{}()[\]^$+*?.]/g;function build(e){var t=function builder(){return applyStyle.apply(builder,arguments)};return t._styles=e,t.__proto__=l,t}var u,o=(u={},i.grey=i.gray,Object.keys(i).forEach((function(e){i[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(s,"\\$&")}(i[e].close),"g"),u[e]={get:function(){return build(this._styles.concat(e))}}})),u),l=a((function colors(){}),o);function applyStyle(){var e=arguments,t=e.length,r=0!==t&&String(arguments[0]);if(t>1)for(var a=1;a<t;a++)r+=" "+e[a];if(!n.enabled||!r)return r;for(var s=this._styles,u=s.length;u--;){var o=i[s[u]];r=o.open+r.replace(o.closeRe,o.open)+o.close}return r}function applyTheme(e){for(var t in e)!function(t){n[t]=function(r){return n[e[t]](r)}}(t)}n.setTheme=function(e){if("string"==typeof e)try{return n.themes[e]=r(827)(e),applyTheme(n.themes[e]),n.themes[e]}catch(e){return console.log(e),e}else applyTheme(e)};var c=function sequencer(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var h in n.trap=r(553),n.zalgo=r(554),n.maps={},n.maps.america=r(555),n.maps.zebra=r(556),n.maps.rainbow=r(557),n.maps.random=r(558),n.maps)!function(e){n[e]=function(t){return c(n.maps[e],t)}}(h);a(n,function init(){var e={};return Object.keys(o).forEach((function(t){e[t]={get:function(){return build([t])}}})),e}())},553:e=>{e.exports=function runTheTrap(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","\u0104","\u023a","\u0245","\u0394","\u039b","\u0414"],b:["\xdf","\u0181","\u0243","\u026e","\u03b2","\u0e3f"],c:["\xa9","\u023b","\u03fe"],d:["\xd0","\u018a","\u0500","\u0501","\u0502","\u0503"],e:["\xcb","\u0115","\u018e","\u0258","\u03a3","\u03be","\u04bc","\u0a6c"],f:["\u04fa"],g:["\u0262"],h:["\u0126","\u0195","\u04a2","\u04ba","\u04c7","\u050a"],i:["\u0f0f"],j:["\u0134"],k:["\u0138","\u04a0","\u04c3","\u051e"],l:["\u0139"],m:["\u028d","\u04cd","\u04ce","\u0520","\u0521","\u0d69"],n:["\xd1","\u014b","\u019d","\u0376","\u03a0","\u048a"],o:["\xd8","\xf5","\xf8","\u01fe","\u0298","\u047a","\u05dd","\u06dd","\u0e4f"],p:["\u01f7","\u048e"],q:["\u09cd"],r:["\xae","\u01a6","\u0210","\u024c","\u0280","\u042f"],s:["\xa7","\u03de","\u03df","\u03e8"],t:["\u0141","\u0166","\u0373"],u:["\u01b1","\u054d"],v:["\u05d8"],w:["\u0428","\u0460","\u047c","\u0d70"],x:["\u04b2","\u04fe","\u04fc","\u04fd"],y:["\xa5","\u04b0","\u04cb"],z:["\u01b5","\u0240"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},554:e=>{e.exports=function zalgo(e,t){e=e||" he is here ";var r={up:["\u030d","\u030e","\u0304","\u0305","\u033f","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030a","\u0342","\u0313","\u0308","\u034a","\u034b","\u034c","\u0303","\u0302","\u030c","\u0350","\u0300","\u0301","\u030b","\u030f","\u0312","\u0313","\u0314","\u033d","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036a","\u036b","\u036c","\u036d","\u036e","\u036f","\u033e","\u035b","\u0346","\u031a"],down:["\u0316","\u0317","\u0318","\u0319","\u031c","\u031d","\u031e","\u031f","\u0320","\u0324","\u0325","\u0326","\u0329","\u032a","\u032b","\u032c","\u032d","\u032e","\u032f","\u0330","\u0331","\u0332","\u0333","\u0339","\u033a","\u033b","\u033c","\u0345","\u0347","\u0348","\u0349","\u034d","\u034e","\u0353","\u0354","\u0355","\u0356","\u0359","\u035a","\u0323"],mid:["\u0315","\u031b","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035c","\u035d","\u035e","\u035f","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},n=[].concat(r.up,r.down,r.mid);function randomNumber(e){return Math.floor(Math.random()*e)}function is_char(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function heComes(e,t){var n,i,a="";for(i in(t=t||{}).up=t.up||!0,t.mid=t.mid||!0,t.down=t.down||!0,t.size=t.size||"maxi",e=e.split(""))if(!is_char(i)){switch(a+=e[i],n={up:0,down:0,mid:0},t.size){case"mini":n.up=randomNumber(8),n.min=randomNumber(2),n.down=randomNumber(8);break;case"maxi":n.up=randomNumber(16)+3,n.min=randomNumber(4)+1,n.down=randomNumber(64)+3;break;default:n.up=randomNumber(8)+1,n.mid=randomNumber(6)/2,n.down=randomNumber(8)+1}var s=["up","mid","down"];for(var u in s)for(var o=s[u],l=0;l<=n[o];l++)t[o]&&(a+=r[o][randomNumber(r[o].length)])}return a}(e)}},555:(e,t,r)=>{var n=r(57);e.exports=function(e,t,r){if(" "===e)return e;switch(t%3){case 0:return n.red(e);case 1:return n.white(e);case 2:return n.blue(e)}}},557:(e,t,r)=>{var n,i=r(57);e.exports=(n=["red","yellow","green","blue","magenta"],function(e,t,r){return" "===e?e:i[n[t++%n.length]](e)})},558:(e,t,r)=>{var n,i=r(57);e.exports=(n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"],function(e,t,r){return" "===e?e:i[n[Math.round(Math.random()*(n.length-1))]](e)})},556:(e,t,r)=>{var n=r(57);e.exports=function(e,t,r){return t%2==0?e:n.inverse(e)}},551:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="\x1b["+n[0]+"m",i.close="\x1b["+n[1]+"m"}))},552:e=>{var t=process.argv;e.exports=-1===t.indexOf("--no-color")&&-1===t.indexOf("--color=false")&&(-1!==t.indexOf("--color")||-1!==t.indexOf("--color=true")||-1!==t.indexOf("--color=always")||!(process.stdout&&!process.stdout.isTTY)&&("win32"===process.platform||"COLORTERM"in process.env||"dumb"!==process.env.TERM&&!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)))},550:(e,t,r)=>{var n=r(57);e.exports=n},84:(e,t,r)=>{function objectToString(e){return Object.prototype.toString.call(e)}t.isArray=function isArray(e){return Array.isArray?Array.isArray(e):"[object Array]"===objectToString(e)},t.isBoolean=function isBoolean(e){return"boolean"==typeof e},t.isNull=function isNull(e){return null===e},t.isNullOrUndefined=function isNullOrUndefined(e){return null==e},t.isNumber=function isNumber(e){return"number"==typeof e},t.isString=function isString(e){return"string"==typeof e},t.isSymbol=function isSymbol(e){return"symbol"==typeof e},t.isUndefined=function isUndefined(e){return void 0===e},t.isRegExp=function isRegExp(e){return"[object RegExp]"===objectToString(e)},t.isObject=function isObject(e){return"object"==typeof e&&null!==e},t.isDate=function isDate(e){return"[object Date]"===objectToString(e)},t.isError=function isError(e){return"[object Error]"===objectToString(e)||e instanceof Error},t.isFunction=function isFunction(e){return"function"==typeof e},t.isPrimitive=function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(21).Buffer.isBuffer},536:(e,t,r)=>{var n=r(26),i=r(5),a=r(537),s=r(539),u=r(540),o=r(541),l=u('"')[0],c=u(",")[0],h=u("\r")[0],p=u("\n")[0],Parser=function(e){e||(e={}),Array.isArray(e)&&(e={headers:e}),n.Transform.call(this,{objectMode:!0,highWaterMark:16}),this.separator=e.separator?u(e.separator)[0]:c,this.quote=e.quote?u(e.quote)[0]:l,this.escape=e.escape?u(e.escape)[0]:this.quote,e.newline?(this.newline=u(e.newline)[0],this.customNewline=!0):(this.newline=p,this.customNewline=!1),this.headers=e.headers||null,this.strict=e.strict||null,this.mapHeaders=e.mapHeaders||identity,this.mapValues=e.mapValues||identity,this._raw=!!e.raw,this._prev=null,this._prevEnd=0,this._first=!0,this._quoted=!1,this._escaped=!1,this._empty=this._raw?o(0):"",this._Row=null,this.headers&&(this._first=!1,this._compile(this.headers))};function identity(e){return e}i(Parser,n.Transform),Parser.prototype._transform=function(e,t,r){"string"==typeof e&&(e=u(e));var n=0,i=e;this._prev&&(n=this._prev.length,i=Buffer.concat([this._prev,e]),this._prev=null);for(var a=i.length,s=n;s<a;s++){var o=i[s],l=s+1<a?i[s+1]:null;this._escaped||o!==this.escape||l!==this.quote||s===n?o!==this.quote?this._quoted||(this._first&&!this.customNewline&&(o===p?this.newline=p:o===h&&l!==p&&(this.newline=h)),o===this.newline&&(this._online(i,this._prevEnd,s+1),this._prevEnd=s+1)):this._escaped?this._escaped=!1:this._quoted=!this._quoted:this._escaped=!0}return this._prevEnd===a?(this._prevEnd=0,r()):a-this._prevEnd<e.length?(this._prev=e,this._prevEnd-=a-e.length,r()):(this._prev=i,void r())},Parser.prototype._flush=function(e){if(this._escaped||!this._prev)return e();this._online(this._prev,this._prevEnd,this._prev.length+1),e()},Parser.prototype._online=function(e,t,r){r--,!this.customNewline&&e.length&&e[r-1]===h&&r--;for(var n=this.separator,i=[],a=!1,s=t,u=t;u<r;u++){var o=!a&&e[u]===this.quote,l=a&&e[u]===this.quote&&u+1<=r&&e[u+1]===n,c=a&&e[u]===this.escape&&u+1<r&&e[u+1]===this.quote;o||l?a=!a:c?u++:e[u]!==n||a||(i.push(this._oncell(e,s,u)),s=u+1)}if(s<r&&i.push(this._oncell(e,s,r)),e[r-1]===n&&i.push(this._empty),this._first)return this._first=!1,this.headers=i,this._compile(i),void this.emit("headers",this.headers);this.strict&&i.length!==this.headers.length?this.emit("error",new Error("Row length does not match headers")):this._emit(this._Row,i)},Parser.prototype._compile=function(){if(!this._Row){var e=s()("function Row (cells) {"),t=this;this.headers.forEach((function(r,n){var i=t.mapHeaders(r,n);i&&e("%s = cells[%d]",a("this",i),n)})),e("}"),this._Row=e.toFunction(),Object.defineProperty?Object.defineProperty(this._Row.prototype,"headers",{enumerable:!1,value:this.headers}):this._Row.prototype.headers=this.headers}},Parser.prototype._emit=function(e,t){this.push(new e(t))},Parser.prototype._oncell=function(e,t,r){e[t]===this.quote&&e[r-1]===this.quote&&(t++,r--);for(var n=t,i=t;n<r;n++)e[n]===this.escape&&n+1<r&&e[n+1]===this.quote&&n++,i!==n&&(e[i]=e[n]),i++;var a=this._onvalue(e,t,i);return this._first?a:this.mapValues(a)},Parser.prototype._onvalue=function(e,t,r){return this._raw?e.slice(t,r):e.toString("utf-8",t,r)},e.exports=function(e){return new Parser(e)}},461:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD8