UNPKG

create-synxty-app

Version:

Synxty App - Start your projects like a pro

2 lines 468 kB
#!/usr/bin/env node module.exports=(()=>{var e={7121:e=>{"use strict";e.exports=asyncForEach;function asyncForEach(e,t,r){if(e.length===0){r();return}let n=e.length;e.forEach(e=>{t(e,()=>{if(--n===0){r()}})})}},8147:(e,t,r)=>{"use strict";e.exports=readdirAsync;const n=r(9581);const i=r(9270);let o={fs:r(5747),forEach:r(7121),async:true};function readdirAsync(e,t,r,s){if(typeof t==="function"){r=t;t=undefined}return n(r,new Promise((r,n)=>{let a=[];s.facade=o;let u=new i(e,t,s);let c=u.stream;c.on("error",e=>{n(e);c.pause()});c.on("data",e=>{a.push(e)});c.on("end",()=>{r(a)})}))}},6516:e=>{"use strict";let t=e.exports={safe:safeCall,once:callOnce};function safeCall(e,r){r=Array.prototype.slice.call(arguments,1);let n=t.once(r.pop());r.push(n);try{e.apply(null,r)}catch(e){n(e)}}function callOnce(e){let t=false;return function onceWrapper(r){if(!t){t=true;return e.apply(this,arguments)}else if(r){throw r}}}},9270:(e,t,r)=>{"use strict";const n=r(2413).Readable;const i=r(8614).EventEmitter;const o=r(5622);const s=r(2536);const a=r(9289);const u=r(6516);class DirectoryReader{constructor(e,t,r){this.options=t=s(t,r);this.shouldRead=true;this.queue=[{path:e,basePath:t.basePath,posixBasePath:t.posixBasePath,depth:0}];this.pending=0;this.buffer=[];this.stream=new n({objectMode:true});this.stream._read=(()=>{this.shouldRead=true;if(this.buffer.length>0){this.pushFromBuffer()}if(this.queue.length>0){if(this.options.facade.sync){while(this.queue.length>0){this.readNextDirectory()}}else{this.readNextDirectory()}}this.checkForEOF()})}readNextDirectory(){let e=this.options.facade;let t=this.queue.shift();this.pending++;u.safe(e.fs.readdir,t.path,(r,n)=>{if(r){this.emit("error",r);return this.finishedReadingDirectory()}try{e.forEach(n,this.processItem.bind(this,t),this.finishedReadingDirectory.bind(this,t))}catch(e){this.emit("error",e);this.finishedReadingDirectory()}})}finishedReadingDirectory(){this.pending--;if(this.shouldRead){if(this.queue.length>0&&this.options.facade.async){this.readNextDirectory()}this.checkForEOF()}}checkForEOF(){if(this.buffer.length===0&&this.pending===0&&this.queue.length===0){this.stream.push(null)}}processItem(e,t,r){let n=this.stream;let s=this.options;let u=e.basePath+t;let c=e.posixBasePath+t;let f=o.join(e.path,t);let l=e.depth>=s.recurseDepth;let p=!l||s.stats||s.recurseFn||s.filterFn||i.listenerCount(n,"file")||i.listenerCount(n,"directory")||i.listenerCount(n,"symlink");if(!p){if(this.filter(u,c)){this.pushOrBuffer({data:u})}return r()}a(s.facade.fs,f,(t,n)=>{if(t){this.emit("error",t);return r()}try{n.path=u;n.depth=e.depth;if(this.shouldRecurse(n,c,l)){this.queue.push({path:f,basePath:u+s.sep,posixBasePath:c+"/",depth:e.depth+1})}if(this.filter(n,c)){this.pushOrBuffer({data:s.stats?n:u,file:n.isFile(),directory:n.isDirectory(),symlink:n.isSymbolicLink()})}r()}catch(e){this.emit("error",e);r()}})}pushOrBuffer(e){this.buffer.push(e);if(this.shouldRead){this.pushFromBuffer()}}pushFromBuffer(){let e=this.stream;let t=this.buffer.shift();try{this.shouldRead=e.push(t.data)}catch(e){this.emit("error",e)}t.file&&this.emit("file",t.data);t.symlink&&this.emit("symlink",t.data);t.directory&&this.emit("directory",t.data)}shouldRecurse(e,t,r){let n=this.options;if(r){return false}else if(!e.isDirectory()){return false}else if(n.recurseGlob){return n.recurseGlob.test(t)}else if(n.recurseRegExp){return n.recurseRegExp.test(e.path)}else if(n.recurseFn){try{return n.recurseFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}filter(e,t){let r=this.options;if(r.filterGlob){return r.filterGlob.test(t)}else if(r.filterRegExp){return r.filterRegExp.test(e.path||e)}else if(r.filterFn){try{return r.filterFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}emit(e,t){let r=this.stream;try{r.emit(e,t)}catch(t){if(e==="error"){throw t}else{r.emit("error",t)}}}}e.exports=DirectoryReader},9913:(e,t,r)=>{"use strict";const n=r(9638);const i=r(8147);const o=r(6453);e.exports=t=readdirAsyncPath;t.readdir=t.readdirAsync=t.async=readdirAsyncPath;t.readdirAsyncStat=t.async.stat=readdirAsyncStat;t.readdirStream=t.stream=readdirStreamPath;t.readdirStreamStat=t.stream.stat=readdirStreamStat;t.readdirSync=t.sync=readdirSyncPath;t.readdirSyncStat=t.sync.stat=readdirSyncStat;function readdirSyncPath(e,t){return n(e,t,{})}function readdirSyncStat(e,t){return n(e,t,{stats:true})}function readdirAsyncPath(e,t,r){return i(e,t,r,{})}function readdirAsyncStat(e,t,r){return i(e,t,r,{stats:true})}function readdirStreamPath(e,t){return o(e,t,{})}function readdirStreamStat(e,t){return o(e,t,{stats:true})}},2536:(e,t,r)=>{"use strict";const n=r(5622);const i=r(7117);e.exports=normalizeOptions;let o=/^win/.test(process.platform);function normalizeOptions(e,t){if(e===null||e===undefined){e={}}else if(typeof e!=="object"){throw new TypeError("options must be an object")}let r,s,a,u,c=e.deep;if(c===null||c===undefined){r=0}else if(typeof c==="boolean"){r=c?Infinity:0}else if(typeof c==="number"){if(c<0||isNaN(c)){throw new Error("options.deep must be a positive number")}else if(Math.floor(c)!==c){throw new Error("options.deep must be an integer")}else{r=c}}else if(typeof c==="function"){r=Infinity;s=c}else if(c instanceof RegExp){r=Infinity;a=c}else if(typeof c==="string"&&c.length>0){r=Infinity;u=i(c,{extended:true,globstar:true})}else{throw new TypeError("options.deep must be a boolean, number, function, regular expression, or glob pattern")}let f,l,p,h=e.filter;if(h!==null&&h!==undefined){if(typeof h==="function"){f=h}else if(h instanceof RegExp){l=h}else if(typeof h==="string"&&h.length>0){p=i(h,{extended:true,globstar:true})}else{throw new TypeError("options.filter must be a function, regular expression, or glob pattern")}}let d=e.sep;if(d===null||d===undefined){d=n.sep}else if(typeof d!=="string"){throw new TypeError("options.sep must be a string")}let y=e.basePath;if(y===null||y===undefined){y=""}else if(typeof y==="string"){if(y&&y.substr(-1)!==d){y+=d}}else{throw new TypeError("options.basePath must be a string")}let g=y;if(g&&d!=="/"){g=g.replace(new RegExp("\\"+d,"g"),"/");if(o){g=g.replace(/^([a-zA-Z]\:\/|\/\/)/,"/")}}let v;if(e.fs===null||e.fs===undefined){v=t.facade}else if(typeof e.fs==="object"){v=Object.assign({},t.facade);v.fs=Object.assign({},t.facade.fs,e.fs)}else{throw new TypeError("options.fs must be an object")}return{recurseDepth:r,recurseFn:s,recurseRegExp:a,recurseGlob:u,filterFn:f,filterRegExp:l,filterGlob:p,sep:d,basePath:y,posixBasePath:g,facade:v,emit:!!t.emit,stats:!!t.stats}}},9289:(e,t,r)=>{"use strict";const n=r(6516);e.exports=stat;function stat(e,t,r){let i=false;n.safe(e.lstat,t,(n,o)=>{if(n){return r(n)}try{i=o.isSymbolicLink()}catch(e){return r(e)}if(i){symlinkStat(e,t,o,r)}else{r(null,o)}})}function symlinkStat(e,t,r,i){n.safe(e.stat,t,(e,t)=>{if(e){return i(null,r)}try{t.isSymbolicLink=(()=>true)}catch(e){return i(e)}i(null,t)})}},6453:(e,t,r)=>{"use strict";e.exports=readdirStream;const n=r(9270);let i={fs:r(5747),forEach:r(7121),async:true};function readdirStream(e,t,r){r.facade=i;let o=new n(e,t,r);return o.stream}},8220:e=>{"use strict";e.exports=syncForEach;function syncForEach(e,t,r){e.forEach(e=>{t(e,()=>{})});r()}},6117:(e,t,r)=>{"use strict";const n=r(5747);const i=r(6516);t.readdir=function(e,t){t=i.once(t);try{let r=n.readdirSync(e);t(null,r)}catch(e){t(e)}};t.stat=function(e,t){t=i.once(t);try{let r=n.statSync(e);t(null,r)}catch(e){t(e)}};t.lstat=function(e,t){t=i.once(t);try{let r=n.lstatSync(e);t(null,r)}catch(e){t(e)}}},9638:(e,t,r)=>{"use strict";e.exports=readdirSync;const n=r(9270);let i={fs:r(6117),forEach:r(8220),sync:true};function readdirSync(e,t,r){r.facade=i;let o=new n(e,t,r);let s=o.stream;let a=[];let u=s.read();while(u!==null){a.push(u);u=s.read()}return a}},2987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function getFileSystemAdapter(e){if(!e){return t.FILE_SYSTEM_ADAPTER}return Object.assign({},t.FILE_SYSTEM_ADAPTER,e)}t.getFileSystemAdapter=getFileSystemAdapter},109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8018);const i=r(709);function stat(e,t){return new Promise((r,o)=>{i.async(e,n.prepare(t),(e,t)=>e?o(e):r(t))})}t.stat=stat;function statCallback(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(typeof r==="undefined"){throw new TypeError('The "callback" argument must be of type Function.')}i.async(e,n.prepare(t),r)}t.statCallback=statCallback;function statSync(e,t){return i.sync(e,n.prepare(t))}t.statSync=statSync},8018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2987);function prepare(e){const t=Object.assign({fs:n.getFileSystemAdapter(e?e.fs:undefined),throwErrorOnBrokenSymlinks:true,followSymlinks:true},e);return t}t.prepare=prepare},709:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function sync(e,t){const r=t.fs.lstatSync(e);if(!isFollowedSymlink(r,t)){return r}try{const n=t.fs.statSync(e);n.isSymbolicLink=(()=>true);return n}catch(e){if(!t.throwErrorOnBrokenSymlinks){return r}throw e}}t.sync=sync;function async(e,t,r){t.fs.lstat(e,(n,i)=>{if(n){return r(n,undefined)}if(!isFollowedSymlink(i,t)){return r(null,i)}t.fs.stat(e,(e,n)=>{if(e){return t.throwErrorOnBrokenSymlinks?r(e):r(null,i)}n.isSymbolicLink=(()=>true);r(null,n)})})}t.async=async;function isFollowedSymlink(e,t){return e.isSymbolicLink()&&t.followSymlinks}t.isFollowedSymlink=isFollowedSymlink},1231:(e,t,r)=>{"use strict";const n=r(8043);const i=r(7972);const o=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(e){if(!Array.isArray(e)){throw new TypeError(`Expected input to be an Array, got ${typeof e}`)}e=[...e].map(e=>{if(e instanceof Error){return e}if(e!==null&&typeof e==="object"){return Object.assign(new Error(e.message),e)}return new Error(e)});let t=e.map(e=>{return typeof e.stack==="string"?o(i(e.stack)):String(e)}).join("\n");t="\n"+n(t,4);super(t);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors){yield e}}}e.exports=AggregateError},5063:e=>{"use strict";e.exports=(({onlyFirst:e=false}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[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?undefined:"g")})},2068:(e,t,r)=>{"use strict";e=r.nmd(e);const n=(e,t)=>(...r)=>{const n=e(...r);return`[${n+t}m`};const i=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`};const o=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};const s=e=>e;const a=(e,t,r)=>[e,t,r];const u=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true});return n},enumerable:true,configurable:true})};let c;const f=(e,t,n,i)=>{if(c===undefined){c=r(6931)}const o=i?10:0;const s={};for(const[r,i]of Object.entries(c)){const a=r==="ansi16"?"ansi":r;if(r===t){s[a]=e(n,o)}else if(typeof i==="object"){s[a]=e(i[t],o)}}return s};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n)){t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="";t.bgColor.close="";u(t.color,"ansi",()=>f(n,"ansi16",s,false));u(t.color,"ansi256",()=>f(i,"ansi256",s,false));u(t.color,"ansi16m",()=>f(o,"rgb",a,false));u(t.bgColor,"ansi",()=>f(n,"ansi16",s,true));u(t.bgColor,"ansi256",()=>f(i,"ansi256",s,true));u(t.bgColor,"ansi16m",()=>f(o,"rgb",a,true));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},8915:e=>{"use strict";e.exports=function diff(e){var t=arguments.length;var r=0;while(++r<t){e=diffArray(e,arguments[r])}return e};function diffArray(e,t){if(!Array.isArray(t)){return e.slice()}var r=t.length;var n=e.length;var i=-1;var o=[];while(++i<n){var s=e[i];var a=false;for(var u=0;u<r;u++){var c=t[u];if(s===c){a=true;break}}if(a===false){o.push(s)}}return o}},7493:e=>{"use strict";e.exports=function(e){return flat(e,[])};function flat(e,t){var r=0,n;var i=e.length;for(;r<i;r++){n=e[r];Array.isArray(n)?flat(n,t):t.push(n)}return t}},8815:e=>{"use strict";e.exports=function union(e){if(!Array.isArray(e)){throw new TypeError("arr-union expects the first argument to be an array.")}var t=arguments.length;var r=0;while(++r<t){var n=arguments[r];if(!n)continue;if(!Array.isArray(n)){n=[n]}for(var i=0;i<n.length;i++){var o=n[i];if(e.indexOf(o)>=0){continue}e.push(o)}}return e}},9600:(e,t,r)=>{"use strict";var n=r(1530);e.exports=function(){return n([].concat.apply([],arguments))}},1530:e=>{"use strict";function uniqNoSet(e){var t=[];for(var r=0;r<e.length;r++){if(t.indexOf(e[r])===-1){t.push(e[r])}}return t}function uniqSet(e){var t=new Set;return e.filter(function(e){if(!t.has(e)){t.add(e);return true}return false})}function uniqSetWithForEach(e){var t=[];new Set(e).forEach(function(e){t.push(e)});return t}function doesForEachActuallyWork(){var e=false;new Set([true]).forEach(function(t){e=t});return e===true}if("Set"in global){if(typeof Set.prototype.forEach==="function"&&doesForEachActuallyWork()){e.exports=uniqSetWithForEach}else{e.exports=uniqSet}}else{e.exports=uniqNoSet}},340:e=>{"use strict";e.exports=function unique(e){if(!Array.isArray(e)){throw new TypeError("array-unique expects an array.")}var t=e.length;var r=-1;while(r++<t){var n=r+1;for(;n<e.length;++n){if(e[r]===e[n]){e.splice(n--,1)}}}return e};e.exports.immutable=function uniqueImmutable(t){if(!Array.isArray(t)){throw new TypeError("array-unique expects an array.")}var r=t.length;var n=new Array(r);for(var i=0;i<r;i++){n[i]=t[i]}return e.exports(n)}},1546:e=>{"use strict";const t=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=t},8782:e=>{"use strict";e.exports=function(e,t){if(e===null||typeof e==="undefined"){throw new TypeError("expected first argument to be an object.")}if(typeof t==="undefined"||typeof Symbol==="undefined"){return e}if(typeof Object.getOwnPropertySymbols!=="function"){return e}var r=Object.prototype.propertyIsEnumerable;var n=Object(e);var i=arguments.length,o=0;while(++o<i){var s=Object(arguments[o]);var a=Object.getOwnPropertySymbols(s);for(var u=0;u<a.length;u++){var c=a[u];if(r.call(s,c)){n[c]=s[c]}}}return n}},161:e=>{"use strict";function atob(e){return Buffer.from(e,"base64").toString("binary")}e.exports=atob.atob=atob},9417:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,o,s,a;var u=r.indexOf(e);var c=r.indexOf(t,u+1);var f=u;if(u>=0&&c>0){n=[];o=r.length;while(f>=0&&!a){if(f==u){n.push(f);u=r.indexOf(e,f+1)}else if(n.length==1){a=[n.pop(),c]}else{i=n.pop();if(i<o){o=i;s=c}c=r.indexOf(t,f+1)}f=u<c&&u>=0?u:c}if(n.length){a=[o,s]}}return a}},842:(e,t,r)=>{"use strict";var n=r(1669);var i=r(9780);var o=r(4365);var s=r(6172);var a=r(5509);var u=r(4540);var c=r(198);var f=r(274);function namespace(e){var t=e?o.namespace(e):o;var r=[];function Base(e,r){if(!(this instanceof Base)){return new Base(e,r)}t.call(this,e);this.is("base");this.initBase(e,r)}n.inherits(Base,t);s(Base);Base.prototype.initBase=function(t,n){this.options=u({},this.options,n);this.cache=this.cache||{};this.define("registered",{});if(e)this[e]={};this.define("_callbacks",this._callbacks);if(a(t)){this.visit("set",t)}Base.run(this,"use",r)};Base.prototype.is=function(e){if(typeof e!=="string"){throw new TypeError("expected name to be a string")}this.define("is"+c(e),true);this.define("_name",e);this.define("_appname",e);return this};Base.prototype.isRegistered=function(e,t){if(this.registered.hasOwnProperty(e)){return true}if(t!==false){this.registered[e]=true;this.emit("plugin",e)}return false};Base.prototype.use=function(e){e.call(this,this);return this};Base.prototype.define=function(e,t){if(a(e)){return this.visit("define",e)}i(this,e,t);return this};Base.prototype.mixin=function(e,t){Base.prototype[e]=t;return this};Base.prototype.mixins=Base.prototype.mixins||[];Object.defineProperty(Base.prototype,"base",{configurable:true,get:function(){return this.parent?this.parent.base:this}});i(Base,"use",function(e){r.push(e);return Base});i(Base,"run",function(e,t,r){var n=r.length,i=0;while(n--){e[t](r[i++])}return Base});i(Base,"extend",f.extend(Base,function(e,t){e.prototype.mixins=e.prototype.mixins||[];i(e,"mixin",function(t){var r=t(e.prototype,e);if(typeof r==="function"){e.prototype.mixins.push(r)}return e});i(e,"mixins",function(t){Base.run(t,"mixin",e.prototype.mixins);return e});e.prototype.mixin=function(t,r){e.prototype[t]=r;return this};return Base}));i(Base,"mixin",function(e){var t=e(Base.prototype,Base);if(typeof t==="function"){Base.prototype.mixins.push(t)}return Base});i(Base,"mixins",function(e){Base.run(e,"mixin",Base.prototype.mixins);return Base});i(Base,"inherit",f.inherit);i(Base,"bubble",f.bubble);return Base}e.exports=namespace();e.exports.namespace=namespace},9780:(e,t,r)=>{"use strict";var n=r(567);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},3717:(e,t,r)=>{var n=r(6891);var i=r(9417);e.exports=expandTop;var o="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var c="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function unescapeBraces(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var o=r.body;var s=r.post;var a=n.split(",");a[a.length-1]+="{"+o+"}";var u=parseCommaParts(s);if(s.length){a[a.length-1]+=u.shift();a.push.apply(a,u)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body);var c=s||u;var f=o.body.indexOf(",")>=0;if(!c&&!f){if(o.post.match(/,.*\}/)){e=o.pre+"{"+o.body+a+o.post;return expand(e)}return[e]}var l;if(c){l=o.body.split(/\.\./)}else{l=parseCommaParts(o.body);if(l.length===1){l=expand(l[0],false).map(embrace);if(l.length===1){var p=o.post.length?expand(o.post,false):[""];return p.map(function(e){return o.pre+l[0]+e})}}}var h=o.pre;var p=o.post.length?expand(o.post,false):[""];var d;if(c){var y=numeric(l[0]);var g=numeric(l[1]);var v=Math.max(l[0].length,l[1].length);var m=l.length==3?Math.abs(numeric(l[2])):1;var b=lte;var D=g<y;if(D){m*=-1;b=gte}var E=l.some(isPadded);d=[];for(var w=y;b(w,g);w+=m){var S;if(u){S=String.fromCharCode(w);if(S==="\\")S=""}else{S=String(w);if(E){var A=v-S.length;if(A>0){var O=new Array(A+1).join("0");if(w<0)S="-"+O+S.slice(1);else S=O+S}}}d.push(S)}}else{d=n(l,function(e){return expand(e,false)})}for(var C=0;C<d.length;C++){for(var x=0;x<p.length;x++){var _=h+d[C]+p[x];if(!t||c||_)r.push(_)}}return r}},610:(e,t,r)=>{"use strict";var n=r(7716);var i=r(340);var o=r(7512);var s=r(7076);var a=r(2829);var u=r(7075);var c=r(5207);var f=1024*64;var l={};function braces(e,t){var r=c.createKey(String(e),t);var n=[];var o=t&&t.cache===false;if(!o&&l.hasOwnProperty(r)){return l[r]}if(Array.isArray(e)){for(var s=0;s<e.length;s++){n.push.apply(n,braces.create(e[s],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=i(n)}if(!o){l[r]=n}return n}braces.expand=function(e,t){return braces.create(e,o({},t,{expand:true}))};braces.optimize=function(e,t){return braces.create(e,t)};braces.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||f;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function create(){if(e===""||e.length<3){return[e]}if(c.isEmptySets(e)){return[]}if(c.isQuotedString(e)){return[e.slice(1,-1)]}var r=new u(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var o=n.output;if(t&&t.noempty===true){o=o.filter(Boolean)}if(t&&t.nodupes===true){o=i(o)}Object.defineProperty(o,"result",{enumerable:false,value:n});return o}return memoize("create",e,t,create)};braces.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||f;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var i=o({strictErrors:false},t);return n(r,i)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new u(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new u(t);return r.compile(e,t)};braces.clearCache=function(){l=braces.cache={}};function memoize(e,t,r,n){var i=c.createKey(e+":"+t,r);var o=r&&r.cache===false;if(o){braces.clearCache();return n(t,r)}if(l.hasOwnProperty(i)){return l[i]}var s=n(t,r);l[i]=s;return s}braces.Braces=u;braces.compilers=s;braces.parsers=a;braces.cache=l;e.exports=braces},7075:(e,t,r)=>{"use strict";var n=r(7512);var i=r(2403);var o=r(7076);var s=r(2829);var a=r(5207);function Braces(e){this.options=n({},e)}Braces.prototype.init=function(e){if(this.isInitialized)return;this.isInitialized=true;var t=a.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new i(t);this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;o(this.snapdragon,t);s(this.snapdragon,t);a.define(this.snapdragon,"parse",function(e,t){var r=i.prototype.parse.apply(this,arguments);this.parser.ast.input=e;var n=this.parser.stack;while(n.length){addParent({type:"brace.close",val:""},n.pop())}function addParent(e,t){a.define(e,"parent",t);t.nodes.push(e)}a.define(r,"parser",this.parser);return r})};Braces.prototype.parse=function(e,t){if(e&&typeof e==="object"&&e.nodes)return e;this.init(t);return this.snapdragon.parse(e,t)};Braces.prototype.compile=function(e,t){if(typeof e==="string"){e=this.parse(e,t)}else{this.init(t)}return this.snapdragon.compile(e,t)};Braces.prototype.expand=function(e){var t=this.parse(e,{expand:true});return this.compile(t,{expand:true})};Braces.prototype.optimize=function(e){var t=this.parse(e,{optimize:true});return this.compile(t,{optimize:true})};e.exports=Braces},7076:(e,t,r)=>{"use strict";var n=r(5207);e.exports=function(e,t){e.compiler.set("bos",function(){if(this.output)return;this.ast.queue=isEscaped(this.ast)?[this.ast.val]:[];this.ast.count=1}).set("bracket",function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var i=e.negated;var o=e.inner;o=o.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(o==="]-"){o="\\]\\-"}if(i&&o.indexOf(".")===-1){o+="."}if(i&&o.indexOf("/")===-1){o+="/"}var s=r+i+o+t;var a=e.parent.queue;var u=n.arrayify(a.pop());a.push(n.join(u,s));a.push.apply(a,[])}).set("brace",function(e){e.queue=isEscaped(e)?[e.val]:[];e.count=1;return this.mapVisit(e.nodes)}).set("brace.open",function(e){e.parent.open=e.val}).set("text",function(e){var r=e.parent.queue;var i=e.escaped;var o=[e.val];if(e.optimize===false){t=n.extend({},t,{optimize:false})}if(e.multiplier>1){e.parent.count*=e.multiplier}if(t.quantifiers===true&&n.isQuantifier(e.val)){i=true}else if(e.val.length>1){if(isType(e.parent,"brace")&&!isEscaped(e)){var s=n.expand(e.val,t);o=s.segs;if(s.isOptimized){e.parent.isOptimized=true}if(!o.length){var a=s.val||e.val;if(t.unescape!==false){a=a.replace(/\\([,.])/g,"$1");a=a.replace(/["'`]/g,"")}o=[a];i=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);o=[""]}else{o=["|"]}}else{i=true}if(i&&isType(e.parent,"brace")){if(e.parent.nodes.length<=4&&e.parent.count===1){e.parent.escaped=true}else if(e.parent.length<=3){e.parent.escaped=true}}if(!hasQueue(e.parent)){e.parent.queue=o;return}var u=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){u=multiply(u,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(u),o.shift()));r.push.apply(r,o)}).set("brace.close",function(e){var r=e.parent.queue;var i=e.parent.parent;var o=i.queue.pop();var s=e.parent.open;var a=e.val;if(s&&a&&isOptimized(e,t)){s="(";a=")"}var u=n.last(r);if(e.parent.count>1&&t.expand){u=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(u)}if(a&&typeof u==="string"&&u.length===1){s="";a=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(s,r.pop()||""));r=n.flatten(n.join(r,a))}if(typeof o==="undefined"){i.queue=[r]}else{i.queue.push(n.flatten(n.join(o,r)))}}).set("eos",function(e){if(this.input)return;if(t.optimize!==false){this.output=n.last(n.flatten(this.ast.queue))}else if(Array.isArray(n.last(this.ast.queue))){this.output=n.flatten(this.ast.queue.pop())}else{this.output=n.flatten(this.ast.queue)}if(e.parent.count>1&&t.expand){this.output=multiply(this.output,e.parent.count)}this.output=n.arrayify(this.output);this.ast.queue=[]})};function multiply(e,t,r){return n.flatten(n.repeat(n.arrayify(e),t))}function isEscaped(e){return e.escaped===true}function isOptimized(e,t){if(e.parent.isOptimized)return true;return isType(e.parent,"brace")&&!isEscaped(e.parent)&&t.expand!==true}function isLiteralBrace(e,t){return isEscaped(e.parent)||t.optimize!==false}function noInner(e,t){if(e.parent.queue.length===1){return true}var r=e.parent.nodes;return r.length===3&&isType(r[0],"brace.open")&&!isType(r[1],"text")&&isType(r[2],"brace.close")}function isType(e,t){return typeof e!=="undefined"&&e.type===t}function hasQueue(e){return Array.isArray(e.queue)&&e.queue.length}},2829:(e,t,r)=>{"use strict";var n=r(5244);var i=r(5207);e.exports=function(e,t){e.parser.set("bos",function(){if(!this.parsed){this.ast=this.nodes[0]=new n(this.ast)}}).set("escape",function(){var e=this.position();var r=this.match(/^(?:\\(.)|\$\{)/);if(!r)return;var o=this.prev();var s=i.last(o.nodes);var a=e(new n({type:"text",multiplier:1,val:r[0]}));if(a.val==="\\\\"){return a}if(a.val==="${"){var u=this.input;var c=-1;var f;while(f=u[++c]){this.consume(1);a.val+=f;if(f==="\\"){a.val+=u[++c];continue}if(f==="}"){break}}}if(this.options.unescape!==false){a.val=a.val.replace(/\\([{}])/g,"$1")}if(s.val==='"'&&this.input.charAt(0)==='"'){s.val=a.val;this.consume(1);return}return concatNodes.call(this,e,a,o,t)}).set("bracket",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^(?:\[([!^]?)([^\]]{2,}|\]-)(\]|[^*+?]+)|\[)/);if(!r)return;var i=this.prev();var o=r[0];var s=r[1]?"^":"";var a=r[2]||"";var u=r[3]||"";if(e&&i.type==="brace"){i.text=i.text||"";i.text+=o}var c=this.input.slice(0,2);if(a===""&&c==="\\]"){a+=c;this.consume(2);var f=this.input;var l=-1;var p;while(p=f[++l]){this.consume(1);if(p==="]"){u=p;break}a+=p}}return t(new n({type:"bracket",val:o,escaped:u!=="]",negated:s,inner:a,close:u}))}).set("multiplier",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^\{((?:,|\{,+\})+)\}/);if(!i)return;this.multiplier=true;var o=this.prev();var s=i[0];if(e&&o.type==="brace"){o.text=o.text||"";o.text+=s}var a=r(new n({type:"text",multiplier:1,match:i,val:s}));return concatNodes.call(this,r,a,o,t)}).set("brace.open",function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var o=i.last(r.nodes);if(o&&o.val&&isExtglobChar(o.val.slice(-1))){o.optimize=false}var s=e(new n({type:"brace.open",val:t[0]}));var a=e(new n({type:"brace",nodes:[]}));a.push(s);r.push(a);this.push("brace",a)}).set("brace.close",function(){var e=this.position();var t=this.match(/^\}/);if(!t||!t[0])return;var r=this.pop("brace");var o=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}o.type="text";o.multiplier=0;o.escaped=true;return o}var s=this.prev();var a=i.last(s.nodes);if(a.text){var u=i.last(a.nodes);if(u.val===")"&&/[!@*?+]\(/.test(a.text)){var c=a.nodes[0];var f=a.nodes[1];if(c.type==="brace.open"&&f&&f.type==="text"){f.optimize=false}}}if(r.nodes.length>2){var l=r.nodes[1];if(l.type==="text"&&l.val===","){r.nodes.splice(1,1);r.nodes.push(l)}}r.push(o)}).set("boundary",function(){var e=this.position();var t=this.match(/^[$^](?!\{)/);if(!t)return;return e(new n({type:"text",val:t[0]}))}).set("nobrace",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^\{[^,]?\}/);if(!r)return;var i=this.prev();var o=r[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=o}return t(new n({type:"text",multiplier:0,val:o}))}).set("text",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^((?!\\)[^${}[\]])+/);if(!i)return;var o=this.prev();var s=i[0];if(e&&o.type==="brace"){o.text=o.text||"";o.text+=s}var a=r(new n({type:"text",multiplier:1,val:s}));return concatNodes.call(this,r,a,o,t)})};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var o=this.prev();var s=i.last(o.nodes);var a=false;if(t.val.length>1){var u=t.val.charAt(0);var c=t.val.slice(-1);a=u==='"'&&c==='"'||u==="'"&&c==="'"||u==="`"&&c==="`"}if(a&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var f=t.match[1];if(!f||f.indexOf("}")===-1){f=t.match[0]}var l=f.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=l.length;t.val=""}var p=s.type==="text"&&s.multiplier===1&&t.multiplier===1&&t.val;if(p){s.val+=t.val;return}o.push(t)}},5207:(e,t,r)=>{"use strict";var n=r(4960);var i=e.exports;i.extend=r(7512);i.flatten=r(7493);i.isObject=r(5509);i.fillRange=r(6330);i.repeat=r(3301);i.unique=r(340);i.define=function(e,t,r){Object.defineProperty(e,t,{writable:true,configurable:true,enumerable:false,value:r})};i.isEmptySets=function(e){return/^(?:\{,\})+$/.test(e)};i.isQuotedString=function(e){var t=e.charAt(0);if(t==="'"||t==='"'||t==="`"){return e.slice(-1)===t}return false};i.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}var n=Object.keys(t);for(var i=0;i<n.length;i++){var o=n[i];r+=";"+o+"="+String(t[o])}return r};i.createOptions=function(e){var t=i.extend.apply(null,arguments);if(typeof t.expand==="boolean"){t.optimize=!t.expand}if(typeof t.optimize==="boolean"){t.expand=!t.optimize}if(t.optimize===true){t.makeRe=true}return t};i.join=function(e,t,r){r=r||{};e=i.arrayify(e);t=i.arrayify(t);if(!e.length)return t;if(!t.length)return e;var n=e.length;var o=-1;var s=[];while(++o<n){var a=e[o];if(Array.isArray(a)){for(var u=0;u<a.length;u++){a[u]=i.join(a[u],t,r)}s.push(a);continue}for(var c=0;c<t.length;c++){var f=t[c];if(Array.isArray(f)){s.push(i.join(a,f,r))}else{s.push(a+f)}}}return s};i.split=function(e,t){var r=i.extend({sep:","},t);if(typeof r.keepQuotes!=="boolean"){r.keepQuotes=true}if(r.unescape===false){r.keepEscaping=true}return n(e,r,i.escapeBrackets(r))};i.expand=function(e,t){var r=i.extend({rangeLimit:1e4},t);var n=i.split(e,r);var o={segs:n};if(i.isQuotedString(e)){return o}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){o.val=n[0];return o}o.segs=i.stringifyArray(o.segs)}else if(n.length===1){var s=e.split("..");if(s.length===1){o.val=o.segs[o.segs.length-1]||o.val||e;o.segs=[];return o}if(s.length===2&&s[0]===s[1]){o.escaped=true;o.val=s[0];o.segs=[];return o}if(s.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var a=Math.min(s[0],s[1]);var u=Math.max(s[0],s[1]);var c=s[2]||1;if(r.rangeLimit!==false&&(u-a)/c>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}s.push(r);o.segs=i.fillRange.apply(null,s);if(!o.segs.length){o.escaped=true;o.val=e;return o}if(r.optimize===true){o.segs=i.stringifyArray(o.segs)}if(o.segs===""){o.val=e}else{o.val=o.segs[0]}return o}}else{o.val=e}return o};i.escapeBrackets=function(e){return function(t){if(t.escaped&&t.val==="b"){t.val="\\b";return}if(t.val!=="("&&t.val!=="[")return;var r=i.extend({},e);var n=[];var o=[];var s=[];var a=t.val;var u=t.str;var c=t.idx-1;while(++c<u.length){var f=u[c];if(f==="\\"){a+=(r.keepEscaping===false?"":f)+u[++c];continue}if(f==="("){o.push(f);s.push(f)}if(f==="["){n.push(f);s.push(f)}if(f===")"){o.pop();s.pop();if(!s.length){a+=f;break}}if(f==="]"){n.pop();s.pop();if(!s.length){a+=f;break}}a+=f}t.split=false;t.val=a.slice(1);t.idx=c}};i.isQuantifier=function(e){return/^(?:[0-9]?,[0-9]|[0-9],)$/.test(e)};i.stringifyArray=function(e){return[i.arrayify(e).join("|")]};i.arrayify=function(e){if(typeof e==="undefined"){return[]}if(typeof e==="string"){return[e]}return e};i.isString=function(e){return e!=null&&typeof e==="string"};i.last=function(e,t){return e[e.length-(t||1)]};i.escapeRegex=function(e){return e.replace(/\\?([!^*?()[\]{}+?/])/g,"\\$1")}},4365:(e,t,r)=>{"use strict";var n=r(5509);var i=r(6172);var o=r(3434);var s=r(8636);var a=r(7303);var u=r(1571);var c=r(9611);var f=r(8887);var l=r(4269);function namespace(e){function Cache(t){if(e){this[e]={}}if(t){this.set(t)}}i(Cache.prototype);Cache.prototype.set=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=s(t)}if(n(t)||Array.isArray(t)){this.visit("set",t)}else{l(e?this[e]:this,t,r);this.emit("set",t,r)}return this};Cache.prototype.union=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=s(t)}var n=e?this[e]:this;a(n,t,arrayify(r));this.emit("union",r);return this};Cache.prototype.get=function(t){t=s(arguments);var r=e?this[e]:this;var n=c(r,t);this.emit("get",t,n);return n};Cache.prototype.has=function(t){t=s(arguments);var r=e?this[e]:this;var n=c(r,t);var i=typeof n!=="undefined";this.emit("has",t,i);return i};Cache.prototype.del=function(t){if(Array.isArray(t)){this.visit("del",t)}else{u(e?this[e]:this,t);this.emit("del",t)}return this};Cache.prototype.clear=function(){if(e){this[e]={}}};Cache.prototype.visit=function(e,t){o(this,e,t);return this};return Cache}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}e.exports=namespace();e.exports.namespace=namespace},9581:e=>{"use strict";var t=global.process&&process.nextTick||global.setImmediate||function(e){setTimeout(e,0)};e.exports=function maybe(e,r){if(e){r.then(function(r){t(function(){e(null,r)})},function(r){t(function(){e(r)})});return undefined}else{return r}}},1362:e=>{"use strict";const t=e=>{let t=false;let r=false;let n=false;for(let i=0;i<e.length;i++){const o=e[i];if(t&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o){e=e.slice(0,i)+"-"+e.slice(i);t=false;n=r;r=true;i++}else if(r&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o){e=e.slice(0,i-1)+"-"+e.slice(i-1);n=r;r=false;t=true}else{t=o.toLowerCase()===o&&o.toUpperCase()!==o;n=r;r=o.toUpperCase()===o&&o.toLowerCase()!==o}}return e};const r=(e,r)=>{if(!(typeof e==="string"||Array.isArray(e))){throw new TypeError("Expected the input to be `string | string[]`")}r=Object.assign({pascalCase:false},r);const n=e=>r.pascalCase?e.charAt(0).toUpperCase()+e.slice(1):e;if(Array.isArray(e)){e=e.map(e=>e.trim()).filter(e=>e.length).join("-")}else{e=e.trim()}if(e.length===0){return""}if(e.length===1){return r.pascalCase?e.toUpperCase():e.toLowerCase()}const i=e!==e.toLowerCase();if(i){e=t(e)}e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(e,t)=>t.toUpperCase()).replace(/\d+(\w|$)/g,e=>e.toUpperCase());return n(e)};e.exports=r;e.exports.default=r},8818:(e,t,r)=>{"use strict";const n=r(2068);const{stdout:i,stderr:o}=r(9318);const{stringReplaceAll:s,stringEncaseCRLFWithFirstIndex:a}=r(2415);const{isArray:u}=Array;const c=["ansi","ansi","ansi256","ansi16m"];const f=Object.create(null);const l=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const r=i?i.level:0;e.level=t.level===undefined?r:t.level};class ChalkClass{constructor(e){return p(e)}}const p=e=>{const t={};l(t,e);t.template=((...e)=>b(t.template,...e));Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});t.template.Instance=ChalkClass;return t.template};function Chalk(e){return p(e)}for(const[e,t]of Object.entries(n)){f[e]={get(){const r=g(this,y(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}f.visible={get(){const e=g(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of h){f[e]={get(){const{level:t}=this;return function(...r){const i=y(n.color[c[t]][e](...r),n.color.close,this._styler);return g(this,i,this._isEmpty)}}}}for(const e of h){const t="bg"+e[0].toUpperCase()+e.slice(1);f[t]={get(){const{level:t}=this;return function(...r){const i=y(n.bgColor[c[t]][e](...r),n.bgColor.close,this._styler);return g(this,i,this._isEmpty)}}}}const d=Object.defineProperties(()=>{},{...f,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const y=(e,t,r)=>{let n;let i;if(r===undefined){n=e;i=t}else{n=r.openAll+e;i=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:i,parent:r}};const g=(e,t,r)=>{const n=(...e)=>{if(u(e[0])&&u(e[0].raw)){return v(n,b(n,...e))}return v(n,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(n,d);n._generator=e;n._styler=t;n._isEmpty=r;return n};const v=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let r=e._styler;if(r===undefined){return t}const{openAll:n,closeAll:i}=r;if(t.indexOf("")!==-1){while(r!==undefined){t=s(t,r.close,r.open);r=r.parent}}const o=t.indexOf("\n");if(o!==-1){t=a(t,i,n,o)}return n+t+i};let m;const b=(e,...t)=>{const[n]=t;if(!u(n)||!u(n.raw)){return t.join(" ")}const i=t.slice(1);const o=[n.raw[0]];for(let e=1;e<n.length;e++){o.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]))}if(m===undefined){m=r(500)}return m(e,o.join(""))};Object.defineProperties(Chalk.prototype,f);const D=Chalk();D.supportsColor=i;D.stderr=Chalk({level:o?o.level:0});D.stderr.supportsColor=o;e.exports=D},500:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let s;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){r.push(o)}else if(s=t.match(n)){r.push(s[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}e.exports=((e,r)=>{const n=[];const i=[];let o=[];r.replace(t,(t,r,s,a,u,c)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:s,styles:parseStyle(a)})}else if(u){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(c)}});i.push(o.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},2415:e=>{"use strict";const t=(e,t,r)=>{let n=e.indexOf(t);if(n===-1){return e}const i=t.length;let o=0;let s="";do{s+=e.substr(o,n-o)+t+r;o=n+i;n=e.indexOf(t,o)}while(n!==-1);s+=e.substr(o);return s};const r=(e,t,r,n)=>{let i=0;let o="";do{const s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?"\r\n":"\n")+r;i=n+1;n=e.indexOf("\n",i)}while(n!==-1);o+=e.substr(i);return o};e.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:r}},274:(e,t,r)=>{"use strict";var n=r(1669);var i=r(8815);var o=r(6967);var s=r(9480);var a=r(5509);var u=e.exports;u.isObject=function isObject(e){return a(e)||typeof e==="function"};u.has=function has(e,t){t=u.arrayify(t);var r=t.length;if(u.isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var i=u.nativeKeys(e);return u.has(i,t)}if(Array.isArray(e)){var o=e;while(r--){if(o.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")};u.hasAll=function hasAll(e,t){t=u.arrayify(t);var r=t.length;while(r--){if(!u.has(e,t[r])){return false}}return true};u.arrayify=function arrayify(e){return e?Array.isArray(e)?e:[e]:[]};u.noop=function noop(){return};u.identity=function identity(e){return e};u.hasConstructor=function hasConstructor(e){return u.isObject(e)&&typeof e.constructor!=="undefined"};u.nativeKeys=function nativeKeys(e){if(!u.hasConstructor(e))return[];var t=Object.getOwnPropertyNames(e);if("caller"in e)t.push("caller");return t};u.getDescriptor=function getDescriptor(e,t){if(!u.isObject(e)){throw new TypeError("expected an object.")}if(typeof t!=="string"){throw new TypeError("expected key to be a string.")}return Object.getOwnPropertyDescriptor(e,t)};u.copyDescriptor=function copyDescriptor(e,t,r){if(!u.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!u.isObject(t)){throw new TypeError("expected providing object to be an object.")}if(typeof r!=="string"){throw new TypeError("expected name to be a string.")}var n=u.getDescriptor(t,r);if(n)Object.defineProperty(e,r,n)};u.copy=function copy(e,t,r){if(!u.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!u.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=Object.getOwnPropertyNames(t);var i=Object.keys(t);var s=n.length,a;r=u.arrayify(r);while(s--){a=n[s];if(u.has(i,a)){o(e,a,t[a])}else if(!(a in e)&&!u.has(r,a)){u.copyDescriptor(e,t,a)}}};u.inherit=function inherit(e,t,r){if(!u.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!u.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=[];for(var i in t){n.push(i);e[i]=t[i]}n=n.concat(u.arrayify(r));var o=t.prototype||t;var s=e.prototype||e;u.copy(s,o,n)};u.extend=function(){return s.apply(null,arguments)};u.bubble=function(e,t){t=t||[];e.bubble=function(r,n){if(Array.isArray(n)){t=i([],t,n)}var o=t.length;var s=-1;while(++s<o){var a=t[s];e.on(a,r.emit.bind(r,a))}u.bubble(r,t)}}},7972:(e,t,r)=>{"use strict";const n=r(2087);const i=/\s+at.*(?:\(|\s)(.*)\)?/;const o=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;const s=typeof n.homedir==="undefined"?"":n.homedir();e.exports=((e,t)=>{t=Object.assign({pretty:false},t);return e.replace(/\\/g,"/").split("\n").filter(e=>{const t=e.match(i);if(t===null||!t[1]){return true}const r=t[1];if(r.includes(".app/Contents/Resources/electron.asar")||r.includes(".app/Contents/Resources/default_app.asar")){return false}return!o.test(r)}).filter(e=>e.trim()!=="").map(e=>{if(t.pretty){return e.replace(i,(e,t)=>e.replace(t,t.replace(s,"~")))}return e}).join("\n")})},6096:(e,t,r)=>{"use strict";const n=r(2577);const i=r(5591);const o=r(9824);const s={right:alignRight,center:alignCenter};const a=0;const u=1;const c=2;const f=3;class UI{constructor(e){this.width=e.width;this.wrap=e.wrap;this.rows=[]}span(...e){const t=this.div(...e);t.span=true}resetOutput(){this.rows=[]}div(...e){if(e.length===0){this.div("")}if(this.wrap&&this._shouldApplyLayoutDSL(...e)){return this._applyLayoutDSL(e[0])}const t=e.map(e=>{if(typeof e==="string"){return this._colFromString(e)}return e});this.rows.push(t);return t}_shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==="string"&&/[\t\n]/.test(e[0])}_applyLayoutDSL(e){const t=e.split("\n").map(e=>e.split("\t"));let r=0;t.forEach(e=>{if(e.length>1&&n(e[0])>r){r=Math.min(Math.floor(this.width*.5),n(e[0]))}});t.forEach(e=>{this.div(...e.map((t,n)=>{return{text:t.trim(),padding:this._measurePadding(t),width:n===0&&e.length>1?r:undefined}}))});return this.rows[this.rows.length-1]}_colFromString(e){return{text:e,padding:this._measurePadding(e)}}_measurePadding(e){const t=i(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){const e=[];this.rows.forEach(t=>{this.rowToString(t,e)});return e.filter(e=>!e.hidden).map(e=>e.text).join("\n")}rowToString(e,t){this._rasterize(e).forEach((r,i)=>{let o="";r.forEach((r,a)=>{const{width:c}=e[a];const l=this._negatePadding(e[a]);let p=r;if(l>n(r)){p+=" ".repeat(l-n(r))}if(e[a].align&&e[a].align!=="left"&&this.wrap){p=s[e[a].align](p,l);if(n(p)<l){p+=" ".repeat(c-n(p)-1)}}const h=e[a].padding||[0,0,0,0];if(h[f]){o+=" ".repeat(h[f])}o+=addBorder(e[a],p,"| ");o+=p;o+=addBorder(e[a],p," |");if(h[u]){o+=" ".repeat(h[u])}if(i===0&&t.length>0){o=this._renderInline(o,t[t.length-1])}});t.push({text:o.replace(/ +$/,""),span:e.span})});return t}_renderInline(e,t){const r=e.match(/^ */)[0].length;const i=t.text;const o=n(i.trimRight());if(!t.span){return e}if(!this.wrap){t.hidden=true;return i+e}if(r<o){return e}t.hidden=true;return i.trimRight()+" ".repeat(r-o)+e.trimLeft()}_rasterize(e){const t=[];const r=this._columnWidths(e);let n;e.forEach((e,i)=>{e.width=r[i];if(this.wrap){n=o(e.text,this._negatePadding(e),{hard:true}).split("\n")}else{n=e.text.split("\n")}if(e.border){n.unshift("."+"-".repeat(this._negatePadding(e)+2)+".");n.push("'"+"-".repeat(this._negatePadding(e)+2)+"'")}if(e.padding){n.unshift(...new Array(e.padding[a]||0).fill(""));n.push(...new Array(e.padding[c]||0).fill(""))}n.forEach((e,r)=>{if(!t[r]){t.push([])}const n=t[r];for(let e=0;e<i;e++){if(n[e]===undefined){n.push("")}}n.push(e)})});return t}_negatePadding(e){let t=e.width;if(e.padding){t-=(e.padding[f]||0)+(e.padding[u]||0)}if(e.border){t-=4}return t}_columnWidths(e){if(!this.wrap){return e.map(e=>{return e.width||n(e.text)})}let t=e.length;let r=this.width;const i=e.map(e=>{if(e.width){t--;r-=e.width;return e.width}return undefined});const o=t?Math.floor(r/t):0;return i.map((t,r)=>{if(t===undefined){return Math.max(o,_minWidth(e[r]))}return t})}}function addBorder(e,t,r){if(e.border){if(/[.']-+[.']/.test(t)){return""}if(t.trim().length!==0){return r}return" "}return""}function _minWidth(e){const t=e.padding||[];const r=1+(t[f]||0)+(t[u]||0);if(e.border){return r+4}return r}function getWindowWidth(){if(typeof process==="object"&&process.stdout&&process.stdout.columns){return process.stdout.columns}}function alignRight(e,t){e=e.trim();const r=n(e);if(r<t){return" ".repeat(t-r)+e}return e}function alignCenter(e,t){e=e.trim();const r=n(e);if(r>=t){return e}return" ".repeat(t-r>>1)+e}e.exports=function(e={}){return new UI({width:e.width||getWindowWidth()||80,wrap:e.wrap!==false})}},3434:(e,t,r)=>{"use strict";var n=r(3178);var i=r(2144);e.exports=function(e,t,r){var o;if(typeof r==="string"&&t in e){var s=[].slice.call(arguments,2);o=e[t].apply(e,s)}else if(Array.isArray(r)){o=i.apply(null,arguments)}else{o=n.apply(null,arguments)}if(typeof o!=="undefined"){return o}return e}},7391:(e,t,r)=>{const n=r(8510);const i={};for(const e of Object.keys(n)){i[n[e]]=e}const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{chann