New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clerc/plugin-help

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerc/plugin-help - npm Package Compare versions

Comparing version 0.27.1 to 0.28.0

21

dist/index.js

@@ -1,14 +0,9 @@

import{definePlugin as Yu,Root as R,withBrackets as Zu,resolveCommand as Vu,NoSuchCommandError as Uu,formatCommandName as W}from"@clerc/core";import Xu from"tty";import Ju from"util";import Ku from"os";const Qu=D=>Array.isArray(D)?D:[D],Pu=D=>D.replace(/([A-Z])/g,(u,t)=>`-${t.toLowerCase()}`),su=D=>D.length<=1?`-${D}`:`--${Pu(D)}`;function uD(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}var x={exports:{}};let DD=Xu,tD=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||DD.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),g=(D,u,t=D)=>e=>{let r=""+e,i=r.indexOf(u,D.length);return~i?D+lu(r,u,t,i)+u:D+r+u},lu=(D,u,t,e)=>{let r=D.substring(0,e)+t,i=D.substring(e+u.length),n=i.indexOf(u);return~n?r+lu(i,u,t,n):r+i},au=(D=tD)=>({isColorSupported:D,reset:D?u=>`\x1B[0m${u}\x1B[0m`:String,bold:D?g("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:D?g("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:D?g("\x1B[3m","\x1B[23m"):String,underline:D?g("\x1B[4m","\x1B[24m"):String,inverse:D?g("\x1B[7m","\x1B[27m"):String,hidden:D?g("\x1B[8m","\x1B[28m"):String,strikethrough:D?g("\x1B[9m","\x1B[29m"):String,black:D?g("\x1B[30m","\x1B[39m"):String,red:D?g("\x1B[31m","\x1B[39m"):String,green:D?g("\x1B[32m","\x1B[39m"):String,yellow:D?g("\x1B[33m","\x1B[39m"):String,blue:D?g("\x1B[34m","\x1B[39m"):String,magenta:D?g("\x1B[35m","\x1B[39m"):String,cyan:D?g("\x1B[36m","\x1B[39m"):String,white:D?g("\x1B[37m","\x1B[39m"):String,gray:D?g("\x1B[90m","\x1B[39m"):String,bgBlack:D?g("\x1B[40m","\x1B[49m"):String,bgRed:D?g("\x1B[41m","\x1B[49m"):String,bgGreen:D?g("\x1B[42m","\x1B[49m"):String,bgYellow:D?g("\x1B[43m","\x1B[49m"):String,bgBlue:D?g("\x1B[44m","\x1B[49m"):String,bgMagenta:D?g("\x1B[45m","\x1B[49m"):String,bgCyan:D?g("\x1B[46m","\x1B[49m"):String,bgWhite:D?g("\x1B[47m","\x1B[49m"):String});x.exports=au(),x.exports.createColors=au;var eD=Function.prototype.toString,rD=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;function iD(D){if(typeof D!="function")return null;var u="";if(typeof Function.prototype.name=="undefined"&&typeof D.name=="undefined"){var t=eD.call(D).match(rD);t&&(u=t[1])}else u=D.name;return u}var Fu=iD,hu={exports:{}};let k=[],Cu=0;const B=(D,u)=>{Cu>=u&&k.push(D)};B.WARN=1,B.INFO=2,B.DEBUG=3,B.reset=()=>{k=[]},B.setDebugLevel=D=>{Cu=D},B.warn=D=>B(D,B.WARN),B.info=D=>B(D,B.INFO),B.debug=D=>B(D,B.DEBUG),B.debugMessages=()=>k;var j=B,I={exports:{}},nD=({onlyFirst:D=!1}={})=>{const u=["[\\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(u,D?void 0:"g")};const oD=nD;var sD=D=>typeof D=="string"?D.replace(oD(),""):D,N={exports:{}};const fu=D=>Number.isNaN(D)?!1:D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141);N.exports=fu,N.exports.default=fu;var lD=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]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\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\uDFFE\uDFFF])|\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\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};const aD=sD,FD=N.exports,hD=lD,cu=D=>{if(typeof D!="string"||D.length===0||(D=aD(D),D.length===0))return 0;D=D.replace(hD()," ");let u=0;for(let t=0;t<D.length;t++){const e=D.codePointAt(t);e<=31||e>=127&&e<=159||e>=768&&e<=879||(e>65535&&t++,u+=FD(e)?2:1)}return u};I.exports=cu,I.exports.default=cu;const pu=I.exports;function _(D){return D?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function w(D){let u=_();return(""+D).replace(u,"").split(`
`).reduce(function(r,i){return pu(i)>r?pu(i):r},0)}function O(D,u){return Array(u+1).join(D)}function CD(D,u,t,e){let r=w(D);if(u+1>=r){let i=u-r;switch(e){case"right":{D=O(t,i)+D;break}case"center":{let n=Math.ceil(i/2),F=i-n;D=O(t,F)+D+O(t,n);break}default:{D=D+O(t,i);break}}}return D}let v={};function $(D,u,t){u="\x1B["+u+"m",t="\x1B["+t+"m",v[u]={set:D,to:!0},v[t]={set:D,to:!1},v[D]={on:u,off:t}}$("bold",1,22),$("italics",3,23),$("underline",4,24),$("inverse",7,27),$("strikethrough",9,29);function du(D,u){let t=u[1]?parseInt(u[1].split(";")[0]):0;if(t>=30&&t<=39||t>=90&&t<=97){D.lastForegroundAdded=u[0];return}if(t>=40&&t<=49||t>=100&&t<=107){D.lastBackgroundAdded=u[0];return}if(t===0){for(let r in D)Object.prototype.hasOwnProperty.call(D,r)&&delete D[r];return}let e=v[u[0]];e&&(D[e.set]=e.to)}function fD(D){let u=_(!0),t=u.exec(D),e={};for(;t!==null;)du(e,t),t=u.exec(D);return e}function Eu(D,u){let t=D.lastBackgroundAdded,e=D.lastForegroundAdded;return delete D.lastBackgroundAdded,delete D.lastForegroundAdded,Object.keys(D).forEach(function(r){D[r]&&(u+=v[r].off)}),t&&t!="\x1B[49m"&&(u+="\x1B[49m"),e&&e!="\x1B[39m"&&(u+="\x1B[39m"),u}function cD(D,u){let t=D.lastBackgroundAdded,e=D.lastForegroundAdded;return delete D.lastBackgroundAdded,delete D.lastForegroundAdded,Object.keys(D).forEach(function(r){D[r]&&(u=v[r].on+u)}),t&&t!="\x1B[49m"&&(u=t+u),e&&e!="\x1B[39m"&&(u=e+u),u}function pD(D,u){if(D.length===w(D))return D.substr(0,u);for(;w(D)>u;)D=D.slice(0,-1);return D}function dD(D,u){let t=_(!0),e=D.split(_()),r=0,i=0,n="",F,p={};for(;i<u;){F=t.exec(D);let o=e[r];if(r++,i+w(o)>u&&(o=pD(o,u-i)),n+=o,i+=w(o),i<u){if(!F)break;n+=F[0],du(p,F)}}return Eu(p,n)}function ED(D,u,t){return t=t||"\u2026",w(D)<=u?D:(u-=w(t),dD(D,u)+t)}function gD(){return{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:[]}}function mD(D,u){D=D||{},u=u||gD();let t=Object.assign({},u,D);return t.chars=Object.assign({},u.chars,D.chars),t.style=Object.assign({},u.style,D.style),t}function bD(D,u){let t=[],e=u.split(/(\s+)/g),r=[],i=0,n;for(let F=0;F<e.length;F+=2){let p=e[F],o=i+w(p);i>0&&n&&(o+=n.length),o>D?(i!==0&&t.push(r.join("")),r=[p],i=w(p)):(r.push(n||"",p),i=o),n=e[F+1]}return i&&t.push(r.join("")),t}function BD(D,u){let t=[],e="";function r(n,F){for(e.length&&F&&(e+=F),e+=n;e.length>D;)t.push(e.slice(0,D)),e=e.slice(D)}let i=u.split(/(\s+)/g);for(let n=0;n<i.length;n+=2)r(i[n],n&&i[n-1]);return e.length&&t.push(e),t}function xD(D,u,t=!0){let e=[];u=u.split(`
`);const r=t?bD:BD;for(let i=0;i<u.length;i++)e.push.apply(e,r(D,u[i]));return e}function AD(D){let u={},t=[];for(let e=0;e<D.length;e++){let r=cD(u,D[e]);u=fD(r);let i=Object.assign({},u);t.push(Eu(i,r))}return t}function yD(D,u){const t="\x1B]",e="\x07",r=";";return[t,"8",r,r,D||u,e,u,t,"8",r,r,e].join("")}var gu={strlen:w,repeat:O,pad:CD,truncate:ED,mergeOptions:mD,wordWrap:xD,colorizeLines:AD,hyperlink:yD},mu={exports:{}},T={exports:{}},q={exports:{}},G={exports:{}},z={exports:{}},bu;function wD(){return bu||(bu=1,function(D){var u={};D.exports=u;var t={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(t).forEach(function(e){var r=t[e],i=u[e]=[];i.open="\x1B["+r[0]+"m",i.close="\x1B["+r[1]+"m"})}(z)),z.exports}var H,Bu;function SD(){return Bu||(Bu=1,H=function(D,u){u=u||process.argv;var t=u.indexOf("--"),e=/^-{1,2}/.test(D)?"":"--",r=u.indexOf(e+D);return r!==-1&&(t===-1?!0:r<t)}),H}var Y,xu;function vD(){if(xu)return Y;xu=1;var D=Ku,u=SD(),t=process.env,e=void 0;u("no-color")||u("no-colors")||u("color=false")?e=!1:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(e=!0),"FORCE_COLOR"in t&&(e=t.FORCE_COLOR.length===0||parseInt(t.FORCE_COLOR,10)!==0);function r(F){return F===0?!1:{level:F,hasBasic:!0,has256:F>=2,has16m:F>=3}}function i(F){if(e===!1)return 0;if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2;if(F&&!F.isTTY&&e!==!0)return 0;var p=e?1:0;if(process.platform==="win32"){var o=D.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(E){return E in t})||t.CI_NAME==="codeship"?1:p;if("TEAMCITY_VERSION"in t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in t){var C=parseInt((t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t.TERM_PROGRAM){case"iTerm.app":return C>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(t.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(t.TERM)||"COLORTERM"in t?1:(t.TERM==="dumb",p)}function n(F){var p=i(F);return r(p)}return Y={supportsColor:n,stdout:n(process.stdout),stderr:n(process.stderr)},Y}var Z={exports:{}},Au;function RD(){return Au||(Au=1,function(D){D.exports=function(t,e){var r="";t=t||"Run the trap, drop the bass",t=t.split("");var i={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 t.forEach(function(n){n=n.toLowerCase();var F=i[n]||[" "],p=Math.floor(Math.random()*F.length);typeof i[n]!="undefined"?r+=i[n][p]:r+=n}),r}}(Z)),Z.exports}var V={exports:{}},yu;function OD(){return yu||(yu=1,function(D){D.exports=function(t,e){t=t||" 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"]},i=[].concat(r.up,r.down,r.mid);function n(o){var C=Math.floor(Math.random()*o);return C}function F(o){var C=!1;return i.filter(function(E){C=E===o}),C}function p(o,C){var E="",d,h;C=C||{},C.up=typeof C.up!="undefined"?C.up:!0,C.mid=typeof C.mid!="undefined"?C.mid:!0,C.down=typeof C.down!="undefined"?C.down:!0,C.size=typeof C.size!="undefined"?C.size:"maxi",o=o.split("");for(h in o)if(!F(h)){switch(E=E+o[h],d={up:0,down:0,mid:0},C.size){case"mini":d.up=n(8),d.mid=n(2),d.down=n(8);break;case"maxi":d.up=n(16)+3,d.mid=n(4)+1,d.down=n(64)+3;break;default:d.up=n(8)+1,d.mid=n(6)/2,d.down=n(8)+1;break}var l=["up","mid","down"];for(var s in l)for(var a=l[s],f=0;f<=d[a];f++)C[a]&&(E=E+r[a][n(r[a].length)])}return E}return p(t,e)}}(V)),V.exports}var U={exports:{}},wu;function $D(){return wu||(wu=1,function(D){D.exports=function(u){return function(t,e,r){if(t===" ")return t;switch(e%3){case 0:return u.red(t);case 1:return u.white(t);case 2:return u.blue(t)}}}}(U)),U.exports}var X={exports:{}},Su;function MD(){return Su||(Su=1,function(D){D.exports=function(u){return function(t,e,r){return e%2===0?t:u.inverse(t)}}}(X)),X.exports}var J={exports:{}},vu;function WD(){return vu||(vu=1,function(D){D.exports=function(u){var t=["red","yellow","green","blue","magenta"];return function(e,r,i){return e===" "?e:u[t[r++%t.length]](e)}}}(J)),J.exports}var K={exports:{}},Ru;function _D(){return Ru||(Ru=1,function(D){D.exports=function(u){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(e,r,i){return e===" "?e:u[t[Math.round(Math.random()*(t.length-2))]](e)}}}(K)),K.exports}var Ou;function TD(){return Ou||(Ou=1,function(D){var u={};D.exports=u,u.themes={};var t=Ju,e=u.styles=wD(),r=Object.defineProperties,i=new RegExp(/[\r\n]+/g);u.supportsColor=vD().supportsColor,typeof u.enabled=="undefined"&&(u.enabled=u.supportsColor()!==!1),u.enable=function(){u.enabled=!0},u.disable=function(){u.enabled=!1},u.stripColors=u.strip=function(s){return(""+s).replace(/\x1B\[\d+m/g,"")},u.stylize=function(a,f){if(!u.enabled)return a+"";var c=e[f];return!c&&f in u?u[f](a):c.open+a+c.close};var n=/[|\\{}()[\]^$+*?.]/g,F=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(n,"\\$&")};function p(s){var a=function f(){return E.apply(f,arguments)};return a._styles=s,a.__proto__=C,a}var o=function(){var s={};return e.grey=e.gray,Object.keys(e).forEach(function(a){e[a].closeRe=new RegExp(F(e[a].close),"g"),s[a]={get:function(){return p(this._styles.concat(a))}}}),s}(),C=r(function(){},o);function E(){var s=Array.prototype.slice.call(arguments),a=s.map(function(y){return y!=null&&y.constructor===String?y:t.inspect(y)}).join(" ");if(!u.enabled||!a)return a;for(var f=a.indexOf(`
`)!=-1,c=this._styles,b=c.length;b--;){var m=e[c[b]];a=m.open+a.replace(m.closeRe,m.open)+m.close,f&&(a=a.replace(i,function(y){return m.close+y+m.open}))}return a}u.setTheme=function(s){if(typeof s=="string"){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'));");return}for(var a in s)(function(f){u[f]=function(c){if(typeof s[f]=="object"){var b=c;for(var m in s[f])b=u[s[f][m]](b);return b}return u[s[f]](c)}})(a)};function d(){var s={};return Object.keys(o).forEach(function(a){s[a]={get:function(){return p([a])}}}),s}var h=function(a,f){var c=f.split("");return c=c.map(a),c.join("")};u.trap=RD(),u.zalgo=OD(),u.maps={},u.maps.america=$D()(u),u.maps.zebra=MD()(u),u.maps.rainbow=WD()(u),u.maps.random=_D()(u);for(var l in u.maps)(function(s){u[s]=function(a){return h(u.maps[s],a)}})(l);r(u,d())}(G)),G.exports}var $u;function LD(){return $u||($u=1,function(D){var u=TD();D.exports=u}(q)),q.exports}const{info:kD,debug:Mu}=j,A=gu;class M{constructor(u){this.setOptions(u),this.x=null,this.y=null}setOptions(u){["boolean","number","string"].indexOf(typeof u)!==-1&&(u={content:""+u}),u=u||{},this.options=u;let t=u.content;if(["boolean","number","string"].indexOf(typeof t)!==-1)this.content=String(t);else if(!t)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof t);this.colSpan=u.colSpan||1,this.rowSpan=u.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(u,t){this.cells=t;let e=this.options.chars||{},r=u.chars,i=this.chars={};ID.forEach(function(p){uu(e,r,p,i)}),this.truncate=this.options.truncate||u.truncate;let n=this.options.style=this.options.style||{},F=u.style;uu(n,F,"padding-left",this),uu(n,F,"padding-right",this),this.head=n.head||F.head,this.border=n.border||F.border,this.fixedWidth=u.colWidths[this.x],this.lines=this.computeLines(u),this.desiredWidth=A.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(u){const t=u.wordWrap||u.textWrap,{wordWrap:e=t}=this.options;if(this.fixedWidth&&e){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let n=1;for(;n<this.colSpan;)this.fixedWidth+=u.colWidths[this.x+n],n++}const{wrapOnWordBoundary:r=!0}=u,{wrapOnWordBoundary:i=r}=this.options;return this.wrapLines(A.wordWrap(this.fixedWidth,this.content,i))}return this.wrapLines(this.content.split(`
`))}wrapLines(u){const t=A.colorizeLines(u);return this.href?t.map(e=>A.hyperlink(this.href,e)):t}init(u){let t=this.x,e=this.y;this.widths=u.colWidths.slice(t,t+this.colSpan),this.heights=u.rowHeights.slice(e,e+this.rowSpan),this.width=this.widths.reduce(_u,-1),this.height=this.heights.reduce(_u,-1),this.hAlign=this.options.hAlign||u.colAligns[t],this.vAlign=this.options.vAlign||u.rowAligns[e],this.drawRight=t+this.colSpan==u.colWidths.length}draw(u,t){if(u=="top")return this.drawTop(this.drawRight);if(u=="bottom")return this.drawBottom(this.drawRight);let e=A.truncate(this.content,10,this.truncate);u||kD(`${this.y}-${this.x}: ${this.rowSpan-u}x${this.colSpan} Cell ${e}`);let r=Math.max(this.height-this.lines.length,0),i;switch(this.vAlign){case"center":i=Math.ceil(r/2);break;case"bottom":i=r;break;default:i=0}if(u<i||u>=i+this.lines.length)return this.drawEmpty(this.drawRight,t);let n=this.lines.length>this.height&&u+1>=this.height;return this.drawLine(u-i,this.drawRight,n,t)}drawTop(u){let t=[];return this.cells?this.widths.forEach(function(e,r){t.push(this._topLeftChar(r)),t.push(A.repeat(this.chars[this.y==0?"top":"mid"],e))},this):(t.push(this._topLeftChar(0)),t.push(A.repeat(this.chars[this.y==0?"top":"mid"],this.width))),u&&t.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",t.join(""))}_topLeftChar(u){let t=this.x+u,e;if(this.y==0)e=t==0?"topLeft":u==0?"topMid":"top";else if(t==0)e="leftMid";else if(e=u==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][t]instanceof M.ColSpanCell&&(e=u==0?"topMid":"mid"),u==0)){let i=1;for(;this.cells[this.y][t-i]instanceof M.ColSpanCell;)i++;this.cells[this.y][t-i]instanceof M.RowSpanCell&&(e="leftMid")}return this.chars[e]}wrapWithStyleColors(u,t){if(this[u]&&this[u].length)try{let e=LD();for(let r=this[u].length-1;r>=0;r--)e=e[this[u][r]];return e(t)}catch(e){return t}else return t}drawLine(u,t,e,r){let i=this.chars[this.x==0?"left":"middle"];if(this.x&&r&&this.cells){let d=this.cells[this.y+r][this.x-1];for(;d instanceof Q;)d=this.cells[d.y][d.x-1];d instanceof P||(i=this.chars.rightMid)}let n=A.repeat(" ",this.paddingLeft),F=t?this.chars.right:"",p=A.repeat(" ",this.paddingRight),o=this.lines[u],C=this.width-(this.paddingLeft+this.paddingRight);e&&(o+=this.truncate||"\u2026");let E=A.truncate(o,C,this.truncate);return E=A.pad(E,C," ",this.hAlign),E=n+E+p,this.stylizeLine(i,E,F)}stylizeLine(u,t,e){return u=this.wrapWithStyleColors("border",u),e=this.wrapWithStyleColors("border",e),this.y===0&&(t=this.wrapWithStyleColors("head",t)),u+t+e}drawBottom(u){let t=this.chars[this.x==0?"bottomLeft":"bottomMid"],e=A.repeat(this.chars.bottom,this.width),r=u?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",t+e+r)}drawEmpty(u,t){let e=this.chars[this.x==0?"left":"middle"];if(this.x&&t&&this.cells){let n=this.cells[this.y+t][this.x-1];for(;n instanceof Q;)n=this.cells[n.y][n.x-1];n instanceof P||(e=this.chars.rightMid)}let r=u?this.chars.right:"",i=A.repeat(" ",this.width);return this.stylizeLine(e,i,r)}}class Q{constructor(){}draw(u){return typeof u=="number"&&Mu(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}}class P{constructor(u){this.originalCell=u}init(u){let t=this.y,e=this.originalCell.y;this.cellOffset=t-e,this.offset=jD(u.rowHeights,e,this.cellOffset)}draw(u){return u=="top"?this.originalCell.draw(this.offset,this.cellOffset):u=="bottom"?this.originalCell.draw("bottom"):(Mu(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+u))}mergeTableOptions(){}}function Wu(...D){return D.filter(u=>u!=null).shift()}function uu(D,u,t,e){let r=t.split("-");r.length>1?(r[1]=r[1].charAt(0).toUpperCase()+r[1].substr(1),r=r.join(""),e[r]=Wu(D[r],D[t],u[r],u[t])):e[t]=Wu(D[t],u[t])}function jD(D,u,t){let e=D[u];for(let r=1;r<t;r++)e+=1+D[u+r];return e}function _u(D,u){return D+u+1}let ID=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];T.exports=M,T.exports.ColSpanCell=Q,T.exports.RowSpanCell=P;const{warn:ND,debug:qD}=j,Du=T.exports,{ColSpanCell:GD,RowSpanCell:zD}=Du;(function(){function D(h,l){return h[l]>0?D(h,l+1):l}function u(h){let l={};h.forEach(function(s,a){let f=0;s.forEach(function(c){c.y=a,c.x=a?D(l,f):f;const b=c.rowSpan||1,m=c.colSpan||1;if(b>1)for(let y=0;y<m;y++)l[c.x+y]=b;f=c.x+m}),Object.keys(l).forEach(c=>{l[c]--,l[c]<1&&delete l[c]})})}function t(h){let l=0;return h.forEach(function(s){s.forEach(function(a){l=Math.max(l,a.x+(a.colSpan||1))})}),l}function e(h){return h.length}function r(h,l){let s=h.y,a=h.y-1+(h.rowSpan||1),f=l.y,c=l.y-1+(l.rowSpan||1),b=!(s>c||f>a),m=h.x,y=h.x-1+(h.colSpan||1),Gu=l.x,zu=l.x-1+(l.colSpan||1),Hu=!(m>zu||Gu>y);return b&&Hu}function i(h,l,s){let a=Math.min(h.length-1,s),f={x:l,y:s};for(let c=0;c<=a;c++){let b=h[c];for(let m=0;m<b.length;m++)if(r(f,b[m]))return!0}return!1}function n(h,l,s,a){for(let f=s;f<a;f++)if(i(h,f,l))return!1;return!0}function F(h){h.forEach(function(l,s){l.forEach(function(a){for(let f=1;f<a.rowSpan;f++){let c=new zD(a);c.x=a.x,c.y=a.y+f,c.colSpan=a.colSpan,o(c,h[s+f])}})})}function p(h){for(let l=h.length-1;l>=0;l--){let s=h[l];for(let a=0;a<s.length;a++){let f=s[a];for(let c=1;c<f.colSpan;c++){let b=new GD;b.x=f.x+c,b.y=f.y,s.splice(a+1,0,b)}}}}function o(h,l){let s=0;for(;s<l.length&&l[s].x<h.x;)s++;l.splice(s,0,h)}function C(h){let l=e(h),s=t(h);qD(`Max rows: ${l}; Max cols: ${s}`);for(let a=0;a<l;a++)for(let f=0;f<s;f++)if(!i(h,f,a)){let c={x:f,y:a,colSpan:1,rowSpan:1};for(f++;f<s&&!i(h,f,a);)c.colSpan++,f++;let b=a+1;for(;b<l&&n(h,b,c.x,c.x+c.colSpan);)c.rowSpan++,b++;let m=new Du(c);m.x=c.x,m.y=c.y,ND(`Missing cell at ${m.y}-${m.x}.`),o(m,h[a])}}function E(h){return h.map(function(l){if(!Array.isArray(l)){let s=Object.keys(l)[0];l=l[s],Array.isArray(l)?(l=l.slice(),l.unshift(s)):l=[s,l]}return l.map(function(s){return new Du(s)})})}function d(h){let l=E(h);return u(l),C(l),F(l),p(l),l}mu.exports={makeTableLayout:d,layoutTable:u,addRowSpanCells:F,maxWidth:t,fillInTable:C,computeWidths:Tu("colSpan","desiredWidth","x",1),computeHeights:Tu("rowSpan","desiredHeight","y",1)}})();function Tu(D,u,t,e){return function(r,i){let n=[],F=[],p={};i.forEach(function(o){o.forEach(function(C){(C[D]||1)>1?F.push(C):n[C[t]]=Math.max(n[C[t]]||0,C[u]||0,e)})}),r.forEach(function(o,C){typeof o=="number"&&(n[C]=o)});for(let o=F.length-1;o>=0;o--){let C=F[o],E=C[D],d=C[t],h=n[d],l=typeof r[d]=="number"?0:1;if(typeof h=="number")for(let s=1;s<E;s++)h+=1+n[d+s],typeof r[d+s]!="number"&&l++;else h=u==="desiredWidth"?C.desiredWidth-1:1,(!p[d]||p[d]<h)&&(p[d]=h);if(C[u]>h){let s=0;for(;l>0&&C[u]>h;){if(typeof r[d+s]!="number"){let a=Math.round((C[u]-h)/l);h+=a,n[d+s]+=a,l--}s++}}}Object.assign(r,n,p);for(let o=0;o<r.length;o++)r[o]=Math.max(e,r[o]||0)}}const S=j,HD=gu,tu=mu.exports;class Lu extends Array{constructor(u){super();const t=HD.mergeOptions(u);if(Object.defineProperty(this,"options",{value:t,enumerable:t.debug}),t.debug){switch(typeof t.debug){case"boolean":S.setDebugLevel(S.WARN);break;case"number":S.setDebugLevel(t.debug);break;case"string":S.setDebugLevel(parseInt(t.debug,10));break;default:S.setDebugLevel(S.WARN),S.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof t.debug}`)}Object.defineProperty(this,"messages",{get(){return S.debugMessages()}})}}toString(){let u=this,t=this.options.head&&this.options.head.length;t?(u=[this.options.head],this.length&&u.push.apply(u,this)):this.options.style.head=[];let e=tu.makeTableLayout(u);e.forEach(function(i){i.forEach(function(n){n.mergeTableOptions(this.options,e)},this)},this),tu.computeWidths(this.options.colWidths,e),tu.computeHeights(this.options.rowHeights,e),e.forEach(function(i){i.forEach(function(n){n.init(this.options)},this)},this);let r=[];for(let i=0;i<e.length;i++){let n=e[i],F=this.options.rowHeights[i];(i===0||!this.options.style.compact||i==1&&t)&&eu(n,"top",r);for(let p=0;p<F;p++)eu(n,p,r);i+1==e.length&&eu(n,"bottom",r)}return r.join(`
`)}get width(){return this.toString().split(`
`)[0].length}}Lu.reset=()=>S.reset();function eu(D,u,t){let e=[];D.forEach(function(i){e.push(i.draw(u))});let r=e.join("");r.length&&t.push(r)}var YD=Lu;(function(D){D.exports=YD})(hu);var ZD=uD(hu.exports);const ru=(...D)=>{const u=new ZD({chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:" "},style:{"padding-left":0,"padding-right":0}});return u.push(...D),u},iu=(...D)=>ru(...D).toString().split(`
`),VD=D=>Array.isArray(D)?`Array<${Fu(D[0])}>`:Fu(D),UD=D=>{const u=[];for(const t of D){if(t.type==="block"||!t.type){const e=" ",r=t.body.map(n=>e+n);r.unshift("");const i=r.join(`
`);u.push(ru([x.exports.bold(`${t.title}:`)],[i]).toString())}else if(t.type==="inline"){const e=t.items.map(i=>[x.exports.bold(`${i.title}:`),i.body]),r=ru(...e);u.push(r.toString())}u.push("")}return u.join(`
`)},nu=x.exports.yellow("-"),XD="(No description)",JD="Name",KD="Version",QD="Subcommand",PD="Commands",ut="Flags",Dt="Description",ku="Usage",tt="Examples",ju="Notes",Iu=D=>{process.stdout.write(D)},Nu=(D,u,t)=>{const e=[{title:JD,body:x.exports.red(u._name)},{title:KD,body:x.exports.yellow(u._version)}];t&&e.push({title:QD,body:x.exports.green(`${u._name} ${W(t.name)}`)}),D.push({type:"inline",items:e}),D.push({title:Dt,body:[(t==null?void 0:t.description)||u._description]})},qu=(D,u)=>{const t=u.map(([e,r])=>[e,nu,r]);D.push({title:tt,body:iu(...t)})},L=(D,u,t,e)=>{const{cli:r}=u,i=[];Nu(i,r),i.push({title:ku,body:[x.exports.magenta(`$ ${r._name} ${Zu("command",u.hasRootOrAlias)} [flags]`)]});const n=[...u.hasRoot?[r._commands[R]]:[],...Object.values(r._commands)].map(F=>{const p=[typeof F.name=="symbol"?"":F.name,...Qu(F.alias||[])].sort((o,C)=>o===R?-1:C===R?1:o.length-C.length).map(o=>o===""||typeof o=="symbol"?`${r._name}`:`${r._name} ${o}`).join(", ");return[x.exports.cyan(p),nu,F.description]});return i.push({title:PD,body:iu(...n)}),t&&i.push({title:ju,body:t}),e&&qu(i,e),D(i)},ou=(D,u,t)=>{var e;const{cli:r}=u,i=Vu(r._commands,t);if(!i)throw new Uu(W(t));const n=[];Nu(n,r,{...i,name:W(t)});const F=((e=i.parameters)==null?void 0:e.join(" "))||void 0,p=` ${W(t)}`,o=F?` ${F}`:"",C=i.flags?" [flags]":"";return n.push({title:ku,body:[x.exports.magenta(`$ ${r._name}${p}${o}${C}`)]}),i.flags&&n.push({title:ut,body:iu(...Object.entries(i.flags).map(([E,d])=>{const h=[su(E)];d.alias&&h.push(su(d.alias));const l=[x.exports.blue(h.join(", "))];if(l.push(nu,d.description||XD),d.type){const s=VD(d.type);l.push(x.exports.gray(`(${s})`))}return l}))}),i.notes&&n.push({title:ju,body:i.notes}),i.examples&&qu(n,i.examples),D(n)},et=({command:D=!0,showHelpWhenNoCommand:u=!0,notes:t,examples:e,banner:r,renderer:i="cliffy"}={})=>Yu({setup:n=>{const F=i==="cliffy"?UD:()=>"",p=o=>{r&&Iu(`${r}
`),Iu(o)};return D&&(n=n.command("help","Show help",{parameters:["[command...]"],notes:["If no command is specified, show help for the CLI.","If a command is specified, show help for the command.","-h is an alias for --help."],examples:[[`$ ${n._name} help`,"Show help"],[`$ ${n._name} help <command>`,"Show help for a specific command"],[`$ ${n._name} <command> --help`,"Show help for a specific command"]]}).on("help",o=>{o.parameters.command.length?p(ou(F,o,o.parameters.command)):p(L(F,o,t,e))})),n.inspector((o,C)=>{const E=o.raw.mergedFlags.h||o.raw.mergedFlags.help;if(!o.hasRootOrAlias&&!o.raw._.length&&u&&!E){let d=`No command given.
import{definePlugin as B,Root as h,withBrackets as k,resolveCommand as P,NoSuchCommandError as G,formatCommandName as d}from"@clerc/core";import H from"tty";const U=t=>Array.isArray(t)?t:[t],W=t=>t.replace(/([A-Z])/g,(r,e)=>`-${e.toLowerCase()}`),_=t=>t.length<=1?`-${t}`:`--${W(t)}`;var f={exports:{}};let z=H,V=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||z.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),l=(t,r,e=t)=>o=>{let i=""+o,s=i.indexOf(r,t.length);return~s?t+N(i,r,e,s)+r:t+i+r},N=(t,r,e,o)=>{let i=t.substring(0,o)+e,s=t.substring(o+r.length),m=s.indexOf(r);return~m?i+N(s,r,e,m):i+s},A=(t=V)=>({isColorSupported:t,reset:t?r=>`\x1B[0m${r}\x1B[0m`:String,bold:t?l("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:t?l("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:t?l("\x1B[3m","\x1B[23m"):String,underline:t?l("\x1B[4m","\x1B[24m"):String,inverse:t?l("\x1B[7m","\x1B[27m"):String,hidden:t?l("\x1B[8m","\x1B[28m"):String,strikethrough:t?l("\x1B[9m","\x1B[29m"):String,black:t?l("\x1B[30m","\x1B[39m"):String,red:t?l("\x1B[31m","\x1B[39m"):String,green:t?l("\x1B[32m","\x1B[39m"):String,yellow:t?l("\x1B[33m","\x1B[39m"):String,blue:t?l("\x1B[34m","\x1B[39m"):String,magenta:t?l("\x1B[35m","\x1B[39m"):String,cyan:t?l("\x1B[36m","\x1B[39m"):String,white:t?l("\x1B[37m","\x1B[39m"):String,gray:t?l("\x1B[90m","\x1B[39m"):String,bgBlack:t?l("\x1B[40m","\x1B[49m"):String,bgRed:t?l("\x1B[41m","\x1B[49m"):String,bgGreen:t?l("\x1B[42m","\x1B[49m"):String,bgYellow:t?l("\x1B[43m","\x1B[49m"):String,bgBlue:t?l("\x1B[44m","\x1B[49m"):String,bgMagenta:t?l("\x1B[45m","\x1B[49m"):String,bgCyan:t?l("\x1B[46m","\x1B[49m"):String,bgWhite:t?l("\x1B[47m","\x1B[49m"):String});f.exports=A(),f.exports.createColors=A;var q=Function.prototype.toString,X=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;function Y(t){if(typeof t!="function")return null;var r="";if(typeof Function.prototype.name=="undefined"&&typeof t.name=="undefined"){var e=q.call(t).match(X);e&&(r=e[1])}else r=t.name;return r}var O=Y,Z=function(t,r){r||(r={});var e=r.hsep===void 0?" ":r.hsep,o=r.align||[],i=r.stringLength||function(a){return String(a).length},s=j(t,function(a,n){return M(n,function(c,p){var u=E(c);(!a[p]||u>a[p])&&(a[p]=u)}),a},[]),m=y(t,function(a){return y(a,function(n,c){var p=String(n);if(o[c]==="."){var u=E(p),b=s[c]+(/\./.test(p)?1:2)-(i(p)-u);return p+Array(b).join(" ")}else return p})}),g=j(m,function(a,n){return M(n,function(c,p){var u=i(c);(!a[p]||u>a[p])&&(a[p]=u)}),a},[]);return y(m,function(a){return y(a,function(n,c){var p=g[c]-i(n)||0,u=Array(Math.max(p+1,1)).join(" ");return o[c]==="r"||o[c]==="."?u+n:o[c]==="c"?Array(Math.ceil(p/2+1)).join(" ")+n+Array(Math.floor(p/2+1)).join(" "):n+u}).join(e).replace(/\s+$/,"")}).join(`
`)};function E(t){var r=/\.[^.]*$/.exec(t);return r?r.index+1:t.length}function j(t,r,e){if(t.reduce)return t.reduce(r,e);for(var o=0,i=arguments.length>=3?e:t[o++];o<t.length;o++)r(i,t[o],o);return i}function M(t,r){if(t.forEach)return t.forEach(r);for(var e=0;e<t.length;e++)r.call(t,t[e],e)}function y(t,r){if(t.map)return t.map(r);for(var e=[],o=0;o<t.length;o++)e.push(r.call(t,t[o],o));return e}const v=(...t)=>Z(t),$=(...t)=>v(...t).toString().split(`
`),J=t=>Array.isArray(t)?`Array<${O(t[0])}>`:O(t),K=t=>{const r=[];for(const e of t){if(e.type==="block"||!e.type){const o=" ",i=e.body.map(m=>o+m);i.unshift("");const s=i.join(`
`);r.push(v([f.exports.bold(`${e.title}:`)],[s]).toString())}else if(e.type==="inline"){const o=e.items.map(s=>[f.exports.bold(`${s.title}:`),s.body]),i=v(...o);r.push(i.toString())}r.push("")}return r.join(`
`)},w=f.exports.yellow("-"),Q="(No description)",tt="Name",rt="Version",et="Subcommand",nt="Commands",ot="Flags",it="Description",R="Usage",st="Examples",I="Notes",L=t=>{process.stdout.write(t)},F=(t,r,e)=>{const o=[{title:tt,body:f.exports.red(r._name)},{title:rt,body:f.exports.yellow(r._version)}];e&&o.push({title:et,body:f.exports.green(`${r._name} ${d(e.name)}`)}),t.push({type:"inline",items:o}),t.push({title:it,body:[(e==null?void 0:e.description)||r._description]})},T=(t,r)=>{const e=r.map(([o,i])=>[o,w,i]);t.push({title:st,body:$(...e)})},S=(t,r,e,o)=>{const{cli:i}=r,s=[];F(s,i),s.push({title:R,body:[f.exports.magenta(`$ ${i._name} ${k("command",r.hasRootOrAlias)} [flags]`)]});const m=[...r.hasRoot?[i._commands[h]]:[],...Object.values(i._commands)].map(g=>{const a=[typeof g.name=="symbol"?"":g.name,...U(g.alias||[])].sort((n,c)=>n===h?-1:c===h?1:n.length-c.length).map(n=>n===""||typeof n=="symbol"?`${i._name}`:`${i._name} ${n}`).join(", ");return[f.exports.cyan(a),w,g.description]});return s.push({title:nt,body:$(...m)}),e&&s.push({title:I,body:e}),o&&T(s,o),t(s)},C=(t,r,e)=>{var o;const{cli:i}=r,s=P(i._commands,e);if(!s)throw new G(d(e));const m=[];F(m,i,{...s,name:d(e)});const g=((o=s.parameters)==null?void 0:o.join(" "))||void 0,a=` ${d(e)}`,n=g?` ${g}`:"",c=s.flags?" [flags]":"";return m.push({title:R,body:[f.exports.magenta(`$ ${i._name}${a}${n}${c}`)]}),s.flags&&m.push({title:ot,body:$(...Object.entries(s.flags).map(([p,u])=>{const b=[_(p)];u.alias&&b.push(_(u.alias));const x=[f.exports.blue(b.join(", "))];if(x.push(w,u.description||Q),u.type){const D=J(u.type);x.push(f.exports.gray(`(${D})`))}return x}))}),s.notes&&m.push({title:I,body:s.notes}),s.examples&&T(m,s.examples),t(m)},at=({command:t=!0,showHelpWhenNoCommand:r=!0,notes:e,examples:o,banner:i,renderer:s="cliffy"}={})=>B({setup:m=>{const g=s==="cliffy"?K:()=>"",a=n=>{i&&L(`${i}
`),L(n)};return t&&(m=m.command("help","Show help",{parameters:["[command...]"],notes:["If no command is specified, show help for the CLI.","If a command is specified, show help for the command.","-h is an alias for --help."],examples:[[`$ ${m._name} help`,"Show help"],[`$ ${m._name} help <command>`,"Show help for a specific command"],[`$ ${m._name} <command> --help`,"Show help for a specific command"]]}).on("help",n=>{n.parameters.command.length?a(C(g,n,n.parameters.command)):a(S(g,n,e,o))})),m.inspector((n,c)=>{const p=n.raw.mergedFlags.h||n.raw.mergedFlags.help;if(!n.hasRootOrAlias&&!n.raw._.length&&r&&!p){let u=`No command given.
`;d+=L(F,o,t,e),d+=`
`,p(d),process.exit(1)}else E?o.raw._.length?o.called!==R&&o.name===R?p(L(F,o,t,e)):p(ou(F,o,o.raw._)):p(L(F,o,t,e)):C()}),n}});export{et as helpPlugin};
`;u+=S(g,n,e,o),u+=`
`,a(u),process.exit(1)}else p?n.raw._.length?n.called!==h&&n.name===h?a(S(g,n,e,o)):a(C(g,n,n.raw._)):a(S(g,n,e,o)):c()}),m}});export{at as helpPlugin};
{
"name": "@clerc/plugin-help",
"version": "0.27.1",
"version": "0.28.0",
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",

@@ -54,7 +54,8 @@ "description": "Clerc plugin help",

"devDependencies": {
"cli-table3": "^0.6.3",
"@types/text-table": "^0.2.2",
"get-func-name": "^2.0.0",
"picocolors": "^1.0.0",
"@clerc/core": "0.27.1",
"@clerc/utils": "0.27.1"
"text-table": "^0.2.0",
"@clerc/core": "0.28.0",
"@clerc/utils": "0.28.0"
},

@@ -61,0 +62,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc