create-steedos-app 2.5.16 → 2.5.17-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@
41
41
  *
42
42
  * Copyright (c) 2015, Jon Schlinkert.
43
43
  * Licensed under the MIT License.
44
- */e.exports=function copyDescriptor(e,t,r,n){if(!isObject(t)&&typeof t!=="function"){n=r;r=t;t=e}if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected the first argument to be an object")}if(!isObject(t)&&typeof t!=="function"){throw new TypeError("expected provider to be an object")}if(typeof n!=="string"){n=r}if(typeof r!=="string"){throw new TypeError("expected key to be a string")}if(!(r in t)){throw new Error('property "'+r+'" does not exist')}var i=Object.getOwnPropertyDescriptor(t,r);if(i)Object.defineProperty(e,n,i)};function isObject(e){return{}.toString.call(e)==="[object Object]"}},5473:(e,t,r)=>{"use strict";const n=r(3783);class CpFileError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpFileError"}}e.exports=CpFileError},6711:(e,t,r)=>{"use strict";const n=r(552);const i=r(7153);const s=r(470);const o=r(5473);const a=s(n);t.closeSync=n.closeSync.bind(n);t.createWriteStream=n.createWriteStream.bind(n);t.createReadStream=(e,t)=>new Promise(((r,i)=>{const s=n.createReadStream(e,t);s.once("error",(t=>{i(new o(`Cannot read from \`${e}\`: ${t.message}`,t))}));s.once("readable",(()=>{r(s)}));s.once("end",(()=>{r(s)}))}));t.stat=e=>a.stat(e).catch((t=>{throw new o(`Cannot stat path \`${e}\`: ${t.message}`,t)}));t.lstat=e=>a.lstat(e).catch((t=>{throw new o(`lstat \`${e}\` failed: ${t.message}`,t)}));t.utimes=(e,t,r)=>a.utimes(e,t,r).catch((t=>{throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}));t.chmod=(e,t)=>a.chmod(e,t).catch((t=>{throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}));t.chown=(e,t,r)=>a.chown(e,t,r).catch((t=>{throw new o(`chown \`${e}\` failed: ${t.message}`,t)}));t.openSync=(e,t,r)=>{try{return n.openSync(e,t,r)}catch(r){if(t.includes("w")){throw new o(`Cannot write to \`${e}\`: ${r.message}`,r)}throw new o(`Cannot open \`${e}\`: ${r.message}`,r)}};t.readSync=(e,t,r,i,s,a)=>{try{return n.readSync(e,t,r,i,s)}catch(e){throw new o(`Cannot read from \`${a}\`: ${e.message}`,e)}};t.writeSync=(e,t,r,i,s,a)=>{try{return n.writeSync(e,t,r,i,s)}catch(e){throw new o(`Cannot write to \`${a}\`: ${e.message}`,e)}};t.statSync=e=>{try{return n.statSync(e)}catch(t){throw new o(`stat \`${e}\` failed: ${t.message}`,t)}};t.fstatSync=(e,t)=>{try{return n.fstatSync(e)}catch(e){throw new o(`fstat \`${t}\` failed: ${e.message}`,e)}};t.futimesSync=(e,t,r,i)=>{try{return n.futimesSync(e,t,r,i)}catch(e){throw new o(`futimes \`${i}\` failed: ${e.message}`,e)}};t.utimesSync=(e,t,r)=>{try{return n.utimesSync(e,t,r)}catch(t){throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}};t.chmodSync=(e,t)=>{try{return n.chmodSync(e,t)}catch(t){throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}};t.chownSync=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(t){throw new o(`chown \`${e}\` failed: ${t.message}`,t)}};t.makeDir=e=>i(e,{fs:n}).catch((t=>{throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}));t.makeDirSync=e=>{try{i.sync(e,{fs:n})}catch(t){throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}};if(n.copyFileSync){t.copyFileSync=(e,t,r)=>{try{n.copyFileSync(e,t,r)}catch(r){throw new o(`Cannot copy from \`${e}\` to \`${t}\`: ${r.message}`,r)}}}},5784:(e,t,r)=>{"use strict";const n=r(1017);const{constants:i}=r(7147);const{Buffer:s}=r(3118);const o=r(5473);const a=r(6711);const c=r(4956);const cpFile=(e,t,r)=>{if(!e||!t){return Promise.reject(new o("`source` and `destination` required"))}r=Object.assign({overwrite:true},r);const i=new c(n.resolve(e),n.resolve(t));const s=a.stat(e).then((e=>{i.size=e.size})).then((()=>a.createReadStream(e))).then((e=>a.makeDir(n.dirname(t)).then((()=>e)))).then((e=>new Promise(((n,s)=>{const c=a.createWriteStream(t,{flags:r.overwrite?"w":"wx"});e.on("data",(()=>{i.written=c.bytesWritten}));c.on("error",(e=>{if(!r.overwrite&&e.code==="EEXIST"){n(false);return}s(new o(`Cannot write to \`${t}\`: ${e.message}`,e))}));c.on("close",(()=>{i.written=i.size;n(true)}));e.pipe(c)})))).then((r=>{if(r){return a.lstat(e).then((e=>Promise.all([a.utimes(t,e.atime,e.mtime),a.chmod(t,e.mode),a.chown(t,e.uid,e.gid)])))}}));s.on=(...e)=>{i.on(...e);return s};return s};e.exports=cpFile;e.exports["default"]=cpFile;const checkSourceIsFile=(e,t)=>{if(e.isDirectory()){throw Object.assign(new o(`EISDIR: illegal operation on a directory '${t}'`),{errno:-21,code:"EISDIR",source:t})}};const fixupAttributes=(e,t)=>{a.chmodSync(e,t.mode);a.chownSync(e,t.uid,t.gid)};const copySyncNative=(e,t,r)=>{const s=a.statSync(e);checkSourceIsFile(s,e);a.makeDirSync(n.dirname(t));const o=r.overwrite?null:i.COPYFILE_EXCL;try{a.copyFileSync(e,t,o)}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}a.utimesSync(t,s.atime,s.mtime);fixupAttributes(t,s)};const copySyncFallback=(e,t,r)=>{let i;let o;let c;let u;const l=100*1024;const h=s.alloc(l);const readSync=t=>a.readSync(c,h,0,l,t,e);const writeSync=()=>a.writeSync(u,h,0,i,undefined,t);c=a.openSync(e,"r");i=readSync(0);o=i;a.makeDirSync(n.dirname(t));try{u=a.openSync(t,r.overwrite?"w":"wx")}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}writeSync();while(i===l){i=readSync(o);writeSync();o+=i}const p=a.fstatSync(c,e);a.futimesSync(u,p.atime,p.mtime,t);a.closeSync(c);a.closeSync(u);fixupAttributes(t,p)};e.exports.sync=(e,t,r)=>{if(!e||!t){throw new o("`source` and `destination` required")}r=Object.assign({overwrite:true},r);if(a.copyFileSync){copySyncNative(e,t,r)}else{copySyncFallback(e,t,r)}}},470:e=>{"use strict";const processFn=(e,t)=>function(...r){const n=t.promiseModule;return new n(((n,i)=>{if(t.multiArgs){r.push(((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();n(e)}}else{n(e)}}))}else if(t.errorFirst){r.push(((e,t)=>{if(e){i(e)}else{n(t)}}))}else{r.push(n)}e.apply(this,r)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const r=typeof e;if(!(e!==null&&(r==="object"||r==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``)}const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(r==="function"){n=function(...r){return t.excludeMain?e(...r):processFn(e,t).apply(this,r)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const r in e){const i=e[r];n[r]=typeof i==="function"&&filter(r)?processFn(i,t):i}return n}},4956:(e,t,r)=>{"use strict";const n=r(2361);const i=new WeakMap;class ProgressEmitter extends n{constructor(e,t){super();this._source=e;this._destination=t}set written(e){i.set(this,e);this.emitProgress()}get written(){return i.get(this)}emitProgress(){const{size:e,written:t}=this;this.emit("progress",{src:this._source,dest:this._destination,size:e,written:t,percent:t===e?1:t/e})}}e.exports=ProgressEmitter},4542:(e,t,r)=>{"use strict";const n=r(3783);class CpyError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpyError"}}e.exports=CpyError},402:(e,t,r)=>{"use strict";const n=r(2361);const i=r(1017);const s=r(1827);const o=r(1317);const a=r(5784);const c=r(4542);const preprocessSrcPath=(e,t)=>t.cwd?i.resolve(t.cwd,e):e;const preprocessDestPath=(e,t,r)=>{let n=i.basename(e);const s=i.dirname(e);if(typeof r.rename==="string"){n=r.rename}else if(typeof r.rename==="function"){n=r.rename(n)}if(r.cwd){t=i.resolve(r.cwd,t)}if(r.parents){return i.join(t,s,n)}return i.join(t,n)};const cpy=(e,t,r={})=>{e=s(e);const i=new n;if(e.length===0||!t){const e=Promise.reject(new c("`files` and `destination` required"));e.on=(...t)=>{i.on(...t);return e};return e}const u=new Map;let l=0;let h=0;const p=o(e,r).catch((t=>{throw new c(`Cannot glob \`${e}\`: ${t.message}`,t)})).then((e=>{if(e.length===0){i.emit("progress",{totalFiles:0,percent:1,completedFiles:0,completedSize:0})}return Promise.all(e.map((n=>{const s=preprocessSrcPath(n,r);const o=preprocessDestPath(n,t,r);return a(s,o,r).on("progress",(t=>{const r=u.get(t.src)||{written:0,percent:0};if(r.written!==t.written||r.percent!==t.percent){h-=r.written;h+=t.written;if(t.percent===1&&r.percent!==1){l++}u.set(t.src,{written:t.written,percent:t.percent});i.emit("progress",{totalFiles:e.length,percent:l/e.length,completedFiles:l,completedSize:h})}})).then((()=>o)).catch((e=>{throw new c(`Cannot copy from \`${s}\` to \`${o}\`: ${e.message}`,e)}))})))}));p.on=(...e)=>{i.on(...e);return p};return p};e.exports=cpy;e.exports["default"]=cpy},7857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7147);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},5567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5917);const i=r(4943);function stat(e,t){return new Promise(((r,s)=>{i.async(e,n.prepare(t),((e,t)=>e?s(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},5917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7857);function prepare(e){const t=Object.assign({fs:n.getFileSystemAdapter(e?e.fs:undefined),throwErrorOnBrokenSymlinks:true,followSymlinks:true},e);return t}t.prepare=prepare},4943:(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 r=t.fs.statSync(e);r.isSymbolicLink=()=>true;return r}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},5852:(e,t,r)=>{"use strict";var n=r(5838);e.exports=function(){return n([].concat.apply([],arguments))}},5838: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}},6021:(e,t,r)=>{"use strict";var n=r(2325);var i=r(68);var s=r(2456);var o=r(844);var a=r(8228);var c=r(1583);var u=r(8682);var l=1024*64;var h={};function braces(e,t){var r=u.createKey(String(e),t);var n=[];var s=t&&t.cache===false;if(!s&&h.hasOwnProperty(r)){return h[r]}if(Array.isArray(e)){for(var o=0;o<e.length;o++){n.push.apply(n,braces.create(e[o],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=i(n)}if(!s){h[r]=n}return n}braces.expand=function(e,t){return braces.create(e,s({},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||l;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(u.isEmptySets(e)){return[]}if(u.isQuotedString(e)){return[e.slice(1,-1)]}var r=new c(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var s=n.output;if(t&&t.noempty===true){s=s.filter(Boolean)}if(t&&t.nodupes===true){s=i(s)}Object.defineProperty(s,"result",{enumerable:false,value:n});return s}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||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var i=s({strictErrors:false},t);return n(r,i)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new c(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new c(t);return r.compile(e,t)};braces.clearCache=function(){h=braces.cache={}};function memoize(e,t,r,n){var i=u.createKey(e+":"+t,r);var s=r&&r.cache===false;if(s){braces.clearCache();return n(t,r)}if(h.hasOwnProperty(i)){return h[i]}var o=n(t,r);h[i]=o;return o}braces.Braces=c;braces.compilers=o;braces.parsers=a;braces.cache=h;e.exports=braces},1583:(e,t,r)=>{"use strict";var n=r(2456);var i=r(4253);var s=r(844);var o=r(8228);var a=r(8682);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;s(this.snapdragon,t);o(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},844:(e,t,r)=>{"use strict";var n=r(8682);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 s=e.inner;s=s.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(s==="]-"){s="\\]\\-"}if(i&&s.indexOf(".")===-1){s+="."}if(i&&s.indexOf("/")===-1){s+="/"}var o=r+i+s+t;var a=e.parent.queue;var c=n.arrayify(a.pop());a.push(n.join(c,o));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 s=[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 o=n.expand(e.val,t);s=o.segs;if(o.isOptimized){e.parent.isOptimized=true}if(!s.length){var a=o.val||e.val;if(t.unescape!==false){a=a.replace(/\\([,.])/g,"$1");a=a.replace(/["'`]/g,"")}s=[a];i=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);s=[""]}else{s=["|"]}}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=s;return}var c=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){c=multiply(c,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(c),s.shift()));r.push.apply(r,s)})).set("brace.close",(function(e){var r=e.parent.queue;var i=e.parent.parent;var s=i.queue.pop();var o=e.parent.open;var a=e.val;if(o&&a&&isOptimized(e,t)){o="(";a=")"}var c=n.last(r);if(e.parent.count>1&&t.expand){c=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(c)}if(a&&typeof c==="string"&&c.length===1){o="";a=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(o,r.pop()||""));r=n.flatten(n.join(r,a))}if(typeof s==="undefined"){i.queue=[r]}else{i.queue.push(n.flatten(n.join(s,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}},8228:(e,t,r)=>{"use strict";var n=r(6227);var i=r(8682);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 s=this.prev();var o=i.last(s.nodes);var a=e(new n({type:"text",multiplier:1,val:r[0]}));if(a.val==="\\\\"){return a}if(a.val==="${"){var c=this.input;var u=-1;var l;while(l=c[++u]){this.consume(1);a.val+=l;if(l==="\\"){a.val+=c[++u];continue}if(l==="}"){break}}}if(this.options.unescape!==false){a.val=a.val.replace(/\\([{}])/g,"$1")}if(o.val==='"'&&this.input.charAt(0)==='"'){o.val=a.val;this.consume(1);return}return concatNodes.call(this,e,a,s,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 s=r[0];var o=r[1]?"^":"";var a=r[2]||"";var c=r[3]||"";if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}var u=this.input.slice(0,2);if(a===""&&u==="\\]"){a+=u;this.consume(2);var l=this.input;var h=-1;var p;while(p=l[++h]){this.consume(1);if(p==="]"){c=p;break}a+=p}}return t(new n({type:"bracket",val:s,escaped:c!=="]",negated:o,inner:a,close:c}))})).set("multiplier",(function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^\{((?:,|\{,+\})+)\}/);if(!i)return;this.multiplier=true;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,match:i,val:o}));return concatNodes.call(this,r,a,s,t)})).set("brace.open",(function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var s=i.last(r.nodes);if(s&&s.val&&isExtglobChar(s.val.slice(-1))){s.optimize=false}var o=e(new n({type:"brace.open",val:t[0]}));var a=e(new n({type:"brace",nodes:[]}));a.push(o);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 s=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}s.type="text";s.multiplier=0;s.escaped=true;return s}var o=this.prev();var a=i.last(o.nodes);if(a.text){var c=i.last(a.nodes);if(c.val===")"&&/[!@*?+]\(/.test(a.text)){var u=a.nodes[0];var l=a.nodes[1];if(u.type==="brace.open"&&l&&l.type==="text"){l.optimize=false}}}if(r.nodes.length>2){var h=r.nodes[1];if(h.type==="text"&&h.val===","){r.nodes.splice(1,1);r.nodes.push(h)}}r.push(s)})).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 s=r[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}return t(new n({type:"text",multiplier:0,val:s}))})).set("text",(function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^((?!\\)[^${}[\]])+/);if(!i)return;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,val:o}));return concatNodes.call(this,r,a,s,t)}))};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var s=this.prev();var o=i.last(s.nodes);var a=false;if(t.val.length>1){var c=t.val.charAt(0);var u=t.val.slice(-1);a=c==='"'&&u==='"'||c==="'"&&u==="'"||c==="`"&&u==="`"}if(a&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var l=t.match[1];if(!l||l.indexOf("}")===-1){l=t.match[0]}var h=l.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=h.length;t.val=""}var p=o.type==="text"&&o.multiplier===1&&t.multiplier===1&&t.val;if(p){o.val+=t.val;return}s.push(t)}},8682:(e,t,r)=>{"use strict";var n=r(4178);var i=e.exports;i.extend=r(2456);i.flatten=r(9108);i.isObject=r(7328);i.fillRange=r(7692);i.repeat=r(9503);i.unique=r(68);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 s=n[i];r+=";"+s+"="+String(t[s])}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 s=-1;var o=[];while(++s<n){var a=e[s];if(Array.isArray(a)){for(var c=0;c<a.length;c++){a[c]=i.join(a[c],t,r)}o.push(a);continue}for(var u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){o.push(i.join(a,l,r))}else{o.push(a+l)}}}return o};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 s={segs:n};if(i.isQuotedString(e)){return s}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){s.val=n[0];return s}s.segs=i.stringifyArray(s.segs)}else if(n.length===1){var o=e.split("..");if(o.length===1){s.val=s.segs[s.segs.length-1]||s.val||e;s.segs=[];return s}if(o.length===2&&o[0]===o[1]){s.escaped=true;s.val=o[0];s.segs=[];return s}if(o.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var a=Math.min(o[0],o[1]);var c=Math.max(o[0],o[1]);var u=o[2]||1;if(r.rangeLimit!==false&&(c-a)/u>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}o.push(r);s.segs=i.fillRange.apply(null,o);if(!s.segs.length){s.escaped=true;s.val=e;return s}if(r.optimize===true){s.segs=i.stringifyArray(s.segs)}if(s.segs===""){s.val=e}else{s.val=s.segs[0]}return s}}else{s.val=e}return s};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 s=[];var o=[];var a=t.val;var c=t.str;var u=t.idx-1;while(++u<c.length){var l=c[u];if(l==="\\"){a+=(r.keepEscaping===false?"":l)+c[++u];continue}if(l==="("){s.push(l);o.push(l)}if(l==="["){n.push(l);o.push(l)}if(l===")"){s.pop();o.pop();if(!o.length){a+=l;break}}if(l==="]"){n.pop();o.pop();if(!o.length){a+=l;break}}a+=l}t.split=false;t.val=a.slice(1);t.idx=u}};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")}},2456:(e,t,r)=>{"use strict";var n=r(2663);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},2663:e=>{"use strict";
44
+ */e.exports=function copyDescriptor(e,t,r,n){if(!isObject(t)&&typeof t!=="function"){n=r;r=t;t=e}if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected the first argument to be an object")}if(!isObject(t)&&typeof t!=="function"){throw new TypeError("expected provider to be an object")}if(typeof n!=="string"){n=r}if(typeof r!=="string"){throw new TypeError("expected key to be a string")}if(!(r in t)){throw new Error('property "'+r+'" does not exist')}var i=Object.getOwnPropertyDescriptor(t,r);if(i)Object.defineProperty(e,n,i)};function isObject(e){return{}.toString.call(e)==="[object Object]"}},5473:(e,t,r)=>{"use strict";const n=r(3783);class CpFileError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpFileError"}}e.exports=CpFileError},6711:(e,t,r)=>{"use strict";const n=r(552);const i=r(7153);const s=r(9367);const o=r(5473);const a=s(n);t.closeSync=n.closeSync.bind(n);t.createWriteStream=n.createWriteStream.bind(n);t.createReadStream=(e,t)=>new Promise(((r,i)=>{const s=n.createReadStream(e,t);s.once("error",(t=>{i(new o(`Cannot read from \`${e}\`: ${t.message}`,t))}));s.once("readable",(()=>{r(s)}));s.once("end",(()=>{r(s)}))}));t.stat=e=>a.stat(e).catch((t=>{throw new o(`Cannot stat path \`${e}\`: ${t.message}`,t)}));t.lstat=e=>a.lstat(e).catch((t=>{throw new o(`lstat \`${e}\` failed: ${t.message}`,t)}));t.utimes=(e,t,r)=>a.utimes(e,t,r).catch((t=>{throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}));t.chmod=(e,t)=>a.chmod(e,t).catch((t=>{throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}));t.chown=(e,t,r)=>a.chown(e,t,r).catch((t=>{throw new o(`chown \`${e}\` failed: ${t.message}`,t)}));t.openSync=(e,t,r)=>{try{return n.openSync(e,t,r)}catch(r){if(t.includes("w")){throw new o(`Cannot write to \`${e}\`: ${r.message}`,r)}throw new o(`Cannot open \`${e}\`: ${r.message}`,r)}};t.readSync=(e,t,r,i,s,a)=>{try{return n.readSync(e,t,r,i,s)}catch(e){throw new o(`Cannot read from \`${a}\`: ${e.message}`,e)}};t.writeSync=(e,t,r,i,s,a)=>{try{return n.writeSync(e,t,r,i,s)}catch(e){throw new o(`Cannot write to \`${a}\`: ${e.message}`,e)}};t.statSync=e=>{try{return n.statSync(e)}catch(t){throw new o(`stat \`${e}\` failed: ${t.message}`,t)}};t.fstatSync=(e,t)=>{try{return n.fstatSync(e)}catch(e){throw new o(`fstat \`${t}\` failed: ${e.message}`,e)}};t.futimesSync=(e,t,r,i)=>{try{return n.futimesSync(e,t,r,i)}catch(e){throw new o(`futimes \`${i}\` failed: ${e.message}`,e)}};t.utimesSync=(e,t,r)=>{try{return n.utimesSync(e,t,r)}catch(t){throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}};t.chmodSync=(e,t)=>{try{return n.chmodSync(e,t)}catch(t){throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}};t.chownSync=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(t){throw new o(`chown \`${e}\` failed: ${t.message}`,t)}};t.makeDir=e=>i(e,{fs:n}).catch((t=>{throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}));t.makeDirSync=e=>{try{i.sync(e,{fs:n})}catch(t){throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}};if(n.copyFileSync){t.copyFileSync=(e,t,r)=>{try{n.copyFileSync(e,t,r)}catch(r){throw new o(`Cannot copy from \`${e}\` to \`${t}\`: ${r.message}`,r)}}}},5784:(e,t,r)=>{"use strict";const n=r(1017);const{constants:i}=r(7147);const{Buffer:s}=r(3118);const o=r(5473);const a=r(6711);const c=r(4956);const cpFile=(e,t,r)=>{if(!e||!t){return Promise.reject(new o("`source` and `destination` required"))}r=Object.assign({overwrite:true},r);const i=new c(n.resolve(e),n.resolve(t));const s=a.stat(e).then((e=>{i.size=e.size})).then((()=>a.createReadStream(e))).then((e=>a.makeDir(n.dirname(t)).then((()=>e)))).then((e=>new Promise(((n,s)=>{const c=a.createWriteStream(t,{flags:r.overwrite?"w":"wx"});e.on("data",(()=>{i.written=c.bytesWritten}));c.on("error",(e=>{if(!r.overwrite&&e.code==="EEXIST"){n(false);return}s(new o(`Cannot write to \`${t}\`: ${e.message}`,e))}));c.on("close",(()=>{i.written=i.size;n(true)}));e.pipe(c)})))).then((r=>{if(r){return a.lstat(e).then((e=>Promise.all([a.utimes(t,e.atime,e.mtime),a.chmod(t,e.mode),a.chown(t,e.uid,e.gid)])))}}));s.on=(...e)=>{i.on(...e);return s};return s};e.exports=cpFile;e.exports["default"]=cpFile;const checkSourceIsFile=(e,t)=>{if(e.isDirectory()){throw Object.assign(new o(`EISDIR: illegal operation on a directory '${t}'`),{errno:-21,code:"EISDIR",source:t})}};const fixupAttributes=(e,t)=>{a.chmodSync(e,t.mode);a.chownSync(e,t.uid,t.gid)};const copySyncNative=(e,t,r)=>{const s=a.statSync(e);checkSourceIsFile(s,e);a.makeDirSync(n.dirname(t));const o=r.overwrite?null:i.COPYFILE_EXCL;try{a.copyFileSync(e,t,o)}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}a.utimesSync(t,s.atime,s.mtime);fixupAttributes(t,s)};const copySyncFallback=(e,t,r)=>{let i;let o;let c;let u;const l=100*1024;const h=s.alloc(l);const readSync=t=>a.readSync(c,h,0,l,t,e);const writeSync=()=>a.writeSync(u,h,0,i,undefined,t);c=a.openSync(e,"r");i=readSync(0);o=i;a.makeDirSync(n.dirname(t));try{u=a.openSync(t,r.overwrite?"w":"wx")}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}writeSync();while(i===l){i=readSync(o);writeSync();o+=i}const p=a.fstatSync(c,e);a.futimesSync(u,p.atime,p.mtime,t);a.closeSync(c);a.closeSync(u);fixupAttributes(t,p)};e.exports.sync=(e,t,r)=>{if(!e||!t){throw new o("`source` and `destination` required")}r=Object.assign({overwrite:true},r);if(a.copyFileSync){copySyncNative(e,t,r)}else{copySyncFallback(e,t,r)}}},4956:(e,t,r)=>{"use strict";const n=r(2361);const i=new WeakMap;class ProgressEmitter extends n{constructor(e,t){super();this._source=e;this._destination=t}set written(e){i.set(this,e);this.emitProgress()}get written(){return i.get(this)}emitProgress(){const{size:e,written:t}=this;this.emit("progress",{src:this._source,dest:this._destination,size:e,written:t,percent:t===e?1:t/e})}}e.exports=ProgressEmitter},4542:(e,t,r)=>{"use strict";const n=r(3783);class CpyError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpyError"}}e.exports=CpyError},402:(e,t,r)=>{"use strict";const n=r(2361);const i=r(1017);const s=r(1827);const o=r(1317);const a=r(5784);const c=r(4542);const preprocessSrcPath=(e,t)=>t.cwd?i.resolve(t.cwd,e):e;const preprocessDestPath=(e,t,r)=>{let n=i.basename(e);const s=i.dirname(e);if(typeof r.rename==="string"){n=r.rename}else if(typeof r.rename==="function"){n=r.rename(n)}if(r.cwd){t=i.resolve(r.cwd,t)}if(r.parents){return i.join(t,s,n)}return i.join(t,n)};const cpy=(e,t,r={})=>{e=s(e);const i=new n;if(e.length===0||!t){const e=Promise.reject(new c("`files` and `destination` required"));e.on=(...t)=>{i.on(...t);return e};return e}const u=new Map;let l=0;let h=0;const p=o(e,r).catch((t=>{throw new c(`Cannot glob \`${e}\`: ${t.message}`,t)})).then((e=>{if(e.length===0){i.emit("progress",{totalFiles:0,percent:1,completedFiles:0,completedSize:0})}return Promise.all(e.map((n=>{const s=preprocessSrcPath(n,r);const o=preprocessDestPath(n,t,r);return a(s,o,r).on("progress",(t=>{const r=u.get(t.src)||{written:0,percent:0};if(r.written!==t.written||r.percent!==t.percent){h-=r.written;h+=t.written;if(t.percent===1&&r.percent!==1){l++}u.set(t.src,{written:t.written,percent:t.percent});i.emit("progress",{totalFiles:e.length,percent:l/e.length,completedFiles:l,completedSize:h})}})).then((()=>o)).catch((e=>{throw new c(`Cannot copy from \`${s}\` to \`${o}\`: ${e.message}`,e)}))})))}));p.on=(...e)=>{i.on(...e);return p};return p};e.exports=cpy;e.exports["default"]=cpy},7857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7147);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},5567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5917);const i=r(4943);function stat(e,t){return new Promise(((r,s)=>{i.async(e,n.prepare(t),((e,t)=>e?s(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},5917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7857);function prepare(e){const t=Object.assign({fs:n.getFileSystemAdapter(e?e.fs:undefined),throwErrorOnBrokenSymlinks:true,followSymlinks:true},e);return t}t.prepare=prepare},4943:(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 r=t.fs.statSync(e);r.isSymbolicLink=()=>true;return r}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},5852:(e,t,r)=>{"use strict";var n=r(5838);e.exports=function(){return n([].concat.apply([],arguments))}},5838: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}},6021:(e,t,r)=>{"use strict";var n=r(2325);var i=r(68);var s=r(2456);var o=r(844);var a=r(8228);var c=r(1583);var u=r(8682);var l=1024*64;var h={};function braces(e,t){var r=u.createKey(String(e),t);var n=[];var s=t&&t.cache===false;if(!s&&h.hasOwnProperty(r)){return h[r]}if(Array.isArray(e)){for(var o=0;o<e.length;o++){n.push.apply(n,braces.create(e[o],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=i(n)}if(!s){h[r]=n}return n}braces.expand=function(e,t){return braces.create(e,s({},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||l;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(u.isEmptySets(e)){return[]}if(u.isQuotedString(e)){return[e.slice(1,-1)]}var r=new c(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var s=n.output;if(t&&t.noempty===true){s=s.filter(Boolean)}if(t&&t.nodupes===true){s=i(s)}Object.defineProperty(s,"result",{enumerable:false,value:n});return s}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||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var i=s({strictErrors:false},t);return n(r,i)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new c(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new c(t);return r.compile(e,t)};braces.clearCache=function(){h=braces.cache={}};function memoize(e,t,r,n){var i=u.createKey(e+":"+t,r);var s=r&&r.cache===false;if(s){braces.clearCache();return n(t,r)}if(h.hasOwnProperty(i)){return h[i]}var o=n(t,r);h[i]=o;return o}braces.Braces=c;braces.compilers=o;braces.parsers=a;braces.cache=h;e.exports=braces},1583:(e,t,r)=>{"use strict";var n=r(2456);var i=r(4253);var s=r(844);var o=r(8228);var a=r(8682);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;s(this.snapdragon,t);o(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},844:(e,t,r)=>{"use strict";var n=r(8682);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 s=e.inner;s=s.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(s==="]-"){s="\\]\\-"}if(i&&s.indexOf(".")===-1){s+="."}if(i&&s.indexOf("/")===-1){s+="/"}var o=r+i+s+t;var a=e.parent.queue;var c=n.arrayify(a.pop());a.push(n.join(c,o));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 s=[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 o=n.expand(e.val,t);s=o.segs;if(o.isOptimized){e.parent.isOptimized=true}if(!s.length){var a=o.val||e.val;if(t.unescape!==false){a=a.replace(/\\([,.])/g,"$1");a=a.replace(/["'`]/g,"")}s=[a];i=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);s=[""]}else{s=["|"]}}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=s;return}var c=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){c=multiply(c,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(c),s.shift()));r.push.apply(r,s)})).set("brace.close",(function(e){var r=e.parent.queue;var i=e.parent.parent;var s=i.queue.pop();var o=e.parent.open;var a=e.val;if(o&&a&&isOptimized(e,t)){o="(";a=")"}var c=n.last(r);if(e.parent.count>1&&t.expand){c=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(c)}if(a&&typeof c==="string"&&c.length===1){o="";a=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(o,r.pop()||""));r=n.flatten(n.join(r,a))}if(typeof s==="undefined"){i.queue=[r]}else{i.queue.push(n.flatten(n.join(s,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}},8228:(e,t,r)=>{"use strict";var n=r(6227);var i=r(8682);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 s=this.prev();var o=i.last(s.nodes);var a=e(new n({type:"text",multiplier:1,val:r[0]}));if(a.val==="\\\\"){return a}if(a.val==="${"){var c=this.input;var u=-1;var l;while(l=c[++u]){this.consume(1);a.val+=l;if(l==="\\"){a.val+=c[++u];continue}if(l==="}"){break}}}if(this.options.unescape!==false){a.val=a.val.replace(/\\([{}])/g,"$1")}if(o.val==='"'&&this.input.charAt(0)==='"'){o.val=a.val;this.consume(1);return}return concatNodes.call(this,e,a,s,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 s=r[0];var o=r[1]?"^":"";var a=r[2]||"";var c=r[3]||"";if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}var u=this.input.slice(0,2);if(a===""&&u==="\\]"){a+=u;this.consume(2);var l=this.input;var h=-1;var p;while(p=l[++h]){this.consume(1);if(p==="]"){c=p;break}a+=p}}return t(new n({type:"bracket",val:s,escaped:c!=="]",negated:o,inner:a,close:c}))})).set("multiplier",(function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^\{((?:,|\{,+\})+)\}/);if(!i)return;this.multiplier=true;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,match:i,val:o}));return concatNodes.call(this,r,a,s,t)})).set("brace.open",(function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var s=i.last(r.nodes);if(s&&s.val&&isExtglobChar(s.val.slice(-1))){s.optimize=false}var o=e(new n({type:"brace.open",val:t[0]}));var a=e(new n({type:"brace",nodes:[]}));a.push(o);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 s=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}s.type="text";s.multiplier=0;s.escaped=true;return s}var o=this.prev();var a=i.last(o.nodes);if(a.text){var c=i.last(a.nodes);if(c.val===")"&&/[!@*?+]\(/.test(a.text)){var u=a.nodes[0];var l=a.nodes[1];if(u.type==="brace.open"&&l&&l.type==="text"){l.optimize=false}}}if(r.nodes.length>2){var h=r.nodes[1];if(h.type==="text"&&h.val===","){r.nodes.splice(1,1);r.nodes.push(h)}}r.push(s)})).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 s=r[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}return t(new n({type:"text",multiplier:0,val:s}))})).set("text",(function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^((?!\\)[^${}[\]])+/);if(!i)return;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,val:o}));return concatNodes.call(this,r,a,s,t)}))};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var s=this.prev();var o=i.last(s.nodes);var a=false;if(t.val.length>1){var c=t.val.charAt(0);var u=t.val.slice(-1);a=c==='"'&&u==='"'||c==="'"&&u==="'"||c==="`"&&u==="`"}if(a&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var l=t.match[1];if(!l||l.indexOf("}")===-1){l=t.match[0]}var h=l.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=h.length;t.val=""}var p=o.type==="text"&&o.multiplier===1&&t.multiplier===1&&t.val;if(p){o.val+=t.val;return}s.push(t)}},8682:(e,t,r)=>{"use strict";var n=r(4178);var i=e.exports;i.extend=r(2456);i.flatten=r(9108);i.isObject=r(7328);i.fillRange=r(7692);i.repeat=r(9503);i.unique=r(68);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 s=n[i];r+=";"+s+"="+String(t[s])}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 s=-1;var o=[];while(++s<n){var a=e[s];if(Array.isArray(a)){for(var c=0;c<a.length;c++){a[c]=i.join(a[c],t,r)}o.push(a);continue}for(var u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){o.push(i.join(a,l,r))}else{o.push(a+l)}}}return o};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 s={segs:n};if(i.isQuotedString(e)){return s}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){s.val=n[0];return s}s.segs=i.stringifyArray(s.segs)}else if(n.length===1){var o=e.split("..");if(o.length===1){s.val=s.segs[s.segs.length-1]||s.val||e;s.segs=[];return s}if(o.length===2&&o[0]===o[1]){s.escaped=true;s.val=o[0];s.segs=[];return s}if(o.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var a=Math.min(o[0],o[1]);var c=Math.max(o[0],o[1]);var u=o[2]||1;if(r.rangeLimit!==false&&(c-a)/u>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}o.push(r);s.segs=i.fillRange.apply(null,o);if(!s.segs.length){s.escaped=true;s.val=e;return s}if(r.optimize===true){s.segs=i.stringifyArray(s.segs)}if(s.segs===""){s.val=e}else{s.val=s.segs[0]}return s}}else{s.val=e}return s};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 s=[];var o=[];var a=t.val;var c=t.str;var u=t.idx-1;while(++u<c.length){var l=c[u];if(l==="\\"){a+=(r.keepEscaping===false?"":l)+c[++u];continue}if(l==="("){s.push(l);o.push(l)}if(l==="["){n.push(l);o.push(l)}if(l===")"){s.pop();o.pop();if(!o.length){a+=l;break}}if(l==="]"){n.pop();o.pop();if(!o.length){a+=l;break}}a+=l}t.split=false;t.val=a.slice(1);t.idx=u}};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")}},2456:(e,t,r)=>{"use strict";var n=r(2663);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},2663:e=>{"use strict";
45
45
  /*!
46
46
  * is-extendable <https://github.com/jonschlinkert/is-extendable>
47
47
  *
@@ -72,19 +72,19 @@
72
72
  * Copyright (c) 2014-2016, Jon Schlinkert.
73
73
  * Licensed under the MIT License.
74
74
  */
75
- var n=r(6546);e.exports=function isGlob(e){if(typeof e!=="string"||e===""){return false}if(n(e))return true;var t=/(\\).|([*?]|\[.*\]|\{.*\}|\(.*\|.*\)|^!)/;var r;while(r=t.exec(e)){if(r[2])return true;e=e.slice(r.index+r[0].length)}return false}},3926:(e,t,r)=>{"use strict";const n=r(7147);const i=r(1017);const s=r(81);const o=r(9321);const a=r(1153);const c=r(3761);const u=["**/node_modules/**","**/bower_components/**","**/flow-typed/**","**/coverage/**","**/.git"];const l=a(n.readFile);const mapGitIgnorePatternTo=e=>t=>{if(t.startsWith("!")){return"!"+i.posix.join(e,t.slice(1))}return i.posix.join(e,t)};const parseGitIgnore=(e,t)=>{const r=c(i.relative(t.cwd,i.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter((e=>e.charAt(0)!=="#")).map(mapGitIgnorePatternTo(r))};const reduceIgnore=e=>e.reduce(((e,t)=>{e.add(parseGitIgnore(t.content,{cwd:t.cwd,fileName:t.filePath}));return e}),o());const getIsIgnoredPredecate=(e,t)=>r=>e.ignores(c(i.relative(t,r)));const getFile=(e,t)=>{const r=i.join(t,e);return l(r,"utf8").then((e=>({content:e,cwd:t,filePath:r})))};const getFileSync=(e,t)=>{const r=i.join(t,e);const s=n.readFileSync(r,"utf8");return{content:s,cwd:t,filePath:r}};const normalizeOptions=(e={})=>{const t=e.ignore||[];const r=e.cwd||process.cwd();return{ignore:t,cwd:r}};e.exports=e=>{e=normalizeOptions(e);return s("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd}).then((t=>Promise.all(t.map((t=>getFile(t,e.cwd)))))).then((e=>reduceIgnore(e))).then((t=>getIsIgnoredPredecate(t,e.cwd)))};e.exports.sync=e=>{e=normalizeOptions(e);const t=s.sync("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=t.map((t=>getFileSync(t,e.cwd)));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,e.cwd)}},1317:(e,t,r)=>{"use strict";const n=r(7147);const i=r(5852);const s=r(3700);const o=r(81);const a=r(4061);const c=r(3926);const DEFAULT_FILTER=()=>false;const isNegative=e=>e[0]==="!";const assertPatternsInput=e=>{if(!e.every((e=>typeof e==="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const checkCwdOption=e=>{if(e&&e.cwd&&!n.statSync(e.cwd).isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const generateGlobTasks=(e,t)=>{e=i([].concat(e));assertPatternsInput(e);checkCwdOption(t);const r=[];t=Object.assign({ignore:[],expandDirectories:true},t);e.forEach(((n,i)=>{if(isNegative(n)){return}const s=e.slice(i).filter(isNegative).map((e=>e.slice(1)));const o=Object.assign({},t,{ignore:t.ignore.concat(s)});r.push({pattern:n,options:o})}));return r};const globDirs=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r=Object.assign(r,{files:e.options.expandDirectories})}else if(typeof e.options.expandDirectories==="object"){r=Object.assign(r,e.options.expandDirectories)}return t(e.pattern,r)};const getPattern=(e,t)=>e.options.expandDirectories?globDirs(e,t):[e.pattern];const globToTask=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:t,options:r}};const globby=(e,t)=>{let r;try{r=generateGlobTasks(e,t)}catch(e){return Promise.reject(e)}const n=Promise.all(r.map((e=>Promise.resolve(getPattern(e,a)).then((t=>Promise.all(t.map(globToTask(e)))))))).then((e=>i(...e)));const getFilter=()=>Promise.resolve(t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER);return getFilter().then((e=>n.then((e=>Promise.all(e.map((e=>o(e.pattern,e.options)))))).then((e=>i(...e))).then((t=>t.filter((t=>!e(t)))))))};e.exports=globby;e.exports["default"]=globby;e.exports.sync=(e,t)=>{const r=generateGlobTasks(e,t);const getFilter=()=>t&&t.gitignore?c.sync({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER;const n=r.reduce(((e,t)=>{const r=getPattern(t,a.sync).map(globToTask(t));return e.concat(r)}),[]);const s=getFilter();return n.reduce(((e,t)=>i(e,o.sync(t.pattern,t.options))),[]).filter((e=>!s(e)))};e.exports.generateGlobTasks=generateGlobTasks;e.exports.hasMagic=(e,t)=>[].concat(e).some((e=>s.hasMagic(e,t)));e.exports.gitignore=c},9321:e=>{function make_array(e){return Array.isArray(e)?e:[e]}const t=/^\s+$/;const r=/^\\!/;const n=/^\\#/;const i="/";const s=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const define=(e,t,r)=>Object.defineProperty(e,t,{value:r});const o=/([0-z])-([0-z])/g;const sanitizeRange=e=>e.replace(o,((e,t,r)=>t.charCodeAt(0)<=r.charCodeAt(0)?e:""));const a=[[/\\?\s+$/,e=>e.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,e=>`\\${e}`],[/\[([^\]/]*)($|\])/g,(e,t,r)=>r==="]"?`[${sanitizeRange(t)}]`:`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"]];const c=[[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(e,t)=>`${t}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const u=[...a,[/(?:[^*/])$/,e=>`${e}(?=$|\\/)`],...c];const l=[...a,[/(?:[^*])$/,e=>`${e}(?=$|\\/$)`],...c];const h=Object.create(null);const make_regex=(e,t,r)=>{const n=h[e];if(n){return n}const i=t?l:u;const s=i.reduce(((t,r)=>t.replace(r[0],r[1].bind(e))),e);return h[e]=r?new RegExp(s,"i"):new RegExp(s)};const checkPattern=e=>e&&typeof e==="string"&&!t.test(e)&&e.indexOf("#")!==0;const createRule=(e,t)=>{const i=e;let s=false;if(e.indexOf("!")===0){s=true;e=e.substr(1)}e=e.replace(r,"!").replace(n,"#");const o=make_regex(e,s,t);return{origin:i,pattern:e,negative:s,regex:o}};class IgnoreBase{constructor({ignorecase:e=true}={}){this._rules=[];this._ignorecase=e;define(this,s,true);this._initCache()}_initCache(){this._cache=Object.create(null)}add(e){this._added=false;if(typeof e==="string"){e=e.split(/\r?\n/g)}make_array(e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[s]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(checkPattern(e)){const t=createRule(e,this._ignorecase);this._added=true;this._rules.push(t)}}filter(e){return make_array(e).filter((e=>this._filter(e)))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_filter(e,t){if(!e){return false}if(e in this._cache){return this._cache[e]}if(!t){t=e.split(i)}t.pop();return this._cache[e]=t.length?this._filter(t.join(i)+i,t)&&this._test(e):this._test(e)}_test(e){let t=0;this._rules.forEach((r=>{if(!(t^r.negative)){t=r.negative^r.regex.test(e)}}));return!t}}if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const e=IgnoreBase.prototype._filter;const make_posix=e=>/^\\\\\?\\/.test(e)||/[^\x00-\x80]+/.test(e)?e:e.replace(/\\/g,"/");IgnoreBase.prototype._filter=function filterWin32(t,r){t=make_posix(t);return e.call(this,t,r)}}e.exports=e=>new IgnoreBase(e)},3239:(e,t,r)=>{"use strict";
75
+ var n=r(6546);e.exports=function isGlob(e){if(typeof e!=="string"||e===""){return false}if(n(e))return true;var t=/(\\).|([*?]|\[.*\]|\{.*\}|\(.*\|.*\)|^!)/;var r;while(r=t.exec(e)){if(r[2])return true;e=e.slice(r.index+r[0].length)}return false}},3926:(e,t,r)=>{"use strict";const n=r(7147);const i=r(1017);const s=r(81);const o=r(9321);const a=r(9367);const c=r(3761);const u=["**/node_modules/**","**/bower_components/**","**/flow-typed/**","**/coverage/**","**/.git"];const l=a(n.readFile);const mapGitIgnorePatternTo=e=>t=>{if(t.startsWith("!")){return"!"+i.posix.join(e,t.slice(1))}return i.posix.join(e,t)};const parseGitIgnore=(e,t)=>{const r=c(i.relative(t.cwd,i.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter((e=>e.charAt(0)!=="#")).map(mapGitIgnorePatternTo(r))};const reduceIgnore=e=>e.reduce(((e,t)=>{e.add(parseGitIgnore(t.content,{cwd:t.cwd,fileName:t.filePath}));return e}),o());const getIsIgnoredPredecate=(e,t)=>r=>e.ignores(c(i.relative(t,r)));const getFile=(e,t)=>{const r=i.join(t,e);return l(r,"utf8").then((e=>({content:e,cwd:t,filePath:r})))};const getFileSync=(e,t)=>{const r=i.join(t,e);const s=n.readFileSync(r,"utf8");return{content:s,cwd:t,filePath:r}};const normalizeOptions=(e={})=>{const t=e.ignore||[];const r=e.cwd||process.cwd();return{ignore:t,cwd:r}};e.exports=e=>{e=normalizeOptions(e);return s("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd}).then((t=>Promise.all(t.map((t=>getFile(t,e.cwd)))))).then((e=>reduceIgnore(e))).then((t=>getIsIgnoredPredecate(t,e.cwd)))};e.exports.sync=e=>{e=normalizeOptions(e);const t=s.sync("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=t.map((t=>getFileSync(t,e.cwd)));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,e.cwd)}},1317:(e,t,r)=>{"use strict";const n=r(7147);const i=r(5852);const s=r(3700);const o=r(81);const a=r(4061);const c=r(3926);const DEFAULT_FILTER=()=>false;const isNegative=e=>e[0]==="!";const assertPatternsInput=e=>{if(!e.every((e=>typeof e==="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const checkCwdOption=e=>{if(e&&e.cwd&&!n.statSync(e.cwd).isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const generateGlobTasks=(e,t)=>{e=i([].concat(e));assertPatternsInput(e);checkCwdOption(t);const r=[];t=Object.assign({ignore:[],expandDirectories:true},t);e.forEach(((n,i)=>{if(isNegative(n)){return}const s=e.slice(i).filter(isNegative).map((e=>e.slice(1)));const o=Object.assign({},t,{ignore:t.ignore.concat(s)});r.push({pattern:n,options:o})}));return r};const globDirs=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r=Object.assign(r,{files:e.options.expandDirectories})}else if(typeof e.options.expandDirectories==="object"){r=Object.assign(r,e.options.expandDirectories)}return t(e.pattern,r)};const getPattern=(e,t)=>e.options.expandDirectories?globDirs(e,t):[e.pattern];const globToTask=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:t,options:r}};const globby=(e,t)=>{let r;try{r=generateGlobTasks(e,t)}catch(e){return Promise.reject(e)}const n=Promise.all(r.map((e=>Promise.resolve(getPattern(e,a)).then((t=>Promise.all(t.map(globToTask(e)))))))).then((e=>i(...e)));const getFilter=()=>Promise.resolve(t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER);return getFilter().then((e=>n.then((e=>Promise.all(e.map((e=>o(e.pattern,e.options)))))).then((e=>i(...e))).then((t=>t.filter((t=>!e(t)))))))};e.exports=globby;e.exports["default"]=globby;e.exports.sync=(e,t)=>{const r=generateGlobTasks(e,t);const getFilter=()=>t&&t.gitignore?c.sync({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER;const n=r.reduce(((e,t)=>{const r=getPattern(t,a.sync).map(globToTask(t));return e.concat(r)}),[]);const s=getFilter();return n.reduce(((e,t)=>i(e,o.sync(t.pattern,t.options))),[]).filter((e=>!s(e)))};e.exports.generateGlobTasks=generateGlobTasks;e.exports.hasMagic=(e,t)=>[].concat(e).some((e=>s.hasMagic(e,t)));e.exports.gitignore=c},9321:e=>{function make_array(e){return Array.isArray(e)?e:[e]}const t=/^\s+$/;const r=/^\\!/;const n=/^\\#/;const i="/";const s=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const define=(e,t,r)=>Object.defineProperty(e,t,{value:r});const o=/([0-z])-([0-z])/g;const sanitizeRange=e=>e.replace(o,((e,t,r)=>t.charCodeAt(0)<=r.charCodeAt(0)?e:""));const a=[[/\\?\s+$/,e=>e.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,e=>`\\${e}`],[/\[([^\]/]*)($|\])/g,(e,t,r)=>r==="]"?`[${sanitizeRange(t)}]`:`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"]];const c=[[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(e,t)=>`${t}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const u=[...a,[/(?:[^*/])$/,e=>`${e}(?=$|\\/)`],...c];const l=[...a,[/(?:[^*])$/,e=>`${e}(?=$|\\/$)`],...c];const h=Object.create(null);const make_regex=(e,t,r)=>{const n=h[e];if(n){return n}const i=t?l:u;const s=i.reduce(((t,r)=>t.replace(r[0],r[1].bind(e))),e);return h[e]=r?new RegExp(s,"i"):new RegExp(s)};const checkPattern=e=>e&&typeof e==="string"&&!t.test(e)&&e.indexOf("#")!==0;const createRule=(e,t)=>{const i=e;let s=false;if(e.indexOf("!")===0){s=true;e=e.substr(1)}e=e.replace(r,"!").replace(n,"#");const o=make_regex(e,s,t);return{origin:i,pattern:e,negative:s,regex:o}};class IgnoreBase{constructor({ignorecase:e=true}={}){this._rules=[];this._ignorecase=e;define(this,s,true);this._initCache()}_initCache(){this._cache=Object.create(null)}add(e){this._added=false;if(typeof e==="string"){e=e.split(/\r?\n/g)}make_array(e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[s]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(checkPattern(e)){const t=createRule(e,this._ignorecase);this._added=true;this._rules.push(t)}}filter(e){return make_array(e).filter((e=>this._filter(e)))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_filter(e,t){if(!e){return false}if(e in this._cache){return this._cache[e]}if(!t){t=e.split(i)}t.pop();return this._cache[e]=t.length?this._filter(t.join(i)+i,t)&&this._test(e):this._test(e)}_test(e){let t=0;this._rules.forEach((r=>{if(!(t^r.negative)){t=r.negative^r.regex.test(e)}}));return!t}}if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const e=IgnoreBase.prototype._filter;const make_posix=e=>/^\\\\\?\\/.test(e)||/[^\x00-\x80]+/.test(e)?e:e.replace(/\\/g,"/");IgnoreBase.prototype._filter=function filterWin32(t,r){t=make_posix(t);return e.call(this,t,r)}}e.exports=e=>new IgnoreBase(e)},3239:(e,t,r)=>{"use strict";
76
76
  /*!
77
77
  * is-extendable <https://github.com/jonschlinkert/is-extendable>
78
78
  *
79
79
  * Copyright (c) 2015-2017, Jon Schlinkert.
80
80
  * Released under the MIT License.
81
- */var n=r(8263);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},1227:(e,t,r)=>{"use strict";var n=r(3837);var i=r(6021);var s=r(2325);var o=r(2074);var a=r(5334);var c=r(9034);var u=r(3389);var l=r(1262);var h=1024*64;function micromatch(e,t,r){t=l.arrayify(t);e=l.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return micromatch.match(e,t[0],r)}var i=[];var s=[];var o=-1;while(++o<n){var a=t[o];if(typeof a==="string"&&a.charCodeAt(0)===33){i.push.apply(i,micromatch.match(e,a.slice(1),r))}else{s.push.apply(s,micromatch.match(e,a,r))}}var c=l.diff(s,i);if(!r||r.nodupes!==false){return l.unique(c)}return c}micromatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=l.unixify(r);var i=memoize("match",t,r,micromatch.matcher);var s=[];e=l.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||i(c)){s.push(l.value(c,n,r))}}if(typeof r==="undefined"){return l.unique(s)}if(s.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?l.unescape(t):t]}}if(r.ignore){s=micromatch.not(s,r.ignore,r)}return r.nodupes!==false?l.unique(s):s};micromatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(r);if(i(e)){return true}var s=memoize("isMatch",t,r,micromatch.matcher);return s(e)};micromatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length===1){return true}}return false};micromatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length!==1){return false}}return true};micromatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(micromatch.isMatch(e,t[i],r)){return true}}return false};micromatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!micromatch.isMatch(e,t[i],r)){return false}}return true};micromatch.not=function(e,t,r){var n=o({},r);var i=n.ignore;delete n.ignore;var s=l.unixify(n);e=l.arrayify(e).map(s);var a=l.diff(e,micromatch(e,t,n));if(i){a=l.diff(a,micromatch(e,i))}return n.nodupes!==false?l.unique(a):a};micromatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(t,r);if(i(e)){return true}var s=l.containsPattern(t,r);if(s(e)){return true}}var a=o({},r,{contains:true});return micromatch.any(e,t,a)};micromatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};micromatch.matchKeys=function(e,t,r){if(!l.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=micromatch(Object.keys(e),t,r);return l.pick(e,n)};micromatch.matcher=function matcher(e,t){if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!l.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!l.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return l.matchPath(e,t)}var r=micromatch.makeRe(e,t);if(micromatch.matchBase(e,t)){return l.matchBasename(r,t)}function test(e){var r=l.equalsPattern(t);var n=l.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);Object.defineProperty(n,"result",{configurable:true,enumerable:false,value:r.result});return n};micromatch.capture=function(e,t,r){var n=micromatch.makeRe(e,o({capture:true},r));var i=l.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var s=memoize("capture",e,r,match);return s(t)};micromatch.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>h){throw new Error("expected pattern to be less than "+h+" characters")}function makeRe(){var r=micromatch.create(e,t);var n=[];var i=r.map((function(e){e.ast.state=e.state;n.push(e.ast);return e.output}));var o=s(i.join("|"),t);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:n});return o}return memoize("makeRe",e,t,makeRe)};micromatch.braces=function(e,t){if(typeof e!=="string"&&!Array.isArray(e)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return l.arrayify(e)}return i(e,t)}return memoize("braces",e,t,expand)};micromatch.braceExpand=function(e,t){var r=o({},t,{expand:true});return micromatch.braces(e,r)};micromatch.create=function(e,t){return memoize("create",e,t,(function(){function create(e,t){return micromatch.compile(micromatch.parse(e,t),t)}e=micromatch.braces(e,t);var r=e.length;var n=-1;var i=[];while(++n<r){i.push(create(e[n],t))}return i}))};micromatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=l.instantiate(null,t);c(r,t);var n=r.parse(e,t);l.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};micromatch.compile=function(e,t){if(typeof e==="string"){e=micromatch.parse(e,t)}return memoize("compile",e.input,t,(function(){var r=l.instantiate(e,t);a(r,t);return r.compile(e,t)}))};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(e){return String(e)===""||String(e)==="./"}function compose(e,t,r){var n;return memoize("compose",String(e),t,(function(){return function(i){if(!n){n=[];for(var s=0;s<e.length;s++){n.push(r(e[s],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}}))}function memoize(e,t,r,n){var i=l.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(u.has(e,i)){return u.get(e,i)}var s=n(t,r);u.set(e,i,s);return s}micromatch.compilers=a;micromatch.parsers=c;micromatch.caches=u.caches;e.exports=micromatch},3389:(e,t,r)=>{e.exports=new(r(3096))},5334:(e,t,r)=>{"use strict";var n=r(1761);var i=r(9420);e.exports=function(e){var t=e.compiler.compilers;var r=e.options;e.use(n.compilers);var s=t.escape;var o=t.qmark;var a=t.slash;var c=t.star;var u=t.text;var l=t.plus;var h=t.dot;if(r.extglob===false||r.noext===true){e.compiler.use(escapeExtglobs)}else{e.use(i.compilers)}e.use((function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}}));e.compiler.set("dot",h).set("escape",s).set("plus",l).set("slash",a).set("qmark",o).set("star",c).set("text",u)};function escapeExtglobs(e){e.set("paren",(function(e){var t="";visit(e,(function(e){if(e.val)t+=(/^\W/.test(e.val)?"\\":"")+e.val}));return this.emit(t,e)}));function visit(e,t){return e.nodes?mapVisit(e.nodes,t):t(e)}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}}},9034:(e,t,r)=>{"use strict";var n=r(9420);var i=r(1761);var s=r(466);var o=r(2325);var a;var c="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var createNotRegex=function(e){return a||(a=textRegex(c))};e.exports=function(e){var t=e.parser.parsers;e.use(i.parsers);var r=t.escape;var s=t.slash;var o=t.qmark;var a=t.plus;var c=t.star;var u=t.dot;e.use(n.parsers);e.parser.use((function(){this.notRegex=/^\!+(?!\()/})).capture("escape",r).capture("slash",s).capture("qmark",o).capture("star",c).capture("plus",a).capture("dot",u).capture("text",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(createNotRegex(this.options));if(!t||!t[0])return;var r=t[0].replace(/([[\]^$])/g,"\\$1");return e({type:"text",val:r})}))};function textRegex(e){var t=s.create(e,{contains:true,strictClose:false});var r="(?:[\\^]|\\\\|";return o(r+t+")",{strictClose:false})}},1262:(e,t,r)=>{"use strict";var n=e.exports;var i=r(1017);var s=r(4253);n.define=r(7333);n.diff=r(6164);n.extend=r(2074);n.pick=r(7751);n.typeOf=r(9413);n.unique=r(68);n.isWindows=function(){return i.sep==="\\"||process.platform==="win32"};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new s(t)}n.define(r,"parse",(function(e,t){var r=s.prototype.parse.apply(this,arguments);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var o=i.nodes[0];var a=i.nodes[1];if(i.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{o.val="\\"+o.val;var c=o.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r}));return r};n.createKey=function(e,t){if(n.typeOf(t)!=="object"){return e}var r=e;var i=Object.keys(t);for(var s=0;s<i.length;s++){var o=i[s];r+=";"+o+"="+String(t[o])}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isObject=function(e){return n.typeOf(e)==="object"};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripPrefix=function(e){if(e.charAt(0)!=="."){return e}var t=e.charAt(1);if(n.isSlash(t)){return e.slice(2)}return e};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var s=n._equals(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var s=n._contains(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(i.basename(t))}};n.value=function(e,t,r){if(r&&r.unixify===false){return e}return t(e)};n.unixify=function(e){e=e||{};return function(t){if(n.isWindows()||e.unixify===true){t=n.toPosixPath(t)}if(e.stripPrefix!==false){t=n.stripPrefix(t)}if(e.unescape===true){t=n.unescape(t)}return t}}},1161:(e,t,r)=>{"use strict";const n=r(7147);const i=r(4473);function type(e,t,r){if(typeof r!=="string"){return Promise.reject(new TypeError(`Expected a string, got ${typeof r}`))}return i(n[e])(r).then((e=>e[t]())).catch((e=>{if(e.code==="ENOENT"){return false}throw e}))}function typeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return n[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.file=type.bind(null,"stat","isFile");t.dir=type.bind(null,"stat","isDirectory");t.symlink=type.bind(null,"lstat","isSymbolicLink");t.fileSync=typeSync.bind(null,"statSync","isFile");t.dirSync=typeSync.bind(null,"statSync","isDirectory");t.symlinkSync=typeSync.bind(null,"lstatSync","isSymbolicLink")},4473:e=>{"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e<arguments.length;e++){n[e]=arguments[e]}return new r(((r,i)=>{if(t.errorFirst){n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);i(t)}else{r(t)}}else if(e){i(e)}else{r(n)}}))}else{n.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}}))}e.apply(this,n)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const n in e){const i=e[n];r[n]=typeof i==="function"&&filter(n)?processFn(i,t):i}return r}},1153:e=>{"use strict";const processFn=(e,t)=>function(...r){const n=t.promiseModule;return new n(((n,i)=>{if(t.multiArgs){r.push(((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();n(e)}}else{n(e)}}))}else if(t.errorFirst){r.push(((e,t)=>{if(e){i(e)}else{n(t)}}))}else{r.push(n)}e.apply(this,r)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const r=typeof e;if(!(e!==null&&(r==="object"||r==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``)}const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(r==="function"){n=function(...r){return t.excludeMain?e(...r):processFn(e,t).apply(this,r)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const r in e){const i=e[r];n[r]=typeof i==="function"&&filter(r)?processFn(i,t):i}return n}},3761:e=>{"use strict";e.exports=e=>{const t=/^\\\\\?\\/.test(e);const r=/[^\u0000-\u0080]+/.test(e);if(t||r){return e}return e.replace(/\\/g,"/")}},1860:(e,t,r)=>{"use strict";
81
+ */var n=r(8263);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},1227:(e,t,r)=>{"use strict";var n=r(3837);var i=r(6021);var s=r(2325);var o=r(2074);var a=r(5334);var c=r(9034);var u=r(3389);var l=r(1262);var h=1024*64;function micromatch(e,t,r){t=l.arrayify(t);e=l.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return micromatch.match(e,t[0],r)}var i=[];var s=[];var o=-1;while(++o<n){var a=t[o];if(typeof a==="string"&&a.charCodeAt(0)===33){i.push.apply(i,micromatch.match(e,a.slice(1),r))}else{s.push.apply(s,micromatch.match(e,a,r))}}var c=l.diff(s,i);if(!r||r.nodupes!==false){return l.unique(c)}return c}micromatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=l.unixify(r);var i=memoize("match",t,r,micromatch.matcher);var s=[];e=l.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||i(c)){s.push(l.value(c,n,r))}}if(typeof r==="undefined"){return l.unique(s)}if(s.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?l.unescape(t):t]}}if(r.ignore){s=micromatch.not(s,r.ignore,r)}return r.nodupes!==false?l.unique(s):s};micromatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(r);if(i(e)){return true}var s=memoize("isMatch",t,r,micromatch.matcher);return s(e)};micromatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length===1){return true}}return false};micromatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length!==1){return false}}return true};micromatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(micromatch.isMatch(e,t[i],r)){return true}}return false};micromatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!micromatch.isMatch(e,t[i],r)){return false}}return true};micromatch.not=function(e,t,r){var n=o({},r);var i=n.ignore;delete n.ignore;var s=l.unixify(n);e=l.arrayify(e).map(s);var a=l.diff(e,micromatch(e,t,n));if(i){a=l.diff(a,micromatch(e,i))}return n.nodupes!==false?l.unique(a):a};micromatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(t,r);if(i(e)){return true}var s=l.containsPattern(t,r);if(s(e)){return true}}var a=o({},r,{contains:true});return micromatch.any(e,t,a)};micromatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};micromatch.matchKeys=function(e,t,r){if(!l.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=micromatch(Object.keys(e),t,r);return l.pick(e,n)};micromatch.matcher=function matcher(e,t){if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!l.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!l.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return l.matchPath(e,t)}var r=micromatch.makeRe(e,t);if(micromatch.matchBase(e,t)){return l.matchBasename(r,t)}function test(e){var r=l.equalsPattern(t);var n=l.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);Object.defineProperty(n,"result",{configurable:true,enumerable:false,value:r.result});return n};micromatch.capture=function(e,t,r){var n=micromatch.makeRe(e,o({capture:true},r));var i=l.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var s=memoize("capture",e,r,match);return s(t)};micromatch.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>h){throw new Error("expected pattern to be less than "+h+" characters")}function makeRe(){var r=micromatch.create(e,t);var n=[];var i=r.map((function(e){e.ast.state=e.state;n.push(e.ast);return e.output}));var o=s(i.join("|"),t);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:n});return o}return memoize("makeRe",e,t,makeRe)};micromatch.braces=function(e,t){if(typeof e!=="string"&&!Array.isArray(e)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return l.arrayify(e)}return i(e,t)}return memoize("braces",e,t,expand)};micromatch.braceExpand=function(e,t){var r=o({},t,{expand:true});return micromatch.braces(e,r)};micromatch.create=function(e,t){return memoize("create",e,t,(function(){function create(e,t){return micromatch.compile(micromatch.parse(e,t),t)}e=micromatch.braces(e,t);var r=e.length;var n=-1;var i=[];while(++n<r){i.push(create(e[n],t))}return i}))};micromatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=l.instantiate(null,t);c(r,t);var n=r.parse(e,t);l.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};micromatch.compile=function(e,t){if(typeof e==="string"){e=micromatch.parse(e,t)}return memoize("compile",e.input,t,(function(){var r=l.instantiate(e,t);a(r,t);return r.compile(e,t)}))};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(e){return String(e)===""||String(e)==="./"}function compose(e,t,r){var n;return memoize("compose",String(e),t,(function(){return function(i){if(!n){n=[];for(var s=0;s<e.length;s++){n.push(r(e[s],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}}))}function memoize(e,t,r,n){var i=l.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(u.has(e,i)){return u.get(e,i)}var s=n(t,r);u.set(e,i,s);return s}micromatch.compilers=a;micromatch.parsers=c;micromatch.caches=u.caches;e.exports=micromatch},3389:(e,t,r)=>{e.exports=new(r(3096))},5334:(e,t,r)=>{"use strict";var n=r(1761);var i=r(9420);e.exports=function(e){var t=e.compiler.compilers;var r=e.options;e.use(n.compilers);var s=t.escape;var o=t.qmark;var a=t.slash;var c=t.star;var u=t.text;var l=t.plus;var h=t.dot;if(r.extglob===false||r.noext===true){e.compiler.use(escapeExtglobs)}else{e.use(i.compilers)}e.use((function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}}));e.compiler.set("dot",h).set("escape",s).set("plus",l).set("slash",a).set("qmark",o).set("star",c).set("text",u)};function escapeExtglobs(e){e.set("paren",(function(e){var t="";visit(e,(function(e){if(e.val)t+=(/^\W/.test(e.val)?"\\":"")+e.val}));return this.emit(t,e)}));function visit(e,t){return e.nodes?mapVisit(e.nodes,t):t(e)}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}}},9034:(e,t,r)=>{"use strict";var n=r(9420);var i=r(1761);var s=r(466);var o=r(2325);var a;var c="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var createNotRegex=function(e){return a||(a=textRegex(c))};e.exports=function(e){var t=e.parser.parsers;e.use(i.parsers);var r=t.escape;var s=t.slash;var o=t.qmark;var a=t.plus;var c=t.star;var u=t.dot;e.use(n.parsers);e.parser.use((function(){this.notRegex=/^\!+(?!\()/})).capture("escape",r).capture("slash",s).capture("qmark",o).capture("star",c).capture("plus",a).capture("dot",u).capture("text",(function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(createNotRegex(this.options));if(!t||!t[0])return;var r=t[0].replace(/([[\]^$])/g,"\\$1");return e({type:"text",val:r})}))};function textRegex(e){var t=s.create(e,{contains:true,strictClose:false});var r="(?:[\\^]|\\\\|";return o(r+t+")",{strictClose:false})}},1262:(e,t,r)=>{"use strict";var n=e.exports;var i=r(1017);var s=r(4253);n.define=r(7333);n.diff=r(6164);n.extend=r(2074);n.pick=r(7751);n.typeOf=r(9413);n.unique=r(68);n.isWindows=function(){return i.sep==="\\"||process.platform==="win32"};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new s(t)}n.define(r,"parse",(function(e,t){var r=s.prototype.parse.apply(this,arguments);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var o=i.nodes[0];var a=i.nodes[1];if(i.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{o.val="\\"+o.val;var c=o.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r}));return r};n.createKey=function(e,t){if(n.typeOf(t)!=="object"){return e}var r=e;var i=Object.keys(t);for(var s=0;s<i.length;s++){var o=i[s];r+=";"+o+"="+String(t[o])}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isObject=function(e){return n.typeOf(e)==="object"};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripPrefix=function(e){if(e.charAt(0)!=="."){return e}var t=e.charAt(1);if(n.isSlash(t)){return e.slice(2)}return e};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var s=n._equals(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var s=n._contains(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(i.basename(t))}};n.value=function(e,t,r){if(r&&r.unixify===false){return e}return t(e)};n.unixify=function(e){e=e||{};return function(t){if(n.isWindows()||e.unixify===true){t=n.toPosixPath(t)}if(e.stripPrefix!==false){t=n.stripPrefix(t)}if(e.unescape===true){t=n.unescape(t)}return t}}},1161:(e,t,r)=>{"use strict";const n=r(7147);const i=r(4473);function type(e,t,r){if(typeof r!=="string"){return Promise.reject(new TypeError(`Expected a string, got ${typeof r}`))}return i(n[e])(r).then((e=>e[t]())).catch((e=>{if(e.code==="ENOENT"){return false}throw e}))}function typeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return n[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.file=type.bind(null,"stat","isFile");t.dir=type.bind(null,"stat","isDirectory");t.symlink=type.bind(null,"lstat","isSymbolicLink");t.fileSync=typeSync.bind(null,"statSync","isFile");t.dirSync=typeSync.bind(null,"statSync","isDirectory");t.symlinkSync=typeSync.bind(null,"lstatSync","isSymbolicLink")},4473:e=>{"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e<arguments.length;e++){n[e]=arguments[e]}return new r(((r,i)=>{if(t.errorFirst){n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);i(t)}else{r(t)}}else if(e){i(e)}else{r(n)}}))}else{n.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}}))}e.apply(this,n)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const n in e){const i=e[n];r[n]=typeof i==="function"&&filter(n)?processFn(i,t):i}return r}},3761:e=>{"use strict";e.exports=e=>{const t=/^\\\\\?\\/.test(e);const r=/[^\u0000-\u0080]+/.test(e);if(t||r){return e}return e.replace(/\\/g,"/")}},1860:(e,t,r)=>{"use strict";
82
82
  /*!
83
83
  * to-regex-range <https://github.com/jonschlinkert/to-regex-range>
84
84
  *
85
85
  * Copyright (c) 2015, 2017, Jon Schlinkert.
86
86
  * Released under the MIT License.
87
- */var n=r(9626);var i=r(6110);var s={};function toRegexRange(e,t,r){if(i(e)===false){throw new RangeError("toRegexRange: first argument is invalid.")}if(typeof t==="undefined"||e===t){return String(e)}if(i(t)===false){throw new RangeError("toRegexRange: second argument is invalid.")}r=r||{};var n=String(r.relaxZeros);var o=String(r.shorthand);var a=String(r.capture);var c=e+":"+t+"="+n+o+a;if(s.hasOwnProperty(c)){return s[c].result}var u=Math.min(e,t);var l=Math.max(e,t);if(Math.abs(u-l)===1){var h=e+"|"+t;if(r.capture){return"("+h+")"}return h}var p=padding(e)||padding(t);var d=[];var m=[];var y={min:e,max:t,a:u,b:l};if(p){y.isPadded=p;y.maxLen=String(y.max).length}if(u<0){var g=l<0?Math.abs(l):1;var v=Math.abs(u);m=splitToPatterns(g,v,y,r);u=y.a=0}if(l>=0){d=splitToPatterns(u,l,y,r)}y.negatives=m;y.positives=d;y.result=siftPatterns(m,d,r);if(r.capture&&d.length+m.length>1){y.result="("+y.result+")"}s[c]=y;return y.result}function siftPatterns(e,t,r){var n=filterPatterns(e,t,"-",false,r)||[];var i=filterPatterns(t,e,"",false,r)||[];var s=filterPatterns(e,t,"-?",true,r)||[];var o=n.concat(s).concat(i);return o.join("|")}function splitToRanges(e,t){e=Number(e);t=Number(t);var r=1;var n=[t];var i=+countNines(e,r);while(e<=i&&i<=t){n=push(n,i);r+=1;i=+countNines(e,r)}var s=1;i=countZeros(t+1,s)-1;while(e<i&&i<=t){n=push(n,i);s+=1;i=countZeros(t+1,s)-1}n.sort(compare);return n}function rangeToPattern(e,t,r){if(e===t){return{pattern:String(e),digits:[]}}var n=zip(String(e),String(t));var i=n.length,s=-1;var o="";var a=0;while(++s<i){var c=n[s];var u=c[0];var l=c[1];if(u===l){o+=u}else if(u!=="0"||l!=="9"){o+=toCharacterClass(u,l)}else{a+=1}}if(a){o+=r.shorthand?"\\d":"[0-9]"}return{pattern:o,digits:[a]}}function splitToPatterns(e,t,r,n){var i=splitToRanges(e,t);var s=i.length;var o=-1;var a=[];var c=e;var u;while(++o<s){var l=i[o];var h=rangeToPattern(c,l,n);var p="";if(!r.isPadded&&u&&u.pattern===h.pattern){if(u.digits.length>1){u.digits.pop()}u.digits.push(h.digits[0]);u.string=u.pattern+toQuantifier(u.digits);c=l+1;continue}if(r.isPadded){p=padZeros(l,r)}h.string=p+h.pattern+toQuantifier(h.digits);a.push(h);c=l+1;u=h}return a}function filterPatterns(e,t,r,n,i){var s=[];for(var o=0;o<e.length;o++){var a=e[o];var c=a.string;if(i.relaxZeros!==false){if(r==="-"&&c.charAt(0)==="0"){if(c.charAt(1)==="{"){c="0*"+c.replace(/^0\{\d+\}/,"")}else{c="0*"+c.slice(1)}}}if(!n&&!contains(t,"string",c)){s.push(r+c)}if(n&&contains(t,"string",c)){s.push(r+c)}}return s}function zip(e,t){var r=[];for(var n in e)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function push(e,t){if(e.indexOf(t)===-1)e.push(t);return e}function contains(e,t,r){for(var n=0;n<e.length;n++){if(e[n][t]===r){return true}}return false}function countNines(e,t){return String(e).slice(0,-t)+n("9",t)}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){var t=e[0];var r=e[1]?","+e[1]:"";if(!r&&(!t||t===1)){return""}return"{"+t+r+"}"}function toCharacterClass(e,t){return"["+e+(t-e===1?"":"-")+t+"]"}function padding(e){return/^-?(0+)\d/.exec(e)}function padZeros(e,t){if(t.isPadded){var r=Math.abs(t.maxLen-String(e).length);switch(r){case 0:return"";case 1:return"0";default:{return"0{"+r+"}"}}}return e}e.exports=toRegexRange},7987:(e,t,r)=>{"use strict";const n=r(2081);const i=r(1655);const s=r(9738);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},9738:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},1655:(e,t,r)=>{"use strict";const n=r(1017);const i=r(7369);const s=r(7534);const o=r(8902);const a=r(2964);const c=r(1516);const u=process.platform==="win32";const l=/\.(?:com|exe)$/i;const h=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const p=i((()=>c.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true)))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!u){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=h.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(p){return e}const t=[e.command].concat(e.args).join(" ");if(u){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},8902:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},2964:(e,t,r)=>{"use strict";const n=r(7147);const i=r(4970);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},7534:(e,t,r)=>{"use strict";const n=r(1017);const i=r(6362);const s=r(2170)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},1516:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=0;var u=c++;a[u]="0|[1-9]\\d*";var l=c++;a[l]="[0-9]+";var h=c++;a[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=c++;a[p]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var d=c++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var m=c++;a[m]="(?:"+a[u]+"|"+a[h]+")";var y=c++;a[y]="(?:"+a[l]+"|"+a[h]+")";var g=c++;a[g]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var v=c++;a[v]="(?:-?("+a[y]+"(?:\\."+a[y]+")*))";var b=c++;a[b]="[0-9A-Za-z-]+";var w=c++;a[w]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var S=c++;var x="v?"+a[p]+a[g]+"?"+a[w]+"?";a[S]="^"+x+"$";var _="[v=\\s]*"+a[d]+a[v]+"?"+a[w]+"?";var O=c++;a[O]="^"+_+"$";var k=c++;a[k]="((?:<|>)?=?)";var A=c++;a[A]=a[l]+"|x|X|\\*";var R=c++;a[R]=a[u]+"|x|X|\\*";var C=c++;a[C]="[v=\\s]*("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:"+a[g]+")?"+a[w]+"?"+")?)?";var j=c++;a[j]="[v=\\s]*("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:"+a[v]+")?"+a[w]+"?"+")?)?";var P=c++;a[P]="^"+a[k]+"\\s*"+a[C]+"$";var T=c++;a[T]="^"+a[k]+"\\s*"+a[j]+"$";var M=c++;a[M]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var I=c++;a[I]="(?:~>?)";var N=c++;a[N]="(\\s*)"+a[I]+"\\s+";o[N]=new RegExp(a[N],"g");var D="$1~";var L=c++;a[L]="^"+a[I]+a[C]+"$";var $=c++;a[$]="^"+a[I]+a[j]+"$";var B=c++;a[B]="(?:\\^)";var U=c++;a[U]="(\\s*)"+a[B]+"\\s+";o[U]=new RegExp(a[U],"g");var G="$1^";var z=c++;a[z]="^"+a[B]+a[C]+"$";var q=c++;a[q]="^"+a[B]+a[j]+"$";var H=c++;a[H]="^"+a[k]+"\\s*("+_+")$|^$";var V=c++;a[V]="^"+a[k]+"\\s*("+x+")$|^$";var W=c++;a[W]="(\\s*)"+a[k]+"\\s*("+_+"|"+a[C]+")";o[W]=new RegExp(a[W],"g");var Y="$1$2$3";var Z=c++;a[Z]="^\\s*("+a[C]+")"+"\\s+-\\s+"+"("+a[C]+")"+"\\s*$";var X=c++;a[X]="^\\s*("+a[j]+")"+"\\s+-\\s+"+"("+a[j]+")"+"\\s*$";var J=c++;a[J]="(<|>)?=?\\s*\\*";for(var K=0;K<c;K++){r(K,a[K]);if(!o[K]){o[K]=new RegExp(a[K])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[O]:o[S];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[O]:o[S]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e}))}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Q=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Q.test(e);var n=Q.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))}t.rsort=rsort;function rsort(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var ee={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[H]:o[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=ee}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===ee){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[X]:o[Z];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[W],Y);r("comparator trim",e,o[W]);e=e.replace(o[N],D);e=e.replace(o[U],G);e=e.split(/\s+/).join(" ");var i=t?o[H]:o[V];var s=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter((function(e){return!!e.match(i)}))}s=s.map((function(e){return new Comparator(e,this.options)}),this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var n=t.loose?o[$]:o[L];return e.replace(n,(function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[q]:o[z];return e.replace(n,(function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[T]:o[P];return e.replace(n,(function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var h=l;if(n==="="&&h){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&h){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[J],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,h,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(h){a="<="+c+"."+u+"."+l+"-"+h}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===ee){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}}));return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}}));return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var h=null;var p=null;l.forEach((function(e){if(e.semver===ee){e=new Comparator(">=0.0.0")}h=h||e;p=p||e;if(i(e.semver,h.semver,n)){h=e}else if(o(e.semver,p.semver,n)){p=e}}));if(h.operator===a||h.operator===c){return false}if((!p.operator||p.operator===a)&&s(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[M]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},6362:(e,t,r)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(1017);var s=n?";":":";var o=r(228);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var c=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var h=s[n];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=i.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}(function E(e,i){if(e===i)return F(n+1,l);var s=a[e];o(p+s,{pathExt:c},(function(n,o){if(!n&&o){if(t.all)u.push(p+s);else return r(null,p+s)}return E(e+1,i)}))})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var c=[];for(var u=0,l=n.length;u<l;u++){var h=n[u];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=i.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}for(var d=0,m=s.length;d<m;d++){var y=p+s[d];var g;try{g=o.sync(y,{pathExt:a});if(g){if(t.all)c.push(y);else return y}}catch(e){}}}if(t.all&&c.length)return c;if(t.nothrow)return null;throw getNotFoundError(e)}},9205:e=>{"use strict";var t="%[a-f0-9]{2}";var r=new RegExp(t,"gi");var n=new RegExp("("+t+")+","gi");function decodeComponents(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(e.length===1){return e}t=t||1;var r=e.slice(0,t);var n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(i){var t=e.match(r);for(var n=1;n<t.length;n++){e=decodeComponents(t,n).join("");t=e.match(r)}return e}}function customDecodeURIComponent(e){var t={"%FE%FF":"��","%FF%FE":"��"};var r=n.exec(e);while(r){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=decode(r[0]);if(i!==r[0]){t[r[0]]=i}}r=n.exec(e)}t["%C2"]="�";var s=Object.keys(t);for(var o=0;o<s.length;o++){var a=s[o];e=e.replace(new RegExp(a,"g"),t[a])}return e}e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`")}try{e=e.replace(/\+/g," ");return decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}}},5599:(e,t,r)=>{"use strict";const{pipeline:n,PassThrough:i}=r(2781);const s=r(9796);const o=r(8413);const decompressResponse=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t)){return e}const r=t==="br";if(r&&typeof s.createBrotliDecompress!=="function"){return e}const a=r?s.createBrotliDecompress():s.createUnzip();const c=new i;a.on("error",(e=>{if(e.code==="Z_BUF_ERROR"){c.end();return}c.emit("error",e)}));const u=n(e,a,c,(()=>{}));o(e,u);return u};e.exports=decompressResponse},8413:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r}},5134:e=>{"use strict";
87
+ */var n=r(9626);var i=r(6110);var s={};function toRegexRange(e,t,r){if(i(e)===false){throw new RangeError("toRegexRange: first argument is invalid.")}if(typeof t==="undefined"||e===t){return String(e)}if(i(t)===false){throw new RangeError("toRegexRange: second argument is invalid.")}r=r||{};var n=String(r.relaxZeros);var o=String(r.shorthand);var a=String(r.capture);var c=e+":"+t+"="+n+o+a;if(s.hasOwnProperty(c)){return s[c].result}var u=Math.min(e,t);var l=Math.max(e,t);if(Math.abs(u-l)===1){var h=e+"|"+t;if(r.capture){return"("+h+")"}return h}var p=padding(e)||padding(t);var d=[];var m=[];var y={min:e,max:t,a:u,b:l};if(p){y.isPadded=p;y.maxLen=String(y.max).length}if(u<0){var g=l<0?Math.abs(l):1;var v=Math.abs(u);m=splitToPatterns(g,v,y,r);u=y.a=0}if(l>=0){d=splitToPatterns(u,l,y,r)}y.negatives=m;y.positives=d;y.result=siftPatterns(m,d,r);if(r.capture&&d.length+m.length>1){y.result="("+y.result+")"}s[c]=y;return y.result}function siftPatterns(e,t,r){var n=filterPatterns(e,t,"-",false,r)||[];var i=filterPatterns(t,e,"",false,r)||[];var s=filterPatterns(e,t,"-?",true,r)||[];var o=n.concat(s).concat(i);return o.join("|")}function splitToRanges(e,t){e=Number(e);t=Number(t);var r=1;var n=[t];var i=+countNines(e,r);while(e<=i&&i<=t){n=push(n,i);r+=1;i=+countNines(e,r)}var s=1;i=countZeros(t+1,s)-1;while(e<i&&i<=t){n=push(n,i);s+=1;i=countZeros(t+1,s)-1}n.sort(compare);return n}function rangeToPattern(e,t,r){if(e===t){return{pattern:String(e),digits:[]}}var n=zip(String(e),String(t));var i=n.length,s=-1;var o="";var a=0;while(++s<i){var c=n[s];var u=c[0];var l=c[1];if(u===l){o+=u}else if(u!=="0"||l!=="9"){o+=toCharacterClass(u,l)}else{a+=1}}if(a){o+=r.shorthand?"\\d":"[0-9]"}return{pattern:o,digits:[a]}}function splitToPatterns(e,t,r,n){var i=splitToRanges(e,t);var s=i.length;var o=-1;var a=[];var c=e;var u;while(++o<s){var l=i[o];var h=rangeToPattern(c,l,n);var p="";if(!r.isPadded&&u&&u.pattern===h.pattern){if(u.digits.length>1){u.digits.pop()}u.digits.push(h.digits[0]);u.string=u.pattern+toQuantifier(u.digits);c=l+1;continue}if(r.isPadded){p=padZeros(l,r)}h.string=p+h.pattern+toQuantifier(h.digits);a.push(h);c=l+1;u=h}return a}function filterPatterns(e,t,r,n,i){var s=[];for(var o=0;o<e.length;o++){var a=e[o];var c=a.string;if(i.relaxZeros!==false){if(r==="-"&&c.charAt(0)==="0"){if(c.charAt(1)==="{"){c="0*"+c.replace(/^0\{\d+\}/,"")}else{c="0*"+c.slice(1)}}}if(!n&&!contains(t,"string",c)){s.push(r+c)}if(n&&contains(t,"string",c)){s.push(r+c)}}return s}function zip(e,t){var r=[];for(var n in e)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function push(e,t){if(e.indexOf(t)===-1)e.push(t);return e}function contains(e,t,r){for(var n=0;n<e.length;n++){if(e[n][t]===r){return true}}return false}function countNines(e,t){return String(e).slice(0,-t)+n("9",t)}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){var t=e[0];var r=e[1]?","+e[1]:"";if(!r&&(!t||t===1)){return""}return"{"+t+r+"}"}function toCharacterClass(e,t){return"["+e+(t-e===1?"":"-")+t+"]"}function padding(e){return/^-?(0+)\d/.exec(e)}function padZeros(e,t){if(t.isPadded){var r=Math.abs(t.maxLen-String(e).length);switch(r){case 0:return"";case 1:return"0";default:{return"0{"+r+"}"}}}return e}e.exports=toRegexRange},7987:(e,t,r)=>{"use strict";const n=r(2081);const i=r(1655);const s=r(9738);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},9738:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},1655:(e,t,r)=>{"use strict";const n=r(1017);const i=r(7369);const s=r(7534);const o=r(8902);const a=r(2964);const c=r(1516);const u=process.platform==="win32";const l=/\.(?:com|exe)$/i;const h=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const p=i((()=>c.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true)))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!u){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=h.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(p){return e}const t=[e.command].concat(e.args).join(" ");if(u){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},8902:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},2964:(e,t,r)=>{"use strict";const n=r(7147);const i=r(4970);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},7534:(e,t,r)=>{"use strict";const n=r(1017);const i=r(6362);const s=r(2170)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},1516:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=0;var u=c++;a[u]="0|[1-9]\\d*";var l=c++;a[l]="[0-9]+";var h=c++;a[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=c++;a[p]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var d=c++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var m=c++;a[m]="(?:"+a[u]+"|"+a[h]+")";var y=c++;a[y]="(?:"+a[l]+"|"+a[h]+")";var g=c++;a[g]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var v=c++;a[v]="(?:-?("+a[y]+"(?:\\."+a[y]+")*))";var b=c++;a[b]="[0-9A-Za-z-]+";var w=c++;a[w]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var S=c++;var x="v?"+a[p]+a[g]+"?"+a[w]+"?";a[S]="^"+x+"$";var _="[v=\\s]*"+a[d]+a[v]+"?"+a[w]+"?";var O=c++;a[O]="^"+_+"$";var k=c++;a[k]="((?:<|>)?=?)";var A=c++;a[A]=a[l]+"|x|X|\\*";var R=c++;a[R]=a[u]+"|x|X|\\*";var C=c++;a[C]="[v=\\s]*("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:"+a[g]+")?"+a[w]+"?"+")?)?";var P=c++;a[P]="[v=\\s]*("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:"+a[v]+")?"+a[w]+"?"+")?)?";var j=c++;a[j]="^"+a[k]+"\\s*"+a[C]+"$";var T=c++;a[T]="^"+a[k]+"\\s*"+a[P]+"$";var M=c++;a[M]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var I=c++;a[I]="(?:~>?)";var N=c++;a[N]="(\\s*)"+a[I]+"\\s+";o[N]=new RegExp(a[N],"g");var D="$1~";var L=c++;a[L]="^"+a[I]+a[C]+"$";var $=c++;a[$]="^"+a[I]+a[P]+"$";var B=c++;a[B]="(?:\\^)";var U=c++;a[U]="(\\s*)"+a[B]+"\\s+";o[U]=new RegExp(a[U],"g");var G="$1^";var z=c++;a[z]="^"+a[B]+a[C]+"$";var q=c++;a[q]="^"+a[B]+a[P]+"$";var H=c++;a[H]="^"+a[k]+"\\s*("+_+")$|^$";var V=c++;a[V]="^"+a[k]+"\\s*("+x+")$|^$";var W=c++;a[W]="(\\s*)"+a[k]+"\\s*("+_+"|"+a[C]+")";o[W]=new RegExp(a[W],"g");var Y="$1$2$3";var Z=c++;a[Z]="^\\s*("+a[C]+")"+"\\s+-\\s+"+"("+a[C]+")"+"\\s*$";var X=c++;a[X]="^\\s*("+a[P]+")"+"\\s+-\\s+"+"("+a[P]+")"+"\\s*$";var J=c++;a[J]="(<|>)?=?\\s*\\*";for(var K=0;K<c;K++){r(K,a[K]);if(!o[K]){o[K]=new RegExp(a[K])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[O]:o[S];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[O]:o[S]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e}))}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Q=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Q.test(e);var n=Q.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))}t.rsort=rsort;function rsort(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var ee={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[H]:o[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=ee}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===ee){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[X]:o[Z];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[W],Y);r("comparator trim",e,o[W]);e=e.replace(o[N],D);e=e.replace(o[U],G);e=e.split(/\s+/).join(" ");var i=t?o[H]:o[V];var s=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter((function(e){return!!e.match(i)}))}s=s.map((function(e){return new Comparator(e,this.options)}),this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var n=t.loose?o[$]:o[L];return e.replace(n,(function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[q]:o[z];return e.replace(n,(function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[T]:o[j];return e.replace(n,(function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var h=l;if(n==="="&&h){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&h){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[J],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,h,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(h){a="<="+c+"."+u+"."+l+"-"+h}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===ee){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}}));return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}}));return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var h=null;var p=null;l.forEach((function(e){if(e.semver===ee){e=new Comparator(">=0.0.0")}h=h||e;p=p||e;if(i(e.semver,h.semver,n)){h=e}else if(o(e.semver,p.semver,n)){p=e}}));if(h.operator===a||h.operator===c){return false}if((!p.operator||p.operator===a)&&s(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[M]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},6362:(e,t,r)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(1017);var s=n?";":":";var o=r(228);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var c=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var h=s[n];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=i.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}(function E(e,i){if(e===i)return F(n+1,l);var s=a[e];o(p+s,{pathExt:c},(function(n,o){if(!n&&o){if(t.all)u.push(p+s);else return r(null,p+s)}return E(e+1,i)}))})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var c=[];for(var u=0,l=n.length;u<l;u++){var h=n[u];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var p=i.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){p=e.slice(0,2)+p}for(var d=0,m=s.length;d<m;d++){var y=p+s[d];var g;try{g=o.sync(y,{pathExt:a});if(g){if(t.all)c.push(y);else return y}}catch(e){}}}if(t.all&&c.length)return c;if(t.nothrow)return null;throw getNotFoundError(e)}},9205:e=>{"use strict";var t="%[a-f0-9]{2}";var r=new RegExp(t,"gi");var n=new RegExp("("+t+")+","gi");function decodeComponents(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(e.length===1){return e}t=t||1;var r=e.slice(0,t);var n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(i){var t=e.match(r);for(var n=1;n<t.length;n++){e=decodeComponents(t,n).join("");t=e.match(r)}return e}}function customDecodeURIComponent(e){var t={"%FE%FF":"��","%FF%FE":"��"};var r=n.exec(e);while(r){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=decode(r[0]);if(i!==r[0]){t[r[0]]=i}}r=n.exec(e)}t["%C2"]="�";var s=Object.keys(t);for(var o=0;o<s.length;o++){var a=s[o];e=e.replace(new RegExp(a,"g"),t[a])}return e}e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`")}try{e=e.replace(/\+/g," ");return decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}}},5599:(e,t,r)=>{"use strict";const{pipeline:n,PassThrough:i}=r(2781);const s=r(9796);const o=r(8413);const decompressResponse=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t)){return e}const r=t==="br";if(r&&typeof s.createBrotliDecompress!=="function"){return e}const a=r?s.createBrotliDecompress():s.createUnzip();const c=new i;a.on("error",(e=>{if(e.code==="Z_BUF_ERROR"){c.end();return}c.emit("error",e)}));const u=n(e,a,c,(()=>{}));o(e,u);return u};e.exports=decompressResponse},8413:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r}},5134:e=>{"use strict";
88
88
  /*!
89
89
  * @description Recursive object extending
90
90
  * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
@@ -241,13 +241,13 @@ var n=r(6546);var i={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[0
241
241
  *
242
242
  * Copyright (c) 2014-2017, Jon Schlinkert.
243
243
  * Released under the MIT License.
244
- */e.exports=function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}},7231:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var n=true;for(var i in e){var s="function"==typeof e[i]||!r&&"undefined"===typeof e[i];if(Object.hasOwnProperty.call(e,i)&&!s){if(!n)t+=",";n=false;if(r){if(e[i]==undefined)t+="null";else t+=stringify(e[i])}else if(e[i]!==void 0){t+=stringify(i)+":"+stringify(e[i])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,(function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return Buffer.from(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t}))}},1050:(e,t,r)=>{"use strict";const n=r(2361);const i=r(7231);const loadStore=e=>{const t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){const r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};const s=["sqlite","postgres","mysql","mongo","redis","tiered"];class Keyv extends n{constructor(e,{emitErrors:t=true,...r}={}){super();this.opts={namespace:"keyv",serialize:i.stringify,deserialize:i.parse,...typeof e==="string"?{uri:e}:e,...r};if(!this.opts.store){const e={...this.opts};this.opts.store=loadStore(e)}if(this.opts.compression){const e=this.opts.compression;this.opts.serialize=e.serialize.bind(e);this.opts.deserialize=e.deserialize.bind(e)}if(typeof this.opts.store.on==="function"&&t){this.opts.store.on("error",(e=>this.emit("error",e)))}this.opts.store.namespace=this.opts.namespace;const generateIterator=e=>async function*(){for await(const[t,r]of typeof e==="function"?e(this.opts.store.namespace):e){const e=this.opts.deserialize(r);if(this.opts.store.namespace&&!t.includes(this.opts.store.namespace)){continue}if(typeof e.expires==="number"&&Date.now()>e.expires){this.delete(t);continue}yield[this._getKeyUnprefix(t),e.value]}};if(typeof this.opts.store[Symbol.iterator]==="function"&&this.opts.store instanceof Map){this.iterator=generateIterator(this.opts.store)}else if(typeof this.opts.store.iterator==="function"&&this.opts.store.opts&&this._checkIterableAdaptar()){this.iterator=generateIterator(this.opts.store.iterator.bind(this.opts.store))}}_checkIterableAdaptar(){return s.includes(this.opts.store.opts.dialect)||s.findIndex((e=>this.opts.store.opts.url.includes(e)))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map((e=>`${this.opts.namespace}:${e}`))}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,t){const{store:r}=this.opts;const n=Array.isArray(e);const i=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&r.getMany===undefined){const e=[];for(const n of i){e.push(Promise.resolve().then((()=>r.get(n))).then((e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e)).then((e=>{if(e===undefined||e===null){return undefined}if(typeof e.expires==="number"&&Date.now()>e.expires){return this.delete(n).then((()=>undefined))}return t&&t.raw?e:e.value})))}return Promise.allSettled(e).then((e=>{const t=[];for(const r of e){t.push(r.value)}return t}))}return Promise.resolve().then((()=>n?r.getMany(i):r.get(i))).then((e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e)).then((r=>{if(r===undefined||r===null){return undefined}if(n){const n=[];for(let i of r){if(typeof i==="string"){i=this.opts.deserialize(i)}if(i===undefined||i===null){n.push(undefined);continue}if(typeof i.expires==="number"&&Date.now()>i.expires){this.delete(e).then((()=>undefined));n.push(undefined)}else{n.push(t&&t.raw?i:i.value)}}return n}if(typeof r.expires==="number"&&Date.now()>r.expires){return this.delete(e).then((()=>undefined))}return t&&t.raw?r:r.value}))}set(e,t,r){const n=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const{store:i}=this.opts;return Promise.resolve().then((()=>{const e=typeof r==="number"?Date.now()+r:null;if(typeof t==="symbol"){this.emit("error","symbol cannot be serialized")}t={value:t,expires:e};return this.opts.serialize(t)})).then((e=>i.set(n,e,r))).then((()=>true))}delete(e){const{store:t}=this.opts;if(Array.isArray(e)){const r=this._getKeyPrefixArray(e);if(t.deleteMany===undefined){const e=[];for(const n of r){e.push(t.delete(n))}return Promise.allSettled(e).then((e=>e.every((e=>e.value===true))))}return Promise.resolve().then((()=>t.deleteMany(r)))}const r=this._getKeyPrefix(e);return Promise.resolve().then((()=>t.delete(r)))}clear(){const{store:e}=this.opts;return Promise.resolve().then((()=>e.clear()))}has(e){const t=this._getKeyPrefix(e);const{store:r}=this.opts;return Promise.resolve().then((async()=>{if(typeof r.has==="function"){return r.has(t)}const e=await r.get(t);return e!==undefined}))}disconnect(){const{store:e}=this.opts;if(typeof e.disconnect==="function"){return e.disconnect()}}}e.exports=Keyv},9413:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(e)){return"generator"}r=t.call(e);switch(r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return typeof e.constructor==="function"?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},530:e=>{"use strict";e.exports=e=>{const t={};for(const[r,n]of Object.entries(e)){t[r.toLowerCase()]=n}return t}},7153:(e,t,r)=>{"use strict";const n=r(7147);const i=r(1017);const s=r(6017);const o=r(9144);const a={mode:511&~process.umask(),fs:n};const c=o.satisfies(process.version,">=10.12.0");const checkPath=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const permissionError=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};const makeDir=(e,t)=>Promise.resolve().then((()=>{checkPath(e);t=Object.assign({},a,t);const r=s(t.fs.mkdir);const o=s(t.fs.stat);if(c&&t.fs.mkdir===n.mkdir){const n=i.resolve(e);return r(n,{mode:t.mode,recursive:true}).then((()=>n))}const make=e=>r(e,t.mode).then((()=>e)).catch((t=>{if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}return make(i.dirname(e)).then((()=>make(e)))}return o(e).then((t=>t.isDirectory()?e:Promise.reject())).catch((()=>{throw t}))}));return make(i.resolve(e))}));e.exports=makeDir;e.exports["default"]=makeDir;e.exports.sync=(e,t)=>{checkPath(e);t=Object.assign({},a,t);if(c&&t.fs.mkdirSync===n.mkdirSync){const r=i.resolve(e);n.mkdirSync(r,{mode:t.mode,recursive:true});return r}const make=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(r.message.includes("null bytes")){throw r}make(i.dirname(e));return make(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}}return e};return make(i.resolve(e))}},6017:e=>{"use strict";const processFn=(e,t)=>function(...r){const n=t.promiseModule;return new n(((n,i)=>{if(t.multiArgs){r.push(((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();n(e)}}else{n(e)}}))}else if(t.errorFirst){r.push(((e,t)=>{if(e){i(e)}else{n(t)}}))}else{r.push(n)}e.apply(this,r)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const r=typeof e;if(!(e!==null&&(r==="object"||r==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``)}const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(r==="function"){n=function(...r){return t.excludeMain?e(...r):processFn(e,t).apply(this,r)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const r in e){const i=e[r];n[r]=typeof i==="function"&&filter(r)?processFn(i,t):i}return n}},9144:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=0;var u=c++;a[u]="0|[1-9]\\d*";var l=c++;a[l]="[0-9]+";var h=c++;a[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=c++;a[p]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var d=c++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var m=c++;a[m]="(?:"+a[u]+"|"+a[h]+")";var y=c++;a[y]="(?:"+a[l]+"|"+a[h]+")";var g=c++;a[g]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var v=c++;a[v]="(?:-?("+a[y]+"(?:\\."+a[y]+")*))";var b=c++;a[b]="[0-9A-Za-z-]+";var w=c++;a[w]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var S=c++;var x="v?"+a[p]+a[g]+"?"+a[w]+"?";a[S]="^"+x+"$";var _="[v=\\s]*"+a[d]+a[v]+"?"+a[w]+"?";var O=c++;a[O]="^"+_+"$";var k=c++;a[k]="((?:<|>)?=?)";var A=c++;a[A]=a[l]+"|x|X|\\*";var R=c++;a[R]=a[u]+"|x|X|\\*";var C=c++;a[C]="[v=\\s]*("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:"+a[g]+")?"+a[w]+"?"+")?)?";var j=c++;a[j]="[v=\\s]*("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:"+a[v]+")?"+a[w]+"?"+")?)?";var P=c++;a[P]="^"+a[k]+"\\s*"+a[C]+"$";var T=c++;a[T]="^"+a[k]+"\\s*"+a[j]+"$";var M=c++;a[M]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var I=c++;a[I]="(?:~>?)";var N=c++;a[N]="(\\s*)"+a[I]+"\\s+";o[N]=new RegExp(a[N],"g");var D="$1~";var L=c++;a[L]="^"+a[I]+a[C]+"$";var $=c++;a[$]="^"+a[I]+a[j]+"$";var B=c++;a[B]="(?:\\^)";var U=c++;a[U]="(\\s*)"+a[B]+"\\s+";o[U]=new RegExp(a[U],"g");var G="$1^";var z=c++;a[z]="^"+a[B]+a[C]+"$";var q=c++;a[q]="^"+a[B]+a[j]+"$";var H=c++;a[H]="^"+a[k]+"\\s*("+_+")$|^$";var V=c++;a[V]="^"+a[k]+"\\s*("+x+")$|^$";var W=c++;a[W]="(\\s*)"+a[k]+"\\s*("+_+"|"+a[C]+")";o[W]=new RegExp(a[W],"g");var Y="$1$2$3";var Z=c++;a[Z]="^\\s*("+a[C]+")"+"\\s+-\\s+"+"("+a[C]+")"+"\\s*$";var X=c++;a[X]="^\\s*("+a[j]+")"+"\\s+-\\s+"+"("+a[j]+")"+"\\s*$";var J=c++;a[J]="(<|>)?=?\\s*\\*";for(var K=0;K<c;K++){r(K,a[K]);if(!o[K]){o[K]=new RegExp(a[K])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[O]:o[S];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[O]:o[S]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e}))}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Q=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Q.test(e);var n=Q.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))}t.rsort=rsort;function rsort(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var ee={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[H]:o[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=ee}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===ee){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[X]:o[Z];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[W],Y);r("comparator trim",e,o[W]);e=e.replace(o[N],D);e=e.replace(o[U],G);e=e.split(/\s+/).join(" ");var i=t?o[H]:o[V];var s=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter((function(e){return!!e.match(i)}))}s=s.map((function(e){return new Comparator(e,this.options)}),this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var n=t.loose?o[$]:o[L];return e.replace(n,(function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[q]:o[z];return e.replace(n,(function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[T]:o[P];return e.replace(n,(function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var h=l;if(n==="="&&h){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&h){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[J],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,h,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(h){a="<="+c+"."+u+"."+l+"-"+h}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===ee){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}}));return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}}));return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var h=null;var p=null;l.forEach((function(e){if(e.semver===ee){e=new Comparator(">=0.0.0")}h=h||e;p=p||e;if(i(e.semver,h.semver,n)){h=e}else if(o(e.semver,p.semver,n)){p=e}}));if(h.operator===a||h.operator===c){return false}if((!p.operator||p.operator===a)&&s(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[M]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},2219:e=>{"use strict";
244
+ */e.exports=function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}},7231:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var n=true;for(var i in e){var s="function"==typeof e[i]||!r&&"undefined"===typeof e[i];if(Object.hasOwnProperty.call(e,i)&&!s){if(!n)t+=",";n=false;if(r){if(e[i]==undefined)t+="null";else t+=stringify(e[i])}else if(e[i]!==void 0){t+=stringify(i)+":"+stringify(e[i])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,(function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return Buffer.from(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t}))}},1050:(e,t,r)=>{"use strict";const n=r(2361);const i=r(7231);const loadStore=e=>{const t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){const r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};const s=["sqlite","postgres","mysql","mongo","redis","tiered"];class Keyv extends n{constructor(e,{emitErrors:t=true,...r}={}){super();this.opts={namespace:"keyv",serialize:i.stringify,deserialize:i.parse,...typeof e==="string"?{uri:e}:e,...r};if(!this.opts.store){const e={...this.opts};this.opts.store=loadStore(e)}if(this.opts.compression){const e=this.opts.compression;this.opts.serialize=e.serialize.bind(e);this.opts.deserialize=e.deserialize.bind(e)}if(typeof this.opts.store.on==="function"&&t){this.opts.store.on("error",(e=>this.emit("error",e)))}this.opts.store.namespace=this.opts.namespace;const generateIterator=e=>async function*(){for await(const[t,r]of typeof e==="function"?e(this.opts.store.namespace):e){const e=this.opts.deserialize(r);if(this.opts.store.namespace&&!t.includes(this.opts.store.namespace)){continue}if(typeof e.expires==="number"&&Date.now()>e.expires){this.delete(t);continue}yield[this._getKeyUnprefix(t),e.value]}};if(typeof this.opts.store[Symbol.iterator]==="function"&&this.opts.store instanceof Map){this.iterator=generateIterator(this.opts.store)}else if(typeof this.opts.store.iterator==="function"&&this.opts.store.opts&&this._checkIterableAdaptar()){this.iterator=generateIterator(this.opts.store.iterator.bind(this.opts.store))}}_checkIterableAdaptar(){return s.includes(this.opts.store.opts.dialect)||s.findIndex((e=>this.opts.store.opts.url.includes(e)))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map((e=>`${this.opts.namespace}:${e}`))}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,t){const{store:r}=this.opts;const n=Array.isArray(e);const i=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&r.getMany===undefined){const e=[];for(const n of i){e.push(Promise.resolve().then((()=>r.get(n))).then((e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e)).then((e=>{if(e===undefined||e===null){return undefined}if(typeof e.expires==="number"&&Date.now()>e.expires){return this.delete(n).then((()=>undefined))}return t&&t.raw?e:e.value})))}return Promise.allSettled(e).then((e=>{const t=[];for(const r of e){t.push(r.value)}return t}))}return Promise.resolve().then((()=>n?r.getMany(i):r.get(i))).then((e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e)).then((r=>{if(r===undefined||r===null){return undefined}if(n){const n=[];for(let i of r){if(typeof i==="string"){i=this.opts.deserialize(i)}if(i===undefined||i===null){n.push(undefined);continue}if(typeof i.expires==="number"&&Date.now()>i.expires){this.delete(e).then((()=>undefined));n.push(undefined)}else{n.push(t&&t.raw?i:i.value)}}return n}if(typeof r.expires==="number"&&Date.now()>r.expires){return this.delete(e).then((()=>undefined))}return t&&t.raw?r:r.value}))}set(e,t,r){const n=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const{store:i}=this.opts;return Promise.resolve().then((()=>{const e=typeof r==="number"?Date.now()+r:null;if(typeof t==="symbol"){this.emit("error","symbol cannot be serialized")}t={value:t,expires:e};return this.opts.serialize(t)})).then((e=>i.set(n,e,r))).then((()=>true))}delete(e){const{store:t}=this.opts;if(Array.isArray(e)){const r=this._getKeyPrefixArray(e);if(t.deleteMany===undefined){const e=[];for(const n of r){e.push(t.delete(n))}return Promise.allSettled(e).then((e=>e.every((e=>e.value===true))))}return Promise.resolve().then((()=>t.deleteMany(r)))}const r=this._getKeyPrefix(e);return Promise.resolve().then((()=>t.delete(r)))}clear(){const{store:e}=this.opts;return Promise.resolve().then((()=>e.clear()))}has(e){const t=this._getKeyPrefix(e);const{store:r}=this.opts;return Promise.resolve().then((async()=>{if(typeof r.has==="function"){return r.has(t)}const e=await r.get(t);return e!==undefined}))}disconnect(){const{store:e}=this.opts;if(typeof e.disconnect==="function"){return e.disconnect()}}}e.exports=Keyv},9413:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(e)){return"generator"}r=t.call(e);switch(r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return typeof e.constructor==="function"?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},530:e=>{"use strict";e.exports=e=>{const t={};for(const[r,n]of Object.entries(e)){t[r.toLowerCase()]=n}return t}},7153:(e,t,r)=>{"use strict";const n=r(7147);const i=r(1017);const s=r(9367);const o=r(9144);const a={mode:511&~process.umask(),fs:n};const c=o.satisfies(process.version,">=10.12.0");const checkPath=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const permissionError=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};const makeDir=(e,t)=>Promise.resolve().then((()=>{checkPath(e);t=Object.assign({},a,t);const r=s(t.fs.mkdir);const o=s(t.fs.stat);if(c&&t.fs.mkdir===n.mkdir){const n=i.resolve(e);return r(n,{mode:t.mode,recursive:true}).then((()=>n))}const make=e=>r(e,t.mode).then((()=>e)).catch((t=>{if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}return make(i.dirname(e)).then((()=>make(e)))}return o(e).then((t=>t.isDirectory()?e:Promise.reject())).catch((()=>{throw t}))}));return make(i.resolve(e))}));e.exports=makeDir;e.exports["default"]=makeDir;e.exports.sync=(e,t)=>{checkPath(e);t=Object.assign({},a,t);if(c&&t.fs.mkdirSync===n.mkdirSync){const r=i.resolve(e);n.mkdirSync(r,{mode:t.mode,recursive:true});return r}const make=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(r.message.includes("null bytes")){throw r}make(i.dirname(e));return make(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}}return e};return make(i.resolve(e))}},9144:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=0;var u=c++;a[u]="0|[1-9]\\d*";var l=c++;a[l]="[0-9]+";var h=c++;a[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=c++;a[p]="("+a[u]+")\\."+"("+a[u]+")\\."+"("+a[u]+")";var d=c++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var m=c++;a[m]="(?:"+a[u]+"|"+a[h]+")";var y=c++;a[y]="(?:"+a[l]+"|"+a[h]+")";var g=c++;a[g]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var v=c++;a[v]="(?:-?("+a[y]+"(?:\\."+a[y]+")*))";var b=c++;a[b]="[0-9A-Za-z-]+";var w=c++;a[w]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var S=c++;var x="v?"+a[p]+a[g]+"?"+a[w]+"?";a[S]="^"+x+"$";var _="[v=\\s]*"+a[d]+a[v]+"?"+a[w]+"?";var O=c++;a[O]="^"+_+"$";var k=c++;a[k]="((?:<|>)?=?)";var A=c++;a[A]=a[l]+"|x|X|\\*";var R=c++;a[R]=a[u]+"|x|X|\\*";var C=c++;a[C]="[v=\\s]*("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:"+a[g]+")?"+a[w]+"?"+")?)?";var P=c++;a[P]="[v=\\s]*("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:\\.("+a[A]+")"+"(?:"+a[v]+")?"+a[w]+"?"+")?)?";var j=c++;a[j]="^"+a[k]+"\\s*"+a[C]+"$";var T=c++;a[T]="^"+a[k]+"\\s*"+a[P]+"$";var M=c++;a[M]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var I=c++;a[I]="(?:~>?)";var N=c++;a[N]="(\\s*)"+a[I]+"\\s+";o[N]=new RegExp(a[N],"g");var D="$1~";var L=c++;a[L]="^"+a[I]+a[C]+"$";var $=c++;a[$]="^"+a[I]+a[P]+"$";var B=c++;a[B]="(?:\\^)";var U=c++;a[U]="(\\s*)"+a[B]+"\\s+";o[U]=new RegExp(a[U],"g");var G="$1^";var z=c++;a[z]="^"+a[B]+a[C]+"$";var q=c++;a[q]="^"+a[B]+a[P]+"$";var H=c++;a[H]="^"+a[k]+"\\s*("+_+")$|^$";var V=c++;a[V]="^"+a[k]+"\\s*("+x+")$|^$";var W=c++;a[W]="(\\s*)"+a[k]+"\\s*("+_+"|"+a[C]+")";o[W]=new RegExp(a[W],"g");var Y="$1$2$3";var Z=c++;a[Z]="^\\s*("+a[C]+")"+"\\s+-\\s+"+"("+a[C]+")"+"\\s*$";var X=c++;a[X]="^\\s*("+a[P]+")"+"\\s+-\\s+"+"("+a[P]+")"+"\\s*$";var J=c++;a[J]="(<|>)?=?\\s*\\*";for(var K=0;K<c;K++){r(K,a[K]);if(!o[K]){o[K]=new RegExp(a[K])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[O]:o[S];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[O]:o[S]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e}))}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Q=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Q.test(e);var n=Q.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))}t.rsort=rsort;function rsort(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var ee={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[H]:o[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=ee}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===ee){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[X]:o[Z];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[W],Y);r("comparator trim",e,o[W]);e=e.replace(o[N],D);e=e.replace(o[U],G);e=e.split(/\s+/).join(" ");var i=t?o[H]:o[V];var s=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter((function(e){return!!e.match(i)}))}s=s.map((function(e){return new Comparator(e,this.options)}),this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var n=t.loose?o[$]:o[L];return e.replace(n,(function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[q]:o[z];return e.replace(n,(function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[T]:o[j];return e.replace(n,(function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var h=l;if(n==="="&&h){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&h){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[J],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,h,p){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(h){a="<="+c+"."+u+"."+l+"-"+h}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===ee){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}}));return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}}));return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var h=null;var p=null;l.forEach((function(e){if(e.semver===ee){e=new Comparator(">=0.0.0")}h=h||e;p=p||e;if(i(e.semver,h.semver,n)){h=e}else if(o(e.semver,p.semver,n)){p=e}}));if(h.operator===a||h.operator===c){return false}if((!p.operator||p.operator===a)&&s(e,p.semver)){return false}else if(p.operator===c&&o(e,p.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[M]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},2219:e=>{"use strict";
245
245
  /*!
246
246
  * map-cache <https://github.com/jonschlinkert/map-cache>
247
247
  *
248
248
  * Copyright (c) 2015, Jon Schlinkert.
249
249
  * Licensed under the MIT License.
250
- */var t=Object.prototype.hasOwnProperty;e.exports=MapCache;function MapCache(e){this.__data__=e||{}}MapCache.prototype.set=function mapSet(e,t){if(e!=="__proto__"){this.__data__[e]=t}return this};MapCache.prototype.get=function mapGet(e){return e==="__proto__"?undefined:this.__data__[e]};MapCache.prototype.has=function mapHas(e){return e!=="__proto__"&&t.call(this.__data__,e)};MapCache.prototype.del=function mapDelete(e){return this.has(e)&&delete this.__data__[e]}},6519:(e,t,r)=>{"use strict";var n=r(3837);var i=r(1345);e.exports=function mapVisit(e,t,r){if(isObject(r)){return i.apply(null,arguments)}if(!Array.isArray(r)){throw new TypeError("expected an array: "+n.inspect(r))}var s=[].slice.call(arguments,3);for(var o=0;o<r.length;o++){var a=r[o];if(isObject(a)){i.apply(null,[e,t,a].concat(s))}else{e[t].apply(e,[a].concat(s))}}};function isObject(e){return e&&(typeof e==="function"||!Array.isArray(e)&&typeof e==="object")}},2375:(e,t,r)=>{"use strict";const n=r(2781);const i=n.PassThrough;const s=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=s.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=i(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")}));if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(i(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},5122:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}}},9566:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(1561);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,i){return t(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,i){return t.match(r,n,ext(e,i))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(p)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)}var d=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>d){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var m={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";var n="";var s=!!r.nocase;var u=false;var l=[];var p=[];var d;var y=false;var g=-1;var v=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(d){switch(d){case"*":n+=c;s=true;break;case"?":n+=a;s=true;break;default:n+="\\"+d;break}w.debug("clearStateChar %j %j",d,n);d=false}}for(var S=0,x=e.length,_;S<x&&(_=e.charAt(S));S++){this.debug("%s\t%s %s %j",e,S,n,_);if(u&&h[_]){n+="\\"+_;u=false;continue}switch(_){case"/":{return false}case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,S,n,_);if(y){this.debug(" in class");if(_==="!"&&S===v+1)_="^";n+=_;continue}w.debug("call clearStateChar %j",d);clearStateChar();d=_;if(r.noext)clearStateChar();continue;case"(":if(y){n+="(";continue}if(!d){n+="\\(";continue}l.push({type:d,start:S-1,reStart:n.length,open:o[d].open,close:o[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(y||!l.length){n+="\\)";continue}clearStateChar();s=true;var O=l.pop();n+=O.close;if(O.type==="!"){p.push(O)}O.reEnd=n.length;continue;case"|":if(y||!l.length||u){n+="\\|";u=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(y){n+="\\"+_;continue}y=true;v=S;g=n.length;n+=_;continue;case"]":if(S===v+1||!y){n+="\\"+_;u=false;continue}var k=e.substring(v+1,S);try{RegExp("["+k+"]")}catch(e){var A=this.parse(k,m);n=n.substr(0,g)+"\\["+A[0]+"\\]";s=s||A[1];y=false;continue}s=true;y=false;n+=_;continue;default:clearStateChar();if(u){u=false}else if(h[_]&&!(_==="^"&&y)){n+="\\"}n+=_}}if(y){k=e.substr(v+1);A=this.parse(k,m);n=n.substr(0,g)+"\\["+A[0];s=s||A[1]}for(O=l.pop();O;O=l.pop()){var R=n.slice(O.reStart+O.open.length);this.debug("setting tail",n,O);R=R.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",R,R,O,n);var C=O.type==="*"?c:O.type==="?"?a:"\\"+O.type;s=true;n=n.slice(0,O.reStart)+C+"\\("+R}clearStateChar();if(u){n+="\\\\"}var j=false;switch(n.charAt(0)){case"[":case".":case"(":j=true}for(var P=p.length-1;P>-1;P--){var T=p[P];var M=n.slice(0,T.reStart);var I=n.slice(T.reStart,T.reEnd-8);var N=n.slice(T.reEnd-8,T.reEnd);var D=n.slice(T.reEnd);N+=D;var L=M.split("(").length-1;var $=D;for(S=0;S<L;S++){$=$.replace(/\)[+*?]?/,"")}D=$;var B="";if(D===""&&t!==m){B="$"}var U=M+I+D+B+N;n=U}if(n!==""&&s){n="(?=.)"+n}if(j){n=b+n}if(t===m){return[n,s]}if(!s){return globUnescape(e)}var G=r.nocase?"i":"";try{var z=new RegExp("^"+n+"$",G)}catch(e){return new RegExp("$.")}z._glob=e;z._src=n;return z}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?u:l;var n=t.nocase?"i":"";var s=e.map((function(e){return e.map((function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter((function(e){return n.match(e)}));if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<i.length;o++){var a=i[o];var c=e;if(r.matchBase&&a.length===1){c=[s]}var u=this.matchOne(c,a,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o];var l=e[s];this.debug(t,u,l);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[t,u,l]);var h=s;var p=o+1;if(p===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(h<a){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===a)return true}return false}var m;if(typeof u==="string"){m=l===u;this.debug("string match",u,l,m)}else{m=l.match(u);this.debug("pattern match",u,l,m)}if(!m)return false}if(s===a&&o===c){return true}else if(s===a){return r}else if(o===c){return s===a-1&&e[s]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},1561:(e,t,r)=>{var n=r(4527);var i=r(3353);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}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 s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var u=o||c;var l=s.body.indexOf(",")>=0;if(!u&&!l){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var h;if(u){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var p=s.post.length?expand(s.post,false):[""];return p.map((function(e){return s.pre+h[0]+e}))}}}var d=s.pre;var p=s.post.length?expand(s.post,false):[""];var m;if(u){var y=numeric(h[0]);var g=numeric(h[1]);var v=Math.max(h[0].length,h[1].length);var b=h.length==3?Math.abs(numeric(h[2])):1;var w=lte;var S=g<y;if(S){b*=-1;w=gte}var x=h.some(isPadded);m=[];for(var _=y;w(_,g);_+=b){var O;if(c){O=String.fromCharCode(_);if(O==="\\")O=""}else{O=String(_);if(x){var k=v-O.length;if(k>0){var A=new Array(k+1).join("0");if(_<0)O="-"+A+O.slice(1);else O=A+O}}}m.push(O)}}else{m=n(h,(function(e){return expand(e,false)}))}for(var R=0;R<m.length;R++){for(var C=0;C<p.length;C++){var j=d+m[R]+p[C];if(!t||u||j)r.push(j)}}return r}},5912:e=>{e.exports=function(e,t){if(!t)t={};var r={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){r.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){r.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach((function(e){r.bools[e]=true}))}var n={};Object.keys(t.alias||{}).forEach((function(e){n[e]=[].concat(t.alias[e]);n[e].forEach((function(t){n[t]=[e].concat(n[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){r.strings[e]=true;if(n[e]){r.strings[n[e]]=true}}));var i=t["default"]||{};var s={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,i[e]===undefined?false:i[e])}));var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setArg(e,t,i){if(i&&r.unknownFn&&!argDefined(e,i)){if(r.unknownFn(i)===false)return}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(s,e.split("."),o);(n[e]||[]).forEach((function(e){setKey(s,e.split("."),o)}))}function setKey(e,t,n){var i=e;for(var s=0;s<t.length-1;s++){var o=t[s];if(isConstructorOrProto(i,o))return;if(i[o]===undefined)i[o]={};if(i[o]===Object.prototype||i[o]===Number.prototype||i[o]===String.prototype)i[o]={};if(i[o]===Array.prototype)i[o]=[];i=i[o]}var o=t[t.length-1];if(isConstructorOrProto(i,o))return;if(i===Object.prototype||i===Number.prototype||i===String.prototype)i={};if(i===Array.prototype)i=[];if(i[o]===undefined||r.bools[o]||typeof i[o]==="boolean"){i[o]=n}else if(Array.isArray(i[o])){i[o].push(n)}else{i[o]=[i[o],n]}}function aliasIsBoolean(e){return n[e].some((function(e){return r.bools[e]}))}for(var a=0;a<e.length;a++){var c=e[a];if(/^--.+=/.test(c)){var u=c.match(/^--([^=]+)=([\s\S]*)$/);var l=u[1];var h=u[2];if(r.bools[l]){h=h!=="false"}setArg(l,h,c)}else if(/^--no-.+/.test(c)){var l=c.match(/^--no-(.+)/)[1];setArg(l,false,c)}else if(/^--.+/.test(c)){var l=c.match(/^--(.+)/)[1];var p=e[a+1];if(p!==undefined&&!/^-/.test(p)&&!r.bools[l]&&!r.allBools&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,p,c);a++}else if(/^(true|false)$/.test(p)){setArg(l,p==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}else if(/^-[^-]+/.test(c)){var d=c.slice(1,-1).split("");var m=false;for(var y=0;y<d.length;y++){var p=c.slice(y+2);if(p==="-"){setArg(d[y],p,c);continue}if(/[A-Za-z]/.test(d[y])&&/=/.test(p)){setArg(d[y],p.split("=")[1],c);m=true;break}if(/[A-Za-z]/.test(d[y])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){setArg(d[y],p,c);m=true;break}if(d[y+1]&&d[y+1].match(/\W/)){setArg(d[y],c.slice(y+2),c);m=true;break}else{setArg(d[y],r.strings[d[y]]?"":true,c)}}var l=c.slice(-1)[0];if(!m&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[l]&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],c);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}}else{if(!r.unknownFn||r.unknownFn(c)!==false){s._.push(r.strings["_"]||!isNumber(c)?c:Number(c))}if(t.stopEarly){s._.push.apply(s._,e.slice(a+1));break}}}Object.keys(i).forEach((function(e){if(!hasKey(s,e.split("."))){setKey(s,e.split("."),i[e]);(n[e]||[]).forEach((function(t){setKey(s,t.split("."),i[e])}))}}));if(t["--"]){s["--"]=new Array;o.forEach((function(e){s["--"].push(e)}))}else{o.forEach((function(e){s._.push(e)}))}return s};function hasKey(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}},9657:(e,t,r)=>{"use strict";var n=r(5662);var i=r(5451);function mixinDeep(e,t){var r=arguments.length,n=0;while(++n<r){var s=arguments[n];if(isObject(s)){i(s,copy,e)}}return e}function copy(e,t){if(!isValidKey(t)){return}var r=this[t];if(isObject(e)&&isObject(r)){mixinDeep(r,e)}else{this[t]=e}}function isObject(e){return n(e)&&!Array.isArray(e)}function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}e.exports=mixinDeep},5662:(e,t,r)=>{"use strict";
250
+ */var t=Object.prototype.hasOwnProperty;e.exports=MapCache;function MapCache(e){this.__data__=e||{}}MapCache.prototype.set=function mapSet(e,t){if(e!=="__proto__"){this.__data__[e]=t}return this};MapCache.prototype.get=function mapGet(e){return e==="__proto__"?undefined:this.__data__[e]};MapCache.prototype.has=function mapHas(e){return e!=="__proto__"&&t.call(this.__data__,e)};MapCache.prototype.del=function mapDelete(e){return this.has(e)&&delete this.__data__[e]}},6519:(e,t,r)=>{"use strict";var n=r(3837);var i=r(1345);e.exports=function mapVisit(e,t,r){if(isObject(r)){return i.apply(null,arguments)}if(!Array.isArray(r)){throw new TypeError("expected an array: "+n.inspect(r))}var s=[].slice.call(arguments,3);for(var o=0;o<r.length;o++){var a=r[o];if(isObject(a)){i.apply(null,[e,t,a].concat(s))}else{e[t].apply(e,[a].concat(s))}}};function isObject(e){return e&&(typeof e==="function"||!Array.isArray(e)&&typeof e==="object")}},2375:(e,t,r)=>{"use strict";const n=r(2781);const i=n.PassThrough;const s=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=s.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=i(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")}));if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(i(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},5122:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}}},9566:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(1561);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,i){return t(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,i){return t.match(r,n,ext(e,i))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(p)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)}var d=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>d){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var m={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";var n="";var s=!!r.nocase;var u=false;var l=[];var p=[];var d;var y=false;var g=-1;var v=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(d){switch(d){case"*":n+=c;s=true;break;case"?":n+=a;s=true;break;default:n+="\\"+d;break}w.debug("clearStateChar %j %j",d,n);d=false}}for(var S=0,x=e.length,_;S<x&&(_=e.charAt(S));S++){this.debug("%s\t%s %s %j",e,S,n,_);if(u&&h[_]){n+="\\"+_;u=false;continue}switch(_){case"/":{return false}case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,S,n,_);if(y){this.debug(" in class");if(_==="!"&&S===v+1)_="^";n+=_;continue}w.debug("call clearStateChar %j",d);clearStateChar();d=_;if(r.noext)clearStateChar();continue;case"(":if(y){n+="(";continue}if(!d){n+="\\(";continue}l.push({type:d,start:S-1,reStart:n.length,open:o[d].open,close:o[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(y||!l.length){n+="\\)";continue}clearStateChar();s=true;var O=l.pop();n+=O.close;if(O.type==="!"){p.push(O)}O.reEnd=n.length;continue;case"|":if(y||!l.length||u){n+="\\|";u=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(y){n+="\\"+_;continue}y=true;v=S;g=n.length;n+=_;continue;case"]":if(S===v+1||!y){n+="\\"+_;u=false;continue}var k=e.substring(v+1,S);try{RegExp("["+k+"]")}catch(e){var A=this.parse(k,m);n=n.substr(0,g)+"\\["+A[0]+"\\]";s=s||A[1];y=false;continue}s=true;y=false;n+=_;continue;default:clearStateChar();if(u){u=false}else if(h[_]&&!(_==="^"&&y)){n+="\\"}n+=_}}if(y){k=e.substr(v+1);A=this.parse(k,m);n=n.substr(0,g)+"\\["+A[0];s=s||A[1]}for(O=l.pop();O;O=l.pop()){var R=n.slice(O.reStart+O.open.length);this.debug("setting tail",n,O);R=R.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",R,R,O,n);var C=O.type==="*"?c:O.type==="?"?a:"\\"+O.type;s=true;n=n.slice(0,O.reStart)+C+"\\("+R}clearStateChar();if(u){n+="\\\\"}var P=false;switch(n.charAt(0)){case"[":case".":case"(":P=true}for(var j=p.length-1;j>-1;j--){var T=p[j];var M=n.slice(0,T.reStart);var I=n.slice(T.reStart,T.reEnd-8);var N=n.slice(T.reEnd-8,T.reEnd);var D=n.slice(T.reEnd);N+=D;var L=M.split("(").length-1;var $=D;for(S=0;S<L;S++){$=$.replace(/\)[+*?]?/,"")}D=$;var B="";if(D===""&&t!==m){B="$"}var U=M+I+D+B+N;n=U}if(n!==""&&s){n="(?=.)"+n}if(P){n=b+n}if(t===m){return[n,s]}if(!s){return globUnescape(e)}var G=r.nocase?"i":"";try{var z=new RegExp("^"+n+"$",G)}catch(e){return new RegExp("$.")}z._glob=e;z._src=n;return z}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?u:l;var n=t.nocase?"i":"";var s=e.map((function(e){return e.map((function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter((function(e){return n.match(e)}));if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<i.length;o++){var a=i[o];var c=e;if(r.matchBase&&a.length===1){c=[s]}var u=this.matchOne(c,a,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o];var l=e[s];this.debug(t,u,l);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[t,u,l]);var h=s;var p=o+1;if(p===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(h<a){var d=e[h];this.debug("\nglobstar while",e,h,t,p,d);if(this.matchOne(e.slice(h),t.slice(p),r)){this.debug("globstar found match!",h,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,p);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,p);if(h===a)return true}return false}var m;if(typeof u==="string"){m=l===u;this.debug("string match",u,l,m)}else{m=l.match(u);this.debug("pattern match",u,l,m)}if(!m)return false}if(s===a&&o===c){return true}else if(s===a){return r}else if(o===c){return s===a-1&&e[s]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},1561:(e,t,r)=>{var n=r(4527);var i=r(3353);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}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 s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var u=o||c;var l=s.body.indexOf(",")>=0;if(!u&&!l){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var h;if(u){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var p=s.post.length?expand(s.post,false):[""];return p.map((function(e){return s.pre+h[0]+e}))}}}var d=s.pre;var p=s.post.length?expand(s.post,false):[""];var m;if(u){var y=numeric(h[0]);var g=numeric(h[1]);var v=Math.max(h[0].length,h[1].length);var b=h.length==3?Math.abs(numeric(h[2])):1;var w=lte;var S=g<y;if(S){b*=-1;w=gte}var x=h.some(isPadded);m=[];for(var _=y;w(_,g);_+=b){var O;if(c){O=String.fromCharCode(_);if(O==="\\")O=""}else{O=String(_);if(x){var k=v-O.length;if(k>0){var A=new Array(k+1).join("0");if(_<0)O="-"+A+O.slice(1);else O=A+O}}}m.push(O)}}else{m=n(h,(function(e){return expand(e,false)}))}for(var R=0;R<m.length;R++){for(var C=0;C<p.length;C++){var P=d+m[R]+p[C];if(!t||u||P)r.push(P)}}return r}},5912:e=>{e.exports=function(e,t){if(!t)t={};var r={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){r.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){r.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach((function(e){r.bools[e]=true}))}var n={};Object.keys(t.alias||{}).forEach((function(e){n[e]=[].concat(t.alias[e]);n[e].forEach((function(t){n[t]=[e].concat(n[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){r.strings[e]=true;if(n[e]){r.strings[n[e]]=true}}));var i=t["default"]||{};var s={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,i[e]===undefined?false:i[e])}));var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setArg(e,t,i){if(i&&r.unknownFn&&!argDefined(e,i)){if(r.unknownFn(i)===false)return}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(s,e.split("."),o);(n[e]||[]).forEach((function(e){setKey(s,e.split("."),o)}))}function setKey(e,t,n){var i=e;for(var s=0;s<t.length-1;s++){var o=t[s];if(isConstructorOrProto(i,o))return;if(i[o]===undefined)i[o]={};if(i[o]===Object.prototype||i[o]===Number.prototype||i[o]===String.prototype)i[o]={};if(i[o]===Array.prototype)i[o]=[];i=i[o]}var o=t[t.length-1];if(isConstructorOrProto(i,o))return;if(i===Object.prototype||i===Number.prototype||i===String.prototype)i={};if(i===Array.prototype)i=[];if(i[o]===undefined||r.bools[o]||typeof i[o]==="boolean"){i[o]=n}else if(Array.isArray(i[o])){i[o].push(n)}else{i[o]=[i[o],n]}}function aliasIsBoolean(e){return n[e].some((function(e){return r.bools[e]}))}for(var a=0;a<e.length;a++){var c=e[a];if(/^--.+=/.test(c)){var u=c.match(/^--([^=]+)=([\s\S]*)$/);var l=u[1];var h=u[2];if(r.bools[l]){h=h!=="false"}setArg(l,h,c)}else if(/^--no-.+/.test(c)){var l=c.match(/^--no-(.+)/)[1];setArg(l,false,c)}else if(/^--.+/.test(c)){var l=c.match(/^--(.+)/)[1];var p=e[a+1];if(p!==undefined&&!/^-/.test(p)&&!r.bools[l]&&!r.allBools&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,p,c);a++}else if(/^(true|false)$/.test(p)){setArg(l,p==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}else if(/^-[^-]+/.test(c)){var d=c.slice(1,-1).split("");var m=false;for(var y=0;y<d.length;y++){var p=c.slice(y+2);if(p==="-"){setArg(d[y],p,c);continue}if(/[A-Za-z]/.test(d[y])&&/=/.test(p)){setArg(d[y],p.split("=")[1],c);m=true;break}if(/[A-Za-z]/.test(d[y])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){setArg(d[y],p,c);m=true;break}if(d[y+1]&&d[y+1].match(/\W/)){setArg(d[y],c.slice(y+2),c);m=true;break}else{setArg(d[y],r.strings[d[y]]?"":true,c)}}var l=c.slice(-1)[0];if(!m&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[l]&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],c);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",c);a++}else{setArg(l,r.strings[l]?"":true,c)}}}else{if(!r.unknownFn||r.unknownFn(c)!==false){s._.push(r.strings["_"]||!isNumber(c)?c:Number(c))}if(t.stopEarly){s._.push.apply(s._,e.slice(a+1));break}}}Object.keys(i).forEach((function(e){if(!hasKey(s,e.split("."))){setKey(s,e.split("."),i[e]);(n[e]||[]).forEach((function(t){setKey(s,t.split("."),i[e])}))}}));if(t["--"]){s["--"]=new Array;o.forEach((function(e){s["--"].push(e)}))}else{o.forEach((function(e){s._.push(e)}))}return s};function hasKey(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}},9657:(e,t,r)=>{"use strict";var n=r(5662);var i=r(5451);function mixinDeep(e,t){var r=arguments.length,n=0;while(++n<r){var s=arguments[n];if(isObject(s)){i(s,copy,e)}}return e}function copy(e,t){if(!isValidKey(t)){return}var r=this[t];if(isObject(e)&&isObject(r)){mixinDeep(r,e)}else{this[t]=e}}function isObject(e){return n(e)&&!Array.isArray(e)}function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}e.exports=mixinDeep},5662:(e,t,r)=>{"use strict";
251
251
  /*!
252
252
  * is-extendable <https://github.com/jonschlinkert/is-extendable>
253
253
  *
@@ -284,7 +284,7 @@ var n=r(6546);var i={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[0
284
284
  * Copyright (c) 2015, Jon Schlinkert.
285
285
  * Licensed under the MIT License.
286
286
  */
287
- function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a string.")}e=e.replace(/([A-Z])/g," $1");if(e.length===1){return e.toUpperCase()}e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();e=e.charAt(0).toUpperCase()+e.slice(1);return e.replace(/[\W_]+(\w|$)/g,(function(e,t){return t.toUpperCase()}))}e.exports=pascalcase},8261:(e,t,r)=>{"use strict";var n=r(1017);var i=r(3837).inspect;function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+i(e))}}function posix(e){assertPath(e);if(e.length===0)return".";var t=e.charCodeAt(0);var r=t===47;var n=-1;var i=true;for(var s=e.length-1;s>=1;--s){t=e.charCodeAt(s);if(t===47){if(!i){n=s;break}}else{i=false}}if(n===-1)return r?"/":".";if(r&&n===1)return"//";return e.slice(0,n)}function win32(e){assertPath(e);var t=e.length;if(t===0)return".";var r=-1;var n=-1;var i=true;var s=0;var o=e.charCodeAt(0);if(t>1){if(o===47||o===92){r=s=1;o=e.charCodeAt(1);if(o===47||o===92){var a=2;var c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o!==47&&o!==92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a===t){return e}if(a!==c){r=s=a+1}}}}}else if(o>=65&&o<=90||o>=97&&o<=122){o=e.charCodeAt(1);if(e.charCodeAt(1)===58){r=s=2;if(t>2){o=e.charCodeAt(2);if(o===47||o===92)r=s=3}}}}else if(o===47||o===92){return e[0]}for(var u=t-1;u>=s;--u){o=e.charCodeAt(u);if(o===47||o===92){if(!i){n=u;break}}else{i=false}}if(n===-1){if(r===-1)return".";else n=r}return e.slice(0,n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},1323:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},2170:e=>{"use strict";e.exports=e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find((e=>e.toUpperCase()==="PATH"))||"Path"}},803:e=>{"use strict";e.exports={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"}},399:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},7967:(e,t,r)=>{"use strict";const n=r(399);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},4102:(e,t,r)=>{"use strict";const n=r(399);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},7517:(e,t,r)=>{"use strict";e.exports={DatePart:r(399),Meridiem:r(4128),Day:r(7967),Hours:r(4102),Milliseconds:r(6945),Minutes:r(7829),Month:r(8608),Seconds:r(812),Year:r(5227)}},4128:(e,t,r)=>{"use strict";const n=r(399);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},6945:(e,t,r)=>{"use strict";const n=r(399);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},7829:(e,t,r)=>{"use strict";const n=r(399);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},8608:(e,t,r)=>{"use strict";const n=r(399);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},812:(e,t,r)=>{"use strict";const n=r(399);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},5227:(e,t,r)=>{"use strict";const n=r(399);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},935:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(332),o=s.cursor;const a=r(2800),c=a.style,u=a.clear,l=a.figures,h=a.strip;const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${l.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${l.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=c.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}complete(e){var t=this;return _asyncToGenerator((function*(){const r=t.completing=t.suggest(t.input,t.choices);const n=yield r;if(t.completing!==r)return;t.suggestions=n.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,r)=>{if(e[e.length-1].length<t.limit)e[e.length-1].push(r);else e.push([r]);return e}),[[]]);t.isFallback=false;t.completing=false;if(!t.suggestions[t.page])t.page=0;if(!t.suggestions.length&&t.fallback){const e=getIndex(t.choices,t.fallback);t.suggestions=[[]];if(e!==undefined)t.suggestions[0].push({title:getTitle(t.choices,e),value:getVal(t.choices,e)});t.isFallback=true}const i=Math.max(n.length-1,0);t.moveSelect(Math.min(i,t.select));e&&e()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(o.down(this.lineCount));let e=n.bold(`${c.symbol(this.done,this.aborted)} ${this.msg} `)+`${c.delimiter(this.completing)} `;let t=h(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=u(e);if(this.lineCount&&!this.done){let e=o.up(this.lineCount);e+=o.left+o.to(t);e+=o.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},2040:(e,t,r)=>{"use strict";const n=r(6560);const i=r(332),s=i.cursor;const o=r(4047);const a=r(2800),c=a.clear,u=a.style,l=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=c("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=AutocompleteMultiselectPrompt},5680:(e,t,r)=>{"use strict";const n=r(6560);const i=r(5876);const s=r(2800),o=s.style;const a=r(332),c=a.erase,u=a.cursor;class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(c.line+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},3031:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(2800),o=s.style,a=s.clear,c=s.figures,u=s.strip;const l=r(332),h=l.erase,p=l.cursor;const d=r(7517),m=d.DatePart,y=d.Meridiem,g=d.Day,v=d.Hours,b=d.Milliseconds,w=d.Minutes,S=d.Month,x=d.Seconds,_=d.Year;const O=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const k={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new g(e),3:e=>new S(e),4:e=>new _(e),5:e=>new y(e),6:e=>new v(e),7:e=>new w(e),8:e=>new x(e),9:e=>new b(e)};const A={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(A,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=O.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in k?k[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof m)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof m)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(h.lines(1));super.render();let e=h.line+(this.lines?h.down(this.lines):"")+p.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:c.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let i="";if(this.lines){i+=p.up(this.lines);i+=p.left+p.to(u(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},9956:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(5430),SelectPrompt:r(8856),TogglePrompt:r(9692),DatePrompt:r(3031),NumberPrompt:r(8831),MultiselectPrompt:r(4047),AutocompletePrompt:r(935),AutocompleteMultiselectPrompt:r(2040),ConfirmPrompt:r(5680)}},4047:(e,t,r)=>{"use strict";const n=r(6560);const i=r(332),s=i.cursor;const o=r(5876);const a=r(2800),c=a.clear,u=a.figures,l=a.style;class MultiselectPrompt extends o{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=c("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=MultiselectPrompt},8831:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(332),o=s.cursor,a=s.erase;const c=r(2800),u=c.style,l=c.clear,h=c.figures,p=c.strip;const d=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=u.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||d.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()}))()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=a.line+(this.lines?a.down(this.lines):``)+o.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let s=``;if(this.lines){s+=o.up(this.lines);s+=o.left+o.to(p(i).length)}this.out.write(e+i+t+s)}}e.exports=NumberPrompt},5876:(e,t,r)=>{"use strict";const n=r(4521);const i=r(2800),s=i.action;const o=r(2361);const a=r(332),c=a.beep,u=a.cursor;const l=r(6560);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=s(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(u.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(c)}render(){this.onRender(l);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},8856:(e,t,r)=>{"use strict";const n=r(6560);const i=r(5876);const s=r(2800),o=s.style,a=s.clear,c=s.figures;const u=r(332),l=u.erase,h=u.cursor;class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l.lines(this.choices.length+1));super.render();this.out.write([o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(c.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(c.pointer)+" ":" "}return`${i} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},5430:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(332),o=s.cursor;const a=r(2800),c=a.style,u=a.clear,l=a.strip,h=a.figures;class TextPrompt extends i{constructor(e={}){super(e);this.transform=c.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?o.down(this.lines):``)+this.clear;this.lines=0;let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let i=``;if(this.lines){i+=o.up(this.lines);i+=o.left+o.to(l(t).length)}i+=o.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=u(t+r)}}e.exports=TextPrompt},9692:(e,t,r)=>{"use strict";const n=r(6560);const i=r(5876);const s=r(2800),o=s.style,a=s.clear;const c=r(332),u=c.cursor,l=c.erase;class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(l.lines(this.first?1:this.msg.split(/\n/g).length)+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},6598:(e,t,r)=>{"use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){_defineProperty(e,t,r[t])}))}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(4591);const i=["suggest","format","onState","validate","onRender"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const s={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const p=function(){var e=_asyncToGenerator((function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,s):t}));return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var d=true;var m=false;var y=undefined;try{for(var g=e[Symbol.iterator](),v;!(d=(v=g.next()).done);d=true){c=v.value;var b=c;l=b.name;h=b.type;for(let e in c){if(i.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?yield t(a,_objectSpread({},s),c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}var w=c;l=w.name;h=w.type;if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=yield p(c,o[c.name]);if(a!==undefined){s[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):yield n[h](c);s[l]=a=yield p(c,a,true);u=yield t(c,a,s)}catch(e){u=!(yield r(c,s))}if(u)return s}}catch(e){m=true;y=e}finally{try{if(!d&&g.return!=null){g.return()}}finally{if(m){throw y}}}return s}));return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},4591:(e,t,r)=>{"use strict";const n=t;const i=r(9956);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,s)=>{const o=new i[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>s(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},8692:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},3513:(e,t,r)=>{"use strict";const n=r(8760);const i=r(332),s=i.erase,o=i.cursor;const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return s.line+o.to(0);let r=0;const n=e.split(/\r?\n/);var i=true;var a=false;var c=undefined;try{for(var u=n[Symbol.iterator](),l;!(i=(l=u.next()).done);i=true){let e=l.value;r+=1+Math.floor(Math.max(width(e)-1,0)/t)}}catch(e){a=true;c=e}finally{try{if(!i&&u.return!=null){u.return()}}finally{if(a){throw c}}}return(s.line+o.prevLine()).repeat(r-1)+s.line+o.to(0)}},6217:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},2800:(e,t,r)=>{"use strict";e.exports={action:r(8692),clear:r(3513),style:r(5012),strip:r(8760),figures:r(6217)}},8760:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},5012:(e,t,r)=>{"use strict";const n=r(6560);const i=r(6217);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>s[e]||s.default;const o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?i.ellipsis:i.pointerSmall);const item=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},1112:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(6598):r(9590)},8994:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},5513:(e,t,r)=>{"use strict";const n=r(8994);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},9270:(e,t,r)=>{"use strict";const n=r(8994);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},1190:(e,t,r)=>{"use strict";e.exports={DatePart:r(8994),Meridiem:r(8135),Day:r(5513),Hours:r(9270),Milliseconds:r(2397),Minutes:r(9246),Month:r(5763),Seconds:r(5579),Year:r(4191)}},8135:(e,t,r)=>{"use strict";const n=r(8994);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},2397:(e,t,r)=>{"use strict";const n=r(8994);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},9246:(e,t,r)=>{"use strict";const n=r(8994);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},5763:(e,t,r)=>{"use strict";const n=r(8994);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},5579:(e,t,r)=>{"use strict";const n=r(8994);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},4191:(e,t,r)=>{"use strict";const n=r(8994);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},514:(e,t,r)=>{"use strict";const n=r(6560);const i=r(9126);const{cursor:s}=r(332);const{style:o,clear:a,figures:c,strip:u}=r(9807);const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${c.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${c.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=o.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=a("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,t)=>{if(e[e.length-1].length<this.limit)e[e.length-1].push(t);else e.push([t]);return e}),[[]]);this.isFallback=false;this.completing=false;if(!this.suggestions[this.page])this.page=0;if(!this.suggestions.length&&this.fallback){const e=getIndex(this.choices,this.fallback);this.suggestions=[[]];if(e!==undefined)this.suggestions[0].push({title:getTitle(this.choices,e),value:getVal(this.choices,e)});this.isFallback=true}const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select));e&&e()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(s.down(this.lineCount));let e=n.bold(`${o.symbol(this.done,this.aborted)} ${this.msg} `)+`${o.delimiter(this.completing)} `;let t=u(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=a(e);if(this.lineCount&&!this.done){let e=s.up(this.lineCount);e+=s.left+s.to(t);e+=s.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},7685:(e,t,r)=>{"use strict";const n=r(6560);const{cursor:i}=r(332);const s=r(92);const{clear:o,style:a,figures:c}=r(9807);class AutocompleteMultiselectPrompt extends s{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${c.arrowUp}/${c.arrowDown}: Highlight option\n ${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(c.radioOn):c.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},3037:(e,t,r)=>{const n=r(6560);const i=r(9126);const{style:s}=r(9807);const{erase:o,cursor:a}=r(332);class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(o.line+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},5048:(e,t,r)=>{"use strict";const n=r(6560);const i=r(9126);const{style:s,clear:o,figures:a,strip:c}=r(9807);const{erase:u,cursor:l}=r(332);const{DatePart:h,Meridiem:p,Day:d,Hours:m,Milliseconds:y,Minutes:g,Month:v,Seconds:b,Year:w}=r(1190);const S=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const x={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new v(e),4:e=>new w(e),5:e=>new p(e),6:e=>new m(e),7:e=>new g(e),8:e=>new b(e),9:e=>new y(e)};const _={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(_,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=S.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in x?x[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof h)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof h)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(u.lines(1));super.render();let e=u.line+(this.lines?u.down(this.lines):"")+l.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let i="";if(this.lines){i+=l.up(this.lines);i+=l.left+l.to(c(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},6529:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(1551),SelectPrompt:r(6515),TogglePrompt:r(181),DatePrompt:r(5048),NumberPrompt:r(3686),MultiselectPrompt:r(92),AutocompletePrompt:r(514),AutocompleteMultiselectPrompt:r(7685),ConfirmPrompt:r(3037)}},92:(e,t,r)=>{"use strict";const n=r(6560);const{cursor:i}=r(332);const s=r(9126);const{clear:o,figures:a,style:c}=r(9807);class MultiselectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=o("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(a.radioOn):a.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},3686:(e,t,r)=>{const n=r(6560);const i=r(9126);const{cursor:s,erase:o}=r(332);const{style:a,clear:c,figures:u,strip:l}=r(9807);const h=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||h.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=o.line+(this.lines?o.down(this.lines):``)+s.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let c=``;if(this.lines){c+=s.up(this.lines);c+=s.left+s.to(l(i).length)}this.out.write(e+i+t+c)}}e.exports=NumberPrompt},9126:(e,t,r)=>{"use strict";const n=r(4521);const{action:i}=r(9807);const s=r(2361);const{beep:o,cursor:a}=r(332);const c=r(6560);class Prompt extends s{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=i(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(a.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(c);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},6515:(e,t,r)=>{"use strict";const n=r(6560);const i=r(9126);const{style:s,clear:o,figures:a}=r(9807);const{erase:c,cursor:u}=r(332);class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(c.lines(this.choices.length+1));super.render();this.out.write([s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(a.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(a.pointer)+" ":" "}return`${i} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},1551:(e,t,r)=>{const n=r(6560);const i=r(9126);const{cursor:s}=r(332);const{style:o,clear:a,strip:c,figures:u}=r(9807);class TextPrompt extends i{constructor(e={}){super(e);this.transform=o.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=a(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?s.down(this.lines):``)+this.clear;this.lines=0;let t=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let i=``;if(this.lines){i+=s.up(this.lines);i+=s.left+s.to(c(t).length)}i+=s.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=a(t+r)}}e.exports=TextPrompt},181:(e,t,r)=>{const n=r(6560);const i=r(9126);const{style:s,clear:o}=r(9807);const{cursor:a,erase:c}=r(332);class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(c.lines(this.first?1:this.msg.split(/\n/g).length)+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},9590:(e,t,r)=>{"use strict";const n=r(4450);const i=["suggest","format","onState","validate","onRender"];const noop=()=>{};async function prompt(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const s={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const getFormattedAnswer=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,s):t};for(c of e){({name:l,type:h}=c);for(let e in c){if(i.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?await t(a,{...s},c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}({name:l,type:h}=c);if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=await getFormattedAnswer(c,o[c.name]);if(a!==undefined){s[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):await n[h](c);s[l]=a=await getFormattedAnswer(c,a,true);u=await t(c,a,s)}catch(e){u=!await r(c,s)}if(u)return s}return s}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},4450:(e,t,r)=>{"use strict";const n=t;const i=r(6529);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,s)=>{const o=new i[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>s(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},8573:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},6747:(e,t,r)=>{"use strict";const n=r(2714);const{erase:i,cursor:s}=r(332);const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+s.to(0);let r=0;const n=e.split(/\r?\n/);for(let e of n){r+=1+Math.floor(Math.max(width(e)-1,0)/t)}return(i.line+s.prevLine()).repeat(r-1)+i.line+s.to(0)}},3034:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},9807:(e,t,r)=>{"use strict";e.exports={action:r(8573),clear:r(6747),style:r(7357),strip:r(2714),figures:r(3034)}},2714:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},7357:(e,t,r)=>{"use strict";const n=r(6560);const i=r(3034);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>s[e]||s.default;const o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?i.ellipsis:i.pointerSmall);const item=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},6560:e=>{"use strict";const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env;const i={enabled:!r&&n!=="dumb"&&t!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(e,t){let r=0,n,i="",s="";for(;r<e.length;r++){n=e[r];i+=n.open;s+=n.close;if(t.includes(n.close)){t=t.replace(n.rgx,n.close+n.open)}}return i+t+s}function chain(e,t){let r={has:e,keys:t};r.reset=i.reset.bind(r);r.bold=i.bold.bind(r);r.dim=i.dim.bind(r);r.italic=i.italic.bind(r);r.underline=i.underline.bind(r);r.inverse=i.inverse.bind(r);r.hidden=i.hidden.bind(r);r.strikethrough=i.strikethrough.bind(r);r.black=i.black.bind(r);r.red=i.red.bind(r);r.green=i.green.bind(r);r.yellow=i.yellow.bind(r);r.blue=i.blue.bind(r);r.magenta=i.magenta.bind(r);r.cyan=i.cyan.bind(r);r.white=i.white.bind(r);r.gray=i.gray.bind(r);r.grey=i.grey.bind(r);r.bgBlack=i.bgBlack.bind(r);r.bgRed=i.bgRed.bind(r);r.bgGreen=i.bgGreen.bind(r);r.bgYellow=i.bgYellow.bind(r);r.bgBlue=i.bgBlue.bind(r);r.bgMagenta=i.bgMagenta.bind(r);r.bgCyan=i.bgCyan.bind(r);r.bgWhite=i.bgWhite.bind(r);return r}function init(e,t){let r={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){if(this!==void 0&&this.has!==void 0){this.has.includes(e)||(this.has.push(e),this.keys.push(r));return t===void 0?this:i.enabled?run(this.keys,t+""):t+""}return t===void 0?chain([e],[r]):i.enabled?run([r],t+""):t+""}}e.exports=i},9595:(e,t,r)=>{var n=r(7197);var i=r(2498);var s=r(7147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!s)return false;return(e instanceof(s.ReadStream||noop)||e instanceof(s.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,s){s=n(s);var o=false;e.on("close",(function(){o=true}));i(e,{readable:t,writable:r},(function(e){if(e)return s(e);o=true;s()}));var a=false;return function(t){if(o)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map((function(i,s){var o=s<e.length-1;var a=s>0;return destroyer(i,o,a,(function(e){if(!r)r=e;if(e)n.forEach(call);if(o)return;n.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},8271:(e,t,r)=>{var n=r(7563);var i=r(1017).join;var s=r(5134);var o="/etc";var a=process.platform==="win32";var c=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,u,l){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!u)u=r(5912)(process.argv.slice(2));t=("string"===typeof t?n.json(t):t)||{};l=l||n.parse;var h=n.env(e+"_");var p=[t];var d=[];function addConfigFile(e){if(d.indexOf(e)>=0)return;var t=n.file(e);if(t){p.push(l(t));d.push(e)}}if(!a)[i(o,e,"config"),i(o,e+"rc")].forEach(addConfigFile);if(c)[i(c,".config",e,"config"),i(c,".config",e),i(c,"."+e,"config"),i(c,"."+e+"rc")].forEach(addConfigFile);addConfigFile(n.find("."+e+"rc"));if(h.config)addConfigFile(h.config);if(u.config)addConfigFile(u.config);return s.apply(null,p.concat([h,u,d.length?{configs:d,config:d[d.length-1]}:undefined]))}},7563:(e,t,r)=>{"use strict";var n=r(7147);var i=r(1923);var s=r(1017);var o=r(5561);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return i.parse(e)};var c=t.file=function(){var e=[].slice.call(arguments).filter((function(e){return e!=null}));for(var t in e)if("string"!==typeof e[t])return;var r=s.join.apply(null,e);var i;try{return n.readFileSync(r,"utf-8")}catch(e){return}};var u=t.json=function(){var e=c.apply(null,arguments);return e?a(e):null};var l=t.env=function(e,t){t=t||process.env;var r={};var n=e.length;for(var i in t){if(i.toLowerCase().indexOf(e.toLowerCase())===0){var s=i.substring(n).split("__");var o;while((o=s.indexOf(""))>-1){s.splice(o,1)}var a=r;s.forEach((function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===s.length-1)a[e]=t[i];if(a[e]===undefined)a[e]={};a=a[e]}))}}return r};var h=t.find=function(){var e=s.join.apply(null,[].slice.call(arguments));function find(e,t){var r=s.join(e,t);try{n.statSync(r);return r}catch(r){if(s.dirname(e)!==e)return find(s.dirname(e),t)}}return find(process.cwd(),e)}},466:(e,t,r)=>{"use strict";var n=r(8134);var i=r(8589);function toRegex(e,t){return new RegExp(toRegex.create(e,t))}toRegex.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=n({},t);if(r.contains===true){r.strictNegate=false}var s=r.strictOpen!==false?"^":"";var o=r.strictClose!==false?"$":"";var a=r.endChar?r.endChar:"+";var c=e;if(r.strictNegate===false){c="(?:(?!(?:"+e+")).)"+a}else{c="(?:(?!^(?:"+e+")$).)"+a}var u=s+c+o;if(r.safe===true&&i(u)===false){throw new Error("potentially unsafe regular expression: "+u)}return u};e.exports=toRegex},8134:(e,t,r)=>{"use strict";var n=r(5114);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},5114:(e,t,r)=>{"use strict";
287
+ function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a string.")}e=e.replace(/([A-Z])/g," $1");if(e.length===1){return e.toUpperCase()}e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();e=e.charAt(0).toUpperCase()+e.slice(1);return e.replace(/[\W_]+(\w|$)/g,(function(e,t){return t.toUpperCase()}))}e.exports=pascalcase},8261:(e,t,r)=>{"use strict";var n=r(1017);var i=r(3837).inspect;function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+i(e))}}function posix(e){assertPath(e);if(e.length===0)return".";var t=e.charCodeAt(0);var r=t===47;var n=-1;var i=true;for(var s=e.length-1;s>=1;--s){t=e.charCodeAt(s);if(t===47){if(!i){n=s;break}}else{i=false}}if(n===-1)return r?"/":".";if(r&&n===1)return"//";return e.slice(0,n)}function win32(e){assertPath(e);var t=e.length;if(t===0)return".";var r=-1;var n=-1;var i=true;var s=0;var o=e.charCodeAt(0);if(t>1){if(o===47||o===92){r=s=1;o=e.charCodeAt(1);if(o===47||o===92){var a=2;var c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o!==47&&o!==92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a===t){return e}if(a!==c){r=s=a+1}}}}}else if(o>=65&&o<=90||o>=97&&o<=122){o=e.charCodeAt(1);if(e.charCodeAt(1)===58){r=s=2;if(t>2){o=e.charCodeAt(2);if(o===47||o===92)r=s=3}}}}else if(o===47||o===92){return e[0]}for(var u=t-1;u>=s;--u){o=e.charCodeAt(u);if(o===47||o===92){if(!i){n=u;break}}else{i=false}}if(n===-1){if(r===-1)return".";else n=r}return e.slice(0,n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},1323:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},2170:e=>{"use strict";e.exports=e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find((e=>e.toUpperCase()==="PATH"))||"Path"}},9367:e=>{"use strict";const processFn=(e,t)=>function(...r){const n=t.promiseModule;return new n(((n,i)=>{if(t.multiArgs){r.push(((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();n(e)}}else{n(e)}}))}else if(t.errorFirst){r.push(((e,t)=>{if(e){i(e)}else{n(t)}}))}else{r.push(n)}e.apply(this,r)}))};e.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const r=typeof e;if(!(e!==null&&(r==="object"||r==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":r}\``)}const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(r==="function"){n=function(...r){return t.excludeMain?e(...r):processFn(e,t).apply(this,r)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const r in e){const i=e[r];n[r]=typeof i==="function"&&filter(r)?processFn(i,t):i}return n}},803:e=>{"use strict";e.exports={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"}},399:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},7967:(e,t,r)=>{"use strict";const n=r(399);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},4102:(e,t,r)=>{"use strict";const n=r(399);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},7517:(e,t,r)=>{"use strict";e.exports={DatePart:r(399),Meridiem:r(4128),Day:r(7967),Hours:r(4102),Milliseconds:r(6945),Minutes:r(7829),Month:r(8608),Seconds:r(812),Year:r(5227)}},4128:(e,t,r)=>{"use strict";const n=r(399);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},6945:(e,t,r)=>{"use strict";const n=r(399);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},7829:(e,t,r)=>{"use strict";const n=r(399);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},8608:(e,t,r)=>{"use strict";const n=r(399);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},812:(e,t,r)=>{"use strict";const n=r(399);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},5227:(e,t,r)=>{"use strict";const n=r(399);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},935:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(332),o=s.cursor;const a=r(2800),c=a.style,u=a.clear,l=a.figures,h=a.strip;const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${l.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${l.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=c.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}complete(e){var t=this;return _asyncToGenerator((function*(){const r=t.completing=t.suggest(t.input,t.choices);const n=yield r;if(t.completing!==r)return;t.suggestions=n.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,r)=>{if(e[e.length-1].length<t.limit)e[e.length-1].push(r);else e.push([r]);return e}),[[]]);t.isFallback=false;t.completing=false;if(!t.suggestions[t.page])t.page=0;if(!t.suggestions.length&&t.fallback){const e=getIndex(t.choices,t.fallback);t.suggestions=[[]];if(e!==undefined)t.suggestions[0].push({title:getTitle(t.choices,e),value:getVal(t.choices,e)});t.isFallback=true}const i=Math.max(n.length-1,0);t.moveSelect(Math.min(i,t.select));e&&e()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(o.down(this.lineCount));let e=n.bold(`${c.symbol(this.done,this.aborted)} ${this.msg} `)+`${c.delimiter(this.completing)} `;let t=h(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=u(e);if(this.lineCount&&!this.done){let e=o.up(this.lineCount);e+=o.left+o.to(t);e+=o.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},2040:(e,t,r)=>{"use strict";const n=r(6560);const i=r(332),s=i.cursor;const o=r(4047);const a=r(2800),c=a.clear,u=a.style,l=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=c("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=AutocompleteMultiselectPrompt},5680:(e,t,r)=>{"use strict";const n=r(6560);const i=r(5876);const s=r(2800),o=s.style;const a=r(332),c=a.erase,u=a.cursor;class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(c.line+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},3031:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(2800),o=s.style,a=s.clear,c=s.figures,u=s.strip;const l=r(332),h=l.erase,p=l.cursor;const d=r(7517),m=d.DatePart,y=d.Meridiem,g=d.Day,v=d.Hours,b=d.Milliseconds,w=d.Minutes,S=d.Month,x=d.Seconds,_=d.Year;const O=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const k={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new g(e),3:e=>new S(e),4:e=>new _(e),5:e=>new y(e),6:e=>new v(e),7:e=>new w(e),8:e=>new x(e),9:e=>new b(e)};const A={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(A,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=O.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in k?k[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof m)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof m)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(h.lines(1));super.render();let e=h.line+(this.lines?h.down(this.lines):"")+p.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:c.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let i="";if(this.lines){i+=p.up(this.lines);i+=p.left+p.to(u(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},9956:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(5430),SelectPrompt:r(8856),TogglePrompt:r(9692),DatePrompt:r(3031),NumberPrompt:r(8831),MultiselectPrompt:r(4047),AutocompletePrompt:r(935),AutocompleteMultiselectPrompt:r(2040),ConfirmPrompt:r(5680)}},4047:(e,t,r)=>{"use strict";const n=r(6560);const i=r(332),s=i.cursor;const o=r(5876);const a=r(2800),c=a.clear,u=a.figures,l=a.style;class MultiselectPrompt extends o{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=c("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=MultiselectPrompt},8831:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(332),o=s.cursor,a=s.erase;const c=r(2800),u=c.style,l=c.clear,h=c.figures,p=c.strip;const d=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=u.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||d.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()}))()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=a.line+(this.lines?a.down(this.lines):``)+o.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let s=``;if(this.lines){s+=o.up(this.lines);s+=o.left+o.to(p(i).length)}this.out.write(e+i+t+s)}}e.exports=NumberPrompt},5876:(e,t,r)=>{"use strict";const n=r(4521);const i=r(2800),s=i.action;const o=r(2361);const a=r(332),c=a.beep,u=a.cursor;const l=r(6560);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=s(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(u.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(c)}render(){this.onRender(l);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},8856:(e,t,r)=>{"use strict";const n=r(6560);const i=r(5876);const s=r(2800),o=s.style,a=s.clear,c=s.figures;const u=r(332),l=u.erase,h=u.cursor;class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l.lines(this.choices.length+1));super.render();this.out.write([o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(c.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(c.pointer)+" ":" "}return`${i} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},5430:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(6560);const i=r(5876);const s=r(332),o=s.cursor;const a=r(2800),c=a.style,u=a.clear,l=a.strip,h=a.figures;class TextPrompt extends i{constructor(e={}){super(e);this.transform=c.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?o.down(this.lines):``)+this.clear;this.lines=0;let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":h.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let i=``;if(this.lines){i+=o.up(this.lines);i+=o.left+o.to(l(t).length)}i+=o.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=u(t+r)}}e.exports=TextPrompt},9692:(e,t,r)=>{"use strict";const n=r(6560);const i=r(5876);const s=r(2800),o=s.style,a=s.clear;const c=r(332),u=c.cursor,l=c.erase;class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(l.lines(this.first?1:this.msg.split(/\n/g).length)+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},6598:(e,t,r)=>{"use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))}n.forEach((function(t){_defineProperty(e,t,r[t])}))}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)}))}}const n=r(4591);const i=["suggest","format","onState","validate","onRender"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const s={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const p=function(){var e=_asyncToGenerator((function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,s):t}));return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var d=true;var m=false;var y=undefined;try{for(var g=e[Symbol.iterator](),v;!(d=(v=g.next()).done);d=true){c=v.value;var b=c;l=b.name;h=b.type;for(let e in c){if(i.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?yield t(a,_objectSpread({},s),c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}var w=c;l=w.name;h=w.type;if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=yield p(c,o[c.name]);if(a!==undefined){s[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):yield n[h](c);s[l]=a=yield p(c,a,true);u=yield t(c,a,s)}catch(e){u=!(yield r(c,s))}if(u)return s}}catch(e){m=true;y=e}finally{try{if(!d&&g.return!=null){g.return()}}finally{if(m){throw y}}}return s}));return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},4591:(e,t,r)=>{"use strict";const n=t;const i=r(9956);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,s)=>{const o=new i[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>s(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},8692:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},3513:(e,t,r)=>{"use strict";const n=r(8760);const i=r(332),s=i.erase,o=i.cursor;const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return s.line+o.to(0);let r=0;const n=e.split(/\r?\n/);var i=true;var a=false;var c=undefined;try{for(var u=n[Symbol.iterator](),l;!(i=(l=u.next()).done);i=true){let e=l.value;r+=1+Math.floor(Math.max(width(e)-1,0)/t)}}catch(e){a=true;c=e}finally{try{if(!i&&u.return!=null){u.return()}}finally{if(a){throw c}}}return(s.line+o.prevLine()).repeat(r-1)+s.line+o.to(0)}},6217:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},2800:(e,t,r)=>{"use strict";e.exports={action:r(8692),clear:r(3513),style:r(5012),strip:r(8760),figures:r(6217)}},8760:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},5012:(e,t,r)=>{"use strict";const n=r(6560);const i=r(6217);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>s[e]||s.default;const o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?i.ellipsis:i.pointerSmall);const item=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},1112:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(6598):r(9590)},8994:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},5513:(e,t,r)=>{"use strict";const n=r(8994);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},9270:(e,t,r)=>{"use strict";const n=r(8994);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},1190:(e,t,r)=>{"use strict";e.exports={DatePart:r(8994),Meridiem:r(8135),Day:r(5513),Hours:r(9270),Milliseconds:r(2397),Minutes:r(9246),Month:r(5763),Seconds:r(5579),Year:r(4191)}},8135:(e,t,r)=>{"use strict";const n=r(8994);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},2397:(e,t,r)=>{"use strict";const n=r(8994);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},9246:(e,t,r)=>{"use strict";const n=r(8994);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},5763:(e,t,r)=>{"use strict";const n=r(8994);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},5579:(e,t,r)=>{"use strict";const n=r(8994);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},4191:(e,t,r)=>{"use strict";const n=r(8994);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},514:(e,t,r)=>{"use strict";const n=r(6560);const i=r(9126);const{cursor:s}=r(332);const{style:o,clear:a,figures:c,strip:u}=r(9807);const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${c.pointerSmall} ${getTitle(this.choices,this.initial)}`:`${c.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=o.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=a("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=getVal(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?getVal(this.choices,this.initial):null}this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t)}))).reduce(((e,t)=>{if(e[e.length-1].length<this.limit)e[e.length-1].push(t);else e.push([t]);return e}),[[]]);this.isFallback=false;this.completing=false;if(!this.suggestions[this.page])this.page=0;if(!this.suggestions.length&&this.fallback){const e=getIndex(this.choices,this.fallback);this.suggestions=[[]];if(e!==undefined)this.suggestions[0].push({title:getTitle(this.choices,e),value:getVal(this.choices,e)});this.isFallback=true}const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select));e&&e()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(0);this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(s.down(this.lineCount));let e=n.bold(`${o.symbol(this.done,this.aborted)} ${this.msg} `)+`${o.delimiter(this.completing)} `;let t=u(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce(((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`),"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=getIndex(this.choices,this.fallback);const r=t!==undefined?getTitle(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=a(e);if(this.lineCount&&!this.done){let e=s.up(this.lineCount);e+=s.left+s.to(t);e+=s.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},7685:(e,t,r)=>{"use strict";const n=r(6560);const{cursor:i}=r(332);const s=r(92);const{clear:o,style:a,figures:c}=r(9807);class AutocompleteMultiselectPrompt extends s{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${c.arrowUp}/${c.arrowDown}: Highlight option\n ${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(c.radioOn):c.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},3037:(e,t,r)=>{const n=r(6560);const i=r(9126);const{style:s}=r(9807);const{erase:o,cursor:a}=r(332);class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(o.line+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},5048:(e,t,r)=>{"use strict";const n=r(6560);const i=r(9126);const{style:s,clear:o,figures:a,strip:c}=r(9807);const{erase:u,cursor:l}=r(332);const{DatePart:h,Meridiem:p,Day:d,Hours:m,Milliseconds:y,Minutes:g,Month:v,Seconds:b,Year:w}=r(1190);const S=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const x={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new v(e),4:e=>new w(e),5:e=>new p(e),6:e=>new m(e),7:e=>new g(e),8:e=>new b(e),9:e=>new y(e)};const _={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(_,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=S.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in x?x[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof h)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof h)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(u.lines(1));super.render();let e=u.line+(this.lines?u.down(this.lines):"")+l.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce(((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t)),[]).join("")].join(" ");let i="";if(this.lines){i+=l.up(this.lines);i+=l.left+l.to(c(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},6529:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(1551),SelectPrompt:r(6515),TogglePrompt:r(181),DatePrompt:r(5048),NumberPrompt:r(3686),MultiselectPrompt:r(92),AutocompletePrompt:r(514),AutocompleteMultiselectPrompt:r(7685),ConfirmPrompt:r(3037)}},92:(e,t,r)=>{"use strict";const n=r(6560);const{cursor:i}=r(332);const s=r(9126);const{clear:o,figures:a,style:c}=r(9807);class MultiselectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=o("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(a.radioOn):a.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map(((e,r)=>this.renderOption(t,e,r)));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},3686:(e,t,r)=>{const n=r(6560);const i=r(9126);const{cursor:s,erase:o}=r(332);const{style:a,clear:c,figures:u,strip:l}=r(9807);const h=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||h.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;super.render();let e=o.line+(this.lines?o.down(this.lines):``)+s.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce(((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let c=``;if(this.lines){c+=s.up(this.lines);c+=s.left+s.to(l(i).length)}this.out.write(e+i+t+c)}}e.exports=NumberPrompt},9126:(e,t,r)=>{"use strict";const n=r(4521);const{action:i}=r(9807);const s=r(2361);const{beep:o,cursor:a}=r(332);const c=r(6560);class Prompt extends s{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const keypress=(e,t)=>{let r=i(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=()=>{this.out.write(a.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(c);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},6515:(e,t,r)=>{"use strict";const n=r(6560);const i=r(9126);const{style:s,clear:o,figures:a}=r(9807);const{erase:c,cursor:u}=r(332);class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}}));this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(c.lines(this.choices.length+1));super.render();this.out.write([s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map(((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(a.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(a.pointer)+" ":" "}return`${i} ${r}`})).join("\n"))}}}e.exports=SelectPrompt},1551:(e,t,r)=>{const n=r(6560);const i=r(9126);const{cursor:s}=r(332);const{style:o,clear:a,strip:c,figures:u}=r(9807);class TextPrompt extends i{constructor(e={}){super(e);this.transform=o.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=a(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;super.render();let e=(this.lines?s.down(this.lines):``)+this.clear;this.lines=0;let t=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce(((e,t,r)=>e+=`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`),``);this.lines=e.length}let i=``;if(this.lines){i+=s.up(this.lines);i+=s.left+s.to(c(t).length)}i+=s.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=a(t+r)}}e.exports=TextPrompt},181:(e,t,r)=>{const n=r(6560);const i=r(9126);const{style:s,clear:o}=r(9807);const{cursor:a,erase:c}=r(332);class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(c.lines(this.first?1:this.msg.split(/\n/g).length)+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},9590:(e,t,r)=>{"use strict";const n=r(4450);const i=["suggest","format","onState","validate","onRender"];const noop=()=>{};async function prompt(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const s={};const o=prompt._override||{};e=[].concat(e);let a,c,u,l,h;const getFormattedAnswer=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,s):t};for(c of e){({name:l,type:h}=c);for(let e in c){if(i.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?await t(a,{...s},c):t}if(typeof c.message!=="string"){throw new Error("prompt message is required")}({name:l,type:h}=c);if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(o[c.name]!==undefined){a=await getFormattedAnswer(c,o[c.name]);if(a!==undefined){s[l]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):await n[h](c);s[l]=a=await getFormattedAnswer(c,a,true);u=await t(c,a,s)}catch(e){u=!await r(c,s)}if(u)return s}return s}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},4450:(e,t,r)=>{"use strict";const n=t;const i=r(6529);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((n,s)=>{const o=new i[e](t);const a=r.onAbort||noop;const c=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>n(c(e))));o.on("abort",(e=>s(a(e))))}))}n.text=e=>toPrompt("TextPrompt",e);n.password=e=>{e.style="password";return n.text(e)};n.invisible=e=>{e.style="invisible";return n.text(e)};n.number=e=>toPrompt("NumberPrompt",e);n.date=e=>toPrompt("DatePrompt",e);n.confirm=e=>toPrompt("ConfirmPrompt",e);n.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};n.toggle=e=>toPrompt("TogglePrompt",e);n.select=e=>toPrompt("SelectPrompt",e);n.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};n.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));n.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},8573:e=>{"use strict";e.exports=e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},6747:(e,t,r)=>{"use strict";const n=r(2714);const{erase:i,cursor:s}=r(332);const width=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+s.to(0);let r=0;const n=e.split(/\r?\n/);for(let e of n){r+=1+Math.floor(Math.max(width(e)-1,0)/t)}return(i.line+s.prevLine()).repeat(r-1)+i.line+s.to(0)}},3034:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},9807:(e,t,r)=>{"use strict";e.exports={action:r(8573),clear:r(6747),style:r(7357),strip:r(2714),figures:r(3034)}},2714:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},7357:(e,t,r)=>{"use strict";const n=r(6560);const i=r(3034);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>s[e]||s.default;const o=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>n.gray(e?i.ellipsis:i.pointerSmall);const item=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},6560:e=>{"use strict";const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env;const i={enabled:!r&&n!=="dumb"&&t!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(e,t){let r=0,n,i="",s="";for(;r<e.length;r++){n=e[r];i+=n.open;s+=n.close;if(t.includes(n.close)){t=t.replace(n.rgx,n.close+n.open)}}return i+t+s}function chain(e,t){let r={has:e,keys:t};r.reset=i.reset.bind(r);r.bold=i.bold.bind(r);r.dim=i.dim.bind(r);r.italic=i.italic.bind(r);r.underline=i.underline.bind(r);r.inverse=i.inverse.bind(r);r.hidden=i.hidden.bind(r);r.strikethrough=i.strikethrough.bind(r);r.black=i.black.bind(r);r.red=i.red.bind(r);r.green=i.green.bind(r);r.yellow=i.yellow.bind(r);r.blue=i.blue.bind(r);r.magenta=i.magenta.bind(r);r.cyan=i.cyan.bind(r);r.white=i.white.bind(r);r.gray=i.gray.bind(r);r.grey=i.grey.bind(r);r.bgBlack=i.bgBlack.bind(r);r.bgRed=i.bgRed.bind(r);r.bgGreen=i.bgGreen.bind(r);r.bgYellow=i.bgYellow.bind(r);r.bgBlue=i.bgBlue.bind(r);r.bgMagenta=i.bgMagenta.bind(r);r.bgCyan=i.bgCyan.bind(r);r.bgWhite=i.bgWhite.bind(r);return r}function init(e,t){let r={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){if(this!==void 0&&this.has!==void 0){this.has.includes(e)||(this.has.push(e),this.keys.push(r));return t===void 0?this:i.enabled?run(this.keys,t+""):t+""}return t===void 0?chain([e],[r]):i.enabled?run([r],t+""):t+""}}e.exports=i},9595:(e,t,r)=>{var n=r(7197);var i=r(2498);var s=r(7147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!s)return false;return(e instanceof(s.ReadStream||noop)||e instanceof(s.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,s){s=n(s);var o=false;e.on("close",(function(){o=true}));i(e,{readable:t,writable:r},(function(e){if(e)return s(e);o=true;s()}));var a=false;return function(t){if(o)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map((function(i,s){var o=s<e.length-1;var a=s>0;return destroyer(i,o,a,(function(e){if(!r)r=e;if(e)n.forEach(call);if(o)return;n.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},8271:(e,t,r)=>{var n=r(7563);var i=r(1017).join;var s=r(5134);var o="/etc";var a=process.platform==="win32";var c=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,u,l){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!u)u=r(5912)(process.argv.slice(2));t=("string"===typeof t?n.json(t):t)||{};l=l||n.parse;var h=n.env(e+"_");var p=[t];var d=[];function addConfigFile(e){if(d.indexOf(e)>=0)return;var t=n.file(e);if(t){p.push(l(t));d.push(e)}}if(!a)[i(o,e,"config"),i(o,e+"rc")].forEach(addConfigFile);if(c)[i(c,".config",e,"config"),i(c,".config",e),i(c,"."+e,"config"),i(c,"."+e+"rc")].forEach(addConfigFile);addConfigFile(n.find("."+e+"rc"));if(h.config)addConfigFile(h.config);if(u.config)addConfigFile(u.config);return s.apply(null,p.concat([h,u,d.length?{configs:d,config:d[d.length-1]}:undefined]))}},7563:(e,t,r)=>{"use strict";var n=r(7147);var i=r(1923);var s=r(1017);var o=r(5561);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return i.parse(e)};var c=t.file=function(){var e=[].slice.call(arguments).filter((function(e){return e!=null}));for(var t in e)if("string"!==typeof e[t])return;var r=s.join.apply(null,e);var i;try{return n.readFileSync(r,"utf-8")}catch(e){return}};var u=t.json=function(){var e=c.apply(null,arguments);return e?a(e):null};var l=t.env=function(e,t){t=t||process.env;var r={};var n=e.length;for(var i in t){if(i.toLowerCase().indexOf(e.toLowerCase())===0){var s=i.substring(n).split("__");var o;while((o=s.indexOf(""))>-1){s.splice(o,1)}var a=r;s.forEach((function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===s.length-1)a[e]=t[i];if(a[e]===undefined)a[e]={};a=a[e]}))}}return r};var h=t.find=function(){var e=s.join.apply(null,[].slice.call(arguments));function find(e,t){var r=s.join(e,t);try{n.statSync(r);return r}catch(r){if(s.dirname(e)!==e)return find(s.dirname(e),t)}}return find(process.cwd(),e)}},466:(e,t,r)=>{"use strict";var n=r(8134);var i=r(8589);function toRegex(e,t){return new RegExp(toRegex.create(e,t))}toRegex.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=n({},t);if(r.contains===true){r.strictNegate=false}var s=r.strictOpen!==false?"^":"";var o=r.strictClose!==false?"$":"";var a=r.endChar?r.endChar:"+";var c=e;if(r.strictNegate===false){c="(?:(?!(?:"+e+")).)"+a}else{c="(?:(?!^(?:"+e+")$).)"+a}var u=s+c+o;if(r.safe===true&&i(u)===false){throw new Error("potentially unsafe regular expression: "+u)}return u};e.exports=toRegex},8134:(e,t,r)=>{"use strict";var n=r(5114);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},5114:(e,t,r)=>{"use strict";
288
288
  /*!
289
289
  * is-extendable <https://github.com/jonschlinkert/is-extendable>
290
290
  *
@@ -302,7 +302,7 @@ function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a s
302
302
  *
303
303
  * Copyright (c) 2014-2015, Jon Schlinkert.
304
304
  * Licensed under the MIT License.
305
- */var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var i=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=i){return t.substr(0,i)}while(i>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,i);return t}},7431:(e,t,r)=>{"use strict";const n=r(2781).Readable;const i=r(530);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=i(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},5961:(e,t,r)=>{var n=r(7221);var i=r(8349);var s=r(6125);var o=r(4162);e.exports=function(e){var t=0,r,a,c={type:i.ROOT,stack:[]},u=c,l=c.stack,h=[];var repeatErr=function(t){n.error(e,"Nothing to repeat at column "+(t-1))};var p=n.strToChars(e);r=p.length;while(t<r){a=p[t++];switch(a){case"\\":a=p[t++];switch(a){case"b":l.push(o.wordBoundary());break;case"B":l.push(o.nonWordBoundary());break;case"w":l.push(s.words());break;case"W":l.push(s.notWords());break;case"d":l.push(s.ints());break;case"D":l.push(s.notInts());break;case"s":l.push(s.whitespace());break;case"S":l.push(s.notWhitespace());break;default:if(/\d/.test(a)){l.push({type:i.REFERENCE,value:parseInt(a,10)})}else{l.push({type:i.CHAR,value:a.charCodeAt(0)})}}break;case"^":l.push(o.begin());break;case"$":l.push(o.end());break;case"[":var d;if(p[t]==="^"){d=true;t++}else{d=false}var m=n.tokenizeClass(p.slice(t),e);t+=m[1];l.push({type:i.SET,set:m[0],not:d});break;case".":l.push(s.anyChar());break;case"(":var y={type:i.GROUP,stack:[],remember:true};a=p[t];if(a==="?"){a=p[t+1];t+=2;if(a==="="){y.followedBy=true}else if(a==="!"){y.notFollowedBy=true}else if(a!==":"){n.error(e,"Invalid group, character '"+a+"' after '?' at column "+(t-1))}y.remember=false}l.push(y);h.push(u);u=y;l=y.stack;break;case")":if(h.length===0){n.error(e,"Unmatched ) at column "+(t-1))}u=h.pop();l=u.options?u.options[u.options.length-1]:u.stack;break;case"|":if(!u.options){u.options=[u.stack];delete u.stack}var g=[];u.options.push(g);l=g;break;case"{":var v=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),b,w;if(v!==null){if(l.length===0){repeatErr(t)}b=parseInt(v[1],10);w=v[2]?v[3]?parseInt(v[3],10):Infinity:b;t+=v[0].length;l.push({type:i.REPETITION,min:b,max:w,value:l.pop()})}else{l.push({type:i.CHAR,value:123})}break;case"?":if(l.length===0){repeatErr(t)}l.push({type:i.REPETITION,min:0,max:1,value:l.pop()});break;case"+":if(l.length===0){repeatErr(t)}l.push({type:i.REPETITION,min:1,max:Infinity,value:l.pop()});break;case"*":if(l.length===0){repeatErr(t)}l.push({type:i.REPETITION,min:0,max:Infinity,value:l.pop()});break;default:l.push({type:i.CHAR,value:a.charCodeAt(0)})}}if(h.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=i},4162:(e,t,r)=>{var n=r(8349);t.wordBoundary=function(){return{type:n.POSITION,value:"b"}};t.nonWordBoundary=function(){return{type:n.POSITION,value:"B"}};t.begin=function(){return{type:n.POSITION,value:"^"}};t.end=function(){return{type:n.POSITION,value:"$"}}},6125:(e,t,r)=>{var n=r(8349);var INTS=function(){return[{type:n.RANGE,from:48,to:57}]};var WORDS=function(){return[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(INTS())};var WHITESPACE=function(){return[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.CHAR,value:6158},{type:n.CHAR,value:8192},{type:n.CHAR,value:8193},{type:n.CHAR,value:8194},{type:n.CHAR,value:8195},{type:n.CHAR,value:8196},{type:n.CHAR,value:8197},{type:n.CHAR,value:8198},{type:n.CHAR,value:8199},{type:n.CHAR,value:8200},{type:n.CHAR,value:8201},{type:n.CHAR,value:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}]};var NOTANYCHAR=function(){return[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}]};t.words=function(){return{type:n.SET,set:WORDS(),not:false}};t.notWords=function(){return{type:n.SET,set:WORDS(),not:true}};t.ints=function(){return{type:n.SET,set:INTS(),not:false}};t.notInts=function(){return{type:n.SET,set:INTS(),not:true}};t.whitespace=function(){return{type:n.SET,set:WHITESPACE(),not:false}};t.notWhitespace=function(){return{type:n.SET,set:WHITESPACE(),not:true}};t.anyChar=function(){return{type:n.SET,set:NOTANYCHAR(),not:true}}},8349:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},7221:(e,t,r)=>{var n=r(8349);var i=r(6125);var s="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;e=e.replace(t,(function(e,t,r,n,i,a,c,u){if(r){return e}var l=t?8:n?parseInt(n,16):i?parseInt(i,16):a?parseInt(a,8):c?s.indexOf(c):o[u];var h=String.fromCharCode(l);if(/[\[\]{}\^$.|?*+()]/.test(h)){h="\\"+h}return h}));return e};t.tokenizeClass=function(e,r){var s=[];var o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var a,c;while((a=o.exec(e))!=null){if(a[1]){s.push(i.words())}else if(a[2]){s.push(i.ints())}else if(a[3]){s.push(i.whitespace())}else if(a[4]){s.push(i.notWords())}else if(a[5]){s.push(i.notInts())}else if(a[6]){s.push(i.notWhitespace())}else if(a[7]){s.push({type:n.RANGE,from:(a[8]||a[9]).charCodeAt(0),to:a[10].charCodeAt(0)})}else if(c=a[12]){s.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[s,o.lastIndex]}}t.error(r,"Unterminated character class")};t.error=function(e,t){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},2780:(e,t,r)=>{const n=r(9491);const i=r(1017);const s=r(7147);let o=undefined;try{o=r(3700)}catch(e){}const a={nosort:true,silent:true};let c=0;const u=process.platform==="win32";const defaults=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a};const rimraf=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");defaults(t);let i=0;let s=null;let a=0;const next=e=>{s=s||e;if(--a===0)r(s)};const afterGlob=(e,n)=>{if(e)return r(e);a=n.length;if(a===0)return r();n.forEach((e=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&i<t.maxBusyTries){i++;return setTimeout((()=>rimraf_(e,t,CB)),i*100)}if(r.code==="EMFILE"&&c<t.emfileWait){return setTimeout((()=>rimraf_(e,t,CB)),c++)}if(r.code==="ENOENT")r=null}c=0;next(r)};rimraf_(e,t,CB)}))};if(t.disableGlob||!o.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,((r,n)=>{if(!r)return afterGlob(null,[e]);o(e,t.glob,afterGlob)}))};const rimraf_=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&u)fixWinEPERM(e,t,n,r);if(i&&i.isDirectory())return rmdir(e,t,n,r);t.unlink(e,(n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return u?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r);if(n.code==="EISDIR")return rmdir(e,t,n,r)}return r(n)}))}))};const fixWinEPERM=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");t.chmod(e,438,(n=>{if(n)i(n.code==="ENOENT"?null:r);else t.stat(e,((n,s)=>{if(n)i(n.code==="ENOENT"?null:r);else if(s.isDirectory())rmdir(e,t,r,i);else t.unlink(e,i)}))}))};const fixWinEPERMSync=(e,t,r)=>{n(e);n(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let i;try{i=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(i.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)};const rmdir=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");t.rmdir(e,(n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))rmkids(e,t,i);else if(n&&n.code==="ENOTDIR")i(r);else i(n)}))};const rmkids=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.readdir(e,((n,s)=>{if(n)return r(n);let o=s.length;if(o===0)return t.rmdir(e,r);let a;s.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(a)return;if(n)return r(a=n);if(--o===0)t.rmdir(e,r)}))}))}))};const rimrafSync=(e,t)=>{t=t||{};defaults(t);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(t,"rimraf: missing options");n.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!o.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(n){r=o.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e<r.length;e++){const n=r[e];let i;try{i=t.lstatSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM"&&u)fixWinEPERMSync(n,t,e)}try{if(i&&i.isDirectory())rmdirSync(n,t,null);else t.unlinkSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM")return u?fixWinEPERMSync(n,t,e):rmdirSync(n,t,e);if(e.code!=="EISDIR")throw e;rmdirSync(n,t,e)}}};const rmdirSync=(e,t,r)=>{n(e);n(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")rmkidsSync(e,t)}};const rmkidsSync=(e,t)=>{n(e);n(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));const r=u?100:1;let s=0;do{let n=true;try{const i=t.rmdirSync(e,t);n=false;return i}finally{if(++s<r&&n)continue}}while(true)};e.exports=rimraf;rimraf.sync=rimrafSync},3118:(e,t,r)=>{
305
+ */var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var i=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=i){return t.substr(0,i)}while(i>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,i);return t}},7431:(e,t,r)=>{"use strict";const n=r(2781).Readable;const i=r(530);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=i(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},5961:(e,t,r)=>{var n=r(7221);var i=r(8349);var s=r(6125);var o=r(4162);e.exports=function(e){var t=0,r,a,c={type:i.ROOT,stack:[]},u=c,l=c.stack,h=[];var repeatErr=function(t){n.error(e,"Nothing to repeat at column "+(t-1))};var p=n.strToChars(e);r=p.length;while(t<r){a=p[t++];switch(a){case"\\":a=p[t++];switch(a){case"b":l.push(o.wordBoundary());break;case"B":l.push(o.nonWordBoundary());break;case"w":l.push(s.words());break;case"W":l.push(s.notWords());break;case"d":l.push(s.ints());break;case"D":l.push(s.notInts());break;case"s":l.push(s.whitespace());break;case"S":l.push(s.notWhitespace());break;default:if(/\d/.test(a)){l.push({type:i.REFERENCE,value:parseInt(a,10)})}else{l.push({type:i.CHAR,value:a.charCodeAt(0)})}}break;case"^":l.push(o.begin());break;case"$":l.push(o.end());break;case"[":var d;if(p[t]==="^"){d=true;t++}else{d=false}var m=n.tokenizeClass(p.slice(t),e);t+=m[1];l.push({type:i.SET,set:m[0],not:d});break;case".":l.push(s.anyChar());break;case"(":var y={type:i.GROUP,stack:[],remember:true};a=p[t];if(a==="?"){a=p[t+1];t+=2;if(a==="="){y.followedBy=true}else if(a==="!"){y.notFollowedBy=true}else if(a!==":"){n.error(e,"Invalid group, character '"+a+"' after '?' at column "+(t-1))}y.remember=false}l.push(y);h.push(u);u=y;l=y.stack;break;case")":if(h.length===0){n.error(e,"Unmatched ) at column "+(t-1))}u=h.pop();l=u.options?u.options[u.options.length-1]:u.stack;break;case"|":if(!u.options){u.options=[u.stack];delete u.stack}var g=[];u.options.push(g);l=g;break;case"{":var v=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),b,w;if(v!==null){if(l.length===0){repeatErr(t)}b=parseInt(v[1],10);w=v[2]?v[3]?parseInt(v[3],10):Infinity:b;t+=v[0].length;l.push({type:i.REPETITION,min:b,max:w,value:l.pop()})}else{l.push({type:i.CHAR,value:123})}break;case"?":if(l.length===0){repeatErr(t)}l.push({type:i.REPETITION,min:0,max:1,value:l.pop()});break;case"+":if(l.length===0){repeatErr(t)}l.push({type:i.REPETITION,min:1,max:Infinity,value:l.pop()});break;case"*":if(l.length===0){repeatErr(t)}l.push({type:i.REPETITION,min:0,max:Infinity,value:l.pop()});break;default:l.push({type:i.CHAR,value:a.charCodeAt(0)})}}if(h.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=i},4162:(e,t,r)=>{var n=r(8349);t.wordBoundary=function(){return{type:n.POSITION,value:"b"}};t.nonWordBoundary=function(){return{type:n.POSITION,value:"B"}};t.begin=function(){return{type:n.POSITION,value:"^"}};t.end=function(){return{type:n.POSITION,value:"$"}}},6125:(e,t,r)=>{var n=r(8349);var INTS=function(){return[{type:n.RANGE,from:48,to:57}]};var WORDS=function(){return[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(INTS())};var WHITESPACE=function(){return[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.CHAR,value:6158},{type:n.CHAR,value:8192},{type:n.CHAR,value:8193},{type:n.CHAR,value:8194},{type:n.CHAR,value:8195},{type:n.CHAR,value:8196},{type:n.CHAR,value:8197},{type:n.CHAR,value:8198},{type:n.CHAR,value:8199},{type:n.CHAR,value:8200},{type:n.CHAR,value:8201},{type:n.CHAR,value:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}]};var NOTANYCHAR=function(){return[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}]};t.words=function(){return{type:n.SET,set:WORDS(),not:false}};t.notWords=function(){return{type:n.SET,set:WORDS(),not:true}};t.ints=function(){return{type:n.SET,set:INTS(),not:false}};t.notInts=function(){return{type:n.SET,set:INTS(),not:true}};t.whitespace=function(){return{type:n.SET,set:WHITESPACE(),not:false}};t.notWhitespace=function(){return{type:n.SET,set:WHITESPACE(),not:true}};t.anyChar=function(){return{type:n.SET,set:NOTANYCHAR(),not:true}}},8349:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},7221:(e,t,r)=>{var n=r(8349);var i=r(6125);var s="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;e=e.replace(t,(function(e,t,r,n,i,a,c,u){if(r){return e}var l=t?8:n?parseInt(n,16):i?parseInt(i,16):a?parseInt(a,8):c?s.indexOf(c):o[u];var h=String.fromCharCode(l);if(/[\[\]{}\^$.|?*+()]/.test(h)){h="\\"+h}return h}));return e};t.tokenizeClass=function(e,r){var s=[];var o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var a,c;while((a=o.exec(e))!=null){if(a[1]){s.push(i.words())}else if(a[2]){s.push(i.ints())}else if(a[3]){s.push(i.whitespace())}else if(a[4]){s.push(i.notWords())}else if(a[5]){s.push(i.notInts())}else if(a[6]){s.push(i.notWhitespace())}else if(a[7]){s.push({type:n.RANGE,from:(a[8]||a[9]).charCodeAt(0),to:a[10].charCodeAt(0)})}else if(c=a[12]){s.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[s,o.lastIndex]}}t.error(r,"Unterminated character class")};t.error=function(e,t){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},9356:(e,t,r)=>{e.exports=r(403)},403:(e,t,r)=>{var n=r(3652);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};t.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in e){t[r]=e[r]}if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var i=0;i<t.retries;i++){n.push(this.createTimeout(i,t))}if(e&&e.forever&&!n.length){n.push(this.createTimeout(i,t))}n.sort((function(e,t){return e-t}));return n};t.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1;var n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));n=Math.min(n,t.maxTimeout);return n};t.wrap=function(e,r,n){if(r instanceof Array){n=r;r=null}if(!n){n=[];for(var i in e){if(typeof e[i]==="function"){n.push(i)}}}for(var s=0;s<n.length;s++){var o=n[s];var a=e[o];e[o]=function retryWrapper(n){var i=t.operation(r);var s=Array.prototype.slice.call(arguments,1);var o=s.pop();s.push((function(e){if(i.retry(e)){return}if(e){arguments[0]=i.mainError()}o.apply(this,arguments)}));i.attempt((function(){n.apply(e,s)}))}.bind(e,a);e[o].options=r}}},3652:e=>{function RetryOperation(e,t){if(typeof t==="boolean"){t={forever:t}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=t||{};this._maxRetryTime=t&&t.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime){this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var r=this._timeouts.shift();if(r===undefined){if(this._cachedTimeouts){this._errors.splice(this._errors.length-1,this._errors.length);this._timeouts=this._cachedTimeouts.slice(0);r=this._timeouts.shift()}else{return false}}var n=this;var i=setTimeout((function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)}),r);if(this._options.unref){i.unref()}return true};RetryOperation.prototype.attempt=function(e,t){this._fn=e;if(t){if(t.timeout){this._operationTimeout=t.timeout}if(t.cb){this._operationTimeoutCb=t.cb}}var r=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){r._operationTimeoutCb()}),r._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var t=null;var r=0;for(var n=0;n<this._errors.length;n++){var i=this._errors[n];var s=i.message;var o=(e[s]||0)+1;e[s]=o;if(o>=r){t=i;r=o}}return t}},2780:(e,t,r)=>{const n=r(9491);const i=r(1017);const s=r(7147);let o=undefined;try{o=r(3700)}catch(e){}const a={nosort:true,silent:true};let c=0;const u=process.platform==="win32";const defaults=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a};const rimraf=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");defaults(t);let i=0;let s=null;let a=0;const next=e=>{s=s||e;if(--a===0)r(s)};const afterGlob=(e,n)=>{if(e)return r(e);a=n.length;if(a===0)return r();n.forEach((e=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&i<t.maxBusyTries){i++;return setTimeout((()=>rimraf_(e,t,CB)),i*100)}if(r.code==="EMFILE"&&c<t.emfileWait){return setTimeout((()=>rimraf_(e,t,CB)),c++)}if(r.code==="ENOENT")r=null}c=0;next(r)};rimraf_(e,t,CB)}))};if(t.disableGlob||!o.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,((r,n)=>{if(!r)return afterGlob(null,[e]);o(e,t.glob,afterGlob)}))};const rimraf_=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&u)fixWinEPERM(e,t,n,r);if(i&&i.isDirectory())return rmdir(e,t,n,r);t.unlink(e,(n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return u?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r);if(n.code==="EISDIR")return rmdir(e,t,n,r)}return r(n)}))}))};const fixWinEPERM=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");t.chmod(e,438,(n=>{if(n)i(n.code==="ENOENT"?null:r);else t.stat(e,((n,s)=>{if(n)i(n.code==="ENOENT"?null:r);else if(s.isDirectory())rmdir(e,t,r,i);else t.unlink(e,i)}))}))};const fixWinEPERMSync=(e,t,r)=>{n(e);n(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let i;try{i=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(i.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)};const rmdir=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");t.rmdir(e,(n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))rmkids(e,t,i);else if(n&&n.code==="ENOTDIR")i(r);else i(n)}))};const rmkids=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.readdir(e,((n,s)=>{if(n)return r(n);let o=s.length;if(o===0)return t.rmdir(e,r);let a;s.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(a)return;if(n)return r(a=n);if(--o===0)t.rmdir(e,r)}))}))}))};const rimrafSync=(e,t)=>{t=t||{};defaults(t);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(t,"rimraf: missing options");n.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!o.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(n){r=o.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e<r.length;e++){const n=r[e];let i;try{i=t.lstatSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM"&&u)fixWinEPERMSync(n,t,e)}try{if(i&&i.isDirectory())rmdirSync(n,t,null);else t.unlinkSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM")return u?fixWinEPERMSync(n,t,e):rmdirSync(n,t,e);if(e.code!=="EISDIR")throw e;rmdirSync(n,t,e)}}};const rmdirSync=(e,t,r)=>{n(e);n(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")rmkidsSync(e,t)}};const rmkidsSync=(e,t)=>{n(e);n(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));const r=u?100:1;let s=0;do{let n=true;try{const i=t.rmdirSync(e,t);n=false;return i}finally{if(++s<r&&n)continue}}while(true)};e.exports=rimraf;rimraf.sync=rimrafSync},3118:(e,t,r)=>{
306
306
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
307
307
  var n=r(4300);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8589:(e,t,r)=>{var n=r(5961);var i=n.types;e.exports=function(e,t){if(!t)t={};var r=t.limit===undefined?25:t.limit;if(isRegExp(e))e=e.source;else if(typeof e!=="string")e=String(e);try{e=n(e)}catch(e){return false}var s=0;return function walk(e,t){if(e.type===i.REPETITION){t++;s++;if(t>1)return false;if(s>r)return false}if(e.options){for(var n=0,o=e.options.length;n<o;n++){var a=walk({stack:e.options[n]},t);if(!a)return false}}var c=e.stack||e.value&&e.value.stack;if(!c)return true;for(var n=0;n<c.length;n++){var a=walk(c[n],t);if(!a)return false}return true}(e,0)};function isRegExp(e){return{}.toString.call(e)==="[object RegExp]"}},4927:(e,t,r)=>{"use strict";
308
308
  /*!
@@ -382,4 +382,4 @@ var n=r(4300);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}
382
382
  *
383
383
  * Copyright (c) 2015-2017, Jon Schlinkert.
384
384
  * Released under the MIT License.
385
- */e.exports=function base(e,t){if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected an object or function")}var r=isObject(t)?t:{};var n=typeof r.prop==="string"?r.prop:"fns";if(!Array.isArray(e[n])){define(e,n,[])}define(e,"use",use);define(e,"run",(function(t){if(!isObject(t))return;if(!t.use||!t.run){define(t,n,t[n]||[]);define(t,"use",use)}if(!t[n]||t[n].indexOf(base)===-1){t.use(base)}var r=this||e;var i=r[n];var s=i.length;var o=-1;while(++o<s){t.use(i[o])}return t}));function use(t,i,s){var o=1;if(typeof t==="string"||Array.isArray(t)){i=wrap(t,i);o++}else{s=i;i=t}if(typeof i!=="function"){throw new TypeError("expected a function")}var a=this||e;var c=a[n];var u=[].slice.call(arguments,o);u.unshift(a);if(typeof r.hook==="function"){r.hook.apply(a,u)}var l=i.apply(a,u);if(typeof l==="function"&&c.indexOf(l)===-1){c.push(l)}return a}function wrap(e,t){return function plugin(){return this.type===e?t.apply(this,arguments):plugin}}return e};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}function define(e,t,r){Object.defineProperty(e,t,{configurable:true,writable:true,value:r})}},5880:(e,t,r)=>{"use strict";var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var i=r(6352);var s=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return done(t,r)}if(e===undefined){r.push("name cannot be undefined");return done(t,r)}if(typeof e!=="string"){r.push("name must be a string");return done(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}s.forEach((function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}}));i.forEach((function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}}));if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(n);if(o){var a=o[1];var c=o[2];if(encodeURIComponent(a)===a&&encodeURIComponent(c)===c){return done(t,r)}}r.push("name can only contain URL-friendly characters")}return done(t,r)};o.scopedPackagePattern=n;var done=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},4586:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n}}},1694:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(721);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};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],gray:[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.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];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})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},8571:(e,t,r)=>{var n=r(4057);function retry(e,t){function run(r,i){var s=t||{};if(!("randomize"in s)){s.randomize=true}var o=n.operation(s);function bail(e){i(e||new Error("Aborted"))}function onError(e,t){if(e.bail){bail(e);return}if(!o.retry(e)){i(o.mainError())}else if(s.onRetry){s.onRetry(e,t)}}function runAttempt(t){var n;try{n=e(bail,t)}catch(e){onError(e,t);return}Promise.resolve(n).then(r).catch((function catchIt(e){onError(e,t)}))}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},6437:(e,t,r)=>{"use strict";const n=r(6003);const i=r(1694);const s=r(8937).stdout;const o=r(6900);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=s?s.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[c[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties((()=>{}),l);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=h;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=s;e.exports["default"]=e.exports},6900:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|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}|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[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 of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const i=[];let s=[];r.replace(t,((t,r,o,a,c,u)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(u)}}));i.push(s.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("")}},1817:(e,t,r)=>{"use strict";const n=r(7147);const i=r(1017);const s=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(e,t,r)=>{try{return n[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const chownSync=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const c=a?(e,t,r,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else n.chown(e,t,r,i)}:(e,t,r,n)=>n;const u=a?(e,t,r)=>{try{return lchownSync(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;chownSync(e,t,r)}}:(e,t,r)=>lchownSync(e,t,r);const l=process.version;let readdir=(e,t,r)=>n.readdir(e,t,r);let readdirSync=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(l))readdir=(e,t,r)=>n.readdir(e,r);const chown=(e,t,r,i)=>{n[s](e,t,r,c(e,t,r,(e=>{i(e&&e.code!=="ENOENT"?e:null)})))};const chownrKid=(e,t,r,s,o)=>{if(typeof t==="string")return n.lstat(i.resolve(e,t),((n,i)=>{if(n)return o(n.code!=="ENOENT"?n:null);i.name=t;chownrKid(e,i,r,s,o)}));if(t.isDirectory()){chownr(i.resolve(e,t.name),r,s,(n=>{if(n)return o(n);const a=i.resolve(e,t.name);chown(a,r,s,o)}))}else{const n=i.resolve(e,t.name);chown(n,r,s,o)}};const chownr=(e,t,r,n)=>{readdir(e,{withFileTypes:true},((i,s)=>{if(i){if(i.code==="ENOENT")return n();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return chown(e,t,r,n);let o=s.length;let a=null;const then=i=>{if(a)return;if(i)return n(a=i);if(--o===0)return chown(e,t,r,n)};s.forEach((n=>chownrKid(e,n,t,r,then)))}))};const chownrKidSync=(e,t,r,s)=>{if(typeof t==="string"){try{const r=n.lstatSync(i.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())chownrSync(i.resolve(e,t.name),r,s);u(i.resolve(e,t.name),r,s)};const chownrSync=(e,t,r)=>{let n;try{n=readdirSync(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return u(e,t,r);else throw n}if(n&&n.length)n.forEach((n=>chownrKidSync(e,n,t,r)));return u(e,t,r)};e.exports=chownr;chownr.sync=chownrSync},2259:(e,t,r)=>{var n=r(4524);var i={};for(var s in n){if(n.hasOwnProperty(s)){i[n[s]]=s}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=o[a].channels;var u=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var c;var u;if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}u=(i+s)/2;if(s===i){c=0}else if(u<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,u*100]};o.rgb.hsv=function(e){var t;var r;var n;var i;var s;var o=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(o,a,c);var l=u-Math.min(o,a,c);var diffc=function(e){return(u-e)/6/l+1/2};if(l===0){i=s=0}else{s=l/u;t=diffc(o);r=diffc(a);n=diffc(c);if(o===u){i=n-r}else if(a===u){i=1/3+t-n}else if(c===u){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=o.rgb.hsl(e)[0];var s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var s;var o;var a;a=Math.min(1-t,1-r,1-n);i=(1-t-a)/(1-a)||0;s=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var s;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var c=comparativeDistance(e,a);if(c<r){r=c;s=o}}}return s};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var s=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var s;var a;var c;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*n-16;a=500*(r-n);c=200*(n-i);return[s,a,c]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}i=2*n-s;a=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=i+(s-i)*6*o}else if(2*o<1){c=s}else if(3*o<2){c=i+(s-i)*(2/3-o)*6}else{c=i}a[u]=c*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var s=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;i*=s<=1?s:2-s;a=(n+r)/2;o=n===0?2*i/(s+i):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var s=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*s);var c=255*n*(1-r*(1-s));n*=255;switch(i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var s;var o;var a;a=(2-r)*n;s=(2-r)*i;o=r*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var s;var o;var a;var c;if(i>1){r/=i;n/=i}s=Math.floor(6*t);o=1-n;a=6*t-s;if((s&1)!==0){a=1-a}c=r+a*(o-r);var u;var l;var h;switch(s){default:case 6:case 0:u=o;l=c;h=r;break;case 1:u=c;l=o;h=r;break;case 2:u=r;l=o;h=c;break;case 3:u=r;l=c;h=o;break;case 4:u=c;l=r;h=o;break;case 5:u=o;l=r;h=c;break}return[u*255,l*255,h*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var s;var o;var a;s=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,r*(1-i)+i);a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;i=t*3.2406+r*-1.5372+n*-.4986;s=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;s=500*(t-r);o=200*(r-n);return[i,s,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;s=(t+16)/116;i=r/500+s;o=s-n/200;var a=Math.pow(s,3);var c=Math.pow(i,3);var u=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;i=Math.atan2(n,r);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+n*n);return[t,o,s]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;o=n/360*2*Math.PI;i=r*Math.cos(o);s=r*Math.sin(o);return[t,i,s]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var s=(t>>2&1)*r*255;return[n,i,s]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[n,i,s]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var n=parseInt(r,16);var i=n>>16&255;var s=n>>8&255;var o=n&255;return[i,s,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var s=Math.min(Math.min(t,r),n);var o=i-s;var a;var c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===t){c=(r-n)/o%6}else if(i===r){c=2+(n-t)/o}else{c=4+(t-r)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var s=t%1*6;var o=s%1;var a=1-o;var c=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}c=(1-r)*n;return[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var s=0;if(i<1){s=(n-i)/(1-i)}return[e[0],i*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},721:(e,t,r)=>{var n=r(2259);var i=r(5161);var s={};var o=Object.keys(n);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){s[e]={};Object.defineProperty(s[e],"channels",{value:n[e].channels});Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach((function(r){var n=t[r];s[e][r]=wrapRounded(n);s[e][r].raw=wrapRaw(n)}))}));e.exports=s},5161:(e,t,r)=>{var n=r(2259);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,i=0;i<r;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var s=Object.keys(n[i]);for(var o=s.length,a=0;a<o;a++){var c=s[a];var u=t[c];if(u.distance===-1){u.distance=t[i].distance+1;u.parent=i;r.unshift(c)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var s=t[e].parent;while(t[s].parent){r.unshift(t[s].parent);i=link(n[t[s].parent][s],i);s=t[s].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,s=0;s<i;s++){var o=n[s];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},4524:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8138:(e,t,r)=>{var n=r(2361).EventEmitter;var i=r(2081).spawn;var s=r(1017);var o=s.dirname;var a=s.basename;var c=r(7147);r(3837).inherits(Command,n);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var n=e.split(/ +/);var i=new Command(n.shift());if(t){i.description(t);this.executables=true;this._execs[i._name]=true;if(r.isDefault)this.defaultExecutable=i._name}i._noHelp=!!r.noHelp;this.commands.push(i);i.parseExpectedArgs(n);i.parent=this;if(t)return this;return i};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach((function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}}));return this};Command.prototype.action=function(e){var t=this;var listener=function(r,n){r=r||[];n=n||[];var i=t.parseOptions(n);outputHelpIfNecessary(t,i.unknown);if(i.unknown.length>0){t.unknownOption(i.unknown[0])}if(i.args.length)r=i.args.concat(r);t._args.forEach((function(e,n){if(e.required&&r[n]==null){t.missingArgument(e.name)}else if(e.variadic){if(n!==t._args.length-1){t.variadicArgNotLast(e.name)}r[n]=r.splice(n)}}));if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var r=this.parent||this;var n=r===this?"*":this._name;r.on("command:"+n,listener);if(this._alias)r.on("command:"+this._alias,listener);return this};Command.prototype.option=function(e,t,r,n){var i=this,s=new Option(e,t),o=s.name(),a=s.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var c=r;r=function(e,t){var r=c.exec(e);return r?r[0]:t}}else{n=r;r=null}}if(!s.bool||s.optional||s.required){if(!s.bool)n=true;if(n!==undefined){i[a]=n;s.defaultValue=n}}this.options.push(s);this.on("option:"+o,(function(e){if(e!==null&&r){e=r(e,i[a]===undefined?n:i[a])}if(typeof i[a]==="boolean"||typeof i[a]==="undefined"){if(e==null){i[a]=s.bool?n||true:false}else{i[a]=e}}else if(e!==null){i[a]=e}}));return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var n=this.parseArgs(this.args,t.unknown);var i=n.args[0];var s=null;if(i){s=this.commands.filter((function(e){return e.alias()===i}))[0]}if(this._execs[i]&&typeof this._execs[i]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(s){r[0]=s._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return n};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var n=e[1];var u=a(n,s.extname(n))+"-"+t[0];var l;var h=c.realpathSync(n);l=o(h);var p=s.join(l,u);var d=false;if(exists(p+".js")){u=p+".js";d=true}else if(exists(p+".ts")){u=p+".ts";d=true}else if(exists(p)){u=p}t=t.slice(1);var m;if(process.platform!=="win32"){if(d){t.unshift(u);t=(process.execArgv||[]).concat(t);m=i(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{m=i(u,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(u);m=i(process.execPath,t,{stdio:"inherit"})}var y=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];y.forEach((function(e){process.on(e,(function(){if(m.killed===false&&m.exitCode===null){m.kill(e)}}))}));m.on("close",process.exit.bind(process));m.on("error",(function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",u)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",u)}process.exit(1)}));this.runningCommand=m};Command.prototype.normalize=function(e){var t=[],r,n,i;for(var s=0,o=e.length;s<o;++s){r=e[s];if(s>0){n=this.optionFor(e[s-1])}if(r==="--"){t=t.concat(e.slice(s));break}else if(n&&n.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach((function(e){t.push("-"+e)}))}else if(/^--/.test(r)&&~(i=r.indexOf("="))){t.push(r.slice(0,i),r.slice(i+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter((function(e){return e.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,n,i,s;var o=[];for(var a=0;a<r;++a){s=e[a];if(n){t.push(s);continue}if(s==="--"){n=true;continue}i=this.optionFor(s);if(i){if(i.required){s=e[++a];if(s==null)return this.optionMissingArgument(i);this.emit("option:"+i.name(),s)}else if(i.optional){s=e[a+1];if(s==null||s[0]==="-"&&s!=="-"){s=null}else{++a}this.emit("option:"+i.name(),s)}else{this.emit("option:"+i.name())}continue}if(s.length>1&&s[0]==="-"){o.push(s);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(s)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var n=this.options[r].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(e+"\n");process.exit(0)}));return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map((function(e){return humanReadableArgName(e)}));var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(e){return!e._noHelp})).map((function(e){var t=e._args.map((function(e){return humanReadableArgName(e)})).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]}))};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce((function(e,t){return Math.max(e,t[0].length)}),0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce((function(e,t){return Math.max(e,t.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(e,t){return Math.max(e,t.name.length)}),0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map((function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")})).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map((function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r})).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach((function(n){e.push(" "+pad(n.name,r)+" "+t[n.name])}));e.push("")}}var n=this._name;if(this._alias){n=n+"|"+this._alias}var i=["Usage: "+n+" "+this.usage(),""];var s=[];var o=this.commandHelp();if(o)s=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return i.concat(e).concat(a).concat(s).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(c.statSync(e).isFile()){return true}}catch(e){return false}}},6748:(e,t,r)=>{"use strict";const n=r(448);const i=r(2361).EventEmitter;const s=r(7147);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const u=Symbol("_autoClose");const l=Symbol("_close");const h=Symbol("_ended");const p=Symbol("_fd");const d=Symbol("_finished");const m=Symbol("_flags");const y=Symbol("_flush");const g=Symbol("_handleChunk");const v=Symbol("_makeBuf");const b=Symbol("_mode");const w=Symbol("_needDrain");const S=Symbol("_onerror");const x=Symbol("_onopen");const _=Symbol("_onread");const O=Symbol("_onwrite");const k=Symbol("_open");const A=Symbol("_path");const R=Symbol("_pos");const C=Symbol("_queue");const j=Symbol("_read");const P=Symbol("_readSize");const T=Symbol("_reading");const M=Symbol("_remain");const I=Symbol("_size");const N=Symbol("_write");const D=Symbol("_writing");const L=Symbol("_defaultFlag");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[p]=typeof t.fd==="number"?t.fd:null;this[A]=e;this[P]=t.readSize||16*1024*1024;this[T]=false;this[I]=typeof t.size==="number"?t.size:Infinity;this[M]=this[I];this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[p]==="number")this[j]();else this[k]()}get fd(){return this[p]}get path(){return this[A]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[k](){s.open(this[A],"r",((e,t)=>this[x](e,t)))}[x](e,t){if(e)this[S](e);else{this[p]=t;this.emit("open",t);this[j]()}}[v](){return Buffer.allocUnsafe(Math.min(this[P],this[M]))}[j](){if(!this[T]){this[T]=true;const e=this[v]();if(e.length===0)return process.nextTick((()=>this[_](null,0,e)));s.read(this[p],e,0,e.length,null,((e,t,r)=>this[_](e,t,r)))}}[_](e,t,r){this[T]=false;if(e)this[S](e);else if(this[g](t,r))this[j]()}[l](){if(this[u]&&typeof this[p]==="number"){s.close(this[p],(e=>this.emit("close")));this[p]=null}}[S](e){this[T]=true;this[l]();this.emit("error",e)}[g](e,t){let r=false;this[M]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[M]<=0){r=false;this[l]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[p]==="number")this[j]();break;default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[k](){let e=true;try{this[x](null,s.openSync(this[A],"r"));e=false}finally{if(e)this[l]()}}[j](){let e=true;try{if(!this[T]){this[T]=true;do{const e=this[v]();const t=e.length===0?0:s.readSync(this[p],e,0,e.length,null);if(!this[g](t,e))break}while(true);this[T]=false}e=false}finally{if(e)this[l]()}}[l](){if(this[u]&&typeof this[p]==="number"){try{s.closeSync(this[p])}catch(e){}this[p]=null;this.emit("close")}}}class WriteStream extends i{constructor(e,t){t=t||{};super(t);this.readable=false;this[D]=false;this[h]=false;this[w]=false;this[C]=[];this[A]=e;this[p]=typeof t.fd==="number"?t.fd:null;this[b]=t.mode===undefined?438:t.mode;this[R]=typeof t.start==="number"?t.start:null;this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[R]!==null?"r+":"w";this[L]=t.flags===undefined;this[m]=this[L]?r:t.flags;if(this[p]===null)this[k]()}get fd(){return this[p]}get path(){return this[A]}[S](e){this[l]();this[D]=true;this.emit("error",e)}[k](){s.open(this[A],this[m],this[b],((e,t)=>this[x](e,t)))}[x](e,t){if(this[L]&&this[m]==="r+"&&e&&e.code==="ENOENT"){this[m]="w";this[k]()}else if(e)this[S](e);else{this[p]=t;this.emit("open",t);this[y]()}}end(e,t){if(e)this.write(e,t);this[h]=true;if(!this[D]&&!this[C].length&&typeof this[p]==="number")this[O](null,0)}write(e,t){if(typeof e==="string")e=new Buffer(e,t);if(this[h]){this.emit("error",new Error("write() after end()"));return false}if(this[p]===null||this[D]||this[C].length){this[C].push(e);this[w]=true;return false}this[D]=true;this[N](e);return true}[N](e){s.write(this[p],e,0,e.length,this[R],((e,t)=>this[O](e,t)))}[O](e,t){if(e)this[S](e);else{if(this[R]!==null)this[R]+=t;if(this[C].length)this[y]();else{this[D]=false;if(this[h]&&!this[d]){this[d]=true;this[l]();this.emit("finish")}else if(this[w]){this[w]=false;this.emit("drain")}}}}[y](){if(this[C].length===0){if(this[h])this[O](null,0)}else if(this[C].length===1)this[N](this[C].pop());else{const e=this[C];this[C]=[];writev(this[p],e,this[R],((e,t)=>this[O](e,t)))}}[l](){if(this[u]&&typeof this[p]==="number"){s.close(this[p],(e=>this.emit("close")));this[p]=null}}}class WriteStreamSync extends WriteStream{[k](){let e;try{e=s.openSync(this[A],this[m],this[b])}catch(e){if(this[L]&&this[m]==="r+"&&e&&e.code==="ENOENT"){this[m]="w";return this[k]()}else throw e}this[x](null,e)}[l](){if(this[u]&&typeof this[p]==="number"){try{s.closeSync(this[p])}catch(e){}this[p]=null;this.emit("close")}}[N](e){try{this[O](null,s.writeSync(this[p],e,0,e.length,this[R]))}catch(e){this[O](e,0)}}}const writev=(e,t,r,n)=>{const done=(e,r)=>n(e,r,t);const i=new c;i.oncomplete=done;o.writeBuffers(e,t,r,i)};t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},1135:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)}},448:(e,t,r)=>{"use strict";const n=r(2361);const i=r(5831);const s=r(1576).StringDecoder;const o=Symbol("EOF");const a=Symbol("maybeEmitEnd");const c=Symbol("emittedEnd");const u=Symbol("emittingEnd");const l=Symbol("closed");const h=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const m=Symbol("encoding");const y=Symbol("decoder");const g=Symbol("flowing");const v=Symbol("paused");const b=Symbol("resume");const w=Symbol("bufferLength");const S=Symbol("bufferPush");const x=Symbol("bufferShift");const _=Symbol("objectMode");const O=Symbol("destroyed");const k=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const A=k&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const R=k&&Symbol.iterator||Symbol("iterator not implemented");const C=Buffer.alloc?Buffer:r(3118).Buffer;const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBuffer=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!C.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends n{constructor(e){super();this[g]=false;this[v]=false;this.pipes=new i;this.buffer=new i;this[_]=e&&e.objectMode||false;if(this[_])this[m]=null;else this[m]=e&&e.encoding||null;if(this[m]==="buffer")this[m]=null;this[y]=this[m]?new s(this[m]):null;this[o]=false;this[c]=false;this[u]=false;this[l]=false;this.writable=true;this.readable=true;this[w]=0;this[O]=false}get bufferLength(){return this[w]}get encoding(){return this[m]}set encoding(e){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[m]&&e!==this[m]&&(this[y]&&this[y].lastNeed||this[w]))throw new Error("cannot change encoding");if(this[m]!==e){this[y]=e?new s(e):null;if(this.buffer.length)this.buffer=this.buffer.map((e=>this[y].write(e)))}this[m]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_]}set objectMode(e){this[_]=this[_]||!!e}write(e,t,r){if(this[o])throw new Error("write after end");if(this[O]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[_]&&!C.isBuffer(e)){if(isArrayBufferView(e))e=C.from(e.buffer,e.byteOffset,e.byteLength);else if(isArrayBuffer(e))e=C.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[w]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[_]&&!(t===this[m]&&!this[y].lastNeed)){e=C.from(e,t)}if(C.isBuffer(e)&&this[m])e=this[y].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[S](e),false)}finally{if(this[w]!==0)this.emit("readable");if(r)r()}}read(e){if(this[O])return null;try{if(this[w]===0||e===0||e>this[w])return null;if(this[_])e=null;if(this.buffer.length>1&&!this[_]){if(this.encoding)this.buffer=new i([Array.from(this.buffer).join("")]);else this.buffer=new i([C.concat(Array.from(this.buffer),this[w])])}return this[h](e||null,this.buffer.head.value)}finally{this[a]()}}[h](e,t){if(e===t.length||e===null)this[x]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[w]-=e}this.emit("data",t);if(!this.buffer.length&&!this[o])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[o]=true;this.writable=false;if(this.flowing||!this[v])this[a]();return this}[b](){if(this[O])return;this[v]=false;this[g]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[o])this[a]();else this.emit("drain")}resume(){return this[b]()}pause(){this[g]=false;this[v]=true}get destroyed(){return this[O]}get flowing(){return this[g]}get paused(){return this[v]}[S](e){if(this[_])this[w]+=1;else this[w]+=e.length;return this.buffer.push(e)}[x](){if(this.buffer.length){if(this[_])this[w]-=1;else this[w]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[x]()));if(!this.buffer.length&&!this[o])this.emit("drain")}[d](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[O])return;const r=this[c];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[b]()};this.pipes.push(n);e.on("drain",n.ondrain);this[b]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[b]();else if(isEndish(e)&&this[c]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[c]}[a](){if(!this[u]&&!this[c]&&!this[O]&&this.buffer.length===0&&this[o]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[l])this.emit("close");this[u]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==O&&this[O])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach((e=>e.dest.write(t)===false&&this.pause()))}else if(e==="end"){if(this[c]===true)return;this[c]=true;this.readable=false;if(this[y]){t=this[y].end();if(t){this.pipes.forEach((e=>e.dest.write(t)));super.emit("data",t)}}this.pipes.forEach((e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()}))}else if(e==="close"){this[l]=true;if(!this[c]&&!this[O])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!isEndish(e))this[a]();else this.removeAllListeners(e)}}collect(){const e=[];e.dataLength=0;this.on("data",(t=>{e.push(t);e.dataLength+=t.length}));return this.promise().then((()=>e))}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((e=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?e.join(""):C.concat(e,e.dataLength)))}promise(){return new Promise(((e,t)=>{this.on(O,(()=>t(new Error("stream destroyed"))));this.on("end",(()=>e()));this.on("error",(e=>t(e)))}))}[A](){const next=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[o])return Promise.resolve({done:true});let t=null;let r=null;const onerr=e=>{this.removeListener("data",ondata);this.removeListener("end",onend);r(e)};const ondata=e=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();t({value:e,done:!!this[o]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);t({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,n)=>{r=n;t=e;this.once(O,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[R](){const next=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:next}}destroy(e){if(this[O]){if(e)this.emit("error",e);else this.emit(O);return this}this[O]=true;this.buffer=new i;this[w]=0;if(typeof this.close==="function"&&!this[l])this.close();if(e)this.emit("error",e);else this.emit(O);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},3263:(e,t,r)=>{const n=r(9796).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},3808:(e,t,r)=>{"use strict";const n=r(9491);const i=r(4300).Buffer;const s=r(9796);const o=t.constants=r(3263);const a=r(448);const c=i.concat;class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const l=Symbol("flushFlag");const h=Symbol("finishFlushFlag");const p=Symbol("fullFlushFlag");const d=Symbol("handle");const m=Symbol("onError");const y=Symbol("sawError");const g=Symbol("level");const v=Symbol("strategy");const b=Symbol("ended");const w=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[b]=false;this[u]=e;this[l]=e.flush;this[h]=e.finishFlush;try{this[d]=new s[t](e)}catch(e){throw new ZlibError(e)}this[m]=e=>{this[y]=true;this.close();this.emit("error",e)};this[d].on("error",(e=>this[m](new ZlibError(e))));this.once("end",(()=>this.close))}close(){if(this[d]){this[d].close();this[d]=null;this.emit("close")}}reset(){if(!this[y]){n(this[d],"zlib binding closed");return this[d].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[p];this.write(Object.assign(i.alloc(0),{[l]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[h]);this[b]=true;return super.end(null,null,r)}get ended(){return this[b]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=i.from(e,t);if(this[y])return;n(this[d],"zlib binding closed");const s=this[d]._handle;const o=s.close;s.close=()=>{};const a=this[d].close;this[d].close=()=>{};i.concat=e=>e;let u;try{const t=typeof e[l]==="number"?e[l]:this[l];u=this[d]._processChunk(e,t);i.concat=c}catch(e){i.concat=c;this[m](new ZlibError(e))}finally{if(this[d]){this[d]._handle=s;s.close=o;this[d].close=a;this[d].removeAllListeners("error")}}let h;if(u){if(Array.isArray(u)&&u.length>0){h=super.write(i.from(u[0]));for(let e=1;e<u.length;e++){h=super.write(u[e])}}else{h=super.write(i.from(u))}}if(r)r();return h}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[p]=o.Z_FULL_FLUSH;this[g]=e.level;this[v]=e.strategy}params(e,t){if(this[y])return;if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[g]!==e||this[v]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[d],"zlib binding closed");const r=this[d].flush;this[d].flush=(e,t)=>{this.flush(e);t()};try{this[d].params(e,t)}finally{this[d].flush=r}if(this[d]){this[g]=e;this[v]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}class Gzip extends Zlib{constructor(e){super(e,"Gzip")}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[p]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},8828:(e,t,r)=>{var n=r(1017);var i=r(7147);var s=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,o){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var a=t.mode;var c=t.fs||i;if(a===undefined){a=s}if(!o)o=null;var u=r||function(){};e=n.resolve(e);c.mkdir(e,a,(function(r){if(!r){o=o||e;return u(null,o)}switch(r.code){case"ENOENT":if(n.dirname(e)===e)return u(r);mkdirP(n.dirname(e),t,(function(r,n){if(r)u(r,n);else mkdirP(e,t,u,n)}));break;default:c.stat(e,(function(e,t){if(e||!t.isDirectory())u(r,o);else u(null,o)}));break}}))}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var a=t.fs||i;if(o===undefined){o=s}if(!r)r=null;e=n.resolve(e);try{a.mkdirSync(e,o);r=r||e}catch(i){switch(i.code){case"ENOENT":r=sync(n.dirname(e),t,r);sync(e,t,r);break;default:var c;try{c=a.statSync(e)}catch(e){throw i}if(!c.isDirectory())throw i;break}}return r}},4057:(e,t,r)=>{e.exports=r(6302)},6302:(e,t,r)=>{var n=r(9989);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};t.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in e){t[r]=e[r]}if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var i=0;i<t.retries;i++){n.push(this.createTimeout(i,t))}if(e&&e.forever&&!n.length){n.push(this.createTimeout(i,t))}n.sort((function(e,t){return e-t}));return n};t.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1;var n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));n=Math.min(n,t.maxTimeout);return n};t.wrap=function(e,r,n){if(r instanceof Array){n=r;r=null}if(!n){n=[];for(var i in e){if(typeof e[i]==="function"){n.push(i)}}}for(var s=0;s<n.length;s++){var o=n[s];var a=e[o];e[o]=function retryWrapper(n){var i=t.operation(r);var s=Array.prototype.slice.call(arguments,1);var o=s.pop();s.push((function(e){if(i.retry(e)){return}if(e){arguments[0]=i.mainError()}o.apply(this,arguments)}));i.attempt((function(){n.apply(e,s)}))}.bind(e,a);e[o].options=r}}},9989:e=>{function RetryOperation(e,t){if(typeof t==="boolean"){t={forever:t}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=t||{};this._maxRetryTime=t&&t.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime){this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var r=this._timeouts.shift();if(r===undefined){if(this._cachedTimeouts){this._errors.splice(this._errors.length-1,this._errors.length);this._timeouts=this._cachedTimeouts.slice(0);r=this._timeouts.shift()}else{return false}}var n=this;var i=setTimeout((function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)}),r);if(this._options.unref){i.unref()}return true};RetryOperation.prototype.attempt=function(e,t){this._fn=e;if(t){if(t.timeout){this._operationTimeout=t.timeout}if(t.cb){this._operationTimeoutCb=t.cb}}var r=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){r._operationTimeoutCb()}),r._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var t=null;var r=0;for(var n=0;n<this._errors.length;n++){var i=this._errors[n];var s=i.message;var o=(e[s]||0)+1;e[s]=o;if(o>=r){t=i;r=o}}return t}},8937:(e,t,r)=>{"use strict";const n=r(2037);const i=r(1135);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2127:(e,t,r)=>{"use strict";t.c=t.create=r(6036);t.r=t.replace=r(8291);t.t=t.list=r(9650);t.u=t.update=r(8489);t.x=t.extract=r(7171);t.Pack=r(9698);t.Unpack=r(7932);t.Parse=r(2801);t.ReadEntry=r(2946);t.WriteEntry=r(2393);t.Header=r(3970);t.Pax=r(4065);t.types=r(8318)},5104:(e,t,r)=>{"use strict";let n=Buffer;if(!n.alloc){n=r(3118).Buffer}e.exports=n},6036:(e,t,r)=>{"use strict";const n=r(3975);const i=r(9698);const s=r(7147);const o=r(6748);const a=r(9650);const c=r(1017);const u=e.exports=(e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?createFileSync(i,t):i.file?createFile(i,t,r):i.sync?createSync(i,t):create(i,t)};const createFileSync=(e,t)=>{const r=new i.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);addFilesSync(r,t)};const createFile=(e,t,r)=>{const n=new i(e);const s=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(s);const a=new Promise(((e,t)=>{s.on("error",t);s.on("close",e);n.on("error",t)}));addFilesAsync(n,t);return r?a.then(r,r):a};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")a({file:c.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:c.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()};const createSync=(e,t)=>{const r=new i.Sync(e);addFilesSync(r,t);return r};const create=(e,t)=>{const r=new i(e);addFilesAsync(r,t);return r}},7171:(e,t,r)=>{"use strict";const n=r(3975);const i=r(7932);const s=r(7147);const o=r(6748);const a=r(1017);const c=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(i,t);return i.file&&i.sync?extractFileSync(i):i.file?extractFile(i,r):i.sync?extractSync(i):extract(i)};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||a.parse(e).root||".";const i=e===n?false:r.has(e)?r.get(e):mapHas(a.dirname(e),n);r.set(e,i);return i};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const extractFileSync=e=>{const t=new i.Sync(e);const r=e.file;let n=true;let a;const c=s.statSync(r);const u=e.maxReadSize||16*1024*1024;const l=new o.ReadStreamSync(r,{readSize:u,size:c.size});l.pipe(t)};const extractFile=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("close",e);s.stat(a,((e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const extractSync=e=>new i.Sync(e);const extract=e=>new i(e)},3970:(e,t,r)=>{"use strict";const n=r(5104);const i=r(8318);const s=r(1017).posix;const o=r(9038);const a=Symbol("slurp");const c=Symbol("type");class Header{constructor(e,t,r,i){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[c]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(n.isBuffer(e))this.decode(e,t||0,r,i);else if(e)this.set(e)}decode(e,t,r,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=decString(e,t,100);this.mode=decNumber(e,t+100,8);this.uid=decNumber(e,t+108,8);this.gid=decNumber(e,t+116,8);this.size=decNumber(e,t+124,12);this.mtime=decDate(e,t+136,12);this.cksum=decNumber(e,t+148,12);this[a](r);this[a](n,true);this[c]=decString(e,t+156,1);if(this[c]==="")this[c]="0";if(this[c]==="0"&&this.path.substr(-1)==="/")this[c]="5";if(this[c]==="5")this.size=0;this.linkpath=decString(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=decString(e,t+265,32);this.gname=decString(e,t+297,32);this.devmaj=decNumber(e,t+329,8);this.devmin=decNumber(e,t+337,8);if(e[t+475]!==0){const r=decString(e,t+345,155);this.path=r+"/"+this.path}else{const r=decString(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=decDate(e,t+476,12);this.ctime=decDate(e,t+488,12)}}let i=8*32;for(let r=t;r<t+148;r++){i+=e[r]}for(let r=t+156;r<t+512;r++){i+=e[r]}this.cksumValid=i===this.cksum;if(this.cksum===null&&i===8*32)this.nullBlock=true}[a](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=n.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const i=splitPrefix(this.path||"",r);const s=i[0];const o=i[1];this.needPax=i[2];this.needPax=encString(e,t,100,s)||this.needPax;this.needPax=encNumber(e,t+100,8,this.mode)||this.needPax;this.needPax=encNumber(e,t+108,8,this.uid)||this.needPax;this.needPax=encNumber(e,t+116,8,this.gid)||this.needPax;this.needPax=encNumber(e,t+124,12,this.size)||this.needPax;this.needPax=encDate(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[c].charCodeAt(0);this.needPax=encString(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=encString(e,t+265,32,this.uname)||this.needPax;this.needPax=encString(e,t+297,32,this.gname)||this.needPax;this.needPax=encNumber(e,t+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(e,t+337,8,this.devmin)||this.needPax;this.needPax=encString(e,t+345,r,o)||this.needPax;if(e[t+475]!==0)this.needPax=encString(e,t+345,155,o)||this.needPax;else{this.needPax=encString(e,t+345,130,o)||this.needPax;this.needPax=encDate(e,t+476,12,this.atime)||this.needPax;this.needPax=encDate(e,t+488,12,this.ctime)||this.needPax}let a=8*32;for(let r=t;r<t+148;r++){a+=e[r]}for(let r=t+156;r<t+512;r++){a+=e[r]}this.cksum=a;encNumber(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return i.name.get(this[c])||this[c]}get typeKey(){return this[c]}set type(e){if(i.code.has(e))this[c]=i.code.get(e);else this[c]=e}}const splitPrefix=(e,t)=>{const r=100;let i=e;let o="";let a;const c=s.parse(e).root||".";if(n.byteLength(i)<r)a=[i,o,false];else{o=s.dirname(i);i=s.basename(i);do{if(n.byteLength(i)<=r&&n.byteLength(o)<=t)a=[i,o,false];else if(n.byteLength(i)>r&&n.byteLength(o)<=t)a=[i.substr(0,r-1),o,true];else{i=s.join(s.basename(o),i);o=s.dirname(o)}}while(o!==c&&!a);if(!a)a=[e.substr(0,r-1),"",true]}return a};const decString=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const decDate=(e,t,r)=>numToDate(decNumber(e,t,r));const numToDate=e=>e===null?null:new Date(e*1e3);const decNumber=(e,t,r)=>e[t]&128?o.parse(e.slice(t,t+r)):decSmallNumber(e,t,r);const nanNull=e=>isNaN(e)?null:e;const decSmallNumber=(e,t,r)=>nanNull(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const u={12:8589934591,8:2097151};const encNumber=(e,t,r,n)=>n===null?false:n>u[r]||n<0?(o.encode(n,e.slice(t,t+r)),true):(encSmallNumber(e,t,r,n),false);const encSmallNumber=(e,t,r,n)=>e.write(octalString(n,r),t,r,"ascii");const octalString=(e,t)=>padOctal(Math.floor(e).toString(8),t);const padOctal=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const encDate=(e,t,r,n)=>n===null?false:encNumber(e,t,r,n.getTime()/1e3);const l=new Array(156).join("\0");const encString=(e,t,r,i)=>i===null?false:(e.write(i+l,t,r,"utf8"),i.length!==n.byteLength(i)||i.length>r);e.exports=Header},3975:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=e=>e?Object.keys(e).map((r=>[t.has(r)?t.get(r):r,e[r]])).reduce(((e,t)=>(e[t[0]]=t[1],e)),Object.create(null)):{}},9038:(e,t)=>{"use strict";const r=t.encode=(e,t)=>{if(!Number.isSafeInteger(e))throw TypeError("cannot encode number outside of javascript safe integer range");else if(e<0)encodeNegative(e,t);else encodePositive(e,t);return t};const encodePositive=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const encodeNegative=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256);if(r)t[n-1]=onesComp(i);else if(i===0)t[n-1]=0;else{r=true;t[n-1]=twosComp(i)}}};const n=t.parse=e=>{var t=e[e.length-1];var r=e[0];var n;if(r===128)n=pos(e.slice(1,e.length));else if(r===255)n=twos(e);else throw TypeError("invalid base256 encoding");if(!Number.isSafeInteger(n))throw TypeError("parsed number outside of javascript safe integer range");return n};const twos=e=>{var t=e.length;var r=0;var n=false;for(var i=t-1;i>-1;i--){var s=e[i];var o;if(n)o=onesComp(s);else if(s===0)o=s;else{n=true;o=twosComp(s)}if(o!==0)r-=o*Math.pow(256,t-i-1)}return r};const pos=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var i=e[n];if(i!==0)r+=i*Math.pow(256,t-n-1)}return r};const onesComp=e=>(255^e)&255;const twosComp=e=>(255^e)+1&255},9650:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3975);const s=r(2801);const o=r(7147);const a=r(6748);const c=r(1017);const u=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const n=i(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(n,t);if(!n.noResume)onentryFunction(n);return n.file&&n.sync?listFileSync(n):n.file?listFile(n,r):list(n)};const onentryFunction=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||c.parse(e).root||".";const i=e===n?false:r.has(e)?r.get(e):mapHas(c.dirname(e),n);r.set(e,i);return i};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const listFileSync=e=>{const t=list(e);const r=e.file;let i=true;let s;try{const a=o.statSync(r);const c=e.maxReadSize||16*1024*1024;if(a.size<c){t.end(o.readFileSync(r))}else{let e=0;const i=n.allocUnsafe(c);s=o.openSync(r,"r");while(e<a.size){let r=o.readSync(s,i,0,c,e);e+=r;t.write(i.slice(0,r))}t.end()}i=false}finally{if(i&&s)try{o.closeSync(s)}catch(e){}}};const listFile=(e,t)=>{const r=new s(e);const n=e.maxReadSize||16*1024*1024;const i=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("end",e);o.stat(i,((e,s)=>{if(e)t(e);else{const e=new a.ReadStream(i,{readSize:n,size:s.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const list=e=>new s(e)},3967:(e,t,r)=>{"use strict";const n=r(8828);const i=r(7147);const s=r(1017);const o=r(1817);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=(e,t,r)=>{const a=t.umask;const c=t.mode|448;const u=(c&a)!==0;const l=t.uid;const h=t.gid;const p=typeof l==="number"&&typeof h==="number"&&(l!==t.processUid||h!==t.processGid);const d=t.preserve;const m=t.unlink;const y=t.cache;const g=t.cwd;const done=(t,n)=>{if(t)r(t);else{y.set(e,true);if(n&&p)o(n,l,h,(e=>done(e)));else if(u)i.chmod(e,c,r);else r()}};if(y&&y.get(e)===true)return done();if(e===g)return i.stat(e,((t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");done(t)}));if(d)return n(e,c,done);const v=s.relative(g,e);const b=v.split(/\/|\\/);mkdir_(g,b,c,y,m,g,null,done)};const mkdir_=(e,t,r,n,s,o,a,c)=>{if(!t.length)return c(null,a);const u=t.shift();const l=e+"/"+u;if(n.get(l))return mkdir_(l,t,r,n,s,o,a,c);i.mkdir(l,r,onmkdir(l,t,r,n,s,o,a,c))};const onmkdir=(e,t,r,n,o,a,c,u)=>l=>{if(l){if(l.path&&s.dirname(l.path)===a&&(l.code==="ENOTDIR"||l.code==="ENOENT"))return u(new CwdError(a,l.code));i.lstat(e,((s,h)=>{if(s)u(s);else if(h.isDirectory())mkdir_(e,t,r,n,o,a,c,u);else if(o)i.unlink(e,(s=>{if(s)return u(s);i.mkdir(e,r,onmkdir(e,t,r,n,o,a,c,u))}));else if(h.isSymbolicLink())return u(new SymlinkError(e,e+"/"+t.join("/")));else u(l)}))}else{c=c||e;mkdir_(e,t,r,n,o,a,c,u)}};const c=e.exports.sync=(e,t)=>{const r=t.umask;const a=t.mode|448;const c=(a&r)!==0;const u=t.uid;const l=t.gid;const h=typeof u==="number"&&typeof l==="number"&&(u!==t.processUid||l!==t.processGid);const p=t.preserve;const d=t.unlink;const m=t.cache;const y=t.cwd;const done=t=>{m.set(e,true);if(t&&h)o.sync(t,u,l);if(c)i.chmodSync(e,a)};if(m&&m.get(e)===true)return done();if(e===y){let t=false;let r="ENOTDIR";try{t=i.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}done();return}if(p)return done(n.sync(e,a));const g=s.relative(y,e);const v=g.split(/\/|\\/);let b=null;for(let e=v.shift(),t=y;e&&(t+="/"+e);e=v.shift()){if(m.get(t))continue;try{i.mkdirSync(t,a);b=b||t;m.set(t,true)}catch(e){if(e.path&&s.dirname(e.path)===y&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(y,e.code);const r=i.lstatSync(t);if(r.isDirectory()){m.set(t,true);continue}else if(d){i.unlinkSync(t);i.mkdirSync(t,a);b=b||t;m.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+v.join("/"))}}return done(b)}},4770:e=>{"use strict";e.exports=(e,t)=>{e&=4095;if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e}},9698:(e,t,r)=>{"use strict";const n=r(5104);class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const i=r(448);const s=r(3808);const o=r(2946);const a=r(2393);const c=a.Sync;const u=a.Tar;const l=r(5831);const h=n.alloc(1024);const p=Symbol("onStat");const d=Symbol("ended");const m=Symbol("queue");const y=Symbol("current");const g=Symbol("process");const v=Symbol("processing");const b=Symbol("processJob");const w=Symbol("jobs");const S=Symbol("jobDone");const x=Symbol("addFSEntry");const _=Symbol("addTarEntry");const O=Symbol("stat");const k=Symbol("readdir");const A=Symbol("onreaddir");const R=Symbol("pipe");const C=Symbol("entry");const j=Symbol("entryOpt");const P=Symbol("writeEntryClass");const T=Symbol("write");const M=Symbol("ondrain");const I=r(7147);const N=r(1017);const D=r(430);const L=D(class Pack extends i{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[P]=a;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};this.zip=new s.Gzip(e.gzip);this.zip.on("data",(e=>super.write(e)));this.zip.on("end",(e=>super.end()));this.zip.on("drain",(e=>this[M]()));this.on("resume",(e=>this.zip.resume()))}else this.on("drain",this[M]);this.portable=!!e.portable;this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[m]=new l;this[w]=0;this.jobs=+e.jobs||4;this[v]=false;this[d]=false}[T](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[d]=true;this[g]();return this}write(e){if(this[d])throw new Error("write after end");if(e instanceof o)this[_](e);else this[x](e);return this.flowing}[_](e){const t=N.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new u(e,this[j](r));r.entry.on("end",(e=>this[S](r)));this[w]+=1;this[m].push(r)}this[g]()}[x](e){const t=N.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[m].push(new PackJob(e,t));this[g]()}[O](e){e.pending=true;this[w]+=1;const t=this.follow?"stat":"lstat";I[t](e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t)this.emit("error",t);else this[p](e,r)}))}[p](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[g]()}[k](e){e.pending=true;this[w]+=1;I.readdir(e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t)return this.emit("error",t);this[A](e,r)}))}[A](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[g]()}[g](){if(this[v])return;this[v]=true;for(let e=this[m].head;e!==null&&this[w]<this.jobs;e=e.next){this[b](e.value);if(e.value.ignore){const t=e.next;this[m].removeNode(e);e.next=t}}this[v]=false;if(this[d]&&!this[m].length&&this[w]===0){if(this.zip)this.zip.end(h);else{super.write(h);super.end()}}}get[y](){return this[m]&&this[m].head&&this[m].head.value}[S](e){this[m].shift();this[w]-=1;this[g]()}[b](e){if(e.pending)return;if(e.entry){if(e===this[y]&&!e.piped)this[R](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[p](e,this.statCache.get(e.absolute));else this[O](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[A](e,this.readdirCache.get(e.absolute));else this[k](e);if(!e.readdir)return}e.entry=this[C](e);if(!e.entry){e.ignore=true;return}if(e===this[y]&&!e.piped)this[R](e)}[j](e){return{onwarn:(e,t)=>{this.warn(e,t)},noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[C](e){this[w]+=1;try{return new this[P](e.path,this[j](e)).on("end",(()=>this[S](e))).on("error",(e=>this.emit("error",e)))}catch(e){this.emit("error",e)}}[M](){if(this[y]&&this[y].entry)this[y].entry.resume()}[R](e){e.piped=true;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[x](n+t)}));const t=e.entry;const r=this.zip;if(r)t.on("data",(e=>{if(!r.write(e))t.pause()}));else t.on("data",(e=>{if(!super.write(e))t.pause()}))}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends L{constructor(e){super(e);this[P]=c}pause(){}resume(){}[O](e){const t=this.follow?"statSync":"lstatSync";this[p](e,I[t](e.absolute))}[k](e,t){this[A](e,I.readdirSync(e.absolute))}[R](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[x](n+t)}));if(r)t.on("data",(e=>{r.write(e)}));else t.on("data",(e=>{super[T](e)}))}}L.Sync=PackSync;e.exports=L},2801:(e,t,r)=>{"use strict";const n=r(430);const i=r(1017);const s=r(3970);const o=r(2361);const a=r(5831);const c=1024*1024;const u=r(2946);const l=r(4065);const h=r(3808);const p=r(5104);const d=p.from([31,139]);const m=Symbol("state");const y=Symbol("writeEntry");const g=Symbol("readEntry");const v=Symbol("nextEntry");const b=Symbol("processEntry");const w=Symbol("extendedHeader");const S=Symbol("globalExtendedHeader");const x=Symbol("meta");const _=Symbol("emitMeta");const O=Symbol("buffer");const k=Symbol("queue");const A=Symbol("ended");const R=Symbol("emittedEnd");const C=Symbol("emit");const j=Symbol("unzip");const P=Symbol("consumeChunk");const T=Symbol("consumeChunkSub");const M=Symbol("consumeBody");const I=Symbol("consumeMeta");const N=Symbol("consumeHeader");const D=Symbol("consuming");const L=Symbol("bufferConcat");const $=Symbol("maybeEnd");const B=Symbol("writing");const U=Symbol("aborted");const G=Symbol("onDone");const noop=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);if(e.ondone)this.on(G,e.ondone);else this.on(G,(e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}));this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||c;this.filter=typeof e.filter==="function"?e.filter:noop;this.writable=true;this.readable=false;this[k]=new a;this[O]=null;this[g]=null;this[y]=null;this[m]="begin";this[x]="";this[w]=null;this[S]=null;this[A]=false;this[j]=null;this[U]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[N](e,t){const r=new s(e,t,this[w],this[S]);if(r.nullBlock)this[C]("nullBlock");else if(!r.cksumValid)this.warn("invalid entry",r);else if(!r.path)this.warn("invalid: path is required",r);else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("invalid: linkpath required",r);else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("invalid: linkpath forbidden",r);else{const e=this[y]=new u(r,this[w],this[S]);if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[C]("ignoredEntry",e);this[m]="ignore"}else if(e.size>0){this[x]="";e.on("data",(e=>this[x]+=e));this[m]="meta"}}else{this[w]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[C]("ignoredEntry",e);this[m]=e.remain?"ignore":"begin"}else{if(e.remain)this[m]="body";else{this[m]="begin";e.end()}if(!this[g]){this[k].push(e);this[v]()}else this[k].push(e)}}}}}[b](e){let t=true;if(!e){this[g]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[g]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",(e=>this[v]()));t=false}}return t}[v](){do{}while(this[b](this[k].shift()));if(!this[k].length){const e=this[g];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[B])this.emit("drain")}else e.once("drain",(e=>this.emit("drain")))}}[M](e,t){const r=this[y];const n=r.blockRemain;const i=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(i);if(!r.blockRemain){this[m]="begin";this[y]=null;r.end()}return i.length}[I](e,t){const r=this[y];const n=this[M](e,t);if(!this[y])this[_](r);return n}[C](e,t,r){if(!this[k].length&&!this[g])this.emit(e,t,r);else this[k].push([e,t,r])}[_](e){this[C]("meta",this[x]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=l.parse(this[x],this[w],false);break;case"GlobalExtendedHeader":this[S]=l.parse(this[x],this[S],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null);this[w].path=this[x].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null);this[w].linkpath=this[x].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e,t){this[U]=true;this.warn(e,t);this.emit("abort",t);this.emit("error",t)}write(e){if(this[U])return;if(this[j]===null&&e){if(this[O]){e=p.concat([this[O],e]);this[O]=null}if(e.length<d.length){this[O]=e;return true}for(let t=0;this[j]===null&&t<d.length;t++){if(e[t]!==d[t])this[j]=false}if(this[j]===null){const t=this[A];this[A]=false;this[j]=new h.Unzip;this[j].on("data",(e=>this[P](e)));this[j].on("error",(e=>this.abort(e.message,e)));this[j].on("end",(e=>{this[A]=true;this[P]()}));this[B]=true;const r=this[j][t?"end":"write"](e);this[B]=false;return r}}this[B]=true;if(this[j])this[j].write(e);else this[P](e);this[B]=false;const t=this[k].length?false:this[g]?this[g].flowing:true;if(!t&&!this[k].length)this[g].once("drain",(e=>this.emit("drain")));return t}[L](e){if(e&&!this[U])this[O]=this[O]?p.concat([this[O],e]):e}[$](){if(this[A]&&!this[R]&&!this[U]&&!this[D]){this[R]=true;const e=this[y];if(e&&e.blockRemain){const t=this[O]?this[O].length:0;this.warn("Truncated input (needed "+e.blockRemain+" more bytes, only "+t+" available)",e);if(this[O])e.write(this[O]);e.end()}this[C](G)}}[P](e){if(this[D]){this[L](e)}else if(!e&&!this[O]){this[$]()}else{this[D]=true;if(this[O]){this[L](e);const t=this[O];this[O]=null;this[T](t)}else{this[T](e)}while(this[O]&&this[O].length>=512&&!this[U]){const e=this[O];this[O]=null;this[T](e)}this[D]=false}if(!this[O]||this[A])this[$]()}[T](e){let t=0;let r=e.length;while(t+512<=r&&!this[U]){switch(this[m]){case"begin":this[N](e,t);t+=512;break;case"ignore":case"body":t+=this[M](e,t);break;case"meta":t+=this[I](e,t);break;default:throw new Error("invalid state: "+this[m])}}if(t<r){if(this[O])this[O]=p.concat([e.slice(t),this[O]]);else this[O]=e.slice(t)}}end(e){if(!this[U]){if(this[j])this[j].end(e);else{this[A]=true;this.write(e)}}}})},4065:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3970);const s=r(1017);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=n.byteLength(e);const r=512*Math.ceil(1+t/512);const o=n.allocUnsafe(r);for(let e=0;e<512;e++){o[e]=0}new i({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(o);o.write(e,512,t,"utf8");for(let e=t+512;e<o.length;e++){o[e]=0}return o}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const i=n.byteLength(r);let s=Math.floor(Math.log(i)/Math.log(10))+1;if(i+s>=Math.pow(10,s))s+=1;const o=s+i;return o+r}}Pax.parse=(e,t,r)=>new Pax(merge(parseKV(e),t),r);const merge=(e,t)=>t?Object.keys(e).reduce(((t,r)=>(t[r]=e[r],t)),t):e;const parseKV=e=>e.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(e,t)=>{const r=parseInt(t,10);if(r!==n.byteLength(t)+1)return e;t=t.substr((r+" ").length);const i=t.split("=");const s=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return e;const o=i.join("=");e[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o;return e};e.exports=Pax},2946:(e,t,r)=>{"use strict";const n=r(8318);const i=r(448);const s=Symbol("slurp");e.exports=class ReadEntry extends i{constructor(e,t,r){super();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[s](t);if(r)this[s](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[s](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},8291:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3975);const s=r(9698);const o=r(2801);const a=r(7147);const c=r(6748);const u=r(9650);const l=r(1017);const h=r(3970);const p=e.exports=(e,t,r)=>{const n=i(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return n.sync?replaceSync(n,t):replace(n,t,r)};const replaceSync=(e,t)=>{const r=new s.Sync(e);let i=true;let o;let c;try{try{o=a.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")o=a.openSync(e.file,"w+");else throw t}const s=a.fstatSync(o);const u=n.alloc(512);e:for(c=0;c<s.size;c+=512){for(let e=0,t=0;e<512;e+=t){t=a.readSync(o,u,e,u.length-e,c+e);if(c===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new h(u);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(c+r+512>s.size)break;c+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}i=false;streamSync(e,r,c,o,t)}finally{if(i)try{a.closeSync(o)}catch(e){}}};const streamSync=(e,t,r,n,i)=>{const s=new c.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s);addFilesSync(t,i)};const replace=(e,t,r)=>{t=Array.from(t);const i=new s(e);const getPos=(t,r,i)=>{const cb=(e,r)=>{if(e)a.close(t,(t=>i(e)));else i(null,r)};let s=0;if(r===0)return cb(null,0);let o=0;const c=n.alloc(512);const onread=(n,i)=>{if(n)return cb(n);o+=i;if(o<512&&i)return a.read(t,c,o,c.length-o,s+o,onread);if(s===0&&c[0]===31&&c[1]===139)return cb(new Error("cannot append to compressed archives"));if(o<512)return cb(null,s);const u=new h(c);if(!u.cksumValid)return cb(null,s);const l=512*Math.ceil(u.size/512);if(s+l+512>r)return cb(null,s);s+=l+512;if(s>=r)return cb(null,s);if(e.mtimeCache)e.mtimeCache.set(u.path,u.mtime);o=0;a.read(t,c,0,512,s,onread)};a.read(t,c,0,512,s,onread)};const o=new Promise(((r,n)=>{i.on("error",n);let s="r+";const onopen=(o,u)=>{if(o&&o.code==="ENOENT"&&s==="r+"){s="w+";return a.open(e.file,s,onopen)}if(o)return n(o);a.fstat(u,((s,o)=>{if(s)return n(s);getPos(u,o.size,((s,o)=>{if(s)return n(s);const a=new c.WriteStream(e.file,{fd:u,start:o});i.pipe(a);a.on("error",n);a.on("close",r);addFilesAsync(i,t)}))}))};a.open(e.file,s,onopen)}));return r?o.then(r,r):o};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")u({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return u({file:l.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()}},8318:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map((e=>[e[1],e[0]])))},7932:(e,t,r)=>{"use strict";const n=r(9491);const i=r(2361).EventEmitter;const s=r(2801);const o=r(7147);const a=r(6748);const c=r(1017);const u=r(3967);const l=u.sync;const h=r(1676);const p=Symbol("onEntry");const d=Symbol("checkFs");const m=Symbol("isReusable");const y=Symbol("makeFs");const g=Symbol("file");const v=Symbol("directory");const b=Symbol("link");const w=Symbol("symlink");const S=Symbol("hardlink");const x=Symbol("unsupported");const _=Symbol("unknown");const O=Symbol("checkPath");const k=Symbol("mkdir");const A=Symbol("onError");const R=Symbol("pending");const C=Symbol("pend");const j=Symbol("unpend");const P=Symbol("ended");const T=Symbol("maybeClose");const M=Symbol("skip");const I=Symbol("doChown");const N=Symbol("uid");const D=Symbol("gid");const L=r(6113);const unlinkFile=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+L.randomBytes(16).toString("hex");o.rename(e,r,(e=>{if(e)return t(e);o.unlink(r,t)}))};const unlinkFileSync=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+L.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const uint32=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends s{constructor(e){if(!e)e={};e.ondone=e=>{this[P]=true;this[T]()};super(e);this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[R]=0;this[P]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=c.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",(e=>this[p](e)))}[T](){if(this[P]&&this[R]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[O](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("path contains '..'",t);return false}if(c.win32.isAbsolute(t)){const r=c.win32.parse(t);this.warn("stripping "+r.root+" from absolute path",t);e.path=t.substr(r.root.length)}}if(this.win32){const t=c.win32.parse(e.path);e.path=t.root===""?h.encode(e.path):t.root+h.encode(e.path.substr(t.root.length))}if(c.isAbsolute(e.path))e.absolute=e.path;else e.absolute=c.resolve(this.cwd,e.path);return true}[p](e){if(!this[O](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[x](e)}}[A](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn(e.message,e);this[j]();t.resume()}}[k](e,t,r){u(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[I](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[N](e){return uint32(this.uid,e.uid,this.processUid)}[D](e){return uint32(this.gid,e.gid,this.processGid)}[g](e){const t=e.mode&4095||this.fmode;const r=new a.WriteStream(e.absolute,{mode:t,autoClose:false});r.on("error",(t=>this[A](t,e)));let n=1;const done=t=>{if(t)return this[A](t,e);if(--n===0)o.close(r.fd,(e=>this[j]()))};r.on("finish",(t=>{const i=e.absolute;const s=r.fd;if(e.mtime&&!this.noMtime){n++;const t=e.atime||new Date;const r=e.mtime;o.futimes(s,t,r,(e=>e?o.utimes(i,t,r,(t=>done(t&&e))):done()))}if(this[I](e)){n++;const t=this[N](e);const r=this[D](e);o.fchown(s,t,r,(e=>e?o.chown(i,t,r,(t=>done(t&&e))):done()))}done()}));const i=this.transform?this.transform(e)||e:e;if(i!==e){i.on("error",(t=>this[A](t,e)));e.pipe(i)}i.pipe(r)}[v](e){const t=e.mode&4095||this.dmode;this[k](e.absolute,t,(t=>{if(t)return this[A](t,e);let r=1;const done=t=>{if(--r===0){this[j]();e.resume()}};if(e.mtime&&!this.noMtime){r++;o.utimes(e.absolute,e.atime||new Date,e.mtime,done)}if(this[I](e)){r++;o.chown(e.absolute,this[N](e),this[D](e),done)}done()}))}[x](e){this.warn("unsupported entry type: "+e.type,e);e.resume()}[w](e){this[b](e,e.linkpath,"symlink")}[S](e){this[b](e,c.resolve(this.cwd,e.linkpath),"link")}[C](){this[R]++}[j](){this[R]--;this[T]()}[M](e){this[j]();e.resume()}[m](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[d](e){this[C]();this[k](c.dirname(e.absolute),this.dmode,(t=>{if(t)return this[A](t,e);o.lstat(e.absolute,((t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>e.mtime))this[M](e);else if(t||this[m](e,r))this[y](null,e);else if(r.isDirectory()){if(e.type==="Directory"){if(!e.mode||(r.mode&4095)===e.mode)this[y](null,e);else o.chmod(e.absolute,e.mode,(t=>this[y](t,e)))}else o.rmdir(e.absolute,(t=>this[y](t,e)))}else unlinkFile(e.absolute,(t=>this[y](t,e)))}))}))}[y](e,t){if(e)return this[A](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[g](t);case"Link":return this[S](t);case"SymbolicLink":return this[w](t);case"Directory":case"GNUDumpDir":return this[v](t)}}[b](e,t,r){o[r](t,e.absolute,(t=>{if(t)return this[A](t,e);this[j]();e.resume()}))}}class UnpackSync extends Unpack{constructor(e){super(e)}[d](e){const t=this[k](c.dirname(e.absolute),this.dmode);if(t)return this[A](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[M](e);else if(this[m](e,r))return this[y](null,e);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else unlinkFileSync(e.absolute);return this[y](null,e)}catch(t){return this[A](t,e)}}}catch(t){return this[y](null,e)}}[g](e){const t=e.mode&4095||this.fmode;const oner=t=>{try{o.closeSync(n)}catch(e){}if(t)this[A](t,e)};let r;let n;try{n=o.openSync(e.absolute,"w",t)}catch(e){return oner(e)}const i=this.transform?this.transform(e)||e:e;if(i!==e){i.on("error",(t=>this[A](t,e)));e.pipe(i)}i.on("data",(e=>{try{o.writeSync(n,e,0,e.length)}catch(e){oner(e)}}));i.on("end",(t=>{let r=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const i=e.mtime;try{o.futimesSync(n,t,i)}catch(n){try{o.utimesSync(e.absolute,t,i)}catch(e){r=n}}}if(this[I](e)){const t=this[N](e);const i=this[D](e);try{o.fchownSync(n,t,i)}catch(n){try{o.chownSync(e.absolute,t,i)}catch(e){r=r||n}}}oner(r)}))}[v](e){const t=e.mode&4095||this.dmode;const r=this[k](e.absolute,t);if(r)return this[A](r,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(r){}}if(this[I](e)){try{o.chownSync(e.absolute,this[N](e),this[D](e))}catch(r){}}e.resume()}[k](e,t){try{return u.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[b](e,t,r){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[A](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},8489:(e,t,r)=>{"use strict";const n=r(3975);const i=r(8291);const s=e.exports=(e,t,r)=>{const s=n(e);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);mtimeFilter(s);return i(s,t,r)};const mtimeFilter=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},430:e=>{"use strict";e.exports=e=>class extends e{warn(e,t){if(!this.strict)this.emit("warn",e,t);else if(t instanceof Error)this.emit("error",t);else{const r=new Error(e);r.data=t;this.emit("error",r)}}}},1676:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map((e=>String.fromCharCode(61440+e.charCodeAt(0))));const n=new Map(t.map(((e,t)=>[e,r[t]])));const i=new Map(r.map(((e,r)=>[e,t[r]])));e.exports={encode:e=>t.reduce(((e,t)=>e.split(t).join(n.get(t))),e),decode:e=>r.reduce(((e,t)=>e.split(t).join(i.get(t))),e)}},2393:(e,t,r)=>{"use strict";const n=r(5104);const i=r(448);const s=r(4065);const o=r(3970);const a=r(2946);const c=r(7147);const u=r(1017);const l=r(8318);const h=16*1024*1024;const p=Symbol("process");const d=Symbol("file");const m=Symbol("directory");const y=Symbol("symlink");const g=Symbol("hardlink");const v=Symbol("header");const b=Symbol("read");const w=Symbol("lstat");const S=Symbol("onlstat");const x=Symbol("onread");const _=Symbol("onreadlink");const O=Symbol("openfile");const k=Symbol("onopenfile");const A=Symbol("close");const R=Symbol("mode");const C=r(430);const j=r(1676);const P=r(4770);const T=C(class WriteEntry extends i{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||h;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(!this.preservePaths&&u.win32.isAbsolute(e)){const t=u.win32.parse(e);this.warn("stripping "+t.root+" from absolute path",e);this.path=e.substr(t.root.length)}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=j.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||u.resolve(this.cwd,e);if(this.path==="")this.path="./";if(this.statCache.has(this.absolute))this[S](this.statCache.get(this.absolute));else this[w]()}[w](){c.lstat(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[S](t)}))}[S](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=getType(e);this.emit("stat",e);this[p]()}[p](){switch(this.type){case"File":return this[d]();case"Directory":return this[m]();case"SymbolicLink":return this[y]();default:return this.end()}}[R](e){return P(e,this.type==="Directory")}[v](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this[R](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[m](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[v]();this.end()}[y](){c.readlink(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[_](t)}))}[_](e){this.linkpath=e;this[v]();this.end()}[g](e){this.type="Link";this.linkpath=u.relative(this.cwd,e);this.stat.size=0;this[v]();this.end()}[d](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[g](t)}this.linkCache.set(e,this.absolute)}this[v]();if(this.stat.size===0)return this.end();this[O]()}[O](){c.open(this.absolute,"r",((e,t)=>{if(e)return this.emit("error",e);this[k](t)}))}[k](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const i=n.allocUnsafe(r);this[b](e,i,0,i.length,0,this.stat.size,t)}[b](e,t,r,n,i,s,o){c.read(e,t,r,n,i,((a,c)=>{if(a)return this[A](e,(e=>this.emit("error",a)));this[x](e,t,r,n,i,s,o,c)}))}[A](e,t){c.close(e,t)}[x](e,t,r,i,s,o,a,c){if(c<=0&&o>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[A](e);return this.emit("error",t)}if(c>o){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[A](e);return this.emit("error",t)}if(c===o){for(let e=c;e<i&&c<a;e++){t[e+r]=0;c++;o++}}const u=r===0&&c===t.length?t:t.slice(r,r+c);o-=c;a-=c;s+=c;r+=c;this.write(u);if(!o){if(a)this.write(n.alloc(a));this.end();this[A](e,(e=>e));return}if(r>=i){t=n.allocUnsafe(i);r=0}i=t.length-r;this[b](e,t,r,i,s,o,a)}});class WriteEntrySync extends T{constructor(e,t){super(e,t)}[w](){this[S](c.lstatSync(this.absolute))}[y](){this[_](c.readlinkSync(this.absolute))}[O](){this[k](c.openSync(this.absolute,"r"))}[b](e,t,r,n,i,s,o){let a=true;try{const u=c.readSync(e,t,r,n,i);this[x](e,t,r,n,i,s,o,u);a=false}finally{if(a)try{this[A](e)}catch(e){}}}[A](e){c.closeSync(e)}}const M=C(class WriteEntryTar extends i{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[R](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(u.isAbsolute(this.path)&&!this.preservePaths){const e=u.parse(this.path);this.warn("stripping "+e.root+" from absolute path",this.path);this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(this.header.encode()&&!this.noPax)super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[R](e){return P(e,this.type==="Directory")}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(n.alloc(this.blockRemain));return super.end()}});T.Sync=WriteEntrySync;T.Tar=M;const getType=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=T},7869:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},5831:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}for(;i!==null&&n<t;n++,i=i.next){r.push(i.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r<e;r++){n=n.next}var i=[];for(var r=0;n&&r<t;r++){i.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var r=2;r<arguments.length;r++){n=insert(this,n,arguments[r])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(7869)(Yallist)}catch(e){}},2027:(e,t,r)=>{"use strict";r.r(t);var n=r(6437);var i=r.n(n);var s=r(8138);var o=r.n(s);var a=r(1017);var c=r.n(a);var u=r(1112);var l=r.n(u);var h=r(5418);var p=r.n(h);var d=r(8571);var m=r.n(d);var y=r(402);var g=r.n(y);var v=r(7147);var b=r.n(v);var w=r(2037);var S=r.n(w);var x=r(9365);var _=r.n(x);var O=r(2127);var k=r(2781);var A=r(3837);const R=(0,A.promisify)(k.Stream.pipeline);async function isUrlOk(e){const t=await _().head(e).catch((e=>e));return t.statusCode===200}async function getRepoInfo(e,t){const[,r,n,i,s,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(i===undefined){const e=await _()(`https://api.github.com/repos/${r}/${n}`).catch((e=>e));if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:n,branch:t["default_branch"],filePath:a}}const c=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&c&&i==="tree"){return{username:r,name:n,branch:c,filePath:a}}}function hasRepo({username:e,name:t,branch:r,filePath:n}){const i=`https://api.github.com/repos/${e}/${t}/contents`;const s=`${n?`/${n}`:""}/package.json`;return isUrlOk(i+s+`?ref=${r}`)}function existsInRepo(e){try{const t=new URL(e);return isUrlOk(t.href)}catch{return isUrlOk(`https://api.github.com/repos/steedos/steedos-examples/contents/${encodeURIComponent(e)}`)}}function downloadAndExtractRepo(e,{username:t,name:r,branch:n,filePath:i}){return R(_().stream(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`),O.extract({cwd:e,strip:i?i.split("/").length+1:1},[`${r}-${n.replace(/\//g,"-")}${i?`/${i}`:""}`]))}function downloadAndExtractExample(e,t){if(t==="__internal-testing-retry"){throw new Error("This is an internal example for testing the CLI.")}return R(_().stream("https://codeload.github.com/steedos/steedos-examples/tar.gz/main"),O.extract({cwd:e,strip:2},[`steedos-examples-main/${t}`]))}function makeDir(e,t={recursive:true}){return b().promises.mkdir(e,t)}var C=r(2081);var j=r(2780);var P=r.n(j);function isInGitRepository(){try{(0,C.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(e){}return false}function isInMercurialRepository(){try{(0,C.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(e){}return false}function tryGitInit(e){let t=false;try{(0,C.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,C.execSync)("git init",{stdio:"ignore"});t=true;(0,C.execSync)("git checkout -b main",{stdio:"ignore"});(0,C.execSync)("git add -A",{stdio:"ignore"});(0,C.execSync)('git commit -m "Initial commit from Create Next App"',{stdio:"ignore"});return true}catch(r){if(t){try{P().sync(c().join(e,".git"))}catch(e){}}return false}}var T=r(7987);var M=r.n(T);function install(e,t,{packageManager:r,isOnline:n,devDependencies:s}){const o=[];const a=[];return new Promise(((c,u)=>{let l;let h=r;const p=r==="yarn";if(t&&t.length){if(p){l=["add","--exact"];if(!n)l.push("--offline");l.push("--cwd",e);if(s)l.push("--dev");l.push(...t)}else{l=["install","--save-exact"];l.push(s?"--save-dev":"--save");l.push(...t)}}else{l=["install"];if(!n){console.log(i().yellow("You appear to be offline."));if(p){console.log(i().yellow("Falling back to the local Yarn cache."));console.log();l.push("--offline")}else{console.log()}}}if(p){l.push(...a)}else{l.push(...o)}const d=M()(h,l,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}});d.on("close",(e=>{if(e!==0){u({command:`${h} ${l.join(" ")}`});return}c()}))}))}function isFolderEmpty(e,t){const r=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log"];const n=b().readdirSync(e).filter((e=>!r.includes(e))).filter((e=>!/\.iml$/.test(e)));if(n.length>0){console.log(`The directory ${i().green(t)} contains files that could conflict:`);console.log();for(const t of n){try{const r=b().lstatSync(c().join(e,t));if(r.isDirectory()){console.log(` ${i().blue(t)}/`)}else{console.log(` ${t}`)}}catch{console.log(` ${t}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}var I=r(9523);var N=r.n(I);var D=r(7310);var L=r.n(D);function getProxy(){if(process.env.https_proxy){return process.env.https_proxy}try{const e=(0,C.execSync)("npm config get https-proxy").toString().trim();return e!=="null"?e:undefined}catch(e){return}}function getOnline(){return new Promise((e=>{N().lookup("registry.yarnpkg.com",(t=>{if(!t){return e(true)}const r=getProxy();if(!r){return e(false)}const{hostname:n}=L().parse(r);if(!n){return e(false)}N().lookup(n,(t=>{e(t==null)}))}))}))}async function isWriteable(e){try{await b().promises.access(e,(b().constants||b()).W_OK);return true}catch(e){return false}}class DownloadError extends Error{}async function createApp({appPath:e,packageManager:t,example:n,examplePath:s,typescript:o}){let a;const u="default";if(n){let e;try{e=new URL(n)}catch(e){if(e.code!=="ERR_INVALID_URL"){console.error(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){console.error(`Invalid URL: ${i().red(`"${n}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}a=await getRepoInfo(e,s);if(!a){console.error(`Found invalid GitHub URL: ${i().red(`"${n}"`)}. Please fix the URL and try again.`);process.exit(1)}const t=await hasRepo(a);if(!t){console.error(`Could not locate the repository for ${i().red(`"${n}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else if(n!=="__internal-testing-retry"){const e=await existsInRepo(n);if(!e){console.error(`Could not locate an example named ${i().red(`"${n}"`)}. It could be due to the following:\n`,`1. Your spelling of example ${i().red(`"${n}"`)} might be incorrect.\n`,`2. You might not be connected to the internet or you are behind a proxy.`);process.exit(1)}}}const l=c().resolve(e);if(!await isWriteable(c().dirname(l))){console.error("The application path is not writable, please check folder permissions and try again.");console.error("It is likely you do not have write permissions for this folder.");process.exit(1)}const h=c().basename(l);await makeDir(l);if(!isFolderEmpty(l,h)){process.exit(1)}const p=t==="yarn";const d=!p||await getOnline();const y=process.cwd();console.log(`Creating a new steedos app in ${i().green(l)}.`);console.log();process.chdir(l);const v=c().join(l,"package.json");let w=false;if(n){try{if(a){const e=a;console.log(`Downloading files from repo ${i().cyan(n)}. This might take a moment.`);console.log();await m()((()=>downloadAndExtractRepo(l,e)),{retries:3})}else{console.log(`Downloading files for example ${i().cyan(n)}. This might take a moment.`);console.log();await m()((()=>downloadAndExtractExample(l,n)),{retries:3})}}catch(e){function isErrorLike(e){return typeof e==="object"&&e!==null&&typeof e.message==="string"}throw new DownloadError(isErrorLike(e)?e.message:e+"")}const e=c().join(l,".gitignore");if(!b().existsSync(e)){b().copyFileSync(r.ab+"gitignore",e)}const s=c().join(l,"tsconfig.json");if(b().existsSync(s)){b().copyFileSync(c().join(__dirname,"templates","typescript","next-env.d.ts"),c().join(l,"next-env.d.ts"))}w=b().existsSync(v);if(w){console.log("Installing packages. This might take a couple of minutes.");console.log();await install(l,null,{packageManager:t,isOnline:d});console.log()}}else{console.log(i().bold(`Using ${t}.`));const e={name:h,version:"0.1.0",private:true,scripts:{docker:"docker-compose up",start:"moleculer-runner services/*/package.service.js --hot --repl",repl:"moleculer-runner --repl",nodered:"node-red --settings nodered.config.js"}};b().writeFileSync(c().join(l,"package.json"),JSON.stringify(e,null,2)+S().EOL);const n={packageManager:t,isOnline:d};const s=["@steedos/service-package-loader","@steedos/node-red-contrib-steedos","dotenv-flow","moleculer-repl","node-red"];const a=["eslint"];if(o){a.push("typescript")}if(s.length){console.log();console.log("Installing dependencies:");for(const e of s){console.log(`- ${i().cyan(e)}`)}console.log();await install(l,s,n)}if(a.length){console.log();console.log("Installing devDependencies:");for(const e of a){console.log(`- ${i().cyan(e)}`)}console.log();const e={devDependencies:true,...n};await install(l,a,e)}console.log();await g()("**",l,{parents:true,cwd:r.ab+"default",rename:e=>{switch(e){case"env":case"gitignore":case"gitpod.yml":case"npmrc":case"yarnrc":case"eslintrc.json":{return".".concat(e)}case"README-template.md":{return"README.md"}default:{return e}}}})}if(tryGitInit(l)){console.log("Initialized a git repository.");console.log()}let x;if(c().join(y,h)===e){x=h}else{x=e}console.log(`${i().green("Success!")} Created ${h} at ${e}`);console.log()}function getPkgManager(){try{const e=process.env.npm_config_user_agent;if(e){if(e.startsWith("yarn")){return"yarn"}else if(e.startsWith("pnpm")){return"pnpm"}}try{(0,C.execSync)("yarn --version",{stdio:"ignore"});return"yarn"}catch{(0,C.execSync)("pnpm --version",{stdio:"ignore"});return"pnpm"}}catch{return"npm"}}var $=r(5880);var B=r.n($);function validateNpmName(e){const t=B()(e);if(t.validForNewPackages){return{valid:true}}return{valid:false,problems:[...t.errors||[],...t.warnings||[]]}}const U=JSON.parse('{"name":"create-steedos-app","version":"2.5.16-beta.5","keywords":["react","steedos"],"description":"Create steedos apps with one command","repository":{"type":"git","url":"https://github.com/steedos/steedos-platform","directory":"packages/create-steedos-app"},"author":"Steedos Team <support@steedos.com>","license":"MIT","bin":{"create-steedos-app":"./dist/index.js"},"files":["dist"],"scripts":{"dev":"ncc build ./index.ts -w -o dist/","prebuild":"rimraf ./dist/","build":"ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register"},"devDependencies":{"@types/async-retry":"1.4.4","@types/cross-spawn":"6.0.0","@types/node":"^12.6.8","@types/prompts":"2.0.1","@types/rimraf":"3.0.0","@types/tar":"4.0.3","@types/validate-npm-package-name":"3.0.0","@vercel/ncc":"0.33.4","async-retry":"1.3.1","chalk":"2.4.2","commander":"2.20.0","cpy":"7.3.0","cross-spawn":"6.0.5","got":"10.7.0","prompts":"2.1.0","rimraf":"3.0.2","tar":"4.4.10","update-check":"1.5.4","validate-npm-package-name":"3.0.0"},"engines":{"node":">=12.22.0"},"gitHead":"685eafb2b8403fbdf33fe6e31da2ce2264b15d97"}');let G="";const z=new(o().Command)(U.name).version(U.version).arguments("<project-directory>").usage(`${i().green("<project-directory>")} [options]`).action((e=>{G=e})).option("--ts, --typescript",`\n\n Initialize as a TypeScript project.\n`).option("--use-npm",`\n\n Explicitly tell the CLI to bootstrap the app using npm\n`).option("--use-pnpm",`\n\n Explicitly tell the CLI to bootstrap the app using pnpm\n`).option("-e, --example [name]|[github-url]",`\n\n An example to bootstrap the app with. You can use an example name\n from the official Next.js repo or a GitHub URL. The URL can use\n any branch and/or subdirectory\n`).option("--example-path <path-to-example>",`\n\n In a rare case, your GitHub URL might contain a branch name with\n a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).\n In this case, you must specify the path to the example separately:\n --example-path foo/bar\n`).allowUnknownOption().parse(process.argv);async function run(){if(typeof G==="string"){G=G.trim()}if(!G){const e=await l()({type:"text",name:"path",message:"What is your project named?",initial:"my-app",validate:e=>{const t=validateNpmName(c().basename(c().resolve(e)));if(t.valid){return true}return"Invalid project name: "+t.problems[0]}});if(typeof e.path==="string"){G=e.path.trim()}}if(!G){console.log("\nPlease specify the project directory:\n"+` ${i().cyan(z.name())} ${i().green("<project-directory>")}\n`+"For example:\n"+` ${i().cyan(z.name())} ${i().green("my-steedos-app")}\n\n`+`Run ${i().cyan(`${z.name()} --help`)} to see all options.`);process.exit(1)}const e=c().resolve(G);const t=c().basename(e);const{valid:r,problems:n}=validateNpmName(t);if(!r){console.error(`Could not create a project called ${i().red(`"${t}"`)} because of npm naming restrictions:`);n.forEach((e=>console.error(` ${i().red.bold("*")} ${e}`)));process.exit(1)}if(z.example===true){console.error("Please provide an example name or url, otherwise remove the example option.");process.exit(1)}const s=!!z.useNpm?"npm":!!z.usePnpm?"pnpm":getPkgManager();const o=typeof z.example==="string"?z.example.trim():undefined;try{await createApp({appPath:e,packageManager:s,example:o&&o!=="default"?o:undefined,examplePath:z.examplePath,typescript:z.typescript})}catch(t){if(!(t instanceof DownloadError)){throw t}const r=await l()({type:"confirm",name:"builtin",message:`Could not download "${o}" because of a connectivity issue between your machine and GitHub.\n`+`Do you want to use the default template instead?`,initial:true});if(!r.builtin){throw t}await createApp({appPath:e,packageManager:s,typescript:z.typescript})}}const q=p()(U).catch((()=>null));async function notifyUpdate(){try{const e=await q;if(e===null||e===void 0?void 0:e.latest){const e=getPkgManager();console.log(i().yellow.bold("A new version of `create-steedos-app` is available!")+"\n"+"You can update by running: "+i().cyan(e==="yarn"?"yarn global add create-steedos-app":`${e} install --global create-steedos-app`)+"\n")}process.exit()}catch{}}run().then(notifyUpdate).catch((async e=>{console.log();console.log("Aborting installation.");if(e.command){console.log(` ${i().cyan(e.command)} has failed.`)}else{console.log(i().red("Unexpected error. Please report it as a bug:")+"\n",e)}console.log();await notifyUpdate();process.exit(1)}))},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4521:e=>{"use strict";e.exports=require("readline")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},6352:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={id:r,loaded:false,exports:{}};var s=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(2027);module.exports=r})();
385
+ */e.exports=function base(e,t){if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected an object or function")}var r=isObject(t)?t:{};var n=typeof r.prop==="string"?r.prop:"fns";if(!Array.isArray(e[n])){define(e,n,[])}define(e,"use",use);define(e,"run",(function(t){if(!isObject(t))return;if(!t.use||!t.run){define(t,n,t[n]||[]);define(t,"use",use)}if(!t[n]||t[n].indexOf(base)===-1){t.use(base)}var r=this||e;var i=r[n];var s=i.length;var o=-1;while(++o<s){t.use(i[o])}return t}));function use(t,i,s){var o=1;if(typeof t==="string"||Array.isArray(t)){i=wrap(t,i);o++}else{s=i;i=t}if(typeof i!=="function"){throw new TypeError("expected a function")}var a=this||e;var c=a[n];var u=[].slice.call(arguments,o);u.unshift(a);if(typeof r.hook==="function"){r.hook.apply(a,u)}var l=i.apply(a,u);if(typeof l==="function"&&c.indexOf(l)===-1){c.push(l)}return a}function wrap(e,t){return function plugin(){return this.type===e?t.apply(this,arguments):plugin}}return e};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}function define(e,t,r){Object.defineProperty(e,t,{configurable:true,writable:true,value:r})}},5880:(e,t,r)=>{"use strict";var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var i=r(6352);var s=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return done(t,r)}if(e===undefined){r.push("name cannot be undefined");return done(t,r)}if(typeof e!=="string"){r.push("name must be a string");return done(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}s.forEach((function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}}));i.forEach((function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}}));if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(n);if(o){var a=o[1];var c=o[2];if(encodeURIComponent(a)===a&&encodeURIComponent(c)===c){return done(t,r)}}r.push("name can only contain URL-friendly characters")}return done(t,r)};o.scopedPackagePattern=n;var done=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},4586:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach((function(e){n[e]=i[e]}))}return n}}},1694:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(721);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};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],gray:[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.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];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})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},8571:(e,t,r)=>{var n=r(9356);function retry(e,t){function run(r,i){var s=t||{};if(!("randomize"in s)){s.randomize=true}var o=n.operation(s);function bail(e){i(e||new Error("Aborted"))}function onError(e,t){if(e.bail){bail(e);return}if(!o.retry(e)){i(o.mainError())}else if(s.onRetry){s.onRetry(e,t)}}function runAttempt(t){var n;try{n=e(bail,t)}catch(e){onError(e,t);return}Promise.resolve(n).then(r).catch((function catchIt(e){onError(e,t)}))}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},6437:(e,t,r)=>{"use strict";const n=r(6003);const i=r(1694);const s=r(8937).stdout;const o=r(6900);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=s?s.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[c[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties((()=>{}),l);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=h;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=s;e.exports["default"]=e.exports},6900:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|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}|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[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 of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const i=[];let s=[];r.replace(t,((t,r,o,a,c,u)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(u)}}));i.push(s.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("")}},1817:(e,t,r)=>{"use strict";const n=r(7147);const i=r(1017);const s=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(e,t,r)=>{try{return n[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const chownSync=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const c=a?(e,t,r,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else n.chown(e,t,r,i)}:(e,t,r,n)=>n;const u=a?(e,t,r)=>{try{return lchownSync(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;chownSync(e,t,r)}}:(e,t,r)=>lchownSync(e,t,r);const l=process.version;let readdir=(e,t,r)=>n.readdir(e,t,r);let readdirSync=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(l))readdir=(e,t,r)=>n.readdir(e,r);const chown=(e,t,r,i)=>{n[s](e,t,r,c(e,t,r,(e=>{i(e&&e.code!=="ENOENT"?e:null)})))};const chownrKid=(e,t,r,s,o)=>{if(typeof t==="string")return n.lstat(i.resolve(e,t),((n,i)=>{if(n)return o(n.code!=="ENOENT"?n:null);i.name=t;chownrKid(e,i,r,s,o)}));if(t.isDirectory()){chownr(i.resolve(e,t.name),r,s,(n=>{if(n)return o(n);const a=i.resolve(e,t.name);chown(a,r,s,o)}))}else{const n=i.resolve(e,t.name);chown(n,r,s,o)}};const chownr=(e,t,r,n)=>{readdir(e,{withFileTypes:true},((i,s)=>{if(i){if(i.code==="ENOENT")return n();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return chown(e,t,r,n);let o=s.length;let a=null;const then=i=>{if(a)return;if(i)return n(a=i);if(--o===0)return chown(e,t,r,n)};s.forEach((n=>chownrKid(e,n,t,r,then)))}))};const chownrKidSync=(e,t,r,s)=>{if(typeof t==="string"){try{const r=n.lstatSync(i.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())chownrSync(i.resolve(e,t.name),r,s);u(i.resolve(e,t.name),r,s)};const chownrSync=(e,t,r)=>{let n;try{n=readdirSync(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return u(e,t,r);else throw n}if(n&&n.length)n.forEach((n=>chownrKidSync(e,n,t,r)));return u(e,t,r)};e.exports=chownr;chownr.sync=chownrSync},2259:(e,t,r)=>{var n=r(4524);var i={};for(var s in n){if(n.hasOwnProperty(s)){i[n[s]]=s}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=o[a].channels;var u=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var c;var u;if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}u=(i+s)/2;if(s===i){c=0}else if(u<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,u*100]};o.rgb.hsv=function(e){var t;var r;var n;var i;var s;var o=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(o,a,c);var l=u-Math.min(o,a,c);var diffc=function(e){return(u-e)/6/l+1/2};if(l===0){i=s=0}else{s=l/u;t=diffc(o);r=diffc(a);n=diffc(c);if(o===u){i=n-r}else if(a===u){i=1/3+t-n}else if(c===u){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=o.rgb.hsl(e)[0];var s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var s;var o;var a;a=Math.min(1-t,1-r,1-n);i=(1-t-a)/(1-a)||0;s=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var s;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var c=comparativeDistance(e,a);if(c<r){r=c;s=o}}}return s};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var s=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var s;var a;var c;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*n-16;a=500*(r-n);c=200*(n-i);return[s,a,c]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}i=2*n-s;a=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=i+(s-i)*6*o}else if(2*o<1){c=s}else if(3*o<2){c=i+(s-i)*(2/3-o)*6}else{c=i}a[u]=c*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var s=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;i*=s<=1?s:2-s;a=(n+r)/2;o=n===0?2*i/(s+i):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var s=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*s);var c=255*n*(1-r*(1-s));n*=255;switch(i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var s;var o;var a;a=(2-r)*n;s=(2-r)*i;o=r*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var s;var o;var a;var c;if(i>1){r/=i;n/=i}s=Math.floor(6*t);o=1-n;a=6*t-s;if((s&1)!==0){a=1-a}c=r+a*(o-r);var u;var l;var h;switch(s){default:case 6:case 0:u=o;l=c;h=r;break;case 1:u=c;l=o;h=r;break;case 2:u=r;l=o;h=c;break;case 3:u=r;l=c;h=o;break;case 4:u=c;l=r;h=o;break;case 5:u=o;l=r;h=c;break}return[u*255,l*255,h*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var s;var o;var a;s=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,r*(1-i)+i);a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;i=t*3.2406+r*-1.5372+n*-.4986;s=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;s=500*(t-r);o=200*(r-n);return[i,s,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;s=(t+16)/116;i=r/500+s;o=s-n/200;var a=Math.pow(s,3);var c=Math.pow(i,3);var u=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;i=Math.atan2(n,r);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+n*n);return[t,o,s]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;o=n/360*2*Math.PI;i=r*Math.cos(o);s=r*Math.sin(o);return[t,i,s]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var s=(t>>2&1)*r*255;return[n,i,s]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[n,i,s]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var n=parseInt(r,16);var i=n>>16&255;var s=n>>8&255;var o=n&255;return[i,s,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var s=Math.min(Math.min(t,r),n);var o=i-s;var a;var c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===t){c=(r-n)/o%6}else if(i===r){c=2+(n-t)/o}else{c=4+(t-r)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var s=t%1*6;var o=s%1;var a=1-o;var c=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}c=(1-r)*n;return[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var s=0;if(i<1){s=(n-i)/(1-i)}return[e[0],i*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},721:(e,t,r)=>{var n=r(2259);var i=r(5161);var s={};var o=Object.keys(n);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){s[e]={};Object.defineProperty(s[e],"channels",{value:n[e].channels});Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach((function(r){var n=t[r];s[e][r]=wrapRounded(n);s[e][r].raw=wrapRaw(n)}))}));e.exports=s},5161:(e,t,r)=>{var n=r(2259);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,i=0;i<r;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var s=Object.keys(n[i]);for(var o=s.length,a=0;a<o;a++){var c=s[a];var u=t[c];if(u.distance===-1){u.distance=t[i].distance+1;u.parent=i;r.unshift(c)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var s=t[e].parent;while(t[s].parent){r.unshift(t[s].parent);i=link(n[t[s].parent][s],i);s=t[s].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,s=0;s<i;s++){var o=n[s];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},4524:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8138:(e,t,r)=>{var n=r(2361).EventEmitter;var i=r(2081).spawn;var s=r(1017);var o=s.dirname;var a=s.basename;var c=r(7147);r(3837).inherits(Command,n);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var n=e.split(/ +/);var i=new Command(n.shift());if(t){i.description(t);this.executables=true;this._execs[i._name]=true;if(r.isDefault)this.defaultExecutable=i._name}i._noHelp=!!r.noHelp;this.commands.push(i);i.parseExpectedArgs(n);i.parent=this;if(t)return this;return i};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach((function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}}));return this};Command.prototype.action=function(e){var t=this;var listener=function(r,n){r=r||[];n=n||[];var i=t.parseOptions(n);outputHelpIfNecessary(t,i.unknown);if(i.unknown.length>0){t.unknownOption(i.unknown[0])}if(i.args.length)r=i.args.concat(r);t._args.forEach((function(e,n){if(e.required&&r[n]==null){t.missingArgument(e.name)}else if(e.variadic){if(n!==t._args.length-1){t.variadicArgNotLast(e.name)}r[n]=r.splice(n)}}));if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var r=this.parent||this;var n=r===this?"*":this._name;r.on("command:"+n,listener);if(this._alias)r.on("command:"+this._alias,listener);return this};Command.prototype.option=function(e,t,r,n){var i=this,s=new Option(e,t),o=s.name(),a=s.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var c=r;r=function(e,t){var r=c.exec(e);return r?r[0]:t}}else{n=r;r=null}}if(!s.bool||s.optional||s.required){if(!s.bool)n=true;if(n!==undefined){i[a]=n;s.defaultValue=n}}this.options.push(s);this.on("option:"+o,(function(e){if(e!==null&&r){e=r(e,i[a]===undefined?n:i[a])}if(typeof i[a]==="boolean"||typeof i[a]==="undefined"){if(e==null){i[a]=s.bool?n||true:false}else{i[a]=e}}else if(e!==null){i[a]=e}}));return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var n=this.parseArgs(this.args,t.unknown);var i=n.args[0];var s=null;if(i){s=this.commands.filter((function(e){return e.alias()===i}))[0]}if(this._execs[i]&&typeof this._execs[i]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(s){r[0]=s._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return n};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var n=e[1];var u=a(n,s.extname(n))+"-"+t[0];var l;var h=c.realpathSync(n);l=o(h);var p=s.join(l,u);var d=false;if(exists(p+".js")){u=p+".js";d=true}else if(exists(p+".ts")){u=p+".ts";d=true}else if(exists(p)){u=p}t=t.slice(1);var m;if(process.platform!=="win32"){if(d){t.unshift(u);t=(process.execArgv||[]).concat(t);m=i(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{m=i(u,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(u);m=i(process.execPath,t,{stdio:"inherit"})}var y=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];y.forEach((function(e){process.on(e,(function(){if(m.killed===false&&m.exitCode===null){m.kill(e)}}))}));m.on("close",process.exit.bind(process));m.on("error",(function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",u)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",u)}process.exit(1)}));this.runningCommand=m};Command.prototype.normalize=function(e){var t=[],r,n,i;for(var s=0,o=e.length;s<o;++s){r=e[s];if(s>0){n=this.optionFor(e[s-1])}if(r==="--"){t=t.concat(e.slice(s));break}else if(n&&n.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach((function(e){t.push("-"+e)}))}else if(/^--/.test(r)&&~(i=r.indexOf("="))){t.push(r.slice(0,i),r.slice(i+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter((function(e){return e.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,n,i,s;var o=[];for(var a=0;a<r;++a){s=e[a];if(n){t.push(s);continue}if(s==="--"){n=true;continue}i=this.optionFor(s);if(i){if(i.required){s=e[++a];if(s==null)return this.optionMissingArgument(i);this.emit("option:"+i.name(),s)}else if(i.optional){s=e[a+1];if(s==null||s[0]==="-"&&s!=="-"){s=null}else{++a}this.emit("option:"+i.name(),s)}else{this.emit("option:"+i.name())}continue}if(s.length>1&&s[0]==="-"){o.push(s);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(s)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var n=this.options[r].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(e+"\n");process.exit(0)}));return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map((function(e){return humanReadableArgName(e)}));var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(e){return!e._noHelp})).map((function(e){var t=e._args.map((function(e){return humanReadableArgName(e)})).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]}))};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce((function(e,t){return Math.max(e,t[0].length)}),0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce((function(e,t){return Math.max(e,t.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(e,t){return Math.max(e,t.name.length)}),0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map((function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")})).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map((function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r})).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach((function(n){e.push(" "+pad(n.name,r)+" "+t[n.name])}));e.push("")}}var n=this._name;if(this._alias){n=n+"|"+this._alias}var i=["Usage: "+n+" "+this.usage(),""];var s=[];var o=this.commandHelp();if(o)s=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return i.concat(e).concat(a).concat(s).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(c.statSync(e).isFile()){return true}}catch(e){return false}}},6748:(e,t,r)=>{"use strict";const n=r(448);const i=r(2361).EventEmitter;const s=r(7147);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const u=Symbol("_autoClose");const l=Symbol("_close");const h=Symbol("_ended");const p=Symbol("_fd");const d=Symbol("_finished");const m=Symbol("_flags");const y=Symbol("_flush");const g=Symbol("_handleChunk");const v=Symbol("_makeBuf");const b=Symbol("_mode");const w=Symbol("_needDrain");const S=Symbol("_onerror");const x=Symbol("_onopen");const _=Symbol("_onread");const O=Symbol("_onwrite");const k=Symbol("_open");const A=Symbol("_path");const R=Symbol("_pos");const C=Symbol("_queue");const P=Symbol("_read");const j=Symbol("_readSize");const T=Symbol("_reading");const M=Symbol("_remain");const I=Symbol("_size");const N=Symbol("_write");const D=Symbol("_writing");const L=Symbol("_defaultFlag");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[p]=typeof t.fd==="number"?t.fd:null;this[A]=e;this[j]=t.readSize||16*1024*1024;this[T]=false;this[I]=typeof t.size==="number"?t.size:Infinity;this[M]=this[I];this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[p]==="number")this[P]();else this[k]()}get fd(){return this[p]}get path(){return this[A]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[k](){s.open(this[A],"r",((e,t)=>this[x](e,t)))}[x](e,t){if(e)this[S](e);else{this[p]=t;this.emit("open",t);this[P]()}}[v](){return Buffer.allocUnsafe(Math.min(this[j],this[M]))}[P](){if(!this[T]){this[T]=true;const e=this[v]();if(e.length===0)return process.nextTick((()=>this[_](null,0,e)));s.read(this[p],e,0,e.length,null,((e,t,r)=>this[_](e,t,r)))}}[_](e,t,r){this[T]=false;if(e)this[S](e);else if(this[g](t,r))this[P]()}[l](){if(this[u]&&typeof this[p]==="number"){s.close(this[p],(e=>this.emit("close")));this[p]=null}}[S](e){this[T]=true;this[l]();this.emit("error",e)}[g](e,t){let r=false;this[M]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[M]<=0){r=false;this[l]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[p]==="number")this[P]();break;default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[k](){let e=true;try{this[x](null,s.openSync(this[A],"r"));e=false}finally{if(e)this[l]()}}[P](){let e=true;try{if(!this[T]){this[T]=true;do{const e=this[v]();const t=e.length===0?0:s.readSync(this[p],e,0,e.length,null);if(!this[g](t,e))break}while(true);this[T]=false}e=false}finally{if(e)this[l]()}}[l](){if(this[u]&&typeof this[p]==="number"){try{s.closeSync(this[p])}catch(e){}this[p]=null;this.emit("close")}}}class WriteStream extends i{constructor(e,t){t=t||{};super(t);this.readable=false;this[D]=false;this[h]=false;this[w]=false;this[C]=[];this[A]=e;this[p]=typeof t.fd==="number"?t.fd:null;this[b]=t.mode===undefined?438:t.mode;this[R]=typeof t.start==="number"?t.start:null;this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[R]!==null?"r+":"w";this[L]=t.flags===undefined;this[m]=this[L]?r:t.flags;if(this[p]===null)this[k]()}get fd(){return this[p]}get path(){return this[A]}[S](e){this[l]();this[D]=true;this.emit("error",e)}[k](){s.open(this[A],this[m],this[b],((e,t)=>this[x](e,t)))}[x](e,t){if(this[L]&&this[m]==="r+"&&e&&e.code==="ENOENT"){this[m]="w";this[k]()}else if(e)this[S](e);else{this[p]=t;this.emit("open",t);this[y]()}}end(e,t){if(e)this.write(e,t);this[h]=true;if(!this[D]&&!this[C].length&&typeof this[p]==="number")this[O](null,0)}write(e,t){if(typeof e==="string")e=new Buffer(e,t);if(this[h]){this.emit("error",new Error("write() after end()"));return false}if(this[p]===null||this[D]||this[C].length){this[C].push(e);this[w]=true;return false}this[D]=true;this[N](e);return true}[N](e){s.write(this[p],e,0,e.length,this[R],((e,t)=>this[O](e,t)))}[O](e,t){if(e)this[S](e);else{if(this[R]!==null)this[R]+=t;if(this[C].length)this[y]();else{this[D]=false;if(this[h]&&!this[d]){this[d]=true;this[l]();this.emit("finish")}else if(this[w]){this[w]=false;this.emit("drain")}}}}[y](){if(this[C].length===0){if(this[h])this[O](null,0)}else if(this[C].length===1)this[N](this[C].pop());else{const e=this[C];this[C]=[];writev(this[p],e,this[R],((e,t)=>this[O](e,t)))}}[l](){if(this[u]&&typeof this[p]==="number"){s.close(this[p],(e=>this.emit("close")));this[p]=null}}}class WriteStreamSync extends WriteStream{[k](){let e;try{e=s.openSync(this[A],this[m],this[b])}catch(e){if(this[L]&&this[m]==="r+"&&e&&e.code==="ENOENT"){this[m]="w";return this[k]()}else throw e}this[x](null,e)}[l](){if(this[u]&&typeof this[p]==="number"){try{s.closeSync(this[p])}catch(e){}this[p]=null;this.emit("close")}}[N](e){try{this[O](null,s.writeSync(this[p],e,0,e.length,this[R]))}catch(e){this[O](e,0)}}}const writev=(e,t,r,n)=>{const done=(e,r)=>n(e,r,t);const i=new c;i.oncomplete=done;o.writeBuffers(e,t,r,i)};t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},1135:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)}},448:(e,t,r)=>{"use strict";const n=r(2361);const i=r(5831);const s=r(1576).StringDecoder;const o=Symbol("EOF");const a=Symbol("maybeEmitEnd");const c=Symbol("emittedEnd");const u=Symbol("emittingEnd");const l=Symbol("closed");const h=Symbol("read");const p=Symbol("flush");const d=Symbol("flushChunk");const m=Symbol("encoding");const y=Symbol("decoder");const g=Symbol("flowing");const v=Symbol("paused");const b=Symbol("resume");const w=Symbol("bufferLength");const S=Symbol("bufferPush");const x=Symbol("bufferShift");const _=Symbol("objectMode");const O=Symbol("destroyed");const k=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const A=k&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const R=k&&Symbol.iterator||Symbol("iterator not implemented");const C=Buffer.alloc?Buffer:r(3118).Buffer;const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBuffer=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!C.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends n{constructor(e){super();this[g]=false;this[v]=false;this.pipes=new i;this.buffer=new i;this[_]=e&&e.objectMode||false;if(this[_])this[m]=null;else this[m]=e&&e.encoding||null;if(this[m]==="buffer")this[m]=null;this[y]=this[m]?new s(this[m]):null;this[o]=false;this[c]=false;this[u]=false;this[l]=false;this.writable=true;this.readable=true;this[w]=0;this[O]=false}get bufferLength(){return this[w]}get encoding(){return this[m]}set encoding(e){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[m]&&e!==this[m]&&(this[y]&&this[y].lastNeed||this[w]))throw new Error("cannot change encoding");if(this[m]!==e){this[y]=e?new s(e):null;if(this.buffer.length)this.buffer=this.buffer.map((e=>this[y].write(e)))}this[m]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_]}set objectMode(e){this[_]=this[_]||!!e}write(e,t,r){if(this[o])throw new Error("write after end");if(this[O]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[_]&&!C.isBuffer(e)){if(isArrayBufferView(e))e=C.from(e.buffer,e.byteOffset,e.byteLength);else if(isArrayBuffer(e))e=C.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[w]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[_]&&!(t===this[m]&&!this[y].lastNeed)){e=C.from(e,t)}if(C.isBuffer(e)&&this[m])e=this[y].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[S](e),false)}finally{if(this[w]!==0)this.emit("readable");if(r)r()}}read(e){if(this[O])return null;try{if(this[w]===0||e===0||e>this[w])return null;if(this[_])e=null;if(this.buffer.length>1&&!this[_]){if(this.encoding)this.buffer=new i([Array.from(this.buffer).join("")]);else this.buffer=new i([C.concat(Array.from(this.buffer),this[w])])}return this[h](e||null,this.buffer.head.value)}finally{this[a]()}}[h](e,t){if(e===t.length||e===null)this[x]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[w]-=e}this.emit("data",t);if(!this.buffer.length&&!this[o])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[o]=true;this.writable=false;if(this.flowing||!this[v])this[a]();return this}[b](){if(this[O])return;this[v]=false;this[g]=true;this.emit("resume");if(this.buffer.length)this[p]();else if(this[o])this[a]();else this.emit("drain")}resume(){return this[b]()}pause(){this[g]=false;this[v]=true}get destroyed(){return this[O]}get flowing(){return this[g]}get paused(){return this[v]}[S](e){if(this[_])this[w]+=1;else this[w]+=e.length;return this.buffer.push(e)}[x](){if(this.buffer.length){if(this[_])this[w]-=1;else this[w]-=this.buffer.head.value.length}return this.buffer.shift()}[p](){do{}while(this[d](this[x]()));if(!this.buffer.length&&!this[o])this.emit("drain")}[d](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[O])return;const r=this[c];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[b]()};this.pipes.push(n);e.on("drain",n.ondrain);this[b]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[b]();else if(isEndish(e)&&this[c]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[c]}[a](){if(!this[u]&&!this[c]&&!this[O]&&this.buffer.length===0&&this[o]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[l])this.emit("close");this[u]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==O&&this[O])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach((e=>e.dest.write(t)===false&&this.pause()))}else if(e==="end"){if(this[c]===true)return;this[c]=true;this.readable=false;if(this[y]){t=this[y].end();if(t){this.pipes.forEach((e=>e.dest.write(t)));super.emit("data",t)}}this.pipes.forEach((e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()}))}else if(e==="close"){this[l]=true;if(!this[c]&&!this[O])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!isEndish(e))this[a]();else this.removeAllListeners(e)}}collect(){const e=[];e.dataLength=0;this.on("data",(t=>{e.push(t);e.dataLength+=t.length}));return this.promise().then((()=>e))}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((e=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?e.join(""):C.concat(e,e.dataLength)))}promise(){return new Promise(((e,t)=>{this.on(O,(()=>t(new Error("stream destroyed"))));this.on("end",(()=>e()));this.on("error",(e=>t(e)))}))}[A](){const next=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[o])return Promise.resolve({done:true});let t=null;let r=null;const onerr=e=>{this.removeListener("data",ondata);this.removeListener("end",onend);r(e)};const ondata=e=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();t({value:e,done:!!this[o]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);t({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,n)=>{r=n;t=e;this.once(O,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[R](){const next=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:next}}destroy(e){if(this[O]){if(e)this.emit("error",e);else this.emit(O);return this}this[O]=true;this.buffer=new i;this[w]=0;if(typeof this.close==="function"&&!this[l])this.close();if(e)this.emit("error",e);else this.emit(O);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},3263:(e,t,r)=>{const n=r(9796).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},3808:(e,t,r)=>{"use strict";const n=r(9491);const i=r(4300).Buffer;const s=r(9796);const o=t.constants=r(3263);const a=r(448);const c=i.concat;class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const l=Symbol("flushFlag");const h=Symbol("finishFlushFlag");const p=Symbol("fullFlushFlag");const d=Symbol("handle");const m=Symbol("onError");const y=Symbol("sawError");const g=Symbol("level");const v=Symbol("strategy");const b=Symbol("ended");const w=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[b]=false;this[u]=e;this[l]=e.flush;this[h]=e.finishFlush;try{this[d]=new s[t](e)}catch(e){throw new ZlibError(e)}this[m]=e=>{this[y]=true;this.close();this.emit("error",e)};this[d].on("error",(e=>this[m](new ZlibError(e))));this.once("end",(()=>this.close))}close(){if(this[d]){this[d].close();this[d]=null;this.emit("close")}}reset(){if(!this[y]){n(this[d],"zlib binding closed");return this[d].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[p];this.write(Object.assign(i.alloc(0),{[l]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[h]);this[b]=true;return super.end(null,null,r)}get ended(){return this[b]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=i.from(e,t);if(this[y])return;n(this[d],"zlib binding closed");const s=this[d]._handle;const o=s.close;s.close=()=>{};const a=this[d].close;this[d].close=()=>{};i.concat=e=>e;let u;try{const t=typeof e[l]==="number"?e[l]:this[l];u=this[d]._processChunk(e,t);i.concat=c}catch(e){i.concat=c;this[m](new ZlibError(e))}finally{if(this[d]){this[d]._handle=s;s.close=o;this[d].close=a;this[d].removeAllListeners("error")}}let h;if(u){if(Array.isArray(u)&&u.length>0){h=super.write(i.from(u[0]));for(let e=1;e<u.length;e++){h=super.write(u[e])}}else{h=super.write(i.from(u))}}if(r)r();return h}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[p]=o.Z_FULL_FLUSH;this[g]=e.level;this[v]=e.strategy}params(e,t){if(this[y])return;if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[g]!==e||this[v]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[d],"zlib binding closed");const r=this[d].flush;this[d].flush=(e,t)=>{this.flush(e);t()};try{this[d].params(e,t)}finally{this[d].flush=r}if(this[d]){this[g]=e;this[v]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}class Gzip extends Zlib{constructor(e){super(e,"Gzip")}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[p]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},8828:(e,t,r)=>{var n=r(1017);var i=r(7147);var s=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,o){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var a=t.mode;var c=t.fs||i;if(a===undefined){a=s}if(!o)o=null;var u=r||function(){};e=n.resolve(e);c.mkdir(e,a,(function(r){if(!r){o=o||e;return u(null,o)}switch(r.code){case"ENOENT":if(n.dirname(e)===e)return u(r);mkdirP(n.dirname(e),t,(function(r,n){if(r)u(r,n);else mkdirP(e,t,u,n)}));break;default:c.stat(e,(function(e,t){if(e||!t.isDirectory())u(r,o);else u(null,o)}));break}}))}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var a=t.fs||i;if(o===undefined){o=s}if(!r)r=null;e=n.resolve(e);try{a.mkdirSync(e,o);r=r||e}catch(i){switch(i.code){case"ENOENT":r=sync(n.dirname(e),t,r);sync(e,t,r);break;default:var c;try{c=a.statSync(e)}catch(e){throw i}if(!c.isDirectory())throw i;break}}return r}},8937:(e,t,r)=>{"use strict";const n=r(2037);const i=r(1135);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2127:(e,t,r)=>{"use strict";t.c=t.create=r(6036);t.r=t.replace=r(8291);t.t=t.list=r(9650);t.u=t.update=r(8489);t.x=t.extract=r(7171);t.Pack=r(9698);t.Unpack=r(7932);t.Parse=r(2801);t.ReadEntry=r(2946);t.WriteEntry=r(2393);t.Header=r(3970);t.Pax=r(4065);t.types=r(8318)},5104:(e,t,r)=>{"use strict";let n=Buffer;if(!n.alloc){n=r(3118).Buffer}e.exports=n},6036:(e,t,r)=>{"use strict";const n=r(3975);const i=r(9698);const s=r(7147);const o=r(6748);const a=r(9650);const c=r(1017);const u=e.exports=(e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?createFileSync(i,t):i.file?createFile(i,t,r):i.sync?createSync(i,t):create(i,t)};const createFileSync=(e,t)=>{const r=new i.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);addFilesSync(r,t)};const createFile=(e,t,r)=>{const n=new i(e);const s=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(s);const a=new Promise(((e,t)=>{s.on("error",t);s.on("close",e);n.on("error",t)}));addFilesAsync(n,t);return r?a.then(r,r):a};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")a({file:c.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:c.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()};const createSync=(e,t)=>{const r=new i.Sync(e);addFilesSync(r,t);return r};const create=(e,t)=>{const r=new i(e);addFilesAsync(r,t);return r}},7171:(e,t,r)=>{"use strict";const n=r(3975);const i=r(7932);const s=r(7147);const o=r(6748);const a=r(1017);const c=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(i,t);return i.file&&i.sync?extractFileSync(i):i.file?extractFile(i,r):i.sync?extractSync(i):extract(i)};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||a.parse(e).root||".";const i=e===n?false:r.has(e)?r.get(e):mapHas(a.dirname(e),n);r.set(e,i);return i};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const extractFileSync=e=>{const t=new i.Sync(e);const r=e.file;let n=true;let a;const c=s.statSync(r);const u=e.maxReadSize||16*1024*1024;const l=new o.ReadStreamSync(r,{readSize:u,size:c.size});l.pipe(t)};const extractFile=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("close",e);s.stat(a,((e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const extractSync=e=>new i.Sync(e);const extract=e=>new i(e)},3970:(e,t,r)=>{"use strict";const n=r(5104);const i=r(8318);const s=r(1017).posix;const o=r(9038);const a=Symbol("slurp");const c=Symbol("type");class Header{constructor(e,t,r,i){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[c]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(n.isBuffer(e))this.decode(e,t||0,r,i);else if(e)this.set(e)}decode(e,t,r,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=decString(e,t,100);this.mode=decNumber(e,t+100,8);this.uid=decNumber(e,t+108,8);this.gid=decNumber(e,t+116,8);this.size=decNumber(e,t+124,12);this.mtime=decDate(e,t+136,12);this.cksum=decNumber(e,t+148,12);this[a](r);this[a](n,true);this[c]=decString(e,t+156,1);if(this[c]==="")this[c]="0";if(this[c]==="0"&&this.path.substr(-1)==="/")this[c]="5";if(this[c]==="5")this.size=0;this.linkpath=decString(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=decString(e,t+265,32);this.gname=decString(e,t+297,32);this.devmaj=decNumber(e,t+329,8);this.devmin=decNumber(e,t+337,8);if(e[t+475]!==0){const r=decString(e,t+345,155);this.path=r+"/"+this.path}else{const r=decString(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=decDate(e,t+476,12);this.ctime=decDate(e,t+488,12)}}let i=8*32;for(let r=t;r<t+148;r++){i+=e[r]}for(let r=t+156;r<t+512;r++){i+=e[r]}this.cksumValid=i===this.cksum;if(this.cksum===null&&i===8*32)this.nullBlock=true}[a](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=n.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const i=splitPrefix(this.path||"",r);const s=i[0];const o=i[1];this.needPax=i[2];this.needPax=encString(e,t,100,s)||this.needPax;this.needPax=encNumber(e,t+100,8,this.mode)||this.needPax;this.needPax=encNumber(e,t+108,8,this.uid)||this.needPax;this.needPax=encNumber(e,t+116,8,this.gid)||this.needPax;this.needPax=encNumber(e,t+124,12,this.size)||this.needPax;this.needPax=encDate(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[c].charCodeAt(0);this.needPax=encString(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=encString(e,t+265,32,this.uname)||this.needPax;this.needPax=encString(e,t+297,32,this.gname)||this.needPax;this.needPax=encNumber(e,t+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(e,t+337,8,this.devmin)||this.needPax;this.needPax=encString(e,t+345,r,o)||this.needPax;if(e[t+475]!==0)this.needPax=encString(e,t+345,155,o)||this.needPax;else{this.needPax=encString(e,t+345,130,o)||this.needPax;this.needPax=encDate(e,t+476,12,this.atime)||this.needPax;this.needPax=encDate(e,t+488,12,this.ctime)||this.needPax}let a=8*32;for(let r=t;r<t+148;r++){a+=e[r]}for(let r=t+156;r<t+512;r++){a+=e[r]}this.cksum=a;encNumber(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return i.name.get(this[c])||this[c]}get typeKey(){return this[c]}set type(e){if(i.code.has(e))this[c]=i.code.get(e);else this[c]=e}}const splitPrefix=(e,t)=>{const r=100;let i=e;let o="";let a;const c=s.parse(e).root||".";if(n.byteLength(i)<r)a=[i,o,false];else{o=s.dirname(i);i=s.basename(i);do{if(n.byteLength(i)<=r&&n.byteLength(o)<=t)a=[i,o,false];else if(n.byteLength(i)>r&&n.byteLength(o)<=t)a=[i.substr(0,r-1),o,true];else{i=s.join(s.basename(o),i);o=s.dirname(o)}}while(o!==c&&!a);if(!a)a=[e.substr(0,r-1),"",true]}return a};const decString=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const decDate=(e,t,r)=>numToDate(decNumber(e,t,r));const numToDate=e=>e===null?null:new Date(e*1e3);const decNumber=(e,t,r)=>e[t]&128?o.parse(e.slice(t,t+r)):decSmallNumber(e,t,r);const nanNull=e=>isNaN(e)?null:e;const decSmallNumber=(e,t,r)=>nanNull(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const u={12:8589934591,8:2097151};const encNumber=(e,t,r,n)=>n===null?false:n>u[r]||n<0?(o.encode(n,e.slice(t,t+r)),true):(encSmallNumber(e,t,r,n),false);const encSmallNumber=(e,t,r,n)=>e.write(octalString(n,r),t,r,"ascii");const octalString=(e,t)=>padOctal(Math.floor(e).toString(8),t);const padOctal=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const encDate=(e,t,r,n)=>n===null?false:encNumber(e,t,r,n.getTime()/1e3);const l=new Array(156).join("\0");const encString=(e,t,r,i)=>i===null?false:(e.write(i+l,t,r,"utf8"),i.length!==n.byteLength(i)||i.length>r);e.exports=Header},3975:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=e=>e?Object.keys(e).map((r=>[t.has(r)?t.get(r):r,e[r]])).reduce(((e,t)=>(e[t[0]]=t[1],e)),Object.create(null)):{}},9038:(e,t)=>{"use strict";const r=t.encode=(e,t)=>{if(!Number.isSafeInteger(e))throw TypeError("cannot encode number outside of javascript safe integer range");else if(e<0)encodeNegative(e,t);else encodePositive(e,t);return t};const encodePositive=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const encodeNegative=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256);if(r)t[n-1]=onesComp(i);else if(i===0)t[n-1]=0;else{r=true;t[n-1]=twosComp(i)}}};const n=t.parse=e=>{var t=e[e.length-1];var r=e[0];var n;if(r===128)n=pos(e.slice(1,e.length));else if(r===255)n=twos(e);else throw TypeError("invalid base256 encoding");if(!Number.isSafeInteger(n))throw TypeError("parsed number outside of javascript safe integer range");return n};const twos=e=>{var t=e.length;var r=0;var n=false;for(var i=t-1;i>-1;i--){var s=e[i];var o;if(n)o=onesComp(s);else if(s===0)o=s;else{n=true;o=twosComp(s)}if(o!==0)r-=o*Math.pow(256,t-i-1)}return r};const pos=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var i=e[n];if(i!==0)r+=i*Math.pow(256,t-n-1)}return r};const onesComp=e=>(255^e)&255;const twosComp=e=>(255^e)+1&255},9650:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3975);const s=r(2801);const o=r(7147);const a=r(6748);const c=r(1017);const u=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const n=i(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(n,t);if(!n.noResume)onentryFunction(n);return n.file&&n.sync?listFileSync(n):n.file?listFile(n,r):list(n)};const onentryFunction=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||c.parse(e).root||".";const i=e===n?false:r.has(e)?r.get(e):mapHas(c.dirname(e),n);r.set(e,i);return i};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const listFileSync=e=>{const t=list(e);const r=e.file;let i=true;let s;try{const a=o.statSync(r);const c=e.maxReadSize||16*1024*1024;if(a.size<c){t.end(o.readFileSync(r))}else{let e=0;const i=n.allocUnsafe(c);s=o.openSync(r,"r");while(e<a.size){let r=o.readSync(s,i,0,c,e);e+=r;t.write(i.slice(0,r))}t.end()}i=false}finally{if(i&&s)try{o.closeSync(s)}catch(e){}}};const listFile=(e,t)=>{const r=new s(e);const n=e.maxReadSize||16*1024*1024;const i=e.file;const c=new Promise(((e,t)=>{r.on("error",t);r.on("end",e);o.stat(i,((e,s)=>{if(e)t(e);else{const e=new a.ReadStream(i,{readSize:n,size:s.size});e.on("error",t);e.pipe(r)}}))}));return t?c.then(t,t):c};const list=e=>new s(e)},3967:(e,t,r)=>{"use strict";const n=r(8828);const i=r(7147);const s=r(1017);const o=r(1817);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=(e,t,r)=>{const a=t.umask;const c=t.mode|448;const u=(c&a)!==0;const l=t.uid;const h=t.gid;const p=typeof l==="number"&&typeof h==="number"&&(l!==t.processUid||h!==t.processGid);const d=t.preserve;const m=t.unlink;const y=t.cache;const g=t.cwd;const done=(t,n)=>{if(t)r(t);else{y.set(e,true);if(n&&p)o(n,l,h,(e=>done(e)));else if(u)i.chmod(e,c,r);else r()}};if(y&&y.get(e)===true)return done();if(e===g)return i.stat(e,((t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");done(t)}));if(d)return n(e,c,done);const v=s.relative(g,e);const b=v.split(/\/|\\/);mkdir_(g,b,c,y,m,g,null,done)};const mkdir_=(e,t,r,n,s,o,a,c)=>{if(!t.length)return c(null,a);const u=t.shift();const l=e+"/"+u;if(n.get(l))return mkdir_(l,t,r,n,s,o,a,c);i.mkdir(l,r,onmkdir(l,t,r,n,s,o,a,c))};const onmkdir=(e,t,r,n,o,a,c,u)=>l=>{if(l){if(l.path&&s.dirname(l.path)===a&&(l.code==="ENOTDIR"||l.code==="ENOENT"))return u(new CwdError(a,l.code));i.lstat(e,((s,h)=>{if(s)u(s);else if(h.isDirectory())mkdir_(e,t,r,n,o,a,c,u);else if(o)i.unlink(e,(s=>{if(s)return u(s);i.mkdir(e,r,onmkdir(e,t,r,n,o,a,c,u))}));else if(h.isSymbolicLink())return u(new SymlinkError(e,e+"/"+t.join("/")));else u(l)}))}else{c=c||e;mkdir_(e,t,r,n,o,a,c,u)}};const c=e.exports.sync=(e,t)=>{const r=t.umask;const a=t.mode|448;const c=(a&r)!==0;const u=t.uid;const l=t.gid;const h=typeof u==="number"&&typeof l==="number"&&(u!==t.processUid||l!==t.processGid);const p=t.preserve;const d=t.unlink;const m=t.cache;const y=t.cwd;const done=t=>{m.set(e,true);if(t&&h)o.sync(t,u,l);if(c)i.chmodSync(e,a)};if(m&&m.get(e)===true)return done();if(e===y){let t=false;let r="ENOTDIR";try{t=i.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}done();return}if(p)return done(n.sync(e,a));const g=s.relative(y,e);const v=g.split(/\/|\\/);let b=null;for(let e=v.shift(),t=y;e&&(t+="/"+e);e=v.shift()){if(m.get(t))continue;try{i.mkdirSync(t,a);b=b||t;m.set(t,true)}catch(e){if(e.path&&s.dirname(e.path)===y&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(y,e.code);const r=i.lstatSync(t);if(r.isDirectory()){m.set(t,true);continue}else if(d){i.unlinkSync(t);i.mkdirSync(t,a);b=b||t;m.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+v.join("/"))}}return done(b)}},4770:e=>{"use strict";e.exports=(e,t)=>{e&=4095;if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e}},9698:(e,t,r)=>{"use strict";const n=r(5104);class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const i=r(448);const s=r(3808);const o=r(2946);const a=r(2393);const c=a.Sync;const u=a.Tar;const l=r(5831);const h=n.alloc(1024);const p=Symbol("onStat");const d=Symbol("ended");const m=Symbol("queue");const y=Symbol("current");const g=Symbol("process");const v=Symbol("processing");const b=Symbol("processJob");const w=Symbol("jobs");const S=Symbol("jobDone");const x=Symbol("addFSEntry");const _=Symbol("addTarEntry");const O=Symbol("stat");const k=Symbol("readdir");const A=Symbol("onreaddir");const R=Symbol("pipe");const C=Symbol("entry");const P=Symbol("entryOpt");const j=Symbol("writeEntryClass");const T=Symbol("write");const M=Symbol("ondrain");const I=r(7147);const N=r(1017);const D=r(430);const L=D(class Pack extends i{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[j]=a;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};this.zip=new s.Gzip(e.gzip);this.zip.on("data",(e=>super.write(e)));this.zip.on("end",(e=>super.end()));this.zip.on("drain",(e=>this[M]()));this.on("resume",(e=>this.zip.resume()))}else this.on("drain",this[M]);this.portable=!!e.portable;this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[m]=new l;this[w]=0;this.jobs=+e.jobs||4;this[v]=false;this[d]=false}[T](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[d]=true;this[g]();return this}write(e){if(this[d])throw new Error("write after end");if(e instanceof o)this[_](e);else this[x](e);return this.flowing}[_](e){const t=N.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new u(e,this[P](r));r.entry.on("end",(e=>this[S](r)));this[w]+=1;this[m].push(r)}this[g]()}[x](e){const t=N.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[m].push(new PackJob(e,t));this[g]()}[O](e){e.pending=true;this[w]+=1;const t=this.follow?"stat":"lstat";I[t](e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t)this.emit("error",t);else this[p](e,r)}))}[p](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[g]()}[k](e){e.pending=true;this[w]+=1;I.readdir(e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t)return this.emit("error",t);this[A](e,r)}))}[A](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[g]()}[g](){if(this[v])return;this[v]=true;for(let e=this[m].head;e!==null&&this[w]<this.jobs;e=e.next){this[b](e.value);if(e.value.ignore){const t=e.next;this[m].removeNode(e);e.next=t}}this[v]=false;if(this[d]&&!this[m].length&&this[w]===0){if(this.zip)this.zip.end(h);else{super.write(h);super.end()}}}get[y](){return this[m]&&this[m].head&&this[m].head.value}[S](e){this[m].shift();this[w]-=1;this[g]()}[b](e){if(e.pending)return;if(e.entry){if(e===this[y]&&!e.piped)this[R](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[p](e,this.statCache.get(e.absolute));else this[O](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[A](e,this.readdirCache.get(e.absolute));else this[k](e);if(!e.readdir)return}e.entry=this[C](e);if(!e.entry){e.ignore=true;return}if(e===this[y]&&!e.piped)this[R](e)}[P](e){return{onwarn:(e,t)=>{this.warn(e,t)},noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[C](e){this[w]+=1;try{return new this[j](e.path,this[P](e)).on("end",(()=>this[S](e))).on("error",(e=>this.emit("error",e)))}catch(e){this.emit("error",e)}}[M](){if(this[y]&&this[y].entry)this[y].entry.resume()}[R](e){e.piped=true;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[x](n+t)}));const t=e.entry;const r=this.zip;if(r)t.on("data",(e=>{if(!r.write(e))t.pause()}));else t.on("data",(e=>{if(!super.write(e))t.pause()}))}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends L{constructor(e){super(e);this[j]=c}pause(){}resume(){}[O](e){const t=this.follow?"statSync":"lstatSync";this[p](e,I[t](e.absolute))}[k](e,t){this[A](e,I.readdirSync(e.absolute))}[R](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[x](n+t)}));if(r)t.on("data",(e=>{r.write(e)}));else t.on("data",(e=>{super[T](e)}))}}L.Sync=PackSync;e.exports=L},2801:(e,t,r)=>{"use strict";const n=r(430);const i=r(1017);const s=r(3970);const o=r(2361);const a=r(5831);const c=1024*1024;const u=r(2946);const l=r(4065);const h=r(3808);const p=r(5104);const d=p.from([31,139]);const m=Symbol("state");const y=Symbol("writeEntry");const g=Symbol("readEntry");const v=Symbol("nextEntry");const b=Symbol("processEntry");const w=Symbol("extendedHeader");const S=Symbol("globalExtendedHeader");const x=Symbol("meta");const _=Symbol("emitMeta");const O=Symbol("buffer");const k=Symbol("queue");const A=Symbol("ended");const R=Symbol("emittedEnd");const C=Symbol("emit");const P=Symbol("unzip");const j=Symbol("consumeChunk");const T=Symbol("consumeChunkSub");const M=Symbol("consumeBody");const I=Symbol("consumeMeta");const N=Symbol("consumeHeader");const D=Symbol("consuming");const L=Symbol("bufferConcat");const $=Symbol("maybeEnd");const B=Symbol("writing");const U=Symbol("aborted");const G=Symbol("onDone");const noop=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);if(e.ondone)this.on(G,e.ondone);else this.on(G,(e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}));this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||c;this.filter=typeof e.filter==="function"?e.filter:noop;this.writable=true;this.readable=false;this[k]=new a;this[O]=null;this[g]=null;this[y]=null;this[m]="begin";this[x]="";this[w]=null;this[S]=null;this[A]=false;this[P]=null;this[U]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[N](e,t){const r=new s(e,t,this[w],this[S]);if(r.nullBlock)this[C]("nullBlock");else if(!r.cksumValid)this.warn("invalid entry",r);else if(!r.path)this.warn("invalid: path is required",r);else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("invalid: linkpath required",r);else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("invalid: linkpath forbidden",r);else{const e=this[y]=new u(r,this[w],this[S]);if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[C]("ignoredEntry",e);this[m]="ignore"}else if(e.size>0){this[x]="";e.on("data",(e=>this[x]+=e));this[m]="meta"}}else{this[w]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[C]("ignoredEntry",e);this[m]=e.remain?"ignore":"begin"}else{if(e.remain)this[m]="body";else{this[m]="begin";e.end()}if(!this[g]){this[k].push(e);this[v]()}else this[k].push(e)}}}}}[b](e){let t=true;if(!e){this[g]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[g]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",(e=>this[v]()));t=false}}return t}[v](){do{}while(this[b](this[k].shift()));if(!this[k].length){const e=this[g];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[B])this.emit("drain")}else e.once("drain",(e=>this.emit("drain")))}}[M](e,t){const r=this[y];const n=r.blockRemain;const i=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(i);if(!r.blockRemain){this[m]="begin";this[y]=null;r.end()}return i.length}[I](e,t){const r=this[y];const n=this[M](e,t);if(!this[y])this[_](r);return n}[C](e,t,r){if(!this[k].length&&!this[g])this.emit(e,t,r);else this[k].push([e,t,r])}[_](e){this[C]("meta",this[x]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=l.parse(this[x],this[w],false);break;case"GlobalExtendedHeader":this[S]=l.parse(this[x],this[S],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null);this[w].path=this[x].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null);this[w].linkpath=this[x].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e,t){this[U]=true;this.warn(e,t);this.emit("abort",t);this.emit("error",t)}write(e){if(this[U])return;if(this[P]===null&&e){if(this[O]){e=p.concat([this[O],e]);this[O]=null}if(e.length<d.length){this[O]=e;return true}for(let t=0;this[P]===null&&t<d.length;t++){if(e[t]!==d[t])this[P]=false}if(this[P]===null){const t=this[A];this[A]=false;this[P]=new h.Unzip;this[P].on("data",(e=>this[j](e)));this[P].on("error",(e=>this.abort(e.message,e)));this[P].on("end",(e=>{this[A]=true;this[j]()}));this[B]=true;const r=this[P][t?"end":"write"](e);this[B]=false;return r}}this[B]=true;if(this[P])this[P].write(e);else this[j](e);this[B]=false;const t=this[k].length?false:this[g]?this[g].flowing:true;if(!t&&!this[k].length)this[g].once("drain",(e=>this.emit("drain")));return t}[L](e){if(e&&!this[U])this[O]=this[O]?p.concat([this[O],e]):e}[$](){if(this[A]&&!this[R]&&!this[U]&&!this[D]){this[R]=true;const e=this[y];if(e&&e.blockRemain){const t=this[O]?this[O].length:0;this.warn("Truncated input (needed "+e.blockRemain+" more bytes, only "+t+" available)",e);if(this[O])e.write(this[O]);e.end()}this[C](G)}}[j](e){if(this[D]){this[L](e)}else if(!e&&!this[O]){this[$]()}else{this[D]=true;if(this[O]){this[L](e);const t=this[O];this[O]=null;this[T](t)}else{this[T](e)}while(this[O]&&this[O].length>=512&&!this[U]){const e=this[O];this[O]=null;this[T](e)}this[D]=false}if(!this[O]||this[A])this[$]()}[T](e){let t=0;let r=e.length;while(t+512<=r&&!this[U]){switch(this[m]){case"begin":this[N](e,t);t+=512;break;case"ignore":case"body":t+=this[M](e,t);break;case"meta":t+=this[I](e,t);break;default:throw new Error("invalid state: "+this[m])}}if(t<r){if(this[O])this[O]=p.concat([e.slice(t),this[O]]);else this[O]=e.slice(t)}}end(e){if(!this[U]){if(this[P])this[P].end(e);else{this[A]=true;this.write(e)}}}})},4065:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3970);const s=r(1017);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=n.byteLength(e);const r=512*Math.ceil(1+t/512);const o=n.allocUnsafe(r);for(let e=0;e<512;e++){o[e]=0}new i({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(o);o.write(e,512,t,"utf8");for(let e=t+512;e<o.length;e++){o[e]=0}return o}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const i=n.byteLength(r);let s=Math.floor(Math.log(i)/Math.log(10))+1;if(i+s>=Math.pow(10,s))s+=1;const o=s+i;return o+r}}Pax.parse=(e,t,r)=>new Pax(merge(parseKV(e),t),r);const merge=(e,t)=>t?Object.keys(e).reduce(((t,r)=>(t[r]=e[r],t)),t):e;const parseKV=e=>e.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(e,t)=>{const r=parseInt(t,10);if(r!==n.byteLength(t)+1)return e;t=t.substr((r+" ").length);const i=t.split("=");const s=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return e;const o=i.join("=");e[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o;return e};e.exports=Pax},2946:(e,t,r)=>{"use strict";const n=r(8318);const i=r(448);const s=Symbol("slurp");e.exports=class ReadEntry extends i{constructor(e,t,r){super();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[s](t);if(r)this[s](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[s](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},8291:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3975);const s=r(9698);const o=r(2801);const a=r(7147);const c=r(6748);const u=r(9650);const l=r(1017);const h=r(3970);const p=e.exports=(e,t,r)=>{const n=i(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return n.sync?replaceSync(n,t):replace(n,t,r)};const replaceSync=(e,t)=>{const r=new s.Sync(e);let i=true;let o;let c;try{try{o=a.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")o=a.openSync(e.file,"w+");else throw t}const s=a.fstatSync(o);const u=n.alloc(512);e:for(c=0;c<s.size;c+=512){for(let e=0,t=0;e<512;e+=t){t=a.readSync(o,u,e,u.length-e,c+e);if(c===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new h(u);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(c+r+512>s.size)break;c+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}i=false;streamSync(e,r,c,o,t)}finally{if(i)try{a.closeSync(o)}catch(e){}}};const streamSync=(e,t,r,n,i)=>{const s=new c.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s);addFilesSync(t,i)};const replace=(e,t,r)=>{t=Array.from(t);const i=new s(e);const getPos=(t,r,i)=>{const cb=(e,r)=>{if(e)a.close(t,(t=>i(e)));else i(null,r)};let s=0;if(r===0)return cb(null,0);let o=0;const c=n.alloc(512);const onread=(n,i)=>{if(n)return cb(n);o+=i;if(o<512&&i)return a.read(t,c,o,c.length-o,s+o,onread);if(s===0&&c[0]===31&&c[1]===139)return cb(new Error("cannot append to compressed archives"));if(o<512)return cb(null,s);const u=new h(c);if(!u.cksumValid)return cb(null,s);const l=512*Math.ceil(u.size/512);if(s+l+512>r)return cb(null,s);s+=l+512;if(s>=r)return cb(null,s);if(e.mtimeCache)e.mtimeCache.set(u.path,u.mtime);o=0;a.read(t,c,0,512,s,onread)};a.read(t,c,0,512,s,onread)};const o=new Promise(((r,n)=>{i.on("error",n);let s="r+";const onopen=(o,u)=>{if(o&&o.code==="ENOENT"&&s==="r+"){s="w+";return a.open(e.file,s,onopen)}if(o)return n(o);a.fstat(u,((s,o)=>{if(s)return n(s);getPos(u,o.size,((s,o)=>{if(s)return n(s);const a=new c.WriteStream(e.file,{fd:u,start:o});i.pipe(a);a.on("error",n);a.on("close",r);addFilesAsync(i,t)}))}))};a.open(e.file,s,onopen)}));return r?o.then(r,r):o};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")u({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return u({file:l.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()}},8318:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map((e=>[e[1],e[0]])))},7932:(e,t,r)=>{"use strict";const n=r(9491);const i=r(2361).EventEmitter;const s=r(2801);const o=r(7147);const a=r(6748);const c=r(1017);const u=r(3967);const l=u.sync;const h=r(1676);const p=Symbol("onEntry");const d=Symbol("checkFs");const m=Symbol("isReusable");const y=Symbol("makeFs");const g=Symbol("file");const v=Symbol("directory");const b=Symbol("link");const w=Symbol("symlink");const S=Symbol("hardlink");const x=Symbol("unsupported");const _=Symbol("unknown");const O=Symbol("checkPath");const k=Symbol("mkdir");const A=Symbol("onError");const R=Symbol("pending");const C=Symbol("pend");const P=Symbol("unpend");const j=Symbol("ended");const T=Symbol("maybeClose");const M=Symbol("skip");const I=Symbol("doChown");const N=Symbol("uid");const D=Symbol("gid");const L=r(6113);const unlinkFile=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+L.randomBytes(16).toString("hex");o.rename(e,r,(e=>{if(e)return t(e);o.unlink(r,t)}))};const unlinkFileSync=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+L.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const uint32=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends s{constructor(e){if(!e)e={};e.ondone=e=>{this[j]=true;this[T]()};super(e);this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[R]=0;this[j]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=c.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",(e=>this[p](e)))}[T](){if(this[j]&&this[R]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[O](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("path contains '..'",t);return false}if(c.win32.isAbsolute(t)){const r=c.win32.parse(t);this.warn("stripping "+r.root+" from absolute path",t);e.path=t.substr(r.root.length)}}if(this.win32){const t=c.win32.parse(e.path);e.path=t.root===""?h.encode(e.path):t.root+h.encode(e.path.substr(t.root.length))}if(c.isAbsolute(e.path))e.absolute=e.path;else e.absolute=c.resolve(this.cwd,e.path);return true}[p](e){if(!this[O](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[x](e)}}[A](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn(e.message,e);this[P]();t.resume()}}[k](e,t,r){u(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[I](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[N](e){return uint32(this.uid,e.uid,this.processUid)}[D](e){return uint32(this.gid,e.gid,this.processGid)}[g](e){const t=e.mode&4095||this.fmode;const r=new a.WriteStream(e.absolute,{mode:t,autoClose:false});r.on("error",(t=>this[A](t,e)));let n=1;const done=t=>{if(t)return this[A](t,e);if(--n===0)o.close(r.fd,(e=>this[P]()))};r.on("finish",(t=>{const i=e.absolute;const s=r.fd;if(e.mtime&&!this.noMtime){n++;const t=e.atime||new Date;const r=e.mtime;o.futimes(s,t,r,(e=>e?o.utimes(i,t,r,(t=>done(t&&e))):done()))}if(this[I](e)){n++;const t=this[N](e);const r=this[D](e);o.fchown(s,t,r,(e=>e?o.chown(i,t,r,(t=>done(t&&e))):done()))}done()}));const i=this.transform?this.transform(e)||e:e;if(i!==e){i.on("error",(t=>this[A](t,e)));e.pipe(i)}i.pipe(r)}[v](e){const t=e.mode&4095||this.dmode;this[k](e.absolute,t,(t=>{if(t)return this[A](t,e);let r=1;const done=t=>{if(--r===0){this[P]();e.resume()}};if(e.mtime&&!this.noMtime){r++;o.utimes(e.absolute,e.atime||new Date,e.mtime,done)}if(this[I](e)){r++;o.chown(e.absolute,this[N](e),this[D](e),done)}done()}))}[x](e){this.warn("unsupported entry type: "+e.type,e);e.resume()}[w](e){this[b](e,e.linkpath,"symlink")}[S](e){this[b](e,c.resolve(this.cwd,e.linkpath),"link")}[C](){this[R]++}[P](){this[R]--;this[T]()}[M](e){this[P]();e.resume()}[m](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[d](e){this[C]();this[k](c.dirname(e.absolute),this.dmode,(t=>{if(t)return this[A](t,e);o.lstat(e.absolute,((t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>e.mtime))this[M](e);else if(t||this[m](e,r))this[y](null,e);else if(r.isDirectory()){if(e.type==="Directory"){if(!e.mode||(r.mode&4095)===e.mode)this[y](null,e);else o.chmod(e.absolute,e.mode,(t=>this[y](t,e)))}else o.rmdir(e.absolute,(t=>this[y](t,e)))}else unlinkFile(e.absolute,(t=>this[y](t,e)))}))}))}[y](e,t){if(e)return this[A](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[g](t);case"Link":return this[S](t);case"SymbolicLink":return this[w](t);case"Directory":case"GNUDumpDir":return this[v](t)}}[b](e,t,r){o[r](t,e.absolute,(t=>{if(t)return this[A](t,e);this[P]();e.resume()}))}}class UnpackSync extends Unpack{constructor(e){super(e)}[d](e){const t=this[k](c.dirname(e.absolute),this.dmode);if(t)return this[A](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[M](e);else if(this[m](e,r))return this[y](null,e);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else unlinkFileSync(e.absolute);return this[y](null,e)}catch(t){return this[A](t,e)}}}catch(t){return this[y](null,e)}}[g](e){const t=e.mode&4095||this.fmode;const oner=t=>{try{o.closeSync(n)}catch(e){}if(t)this[A](t,e)};let r;let n;try{n=o.openSync(e.absolute,"w",t)}catch(e){return oner(e)}const i=this.transform?this.transform(e)||e:e;if(i!==e){i.on("error",(t=>this[A](t,e)));e.pipe(i)}i.on("data",(e=>{try{o.writeSync(n,e,0,e.length)}catch(e){oner(e)}}));i.on("end",(t=>{let r=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const i=e.mtime;try{o.futimesSync(n,t,i)}catch(n){try{o.utimesSync(e.absolute,t,i)}catch(e){r=n}}}if(this[I](e)){const t=this[N](e);const i=this[D](e);try{o.fchownSync(n,t,i)}catch(n){try{o.chownSync(e.absolute,t,i)}catch(e){r=r||n}}}oner(r)}))}[v](e){const t=e.mode&4095||this.dmode;const r=this[k](e.absolute,t);if(r)return this[A](r,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(r){}}if(this[I](e)){try{o.chownSync(e.absolute,this[N](e),this[D](e))}catch(r){}}e.resume()}[k](e,t){try{return u.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[b](e,t,r){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[A](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},8489:(e,t,r)=>{"use strict";const n=r(3975);const i=r(8291);const s=e.exports=(e,t,r)=>{const s=n(e);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);mtimeFilter(s);return i(s,t,r)};const mtimeFilter=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},430:e=>{"use strict";e.exports=e=>class extends e{warn(e,t){if(!this.strict)this.emit("warn",e,t);else if(t instanceof Error)this.emit("error",t);else{const r=new Error(e);r.data=t;this.emit("error",r)}}}},1676:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map((e=>String.fromCharCode(61440+e.charCodeAt(0))));const n=new Map(t.map(((e,t)=>[e,r[t]])));const i=new Map(r.map(((e,r)=>[e,t[r]])));e.exports={encode:e=>t.reduce(((e,t)=>e.split(t).join(n.get(t))),e),decode:e=>r.reduce(((e,t)=>e.split(t).join(i.get(t))),e)}},2393:(e,t,r)=>{"use strict";const n=r(5104);const i=r(448);const s=r(4065);const o=r(3970);const a=r(2946);const c=r(7147);const u=r(1017);const l=r(8318);const h=16*1024*1024;const p=Symbol("process");const d=Symbol("file");const m=Symbol("directory");const y=Symbol("symlink");const g=Symbol("hardlink");const v=Symbol("header");const b=Symbol("read");const w=Symbol("lstat");const S=Symbol("onlstat");const x=Symbol("onread");const _=Symbol("onreadlink");const O=Symbol("openfile");const k=Symbol("onopenfile");const A=Symbol("close");const R=Symbol("mode");const C=r(430);const P=r(1676);const j=r(4770);const T=C(class WriteEntry extends i{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||h;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(!this.preservePaths&&u.win32.isAbsolute(e)){const t=u.win32.parse(e);this.warn("stripping "+t.root+" from absolute path",e);this.path=e.substr(t.root.length)}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=P.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||u.resolve(this.cwd,e);if(this.path==="")this.path="./";if(this.statCache.has(this.absolute))this[S](this.statCache.get(this.absolute));else this[w]()}[w](){c.lstat(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[S](t)}))}[S](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=getType(e);this.emit("stat",e);this[p]()}[p](){switch(this.type){case"File":return this[d]();case"Directory":return this[m]();case"SymbolicLink":return this[y]();default:return this.end()}}[R](e){return j(e,this.type==="Directory")}[v](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this[R](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[m](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[v]();this.end()}[y](){c.readlink(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[_](t)}))}[_](e){this.linkpath=e;this[v]();this.end()}[g](e){this.type="Link";this.linkpath=u.relative(this.cwd,e);this.stat.size=0;this[v]();this.end()}[d](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[g](t)}this.linkCache.set(e,this.absolute)}this[v]();if(this.stat.size===0)return this.end();this[O]()}[O](){c.open(this.absolute,"r",((e,t)=>{if(e)return this.emit("error",e);this[k](t)}))}[k](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const i=n.allocUnsafe(r);this[b](e,i,0,i.length,0,this.stat.size,t)}[b](e,t,r,n,i,s,o){c.read(e,t,r,n,i,((a,c)=>{if(a)return this[A](e,(e=>this.emit("error",a)));this[x](e,t,r,n,i,s,o,c)}))}[A](e,t){c.close(e,t)}[x](e,t,r,i,s,o,a,c){if(c<=0&&o>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[A](e);return this.emit("error",t)}if(c>o){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[A](e);return this.emit("error",t)}if(c===o){for(let e=c;e<i&&c<a;e++){t[e+r]=0;c++;o++}}const u=r===0&&c===t.length?t:t.slice(r,r+c);o-=c;a-=c;s+=c;r+=c;this.write(u);if(!o){if(a)this.write(n.alloc(a));this.end();this[A](e,(e=>e));return}if(r>=i){t=n.allocUnsafe(i);r=0}i=t.length-r;this[b](e,t,r,i,s,o,a)}});class WriteEntrySync extends T{constructor(e,t){super(e,t)}[w](){this[S](c.lstatSync(this.absolute))}[y](){this[_](c.readlinkSync(this.absolute))}[O](){this[k](c.openSync(this.absolute,"r"))}[b](e,t,r,n,i,s,o){let a=true;try{const u=c.readSync(e,t,r,n,i);this[x](e,t,r,n,i,s,o,u);a=false}finally{if(a)try{this[A](e)}catch(e){}}}[A](e){c.closeSync(e)}}const M=C(class WriteEntryTar extends i{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[R](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(u.isAbsolute(this.path)&&!this.preservePaths){const e=u.parse(this.path);this.warn("stripping "+e.root+" from absolute path",this.path);this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(this.header.encode()&&!this.noPax)super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[R](e){return j(e,this.type==="Directory")}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(n.alloc(this.blockRemain));return super.end()}});T.Sync=WriteEntrySync;T.Tar=M;const getType=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=T},7869:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},5831:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}for(;i!==null&&n<t;n++,i=i.next){r.push(i.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r<e;r++){n=n.next}var i=[];for(var r=0;n&&r<t;r++){i.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var r=2;r<arguments.length;r++){n=insert(this,n,arguments[r])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(7869)(Yallist)}catch(e){}},2027:(e,t,r)=>{"use strict";r.r(t);var n=r(6437);var i=r.n(n);var s=r(8138);var o=r.n(s);var a=r(1017);var c=r.n(a);var u=r(1112);var l=r.n(u);var h=r(5418);var p=r.n(h);var d=r(8571);var m=r.n(d);var y=r(402);var g=r.n(y);var v=r(7147);var b=r.n(v);var w=r(2037);var S=r.n(w);var x=r(9365);var _=r.n(x);var O=r(2127);var k=r(2781);var A=r(3837);const R=(0,A.promisify)(k.Stream.pipeline);async function isUrlOk(e){const t=await _().head(e).catch((e=>e));return t.statusCode===200}async function getRepoInfo(e,t){const[,r,n,i,s,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(i===undefined){const e=await _()(`https://api.github.com/repos/${r}/${n}`).catch((e=>e));if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:n,branch:t["default_branch"],filePath:a}}const c=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&c&&i==="tree"){return{username:r,name:n,branch:c,filePath:a}}}function hasRepo({username:e,name:t,branch:r,filePath:n}){const i=`https://api.github.com/repos/${e}/${t}/contents`;const s=`${n?`/${n}`:""}/package.json`;return isUrlOk(i+s+`?ref=${r}`)}function existsInRepo(e){try{const t=new URL(e);return isUrlOk(t.href)}catch{return isUrlOk(`https://api.github.com/repos/steedos/steedos-examples/contents/${encodeURIComponent(e)}`)}}function downloadAndExtractRepo(e,{username:t,name:r,branch:n,filePath:i}){return R(_().stream(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`),O.extract({cwd:e,strip:i?i.split("/").length+1:1},[`${r}-${n.replace(/\//g,"-")}${i?`/${i}`:""}`]))}function downloadAndExtractExample(e,t){if(t==="__internal-testing-retry"){throw new Error("This is an internal example for testing the CLI.")}return R(_().stream("https://codeload.github.com/steedos/steedos-examples/tar.gz/main"),O.extract({cwd:e,strip:2},[`steedos-examples-main/${t}`]))}function makeDir(e,t={recursive:true}){return b().promises.mkdir(e,t)}var C=r(2081);var P=r(2780);var j=r.n(P);function isInGitRepository(){try{(0,C.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(e){}return false}function isInMercurialRepository(){try{(0,C.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(e){}return false}function tryGitInit(e){let t=false;try{(0,C.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,C.execSync)("git init",{stdio:"ignore"});t=true;(0,C.execSync)("git checkout -b main",{stdio:"ignore"});(0,C.execSync)("git add -A",{stdio:"ignore"});(0,C.execSync)('git commit -m "Initial commit from Create Next App"',{stdio:"ignore"});return true}catch(r){if(t){try{j().sync(c().join(e,".git"))}catch(e){}}return false}}var T=r(7987);var M=r.n(T);function install(e,t,{packageManager:r,isOnline:n,devDependencies:s}){const o=[];const a=[];return new Promise(((c,u)=>{let l;let h=r;const p=r==="yarn";if(t&&t.length){if(p){l=["add","--exact"];if(!n)l.push("--offline");l.push("--cwd",e);if(s)l.push("--dev");l.push(...t)}else{l=["install","--save-exact"];l.push(s?"--save-dev":"--save");l.push(...t)}}else{l=["install"];if(!n){console.log(i().yellow("You appear to be offline."));if(p){console.log(i().yellow("Falling back to the local Yarn cache."));console.log();l.push("--offline")}else{console.log()}}}if(p){l.push(...a)}else{l.push(...o)}const d=M()(h,l,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}});d.on("close",(e=>{if(e!==0){u({command:`${h} ${l.join(" ")}`});return}c()}))}))}function isFolderEmpty(e,t){const r=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log"];const n=b().readdirSync(e).filter((e=>!r.includes(e))).filter((e=>!/\.iml$/.test(e)));if(n.length>0){console.log(`The directory ${i().green(t)} contains files that could conflict:`);console.log();for(const t of n){try{const r=b().lstatSync(c().join(e,t));if(r.isDirectory()){console.log(` ${i().blue(t)}/`)}else{console.log(` ${t}`)}}catch{console.log(` ${t}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}var I=r(9523);var N=r.n(I);var D=r(7310);var L=r.n(D);function getProxy(){if(process.env.https_proxy){return process.env.https_proxy}try{const e=(0,C.execSync)("npm config get https-proxy").toString().trim();return e!=="null"?e:undefined}catch(e){return}}function getOnline(){return new Promise((e=>{N().lookup("registry.yarnpkg.com",(t=>{if(!t){return e(true)}const r=getProxy();if(!r){return e(false)}const{hostname:n}=L().parse(r);if(!n){return e(false)}N().lookup(n,(t=>{e(t==null)}))}))}))}async function isWriteable(e){try{await b().promises.access(e,(b().constants||b()).W_OK);return true}catch(e){return false}}class DownloadError extends Error{}async function createApp({appPath:e,packageManager:t,example:r,examplePath:n,typescript:s}){let o;const a="default";if(r){let e;try{e=new URL(r)}catch(e){if(e.code!=="ERR_INVALID_URL"){console.error(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){console.error(`Invalid URL: ${i().red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}o=await getRepoInfo(e,n);if(!o){console.error(`Found invalid GitHub URL: ${i().red(`"${r}"`)}. Please fix the URL and try again.`);process.exit(1)}const t=await hasRepo(o);if(!t){console.error(`Could not locate the repository for ${i().red(`"${r}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else if(r!=="__internal-testing-retry"){const e=await existsInRepo(r);if(!e){console.error(`Could not locate an example named ${i().red(`"${r}"`)}. It could be due to the following:\n`,`1. Your spelling of example ${i().red(`"${r}"`)} might be incorrect.\n`,`2. You might not be connected to the internet or you are behind a proxy.`);process.exit(1)}}}const u=c().resolve(e);if(!await isWriteable(c().dirname(u))){console.error("The application path is not writable, please check folder permissions and try again.");console.error("It is likely you do not have write permissions for this folder.");process.exit(1)}const l=c().basename(u);await makeDir(u);if(!isFolderEmpty(u,l)){process.exit(1)}const h=t==="yarn";const p=!h||await getOnline();const d=process.cwd();console.log(`Creating a new steedos app in ${i().green(u)}.`);console.log();process.chdir(u);const y=c().join(u,"package.json");let v=false;if(r){try{if(o){const e=o;console.log(`Downloading files from repo ${i().cyan(r)}. This might take a moment.`);console.log();await m()((()=>downloadAndExtractRepo(u,e)),{retries:3})}else{console.log(`Downloading files for example ${i().cyan(r)}. This might take a moment.`);console.log();await m()((()=>downloadAndExtractExample(u,r)),{retries:3})}}catch(e){function isErrorLike(e){return typeof e==="object"&&e!==null&&typeof e.message==="string"}throw new DownloadError(isErrorLike(e)?e.message:e+"")}const e=c().join(u,".gitignore");if(!b().existsSync(e)){b().copyFileSync(c().join(__dirname,"templates",a,"gitignore"),e)}const n=c().join(u,"tsconfig.json");if(b().existsSync(n)){b().copyFileSync(c().join(__dirname,"templates","typescript","next-env.d.ts"),c().join(u,"next-env.d.ts"))}v=b().existsSync(y);if(v){console.log("Installing packages. This might take a couple of minutes.");console.log();await install(u,null,{packageManager:t,isOnline:p});console.log()}}else{console.log(i().bold(`Using ${t}.`));const e={name:l,version:"0.1.0",private:true,scripts:{start:"moleculer-runner services/*/package.service.js --hot --repl",repl:"moleculer-runner --repl"}};b().writeFileSync(c().join(u,"package.json"),JSON.stringify(e,null,2)+S().EOL);const r={packageManager:t,isOnline:p};const n=["@steedos/service-package-loader","dotenv-flow","moleculer-repl"];const o=[];if(s){o.push("typescript")}if(n.length){console.log();console.log("Installing dependencies:");for(const e of n){console.log(`- ${i().cyan(e)}`)}console.log();await install(u,n,r)}if(o.length){console.log();console.log("Installing devDependencies:");for(const e of o){console.log(`- ${i().cyan(e)}`)}console.log();const e={devDependencies:true,...r};await install(u,o,e)}console.log();await g()("**",u,{parents:true,cwd:c().join(__dirname,"templates",a),rename:e=>{switch(e){case"env":case"gitignore":case"gitpod.yml":case"npmrc":case"yarnrc":case"eslintrc.json":{return".".concat(e)}case"README-template.md":{return"README.md"}case"README.md":{return"README.md"}default:{return e}}}})}if(tryGitInit(u)){console.log("Initialized a git repository.");console.log()}let w;if(c().join(d,l)===e){w=l}else{w=e}console.log(`${i().green("Success!")} Created ${l} at ${e}`);console.log()}function getPkgManager(){try{const e=process.env.npm_config_user_agent;if(e){if(e.startsWith("yarn")){return"yarn"}else if(e.startsWith("pnpm")){return"pnpm"}}try{(0,C.execSync)("yarn --version",{stdio:"ignore"});return"yarn"}catch{(0,C.execSync)("pnpm --version",{stdio:"ignore"});return"pnpm"}}catch{return"npm"}}var $=r(5880);var B=r.n($);function validateNpmName(e){const t=B()(e);if(t.validForNewPackages){return{valid:true}}return{valid:false,problems:[...t.errors||[],...t.warnings||[]]}}const U=JSON.parse('{"name":"create-steedos-app","version":"2.5.17-beta.1","keywords":["react","steedos"],"description":"Create steedos apps with one command","repository":{"type":"git","url":"https://github.com/steedos/steedos-platform","directory":"packages/create-steedos-app"},"author":"Steedos Team <support@steedos.com>","license":"MIT","bin":{"create-steedos-app":"./dist/index.js"},"files":["dist"],"scripts":{"dev":"ncc build ./index.ts -w -o dist/","prebuild":"rimraf ./dist/","build":"ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register"},"devDependencies":{"@types/async-retry":"1.4.4","@types/cross-spawn":"6.0.0","@types/node":"^12.6.8","@types/prompts":"2.0.1","@types/rimraf":"3.0.0","@types/tar":"4.0.3","@types/validate-npm-package-name":"3.0.0","@vercel/ncc":"0.33.4","async-retry":"1.3.1","chalk":"2.4.2","commander":"2.20.0","cpy":"7.3.0","cross-spawn":"6.0.5","got":"10.7.0","prompts":"2.1.0","rimraf":"3.0.2","tar":"4.4.10","update-check":"1.5.4","validate-npm-package-name":"3.0.0"},"engines":{"node":">=12.22.0"},"gitHead":"b114deaebaecf9e2353b1892aa52175cc436cf9a"}');let G="";const z=new(o().Command)(U.name).version(U.version).arguments("<project-directory>").usage(`${i().green("<project-directory>")} [options]`).action((e=>{G=e})).option("--ts, --typescript",`\n\n Initialize as a TypeScript project.\n`).option("--use-npm",`\n\n Explicitly tell the CLI to bootstrap the app using npm\n`).option("--use-pnpm",`\n\n Explicitly tell the CLI to bootstrap the app using pnpm\n`).option("-e, --example [name]|[github-url]",`\n\n An example to bootstrap the app with. You can use an example name\n from the official Next.js repo or a GitHub URL. The URL can use\n any branch and/or subdirectory\n`).option("--example-path <path-to-example>",`\n\n In a rare case, your GitHub URL might contain a branch name with\n a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).\n In this case, you must specify the path to the example separately:\n --example-path foo/bar\n`).allowUnknownOption().parse(process.argv);async function run(){if(typeof G==="string"){G=G.trim()}if(!G){const e=await l()({type:"text",name:"path",message:"What is your project named?",initial:"my-app",validate:e=>{const t=validateNpmName(c().basename(c().resolve(e)));if(t.valid){return true}return"Invalid project name: "+t.problems[0]}});if(typeof e.path==="string"){G=e.path.trim()}}if(!G){console.log("\nPlease specify the project directory:\n"+` ${i().cyan(z.name())} ${i().green("<project-directory>")}\n`+"For example:\n"+` ${i().cyan(z.name())} ${i().green("my-steedos-app")}\n\n`+`Run ${i().cyan(`${z.name()} --help`)} to see all options.`);process.exit(1)}const e=c().resolve(G);const t=c().basename(e);const{valid:r,problems:n}=validateNpmName(t);if(!r){console.error(`Could not create a project called ${i().red(`"${t}"`)} because of npm naming restrictions:`);n.forEach((e=>console.error(` ${i().red.bold("*")} ${e}`)));process.exit(1)}if(z.example===true){console.error("Please provide an example name or url, otherwise remove the example option.");process.exit(1)}const s=!!z.useNpm?"npm":!!z.usePnpm?"pnpm":getPkgManager();const o=typeof z.example==="string"?z.example.trim():undefined;try{await createApp({appPath:e,packageManager:s,example:o&&o!=="default"?o:undefined,examplePath:z.examplePath,typescript:z.typescript})}catch(t){if(!(t instanceof DownloadError)){throw t}const r=await l()({type:"confirm",name:"builtin",message:`Could not download "${o}" because of a connectivity issue between your machine and GitHub.\n`+`Do you want to use the default template instead?`,initial:true});if(!r.builtin){throw t}await createApp({appPath:e,packageManager:s,typescript:z.typescript})}}const q=p()(U).catch((()=>null));async function notifyUpdate(){try{const e=await q;if(e===null||e===void 0?void 0:e.latest){const e=getPkgManager();console.log(i().yellow.bold("A new version of `create-steedos-app` is available!")+"\n"+"You can update by running: "+i().cyan(e==="yarn"?"yarn global add create-steedos-app":`${e} install --global create-steedos-app`)+"\n")}process.exit()}catch{}}run().then(notifyUpdate).catch((async e=>{console.log();console.log("Aborting installation.");if(e.command){console.log(` ${i().cyan(e.command)} has failed.`)}else{console.log(i().red("Unexpected error. Please report it as a bug:")+"\n",e)}console.log();await notifyUpdate();process.exit(1)}))},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4521:e=>{"use strict";e.exports=require("readline")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},6352:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={id:r,loaded:false,exports:{}};var s=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(2027);module.exports=r})();